[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:14]OFD Sender: No OFD packet to send [03:28:19]OFD Sender: No OFD packet to send [03:28:24]OFD Sender: No OFD packet to send [03:28:29]OFD Sender: No OFD packet to send [03:28:34]OFD Sender: No OFD packet to send [03:28:39]OFD Sender: No OFD packet to send [03:28:44]OFD Sender: No OFD packet to send [03:28:49]OFD Sender: No OFD packet to send [03:28:54]OFD Sender: No OFD packet to send [03:28:59]OFD Sender: No OFD packet to send [03:29:04]OFD Sender: No OFD packet to send [03:29:09]OFD Sender: No OFD packet to send [03:29:14]OFD Sender: No OFD packet to send [03:29:19]OFD Sender: No OFD packet to send [03:29:24]OFD Sender: No OFD packet to send [03:29:29]OFD Sender: No OFD packet to send [03:29:34]OFD Sender: No OFD packet to send [03:29:39]OFD Sender: No OFD packet to send [03:29:44]OFD Sender: No OFD packet to send [03:29:49]OFD Sender: No OFD packet to send [03:29:54]OFD Sender: No OFD packet to send [03:29:59]OFD Sender: No OFD packet to send [03:30:04]OFD Sender: No OFD packet to send [03:30:09]OFD Sender: No OFD packet to send [03:30:14]OFD Sender: No OFD packet to send [03:30:19]OFD Sender: No OFD packet to send [03:30:24]OFD Sender: No OFD packet to send [03:30:29]OFD Sender: No OFD packet to send [03:30:34]OFD Sender: No OFD packet to send [03:30:39]OFD Sender: No OFD packet to send [03:30:44]OFD Sender: No OFD packet to send [03:30:49]OFD Sender: No OFD packet to send [03:30:54]OFD Sender: No OFD packet to send [03:30:59]OFD Sender: No OFD packet to send [03:31:04]OFD Sender: No OFD packet to send [03:31:09]OFD Sender: No OFD packet to send [03:31:14]OFD Sender: No OFD packet to send [03:31:19]OFD Sender: No OFD packet to send [03:31:24]OFD Sender: No OFD packet to send [03:31:29]OFD Sender: No OFD packet to send [03:31:34]OFD Sender: No OFD packet to send [03:31:39]OFD Sender: No OFD packet to send [03:31:44]OFD Sender: No OFD packet to send [03:31:49]OFD Sender: No OFD packet to send [03:31:54]OFD Sender: No OFD packet to send [03: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:50]OFD Sender: No OFD packet to send [03:46:55]OFD Sender: No OFD packet to send [03:47:00]OFD Sender: No OFD packet to send [03:47: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:07]OFD Sender: No OFD packet to send [04:02:12]OFD Sender: No OFD packet to send [04:02:17]OFD Sender: No OFD packet to send [04:02:22]OFD Sender: No OFD packet to send [04:02:27]OFD Sender: No OFD packet to send [04:02:32]OFD Sender: No OFD packet to send [04:02:37]OFD Sender: No OFD packet to send [04:02:42]OFD Sender: No OFD packet to send [04:02:47]OFD Sender: No OFD packet to send [04:02:52]OFD Sender: No OFD packet to send [04:02:57]OFD Sender: No OFD packet to send [04:03:02]OFD Sender: No OFD packet to send [04:03:07]OFD Sender: No OFD packet to send [04:03:12]OFD Sender: No OFD packet to send [04:03:17]OFD Sender: No OFD packet to send [04:03:22]OFD Sender: No OFD packet to send [04:03:27]OFD Sender: No OFD packet to send [04:03:32]OFD Sender: No OFD packet to send [04:03:37]OFD Sender: No OFD packet to send [04:03:42]OFD Sender: No OFD packet to send [04:03:47]OFD Sender: No OFD packet to send [04:03:52]OFD Sender: No OFD packet to send [04:03:57]OFD Sender: No OFD packet to send [04:04:02]OFD Sender: No OFD packet to send [04:04:07]OFD Sender: No OFD packet to send [04:04:12]OFD Sender: No OFD packet to send [04:04:17]OFD Sender: No OFD packet to send [04:04:22]OFD Sender: No OFD packet to send [04:04:27]OFD Sender: No OFD packet to send [04:04:32]OFD Sender: No OFD packet to send [04:04:37]OFD Sender: No OFD packet to send [04:04:42]OFD Sender: No OFD packet to send [04:04:47]OFD Sender: No OFD packet to send [04:04:52]OFD Sender: No OFD packet to send [04:04:57]OFD Sender: No OFD packet to send [04:05:02]OFD Sender: No OFD packet to send [04:05:07]OFD Sender: No OFD packet to send [04:05:12]OFD Sender: No OFD packet to send [04:05:17]OFD Sender: No OFD packet to send [04:05:22]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:13]OFD Sender: No OFD packet to send [04:17:18]OFD Sender: No OFD packet to send [04:17:23]OFD Sender: No OFD packet to send [04:17:28]OFD Sender: No OFD packet to send [04:17:33]OFD Sender: No OFD packet to send [04:17:38]OFD Sender: No OFD packet to send [04:17:43]OFD Sender: No OFD packet to send [04:17:48]OFD Sender: No OFD packet to send [04:17:53]OFD Sender: No OFD packet to send [04:17:58]OFD Sender: No OFD packet to send [04:18:03]OFD Sender: No OFD packet to send [04:18:08]OFD Sender: No OFD packet to send [04:18:13]OFD Sender: No OFD packet to send [04:18:18]OFD Sender: No OFD packet to send [04:18:23]OFD Sender: No OFD packet to send [04:18:28]OFD Sender: No OFD packet to send [04:18:33]OFD Sender: No OFD packet to send [04:18:38]OFD Sender: No OFD packet to send [04:18:43]OFD Sender: No OFD packet to send [04:18:48]OFD Sender: No OFD packet to send [04:18:53]OFD Sender: No OFD packet to send [04:18:58]OFD Sender: No OFD packet to send [04:19:03]OFD Sender: No OFD packet to send [04:19:08]OFD Sender: No OFD packet to send [04:19:13]OFD Sender: No OFD packet to send [04:19:18]OFD Sender: No OFD packet to send [04:19:23]OFD Sender: No OFD packet to send [04:19:28]OFD Sender: No OFD packet to send [04:19:33]OFD Sender: No OFD packet to send [04:19:38]OFD Sender: No OFD packet to send [04:19:43]OFD Sender: No OFD packet to send [04:19:48]OFD Sender: No OFD packet to send [04:19:53]OFD Sender: No OFD packet to send [04:19:58]OFD Sender: No OFD packet to send [04:20:03]OFD Sender: No OFD packet to send [04:20:08]OFD Sender: No OFD packet to send [04:20:13]OFD Sender: No OFD packet to send [04:20:18]OFD Sender: No OFD packet to send [04:20:23]OFD Sender: No OFD packet to send [04:20:28]OFD Sender: No OFD packet to send [04:20:33]OFD Sender: No OFD packet to send [04:20:38]OFD Sender: No OFD packet to send [04:20:43]OFD Sender: No OFD packet to send [04:20:48]OFD Sender: No OFD packet to send [04:20:53]OFD Sender: No OFD packet to send [04:20:58]OFD Sender: No OFD packet to send [04:21:03]OFD Sender: No OFD packet to send [04:21:08]OFD Sender: No OFD packet to send [04:21:13]OFD Sender: No OFD packet to send [04:21:18]OFD Sender: No OFD packet to send [04:21:23]OFD Sender: No OFD packet to send [04:21:28]OFD Sender: No OFD packet to send [04:21:33]OFD Sender: No OFD packet to send [04:21:38]OFD Sender: No OFD packet to send [04:21:43]OFD Sender: No OFD packet to send [04:21:48]OFD Sender: No OFD packet to send [04:21:53]OFD Sender: No OFD packet to send [04:21:58]OFD Sender: No OFD packet to send [04:22:03]OFD Sender: No OFD packet to send [04:22:08]OFD Sender: No OFD packet to send [04:22:13]OFD Sender: No OFD packet to send [04:22:18]OFD Sender: No OFD packet to send [04:22:23]OFD Sender: No OFD packet to send [04:22:28]OFD Sender: No OFD packet to send [04:22:33]OFD Sender: No OFD packet to send [04:22:38]OFD Sender: No OFD packet to send [04:22:43]OFD Sender: No OFD packet to send [04:22:48]OFD Sender: No OFD packet to send [04:22:53]OFD Sender: No OFD packet to send [04:22:58]OFD Sender: No OFD packet to send [04:23:03]OFD Sender: No OFD packet to send [04:23:08]OFD Sender: No OFD packet to send [04:23:13]OFD Sender: No OFD packet to send [04:23:18]OFD Sender: No OFD packet to send [04:23:23]OFD Sender: No OFD packet to send [04:23:28]OFD Sender: No OFD packet to send [04:23:33]OFD Sender: No OFD packet to send [04:23:38]OFD Sender: No OFD packet to send [04:23:43]OFD Sender: No OFD packet to send [04:23:48]OFD Sender: No OFD packet to send [04:23:53]OFD Sender: No OFD packet to send [04:23:58]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:19]OFD Sender: No OFD packet to send [04:32:24]OFD Sender: No OFD packet to send [04:32:29]OFD Sender: No OFD packet to send [04:32:34]OFD Sender: No OFD packet to send [04:32:39]OFD Sender: No OFD packet to send [04:32:44]OFD Sender: No OFD packet to send [04:32:49]OFD Sender: No OFD packet to send [04:32:54]OFD Sender: No OFD packet to send [04:32:59]OFD Sender: No OFD packet to send [04:33:04]OFD Sender: No OFD packet to send [04:33:09]OFD Sender: No OFD packet to send [04:33:14]OFD Sender: No OFD packet to send [04:33:19]OFD Sender: No OFD packet to send [04:33:24]OFD Sender: No OFD packet to send [04:33:29]OFD Sender: No OFD packet to send [04:33:34]OFD Sender: No OFD packet to send [04:33:39]OFD Sender: No OFD packet to send [04:33:44]OFD Sender: No OFD packet to send [04:33:49]OFD Sender: No OFD packet to send [04:33:54]OFD Sender: No OFD packet to send [04:33:59]OFD Sender: No OFD packet to send [04:34:04]OFD Sender: No OFD packet to send [04:34:09]OFD Sender: No OFD packet to send [04:34:14]OFD Sender: No OFD packet to send [04:34:19]OFD Sender: No OFD packet to send [04:34:24]OFD Sender: No OFD packet to send [04:34:29]OFD Sender: No OFD packet to send [04:34:34]OFD Sender: No OFD packet to send [04:34:39]OFD Sender: No OFD packet to send [04:34:44]OFD Sender: No OFD packet to send [04:34:49]OFD Sender: No OFD packet to send [04:34:54]OFD Sender: No OFD packet to send [04:34:59]OFD Sender: No OFD packet to send [04:35:04]OFD Sender: No OFD packet to send [04:35:09]OFD Sender: No OFD packet to send [04:35:14]OFD Sender: No OFD packet to send [04:35:19]OFD Sender: No OFD packet to send [04:35:24]OFD Sender: No OFD packet to send [04:35:29]OFD Sender: No OFD packet to send [04:35:34]OFD Sender: No OFD packet to send [04:35:39]OFD Sender: No OFD packet to send [04:35:44]OFD Sender: No OFD packet to send [04:35:49]OFD Sender: No OFD packet to send [04:35:54]OFD Sender: No OFD packet to send [04:35:59]OFD Sender: No OFD packet to send [04:36:04]OFD Sender: No OFD packet to send [04:36:09]OFD Sender: No OFD packet to send [04:36:14]OFD Sender: No OFD packet to send [04:36:19]OFD Sender: No OFD packet to send [04:36:24]OFD Sender: No OFD packet to send [04:36:29]OFD Sender: No OFD packet to send [04:36:34]OFD Sender: No OFD packet to send [04:36:39]OFD Sender: No OFD packet to send [04:36:44]OFD Sender: No OFD packet to send [04:36:49]OFD Sender: No OFD packet to send [04:36:54]OFD Sender: No OFD packet to send [04:36:59]OFD Sender: No OFD packet to send [04:37:04]OFD Sender: No OFD packet to send [04:37:09]OFD Sender: No OFD packet to send [04:37:14]OFD Sender: No OFD packet to send [04:37:19]OFD Sender: No OFD packet to send [04:37:24]OFD Sender: No OFD packet to send [04:37:29]OFD Sender: No OFD packet to send [04:37:34]OFD Sender: No OFD packet to send [04:37:39]OFD Sender: No OFD packet to send [04:37:44]OFD Sender: No OFD packet to send [04:37:49]OFD Sender: No OFD packet to send [04:37:54]OFD Sender: No OFD packet to send [04:37:59]OFD Sender: No OFD packet to send [04:38:04]OFD Sender: No OFD packet to send [04:38:09]OFD Sender: No OFD packet to send [04:38:14]OFD Sender: No OFD packet to send [04:38:19]OFD Sender: No OFD packet to send [04:38:24]OFD Sender: No OFD packet to send [04:38:29]OFD Sender: No OFD packet to send [04:38:34]OFD Sender: No OFD packet to send [04:38:39]OFD Sender: No OFD packet to send [04:38:44]OFD Sender: No OFD packet to send [04:38:49]OFD Sender: No OFD packet to send [04:38:54]OFD Sender: No OFD packet to send [04:38:59]OFD Sender: No OFD packet to send [04:39:04]OFD Sender: No OFD packet to send [04:39:09]OFD Sender: No OFD packet to send [04:39:14]OFD Sender: No OFD packet to send [04:39:19]OFD Sender: No OFD packet to send [04:39:24]OFD Sender: No OFD packet to send [04:39:29]OFD Sender: No OFD packet to send [04:39:34]OFD Sender: No OFD packet to send [04:39:39]OFD Sender: No OFD packet to send [04:39:44]OFD Sender: No OFD packet to send [04:39:49]OFD Sender: No OFD packet to send [04:39:54]OFD Sender: No OFD packet to send [04:39:59]OFD Sender: No OFD packet to send [04:40:04]OFD Sender: No OFD packet to send [04:40:09]OFD Sender: No OFD packet to send [04:40:14]OFD Sender: No OFD packet to send [04:40:19]OFD Sender: No OFD packet to send [04:40:24]OFD Sender: No OFD packet to send [04:40:29]OFD Sender: No OFD packet to send [04:40:34]OFD Sender: No OFD packet to send [04:40:39]OFD Sender: No OFD packet to send [04:40:44]OFD Sender: No OFD packet to send [04:40:49]OFD Sender: No OFD packet to send [04:40:54]OFD Sender: No OFD packet to send [04:40:59]OFD Sender: No OFD packet to send [04:41:04]OFD Sender: No OFD packet to send [04:41:09]OFD Sender: No OFD packet to send [04:41:14]OFD Sender: No OFD packet to send [04:41:19]OFD Sender: No OFD packet to send [04:41:24]OFD Sender: No OFD packet to send [04:41:29]OFD Sender: No OFD packet to send [04:41:34]OFD Sender: No OFD packet to send [04:41:39]OFD Sender: No OFD packet to send [04:41:44]OFD Sender: No OFD packet to send [04:41:49]OFD Sender: No OFD packet to send [04:41:54]OFD Sender: No OFD packet to send [04:41:59]OFD Sender: No OFD packet to send [04:42:04]OFD Sender: No OFD packet to send [04:42:09]OFD Sender: No OFD packet to send [04:42:14]OFD Sender: No OFD packet to send [04:42:19]OFD Sender: No OFD packet to send [04:42:24]OFD Sender: No OFD packet to send [04:42:29]OFD Sender: No OFD packet to send [04:42:34]OFD Sender: No OFD packet to send [04:42:39]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:30]OFD Sender: No OFD packet to send [04:47:35]OFD Sender: No OFD packet to send [04:47:40]OFD Sender: No OFD packet to send [04:47:45]OFD Sender: No OFD packet to send [04:47:50]OFD Sender: No OFD packet to send [04:47:55]OFD Sender: No OFD packet to send [04:48:00]OFD Sender: No OFD packet to send [04:48:05]OFD Sender: No OFD packet to send [04:48:10]OFD Sender: No OFD packet to send [04:48:15]OFD Sender: No OFD packet to send [04:48:20]OFD Sender: No OFD packet to send [04:48:25]OFD Sender: No OFD packet to send [04:48:30]OFD Sender: No OFD packet to send [04:48:35]OFD Sender: No OFD packet to send [04:48:40]OFD Sender: No OFD packet to send [04:48:45]OFD Sender: No OFD packet to send [04:48:50]OFD Sender: No OFD packet to send [04:48:55]OFD Sender: No OFD packet to send [04:49:00]OFD Sender: No OFD packet to send [04:49:05]OFD Sender: No OFD packet to send [04:49:10]OFD Sender: No OFD packet to send [04:49:15]OFD Sender: No OFD packet to send [04:49:20]OFD Sender: No OFD packet to send [04:49:25]OFD Sender: No OFD packet to send [04:49:30]OFD Sender: No OFD packet to send [04:49:35]OFD Sender: No OFD packet to send [04:49:40]OFD Sender: No OFD packet to send [04:49:45]OFD Sender: No OFD packet to send [04:49:50]OFD Sender: No OFD packet to send [04:49:55]OFD Sender: No OFD packet to send [04:50:00]OFD Sender: No OFD packet to send [04:50:05]OFD Sender: No OFD packet to send [04:50:10]OFD Sender: No OFD packet to send [04:50:15]OFD Sender: No OFD packet to send [04:50:20]OFD Sender: No OFD packet to send [04:50:25]OFD Sender: No OFD packet to send [04:50:30]OFD Sender: No OFD packet to send [04:50:35]OFD Sender: No OFD packet to send [04:50:40]OFD Sender: No OFD packet to send [04:50:45]OFD Sender: No OFD packet to send [04:50:50]OFD Sender: No OFD packet to send [04:50:55]OFD Sender: No OFD packet to send [04:51:00]OFD Sender: No OFD packet to send [04:51:05]OFD Sender: No OFD packet to send [04:51:10]OFD Sender: No OFD packet to send [04:51:15]OFD Sender: No OFD packet to send [04:51:20]OFD Sender: No OFD packet to send [04:51:25]OFD Sender: No OFD packet to send [04:51:30]OFD Sender: No OFD packet to send [04:51:35]OFD Sender: No OFD packet to send [04:51:40]OFD Sender: No OFD packet to send [04:51:45]OFD Sender: No OFD packet to send [04:51:50]OFD Sender: No OFD packet to send [04:51:55]OFD Sender: No OFD packet to send [04:52:00]OFD Sender: No OFD packet to send [04:52:05]OFD Sender: No OFD packet to send [04:52:10]OFD Sender: No OFD packet to send [04:52:15]OFD Sender: No OFD packet to send [04:52:20]OFD Sender: No OFD packet to send [04:52:25]OFD Sender: No OFD packet to send [04:52:30]OFD Sender: No OFD packet to send [04:52:35]OFD Sender: No OFD packet to send [04:52:40]OFD Sender: No OFD packet to send [04:52:45]OFD Sender: No OFD packet to send [04:52:50]OFD Sender: No OFD packet to send [04:52:55]OFD Sender: No OFD packet to send [04:53:00]OFD Sender: No OFD packet to send [04:53:05]OFD Sender: No OFD packet to send [04:53:10]OFD Sender: No OFD packet to send [04:53:15]OFD Sender: No OFD packet to send [04:53:20]OFD Sender: No OFD packet to send [04:53:25]OFD Sender: No OFD packet to send [04:53:30]OFD Sender: No OFD packet to send [04:53:35]OFD Sender: No OFD packet to send [04:53:40]OFD Sender: No OFD packet to send [04:53:45]OFD Sender: No OFD packet to send [04:53:50]OFD Sender: No OFD packet to send [04:53:55]OFD Sender: No OFD packet to send [04:54:00]OFD Sender: No OFD packet to send [04:54:05]OFD Sender: No OFD packet to send [04:54:10]OFD Sender: No OFD packet to send [04:54:15]OFD Sender: No OFD packet to send [04:54:20]OFD Sender: No OFD packet to send [04:54:25]OFD Sender: No OFD packet to send [04:54:30]OFD Sender: No OFD packet to send [04:54:35]OFD Sender: No OFD packet to send [04:54:40]OFD Sender: No OFD packet to send [04:54:45]OFD Sender: No OFD packet to send [04:54:50]OFD Sender: No OFD packet to send [04:54:55]OFD Sender: No OFD packet to send [04:55:00]OFD Sender: No OFD packet to send [04:55:05]OFD Sender: No OFD packet to send [04:55:10]OFD Sender: No OFD packet to send [04:55:15]OFD Sender: No OFD packet to send [04:55:20]OFD Sender: No OFD packet to send [04:55:25]OFD Sender: No OFD packet to send [04:55:30]OFD Sender: No OFD packet to send [04:55:35]OFD Sender: No OFD packet to send [04:55:40]OFD Sender: No OFD packet to send [04:55:45]OFD Sender: No OFD packet to send [04:55:50]OFD Sender: No OFD packet to send [04:55:55]OFD Sender: No OFD packet to send [04:56:00]OFD Sender: No OFD packet to send [04:56:05]OFD Sender: No OFD packet to send [04:56:10]OFD Sender: No OFD packet to send [04:56:15]OFD Sender: No OFD packet to send [04:56:20]OFD Sender: No OFD packet to send [04:56:25]OFD Sender: No OFD packet to send [04:56:30]OFD Sender: No OFD packet to send [04:56:35]OFD Sender: No OFD packet to send [04:56:40]OFD Sender: No OFD packet to send [04:56:45]OFD Sender: No OFD packet to send [04:56:50]OFD Sender: No OFD packet to send [04:56:55]OFD Sender: No OFD packet to send [04:57:00]OFD Sender: No OFD packet to send [04:57:05]OFD Sender: No OFD packet to send [04:57:10]OFD Sender: No OFD packet to send [04:57:15]OFD Sender: No OFD packet to send [04:57:20]OFD Sender: No OFD packet to send [04:57:25]OFD Sender: No OFD packet to send [04:57:30]OFD Sender: No OFD packet to send [04:57:35]OFD Sender: No OFD packet to send [04:57:40]OFD Sender: No OFD packet to send [04:57:45]OFD Sender: No OFD packet to send [04:57:50]OFD Sender: No OFD packet to send [04:57:55]OFD Sender: No OFD packet to send [04:58:00]OFD Sender: No OFD packet to send [04:58:05]OFD Sender: No OFD packet to send [04:58:10]OFD Sender: No OFD packet to send [04:58:15]OFD Sender: No OFD packet to send [04:58:20]OFD Sender: No OFD packet to send [04:58:25]OFD Sender: No OFD packet to send [04:58:30]OFD Sender: No OFD packet to send [04:58:35]OFD Sender: No OFD packet to send [04:58:40]OFD Sender: No OFD packet to send [04:58:45]OFD Sender: No OFD packet to send [04:58:50]OFD Sender: No OFD packet to send [04:58:55]OFD Sender: No OFD packet to send [04:59:00]OFD Sender: No OFD packet to send [04:59:05]OFD Sender: No OFD packet to send [04:59:10]OFD Sender: No OFD packet to send [04:59:15]OFD Sender: No OFD packet to send [04:59:20]OFD Sender: No OFD packet to send [04:59:25]OFD Sender: No OFD packet to send [04:59:30]OFD Sender: No OFD packet to send [04:59:35]OFD Sender: No OFD packet to send [04:59:40]OFD Sender: No OFD packet to send [04:59:45]OFD Sender: No OFD packet to send [04:59:50]OFD Sender: No OFD packet to send [04:59:55]OFD Sender: No OFD packet to send [05:00:00]OFD Sender: No OFD packet to send [05:00:05]OFD Sender: No OFD packet to send [05:00:10]OFD Sender: No OFD packet to send [05:00:15]OFD Sender: No OFD packet to send [05:00:20]OFD Sender: No OFD packet to send [05:00:25]OFD Sender: No OFD packet to send [05:00:30]OFD Sender: No OFD packet to send [05:00:35]OFD Sender: No OFD packet to send [05:00:40]OFD Sender: No OFD packet to send [05:00:45]OFD Sender: No OFD packet to send [05:00:50]OFD Sender: No OFD packet to send [05:00:55]OFD Sender: No OFD packet to send [05:01:00]OFD Sender: No OFD packet to send [05:01:05]OFD Sender: No OFD packet to send [05:01:10]OFD Sender: No OFD packet to send [05:01:15]OFD Sender: No OFD packet to send [05:01:20]OFD Sender: No OFD packet to send [05:01:25]OFD Sender: No OFD packet to send [05:01:30]OFD Sender: No OFD packet to send [05:01:35]OFD Sender: No OFD packet to send [05:01:40]OFD Sender: No OFD packet to send [05:01:45]OFD Sender: No OFD packet to send [05:01:50]OFD Sender: No OFD packet to send [05:01:55]OFD Sender: No OFD packet to send [05:02:00]OFD Sender: No OFD packet to send [05:02:05]OFD Sender: No OFD packet to send [05:02:10]OFD Sender: No OFD packet to send [05:02:15]OFD Sender: No OFD packet to send [05:02:20]OFD Sender: No OFD packet to send [05:02:25]OFD Sender: No OFD packet to send [05:02:31]OFD Sender: No OFD packet to send [05:02:36]OFD Sender: No OFD packet to send [05:02:41]OFD Sender: No OFD packet to send [05:02:46]OFD Sender: No OFD packet to send [05:02:51]OFD Sender: No OFD packet to send [05:02:56]OFD Sender: No OFD packet to send [05:03:01]OFD Sender: No OFD packet to send [05:03:06]OFD Sender: No OFD packet to send [05:03:11]OFD Sender: No OFD packet to send [05:03:16]OFD Sender: No OFD packet to send [05:03:21]OFD Sender: No OFD packet to send [05:03:26]OFD Sender: No OFD packet to send [05:03:31]OFD Sender: No OFD packet to send [05:03:36]OFD Sender: No OFD packet to send [05:03:41]OFD Sender: No OFD packet to send [05:03:46]OFD Sender: No OFD packet to send [05:03:51]OFD Sender: No OFD packet to send [05:03:56]OFD Sender: No OFD packet to send [05:04:01]OFD Sender: No OFD packet to send [05:04:06]OFD Sender: No OFD packet to send [05:04:11]OFD Sender: No OFD packet to send [05:04:16]OFD Sender: No OFD packet to send [05:04:21]OFD Sender: No OFD packet to send [05:04:26]OFD Sender: No OFD packet to send [05:04:31]OFD Sender: No OFD packet to send [05:04:36]OFD Sender: No OFD packet to send [05:04:41]OFD Sender: No OFD packet to send [05:04:46]OFD Sender: No OFD packet to send [05:04:51]OFD Sender: No OFD packet to send [05:04:56]OFD Sender: No OFD packet to send [05:05:01]OFD Sender: No OFD packet to send [05:05:06]OFD Sender: No OFD packet to send [05:05:11]OFD Sender: No OFD packet to send [05:05:16]OFD Sender: No OFD packet to send [05:05:21]OFD Sender: No OFD packet to send [05:05:26]OFD Sender: No OFD packet to send [05:05:31]OFD Sender: No OFD packet to send [05:05:36]OFD Sender: No OFD packet to send [05:05:41]OFD Sender: No OFD packet to send [05:05:46]OFD Sender: No OFD packet to send [05:05:51]OFD Sender: No OFD packet to send [05:05:56]OFD Sender: No OFD packet to send [05:06:01]OFD Sender: No OFD packet to send [05:06:06]OFD Sender: No OFD packet to send [05:06:11]OFD Sender: No OFD packet to send [05:06:16]OFD Sender: No OFD packet to send [05:06:21]OFD Sender: No OFD packet to send [05:06:26]OFD Sender: No OFD packet to send [05:06:31]OFD Sender: No OFD packet to send [05:06:36]OFD Sender: No OFD packet to send [05:06:41]OFD Sender: No OFD packet to send [05:06:46]OFD Sender: No OFD packet to send [05:06:51]OFD Sender: No OFD packet to send [05:06:56]OFD Sender: No OFD packet to send [05:07:01]OFD Sender: No OFD packet to send [05:07:06]OFD Sender: No OFD packet to send [05:07:11]OFD Sender: No OFD packet to send [05:07:16]OFD Sender: No OFD packet to send [05:07:21]OFD Sender: No OFD packet to send [05:07:26]OFD Sender: No OFD packet to send [05:07:31]OFD Sender: No OFD packet to send [05:07:36]OFD Sender: No OFD packet to send [05:07:41]OFD Sender: No OFD packet to send [05:07:46]OFD Sender: No OFD packet to send [05:07:51]OFD Sender: No OFD packet to send [05:07:56]OFD Sender: No OFD packet to send [05:08:01]OFD Sender: No OFD packet to send [05:08:06]OFD Sender: No OFD packet to send [05:08:11]OFD Sender: No OFD packet to send [05:08:16]OFD Sender: No OFD packet to send [05:08:21]OFD Sender: No OFD packet to send [05:08:26]OFD Sender: No OFD packet to send [05:08:31]OFD Sender: No OFD packet to send [05:08:36]OFD Sender: No OFD packet to send [05:08:41]OFD Sender: No OFD packet to send [05:08:46]OFD Sender: No OFD packet to send [05:08:51]OFD Sender: No OFD packet to send [05:08:56]OFD Sender: No OFD packet to send [05:09:01]OFD Sender: No OFD packet to send [05:09:06]OFD Sender: No OFD packet to send [05:09:11]OFD Sender: No OFD packet to send [05:09:16]OFD Sender: No OFD packet to send [05:09:21]OFD Sender: No OFD packet to send [05:09:26]OFD Sender: No OFD packet to send [05:09:31]OFD Sender: No OFD packet to send [05:09:36]OFD Sender: No OFD packet to send [05:09:41]OFD Sender: No OFD packet to send [05:09:46]OFD Sender: No OFD packet to send [05:09:51]OFD Sender: No OFD packet to send [05:09:56]OFD Sender: No OFD packet to send [05:10:01]OFD Sender: No OFD packet to send [05:10:06]OFD Sender: No OFD packet to send [05:10:11]OFD Sender: No OFD packet to send [05:10:16]OFD Sender: No OFD packet to send [05:10:21]OFD Sender: No OFD packet to send [05:10:26]OFD Sender: No OFD packet to send [05:10:31]OFD Sender: No OFD packet to send [05:10:36]OFD Sender: No OFD packet to send [05:10:41]OFD Sender: No OFD packet to send [05:10:46]OFD Sender: No OFD packet to send [05:10:51]OFD Sender: No OFD packet to send [05:10:56]OFD Sender: No OFD packet to send [05:11:01]OFD Sender: No OFD packet to send [05:11:06]OFD Sender: No OFD packet to send [05:11:11]OFD Sender: No OFD packet to send [05:11:16]OFD Sender: No OFD packet to send [05:11:21]OFD Sender: No OFD packet to send [05:11:26]OFD Sender: No OFD packet to send [05:11:31]OFD Sender: No OFD packet to send [05:11:36]OFD Sender: No OFD packet to send [05:11:41]OFD Sender: No OFD packet to send [05:11:46]OFD Sender: No OFD packet to send [05:11:51]OFD Sender: No OFD packet to send [05:11:56]OFD Sender: No OFD packet to send [05:12:01]OFD Sender: No OFD packet to send [05:12:06]OFD Sender: No OFD packet to send [05:12:11]OFD Sender: No OFD packet to send [05:12:16]OFD Sender: No OFD packet to send [05:12:21]OFD Sender: No OFD packet to send [05:12:26]OFD Sender: No OFD packet to send [05:12:31]OFD Sender: No OFD packet to send [05:12:36]OFD Sender: No OFD packet to send [05:12:41]OFD Sender: No OFD packet to send [05:12:46]OFD Sender: No OFD packet to send [05:12:51]OFD Sender: No OFD packet to send [05:12:56]OFD Sender: No OFD packet to send [05:13:01]OFD Sender: No OFD packet to send [05:13:06]OFD Sender: No OFD packet to send [05:13:11]OFD Sender: No OFD packet to send [05:13:16]OFD Sender: No OFD packet to send [05:13:21]OFD Sender: No OFD packet to send [05:13:26]OFD Sender: No OFD packet to send [05:13:31]OFD Sender: No OFD packet to send [05:13:36]OFD Sender: No OFD packet to send [05:13:41]OFD Sender: No OFD packet to send [05:13:46]OFD Sender: No OFD packet to send [05:13:51]OFD Sender: No OFD packet to send [05:13:56]OFD Sender: No OFD packet to send [05:14:01]OFD Sender: No OFD packet to send [05:14:06]OFD Sender: No OFD packet to send [05:14:11]OFD Sender: No OFD packet to send [05:14:16]OFD Sender: No OFD packet to send [05:14:21]OFD Sender: No OFD packet to send [05:14:26]OFD Sender: No OFD packet to send [05:14:31]OFD Sender: No OFD packet to send [05:14:36]OFD Sender: No OFD packet to send [05:14:41]OFD Sender: No OFD packet to send [05:14:46]OFD Sender: No OFD packet to send [05:14:51]OFD Sender: No OFD packet to send [05:14:56]OFD Sender: No OFD packet to send [05:15:01]OFD Sender: No OFD packet to send [05:15:05]accept exits with 9 [05:15:05]New connection [05:15:05]New thread 3066785124 created [05:15:05]Thread 3066928484 joined [05:15:05]Waiting for new connection... [05:15:05] Sock 9.Parse request [05:15:05]Sock 9.Check first char [05:15:05]Sock 9.First char is OK [05:15:05]request: POST /json_proto HTTP/1.0 [05:15:05]Method: POST [05:15:05]URL: /json_proto [05:15:05]Method is POST - this is cgi request [05:15:05]url: /json_proto [05:15:05]query_string will be loaded in cgi processing [05:15:05]execute_cgi json_proto POST (null) [05:15:05]execute_cgi path=json_proto method=POST [05:15:05]POST find Content-Length [05:15:05]Host: 172.17.56.4:8080 [05:15:05]Content-Length: 679 [05:15:05]Content-Type: application/json [05:15:05] [05:15:05]POST finish read [05:15:05]Found Content-Length = 679 [05:15:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\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" ] } } [05:15:05]execute_script... [05:15: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)459237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\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" ] } } [05:15:05]POST & json_proto [05:15:05]process_json_proto [05:15:05]json parsed OK: [05:15:05]protocol is kg_v1.0 [05:15:05]action value=close_receipt [05:15:05]process_action close_receipt [05:15:05]cmd_close_receipt [05:15:05]MH_GetDate [05:15:05]Write to MH i2c: F0 00 00 12 17 18 [05:15:05]Write i2c OK [05:15:05]MH_I2C_Read... [05:15:05]Read from MH i2c: F0 [05:15:05]MH_I2C_Read... [05:15:05]Read from MH i2c: F0 09 00 [05:15:05]MH_I2C_Read... [05:15:05]Read from MH i2c: F0 09 00 12 17 00 5C B0 94 66 C9 DC B2 64 E2 [05:15:05]GetLastDocTimeStamp 1721009289 [05:15:05]current date 1721020508 [05:15:05]FM_GetShiftState [05:15:05]SAM_PROTO_GetShiftState [05:15:05]wFMCommunicate request_size=4 [05:15:05]MH_SAM_APDU [05:15:05]CAPDU: 80 13 01 00 [05:15:05]Write to MH i2c: E2 08 00 13 17 80 13 01 00 00 00 00 00 A7 [05:15:05]Write i2c OK [05:15:05]MH_I2C_Read... [05:15:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:15:05]Read from MH i2c: E2 [05:15:05]MH_I2C_Read... [05:15:05]Read from MH i2c: E2 0E 00 [05:15:05]MH_I2C_Read... [05:15:05]Read from MH i2c: E2 0E 00 13 17 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 80 [05:15:05]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [05:15:05]wFMCommunicate OK [05:15:05]SAM_PROTO_GetShiftState done [05:15:05]FM_GetShiftState done [05:15:05]opened in 1721003876 [05:15:05]opened+sec_in_day 1721090276 [05:15:05]quantity*price = 300038 [05:15:05]sum+1 = 300040 [05:15:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.62 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 9 15.07.2024 05:15 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165136 ФПД: 92740230661306 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T051508&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165136&fm=92740230661306&tin=02508201610067®Number=0000000000090829&sum=300000 [05:15:06]StoreToDocumentArchive [05:15:06]shift 448 fd 165136 [05:15:06]save to /storage/0448/doc_00165136 [05:15:06]save last doc name /storage/0448/doc_00165136 to /storage/kkm_last_doc_name [05:15:06]save OK [05:15:06]Clear old archive folders... [05:15:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [05:15:06]tlvbuf is 01365E00 [05:15:06]SAM_PROTO_ClearQueue [05:15:06]wFMCommunicate request_size=4 [05:15:06]MH_SAM_APDU [05:15:06]CAPDU: 80 09 00 00 [05:15:06]Write to MH i2c: E2 08 00 20 17 80 09 00 00 00 00 00 00 A9 [05:15:06]Write i2c OK [05:15:06]MH_I2C_Read... [05:15:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:15:06]Read from MH i2c: E2 [05:15:06]MH_I2C_Read... [05:15:06]Read from MH i2c: E2 03 00 [05:15:06]MH_I2C_Read... [05:15:06]Read from MH i2c: E2 03 00 20 17 00 90 00 AB [05:15:06]RAPDU: 90 00 [05:15:06]wFMCommunicate OK [05:15:06]SAM_PROTO_ClearQueue done [05:15:06]KKMCreateOFDPacket [05:15:06]OFDProtocolAddRootSTLVToBuf [05:15:06]FM_MakeSignedData [05:15:06]FM_MakeSignedData [05:15:06]SAM_PROTO_SignData [05:15:06]wFMCommunicate request_size=4 [05:15:06]MH_SAM_APDU [05:15:06]CAPDU: 80 0D 01 02 [05:15:06]Write to MH i2c: E2 08 00 21 17 80 0D 01 02 00 00 00 00 B1 [05:15:06]Write i2c OK [05:15:06]MH_I2C_Read... [05:15:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:15:06]Read from MH i2c: E2 [05:15:06]MH_I2C_Read... [05:15:06]Read from MH i2c: E2 03 00 [05:15:06]MH_I2C_Read... [05:15:06]Read from MH i2c: E2 03 00 21 17 00 90 00 AC [05:15:06]RAPDU: 90 00 [05:15:06]wFMCommunicate OK [05:15:06]wFMCommunicate request_size=255 [05:15:06]MH_SAM_APDU [05:15:06]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 09 00 00 00 F4 03 04 00 5C B0 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 10 85 02 00 35 04 06 00 54 58 C4 81 [05:15:06]Write to MH i2c: E2 02 01 22 17 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 09 00 00 00 F4 03 04 00 5C B0 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 10 85 02 00 35 04 06 00 54 58 C4 81 00 00 2B [05:15:06]Write i2c OK [05:15:06]MH_I2C_Read... [05:15:06]OFD Sender: No OFD packet to send [05:15:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:15:06]Read from MH i2c: E2 [05:15:06]MH_I2C_Read... [05:15:06]Read from MH i2c: E2 03 00 [05:15:06]MH_I2C_Read... [05:15:06]Read from MH i2c: E2 03 00 22 17 00 90 00 AD [05:15:06]RAPDU: 90 00 [05:15:06]wFMCommunicate OK [05:15:06]wFMCommunicate request_size=7 [05:15:06]MH_SAM_APDU [05:15:06]CAPDU: 80 0D 02 02 02 44 BA [05:15:06]Write to MH i2c: E2 0A 00 23 17 80 0D 02 02 02 00 44 BA 00 00 B6 [05:15:06]Write i2c OK [05:15:06]MH_I2C_Read... [05:15:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:15:06]Read from MH i2c: E2 [05:15:06]MH_I2C_Read... [05:15:06]Read from MH i2c: E2 03 00 [05:15:06]MH_I2C_Read... [05:15:06]Read from MH i2c: E2 03 00 23 17 00 90 00 AE [05:15:06]RAPDU: 90 00 [05:15:06]wFMCommunicate OK [05:15:06]wFMCommunicate request_size=4 [05:15:06]MH_SAM_APDU [05:15:06]CAPDU: 80 0D 03 02 [05:15:06]Write to MH i2c: E2 08 00 24 17 80 0D 03 02 00 00 00 00 B6 [05:15:06]Write i2c OK [05:15:06]MH_I2C_Read... [05:15:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:15:07]Read from MH i2c: E2 [05:15:07]MH_I2C_Read... [05:15:07]Read from MH i2c: E2 0B 00 [05:15:07]MH_I2C_Read... [05:15:07]Read from MH i2c: E2 0B 00 24 17 00 E0 BC 71 17 44 75 B8 C4 90 00 10 [05:15:07]RAPDU: E0 BC 71 17 44 75 B8 C4 90 00 [05:15:07]wFMCommunicate OK [05:15:07]SAM_PROTO_SignData done [05:15:07]FM_MakeSignedData done [05:15:07]CreateOFDProtocolMessage [05:15:07]wFMCommunicate request_size=4 [05:15:07]MH_SAM_APDU [05:15:07]CAPDU: 80 11 00 00 [05:15:07]Write to MH i2c: E2 08 00 25 17 80 11 00 00 00 00 00 00 B6 [05:15:07]Write i2c OK [05:15:07]MH_I2C_Read... [05:15:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:15:07]Read from MH i2c: E2 [05:15:07]MH_I2C_Read... [05:15:07]Read from MH i2c: E2 17 00 [05:15:07]MH_I2C_Read... [05:15:07]Read from MH i2c: E2 17 00 25 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0C [05:15:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [05:15:07]wFMCommunicate OK [05:15:07]CreateOFDProtocolMessage done [05:15:07]OFDSenderStorePacket 165136 [05:15:07]StoreOFDPacket docnum=165136 [05:15:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 13 6E 04 01 02 6B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 09 00 00 00 F4 03 04 00 5C B0 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 10 85 02 00 35 04 06 00 54 58 C4 81 44 BA E0 BC 71 17 44 75 B8 C4 [05:15:07]CheckFolder [05:15:07]dirname=/storage/ofd_packets [05:15:07]CheckFolder done [05:15:07]ProducePacketName [05:15:07]name=ofd_packets/00165136 [05:15:07]NVStorageSaveData ofd_packets/00165136 [05:15:07]File name is /storage/ofd_packets/00165136 [05:15:07]Write 298 bytes [05:15:07]NVStorageSaveData done [05:15:07]OFDSenderStorePacket done [05:15:07]KKMCreateOFDPacket done [05:15:07]NVStorageSaveData kkm_last_timestamp [05:15:07]File name is /storage/kkm_last_timestamp [05:15:07]Write 4 bytes [05:15:07]NVStorageSaveData done [05:15:07]ExternCall_PrintAddStr [05:15:07]wPrintStart [05:15:07]Write to MH i2c: 01 00 00 26 17 3D [05:15:07]Write i2c OK [05:15:07]MH_I2C_Read... [05:15:07]Read from MH i2c: 01 [05:15:07]MH_I2C_Read... [05:15:07]Read from MH i2c: 01 07 00 [05:15:07]MH_I2C_Read... [05:15:07]Read from MH i2c: 01 07 00 26 17 00 00 00 00 00 FF 0F 52 [05:15:07]RasterBufferAndPrint [05:15:07]line Счет N : (1)459237 [05:15:07]line ИНН: 02508201610067 [05:15:07]line Контрольно-Кассовый Чек [05:15:07]line ПРОДАЖА [05:15:07]line ТРК (МРК, ГНК) : 21 [05:15:07]line Товар: 2710194210 [05:15:07]line ДТ-К-5 [05:15:07]line 41.730 * 71.90 [05:15:07]line = 3000.39 [05:15:07]line НДС 12% НСП 1% [05:15:07]line > о реализуемом товаре [05:15:07]line ОКРУГЛЕНИЕ: -0.39 [05:15:07]line ИТОГО: 3000.00 [05:15:07]line Внесено: 3000.00 [05:15:07]line СДАЧА: 0.00 [05:15:07]line НСП 1% : 26.55 [05:15:07]line НДС 12% : 318.62 [05:15:07]line Наличными: 3000.00 [05:15:07]line Безнал.: 0.00 [05:15:07]line Место: АЗС № 72 "Партнер Нефть" [05:15:07]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [05:15:07]line СНО: Общий режим [05:15:07]line Чек 9 15.07.2024 05:15 [05:15:07]line Смена: 448 ФФД: 1.0 [05:15:07]line ЗНМ: 0300000160 [05:15:07]line РНМ: 0000000000090829 [05:15:07]line Версия ККМ: 001 [05:15:07]line ФМ: 0000000000874718 [05:15:07]line ФД: 165136 [05:15:07]line ФПД: 92740230661306 [05:15:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T051508&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165136&fm=92740230661306&tin=02508201610067®Number=0000000000090829&sum=300000 [05:15:07]OFD Sender: Processing packet 165136 [packets to send 106, broken 105] [05:15:07]ProducePacketName [05:15:07]name=ofd_packets/00165136 [05:15:07]OFD Sender: To server: pG, [05:15:07]CommunicateWithHost lk.salyk.kg:30040 [05:15:07]ConnectInit lk.salyk.kg [05:15:07]written 0, free lines is 4095 [05:15:07]Connected sock=10 [05:15: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 37 31 38 0C 01 00 00 13 6E 04 01 02 6B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 09 00 00 00 F4 03 04 00 5C B0 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 10 85 02 00 35 04 06 00 54 58 C4 81 44 BA E0 BC 71 17 44 75 B8 C4 [05:15:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 D2 2B 47 00 86 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 10 85 02 00 F4 03 04 00 E8 56 94 66 B6 04 01 00 00 D3 B9 C8 5F 68 45 7C ED [05:15:07]CommunicateWithHost err = 0 [05:15:07]CheckOFDResponse [05:15:07]1017 (14) - 77093643461234 [05:15:07]1041 (16) - 0000000000874718 [05:15:07]1040 (4) - 165136 [05:15:07]1012 (4) - 14.07.2024 22:53 [05:15:07]1206 (1) - 0 [05:15:07]OFD Sender: Remove packet 165136 [05:15:07]ProducePacketName [05:15:07]name=ofd_packets/00165136 [05:15:07]NVStorageDeleteData [05:15:07]Write to MH i2c: 01 00 00 50 17 67 [05:15:07]Write i2c OK [05:15:07]MH_I2C_Read... [05:15:07]Read from MH i2c: 01 [05:15:07]MH_I2C_Read... [05:15:07]Read from MH i2c: 01 07 00 [05:15:07]MH_I2C_Read... [05:15:07]Read from MH i2c: 01 07 00 50 17 00 00 00 00 00 01 0D 7C [05:15:07]RasterBufferAndPrint [05:15:07]line [05:15:07]line [05:15:07]line [05:15:07]line [05:15:07]line [05:15:07]written 0, free lines is 3335 [05:15:07]MH_Cut [05:15:07]Write to MH i2c: D1 01 00 57 17 01 40 [05:15:07]Write i2c OK [05:15:07]MH_I2C_Read... [05:15:07]Read from MH i2c: D1 [05:15:07]MH_I2C_Read... [05:15:07]Read from MH i2c: D1 01 00 [05:15:07]MH_I2C_Read... [05:15:07]Read from MH i2c: D1 01 00 57 17 00 3F [05:15:07]Write to MH i2c: 01 00 00 58 17 6F [05:15:07]Write i2c OK [05:15:07]MH_I2C_Read... [05:15:08]OFD Sender: No OFD packet to send [05:15:08]*** Cut start [05:15:08]*** Partial cut [05:15:08]*** CUTSNS_PIN = 1 [05:15:08]*** CUTSNS_PIN = 0 [05:15:08]*** Brake cut motor [05:15:09]Read from MH i2c: 01 [05:15:09]MH_I2C_Read... [05:15:09]*** Stop cut motor [05:15:09]*** Cut end [05:15:09]Read from MH i2c: 01 07 00 [05:15:09]MH_I2C_Read... [05:15:09]Read from MH i2c: 01 07 00 58 17 00 00 00 00 00 FF 0F 84 [05:15:09]process_action close_receipt done [05:15:09]requested_data is exist [05:15:09]produce_requested_data [05:15:09]requested_item fm.sn is exist - process it [05:15:09]wFMCommunicate request_size=4 [05:15:09]MH_SAM_APDU [05:15:09]CAPDU: 80 11 00 00 [05:15:09]Write to MH i2c: E2 08 00 59 17 80 11 00 00 00 00 00 00 EA [05:15:09]Write i2c OK [05:15:09]MH_I2C_Read... [05:15:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:15:09]Read from MH i2c: E2 [05:15:09]MH_I2C_Read... [05:15:09]Read from MH i2c: E2 17 00 [05:15:09]MH_I2C_Read... [05:15:09]Read from MH i2c: E2 17 00 59 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 40 [05:15:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [05:15:09]wFMCommunicate OK [05:15:09]requested_item fd.num is exist - process it [05:15:09]SAM_PROTO_GetFieldsCounters [05:15:09]wFMCommunicate request_size=4 [05:15:09]MH_SAM_APDU [05:15:09]CAPDU: 80 13 00 00 [05:15:09]Write to MH i2c: E2 08 00 5A 17 80 13 00 00 00 00 00 00 ED [05:15:09]Write i2c OK [05:15:09]MH_I2C_Read... [05:15:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:15:09]Read from MH i2c: E2 [05:15:09]MH_I2C_Read... [05:15:09]Read from MH i2c: E2 62 00 [05:15:09]MH_I2C_Read... [05:15:09]Read from MH i2c: E2 62 00 5A 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 10 85 02 00 0E 04 04 00 C0 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 87 [05:15: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 10 85 02 00 0E 04 04 00 C0 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 [05:15:09]wFMCommunicate OK [05:15:09]SAM_PROTO_GetFieldsCounters done [05:15:09]requested_item shift.num is exist - process it [05:15:09]requested_item shift.opened is exist - process it [05:15:09]req_shift_opened [05:15:09]FM_GetShiftState [05:15:09]SAM_PROTO_GetShiftState [05:15:09]wFMCommunicate request_size=4 [05:15:09]MH_SAM_APDU [05:15:09]CAPDU: 80 13 01 00 [05:15:09]Write to MH i2c: E2 08 00 5B 17 80 13 01 00 00 00 00 00 EF [05:15:09]Write i2c OK [05:15:09]MH_I2C_Read... [05:15:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:15:09]Read from MH i2c: E2 [05:15:09]MH_I2C_Read... [05:15:09]Read from MH i2c: E2 0E 00 [05:15:09]MH_I2C_Read... [05:15:09]Read from MH i2c: E2 0E 00 5B 17 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 C8 [05:15:09]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [05:15:09]wFMCommunicate OK [05:15:09]SAM_PROTO_GetShiftState done [05:15:09]FM_GetShiftState done [05:15:09]req_shift_opened done [05:15:09]requested_item shift.open_date is exist - process it [05:15:09]req_shift_open_date [05:15:09]req_shift_open_date done [05:15:09]produce_requested_data done [05:15:09]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165136,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [05:15:09]process_action_free close_receipt [05:15:09]json_value_free [05:15:09]json_value_free done [05:15:09]process_json_proto returns [05:15:09]Send response to host [05:15:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165136,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [05:15:09]free response buf [05:15:09]execute_script done [05:15:09]execute_script returns [05:15:09]free content buf [05:15:09]Sock 9.Close socket [05:15:09]Sock 9.Thread stoped [05:15:13]OFD Sender: No OFD packet to send [05:15:18]OFD Sender: No OFD packet to send [05:15:23]OFD Sender: No OFD packet to send [05:15:28]OFD Sender: No OFD packet to send [05:15:33]OFD Sender: No OFD packet to send [05:15:38]OFD Sender: No OFD packet to send [05:15:43]OFD Sender: No OFD packet to send [05:15:48]OFD Sender: No OFD packet to send [05:15:53]OFD Sender: No OFD packet to send [05:15:58]OFD Sender: No OFD packet to send [05:16:03]OFD Sender: No OFD packet to send [05:16:08]OFD Sender: No OFD packet to send [05:16:13]OFD Sender: No OFD packet to send [05:16:18]OFD Sender: No OFD packet to send [05:16:23]OFD Sender: No OFD packet to send [05:16:28]OFD Sender: No OFD packet to send [05:16:33]OFD Sender: No OFD packet to send [05:16:38]OFD Sender: No OFD packet to send [05:16:43]OFD Sender: No OFD packet to send [05:16:48]OFD Sender: No OFD packet to send [05:16:53]OFD Sender: No OFD packet to send [05:16:58]OFD Sender: No OFD packet to send [05:17:03]OFD Sender: No OFD packet to send [05:17:08]OFD Sender: No OFD packet to send [05:17:13]OFD Sender: No OFD packet to send [05:17:18]OFD Sender: No OFD packet to send [05:17:23]OFD Sender: No OFD packet to send [05:17:28]OFD Sender: No OFD packet to send [05:17:33]OFD Sender: No OFD packet to send [05:17:38]OFD Sender: No OFD packet to send [05:17:43]OFD Sender: No OFD packet to send [05:17:48]OFD Sender: No OFD packet to send [05:17:53]OFD Sender: No OFD packet to send [05:17:58]OFD Sender: No OFD packet to send [05:18:03]OFD Sender: No OFD packet to send [05:18:08]OFD Sender: No OFD packet to send [05:18:13]OFD Sender: No OFD packet to send [05:18:18]OFD Sender: No OFD packet to send [05:18:23]OFD Sender: No OFD packet to send [05:18:28]OFD Sender: No OFD packet to send [05:18:33]OFD Sender: No OFD packet to send [05:18:38]OFD Sender: No OFD packet to send [05:18:43]OFD Sender: No OFD packet to send [05:18:48]OFD Sender: No OFD packet to send [05:18:53]OFD Sender: No OFD packet to send [05:18:58]OFD Sender: No OFD packet to send [05:19:03]OFD Sender: No OFD packet to send [05:19:08]OFD Sender: No OFD packet to send [05:19:13]OFD Sender: No OFD packet to send [05:19:18]OFD Sender: No OFD packet to send [05:19:23]OFD Sender: No OFD packet to send [05:19:28]OFD Sender: No OFD packet to send [05:19:33]OFD Sender: No OFD packet to send [05:19:38]OFD Sender: No OFD packet to send [05:19:43]OFD Sender: No OFD packet to send [05:19:48]OFD Sender: No OFD packet to send [05:19:53]OFD Sender: No OFD packet to send [05:19:58]OFD Sender: No OFD packet to send [05:20:03]OFD Sender: No OFD packet to send [05:20:08]OFD Sender: No OFD packet to send [05:20:13]OFD Sender: No OFD packet to send [05:20:18]OFD Sender: No OFD packet to send [05:20:23]OFD Sender: No OFD packet to send [05:20:28]OFD Sender: No OFD packet to send [05:20:33]OFD Sender: No OFD packet to send [05:20:38]OFD Sender: No OFD packet to send [05:20:43]OFD Sender: No OFD packet to send [05:20:48]OFD Sender: No OFD packet to send [05:20:53]OFD Sender: No OFD packet to send [05:20:58]OFD Sender: No OFD packet to send [05:21:03]OFD Sender: No OFD packet to send [05:21:08]OFD Sender: No OFD packet to send [05:21:13]OFD Sender: No OFD packet to send [05:21:18]OFD Sender: No OFD packet to send [05:21:23]OFD Sender: No OFD packet to send [05:21:28]OFD Sender: No OFD packet to send [05:21:33]OFD Sender: No OFD packet to send [05:21:38]OFD Sender: No OFD packet to send [05:21:43]OFD Sender: No OFD packet to send [05:21:48]OFD Sender: No OFD packet to send [05:21:53]OFD Sender: No OFD packet to send [05:21:58]OFD Sender: No OFD packet to send [05:22:03]OFD Sender: No OFD packet to send [05:22:08]OFD Sender: No OFD packet to send [05:22:13]OFD Sender: No OFD packet to send [05:22:18]OFD Sender: No OFD packet to send [05:22:23]OFD Sender: No OFD packet to send [05:22:28]OFD Sender: No OFD packet to send [05:22:33]OFD Sender: No OFD packet to send [05:22:36]accept exits with 7 [05:22:36]New connection [05:22:36]New thread 3066928484 created [05:22:36]Thread 3066785124 joined [05:22:36]Waiting for new connection... [05:22:36] Sock 7.Parse request [05:22:36]Sock 7.Check first char [05:22:36]Sock 7.First char is OK [05:22:36]request: POST /json_proto HTTP/1.0 [05:22:36]Method: POST [05:22:36]URL: /json_proto [05:22:36]Method is POST - this is cgi request [05:22:36]url: /json_proto [05:22:36]query_string will be loaded in cgi processing [05:22:36]execute_cgi json_proto POST (null) [05:22:36]execute_cgi path=json_proto method=POST [05:22:36]POST find Content-Length [05:22:36]Host: 172.17.56.4:8080 [05:22:36]Content-Length: 677 [05:22:36]Content-Type: application/json [05:22:36] [05:22:36]POST finish read [05:22:36]Found Content-Length = 677 [05:22:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459238", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.910, "sum" : 323.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 323.00, "total" : 323.00, "payments": [ { "type": 0, "sum" : 323.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:22:36]execute_script... [05:22: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)459238", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.910, "sum" : 323.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 323.00, "total" : 323.00, "payments": [ { "type": 0, "sum" : 323.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:22:36]POST & json_proto [05:22:36]process_json_proto [05:22:36]json parsed OK: [05:22:36]protocol is kg_v1.0 [05:22:36]action value=close_receipt [05:22:36]process_action close_receipt [05:22:36]cmd_close_receipt [05:22:36]MH_GetDate [05:22:36]Write to MH i2c: F0 00 00 5C 17 62 [05:22:36]Write i2c OK [05:22:36]MH_I2C_Read... [05:22:36]Read from MH i2c: F0 [05:22:36]MH_I2C_Read... [05:22:36]Read from MH i2c: F0 09 00 [05:22:36]MH_I2C_Read... [05:22:36]Read from MH i2c: F0 09 00 5C 17 00 20 B2 94 66 C9 DC B2 64 F2 [05:22:36]GetLastDocTimeStamp 1721020508 [05:22:36]current date 1721020960 [05:22:36]FM_GetShiftState [05:22:36]SAM_PROTO_GetShiftState [05:22:36]wFMCommunicate request_size=4 [05:22:36]MH_SAM_APDU [05:22:36]CAPDU: 80 13 01 00 [05:22:36]Write to MH i2c: E2 08 00 5D 17 80 13 01 00 00 00 00 00 F1 [05:22:36]Write i2c OK [05:22:36]MH_I2C_Read... [05:22:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:22:36]Read from MH i2c: E2 [05:22:36]MH_I2C_Read... [05:22:36]Read from MH i2c: E2 0E 00 [05:22:36]MH_I2C_Read... [05:22:36]Read from MH i2c: E2 0E 00 5D 17 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 CA [05:22:36]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [05:22:36]wFMCommunicate OK [05:22:36]SAM_PROTO_GetShiftState done [05:22:36]FM_GetShiftState done [05:22:36]opened in 1721003876 [05:22:36]opened+sec_in_day 1721090276 [05:22:36]quantity*price = 32307 [05:22:36]sum+1 = 32309 [05:22:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 323.00 Внесено: 323.00 СДАЧА: 0.00 НСП 1% : 2.86 НДС 12% : 34.31 Наличными: 323.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 10 15.07.2024 05:22 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165137 ФПД: 259501199897316 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T052240&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165137&fm=259501199897316&tin=02508201610067®Number=0000000000090829&sum=32300 [05:22:37]StoreToDocumentArchive [05:22:37]shift 448 fd 165137 [05:22:37]save to /storage/0448/doc_00165137 [05:22:37]save last doc name /storage/0448/doc_00165137 to /storage/kkm_last_doc_name [05:22:37]save OK [05:22:37]Clear old archive folders... [05:22:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:22:37]tlvbuf is 013B6F10 [05:22:37]SAM_PROTO_ClearQueue [05:22:37]wFMCommunicate request_size=4 [05:22:37]MH_SAM_APDU [05:22:37]CAPDU: 80 09 00 00 [05:22:37]Write to MH i2c: E2 08 00 6A 17 80 09 00 00 00 00 00 00 F3 [05:22:37]Write i2c OK [05:22:37]MH_I2C_Read... [05:22:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:22:38]Read from MH i2c: E2 [05:22:38]MH_I2C_Read... [05:22:38]Read from MH i2c: E2 03 00 [05:22:38]MH_I2C_Read... [05:22:38]Read from MH i2c: E2 03 00 6A 17 00 90 00 F5 [05:22:38]RAPDU: 90 00 [05:22:38]wFMCommunicate OK [05:22:38]SAM_PROTO_ClearQueue done [05:22:38]KKMCreateOFDPacket [05:22:38]OFDProtocolAddRootSTLVToBuf [05:22:38]FM_MakeSignedData [05:22:38]FM_MakeSignedData [05:22:38]SAM_PROTO_SignData [05:22:38]wFMCommunicate request_size=4 [05:22:38]MH_SAM_APDU [05:22:38]CAPDU: 80 0D 01 02 [05:22:38]Write to MH i2c: E2 08 00 6B 17 80 0D 01 02 00 00 00 00 FB [05:22:38]Write i2c OK [05:22:38]MH_I2C_Read... [05:22:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:22:38]Read from MH i2c: E2 [05:22:38]MH_I2C_Read... [05:22:38]Read from MH i2c: E2 03 00 [05:22:38]MH_I2C_Read... [05:22:38]Read from MH i2c: E2 03 00 6B 17 00 90 00 F6 [05:22:38]RAPDU: 90 00 [05:22:38]wFMCommunicate OK [05:22:38]wFMCommunicate request_size=255 [05:22:38]MH_SAM_APDU [05:22: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 2E 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 34 7E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 0D 00 00 00 00 07 04 06 00 2C 7E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 20 B2 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 11 85 02 00 35 04 06 00 EC [05:22:38]Write to MH i2c: E2 02 01 6C 17 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 2E 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 34 7E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 0D 00 00 00 00 07 04 06 00 2C 7E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 20 B2 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 11 85 02 00 35 04 06 00 EC 00 00 CD [05:22:38]Write i2c OK [05:22:38]MH_I2C_Read... [05:22:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:22:38]Read from MH i2c: E2 [05:22:38]MH_I2C_Read... [05:22:38]Read from MH i2c: E2 03 00 [05:22:38]MH_I2C_Read... [05:22:38]Read from MH i2c: E2 03 00 6C 17 00 90 00 F7 [05:22:38]RAPDU: 90 00 [05:22:38]wFMCommunicate OK [05:22:38]wFMCommunicate request_size=10 [05:22:38]MH_SAM_APDU [05:22:38]CAPDU: 80 0D 02 02 05 03 D4 D6 B2 E4 [05:22:38]Write to MH i2c: E2 0D 00 6D 17 80 0D 02 02 05 00 03 D4 D6 B2 E4 00 00 4B [05:22:38]Write i2c OK [05:22:38]MH_I2C_Read... [05:22:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:22:38]Read from MH i2c: E2 [05:22:38]MH_I2C_Read... [05:22:38]Read from MH i2c: E2 03 00 [05:22:38]MH_I2C_Read... [05:22:38]Read from MH i2c: E2 03 00 6D 17 00 90 00 F8 [05:22:38]RAPDU: 90 00 [05:22:38]wFMCommunicate OK [05:22:38]wFMCommunicate request_size=4 [05:22:38]MH_SAM_APDU [05:22:38]CAPDU: 80 0D 03 02 [05:22:38]Write to MH i2c: E2 08 00 6E 17 80 0D 03 02 00 00 00 00 00 [05:22:38]Write i2c OK [05:22:38]MH_I2C_Read... [05:22:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:22:38]Read from MH i2c: E2 [05:22:38]MH_I2C_Read... [05:22:38]Read from MH i2c: E2 0B 00 [05:22:38]MH_I2C_Read... [05:22:38]Read from MH i2c: E2 0B 00 6E 17 00 34 5F 06 B6 FF 00 80 B1 90 00 80 [05:22:38]RAPDU: 34 5F 06 B6 FF 00 80 B1 90 00 [05:22:38]wFMCommunicate OK [05:22:38]SAM_PROTO_SignData done [05:22:38]FM_MakeSignedData done [05:22:38]CreateOFDProtocolMessage [05:22:38]wFMCommunicate request_size=4 [05:22:38]MH_SAM_APDU [05:22:38]CAPDU: 80 11 00 00 [05:22:38]Write to MH i2c: E2 08 00 6F 17 80 11 00 00 00 00 00 00 00 [05:22:38]Write i2c OK [05:22:38]MH_I2C_Read... [05:22:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:22:38]Read from MH i2c: E2 [05:22:38]MH_I2C_Read... [05:22:38]Read from MH i2c: E2 17 00 [05:22:38]MH_I2C_Read... [05:22:38]Read from MH i2c: E2 17 00 6F 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 56 [05:22:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [05:22:38]wFMCommunicate OK [05:22:38]CreateOFDProtocolMessage done [05:22:38]OFDSenderStorePacket 165137 [05:22:38]StoreOFDPacket docnum=165137 [05:22:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B9 EC 07 01 CE 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 2E 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 34 7E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 0D 00 00 00 00 07 04 06 00 2C 7E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 20 B2 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 11 85 02 00 35 04 06 00 EC 03 D4 D6 B2 E4 34 5F 06 B6 FF 00 80 B1 [05:22:38]CheckFolder [05:22:38]dirname=/storage/ofd_packets [05:22:38]CheckFolder done [05:22:38]ProducePacketName [05:22:38]name=ofd_packets/00165137 [05:22:38]NVStorageSaveData ofd_packets/00165137 [05:22:38]File name is /storage/ofd_packets/00165137 [05:22:38]Write 301 bytes [05:22:38]NVStorageSaveData done [05:22:38]OFDSenderStorePacket done [05:22:38]KKMCreateOFDPacket done [05:22:38]NVStorageSaveData kkm_last_timestamp [05:22:38]File name is /storage/kkm_last_timestamp [05:22:38]Write 4 bytes [05:22:38]NVStorageSaveData done [05:22:38]ExternCall_PrintAddStr [05:22:38]wPrintStart [05:22:38]Write to MH i2c: 01 00 00 70 17 87 [05:22:38]Write i2c OK [05:22:38]MH_I2C_Read... [05:22:38]Read from MH i2c: 01 [05:22:38]MH_I2C_Read... [05:22:38]Read from MH i2c: 01 07 00 [05:22:38]MH_I2C_Read... [05:22:38]Read from MH i2c: 01 07 00 70 17 00 00 00 00 00 FF 0F 9C [05:22:38]RasterBufferAndPrint [05:22:38]line Счет N : (1)459238 [05:22:38]line ИНН: 02508201610067 [05:22:38]line Контрольно-Кассовый Чек [05:22:38]line ПРОДАЖА [05:22:38]line ТРК (МРК, ГНК) : 12 [05:22:38]line Товар: 2710124130 [05:22:38]line Аи-92-К-5 [05:22:38]line 4.910 * 65.80 [05:22:38]line = 323.08 [05:22:38]line НДС 12% НСП 1% [05:22:38]line > о реализуемом товаре [05:22:38]line ОКРУГЛЕНИЕ: -0.08 [05:22:38]line ИТОГО: 323.00 [05:22:38]line Внесено: 323.00 [05:22:38]line СДАЧА: 0.00 [05:22:38]line НСП 1% : 2.86 [05:22:38]line НДС 12% : 34.31 [05:22:38]line Наличными: 323.00 [05:22:38]line Безнал.: 0.00 [05:22:38]line Место: АЗС № 72 "Партнер Нефть" [05:22:38]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [05:22:38]line СНО: Общий режим [05:22:38]line Чек 10 15.07.2024 05:22 [05:22:38]line Смена: 448 ФФД: 1.0 [05:22:38]line ЗНМ: 0300000160 [05:22:38]line РНМ: 0000000000090829 [05:22:38]line Версия ККМ: 001 [05:22:38]line ФМ: 0000000000874718 [05:22:38]line ФД: 165137 [05:22:38]line ФПД: 259501199897316 [05:22:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T052240&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165137&fm=259501199897316&tin=02508201610067®Number=0000000000090829&sum=32300 [05:22:38]written 0, free lines is 4095 [05:22:38]OFD Sender: Processing packet 165137 [packets to send 106, broken 105] [05:22:38]ProducePacketName [05:22:38]name=ofd_packets/00165137 [05:22:38]OFD Sender: To server: pG, [05:22:38]CommunicateWithHost lk.salyk.kg:30040 [05:22:38]ConnectInit lk.salyk.kg [05:22:38]Connected sock=10 [05:22: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 37 31 38 0F 01 00 00 B9 EC 07 01 CE 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 2E 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 34 7E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 0D 00 00 00 00 07 04 06 00 2C 7E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 20 B2 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 11 85 02 00 35 04 06 00 EC 03 D4 D6 B2 E4 34 5F 06 B6 FF 00 80 B1 [05:22:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 26 CB 47 00 F7 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 11 85 02 00 F4 03 04 00 AB 58 94 66 B6 04 01 00 00 30 08 71 13 9A 44 17 A1 [05:22:39]CommunicateWithHost err = 0 [05:22:39]CheckOFDResponse [05:22:39]1017 (14) - 77093643461234 [05:22:39]1041 (16) - 0000000000874718 [05:22:39]1040 (4) - 165137 [05:22:39]1012 (4) - 14.07.2024 23:00 [05:22:39]1206 (1) - 0 [05:22:39]OFD Sender: Remove packet 165137 [05:22:39]ProducePacketName [05:22:39]name=ofd_packets/00165137 [05:22:39]NVStorageDeleteData [05:22:39]Write to MH i2c: 01 00 00 9A 17 B1 [05:22:39]Write i2c OK [05:22:39]MH_I2C_Read... [05:22:39]Read from MH i2c: 01 [05:22:39]MH_I2C_Read... [05:22:39]Read from MH i2c: 01 07 00 [05:22:39]MH_I2C_Read... [05:22:39]Read from MH i2c: 01 07 00 9A 17 00 00 00 00 00 05 0D CA [05:22:39]RasterBufferAndPrint [05:22:39]line [05:22:39]line [05:22:39]line [05:22:39]line [05:22:39]line [05:22:39]written 0, free lines is 3340 [05:22:39]MH_Cut [05:22:39]Write to MH i2c: D1 01 00 A1 17 01 8A [05:22:39]Write i2c OK [05:22:39]MH_I2C_Read... [05:22:39]Read from MH i2c: D1 [05:22:39]MH_I2C_Read... [05:22:39]Read from MH i2c: D1 01 00 [05:22:39]MH_I2C_Read... [05:22:39]Read from MH i2c: D1 01 00 A1 17 00 89 [05:22:39]Write to MH i2c: 01 00 00 A2 17 B9 [05:22:39]Write i2c OK [05:22:39]MH_I2C_Read... [05:22:39]OFD Sender: No OFD packet to send [05:22:39]*** Cut start [05:22:39]*** Partial cut [05:22:39]*** CUTSNS_PIN = 1 [05:22:40]*** CUTSNS_PIN = 0 [05:22:40]*** Brake cut motor [05:22:40]Read from MH i2c: 01 [05:22:40]MH_I2C_Read... [05:22:40]*** Stop cut motor [05:22:40]*** Cut end [05:22:40]Read from MH i2c: 01 07 00 [05:22:40]MH_I2C_Read... [05:22:40]Read from MH i2c: 01 07 00 A2 17 00 00 00 00 00 FF 0F CE [05:22:40]process_action close_receipt done [05:22:40]requested_data is exist [05:22:40]produce_requested_data [05:22:40]requested_item fm.sn is exist - process it [05:22:40]wFMCommunicate request_size=4 [05:22:40]MH_SAM_APDU [05:22:40]CAPDU: 80 11 00 00 [05:22:40]Write to MH i2c: E2 08 00 A3 17 80 11 00 00 00 00 00 00 34 [05:22:40]Write i2c OK [05:22:40]MH_I2C_Read... [05:22:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:22:40]Read from MH i2c: E2 [05:22:40]MH_I2C_Read... [05:22:40]Read from MH i2c: E2 17 00 [05:22:40]MH_I2C_Read... [05:22:40]Read from MH i2c: E2 17 00 A3 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8A [05:22:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [05:22:40]wFMCommunicate OK [05:22:40]requested_item fd.num is exist - process it [05:22:40]SAM_PROTO_GetFieldsCounters [05:22:40]wFMCommunicate request_size=4 [05:22:40]MH_SAM_APDU [05:22:40]CAPDU: 80 13 00 00 [05:22:40]Write to MH i2c: E2 08 00 A4 17 80 13 00 00 00 00 00 00 37 [05:22:40]Write i2c OK [05:22:40]MH_I2C_Read... [05:22:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:22:40]Read from MH i2c: E2 [05:22:40]MH_I2C_Read... [05:22:40]Read from MH i2c: E2 62 00 [05:22:40]MH_I2C_Read... [05:22:40]Read from MH i2c: E2 62 00 A4 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 11 85 02 00 0E 04 04 00 C0 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 D5 [05:22: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 11 85 02 00 0E 04 04 00 C0 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 [05:22:40]wFMCommunicate OK [05:22:40]SAM_PROTO_GetFieldsCounters done [05:22:40]requested_item shift.num is exist - process it [05:22:40]requested_item shift.opened is exist - process it [05:22:40]req_shift_opened [05:22:40]FM_GetShiftState [05:22:40]SAM_PROTO_GetShiftState [05:22:40]wFMCommunicate request_size=4 [05:22:40]MH_SAM_APDU [05:22:40]CAPDU: 80 13 01 00 [05:22:40]Write to MH i2c: E2 08 00 A5 17 80 13 01 00 00 00 00 00 39 [05:22:40]Write i2c OK [05:22:40]MH_I2C_Read... [05:22:40]Read from MH i2c: E2 [05:22:40]MH_I2C_Read... [05:22:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:22:40]Read from MH i2c: E2 0E 00 [05:22:40]MH_I2C_Read... [05:22:40]Read from MH i2c: E2 0E 00 A5 17 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 12 [05:22:40]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [05:22:40]wFMCommunicate OK [05:22:40]SAM_PROTO_GetShiftState done [05:22:40]FM_GetShiftState done [05:22:40]req_shift_opened done [05:22:40]requested_item shift.open_date is exist - process it [05:22:40]req_shift_open_date [05:22:40]req_shift_open_date done [05:22:40]produce_requested_data done [05:22:40]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165137,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [05:22:40]process_action_free close_receipt [05:22:40]json_value_free [05:22:40]json_value_free done [05:22:40]process_json_proto returns [05:22:40]Send response to host [05:22:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165137,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [05:22:40]free response buf [05:22:40]execute_script done [05:22:40]execute_script returns [05:22:40]free content buf [05:22:40]Sock 7.Close socket [05:22:40]Sock 7.Thread stoped [05:22:44]OFD Sender: No OFD packet to send [05:22:49]OFD Sender: No OFD packet to send [05:22:54]OFD Sender: No OFD packet to send [05:22:59]OFD Sender: No OFD packet to send [05:23:04]OFD Sender: No OFD packet to send [05:23:09]OFD Sender: No OFD packet to send [05:23:14]OFD Sender: No OFD packet to send [05:23:19]OFD Sender: No OFD packet to send [05:23:24]OFD Sender: No OFD packet to send [05:23:29]OFD Sender: No OFD packet to send [05:23:34]OFD Sender: No OFD packet to send [05:23:39]OFD Sender: No OFD packet to send [05:23:44]OFD Sender: No OFD packet to send [05:23:49]OFD Sender: No OFD packet to send [05:23:54]OFD Sender: No OFD packet to send [05:23:59]OFD Sender: No OFD packet to send [05:24:04]OFD Sender: No OFD packet to send [05:24:09]OFD Sender: No OFD packet to send [05:24:14]OFD Sender: No OFD packet to send [05:24:19]OFD Sender: No OFD packet to send [05:24:24]OFD Sender: No OFD packet to send [05:24:29]OFD Sender: No OFD packet to send [05:24:34]OFD Sender: No OFD packet to send [05:24:39]OFD Sender: No OFD packet to send [05:24:44]OFD Sender: No OFD packet to send [05:24:49]OFD Sender: No OFD packet to send [05:24:54]OFD Sender: No OFD packet to send [05:24:59]OFD Sender: No OFD packet to send [05:25:04]OFD Sender: No OFD packet to send [05:25:09]OFD Sender: No OFD packet to send [05:25:14]OFD Sender: No OFD packet to send [05:25:19]OFD Sender: No OFD packet to send [05:25:24]OFD Sender: No OFD packet to send [05:25:29]OFD Sender: No OFD packet to send [05:25:34]OFD Sender: No OFD packet to send [05:25:39]OFD Sender: No OFD packet to send [05:25:44]OFD Sender: No OFD packet to send [05:25:49]OFD Sender: No OFD packet to send [05:25:54]OFD Sender: No OFD packet to send [05:25:59]OFD Sender: No OFD packet to send [05:26:04]OFD Sender: No OFD packet to send [05:26:09]OFD Sender: No OFD packet to send [05:26:14]OFD Sender: No OFD packet to send [05:26:19]OFD Sender: No OFD packet to send [05:26:24]OFD Sender: No OFD packet to send [05:26:29]OFD Sender: No OFD packet to send [05:26:34]OFD Sender: No OFD packet to send [05:26:39]OFD Sender: No OFD packet to send [05:26:44]OFD Sender: No OFD packet to send [05:26:49]OFD Sender: No OFD packet to send [05:26:54]OFD Sender: No OFD packet to send [05:26:59]OFD Sender: No OFD packet to send [05:27:04]OFD Sender: No OFD packet to send [05:27:09]OFD Sender: No OFD packet to send [05:27:14]OFD Sender: No OFD packet to send [05:27:19]OFD Sender: No OFD packet to send [05:27:24]OFD Sender: No OFD packet to send [05:27:30]OFD Sender: No OFD packet to send [05:27:35]OFD Sender: No OFD packet to send [05:27:40]OFD Sender: No OFD packet to send [05:27:45]OFD Sender: No OFD packet to send [05:27:50]OFD Sender: No OFD packet to send [05:27:55]OFD Sender: No OFD packet to send [05:28:00]OFD Sender: No OFD packet to send [05:28:05]OFD Sender: No OFD packet to send [05:28:10]OFD Sender: No OFD packet to send [05:28:15]OFD Sender: No OFD packet to send [05:28:20]OFD Sender: No OFD packet to send [05:28:25]OFD Sender: No OFD packet to send [05:28:30]OFD Sender: No OFD packet to send [05:28:35]OFD Sender: No OFD packet to send [05:28:40]OFD Sender: No OFD packet to send [05:28:45]OFD Sender: No OFD packet to send [05:28:50]OFD Sender: No OFD packet to send [05:28:55]OFD Sender: No OFD packet to send [05:29:00]OFD Sender: No OFD packet to send [05:29:05]OFD Sender: No OFD packet to send [05:29:10]OFD Sender: No OFD packet to send [05:29:15]OFD Sender: No OFD packet to send [05:29:20]OFD Sender: No OFD packet to send [05:29:25]OFD Sender: No OFD packet to send [05:29:30]OFD Sender: No OFD packet to send [05:29:35]OFD Sender: No OFD packet to send [05:29:40]OFD Sender: No OFD packet to send [05:29:45]OFD Sender: No OFD packet to send [05:29:50]OFD Sender: No OFD packet to send [05:29:55]OFD Sender: No OFD packet to send [05:30:00]OFD Sender: No OFD packet to send [05:30:05]OFD Sender: No OFD packet to send [05:30:10]OFD Sender: No OFD packet to send [05:30:15]OFD Sender: No OFD packet to send [05:30:20]OFD Sender: No OFD packet to send [05:30:25]OFD Sender: No OFD packet to send [05:30:30]OFD Sender: No OFD packet to send [05:30:35]OFD Sender: No OFD packet to send [05:30:40]OFD Sender: No OFD packet to send [05:30:45]OFD Sender: No OFD packet to send [05:30:50]OFD Sender: No OFD packet to send [05:30:55]OFD Sender: No OFD packet to send [05:31:00]OFD Sender: No OFD packet to send [05:31:05]OFD Sender: No OFD packet to send [05:31:10]OFD Sender: No OFD packet to send [05:31:15]OFD Sender: No OFD packet to send [05:31:20]OFD Sender: No OFD packet to send [05:31:25]OFD Sender: No OFD packet to send [05:31:30]OFD Sender: No OFD packet to send [05:31:35]OFD Sender: No OFD packet to send [05:31:40]OFD Sender: No OFD packet to send [05:31:45]OFD Sender: No OFD packet to send [05:31:50]OFD Sender: No OFD packet to send [05:31:55]OFD Sender: No OFD packet to send [05:32:00]OFD Sender: No OFD packet to send [05:32:05]OFD Sender: No OFD packet to send [05:32:05]accept exits with 9 [05:32:05]New connection [05:32:05]New thread 3066785124 created [05:32:05]Thread 3066928484 joined [05:32:05]Waiting for new connection... [05:32:05] Sock 9.Parse request [05:32:05]Sock 9.Check first char [05:32:05]Sock 9.First char is OK [05:32:05]request: POST /json_proto HTTP/1.0 [05:32:05]Method: POST [05:32:05]URL: /json_proto [05:32:05]Method is POST - this is cgi request [05:32:05]url: /json_proto [05:32:05]query_string will be loaded in cgi processing [05:32:05]execute_cgi json_proto POST (null) [05:32:05]execute_cgi path=json_proto method=POST [05:32:05]POST find Content-Length [05:32:05]Host: 172.17.56.4:8080 [05:32:05]Content-Length: 682 [05:32:05]Content-Type: application/json [05:32:05] [05:32:05]POST finish read [05:32:05]Found Content-Length = 682 [05:32:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459239", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:32:05]execute_script... [05:32: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)459239", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:32:05]POST & json_proto [05:32:05]process_json_proto [05:32:05]json parsed OK: [05:32:05]protocol is kg_v1.0 [05:32:05]action value=close_receipt [05:32:05]process_action close_receipt [05:32:05]cmd_close_receipt [05:32:05]MH_GetDate [05:32:05]Write to MH i2c: F0 00 00 A6 17 AC [05:32:05]Write i2c OK [05:32:05]MH_I2C_Read... [05:32:05]Read from MH i2c: F0 [05:32:05]MH_I2C_Read... [05:32:05]Read from MH i2c: F0 09 00 [05:32:05]MH_I2C_Read... [05:32:05]Read from MH i2c: F0 09 00 A6 17 00 59 B4 94 66 C9 DC B2 64 77 [05:32:05]GetLastDocTimeStamp 1721020960 [05:32:05]current date 1721021529 [05:32:05]FM_GetShiftState [05:32:05]SAM_PROTO_GetShiftState [05:32:05]wFMCommunicate request_size=4 [05:32:05]MH_SAM_APDU [05:32:05]CAPDU: 80 13 01 00 [05:32:05]Write to MH i2c: E2 08 00 A7 17 80 13 01 00 00 00 00 00 3B [05:32:05]Write i2c OK [05:32:05]MH_I2C_Read... [05:32:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:32:05]Read from MH i2c: E2 [05:32:05]MH_I2C_Read... [05:32:05]Read from MH i2c: E2 0E 00 [05:32:05]MH_I2C_Read... [05:32:05]Read from MH i2c: E2 0E 00 A7 17 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 14 [05:32:05]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [05:32:05]wFMCommunicate OK [05:32:05]SAM_PROTO_GetShiftState done [05:32:05]FM_GetShiftState done [05:32:05]opened in 1721003876 [05:32:05]opened+sec_in_day 1721090276 [05:32:05]quantity*price = 100016 [05:32:05]sum+1 = 100017 [05:32:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 11 15.07.2024 05:32 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165138 ФПД: 170698154360719 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T053209&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165138&fm=170698154360719&tin=02508201610067®Number=0000000000090829&sum=100000 [05:32:07]StoreToDocumentArchive [05:32:07]shift 448 fd 165138 [05:32:07]save to /storage/0448/doc_00165138 [05:32:07]save last doc name /storage/0448/doc_00165138 to /storage/kkm_last_doc_name [05:32:07]save OK [05:32:07]Clear old archive folders... [05:32:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:32:07]tlvbuf is 013C06E0 [05:32:07]SAM_PROTO_ClearQueue [05:32:07]wFMCommunicate request_size=4 [05:32:07]MH_SAM_APDU [05:32:07]CAPDU: 80 09 00 00 [05:32:07]Write to MH i2c: E2 08 00 B4 17 80 09 00 00 00 00 00 00 3D [05:32:07]Write i2c OK [05:32:07]MH_I2C_Read... [05:32:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:32:07]Read from MH i2c: E2 [05:32:07]MH_I2C_Read... [05:32:07]Read from MH i2c: E2 03 00 [05:32:07]MH_I2C_Read... [05:32:07]Read from MH i2c: E2 03 00 B4 17 00 90 00 3F [05:32:07]RAPDU: 90 00 [05:32:07]wFMCommunicate OK [05:32:07]SAM_PROTO_ClearQueue done [05:32:07]KKMCreateOFDPacket [05:32:07]OFDProtocolAddRootSTLVToBuf [05:32:07]FM_MakeSignedData [05:32:07]FM_MakeSignedData [05:32:07]SAM_PROTO_SignData [05:32:07]wFMCommunicate request_size=4 [05:32:07]MH_SAM_APDU [05:32:07]CAPDU: 80 0D 01 02 [05:32:07]Write to MH i2c: E2 08 00 B5 17 80 0D 01 02 00 00 00 00 45 [05:32:07]Write i2c OK [05:32:07]MH_I2C_Read... [05:32:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:32:07]Read from MH i2c: E2 [05:32:07]MH_I2C_Read... [05:32:07]Read from MH i2c: E2 03 00 [05:32:07]MH_I2C_Read... [05:32:07]Read from MH i2c: E2 03 00 B5 17 00 90 00 40 [05:32:07]RAPDU: 90 00 [05:32:07]wFMCommunicate OK [05:32:07]wFMCommunicate request_size=255 [05:32:07]MH_SAM_APDU [05:32: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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 59 B4 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 12 85 02 00 35 04 06 00 9B [05:32:07]Write to MH i2c: E2 02 01 B6 17 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 59 B4 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 12 85 02 00 35 04 06 00 9B 00 00 67 [05:32:07]Write i2c OK [05:32:07]MH_I2C_Read... [05:32:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:32:07]Read from MH i2c: E2 [05:32:07]MH_I2C_Read... [05:32:07]Read from MH i2c: E2 03 00 [05:32:07]MH_I2C_Read... [05:32:07]Read from MH i2c: E2 03 00 B6 17 00 90 00 41 [05:32:07]RAPDU: 90 00 [05:32:07]wFMCommunicate OK [05:32:07]wFMCommunicate request_size=10 [05:32:07]MH_SAM_APDU [05:32:07]CAPDU: 80 0D 02 02 05 3F C2 DA BF 8F [05:32:07]Write to MH i2c: E2 0D 00 B7 17 80 0D 02 02 05 00 3F C2 DA BF 8F 00 00 7B [05:32:07]Write i2c OK [05:32:07]MH_I2C_Read... [05:32:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:32:07]Read from MH i2c: E2 [05:32:07]MH_I2C_Read... [05:32:07]Read from MH i2c: E2 03 00 [05:32:07]MH_I2C_Read... [05:32:07]Read from MH i2c: E2 03 00 B7 17 00 90 00 42 [05:32:07]RAPDU: 90 00 [05:32:07]wFMCommunicate OK [05:32:07]wFMCommunicate request_size=4 [05:32:07]MH_SAM_APDU [05:32:07]CAPDU: 80 0D 03 02 [05:32:07]Write to MH i2c: E2 08 00 B8 17 80 0D 03 02 00 00 00 00 4A [05:32:07]Write i2c OK [05:32:07]MH_I2C_Read... [05:32:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:32:07]Read from MH i2c: E2 [05:32:07]MH_I2C_Read... [05:32:07]Read from MH i2c: E2 0B 00 [05:32:07]MH_I2C_Read... [05:32:07]Read from MH i2c: E2 0B 00 B8 17 00 EA D4 0F E3 15 12 A5 4B 90 00 12 [05:32:07]RAPDU: EA D4 0F E3 15 12 A5 4B 90 00 [05:32:07]wFMCommunicate OK [05:32:07]SAM_PROTO_SignData done [05:32:07]FM_MakeSignedData done [05:32:07]CreateOFDProtocolMessage [05:32:07]wFMCommunicate request_size=4 [05:32:07]MH_SAM_APDU [05:32:07]CAPDU: 80 11 00 00 [05:32:07]Write to MH i2c: E2 08 00 B9 17 80 11 00 00 00 00 00 00 4A [05:32:07]Write i2c OK [05:32:07]MH_I2C_Read... [05:32:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:32:07]Read from MH i2c: E2 [05:32:07]MH_I2C_Read... [05:32:07]Read from MH i2c: E2 17 00 [05:32:07]MH_I2C_Read... [05:32:07]Read from MH i2c: E2 17 00 B9 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A0 [05:32:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [05:32:07]wFMCommunicate OK [05:32:07]CreateOFDProtocolMessage done [05:32:07]OFDSenderStorePacket 165138 [05:32:07]StoreOFDPacket docnum=165138 [05:32:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 4A A2 07 01 8F 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 59 B4 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 12 85 02 00 35 04 06 00 9B 3F C2 DA BF 8F EA D4 0F E3 15 12 A5 4B [05:32:07]CheckFolder [05:32:07]dirname=/storage/ofd_packets [05:32:07]CheckFolder done [05:32:07]ProducePacketName [05:32:07]name=ofd_packets/00165138 [05:32:07]NVStorageSaveData ofd_packets/00165138 [05:32:07]File name is /storage/ofd_packets/00165138 [05:32:07]Write 301 bytes [05:32:07]NVStorageSaveData done [05:32:07]OFDSenderStorePacket done [05:32:07]KKMCreateOFDPacket done [05:32:07]NVStorageSaveData kkm_last_timestamp [05:32:07]File name is /storage/kkm_last_timestamp [05:32:07]Write 4 bytes [05:32:07]NVStorageSaveData done [05:32:07]OFD Sender: Processing packet 165138 [packets to send 106, broken 105] [05:32:07]ProducePacketName [05:32:07]name=ofd_packets/00165138 [05:32:07]OFD Sender: To server: pG, [05:32:07]CommunicateWithHost lk.salyk.kg:30040 [05:32:07]ConnectInit lk.salyk.kg [05:32:07]ExternCall_PrintAddStr [05:32:07]wPrintStart [05:32:07]Write to MH i2c: 01 00 00 BA 17 D1 [05:32:07]Write i2c OK [05:32:07]MH_I2C_Read... [05:32:07]Read from MH i2c: 01 [05:32:07]MH_I2C_Read... [05:32:07]Read from MH i2c: 01 07 00 [05:32:07]MH_I2C_Read... [05:32:07]Read from MH i2c: 01 07 00 BA 17 00 00 00 00 00 FF 0F E6 [05:32:07]RasterBufferAndPrint [05:32:07]line Счет N : (1)459239 [05:32:07]line ИНН: 02508201610067 [05:32:07]line Контрольно-Кассовый Чек [05:32:07]line ПРОДАЖА [05:32:07]line ТРК (МРК, ГНК) : 12 [05:32:07]line Товар: 2710124130 [05:32:07]line Аи-92-К-5 [05:32:07]line 15.200 * 65.80 [05:32:07]line = 1000.16 [05:32:07]line НДС 12% НСП 1% [05:32:07]line > о реализуемом товаре [05:32:07]line ОКРУГЛЕНИЕ: -0.16 [05:32:07]line ИТОГО: 1000.00 [05:32:07]line Внесено: 1000.00 [05:32:07]line СДАЧА: 0.00 [05:32:07]line НСП 1% : 8.85 [05:32:07]line НДС 12% : 106.21 [05:32:07]line Наличными: 1000.00 [05:32:07]line Безнал.: 0.00 [05:32:07]line Место: АЗС № 72 "Партнер Нефть" [05:32:07]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [05:32:07]line СНО: Общий режим [05:32:07]line Чек 11 15.07.2024 05:32 [05:32:07]line Смена: 448 ФФД: 1.0 [05:32:07]line ЗНМ: 0300000160 [05:32:07]line РНМ: 0000000000090829 [05:32:07]line Версия ККМ: 001 [05:32:07]line ФМ: 0000000000874718 [05:32:07]line ФД: 165138 [05:32:07]line ФПД: 170698154360719 [05:32:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T053209&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165138&fm=170698154360719&tin=02508201610067®Number=0000000000090829&sum=100000 [05:32:07]Connected sock=11 [05:32: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 37 31 38 0F 01 00 00 4A A2 07 01 8F 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 59 B4 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 12 85 02 00 35 04 06 00 9B 3F C2 DA BF 8F EA D4 0F E3 15 12 A5 4B [05:32:07]written 0, free lines is 4095 [05:32:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 C0 2B 47 00 B6 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 12 85 02 00 F4 03 04 00 E4 5A 94 66 B6 04 01 00 00 96 77 3B 53 53 47 FC 5B [05:32:08]CommunicateWithHost err = 0 [05:32:08]CheckOFDResponse [05:32:08]1017 (14) - 77093643461234 [05:32:08]1041 (16) - 0000000000874718 [05:32:08]1040 (4) - 165138 [05:32:08]1012 (4) - 14.07.2024 23:10 [05:32:08]1206 (1) - 0 [05:32:08]OFD Sender: Remove packet 165138 [05:32:08]ProducePacketName [05:32:08]name=ofd_packets/00165138 [05:32:08]NVStorageDeleteData [05:32:08]Write to MH i2c: 01 00 00 E4 17 FB [05:32:08]Write i2c OK [05:32:08]MH_I2C_Read... [05:32:08]Read from MH i2c: 01 [05:32:08]MH_I2C_Read... [05:32:08]Read from MH i2c: 01 07 00 [05:32:08]MH_I2C_Read... [05:32:08]Read from MH i2c: 01 07 00 E4 17 00 00 00 00 00 FA 0C 08 [05:32:08]RasterBufferAndPrint [05:32:08]line [05:32:08]line [05:32:08]line [05:32:08]line [05:32:08]line [05:32:08]written 0, free lines is 3330 [05:32:08]MH_Cut [05:32:08]Write to MH i2c: D1 01 00 EB 17 01 D4 [05:32:08]Write i2c OK [05:32:08]MH_I2C_Read... [05:32:08]Read from MH i2c: D1 [05:32:08]MH_I2C_Read... [05:32:08]Read from MH i2c: D1 01 00 [05:32:08]MH_I2C_Read... [05:32:08]Read from MH i2c: D1 01 00 EB 17 00 D3 [05:32:08]Write to MH i2c: 01 00 00 EC 17 03 [05:32:08]Write i2c OK [05:32:08]MH_I2C_Read... [05:32:08]OFD Sender: No OFD packet to send [05:32:09]*** Cut start [05:32:09]*** Partial cut [05:32:09]*** CUTSNS_PIN = 1 [05:32:09]*** CUTSNS_PIN = 0 [05:32:09]*** Brake cut motor [05:32:09]Read from MH i2c: 01 [05:32:09]MH_I2C_Read... [05:32:09]*** Stop cut motor [05:32:09]*** Cut end [05:32:09]Read from MH i2c: 01 07 00 [05:32:09]MH_I2C_Read... [05:32:09]Read from MH i2c: 01 07 00 EC 17 00 00 00 00 00 FF 0F 18 [05:32:09]process_action close_receipt done [05:32:09]requested_data is exist [05:32:09]produce_requested_data [05:32:09]requested_item fm.sn is exist - process it [05:32:09]wFMCommunicate request_size=4 [05:32:09]MH_SAM_APDU [05:32:09]CAPDU: 80 11 00 00 [05:32:09]Write to MH i2c: E2 08 00 ED 17 80 11 00 00 00 00 00 00 7E [05:32:09]Write i2c OK [05:32:09]MH_I2C_Read... [05:32:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:32:09]Read from MH i2c: E2 [05:32:09]MH_I2C_Read... [05:32:09]Read from MH i2c: E2 17 00 [05:32:09]MH_I2C_Read... [05:32:09]Read from MH i2c: E2 17 00 ED 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D4 [05:32:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [05:32:09]wFMCommunicate OK [05:32:09]requested_item fd.num is exist - process it [05:32:09]SAM_PROTO_GetFieldsCounters [05:32:09]wFMCommunicate request_size=4 [05:32:09]MH_SAM_APDU [05:32:09]CAPDU: 80 13 00 00 [05:32:09]Write to MH i2c: E2 08 00 EE 17 80 13 00 00 00 00 00 00 81 [05:32:09]Write i2c OK [05:32:09]MH_I2C_Read... [05:32:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:32:09]Read from MH i2c: E2 [05:32:09]MH_I2C_Read... [05:32:09]Read from MH i2c: E2 62 00 [05:32:09]MH_I2C_Read... [05:32:09]Read from MH i2c: E2 62 00 EE 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 12 85 02 00 0E 04 04 00 C0 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 23 [05:32: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 12 85 02 00 0E 04 04 00 C0 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 [05:32:09]wFMCommunicate OK [05:32:09]SAM_PROTO_GetFieldsCounters done [05:32:09]requested_item shift.num is exist - process it [05:32:09]requested_item shift.opened is exist - process it [05:32:09]req_shift_opened [05:32:09]FM_GetShiftState [05:32:09]SAM_PROTO_GetShiftState [05:32:09]wFMCommunicate request_size=4 [05:32:09]MH_SAM_APDU [05:32:09]CAPDU: 80 13 01 00 [05:32:09]Write to MH i2c: E2 08 00 EF 17 80 13 01 00 00 00 00 00 83 [05:32:09]Write i2c OK [05:32:09]MH_I2C_Read... [05:32:09]Read from MH i2c: E2 [05:32:09]MH_I2C_Read... [05:32:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:32:09]Read from MH i2c: E2 0E 00 [05:32:09]MH_I2C_Read... [05:32:09]Read from MH i2c: E2 0E 00 EF 17 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 5C [05:32:09]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [05:32:09]wFMCommunicate OK [05:32:09]SAM_PROTO_GetShiftState done [05:32:09]FM_GetShiftState done [05:32:09]req_shift_opened done [05:32:09]requested_item shift.open_date is exist - process it [05:32:09]req_shift_open_date [05:32:09]req_shift_open_date done [05:32:09]produce_requested_data done [05:32:09]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165138,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [05:32:09]process_action_free close_receipt [05:32:09]json_value_free [05:32:09]json_value_free done [05:32:09]process_json_proto returns [05:32:09]Send response to host [05:32:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165138,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [05:32:09]free response buf [05:32:09]execute_script done [05:32:09]execute_script returns [05:32:09]free content buf [05:32:09]Sock 9.Close socket [05:32:09]Sock 9.Thread stoped [05:32:13]OFD Sender: No OFD packet to send [05:32:18]OFD Sender: No OFD packet to send [05:32:23]OFD Sender: No OFD packet to send [05:32:28]OFD Sender: No OFD packet to send [05:32:33]OFD Sender: No OFD packet to send [05:32:38]OFD Sender: No OFD packet to send [05:32:43]OFD Sender: No OFD packet to send [05:32:48]OFD Sender: No OFD packet to send [05:32:53]OFD Sender: No OFD packet to send [05:32:58]OFD Sender: No OFD packet to send [05:33:03]OFD Sender: No OFD packet to send [05:33:08]OFD Sender: No OFD packet to send [05:33:13]OFD Sender: No OFD packet to send [05:33:18]OFD Sender: No OFD packet to send [05:33:23]OFD Sender: No OFD packet to send [05:33:28]OFD Sender: No OFD packet to send [05:33:33]OFD Sender: No OFD packet to send [05:33:38]OFD Sender: No OFD packet to send [05:33:43]OFD Sender: No OFD packet to send [05:33:48]OFD Sender: No OFD packet to send [05:33:53]OFD Sender: No OFD packet to send [05:33:58]OFD Sender: No OFD packet to send [05:34:03]OFD Sender: No OFD packet to send [05:34:08]OFD Sender: No OFD packet to send [05:34:13]OFD Sender: No OFD packet to send [05:34:18]OFD Sender: No OFD packet to send [05:34:23]OFD Sender: No OFD packet to send [05:34:28]OFD Sender: No OFD packet to send [05:34:33]OFD Sender: No OFD packet to send [05:34:38]OFD Sender: No OFD packet to send [05:34:43]OFD Sender: No OFD packet to send [05:34:48]OFD Sender: No OFD packet to send [05:34:53]OFD Sender: No OFD packet to send [05:34:58]OFD Sender: No OFD packet to send [05:35:03]OFD Sender: No OFD packet to send [05:35:08]OFD Sender: No OFD packet to send [05:35:13]OFD Sender: No OFD packet to send [05:35:18]OFD Sender: No OFD packet to send [05:35:23]OFD Sender: No OFD packet to send [05:35:28]OFD Sender: No OFD packet to send [05:35:33]OFD Sender: No OFD packet to send [05:35:38]OFD Sender: No OFD packet to send [05:35:43]OFD Sender: No OFD packet to send [05:35:48]OFD Sender: No OFD packet to send [05:35:53]OFD Sender: No OFD packet to send [05:35:58]OFD Sender: No OFD packet to send [05:36:03]OFD Sender: No OFD packet to send [05:36:08]OFD Sender: No OFD packet to send [05:36:13]OFD Sender: No OFD packet to send [05:36:18]OFD Sender: No OFD packet to send [05:36:23]OFD Sender: No OFD packet to send [05:36:28]OFD Sender: No OFD packet to send [05:36:33]OFD Sender: No OFD packet to send [05:36:38]OFD Sender: No OFD packet to send [05:36:43]OFD Sender: No OFD packet to send [05:36:48]OFD Sender: No OFD packet to send [05:36:53]OFD Sender: No OFD packet to send [05:36:58]OFD Sender: No OFD packet to send [05:37:03]OFD Sender: No OFD packet to send [05:37:08]OFD Sender: No OFD packet to send [05:37:13]OFD Sender: No OFD packet to send [05:37:18]OFD Sender: No OFD packet to send [05:37:23]OFD Sender: No OFD packet to send [05:37:28]OFD Sender: No OFD packet to send [05:37:33]OFD Sender: No OFD packet to send [05:37:38]OFD Sender: No OFD packet to send [05:37:43]OFD Sender: No OFD packet to send [05:37:48]OFD Sender: No OFD packet to send [05:37:53]OFD Sender: No OFD packet to send [05:37:58]OFD Sender: No OFD packet to send [05:38:03]OFD Sender: No OFD packet to send [05:38:08]OFD Sender: No OFD packet to send [05:38:13]OFD Sender: No OFD packet to send [05:38:18]OFD Sender: No OFD packet to send [05:38:24]OFD Sender: No OFD packet to send [05:38:29]OFD Sender: No OFD packet to send [05:38:34]OFD Sender: No OFD packet to send [05:38:39]OFD Sender: No OFD packet to send [05:38:44]OFD Sender: No OFD packet to send [05:38:49]OFD Sender: No OFD packet to send [05:38:54]OFD Sender: No OFD packet to send [05:38:59]OFD Sender: No OFD packet to send [05:39:04]OFD Sender: No OFD packet to send [05:39:09]OFD Sender: No OFD packet to send [05:39:14]OFD Sender: No OFD packet to send [05:39:19]OFD Sender: No OFD packet to send [05:39:24]OFD Sender: No OFD packet to send [05:39:29]OFD Sender: No OFD packet to send [05:39:34]OFD Sender: No OFD packet to send [05:39:39]OFD Sender: No OFD packet to send [05:39:44]OFD Sender: No OFD packet to send [05:39:48]accept exits with 7 [05:39:48]New connection [05:39:48]New thread 3066928484 created [05:39:48]Thread 3066785124 joined [05:39:48]Waiting for new connection... [05:39:48] Sock 7.Parse request [05:39:48]Sock 7.Check first char [05:39:48]Sock 7.First char is OK [05:39:48]request: POST /json_proto HTTP/1.0 [05:39:48]Method: POST [05:39:48]URL: /json_proto [05:39:48]Method is POST - this is cgi request [05:39:48]url: /json_proto [05:39:48]query_string will be loaded in cgi processing [05:39:48]execute_cgi json_proto POST (null) [05:39:48]execute_cgi path=json_proto method=POST [05:39:48]POST find Content-Length [05:39:48]Host: 172.17.56.4:8080 [05:39:48]Content-Length: 790 [05:39:48]Content-Type: application/json [05:39:48] [05:39:48]POST finish read [05:39:48]Found Content-Length = 790 [05:39:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459240", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 42.100, "sum" : 3000.05, "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 3000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:39:48]execute_script... [05:39:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459240", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 42.100, "sum" : 3000.05, "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 3000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:39:48]POST & json_proto [05:39:48]process_json_proto [05:39:48]json parsed OK: [05:39:48]protocol is kg_v1.0 [05:39:48]action value=close_receipt [05:39:48]process_action close_receipt [05:39:48]cmd_close_receipt [05:39:48]MH_GetDate [05:39:48]Write to MH i2c: F0 00 00 F0 17 F6 [05:39:48]Write i2c OK [05:39:48]MH_I2C_Read... [05:39:48]Read from MH i2c: F0 [05:39:48]MH_I2C_Read... [05:39:48]Read from MH i2c: F0 09 00 [05:39:48]MH_I2C_Read... [05:39:48]Read from MH i2c: F0 09 00 F0 17 00 28 B6 94 66 C9 DC B2 64 92 [05:39:48]GetLastDocTimeStamp 1721021529 [05:39:48]current date 1721021992 [05:39:48]FM_GetShiftState [05:39:48]SAM_PROTO_GetShiftState [05:39:48]wFMCommunicate request_size=4 [05:39:48]MH_SAM_APDU [05:39:48]CAPDU: 80 13 01 00 [05:39:48]Write to MH i2c: E2 08 00 F1 17 80 13 01 00 00 00 00 00 85 [05:39:48]Write i2c OK [05:39:48]MH_I2C_Read... [05:39:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:39:48]Read from MH i2c: E2 [05:39:48]MH_I2C_Read... [05:39:48]Read from MH i2c: E2 0E 00 [05:39:48]MH_I2C_Read... [05:39:48]Read from MH i2c: E2 0E 00 F1 17 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 5E [05:39:48]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [05:39:48]wFMCommunicate OK [05:39:48]SAM_PROTO_GetShiftState done [05:39:48]FM_GetShiftState done [05:39:48]opened in 1721003876 [05:39:48]opened+sec_in_day 1721090276 [05:39:48]quantity*price = 300004 [05:39:48]sum+1 = 300006 [05:39:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.05 НСП 1% : 26.55 НДС 12% : 318.59 Наличными: 0.00 Безнал.: 3000.05 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 12 15.07.2024 05:39 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 165139 ФПД: 62169704073752 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T053952&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165139&fm=62169704073752&tin=02508201610067®Number=0000000000090829&sum=300005 [05:39:49]StoreToDocumentArchive [05:39:49]shift 448 fd 165139 [05:39:49]save to /storage/0448/doc_00165139 [05:39:49]save last doc name /storage/0448/doc_00165139 to /storage/kkm_last_doc_name [05:39:49]save OK [05:39:49]Clear old archive folders... [05:39:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [05:39:49]tlvbuf is B6F4F170 [05:39:49]SAM_PROTO_ClearQueue [05:39:49]wFMCommunicate request_size=4 [05:39:49]MH_SAM_APDU [05:39:49]CAPDU: 80 09 00 00 [05:39:49]Write to MH i2c: E2 08 00 FE 17 80 09 00 00 00 00 00 00 87 [05:39:49]Write i2c OK [05:39:49]MH_I2C_Read... [05:39:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:39:49]Read from MH i2c: E2 [05:39:49]MH_I2C_Read... [05:39:49]Read from MH i2c: E2 03 00 [05:39:49]MH_I2C_Read... [05:39:49]Read from MH i2c: E2 03 00 FE 17 00 90 00 89 [05:39:49]RAPDU: 90 00 [05:39:49]wFMCommunicate OK [05:39:49]SAM_PROTO_ClearQueue done [05:39:49]KKMCreateOFDPacket [05:39:49]OFDProtocolAddRootSTLVToBuf [05:39:49]FM_MakeSignedData [05:39:49]FM_MakeSignedData [05:39:49]SAM_PROTO_SignData [05:39:49]wFMCommunicate request_size=4 [05:39:49]MH_SAM_APDU [05:39:49]CAPDU: 80 0D 01 02 [05:39:49]Write to MH i2c: E2 08 00 FF 17 80 0D 01 02 00 00 00 00 8F [05:39:49]Write i2c OK [05:39:49]MH_I2C_Read... [05:39:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:39:49]Read from MH i2c: E2 [05:39:49]MH_I2C_Read... [05:39:49]Read from MH i2c: E2 03 00 [05:39:49]MH_I2C_Read... [05:39:49]Read from MH i2c: E2 03 00 FF 17 00 90 00 8A [05:39:49]RAPDU: 90 00 [05:39:49]wFMCommunicate OK [05:39:49]wFMCommunicate request_size=255 [05:39:49]MH_SAM_APDU [05:39:49]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 A4 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 E5 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E5 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 73 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E5 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 28 B6 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 13 85 02 00 35 04 06 00 38 8B 03 20 [05:39:49]Write to MH i2c: E2 02 01 00 18 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 A4 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 E5 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E5 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 73 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E5 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 28 B6 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 13 85 02 00 35 04 06 00 38 8B 03 20 00 00 ED [05:39:49]Write i2c OK [05:39:49]MH_I2C_Read... [05:39:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:39:49]Read from MH i2c: E2 [05:39:49]MH_I2C_Read... [05:39:49]Read from MH i2c: E2 03 00 [05:39:49]MH_I2C_Read... [05:39:49]Read from MH i2c: E2 03 00 00 18 00 90 00 8C [05:39:49]RAPDU: 90 00 [05:39:49]wFMCommunicate OK [05:39:49]wFMCommunicate request_size=7 [05:39:49]MH_SAM_APDU [05:39:49]CAPDU: 80 0D 02 02 02 8A 18 [05:39:49]Write to MH i2c: E2 0A 00 01 18 80 0D 02 02 02 00 8A 18 00 00 39 [05:39:49]Write i2c OK [05:39:49]MH_I2C_Read... [05:39:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:39:49]Read from MH i2c: E2 [05:39:49]MH_I2C_Read... [05:39:49]Read from MH i2c: E2 03 00 [05:39:49]MH_I2C_Read... [05:39:49]Read from MH i2c: E2 03 00 01 18 00 90 00 8D [05:39:49]RAPDU: 90 00 [05:39:49]wFMCommunicate OK [05:39:49]wFMCommunicate request_size=4 [05:39:49]MH_SAM_APDU [05:39:49]CAPDU: 80 0D 03 02 [05:39:50]Write to MH i2c: E2 08 00 02 18 80 0D 03 02 00 00 00 00 95 [05:39:50]Write i2c OK [05:39:50]MH_I2C_Read... [05:39:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:39:50]Read from MH i2c: E2 [05:39:50]MH_I2C_Read... [05:39:50]Read from MH i2c: E2 0B 00 [05:39:50]MH_I2C_Read... [05:39:50]Read from MH i2c: E2 0B 00 02 18 00 18 06 FA B9 2D 59 C0 BD 90 00 6A [05:39:50]RAPDU: 18 06 FA B9 2D 59 C0 BD 90 00 [05:39:50]wFMCommunicate OK [05:39:50]SAM_PROTO_SignData done [05:39:50]FM_MakeSignedData done [05:39:50]CreateOFDProtocolMessage [05:39:50]wFMCommunicate request_size=4 [05:39:50]MH_SAM_APDU [05:39:50]CAPDU: 80 11 00 00 [05:39:50]Write to MH i2c: E2 08 00 03 18 80 11 00 00 00 00 00 00 95 [05:39:50]Write i2c OK [05:39:50]MH_I2C_Read... [05:39:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:39:50]Read from MH i2c: E2 [05:39:50]MH_I2C_Read... [05:39:50]Read from MH i2c: E2 17 00 [05:39:50]MH_I2C_Read... [05:39:50]Read from MH i2c: E2 17 00 03 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 EB [05:39:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [05:39:50]wFMCommunicate OK [05:39:50]CreateOFDProtocolMessage done [05:39:50]OFDSenderStorePacket 165139 [05:39:50]StoreOFDPacket docnum=165139 [05:39:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 32 8C 04 01 17 24 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 A4 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 E5 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E5 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 73 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E5 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 28 B6 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 13 85 02 00 35 04 06 00 38 8B 03 20 8A 18 18 06 FA B9 2D 59 C0 BD [05:39:50]CheckFolder [05:39:50]dirname=/storage/ofd_packets [05:39:50]CheckFolder done [05:39:50]ProducePacketName [05:39:50]name=ofd_packets/00165139 [05:39:50]NVStorageSaveData ofd_packets/00165139 [05:39:50]File name is /storage/ofd_packets/00165139 [05:39:50]Write 298 bytes [05:39:50]NVStorageSaveData done [05:39:50]OFDSenderStorePacket done [05:39:50]KKMCreateOFDPacket done [05:39:50]NVStorageSaveData kkm_last_timestamp [05:39:50]File name is /storage/kkm_last_timestamp [05:39:50]Write 4 bytes [05:39:50]NVStorageSaveData done [05:39:50]ExternCall_PrintAddStr [05:39:50]wPrintStart [05:39:50]Write to MH i2c: 01 00 00 04 18 1C [05:39:50]Write i2c OK [05:39:50]MH_I2C_Read... [05:39:50]Read from MH i2c: 01 [05:39:50]MH_I2C_Read... [05:39:50]Read from MH i2c: 01 07 00 [05:39:50]MH_I2C_Read... [05:39:50]Read from MH i2c: 01 07 00 04 18 00 00 00 00 00 FF 0F 31 [05:39:50]RasterBufferAndPrint [05:39:50]line Счет N : (1)459240 [05:39:50]line ИНН: 02508201610067 [05:39:50]line Контрольно-Кассовый Чек [05:39:50]line ПРОДАЖА [05:39:50]line ТРК (МРК, ГНК) : 11 [05:39:50]line Товар: 2710194210 [05:39:50]line ДТ-К-5 [05:39:50]line 42.100 * 71.26 [05:39:50]line = 3000.05 [05:39:50]line НДС 12% НСП 1% [05:39:50]line > о реализуемом товаре [05:39:50]line ИТОГО: 3000.05 [05:39:50]line НСП 1% : 26.55 [05:39:50]line НДС 12% : 318.59 [05:39:50]line Наличными: 0.00 [05:39:50]line Безнал.: 3000.05 [05:39:50]line Место: АЗС № 72 "Партнер Нефть" [05:39:50]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [05:39:50]line СНО: Общий режим [05:39:50]line Чек 12 15.07.2024 05:39 [05:39:50]line Смена: 448 ФФД: 1.0 [05:39:50]line ЗНМ: 0300000160 [05:39:50]line РНМ: 0000000000090829 [05:39:50]line Версия ККМ: 001 [05:39:50]line Платежная система: KICB Банк [05:39:50]line ФМ: 0000000000874718 [05:39:50]line ФД: 165139 [05:39:50]line ФПД: 62169704073752 [05:39:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T053952&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165139&fm=62169704073752&tin=02508201610067®Number=0000000000090829&sum=300005 [05:39:50]OFD Sender: Processing packet 165139 [packets to send 106, broken 105] [05:39:50]ProducePacketName [05:39:50]name=ofd_packets/00165139 [05:39:50]OFD Sender: To server: pG, [05:39:50]CommunicateWithHost lk.salyk.kg:30040 [05:39:50]ConnectInit lk.salyk.kg [05:39:50]written 0, free lines is 4095 [05:39:50]Connected sock=10 [05:39: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 37 31 38 0C 01 00 00 32 8C 04 01 17 24 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 A4 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 E5 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E5 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 73 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E5 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 28 B6 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 13 85 02 00 35 04 06 00 38 8B 03 20 8A 18 18 06 FA B9 2D 59 C0 BD [05:39:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 82 63 47 00 A1 BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 13 85 02 00 F4 03 04 00 B3 5C 94 66 B6 04 01 00 00 AF B8 E6 D4 FA D7 CD 0B [05:39:50]CommunicateWithHost err = 0 [05:39:50]CheckOFDResponse [05:39:50]1017 (14) - 77093643461234 [05:39:50]1041 (16) - 0000000000874718 [05:39:50]1040 (4) - 165139 [05:39:50]1012 (4) - 14.07.2024 23:18 [05:39:50]1206 (1) - 0 [05:39:50]OFD Sender: Remove packet 165139 [05:39:50]ProducePacketName [05:39:50]name=ofd_packets/00165139 [05:39:50]NVStorageDeleteData [05:39:50]Write to MH i2c: 01 00 00 2D 18 45 [05:39:50]Write i2c OK [05:39:50]MH_I2C_Read... [05:39:50]Read from MH i2c: 01 [05:39:50]MH_I2C_Read... [05:39:50]Read from MH i2c: 01 07 00 [05:39:50]MH_I2C_Read... [05:39:50]Read from MH i2c: 01 07 00 2D 18 00 00 00 00 00 04 0D 5D [05:39:50]RasterBufferAndPrint [05:39:50]line [05:39:50]line [05:39:50]line [05:39:50]line [05:39:50]line [05:39:50]written 0, free lines is 3338 [05:39:50]MH_Cut [05:39:50]Write to MH i2c: D1 01 00 34 18 01 1E [05:39:50]Write i2c OK [05:39:50]MH_I2C_Read... [05:39:50]Read from MH i2c: D1 [05:39:50]MH_I2C_Read... [05:39:50]Read from MH i2c: D1 01 00 [05:39:50]MH_I2C_Read... [05:39:50]Read from MH i2c: D1 01 00 34 18 00 1D [05:39:50]Write to MH i2c: 01 00 00 35 18 4D [05:39:50]Write i2c OK [05:39:50]MH_I2C_Read... [05:39:51]OFD Sender: No OFD packet to send [05:39:51]*** Cut start [05:39:51]*** Partial cut [05:39:51]*** CUTSNS_PIN = 1 [05:39:51]*** CUTSNS_PIN = 0 [05:39:51]*** Brake cut motor [05:39:52]Read from MH i2c: 01 [05:39:52]MH_I2C_Read... [05:39:52]*** Stop cut motor [05:39:52]*** Cut end [05:39:52]Read from MH i2c: 01 07 00 [05:39:52]MH_I2C_Read... [05:39:52]Read from MH i2c: 01 07 00 35 18 00 00 00 00 00 FF 0F 62 [05:39:52]process_action close_receipt done [05:39:52]requested_data is exist [05:39:52]produce_requested_data [05:39:52]requested_item fm.sn is exist - process it [05:39:52]wFMCommunicate request_size=4 [05:39:52]MH_SAM_APDU [05:39:52]CAPDU: 80 11 00 00 [05:39:52]Write to MH i2c: E2 08 00 36 18 80 11 00 00 00 00 00 00 C8 [05:39:52]Write i2c OK [05:39:52]MH_I2C_Read... [05:39:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:39:52]Read from MH i2c: E2 [05:39:52]MH_I2C_Read... [05:39:52]Read from MH i2c: E2 17 00 [05:39:52]MH_I2C_Read... [05:39:52]Read from MH i2c: E2 17 00 36 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1E [05:39:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [05:39:52]wFMCommunicate OK [05:39:52]requested_item fd.num is exist - process it [05:39:52]SAM_PROTO_GetFieldsCounters [05:39:52]wFMCommunicate request_size=4 [05:39:52]MH_SAM_APDU [05:39:52]CAPDU: 80 13 00 00 [05:39:52]Write to MH i2c: E2 08 00 37 18 80 13 00 00 00 00 00 00 CB [05:39:52]Write i2c OK [05:39:52]MH_I2C_Read... [05:39:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:39:52]Read from MH i2c: E2 [05:39:52]MH_I2C_Read... [05:39:52]Read from MH i2c: E2 62 00 [05:39:52]MH_I2C_Read... [05:39:52]Read from MH i2c: E2 62 00 37 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 13 85 02 00 0E 04 04 00 C0 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 71 [05:39: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 13 85 02 00 0E 04 04 00 C0 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 [05:39:52]wFMCommunicate OK [05:39:52]SAM_PROTO_GetFieldsCounters done [05:39:52]requested_item shift.num is exist - process it [05:39:52]requested_item shift.opened is exist - process it [05:39:52]req_shift_opened [05:39:52]FM_GetShiftState [05:39:52]SAM_PROTO_GetShiftState [05:39:52]wFMCommunicate request_size=4 [05:39:52]MH_SAM_APDU [05:39:52]CAPDU: 80 13 01 00 [05:39:52]Write to MH i2c: E2 08 00 38 18 80 13 01 00 00 00 00 00 CD [05:39:52]Write i2c OK [05:39:52]MH_I2C_Read... [05:39:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:39:52]Read from MH i2c: E2 [05:39:52]MH_I2C_Read... [05:39:52]Read from MH i2c: E2 0E 00 [05:39:52]MH_I2C_Read... [05:39:52]Read from MH i2c: E2 0E 00 38 18 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 A6 [05:39:52]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [05:39:52]wFMCommunicate OK [05:39:52]SAM_PROTO_GetShiftState done [05:39:52]FM_GetShiftState done [05:39:52]req_shift_opened done [05:39:52]requested_item shift.open_date is exist - process it [05:39:52]req_shift_open_date [05:39:52]req_shift_open_date done [05:39:52]produce_requested_data done [05:39:52]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165139,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [05:39:52]process_action_free close_receipt [05:39:52]json_value_free [05:39:52]json_value_free done [05:39:52]process_json_proto returns [05:39:52]Send response to host [05:39:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165139,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [05:39:52]free response buf [05:39:52]execute_script done [05:39:52]execute_script returns [05:39:52]free content buf [05:39:52]Sock 7.Close socket [05:39:52]Sock 7.Thread stoped [05:39:56]OFD Sender: No OFD packet to send [05:40:01]OFD Sender: No OFD packet to send [05:40:06]OFD Sender: No OFD packet to send [05:40:11]OFD Sender: No OFD packet to send [05:40:16]OFD Sender: No OFD packet to send [05:40:21]OFD Sender: No OFD packet to send [05:40:26]OFD Sender: No OFD packet to send [05:40:31]OFD Sender: No OFD packet to send [05:40:33]accept exits with 9 [05:40:33]New connection [05:40:33]New thread 3066785124 created [05:40:33]Thread 3066928484 joined [05:40:33]Waiting for new connection... [05:40:33] Sock 9.Parse request [05:40:33]Sock 9.Check first char [05:40:33]Sock 9.First char is OK [05:40:33]request: POST /json_proto HTTP/1.0 [05:40:33]Method: POST [05:40:33]URL: /json_proto [05:40:33]Method is POST - this is cgi request [05:40:33]url: /json_proto [05:40:33]query_string will be loaded in cgi processing [05:40:33]execute_cgi json_proto POST (null) [05:40:33]execute_cgi path=json_proto method=POST [05:40:33]POST find Content-Length [05:40:33]Host: 172.17.56.4:8080 [05:40:33]Content-Length: 677 [05:40:33]Content-Type: application/json [05:40:33] [05:40:33]POST finish read [05:40:33]Found Content-Length = 677 [05:40:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459241", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:40:33]execute_script... [05:40:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459241", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:40:33]POST & json_proto [05:40:33]process_json_proto [05:40:33]json parsed OK: [05:40:33]protocol is kg_v1.0 [05:40:33]action value=close_receipt [05:40:33]process_action close_receipt [05:40:33]cmd_close_receipt [05:40:33]MH_GetDate [05:40:33]Write to MH i2c: F0 00 00 39 18 40 [05:40:33]Write i2c OK [05:40:33]MH_I2C_Read... [05:40:33]Read from MH i2c: F0 [05:40:33]MH_I2C_Read... [05:40:33]Read from MH i2c: F0 09 00 [05:40:33]MH_I2C_Read... [05:40:33]Read from MH i2c: F0 09 00 39 18 00 55 B6 94 66 C9 DC B2 64 09 [05:40:33]GetLastDocTimeStamp 1721021992 [05:40:33]current date 1721022037 [05:40:33]FM_GetShiftState [05:40:33]SAM_PROTO_GetShiftState [05:40:33]wFMCommunicate request_size=4 [05:40:33]MH_SAM_APDU [05:40:33]CAPDU: 80 13 01 00 [05:40:33]Write to MH i2c: E2 08 00 3A 18 80 13 01 00 00 00 00 00 CF [05:40:33]Write i2c OK [05:40:33]MH_I2C_Read... [05:40:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:40:33]Read from MH i2c: E2 [05:40:33]MH_I2C_Read... [05:40:33]Read from MH i2c: E2 0E 00 [05:40:33]MH_I2C_Read... [05:40:33]Read from MH i2c: E2 0E 00 3A 18 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 A8 [05:40:33]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [05:40:33]wFMCommunicate OK [05:40:33]SAM_PROTO_GetShiftState done [05:40:33]FM_GetShiftState done [05:40:33]opened in 1721003876 [05:40:33]opened+sec_in_day 1721090276 [05:40:33]quantity*price = 50008 [05:40:33]sum+1 = 50009 [05:40:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 13 15.07.2024 05:40 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165140 ФПД: 194748779155086 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T054037&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165140&fm=194748779155086&tin=02508201610067®Number=0000000000090829&sum=50000 [05:40:34]StoreToDocumentArchive [05:40:34]shift 448 fd 165140 [05:40:34]save to /storage/0448/doc_00165140 [05:40:34]save last doc name /storage/0448/doc_00165140 to /storage/kkm_last_doc_name [05:40:34]save OK [05:40:34]Clear old archive folders... [05:40:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:40:34]tlvbuf is 013C0160 [05:40:34]SAM_PROTO_ClearQueue [05:40:34]wFMCommunicate request_size=4 [05:40:34]MH_SAM_APDU [05:40:34]CAPDU: 80 09 00 00 [05:40:34]Write to MH i2c: E2 08 00 47 18 80 09 00 00 00 00 00 00 D1 [05:40:34]Write i2c OK [05:40:34]MH_I2C_Read... [05:40:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:40:34]Read from MH i2c: E2 [05:40:34]MH_I2C_Read... [05:40:34]Read from MH i2c: E2 03 00 [05:40:34]MH_I2C_Read... [05:40:34]Read from MH i2c: E2 03 00 47 18 00 90 00 D3 [05:40:34]RAPDU: 90 00 [05:40:34]wFMCommunicate OK [05:40:34]SAM_PROTO_ClearQueue done [05:40:34]KKMCreateOFDPacket [05:40:34]OFDProtocolAddRootSTLVToBuf [05:40:34]FM_MakeSignedData [05:40:34]FM_MakeSignedData [05:40:34]SAM_PROTO_SignData [05:40:34]wFMCommunicate request_size=4 [05:40:34]MH_SAM_APDU [05:40:34]CAPDU: 80 0D 01 02 [05:40:34]Write to MH i2c: E2 08 00 48 18 80 0D 01 02 00 00 00 00 D9 [05:40:34]Write i2c OK [05:40:34]MH_I2C_Read... [05:40:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:40:34]Read from MH i2c: E2 [05:40:34]MH_I2C_Read... [05:40:34]Read from MH i2c: E2 03 00 [05:40:34]MH_I2C_Read... [05:40:34]Read from MH i2c: E2 03 00 48 18 00 90 00 D4 [05:40:34]RAPDU: 90 00 [05:40:34]wFMCommunicate OK [05:40:34]wFMCommunicate request_size=255 [05:40:34]MH_SAM_APDU [05:40: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 55 B6 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 14 85 02 00 35 04 06 00 B1 [05:40:34]Write to MH i2c: E2 02 01 49 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 55 B6 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 14 85 02 00 35 04 06 00 B1 00 00 71 [05:40:34]Write i2c OK [05:40:34]MH_I2C_Read... [05:40:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:40:34]Read from MH i2c: E2 [05:40:34]MH_I2C_Read... [05:40:34]Read from MH i2c: E2 03 00 [05:40:34]MH_I2C_Read... [05:40:34]Read from MH i2c: E2 03 00 49 18 00 90 00 D5 [05:40:34]RAPDU: 90 00 [05:40:34]wFMCommunicate OK [05:40:34]wFMCommunicate request_size=10 [05:40:34]MH_SAM_APDU [05:40:34]CAPDU: 80 0D 02 02 05 1F 7B CD 4E 8E [05:40:34]Write to MH i2c: E2 0D 00 4A 18 80 0D 02 02 05 00 1F 7B CD 4E 8E 00 00 29 [05:40:34]Write i2c OK [05:40:34]MH_I2C_Read... [05:40:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:40:34]Read from MH i2c: E2 [05:40:34]MH_I2C_Read... [05:40:34]Read from MH i2c: E2 03 00 [05:40:34]MH_I2C_Read... [05:40:34]Read from MH i2c: E2 03 00 4A 18 00 90 00 D6 [05:40:34]RAPDU: 90 00 [05:40:34]wFMCommunicate OK [05:40:34]wFMCommunicate request_size=4 [05:40:34]MH_SAM_APDU [05:40:34]CAPDU: 80 0D 03 02 [05:40:34]Write to MH i2c: E2 08 00 4B 18 80 0D 03 02 00 00 00 00 DE [05:40:34]Write i2c OK [05:40:34]MH_I2C_Read... [05:40:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:40:35]Read from MH i2c: E2 [05:40:35]MH_I2C_Read... [05:40:35]Read from MH i2c: E2 0B 00 [05:40:35]MH_I2C_Read... [05:40:35]Read from MH i2c: E2 0B 00 4B 18 00 09 7C 45 FC EF CF E5 DB 90 00 23 [05:40:35]RAPDU: 09 7C 45 FC EF CF E5 DB 90 00 [05:40:35]wFMCommunicate OK [05:40:35]SAM_PROTO_SignData done [05:40:35]FM_MakeSignedData done [05:40:35]CreateOFDProtocolMessage [05:40:35]wFMCommunicate request_size=4 [05:40:35]MH_SAM_APDU [05:40:35]CAPDU: 80 11 00 00 [05:40:35]Write to MH i2c: E2 08 00 4C 18 80 11 00 00 00 00 00 00 DE [05:40:35]Write i2c OK [05:40:35]MH_I2C_Read... [05:40:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:40:35]Read from MH i2c: E2 [05:40:35]MH_I2C_Read... [05:40:35]Read from MH i2c: E2 17 00 [05:40:35]MH_I2C_Read... [05:40:35]Read from MH i2c: E2 17 00 4C 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 34 [05:40:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [05:40:35]wFMCommunicate OK [05:40:35]CreateOFDProtocolMessage done [05:40:35]OFDSenderStorePacket 165140 [05:40:35]StoreOFDPacket docnum=165140 [05:40:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 5B 80 07 01 B5 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 55 B6 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 14 85 02 00 35 04 06 00 B1 1F 7B CD 4E 8E 09 7C 45 FC EF CF E5 DB [05:40:35]CheckFolder [05:40:35]dirname=/storage/ofd_packets [05:40:35]CheckFolder done [05:40:35]ProducePacketName [05:40:35]name=ofd_packets/00165140 [05:40:35]NVStorageSaveData ofd_packets/00165140 [05:40:35]File name is /storage/ofd_packets/00165140 [05:40:35]Write 301 bytes [05:40:35]NVStorageSaveData done [05:40:35]OFDSenderStorePacket done [05:40:35]KKMCreateOFDPacket done [05:40:35]NVStorageSaveData kkm_last_timestamp [05:40:35]File name is /storage/kkm_last_timestamp [05:40:35]Write 4 bytes [05:40:35]NVStorageSaveData done [05:40:35]ExternCall_PrintAddStr [05:40:35]wPrintStart [05:40:35]Write to MH i2c: 01 00 00 4D 18 65 [05:40:35]Write i2c OK [05:40:35]MH_I2C_Read... [05:40:35]Read from MH i2c: 01 [05:40:35]MH_I2C_Read... [05:40:35]Read from MH i2c: 01 07 00 [05:40:35]MH_I2C_Read... [05:40:35]Read from MH i2c: 01 07 00 4D 18 00 00 00 00 00 FF 0F 7A [05:40:35]RasterBufferAndPrint [05:40:35]line Счет N : (1)459241 [05:40:35]line ИНН: 02508201610067 [05:40:35]line Контрольно-Кассовый Чек [05:40:35]line ПРОДАЖА [05:40:35]line ТРК (МРК, ГНК) : 22 [05:40:35]line Товар: 2710124130 [05:40:35]line Аи-92-К-5 [05:40:35]line 7.600 * 65.80 [05:40:35]line = 500.08 [05:40:35]line НДС 12% НСП 1% [05:40:35]line > о реализуемом товаре [05:40:35]line ОКРУГЛЕНИЕ: -0.08 [05:40:35]line ИТОГО: 500.00 [05:40:35]line Внесено: 500.00 [05:40:35]line СДАЧА: 0.00 [05:40:35]line НСП 1% : 4.42 [05:40:35]line НДС 12% : 53.11 [05:40:35]line Наличными: 500.00 [05:40:35]line Безнал.: 0.00 [05:40:35]line Место: АЗС № 72 "Партнер Нефть" [05:40:35]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [05:40:35]line СНО: Общий режим [05:40:35]line Чек 13 15.07.2024 05:40 [05:40:35]line Смена: 448 ФФД: 1.0 [05:40:35]line ЗНМ: 0300000160 [05:40:35]line РНМ: 0000000000090829 [05:40:35]line Версия ККМ: 001 [05:40:35]line ФМ: 0000000000874718 [05:40:35]line ФД: 165140 [05:40:35]line ФПД: 194748779155086 [05:40:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T054037&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165140&fm=194748779155086&tin=02508201610067®Number=0000000000090829&sum=50000 [05:40:35]written 0, free lines is 4095 [05:40:35]OFD Sender: Processing packet 165140 [packets to send 106, broken 105] [05:40:35]ProducePacketName [05:40:35]name=ofd_packets/00165140 [05:40:35]OFD Sender: To server: pG, [05:40:35]CommunicateWithHost lk.salyk.kg:30040 [05:40:35]ConnectInit lk.salyk.kg [05:40:35]Connected sock=10 [05:40: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 37 31 38 0F 01 00 00 5B 80 07 01 B5 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 55 B6 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 14 85 02 00 35 04 06 00 B1 1F 7B CD 4E 8E 09 7C 45 FC EF CF E5 DB [05:40:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 EA 7F 47 00 3D 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 14 85 02 00 F4 03 04 00 E0 5C 94 66 B6 04 01 00 00 88 32 BD 99 F0 E8 21 B1 [05:40:35]CommunicateWithHost err = 0 [05:40:35]CheckOFDResponse [05:40:35]1017 (14) - 77093643461234 [05:40:35]1041 (16) - 0000000000874718 [05:40:35]1040 (4) - 165140 [05:40:35]1012 (4) - 14.07.2024 23:18 [05:40:35]1206 (1) - 0 [05:40:35]OFD Sender: Remove packet 165140 [05:40:35]ProducePacketName [05:40:35]name=ofd_packets/00165140 [05:40:35]NVStorageDeleteData [05:40:35]Write to MH i2c: 01 00 00 77 18 8F [05:40:35]Write i2c OK [05:40:35]MH_I2C_Read... [05:40:35]Read from MH i2c: 01 [05:40:35]MH_I2C_Read... [05:40:35]Read from MH i2c: 01 07 00 [05:40:35]MH_I2C_Read... [05:40:35]Read from MH i2c: 01 07 00 77 18 00 00 00 00 00 07 0D AA [05:40:35]RasterBufferAndPrint [05:40:35]line [05:40:35]line [05:40:35]line [05:40:35]line [05:40:35]line [05:40:35]written 0, free lines is 3341 [05:40:35]MH_Cut [05:40:35]Write to MH i2c: D1 01 00 7E 18 01 68 [05:40:35]Write i2c OK [05:40:35]MH_I2C_Read... [05:40:35]Read from MH i2c: D1 [05:40:35]MH_I2C_Read... [05:40:35]Read from MH i2c: D1 01 00 [05:40:35]MH_I2C_Read... [05:40:35]Read from MH i2c: D1 01 00 7E 18 00 67 [05:40:35]Write to MH i2c: 01 00 00 7F 18 97 [05:40:35]Write i2c OK [05:40:35]MH_I2C_Read... [05:40:35]OFD Sender: No OFD packet to send [05:40:36]*** Cut start [05:40:36]*** Partial cut [05:40:36]*** CUTSNS_PIN = 1 [05:40:36]*** CUTSNS_PIN = 0 [05:40:36]*** Brake cut motor [05:40:36]Read from MH i2c: 01 [05:40:36]MH_I2C_Read... [05:40:36]*** Stop cut motor [05:40:36]*** Cut end [05:40:36]Read from MH i2c: 01 07 00 [05:40:36]MH_I2C_Read... [05:40:36]Read from MH i2c: 01 07 00 7F 18 00 00 00 00 00 FF 0F AC [05:40:36]process_action close_receipt done [05:40:36]requested_data is exist [05:40:36]produce_requested_data [05:40:36]requested_item fm.sn is exist - process it [05:40:36]wFMCommunicate request_size=4 [05:40:36]MH_SAM_APDU [05:40:36]CAPDU: 80 11 00 00 [05:40:36]Write to MH i2c: E2 08 00 80 18 80 11 00 00 00 00 00 00 12 [05:40:36]Write i2c OK [05:40:36]MH_I2C_Read... [05:40:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:40:36]Read from MH i2c: E2 [05:40:36]MH_I2C_Read... [05:40:36]Read from MH i2c: E2 17 00 [05:40:36]MH_I2C_Read... [05:40:36]Read from MH i2c: E2 17 00 80 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 68 [05:40:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [05:40:36]wFMCommunicate OK [05:40:36]requested_item fd.num is exist - process it [05:40:36]SAM_PROTO_GetFieldsCounters [05:40:36]wFMCommunicate request_size=4 [05:40:36]MH_SAM_APDU [05:40:36]CAPDU: 80 13 00 00 [05:40:36]Write to MH i2c: E2 08 00 81 18 80 13 00 00 00 00 00 00 15 [05:40:36]Write i2c OK [05:40:36]MH_I2C_Read... [05:40:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:40:37]Read from MH i2c: E2 [05:40:37]MH_I2C_Read... [05:40:37]Read from MH i2c: E2 62 00 [05:40:37]MH_I2C_Read... [05:40:37]Read from MH i2c: E2 62 00 81 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 14 85 02 00 0E 04 04 00 C0 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 BF [05:40:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 14 85 02 00 0E 04 04 00 C0 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 [05:40:37]wFMCommunicate OK [05:40:37]SAM_PROTO_GetFieldsCounters done [05:40:37]requested_item shift.num is exist - process it [05:40:37]requested_item shift.opened is exist - process it [05:40:37]req_shift_opened [05:40:37]FM_GetShiftState [05:40:37]SAM_PROTO_GetShiftState [05:40:37]wFMCommunicate request_size=4 [05:40:37]MH_SAM_APDU [05:40:37]CAPDU: 80 13 01 00 [05:40:37]Write to MH i2c: E2 08 00 82 18 80 13 01 00 00 00 00 00 17 [05:40:37]Write i2c OK [05:40:37]MH_I2C_Read... [05:40:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:40:37]Read from MH i2c: E2 [05:40:37]MH_I2C_Read... [05:40:37]Read from MH i2c: E2 0E 00 [05:40:37]MH_I2C_Read... [05:40:37]Read from MH i2c: E2 0E 00 82 18 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 F0 [05:40:37]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [05:40:37]wFMCommunicate OK [05:40:37]SAM_PROTO_GetShiftState done [05:40:37]FM_GetShiftState done [05:40:37]req_shift_opened done [05:40:37]requested_item shift.open_date is exist - process it [05:40:37]req_shift_open_date [05:40:37]req_shift_open_date done [05:40:37]produce_requested_data done [05:40:37]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165140,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [05:40:37]process_action_free close_receipt [05:40:37]json_value_free [05:40:37]json_value_free done [05:40:37]process_json_proto returns [05:40:37]Send response to host [05:40:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165140,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [05:40:37]free response buf [05:40:37]execute_script done [05:40:37]execute_script returns [05:40:37]free content buf [05:40:37]Sock 9.Close socket [05:40:37]Sock 9.Thread stoped [05:40:40]OFD Sender: No OFD packet to send [05:40:45]OFD Sender: No OFD packet to send [05:40:50]OFD Sender: No OFD packet to send [05:40:55]OFD Sender: No OFD packet to send [05:41:00]OFD Sender: No OFD packet to send [05:41:05]OFD Sender: No OFD packet to send [05:41:10]OFD Sender: No OFD packet to send [05:41:15]OFD Sender: No OFD packet to send [05:41:20]OFD Sender: No OFD packet to send [05:41:25]OFD Sender: No OFD packet to send [05:41:30]OFD Sender: No OFD packet to send [05:41:35]OFD Sender: No OFD packet to send [05:41:40]OFD Sender: No OFD packet to send [05:41:45]OFD Sender: No OFD packet to send [05:41:51]OFD Sender: No OFD packet to send [05:41:56]OFD Sender: No OFD packet to send [05:42:01]OFD Sender: No OFD packet to send [05:42:06]OFD Sender: No OFD packet to send [05:42:11]OFD Sender: No OFD packet to send [05:42:16]OFD Sender: No OFD packet to send [05:42:21]OFD Sender: No OFD packet to send [05:42:26]OFD Sender: No OFD packet to send [05:42:31]OFD Sender: No OFD packet to send [05:42:36]OFD Sender: No OFD packet to send [05:42:41]OFD Sender: No OFD packet to send [05:42:46]OFD Sender: No OFD packet to send [05:42:51]OFD Sender: No OFD packet to send [05:42:56]OFD Sender: No OFD packet to send [05:43:01]OFD Sender: No OFD packet to send [05:43:06]OFD Sender: No OFD packet to send [05:43:11]OFD Sender: No OFD packet to send [05:43:16]OFD Sender: No OFD packet to send [05:43:21]OFD Sender: No OFD packet to send [05:43:26]OFD Sender: No OFD packet to send [05:43:31]OFD Sender: No OFD packet to send [05:43:36]OFD Sender: No OFD packet to send [05:43:41]OFD Sender: No OFD packet to send [05:43:46]OFD Sender: No OFD packet to send [05:43:51]OFD Sender: No OFD packet to send [05:43:56]OFD Sender: No OFD packet to send [05:44:01]OFD Sender: No OFD packet to send [05:44:06]OFD Sender: No OFD packet to send [05:44:11]OFD Sender: No OFD packet to send [05:44:16]OFD Sender: No OFD packet to send [05:44:21]OFD Sender: No OFD packet to send [05:44:26]OFD Sender: No OFD packet to send [05:44:31]OFD Sender: No OFD packet to send [05:44:36]OFD Sender: No OFD packet to send [05:44:41]OFD Sender: No OFD packet to send [05:44:46]OFD Sender: No OFD packet to send [05:44:51]OFD Sender: No OFD packet to send [05:44:56]OFD Sender: No OFD packet to send [05:45:01]OFD Sender: No OFD packet to send [05:45:06]OFD Sender: No OFD packet to send [05:45:11]OFD Sender: No OFD packet to send [05:45:16]OFD Sender: No OFD packet to send [05:45:21]OFD Sender: No OFD packet to send [05:45:26]OFD Sender: No OFD packet to send [05:45:31]OFD Sender: No OFD packet to send [05:45:36]OFD Sender: No OFD packet to send [05:45:41]OFD Sender: No OFD packet to send [05:45:46]OFD Sender: No OFD packet to send [05:45:51]OFD Sender: No OFD packet to send [05:45:51]accept exits with 7 [05:45:51]New connection [05:45:51]New thread 3066928484 created [05:45:51]Thread 3066785124 joined [05:45:51]Waiting for new connection... [05:45:51] Sock 7.Parse request [05:45:51]Sock 7.Check first char [05:45:51]Sock 7.First char is OK [05:45:51]request: POST /json_proto HTTP/1.0 [05:45:51]Method: POST [05:45:51]URL: /json_proto [05:45:51]Method is POST - this is cgi request [05:45:51]url: /json_proto [05:45:51]query_string will be loaded in cgi processing [05:45:51]execute_cgi json_proto POST (null) [05:45:51]execute_cgi path=json_proto method=POST [05:45:51]POST find Content-Length [05:45:51]Host: 172.17.56.4:8080 [05:45:51]Content-Length: 790 [05:45:51]Content-Type: application/json [05:45:51] [05:45:51]POST finish read [05:45:51]Found Content-Length = 790 [05:45:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459242", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 56.140, "sum" : 4000.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 4000.54 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:45:51]execute_script... [05:45: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)459242", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 56.140, "sum" : 4000.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 4000.54 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:45:51]POST & json_proto [05:45:51]process_json_proto [05:45:51]json parsed OK: [05:45:51]protocol is kg_v1.0 [05:45:51]action value=close_receipt [05:45:51]process_action close_receipt [05:45:51]cmd_close_receipt [05:45:51]MH_GetDate [05:45:51]Write to MH i2c: F0 00 00 83 18 8A [05:45:51]Write i2c OK [05:45:51]MH_I2C_Read... [05:45:51]Read from MH i2c: F0 [05:45:51]MH_I2C_Read... [05:45:51]Read from MH i2c: F0 09 00 [05:45:51]MH_I2C_Read... [05:45:51]Read from MH i2c: F0 09 00 83 18 00 92 B7 94 66 C9 DC B2 64 91 [05:45:51]GetLastDocTimeStamp 1721022037 [05:45:51]current date 1721022354 [05:45:51]FM_GetShiftState [05:45:51]SAM_PROTO_GetShiftState [05:45:51]wFMCommunicate request_size=4 [05:45:51]MH_SAM_APDU [05:45:51]CAPDU: 80 13 01 00 [05:45:51]Write to MH i2c: E2 08 00 84 18 80 13 01 00 00 00 00 00 19 [05:45:51]Write i2c OK [05:45:51]MH_I2C_Read... [05:45:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:45:51]Read from MH i2c: E2 [05:45:51]MH_I2C_Read... [05:45:51]Read from MH i2c: E2 0E 00 [05:45:51]MH_I2C_Read... [05:45:51]Read from MH i2c: E2 0E 00 84 18 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 F2 [05:45:51]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [05:45:51]wFMCommunicate OK [05:45:51]SAM_PROTO_GetShiftState done [05:45:51]FM_GetShiftState done [05:45:51]opened in 1721003876 [05:45:51]opened+sec_in_day 1721090276 [05:45:51]quantity*price = 400053 [05:45:51]sum+1 = 400055 [05:45:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4000.54 НСП 1% : 35.40 НДС 12% : 424.84 Наличными: 0.00 Безнал.: 4000.54 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 14 15.07.2024 05:45 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 165141 ФПД: 168458166403884 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T054554&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165141&fm=168458166403884&tin=02508201610067®Number=0000000000090829&sum=400054 [05:45:52]StoreToDocumentArchive [05:45:52]shift 448 fd 165141 [05:45:52]save to /storage/0448/doc_00165141 [05:45:52]save last doc name /storage/0448/doc_00165141 to /storage/kkm_last_doc_name [05:45:52]save OK [05:45:52]Clear old archive folders... [05:45:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [05:45:52]tlvbuf is 01354FE0 [05:45:52]SAM_PROTO_ClearQueue [05:45:52]wFMCommunicate request_size=4 [05:45:52]MH_SAM_APDU [05:45:52]CAPDU: 80 09 00 00 [05:45:52]Write to MH i2c: E2 08 00 91 18 80 09 00 00 00 00 00 00 1B [05:45:52]Write i2c OK [05:45:52]MH_I2C_Read... [05:45:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:45:52]Read from MH i2c: E2 [05:45:52]MH_I2C_Read... [05:45:52]Read from MH i2c: E2 03 00 [05:45:52]MH_I2C_Read... [05:45:52]Read from MH i2c: E2 03 00 91 18 00 90 00 1D [05:45:52]RAPDU: 90 00 [05:45:52]wFMCommunicate OK [05:45:52]SAM_PROTO_ClearQueue done [05:45:52]KKMCreateOFDPacket [05:45:52]OFDProtocolAddRootSTLVToBuf [05:45:52]FM_MakeSignedData [05:45:52]FM_MakeSignedData [05:45:52]SAM_PROTO_SignData [05:45:52]wFMCommunicate request_size=4 [05:45:52]MH_SAM_APDU [05:45:52]CAPDU: 80 0D 01 02 [05:45:52]Write to MH i2c: E2 08 00 92 18 80 0D 01 02 00 00 00 00 23 [05:45:52]Write i2c OK [05:45:52]MH_I2C_Read... [05:45:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:45:52]Read from MH i2c: E2 [05:45:52]MH_I2C_Read... [05:45:52]Read from MH i2c: E2 03 00 [05:45:52]MH_I2C_Read... [05:45:52]Read from MH i2c: E2 03 00 92 18 00 90 00 1E [05:45:52]RAPDU: 90 00 [05:45:52]wFMCommunicate OK [05:45:52]wFMCommunicate request_size=255 [05:45:52]MH_SAM_APDU [05:45:52]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4C DB 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 B6 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 92 B7 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 15 85 02 00 35 04 06 00 99 36 39 2B [05:45:52]Write to MH i2c: E2 02 01 93 18 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4C DB 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 B6 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 92 B7 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 15 85 02 00 35 04 06 00 99 36 39 2B 00 00 7B [05:45:52]Write i2c OK [05:45:52]MH_I2C_Read... [05:45:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:45:52]Read from MH i2c: E2 [05:45:52]MH_I2C_Read... [05:45:52]Read from MH i2c: E2 03 00 [05:45:52]MH_I2C_Read... [05:45:52]Read from MH i2c: E2 03 00 93 18 00 90 00 1F [05:45:52]RAPDU: 90 00 [05:45:52]wFMCommunicate OK [05:45:52]wFMCommunicate request_size=7 [05:45:52]MH_SAM_APDU [05:45:52]CAPDU: 80 0D 02 02 02 03 2C [05:45:52]Write to MH i2c: E2 0A 00 94 18 80 0D 02 02 02 00 03 2C 00 00 59 [05:45:52]Write i2c OK [05:45:52]MH_I2C_Read... [05:45:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:45:52]Read from MH i2c: E2 [05:45:52]MH_I2C_Read... [05:45:52]Read from MH i2c: E2 03 00 [05:45:52]MH_I2C_Read... [05:45:52]Read from MH i2c: E2 03 00 94 18 00 90 00 20 [05:45:52]RAPDU: 90 00 [05:45:52]wFMCommunicate OK [05:45:52]wFMCommunicate request_size=4 [05:45:52]MH_SAM_APDU [05:45:52]CAPDU: 80 0D 03 02 [05:45:52]Write to MH i2c: E2 08 00 95 18 80 0D 03 02 00 00 00 00 28 [05:45:52]Write i2c OK [05:45:52]MH_I2C_Read... [05:45:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:45:52]Read from MH i2c: E2 [05:45:52]MH_I2C_Read... [05:45:52]Read from MH i2c: E2 0B 00 [05:45:52]MH_I2C_Read... [05:45:52]Read from MH i2c: E2 0B 00 95 18 00 E8 5E B7 58 A3 26 15 5E 90 00 BA [05:45:52]RAPDU: E8 5E B7 58 A3 26 15 5E 90 00 [05:45:52]wFMCommunicate OK [05:45:52]SAM_PROTO_SignData done [05:45:52]FM_MakeSignedData done [05:45:52]CreateOFDProtocolMessage [05:45:52]wFMCommunicate request_size=4 [05:45:52]MH_SAM_APDU [05:45:52]CAPDU: 80 11 00 00 [05:45:52]Write to MH i2c: E2 08 00 96 18 80 11 00 00 00 00 00 00 28 [05:45:52]Write i2c OK [05:45:52]MH_I2C_Read... [05:45:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:45:52]Read from MH i2c: E2 [05:45:52]MH_I2C_Read... [05:45:52]Read from MH i2c: E2 17 00 [05:45:52]MH_I2C_Read... [05:45:52]Read from MH i2c: E2 17 00 96 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7E [05:45:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [05:45:52]wFMCommunicate OK [05:45:52]CreateOFDProtocolMessage done [05:45:52]OFDSenderStorePacket 165141 [05:45:52]StoreOFDPacket docnum=165141 [05:45:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 B2 63 04 01 5E 18 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4C DB 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 B6 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 92 B7 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 15 85 02 00 35 04 06 00 99 36 39 2B 03 2C E8 5E B7 58 A3 26 15 5E [05:45:52]CheckFolder [05:45:52]dirname=/storage/ofd_packets [05:45:52]CheckFolder done [05:45:52]ProducePacketName [05:45:52]name=ofd_packets/00165141 [05:45:52]NVStorageSaveData ofd_packets/00165141 [05:45:52]File name is /storage/ofd_packets/00165141 [05:45:52]Write 298 bytes [05:45:52]NVStorageSaveData done [05:45:52]OFDSenderStorePacket done [05:45:52]KKMCreateOFDPacket done [05:45:52]NVStorageSaveData kkm_last_timestamp [05:45:52]File name is /storage/kkm_last_timestamp [05:45:52]Write 4 bytes [05:45:52]NVStorageSaveData done [05:45:52]ExternCall_PrintAddStr [05:45:52]wPrintStart [05:45:52]Write to MH i2c: 01 00 00 97 18 AF [05:45:52]Write i2c OK [05:45:52]MH_I2C_Read... [05:45:52]Read from MH i2c: 01 [05:45:52]MH_I2C_Read... [05:45:52]Read from MH i2c: 01 07 00 [05:45:52]MH_I2C_Read... [05:45:52]Read from MH i2c: 01 07 00 97 18 00 00 00 00 00 FF 0F C4 [05:45:52]RasterBufferAndPrint [05:45:52]line Счет N : (1)459242 [05:45:52]line ИНН: 02508201610067 [05:45:52]line Контрольно-Кассовый Чек [05:45:52]line ПРОДАЖА [05:45:52]line ТРК (МРК, ГНК) : 21 [05:45:52]line Товар: 2710194210 [05:45:52]line ДТ-К-5 [05:45:52]line 56.140 * 71.26 [05:45:52]line = 4000.54 [05:45:52]line НДС 12% НСП 1% [05:45:52]line > о реализуемом товаре [05:45:52]line ИТОГО: 4000.54 [05:45:52]line НСП 1% : 35.40 [05:45:52]line НДС 12% : 424.84 [05:45:52]line Наличными: 0.00 [05:45:52]line Безнал.: 4000.54 [05:45:52]line Место: АЗС № 72 "Партнер Нефть" [05:45:52]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [05:45:52]line СНО: Общий режим [05:45:52]line Чек 14 15.07.2024 05:45 [05:45:52]line Смена: 448 ФФД: 1.0 [05:45:52]line ЗНМ: 0300000160 [05:45:52]line РНМ: 0000000000090829 [05:45:52]line Версия ККМ: 001 [05:45:52]line Платежная система: KICB Банк [05:45:52]line ФМ: 0000000000874718 [05:45:52]line ФД: 165141 [05:45:52]line ФПД: 168458166403884 [05:45:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T054554&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165141&fm=168458166403884&tin=02508201610067®Number=0000000000090829&sum=400054 [05:45:53]OFD Sender: Processing packet 165141 [packets to send 106, broken 105] [05:45:53]ProducePacketName [05:45:53]name=ofd_packets/00165141 [05:45:53]OFD Sender: To server: pG, [05:45:53]CommunicateWithHost lk.salyk.kg:30040 [05:45:53]ConnectInit lk.salyk.kg [05:45:53]written 0, free lines is 4095 [05:45:53]Connected sock=10 [05:45: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 37 31 38 0C 01 00 00 B2 63 04 01 5E 18 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4C DB 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 B6 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 92 B7 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 15 85 02 00 35 04 06 00 99 36 39 2B 03 2C E8 5E B7 58 A3 26 15 5E [05:45:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 D1 47 47 00 E1 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 15 85 02 00 F4 03 04 00 1E 5E 94 66 B6 04 01 00 00 C8 D4 72 B0 D3 82 BB F2 [05:45:53]CommunicateWithHost err = 0 [05:45:53]CheckOFDResponse [05:45:53]1017 (14) - 77093643461234 [05:45:53]1041 (16) - 0000000000874718 [05:45:53]1040 (4) - 165141 [05:45:53]1012 (4) - 14.07.2024 23:24 [05:45:53]1206 (1) - 0 [05:45:53]OFD Sender: Remove packet 165141 [05:45:53]ProducePacketName [05:45:53]name=ofd_packets/00165141 [05:45:53]NVStorageDeleteData [05:45:53]Write to MH i2c: 01 00 00 C0 18 D8 [05:45:53]Write i2c OK [05:45:53]MH_I2C_Read... [05:45:53]Read from MH i2c: 01 [05:45:53]MH_I2C_Read... [05:45:53]Read from MH i2c: 01 07 00 [05:45:53]MH_I2C_Read... [05:45:53]Read from MH i2c: 01 07 00 C0 18 00 00 00 00 00 04 0D F0 [05:45:53]RasterBufferAndPrint [05:45:53]line [05:45:53]line [05:45:53]line [05:45:53]line [05:45:53]line [05:45:53]written 0, free lines is 3339 [05:45:53]MH_Cut [05:45:53]Write to MH i2c: D1 01 00 C7 18 01 B1 [05:45:53]Write i2c OK [05:45:53]MH_I2C_Read... [05:45:53]Read from MH i2c: D1 [05:45:53]MH_I2C_Read... [05:45:53]Read from MH i2c: D1 01 00 [05:45:53]MH_I2C_Read... [05:45:53]Read from MH i2c: D1 01 00 C7 18 00 B0 [05:45:53]Write to MH i2c: 01 00 00 C8 18 E0 [05:45:53]Write i2c OK [05:45:53]MH_I2C_Read... [05:45:54]OFD Sender: No OFD packet to send [05:45:54]*** Cut start [05:45:54]*** Partial cut [05:45:54]*** CUTSNS_PIN = 1 [05:45:54]*** CUTSNS_PIN = 0 [05:45:54]*** Brake cut motor [05:45:54]Read from MH i2c: 01 [05:45:55]MH_I2C_Read... [05:45:55]*** Stop cut motor [05:45:55]*** Cut end [05:45:55]Read from MH i2c: 01 07 00 [05:45:55]MH_I2C_Read... [05:45:55]Read from MH i2c: 01 07 00 C8 18 00 00 00 00 00 FF 0F F5 [05:45:55]process_action close_receipt done [05:45:55]requested_data is exist [05:45:55]produce_requested_data [05:45:55]requested_item fm.sn is exist - process it [05:45:55]wFMCommunicate request_size=4 [05:45:55]MH_SAM_APDU [05:45:55]CAPDU: 80 11 00 00 [05:45:55]Write to MH i2c: E2 08 00 C9 18 80 11 00 00 00 00 00 00 5B [05:45:55]Write i2c OK [05:45:55]MH_I2C_Read... [05:45:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:45:55]Read from MH i2c: E2 [05:45:55]MH_I2C_Read... [05:45:55]Read from MH i2c: E2 17 00 [05:45:55]MH_I2C_Read... [05:45:55]Read from MH i2c: E2 17 00 C9 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B1 [05:45:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [05:45:55]wFMCommunicate OK [05:45:55]requested_item fd.num is exist - process it [05:45:55]SAM_PROTO_GetFieldsCounters [05:45:55]wFMCommunicate request_size=4 [05:45:55]MH_SAM_APDU [05:45:55]CAPDU: 80 13 00 00 [05:45:55]Write to MH i2c: E2 08 00 CA 18 80 13 00 00 00 00 00 00 5E [05:45:55]Write i2c OK [05:45:55]MH_I2C_Read... [05:45:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:45:55]Read from MH i2c: E2 [05:45:55]MH_I2C_Read... [05:45:55]Read from MH i2c: E2 62 00 [05:45:55]MH_I2C_Read... [05:45:55]Read from MH i2c: E2 62 00 CA 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 15 85 02 00 0E 04 04 00 C0 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 0C [05:45: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 15 85 02 00 0E 04 04 00 C0 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 [05:45:55]wFMCommunicate OK [05:45:55]SAM_PROTO_GetFieldsCounters done [05:45:55]requested_item shift.num is exist - process it [05:45:55]requested_item shift.opened is exist - process it [05:45:55]req_shift_opened [05:45:55]FM_GetShiftState [05:45:55]SAM_PROTO_GetShiftState [05:45:55]wFMCommunicate request_size=4 [05:45:55]MH_SAM_APDU [05:45:55]CAPDU: 80 13 01 00 [05:45:55]Write to MH i2c: E2 08 00 CB 18 80 13 01 00 00 00 00 00 60 [05:45:55]Write i2c OK [05:45:55]MH_I2C_Read... [05:45:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:45:55]Read from MH i2c: E2 [05:45:55]MH_I2C_Read... [05:45:55]Read from MH i2c: E2 0E 00 [05:45:55]MH_I2C_Read... [05:45:55]Read from MH i2c: E2 0E 00 CB 18 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 39 [05:45:55]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [05:45:55]wFMCommunicate OK [05:45:55]SAM_PROTO_GetShiftState done [05:45:55]FM_GetShiftState done [05:45:55]req_shift_opened done [05:45:55]requested_item shift.open_date is exist - process it [05:45:55]req_shift_open_date [05:45:55]req_shift_open_date done [05:45:55]produce_requested_data done [05:45:55]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165141,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [05:45:55]process_action_free close_receipt [05:45:55]json_value_free [05:45:55]json_value_free done [05:45:55]process_json_proto returns [05:45:55]Send response to host [05:45:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165141,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [05:45:55]free response buf [05:45:55]execute_script done [05:45:55]execute_script returns [05:45:55]free content buf [05:45:55]Sock 7.Close socket [05:45:55]Sock 7.Thread stoped [05:45:59]OFD Sender: No OFD packet to send [05:46:04]OFD Sender: No OFD packet to send [05:46:09]OFD Sender: No OFD packet to send [05:46:14]OFD Sender: No OFD packet to send [05:46:19]OFD Sender: No OFD packet to send [05:46:24]OFD Sender: No OFD packet to send [05:46:29]OFD Sender: No OFD packet to send [05:46:34]OFD Sender: No OFD packet to send [05:46:39]OFD Sender: No OFD packet to send [05:46:44]OFD Sender: No OFD packet to send [05:46:49]OFD Sender: No OFD packet to send [05:46:54]OFD Sender: No OFD packet to send [05:46:59]OFD Sender: No OFD packet to send [05:47:04]OFD Sender: No OFD packet to send [05:47:09]OFD Sender: No OFD packet to send [05:47:14]OFD Sender: No OFD packet to send [05:47:19]OFD Sender: No OFD packet to send [05:47:24]OFD Sender: No OFD packet to send [05:47:29]OFD Sender: No OFD packet to send [05:47:34]OFD Sender: No OFD packet to send [05:47:39]OFD Sender: No OFD packet to send [05:47:44]OFD Sender: No OFD packet to send [05:47:49]OFD Sender: No OFD packet to send [05:47:54]OFD Sender: No OFD packet to send [05:47:59]OFD Sender: No OFD packet to send [05:48:04]OFD Sender: No OFD packet to send [05:48:09]OFD Sender: No OFD packet to send [05:48:14]OFD Sender: No OFD packet to send [05:48:19]OFD Sender: No OFD packet to send [05:48:24]OFD Sender: No OFD packet to send [05:48:29]OFD Sender: No OFD packet to send [05:48:34]OFD Sender: No OFD packet to send [05:48:39]OFD Sender: No OFD packet to send [05:48:44]OFD Sender: No OFD packet to send [05:48:49]OFD Sender: No OFD packet to send [05:48:54]OFD Sender: No OFD packet to send [05:48:59]OFD Sender: No OFD packet to send [05:49:04]OFD Sender: No OFD packet to send [05:49:09]OFD Sender: No OFD packet to send [05:49:14]OFD Sender: No OFD packet to send [05:49:19]OFD Sender: No OFD packet to send [05:49:24]OFD Sender: No OFD packet to send [05:49:29]OFD Sender: No OFD packet to send [05:49:34]OFD Sender: No OFD packet to send [05:49:39]OFD Sender: No OFD packet to send [05:49:44]OFD Sender: No OFD packet to send [05:49:49]OFD Sender: No OFD packet to send [05:49:54]OFD Sender: No OFD packet to send [05:49:59]OFD Sender: No OFD packet to send [05:50:04]OFD Sender: No OFD packet to send [05:50:09]OFD Sender: No OFD packet to send [05:50:14]OFD Sender: No OFD packet to send [05:50:19]OFD Sender: No OFD packet to send [05:50:24]OFD Sender: No OFD packet to send [05:50:29]OFD Sender: No OFD packet to send [05:50:34]OFD Sender: No OFD packet to send [05:50:39]OFD Sender: No OFD packet to send [05:50:44]OFD Sender: No OFD packet to send [05:50:49]OFD Sender: No OFD packet to send [05:50:54]OFD Sender: No OFD packet to send [05:50:59]OFD Sender: No OFD packet to send [05:51:04]OFD Sender: No OFD packet to send [05:51:09]OFD Sender: No OFD packet to send [05:51:14]OFD Sender: No OFD packet to send [05:51:19]OFD Sender: No OFD packet to send [05:51:24]OFD Sender: No OFD packet to send [05:51:29]OFD Sender: No OFD packet to send [05:51:34]OFD Sender: No OFD packet to send [05:51:39]OFD Sender: No OFD packet to send [05:51:44]OFD Sender: No OFD packet to send [05:51:49]OFD Sender: No OFD packet to send [05:51:54]OFD Sender: No OFD packet to send [05:51:59]OFD Sender: No OFD packet to send [05:52:04]OFD Sender: No OFD packet to send [05:52:09]OFD Sender: No OFD packet to send [05:52:14]OFD Sender: No OFD packet to send [05:52:19]OFD Sender: No OFD packet to send [05:52:24]OFD Sender: No OFD packet to send [05:52:29]OFD Sender: No OFD packet to send [05:52:34]OFD Sender: No OFD packet to send [05:52:39]OFD Sender: No OFD packet to send [05:52:44]OFD Sender: No OFD packet to send [05:52:49]OFD Sender: No OFD packet to send [05:52:54]OFD Sender: No OFD packet to send [05:52:59]OFD Sender: No OFD packet to send [05:53:04]OFD Sender: No OFD packet to send [05:53:09]OFD Sender: No OFD packet to send [05:53:14]OFD Sender: No OFD packet to send [05:53:19]OFD Sender: No OFD packet to send [05:53:24]OFD Sender: No OFD packet to send [05:53:29]OFD Sender: No OFD packet to send [05:53:34]OFD Sender: No OFD packet to send [05:53:39]OFD Sender: No OFD packet to send [05:53:44]OFD Sender: No OFD packet to send [05:53:49]OFD Sender: No OFD packet to send [05:53:54]OFD Sender: No OFD packet to send [05:53:59]OFD Sender: No OFD packet to send [05:54:04]OFD Sender: No OFD packet to send [05:54:09]OFD Sender: No OFD packet to send [05:54:14]OFD Sender: No OFD packet to send [05:54:19]OFD Sender: No OFD packet to send [05:54:24]OFD Sender: No OFD packet to send [05:54:29]OFD Sender: No OFD packet to send [05:54:34]OFD Sender: No OFD packet to send [05:54:39]OFD Sender: No OFD packet to send [05:54:44]OFD Sender: No OFD packet to send [05:54:49]OFD Sender: No OFD packet to send [05:54:54]OFD Sender: No OFD packet to send [05:54:59]OFD Sender: No OFD packet to send [05:55:04]OFD Sender: No OFD packet to send [05:55:09]OFD Sender: No OFD packet to send [05:55:14]OFD Sender: No OFD packet to send [05:55:19]OFD Sender: No OFD packet to send [05:55:24]OFD Sender: No OFD packet to send [05:55:29]OFD Sender: No OFD packet to send [05:55:34]OFD Sender: No OFD packet to send [05:55:39]OFD Sender: No OFD packet to send [05:55:44]OFD Sender: No OFD packet to send [05:55:49]OFD Sender: No OFD packet to send [05:55:54]OFD Sender: No OFD packet to send [05:55:59]OFD Sender: No OFD packet to send [05:56:04]OFD Sender: No OFD packet to send [05:56:09]OFD Sender: No OFD packet to send [05:56:14]OFD Sender: No OFD packet to send [05:56:19]OFD Sender: No OFD packet to send [05:56:24]OFD Sender: No OFD packet to send [05:56:29]OFD Sender: No OFD packet to send [05:56:34]OFD Sender: No OFD packet to send [05:56:39]OFD Sender: No OFD packet to send [05:56:44]OFD Sender: No OFD packet to send [05:56:49]OFD Sender: No OFD packet to send [05:56:54]OFD Sender: No OFD packet to send [05:56:59]OFD Sender: No OFD packet to send [05:57:04]OFD Sender: No OFD packet to send [05:57:09]OFD Sender: No OFD packet to send [05:57:14]OFD Sender: No OFD packet to send [05:57:19]OFD Sender: No OFD packet to send [05:57:24]OFD Sender: No OFD packet to send [05:57:29]OFD Sender: No OFD packet to send [05:57:34]OFD Sender: No OFD packet to send [05:57:39]OFD Sender: No OFD packet to send [05:57:44]OFD Sender: No OFD packet to send [05:57:49]OFD Sender: No OFD packet to send [05:57:54]OFD Sender: No OFD packet to send [05:57:59]OFD Sender: No OFD packet to send [05:58:04]OFD Sender: No OFD packet to send [05:58:09]OFD Sender: No OFD packet to send [05:58:14]OFD Sender: No OFD packet to send [05:58:19]OFD Sender: No OFD packet to send [05:58:24]OFD Sender: No OFD packet to send [05:58:29]OFD Sender: No OFD packet to send [05:58:34]OFD Sender: No OFD packet to send [05:58:39]OFD Sender: No OFD packet to send [05:58:44]OFD Sender: No OFD packet to send [05:58:49]OFD Sender: No OFD packet to send [05:58:54]OFD Sender: No OFD packet to send [05:58:59]OFD Sender: No OFD packet to send [05:59:04]OFD Sender: No OFD packet to send [05:59:09]OFD Sender: No OFD packet to send [05:59:15]OFD Sender: No OFD packet to send [05:59:20]OFD Sender: No OFD packet to send [05:59:25]OFD Sender: No OFD packet to send [05:59:30]OFD Sender: No OFD packet to send [05:59:35]OFD Sender: No OFD packet to send [05:59:40]OFD Sender: No OFD packet to send [05:59:45]OFD Sender: No OFD packet to send [05:59:50]OFD Sender: No OFD packet to send [05:59:55]OFD Sender: No OFD packet to send [06:00:00]OFD Sender: No OFD packet to send [06:00:05]OFD Sender: No OFD packet to send [06:00:10]OFD Sender: No OFD packet to send [06:00:15]OFD Sender: No OFD packet to send [06:00:20]OFD Sender: No OFD packet to send [06:00:25]OFD Sender: No OFD packet to send [06:00:30]OFD Sender: No OFD packet to send [06:00:35]OFD Sender: No OFD packet to send [06:00:40]OFD Sender: No OFD packet to send [06:00:45]OFD Sender: No OFD packet to send [06:00:50]OFD Sender: No OFD packet to send [06:00:55]OFD Sender: No OFD packet to send [06:01:00]OFD Sender: No OFD packet to send [06:01:05]OFD Sender: No OFD packet to send [06:01:10]OFD Sender: No OFD packet to send [06:01:15]OFD Sender: No OFD packet to send [06:01:20]OFD Sender: No OFD packet to send [06:01:25]OFD Sender: No OFD packet to send [06:01:30]OFD Sender: No OFD packet to send [06:01:35]OFD Sender: No OFD packet to send [06:01:40]OFD Sender: No OFD packet to send [06:01:45]OFD Sender: No OFD packet to send [06:01:50]OFD Sender: No OFD packet to send [06:01:55]OFD Sender: No OFD packet to send [06:02:00]OFD Sender: No OFD packet to send [06:02:05]OFD Sender: No OFD packet to send [06:02:10]OFD Sender: No OFD packet to send [06:02:15]OFD Sender: No OFD packet to send [06:02:20]OFD Sender: No OFD packet to send [06:02:25]OFD Sender: No OFD packet to send [06:02:30]OFD Sender: No OFD packet to send [06:02:35]OFD Sender: No OFD packet to send [06:02:40]OFD Sender: No OFD packet to send [06:02:45]OFD Sender: No OFD packet to send [06:02:50]OFD Sender: No OFD packet to send [06:02:55]OFD Sender: No OFD packet to send [06:03:00]OFD Sender: No OFD packet to send [06:03:05]OFD Sender: No OFD packet to send [06:03:10]OFD Sender: No OFD packet to send [06:03:15]OFD Sender: No OFD packet to send [06:03:20]OFD Sender: No OFD packet to send [06:03:25]OFD Sender: No OFD packet to send [06:03:30]OFD Sender: No OFD packet to send [06:03:35]OFD Sender: No OFD packet to send [06:03:40]OFD Sender: No OFD packet to send [06:03:45]OFD Sender: No OFD packet to send [06:03:50]OFD Sender: No OFD packet to send [06:03:55]OFD Sender: No OFD packet to send [06:04:00]OFD Sender: No OFD packet to send [06:04:05]OFD Sender: No OFD packet to send [06:04:10]OFD Sender: No OFD packet to send [06:04:15]OFD Sender: No OFD packet to send [06:04:20]OFD Sender: No OFD packet to send [06:04:25]OFD Sender: No OFD packet to send [06:04:30]OFD Sender: No OFD packet to send [06:04:35]OFD Sender: No OFD packet to send [06:04:40]OFD Sender: No OFD packet to send [06:04:45]OFD Sender: No OFD packet to send [06:04:50]OFD Sender: No OFD packet to send [06:04:55]OFD Sender: No OFD packet to send [06:05:00]OFD Sender: No OFD packet to send [06:05:05]OFD Sender: No OFD packet to send [06:05:10]OFD Sender: No OFD packet to send [06:05:15]OFD Sender: No OFD packet to send [06:05:20]OFD Sender: No OFD packet to send [06:05:25]OFD Sender: No OFD packet to send [06:05:30]OFD Sender: No OFD packet to send [06:05:35]OFD Sender: No OFD packet to send [06:05:40]OFD Sender: No OFD packet to send [06:05:45]OFD Sender: No OFD packet to send [06:05:50]OFD Sender: No OFD packet to send [06:05:55]OFD Sender: No OFD packet to send [06:06:00]OFD Sender: No OFD packet to send [06:06:05]OFD Sender: No OFD packet to send [06:06:10]OFD Sender: No OFD packet to send [06:06:15]OFD Sender: No OFD packet to send [06:06:20]OFD Sender: No OFD packet to send [06:06:25]OFD Sender: No OFD packet to send [06:06:30]OFD Sender: No OFD packet to send [06:06:35]OFD Sender: No OFD packet to send [06:06:40]OFD Sender: No OFD packet to send [06:06:45]OFD Sender: No OFD packet to send [06:06:50]OFD Sender: No OFD packet to send [06:06:55]OFD Sender: No OFD packet to send [06:07:00]OFD Sender: No OFD packet to send [06:07:05]OFD Sender: No OFD packet to send [06:07:10]OFD Sender: No OFD packet to send [06:07:15]OFD Sender: No OFD packet to send [06:07:20]OFD Sender: No OFD packet to send [06:07:25]OFD Sender: No OFD packet to send [06:07:30]OFD Sender: No OFD packet to send [06:07:35]OFD Sender: No OFD packet to send [06:07:40]OFD Sender: No OFD packet to send [06:07:45]OFD Sender: No OFD packet to send [06:07:50]OFD Sender: No OFD packet to send [06:07:55]OFD Sender: No OFD packet to send [06:08:00]OFD Sender: No OFD packet to send [06:08:05]OFD Sender: No OFD packet to send [06:08:10]OFD Sender: No OFD packet to send [06:08:15]OFD Sender: No OFD packet to send [06:08:20]OFD Sender: No OFD packet to send [06:08:25]OFD Sender: No OFD packet to send [06:08:30]OFD Sender: No OFD packet to send [06:08:35]OFD Sender: No OFD packet to send [06:08:40]OFD Sender: No OFD packet to send [06:08:45]OFD Sender: No OFD packet to send [06:08:50]OFD Sender: No OFD packet to send [06:08:55]OFD Sender: No OFD packet to send [06:09:00]OFD Sender: No OFD packet to send [06:09:05]OFD Sender: No OFD packet to send [06:09:10]OFD Sender: No OFD packet to send [06:09:15]OFD Sender: No OFD packet to send [06:09:20]OFD Sender: No OFD packet to send [06:09:25]OFD Sender: No OFD packet to send [06:09:30]OFD Sender: No OFD packet to send [06:09:35]OFD Sender: No OFD packet to send [06:09:40]OFD Sender: No OFD packet to send [06:09:45]OFD Sender: No OFD packet to send [06:09:50]OFD Sender: No OFD packet to send [06:09:55]OFD Sender: No OFD packet to send [06:10:00]OFD Sender: No OFD packet to send [06:10:05]OFD Sender: No OFD packet to send [06:10:10]OFD Sender: No OFD packet to send [06:10:15]OFD Sender: No OFD packet to send [06:10:20]OFD Sender: No OFD packet to send [06:10:25]OFD Sender: No OFD packet to send [06:10:30]OFD Sender: No OFD packet to send [06:10:35]OFD Sender: No OFD packet to send [06:10:40]OFD Sender: No OFD packet to send [06:10:45]OFD Sender: No OFD packet to send [06:10:50]OFD Sender: No OFD packet to send [06:10:55]OFD Sender: No OFD packet to send [06:11:00]OFD Sender: No OFD packet to send [06:11:05]OFD Sender: No OFD packet to send [06:11:10]OFD Sender: No OFD packet to send [06:11:15]OFD Sender: No OFD packet to send [06:11:20]OFD Sender: No OFD packet to send [06:11:25]OFD Sender: No OFD packet to send [06:11:30]OFD Sender: No OFD packet to send [06:11:35]OFD Sender: No OFD packet to send [06:11:40]OFD Sender: No OFD packet to send [06:11:45]OFD Sender: No OFD packet to send [06:11:50]OFD Sender: No OFD packet to send [06:11:55]OFD Sender: No OFD packet to send [06:12:00]OFD Sender: No OFD packet to send [06:12:05]OFD Sender: No OFD packet to send [06:12:10]OFD Sender: No OFD packet to send [06:12:15]OFD Sender: No OFD packet to send [06:12:20]OFD Sender: No OFD packet to send [06:12:25]OFD Sender: No OFD packet to send [06:12:30]OFD Sender: No OFD packet to send [06:12:35]OFD Sender: No OFD packet to send [06:12:40]OFD Sender: No OFD packet to send [06:12:45]OFD Sender: No OFD packet to send [06:12:50]OFD Sender: No OFD packet to send [06:12:55]OFD Sender: No OFD packet to send [06:13:00]OFD Sender: No OFD packet to send [06:13:05]OFD Sender: No OFD packet to send [06:13:10]OFD Sender: No OFD packet to send [06:13:15]OFD Sender: No OFD packet to send [06:13:20]OFD Sender: No OFD packet to send [06:13:25]OFD Sender: No OFD packet to send [06:13:30]OFD Sender: No OFD packet to send [06:13:35]OFD Sender: No OFD packet to send [06:13:40]OFD Sender: No OFD packet to send [06:13:45]OFD Sender: No OFD packet to send [06:13:50]OFD Sender: No OFD packet to send [06:13:55]OFD Sender: No OFD packet to send [06:14:00]OFD Sender: No OFD packet to send [06:14:05]OFD Sender: No OFD packet to send [06:14:10]OFD Sender: No OFD packet to send [06:14:16]OFD Sender: No OFD packet to send [06:14:21]OFD Sender: No OFD packet to send [06:14:26]OFD Sender: No OFD packet to send [06:14:31]OFD Sender: No OFD packet to send [06:14:36]OFD Sender: No OFD packet to send [06:14:41]OFD Sender: No OFD packet to send [06:14:46]OFD Sender: No OFD packet to send [06:14:51]OFD Sender: No OFD packet to send [06:14:56]OFD Sender: No OFD packet to send [06:15:01]OFD Sender: No OFD packet to send [06:15:06]OFD Sender: No OFD packet to send [06:15:11]OFD Sender: No OFD packet to send [06:15:16]OFD Sender: No OFD packet to send [06:15:21]OFD Sender: No OFD packet to send [06:15:26]OFD Sender: No OFD packet to send [06:15:31]OFD Sender: No OFD packet to send [06:15:36]OFD Sender: No OFD packet to send [06:15:41]OFD Sender: No OFD packet to send [06:15:46]OFD Sender: No OFD packet to send [06:15:51]OFD Sender: No OFD packet to send [06:15:56]OFD Sender: No OFD packet to send [06:16:01]OFD Sender: No OFD packet to send [06:16:06]OFD Sender: No OFD packet to send [06:16:11]OFD Sender: No OFD packet to send [06:16:16]OFD Sender: No OFD packet to send [06:16:21]OFD Sender: No OFD packet to send [06:16:26]OFD Sender: No OFD packet to send [06:16:31]OFD Sender: No OFD packet to send [06:16:36]OFD Sender: No OFD packet to send [06:16:41]OFD Sender: No OFD packet to send [06:16:46]OFD Sender: No OFD packet to send [06:16:51]OFD Sender: No OFD packet to send [06:16:56]OFD Sender: No OFD packet to send [06:17:01]OFD Sender: No OFD packet to send [06:17:06]OFD Sender: No OFD packet to send [06:17:11]OFD Sender: No OFD packet to send [06:17:16]OFD Sender: No OFD packet to send [06:17:21]OFD Sender: No OFD packet to send [06:17:26]OFD Sender: No OFD packet to send [06:17:31]OFD Sender: No OFD packet to send [06:17:36]OFD Sender: No OFD packet to send [06:17:41]OFD Sender: No OFD packet to send [06:17:46]OFD Sender: No OFD packet to send [06:17:51]OFD Sender: No OFD packet to send [06:17:56]OFD Sender: No OFD packet to send [06:18:01]OFD Sender: No OFD packet to send [06:18:06]OFD Sender: No OFD packet to send [06:18:11]OFD Sender: No OFD packet to send [06:18:16]OFD Sender: No OFD packet to send [06:18:21]OFD Sender: No OFD packet to send [06:18:26]OFD Sender: No OFD packet to send [06:18:31]OFD Sender: No OFD packet to send [06:18:36]OFD Sender: No OFD packet to send [06:18:41]OFD Sender: No OFD packet to send [06:18:46]OFD Sender: No OFD packet to send [06:18:51]OFD Sender: No OFD packet to send [06:18:56]OFD Sender: No OFD packet to send [06:19:01]OFD Sender: No OFD packet to send [06:19:06]OFD Sender: No OFD packet to send [06:19:11]OFD Sender: No OFD packet to send [06:19:16]OFD Sender: No OFD packet to send [06:19:21]OFD Sender: No OFD packet to send [06:19:26]OFD Sender: No OFD packet to send [06:19:31]OFD Sender: No OFD packet to send [06:19:36]OFD Sender: No OFD packet to send [06:19:41]OFD Sender: No OFD packet to send [06:19:46]OFD Sender: No OFD packet to send [06:19:51]OFD Sender: No OFD packet to send [06:19:56]OFD Sender: No OFD packet to send [06:20:01]OFD Sender: No OFD packet to send [06:20:06]OFD Sender: No OFD packet to send [06:20:11]OFD Sender: No OFD packet to send [06:20:16]OFD Sender: No OFD packet to send [06:20:21]OFD Sender: No OFD packet to send [06:20:26]OFD Sender: No OFD packet to send [06:20:31]OFD Sender: No OFD packet to send [06:20:36]OFD Sender: No OFD packet to send [06:20:41]OFD Sender: No OFD packet to send [06:20:46]OFD Sender: No OFD packet to send [06:20:51]OFD Sender: No OFD packet to send [06:20:56]OFD Sender: No OFD packet to send [06:21:01]OFD Sender: No OFD packet to send [06:21:06]OFD Sender: No OFD packet to send [06:21:11]OFD Sender: No OFD packet to send [06:21:16]OFD Sender: No OFD packet to send [06:21:21]OFD Sender: No OFD packet to send [06:21:26]OFD Sender: No OFD packet to send [06:21:31]OFD Sender: No OFD packet to send [06:21:36]OFD Sender: No OFD packet to send [06:21:41]OFD Sender: No OFD packet to send [06:21:46]OFD Sender: No OFD packet to send [06:21:51]OFD Sender: No OFD packet to send [06:21:56]OFD Sender: No OFD packet to send [06:22:01]OFD Sender: No OFD packet to send [06:22:06]OFD Sender: No OFD packet to send [06:22:11]OFD Sender: No OFD packet to send [06:22:16]OFD Sender: No OFD packet to send [06:22:21]OFD Sender: No OFD packet to send [06:22:26]OFD Sender: No OFD packet to send [06:22:31]OFD Sender: No OFD packet to send [06:22:36]OFD Sender: No OFD packet to send [06:22:41]OFD Sender: No OFD packet to send [06:22:46]OFD Sender: No OFD packet to send [06:22:51]OFD Sender: No OFD packet to send [06:22:56]OFD Sender: No OFD packet to send [06:23:01]OFD Sender: No OFD packet to send [06:23:06]OFD Sender: No OFD packet to send [06:23:11]OFD Sender: No OFD packet to send [06:23:16]OFD Sender: No OFD packet to send [06:23:21]OFD Sender: No OFD packet to send [06:23:26]OFD Sender: No OFD packet to send [06:23:31]OFD Sender: No OFD packet to send [06:23:36]OFD Sender: No OFD packet to send [06:23:41]OFD Sender: No OFD packet to send [06:23:46]OFD Sender: No OFD packet to send [06:23:51]OFD Sender: No OFD packet to send [06:23:56]OFD Sender: No OFD packet to send [06:24:01]OFD Sender: No OFD packet to send [06:24:06]OFD Sender: No OFD packet to send [06:24:11]OFD Sender: No OFD packet to send [06:24:16]OFD Sender: No OFD packet to send [06:24:21]OFD Sender: No OFD packet to send [06:24:26]OFD Sender: No OFD packet to send [06:24:31]OFD Sender: No OFD packet to send [06:24:36]OFD Sender: No OFD packet to send [06:24:41]OFD Sender: No OFD packet to send [06:24:46]OFD Sender: No OFD packet to send [06:24:51]OFD Sender: No OFD packet to send [06:24:56]OFD Sender: No OFD packet to send [06:25:01]OFD Sender: No OFD packet to send [06:25:06]OFD Sender: No OFD packet to send [06:25:11]OFD Sender: No OFD packet to send [06:25:16]OFD Sender: No OFD packet to send [06:25:21]OFD Sender: No OFD packet to send [06:25:26]OFD Sender: No OFD packet to send [06:25:31]OFD Sender: No OFD packet to send [06:25:36]OFD Sender: No OFD packet to send [06:25:41]OFD Sender: No OFD packet to send [06:25:46]OFD Sender: No OFD packet to send [06:25:51]OFD Sender: No OFD packet to send [06:25:56]OFD Sender: No OFD packet to send [06:26:01]OFD Sender: No OFD packet to send [06:26:06]OFD Sender: No OFD packet to send [06:26:11]OFD Sender: No OFD packet to send [06:26:16]OFD Sender: No OFD packet to send [06:26:21]OFD Sender: No OFD packet to send [06:26:26]OFD Sender: No OFD packet to send [06:26:31]OFD Sender: No OFD packet to send [06:26:36]OFD Sender: No OFD packet to send [06:26:41]OFD Sender: No OFD packet to send [06:26:43]accept exits with 9 [06:26:43]New connection [06:26:43]New thread 3066785124 created [06:26:43]Thread 3066928484 joined [06:26:43]Waiting for new connection... [06:26:43] Sock 9.Parse request [06:26:43]Sock 9.Check first char [06:26:43]Sock 9.First char is OK [06:26:43]request: POST /json_proto HTTP/1.0 [06:26:43]Method: POST [06:26:43]URL: /json_proto [06:26:43]Method is POST - this is cgi request [06:26:43]url: /json_proto [06:26:43]query_string will be loaded in cgi processing [06:26:43]execute_cgi json_proto POST (null) [06:26:43]execute_cgi path=json_proto method=POST [06:26:43]POST find Content-Length [06:26:43]Host: 172.17.56.4:8080 [06:26:43]Content-Length: 674 [06:26:43]Content-Type: application/json [06:26:43] [06:26:43]POST finish read [06:26:43]Found Content-Length = 674 [06:26:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459243", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 4.180, "sum" : 300.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:26:43]execute_script... [06:26:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459243", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 4.180, "sum" : 300.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:26:43]POST & json_proto [06:26:43]process_json_proto [06:26:43]json parsed OK: [06:26:43]protocol is kg_v1.0 [06:26:43]action value=close_receipt [06:26:43]process_action close_receipt [06:26:43]cmd_close_receipt [06:26:43]MH_GetDate [06:26:43]Write to MH i2c: F0 00 00 CC 18 D3 [06:26:43]Write i2c OK [06:26:43]MH_I2C_Read... [06:26:43]Read from MH i2c: F0 [06:26:43]MH_I2C_Read... [06:26:43]Read from MH i2c: F0 09 00 [06:26:43]MH_I2C_Read... [06:26:43]Read from MH i2c: F0 09 00 CC 18 00 27 C1 94 66 C9 DC B2 64 79 [06:26:43]GetLastDocTimeStamp 1721022354 [06:26:43]current date 1721024807 [06:26:43]FM_GetShiftState [06:26:43]SAM_PROTO_GetShiftState [06:26:43]wFMCommunicate request_size=4 [06:26:43]MH_SAM_APDU [06:26:43]CAPDU: 80 13 01 00 [06:26:43]Write to MH i2c: E2 08 00 CD 18 80 13 01 00 00 00 00 00 62 [06:26:43]Write i2c OK [06:26:43]MH_I2C_Read... [06:26:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:26:43]Read from MH i2c: E2 [06:26:43]MH_I2C_Read... [06:26:43]Read from MH i2c: E2 0E 00 [06:26:43]MH_I2C_Read... [06:26:43]Read from MH i2c: E2 0E 00 CD 18 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 3B [06:26:43]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [06:26:43]wFMCommunicate OK [06:26:43]SAM_PROTO_GetShiftState done [06:26:43]FM_GetShiftState done [06:26:43]opened in 1721003876 [06:26:43]opened+sec_in_day 1721090276 [06:26:43]quantity*price = 30054 [06:26:43]sum+1 = 30055 [06:26:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.92 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 15 15.07.2024 06:26 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165142 ФПД: 154987943295476 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T062647&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165142&fm=154987943295476&tin=02508201610067®Number=0000000000090829&sum=30000 [06:26:44]StoreToDocumentArchive [06:26:44]shift 448 fd 165142 [06:26:44]save to /storage/0448/doc_00165142 [06:26:44]save last doc name /storage/0448/doc_00165142 to /storage/kkm_last_doc_name [06:26:44]save OK [06:26:44]Clear old archive folders... [06:26:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:26:44]tlvbuf is 013D87C0 [06:26:44]SAM_PROTO_ClearQueue [06:26:44]wFMCommunicate request_size=4 [06:26:44]MH_SAM_APDU [06:26:44]CAPDU: 80 09 00 00 [06:26:44]Write to MH i2c: E2 08 00 DA 18 80 09 00 00 00 00 00 00 64 [06:26:44]Write i2c OK [06:26:44]MH_I2C_Read... [06:26:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:26:44]Read from MH i2c: E2 [06:26:44]MH_I2C_Read... [06:26:44]Read from MH i2c: E2 03 00 [06:26:44]MH_I2C_Read... [06:26:44]Read from MH i2c: E2 03 00 DA 18 00 90 00 66 [06:26:44]RAPDU: 90 00 [06:26:44]wFMCommunicate OK [06:26:44]SAM_PROTO_ClearQueue done [06:26:44]KKMCreateOFDPacket [06:26:44]OFDProtocolAddRootSTLVToBuf [06:26:44]FM_MakeSignedData [06:26:44]FM_MakeSignedData [06:26:44]SAM_PROTO_SignData [06:26:44]wFMCommunicate request_size=4 [06:26:44]MH_SAM_APDU [06:26:44]CAPDU: 80 0D 01 02 [06:26:44]Write to MH i2c: E2 08 00 DB 18 80 0D 01 02 00 00 00 00 6C [06:26:44]Write i2c OK [06:26:44]MH_I2C_Read... [06:26:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:26:44]Read from MH i2c: E2 [06:26:44]MH_I2C_Read... [06:26:44]Read from MH i2c: E2 03 00 [06:26:44]MH_I2C_Read... [06:26:44]Read from MH i2c: E2 03 00 DB 18 00 90 00 67 [06:26:44]RAPDU: 90 00 [06:26:44]wFMCommunicate OK [06:26:44]wFMCommunicate request_size=255 [06:26:44]MH_SAM_APDU [06:26:44]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 27 C1 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 16 85 02 00 35 04 06 00 8C F5 F1 4D [06:26:44]Write to MH i2c: E2 02 01 DC 18 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 27 C1 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 16 85 02 00 35 04 06 00 8C F5 F1 4D 00 00 27 [06:26:44]Write i2c OK [06:26:44]MH_I2C_Read... [06:26:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:26:45]Read from MH i2c: E2 [06:26:45]MH_I2C_Read... [06:26:45]Read from MH i2c: E2 03 00 [06:26:45]MH_I2C_Read... [06:26:45]Read from MH i2c: E2 03 00 DC 18 00 90 00 68 [06:26:45]RAPDU: 90 00 [06:26:45]wFMCommunicate OK [06:26:45]wFMCommunicate request_size=7 [06:26:45]MH_SAM_APDU [06:26:45]CAPDU: 80 0D 02 02 02 F9 F4 [06:26:45]Write to MH i2c: E2 0A 00 DD 18 80 0D 02 02 02 00 F9 F4 00 00 60 [06:26:45]Write i2c OK [06:26:45]MH_I2C_Read... [06:26:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:26:45]Read from MH i2c: E2 [06:26:45]MH_I2C_Read... [06:26:45]Read from MH i2c: E2 03 00 [06:26:45]MH_I2C_Read... [06:26:45]Read from MH i2c: E2 03 00 DD 18 00 90 00 69 [06:26:45]RAPDU: 90 00 [06:26:45]wFMCommunicate OK [06:26:45]wFMCommunicate request_size=4 [06:26:45]MH_SAM_APDU [06:26:45]CAPDU: 80 0D 03 02 [06:26:45]Write to MH i2c: E2 08 00 DE 18 80 0D 03 02 00 00 00 00 71 [06:26:45]Write i2c OK [06:26:45]MH_I2C_Read... [06:26:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:26:45]Read from MH i2c: E2 [06:26:45]MH_I2C_Read... [06:26:45]Read from MH i2c: E2 0B 00 [06:26:45]MH_I2C_Read... [06:26:45]Read from MH i2c: E2 0B 00 DE 18 00 FA 30 E5 9B 6F 3C B3 AD 90 00 27 [06:26:45]RAPDU: FA 30 E5 9B 6F 3C B3 AD 90 00 [06:26:45]wFMCommunicate OK [06:26:45]SAM_PROTO_SignData done [06:26:45]FM_MakeSignedData done [06:26:45]CreateOFDProtocolMessage [06:26:45]wFMCommunicate request_size=4 [06:26:45]MH_SAM_APDU [06:26:45]CAPDU: 80 11 00 00 [06:26:45]Write to MH i2c: E2 08 00 DF 18 80 11 00 00 00 00 00 00 71 [06:26:45]Write i2c OK [06:26:45]MH_I2C_Read... [06:26:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:26:45]Read from MH i2c: E2 [06:26:45]MH_I2C_Read... [06:26:45]Read from MH i2c: E2 17 00 [06:26:45]MH_I2C_Read... [06:26:45]Read from MH i2c: E2 17 00 DF 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C7 [06:26:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [06:26:45]wFMCommunicate OK [06:26:45]CreateOFDProtocolMessage done [06:26:45]OFDSenderStorePacket 165142 [06:26:45]StoreOFDPacket docnum=165142 [06:26:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 78 27 04 01 8D 9E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 27 C1 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 16 85 02 00 35 04 06 00 8C F5 F1 4D F9 F4 FA 30 E5 9B 6F 3C B3 AD [06:26:45]CheckFolder [06:26:45]dirname=/storage/ofd_packets [06:26:45]CheckFolder done [06:26:45]ProducePacketName [06:26:45]name=ofd_packets/00165142 [06:26:45]NVStorageSaveData ofd_packets/00165142 [06:26:45]File name is /storage/ofd_packets/00165142 [06:26:45]Write 298 bytes [06:26:45]NVStorageSaveData done [06:26:45]OFDSenderStorePacket done [06:26:45]KKMCreateOFDPacket done [06:26:45]NVStorageSaveData kkm_last_timestamp [06:26:45]File name is /storage/kkm_last_timestamp [06:26:45]Write 4 bytes [06:26:45]NVStorageSaveData done [06:26:45]ExternCall_PrintAddStr [06:26:45]wPrintStart [06:26:45]Write to MH i2c: 01 00 00 E0 18 F8 [06:26:45]Write i2c OK [06:26:45]MH_I2C_Read... [06:26:45]Read from MH i2c: 01 [06:26:45]MH_I2C_Read... [06:26:45]Read from MH i2c: 01 07 00 [06:26:45]MH_I2C_Read... [06:26:45]Read from MH i2c: 01 07 00 E0 18 00 00 00 00 00 FF 0F 0D [06:26:45]RasterBufferAndPrint [06:26:45]line Счет N : (1)459243 [06:26:45]line ИНН: 02508201610067 [06:26:45]line Контрольно-Кассовый Чек [06:26:45]line ПРОДАЖА [06:26:45]line ТРК (МРК, ГНК) : 11 [06:26:45]line Товар: 2710194210 [06:26:45]line ДТ-К-5 [06:26:45]line 4.180 * 71.90 [06:26:45]line = 300.54 [06:26:45]line НДС 12% НСП 1% [06:26:45]line > о реализуемом товаре [06:26:45]line ОКРУГЛЕНИЕ: -0.54 [06:26:45]line ИТОГО: 300.00 [06:26:45]line Внесено: 300.00 [06:26:45]line СДАЧА: 0.00 [06:26:45]line НСП 1% : 2.66 [06:26:45]line НДС 12% : 31.92 [06:26:45]line Наличными: 300.00 [06:26:45]line Безнал.: 0.00 [06:26:45]line Место: АЗС № 72 "Партнер Нефть" [06:26:45]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [06:26:45]line СНО: Общий режим [06:26:45]line Чек 15 15.07.2024 06:26 [06:26:45]line Смена: 448 ФФД: 1.0 [06:26:45]line ЗНМ: 0300000160 [06:26:45]line РНМ: 0000000000090829 [06:26:45]line Версия ККМ: 001 [06:26:45]line ФМ: 0000000000874718 [06:26:45]line ФД: 165142 [06:26:45]line ФПД: 154987943295476 [06:26:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T062647&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165142&fm=154987943295476&tin=02508201610067®Number=0000000000090829&sum=30000 [06:26:45]OFD Sender: Processing packet 165142 [packets to send 106, broken 105] [06:26:45]ProducePacketName [06:26:45]name=ofd_packets/00165142 [06:26:45]OFD Sender: To server: pG, [06:26:45]CommunicateWithHost lk.salyk.kg:30040 [06:26:45]ConnectInit lk.salyk.kg [06:26:45]written 0, free lines is 4095 [06:26:45]Connected sock=10 [06:26:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 78 27 04 01 8D 9E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 27 C1 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 16 85 02 00 35 04 06 00 8C F5 F1 4D F9 F4 FA 30 E5 9B 6F 3C B3 AD [06:26:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 DC 9D 47 00 11 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 16 85 02 00 F4 03 04 00 B2 67 94 66 B6 04 01 00 00 B5 04 3E 88 F9 DC 18 C1 [06:26:45]CommunicateWithHost err = 0 [06:26:45]CheckOFDResponse [06:26:45]1017 (14) - 77093643461234 [06:26:45]1041 (16) - 0000000000874718 [06:26:45]1040 (4) - 165142 [06:26:45]1012 (4) - 15.07.2024 00:05 [06:26:45]1206 (1) - 0 [06:26:45]OFD Sender: Remove packet 165142 [06:26:45]ProducePacketName [06:26:45]name=ofd_packets/00165142 [06:26:45]NVStorageDeleteData [06:26:46]Write to MH i2c: 01 00 00 0A 19 23 [06:26:46]Write i2c OK [06:26:46]MH_I2C_Read... [06:26:46]Read from MH i2c: 01 [06:26:46]MH_I2C_Read... [06:26:46]Read from MH i2c: 01 07 00 [06:26:46]MH_I2C_Read... [06:26:46]Read from MH i2c: 01 07 00 0A 19 00 00 00 00 00 05 0D 3C [06:26:46]RasterBufferAndPrint [06:26:46]line [06:26:46]line [06:26:46]line [06:26:46]line [06:26:46]line [06:26:46]written 0, free lines is 3340 [06:26:46]MH_Cut [06:26:46]Write to MH i2c: D1 01 00 11 19 01 FC [06:26:46]Write i2c OK [06:26:46]MH_I2C_Read... [06:26:46]Read from MH i2c: D1 [06:26:46]MH_I2C_Read... [06:26:46]Read from MH i2c: D1 01 00 [06:26:46]MH_I2C_Read... [06:26:46]Read from MH i2c: D1 01 00 11 19 00 FB [06:26:46]Write to MH i2c: 01 00 00 12 19 2B [06:26:46]Write i2c OK [06:26:46]MH_I2C_Read... [06:26:46]OFD Sender: No OFD packet to send [06:26:46]*** Cut start [06:26:46]*** Partial cut [06:26:46]*** CUTSNS_PIN = 1 [06:26:46]*** CUTSNS_PIN = 0 [06:26:47]*** Brake cut motor [06:26:47]Read from MH i2c: 01 [06:26:47]MH_I2C_Read... [06:26:47]*** Stop cut motor [06:26:47]*** Cut end [06:26:47]Read from MH i2c: 01 07 00 [06:26:47]MH_I2C_Read... [06:26:47]Read from MH i2c: 01 07 00 12 19 00 00 00 00 00 FF 0F 40 [06:26:47]process_action close_receipt done [06:26:47]requested_data is exist [06:26:47]produce_requested_data [06:26:47]requested_item fm.sn is exist - process it [06:26:47]wFMCommunicate request_size=4 [06:26:47]MH_SAM_APDU [06:26:47]CAPDU: 80 11 00 00 [06:26:47]Write to MH i2c: E2 08 00 13 19 80 11 00 00 00 00 00 00 A6 [06:26:47]Write i2c OK [06:26:47]MH_I2C_Read... [06:26:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:26:47]Read from MH i2c: E2 [06:26:47]MH_I2C_Read... [06:26:47]Read from MH i2c: E2 17 00 [06:26:47]MH_I2C_Read... [06:26:47]Read from MH i2c: E2 17 00 13 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FC [06:26:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [06:26:47]wFMCommunicate OK [06:26:47]requested_item fd.num is exist - process it [06:26:47]SAM_PROTO_GetFieldsCounters [06:26:47]wFMCommunicate request_size=4 [06:26:47]MH_SAM_APDU [06:26:47]CAPDU: 80 13 00 00 [06:26:47]Write to MH i2c: E2 08 00 14 19 80 13 00 00 00 00 00 00 A9 [06:26:47]Write i2c OK [06:26:47]MH_I2C_Read... [06:26:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:26:47]Read from MH i2c: E2 [06:26:47]MH_I2C_Read... [06:26:47]Read from MH i2c: E2 62 00 [06:26:47]MH_I2C_Read... [06:26:47]Read from MH i2c: E2 62 00 14 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 16 85 02 00 0E 04 04 00 C0 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 5B [06:26: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 16 85 02 00 0E 04 04 00 C0 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 [06:26:47]wFMCommunicate OK [06:26:47]SAM_PROTO_GetFieldsCounters done [06:26:47]requested_item shift.num is exist - process it [06:26:47]requested_item shift.opened is exist - process it [06:26:47]req_shift_opened [06:26:47]FM_GetShiftState [06:26:47]SAM_PROTO_GetShiftState [06:26:47]wFMCommunicate request_size=4 [06:26:47]MH_SAM_APDU [06:26:47]CAPDU: 80 13 01 00 [06:26:47]Write to MH i2c: E2 08 00 15 19 80 13 01 00 00 00 00 00 AB [06:26:47]Write i2c OK [06:26:47]MH_I2C_Read... [06:26:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:26:47]Read from MH i2c: E2 [06:26:47]MH_I2C_Read... [06:26:47]Read from MH i2c: E2 0E 00 [06:26:47]MH_I2C_Read... [06:26:47]Read from MH i2c: E2 0E 00 15 19 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 84 [06:26:47]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [06:26:47]wFMCommunicate OK [06:26:47]SAM_PROTO_GetShiftState done [06:26:47]FM_GetShiftState done [06:26:47]req_shift_opened done [06:26:47]requested_item shift.open_date is exist - process it [06:26:47]req_shift_open_date [06:26:47]req_shift_open_date done [06:26:47]produce_requested_data done [06:26:47]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165142,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [06:26:47]process_action_free close_receipt [06:26:47]json_value_free [06:26:47]json_value_free done [06:26:47]process_json_proto returns [06:26:47]Send response to host [06:26:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165142,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [06:26:47]free response buf [06:26:47]execute_script done [06:26:47]execute_script returns [06:26:47]free content buf [06:26:47]Sock 9.Close socket [06:26:47]Sock 9.Thread stoped [06:26:51]OFD Sender: No OFD packet to send [06:26:56]OFD Sender: No OFD packet to send [06:27:01]OFD Sender: No OFD packet to send [06:27:06]OFD Sender: No OFD packet to send [06:27:11]OFD Sender: No OFD packet to send [06:27:16]OFD Sender: No OFD packet to send [06:27:21]OFD Sender: No OFD packet to send [06:27:26]OFD Sender: No OFD packet to send [06:27:31]OFD Sender: No OFD packet to send [06:27:36]OFD Sender: No OFD packet to send [06:27:41]OFD Sender: No OFD packet to send [06:27:46]OFD Sender: No OFD packet to send [06:27:51]OFD Sender: No OFD packet to send [06:27:56]OFD Sender: No OFD packet to send [06:28:01]OFD Sender: No OFD packet to send [06:28:06]OFD Sender: No OFD packet to send [06:28:11]OFD Sender: No OFD packet to send [06:28:16]OFD Sender: No OFD packet to send [06:28:21]OFD Sender: No OFD packet to send [06:28:26]OFD Sender: No OFD packet to send [06:28:31]OFD Sender: No OFD packet to send [06:28:36]OFD Sender: No OFD packet to send [06:28:41]OFD Sender: No OFD packet to send [06:28:46]OFD Sender: No OFD packet to send [06:28:51]OFD Sender: No OFD packet to send [06:28:56]OFD Sender: No OFD packet to send [06:29:01]OFD Sender: No OFD packet to send [06:29:06]OFD Sender: No OFD packet to send [06:29:11]OFD Sender: No OFD packet to send [06:29:16]OFD Sender: No OFD packet to send [06:29:21]OFD Sender: No OFD packet to send [06:29:26]OFD Sender: No OFD packet to send [06:29:31]OFD Sender: No OFD packet to send [06:29:36]OFD Sender: No OFD packet to send [06:29:41]OFD Sender: No OFD packet to send [06:29:46]OFD Sender: No OFD packet to send [06:29:51]OFD Sender: No OFD packet to send [06:29:56]OFD Sender: No OFD packet to send [06:30:01]OFD Sender: No OFD packet to send [06:30:06]OFD Sender: No OFD packet to send [06:30:11]OFD Sender: No OFD packet to send [06:30:16]OFD Sender: No OFD packet to send [06:30:21]OFD Sender: No OFD packet to send [06:30:26]OFD Sender: No OFD packet to send [06:30:31]OFD Sender: No OFD packet to send [06:30:36]OFD Sender: No OFD packet to send [06:30:41]OFD Sender: No OFD packet to send [06:30:46]OFD Sender: No OFD packet to send [06:30:51]OFD Sender: No OFD packet to send [06:30:56]OFD Sender: No OFD packet to send [06:31:01]OFD Sender: No OFD packet to send [06:31:06]OFD Sender: No OFD packet to send [06:31:11]OFD Sender: No OFD packet to send [06:31:16]OFD Sender: No OFD packet to send [06:31:21]OFD Sender: No OFD packet to send [06:31:26]OFD Sender: No OFD packet to send [06:31:31]OFD Sender: No OFD packet to send [06:31:36]OFD Sender: No OFD packet to send [06:31:41]OFD Sender: No OFD packet to send [06:31:46]OFD Sender: No OFD packet to send [06:31:51]OFD Sender: No OFD packet to send [06:31:56]OFD Sender: No OFD packet to send [06:32:01]OFD Sender: No OFD packet to send [06:32:06]OFD Sender: No OFD packet to send [06:32:11]OFD Sender: No OFD packet to send [06:32:16]OFD Sender: No OFD packet to send [06:32:21]OFD Sender: No OFD packet to send [06:32:26]OFD Sender: No OFD packet to send [06:32:31]OFD Sender: No OFD packet to send [06:32:36]OFD Sender: No OFD packet to send [06:32:41]OFD Sender: No OFD packet to send [06:32:46]OFD Sender: No OFD packet to send [06:32:51]OFD Sender: No OFD packet to send [06:32:56]OFD Sender: No OFD packet to send [06:33:01]OFD Sender: No OFD packet to send [06:33:06]OFD Sender: No OFD packet to send [06:33:11]OFD Sender: No OFD packet to send [06:33:16]OFD Sender: No OFD packet to send [06:33:21]OFD Sender: No OFD packet to send [06:33:26]OFD Sender: No OFD packet to send [06:33:31]OFD Sender: No OFD packet to send [06:33:36]OFD Sender: No OFD packet to send [06:33:41]OFD Sender: No OFD packet to send [06:33:46]OFD Sender: No OFD packet to send [06:33:51]OFD Sender: No OFD packet to send [06:33:56]OFD Sender: No OFD packet to send [06:34:01]OFD Sender: No OFD packet to send [06:34:06]OFD Sender: No OFD packet to send [06:34:11]OFD Sender: No OFD packet to send [06:34:16]OFD Sender: No OFD packet to send [06:34:21]OFD Sender: No OFD packet to send [06:34:26]OFD Sender: No OFD packet to send [06:34:31]OFD Sender: No OFD packet to send [06:34:36]OFD Sender: No OFD packet to send [06:34:41]OFD Sender: No OFD packet to send [06:34:46]OFD Sender: No OFD packet to send [06:34:51]OFD Sender: No OFD packet to send [06:34:56]OFD Sender: No OFD packet to send [06:35:02]OFD Sender: No OFD packet to send [06:35:07]OFD Sender: No OFD packet to send [06:35:12]OFD Sender: No OFD packet to send [06:35:17]OFD Sender: No OFD packet to send [06:35:22]OFD Sender: No OFD packet to send [06:35:27]OFD Sender: No OFD packet to send [06:35:32]OFD Sender: No OFD packet to send [06:35:37]OFD Sender: No OFD packet to send [06:35:42]OFD Sender: No OFD packet to send [06:35:47]OFD Sender: No OFD packet to send [06:35:52]OFD Sender: No OFD packet to send [06:35:57]OFD Sender: No OFD packet to send [06:36:02]OFD Sender: No OFD packet to send [06:36:07]OFD Sender: No OFD packet to send [06:36:12]OFD Sender: No OFD packet to send [06:36:17]OFD Sender: No OFD packet to send [06:36:22]OFD Sender: No OFD packet to send [06:36:27]OFD Sender: No OFD packet to send [06:36:32]OFD Sender: No OFD packet to send [06:36:37]OFD Sender: No OFD packet to send [06:36:42]OFD Sender: No OFD packet to send [06:36:47]OFD Sender: No OFD packet to send [06:36:52]OFD Sender: No OFD packet to send [06:36:57]OFD Sender: No OFD packet to send [06:37:02]OFD Sender: No OFD packet to send [06:37:07]OFD Sender: No OFD packet to send [06:37:12]OFD Sender: No OFD packet to send [06:37:17]OFD Sender: No OFD packet to send [06:37:22]OFD Sender: No OFD packet to send [06:37:27]OFD Sender: No OFD packet to send [06:37:32]OFD Sender: No OFD packet to send [06:37:37]OFD Sender: No OFD packet to send [06:37:42]OFD Sender: No OFD packet to send [06:37:47]OFD Sender: No OFD packet to send [06:37:52]OFD Sender: No OFD packet to send [06:37:57]OFD Sender: No OFD packet to send [06:38:02]OFD Sender: No OFD packet to send [06:38:07]OFD Sender: No OFD packet to send [06:38:12]OFD Sender: No OFD packet to send [06:38:17]OFD Sender: No OFD packet to send [06:38:22]OFD Sender: No OFD packet to send [06:38:27]OFD Sender: No OFD packet to send [06:38:32]OFD Sender: No OFD packet to send [06:38:37]OFD Sender: No OFD packet to send [06:38:42]OFD Sender: No OFD packet to send [06:38:47]OFD Sender: No OFD packet to send [06:38:52]OFD Sender: No OFD packet to send [06:38:57]OFD Sender: No OFD packet to send [06:39:02]OFD Sender: No OFD packet to send [06:39:07]OFD Sender: No OFD packet to send [06:39:12]OFD Sender: No OFD packet to send [06:39:17]OFD Sender: No OFD packet to send [06:39:22]OFD Sender: No OFD packet to send [06:39:27]OFD Sender: No OFD packet to send [06:39:32]OFD Sender: No OFD packet to send [06:39:37]OFD Sender: No OFD packet to send [06:39:42]OFD Sender: No OFD packet to send [06:39:47]OFD Sender: No OFD packet to send [06:39:52]OFD Sender: No OFD packet to send [06:39:57]OFD Sender: No OFD packet to send [06:40:02]OFD Sender: No OFD packet to send [06:40:07]OFD Sender: No OFD packet to send [06:40:12]OFD Sender: No OFD packet to send [06:40:17]OFD Sender: No OFD packet to send [06:40:22]OFD Sender: No OFD packet to send [06:40:27]OFD Sender: No OFD packet to send [06:40:32]OFD Sender: No OFD packet to send [06:40:37]OFD Sender: No OFD packet to send [06:40:42]OFD Sender: No OFD packet to send [06:40:47]OFD Sender: No OFD packet to send [06:40:52]OFD Sender: No OFD packet to send [06:40:56]accept exits with 7 [06:40:56]New connection [06:40:56]New thread 3066928484 created [06:40:56]Thread 3066785124 joined [06:40:56]Waiting for new connection... [06:40:56] Sock 7.Parse request [06:40:56]Sock 7.Check first char [06:40:56]Sock 7.First char is OK [06:40:56]request: POST /json_proto HTTP/1.0 [06:40:56]Method: POST [06:40:56]URL: /json_proto [06:40:56]Method is POST - this is cgi request [06:40:56]url: /json_proto [06:40:56]query_string will be loaded in cgi processing [06:40:56]execute_cgi json_proto POST (null) [06:40:56]execute_cgi path=json_proto method=POST [06:40:56]POST find Content-Length [06:40:56]Host: 172.17.56.4:8080 [06:40:56]Content-Length: 790 [06:40:56]Content-Type: application/json [06:40:56] [06:40:56]POST finish read [06:40:56]Found Content-Length = 790 [06:40:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 3.070, "sum" : 200.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 200.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:40:56]execute_script... [06:40: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)459244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 3.070, "sum" : 200.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 200.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:40:56]POST & json_proto [06:40:56]process_json_proto [06:40:56]json parsed OK: [06:40:56]protocol is kg_v1.0 [06:40:56]action value=close_receipt [06:40:56]process_action close_receipt [06:40:56]cmd_close_receipt [06:40:56]MH_GetDate [06:40:56]Write to MH i2c: F0 00 00 16 19 1E [06:40:56]Write i2c OK [06:40:56]MH_I2C_Read... [06:40:56]Read from MH i2c: F0 [06:40:56]MH_I2C_Read... [06:40:56]Read from MH i2c: F0 09 00 [06:40:56]MH_I2C_Read... [06:40:56]Read from MH i2c: F0 09 00 16 19 00 7C C4 94 66 C9 DC B2 64 1C [06:40:56]GetLastDocTimeStamp 1721024807 [06:40:56]current date 1721025660 [06:40:56]FM_GetShiftState [06:40:56]SAM_PROTO_GetShiftState [06:40:56]wFMCommunicate request_size=4 [06:40:56]MH_SAM_APDU [06:40:56]CAPDU: 80 13 01 00 [06:40:56]Write to MH i2c: E2 08 00 17 19 80 13 01 00 00 00 00 00 AD [06:40:56]Write i2c OK [06:40:56]MH_I2C_Read... [06:40:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:40:56]Read from MH i2c: E2 [06:40:56]MH_I2C_Read... [06:40:56]Read from MH i2c: E2 0E 00 [06:40:56]MH_I2C_Read... [06:40:56]Read from MH i2c: E2 0E 00 17 19 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 86 [06:40:56]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [06:40:56]wFMCommunicate OK [06:40:56]SAM_PROTO_GetShiftState done [06:40:56]FM_GetShiftState done [06:40:56]opened in 1721003876 [06:40:56]opened+sec_in_day 1721090276 [06:40:56]quantity*price = 20022 [06:40:56]sum+1 = 20024 [06:40:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.23 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 0.00 Безнал.: 200.23 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 16 15.07.2024 06:41 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 165143 ФПД: 131307956576694 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T064100&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165143&fm=131307956576694&tin=02508201610067®Number=0000000000090829&sum=20023 [06:40:57]StoreToDocumentArchive [06:40:57]shift 448 fd 165143 [06:40:57]save to /storage/0448/doc_00165143 [06:40:57]save last doc name /storage/0448/doc_00165143 to /storage/kkm_last_doc_name [06:40:57]save OK [06:40:57]Clear old archive folders... [06:40:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:40:57]tlvbuf is 01373640 [06:40:57]SAM_PROTO_ClearQueue [06:40:57]wFMCommunicate request_size=4 [06:40:57]MH_SAM_APDU [06:40:57]CAPDU: 80 09 00 00 [06:40:57]Write to MH i2c: E2 08 00 24 19 80 09 00 00 00 00 00 00 AF [06:40:57]Write i2c OK [06:40:57]MH_I2C_Read... [06:40:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:40:57]Read from MH i2c: E2 [06:40:57]MH_I2C_Read... [06:40:57]Read from MH i2c: E2 03 00 [06:40:57]MH_I2C_Read... [06:40:57]Read from MH i2c: E2 03 00 24 19 00 90 00 B1 [06:40:57]RAPDU: 90 00 [06:40:57]wFMCommunicate OK [06:40:57]SAM_PROTO_ClearQueue done [06:40:57]KKMCreateOFDPacket [06:40:57]OFDProtocolAddRootSTLVToBuf [06:40:57]FM_MakeSignedData [06:40:57]FM_MakeSignedData [06:40:57]SAM_PROTO_SignData [06:40:57]wFMCommunicate request_size=4 [06:40:57]MH_SAM_APDU [06:40:57]CAPDU: 80 0D 01 02 [06:40:57]Write to MH i2c: E2 08 00 25 19 80 0D 01 02 00 00 00 00 B7 [06:40:57]Write i2c OK [06:40:57]MH_I2C_Read... [06:40:57]OFD Sender: No OFD packet to send [06:40:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:40:57]Read from MH i2c: E2 [06:40:57]MH_I2C_Read... [06:40:57]Read from MH i2c: E2 03 00 [06:40:57]MH_I2C_Read... [06:40:57]Read from MH i2c: E2 03 00 25 19 00 90 00 B2 [06:40:57]RAPDU: 90 00 [06:40:57]wFMCommunicate OK [06:40:57]wFMCommunicate request_size=255 [06:40:57]MH_SAM_APDU [06:40: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 FE 0B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 37 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 37 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 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 37 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 7C C4 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 17 85 02 00 35 04 06 00 77 [06:40:57]Write to MH i2c: E2 02 01 26 19 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 0B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 37 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 37 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 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 37 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 7C C4 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 17 85 02 00 35 04 06 00 77 00 00 19 [06:40:57]Write i2c OK [06:40:57]MH_I2C_Read... [06:40:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:40:57]Read from MH i2c: E2 [06:40:57]MH_I2C_Read... [06:40:57]Read from MH i2c: E2 03 00 [06:40:57]MH_I2C_Read... [06:40:57]Read from MH i2c: E2 03 00 26 19 00 90 00 B3 [06:40:57]RAPDU: 90 00 [06:40:57]wFMCommunicate OK [06:40:57]wFMCommunicate request_size=10 [06:40:57]MH_SAM_APDU [06:40:57]CAPDU: 80 0D 02 02 05 6C 84 1B A1 B6 [06:40:57]Write to MH i2c: E2 0D 00 27 19 80 0D 02 02 05 00 6C 84 1B A1 B6 00 00 26 [06:40:57]Write i2c OK [06:40:57]MH_I2C_Read... [06:40:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:40:57]Read from MH i2c: E2 [06:40:57]MH_I2C_Read... [06:40:57]Read from MH i2c: E2 03 00 [06:40:57]MH_I2C_Read... [06:40:57]Read from MH i2c: E2 03 00 27 19 00 90 00 B4 [06:40:57]RAPDU: 90 00 [06:40:57]wFMCommunicate OK [06:40:57]wFMCommunicate request_size=4 [06:40:57]MH_SAM_APDU [06:40:57]CAPDU: 80 0D 03 02 [06:40:57]Write to MH i2c: E2 08 00 28 19 80 0D 03 02 00 00 00 00 BC [06:40:57]Write i2c OK [06:40:57]MH_I2C_Read... [06:40:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:40:57]Read from MH i2c: E2 [06:40:57]MH_I2C_Read... [06:40:57]Read from MH i2c: E2 0B 00 [06:40:57]MH_I2C_Read... [06:40:57]Read from MH i2c: E2 0B 00 28 19 00 5E 2D DE 0D E4 97 C5 66 90 00 D9 [06:40:57]RAPDU: 5E 2D DE 0D E4 97 C5 66 90 00 [06:40:57]wFMCommunicate OK [06:40:57]SAM_PROTO_SignData done [06:40:57]FM_MakeSignedData done [06:40:57]CreateOFDProtocolMessage [06:40:57]wFMCommunicate request_size=4 [06:40:57]MH_SAM_APDU [06:40:57]CAPDU: 80 11 00 00 [06:40:57]Write to MH i2c: E2 08 00 29 19 80 11 00 00 00 00 00 00 BC [06:40:57]Write i2c OK [06:40:57]MH_I2C_Read... [06:40:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:40:57]Read from MH i2c: E2 [06:40:57]MH_I2C_Read... [06:40:57]Read from MH i2c: E2 17 00 [06:40:57]MH_I2C_Read... [06:40:57]Read from MH i2c: E2 17 00 29 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 12 [06:40:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [06:40:57]wFMCommunicate OK [06:40:57]CreateOFDProtocolMessage done [06:40:57]OFDSenderStorePacket 165143 [06:40:57]StoreOFDPacket docnum=165143 [06:40:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 68 49 07 01 4C B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 0B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 37 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 37 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 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 37 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 7C C4 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 17 85 02 00 35 04 06 00 77 6C 84 1B A1 B6 5E 2D DE 0D E4 97 C5 66 [06:40:57]CheckFolder [06:40:57]dirname=/storage/ofd_packets [06:40:57]CheckFolder done [06:40:57]ProducePacketName [06:40:57]name=ofd_packets/00165143 [06:40:57]NVStorageSaveData ofd_packets/00165143 [06:40:57]File name is /storage/ofd_packets/00165143 [06:40:57]Write 301 bytes [06:40:57]NVStorageSaveData done [06:40:57]OFDSenderStorePacket done [06:40:57]KKMCreateOFDPacket done [06:40:57]NVStorageSaveData kkm_last_timestamp [06:40:57]File name is /storage/kkm_last_timestamp [06:40:57]Write 4 bytes [06:40:57]NVStorageSaveData done [06:40:57]ExternCall_PrintAddStr [06:40:57]wPrintStart [06:40:57]Write to MH i2c: 01 00 00 2A 19 43 [06:40:57]Write i2c OK [06:40:57]MH_I2C_Read... [06:40:57]Read from MH i2c: 01 [06:40:57]MH_I2C_Read... [06:40:57]Read from MH i2c: 01 07 00 [06:40:57]MH_I2C_Read... [06:40:57]Read from MH i2c: 01 07 00 2A 19 00 00 00 00 00 FF 0F 58 [06:40:57]RasterBufferAndPrint [06:40:57]line Счет N : (1)459244 [06:40:57]line ИНН: 02508201610067 [06:40:57]line Контрольно-Кассовый Чек [06:40:57]line ПРОДАЖА [06:40:57]line ТРК (МРК, ГНК) : 22 [06:40:57]line Товар: 2710124130 [06:40:57]line Аи-92-К-5 [06:40:57]line 3.070 * 65.22 [06:40:57]line = 200.23 [06:40:57]line НДС 12% НСП 1% [06:40:57]line > о реализуемом товаре [06:40:57]line ИТОГО: 200.23 [06:40:57]line НСП 1% : 1.77 [06:40:57]line НДС 12% : 21.26 [06:40:57]line Наличными: 0.00 [06:40:57]line Безнал.: 200.23 [06:40:57]line Место: АЗС № 72 "Партнер Нефть" [06:40:57]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [06:40:57]line СНО: Общий режим [06:40:57]line Чек 16 15.07.2024 06:41 [06:40:57]line Смена: 448 ФФД: 1.0 [06:40:57]line ЗНМ: 0300000160 [06:40:57]line РНМ: 0000000000090829 [06:40:57]line Версия ККМ: 001 [06:40:57]line Платежная система: KICB Банк [06:40:57]line ФМ: 0000000000874718 [06:40:57]line ФД: 165143 [06:40:57]line ФПД: 131307956576694 [06:40:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T064100&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165143&fm=131307956576694&tin=02508201610067®Number=0000000000090829&sum=20023 [06:40:58]written 0, free lines is 4095 [06:40:58]OFD Sender: Processing packet 165143 [packets to send 106, broken 105] [06:40:58]ProducePacketName [06:40:58]name=ofd_packets/00165143 [06:40:58]OFD Sender: To server: pG, [06:40:58]CommunicateWithHost lk.salyk.kg:30040 [06:40:58]ConnectInit lk.salyk.kg [06:40:58]Connected sock=11 [06:40: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 37 31 38 0F 01 00 00 68 49 07 01 4C B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 0B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 37 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 37 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 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 37 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 7C C4 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 17 85 02 00 35 04 06 00 77 6C 84 1B A1 B6 5E 2D DE 0D E4 97 C5 66 [06:40:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 F3 9F 47 00 09 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 17 85 02 00 F4 03 04 00 07 6B 94 66 B6 04 01 00 00 8D 69 B5 43 77 1E 78 92 [06:40:58]CommunicateWithHost err = 0 [06:40:58]CheckOFDResponse [06:40:58]1017 (14) - 77093643461234 [06:40:58]1041 (16) - 0000000000874718 [06:40:58]1040 (4) - 165143 [06:40:58]1012 (4) - 15.07.2024 00:19 [06:40:58]1206 (1) - 0 [06:40:58]OFD Sender: Remove packet 165143 [06:40:58]ProducePacketName [06:40:58]name=ofd_packets/00165143 [06:40:58]NVStorageDeleteData [06:40:58]Write to MH i2c: 01 00 00 53 19 6C [06:40:58]Write i2c OK [06:40:58]MH_I2C_Read... [06:40:58]Read from MH i2c: 01 [06:40:58]MH_I2C_Read... [06:40:58]Read from MH i2c: 01 07 00 [06:40:58]MH_I2C_Read... [06:40:58]Read from MH i2c: 01 07 00 53 19 00 00 00 00 00 01 0D 81 [06:40:58]RasterBufferAndPrint [06:40:58]line [06:40:58]line [06:40:58]line [06:40:58]line [06:40:58]line [06:40:58]written 0, free lines is 3335 [06:40:58]MH_Cut [06:40:58]Write to MH i2c: D1 01 00 5A 19 01 45 [06:40:58]Write i2c OK [06:40:58]MH_I2C_Read... [06:40:58]Read from MH i2c: D1 [06:40:58]MH_I2C_Read... [06:40:58]Read from MH i2c: D1 01 00 [06:40:58]MH_I2C_Read... [06:40:58]Read from MH i2c: D1 01 00 5A 19 00 44 [06:40:58]Write to MH i2c: 01 00 00 5B 19 74 [06:40:58]Write i2c OK [06:40:58]MH_I2C_Read... [06:40:59]OFD Sender: No OFD packet to send [06:40:59]*** Cut start [06:40:59]*** Partial cut [06:40:59]*** CUTSNS_PIN = 1 [06:40:59]*** CUTSNS_PIN = 0 [06:40:59]*** Brake cut motor [06:40:59]Read from MH i2c: 01 [06:40:59]MH_I2C_Read... [06:40:59]*** Stop cut motor [06:40:59]*** Cut end [06:40:59]Read from MH i2c: 01 07 00 [06:40:59]MH_I2C_Read... [06:40:59]Read from MH i2c: 01 07 00 5B 19 00 00 00 00 00 FF 0F 89 [06:40:59]process_action close_receipt done [06:40:59]requested_data is exist [06:40:59]produce_requested_data [06:40:59]requested_item fm.sn is exist - process it [06:40:59]wFMCommunicate request_size=4 [06:40:59]MH_SAM_APDU [06:40:59]CAPDU: 80 11 00 00 [06:40:59]Write to MH i2c: E2 08 00 5C 19 80 11 00 00 00 00 00 00 EF [06:40:59]Write i2c OK [06:40:59]MH_I2C_Read... [06:40:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:40:59]Read from MH i2c: E2 [06:40:59]MH_I2C_Read... [06:40:59]Read from MH i2c: E2 17 00 [06:40:59]MH_I2C_Read... [06:40:59]Read from MH i2c: E2 17 00 5C 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 45 [06:40:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [06:40:59]wFMCommunicate OK [06:40:59]requested_item fd.num is exist - process it [06:40:59]SAM_PROTO_GetFieldsCounters [06:40:59]wFMCommunicate request_size=4 [06:40:59]MH_SAM_APDU [06:40:59]CAPDU: 80 13 00 00 [06:40:59]Write to MH i2c: E2 08 00 5D 19 80 13 00 00 00 00 00 00 F2 [06:40:59]Write i2c OK [06:40:59]MH_I2C_Read... [06:41:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:41:00]Read from MH i2c: E2 [06:41:00]MH_I2C_Read... [06:41:00]Read from MH i2c: E2 62 00 [06:41:00]MH_I2C_Read... [06:41:00]Read from MH i2c: E2 62 00 5D 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 17 85 02 00 0E 04 04 00 C0 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 A8 [06:41: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 17 85 02 00 0E 04 04 00 C0 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 [06:41:00]wFMCommunicate OK [06:41:00]SAM_PROTO_GetFieldsCounters done [06:41:00]requested_item shift.num is exist - process it [06:41:00]requested_item shift.opened is exist - process it [06:41:00]req_shift_opened [06:41:00]FM_GetShiftState [06:41:00]SAM_PROTO_GetShiftState [06:41:00]wFMCommunicate request_size=4 [06:41:00]MH_SAM_APDU [06:41:00]CAPDU: 80 13 01 00 [06:41:00]Write to MH i2c: E2 08 00 5E 19 80 13 01 00 00 00 00 00 F4 [06:41:00]Write i2c OK [06:41:00]MH_I2C_Read... [06:41:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:41:00]Read from MH i2c: E2 [06:41:00]MH_I2C_Read... [06:41:00]Read from MH i2c: E2 0E 00 [06:41:00]MH_I2C_Read... [06:41:00]Read from MH i2c: E2 0E 00 5E 19 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 CD [06:41:00]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [06:41:00]wFMCommunicate OK [06:41:00]SAM_PROTO_GetShiftState done [06:41:00]FM_GetShiftState done [06:41:00]req_shift_opened done [06:41:00]requested_item shift.open_date is exist - process it [06:41:00]req_shift_open_date [06:41:00]req_shift_open_date done [06:41:00]produce_requested_data done [06:41:00]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165143,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [06:41:00]process_action_free close_receipt [06:41:00]json_value_free [06:41:00]json_value_free done [06:41:00]process_json_proto returns [06:41:00]Send response to host [06:41:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165143,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [06:41:00]free response buf [06:41:00]execute_script done [06:41:00]execute_script returns [06:41:00]free content buf [06:41:00]Sock 7.Close socket [06:41:00]Sock 7.Thread stoped [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:54]OFD Sender: No OFD packet to send [06:49:59]OFD Sender: No OFD packet to send [06:50:04]OFD Sender: No OFD packet to send [06:50:09]OFD Sender: No OFD packet to send [06:50:14]OFD Sender: No OFD packet to send [06:50:19]OFD Sender: No OFD packet to send [06:50:24]OFD Sender: No OFD packet to send [06:50:29]OFD Sender: No OFD packet to send [06:50:34]OFD Sender: No OFD packet to send [06:50:39]OFD Sender: No OFD packet to send [06:50:44]OFD Sender: No OFD packet to send [06:50:49]OFD Sender: No OFD packet to send [06:50:54]OFD Sender: No OFD packet to send [06:50:59]OFD Sender: No OFD packet to send [06:51:04]OFD Sender: No OFD packet to send [06:51:09]OFD Sender: No OFD packet to send [06:51:14]OFD Sender: No OFD packet to send [06:51:19]OFD Sender: No OFD packet to send [06:51:24]OFD Sender: No OFD packet to send [06:51:29]OFD Sender: No OFD packet to send [06:51:34]OFD Sender: No OFD packet to send [06:51:39]OFD Sender: No OFD packet to send [06:51:44]OFD Sender: No OFD packet to send [06:51:49]OFD Sender: No OFD packet to send [06:51:54]OFD Sender: No OFD packet to send [06:51:59]OFD Sender: No OFD packet to send [06:52:04]OFD Sender: No OFD packet to send [06:52:09]OFD Sender: No OFD packet to send [06:52:14]OFD Sender: No OFD packet to send [06:52:19]OFD Sender: No OFD packet to send [06:52:24]OFD Sender: No OFD packet to send [06:52:29]OFD Sender: No OFD packet to send [06:52:34]OFD Sender: No OFD packet to send [06:52:39]OFD Sender: No OFD packet to send [06:52:44]OFD Sender: No OFD packet to send [06:52:49]OFD Sender: No OFD packet to send [06:52:54]OFD Sender: No OFD packet to send [06:52:59]OFD Sender: No OFD packet to send [06:53:04]OFD Sender: No OFD packet to send [06:53:09]OFD Sender: No OFD packet to send [06:53:14]OFD Sender: No OFD packet to send [06:53:19]OFD Sender: No OFD packet to send [06:53:24]OFD Sender: No OFD packet to send [06:53:29]OFD Sender: No OFD packet to send [06:53:34]OFD Sender: No OFD packet to send [06:53:39]OFD Sender: No OFD packet to send [06:53:44]OFD Sender: No OFD packet to send [06:53:49]OFD Sender: No OFD packet to send [06:53:54]OFD Sender: No OFD packet to send [06:53:59]OFD Sender: No OFD packet to send [06:54:04]OFD Sender: No OFD packet to send [06:54:09]OFD Sender: No OFD packet to send [06:54:14]OFD Sender: No OFD packet to send [06:54:19]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:15]OFD Sender: No OFD packet to send [06:55:20]OFD Sender: No OFD packet to send [06:55:25]OFD Sender: No OFD packet to send [06:55:30]OFD Sender: No OFD packet to send [06:55:35]OFD Sender: No OFD packet to send [06:55:40]OFD Sender: No OFD packet to send [06:55:45]OFD Sender: No OFD packet to send [06:55:50]OFD Sender: No OFD packet to send [06:55:55]OFD Sender: No OFD packet to send [06:56:00]OFD Sender: No OFD packet to send [06:56:05]OFD Sender: No OFD packet to send [06:56:10]OFD Sender: No OFD packet to send [06:56:15]OFD Sender: No OFD packet to send [06:56:20]OFD Sender: No OFD packet to send [06:56:25]OFD Sender: No OFD packet to send [06:56:30]OFD Sender: No OFD packet to send [06:56:35]OFD Sender: No OFD packet to send [06:56:40]OFD Sender: No OFD packet to send [06:56:45]OFD Sender: No OFD packet to send [06:56:50]OFD Sender: No OFD packet to send [06:56:55]OFD Sender: No OFD packet to send [06:57:00]OFD Sender: No OFD packet to send [06:57:05]OFD Sender: No OFD packet to send [06:57:10]OFD Sender: No OFD packet to send [06:57:15]OFD Sender: No OFD packet to send [06:57:20]OFD Sender: No OFD packet to send [06:57:25]OFD Sender: No OFD packet to send [06:57:30]OFD Sender: No OFD packet to send [06:57:35]OFD Sender: No OFD packet to send [06:57:40]OFD Sender: No OFD packet to send [06:57:45]OFD Sender: No OFD packet to send [06:57:50]OFD Sender: No OFD packet to send [06:57:55]OFD Sender: No OFD packet to send [06:58:00]OFD Sender: No OFD packet to send [06:58:05]OFD Sender: No OFD packet to send [06:58:10]OFD Sender: No OFD packet to send [06:58:15]OFD Sender: No OFD packet to send [06:58:20]OFD Sender: No OFD packet to send [06:58:25]OFD Sender: No OFD packet to send [06:58:30]OFD Sender: No OFD packet to send [06:58:35]OFD Sender: No OFD packet to send [06:58:40]OFD Sender: No OFD packet to send [06:58:45]OFD Sender: No OFD packet to send [06:58:50]OFD Sender: No OFD packet to send [06:58:51]accept exits with 9 [06:58:51]New connection [06:58:51]New thread 3066785124 created [06:58:51]Thread 3066928484 joined [06:58:51]Waiting for new connection... [06:58:51] Sock 9.Parse request [06:58:51]Sock 9.Check first char [06:58:51]Sock 9.First char is OK [06:58:51]request: POST /json_proto HTTP/1.0 [06:58:51]Method: POST [06:58:51]URL: /json_proto [06:58:51]Method is POST - this is cgi request [06:58:51]url: /json_proto [06:58:51]query_string will be loaded in cgi processing [06:58:51]execute_cgi json_proto POST (null) [06:58:51]execute_cgi path=json_proto method=POST [06:58:51]POST find Content-Length [06:58:51]Host: 172.17.56.4:8080 [06:58:51]Content-Length: 790 [06:58:51]Content-Type: application/json [06:58:51] [06:58:51]POST finish read [06:58:51]Found Content-Length = 790 [06:58:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459245", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 1.540, "sum" : 100.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 100.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:58:51]execute_script... [06:58: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)459245", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 1.540, "sum" : 100.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 100.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:58:51]POST & json_proto [06:58:51]process_json_proto [06:58:51]json parsed OK: [06:58:51]protocol is kg_v1.0 [06:58:51]action value=close_receipt [06:58:51]process_action close_receipt [06:58:51]cmd_close_receipt [06:58:51]MH_GetDate [06:58:51]Write to MH i2c: F0 00 00 5F 19 67 [06:58:51]Write i2c OK [06:58:51]MH_I2C_Read... [06:58:51]Read from MH i2c: F0 [06:58:51]MH_I2C_Read... [06:58:51]Read from MH i2c: F0 09 00 [06:58:51]MH_I2C_Read... [06:58:51]Read from MH i2c: F0 09 00 5F 19 00 AF C8 94 66 C9 DC B2 64 9C [06:58:51]GetLastDocTimeStamp 1721025660 [06:58:51]current date 1721026735 [06:58:51]FM_GetShiftState [06:58:51]SAM_PROTO_GetShiftState [06:58:51]wFMCommunicate request_size=4 [06:58:51]MH_SAM_APDU [06:58:51]CAPDU: 80 13 01 00 [06:58:51]Write to MH i2c: E2 08 00 60 19 80 13 01 00 00 00 00 00 F6 [06:58:51]Write i2c OK [06:58:51]MH_I2C_Read... [06:58:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:58:51]Read from MH i2c: E2 [06:58:51]MH_I2C_Read... [06:58:51]Read from MH i2c: E2 0E 00 [06:58:51]MH_I2C_Read... [06:58:51]Read from MH i2c: E2 0E 00 60 19 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 CF [06:58:51]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [06:58:51]wFMCommunicate OK [06:58:51]SAM_PROTO_GetShiftState done [06:58:51]FM_GetShiftState done [06:58:51]opened in 1721003876 [06:58:51]opened+sec_in_day 1721090276 [06:58:51]quantity*price = 10043 [06:58:51]sum+1 = 10045 [06:58:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.44 НСП 1% : 0.89 НДС 12% : 10.67 Наличными: 0.00 Безнал.: 100.44 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 17 15.07.2024 06:58 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 165144 ФПД: 143809718026473 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T065855&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165144&fm=143809718026473&tin=02508201610067®Number=0000000000090829&sum=10044 [06:58:52]StoreToDocumentArchive [06:58:52]shift 448 fd 165144 [06:58:52]save to /storage/0448/doc_00165144 [06:58:52]save last doc name /storage/0448/doc_00165144 to /storage/kkm_last_doc_name [06:58:52]save OK [06:58:52]Clear old archive folders... [06:58:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:58:52]tlvbuf is 01373640 [06:58:52]SAM_PROTO_ClearQueue [06:58:52]wFMCommunicate request_size=4 [06:58:52]MH_SAM_APDU [06:58:52]CAPDU: 80 09 00 00 [06:58:52]Write to MH i2c: E2 08 00 6D 19 80 09 00 00 00 00 00 00 F8 [06:58:52]Write i2c OK [06:58:52]MH_I2C_Read... [06:58:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:58:52]Read from MH i2c: E2 [06:58:52]MH_I2C_Read... [06:58:52]Read from MH i2c: E2 03 00 [06:58:52]MH_I2C_Read... [06:58:52]Read from MH i2c: E2 03 00 6D 19 00 90 00 FA [06:58:52]RAPDU: 90 00 [06:58:52]wFMCommunicate OK [06:58:52]SAM_PROTO_ClearQueue done [06:58:52]KKMCreateOFDPacket [06:58:52]OFDProtocolAddRootSTLVToBuf [06:58:52]FM_MakeSignedData [06:58:52]FM_MakeSignedData [06:58:52]SAM_PROTO_SignData [06:58:52]wFMCommunicate request_size=4 [06:58:52]MH_SAM_APDU [06:58:52]CAPDU: 80 0D 01 02 [06:58:52]Write to MH i2c: E2 08 00 6E 19 80 0D 01 02 00 00 00 00 00 [06:58:52]Write i2c OK [06:58:52]MH_I2C_Read... [06:58:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:58:52]Read from MH i2c: E2 [06:58:52]MH_I2C_Read... [06:58:52]Read from MH i2c: E2 03 00 [06:58:52]MH_I2C_Read... [06:58:52]Read from MH i2c: E2 03 00 6E 19 00 90 00 FB [06:58:52]RAPDU: 90 00 [06:58:52]wFMCommunicate OK [06:58:52]wFMCommunicate request_size=255 [06:58:52]MH_SAM_APDU [06:58:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 04 06 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 3C 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C 27 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 AF C8 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 18 85 02 00 35 04 06 00 82 [06:58:52]Write to MH i2c: E2 02 01 6F 19 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 04 06 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 3C 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C 27 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 AF C8 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 18 85 02 00 35 04 06 00 82 00 00 C2 [06:58:52]Write i2c OK [06:58:52]MH_I2C_Read... [06:58:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:58:52]Read from MH i2c: E2 [06:58:52]MH_I2C_Read... [06:58:52]Read from MH i2c: E2 03 00 [06:58:52]MH_I2C_Read... [06:58:52]Read from MH i2c: E2 03 00 6F 19 00 90 00 FC [06:58:52]RAPDU: 90 00 [06:58:52]wFMCommunicate OK [06:58:52]wFMCommunicate request_size=10 [06:58:52]MH_SAM_APDU [06:58:52]CAPDU: 80 0D 02 02 05 CB 4F 28 80 E9 [06:58:52]Write to MH i2c: E2 0D 00 70 19 80 0D 02 02 05 00 CB 4F 28 80 E9 00 00 B8 [06:58:52]Write i2c OK [06:58:52]MH_I2C_Read... [06:58:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:58:52]Read from MH i2c: E2 [06:58:52]MH_I2C_Read... [06:58:52]Read from MH i2c: E2 03 00 [06:58:52]MH_I2C_Read... [06:58:52]Read from MH i2c: E2 03 00 70 19 00 90 00 FD [06:58:52]RAPDU: 90 00 [06:58:52]wFMCommunicate OK [06:58:52]wFMCommunicate request_size=4 [06:58:52]MH_SAM_APDU [06:58:52]CAPDU: 80 0D 03 02 [06:58:52]Write to MH i2c: E2 08 00 71 19 80 0D 03 02 00 00 00 00 05 [06:58:52]Write i2c OK [06:58:52]MH_I2C_Read... [06:58:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:58:52]Read from MH i2c: E2 [06:58:52]MH_I2C_Read... [06:58:52]Read from MH i2c: E2 0B 00 [06:58:52]MH_I2C_Read... [06:58:52]Read from MH i2c: E2 0B 00 71 19 00 BC 4E 5F 73 0E CE 65 2D 90 00 50 [06:58:52]RAPDU: BC 4E 5F 73 0E CE 65 2D 90 00 [06:58:52]wFMCommunicate OK [06:58:52]SAM_PROTO_SignData done [06:58:52]FM_MakeSignedData done [06:58:52]CreateOFDProtocolMessage [06:58:52]wFMCommunicate request_size=4 [06:58:52]MH_SAM_APDU [06:58:52]CAPDU: 80 11 00 00 [06:58:52]Write to MH i2c: E2 08 00 72 19 80 11 00 00 00 00 00 00 05 [06:58:52]Write i2c OK [06:58:52]MH_I2C_Read... [06:58:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:58:52]Read from MH i2c: E2 [06:58:52]MH_I2C_Read... [06:58:52]Read from MH i2c: E2 17 00 [06:58:52]MH_I2C_Read... [06:58:52]Read from MH i2c: E2 17 00 72 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5B [06:58:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [06:58:52]wFMCommunicate OK [06:58:52]CreateOFDProtocolMessage done [06:58:52]OFDSenderStorePacket 165144 [06:58:52]StoreOFDPacket docnum=165144 [06:58:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 56 24 07 01 29 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 04 06 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 3C 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C 27 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 AF C8 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 18 85 02 00 35 04 06 00 82 CB 4F 28 80 E9 BC 4E 5F 73 0E CE 65 2D [06:58:52]CheckFolder [06:58:52]dirname=/storage/ofd_packets [06:58:52]CheckFolder done [06:58:52]ProducePacketName [06:58:52]name=ofd_packets/00165144 [06:58:52]NVStorageSaveData ofd_packets/00165144 [06:58:52]File name is /storage/ofd_packets/00165144 [06:58:52]Write 301 bytes [06:58:52]NVStorageSaveData done [06:58:52]OFDSenderStorePacket done [06:58:52]KKMCreateOFDPacket done [06:58:52]NVStorageSaveData kkm_last_timestamp [06:58:52]File name is /storage/kkm_last_timestamp [06:58:52]Write 4 bytes [06:58:52]NVStorageSaveData done [06:58:52]ExternCall_PrintAddStr [06:58:52]wPrintStart [06:58:52]Write to MH i2c: 01 00 00 73 19 8C [06:58:52]Write i2c OK [06:58:52]MH_I2C_Read... [06:58:52]Read from MH i2c: 01 [06:58:52]MH_I2C_Read... [06:58:52]Read from MH i2c: 01 07 00 [06:58:52]MH_I2C_Read... [06:58:52]Read from MH i2c: 01 07 00 73 19 00 00 00 00 00 FF 0F A1 [06:58:52]RasterBufferAndPrint [06:58:52]line Счет N : (1)459245 [06:58:52]line ИНН: 02508201610067 [06:58:52]line Контрольно-Кассовый Чек [06:58:52]line ПРОДАЖА [06:58:52]line ТРК (МРК, ГНК) : 12 [06:58:52]line Товар: 2710124130 [06:58:52]line Аи-92-К-5 [06:58:52]line 1.540 * 65.22 [06:58:52]line = 100.44 [06:58:52]line НДС 12% НСП 1% [06:58:52]line > о реализуемом товаре [06:58:52]line ИТОГО: 100.44 [06:58:52]line НСП 1% : 0.89 [06:58:52]line НДС 12% : 10.67 [06:58:52]line Наличными: 0.00 [06:58:52]line Безнал.: 100.44 [06:58:52]line Место: АЗС № 72 "Партнер Нефть" [06:58:52]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [06:58:52]line СНО: Общий режим [06:58:52]line Чек 17 15.07.2024 06:58 [06:58:52]line Смена: 448 ФФД: 1.0 [06:58:52]line ЗНМ: 0300000160 [06:58:52]line РНМ: 0000000000090829 [06:58:52]line Версия ККМ: 001 [06:58:52]line Платежная система: KICB Банк [06:58:52]line ФМ: 0000000000874718 [06:58:52]line ФД: 165144 [06:58:52]line ФПД: 143809718026473 [06:58:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T065855&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165144&fm=143809718026473&tin=02508201610067®Number=0000000000090829&sum=10044 [06:58:52]written 0, free lines is 4095 [06:58:52]OFD Sender: Processing packet 165144 [packets to send 106, broken 105] [06:58:52]ProducePacketName [06:58:52]name=ofd_packets/00165144 [06:58:52]OFD Sender: To server: pG, [06:58:53]CommunicateWithHost lk.salyk.kg:30040 [06:58:53]ConnectInit lk.salyk.kg [06:58:53]Connected sock=10 [06:58: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 37 31 38 0F 01 00 00 56 24 07 01 29 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 04 06 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 3C 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C 27 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 AF C8 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 18 85 02 00 35 04 06 00 82 CB 4F 28 80 E9 BC 4E 5F 73 0E CE 65 2D [06:58:53]Write to MH i2c: 01 00 00 9C 19 B5 [06:58:53]Write i2c OK [06:58:53]MH_I2C_Read... [06:58:53]Read from MH i2c: 01 [06:58:53]MH_I2C_Read... [06:58:53]Read from MH i2c: 01 07 00 [06:58:53]MH_I2C_Read... [06:58:53]Read from MH i2c: 01 07 00 9C 19 00 00 00 00 00 08 0D D1 [06:58:53]RasterBufferAndPrint [06:58:53]line [06:58:53]line [06:58:53]line [06:58:53]line [06:58:53]line [06:58:53]written 0, free lines is 3342 [06:58:53]MH_Cut [06:58:53]Write to MH i2c: D1 01 00 A3 19 01 8E [06:58:53]Write i2c OK [06:58:53]MH_I2C_Read... [06:58:53]Read from MH i2c: D1 [06:58:53]MH_I2C_Read... [06:58:53]Read from MH i2c: D1 01 00 [06:58:53]MH_I2C_Read... [06:58:53]Read from MH i2c: D1 01 00 A3 19 00 8D [06:58:53]Write to MH i2c: 01 00 00 A4 19 BD [06:58:53]Write i2c OK [06:58:53]MH_I2C_Read... [06:58:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 B0 04 47 00 1D 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 18 85 02 00 F4 03 04 00 3A 6F 94 66 B6 04 01 00 00 E1 24 48 F3 D9 97 56 0D [06:58:53]CommunicateWithHost err = 0 [06:58:53]CheckOFDResponse [06:58:53]1017 (14) - 77093643461234 [06:58:53]1041 (16) - 0000000000874718 [06:58:53]1040 (4) - 165144 [06:58:53]1012 (4) - 15.07.2024 00:37 [06:58:53]1206 (1) - 0 [06:58:53]OFD Sender: Remove packet 165144 [06:58:53]ProducePacketName [06:58:53]name=ofd_packets/00165144 [06:58:53]NVStorageDeleteData [06:58:54]*** Cut start [06:58:54]*** Partial cut [06:58:54]*** CUTSNS_PIN = 1 [06:58:54]OFD Sender: No OFD packet to send [06:58:54]*** CUTSNS_PIN = 0 [06:58:54]*** Brake cut motor [06:58:54]Read from MH i2c: 01 [06:58:54]MH_I2C_Read... [06:58:54]*** Stop cut motor [06:58:54]*** Cut end [06:58:54]Read from MH i2c: 01 07 00 [06:58:54]MH_I2C_Read... [06:58:54]Read from MH i2c: 01 07 00 A4 19 00 00 00 00 00 FF 0F D2 [06:58:54]process_action close_receipt done [06:58:54]requested_data is exist [06:58:54]produce_requested_data [06:58:54]requested_item fm.sn is exist - process it [06:58:54]wFMCommunicate request_size=4 [06:58:54]MH_SAM_APDU [06:58:54]CAPDU: 80 11 00 00 [06:58:54]Write to MH i2c: E2 08 00 A5 19 80 11 00 00 00 00 00 00 38 [06:58:54]Write i2c OK [06:58:54]MH_I2C_Read... [06:58:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:58:54]Read from MH i2c: E2 [06:58:54]MH_I2C_Read... [06:58:54]Read from MH i2c: E2 17 00 [06:58:54]MH_I2C_Read... [06:58:54]Read from MH i2c: E2 17 00 A5 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8E [06:58:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [06:58:54]wFMCommunicate OK [06:58:54]requested_item fd.num is exist - process it [06:58:54]SAM_PROTO_GetFieldsCounters [06:58:54]wFMCommunicate request_size=4 [06:58:54]MH_SAM_APDU [06:58:54]CAPDU: 80 13 00 00 [06:58:54]Write to MH i2c: E2 08 00 A6 19 80 13 00 00 00 00 00 00 3B [06:58:54]Write i2c OK [06:58:54]MH_I2C_Read... [06:58:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:58:54]Read from MH i2c: E2 [06:58:54]MH_I2C_Read... [06:58:54]Read from MH i2c: E2 62 00 [06:58:54]MH_I2C_Read... [06:58:54]Read from MH i2c: E2 62 00 A6 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 18 85 02 00 0E 04 04 00 C0 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 F5 [06:58:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 18 85 02 00 0E 04 04 00 C0 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 [06:58:54]wFMCommunicate OK [06:58:54]SAM_PROTO_GetFieldsCounters done [06:58:54]requested_item shift.num is exist - process it [06:58:54]requested_item shift.opened is exist - process it [06:58:54]req_shift_opened [06:58:54]FM_GetShiftState [06:58:54]SAM_PROTO_GetShiftState [06:58:54]wFMCommunicate request_size=4 [06:58:54]MH_SAM_APDU [06:58:54]CAPDU: 80 13 01 00 [06:58:54]Write to MH i2c: E2 08 00 A7 19 80 13 01 00 00 00 00 00 3D [06:58:54]Write i2c OK [06:58:54]MH_I2C_Read... [06:58:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:58:54]Read from MH i2c: E2 [06:58:54]MH_I2C_Read... [06:58:54]Read from MH i2c: E2 0E 00 [06:58:54]MH_I2C_Read... [06:58:54]Read from MH i2c: E2 0E 00 A7 19 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 16 [06:58:54]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [06:58:54]wFMCommunicate OK [06:58:54]SAM_PROTO_GetShiftState done [06:58:54]FM_GetShiftState done [06:58:54]req_shift_opened done [06:58:54]requested_item shift.open_date is exist - process it [06:58:54]req_shift_open_date [06:58:54]req_shift_open_date done [06:58:54]produce_requested_data done [06:58:54]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165144,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [06:58:54]process_action_free close_receipt [06:58:54]json_value_free [06:58:54]json_value_free done [06:58:54]process_json_proto returns [06:58:54]Send response to host [06:58:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165144,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [06:58:54]free response buf [06:58:54]execute_script done [06:58:54]execute_script returns [06:58:54]free content buf [06:58:54]Sock 9.Close socket [06:58:54]Sock 9.Thread stoped [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:17]accept exits with 7 [06:59:17]New connection [06:59:17]New thread 3066928484 created [06:59:17]Thread 3066785124 joined [06:59:17]Waiting for new connection... [06:59:17] Sock 7.Parse request [06:59:17]Sock 7.Check first char [06:59:17]Sock 7.First char is OK [06:59:17]request: POST /json_proto HTTP/1.0 [06:59:17]Method: POST [06:59:17]URL: /json_proto [06:59:17]Method is POST - this is cgi request [06:59:17]url: /json_proto [06:59:17]query_string will be loaded in cgi processing [06:59:17]execute_cgi json_proto POST (null) [06:59:17]execute_cgi path=json_proto method=POST [06:59:17]POST find Content-Length [06:59:17]Host: 172.17.56.4:8080 [06:59:17]Content-Length: 677 [06:59:17]Content-Type: application/json [06:59:17] [06:59:17]POST finish read [06:59:17]Found Content-Length = 677 [06:59:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:59:17]execute_script... [06:59:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:59:17]POST & json_proto [06:59:17]process_json_proto [06:59:17]json parsed OK: [06:59:17]protocol is kg_v1.0 [06:59:17]action value=close_receipt [06:59:17]process_action close_receipt [06:59:17]cmd_close_receipt [06:59:17]MH_GetDate [06:59:17]Write to MH i2c: F0 00 00 A8 19 B0 [06:59:17]Write i2c OK [06:59:17]MH_I2C_Read... [06:59:17]Read from MH i2c: F0 [06:59:17]MH_I2C_Read... [06:59:17]Read from MH i2c: F0 09 00 [06:59:17]MH_I2C_Read... [06:59:17]Read from MH i2c: F0 09 00 A8 19 00 C9 C8 94 66 C9 DC B2 64 FF [06:59:17]GetLastDocTimeStamp 1721026735 [06:59:17]current date 1721026761 [06:59:17]FM_GetShiftState [06:59:17]SAM_PROTO_GetShiftState [06:59:17]wFMCommunicate request_size=4 [06:59:17]MH_SAM_APDU [06:59:17]CAPDU: 80 13 01 00 [06:59:17]Write to MH i2c: E2 08 00 A9 19 80 13 01 00 00 00 00 00 3F [06:59:17]Write i2c OK [06:59:17]MH_I2C_Read... [06:59:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:59:17]Read from MH i2c: E2 [06:59:17]MH_I2C_Read... [06:59:17]Read from MH i2c: E2 0E 00 [06:59:17]MH_I2C_Read... [06:59:17]Read from MH i2c: E2 0E 00 A9 19 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 18 [06:59:17]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [06:59:17]wFMCommunicate OK [06:59:17]SAM_PROTO_GetShiftState done [06:59:17]FM_GetShiftState done [06:59:17]opened in 1721003876 [06:59:17]opened+sec_in_day 1721090276 [06:59:17]quantity*price = 30004 [06:59:17]sum+1 = 30006 [06:59:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 18 15.07.2024 06:59 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165145 ФПД: 196006149719932 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T065921&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165145&fm=196006149719932&tin=02508201610067®Number=0000000000090829&sum=30000 [06:59:18]StoreToDocumentArchive [06:59:18]shift 448 fd 165145 [06:59:18]save to /storage/0448/doc_00165145 [06:59:18]save last doc name /storage/0448/doc_00165145 to /storage/kkm_last_doc_name [06:59:18]save OK [06:59:18]Clear old archive folders... [06:59:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:59:18]tlvbuf is 013B4840 [06:59:18]SAM_PROTO_ClearQueue [06:59:18]wFMCommunicate request_size=4 [06:59:18]MH_SAM_APDU [06:59:18]CAPDU: 80 09 00 00 [06:59:18]Write to MH i2c: E2 08 00 B6 19 80 09 00 00 00 00 00 00 41 [06:59:18]Write i2c OK [06:59:18]MH_I2C_Read... [06:59:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:59:18]Read from MH i2c: E2 [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: E2 03 00 [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: E2 03 00 B6 19 00 90 00 43 [06:59:18]RAPDU: 90 00 [06:59:18]wFMCommunicate OK [06:59:18]SAM_PROTO_ClearQueue done [06:59:18]KKMCreateOFDPacket [06:59:18]OFDProtocolAddRootSTLVToBuf [06:59:18]FM_MakeSignedData [06:59:18]FM_MakeSignedData [06:59:18]SAM_PROTO_SignData [06:59:18]wFMCommunicate request_size=4 [06:59:18]MH_SAM_APDU [06:59:18]CAPDU: 80 0D 01 02 [06:59:18]Write to MH i2c: E2 08 00 B7 19 80 0D 01 02 00 00 00 00 49 [06:59:18]Write i2c OK [06:59:18]MH_I2C_Read... [06:59:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:59:18]Read from MH i2c: E2 [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: E2 03 00 [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: E2 03 00 B7 19 00 90 00 44 [06:59:18]RAPDU: 90 00 [06:59:18]wFMCommunicate OK [06:59:18]wFMCommunicate request_size=255 [06:59:18]MH_SAM_APDU [06:59:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 C9 C8 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 19 85 02 00 35 04 06 00 B2 [06:59:18]Write to MH i2c: E2 02 01 B8 19 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 C9 C8 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 19 85 02 00 35 04 06 00 B2 00 00 33 [06:59:18]Write i2c OK [06:59:18]MH_I2C_Read... [06:59:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:59:18]Read from MH i2c: E2 [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: E2 03 00 [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: E2 03 00 B8 19 00 90 00 45 [06:59:18]RAPDU: 90 00 [06:59:18]wFMCommunicate OK [06:59:18]wFMCommunicate request_size=10 [06:59:18]MH_SAM_APDU [06:59:18]CAPDU: 80 0D 02 02 05 44 3C ED 87 7C [06:59:18]Write to MH i2c: E2 0D 00 B9 19 80 0D 02 02 05 00 44 3C ED 87 7C 00 00 C6 [06:59:18]Write i2c OK [06:59:18]MH_I2C_Read... [06:59:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:59:18]Read from MH i2c: E2 [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: E2 03 00 [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: E2 03 00 B9 19 00 90 00 46 [06:59:18]RAPDU: 90 00 [06:59:18]wFMCommunicate OK [06:59:18]wFMCommunicate request_size=4 [06:59:18]MH_SAM_APDU [06:59:18]CAPDU: 80 0D 03 02 [06:59:18]Write to MH i2c: E2 08 00 BA 19 80 0D 03 02 00 00 00 00 4E [06:59:18]Write i2c OK [06:59:18]MH_I2C_Read... [06:59:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:59:18]Read from MH i2c: E2 [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: E2 0B 00 [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: E2 0B 00 BA 19 00 EB CD E0 D1 38 49 79 08 90 00 BA [06:59:18]RAPDU: EB CD E0 D1 38 49 79 08 90 00 [06:59:18]wFMCommunicate OK [06:59:18]SAM_PROTO_SignData done [06:59:18]FM_MakeSignedData done [06:59:18]CreateOFDProtocolMessage [06:59:18]wFMCommunicate request_size=4 [06:59:18]MH_SAM_APDU [06:59:18]CAPDU: 80 11 00 00 [06:59:18]Write to MH i2c: E2 08 00 BB 19 80 11 00 00 00 00 00 00 4E [06:59:18]Write i2c OK [06:59:18]MH_I2C_Read... [06:59:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:59:18]Read from MH i2c: E2 [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: E2 17 00 [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: E2 17 00 BB 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A4 [06:59:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [06:59:18]wFMCommunicate OK [06:59:18]CreateOFDProtocolMessage done [06:59:18]OFDSenderStorePacket 165145 [06:59:18]StoreOFDPacket docnum=165145 [06:59:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 69 1E 07 01 F0 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 C9 C8 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 19 85 02 00 35 04 06 00 B2 44 3C ED 87 7C EB CD E0 D1 38 49 79 08 [06:59:18]CheckFolder [06:59:18]dirname=/storage/ofd_packets [06:59:18]CheckFolder done [06:59:18]ProducePacketName [06:59:18]name=ofd_packets/00165145 [06:59:18]NVStorageSaveData ofd_packets/00165145 [06:59:18]File name is /storage/ofd_packets/00165145 [06:59:18]Write 301 bytes [06:59:18]NVStorageSaveData done [06:59:18]OFDSenderStorePacket done [06:59:18]KKMCreateOFDPacket done [06:59:18]NVStorageSaveData kkm_last_timestamp [06:59:18]File name is /storage/kkm_last_timestamp [06:59:18]Write 4 bytes [06:59:18]NVStorageSaveData done [06:59:18]ExternCall_PrintAddStr [06:59:18]wPrintStart [06:59:18]Write to MH i2c: 01 00 00 BC 19 D5 [06:59:18]Write i2c OK [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: 01 [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: 01 07 00 [06:59:18]MH_I2C_Read... [06:59:18]Read from MH i2c: 01 07 00 BC 19 00 00 00 00 00 FF 0F EA [06:59:18]RasterBufferAndPrint [06:59:18]line Счет N : (1)459246 [06:59:18]line ИНН: 02508201610067 [06:59:18]line Контрольно-Кассовый Чек [06:59:18]line ПРОДАЖА [06:59:18]line ТРК (МРК, ГНК) : 12 [06:59:18]line Товар: 2710124130 [06:59:18]line Аи-92-К-5 [06:59:18]line 4.560 * 65.80 [06:59:18]line = 300.05 [06:59:18]line НДС 12% НСП 1% [06:59:18]line > о реализуемом товаре [06:59:18]line ОКРУГЛЕНИЕ: -0.05 [06:59:18]line ИТОГО: 300.00 [06:59:18]line Внесено: 300.00 [06:59:18]line СДАЧА: 0.00 [06:59:18]line НСП 1% : 2.65 [06:59:18]line НДС 12% : 31.86 [06:59:18]line Наличными: 300.00 [06:59:18]line Безнал.: 0.00 [06:59:18]line Место: АЗС № 72 "Партнер Нефть" [06:59:18]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [06:59:18]line СНО: Общий режим [06:59:18]line Чек 18 15.07.2024 06:59 [06:59:18]line Смена: 448 ФФД: 1.0 [06:59:18]line ЗНМ: 0300000160 [06:59:18]line РНМ: 0000000000090829 [06:59:18]line Версия ККМ: 001 [06:59:18]line ФМ: 0000000000874718 [06:59:18]line ФД: 165145 [06:59:18]line ФПД: 196006149719932 [06:59:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T065921&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165145&fm=196006149719932&tin=02508201610067®Number=0000000000090829&sum=30000 [06:59:19]written 0, free lines is 4095 [06:59:19]OFD Sender: Processing packet 165145 [packets to send 106, broken 105] [06:59:19]ProducePacketName [06:59:19]name=ofd_packets/00165145 [06:59:19]OFD Sender: To server: pG, [06:59:19]CommunicateWithHost lk.salyk.kg:30040 [06:59:19]ConnectInit lk.salyk.kg [06:59:19]Connected sock=10 [06:59:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 69 1E 07 01 F0 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 C9 C8 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 19 85 02 00 35 04 06 00 B2 44 3C ED 87 7C EB CD E0 D1 38 49 79 08 [06:59:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 BA D6 47 00 B1 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 37 31 38 10 04 04 00 19 85 02 00 F4 03 04 00 54 6F 94 66 B6 04 01 00 00 E9 4E 01 83 16 D6 A4 45 [06:59:19]CommunicateWithHost err = 0 [06:59:19]CheckOFDResponse [06:59:19]1017 (14) - 77093643461234 [06:59:19]1041 (16) - 0000000000874718 [06:59:19]1040 (4) - 165145 [06:59:19]1012 (4) - 15.07.2024 00:37 [06:59:19]1206 (1) - 0 [06:59:19]OFD Sender: Remove packet 165145 [06:59:19]ProducePacketName [06:59:19]name=ofd_packets/00165145 [06:59:19]NVStorageDeleteData [06:59:19]Write to MH i2c: 01 00 00 E6 19 FF [06:59:19]Write i2c OK [06:59:19]MH_I2C_Read... [06:59:19]Read from MH i2c: 01 [06:59:19]MH_I2C_Read... [06:59:19]Read from MH i2c: 01 07 00 [06:59:19]MH_I2C_Read... [06:59:19]Read from MH i2c: 01 07 00 E6 19 00 00 00 00 00 F3 0C 05 [06:59:19]RasterBufferAndPrint [06:59:19]line [06:59:19]line [06:59:19]line [06:59:19]line [06:59:19]line [06:59:19]written 0, free lines is 3321 [06:59:19]MH_Cut [06:59:19]Write to MH i2c: D1 01 00 ED 19 01 D8 [06:59:19]Write i2c OK [06:59:19]MH_I2C_Read... [06:59:19]Read from MH i2c: D1 [06:59:19]MH_I2C_Read... [06:59:19]Read from MH i2c: D1 01 00 [06:59:19]MH_I2C_Read... [06:59:19]Read from MH i2c: D1 01 00 ED 19 00 D7 [06:59:19]Write to MH i2c: 01 00 00 EE 19 07 [06:59:19]Write i2c OK [06:59:19]MH_I2C_Read... [06:59:19]OFD Sender: No OFD packet to send [06:59:20]*** Cut start [06:59:20]*** Partial cut [06:59:20]*** CUTSNS_PIN = 1 [06:59:20]*** CUTSNS_PIN = 0 [06:59:20]*** Brake cut motor [06:59:20]Read from MH i2c: 01 [06:59:20]MH_I2C_Read... [06:59:20]*** Stop cut motor [06:59:20]*** Cut end [06:59:20]Read from MH i2c: 01 07 00 [06:59:20]MH_I2C_Read... [06:59:20]Read from MH i2c: 01 07 00 EE 19 00 00 00 00 00 FF 0F 1C [06:59:20]process_action close_receipt done [06:59:20]requested_data is exist [06:59:20]produce_requested_data [06:59:20]requested_item fm.sn is exist - process it [06:59:20]wFMCommunicate request_size=4 [06:59:20]MH_SAM_APDU [06:59:20]CAPDU: 80 11 00 00 [06:59:20]Write to MH i2c: E2 08 00 EF 19 80 11 00 00 00 00 00 00 82 [06:59:20]Write i2c OK [06:59:20]MH_I2C_Read... [06:59:20]Read from MH i2c: E2 [06:59:20]MH_I2C_Read... [06:59:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:59:20]Read from MH i2c: E2 17 00 [06:59:20]MH_I2C_Read... [06:59:20]Read from MH i2c: E2 17 00 EF 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D8 [06:59:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [06:59:20]wFMCommunicate OK [06:59:20]requested_item fd.num is exist - process it [06:59:20]SAM_PROTO_GetFieldsCounters [06:59:20]wFMCommunicate request_size=4 [06:59:20]MH_SAM_APDU [06:59:20]CAPDU: 80 13 00 00 [06:59:20]Write to MH i2c: E2 08 00 F0 19 80 13 00 00 00 00 00 00 85 [06:59:20]Write i2c OK [06:59:20]MH_I2C_Read... [06:59:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:59:21]Read from MH i2c: E2 [06:59:21]MH_I2C_Read... [06:59:21]Read from MH i2c: E2 62 00 [06:59:21]MH_I2C_Read... [06:59:21]Read from MH i2c: E2 62 00 F0 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 19 85 02 00 0E 04 04 00 C0 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 43 [06:59:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 19 85 02 00 0E 04 04 00 C0 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 [06:59:21]wFMCommunicate OK [06:59:21]SAM_PROTO_GetFieldsCounters done [06:59:21]requested_item shift.num is exist - process it [06:59:21]requested_item shift.opened is exist - process it [06:59:21]req_shift_opened [06:59:21]FM_GetShiftState [06:59:21]SAM_PROTO_GetShiftState [06:59:21]wFMCommunicate request_size=4 [06:59:21]MH_SAM_APDU [06:59:21]CAPDU: 80 13 01 00 [06:59:21]Write to MH i2c: E2 08 00 F1 19 80 13 01 00 00 00 00 00 87 [06:59:21]Write i2c OK [06:59:21]MH_I2C_Read... [06:59:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:59:21]Read from MH i2c: E2 [06:59:21]MH_I2C_Read... [06:59:21]Read from MH i2c: E2 0E 00 [06:59:21]MH_I2C_Read... [06:59:21]Read from MH i2c: E2 0E 00 F1 19 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 60 [06:59:21]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [06:59:21]wFMCommunicate OK [06:59:21]SAM_PROTO_GetShiftState done [06:59:21]FM_GetShiftState done [06:59:21]req_shift_opened done [06:59:21]requested_item shift.open_date is exist - process it [06:59:21]req_shift_open_date [06:59:21]req_shift_open_date done [06:59:21]produce_requested_data done [06:59:21]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165145,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [06:59:21]process_action_free close_receipt [06:59:21]json_value_free [06:59:21]json_value_free done [06:59:21]process_json_proto returns [06:59:21]Send response to host [06:59:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165145,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [06:59:21]free response buf [06:59:21]execute_script done [06:59:21]execute_script returns [06:59:21]free content buf [06:59:21]Sock 7.Close socket [06:59:21]Sock 7.Thread stoped [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:25]OFD Sender: No OFD packet to send [07:00:30]OFD Sender: No OFD packet to send [07:00:35]OFD Sender: No OFD packet to send [07:00:40]OFD Sender: No OFD packet to send [07:00:45]OFD Sender: No OFD packet to send [07:00:50]OFD Sender: No OFD packet to send [07:00:55]OFD Sender: No OFD packet to send [07:01:00]OFD Sender: No OFD packet to send [07:01:05]OFD Sender: No OFD packet to send [07:01:10]OFD Sender: No OFD packet to send [07:01:15]OFD Sender: No OFD packet to send [07:01:20]OFD Sender: No OFD packet to send [07:01:25]OFD Sender: No OFD packet to send [07:01:30]OFD Sender: No OFD packet to send [07:01:35]OFD Sender: No OFD packet to send [07:01:40]OFD Sender: No OFD packet to send [07:01:45]OFD Sender: No OFD packet to send [07:01:50]OFD Sender: No OFD packet to send [07:01:55]OFD Sender: No OFD packet to send [07:02:00]OFD Sender: No OFD packet to send [07:02:05]OFD Sender: No OFD packet to send [07:02:10]OFD Sender: No OFD packet to send [07:02:15]OFD Sender: No OFD packet to send [07:02:20]OFD Sender: No OFD packet to send [07:02:25]OFD Sender: No OFD packet to send [07:02:30]OFD Sender: No OFD packet to send [07:02:35]OFD Sender: No OFD packet to send [07:02:40]OFD Sender: No OFD packet to send [07:02:45]OFD Sender: No OFD packet to send [07:02:50]OFD Sender: No OFD packet to send [07:02:55]OFD Sender: No OFD packet to send [07:03:00]OFD Sender: No OFD packet to send [07:03:05]OFD Sender: No OFD packet to send [07:03:10]OFD Sender: No OFD packet to send [07:03:15]OFD Sender: No OFD packet to send [07:03:20]OFD Sender: No OFD packet to send [07:03:25]OFD Sender: No OFD packet to send [07:03:30]OFD Sender: No OFD packet to send [07:03:35]OFD Sender: No OFD packet to send [07:03:40]OFD Sender: No OFD packet to send [07:03:45]OFD Sender: No OFD packet to send [07:03:50]OFD Sender: No OFD packet to send [07:03:55]OFD Sender: No OFD packet to send [07:04:00]OFD Sender: No OFD packet to send [07:04:05]OFD Sender: No OFD packet to send [07:04:10]OFD Sender: No OFD packet to send [07:04:15]OFD Sender: No OFD packet to send [07:04:20]OFD Sender: No OFD packet to send [07:04:25]OFD Sender: No OFD packet to send [07:04:30]OFD Sender: No OFD packet to send [07:04:35]OFD Sender: No OFD packet to send [07:04:40]OFD Sender: No OFD packet to send [07:04:45]OFD Sender: No OFD packet to send [07:04:50]OFD Sender: No OFD packet to send [07:04:55]OFD Sender: No OFD packet to send [07:05:00]OFD Sender: No OFD packet to send [07:05:05]OFD Sender: No OFD packet to send [07:05:10]OFD Sender: No OFD packet to send [07:05:15]OFD Sender: No OFD packet to send [07:05:20]OFD Sender: No OFD packet to send [07:05:25]OFD Sender: No OFD packet to send [07:05:30]OFD Sender: No OFD packet to send [07:05:35]OFD Sender: No OFD packet to send [07:05:40]OFD Sender: No OFD packet to send [07:05:45]OFD Sender: No OFD packet to send [07:05:50]OFD Sender: No OFD packet to send [07:05:55]OFD Sender: No OFD packet to send [07:06:00]OFD Sender: No OFD packet to send [07:06:05]OFD Sender: No OFD packet to send [07:06:10]OFD Sender: No OFD packet to send [07:06:15]OFD Sender: No OFD packet to send [07:06:20]OFD Sender: No OFD packet to send [07:06:25]OFD Sender: No OFD packet to send [07:06:30]OFD Sender: No OFD packet to send [07:06:35]OFD Sender: No OFD packet to send [07:06:40]OFD Sender: No OFD packet to send [07:06:45]OFD Sender: No OFD packet to send [07:06:50]OFD Sender: No OFD packet to send [07:06:55]OFD Sender: No OFD packet to send [07:07:00]OFD Sender: No OFD packet to send [07:07:05]OFD Sender: No OFD packet to send [07:07:10]OFD Sender: No OFD packet to send [07:07:15]OFD Sender: No OFD packet to send [07:07:20]OFD Sender: No OFD packet to send [07:07:25]OFD Sender: No OFD packet to send [07:07:30]OFD Sender: No OFD packet to send [07:07:35]OFD Sender: No OFD packet to send [07:07:40]OFD Sender: No OFD packet to send [07:07:45]OFD Sender: No OFD packet to send [07:07:50]OFD Sender: No OFD packet to send [07:07:55]OFD Sender: No OFD packet to send [07:08:00]OFD Sender: No OFD packet to send [07:08:05]OFD Sender: No OFD packet to send [07:08:10]OFD Sender: No OFD packet to send [07:08:15]OFD Sender: No OFD packet to send [07:08:20]OFD Sender: No OFD packet to send [07:08:25]OFD Sender: No OFD packet to send [07:08:30]OFD Sender: No OFD packet to send [07:08:35]OFD Sender: No OFD packet to send [07:08:40]OFD Sender: No OFD packet to send [07:08:45]OFD Sender: No OFD packet to send [07:08:50]OFD Sender: No OFD packet to send [07:08:55]OFD Sender: No OFD packet to send [07:09:00]OFD Sender: No OFD packet to send [07:09:05]OFD Sender: No OFD packet to send [07:09:10]OFD Sender: No OFD packet to send [07:09:15]OFD Sender: No OFD packet to send [07:09:20]OFD Sender: No OFD packet to send [07:09:25]OFD Sender: No OFD packet to send [07:09:30]OFD Sender: No OFD packet to send [07:09:35]OFD Sender: No OFD packet to send [07:09:40]OFD Sender: No OFD packet to send [07:09:45]OFD Sender: No OFD packet to send [07:09:50]OFD Sender: No OFD packet to send [07:09:55]OFD Sender: No OFD packet to send [07:10:00]OFD Sender: No OFD packet to send [07:10:05]OFD Sender: No OFD packet to send [07:10:10]OFD Sender: No OFD packet to send [07:10:15]OFD Sender: No OFD packet to send [07:10:20]OFD Sender: No OFD packet to send [07:10:25]OFD Sender: No OFD packet to send [07:10:30]OFD Sender: No OFD packet to send [07:10:35]OFD Sender: No OFD packet to send [07:10:40]OFD Sender: No OFD packet to send [07:10:45]OFD Sender: No OFD packet to send [07:10:50]OFD Sender: No OFD packet to send [07:10:55]OFD Sender: No OFD packet to send [07:11:00]OFD Sender: No OFD packet to send [07:11:05]OFD Sender: No OFD packet to send [07:11:10]OFD Sender: No OFD packet to send [07:11:15]OFD Sender: No OFD packet to send [07:11:20]OFD Sender: No OFD packet to send [07:11:25]OFD Sender: No OFD packet to send [07:11:30]OFD Sender: No OFD packet to send [07:11:35]OFD Sender: No OFD packet to send [07:11:40]OFD Sender: No OFD packet to send [07:11:45]OFD Sender: No OFD packet to send [07:11:50]OFD Sender: No OFD packet to send [07:11:55]OFD Sender: No OFD packet to send [07:12:00]OFD Sender: No OFD packet to send [07:12:05]OFD Sender: No OFD packet to send [07:12:10]OFD Sender: No OFD packet to send [07:12:15]OFD Sender: No OFD packet to send [07:12:20]OFD Sender: No OFD packet to send [07:12:25]OFD Sender: No OFD packet to send [07:12:30]OFD Sender: No OFD packet to send [07:12:35]OFD Sender: No OFD packet to send [07:12:40]OFD Sender: No OFD packet to send [07:12:45]OFD Sender: No OFD packet to send [07:12:50]OFD Sender: No OFD packet to send [07:12:55]OFD Sender: No OFD packet to send [07:13:00]OFD Sender: No OFD packet to send [07:13:05]OFD Sender: No OFD packet to send [07:13:10]OFD Sender: No OFD packet to send [07:13:15]OFD Sender: No OFD packet to send [07:13:20]OFD Sender: No OFD packet to send [07:13:25]OFD Sender: No OFD packet to send [07:13:30]OFD Sender: No OFD packet to send [07:13:35]OFD Sender: No OFD packet to send [07:13:40]OFD Sender: No OFD packet to send [07:13:45]OFD Sender: No OFD packet to send [07:13:50]OFD Sender: No OFD packet to send [07:13:55]OFD Sender: No OFD packet to send [07:14:00]OFD Sender: No OFD packet to send [07:14:05]OFD Sender: No OFD packet to send [07:14:10]OFD Sender: No OFD packet to send [07:14:15]OFD Sender: No OFD packet to send [07:14:20]OFD Sender: No OFD packet to send [07:14:25]OFD Sender: No OFD packet to send [07:14:30]OFD Sender: No OFD packet to send [07:14:35]OFD Sender: No OFD packet to send [07:14:40]OFD Sender: No OFD packet to send [07:14:45]OFD Sender: No OFD packet to send [07:14:50]OFD Sender: No OFD packet to send [07:14:55]OFD Sender: No OFD packet to send [07:15:00]OFD Sender: No OFD packet to send [07:15:05]OFD Sender: No OFD packet to send [07:15:10]OFD Sender: No OFD packet to send [07:15:15]OFD Sender: No OFD packet to send [07:15:20]OFD Sender: No OFD packet to send [07:15:25]OFD Sender: No OFD packet to send [07:15:30]OFD Sender: No OFD packet to send [07:15:36]OFD Sender: No OFD packet to send [07:15:41]OFD Sender: No OFD packet to send [07:15:46]OFD Sender: No OFD packet to send [07:15:51]OFD Sender: No OFD packet to send [07:15:56]OFD Sender: No OFD packet to send [07:16:01]OFD Sender: No OFD packet to send [07:16:06]OFD Sender: No OFD packet to send [07:16:11]OFD Sender: No OFD packet to send [07:16:16]OFD Sender: No OFD packet to send [07:16:21]OFD Sender: No OFD packet to send [07:16:26]OFD Sender: No OFD packet to send [07:16:31]OFD Sender: No OFD packet to send [07:16:36]OFD Sender: No OFD packet to send [07:16:41]OFD Sender: No OFD packet to send [07:16:46]OFD Sender: No OFD packet to send [07:16:51]OFD Sender: No OFD packet to send [07:16:56]OFD Sender: No OFD packet to send [07:17:01]OFD Sender: No OFD packet to send [07:17:06]OFD Sender: No OFD packet to send [07:17:11]OFD Sender: No OFD packet to send [07:17:16]OFD Sender: No OFD packet to send [07:17:21]OFD Sender: No OFD packet to send [07:17:26]OFD Sender: No OFD packet to send [07:17:31]OFD Sender: No OFD packet to send [07:17:36]OFD Sender: No OFD packet to send [07:17:41]OFD Sender: No OFD packet to send [07:17:46]OFD Sender: No OFD packet to send [07:17:51]OFD Sender: No OFD packet to send [07:17:56]OFD Sender: No OFD packet to send [07:18:01]OFD Sender: No OFD packet to send [07:18:06]OFD Sender: No OFD packet to send [07:18:11]OFD Sender: No OFD packet to send [07:18:16]OFD Sender: No OFD packet to send [07:18:21]OFD Sender: No OFD packet to send [07:18:26]OFD Sender: No OFD packet to send [07:18:31]OFD Sender: No OFD packet to send [07:18:36]OFD Sender: No OFD packet to send [07:18:41]OFD Sender: No OFD packet to send [07:18:46]OFD Sender: No OFD packet to send [07:18:51]OFD Sender: No OFD packet to send [07:18:56]OFD Sender: No OFD packet to send [07:19:01]OFD Sender: No OFD packet to send [07:19:06]OFD Sender: No OFD packet to send [07:19:11]OFD Sender: No OFD packet to send [07:19:16]OFD Sender: No OFD packet to send [07:19:21]OFD Sender: No OFD packet to send [07:19:26]OFD Sender: No OFD packet to send [07:19:31]OFD Sender: No OFD packet to send [07:19:36]OFD Sender: No OFD packet to send [07:19:41]OFD Sender: No OFD packet to send [07:19:46]OFD Sender: No OFD packet to send [07:19:51]OFD Sender: No OFD packet to send [07:19:56]OFD Sender: No OFD packet to send [07:20:01]OFD Sender: No OFD packet to send [07:20:06]OFD Sender: No OFD packet to send [07:20:11]OFD Sender: No OFD packet to send [07:20:16]OFD Sender: No OFD packet to send [07:20:21]OFD Sender: No OFD packet to send [07:20:26]OFD Sender: No OFD packet to send [07:20:31]OFD Sender: No OFD packet to send [07:20:36]OFD Sender: No OFD packet to send [07:20:41]OFD Sender: No OFD packet to send [07:20:46]OFD Sender: No OFD packet to send [07:20:51]OFD Sender: No OFD packet to send [07:20:56]OFD Sender: No OFD packet to send [07:21:01]OFD Sender: No OFD packet to send [07:21:06]OFD Sender: No OFD packet to send [07:21:11]OFD Sender: No OFD packet to send [07:21:16]OFD Sender: No OFD packet to send [07:21:21]OFD Sender: No OFD packet to send [07:21:26]OFD Sender: No OFD packet to send [07:21:31]OFD Sender: No OFD packet to send [07:21:36]OFD Sender: No OFD packet to send [07:21:41]OFD Sender: No OFD packet to send [07:21:46]OFD Sender: No OFD packet to send [07:21:51]OFD Sender: No OFD packet to send [07:21:56]OFD Sender: No OFD packet to send [07:22:01]OFD Sender: No OFD packet to send [07:22:06]OFD Sender: No OFD packet to send [07:22:11]OFD Sender: No OFD packet to send [07:22:16]OFD Sender: No OFD packet to send [07:22:21]OFD Sender: No OFD packet to send [07:22:26]OFD Sender: No OFD packet to send [07:22:31]OFD Sender: No OFD packet to send [07:22:36]OFD Sender: No OFD packet to send [07:22:41]OFD Sender: No OFD packet to send [07:22:46]OFD Sender: No OFD packet to send [07:22:51]OFD Sender: No OFD packet to send [07:22:56]OFD Sender: No OFD packet to send [07:23:01]OFD Sender: No OFD packet to send [07:23:06]OFD Sender: No OFD packet to send [07:23:11]OFD Sender: No OFD packet to send [07:23:16]OFD Sender: No OFD packet to send [07:23:21]OFD Sender: No OFD packet to send [07:23:26]OFD Sender: No OFD packet to send [07:23:31]OFD Sender: No OFD packet to send [07:23:36]OFD Sender: No OFD packet to send [07:23:41]OFD Sender: No OFD packet to send [07:23:46]OFD Sender: No OFD packet to send [07:23:51]OFD Sender: No OFD packet to send [07:23:56]OFD Sender: No OFD packet to send [07:24:01]OFD Sender: No OFD packet to send [07:24:06]OFD Sender: No OFD packet to send [07:24:11]OFD Sender: No OFD packet to send [07:24:16]OFD Sender: No OFD packet to send [07:24:21]OFD Sender: No OFD packet to send [07:24:26]OFD Sender: No OFD packet to send [07:24:31]OFD Sender: No OFD packet to send [07:24:36]OFD Sender: No OFD packet to send [07:24:41]OFD Sender: No OFD packet to send [07:24:46]OFD Sender: No OFD packet to send [07:24:51]OFD Sender: No OFD packet to send [07:24:56]OFD Sender: No OFD packet to send [07:25:01]OFD Sender: No OFD packet to send [07:25:06]OFD Sender: No OFD packet to send [07:25:11]OFD Sender: No OFD packet to send [07:25:16]OFD Sender: No OFD packet to send [07:25:21]OFD Sender: No OFD packet to send [07:25:26]OFD Sender: No OFD packet to send [07:25:31]OFD Sender: No OFD packet to send [07:25:36]OFD Sender: No OFD packet to send [07:25:41]OFD Sender: No OFD packet to send [07:25:46]OFD Sender: No OFD packet to send [07:25:51]OFD Sender: No OFD packet to send [07:25:56]OFD Sender: No OFD packet to send [07:26:01]OFD Sender: No OFD packet to send [07:26:06]OFD Sender: No OFD packet to send [07:26:11]OFD Sender: No OFD packet to send [07:26:16]OFD Sender: No OFD packet to send [07:26:21]OFD Sender: No OFD packet to send [07:26:26]OFD Sender: No OFD packet to send [07:26:31]OFD Sender: No OFD packet to send [07:26:36]OFD Sender: No OFD packet to send [07:26:41]OFD Sender: No OFD packet to send [07:26:46]OFD Sender: No OFD packet to send [07:26:51]OFD Sender: No OFD packet to send [07:26:56]OFD Sender: No OFD packet to send [07:27:01]OFD Sender: No OFD packet to send [07:27:06]OFD Sender: No OFD packet to send [07:27:11]OFD Sender: No OFD packet to send [07:27:16]OFD Sender: No OFD packet to send [07:27:21]OFD Sender: No OFD packet to send [07:27:26]OFD Sender: No OFD packet to send [07:27:31]OFD Sender: No OFD packet to send [07:27:36]OFD Sender: No OFD packet to send [07:27:41]OFD Sender: No OFD packet to send [07:27:46]OFD Sender: No OFD packet to send [07:27:51]OFD Sender: No OFD packet to send [07:27:56]OFD Sender: No OFD packet to send [07:28:01]OFD Sender: No OFD packet to send [07:28:06]OFD Sender: No OFD packet to send [07:28:11]OFD Sender: No OFD packet to send [07:28:16]OFD Sender: No OFD packet to send [07:28:21]OFD Sender: No OFD packet to send [07:28:26]OFD Sender: No OFD packet to send [07:28:31]OFD Sender: No OFD packet to send [07:28:36]OFD Sender: No OFD packet to send [07:28:41]OFD Sender: No OFD packet to send [07:28:46]OFD Sender: No OFD packet to send [07:28:51]OFD Sender: No OFD packet to send [07:28:56]OFD Sender: No OFD packet to send [07:29:01]OFD Sender: No OFD packet to send [07:29:06]OFD Sender: No OFD packet to send [07:29:11]OFD Sender: No OFD packet to send [07:29:16]OFD Sender: No OFD packet to send [07:29:21]OFD Sender: No OFD packet to send [07:29:26]OFD Sender: No OFD packet to send [07:29:31]OFD Sender: No OFD packet to send [07:29:36]OFD Sender: No OFD packet to send [07:29:41]OFD Sender: No OFD packet to send [07:29:46]OFD Sender: No OFD packet to send [07:29:51]OFD Sender: No OFD packet to send [07:29:56]OFD Sender: No OFD packet to send [07:30:01]OFD Sender: No OFD packet to send [07:30:06]OFD Sender: No OFD packet to send [07:30:11]OFD Sender: No OFD packet to send [07:30:16]OFD Sender: No OFD packet to send [07:30:21]OFD Sender: No OFD packet to send [07:30:26]OFD Sender: No OFD packet to send [07:30:31]OFD Sender: No OFD packet to send [07:30:36]OFD Sender: No OFD packet to send [07:30:42]OFD Sender: No OFD packet to send [07:30:47]OFD Sender: No OFD packet to send [07:30:52]OFD Sender: No OFD packet to send [07:30:57]OFD Sender: No OFD packet to send [07:31:02]OFD Sender: No OFD packet to send [07:31:07]OFD Sender: No OFD packet to send [07:31:12]OFD Sender: No OFD packet to send [07:31:17]OFD Sender: No OFD packet to send [07:31:22]OFD Sender: No OFD packet to send [07:31:27]OFD Sender: No OFD packet to send [07:31:32]OFD Sender: No OFD packet to send [07:31:37]OFD Sender: No OFD packet to send [07:31:42]OFD Sender: No OFD packet to send [07:31:47]OFD Sender: No OFD packet to send [07:31:52]OFD Sender: No OFD packet to send [07:31:57]OFD Sender: No OFD packet to send [07:32:02]OFD Sender: No OFD packet to send [07:32:07]OFD Sender: No OFD packet to send [07:32:12]OFD Sender: No OFD packet to send [07:32:17]OFD Sender: No OFD packet to send [07:32:22]OFD Sender: No OFD packet to send [07:32:27]OFD Sender: No OFD packet to send [07:32:32]OFD Sender: No OFD packet to send [07:32:37]OFD Sender: No OFD packet to send [07:32:39]accept exits with 9 [07:32:39]New connection [07:32:39]New thread 3066785124 created [07:32:39]Thread 3066928484 joined [07:32:39]Waiting for new connection... [07:32:39] Sock 9.Parse request [07:32:39]Sock 9.Check first char [07:32:39]Sock 9.First char is OK [07:32:39]request: POST /json_proto HTTP/1.0 [07:32:39]Method: POST [07:32:39]URL: /json_proto [07:32:39]Method is POST - this is cgi request [07:32:39]url: /json_proto [07:32:39]query_string will be loaded in cgi processing [07:32:39]execute_cgi json_proto POST (null) [07:32:39]execute_cgi path=json_proto method=POST [07:32:39]POST find Content-Length [07:32:39]Host: 172.17.56.4:8080 [07:32:39]Content-Length: 677 [07:32:39]Content-Type: application/json [07:32:39] [07:32:39]POST finish read [07:32:39]Found Content-Length = 677 [07:32:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459247", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:32:39]execute_script... [07:32: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)459247", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:32:39]POST & json_proto [07:32:39]process_json_proto [07:32:39]json parsed OK: [07:32:39]protocol is kg_v1.0 [07:32:39]action value=close_receipt [07:32:39]process_action close_receipt [07:32:39]cmd_close_receipt [07:32:39]MH_GetDate [07:32:39]Write to MH i2c: F0 00 00 F2 19 FA [07:32:39]Write i2c OK [07:32:39]MH_I2C_Read... [07:32:39]Read from MH i2c: F0 [07:32:39]MH_I2C_Read... [07:32:39]Read from MH i2c: F0 09 00 [07:32:39]MH_I2C_Read... [07:32:39]Read from MH i2c: F0 09 00 F2 19 00 9B D0 94 66 C9 DC B2 64 23 [07:32:39]GetLastDocTimeStamp 1721026761 [07:32:39]current date 1721028763 [07:32:39]FM_GetShiftState [07:32:39]SAM_PROTO_GetShiftState [07:32:39]wFMCommunicate request_size=4 [07:32:39]MH_SAM_APDU [07:32:39]CAPDU: 80 13 01 00 [07:32:39]Write to MH i2c: E2 08 00 F3 19 80 13 01 00 00 00 00 00 89 [07:32:39]Write i2c OK [07:32:39]MH_I2C_Read... [07:32:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:32:39]Read from MH i2c: E2 [07:32:39]MH_I2C_Read... [07:32:39]Read from MH i2c: E2 0E 00 [07:32:39]MH_I2C_Read... [07:32:39]Read from MH i2c: E2 0E 00 F3 19 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 62 [07:32:39]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [07:32:39]wFMCommunicate OK [07:32:39]SAM_PROTO_GetShiftState done [07:32:39]FM_GetShiftState done [07:32:39]opened in 1721003876 [07:32:39]opened+sec_in_day 1721090276 [07:32:39]quantity*price = 30004 [07:32:39]sum+1 = 30006 [07:32:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 19 15.07.2024 07:32 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165146 ФПД: 81805932155948 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T073243&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165146&fm=81805932155948&tin=02508201610067®Number=0000000000090829&sum=30000 [07:32:40]StoreToDocumentArchive [07:32:40]shift 448 fd 165146 [07:32:40]save to /storage/0448/doc_00165146 [07:32:40]save last doc name /storage/0448/doc_00165146 to /storage/kkm_last_doc_name [07:32:40]save OK [07:32:40]Clear old archive folders... [07:32:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:32:40]tlvbuf is 013C02E0 [07:32:40]SAM_PROTO_ClearQueue [07:32:40]wFMCommunicate request_size=4 [07:32:40]MH_SAM_APDU [07:32:40]CAPDU: 80 09 00 00 [07:32:40]Write to MH i2c: E2 08 00 00 1A 80 09 00 00 00 00 00 00 8C [07:32:40]Write i2c OK [07:32:40]MH_I2C_Read... [07:32:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:32:40]Read from MH i2c: E2 [07:32:40]MH_I2C_Read... [07:32:40]Read from MH i2c: E2 03 00 [07:32:40]MH_I2C_Read... [07:32:40]Read from MH i2c: E2 03 00 00 1A 00 90 00 8E [07:32:40]RAPDU: 90 00 [07:32:40]wFMCommunicate OK [07:32:40]SAM_PROTO_ClearQueue done [07:32:40]KKMCreateOFDPacket [07:32:40]OFDProtocolAddRootSTLVToBuf [07:32:40]FM_MakeSignedData [07:32:40]FM_MakeSignedData [07:32:40]SAM_PROTO_SignData [07:32:40]wFMCommunicate request_size=4 [07:32:40]MH_SAM_APDU [07:32:40]CAPDU: 80 0D 01 02 [07:32:40]Write to MH i2c: E2 08 00 01 1A 80 0D 01 02 00 00 00 00 94 [07:32:40]Write i2c OK [07:32:40]MH_I2C_Read... [07:32:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:32:40]Read from MH i2c: E2 [07:32:40]MH_I2C_Read... [07:32:40]Read from MH i2c: E2 03 00 [07:32:40]MH_I2C_Read... [07:32:40]Read from MH i2c: E2 03 00 01 1A 00 90 00 8F [07:32:40]RAPDU: 90 00 [07:32:40]wFMCommunicate OK [07:32:40]wFMCommunicate request_size=255 [07:32:40]MH_SAM_APDU [07:32:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 9B D0 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1A 85 02 00 35 04 06 00 4A [07:32:40]Write to MH i2c: E2 02 01 02 1A 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 9B D0 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1A 85 02 00 35 04 06 00 4A 00 00 F2 [07:32:40]Write i2c OK [07:32:40]MH_I2C_Read... [07:32:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:32:40]Read from MH i2c: E2 [07:32:40]MH_I2C_Read... [07:32:40]Read from MH i2c: E2 03 00 [07:32:40]MH_I2C_Read... [07:32:40]Read from MH i2c: E2 03 00 02 1A 00 90 00 90 [07:32:40]RAPDU: 90 00 [07:32:40]wFMCommunicate OK [07:32:40]wFMCommunicate request_size=10 [07:32:40]MH_SAM_APDU [07:32:40]CAPDU: 80 0D 02 02 05 66 ED 86 D4 2C [07:32:40]Write to MH i2c: E2 0D 00 03 1A 80 0D 02 02 05 00 66 ED 86 D4 2C 00 00 7A [07:32:40]Write i2c OK [07:32:40]MH_I2C_Read... [07:32:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:32:40]Read from MH i2c: E2 [07:32:40]MH_I2C_Read... [07:32:40]Read from MH i2c: E2 03 00 [07:32:40]MH_I2C_Read... [07:32:40]Read from MH i2c: E2 03 00 03 1A 00 90 00 91 [07:32:40]RAPDU: 90 00 [07:32:40]wFMCommunicate OK [07:32:40]wFMCommunicate request_size=4 [07:32:40]MH_SAM_APDU [07:32:40]CAPDU: 80 0D 03 02 [07:32:40]Write to MH i2c: E2 08 00 04 1A 80 0D 03 02 00 00 00 00 99 [07:32:40]Write i2c OK [07:32:40]MH_I2C_Read... [07:32:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:32:40]Read from MH i2c: E2 [07:32:40]MH_I2C_Read... [07:32:40]Read from MH i2c: E2 0B 00 [07:32:40]MH_I2C_Read... [07:32:40]Read from MH i2c: E2 0B 00 04 1A 00 DA 34 7A F2 26 3B 65 1B 90 00 F5 [07:32:40]RAPDU: DA 34 7A F2 26 3B 65 1B 90 00 [07:32:40]wFMCommunicate OK [07:32:40]SAM_PROTO_SignData done [07:32:40]FM_MakeSignedData done [07:32:40]CreateOFDProtocolMessage [07:32:40]wFMCommunicate request_size=4 [07:32:40]MH_SAM_APDU [07:32:40]CAPDU: 80 11 00 00 [07:32:40]Write to MH i2c: E2 08 00 05 1A 80 11 00 00 00 00 00 00 99 [07:32:40]Write i2c OK [07:32:40]MH_I2C_Read... [07:32:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:32:40]Read from MH i2c: E2 [07:32:40]MH_I2C_Read... [07:32:40]Read from MH i2c: E2 17 00 [07:32:40]MH_I2C_Read... [07:32:40]Read from MH i2c: E2 17 00 05 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 EF [07:32:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [07:32:40]wFMCommunicate OK [07:32:40]CreateOFDProtocolMessage done [07:32:40]OFDSenderStorePacket 165146 [07:32:40]StoreOFDPacket docnum=165146 [07:32:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 BD DD 07 01 85 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 9B D0 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1A 85 02 00 35 04 06 00 4A 66 ED 86 D4 2C DA 34 7A F2 26 3B 65 1B [07:32:40]CheckFolder [07:32:40]dirname=/storage/ofd_packets [07:32:40]CheckFolder done [07:32:40]ProducePacketName [07:32:40]name=ofd_packets/00165146 [07:32:40]NVStorageSaveData ofd_packets/00165146 [07:32:40]File name is /storage/ofd_packets/00165146 [07:32:40]Write 301 bytes [07:32:40]NVStorageSaveData done [07:32:40]OFDSenderStorePacket done [07:32:40]KKMCreateOFDPacket done [07:32:40]NVStorageSaveData kkm_last_timestamp [07:32:40]File name is /storage/kkm_last_timestamp [07:32:40]Write 4 bytes [07:32:40]NVStorageSaveData done [07:32:40]ExternCall_PrintAddStr [07:32:40]wPrintStart [07:32:40]Write to MH i2c: 01 00 00 06 1A 20 [07:32:40]Write i2c OK [07:32:40]MH_I2C_Read... [07:32:40]Read from MH i2c: 01 [07:32:40]MH_I2C_Read... [07:32:40]Read from MH i2c: 01 07 00 [07:32:40]MH_I2C_Read... [07:32:40]Read from MH i2c: 01 07 00 06 1A 00 00 00 00 00 FF 0F 35 [07:32:40]RasterBufferAndPrint [07:32:40]line Счет N : (1)459247 [07:32:40]line ИНН: 02508201610067 [07:32:40]line Контрольно-Кассовый Чек [07:32:40]line ПРОДАЖА [07:32:40]line ТРК (МРК, ГНК) : 12 [07:32:40]line Товар: 2710124130 [07:32:40]line Аи-92-К-5 [07:32:40]line 4.560 * 65.80 [07:32:40]line = 300.05 [07:32:40]line НДС 12% НСП 1% [07:32:40]line > о реализуемом товаре [07:32:40]line ОКРУГЛЕНИЕ: -0.05 [07:32:40]line ИТОГО: 300.00 [07:32:40]line Внесено: 300.00 [07:32:40]line СДАЧА: 0.00 [07:32:40]line НСП 1% : 2.65 [07:32:40]line НДС 12% : 31.86 [07:32:40]line Наличными: 300.00 [07:32:40]line Безнал.: 0.00 [07:32:40]line Место: АЗС № 72 "Партнер Нефть" [07:32:40]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [07:32:40]line СНО: Общий режим [07:32:40]line Чек 19 15.07.2024 07:32 [07:32:40]line Смена: 448 ФФД: 1.0 [07:32:40]line ЗНМ: 0300000160 [07:32:40]line РНМ: 0000000000090829 [07:32:40]line Версия ККМ: 001 [07:32:40]line ФМ: 0000000000874718 [07:32:40]line ФД: 165146 [07:32:40]line ФПД: 81805932155948 [07:32:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T073243&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165146&fm=81805932155948&tin=02508201610067®Number=0000000000090829&sum=30000 [07:32:41]OFD Sender: Processing packet 165146 [packets to send 106, broken 105] [07:32:41]ProducePacketName [07:32:41]name=ofd_packets/00165146 [07:32:41]OFD Sender: To server: pG, [07:32:41]CommunicateWithHost lk.salyk.kg:30040 [07:32:41]ConnectInit lk.salyk.kg [07:32:41]written 0, free lines is 4095 [07:32:41]Connected sock=10 [07:32:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 BD DD 07 01 85 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 9B D0 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1A 85 02 00 35 04 06 00 4A 66 ED 86 D4 2C DA 34 7A F2 26 3B 65 1B [07:32:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 DD 39 47 00 76 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 37 31 38 10 04 04 00 1A 85 02 00 F4 03 04 00 26 77 94 66 B6 04 01 00 00 9A 9B F6 66 B4 71 19 03 [07:32:41]CommunicateWithHost err = 0 [07:32:41]CheckOFDResponse [07:32:41]1017 (14) - 77093643461234 [07:32:41]1041 (16) - 0000000000874718 [07:32:41]1040 (4) - 165146 [07:32:41]1012 (4) - 15.07.2024 01:11 [07:32:41]1206 (1) - 0 [07:32:41]OFD Sender: Remove packet 165146 [07:32:41]ProducePacketName [07:32:41]name=ofd_packets/00165146 [07:32:41]NVStorageDeleteData [07:32:41]Write to MH i2c: 01 00 00 30 1A 4A [07:32:41]Write i2c OK [07:32:41]MH_I2C_Read... [07:32:41]Read from MH i2c: 01 [07:32:41]MH_I2C_Read... [07:32:41]Read from MH i2c: 01 07 00 [07:32:41]MH_I2C_Read... [07:32:41]Read from MH i2c: 01 07 00 30 1A 00 00 00 00 00 EC 0C 49 [07:32:41]RasterBufferAndPrint [07:32:41]line [07:32:41]line [07:32:41]line [07:32:41]line [07:32:41]line [07:32:41]written 0, free lines is 3315 [07:32:41]MH_Cut [07:32:41]Write to MH i2c: D1 01 00 37 1A 01 23 [07:32:41]Write i2c OK [07:32:41]MH_I2C_Read... [07:32:41]Read from MH i2c: D1 [07:32:41]MH_I2C_Read... [07:32:41]Read from MH i2c: D1 01 00 [07:32:41]MH_I2C_Read... [07:32:41]Read from MH i2c: D1 01 00 37 1A 00 22 [07:32:41]Write to MH i2c: 01 00 00 38 1A 52 [07:32:41]Write i2c OK [07:32:41]MH_I2C_Read... [07:32:42]OFD Sender: No OFD packet to send [07:32:42]*** Cut start [07:32:42]*** Partial cut [07:32:42]*** CUTSNS_PIN = 1 [07:32:42]*** CUTSNS_PIN = 0 [07:32:42]*** Brake cut motor [07:32:42]Read from MH i2c: 01 [07:32:42]MH_I2C_Read... [07:32:42]*** Stop cut motor [07:32:42]*** Cut end [07:32:42]Read from MH i2c: 01 07 00 [07:32:42]MH_I2C_Read... [07:32:42]Read from MH i2c: 01 07 00 38 1A 00 00 00 00 00 FF 0F 67 [07:32:42]process_action close_receipt done [07:32:42]requested_data is exist [07:32:42]produce_requested_data [07:32:42]requested_item fm.sn is exist - process it [07:32:42]wFMCommunicate request_size=4 [07:32:42]MH_SAM_APDU [07:32:42]CAPDU: 80 11 00 00 [07:32:42]Write to MH i2c: E2 08 00 39 1A 80 11 00 00 00 00 00 00 CD [07:32:42]Write i2c OK [07:32:42]MH_I2C_Read... [07:32:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:32:43]Read from MH i2c: E2 [07:32:43]MH_I2C_Read... [07:32:43]Read from MH i2c: E2 17 00 [07:32:43]MH_I2C_Read... [07:32:43]Read from MH i2c: E2 17 00 39 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 23 [07:32:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [07:32:43]wFMCommunicate OK [07:32:43]requested_item fd.num is exist - process it [07:32:43]SAM_PROTO_GetFieldsCounters [07:32:43]wFMCommunicate request_size=4 [07:32:43]MH_SAM_APDU [07:32:43]CAPDU: 80 13 00 00 [07:32:43]Write to MH i2c: E2 08 00 3A 1A 80 13 00 00 00 00 00 00 D0 [07:32:43]Write i2c OK [07:32:43]MH_I2C_Read... [07:32:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:32:43]Read from MH i2c: E2 [07:32:43]MH_I2C_Read... [07:32:43]Read from MH i2c: E2 62 00 [07:32:43]MH_I2C_Read... [07:32:43]Read from MH i2c: E2 62 00 3A 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1A 85 02 00 0E 04 04 00 C0 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 92 [07:32:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1A 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:32:43]wFMCommunicate OK [07:32:43]SAM_PROTO_GetFieldsCounters done [07:32:43]requested_item shift.num is exist - process it [07:32:43]requested_item shift.opened is exist - process it [07:32:43]req_shift_opened [07:32:43]FM_GetShiftState [07:32:43]SAM_PROTO_GetShiftState [07:32:43]wFMCommunicate request_size=4 [07:32:43]MH_SAM_APDU [07:32:43]CAPDU: 80 13 01 00 [07:32:43]Write to MH i2c: E2 08 00 3B 1A 80 13 01 00 00 00 00 00 D2 [07:32:43]Write i2c OK [07:32:43]MH_I2C_Read... [07:32:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:32:43]Read from MH i2c: E2 [07:32:43]MH_I2C_Read... [07:32:43]Read from MH i2c: E2 0E 00 [07:32:43]MH_I2C_Read... [07:32:43]Read from MH i2c: E2 0E 00 3B 1A 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 AB [07:32:43]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [07:32:43]wFMCommunicate OK [07:32:43]SAM_PROTO_GetShiftState done [07:32:43]FM_GetShiftState done [07:32:43]req_shift_opened done [07:32:43]requested_item shift.open_date is exist - process it [07:32:43]req_shift_open_date [07:32:43]req_shift_open_date done [07:32:43]produce_requested_data done [07:32:43]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165146,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [07:32:43]process_action_free close_receipt [07:32:43]json_value_free [07:32:43]json_value_free done [07:32:43]process_json_proto returns [07:32:43]Send response to host [07:32:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165146,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [07:32:43]free response buf [07:32:43]execute_script done [07:32:43]execute_script returns [07:32:43]free content buf [07:32:43]Sock 9.Close socket [07:32:43]Sock 9.Thread stoped [07:32:47]OFD Sender: No OFD packet to send [07:32:52]OFD Sender: No OFD packet to send [07:32:57]OFD Sender: No OFD packet to send [07:33:02]OFD Sender: No OFD packet to send [07:33:07]OFD Sender: No OFD packet to send [07:33:12]OFD Sender: No OFD packet to send [07:33:17]OFD Sender: No OFD packet to send [07:33:22]OFD Sender: No OFD packet to send [07:33:27]OFD Sender: No OFD packet to send [07:33:32]OFD Sender: No OFD packet to send [07:33:37]OFD Sender: No OFD packet to send [07:33:42]OFD Sender: No OFD packet to send [07:33:47]OFD Sender: No OFD packet to send [07:33:52]OFD Sender: No OFD packet to send [07:33:57]OFD Sender: No OFD packet to send [07:34:02]OFD Sender: No OFD packet to send [07:34:07]OFD Sender: No OFD packet to send [07:34:12]OFD Sender: No OFD packet to send [07:34:17]OFD Sender: No OFD packet to send [07:34:22]OFD Sender: No OFD packet to send [07:34:27]OFD Sender: No OFD packet to send [07:34:32]OFD Sender: No OFD packet to send [07:34:37]OFD Sender: No OFD packet to send [07:34:42]OFD Sender: No OFD packet to send [07:34:47]OFD Sender: No OFD packet to send [07:34:52]OFD Sender: No OFD packet to send [07:34:57]OFD Sender: No OFD packet to send [07:35:02]OFD Sender: No OFD packet to send [07:35:07]OFD Sender: No OFD packet to send [07:35:12]OFD Sender: No OFD packet to send [07:35:17]OFD Sender: No OFD packet to send [07:35:22]OFD Sender: No OFD packet to send [07:35:27]OFD Sender: No OFD packet to send [07:35:32]OFD Sender: No OFD packet to send [07:35:37]OFD Sender: No OFD packet to send [07:35:42]OFD Sender: No OFD packet to send [07:35:47]OFD Sender: No OFD packet to send [07:35:52]OFD Sender: No OFD packet to send [07:35:57]OFD Sender: No OFD packet to send [07:36:02]OFD Sender: No OFD packet to send [07:36:07]OFD Sender: No OFD packet to send [07:36:12]OFD Sender: No OFD packet to send [07:36:17]OFD Sender: No OFD packet to send [07:36:22]OFD Sender: No OFD packet to send [07:36:27]OFD Sender: No OFD packet to send [07:36:32]OFD Sender: No OFD packet to send [07:36:37]OFD Sender: No OFD packet to send [07:36:42]OFD Sender: No OFD packet to send [07:36:47]OFD Sender: No OFD packet to send [07:36:52]OFD Sender: No OFD packet to send [07:36:57]OFD Sender: No OFD packet to send [07:37:02]OFD Sender: No OFD packet to send [07:37:07]OFD Sender: No OFD packet to send [07:37:12]OFD Sender: No OFD packet to send [07:37:17]OFD Sender: No OFD packet to send [07:37:22]OFD Sender: No OFD packet to send [07:37:27]OFD Sender: No OFD packet to send [07:37:32]OFD Sender: No OFD packet to send [07:37:37]OFD Sender: No OFD packet to send [07:37:42]OFD Sender: No OFD packet to send [07:37:47]OFD Sender: No OFD packet to send [07:37:52]OFD Sender: No OFD packet to send [07:37:57]OFD Sender: No OFD packet to send [07:38:02]OFD Sender: No OFD packet to send [07:38:07]OFD Sender: No OFD packet to send [07:38:12]OFD Sender: No OFD packet to send [07:38:17]OFD Sender: No OFD packet to send [07:38:22]OFD Sender: No OFD packet to send [07:38:27]OFD Sender: No OFD packet to send [07:38:32]OFD Sender: No OFD packet to send [07:38:37]OFD Sender: No OFD packet to send [07:38:42]OFD Sender: No OFD packet to send [07:38:47]OFD Sender: No OFD packet to send [07:38:52]OFD Sender: No OFD packet to send [07:38:57]OFD Sender: No OFD packet to send [07:39:02]OFD Sender: No OFD packet to send [07:39:07]OFD Sender: No OFD packet to send [07:39:12]OFD Sender: No OFD packet to send [07:39:17]OFD Sender: No OFD packet to send [07:39:22]OFD Sender: No OFD packet to send [07:39:27]OFD Sender: No OFD packet to send [07:39:32]OFD Sender: No OFD packet to send [07:39:37]OFD Sender: No OFD packet to send [07:39:42]OFD Sender: No OFD packet to send [07:39:47]OFD Sender: No OFD packet to send [07:39:52]OFD Sender: No OFD packet to send [07:39:57]OFD Sender: No OFD packet to send [07:40:02]OFD Sender: No OFD packet to send [07:40:07]OFD Sender: No OFD packet to send [07:40:12]OFD Sender: No OFD packet to send [07:40:17]OFD Sender: No OFD packet to send [07:40:22]OFD Sender: No OFD packet to send [07:40:27]OFD Sender: No OFD packet to send [07:40:32]OFD Sender: No OFD packet to send [07:40:37]OFD Sender: No OFD packet to send [07:40:42]OFD Sender: No OFD packet to send [07:40:47]OFD Sender: No OFD packet to send [07:40:52]OFD Sender: No OFD packet to send [07:40:57]OFD Sender: No OFD packet to send [07:41:02]OFD Sender: No OFD packet to send [07:41:07]OFD Sender: No OFD packet to send [07:41:12]OFD Sender: No OFD packet to send [07:41:17]OFD Sender: No OFD packet to send [07:41:22]OFD Sender: No OFD packet to send [07:41:27]OFD Sender: No OFD packet to send [07:41:32]OFD Sender: No OFD packet to send [07:41:37]OFD Sender: No OFD packet to send [07:41:42]OFD Sender: No OFD packet to send [07:41:47]OFD Sender: No OFD packet to send [07:41:52]OFD Sender: No OFD packet to send [07:41:57]OFD Sender: No OFD packet to send [07:42:02]OFD Sender: No OFD packet to send [07:42:07]OFD Sender: No OFD packet to send [07:42:12]OFD Sender: No OFD packet to send [07:42:17]OFD Sender: No OFD packet to send [07:42:22]OFD Sender: No OFD packet to send [07:42:27]OFD Sender: No OFD packet to send [07:42:32]OFD Sender: No OFD packet to send [07:42:37]OFD Sender: No OFD packet to send [07:42:42]OFD Sender: No OFD packet to send [07:42:47]OFD Sender: No OFD packet to send [07:42:52]OFD Sender: No OFD packet to send [07:42:57]OFD Sender: No OFD packet to send [07:43:02]OFD Sender: No OFD packet to send [07:43:07]OFD Sender: No OFD packet to send [07:43:12]OFD Sender: No OFD packet to send [07:43:17]OFD Sender: No OFD packet to send [07:43:22]OFD Sender: No OFD packet to send [07:43:27]OFD Sender: No OFD packet to send [07:43:32]OFD Sender: No OFD packet to send [07:43:37]OFD Sender: No OFD packet to send [07:43:42]OFD Sender: No OFD packet to send [07:43:47]accept exits with 7 [07:43:47]New connection [07:43:47]New thread 3066928484 created [07:43:47]Thread 3066785124 joined [07:43:47]Waiting for new connection... [07:43:47] Sock 7.Parse request [07:43:47]Sock 7.Check first char [07:43:47]Sock 7.First char is OK [07:43:47]request: POST /json_proto HTTP/1.0 [07:43:47]Method: POST [07:43:47]URL: /json_proto [07:43:47]Method is POST - this is cgi request [07:43:47]url: /json_proto [07:43:47]query_string will be loaded in cgi processing [07:43:47]execute_cgi json_proto POST (null) [07:43:47]execute_cgi path=json_proto method=POST [07:43:47]POST find Content-Length [07:43:47]Host: 172.17.56.4:8080 [07:43:47]Content-Length: 677 [07:43:47]Content-Type: application/json [07:43:47] [07:43:47]POST finish read [07:43:47]Found Content-Length = 677 [07:43:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459248", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.500, "sum" : 230.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 230.00, "total" : 230.00, "payments": [ { "type": 0, "sum" : 230.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:43:47]execute_script... [07:43:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459248", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.500, "sum" : 230.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 230.00, "total" : 230.00, "payments": [ { "type": 0, "sum" : 230.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:43:47]POST & json_proto [07:43:47]process_json_proto [07:43:47]json parsed OK: [07:43:47]protocol is kg_v1.0 [07:43:47]action value=close_receipt [07:43:47]process_action close_receipt [07:43:47]cmd_close_receipt [07:43:47]MH_GetDate [07:43:47]Write to MH i2c: F0 00 00 3C 1A 45 [07:43:47]Write i2c OK [07:43:47]MH_I2C_Read... [07:43:47]Read from MH i2c: F0 [07:43:47]MH_I2C_Read... [07:43:47]Read from MH i2c: F0 09 00 [07:43:47]MH_I2C_Read... [07:43:47]Read from MH i2c: F0 09 00 3C 1A 00 37 D3 94 66 C9 DC B2 64 0D [07:43:47]GetLastDocTimeStamp 1721028763 [07:43:47]current date 1721029431 [07:43:47]FM_GetShiftState [07:43:47]SAM_PROTO_GetShiftState [07:43:47]wFMCommunicate request_size=4 [07:43:47]MH_SAM_APDU [07:43:47]CAPDU: 80 13 01 00 [07:43:47]Write to MH i2c: E2 08 00 3D 1A 80 13 01 00 00 00 00 00 D4 [07:43:47]Write i2c OK [07:43:47]MH_I2C_Read... [07:43:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:43:47]Read from MH i2c: E2 [07:43:47]MH_I2C_Read... [07:43:47]Read from MH i2c: E2 0E 00 [07:43:47]MH_I2C_Read... [07:43:47]Read from MH i2c: E2 0E 00 3D 1A 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 AD [07:43:47]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [07:43:47]wFMCommunicate OK [07:43:47]SAM_PROTO_GetShiftState done [07:43:47]FM_GetShiftState done [07:43:47]opened in 1721003876 [07:43:47]opened+sec_in_day 1721090276 [07:43:47]quantity*price = 23030 [07:43:47]sum+1 = 23031 [07:43:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 230.00 Внесено: 230.00 СДАЧА: 0.00 НСП 1% : 2.04 НДС 12% : 24.46 Наличными: 230.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 20 15.07.2024 07:43 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165147 ФПД: 203178377116897 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T074351&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165147&fm=203178377116897&tin=02508201610067®Number=0000000000090829&sum=23000 [07:43:48]StoreToDocumentArchive [07:43:48]shift 448 fd 165147 [07:43:48]save to /storage/0448/doc_00165147 [07:43:48]save last doc name /storage/0448/doc_00165147 to /storage/kkm_last_doc_name [07:43:48]save OK [07:43:48]Clear old archive folders... [07:43:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:43:48]tlvbuf is 013658F0 [07:43:48]SAM_PROTO_ClearQueue [07:43:48]wFMCommunicate request_size=4 [07:43:48]MH_SAM_APDU [07:43:48]CAPDU: 80 09 00 00 [07:43:48]Write to MH i2c: E2 08 00 4A 1A 80 09 00 00 00 00 00 00 D6 [07:43:48]Write i2c OK [07:43:48]MH_I2C_Read... [07:43:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:43:48]Read from MH i2c: E2 [07:43:48]MH_I2C_Read... [07:43:48]Read from MH i2c: E2 03 00 [07:43:48]MH_I2C_Read... [07:43:48]Read from MH i2c: E2 03 00 4A 1A 00 90 00 D8 [07:43:48]RAPDU: 90 00 [07:43:48]wFMCommunicate OK [07:43:48]SAM_PROTO_ClearQueue done [07:43:48]KKMCreateOFDPacket [07:43:48]OFDProtocolAddRootSTLVToBuf [07:43:48]FM_MakeSignedData [07:43:48]FM_MakeSignedData [07:43:48]SAM_PROTO_SignData [07:43:48]wFMCommunicate request_size=4 [07:43:48]MH_SAM_APDU [07:43:48]CAPDU: 80 0D 01 02 [07:43:48]Write to MH i2c: E2 08 00 4B 1A 80 0D 01 02 00 00 00 00 DE [07:43:48]Write i2c OK [07:43:48]MH_I2C_Read... [07:43:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:43:48]Read from MH i2c: E2 [07:43:48]MH_I2C_Read... [07:43:48]Read from MH i2c: E2 03 00 [07:43:48]MH_I2C_Read... [07:43:48]Read from MH i2c: E2 03 00 4B 1A 00 90 00 D9 [07:43:48]RAPDU: 90 00 [07:43:48]wFMCommunicate OK [07:43:48]wFMCommunicate request_size=255 [07:43:48]MH_SAM_APDU [07:43:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AC 0D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 F6 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 37 D3 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1B 85 02 00 35 04 06 00 B8 [07:43:48]Write to MH i2c: E2 02 01 4C 1A 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 AC 0D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 F6 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 37 D3 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1B 85 02 00 35 04 06 00 B8 00 00 BB [07:43:48]Write i2c OK [07:43:48]MH_I2C_Read... [07:43:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:43:48]Read from MH i2c: E2 [07:43:48]MH_I2C_Read... [07:43:48]Read from MH i2c: E2 03 00 [07:43:48]MH_I2C_Read... [07:43:48]Read from MH i2c: E2 03 00 4C 1A 00 90 00 DA [07:43:48]RAPDU: 90 00 [07:43:48]wFMCommunicate OK [07:43:48]wFMCommunicate request_size=10 [07:43:48]MH_SAM_APDU [07:43:48]CAPDU: 80 0D 02 02 05 CA 26 FE 7C E1 [07:43:48]Write to MH i2c: E2 0D 00 4D 1A 80 0D 02 02 05 00 CA 26 FE 7C E1 00 00 36 [07:43:48]Write i2c OK [07:43:48]MH_I2C_Read... [07:43:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:43:48]Read from MH i2c: E2 [07:43:48]MH_I2C_Read... [07:43:48]Read from MH i2c: E2 03 00 [07:43:48]MH_I2C_Read... [07:43:48]Read from MH i2c: E2 03 00 4D 1A 00 90 00 DB [07:43:48]RAPDU: 90 00 [07:43:48]wFMCommunicate OK [07:43:48]wFMCommunicate request_size=4 [07:43:48]MH_SAM_APDU [07:43:48]CAPDU: 80 0D 03 02 [07:43:48]Write to MH i2c: E2 08 00 4E 1A 80 0D 03 02 00 00 00 00 E3 [07:43:48]Write i2c OK [07:43:48]MH_I2C_Read... [07:43:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:43:48]Read from MH i2c: E2 [07:43:48]MH_I2C_Read... [07:43:48]Read from MH i2c: E2 0B 00 [07:43:48]MH_I2C_Read... [07:43:48]Read from MH i2c: E2 0B 00 4E 1A 00 01 4D FF A1 64 97 55 C4 90 00 E6 [07:43:48]RAPDU: 01 4D FF A1 64 97 55 C4 90 00 [07:43:48]wFMCommunicate OK [07:43:48]SAM_PROTO_SignData done [07:43:48]FM_MakeSignedData done [07:43:48]CreateOFDProtocolMessage [07:43:48]wFMCommunicate request_size=4 [07:43:48]MH_SAM_APDU [07:43:48]CAPDU: 80 11 00 00 [07:43:48]Write to MH i2c: E2 08 00 4F 1A 80 11 00 00 00 00 00 00 E3 [07:43:49]Write i2c OK [07:43:49]MH_I2C_Read... [07:43:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:43:49]Read from MH i2c: E2 [07:43:49]MH_I2C_Read... [07:43:49]Read from MH i2c: E2 17 00 [07:43:49]MH_I2C_Read... [07:43:49]Read from MH i2c: E2 17 00 4F 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 39 [07:43:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [07:43:49]wFMCommunicate OK [07:43:49]CreateOFDProtocolMessage done [07:43:49]OFDSenderStorePacket 165147 [07:43:49]StoreOFDPacket docnum=165147 [07:43:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 1D 8D 07 01 C3 C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 AC 0D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 F6 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 37 D3 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1B 85 02 00 35 04 06 00 B8 CA 26 FE 7C E1 01 4D FF A1 64 97 55 C4 [07:43:49]CheckFolder [07:43:49]dirname=/storage/ofd_packets [07:43:49]CheckFolder done [07:43:49]ProducePacketName [07:43:49]name=ofd_packets/00165147 [07:43:49]NVStorageSaveData ofd_packets/00165147 [07:43:49]File name is /storage/ofd_packets/00165147 [07:43:49]Write 301 bytes [07:43:49]NVStorageSaveData done [07:43:49]OFDSenderStorePacket done [07:43:49]KKMCreateOFDPacket done [07:43:49]NVStorageSaveData kkm_last_timestamp [07:43:49]File name is /storage/kkm_last_timestamp [07:43:49]Write 4 bytes [07:43:49]NVStorageSaveData done [07:43:49]ExternCall_PrintAddStr [07:43:49]wPrintStart [07:43:49]Write to MH i2c: 01 00 00 50 1A 6A [07:43:49]Write i2c OK [07:43:49]MH_I2C_Read... [07:43:49]Read from MH i2c: 01 [07:43:49]MH_I2C_Read... [07:43:49]Read from MH i2c: 01 07 00 [07:43:49]MH_I2C_Read... [07:43:49]Read from MH i2c: 01 07 00 50 1A 00 00 00 00 00 FF 0F 7F [07:43:49]RasterBufferAndPrint [07:43:49]line Счет N : (1)459248 [07:43:49]line ИНН: 02508201610067 [07:43:49]line Контрольно-Кассовый Чек [07:43:49]line ПРОДАЖА [07:43:49]line ТРК (МРК, ГНК) : 12 [07:43:49]line Товар: 2710124130 [07:43:49]line Аи-92-К-5 [07:43:49]line 3.500 * 65.80 [07:43:49]line = 230.30 [07:43:49]line НДС 12% НСП 1% [07:43:49]line > о реализуемом товаре [07:43:49]line ОКРУГЛЕНИЕ: -0.30 [07:43:49]line ИТОГО: 230.00 [07:43:49]line Внесено: 230.00 [07:43:49]line СДАЧА: 0.00 [07:43:49]line НСП 1% : 2.04 [07:43:49]line НДС 12% : 24.46 [07:43:49]line Наличными: 230.00 [07:43:49]line Безнал.: 0.00 [07:43:49]line Место: АЗС № 72 "Партнер Нефть" [07:43:49]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [07:43:49]line СНО: Общий режим [07:43:49]line Чек 20 15.07.2024 07:43 [07:43:49]line Смена: 448 ФФД: 1.0 [07:43:49]line ЗНМ: 0300000160 [07:43:49]line РНМ: 0000000000090829 [07:43:49]line Версия ККМ: 001 [07:43:49]line ФМ: 0000000000874718 [07:43:49]line ФД: 165147 [07:43:49]line ФПД: 203178377116897 [07:43:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T074351&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165147&fm=203178377116897&tin=02508201610067®Number=0000000000090829&sum=23000 [07:43:49]OFD Sender: Processing packet 165147 [packets to send 106, broken 105] [07:43:49]ProducePacketName [07:43:49]name=ofd_packets/00165147 [07:43:49]OFD Sender: To server: pG, [07:43:49]CommunicateWithHost lk.salyk.kg:30040 [07:43:49]ConnectInit lk.salyk.kg [07:43:49]written 0, free lines is 4095 [07:43:49]Connected sock=10 [07:43:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 1D 8D 07 01 C3 C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 AC 0D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 F6 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 37 D3 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1B 85 02 00 35 04 06 00 B8 CA 26 FE 7C E1 01 4D FF A1 64 97 55 C4 [07:43:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 A3 2D 47 00 47 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1B 85 02 00 F4 03 04 00 C2 79 94 66 B6 04 01 00 00 B4 5C 1E 11 71 19 1F B8 [07:43:49]CommunicateWithHost err = 0 [07:43:49]CheckOFDResponse [07:43:49]1017 (14) - 77093643461234 [07:43:49]1041 (16) - 0000000000874718 [07:43:49]1040 (4) - 165147 [07:43:49]1012 (4) - 15.07.2024 01:22 [07:43:49]1206 (1) - 0 [07:43:49]OFD Sender: Remove packet 165147 [07:43:49]ProducePacketName [07:43:49]name=ofd_packets/00165147 [07:43:49]NVStorageDeleteData [07:43:49]Write to MH i2c: 01 00 00 7A 1A 94 [07:43:49]Write i2c OK [07:43:49]MH_I2C_Read... [07:43:49]Read from MH i2c: 01 [07:43:49]MH_I2C_Read... [07:43:49]Read from MH i2c: 01 07 00 [07:43:49]MH_I2C_Read... [07:43:49]Read from MH i2c: 01 07 00 7A 1A 00 00 00 00 00 FF 0C A6 [07:43:49]RasterBufferAndPrint [07:43:49]line [07:43:49]line [07:43:49]line [07:43:49]line [07:43:49]line [07:43:49]written 0, free lines is 3333 [07:43:49]MH_Cut [07:43:49]Write to MH i2c: D1 01 00 81 1A 01 6D [07:43:49]Write i2c OK [07:43:49]MH_I2C_Read... [07:43:49]Read from MH i2c: D1 [07:43:49]MH_I2C_Read... [07:43:49]Read from MH i2c: D1 01 00 [07:43:49]MH_I2C_Read... [07:43:49]Read from MH i2c: D1 01 00 81 1A 00 6C [07:43:49]Write to MH i2c: 01 00 00 82 1A 9C [07:43:49]Write i2c OK [07:43:49]MH_I2C_Read... [07:43:50]OFD Sender: No OFD packet to send [07:43:50]*** Cut start [07:43:50]*** Partial cut [07:43:50]*** CUTSNS_PIN = 1 [07:43:50]*** CUTSNS_PIN = 0 [07:43:50]*** Brake cut motor [07:43:51]Read from MH i2c: 01 [07:43:51]MH_I2C_Read... [07:43:51]*** Stop cut motor [07:43:51]*** Cut end [07:43:51]Read from MH i2c: 01 07 00 [07:43:51]MH_I2C_Read... [07:43:51]Read from MH i2c: 01 07 00 82 1A 00 00 00 00 00 FF 0F B1 [07:43:51]process_action close_receipt done [07:43:51]requested_data is exist [07:43:51]produce_requested_data [07:43:51]requested_item fm.sn is exist - process it [07:43:51]wFMCommunicate request_size=4 [07:43:51]MH_SAM_APDU [07:43:51]CAPDU: 80 11 00 00 [07:43:51]Write to MH i2c: E2 08 00 83 1A 80 11 00 00 00 00 00 00 17 [07:43:51]Write i2c OK [07:43:51]MH_I2C_Read... [07:43:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:43:51]Read from MH i2c: E2 [07:43:51]MH_I2C_Read... [07:43:51]Read from MH i2c: E2 17 00 [07:43:51]MH_I2C_Read... [07:43:51]Read from MH i2c: E2 17 00 83 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6D [07:43:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [07:43:51]wFMCommunicate OK [07:43:51]requested_item fd.num is exist - process it [07:43:51]SAM_PROTO_GetFieldsCounters [07:43:51]wFMCommunicate request_size=4 [07:43:51]MH_SAM_APDU [07:43:51]CAPDU: 80 13 00 00 [07:43:51]Write to MH i2c: E2 08 00 84 1A 80 13 00 00 00 00 00 00 1A [07:43:51]Write i2c OK [07:43:51]MH_I2C_Read... [07:43:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:43:51]Read from MH i2c: E2 [07:43:51]MH_I2C_Read... [07:43:51]Read from MH i2c: E2 62 00 [07:43:51]MH_I2C_Read... [07:43:51]Read from MH i2c: E2 62 00 84 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1B 85 02 00 0E 04 04 00 C0 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 E0 [07:43:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1B 85 02 00 0E 04 04 00 C0 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 [07:43:51]wFMCommunicate OK [07:43:51]SAM_PROTO_GetFieldsCounters done [07:43:51]requested_item shift.num is exist - process it [07:43:51]requested_item shift.opened is exist - process it [07:43:51]req_shift_opened [07:43:51]FM_GetShiftState [07:43:51]SAM_PROTO_GetShiftState [07:43:51]wFMCommunicate request_size=4 [07:43:51]MH_SAM_APDU [07:43:51]CAPDU: 80 13 01 00 [07:43:51]Write to MH i2c: E2 08 00 85 1A 80 13 01 00 00 00 00 00 1C [07:43:51]Write i2c OK [07:43:51]MH_I2C_Read... [07:43:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:43:51]Read from MH i2c: E2 [07:43:51]MH_I2C_Read... [07:43:51]Read from MH i2c: E2 0E 00 [07:43:51]MH_I2C_Read... [07:43:51]Read from MH i2c: E2 0E 00 85 1A 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 F5 [07:43:51]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [07:43:51]wFMCommunicate OK [07:43:51]SAM_PROTO_GetShiftState done [07:43:51]FM_GetShiftState done [07:43:51]req_shift_opened done [07:43:51]requested_item shift.open_date is exist - process it [07:43:51]req_shift_open_date [07:43:51]req_shift_open_date done [07:43:51]produce_requested_data done [07:43:51]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165147,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [07:43:51]process_action_free close_receipt [07:43:51]json_value_free [07:43:51]json_value_free done [07:43:51]process_json_proto returns [07:43:51]Send response to host [07:43:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165147,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [07:43:51]free response buf [07:43:51]execute_script done [07:43:51]execute_script returns [07:43:51]free content buf [07:43:51]Sock 7.Close socket [07:43:51]Sock 7.Thread stoped [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:30]OFD Sender: No OFD packet to send [07:48:35]OFD Sender: No OFD packet to send [07:48:40]OFD Sender: No OFD packet to send [07:48:45]OFD Sender: No OFD packet to send [07:48:50]OFD Sender: No OFD packet to send [07:48:55]OFD Sender: No OFD packet to send [07:49:00]OFD Sender: No OFD packet to send [07:49:05]OFD Sender: No OFD packet to send [07:49:10]OFD Sender: No OFD packet to send [07:49:15]OFD Sender: No OFD packet to send [07:49:20]OFD Sender: No OFD packet to send [07:49:25]OFD Sender: No OFD packet to send [07:49:30]OFD Sender: No OFD packet to send [07:49:35]OFD Sender: No OFD packet to send [07:49:40]OFD Sender: No OFD packet to send [07:49:45]OFD Sender: No OFD packet to send [07:49:50]OFD Sender: No OFD packet to send [07:49:55]OFD Sender: No OFD packet to send [07:50:00]OFD Sender: No OFD packet to send [07:50:05]OFD Sender: No OFD packet to send [07:50:10]OFD Sender: No OFD packet to send [07:50:15]OFD Sender: No OFD packet to send [07:50:20]OFD Sender: No OFD packet to send [07:50:25]OFD Sender: No OFD packet to send [07:50:30]OFD Sender: No OFD packet to send [07:50:35]OFD Sender: No OFD packet to send [07:50:40]OFD Sender: No OFD packet to send [07:50:45]OFD Sender: No OFD packet to send [07:50:50]OFD Sender: No OFD packet to send [07:50:55]OFD Sender: No OFD packet to send [07:51:00]OFD Sender: No OFD packet to send [07:51:05]OFD Sender: No OFD packet to send [07:51:10]OFD Sender: No OFD packet to send [07:51:15]OFD Sender: No OFD packet to send [07:51:20]OFD Sender: No OFD packet to send [07:51:25]OFD Sender: No OFD packet to send [07:51:30]OFD Sender: No OFD packet to send [07:51:35]OFD Sender: No OFD packet to send [07:51:40]OFD Sender: No OFD packet to send [07:51:45]OFD Sender: No OFD packet to send [07:51:50]OFD Sender: No OFD packet to send [07:51:55]OFD Sender: No OFD packet to send [07:52:00]OFD Sender: No OFD packet to send [07:52:05]OFD Sender: No OFD packet to send [07:52:10]OFD Sender: No OFD packet to send [07:52:15]OFD Sender: No OFD packet to send [07:52:20]OFD Sender: No OFD packet to send [07:52:25]OFD Sender: No OFD packet to send [07:52:30]OFD Sender: No OFD packet to send [07:52:35]OFD Sender: No OFD packet to send [07:52:40]OFD Sender: No OFD packet to send [07:52:45]OFD Sender: No OFD packet to send [07:52:50]OFD Sender: No OFD packet to send [07:52:55]OFD Sender: No OFD packet to send [07:53:00]OFD Sender: No OFD packet to send [07:53:05]OFD Sender: No OFD packet to send [07:53:10]OFD Sender: No OFD packet to send [07:53:15]OFD Sender: No OFD packet to send [07:53:20]OFD Sender: No OFD packet to send [07:53:25]OFD Sender: No OFD packet to send [07:53:30]OFD Sender: No OFD packet to send [07:53:35]OFD Sender: No OFD packet to send [07:53:40]OFD Sender: No OFD packet to send [07:53:45]OFD Sender: No OFD packet to send [07:53:50]OFD Sender: No OFD packet to send [07:53:55]OFD Sender: No OFD packet to send [07:54:00]OFD Sender: No OFD packet to send [07:54:05]OFD Sender: No OFD packet to send [07:54:10]OFD Sender: No OFD packet to send [07:54:15]OFD Sender: No OFD packet to send [07:54:20]OFD Sender: No OFD packet to send [07:54:25]OFD Sender: No OFD packet to send [07:54:30]OFD Sender: No OFD packet to send [07:54:35]OFD Sender: No OFD packet to send [07:54:40]OFD Sender: No OFD packet to send [07:54:45]OFD Sender: No OFD packet to send [07:54:50]OFD Sender: No OFD packet to send [07:54:55]OFD Sender: No OFD packet to send [07:55:00]OFD Sender: No OFD packet to send [07:55:05]OFD Sender: No OFD packet to send [07:55:10]OFD Sender: No OFD packet to send [07:55:15]OFD Sender: No OFD packet to send [07:55:20]OFD Sender: No OFD packet to send [07:55:25]OFD Sender: No OFD packet to send [07:55:30]OFD Sender: No OFD packet to send [07:55:35]OFD Sender: No OFD packet to send [07:55:40]OFD Sender: No OFD packet to send [07:55: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:18]accept exits with 9 [07:57:18]New connection [07:57:18]New thread 3066785124 created [07:57:18]Thread 3066928484 joined [07:57:18]Waiting for new connection... [07:57:18] Sock 9.Parse request [07:57:18]Sock 9.Check first char [07:57:18]Sock 9.First char is OK [07:57:18]request: POST /json_proto HTTP/1.0 [07:57:18]Method: POST [07:57:18]URL: /json_proto [07:57:18]Method is POST - this is cgi request [07:57:18]url: /json_proto [07:57:18]query_string will be loaded in cgi processing [07:57:18]execute_cgi json_proto POST (null) [07:57:18]execute_cgi path=json_proto method=POST [07:57:18]POST find Content-Length [07:57:18]Host: 172.17.56.4:8080 [07:57:18]Content-Length: 682 [07:57:18]Content-Type: application/json [07:57:18] [07:57:18]POST finish read [07:57:18]Found Content-Length = 682 [07:57:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459249", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:57:18]execute_script... [07:57: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)459249", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:57:18]POST & json_proto [07:57:18]process_json_proto [07:57:18]json parsed OK: [07:57:18]protocol is kg_v1.0 [07:57:18]action value=close_receipt [07:57:18]process_action close_receipt [07:57:18]cmd_close_receipt [07:57:18]MH_GetDate [07:57:18]Write to MH i2c: F0 00 00 86 1A 8F [07:57:18]Write i2c OK [07:57:18]MH_I2C_Read... [07:57:18]Read from MH i2c: F0 [07:57:18]MH_I2C_Read... [07:57:18]Read from MH i2c: F0 09 00 [07:57:18]MH_I2C_Read... [07:57:18]Read from MH i2c: F0 09 00 86 1A 00 62 D6 94 66 C9 DC B2 64 85 [07:57:18]GetLastDocTimeStamp 1721029431 [07:57:18]current date 1721030242 [07:57:18]FM_GetShiftState [07:57:18]SAM_PROTO_GetShiftState [07:57:18]wFMCommunicate request_size=4 [07:57:18]MH_SAM_APDU [07:57:18]CAPDU: 80 13 01 00 [07:57:18]Write to MH i2c: E2 08 00 87 1A 80 13 01 00 00 00 00 00 1E [07:57:18]Write i2c OK [07:57:18]MH_I2C_Read... [07:57:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:57:18]Read from MH i2c: E2 [07:57:18]MH_I2C_Read... [07:57:18]Read from MH i2c: E2 0E 00 [07:57:18]MH_I2C_Read... [07:57:18]Read from MH i2c: E2 0E 00 87 1A 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 F7 [07:57:18]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [07:57:18]wFMCommunicate OK [07:57:18]SAM_PROTO_GetShiftState done [07:57:18]FM_GetShiftState done [07:57:18]opened in 1721003876 [07:57:18]opened+sec_in_day 1721090276 [07:57:18]quantity*price = 100016 [07:57:18]sum+1 = 100017 [07:57:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 21 15.07.2024 07:57 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165148 ФПД: 33949653765749 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T075722&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165148&fm=33949653765749&tin=02508201610067®Number=0000000000090829&sum=100000 [07:57:19]StoreToDocumentArchive [07:57:19]shift 448 fd 165148 [07:57:19]save to /storage/0448/doc_00165148 [07:57:19]save last doc name /storage/0448/doc_00165148 to /storage/kkm_last_doc_name [07:57:19]save OK [07:57:19]Clear old archive folders... [07:57:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:57:19]tlvbuf is 01365F90 [07:57:19]SAM_PROTO_ClearQueue [07:57:19]wFMCommunicate request_size=4 [07:57:19]MH_SAM_APDU [07:57:19]CAPDU: 80 09 00 00 [07:57:19]Write to MH i2c: E2 08 00 94 1A 80 09 00 00 00 00 00 00 20 [07:57:19]Write i2c OK [07:57:19]MH_I2C_Read... [07:57:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:57:19]Read from MH i2c: E2 [07:57:19]MH_I2C_Read... [07:57:19]Read from MH i2c: E2 03 00 [07:57:19]MH_I2C_Read... [07:57:19]Read from MH i2c: E2 03 00 94 1A 00 90 00 22 [07:57:19]RAPDU: 90 00 [07:57:19]wFMCommunicate OK [07:57:19]SAM_PROTO_ClearQueue done [07:57:19]KKMCreateOFDPacket [07:57:19]OFDProtocolAddRootSTLVToBuf [07:57:19]FM_MakeSignedData [07:57:19]FM_MakeSignedData [07:57:19]SAM_PROTO_SignData [07:57:19]wFMCommunicate request_size=4 [07:57:19]MH_SAM_APDU [07:57:19]CAPDU: 80 0D 01 02 [07:57:19]Write to MH i2c: E2 08 00 95 1A 80 0D 01 02 00 00 00 00 28 [07:57:19]Write i2c OK [07:57:19]MH_I2C_Read... [07:57:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:57:19]Read from MH i2c: E2 [07:57:19]MH_I2C_Read... [07:57:19]Read from MH i2c: E2 03 00 [07:57:19]MH_I2C_Read... [07:57:19]Read from MH i2c: E2 03 00 95 1A 00 90 00 23 [07:57:19]RAPDU: 90 00 [07:57:19]wFMCommunicate OK [07:57:19]wFMCommunicate request_size=255 [07:57:19]MH_SAM_APDU [07:57: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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 62 D6 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1C 85 02 00 35 04 06 00 1E [07:57:19]Write to MH i2c: E2 02 01 96 1A 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 62 D6 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1C 85 02 00 35 04 06 00 1E 00 00 0C [07:57:19]Write i2c OK [07:57:19]MH_I2C_Read... [07:57:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:57:19]Read from MH i2c: E2 [07:57:19]MH_I2C_Read... [07:57:19]Read from MH i2c: E2 03 00 [07:57:19]MH_I2C_Read... [07:57:19]Read from MH i2c: E2 03 00 96 1A 00 90 00 24 [07:57:19]RAPDU: 90 00 [07:57:19]wFMCommunicate OK [07:57:19]wFMCommunicate request_size=10 [07:57:19]MH_SAM_APDU [07:57:19]CAPDU: 80 0D 02 02 05 E0 85 0D 8E 75 [07:57:19]Write to MH i2c: E2 0D 00 97 1A 80 0D 02 02 05 00 E0 85 0D 8E 75 00 00 AA [07:57:19]Write i2c OK [07:57:19]MH_I2C_Read... [07:57:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:57:19]Read from MH i2c: E2 [07:57:19]MH_I2C_Read... [07:57:19]Read from MH i2c: E2 03 00 [07:57:19]MH_I2C_Read... [07:57:19]Read from MH i2c: E2 03 00 97 1A 00 90 00 25 [07:57:19]RAPDU: 90 00 [07:57:19]wFMCommunicate OK [07:57:19]wFMCommunicate request_size=4 [07:57:19]MH_SAM_APDU [07:57:19]CAPDU: 80 0D 03 02 [07:57:19]Write to MH i2c: E2 08 00 98 1A 80 0D 03 02 00 00 00 00 2D [07:57:19]Write i2c OK [07:57:19]MH_I2C_Read... [07:57:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:57:19]Read from MH i2c: E2 [07:57:19]MH_I2C_Read... [07:57:19]Read from MH i2c: E2 0B 00 [07:57:19]MH_I2C_Read... [07:57:19]Read from MH i2c: E2 0B 00 98 1A 00 58 C7 E7 64 8F 37 36 2E 90 00 C2 [07:57:19]RAPDU: 58 C7 E7 64 8F 37 36 2E 90 00 [07:57:19]wFMCommunicate OK [07:57:19]SAM_PROTO_SignData done [07:57:19]FM_MakeSignedData done [07:57:19]CreateOFDProtocolMessage [07:57:19]wFMCommunicate request_size=4 [07:57:19]MH_SAM_APDU [07:57:19]CAPDU: 80 11 00 00 [07:57:19]Write to MH i2c: E2 08 00 99 1A 80 11 00 00 00 00 00 00 2D [07:57:19]Write i2c OK [07:57:19]MH_I2C_Read... [07:57:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:57:20]Read from MH i2c: E2 [07:57:20]MH_I2C_Read... [07:57:20]Read from MH i2c: E2 17 00 [07:57:20]MH_I2C_Read... [07:57:20]Read from MH i2c: E2 17 00 99 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 83 [07:57:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [07:57:20]wFMCommunicate OK [07:57:20]CreateOFDProtocolMessage done [07:57:20]OFDSenderStorePacket 165148 [07:57:20]StoreOFDPacket docnum=165148 [07:57:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 0F 60 07 01 7D 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 62 D6 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1C 85 02 00 35 04 06 00 1E E0 85 0D 8E 75 58 C7 E7 64 8F 37 36 2E [07:57:20]CheckFolder [07:57:20]dirname=/storage/ofd_packets [07:57:20]CheckFolder done [07:57:20]ProducePacketName [07:57:20]name=ofd_packets/00165148 [07:57:20]NVStorageSaveData ofd_packets/00165148 [07:57:20]File name is /storage/ofd_packets/00165148 [07:57:20]Write 301 bytes [07:57:20]NVStorageSaveData done [07:57:20]OFDSenderStorePacket done [07:57:20]KKMCreateOFDPacket done [07:57:20]NVStorageSaveData kkm_last_timestamp [07:57:20]File name is /storage/kkm_last_timestamp [07:57:20]Write 4 bytes [07:57:20]NVStorageSaveData done [07:57:20]ExternCall_PrintAddStr [07:57:20]wPrintStart [07:57:20]Write to MH i2c: 01 00 00 9A 1A B4 [07:57:20]Write i2c OK [07:57:20]MH_I2C_Read... [07:57:20]Read from MH i2c: 01 [07:57:20]MH_I2C_Read... [07:57:20]Read from MH i2c: 01 07 00 [07:57:20]MH_I2C_Read... [07:57:20]Read from MH i2c: 01 07 00 9A 1A 00 00 00 00 00 FF 0F C9 [07:57:20]RasterBufferAndPrint [07:57:20]line Счет N : (1)459249 [07:57:20]line ИНН: 02508201610067 [07:57:20]line Контрольно-Кассовый Чек [07:57:20]line ПРОДАЖА [07:57:20]line ТРК (МРК, ГНК) : 12 [07:57:20]line Товар: 2710124130 [07:57:20]line Аи-92-К-5 [07:57:20]line 15.200 * 65.80 [07:57:20]line = 1000.16 [07:57:20]line НДС 12% НСП 1% [07:57:20]line > о реализуемом товаре [07:57:20]line ОКРУГЛЕНИЕ: -0.16 [07:57:20]line ИТОГО: 1000.00 [07:57:20]line Внесено: 1000.00 [07:57:20]line СДАЧА: 0.00 [07:57:20]line НСП 1% : 8.85 [07:57:20]line НДС 12% : 106.21 [07:57:20]line Наличными: 1000.00 [07:57:20]line Безнал.: 0.00 [07:57:20]line Место: АЗС № 72 "Партнер Нефть" [07:57:20]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [07:57:20]line СНО: Общий режим [07:57:20]line Чек 21 15.07.2024 07:57 [07:57:20]line Смена: 448 ФФД: 1.0 [07:57:20]line ЗНМ: 0300000160 [07:57:20]line РНМ: 0000000000090829 [07:57:20]line Версия ККМ: 001 [07:57:20]line ФМ: 0000000000874718 [07:57:20]line ФД: 165148 [07:57:20]line ФПД: 33949653765749 [07:57:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T075722&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165148&fm=33949653765749&tin=02508201610067®Number=0000000000090829&sum=100000 [07:57:20]OFD Sender: Processing packet 165148 [packets to send 106, broken 105] [07:57:20]ProducePacketName [07:57:20]name=ofd_packets/00165148 [07:57:20]OFD Sender: To server: pG, [07:57:20]CommunicateWithHost lk.salyk.kg:30040 [07:57:20]ConnectInit lk.salyk.kg [07:57:20]written 0, free lines is 4095 [07:57:20]Connected sock=10 [07:57: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 37 31 38 0F 01 00 00 0F 60 07 01 7D 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 62 D6 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1C 85 02 00 35 04 06 00 1E E0 85 0D 8E 75 58 C7 E7 64 8F 37 36 2E [07:57:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 18 17 47 00 36 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1C 85 02 00 F4 03 04 00 ED 7C 94 66 B6 04 01 00 00 53 86 1A 9F 80 23 E6 F6 [07:57:20]CommunicateWithHost err = 0 [07:57:20]CheckOFDResponse [07:57:20]1017 (14) - 77093643461234 [07:57:20]1041 (16) - 0000000000874718 [07:57:20]1040 (4) - 165148 [07:57:20]1012 (4) - 15.07.2024 01:35 [07:57:20]1206 (1) - 0 [07:57:20]OFD Sender: Remove packet 165148 [07:57:20]ProducePacketName [07:57:20]name=ofd_packets/00165148 [07:57:20]NVStorageDeleteData [07:57:20]Write to MH i2c: 01 00 00 C4 1A DE [07:57:20]Write i2c OK [07:57:20]MH_I2C_Read... [07:57:20]Read from MH i2c: 01 [07:57:20]MH_I2C_Read... [07:57:20]Read from MH i2c: 01 07 00 [07:57:20]MH_I2C_Read... [07:57:20]Read from MH i2c: 01 07 00 C4 1A 00 00 00 00 00 FB 0C EC [07:57:20]RasterBufferAndPrint [07:57:20]line [07:57:20]line [07:57:20]line [07:57:20]line [07:57:20]line [07:57:20]written 0, free lines is 3330 [07:57:20]MH_Cut [07:57:20]Write to MH i2c: D1 01 00 CB 1A 01 B7 [07:57:20]Write i2c OK [07:57:20]MH_I2C_Read... [07:57:20]Read from MH i2c: D1 [07:57:20]MH_I2C_Read... [07:57:20]Read from MH i2c: D1 01 00 [07:57:20]MH_I2C_Read... [07:57:20]Read from MH i2c: D1 01 00 CB 1A 00 B6 [07:57:20]Write to MH i2c: 01 00 00 CC 1A E6 [07:57:20]Write i2c OK [07:57:20]MH_I2C_Read... [07:57:21]OFD Sender: No OFD packet to send [07:57:21]*** Cut start [07:57:21]*** Partial cut [07:57:21]*** CUTSNS_PIN = 1 [07:57:21]*** CUTSNS_PIN = 0 [07:57:21]*** Brake cut motor [07:57:22]Read from MH i2c: 01 [07:57:22]MH_I2C_Read... [07:57:22]*** Stop cut motor [07:57:22]*** Cut end [07:57:22]Read from MH i2c: 01 07 00 [07:57:22]MH_I2C_Read... [07:57:22]Read from MH i2c: 01 07 00 CC 1A 00 00 00 00 00 FF 0F FB [07:57:22]process_action close_receipt done [07:57:22]requested_data is exist [07:57:22]produce_requested_data [07:57:22]requested_item fm.sn is exist - process it [07:57:22]wFMCommunicate request_size=4 [07:57:22]MH_SAM_APDU [07:57:22]CAPDU: 80 11 00 00 [07:57:22]Write to MH i2c: E2 08 00 CD 1A 80 11 00 00 00 00 00 00 61 [07:57:22]Write i2c OK [07:57:22]MH_I2C_Read... [07:57:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:57:22]Read from MH i2c: E2 [07:57:22]MH_I2C_Read... [07:57:22]Read from MH i2c: E2 17 00 [07:57:22]MH_I2C_Read... [07:57:22]Read from MH i2c: E2 17 00 CD 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B7 [07:57:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [07:57:22]wFMCommunicate OK [07:57:22]requested_item fd.num is exist - process it [07:57:22]SAM_PROTO_GetFieldsCounters [07:57:22]wFMCommunicate request_size=4 [07:57:22]MH_SAM_APDU [07:57:22]CAPDU: 80 13 00 00 [07:57:22]Write to MH i2c: E2 08 00 CE 1A 80 13 00 00 00 00 00 00 64 [07:57:22]Write i2c OK [07:57:22]MH_I2C_Read... [07:57:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:57:22]Read from MH i2c: E2 [07:57:22]MH_I2C_Read... [07:57:22]Read from MH i2c: E2 62 00 [07:57:22]MH_I2C_Read... [07:57:22]Read from MH i2c: E2 62 00 CE 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1C 85 02 00 0E 04 04 00 C0 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 2E [07:57: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1C 85 02 00 0E 04 04 00 C0 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 [07:57:22]wFMCommunicate OK [07:57:22]SAM_PROTO_GetFieldsCounters done [07:57:22]requested_item shift.num is exist - process it [07:57:22]requested_item shift.opened is exist - process it [07:57:22]req_shift_opened [07:57:22]FM_GetShiftState [07:57:22]SAM_PROTO_GetShiftState [07:57:22]wFMCommunicate request_size=4 [07:57:22]MH_SAM_APDU [07:57:22]CAPDU: 80 13 01 00 [07:57:22]Write to MH i2c: E2 08 00 CF 1A 80 13 01 00 00 00 00 00 66 [07:57:22]Write i2c OK [07:57:22]MH_I2C_Read... [07:57:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:57:22]Read from MH i2c: E2 [07:57:22]MH_I2C_Read... [07:57:22]Read from MH i2c: E2 0E 00 [07:57:22]MH_I2C_Read... [07:57:22]Read from MH i2c: E2 0E 00 CF 1A 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 3F [07:57:22]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [07:57:22]wFMCommunicate OK [07:57:22]SAM_PROTO_GetShiftState done [07:57:22]FM_GetShiftState done [07:57:22]req_shift_opened done [07:57:22]requested_item shift.open_date is exist - process it [07:57:22]req_shift_open_date [07:57:22]req_shift_open_date done [07:57:22]produce_requested_data done [07:57:22]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165148,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [07:57:22]process_action_free close_receipt [07:57:22]json_value_free [07:57:22]json_value_free done [07:57:22]process_json_proto returns [07:57:22]Send response to host [07:57:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165148,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [07:57:22]free response buf [07:57:22]execute_script done [07:57:22]execute_script returns [07:57:22]free content buf [07:57:22]Sock 9.Close socket [07:57:22]Sock 9.Thread stoped [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]accept exits with 7 [08:01:56]New connection [08:01:56]New thread 3066928484 created [08:01:56]Thread 3066785124 joined [08:01:56]Waiting for new connection... [08:01:56] Sock 7.Parse request [08:01:56]Sock 7.Check first char [08:01:56]Sock 7.First char is OK [08:01:56]request: POST /json_proto HTTP/1.0 [08:01:56]Method: POST [08:01:56]URL: /json_proto [08:01:56]Method is POST - this is cgi request [08:01:56]url: /json_proto [08:01:56]query_string will be loaded in cgi processing [08:01:56]execute_cgi json_proto POST (null) [08:01:56]execute_cgi path=json_proto method=POST [08:01:56]POST find Content-Length [08:01:56]Host: 172.17.56.4:8080 [08:01:56]Content-Length: 677 [08:01:56]Content-Type: application/json [08:01:56] [08:01:56]POST finish read [08:01:56]Found Content-Length = 677 [08:01:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459250", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:01:56]execute_script... [08:01: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)459250", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:01:56]POST & json_proto [08:01:56]process_json_proto [08:01:56]json parsed OK: [08:01:56]protocol is kg_v1.0 [08:01:56]action value=close_receipt [08:01:56]process_action close_receipt [08:01:56]cmd_close_receipt [08:01:56]MH_GetDate [08:01:56]Write to MH i2c: F0 00 00 D0 1A D9 [08:01:56]Write i2c OK [08:01:56]MH_I2C_Read... [08:01:56]Read from MH i2c: F0 [08:01:56]MH_I2C_Read... [08:01:56]Read from MH i2c: F0 09 00 [08:01:56]MH_I2C_Read... [08:01:56]Read from MH i2c: F0 09 00 D0 1A 00 78 D7 94 66 C9 DC B2 64 E6 [08:01:56]GetLastDocTimeStamp 1721030242 [08:01:56]current date 1721030520 [08:01:56]FM_GetShiftState [08:01:56]SAM_PROTO_GetShiftState [08:01:56]wFMCommunicate request_size=4 [08:01:56]MH_SAM_APDU [08:01:56]CAPDU: 80 13 01 00 [08:01:56]Write to MH i2c: E2 08 00 D1 1A 80 13 01 00 00 00 00 00 68 [08:01:56]Write i2c OK [08:01:56]MH_I2C_Read... [08:01:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:01:56]Read from MH i2c: E2 [08:01:56]MH_I2C_Read... [08:01:56]Read from MH i2c: E2 0E 00 [08:01:56]MH_I2C_Read... [08:01:56]Read from MH i2c: E2 0E 00 D1 1A 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 41 [08:01:56]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [08:01:56]wFMCommunicate OK [08:01:56]SAM_PROTO_GetShiftState done [08:01:56]FM_GetShiftState done [08:01:56]opened in 1721003876 [08:01:56]opened+sec_in_day 1721090276 [08:01:56]quantity*price = 20003 [08:01:56]sum+1 = 20004 [08:01:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 22 15.07.2024 08:02 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165149 ФПД: 49867679888171 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T080200&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165149&fm=49867679888171&tin=02508201610067®Number=0000000000090829&sum=20000 [08:01:57]StoreToDocumentArchive [08:01:57]shift 448 fd 165149 [08:01:57]save to /storage/0448/doc_00165149 [08:01:57]save last doc name /storage/0448/doc_00165149 to /storage/kkm_last_doc_name [08:01:57]save OK [08:01:57]Clear old archive folders... [08:01:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:01:57]tlvbuf is 013613C0 [08:01:57]SAM_PROTO_ClearQueue [08:01:57]wFMCommunicate request_size=4 [08:01:57]MH_SAM_APDU [08:01:57]CAPDU: 80 09 00 00 [08:01:57]Write to MH i2c: E2 08 00 DE 1A 80 09 00 00 00 00 00 00 6A [08:01:57]Write i2c OK [08:01:57]MH_I2C_Read... [08:01:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:01:57]Read from MH i2c: E2 [08:01:57]MH_I2C_Read... [08:01:57]Read from MH i2c: E2 03 00 [08:01:57]MH_I2C_Read... [08:01:57]Read from MH i2c: E2 03 00 DE 1A 00 90 00 6C [08:01:57]RAPDU: 90 00 [08:01:57]wFMCommunicate OK [08:01:57]SAM_PROTO_ClearQueue done [08:01:57]KKMCreateOFDPacket [08:01:57]OFDProtocolAddRootSTLVToBuf [08:01:57]FM_MakeSignedData [08:01:57]FM_MakeSignedData [08:01:57]SAM_PROTO_SignData [08:01:57]wFMCommunicate request_size=4 [08:01:57]MH_SAM_APDU [08:01:57]CAPDU: 80 0D 01 02 [08:01:57]Write to MH i2c: E2 08 00 DF 1A 80 0D 01 02 00 00 00 00 72 [08:01:57]Write i2c OK [08:01:57]MH_I2C_Read... [08:01:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:01:57]Read from MH i2c: E2 [08:01:57]MH_I2C_Read... [08:01:57]Read from MH i2c: E2 03 00 [08:01:57]MH_I2C_Read... [08:01:57]Read from MH i2c: E2 03 00 DF 1A 00 90 00 6D [08:01:57]RAPDU: 90 00 [08:01:57]wFMCommunicate OK [08:01:57]wFMCommunicate request_size=255 [08:01:57]MH_SAM_APDU [08:01: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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 78 D7 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1D 85 02 00 35 04 06 00 2D [08:01:57]Write to MH i2c: E2 02 01 E0 1A 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 78 D7 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1D 85 02 00 35 04 06 00 2D 00 00 7D [08:01:57]Write i2c OK [08:01:57]MH_I2C_Read... [08:01:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:01:57]Read from MH i2c: E2 [08:01:57]MH_I2C_Read... [08:01:57]Read from MH i2c: E2 03 00 [08:01:57]MH_I2C_Read... [08:01:57]Read from MH i2c: E2 03 00 E0 1A 00 90 00 6E [08:01:57]RAPDU: 90 00 [08:01:57]wFMCommunicate OK [08:01:57]wFMCommunicate request_size=10 [08:01:57]MH_SAM_APDU [08:01:57]CAPDU: 80 0D 02 02 05 5A B9 58 73 2B [08:01:57]Write to MH i2c: E2 0D 00 E1 1A 80 0D 02 02 05 00 5A B9 58 73 2B 00 00 88 [08:01:57]Write i2c OK [08:01:57]MH_I2C_Read... [08:01:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:01:57]Read from MH i2c: E2 [08:01:57]MH_I2C_Read... [08:01:57]Read from MH i2c: E2 03 00 [08:01:57]MH_I2C_Read... [08:01:57]Read from MH i2c: E2 03 00 E1 1A 00 90 00 6F [08:01:57]RAPDU: 90 00 [08:01:57]wFMCommunicate OK [08:01:57]wFMCommunicate request_size=4 [08:01:57]MH_SAM_APDU [08:01:57]CAPDU: 80 0D 03 02 [08:01:57]Write to MH i2c: E2 08 00 E2 1A 80 0D 03 02 00 00 00 00 77 [08:01:57]Write i2c OK [08:01:57]MH_I2C_Read... [08:01:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:01:57]Read from MH i2c: E2 [08:01:57]MH_I2C_Read... [08:01:57]Read from MH i2c: E2 0B 00 [08:01:57]MH_I2C_Read... [08:01:57]Read from MH i2c: E2 0B 00 E2 1A 00 45 43 C8 53 37 F9 F0 84 90 00 BF [08:01:57]RAPDU: 45 43 C8 53 37 F9 F0 84 90 00 [08:01:57]wFMCommunicate OK [08:01:57]SAM_PROTO_SignData done [08:01:57]FM_MakeSignedData done [08:01:57]CreateOFDProtocolMessage [08:01:57]wFMCommunicate request_size=4 [08:01:57]MH_SAM_APDU [08:01:57]CAPDU: 80 11 00 00 [08:01:57]Write to MH i2c: E2 08 00 E3 1A 80 11 00 00 00 00 00 00 77 [08:01:57]Write i2c OK [08:01:57]MH_I2C_Read... [08:01:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:01:57]Read from MH i2c: E2 [08:01:57]MH_I2C_Read... [08:01:57]Read from MH i2c: E2 17 00 [08:01:57]MH_I2C_Read... [08:01:57]Read from MH i2c: E2 17 00 E3 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CD [08:01:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:01:57]wFMCommunicate OK [08:01:57]CreateOFDProtocolMessage done [08:01:57]OFDSenderStorePacket 165149 [08:01:57]StoreOFDPacket docnum=165149 [08:01:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 97 02 07 01 D1 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 78 D7 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1D 85 02 00 35 04 06 00 2D 5A B9 58 73 2B 45 43 C8 53 37 F9 F0 84 [08:01:57]CheckFolder [08:01:57]dirname=/storage/ofd_packets [08:01:57]CheckFolder done [08:01:57]ProducePacketName [08:01:57]name=ofd_packets/00165149 [08:01:57]NVStorageSaveData ofd_packets/00165149 [08:01:57]File name is /storage/ofd_packets/00165149 [08:01:57]Write 301 bytes [08:01:57]NVStorageSaveData done [08:01:57]OFDSenderStorePacket done [08:01:57]KKMCreateOFDPacket done [08:01:57]NVStorageSaveData kkm_last_timestamp [08:01:57]File name is /storage/kkm_last_timestamp [08:01:57]Write 4 bytes [08:01:57]NVStorageSaveData done [08:01:57]ExternCall_PrintAddStr [08:01:57]wPrintStart [08:01:57]Write to MH i2c: 01 00 00 E4 1A FE [08:01:57]Write i2c OK [08:01:57]MH_I2C_Read... [08:01:57]Read from MH i2c: 01 [08:01:57]MH_I2C_Read... [08:01:57]Read from MH i2c: 01 07 00 [08:01:57]MH_I2C_Read... [08:01:57]Read from MH i2c: 01 07 00 E4 1A 00 00 00 00 00 FF 0F 13 [08:01:57]RasterBufferAndPrint [08:01:57]line Счет N : (1)459250 [08:01:57]line ИНН: 02508201610067 [08:01:57]line Контрольно-Кассовый Чек [08:01:57]line ПРОДАЖА [08:01:57]line ТРК (МРК, ГНК) : 22 [08:01:57]line Товар: 2710124130 [08:01:57]line Аи-92-К-5 [08:01:57]line 3.040 * 65.80 [08:01:57]line = 200.03 [08:01:57]line НДС 12% НСП 1% [08:01:57]line > о реализуемом товаре [08:01:57]line ОКРУГЛЕНИЕ: -0.03 [08:01:57]line ИТОГО: 200.00 [08:01:57]line Внесено: 200.00 [08:01:57]line СДАЧА: 0.00 [08:01:57]line НСП 1% : 1.77 [08:01:57]line НДС 12% : 21.24 [08:01:57]line Наличными: 200.00 [08:01:57]line Безнал.: 0.00 [08:01:57]line Место: АЗС № 72 "Партнер Нефть" [08:01:57]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [08:01:57]line СНО: Общий режим [08:01:57]line Чек 22 15.07.2024 08:02 [08:01:57]line Смена: 448 ФФД: 1.0 [08:01:57]line ЗНМ: 0300000160 [08:01:57]line РНМ: 0000000000090829 [08:01:57]line Версия ККМ: 001 [08:01:57]line ФМ: 0000000000874718 [08:01:57]line ФД: 165149 [08:01:57]line ФПД: 49867679888171 [08:01:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T080200&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165149&fm=49867679888171&tin=02508201610067®Number=0000000000090829&sum=20000 [08:01:58]written 0, free lines is 4095 [08:01:58]OFD Sender: Processing packet 165149 [packets to send 106, broken 105] [08:01:58]ProducePacketName [08:01:58]name=ofd_packets/00165149 [08:01:58]OFD Sender: To server: pG, [08:01:58]CommunicateWithHost lk.salyk.kg:30040 [08:01:58]ConnectInit lk.salyk.kg [08:01:58]Connected sock=10 [08:01: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 37 31 38 0F 01 00 00 97 02 07 01 D1 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 78 D7 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1D 85 02 00 35 04 06 00 2D 5A B9 58 73 2B 45 43 C8 53 37 F9 F0 84 [08:01:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 14 69 47 00 82 F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1D 85 02 00 F4 03 04 00 03 7E 94 66 B6 04 01 00 00 1E 93 15 30 C2 55 D5 4A [08:01:58]CommunicateWithHost err = 0 [08:01:58]CheckOFDResponse [08:01:58]1017 (14) - 77093643461234 [08:01:58]1041 (16) - 0000000000874718 [08:01:58]1040 (4) - 165149 [08:01:58]1012 (4) - 15.07.2024 01:40 [08:01:58]1206 (1) - 0 [08:01:58]OFD Sender: Remove packet 165149 [08:01:58]ProducePacketName [08:01:58]name=ofd_packets/00165149 [08:01:58]NVStorageDeleteData [08:01:58]Write to MH i2c: 01 00 00 0E 1B 29 [08:01:58]Write i2c OK [08:01:58]MH_I2C_Read... [08:01:58]Read from MH i2c: 01 [08:01:58]MH_I2C_Read... [08:01:58]Read from MH i2c: 01 07 00 [08:01:58]MH_I2C_Read... [08:01:58]Read from MH i2c: 01 07 00 0E 1B 00 00 00 00 00 F3 0C 2F [08:01:58]RasterBufferAndPrint [08:01:58]line [08:01:58]line [08:01:58]line [08:01:58]line [08:01:58]line [08:01:58]written 0, free lines is 3321 [08:01:58]MH_Cut [08:01:58]Write to MH i2c: D1 01 00 15 1B 01 02 [08:01:58]Write i2c OK [08:01:58]MH_I2C_Read... [08:01:58]Read from MH i2c: D1 [08:01:58]MH_I2C_Read... [08:01:58]Read from MH i2c: D1 01 00 [08:01:58]MH_I2C_Read... [08:01:58]Read from MH i2c: D1 01 00 15 1B 00 01 [08:01:58]Write to MH i2c: 01 00 00 16 1B 31 [08:01:58]Write i2c OK [08:01:58]MH_I2C_Read... [08:01:58]OFD Sender: No OFD packet to send [08:01:59]*** Cut start [08:01:59]*** Partial cut [08:01:59]*** CUTSNS_PIN = 1 [08:01:59]*** CUTSNS_PIN = 0 [08:01:59]*** Brake cut motor [08:01:59]Read from MH i2c: 01 [08:01:59]MH_I2C_Read... [08:01:59]*** Stop cut motor [08:01:59]*** Cut end [08:01:59]Read from MH i2c: 01 07 00 [08:01:59]MH_I2C_Read... [08:01:59]Read from MH i2c: 01 07 00 16 1B 00 00 00 00 00 FF 0F 46 [08:01:59]process_action close_receipt done [08:01:59]requested_data is exist [08:01:59]produce_requested_data [08:01:59]requested_item fm.sn is exist - process it [08:01:59]wFMCommunicate request_size=4 [08:01:59]MH_SAM_APDU [08:01:59]CAPDU: 80 11 00 00 [08:01:59]Write to MH i2c: E2 08 00 17 1B 80 11 00 00 00 00 00 00 AC [08:01:59]Write i2c OK [08:01:59]MH_I2C_Read... [08:01:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:01:59]Read from MH i2c: E2 [08:01:59]MH_I2C_Read... [08:01:59]Read from MH i2c: E2 17 00 [08:01:59]MH_I2C_Read... [08:01:59]Read from MH i2c: E2 17 00 17 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 02 [08:01:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:01:59]wFMCommunicate OK [08:01:59]requested_item fd.num is exist - process it [08:01:59]SAM_PROTO_GetFieldsCounters [08:01:59]wFMCommunicate request_size=4 [08:01:59]MH_SAM_APDU [08:01:59]CAPDU: 80 13 00 00 [08:01:59]Write to MH i2c: E2 08 00 18 1B 80 13 00 00 00 00 00 00 AF [08:01:59]Write i2c OK [08:01:59]MH_I2C_Read... [08:02:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:02:00]Read from MH i2c: E2 [08:02:00]MH_I2C_Read... [08:02:00]Read from MH i2c: E2 62 00 [08:02:00]MH_I2C_Read... [08:02:00]Read from MH i2c: E2 62 00 18 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1D 85 02 00 0E 04 04 00 C0 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 7D [08:02: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1D 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:02:00]wFMCommunicate OK [08:02:00]SAM_PROTO_GetFieldsCounters done [08:02:00]requested_item shift.num is exist - process it [08:02:00]requested_item shift.opened is exist - process it [08:02:00]req_shift_opened [08:02:00]FM_GetShiftState [08:02:00]SAM_PROTO_GetShiftState [08:02:00]wFMCommunicate request_size=4 [08:02:00]MH_SAM_APDU [08:02:00]CAPDU: 80 13 01 00 [08:02:00]Write to MH i2c: E2 08 00 19 1B 80 13 01 00 00 00 00 00 B1 [08:02:00]Write i2c OK [08:02:00]MH_I2C_Read... [08:02:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:02:00]Read from MH i2c: E2 [08:02:00]MH_I2C_Read... [08:02:00]Read from MH i2c: E2 0E 00 [08:02:00]MH_I2C_Read... [08:02:00]Read from MH i2c: E2 0E 00 19 1B 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 8A [08:02:00]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [08:02:00]wFMCommunicate OK [08:02:00]SAM_PROTO_GetShiftState done [08:02:00]FM_GetShiftState done [08:02:00]req_shift_opened done [08:02:00]requested_item shift.open_date is exist - process it [08:02:00]req_shift_open_date [08:02:00]req_shift_open_date done [08:02:00]produce_requested_data done [08:02:00]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165149,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [08:02:00]process_action_free close_receipt [08:02:00]json_value_free [08:02:00]json_value_free done [08:02:00]process_json_proto returns [08:02:00]Send response to host [08:02:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165149,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [08:02:00]free response buf [08:02:00]execute_script done [08:02:00]execute_script returns [08:02:00]free content buf [08:02:00]Sock 7.Close socket [08:02:00]Sock 7.Thread stoped [08:02:03]OFD Sender: No OFD packet to send [08:02:08]OFD Sender: No OFD packet to send [08:02:13]OFD Sender: No OFD packet to send [08:02:19]OFD Sender: No OFD packet to send [08:02:24]OFD Sender: No OFD packet to send [08:02:29]OFD Sender: No OFD packet to send [08:02:34]OFD Sender: No OFD packet to send [08:02:39]OFD Sender: No OFD packet to send [08:02:44]OFD Sender: No OFD packet to send [08:02:49]OFD Sender: No OFD packet to send [08:02:54]OFD Sender: No OFD packet to send [08:02:59]OFD Sender: No OFD packet to send [08:03:04]OFD Sender: No OFD packet to send [08:03:09]OFD Sender: No OFD packet to send [08:03:14]OFD Sender: No OFD packet to send [08:03:19]OFD Sender: No OFD packet to send [08:03:24]OFD Sender: No OFD packet to send [08:03:29]OFD Sender: No OFD packet to send [08:03:34]OFD Sender: No OFD packet to send [08:03:39]OFD Sender: No OFD packet to send [08:03:44]OFD Sender: No OFD packet to send [08:03:49]OFD Sender: No OFD packet to send [08:03:54]OFD Sender: No OFD packet to send [08:03:59]OFD Sender: No OFD packet to send [08:04:04]OFD Sender: No OFD packet to send [08:04:09]OFD Sender: No OFD packet to send [08:04:14]OFD Sender: No OFD packet to send [08:04:19]OFD Sender: No OFD packet to send [08:04:24]OFD Sender: No OFD packet to send [08:04:29]OFD Sender: No OFD packet to send [08:04:34]OFD Sender: No OFD packet to send [08:04:39]OFD Sender: No OFD packet to send [08:04:44]OFD Sender: No OFD packet to send [08:04:49]OFD Sender: No OFD packet to send [08:04:54]OFD Sender: No OFD packet to send [08:04:59]OFD Sender: No OFD packet to send [08:05:04]OFD Sender: No OFD packet to send [08:05:09]OFD Sender: No OFD packet to send [08:05:14]OFD Sender: No OFD packet to send [08:05:19]OFD Sender: No OFD packet to send [08:05:24]OFD Sender: No OFD packet to send [08:05:29]OFD Sender: No OFD packet to send [08:05:34]OFD Sender: No OFD packet to send [08:05:39]OFD Sender: No OFD packet to send [08:05:44]OFD Sender: No OFD packet to send [08:05:49]OFD Sender: No OFD packet to send [08:05:54]OFD Sender: No OFD packet to send [08:05:59]OFD Sender: No OFD packet to send [08:06:04]OFD Sender: No OFD packet to send [08:06:09]OFD Sender: No OFD packet to send [08:06:14]OFD Sender: No OFD packet to send [08:06:19]OFD Sender: No OFD packet to send [08:06:24]OFD Sender: No OFD packet to send [08:06:29]OFD Sender: No OFD packet to send [08:06:34]OFD Sender: No OFD packet to send [08:06:39]OFD Sender: No OFD packet to send [08:06:44]OFD Sender: No OFD packet to send [08:06:49]OFD Sender: No OFD packet to send [08:06:54]OFD Sender: No OFD packet to send [08:06:59]OFD Sender: No OFD packet to send [08:07:04]OFD Sender: No OFD packet to send [08:07:09]OFD Sender: No OFD packet to send [08:07:14]OFD Sender: No OFD packet to send [08:07:19]OFD Sender: No OFD packet to send [08:07:24]OFD Sender: No OFD packet to send [08:07:29]OFD Sender: No OFD packet to send [08:07:34]OFD Sender: No OFD packet to send [08:07:39]OFD Sender: No OFD packet to send [08:07:44]OFD Sender: No OFD packet to send [08:07:49]OFD Sender: No OFD packet to send [08:07:54]OFD Sender: No OFD packet to send [08:07:59]OFD Sender: No OFD packet to send [08:08:04]OFD Sender: No OFD packet to send [08:08:09]OFD Sender: No OFD packet to send [08:08:14]OFD Sender: No OFD packet to send [08:08:19]OFD Sender: No OFD packet to send [08:08:24]OFD Sender: No OFD packet to send [08:08:29]OFD Sender: No OFD packet to send [08:08:34]OFD Sender: No OFD packet to send [08:08:39]OFD Sender: No OFD packet to send [08:08:44]OFD Sender: No OFD packet to send [08:08:49]OFD Sender: No OFD packet to send [08:08:54]OFD Sender: No OFD packet to send [08:08:59]OFD Sender: No OFD packet to send [08:09:04]OFD Sender: No OFD packet to send [08:09:09]OFD Sender: No OFD packet to send [08:09:14]OFD Sender: No OFD packet to send [08:09:19]OFD Sender: No OFD packet to send [08:09:24]OFD Sender: No OFD packet to send [08:09:29]OFD Sender: No OFD packet to send [08:09:34]OFD Sender: No OFD packet to send [08:09:39]OFD Sender: No OFD packet to send [08:09:44]OFD Sender: No OFD packet to send [08:09:49]OFD Sender: No OFD packet to send [08:09:54]OFD Sender: No OFD packet to send [08:09:59]OFD Sender: No OFD packet to send [08:10:03]accept exits with 9 [08:10:03]New connection [08:10:03]New thread 3066785124 created [08:10:03]Thread 3066928484 joined [08:10:03]Waiting for new connection... [08:10:03] Sock 9.Parse request [08:10:03]Sock 9.Check first char [08:10:03]Sock 9.First char is OK [08:10:03]request: POST /json_proto HTTP/1.0 [08:10:03]Method: POST [08:10:03]URL: /json_proto [08:10:03]Method is POST - this is cgi request [08:10:03]url: /json_proto [08:10:03]query_string will be loaded in cgi processing [08:10:03]execute_cgi json_proto POST (null) [08:10:03]execute_cgi path=json_proto method=POST [08:10:03]POST find Content-Length [08:10:03]Host: 172.17.56.4:8080 [08:10:03]Content-Length: 677 [08:10:03]Content-Type: application/json [08:10:03] [08:10:03]POST finish read [08:10:03]Found Content-Length = 677 [08:10:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459251", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:10:03]execute_script... [08:10: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)459251", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:10:03]POST & json_proto [08:10:03]process_json_proto [08:10:03]json parsed OK: [08:10:03]protocol is kg_v1.0 [08:10:03]action value=close_receipt [08:10:03]process_action close_receipt [08:10:03]cmd_close_receipt [08:10:03]MH_GetDate [08:10:03]Write to MH i2c: F0 00 00 1A 1B 24 [08:10:03]Write i2c OK [08:10:03]MH_I2C_Read... [08:10:03]Read from MH i2c: F0 [08:10:03]MH_I2C_Read... [08:10:03]Read from MH i2c: F0 09 00 [08:10:03]MH_I2C_Read... [08:10:03]Read from MH i2c: F0 09 00 1A 1B 00 5F D9 94 66 C9 DC B2 64 1A [08:10:03]GetLastDocTimeStamp 1721030520 [08:10:03]current date 1721031007 [08:10:03]FM_GetShiftState [08:10:03]SAM_PROTO_GetShiftState [08:10:03]wFMCommunicate request_size=4 [08:10:03]MH_SAM_APDU [08:10:03]CAPDU: 80 13 01 00 [08:10:03]Write to MH i2c: E2 08 00 1B 1B 80 13 01 00 00 00 00 00 B3 [08:10:03]Write i2c OK [08:10:03]MH_I2C_Read... [08:10:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:10:03]Read from MH i2c: E2 [08:10:03]MH_I2C_Read... [08:10:03]Read from MH i2c: E2 0E 00 [08:10:03]MH_I2C_Read... [08:10:03]Read from MH i2c: E2 0E 00 1B 1B 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 8C [08:10:03]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [08:10:03]wFMCommunicate OK [08:10:03]SAM_PROTO_GetShiftState done [08:10:03]FM_GetShiftState done [08:10:03]opened in 1721003876 [08:10:03]opened+sec_in_day 1721090276 [08:10:03]quantity*price = 50008 [08:10:03]sum+1 = 50009 [08:10:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 23 15.07.2024 08:10 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165150 ФПД: 153748538453073 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T081007&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165150&fm=153748538453073&tin=02508201610067®Number=0000000000090829&sum=50000 [08:10:04]StoreToDocumentArchive [08:10:04]shift 448 fd 165150 [08:10:04]save to /storage/0448/doc_00165150 [08:10:04]save last doc name /storage/0448/doc_00165150 to /storage/kkm_last_doc_name [08:10:04]save OK [08:10:04]Clear old archive folders... [08:10:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:10:04]tlvbuf is B6EBBCF0 [08:10:04]SAM_PROTO_ClearQueue [08:10:04]wFMCommunicate request_size=4 [08:10:04]MH_SAM_APDU [08:10:04]CAPDU: 80 09 00 00 [08:10:04]Write to MH i2c: E2 08 00 28 1B 80 09 00 00 00 00 00 00 B5 [08:10:04]Write i2c OK [08:10:04]MH_I2C_Read... [08:10:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:10:04]Read from MH i2c: E2 [08:10:04]MH_I2C_Read... [08:10:04]Read from MH i2c: E2 03 00 [08:10:04]MH_I2C_Read... [08:10:04]Read from MH i2c: E2 03 00 28 1B 00 90 00 B7 [08:10:04]RAPDU: 90 00 [08:10:04]wFMCommunicate OK [08:10:04]SAM_PROTO_ClearQueue done [08:10:04]KKMCreateOFDPacket [08:10:04]OFDProtocolAddRootSTLVToBuf [08:10:04]FM_MakeSignedData [08:10:04]FM_MakeSignedData [08:10:04]SAM_PROTO_SignData [08:10:04]wFMCommunicate request_size=4 [08:10:04]MH_SAM_APDU [08:10:04]CAPDU: 80 0D 01 02 [08:10:04]Write to MH i2c: E2 08 00 29 1B 80 0D 01 02 00 00 00 00 BD [08:10:04]Write i2c OK [08:10:04]MH_I2C_Read... [08:10:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:10:04]Read from MH i2c: E2 [08:10:04]MH_I2C_Read... [08:10:04]Read from MH i2c: E2 03 00 [08:10:04]MH_I2C_Read... [08:10:04]Read from MH i2c: E2 03 00 29 1B 00 90 00 B8 [08:10:04]RAPDU: 90 00 [08:10:04]wFMCommunicate OK [08:10:04]wFMCommunicate request_size=255 [08:10:04]MH_SAM_APDU [08:10: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 5F D9 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1E 85 02 00 35 04 06 00 8B [08:10:04]Write to MH i2c: E2 02 01 2A 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 5F D9 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1E 85 02 00 35 04 06 00 8B 00 00 70 [08:10:04]Write i2c OK [08:10:04]MH_I2C_Read... [08:10:04]OFD Sender: No OFD packet to send [08:10:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:10:04]Read from MH i2c: E2 [08:10:04]MH_I2C_Read... [08:10:04]Read from MH i2c: E2 03 00 [08:10:04]MH_I2C_Read... [08:10:04]Read from MH i2c: E2 03 00 2A 1B 00 90 00 B9 [08:10:04]RAPDU: 90 00 [08:10:04]wFMCommunicate OK [08:10:04]wFMCommunicate request_size=10 [08:10:04]MH_SAM_APDU [08:10:04]CAPDU: 80 0D 02 02 05 D5 5F 04 EC 51 [08:10:04]Write to MH i2c: E2 0D 00 2B 1B 80 0D 02 02 05 00 D5 5F 04 EC 51 00 00 3F [08:10:04]Write i2c OK [08:10:04]MH_I2C_Read... [08:10:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:10:04]Read from MH i2c: E2 [08:10:04]MH_I2C_Read... [08:10:04]Read from MH i2c: E2 03 00 [08:10:04]MH_I2C_Read... [08:10:04]Read from MH i2c: E2 03 00 2B 1B 00 90 00 BA [08:10:04]RAPDU: 90 00 [08:10:04]wFMCommunicate OK [08:10:04]wFMCommunicate request_size=4 [08:10:04]MH_SAM_APDU [08:10:04]CAPDU: 80 0D 03 02 [08:10:04]Write to MH i2c: E2 08 00 2C 1B 80 0D 03 02 00 00 00 00 C2 [08:10:04]Write i2c OK [08:10:04]MH_I2C_Read... [08:10:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:10:04]Read from MH i2c: E2 [08:10:04]MH_I2C_Read... [08:10:04]Read from MH i2c: E2 0B 00 [08:10:04]MH_I2C_Read... [08:10:04]Read from MH i2c: E2 0B 00 2C 1B 00 13 D2 EC 98 DE B1 4C CF 90 00 D6 [08:10:04]RAPDU: 13 D2 EC 98 DE B1 4C CF 90 00 [08:10:04]wFMCommunicate OK [08:10:04]SAM_PROTO_SignData done [08:10:04]FM_MakeSignedData done [08:10:04]CreateOFDProtocolMessage [08:10:04]wFMCommunicate request_size=4 [08:10:04]MH_SAM_APDU [08:10:04]CAPDU: 80 11 00 00 [08:10:04]Write to MH i2c: E2 08 00 2D 1B 80 11 00 00 00 00 00 00 C2 [08:10:04]Write i2c OK [08:10:04]MH_I2C_Read... [08:10:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:10:04]Read from MH i2c: E2 [08:10:04]MH_I2C_Read... [08:10:04]Read from MH i2c: E2 17 00 [08:10:04]MH_I2C_Read... [08:10:04]Read from MH i2c: E2 17 00 2D 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 18 [08:10:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:10:04]wFMCommunicate OK [08:10:04]CreateOFDProtocolMessage done [08:10:04]OFDSenderStorePacket 165150 [08:10:04]StoreOFDPacket docnum=165150 [08:10:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 BC C1 07 01 B2 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 5F D9 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1E 85 02 00 35 04 06 00 8B D5 5F 04 EC 51 13 D2 EC 98 DE B1 4C CF [08:10:04]CheckFolder [08:10:04]dirname=/storage/ofd_packets [08:10:04]CheckFolder done [08:10:04]ProducePacketName [08:10:04]name=ofd_packets/00165150 [08:10:04]NVStorageSaveData ofd_packets/00165150 [08:10:04]File name is /storage/ofd_packets/00165150 [08:10:04]Write 301 bytes [08:10:04]NVStorageSaveData done [08:10:04]OFDSenderStorePacket done [08:10:04]KKMCreateOFDPacket done [08:10:04]NVStorageSaveData kkm_last_timestamp [08:10:04]File name is /storage/kkm_last_timestamp [08:10:04]Write 4 bytes [08:10:04]NVStorageSaveData done [08:10:04]ExternCall_PrintAddStr [08:10:04]wPrintStart [08:10:04]Write to MH i2c: 01 00 00 2E 1B 49 [08:10:04]Write i2c OK [08:10:04]MH_I2C_Read... [08:10:04]Read from MH i2c: 01 [08:10:04]MH_I2C_Read... [08:10:04]Read from MH i2c: 01 07 00 [08:10:04]MH_I2C_Read... [08:10:04]Read from MH i2c: 01 07 00 2E 1B 00 00 00 00 00 FF 0F 5E [08:10:04]RasterBufferAndPrint [08:10:04]line Счет N : (1)459251 [08:10:04]line ИНН: 02508201610067 [08:10:04]line Контрольно-Кассовый Чек [08:10:04]line ПРОДАЖА [08:10:04]line ТРК (МРК, ГНК) : 22 [08:10:04]line Товар: 2710124130 [08:10:04]line Аи-92-К-5 [08:10:04]line 7.600 * 65.80 [08:10:04]line = 500.08 [08:10:04]line НДС 12% НСП 1% [08:10:04]line > о реализуемом товаре [08:10:04]line ОКРУГЛЕНИЕ: -0.08 [08:10:04]line ИТОГО: 500.00 [08:10:04]line Внесено: 500.00 [08:10:04]line СДАЧА: 0.00 [08:10:04]line НСП 1% : 4.42 [08:10:04]line НДС 12% : 53.11 [08:10:04]line Наличными: 500.00 [08:10:04]line Безнал.: 0.00 [08:10:04]line Место: АЗС № 72 "Партнер Нефть" [08:10:04]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [08:10:04]line СНО: Общий режим [08:10:04]line Чек 23 15.07.2024 08:10 [08:10:04]line Смена: 448 ФФД: 1.0 [08:10:04]line ЗНМ: 0300000160 [08:10:04]line РНМ: 0000000000090829 [08:10:04]line Версия ККМ: 001 [08:10:04]line ФМ: 0000000000874718 [08:10:04]line ФД: 165150 [08:10:04]line ФПД: 153748538453073 [08:10:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T081007&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165150&fm=153748538453073&tin=02508201610067®Number=0000000000090829&sum=50000 [08:10:05]OFD Sender: Processing packet 165150 [packets to send 106, broken 105] [08:10:05]ProducePacketName [08:10:05]name=ofd_packets/00165150 [08:10:05]OFD Sender: To server: pG, [08:10:05]CommunicateWithHost lk.salyk.kg:30040 [08:10:05]ConnectInit lk.salyk.kg [08:10:05]written 0, free lines is 4095 [08:10:05]Connected sock=10 [08:10: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 37 31 38 0F 01 00 00 BC C1 07 01 B2 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 5F D9 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1E 85 02 00 35 04 06 00 8B D5 5F 04 EC 51 13 D2 EC 98 DE B1 4C CF [08:10:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 70 D5 47 00 C4 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1E 85 02 00 F4 03 04 00 EA 7F 94 66 B6 04 01 00 00 CD 67 A4 C4 29 58 60 46 [08:10:05]CommunicateWithHost err = 0 [08:10:05]CheckOFDResponse [08:10:05]1017 (14) - 77093643461234 [08:10:05]1041 (16) - 0000000000874718 [08:10:05]1040 (4) - 165150 [08:10:05]1012 (4) - 15.07.2024 01:48 [08:10:05]1206 (1) - 0 [08:10:05]OFD Sender: Remove packet 165150 [08:10:05]ProducePacketName [08:10:05]name=ofd_packets/00165150 [08:10:05]NVStorageDeleteData [08:10:05]Write to MH i2c: 01 00 00 58 1B 73 [08:10:05]Write i2c OK [08:10:05]MH_I2C_Read... [08:10:05]Read from MH i2c: 01 [08:10:05]MH_I2C_Read... [08:10:05]Read from MH i2c: 01 07 00 [08:10:05]MH_I2C_Read... [08:10:05]Read from MH i2c: 01 07 00 58 1B 00 00 00 00 00 F3 0C 79 [08:10:05]RasterBufferAndPrint [08:10:05]line [08:10:05]line [08:10:05]line [08:10:05]line [08:10:05]line [08:10:05]written 0, free lines is 3322 [08:10:05]MH_Cut [08:10:05]Write to MH i2c: D1 01 00 5F 1B 01 4C [08:10:05]Write i2c OK [08:10:05]MH_I2C_Read... [08:10:05]Read from MH i2c: D1 [08:10:05]MH_I2C_Read... [08:10:05]Read from MH i2c: D1 01 00 [08:10:05]MH_I2C_Read... [08:10:05]Read from MH i2c: D1 01 00 5F 1B 00 4B [08:10:05]Write to MH i2c: 01 00 00 60 1B 7B [08:10:05]Write i2c OK [08:10:05]MH_I2C_Read... [08:10:05]OFD Sender: No OFD packet to send [08:10:06]*** Cut start [08:10:06]*** Partial cut [08:10:06]*** CUTSNS_PIN = 1 [08:10:06]*** CUTSNS_PIN = 0 [08:10:06]*** Brake cut motor [08:10:06]Read from MH i2c: 01 [08:10:06]MH_I2C_Read... [08:10:06]*** Stop cut motor [08:10:06]*** Cut end [08:10:06]Read from MH i2c: 01 07 00 [08:10:06]MH_I2C_Read... [08:10:06]Read from MH i2c: 01 07 00 60 1B 00 00 00 00 00 FF 0F 90 [08:10:06]process_action close_receipt done [08:10:06]requested_data is exist [08:10:06]produce_requested_data [08:10:06]requested_item fm.sn is exist - process it [08:10:06]wFMCommunicate request_size=4 [08:10:06]MH_SAM_APDU [08:10:06]CAPDU: 80 11 00 00 [08:10:06]Write to MH i2c: E2 08 00 61 1B 80 11 00 00 00 00 00 00 F6 [08:10:06]Write i2c OK [08:10:06]MH_I2C_Read... [08:10:06]Read from MH i2c: E2 [08:10:06]MH_I2C_Read... [08:10:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:10:06]Read from MH i2c: E2 17 00 [08:10:06]MH_I2C_Read... [08:10:06]Read from MH i2c: E2 17 00 61 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4C [08:10:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:10:06]wFMCommunicate OK [08:10:06]requested_item fd.num is exist - process it [08:10:06]SAM_PROTO_GetFieldsCounters [08:10:06]wFMCommunicate request_size=4 [08:10:06]MH_SAM_APDU [08:10:06]CAPDU: 80 13 00 00 [08:10:06]Write to MH i2c: E2 08 00 62 1B 80 13 00 00 00 00 00 00 F9 [08:10:06]Write i2c OK [08:10:06]MH_I2C_Read... [08:10:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:10:06]Read from MH i2c: E2 [08:10:06]MH_I2C_Read... [08:10:06]Read from MH i2c: E2 62 00 [08:10:06]MH_I2C_Read... [08:10:06]Read from MH i2c: E2 62 00 62 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1E 85 02 00 0E 04 04 00 C0 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 CB [08:10:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1E 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:10:07]wFMCommunicate OK [08:10:07]SAM_PROTO_GetFieldsCounters done [08:10:07]requested_item shift.num is exist - process it [08:10:07]requested_item shift.opened is exist - process it [08:10:07]req_shift_opened [08:10:07]FM_GetShiftState [08:10:07]SAM_PROTO_GetShiftState [08:10:07]wFMCommunicate request_size=4 [08:10:07]MH_SAM_APDU [08:10:07]CAPDU: 80 13 01 00 [08:10:07]Write to MH i2c: E2 08 00 63 1B 80 13 01 00 00 00 00 00 FB [08:10:07]Write i2c OK [08:10:07]MH_I2C_Read... [08:10:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:10:07]Read from MH i2c: E2 [08:10:07]MH_I2C_Read... [08:10:07]Read from MH i2c: E2 0E 00 [08:10:07]MH_I2C_Read... [08:10:07]Read from MH i2c: E2 0E 00 63 1B 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 D4 [08:10:07]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [08:10:07]wFMCommunicate OK [08:10:07]SAM_PROTO_GetShiftState done [08:10:07]FM_GetShiftState done [08:10:07]req_shift_opened done [08:10:07]requested_item shift.open_date is exist - process it [08:10:07]req_shift_open_date [08:10:07]req_shift_open_date done [08:10:07]produce_requested_data done [08:10:07]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165150,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [08:10:07]process_action_free close_receipt [08:10:07]json_value_free [08:10:07]json_value_free done [08:10:07]process_json_proto returns [08:10:07]Send response to host [08:10:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165150,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [08:10:07]free response buf [08:10:07]execute_script done [08:10:07]execute_script returns [08:10:07]free content buf [08:10:07]Sock 9.Close socket [08:10:07]Sock 9.Thread stoped [08:10:10]OFD Sender: No OFD packet to send [08:10:15]OFD Sender: No OFD packet to send [08:10:20]OFD Sender: No OFD packet to send [08:10:25]OFD Sender: No OFD packet to send [08:10:30]OFD Sender: No OFD packet to send [08:10:35]OFD Sender: No OFD packet to send [08:10:40]OFD Sender: No OFD packet to send [08:10:45]OFD Sender: No OFD packet to send [08:10:50]OFD Sender: No OFD packet to send [08:10:55]OFD Sender: No OFD packet to send [08:11:00]OFD Sender: No OFD packet to send [08:11:05]OFD Sender: No OFD packet to send [08:11:10]OFD Sender: No OFD packet to send [08:11:15]OFD Sender: No OFD packet to send [08:11:20]OFD Sender: No OFD packet to send [08:11:26]OFD Sender: No OFD packet to send [08:11:31]OFD Sender: No OFD packet to send [08:11:36]OFD Sender: No OFD packet to send [08:11:41]OFD Sender: No OFD packet to send [08:11:46]OFD Sender: No OFD packet to send [08:11:51]OFD Sender: No OFD packet to send [08:11:56]OFD Sender: No OFD packet to send [08:12:01]OFD Sender: No OFD packet to send [08:12:06]OFD Sender: No OFD packet to send [08:12:11]OFD Sender: No OFD packet to send [08:12:16]OFD Sender: No OFD packet to send [08:12:21]OFD Sender: No OFD packet to send [08:12:26]OFD Sender: No OFD packet to send [08:12:31]OFD Sender: No OFD packet to send [08:12:36]OFD Sender: No OFD packet to send [08:12:41]OFD Sender: No OFD packet to send [08:12:46]OFD Sender: No OFD packet to send [08:12:51]OFD Sender: No OFD packet to send [08:12:56]OFD Sender: No OFD packet to send [08:13:01]OFD Sender: No OFD packet to send [08:13:06]OFD Sender: No OFD packet to send [08:13:11]OFD Sender: No OFD packet to send [08:13:16]OFD Sender: No OFD packet to send [08:13:21]OFD Sender: No OFD packet to send [08:13:26]OFD Sender: No OFD packet to send [08:13:31]OFD Sender: No OFD packet to send [08:13:36]OFD Sender: No OFD packet to send [08:13:41]OFD Sender: No OFD packet to send [08:13:46]OFD Sender: No OFD packet to send [08:13:51]OFD Sender: No OFD packet to send [08:13:56]OFD Sender: No OFD packet to send [08:14:01]OFD Sender: No OFD packet to send [08:14:06]OFD Sender: No OFD packet to send [08:14:11]OFD Sender: No OFD packet to send [08:14:16]OFD Sender: No OFD packet to send [08:14:21]OFD Sender: No OFD packet to send [08:14:26]OFD Sender: No OFD packet to send [08:14:31]OFD Sender: No OFD packet to send [08:14:36]OFD Sender: No OFD packet to send [08:14:41]OFD Sender: No OFD packet to send [08:14:46]OFD Sender: No OFD packet to send [08:14:51]OFD Sender: No OFD packet to send [08:14:56]OFD Sender: No OFD packet to send [08:15:01]OFD Sender: No OFD packet to send [08:15:06]OFD Sender: No OFD packet to send [08:15:11]OFD Sender: No OFD packet to send [08:15:16]OFD Sender: No OFD packet to send [08:15:21]OFD Sender: No OFD packet to send [08:15:26]OFD Sender: No OFD packet to send [08:15:31]OFD Sender: No OFD packet to send [08:15:36]OFD Sender: No OFD packet to send [08:15:41]OFD Sender: No OFD packet to send [08:15:46]OFD Sender: No OFD packet to send [08:15:51]OFD Sender: No OFD packet to send [08:15:56]OFD Sender: No OFD packet to send [08:16:01]OFD Sender: No OFD packet to send [08:16:06]OFD Sender: No OFD packet to send [08:16:11]OFD Sender: No OFD packet to send [08:16:16]OFD Sender: No OFD packet to send [08:16:21]OFD Sender: No OFD packet to send [08:16:26]OFD Sender: No OFD packet to send [08:16:31]OFD Sender: No OFD packet to send [08:16:36]OFD Sender: No OFD packet to send [08:16:41]OFD Sender: No OFD packet to send [08:16:46]OFD Sender: No OFD packet to send [08:16:51]OFD Sender: No OFD packet to send [08:16:56]OFD Sender: No OFD packet to send [08:17:01]OFD Sender: No OFD packet to send [08:17:06]OFD Sender: No OFD packet to send [08:17:11]OFD Sender: No OFD packet to send [08:17:16]OFD Sender: No OFD packet to send [08:17:21]OFD Sender: No OFD packet to send [08:17:26]OFD Sender: No OFD packet to send [08:17:31]OFD Sender: No OFD packet to send [08:17:36]OFD Sender: No OFD packet to send [08:17:41]OFD Sender: No OFD packet to send [08:17:46]OFD Sender: No OFD packet to send [08:17:51]OFD Sender: No OFD packet to send [08:17:56]OFD Sender: No OFD packet to send [08:18:01]OFD Sender: No OFD packet to send [08:18:06]OFD Sender: No OFD packet to send [08:18:11]OFD Sender: No OFD packet to send [08:18:16]OFD Sender: No OFD packet to send [08:18:21]OFD Sender: No OFD packet to send [08:18:26]OFD Sender: No OFD packet to send [08:18:31]OFD Sender: No OFD packet to send [08:18:36]OFD Sender: No OFD packet to send [08:18:41]OFD Sender: No OFD packet to send [08:18:46]OFD Sender: No OFD packet to send [08:18:51]OFD Sender: No OFD packet to send [08:18:56]OFD Sender: No OFD packet to send [08:19:01]OFD Sender: No OFD packet to send [08:19:06]OFD Sender: No OFD packet to send [08:19:11]OFD Sender: No OFD packet to send [08:19:16]OFD Sender: No OFD packet to send [08:19:21]OFD Sender: No OFD packet to send [08:19:26]OFD Sender: No OFD packet to send [08:19:31]OFD Sender: No OFD packet to send [08:19:36]OFD Sender: No OFD packet to send [08:19:41]OFD Sender: No OFD packet to send [08:19:46]OFD Sender: No OFD packet to send [08:19:51]OFD Sender: No OFD packet to send [08:19:56]OFD Sender: No OFD packet to send [08:20:01]OFD Sender: No OFD packet to send [08:20:06]OFD Sender: No OFD packet to send [08:20:11]OFD Sender: No OFD packet to send [08:20:16]OFD Sender: No OFD packet to send [08:20:21]OFD Sender: No OFD packet to send [08:20:26]OFD Sender: No OFD packet to send [08:20:31]OFD Sender: No OFD packet to send [08:20:36]OFD Sender: No OFD packet to send [08:20:41]OFD Sender: No OFD packet to send [08:20:46]OFD Sender: No OFD packet to send [08:20:51]OFD Sender: No OFD packet to send [08:20:56]OFD Sender: No OFD packet to send [08:21:01]OFD Sender: No OFD packet to send [08:21:06]OFD Sender: No OFD packet to send [08:21:11]OFD Sender: No OFD packet to send [08:21:16]OFD Sender: No OFD packet to send [08:21:21]OFD Sender: No OFD packet to send [08:21:26]OFD Sender: No OFD packet to send [08:21:31]OFD Sender: No OFD packet to send [08:21:36]OFD Sender: No OFD packet to send [08:21:41]OFD Sender: No OFD packet to send [08:21:46]OFD Sender: No OFD packet to send [08:21:51]OFD Sender: No OFD packet to send [08:21:56]OFD Sender: No OFD packet to send [08:22:01]OFD Sender: No OFD packet to send [08:22:06]OFD Sender: No OFD packet to send [08:22:11]OFD Sender: No OFD packet to send [08:22:16]OFD Sender: No OFD packet to send [08:22:21]OFD Sender: No OFD packet to send [08:22:26]OFD Sender: No OFD packet to send [08:22:31]OFD Sender: No OFD packet to send [08:22:36]OFD Sender: No OFD packet to send [08:22:41]OFD Sender: No OFD packet to send [08:22:46]OFD Sender: No OFD packet to send [08:22:51]OFD Sender: No OFD packet to send [08:22:56]OFD Sender: No OFD packet to send [08:23:01]OFD Sender: No OFD packet to send [08:23:06]OFD Sender: No OFD packet to send [08:23:08]accept exits with 7 [08:23:08]New connection [08:23:08]New thread 3066928484 created [08:23:08]Thread 3066785124 joined [08:23:08]Waiting for new connection... [08:23:08] Sock 7.Parse request [08:23:08]Sock 7.Check first char [08:23:08]Sock 7.First char is OK [08:23:08]request: POST /json_proto HTTP/1.0 [08:23:08]Method: POST [08:23:08]URL: /json_proto [08:23:08]Method is POST - this is cgi request [08:23:08]url: /json_proto [08:23:08]query_string will be loaded in cgi processing [08:23:08]execute_cgi json_proto POST (null) [08:23:08]execute_cgi path=json_proto method=POST [08:23:08]POST find Content-Length [08:23:08]Host: 172.17.56.4:8080 [08:23:08]Content-Length: 674 [08:23:08]Content-Type: application/json [08:23:08] [08:23:08]POST finish read [08:23:08]Found Content-Length = 674 [08:23:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459252", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:23:08]execute_script... [08:23: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)459252", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:23:08]POST & json_proto [08:23:08]process_json_proto [08:23:08]json parsed OK: [08:23:08]protocol is kg_v1.0 [08:23:08]action value=close_receipt [08:23:08]process_action close_receipt [08:23:08]cmd_close_receipt [08:23:08]MH_GetDate [08:23:08]Write to MH i2c: F0 00 00 64 1B 6E [08:23:08]Write i2c OK [08:23:08]MH_I2C_Read... [08:23:08]Read from MH i2c: F0 [08:23:08]MH_I2C_Read... [08:23:08]Read from MH i2c: F0 09 00 [08:23:08]MH_I2C_Read... [08:23:08]Read from MH i2c: F0 09 00 64 1B 00 70 DC 94 66 C9 DC B2 64 78 [08:23:08]GetLastDocTimeStamp 1721031007 [08:23:08]current date 1721031792 [08:23:08]FM_GetShiftState [08:23:08]SAM_PROTO_GetShiftState [08:23:08]wFMCommunicate request_size=4 [08:23:08]MH_SAM_APDU [08:23:08]CAPDU: 80 13 01 00 [08:23:08]Write to MH i2c: E2 08 00 65 1B 80 13 01 00 00 00 00 00 FD [08:23:08]Write i2c OK [08:23:08]MH_I2C_Read... [08:23:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:08]Read from MH i2c: E2 [08:23:08]MH_I2C_Read... [08:23:08]Read from MH i2c: E2 0E 00 [08:23:08]MH_I2C_Read... [08:23:08]Read from MH i2c: E2 0E 00 65 1B 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 D6 [08:23:08]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [08:23:08]wFMCommunicate OK [08:23:08]SAM_PROTO_GetShiftState done [08:23:08]FM_GetShiftState done [08:23:08]opened in 1721003876 [08:23:08]opened+sec_in_day 1721090276 [08:23:08]quantity*price = 50042 [08:23:08]sum+1 = 50043 [08:23:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 24 15.07.2024 08:23 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165151 ФПД: 157393651040872 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T082312&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165151&fm=157393651040872&tin=02508201610067®Number=0000000000090829&sum=50000 [08:23:09]StoreToDocumentArchive [08:23:09]shift 448 fd 165151 [08:23:09]save to /storage/0448/doc_00165151 [08:23:09]save last doc name /storage/0448/doc_00165151 to /storage/kkm_last_doc_name [08:23:09]save OK [08:23:09]Clear old archive folders... [08:23:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:23:09]tlvbuf is 013613C0 [08:23:09]SAM_PROTO_ClearQueue [08:23:09]wFMCommunicate request_size=4 [08:23:09]MH_SAM_APDU [08:23:09]CAPDU: 80 09 00 00 [08:23:09]Write to MH i2c: E2 08 00 72 1B 80 09 00 00 00 00 00 00 FF [08:23:09]Write i2c OK [08:23:09]MH_I2C_Read... [08:23:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:23:09]Read from MH i2c: E2 [08:23:09]MH_I2C_Read... [08:23:09]Read from MH i2c: E2 03 00 [08:23:09]MH_I2C_Read... [08:23:09]Read from MH i2c: E2 03 00 72 1B 00 90 00 01 [08:23:09]RAPDU: 90 00 [08:23:09]wFMCommunicate OK [08:23:09]SAM_PROTO_ClearQueue done [08:23:09]KKMCreateOFDPacket [08:23:09]OFDProtocolAddRootSTLVToBuf [08:23:09]FM_MakeSignedData [08:23:09]FM_MakeSignedData [08:23:09]SAM_PROTO_SignData [08:23:09]wFMCommunicate request_size=4 [08:23:09]MH_SAM_APDU [08:23:09]CAPDU: 80 0D 01 02 [08:23:09]Write to MH i2c: E2 08 00 73 1B 80 0D 01 02 00 00 00 00 07 [08:23:09]Write i2c OK [08:23:09]MH_I2C_Read... [08:23:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:23:09]Read from MH i2c: E2 [08:23:09]MH_I2C_Read... [08:23:09]Read from MH i2c: E2 03 00 [08:23:09]MH_I2C_Read... [08:23:09]Read from MH i2c: E2 03 00 73 1B 00 90 00 02 [08:23:09]RAPDU: 90 00 [08:23:09]wFMCommunicate OK [08:23:09]wFMCommunicate request_size=255 [08:23:09]MH_SAM_APDU [08:23:09]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A 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 18 00 00 00 F4 03 04 00 70 DC 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1F 85 02 00 35 04 06 00 8F 26 10 A9 [08:23:09]Write to MH i2c: E2 02 01 74 1B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A 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 18 00 00 00 F4 03 04 00 70 DC 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1F 85 02 00 35 04 06 00 8F 26 10 A9 00 00 0F [08:23:09]Write i2c OK [08:23:09]MH_I2C_Read... [08:23:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:23:09]Read from MH i2c: E2 [08:23:09]MH_I2C_Read... [08:23:09]Read from MH i2c: E2 03 00 [08:23:09]MH_I2C_Read... [08:23:09]Read from MH i2c: E2 03 00 74 1B 00 90 00 03 [08:23:09]RAPDU: 90 00 [08:23:09]wFMCommunicate OK [08:23:09]wFMCommunicate request_size=7 [08:23:09]MH_SAM_APDU [08:23:09]CAPDU: 80 0D 02 02 02 02 68 [08:23:09]Write to MH i2c: E2 0A 00 75 1B 80 0D 02 02 02 00 02 68 00 00 78 [08:23:09]Write i2c OK [08:23:09]MH_I2C_Read... [08:23:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:23:09]Read from MH i2c: E2 [08:23:09]MH_I2C_Read... [08:23:09]Read from MH i2c: E2 03 00 [08:23:09]MH_I2C_Read... [08:23:09]Read from MH i2c: E2 03 00 75 1B 00 90 00 04 [08:23:09]RAPDU: 90 00 [08:23:09]wFMCommunicate OK [08:23:09]wFMCommunicate request_size=4 [08:23:09]MH_SAM_APDU [08:23:09]CAPDU: 80 0D 03 02 [08:23:09]Write to MH i2c: E2 08 00 76 1B 80 0D 03 02 00 00 00 00 0C [08:23:09]Write i2c OK [08:23:09]MH_I2C_Read... [08:23:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:23:10]Read from MH i2c: E2 [08:23:10]MH_I2C_Read... [08:23:10]Read from MH i2c: E2 0B 00 [08:23:10]MH_I2C_Read... [08:23:10]Read from MH i2c: E2 0B 00 76 1B 00 F3 15 6E 53 A5 07 64 3A 90 00 20 [08:23:10]RAPDU: F3 15 6E 53 A5 07 64 3A 90 00 [08:23:10]wFMCommunicate OK [08:23:10]SAM_PROTO_SignData done [08:23:10]FM_MakeSignedData done [08:23:10]CreateOFDProtocolMessage [08:23:10]wFMCommunicate request_size=4 [08:23:10]MH_SAM_APDU [08:23:10]CAPDU: 80 11 00 00 [08:23:10]Write to MH i2c: E2 08 00 77 1B 80 11 00 00 00 00 00 00 0C [08:23:10]Write i2c OK [08:23:10]MH_I2C_Read... [08:23:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:10]Read from MH i2c: E2 [08:23:10]MH_I2C_Read... [08:23:10]Read from MH i2c: E2 17 00 [08:23:10]MH_I2C_Read... [08:23:10]Read from MH i2c: E2 17 00 77 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 62 [08:23:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:23:10]wFMCommunicate OK [08:23:10]CreateOFDProtocolMessage done [08:23:10]OFDSenderStorePacket 165151 [08:23:10]StoreOFDPacket docnum=165151 [08:23:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 F2 5B 04 01 FB 11 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A 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 18 00 00 00 F4 03 04 00 70 DC 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1F 85 02 00 35 04 06 00 8F 26 10 A9 02 68 F3 15 6E 53 A5 07 64 3A [08:23:10]CheckFolder [08:23:10]dirname=/storage/ofd_packets [08:23:10]CheckFolder done [08:23:10]ProducePacketName [08:23:10]name=ofd_packets/00165151 [08:23:10]NVStorageSaveData ofd_packets/00165151 [08:23:10]File name is /storage/ofd_packets/00165151 [08:23:10]Write 298 bytes [08:23:10]NVStorageSaveData done [08:23:10]OFDSenderStorePacket done [08:23:10]KKMCreateOFDPacket done [08:23:10]NVStorageSaveData kkm_last_timestamp [08:23:10]File name is /storage/kkm_last_timestamp [08:23:10]Write 4 bytes [08:23:10]NVStorageSaveData done [08:23:10]ExternCall_PrintAddStr [08:23:10]wPrintStart [08:23:10]Write to MH i2c: 01 00 00 78 1B 93 [08:23:10]Write i2c OK [08:23:10]MH_I2C_Read... [08:23:10]Read from MH i2c: 01 [08:23:10]MH_I2C_Read... [08:23:10]Read from MH i2c: 01 07 00 [08:23:10]MH_I2C_Read... [08:23:10]Read from MH i2c: 01 07 00 78 1B 00 00 00 00 00 FF 0F A8 [08:23:10]RasterBufferAndPrint [08:23:10]line Счет N : (1)459252 [08:23:10]line ИНН: 02508201610067 [08:23:10]line Контрольно-Кассовый Чек [08:23:10]line ПРОДАЖА [08:23:10]line ТРК (МРК, ГНК) : 11 [08:23:10]line Товар: 2710194210 [08:23:10]line ДТ-К-5 [08:23:10]line 6.960 * 71.90 [08:23:10]line = 500.42 [08:23:10]line НДС 12% НСП 1% [08:23:10]line > о реализуемом товаре [08:23:10]line ОКРУГЛЕНИЕ: -0.42 [08:23:10]line ИТОГО: 500.00 [08:23:10]line Внесено: 500.00 [08:23:10]line СДАЧА: 0.00 [08:23:10]line НСП 1% : 4.43 [08:23:10]line НДС 12% : 53.14 [08:23:10]line Наличными: 500.00 [08:23:10]line Безнал.: 0.00 [08:23:10]line Место: АЗС № 72 "Партнер Нефть" [08:23:10]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [08:23:10]line СНО: Общий режим [08:23:10]line Чек 24 15.07.2024 08:23 [08:23:10]line Смена: 448 ФФД: 1.0 [08:23:10]line ЗНМ: 0300000160 [08:23:10]line РНМ: 0000000000090829 [08:23:10]line Версия ККМ: 001 [08:23:10]line ФМ: 0000000000874718 [08:23:10]line ФД: 165151 [08:23:10]line ФПД: 157393651040872 [08:23:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T082312&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165151&fm=157393651040872&tin=02508201610067®Number=0000000000090829&sum=50000 [08:23:10]OFD Sender: Processing packet 165151 [packets to send 106, broken 105] [08:23:10]ProducePacketName [08:23:10]name=ofd_packets/00165151 [08:23:10]OFD Sender: To server: pG, [08:23:10]CommunicateWithHost lk.salyk.kg:30040 [08:23:10]ConnectInit lk.salyk.kg [08:23:10]written 0, free lines is 4095 [08:23:10]Connected sock=10 [08:23: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 37 31 38 0C 01 00 00 F2 5B 04 01 FB 11 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A 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 18 00 00 00 F4 03 04 00 70 DC 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1F 85 02 00 35 04 06 00 8F 26 10 A9 02 68 F3 15 6E 53 A5 07 64 3A [08:23:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 1B 33 47 00 95 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 37 31 38 10 04 04 00 1F 85 02 00 F4 03 04 00 FB 82 94 66 B6 04 01 00 00 22 3E 71 27 8F 5F BF 3E [08:23:10]CommunicateWithHost err = 0 [08:23:10]CheckOFDResponse [08:23:10]1017 (14) - 77093643461234 [08:23:10]1041 (16) - 0000000000874718 [08:23:10]1040 (4) - 165151 [08:23:10]1012 (4) - 15.07.2024 02:01 [08:23:10]1206 (1) - 0 [08:23:10]OFD Sender: Remove packet 165151 [08:23:10]ProducePacketName [08:23:10]name=ofd_packets/00165151 [08:23:10]NVStorageDeleteData [08:23:10]Write to MH i2c: 01 00 00 A2 1B BD [08:23:10]Write i2c OK [08:23:10]MH_I2C_Read... [08:23:10]Read from MH i2c: 01 [08:23:10]MH_I2C_Read... [08:23:10]Read from MH i2c: 01 07 00 [08:23:10]MH_I2C_Read... [08:23:10]Read from MH i2c: 01 07 00 A2 1B 00 00 00 00 00 EE 0C BE [08:23:10]RasterBufferAndPrint [08:23:10]line [08:23:10]line [08:23:10]line [08:23:10]line [08:23:10]line [08:23:10]written 0, free lines is 3316 [08:23:10]MH_Cut [08:23:10]Write to MH i2c: D1 01 00 A9 1B 01 96 [08:23:10]Write i2c OK [08:23:10]MH_I2C_Read... [08:23:10]Read from MH i2c: D1 [08:23:10]MH_I2C_Read... [08:23:10]Read from MH i2c: D1 01 00 [08:23:10]MH_I2C_Read... [08:23:10]Read from MH i2c: D1 01 00 A9 1B 00 95 [08:23:10]Write to MH i2c: 01 00 00 AA 1B C5 [08:23:10]Write i2c OK [08:23:10]MH_I2C_Read... [08:23:11]OFD Sender: No OFD packet to send [08:23:11]*** Cut start [08:23:11]*** Partial cut [08:23:11]*** CUTSNS_PIN = 1 [08:23:11]*** CUTSNS_PIN = 0 [08:23:11]*** Brake cut motor [08:23:12]Read from MH i2c: 01 [08:23:12]MH_I2C_Read... [08:23:12]*** Stop cut motor [08:23:12]*** Cut end [08:23:12]Read from MH i2c: 01 07 00 [08:23:12]MH_I2C_Read... [08:23:12]Read from MH i2c: 01 07 00 AA 1B 00 00 00 00 00 FF 0F DA [08:23:12]process_action close_receipt done [08:23:12]requested_data is exist [08:23:12]produce_requested_data [08:23:12]requested_item fm.sn is exist - process it [08:23:12]wFMCommunicate request_size=4 [08:23:12]MH_SAM_APDU [08:23:12]CAPDU: 80 11 00 00 [08:23:12]Write to MH i2c: E2 08 00 AB 1B 80 11 00 00 00 00 00 00 40 [08:23:12]Write i2c OK [08:23:12]MH_I2C_Read... [08:23:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:12]Read from MH i2c: E2 [08:23:12]MH_I2C_Read... [08:23:12]Read from MH i2c: E2 17 00 [08:23:12]MH_I2C_Read... [08:23:12]Read from MH i2c: E2 17 00 AB 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 96 [08:23:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:23:12]wFMCommunicate OK [08:23:12]requested_item fd.num is exist - process it [08:23:12]SAM_PROTO_GetFieldsCounters [08:23:12]wFMCommunicate request_size=4 [08:23:12]MH_SAM_APDU [08:23:12]CAPDU: 80 13 00 00 [08:23:12]Write to MH i2c: E2 08 00 AC 1B 80 13 00 00 00 00 00 00 43 [08:23:12]Write i2c OK [08:23:12]MH_I2C_Read... [08:23:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:23:12]Read from MH i2c: E2 [08:23:12]MH_I2C_Read... [08:23:12]Read from MH i2c: E2 62 00 [08:23:12]MH_I2C_Read... [08:23:12]Read from MH i2c: E2 62 00 AC 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1F 85 02 00 0E 04 04 00 C0 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 19 [08:23: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1F 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:23:12]wFMCommunicate OK [08:23:12]SAM_PROTO_GetFieldsCounters done [08:23:12]requested_item shift.num is exist - process it [08:23:12]requested_item shift.opened is exist - process it [08:23:12]req_shift_opened [08:23:12]FM_GetShiftState [08:23:12]SAM_PROTO_GetShiftState [08:23:12]wFMCommunicate request_size=4 [08:23:12]MH_SAM_APDU [08:23:12]CAPDU: 80 13 01 00 [08:23:12]Write to MH i2c: E2 08 00 AD 1B 80 13 01 00 00 00 00 00 45 [08:23:12]Write i2c OK [08:23:12]MH_I2C_Read... [08:23:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:12]Read from MH i2c: E2 [08:23:12]MH_I2C_Read... [08:23:12]Read from MH i2c: E2 0E 00 [08:23:12]MH_I2C_Read... [08:23:12]Read from MH i2c: E2 0E 00 AD 1B 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 1E [08:23:12]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [08:23:12]wFMCommunicate OK [08:23:12]SAM_PROTO_GetShiftState done [08:23:12]FM_GetShiftState done [08:23:12]req_shift_opened done [08:23:12]requested_item shift.open_date is exist - process it [08:23:12]req_shift_open_date [08:23:12]req_shift_open_date done [08:23:12]produce_requested_data done [08:23:12]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165151,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [08:23:12]process_action_free close_receipt [08:23:12]json_value_free [08:23:12]json_value_free done [08:23:12]process_json_proto returns [08:23:12]Send response to host [08:23:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165151,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [08:23:12]free response buf [08:23:12]execute_script done [08:23:12]execute_script returns [08:23:12]free content buf [08:23:12]Sock 7.Close socket [08:23:12]Sock 7.Thread stoped [08:23:16]OFD Sender: No OFD packet to send [08:23:21]OFD Sender: No OFD packet to send [08:23:26]OFD Sender: No OFD packet to send [08:23:31]OFD Sender: No OFD packet to send [08:23:36]OFD Sender: No OFD packet to send [08:23:41]OFD Sender: No OFD packet to send [08:23:46]OFD Sender: No OFD packet to send [08:23:51]OFD Sender: No OFD packet to send [08:23:56]OFD Sender: No OFD packet to send [08:24:01]OFD Sender: No OFD packet to send [08:24:06]OFD Sender: No OFD packet to send [08:24:11]OFD Sender: No OFD packet to send [08:24:16]OFD Sender: No OFD packet to send [08:24:21]OFD Sender: No OFD packet to send [08:24:26]OFD Sender: No OFD packet to send [08:24:31]OFD Sender: No OFD packet to send [08:24:36]OFD Sender: No OFD packet to send [08:24:41]OFD Sender: No OFD packet to send [08:24:46]OFD Sender: No OFD packet to send [08:24:51]OFD Sender: No OFD packet to send [08:24:56]OFD Sender: No OFD packet to send [08:25:01]OFD Sender: No OFD packet to send [08:25:06]OFD Sender: No OFD packet to send [08:25:11]OFD Sender: No OFD packet to send [08:25:16]OFD Sender: No OFD packet to send [08:25:21]OFD Sender: No OFD packet to send [08:25:26]OFD Sender: No OFD packet to send [08:25:31]OFD Sender: No OFD packet to send [08:25:36]OFD Sender: No OFD packet to send [08:25:41]OFD Sender: No OFD packet to send [08:25:46]OFD Sender: No OFD packet to send [08:25:51]OFD Sender: No OFD packet to send [08:25:56]OFD Sender: No OFD packet to send [08:26:01]OFD Sender: No OFD packet to send [08:26:06]OFD Sender: No OFD packet to send [08:26:11]OFD Sender: No OFD packet to send [08:26:16]OFD Sender: No OFD packet to send [08:26:21]OFD Sender: No OFD packet to send [08:26:26]OFD Sender: No OFD packet to send [08:26:31]OFD Sender: No OFD packet to send [08:26:36]OFD Sender: No OFD packet to send [08:26:41]OFD Sender: No OFD packet to send [08:26:46]OFD Sender: No OFD packet to send [08:26:51]OFD Sender: No OFD packet to send [08:26:56]OFD Sender: No OFD packet to send [08:27:01]OFD Sender: No OFD packet to send [08:27:06]OFD Sender: No OFD packet to send [08:27:11]OFD Sender: No OFD packet to send [08:27:16]OFD Sender: No OFD packet to send [08:27:21]OFD Sender: No OFD packet to send [08:27:26]OFD Sender: No OFD packet to send [08:27:31]OFD Sender: No OFD packet to send [08:27:36]OFD Sender: No OFD packet to send [08:27:41]OFD Sender: No OFD packet to send [08:27:46]OFD Sender: No OFD packet to send [08:27:51]OFD Sender: No OFD packet to send [08:27:56]OFD Sender: No OFD packet to send [08:28:01]OFD Sender: No OFD packet to send [08:28:06]OFD Sender: No OFD packet to send [08:28:11]OFD Sender: No OFD packet to send [08:28:16]OFD Sender: No OFD packet to send [08:28:21]OFD Sender: No OFD packet to send [08:28:26]OFD Sender: No OFD packet to send [08:28:31]OFD Sender: No OFD packet to send [08:28:36]OFD Sender: No OFD packet to send [08:28:41]OFD Sender: No OFD packet to send [08:28:46]OFD Sender: No OFD packet to send [08:28:51]OFD Sender: No OFD packet to send [08:28:56]OFD Sender: No OFD packet to send [08:29:01]OFD Sender: No OFD packet to send [08:29:06]OFD Sender: No OFD packet to send [08:29:11]OFD Sender: No OFD packet to send [08:29:16]OFD Sender: No OFD packet to send [08:29:21]OFD Sender: No OFD packet to send [08:29:26]OFD Sender: No OFD packet to send [08:29:31]OFD Sender: No OFD packet to send [08:29:36]OFD Sender: No OFD packet to send [08:29:41]OFD Sender: No OFD packet to send [08:29:46]OFD Sender: No OFD packet to send [08:29:51]OFD Sender: No OFD packet to send [08:29:56]OFD Sender: No OFD packet to send [08:30:01]OFD Sender: No OFD packet to send [08:30:06]OFD Sender: No OFD packet to send [08:30:11]OFD Sender: No OFD packet to send [08:30:16]OFD Sender: No OFD packet to send [08:30:21]OFD Sender: No OFD packet to send [08:30:26]OFD Sender: No OFD packet to send [08:30:31]OFD Sender: No OFD packet to send [08:30:36]OFD Sender: No OFD packet to send [08:30:41]OFD Sender: No OFD packet to send [08:30:46]OFD Sender: No OFD packet to send [08:30:51]OFD Sender: No OFD packet to send [08:30:56]OFD Sender: No OFD packet to send [08:31:01]OFD Sender: No OFD packet to send [08:31:06]OFD Sender: No OFD packet to send [08:31:11]OFD Sender: No OFD packet to send [08:31:16]OFD Sender: No OFD packet to send [08:31:21]OFD Sender: No OFD packet to send [08:31:26]OFD Sender: No OFD packet to send [08:31:30]accept exits with 9 [08:31:30]New connection [08:31:30]New thread 3066785124 created [08:31:30]Thread 3066928484 joined [08:31:30]Waiting for new connection... [08:31:30] Sock 9.Parse request [08:31:30]Sock 9.Check first char [08:31:30]Sock 9.First char is OK [08:31:30]request: POST /json_proto HTTP/1.0 [08:31:30]Method: POST [08:31:30]URL: /json_proto [08:31:30]Method is POST - this is cgi request [08:31:30]url: /json_proto [08:31:30]query_string will be loaded in cgi processing [08:31:30]execute_cgi json_proto POST (null) [08:31:30]execute_cgi path=json_proto method=POST [08:31:30]POST find Content-Length [08:31:30]Host: 172.17.56.4:8080 [08:31:30]Content-Length: 677 [08:31:30]Content-Type: application/json [08:31:30] [08:31:30]POST finish read [08:31:30]Found Content-Length = 677 [08:31:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459253", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:30]execute_script... [08:31:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459253", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:30]POST & json_proto [08:31:30]process_json_proto [08:31:30]json parsed OK: [08:31:30]protocol is kg_v1.0 [08:31:30]action value=close_receipt [08:31:30]process_action close_receipt [08:31:30]cmd_close_receipt [08:31:30]MH_GetDate [08:31:30]Write to MH i2c: F0 00 00 AE 1B B8 [08:31:30]Write i2c OK [08:31:30]MH_I2C_Read... [08:31:30]Read from MH i2c: F0 [08:31:30]MH_I2C_Read... [08:31:30]Read from MH i2c: F0 09 00 [08:31:30]MH_I2C_Read... [08:31:30]Read from MH i2c: F0 09 00 AE 1B 00 66 DE 94 66 C9 DC B2 64 BA [08:31:30]GetLastDocTimeStamp 1721031792 [08:31:30]current date 1721032294 [08:31:30]FM_GetShiftState [08:31:30]SAM_PROTO_GetShiftState [08:31:30]wFMCommunicate request_size=4 [08:31:30]MH_SAM_APDU [08:31:30]CAPDU: 80 13 01 00 [08:31:30]Write to MH i2c: E2 08 00 AF 1B 80 13 01 00 00 00 00 00 47 [08:31:30]Write i2c OK [08:31:30]MH_I2C_Read... [08:31:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:30]Read from MH i2c: E2 [08:31:30]MH_I2C_Read... [08:31:30]Read from MH i2c: E2 0E 00 [08:31:30]MH_I2C_Read... [08:31:30]Read from MH i2c: E2 0E 00 AF 1B 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 20 [08:31:30]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [08:31:30]wFMCommunicate OK [08:31:30]SAM_PROTO_GetShiftState done [08:31:30]FM_GetShiftState done [08:31:30]opened in 1721003876 [08:31:30]opened+sec_in_day 1721090276 [08:31:30]quantity*price = 40006 [08:31:30]sum+1 = 40007 [08:31:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 25 15.07.2024 08:31 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165152 ФПД: 60682612794527 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T083134&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165152&fm=60682612794527&tin=02508201610067®Number=0000000000090829&sum=40000 [08:31:31]StoreToDocumentArchive [08:31:31]shift 448 fd 165152 [08:31:31]save to /storage/0448/doc_00165152 [08:31:31]save last doc name /storage/0448/doc_00165152 to /storage/kkm_last_doc_name [08:31:31]save OK [08:31:31]Clear old archive folders... [08:31:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:31:31]tlvbuf is B6EBBDE0 [08:31:31]SAM_PROTO_ClearQueue [08:31:31]wFMCommunicate request_size=4 [08:31:31]MH_SAM_APDU [08:31:31]CAPDU: 80 09 00 00 [08:31:31]Write to MH i2c: E2 08 00 BC 1B 80 09 00 00 00 00 00 00 49 [08:31:31]Write i2c OK [08:31:31]MH_I2C_Read... [08:31:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:31:31]Read from MH i2c: E2 [08:31:31]MH_I2C_Read... [08:31:31]Read from MH i2c: E2 03 00 [08:31:31]MH_I2C_Read... [08:31:31]Read from MH i2c: E2 03 00 BC 1B 00 90 00 4B [08:31:31]RAPDU: 90 00 [08:31:31]wFMCommunicate OK [08:31:31]SAM_PROTO_ClearQueue done [08:31:31]KKMCreateOFDPacket [08:31:31]OFDProtocolAddRootSTLVToBuf [08:31:31]FM_MakeSignedData [08:31:31]FM_MakeSignedData [08:31:31]SAM_PROTO_SignData [08:31:31]wFMCommunicate request_size=4 [08:31:31]MH_SAM_APDU [08:31:31]CAPDU: 80 0D 01 02 [08:31:31]Write to MH i2c: E2 08 00 BD 1B 80 0D 01 02 00 00 00 00 51 [08:31:31]Write i2c OK [08:31:31]MH_I2C_Read... [08:31:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:31:31]Read from MH i2c: E2 [08:31:31]MH_I2C_Read... [08:31:31]Read from MH i2c: E2 03 00 [08:31:31]MH_I2C_Read... [08:31:31]Read from MH i2c: E2 03 00 BD 1B 00 90 00 4C [08:31:31]RAPDU: 90 00 [08:31:31]wFMCommunicate OK [08:31:31]wFMCommunicate request_size=255 [08:31:31]MH_SAM_APDU [08:31:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 66 DE 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 20 85 02 00 35 04 06 00 37 [08:31:31]Write to MH i2c: E2 02 01 BE 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 66 DE 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 20 85 02 00 35 04 06 00 37 00 00 A0 [08:31:31]Write i2c OK [08:31:31]MH_I2C_Read... [08:31:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:31]Read from MH i2c: E2 [08:31:31]MH_I2C_Read... [08:31:31]Read from MH i2c: E2 03 00 [08:31:31]MH_I2C_Read... [08:31:31]Read from MH i2c: E2 03 00 BE 1B 00 90 00 4D [08:31:31]RAPDU: 90 00 [08:31:31]wFMCommunicate OK [08:31:31]wFMCommunicate request_size=10 [08:31:31]MH_SAM_APDU [08:31:31]CAPDU: 80 0D 02 02 05 30 C5 94 64 9F [08:31:31]Write to MH i2c: E2 0D 00 BF 1B 80 0D 02 02 05 00 30 C5 94 64 9F 00 00 EA [08:31:31]Write i2c OK [08:31:31]MH_I2C_Read... [08:31:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:31]Read from MH i2c: E2 [08:31:31]MH_I2C_Read... [08:31:31]Read from MH i2c: E2 03 00 [08:31:31]MH_I2C_Read... [08:31:31]Read from MH i2c: E2 03 00 BF 1B 00 90 00 4E [08:31:31]RAPDU: 90 00 [08:31:31]wFMCommunicate OK [08:31:31]wFMCommunicate request_size=4 [08:31:31]MH_SAM_APDU [08:31:31]CAPDU: 80 0D 03 02 [08:31:31]Write to MH i2c: E2 08 00 C0 1B 80 0D 03 02 00 00 00 00 56 [08:31:31]Write i2c OK [08:31:31]MH_I2C_Read... [08:31:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:31:31]Read from MH i2c: E2 [08:31:31]MH_I2C_Read... [08:31:31]Read from MH i2c: E2 0B 00 [08:31:31]MH_I2C_Read... [08:31:31]Read from MH i2c: E2 0B 00 C0 1B 00 E2 0B 39 29 EE EB 68 22 90 00 09 [08:31:31]RAPDU: E2 0B 39 29 EE EB 68 22 90 00 [08:31:31]wFMCommunicate OK [08:31:31]SAM_PROTO_SignData done [08:31:31]FM_MakeSignedData done [08:31:31]CreateOFDProtocolMessage [08:31:31]wFMCommunicate request_size=4 [08:31:31]MH_SAM_APDU [08:31:31]CAPDU: 80 11 00 00 [08:31:31]Write to MH i2c: E2 08 00 C1 1B 80 11 00 00 00 00 00 00 56 [08:31:31]Write i2c OK [08:31:31]MH_I2C_Read... [08:31:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:31]Read from MH i2c: E2 [08:31:31]MH_I2C_Read... [08:31:31]Read from MH i2c: E2 17 00 [08:31:31]MH_I2C_Read... [08:31:31]Read from MH i2c: E2 17 00 C1 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AC [08:31:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:31:31]wFMCommunicate OK [08:31:31]CreateOFDProtocolMessage done [08:31:31]OFDSenderStorePacket 165152 [08:31:31]StoreOFDPacket docnum=165152 [08:31:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 37 C7 07 01 BD F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 66 DE 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 20 85 02 00 35 04 06 00 37 30 C5 94 64 9F E2 0B 39 29 EE EB 68 22 [08:31:31]CheckFolder [08:31:31]dirname=/storage/ofd_packets [08:31:31]CheckFolder done [08:31:31]ProducePacketName [08:31:31]name=ofd_packets/00165152 [08:31:31]NVStorageSaveData ofd_packets/00165152 [08:31:31]File name is /storage/ofd_packets/00165152 [08:31:31]Write 301 bytes [08:31:31]NVStorageSaveData done [08:31:31]OFDSenderStorePacket done [08:31:31]KKMCreateOFDPacket done [08:31:31]NVStorageSaveData kkm_last_timestamp [08:31:31]File name is /storage/kkm_last_timestamp [08:31:31]Write 4 bytes [08:31:31]NVStorageSaveData done [08:31:31]ExternCall_PrintAddStr [08:31:31]wPrintStart [08:31:31]Write to MH i2c: 01 00 00 C2 1B DD [08:31:31]Write i2c OK [08:31:31]MH_I2C_Read... [08:31:31]Read from MH i2c: 01 [08:31:31]MH_I2C_Read... [08:31:31]Read from MH i2c: 01 07 00 [08:31:31]MH_I2C_Read... [08:31:31]Read from MH i2c: 01 07 00 C2 1B 00 00 00 00 00 FF 0F F2 [08:31:31]RasterBufferAndPrint [08:31:31]line Счет N : (1)459253 [08:31:31]line ИНН: 02508201610067 [08:31:31]line Контрольно-Кассовый Чек [08:31:31]line ПРОДАЖА [08:31:31]line ТРК (МРК, ГНК) : 22 [08:31:31]line Товар: 2710124130 [08:31:31]line Аи-92-К-5 [08:31:31]line 6.080 * 65.80 [08:31:31]line = 400.06 [08:31:31]line НДС 12% НСП 1% [08:31:31]line > о реализуемом товаре [08:31:31]line ОКРУГЛЕНИЕ: -0.06 [08:31:31]line ИТОГО: 400.00 [08:31:31]line Внесено: 400.00 [08:31:31]line СДАЧА: 0.00 [08:31:31]line НСП 1% : 3.54 [08:31:31]line НДС 12% : 42.48 [08:31:31]line Наличными: 400.00 [08:31:31]line Безнал.: 0.00 [08:31:31]line Место: АЗС № 72 "Партнер Нефть" [08:31:31]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [08:31:31]line СНО: Общий режим [08:31:31]line Чек 25 15.07.2024 08:31 [08:31:31]line Смена: 448 ФФД: 1.0 [08:31:31]line ЗНМ: 0300000160 [08:31:31]line РНМ: 0000000000090829 [08:31:31]line Версия ККМ: 001 [08:31:31]line ФМ: 0000000000874718 [08:31:31]line ФД: 165152 [08:31:31]line ФПД: 60682612794527 [08:31:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T083134&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165152&fm=60682612794527&tin=02508201610067®Number=0000000000090829&sum=40000 [08:31:32]OFD Sender: Processing packet 165152 [packets to send 106, broken 105] [08:31:32]ProducePacketName [08:31:32]name=ofd_packets/00165152 [08:31:32]OFD Sender: To server: pG, [08:31:32]CommunicateWithHost lk.salyk.kg:30040 [08:31:32]ConnectInit lk.salyk.kg [08:31:32]written 0, free lines is 4095 [08:31:32]Connected sock=10 [08:31:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 37 C7 07 01 BD F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 66 DE 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 20 85 02 00 35 04 06 00 37 30 C5 94 64 9F E2 0B 39 29 EE EB 68 22 [08:31:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 D3 15 47 00 35 E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 20 85 02 00 F4 03 04 00 F1 84 94 66 B6 04 01 00 00 5A 25 75 39 24 C8 C7 33 [08:31:32]CommunicateWithHost err = 0 [08:31:32]CheckOFDResponse [08:31:32]1017 (14) - 77093643461234 [08:31:32]1041 (16) - 0000000000874718 [08:31:32]1040 (4) - 165152 [08:31:32]1012 (4) - 15.07.2024 02:09 [08:31:32]1206 (1) - 0 [08:31:32]OFD Sender: Remove packet 165152 [08:31:32]ProducePacketName [08:31:32]name=ofd_packets/00165152 [08:31:32]NVStorageDeleteData [08:31:32]Write to MH i2c: 01 00 00 EC 1B 07 [08:31:32]Write i2c OK [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: 01 [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: 01 07 00 [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: 01 07 00 EC 1B 00 00 00 00 00 F5 0C 0F [08:31:32]RasterBufferAndPrint [08:31:32]line [08:31:32]line [08:31:32]line [08:31:32]line [08:31:32]line [08:31:32]written 0, free lines is 3325 [08:31:32]MH_Cut [08:31:32]Write to MH i2c: D1 01 00 F3 1B 01 E0 [08:31:32]Write i2c OK [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: D1 [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: D1 01 00 [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: D1 01 00 F3 1B 00 DF [08:31:32]Write to MH i2c: 01 00 00 F4 1B 0F [08:31:32]Write i2c OK [08:31:32]MH_I2C_Read... [08:31:32]OFD Sender: No OFD packet to send [08:31:33]*** Cut start [08:31:33]*** Partial cut [08:31:33]*** CUTSNS_PIN = 1 [08:31:33]*** CUTSNS_PIN = 0 [08:31:33]*** Brake cut motor [08:31:33]Read from MH i2c: 01 [08:31:33]MH_I2C_Read... [08:31:33]*** Stop cut motor [08:31:33]*** Cut end [08:31:33]Read from MH i2c: 01 07 00 [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: 01 07 00 F4 1B 00 00 00 00 00 FF 0F 24 [08:31:33]process_action close_receipt done [08:31:33]requested_data is exist [08:31:33]produce_requested_data [08:31:33]requested_item fm.sn is exist - process it [08:31:33]wFMCommunicate request_size=4 [08:31:33]MH_SAM_APDU [08:31:33]CAPDU: 80 11 00 00 [08:31:33]Write to MH i2c: E2 08 00 F5 1B 80 11 00 00 00 00 00 00 8A [08:31:33]Write i2c OK [08:31:33]MH_I2C_Read... [08:31:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:33]Read from MH i2c: E2 [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: E2 17 00 [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: E2 17 00 F5 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E0 [08:31:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:31:33]wFMCommunicate OK [08:31:33]requested_item fd.num is exist - process it [08:31:33]SAM_PROTO_GetFieldsCounters [08:31:33]wFMCommunicate request_size=4 [08:31:33]MH_SAM_APDU [08:31:33]CAPDU: 80 13 00 00 [08:31:33]Write to MH i2c: E2 08 00 F6 1B 80 13 00 00 00 00 00 00 8D [08:31:33]Write i2c OK [08:31:33]MH_I2C_Read... [08:31:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:31:33]Read from MH i2c: E2 [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: E2 62 00 [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: E2 62 00 F6 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 20 85 02 00 0E 04 04 00 C0 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 67 [08:31: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 20 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:31:33]wFMCommunicate OK [08:31:33]SAM_PROTO_GetFieldsCounters done [08:31:33]requested_item shift.num is exist - process it [08:31:33]requested_item shift.opened is exist - process it [08:31:33]req_shift_opened [08:31:33]FM_GetShiftState [08:31:33]SAM_PROTO_GetShiftState [08:31:33]wFMCommunicate request_size=4 [08:31:33]MH_SAM_APDU [08:31:33]CAPDU: 80 13 01 00 [08:31:33]Write to MH i2c: E2 08 00 F7 1B 80 13 01 00 00 00 00 00 8F [08:31:34]Write i2c OK [08:31:34]MH_I2C_Read... [08:31:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:34]Read from MH i2c: E2 [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: E2 0E 00 [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: E2 0E 00 F7 1B 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 68 [08:31:34]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [08:31:34]wFMCommunicate OK [08:31:34]SAM_PROTO_GetShiftState done [08:31:34]FM_GetShiftState done [08:31:34]req_shift_opened done [08:31:34]requested_item shift.open_date is exist - process it [08:31:34]req_shift_open_date [08:31:34]req_shift_open_date done [08:31:34]produce_requested_data done [08:31:34]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165152,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [08:31:34]process_action_free close_receipt [08:31:34]json_value_free [08:31:34]json_value_free done [08:31:34]process_json_proto returns [08:31:34]Send response to host [08:31:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165152,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [08:31:34]free response buf [08:31:34]execute_script done [08:31:34]execute_script returns [08:31:34]free content buf [08:31:34]Sock 9.Close socket [08:31:34]Sock 9.Thread stoped [08:31:37]OFD Sender: No OFD packet to send [08:31:42]OFD Sender: No OFD packet to send [08:31:47]OFD Sender: No OFD packet to send [08:31:52]OFD Sender: No OFD packet to send [08:31:57]OFD Sender: No OFD packet to send [08:32:02]OFD Sender: No OFD packet to send [08:32:07]OFD Sender: No OFD packet to send [08:32:12]OFD Sender: No OFD packet to send [08:32:17]OFD Sender: No OFD packet to send [08:32:22]OFD Sender: No OFD packet to send [08:32:27]OFD Sender: No OFD packet to send [08:32:32]OFD Sender: No OFD packet to send [08:32:37]OFD Sender: No OFD packet to send [08:32:42]OFD Sender: No OFD packet to send [08:32:47]OFD Sender: No OFD packet to send [08:32:52]OFD Sender: No OFD packet to send [08:32:57]OFD Sender: No OFD packet to send [08:33:02]OFD Sender: No OFD packet to send [08:33:07]OFD Sender: No OFD packet to send [08:33:12]OFD Sender: No OFD packet to send [08:33:17]OFD Sender: No OFD packet to send [08:33:22]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:43]accept exits with 7 [08:35:43]New connection [08:35:43]New thread 3066928484 created [08:35:43]Thread 3066785124 joined [08:35:43]Waiting for new connection... [08:35:43] Sock 7.Parse request [08:35:43]Sock 7.Check first char [08:35:43]Sock 7.First char is OK [08:35:43]request: POST /json_proto HTTP/1.0 [08:35:43]Method: POST [08:35:43]URL: /json_proto [08:35:43]Method is POST - this is cgi request [08:35:43]url: /json_proto [08:35:43]query_string will be loaded in cgi processing [08:35:43]execute_cgi json_proto POST (null) [08:35:43]execute_cgi path=json_proto method=POST [08:35:43]POST find Content-Length [08:35:43]Host: 172.17.56.4:8080 [08:35:43]Content-Length: 677 [08:35:43]Content-Type: application/json [08:35:43] [08:35:43]POST finish read [08:35:43]Found Content-Length = 677 [08:35:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459254", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:35:43]execute_script... [08:35:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459254", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:35:43]POST & json_proto [08:35:43]process_json_proto [08:35:43]json parsed OK: [08:35:43]protocol is kg_v1.0 [08:35:43]action value=close_receipt [08:35:43]process_action close_receipt [08:35:43]cmd_close_receipt [08:35:43]MH_GetDate [08:35:43]Write to MH i2c: F0 00 00 F8 1B 02 [08:35:43]Write i2c OK [08:35:43]MH_I2C_Read... [08:35:43]Read from MH i2c: F0 [08:35:43]MH_I2C_Read... [08:35:43]Read from MH i2c: F0 09 00 [08:35:43]MH_I2C_Read... [08:35:43]Read from MH i2c: F0 09 00 F8 1B 00 63 DF 94 66 C9 DC B2 64 02 [08:35:43]GetLastDocTimeStamp 1721032294 [08:35:43]current date 1721032547 [08:35:43]FM_GetShiftState [08:35:43]SAM_PROTO_GetShiftState [08:35:43]wFMCommunicate request_size=4 [08:35:43]MH_SAM_APDU [08:35:43]CAPDU: 80 13 01 00 [08:35:43]Write to MH i2c: E2 08 00 F9 1B 80 13 01 00 00 00 00 00 91 [08:35:43]Write i2c OK [08:35:43]MH_I2C_Read... [08:35:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:35:43]Read from MH i2c: E2 [08:35:43]MH_I2C_Read... [08:35:43]Read from MH i2c: E2 0E 00 [08:35:43]MH_I2C_Read... [08:35:43]Read from MH i2c: E2 0E 00 F9 1B 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 6A [08:35:43]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [08:35:43]wFMCommunicate OK [08:35:43]SAM_PROTO_GetShiftState done [08:35:43]FM_GetShiftState done [08:35:43]opened in 1721003876 [08:35:43]opened+sec_in_day 1721090276 [08:35:43]quantity*price = 50008 [08:35:43]sum+1 = 50009 [08:35:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 26 15.07.2024 08:35 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165153 ФПД: 72656088594102 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T083547&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165153&fm=72656088594102&tin=02508201610067®Number=0000000000090829&sum=50000 [08:35:44]StoreToDocumentArchive [08:35:44]shift 448 fd 165153 [08:35:44]save to /storage/0448/doc_00165153 [08:35:44]save last doc name /storage/0448/doc_00165153 to /storage/kkm_last_doc_name [08:35:44]save OK [08:35:44]Clear old archive folders... [08:35:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:35:44]tlvbuf is 013C0250 [08:35:44]SAM_PROTO_ClearQueue [08:35:44]wFMCommunicate request_size=4 [08:35:44]MH_SAM_APDU [08:35:44]CAPDU: 80 09 00 00 [08:35:44]Write to MH i2c: E2 08 00 06 1C 80 09 00 00 00 00 00 00 94 [08:35:44]Write i2c OK [08:35:44]MH_I2C_Read... [08:35:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:35:44]Read from MH i2c: E2 [08:35:44]MH_I2C_Read... [08:35:44]Read from MH i2c: E2 03 00 [08:35:44]MH_I2C_Read... [08:35:44]Read from MH i2c: E2 03 00 06 1C 00 90 00 96 [08:35:44]RAPDU: 90 00 [08:35:44]wFMCommunicate OK [08:35:44]SAM_PROTO_ClearQueue done [08:35:44]KKMCreateOFDPacket [08:35:44]OFDProtocolAddRootSTLVToBuf [08:35:44]FM_MakeSignedData [08:35:44]FM_MakeSignedData [08:35:44]SAM_PROTO_SignData [08:35:44]wFMCommunicate request_size=4 [08:35:44]MH_SAM_APDU [08:35:44]CAPDU: 80 0D 01 02 [08:35:44]Write to MH i2c: E2 08 00 07 1C 80 0D 01 02 00 00 00 00 9C [08:35:44]Write i2c OK [08:35:44]MH_I2C_Read... [08:35:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:35:44]Read from MH i2c: E2 [08:35:44]MH_I2C_Read... [08:35:44]Read from MH i2c: E2 03 00 [08:35:44]MH_I2C_Read... [08:35:44]Read from MH i2c: E2 03 00 07 1C 00 90 00 97 [08:35:44]RAPDU: 90 00 [08:35:44]wFMCommunicate OK [08:35:44]wFMCommunicate request_size=255 [08:35:44]MH_SAM_APDU [08:35:44]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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 63 DF 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 21 85 02 00 35 04 06 00 42 [08:35:44]Write to MH i2c: E2 02 01 08 1C 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 63 DF 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 21 85 02 00 35 04 06 00 42 00 00 16 [08:35:44]Write i2c OK [08:35:44]MH_I2C_Read... [08:35:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:35:45]Read from MH i2c: E2 [08:35:45]MH_I2C_Read... [08:35:45]Read from MH i2c: E2 03 00 [08:35:45]MH_I2C_Read... [08:35:45]Read from MH i2c: E2 03 00 08 1C 00 90 00 98 [08:35:45]RAPDU: 90 00 [08:35:45]wFMCommunicate OK [08:35:45]wFMCommunicate request_size=10 [08:35:45]MH_SAM_APDU [08:35:45]CAPDU: 80 0D 02 02 05 14 90 59 F6 B6 [08:35:45]Write to MH i2c: E2 0D 00 09 1C 80 0D 02 02 05 00 14 90 59 F6 B6 00 00 52 [08:35:45]Write i2c OK [08:35:45]MH_I2C_Read... [08:35:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:35:45]Read from MH i2c: E2 [08:35:45]MH_I2C_Read... [08:35:45]Read from MH i2c: E2 03 00 [08:35:45]MH_I2C_Read... [08:35:45]Read from MH i2c: E2 03 00 09 1C 00 90 00 99 [08:35:45]RAPDU: 90 00 [08:35:45]wFMCommunicate OK [08:35:45]wFMCommunicate request_size=4 [08:35:45]MH_SAM_APDU [08:35:45]CAPDU: 80 0D 03 02 [08:35:45]Write to MH i2c: E2 08 00 0A 1C 80 0D 03 02 00 00 00 00 A1 [08:35:45]Write i2c OK [08:35:45]MH_I2C_Read... [08:35:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:35:45]Read from MH i2c: E2 [08:35:45]MH_I2C_Read... [08:35:45]Read from MH i2c: E2 0B 00 [08:35:45]MH_I2C_Read... [08:35:45]Read from MH i2c: E2 0B 00 0A 1C 00 B5 B4 EF 47 79 E3 C1 D7 90 00 35 [08:35:45]RAPDU: B5 B4 EF 47 79 E3 C1 D7 90 00 [08:35:45]wFMCommunicate OK [08:35:45]SAM_PROTO_SignData done [08:35:45]FM_MakeSignedData done [08:35:45]CreateOFDProtocolMessage [08:35:45]wFMCommunicate request_size=4 [08:35:45]MH_SAM_APDU [08:35:45]CAPDU: 80 11 00 00 [08:35:45]Write to MH i2c: E2 08 00 0B 1C 80 11 00 00 00 00 00 00 A1 [08:35:45]Write i2c OK [08:35:45]MH_I2C_Read... [08:35:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:35:45]Read from MH i2c: E2 [08:35:45]MH_I2C_Read... [08:35:45]Read from MH i2c: E2 17 00 [08:35:45]MH_I2C_Read... [08:35:45]Read from MH i2c: E2 17 00 0B 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F7 [08:35:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:35:45]wFMCommunicate OK [08:35:45]CreateOFDProtocolMessage done [08:35:45]OFDSenderStorePacket 165153 [08:35:45]StoreOFDPacket docnum=165153 [08:35:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 63 00 07 01 62 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 63 DF 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 21 85 02 00 35 04 06 00 42 14 90 59 F6 B6 B5 B4 EF 47 79 E3 C1 D7 [08:35:45]CheckFolder [08:35:45]dirname=/storage/ofd_packets [08:35:45]CheckFolder done [08:35:45]ProducePacketName [08:35:45]name=ofd_packets/00165153 [08:35:45]NVStorageSaveData ofd_packets/00165153 [08:35:45]File name is /storage/ofd_packets/00165153 [08:35:45]Write 301 bytes [08:35:45]NVStorageSaveData done [08:35:45]OFDSenderStorePacket done [08:35:45]KKMCreateOFDPacket done [08:35:45]NVStorageSaveData kkm_last_timestamp [08:35:45]File name is /storage/kkm_last_timestamp [08:35:45]Write 4 bytes [08:35:45]NVStorageSaveData done [08:35:45]ExternCall_PrintAddStr [08:35:45]wPrintStart [08:35:45]Write to MH i2c: 01 00 00 0C 1C 28 [08:35:45]Write i2c OK [08:35:45]MH_I2C_Read... [08:35:45]Read from MH i2c: 01 [08:35:45]MH_I2C_Read... [08:35:45]Read from MH i2c: 01 07 00 [08:35:45]MH_I2C_Read... [08:35:45]Read from MH i2c: 01 07 00 0C 1C 00 00 00 00 00 FF 0F 3D [08:35:45]RasterBufferAndPrint [08:35:45]line Счет N : (1)459254 [08:35:45]line ИНН: 02508201610067 [08:35:45]line Контрольно-Кассовый Чек [08:35:45]line ПРОДАЖА [08:35:45]line ТРК (МРК, ГНК) : 12 [08:35:45]line Товар: 2710124130 [08:35:45]line Аи-92-К-5 [08:35:45]line 7.600 * 65.80 [08:35:45]line = 500.08 [08:35:45]line НДС 12% НСП 1% [08:35:45]line > о реализуемом товаре [08:35:45]line ОКРУГЛЕНИЕ: -0.08 [08:35:45]line ИТОГО: 500.00 [08:35:45]line Внесено: 500.00 [08:35:45]line СДАЧА: 0.00 [08:35:45]line НСП 1% : 4.42 [08:35:45]line НДС 12% : 53.11 [08:35:45]line Наличными: 500.00 [08:35:45]line Безнал.: 0.00 [08:35:45]line Место: АЗС № 72 "Партнер Нефть" [08:35:45]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [08:35:45]line СНО: Общий режим [08:35:45]line Чек 26 15.07.2024 08:35 [08:35:45]line Смена: 448 ФФД: 1.0 [08:35:45]line ЗНМ: 0300000160 [08:35:45]line РНМ: 0000000000090829 [08:35:45]line Версия ККМ: 001 [08:35:45]line ФМ: 0000000000874718 [08:35:45]line ФД: 165153 [08:35:45]line ФПД: 72656088594102 [08:35:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T083547&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165153&fm=72656088594102&tin=02508201610067®Number=0000000000090829&sum=50000 [08:35:45]OFD Sender: Processing packet 165153 [packets to send 106, broken 105] [08:35:45]ProducePacketName [08:35:45]name=ofd_packets/00165153 [08:35:45]OFD Sender: To server: pG, [08:35:45]CommunicateWithHost lk.salyk.kg:30040 [08:35:45]ConnectInit lk.salyk.kg [08:35:45]written 0, free lines is 4095 [08:35:45]Connected sock=10 [08:35:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 63 00 07 01 62 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 63 DF 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 21 85 02 00 35 04 06 00 42 14 90 59 F6 B6 B5 B4 EF 47 79 E3 C1 D7 [08:35:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 DC 1F 47 00 F3 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 21 85 02 00 F4 03 04 00 EE 85 94 66 B6 04 01 00 00 AB F2 B0 1A EE 48 20 C6 [08:35:45]CommunicateWithHost err = 0 [08:35:45]CheckOFDResponse [08:35:45]1017 (14) - 77093643461234 [08:35:45]1041 (16) - 0000000000874718 [08:35:45]1040 (4) - 165153 [08:35:45]1012 (4) - 15.07.2024 02:14 [08:35:45]1206 (1) - 0 [08:35:45]OFD Sender: Remove packet 165153 [08:35:45]ProducePacketName [08:35:45]name=ofd_packets/00165153 [08:35:45]NVStorageDeleteData [08:35:45]Write to MH i2c: 01 00 00 36 1C 52 [08:35:45]Write i2c OK [08:35:45]MH_I2C_Read... [08:35:45]Read from MH i2c: 01 [08:35:45]MH_I2C_Read... [08:35:45]Read from MH i2c: 01 07 00 [08:35:45]MH_I2C_Read... [08:35:45]Read from MH i2c: 01 07 00 36 1C 00 00 00 00 00 FF 0C 64 [08:35:45]RasterBufferAndPrint [08:35:45]line [08:35:45]line [08:35:45]line [08:35:45]line [08:35:45]line [08:35:46]written 0, free lines is 3333 [08:35:46]MH_Cut [08:35:46]Write to MH i2c: D1 01 00 3D 1C 01 2B [08:35:46]Write i2c OK [08:35:46]MH_I2C_Read... [08:35:46]Read from MH i2c: D1 [08:35:46]MH_I2C_Read... [08:35:46]Read from MH i2c: D1 01 00 [08:35:46]MH_I2C_Read... [08:35:46]Read from MH i2c: D1 01 00 3D 1C 00 2A [08:35:46]Write to MH i2c: 01 00 00 3E 1C 5A [08:35:46]Write i2c OK [08:35:46]MH_I2C_Read... [08:35:46]OFD Sender: No OFD packet to send [08:35:46]*** Cut start [08:35:46]*** Partial cut [08:35:46]*** CUTSNS_PIN = 1 [08:35:46]*** CUTSNS_PIN = 0 [08:35:46]*** Brake cut motor [08:35:47]Read from MH i2c: 01 [08:35:47]MH_I2C_Read... [08:35:47]*** Stop cut motor [08:35:47]*** Cut end [08:35:47]Read from MH i2c: 01 07 00 [08:35:47]MH_I2C_Read... [08:35:47]Read from MH i2c: 01 07 00 3E 1C 00 00 00 00 00 FF 0F 6F [08:35:47]process_action close_receipt done [08:35:47]requested_data is exist [08:35:47]produce_requested_data [08:35:47]requested_item fm.sn is exist - process it [08:35:47]wFMCommunicate request_size=4 [08:35:47]MH_SAM_APDU [08:35:47]CAPDU: 80 11 00 00 [08:35:47]Write to MH i2c: E2 08 00 3F 1C 80 11 00 00 00 00 00 00 D5 [08:35:47]Write i2c OK [08:35:47]MH_I2C_Read... [08:35:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:35:47]Read from MH i2c: E2 [08:35:47]MH_I2C_Read... [08:35:47]Read from MH i2c: E2 17 00 [08:35:47]MH_I2C_Read... [08:35:47]Read from MH i2c: E2 17 00 3F 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2B [08:35:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:35:47]wFMCommunicate OK [08:35:47]requested_item fd.num is exist - process it [08:35:47]SAM_PROTO_GetFieldsCounters [08:35:47]wFMCommunicate request_size=4 [08:35:47]MH_SAM_APDU [08:35:47]CAPDU: 80 13 00 00 [08:35:47]Write to MH i2c: E2 08 00 40 1C 80 13 00 00 00 00 00 00 D8 [08:35:47]Write i2c OK [08:35:47]MH_I2C_Read... [08:35:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:35:47]Read from MH i2c: E2 [08:35:47]MH_I2C_Read... [08:35:47]Read from MH i2c: E2 62 00 [08:35:47]MH_I2C_Read... [08:35:47]Read from MH i2c: E2 62 00 40 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 21 85 02 00 0E 04 04 00 C0 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 B6 [08:35: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 21 85 02 00 0E 04 04 00 C0 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 [08:35:47]wFMCommunicate OK [08:35:47]SAM_PROTO_GetFieldsCounters done [08:35:47]requested_item shift.num is exist - process it [08:35:47]requested_item shift.opened is exist - process it [08:35:47]req_shift_opened [08:35:47]FM_GetShiftState [08:35:47]SAM_PROTO_GetShiftState [08:35:47]wFMCommunicate request_size=4 [08:35:47]MH_SAM_APDU [08:35:47]CAPDU: 80 13 01 00 [08:35:47]Write to MH i2c: E2 08 00 41 1C 80 13 01 00 00 00 00 00 DA [08:35:47]Write i2c OK [08:35:47]MH_I2C_Read... [08:35:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:35:47]Read from MH i2c: E2 [08:35:47]MH_I2C_Read... [08:35:47]Read from MH i2c: E2 0E 00 [08:35:47]MH_I2C_Read... [08:35:47]Read from MH i2c: E2 0E 00 41 1C 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 B3 [08:35:47]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [08:35:47]wFMCommunicate OK [08:35:47]SAM_PROTO_GetShiftState done [08:35:47]FM_GetShiftState done [08:35:47]req_shift_opened done [08:35:47]requested_item shift.open_date is exist - process it [08:35:47]req_shift_open_date [08:35:47]req_shift_open_date done [08:35:47]produce_requested_data done [08:35:47]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165153,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [08:35:47]process_action_free close_receipt [08:35:47]json_value_free [08:35:47]json_value_free done [08:35:47]process_json_proto returns [08:35:47]Send response to host [08:35:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165153,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [08:35:47]free response buf [08:35:47]execute_script done [08:35:47]execute_script returns [08:35:47]free content buf [08:35:47]Sock 7.Close socket [08:35:47]Sock 7.Thread stoped [08:35:51]OFD Sender: No OFD packet to send [08:35:56]OFD Sender: No OFD packet to send [08:36:01]OFD Sender: No OFD packet to send [08:36:06]OFD Sender: No OFD packet to send [08:36:11]OFD Sender: No OFD packet to send [08:36:16]OFD Sender: No OFD packet to send [08:36:21]OFD Sender: No OFD packet to send [08:36:26]OFD Sender: No OFD packet to send [08:36:31]OFD Sender: No OFD packet to send [08:36:36]OFD Sender: No OFD packet to send [08:36:41]OFD Sender: No OFD packet to send [08:36:46]OFD Sender: No OFD packet to send [08:36:51]OFD Sender: No OFD packet to send [08:36:56]OFD Sender: No OFD packet to send [08:37:01]OFD Sender: No OFD packet to send [08:37:06]OFD Sender: No OFD packet to send [08:37:11]OFD Sender: No OFD packet to send [08:37:16]OFD Sender: No OFD packet to send [08:37:21]OFD Sender: No OFD packet to send [08:37:26]OFD Sender: No OFD packet to send [08:37:31]OFD Sender: No OFD packet to send [08:37:36]OFD Sender: No OFD packet to send [08:37:41]OFD Sender: No OFD packet to send [08:37:46]OFD Sender: No OFD packet to send [08:37:51]OFD Sender: No OFD packet to send [08:37:56]OFD Sender: No OFD packet to send [08:38:01]OFD Sender: No OFD packet to send [08:38:06]OFD Sender: No OFD packet to send [08:38:11]OFD Sender: No OFD packet to send [08:38:16]OFD Sender: No OFD packet to send [08:38:21]OFD Sender: No OFD packet to send [08:38:26]OFD Sender: No OFD packet to send [08:38:31]OFD Sender: No OFD packet to send [08:38:36]OFD Sender: No OFD packet to send [08:38:41]OFD Sender: No OFD packet to send [08:38:46]OFD Sender: No OFD packet to send [08:38:51]OFD Sender: No OFD packet to send [08:38:56]OFD Sender: No OFD packet to send [08:39:01]OFD Sender: No OFD packet to send [08:39:06]OFD Sender: No OFD packet to send [08:39:11]OFD Sender: No OFD packet to send [08:39:16]OFD Sender: No OFD packet to send [08:39:21]OFD Sender: No OFD packet to send [08:39:26]OFD Sender: No OFD packet to send [08:39:31]OFD Sender: No OFD packet to send [08:39:36]OFD Sender: No OFD packet to send [08:39:41]OFD Sender: No OFD packet to send [08:39:46]OFD Sender: No OFD packet to send [08:39:51]OFD Sender: No OFD packet to send [08:39:56]OFD Sender: No OFD packet to send [08:40:01]OFD Sender: No OFD packet to send [08:40:06]OFD Sender: No OFD packet to send [08:40:10]accept exits with 9 [08:40:10]New connection [08:40:10]New thread 3066785124 created [08:40:10]Thread 3066928484 joined [08:40:10]Waiting for new connection... [08:40:10] Sock 9.Parse request [08:40:10]Sock 9.Check first char [08:40:10]Sock 9.First char is OK [08:40:10]request: POST /json_proto HTTP/1.0 [08:40:10]Method: POST [08:40:10]URL: /json_proto [08:40:10]Method is POST - this is cgi request [08:40:10]url: /json_proto [08:40:10]query_string will be loaded in cgi processing [08:40:10]execute_cgi json_proto POST (null) [08:40:10]execute_cgi path=json_proto method=POST [08:40:10]POST find Content-Length [08:40:10]Host: 172.17.56.4:8080 [08:40:10]Content-Length: 674 [08:40:10]Content-Type: application/json [08:40:10] [08:40:10]POST finish read [08:40:10]Found Content-Length = 674 [08:40:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459255", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 3.480, "sum" : 250.21, "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" ] } } [08:40:10]execute_script... [08:40: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)459255", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 3.480, "sum" : 250.21, "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" ] } } [08:40:10]POST & json_proto [08:40:10]process_json_proto [08:40:10]json parsed OK: [08:40:10]protocol is kg_v1.0 [08:40:10]action value=close_receipt [08:40:10]process_action close_receipt [08:40:10]cmd_close_receipt [08:40:10]MH_GetDate [08:40:10]Write to MH i2c: F0 00 00 42 1C 4D [08:40:10]Write i2c OK [08:40:10]MH_I2C_Read... [08:40:10]Read from MH i2c: F0 [08:40:10]MH_I2C_Read... [08:40:10]Read from MH i2c: F0 09 00 [08:40:10]MH_I2C_Read... [08:40:10]Read from MH i2c: F0 09 00 42 1C 00 6E E0 94 66 C9 DC B2 64 59 [08:40:10]GetLastDocTimeStamp 1721032547 [08:40:10]current date 1721032814 [08:40:10]FM_GetShiftState [08:40:10]SAM_PROTO_GetShiftState [08:40:10]wFMCommunicate request_size=4 [08:40:10]MH_SAM_APDU [08:40:10]CAPDU: 80 13 01 00 [08:40:10]Write to MH i2c: E2 08 00 43 1C 80 13 01 00 00 00 00 00 DC [08:40:10]Write i2c OK [08:40:10]MH_I2C_Read... [08:40:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:10]Read from MH i2c: E2 [08:40:10]MH_I2C_Read... [08:40:10]Read from MH i2c: E2 0E 00 [08:40:10]MH_I2C_Read... [08:40:10]Read from MH i2c: E2 0E 00 43 1C 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 B5 [08:40:10]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [08:40:10]wFMCommunicate OK [08:40:10]SAM_PROTO_GetShiftState done [08:40:10]FM_GetShiftState done [08:40:10]opened in 1721003876 [08:40:10]opened+sec_in_day 1721090276 [08:40:10]quantity*price = 25021 [08:40:10]sum+1 = 25022 [08:40:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 27 15.07.2024 08:40 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165154 ФПД: 122914590390521 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T084014&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165154&fm=122914590390521&tin=02508201610067®Number=0000000000090829&sum=25000 [08:40:11]StoreToDocumentArchive [08:40:11]shift 448 fd 165154 [08:40:11]save to /storage/0448/doc_00165154 [08:40:11]save last doc name /storage/0448/doc_00165154 to /storage/kkm_last_doc_name [08:40:11]save OK [08:40:11]Clear old archive folders... [08:40:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:40:11]tlvbuf is 013554E0 [08:40:11]SAM_PROTO_ClearQueue [08:40:11]wFMCommunicate request_size=4 [08:40:11]MH_SAM_APDU [08:40:11]CAPDU: 80 09 00 00 [08:40:11]Write to MH i2c: E2 08 00 50 1C 80 09 00 00 00 00 00 00 DE [08:40:11]Write i2c OK [08:40:11]MH_I2C_Read... [08:40:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:40:11]Read from MH i2c: E2 [08:40:11]MH_I2C_Read... [08:40:11]Read from MH i2c: E2 03 00 [08:40:11]MH_I2C_Read... [08:40:11]Read from MH i2c: E2 03 00 50 1C 00 90 00 E0 [08:40:11]RAPDU: 90 00 [08:40:11]wFMCommunicate OK [08:40:11]SAM_PROTO_ClearQueue done [08:40:11]KKMCreateOFDPacket [08:40:11]OFDProtocolAddRootSTLVToBuf [08:40:11]FM_MakeSignedData [08:40:11]FM_MakeSignedData [08:40:11]SAM_PROTO_SignData [08:40:11]wFMCommunicate request_size=4 [08:40:11]MH_SAM_APDU [08:40:11]CAPDU: 80 0D 01 02 [08:40:11]Write to MH i2c: E2 08 00 51 1C 80 0D 01 02 00 00 00 00 E6 [08:40:11]Write i2c OK [08:40:11]MH_I2C_Read... [08:40:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:40:11]Read from MH i2c: E2 [08:40:11]MH_I2C_Read... [08:40:11]Read from MH i2c: E2 03 00 [08:40:11]MH_I2C_Read... [08:40:11]Read from MH i2c: E2 03 00 51 1C 00 90 00 E1 [08:40:11]RAPDU: 90 00 [08:40:11]wFMCommunicate OK [08:40:11]wFMCommunicate request_size=255 [08:40:11]MH_SAM_APDU [08:40:11]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 0D 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 BD 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 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 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 1B 00 00 00 F4 03 04 00 6E E0 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 22 85 02 00 35 04 06 00 6F CA 48 7F [08:40:11]Write to MH i2c: E2 02 01 52 1C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 0D 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 BD 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 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 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 1B 00 00 00 F4 03 04 00 6E E0 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 22 85 02 00 35 04 06 00 6F CA 48 7F 00 00 65 [08:40:11]Write i2c OK [08:40:11]MH_I2C_Read... [08:40:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:12]Read from MH i2c: E2 [08:40:12]MH_I2C_Read... [08:40:12]Read from MH i2c: E2 03 00 [08:40:12]MH_I2C_Read... [08:40:12]Read from MH i2c: E2 03 00 52 1C 00 90 00 E2 [08:40:12]RAPDU: 90 00 [08:40:12]wFMCommunicate OK [08:40:12]wFMCommunicate request_size=7 [08:40:12]MH_SAM_APDU [08:40:12]CAPDU: 80 0D 02 02 02 78 F9 [08:40:12]Write to MH i2c: E2 0A 00 53 1C 80 0D 02 02 02 00 78 F9 00 00 5E [08:40:12]Write i2c OK [08:40:12]MH_I2C_Read... [08:40:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:12]Read from MH i2c: E2 [08:40:12]MH_I2C_Read... [08:40:12]Read from MH i2c: E2 03 00 [08:40:12]MH_I2C_Read... [08:40:12]Read from MH i2c: E2 03 00 53 1C 00 90 00 E3 [08:40:12]RAPDU: 90 00 [08:40:12]wFMCommunicate OK [08:40:12]wFMCommunicate request_size=4 [08:40:12]MH_SAM_APDU [08:40:12]CAPDU: 80 0D 03 02 [08:40:12]Write to MH i2c: E2 08 00 54 1C 80 0D 03 02 00 00 00 00 EB [08:40:12]Write i2c OK [08:40:12]MH_I2C_Read... [08:40:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:40:12]Read from MH i2c: E2 [08:40:12]MH_I2C_Read... [08:40:12]Read from MH i2c: E2 0B 00 [08:40:12]MH_I2C_Read... [08:40:12]Read from MH i2c: E2 0B 00 54 1C 00 5F 05 DF 4A 1C 68 EC 28 90 00 11 [08:40:12]RAPDU: 5F 05 DF 4A 1C 68 EC 28 90 00 [08:40:12]wFMCommunicate OK [08:40:12]SAM_PROTO_SignData done [08:40:12]FM_MakeSignedData done [08:40:12]CreateOFDProtocolMessage [08:40:12]wFMCommunicate request_size=4 [08:40:12]MH_SAM_APDU [08:40:12]CAPDU: 80 11 00 00 [08:40:12]Write to MH i2c: E2 08 00 55 1C 80 11 00 00 00 00 00 00 EB [08:40:12]Write i2c OK [08:40:12]MH_I2C_Read... [08:40:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:12]Read from MH i2c: E2 [08:40:12]MH_I2C_Read... [08:40:12]Read from MH i2c: E2 17 00 [08:40:12]MH_I2C_Read... [08:40:12]Read from MH i2c: E2 17 00 55 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 41 [08:40:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:40:12]wFMCommunicate OK [08:40:12]CreateOFDProtocolMessage done [08:40:12]OFDSenderStorePacket 165154 [08:40:12]StoreOFDPacket docnum=165154 [08:40:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 A8 5B 04 01 51 A4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 0D 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 BD 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 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 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 1B 00 00 00 F4 03 04 00 6E E0 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 22 85 02 00 35 04 06 00 6F CA 48 7F 78 F9 5F 05 DF 4A 1C 68 EC 28 [08:40:12]CheckFolder [08:40:12]dirname=/storage/ofd_packets [08:40:12]CheckFolder done [08:40:12]ProducePacketName [08:40:12]name=ofd_packets/00165154 [08:40:12]NVStorageSaveData ofd_packets/00165154 [08:40:12]File name is /storage/ofd_packets/00165154 [08:40:12]Write 298 bytes [08:40:12]NVStorageSaveData done [08:40:12]OFDSenderStorePacket done [08:40:12]KKMCreateOFDPacket done [08:40:12]NVStorageSaveData kkm_last_timestamp [08:40:12]File name is /storage/kkm_last_timestamp [08:40:12]Write 4 bytes [08:40:12]NVStorageSaveData done [08:40:12]ExternCall_PrintAddStr [08:40:12]wPrintStart [08:40:12]Write to MH i2c: 01 00 00 56 1C 72 [08:40:12]Write i2c OK [08:40:12]MH_I2C_Read... [08:40:12]Read from MH i2c: 01 [08:40:12]MH_I2C_Read... [08:40:12]Read from MH i2c: 01 07 00 [08:40:12]MH_I2C_Read... [08:40:12]Read from MH i2c: 01 07 00 56 1C 00 00 00 00 00 FF 0F 87 [08:40:12]RasterBufferAndPrint [08:40:12]line Счет N : (1)459255 [08:40:12]line ИНН: 02508201610067 [08:40:12]line Контрольно-Кассовый Чек [08:40:12]line ПРОДАЖА [08:40:12]line ТРК (МРК, ГНК) : 21 [08:40:12]line Товар: 2710194210 [08:40:12]line ДТ-К-5 [08:40:12]line 3.480 * 71.90 [08:40:12]line = 250.21 [08:40:12]line НДС 12% НСП 1% [08:40:12]line > о реализуемом товаре [08:40:12]line ОКРУГЛЕНИЕ: -0.21 [08:40:12]line ИТОГО: 250.00 [08:40:12]line Внесено: 250.00 [08:40:12]line СДАЧА: 0.00 [08:40:12]line НСП 1% : 2.21 [08:40:12]line НДС 12% : 26.57 [08:40:12]line Наличными: 250.00 [08:40:12]line Безнал.: 0.00 [08:40:12]line Место: АЗС № 72 "Партнер Нефть" [08:40:12]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [08:40:12]line СНО: Общий режим [08:40:12]line Чек 27 15.07.2024 08:40 [08:40:12]line Смена: 448 ФФД: 1.0 [08:40:12]line ЗНМ: 0300000160 [08:40:12]line РНМ: 0000000000090829 [08:40:12]line Версия ККМ: 001 [08:40:12]line ФМ: 0000000000874718 [08:40:12]line ФД: 165154 [08:40:12]line ФПД: 122914590390521 [08:40:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T084014&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165154&fm=122914590390521&tin=02508201610067®Number=0000000000090829&sum=25000 [08:40:12]OFD Sender: Processing packet 165154 [packets to send 106, broken 105] [08:40:12]ProducePacketName [08:40:12]name=ofd_packets/00165154 [08:40:12]OFD Sender: To server: pG, [08:40:12]CommunicateWithHost lk.salyk.kg:30040 [08:40:12]ConnectInit lk.salyk.kg [08:40:12]written 0, free lines is 4095 [08:40:12]Connected sock=10 [08:40:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 A8 5B 04 01 51 A4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 0D 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 BD 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 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 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 1B 00 00 00 F4 03 04 00 6E E0 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 22 85 02 00 35 04 06 00 6F CA 48 7F 78 F9 5F 05 DF 4A 1C 68 EC 28 [08:40:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 33 3A 47 00 06 CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 22 85 02 00 F4 03 04 00 F9 86 94 66 B6 04 01 00 00 3A 8E 56 24 99 14 51 0D [08:40:12]CommunicateWithHost err = 0 [08:40:12]CheckOFDResponse [08:40:12]1017 (14) - 77093643461234 [08:40:12]1041 (16) - 0000000000874718 [08:40:12]1040 (4) - 165154 [08:40:12]1012 (4) - 15.07.2024 02:18 [08:40:12]1206 (1) - 0 [08:40:12]OFD Sender: Remove packet 165154 [08:40:12]ProducePacketName [08:40:12]name=ofd_packets/00165154 [08:40:12]NVStorageDeleteData [08:40:13]Write to MH i2c: 01 00 00 80 1C 9C [08:40:13]Write i2c OK [08:40:13]MH_I2C_Read... [08:40:13]Read from MH i2c: 01 [08:40:13]MH_I2C_Read... [08:40:13]Read from MH i2c: 01 07 00 [08:40:13]MH_I2C_Read... [08:40:13]Read from MH i2c: 01 07 00 80 1C 00 00 00 00 00 04 0D B4 [08:40:13]RasterBufferAndPrint [08:40:13]line [08:40:13]line [08:40:13]line [08:40:13]line [08:40:13]line [08:40:13]written 0, free lines is 3339 [08:40:13]MH_Cut [08:40:13]Write to MH i2c: D1 01 00 87 1C 01 75 [08:40:13]Write i2c OK [08:40:13]MH_I2C_Read... [08:40:13]Read from MH i2c: D1 [08:40:13]MH_I2C_Read... [08:40:13]Read from MH i2c: D1 01 00 [08:40:13]MH_I2C_Read... [08:40:13]Read from MH i2c: D1 01 00 87 1C 00 74 [08:40:13]Write to MH i2c: 01 00 00 88 1C A4 [08:40:13]Write i2c OK [08:40:13]MH_I2C_Read... [08:40:13]OFD Sender: No OFD packet to send [08:40:13]*** Cut start [08:40:13]*** Partial cut [08:40:13]*** CUTSNS_PIN = 1 [08:40:13]*** CUTSNS_PIN = 0 [08:40:13]*** Brake cut motor [08:40:14]Read from MH i2c: 01 [08:40:14]MH_I2C_Read... [08:40:14]*** Stop cut motor [08:40:14]*** Cut end [08:40:14]Read from MH i2c: 01 07 00 [08:40:14]MH_I2C_Read... [08:40:14]Read from MH i2c: 01 07 00 88 1C 00 00 00 00 00 FF 0F B9 [08:40:14]process_action close_receipt done [08:40:14]requested_data is exist [08:40:14]produce_requested_data [08:40:14]requested_item fm.sn is exist - process it [08:40:14]wFMCommunicate request_size=4 [08:40:14]MH_SAM_APDU [08:40:14]CAPDU: 80 11 00 00 [08:40:14]Write to MH i2c: E2 08 00 89 1C 80 11 00 00 00 00 00 00 1F [08:40:14]Write i2c OK [08:40:14]MH_I2C_Read... [08:40:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:14]Read from MH i2c: E2 [08:40:14]MH_I2C_Read... [08:40:14]Read from MH i2c: E2 17 00 [08:40:14]MH_I2C_Read... [08:40:14]Read from MH i2c: E2 17 00 89 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 75 [08:40:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:40:14]wFMCommunicate OK [08:40:14]requested_item fd.num is exist - process it [08:40:14]SAM_PROTO_GetFieldsCounters [08:40:14]wFMCommunicate request_size=4 [08:40:14]MH_SAM_APDU [08:40:14]CAPDU: 80 13 00 00 [08:40:14]Write to MH i2c: E2 08 00 8A 1C 80 13 00 00 00 00 00 00 22 [08:40:14]Write i2c OK [08:40:14]MH_I2C_Read... [08:40:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:40:14]Read from MH i2c: E2 [08:40:14]MH_I2C_Read... [08:40:14]Read from MH i2c: E2 62 00 [08:40:14]MH_I2C_Read... [08:40:14]Read from MH i2c: E2 62 00 8A 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 22 85 02 00 0E 04 04 00 C0 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 04 [08:40: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 22 85 02 00 0E 04 04 00 C0 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 [08:40:14]wFMCommunicate OK [08:40:14]SAM_PROTO_GetFieldsCounters done [08:40:14]requested_item shift.num is exist - process it [08:40:14]requested_item shift.opened is exist - process it [08:40:14]req_shift_opened [08:40:14]FM_GetShiftState [08:40:14]SAM_PROTO_GetShiftState [08:40:14]wFMCommunicate request_size=4 [08:40:14]MH_SAM_APDU [08:40:14]CAPDU: 80 13 01 00 [08:40:14]Write to MH i2c: E2 08 00 8B 1C 80 13 01 00 00 00 00 00 24 [08:40:14]Write i2c OK [08:40:14]MH_I2C_Read... [08:40:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:14]Read from MH i2c: E2 [08:40:14]MH_I2C_Read... [08:40:14]Read from MH i2c: E2 0E 00 [08:40:14]MH_I2C_Read... [08:40:14]Read from MH i2c: E2 0E 00 8B 1C 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 FD [08:40:14]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [08:40:14]wFMCommunicate OK [08:40:14]SAM_PROTO_GetShiftState done [08:40:14]FM_GetShiftState done [08:40:14]req_shift_opened done [08:40:14]requested_item shift.open_date is exist - process it [08:40:14]req_shift_open_date [08:40:14]req_shift_open_date done [08:40:14]produce_requested_data done [08:40:14]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165154,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [08:40:14]process_action_free close_receipt [08:40:14]json_value_free [08:40:14]json_value_free done [08:40:14]process_json_proto returns [08:40:14]Send response to host [08:40:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165154,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [08:40:14]free response buf [08:40:14]execute_script done [08:40:14]execute_script returns [08:40:14]free content buf [08:40:14]Sock 9.Close socket [08:40:14]Sock 9.Thread stoped [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:41]accept exits with 7 [08:40:41]New connection [08:40:41]New thread 3066928484 created [08:40:41]Thread 3066785124 joined [08:40:41]Waiting for new connection... [08:40:41] Sock 7.Parse request [08:40:41]Sock 7.Check first char [08:40:41]Sock 7.First char is OK [08:40:41]request: POST /json_proto HTTP/1.0 [08:40:41]Method: POST [08:40:41]URL: /json_proto [08:40:41]Method is POST - this is cgi request [08:40:41]url: /json_proto [08:40:41]query_string will be loaded in cgi processing [08:40:41]execute_cgi json_proto POST (null) [08:40:41]execute_cgi path=json_proto method=POST [08:40:41]POST find Content-Length [08:40:41]Host: 172.17.56.4:8080 [08:40:41]Content-Length: 677 [08:40:41]Content-Type: application/json [08:40:41] [08:40:41]POST finish read [08:40:41]Found Content-Length = 677 [08:40:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:41]execute_script... [08:40: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)459256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:41]POST & json_proto [08:40:41]process_json_proto [08:40:41]json parsed OK: [08:40:41]protocol is kg_v1.0 [08:40:41]action value=close_receipt [08:40:41]process_action close_receipt [08:40:41]cmd_close_receipt [08:40:41]MH_GetDate [08:40:41]Write to MH i2c: F0 00 00 8C 1C 97 [08:40:41]Write i2c OK [08:40:41]MH_I2C_Read... [08:40:41]Read from MH i2c: F0 [08:40:41]MH_I2C_Read... [08:40:41]Read from MH i2c: F0 09 00 [08:40:41]MH_I2C_Read... [08:40:41]Read from MH i2c: F0 09 00 8C 1C 00 8D E0 94 66 C9 DC B2 64 C2 [08:40:41]GetLastDocTimeStamp 1721032814 [08:40:41]current date 1721032845 [08:40:41]FM_GetShiftState [08:40:41]SAM_PROTO_GetShiftState [08:40:41]wFMCommunicate request_size=4 [08:40:41]MH_SAM_APDU [08:40:41]CAPDU: 80 13 01 00 [08:40:41]Write to MH i2c: E2 08 00 8D 1C 80 13 01 00 00 00 00 00 26 [08:40:41]Write i2c OK [08:40:41]MH_I2C_Read... [08:40:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:41]Read from MH i2c: E2 [08:40:41]MH_I2C_Read... [08:40:41]Read from MH i2c: E2 0E 00 [08:40:41]MH_I2C_Read... [08:40:41]Read from MH i2c: E2 0E 00 8D 1C 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 FF [08:40:41]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [08:40:41]wFMCommunicate OK [08:40:41]SAM_PROTO_GetShiftState done [08:40:41]FM_GetShiftState done [08:40:41]opened in 1721003876 [08:40:41]opened+sec_in_day 1721090276 [08:40:41]quantity*price = 50008 [08:40:41]sum+1 = 50009 [08:40:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 28 15.07.2024 08:40 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165155 ФПД: 187253362077817 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T084045&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165155&fm=187253362077817&tin=02508201610067®Number=0000000000090829&sum=50000 [08:40:42]StoreToDocumentArchive [08:40:42]shift 448 fd 165155 [08:40:42]save to /storage/0448/doc_00165155 [08:40:42]save last doc name /storage/0448/doc_00165155 to /storage/kkm_last_doc_name [08:40:42]save OK [08:40:42]Clear old archive folders... [08:40:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:40:42]tlvbuf is 01365730 [08:40:42]SAM_PROTO_ClearQueue [08:40:42]wFMCommunicate request_size=4 [08:40:42]MH_SAM_APDU [08:40:42]CAPDU: 80 09 00 00 [08:40:42]Write to MH i2c: E2 08 00 9A 1C 80 09 00 00 00 00 00 00 28 [08:40:42]Write i2c OK [08:40:42]MH_I2C_Read... [08:40:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:40:42]Read from MH i2c: E2 [08:40:42]MH_I2C_Read... [08:40:42]Read from MH i2c: E2 03 00 [08:40:42]MH_I2C_Read... [08:40:42]Read from MH i2c: E2 03 00 9A 1C 00 90 00 2A [08:40:42]RAPDU: 90 00 [08:40:42]wFMCommunicate OK [08:40:42]SAM_PROTO_ClearQueue done [08:40:42]KKMCreateOFDPacket [08:40:42]OFDProtocolAddRootSTLVToBuf [08:40:42]FM_MakeSignedData [08:40:42]FM_MakeSignedData [08:40:42]SAM_PROTO_SignData [08:40:42]wFMCommunicate request_size=4 [08:40:42]MH_SAM_APDU [08:40:42]CAPDU: 80 0D 01 02 [08:40:42]Write to MH i2c: E2 08 00 9B 1C 80 0D 01 02 00 00 00 00 30 [08:40:42]Write i2c OK [08:40:42]MH_I2C_Read... [08:40:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:40:42]Read from MH i2c: E2 [08:40:42]MH_I2C_Read... [08:40:42]Read from MH i2c: E2 03 00 [08:40:42]MH_I2C_Read... [08:40:42]Read from MH i2c: E2 03 00 9B 1C 00 90 00 2B [08:40:42]RAPDU: 90 00 [08:40:42]wFMCommunicate OK [08:40:42]wFMCommunicate request_size=255 [08:40:42]MH_SAM_APDU [08:40: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 8D E0 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 23 85 02 00 35 04 06 00 AA [08:40:42]Write to MH i2c: E2 02 01 9C 1C 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 8D E0 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 23 85 02 00 35 04 06 00 AA 00 00 41 [08:40:42]Write i2c OK [08:40:42]MH_I2C_Read... [08:40:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:42]Read from MH i2c: E2 [08:40:42]MH_I2C_Read... [08:40:42]Read from MH i2c: E2 03 00 [08:40:42]MH_I2C_Read... [08:40:42]Read from MH i2c: E2 03 00 9C 1C 00 90 00 2C [08:40:42]RAPDU: 90 00 [08:40:42]wFMCommunicate OK [08:40:42]wFMCommunicate request_size=10 [08:40:42]MH_SAM_APDU [08:40:42]CAPDU: 80 0D 02 02 05 4E 52 21 30 79 [08:40:42]Write to MH i2c: E2 0D 00 9D 1C 80 0D 02 02 05 00 4E 52 21 30 79 00 00 A7 [08:40:42]Write i2c OK [08:40:42]MH_I2C_Read... [08:40:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:43]Read from MH i2c: E2 [08:40:43]MH_I2C_Read... [08:40:43]Read from MH i2c: E2 03 00 [08:40:43]MH_I2C_Read... [08:40:43]Read from MH i2c: E2 03 00 9D 1C 00 90 00 2D [08:40:43]RAPDU: 90 00 [08:40:43]wFMCommunicate OK [08:40:43]wFMCommunicate request_size=4 [08:40:43]MH_SAM_APDU [08:40:43]CAPDU: 80 0D 03 02 [08:40:43]Write to MH i2c: E2 08 00 9E 1C 80 0D 03 02 00 00 00 00 35 [08:40:43]Write i2c OK [08:40:43]MH_I2C_Read... [08:40:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:40:43]Read from MH i2c: E2 [08:40:43]MH_I2C_Read... [08:40:43]Read from MH i2c: E2 0B 00 [08:40:43]MH_I2C_Read... [08:40:43]Read from MH i2c: E2 0B 00 9E 1C 00 51 7F 68 F6 77 19 FB DC 90 00 CB [08:40:43]RAPDU: 51 7F 68 F6 77 19 FB DC 90 00 [08:40:43]wFMCommunicate OK [08:40:43]SAM_PROTO_SignData done [08:40:43]FM_MakeSignedData done [08:40:43]CreateOFDProtocolMessage [08:40:43]wFMCommunicate request_size=4 [08:40:43]MH_SAM_APDU [08:40:43]CAPDU: 80 11 00 00 [08:40:43]Write to MH i2c: E2 08 00 9F 1C 80 11 00 00 00 00 00 00 35 [08:40:43]Write i2c OK [08:40:43]MH_I2C_Read... [08:40:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:43]Read from MH i2c: E2 [08:40:43]MH_I2C_Read... [08:40:43]Read from MH i2c: E2 17 00 [08:40:43]MH_I2C_Read... [08:40:43]Read from MH i2c: E2 17 00 9F 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8B [08:40:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:40:43]wFMCommunicate OK [08:40:43]CreateOFDProtocolMessage done [08:40:43]OFDSenderStorePacket 165155 [08:40:43]StoreOFDPacket docnum=165155 [08:40:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 89 B3 07 01 7F F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 8D E0 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 23 85 02 00 35 04 06 00 AA 4E 52 21 30 79 51 7F 68 F6 77 19 FB DC [08:40:43]CheckFolder [08:40:43]dirname=/storage/ofd_packets [08:40:43]CheckFolder done [08:40:43]ProducePacketName [08:40:43]name=ofd_packets/00165155 [08:40:43]NVStorageSaveData ofd_packets/00165155 [08:40:43]File name is /storage/ofd_packets/00165155 [08:40:43]Write 301 bytes [08:40:43]NVStorageSaveData done [08:40:43]OFDSenderStorePacket done [08:40:43]KKMCreateOFDPacket done [08:40:43]NVStorageSaveData kkm_last_timestamp [08:40:43]File name is /storage/kkm_last_timestamp [08:40:43]Write 4 bytes [08:40:43]OFD Sender: Processing packet 165155 [packets to send 106, broken 105] [08:40:43]ProducePacketName [08:40:43]name=ofd_packets/00165155 [08:40:43]OFD Sender: To server: pG, [08:40:43]CommunicateWithHost lk.salyk.kg:30040 [08:40:43]ConnectInit lk.salyk.kg [08:40:43]NVStorageSaveData done [08:40:43]ExternCall_PrintAddStr [08:40:43]wPrintStart [08:40:43]Write to MH i2c: 01 00 00 A0 1C BC [08:40:43]Write i2c OK [08:40:43]MH_I2C_Read... [08:40:43]Read from MH i2c: 01 [08:40:43]MH_I2C_Read... [08:40:43]Read from MH i2c: 01 07 00 [08:40:43]MH_I2C_Read... [08:40:43]Read from MH i2c: 01 07 00 A0 1C 00 00 00 00 00 FF 0F D1 [08:40:43]RasterBufferAndPrint [08:40:43]line Счет N : (1)459256 [08:40:43]line ИНН: 02508201610067 [08:40:43]line Контрольно-Кассовый Чек [08:40:43]line ПРОДАЖА [08:40:43]line ТРК (МРК, ГНК) : 12 [08:40:43]line Товар: 2710124130 [08:40:43]line Аи-92-К-5 [08:40:43]line 7.600 * 65.80 [08:40:43]line = 500.08 [08:40:43]line НДС 12% НСП 1% [08:40:43]line > о реализуемом товаре [08:40:43]line ОКРУГЛЕНИЕ: -0.08 [08:40:43]line ИТОГО: 500.00 [08:40:43]line Внесено: 500.00 [08:40:43]line СДАЧА: 0.00 [08:40:43]line НСП 1% : 4.42 [08:40:43]line НДС 12% : 53.11 [08:40:43]line Наличными: 500.00 [08:40:43]line Безнал.: 0.00 [08:40:43]line Место: АЗС № 72 "Партнер Нефть" [08:40:43]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [08:40:43]line СНО: Общий режим [08:40:43]line Чек 28 15.07.2024 08:40 [08:40:43]line Смена: 448 ФФД: 1.0 [08:40:43]line ЗНМ: 0300000160 [08:40:43]line РНМ: 0000000000090829 [08:40:43]line Версия ККМ: 001 [08:40:43]line ФМ: 0000000000874718 [08:40:43]line ФД: 165155 [08:40:43]line ФПД: 187253362077817 [08:40:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T084045&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165155&fm=187253362077817&tin=02508201610067®Number=0000000000090829&sum=50000 [08:40:43]Connected sock=11 [08:40: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 37 31 38 0F 01 00 00 89 B3 07 01 7F F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 8D E0 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 23 85 02 00 35 04 06 00 AA 4E 52 21 30 79 51 7F 68 F6 77 19 FB DC [08:40:43]written 0, free lines is 4095 [08:40:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 59 00 47 00 FD 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 23 85 02 00 F4 03 04 00 18 87 94 66 B6 04 01 00 00 4A 88 58 EC B4 98 B5 BB [08:40:43]CommunicateWithHost err = 0 [08:40:43]CheckOFDResponse [08:40:43]1017 (14) - 77093643461234 [08:40:43]1041 (16) - 0000000000874718 [08:40:43]1040 (4) - 165155 [08:40:43]1012 (4) - 15.07.2024 02:19 [08:40:43]1206 (1) - 0 [08:40:43]OFD Sender: Remove packet 165155 [08:40:43]ProducePacketName [08:40:43]name=ofd_packets/00165155 [08:40:43]NVStorageDeleteData [08:40:43]Write to MH i2c: 01 00 00 CA 1C E6 [08:40:43]Write i2c OK [08:40:43]MH_I2C_Read... [08:40:43]Read from MH i2c: 01 [08:40:43]MH_I2C_Read... [08:40:43]Read from MH i2c: 01 07 00 [08:40:43]MH_I2C_Read... [08:40:43]Read from MH i2c: 01 07 00 CA 1C 00 00 00 00 00 01 0D FB [08:40:43]RasterBufferAndPrint [08:40:43]line [08:40:43]line [08:40:43]line [08:40:43]line [08:40:43]line [08:40:43]written 0, free lines is 3338 [08:40:43]MH_Cut [08:40:43]Write to MH i2c: D1 01 00 D1 1C 01 BF [08:40:43]Write i2c OK [08:40:43]MH_I2C_Read... [08:40:43]Read from MH i2c: D1 [08:40:43]MH_I2C_Read... [08:40:43]Read from MH i2c: D1 01 00 [08:40:43]MH_I2C_Read... [08:40:43]Read from MH i2c: D1 01 00 D1 1C 00 BE [08:40:43]Write to MH i2c: 01 00 00 D2 1C EE [08:40:43]Write i2c OK [08:40:43]MH_I2C_Read... [08:40:44]OFD Sender: No OFD packet to send [08:40:44]*** Cut start [08:40:44]*** Partial cut [08:40:44]*** CUTSNS_PIN = 1 [08:40:44]*** CUTSNS_PIN = 0 [08:40:44]*** Brake cut motor [08:40:45]Read from MH i2c: 01 [08:40:45]MH_I2C_Read... [08:40:45]*** Stop cut motor [08:40:45]*** Cut end [08:40:45]Read from MH i2c: 01 07 00 [08:40:45]MH_I2C_Read... [08:40:45]Read from MH i2c: 01 07 00 D2 1C 00 00 00 00 00 FF 0F 03 [08:40:45]process_action close_receipt done [08:40:45]requested_data is exist [08:40:45]produce_requested_data [08:40:45]requested_item fm.sn is exist - process it [08:40:45]wFMCommunicate request_size=4 [08:40:45]MH_SAM_APDU [08:40:45]CAPDU: 80 11 00 00 [08:40:45]Write to MH i2c: E2 08 00 D3 1C 80 11 00 00 00 00 00 00 69 [08:40:45]Write i2c OK [08:40:45]MH_I2C_Read... [08:40:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:45]Read from MH i2c: E2 [08:40:45]MH_I2C_Read... [08:40:45]Read from MH i2c: E2 17 00 [08:40:45]MH_I2C_Read... [08:40:45]Read from MH i2c: E2 17 00 D3 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 BF [08:40:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:40:45]wFMCommunicate OK [08:40:45]requested_item fd.num is exist - process it [08:40:45]SAM_PROTO_GetFieldsCounters [08:40:45]wFMCommunicate request_size=4 [08:40:45]MH_SAM_APDU [08:40:45]CAPDU: 80 13 00 00 [08:40:45]Write to MH i2c: E2 08 00 D4 1C 80 13 00 00 00 00 00 00 6C [08:40:45]Write i2c OK [08:40:45]MH_I2C_Read... [08:40:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:40:45]Read from MH i2c: E2 [08:40:45]MH_I2C_Read... [08:40:45]Read from MH i2c: E2 62 00 [08:40:45]MH_I2C_Read... [08:40:45]Read from MH i2c: E2 62 00 D4 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 23 85 02 00 0E 04 04 00 C0 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 52 [08:40: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 23 85 02 00 0E 04 04 00 C0 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 [08:40:45]wFMCommunicate OK [08:40:45]SAM_PROTO_GetFieldsCounters done [08:40:45]requested_item shift.num is exist - process it [08:40:45]requested_item shift.opened is exist - process it [08:40:45]req_shift_opened [08:40:45]FM_GetShiftState [08:40:45]SAM_PROTO_GetShiftState [08:40:45]wFMCommunicate request_size=4 [08:40:45]MH_SAM_APDU [08:40:45]CAPDU: 80 13 01 00 [08:40:45]Write to MH i2c: E2 08 00 D5 1C 80 13 01 00 00 00 00 00 6E [08:40:45]Write i2c OK [08:40:45]MH_I2C_Read... [08:40:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:45]Read from MH i2c: E2 [08:40:45]MH_I2C_Read... [08:40:45]Read from MH i2c: E2 0E 00 [08:40:45]MH_I2C_Read... [08:40:45]Read from MH i2c: E2 0E 00 D5 1C 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 47 [08:40:45]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [08:40:45]wFMCommunicate OK [08:40:45]SAM_PROTO_GetShiftState done [08:40:45]FM_GetShiftState done [08:40:45]req_shift_opened done [08:40:45]requested_item shift.open_date is exist - process it [08:40:45]req_shift_open_date [08:40:45]req_shift_open_date done [08:40:45]produce_requested_data done [08:40:45]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165155,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [08:40:45]process_action_free close_receipt [08:40:45]json_value_free [08:40:45]json_value_free done [08:40:45]process_json_proto returns [08:40:45]Send response to host [08:40:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165155,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [08:40:45]free response buf [08:40:45]execute_script done [08:40:45]execute_script returns [08:40:45]free content buf [08:40:45]Sock 7.Close socket [08:40:45]Sock 7.Thread stoped [08:40:49]OFD Sender: No OFD packet to send [08:40:54]OFD Sender: No OFD packet to send [08:40:59]OFD Sender: No OFD packet to send [08:41:04]OFD Sender: No OFD packet to send [08:41:09]OFD Sender: No OFD packet to send [08:41:14]OFD Sender: No OFD packet to send [08:41:19]OFD Sender: No OFD packet to send [08:41:24]OFD Sender: No OFD packet to send [08:41:29]OFD Sender: No OFD packet to send [08:41:34]OFD Sender: No OFD packet to send [08:41:39]OFD Sender: No OFD packet to send [08:41:44]OFD Sender: No OFD packet to send [08:41:49]OFD Sender: No OFD packet to send [08:41:54]OFD Sender: No OFD packet to send [08:41:59]OFD Sender: No OFD packet to send [08:42:04]OFD Sender: No OFD packet to send [08:42:09]OFD Sender: No OFD packet to send [08:42:14]OFD Sender: No OFD packet to send [08:42:19]OFD Sender: No OFD packet to send [08:42:24]OFD Sender: No OFD packet to send [08:42:29]OFD Sender: No OFD packet to send [08:42:34]OFD Sender: No OFD packet to send [08:42:39]OFD Sender: No OFD packet to send [08:42:44]OFD Sender: No OFD packet to send [08:42:49]OFD Sender: No OFD packet to send [08:42:54]OFD Sender: No OFD packet to send [08:42:59]OFD Sender: No OFD packet to send [08:43:04]OFD Sender: No OFD packet to send [08:43:09]OFD Sender: No OFD packet to send [08:43:14]OFD Sender: No OFD packet to send [08:43:19]OFD Sender: No OFD packet to send [08:43:24]OFD Sender: No OFD packet to send [08:43:29]OFD Sender: No OFD packet to send [08:43:34]OFD Sender: No OFD packet to send [08:43:39]OFD Sender: No OFD packet to send [08:43:44]OFD Sender: No OFD packet to send [08:43:49]OFD Sender: No OFD packet to send [08:43:54]OFD Sender: No OFD packet to send [08:43:59]OFD Sender: No OFD packet to send [08:44:04]OFD Sender: No OFD packet to send [08:44:09]OFD Sender: No OFD packet to send [08:44:14]OFD Sender: No OFD packet to send [08:44:19]OFD Sender: No OFD packet to send [08:44:24]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:39]OFD Sender: No OFD packet to send [08:46:44]OFD Sender: No OFD packet to send [08:46:49]OFD Sender: No OFD packet to send [08:46:54]OFD Sender: No OFD packet to send [08:46:59]OFD Sender: No OFD packet to send [08:47:04]OFD Sender: No OFD packet to send [08:47:09]OFD Sender: No OFD packet to send [08:47:14]OFD Sender: No OFD packet to send [08:47:19]OFD Sender: No OFD packet to send [08:47:24]OFD Sender: No OFD packet to send [08:47:29]OFD Sender: No OFD packet to send [08:47:34]OFD Sender: No OFD packet to send [08:47:39]OFD Sender: No OFD packet to send [08:47:44]OFD Sender: No OFD packet to send [08:47:49]OFD Sender: No OFD packet to send [08:47:54]OFD Sender: No OFD packet to send [08:47:59]OFD Sender: No OFD packet to send [08:48:04]OFD Sender: No OFD packet to send [08:48:09]OFD Sender: No OFD packet to send [08:48:14]OFD Sender: No OFD packet to send [08:48:19]OFD Sender: No OFD packet to send [08:48:24]OFD Sender: No OFD packet to send [08:48:29]OFD Sender: No OFD packet to send [08:48:34]OFD Sender: No OFD packet to send [08:48:37]accept exits with 9 [08:48:37]New connection [08:48:37]New thread 3066785124 created [08:48:37]Thread 3066928484 joined [08:48:37]Waiting for new connection... [08:48:37] Sock 9.Parse request [08:48:37]Sock 9.Check first char [08:48:37]Sock 9.First char is OK [08:48:37]request: POST /json_proto HTTP/1.0 [08:48:37]Method: POST [08:48:37]URL: /json_proto [08:48:37]Method is POST - this is cgi request [08:48:37]url: /json_proto [08:48:37]query_string will be loaded in cgi processing [08:48:37]execute_cgi json_proto POST (null) [08:48:37]execute_cgi path=json_proto method=POST [08:48:37]POST find Content-Length [08:48:37]Host: 172.17.56.4:8080 [08:48:37]Content-Length: 679 [08:48:37]Content-Type: application/json [08:48:37] [08:48:37]POST finish read [08:48:37]Found Content-Length = 679 [08:48:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 55.640, "sum" : 4000.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:37]execute_script... [08:48:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 55.640, "sum" : 4000.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:37]POST & json_proto [08:48:37]process_json_proto [08:48:37]json parsed OK: [08:48:37]protocol is kg_v1.0 [08:48:37]action value=close_receipt [08:48:37]process_action close_receipt [08:48:37]cmd_close_receipt [08:48:37]MH_GetDate [08:48:37]Write to MH i2c: F0 00 00 D6 1C E1 [08:48:37]Write i2c OK [08:48:37]MH_I2C_Read... [08:48:37]Read from MH i2c: F0 [08:48:37]MH_I2C_Read... [08:48:37]Read from MH i2c: F0 09 00 [08:48:37]MH_I2C_Read... [08:48:37]Read from MH i2c: F0 09 00 D6 1C 00 6A E2 94 66 C9 DC B2 64 EB [08:48:37]GetLastDocTimeStamp 1721032845 [08:48:37]current date 1721033322 [08:48:37]FM_GetShiftState [08:48:37]SAM_PROTO_GetShiftState [08:48:37]wFMCommunicate request_size=4 [08:48:37]MH_SAM_APDU [08:48:37]CAPDU: 80 13 01 00 [08:48:37]Write to MH i2c: E2 08 00 D7 1C 80 13 01 00 00 00 00 00 70 [08:48:37]Write i2c OK [08:48:37]MH_I2C_Read... [08:48:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:37]Read from MH i2c: E2 [08:48:37]MH_I2C_Read... [08:48:37]Read from MH i2c: E2 0E 00 [08:48:37]MH_I2C_Read... [08:48:37]Read from MH i2c: E2 0E 00 D7 1C 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 49 [08:48:37]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [08:48:37]wFMCommunicate OK [08:48:37]SAM_PROTO_GetShiftState done [08:48:37]FM_GetShiftState done [08:48:37]opened in 1721003876 [08:48:37]opened+sec_in_day 1721090276 [08:48:37]quantity*price = 400051 [08:48:37]sum+1 = 400053 [08:48:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 29 15.07.2024 08:48 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165156 ФПД: 82706917727526 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T084842&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165156&fm=82706917727526&tin=02508201610067®Number=0000000000090829&sum=400000 [08:48:38]StoreToDocumentArchive [08:48:38]shift 448 fd 165156 [08:48:38]save to /storage/0448/doc_00165156 [08:48:38]save last doc name /storage/0448/doc_00165156 to /storage/kkm_last_doc_name [08:48:38]save OK [08:48:38]Clear old archive folders... [08:48:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:48:38]tlvbuf is 0139CB10 [08:48:38]SAM_PROTO_ClearQueue [08:48:38]wFMCommunicate request_size=4 [08:48:38]MH_SAM_APDU [08:48:38]CAPDU: 80 09 00 00 [08:48:38]Write to MH i2c: E2 08 00 E4 1C 80 09 00 00 00 00 00 00 72 [08:48:38]Write i2c OK [08:48:38]MH_I2C_Read... [08:48:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:48:38]Read from MH i2c: E2 [08:48:38]MH_I2C_Read... [08:48:38]Read from MH i2c: E2 03 00 [08:48:38]MH_I2C_Read... [08:48:38]Read from MH i2c: E2 03 00 E4 1C 00 90 00 74 [08:48:38]RAPDU: 90 00 [08:48:38]wFMCommunicate OK [08:48:38]SAM_PROTO_ClearQueue done [08:48:38]KKMCreateOFDPacket [08:48:38]OFDProtocolAddRootSTLVToBuf [08:48:38]FM_MakeSignedData [08:48:38]FM_MakeSignedData [08:48:38]SAM_PROTO_SignData [08:48:38]wFMCommunicate request_size=4 [08:48:38]MH_SAM_APDU [08:48:38]CAPDU: 80 0D 01 02 [08:48:38]Write to MH i2c: E2 08 00 E5 1C 80 0D 01 02 00 00 00 00 7A [08:48:38]Write i2c OK [08:48:38]MH_I2C_Read... [08:48:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:48:38]Read from MH i2c: E2 [08:48:38]MH_I2C_Read... [08:48:38]Read from MH i2c: E2 03 00 [08:48:38]MH_I2C_Read... [08:48:38]Read from MH i2c: E2 03 00 E5 1C 00 90 00 75 [08:48:38]RAPDU: 90 00 [08:48:38]wFMCommunicate OK [08:48:38]wFMCommunicate request_size=255 [08:48:38]MH_SAM_APDU [08:48:38]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 58 D9 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B4 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 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 6A E2 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 24 85 02 00 35 04 06 00 4B 38 B4 73 [08:48:38]Write to MH i2c: E2 02 01 E6 1C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 58 D9 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B4 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 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 6A E2 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 24 85 02 00 35 04 06 00 4B 38 B4 73 00 00 46 [08:48:38]Write i2c OK [08:48:38]MH_I2C_Read... [08:48:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:39]Read from MH i2c: E2 [08:48:39]MH_I2C_Read... [08:48:39]Read from MH i2c: E2 03 00 [08:48:39]MH_I2C_Read... [08:48:39]Read from MH i2c: E2 03 00 E6 1C 00 90 00 76 [08:48:39]RAPDU: 90 00 [08:48:39]wFMCommunicate OK [08:48:39]wFMCommunicate request_size=7 [08:48:39]MH_SAM_APDU [08:48:39]CAPDU: 80 0D 02 02 02 9D 26 [08:48:39]Write to MH i2c: E2 0A 00 E7 1C 80 0D 02 02 02 00 9D 26 00 00 44 [08:48:39]Write i2c OK [08:48:39]MH_I2C_Read... [08:48:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:39]Read from MH i2c: E2 [08:48:39]MH_I2C_Read... [08:48:39]Read from MH i2c: E2 03 00 [08:48:39]MH_I2C_Read... [08:48:39]Read from MH i2c: E2 03 00 E7 1C 00 90 00 77 [08:48:39]RAPDU: 90 00 [08:48:39]wFMCommunicate OK [08:48:39]wFMCommunicate request_size=4 [08:48:39]MH_SAM_APDU [08:48:39]CAPDU: 80 0D 03 02 [08:48:39]Write to MH i2c: E2 08 00 E8 1C 80 0D 03 02 00 00 00 00 7F [08:48:39]Write i2c OK [08:48:39]MH_I2C_Read... [08:48:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:48:39]Read from MH i2c: E2 [08:48:39]MH_I2C_Read... [08:48:39]Read from MH i2c: E2 0B 00 [08:48:39]MH_I2C_Read... [08:48:39]Read from MH i2c: E2 0B 00 E8 1C 00 A8 E9 2A 6F 92 44 3F 3E 90 00 FD [08:48:39]RAPDU: A8 E9 2A 6F 92 44 3F 3E 90 00 [08:48:39]wFMCommunicate OK [08:48:39]SAM_PROTO_SignData done [08:48:39]FM_MakeSignedData done [08:48:39]CreateOFDProtocolMessage [08:48:39]wFMCommunicate request_size=4 [08:48:39]MH_SAM_APDU [08:48:39]CAPDU: 80 11 00 00 [08:48:39]Write to MH i2c: E2 08 00 E9 1C 80 11 00 00 00 00 00 00 7F [08:48:39]Write i2c OK [08:48:39]MH_I2C_Read... [08:48:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:39]Read from MH i2c: E2 [08:48:39]MH_I2C_Read... [08:48:39]Read from MH i2c: E2 17 00 [08:48:39]MH_I2C_Read... [08:48:39]Read from MH i2c: E2 17 00 E9 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D5 [08:48:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:48:39]wFMCommunicate OK [08:48:39]CreateOFDProtocolMessage done [08:48:39]OFDSenderStorePacket 165156 [08:48:39]StoreOFDPacket docnum=165156 [08:48:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 FD 07 04 01 9B D2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 58 D9 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B4 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 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 6A E2 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 24 85 02 00 35 04 06 00 4B 38 B4 73 9D 26 A8 E9 2A 6F 92 44 3F 3E [08:48:39]CheckFolder [08:48:39]dirname=/storage/ofd_packets [08:48:39]CheckFolder done [08:48:39]ProducePacketName [08:48:39]name=ofd_packets/00165156 [08:48:39]NVStorageSaveData ofd_packets/00165156 [08:48:39]File name is /storage/ofd_packets/00165156 [08:48:39]Write 298 bytes [08:48:39]NVStorageSaveData done [08:48:39]OFDSenderStorePacket done [08:48:39]KKMCreateOFDPacket done [08:48:39]NVStorageSaveData kkm_last_timestamp [08:48:39]File name is /storage/kkm_last_timestamp [08:48:39]Write 4 bytes [08:48:39]NVStorageSaveData done [08:48:39]ExternCall_PrintAddStr [08:48:39]wPrintStart [08:48:39]Write to MH i2c: 01 00 00 EA 1C 06 [08:48:39]Write i2c OK [08:48:39]MH_I2C_Read... [08:48:39]Read from MH i2c: 01 [08:48:39]MH_I2C_Read... [08:48:39]Read from MH i2c: 01 07 00 [08:48:39]MH_I2C_Read... [08:48:39]Read from MH i2c: 01 07 00 EA 1C 00 00 00 00 00 FF 0F 1B [08:48:39]RasterBufferAndPrint [08:48:39]line Счет N : (1)459257 [08:48:39]line ИНН: 02508201610067 [08:48:39]line Контрольно-Кассовый Чек [08:48:39]line ПРОДАЖА [08:48:39]line ТРК (МРК, ГНК) : 11 [08:48:39]line Товар: 2710194210 [08:48:39]line ДТ-К-5 [08:48:39]line 55.640 * 71.90 [08:48:39]line = 4000.52 [08:48:39]line НДС 12% НСП 1% [08:48:39]line > о реализуемом товаре [08:48:39]line ОКРУГЛЕНИЕ: -0.52 [08:48:39]line ИТОГО: 4000.00 [08:48:39]line Внесено: 4000.00 [08:48:39]line СДАЧА: 0.00 [08:48:39]line НСП 1% : 35.40 [08:48:39]line НДС 12% : 424.83 [08:48:39]line Наличными: 4000.00 [08:48:39]line Безнал.: 0.00 [08:48:39]line Место: АЗС № 72 "Партнер Нефть" [08:48:39]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [08:48:39]line СНО: Общий режим [08:48:39]line Чек 29 15.07.2024 08:48 [08:48:39]line Смена: 448 ФФД: 1.0 [08:48:39]line ЗНМ: 0300000160 [08:48:39]line РНМ: 0000000000090829 [08:48:39]line Версия ККМ: 001 [08:48:39]line ФМ: 0000000000874718 [08:48:39]line ФД: 165156 [08:48:39]line ФПД: 82706917727526 [08:48:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T084842&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165156&fm=82706917727526&tin=02508201610067®Number=0000000000090829&sum=400000 [08:48:39]OFD Sender: Processing packet 165156 [packets to send 106, broken 105] [08:48:39]ProducePacketName [08:48:39]name=ofd_packets/00165156 [08:48:39]OFD Sender: To server: pG, [08:48:39]CommunicateWithHost lk.salyk.kg:30040 [08:48:39]ConnectInit lk.salyk.kg [08:48:39]written 0, free lines is 4095 [08:48:39]Connected sock=10 [08:48:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 FD 07 04 01 9B D2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 58 D9 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B4 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 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 6A E2 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 24 85 02 00 35 04 06 00 4B 38 B4 73 9D 26 A8 E9 2A 6F 92 44 3F 3E [08:48:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 EE 48 47 00 46 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 24 85 02 00 F4 03 04 00 F4 88 94 66 B6 04 01 00 00 9F 1E 87 90 F8 4D 4A 5C [08:48:39]CommunicateWithHost err = 0 [08:48:39]CheckOFDResponse [08:48:39]1017 (14) - 77093643461234 [08:48:39]1041 (16) - 0000000000874718 [08:48:39]1040 (4) - 165156 [08:48:39]1012 (4) - 15.07.2024 02:27 [08:48:39]1206 (1) - 0 [08:48:39]OFD Sender: Remove packet 165156 [08:48:39]ProducePacketName [08:48:39]name=ofd_packets/00165156 [08:48:39]NVStorageDeleteData [08:48:40]Write to MH i2c: 01 00 00 14 1D 31 [08:48:40]Write i2c OK [08:48:40]MH_I2C_Read... [08:48:40]Read from MH i2c: 01 [08:48:40]MH_I2C_Read... [08:48:40]Read from MH i2c: 01 07 00 [08:48:40]MH_I2C_Read... [08:48:40]Read from MH i2c: 01 07 00 14 1D 00 00 00 00 00 F5 0C 39 [08:48:40]RasterBufferAndPrint [08:48:40]line [08:48:40]line [08:48:40]line [08:48:40]line [08:48:40]line [08:48:40]written 0, free lines is 3323 [08:48:40]MH_Cut [08:48:40]Write to MH i2c: D1 01 00 1B 1D 01 0A [08:48:40]Write i2c OK [08:48:40]MH_I2C_Read... [08:48:40]Read from MH i2c: D1 [08:48:40]MH_I2C_Read... [08:48:40]Read from MH i2c: D1 01 00 [08:48:40]MH_I2C_Read... [08:48:40]Read from MH i2c: D1 01 00 1B 1D 00 09 [08:48:40]Write to MH i2c: 01 00 00 1C 1D 39 [08:48:40]Write i2c OK [08:48:40]MH_I2C_Read... [08:48:40]OFD Sender: No OFD packet to send [08:48:40]*** Cut start [08:48:40]*** Partial cut [08:48:40]*** CUTSNS_PIN = 1 [08:48:40]*** CUTSNS_PIN = 0 [08:48:41]*** Brake cut motor [08:48:41]Read from MH i2c: 01 [08:48:41]MH_I2C_Read... [08:48:41]*** Stop cut motor [08:48:41]*** Cut end [08:48:41]Read from MH i2c: 01 07 00 [08:48:41]MH_I2C_Read... [08:48:41]Read from MH i2c: 01 07 00 1C 1D 00 00 00 00 00 FF 0F 4E [08:48:41]process_action close_receipt done [08:48:41]requested_data is exist [08:48:41]produce_requested_data [08:48:41]requested_item fm.sn is exist - process it [08:48:41]wFMCommunicate request_size=4 [08:48:41]MH_SAM_APDU [08:48:41]CAPDU: 80 11 00 00 [08:48:41]Write to MH i2c: E2 08 00 1D 1D 80 11 00 00 00 00 00 00 B4 [08:48:41]Write i2c OK [08:48:41]MH_I2C_Read... [08:48:41]Read from MH i2c: E2 [08:48:41]MH_I2C_Read... [08:48:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:41]Read from MH i2c: E2 17 00 [08:48:41]MH_I2C_Read... [08:48:41]Read from MH i2c: E2 17 00 1D 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0A [08:48:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:48:41]wFMCommunicate OK [08:48:41]requested_item fd.num is exist - process it [08:48:41]SAM_PROTO_GetFieldsCounters [08:48:41]wFMCommunicate request_size=4 [08:48:41]MH_SAM_APDU [08:48:41]CAPDU: 80 13 00 00 [08:48:41]Write to MH i2c: E2 08 00 1E 1D 80 13 00 00 00 00 00 00 B7 [08:48:41]Write i2c OK [08:48:41]MH_I2C_Read... [08:48:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:48:41]Read from MH i2c: E2 [08:48:41]MH_I2C_Read... [08:48:41]Read from MH i2c: E2 62 00 [08:48:41]MH_I2C_Read... [08:48:41]Read from MH i2c: E2 62 00 1E 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 24 85 02 00 0E 04 04 00 C0 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 A1 [08:48: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 24 85 02 00 0E 04 04 00 C0 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 [08:48:41]wFMCommunicate OK [08:48:41]SAM_PROTO_GetFieldsCounters done [08:48:41]requested_item shift.num is exist - process it [08:48:41]requested_item shift.opened is exist - process it [08:48:41]req_shift_opened [08:48:41]FM_GetShiftState [08:48:41]SAM_PROTO_GetShiftState [08:48:41]wFMCommunicate request_size=4 [08:48:41]MH_SAM_APDU [08:48:41]CAPDU: 80 13 01 00 [08:48:41]Write to MH i2c: E2 08 00 1F 1D 80 13 01 00 00 00 00 00 B9 [08:48:41]Write i2c OK [08:48:41]MH_I2C_Read... [08:48:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:41]Read from MH i2c: E2 [08:48:41]MH_I2C_Read... [08:48:41]Read from MH i2c: E2 0E 00 [08:48:41]MH_I2C_Read... [08:48:41]Read from MH i2c: E2 0E 00 1F 1D 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 92 [08:48:41]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [08:48:41]wFMCommunicate OK [08:48:41]SAM_PROTO_GetShiftState done [08:48:41]FM_GetShiftState done [08:48:41]req_shift_opened done [08:48:41]requested_item shift.open_date is exist - process it [08:48:41]req_shift_open_date [08:48:41]req_shift_open_date done [08:48:41]produce_requested_data done [08:48:41]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165156,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [08:48:41]process_action_free close_receipt [08:48:41]json_value_free [08:48:41]json_value_free done [08:48:41]process_json_proto returns [08:48:41]Send response to host [08:48:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165156,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [08:48:41]free response buf [08:48:41]execute_script done [08:48:41]execute_script returns [08:48:41]free content buf [08:48:41]Sock 9.Close socket [08:48:41]Sock 9.Thread stoped [08:48:45]OFD Sender: No OFD packet to send [08:48:50]OFD Sender: No OFD packet to send [08:48:55]OFD Sender: No OFD packet to send [08:49:00]OFD Sender: No OFD packet to send [08:49:05]OFD Sender: No OFD packet to send [08:49:10]OFD Sender: No OFD packet to send [08:49:15]OFD Sender: No OFD packet to send [08:49:20]OFD Sender: No OFD packet to send [08:49:25]OFD Sender: No OFD packet to send [08:49:30]OFD Sender: No OFD packet to send [08:49:35]OFD Sender: No OFD packet to send [08:49:40]OFD Sender: No OFD packet to send [08:49:42]accept exits with 7 [08:49:42]New connection [08:49:42]New thread 3066928484 created [08:49:42]Thread 3066785124 joined [08:49:42]Waiting for new connection... [08:49:42] Sock 7.Parse request [08:49:42]Sock 7.Check first char [08:49:42]Sock 7.First char is OK [08:49:42]request: POST /json_proto HTTP/1.0 [08:49:42]Method: POST [08:49:42]URL: /json_proto [08:49:42]Method is POST - this is cgi request [08:49:42]url: /json_proto [08:49:42]query_string will be loaded in cgi processing [08:49:42]execute_cgi json_proto POST (null) [08:49:42]execute_cgi path=json_proto method=POST [08:49:42]POST find Content-Length [08:49:42]Host: 172.17.56.4:8080 [08:49:42]Content-Length: 682 [08:49:42]Content-Type: application/json [08:49:42] [08:49:42]POST finish read [08:49:42]Found Content-Length = 682 [08:49:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:49:42]execute_script... [08:49: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)459258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:49:42]POST & json_proto [08:49:42]process_json_proto [08:49:42]json parsed OK: [08:49:42]protocol is kg_v1.0 [08:49:42]action value=close_receipt [08:49:42]process_action close_receipt [08:49:42]cmd_close_receipt [08:49:42]MH_GetDate [08:49:42]Write to MH i2c: F0 00 00 20 1D 2C [08:49:42]Write i2c OK [08:49:42]MH_I2C_Read... [08:49:42]Read from MH i2c: F0 [08:49:42]MH_I2C_Read... [08:49:42]Read from MH i2c: F0 09 00 [08:49:42]MH_I2C_Read... [08:49:42]Read from MH i2c: F0 09 00 20 1D 00 AB E2 94 66 C9 DC B2 64 77 [08:49:42]GetLastDocTimeStamp 1721033322 [08:49:42]current date 1721033387 [08:49:42]FM_GetShiftState [08:49:42]SAM_PROTO_GetShiftState [08:49:42]wFMCommunicate request_size=4 [08:49:42]MH_SAM_APDU [08:49:42]CAPDU: 80 13 01 00 [08:49:42]Write to MH i2c: E2 08 00 21 1D 80 13 01 00 00 00 00 00 BB [08:49:42]Write i2c OK [08:49:42]MH_I2C_Read... [08:49:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:49:43]Read from MH i2c: E2 [08:49:43]MH_I2C_Read... [08:49:43]Read from MH i2c: E2 0E 00 [08:49:43]MH_I2C_Read... [08:49:43]Read from MH i2c: E2 0E 00 21 1D 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 94 [08:49:43]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [08:49:43]wFMCommunicate OK [08:49:43]SAM_PROTO_GetShiftState done [08:49:43]FM_GetShiftState done [08:49:43]opened in 1721003876 [08:49:43]opened+sec_in_day 1721090276 [08:49:43]quantity*price = 100016 [08:49:43]sum+1 = 100017 [08:49:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 30 15.07.2024 08:49 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165157 ФПД: 170158273645531 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T084947&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165157&fm=170158273645531&tin=02508201610067®Number=0000000000090829&sum=100000 [08:49:44]StoreToDocumentArchive [08:49:44]shift 448 fd 165157 [08:49:44]save to /storage/0448/doc_00165157 [08:49:44]save last doc name /storage/0448/doc_00165157 to /storage/kkm_last_doc_name [08:49:44]save OK [08:49:44]Clear old archive folders... [08:49:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:49:44]tlvbuf is 013C04C0 [08:49:44]SAM_PROTO_ClearQueue [08:49:44]wFMCommunicate request_size=4 [08:49:44]MH_SAM_APDU [08:49:44]CAPDU: 80 09 00 00 [08:49:44]Write to MH i2c: E2 08 00 2E 1D 80 09 00 00 00 00 00 00 BD [08:49:44]Write i2c OK [08:49:44]MH_I2C_Read... [08:49:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:49:44]Read from MH i2c: E2 [08:49:44]MH_I2C_Read... [08:49:44]Read from MH i2c: E2 03 00 [08:49:44]MH_I2C_Read... [08:49:44]Read from MH i2c: E2 03 00 2E 1D 00 90 00 BF [08:49:44]RAPDU: 90 00 [08:49:44]wFMCommunicate OK [08:49:44]SAM_PROTO_ClearQueue done [08:49:44]KKMCreateOFDPacket [08:49:44]OFDProtocolAddRootSTLVToBuf [08:49:44]FM_MakeSignedData [08:49:44]FM_MakeSignedData [08:49:44]SAM_PROTO_SignData [08:49:44]wFMCommunicate request_size=4 [08:49:44]MH_SAM_APDU [08:49:44]CAPDU: 80 0D 01 02 [08:49:44]Write to MH i2c: E2 08 00 2F 1D 80 0D 01 02 00 00 00 00 C5 [08:49:44]Write i2c OK [08:49:44]MH_I2C_Read... [08:49:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:49:44]Read from MH i2c: E2 [08:49:44]MH_I2C_Read... [08:49:44]Read from MH i2c: E2 03 00 [08:49:44]MH_I2C_Read... [08:49:44]Read from MH i2c: E2 03 00 2F 1D 00 90 00 C0 [08:49:44]RAPDU: 90 00 [08:49:44]wFMCommunicate OK [08:49:44]wFMCommunicate request_size=255 [08:49:44]MH_SAM_APDU [08:49:44]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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 AB E2 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 25 85 02 00 35 04 06 00 9A [08:49:44]Write to MH i2c: E2 02 01 30 1D 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 AB E2 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 25 85 02 00 35 04 06 00 9A 00 00 8C [08:49:44]Write i2c OK [08:49:44]MH_I2C_Read... [08:49:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:49:44]Read from MH i2c: E2 [08:49:44]MH_I2C_Read... [08:49:44]Read from MH i2c: E2 03 00 [08:49:44]MH_I2C_Read... [08:49:44]Read from MH i2c: E2 03 00 30 1D 00 90 00 C1 [08:49:44]RAPDU: 90 00 [08:49:44]wFMCommunicate OK [08:49:44]wFMCommunicate request_size=10 [08:49:44]MH_SAM_APDU [08:49:44]CAPDU: 80 0D 02 02 05 C2 0F 74 CB DB [08:49:44]Write to MH i2c: E2 0D 00 31 1D 80 0D 02 02 05 00 C2 0F 74 CB DB 00 00 BD [08:49:44]Write i2c OK [08:49:44]MH_I2C_Read... [08:49:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:49:44]Read from MH i2c: E2 [08:49:44]MH_I2C_Read... [08:49:44]Read from MH i2c: E2 03 00 [08:49:44]MH_I2C_Read... [08:49:44]Read from MH i2c: E2 03 00 31 1D 00 90 00 C2 [08:49:44]RAPDU: 90 00 [08:49:44]wFMCommunicate OK [08:49:44]wFMCommunicate request_size=4 [08:49:44]MH_SAM_APDU [08:49:44]CAPDU: 80 0D 03 02 [08:49:44]Write to MH i2c: E2 08 00 32 1D 80 0D 03 02 00 00 00 00 CA [08:49:44]Write i2c OK [08:49:44]MH_I2C_Read... [08:49:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:49:44]Read from MH i2c: E2 [08:49:44]MH_I2C_Read... [08:49:44]Read from MH i2c: E2 0B 00 [08:49:44]MH_I2C_Read... [08:49:44]Read from MH i2c: E2 0B 00 32 1D 00 A7 DB BD BC C7 F2 2E 62 90 00 0F [08:49:44]RAPDU: A7 DB BD BC C7 F2 2E 62 90 00 [08:49:44]wFMCommunicate OK [08:49:44]SAM_PROTO_SignData done [08:49:44]FM_MakeSignedData done [08:49:44]CreateOFDProtocolMessage [08:49:44]wFMCommunicate request_size=4 [08:49:44]MH_SAM_APDU [08:49:44]CAPDU: 80 11 00 00 [08:49:44]Write to MH i2c: E2 08 00 33 1D 80 11 00 00 00 00 00 00 CA [08:49:44]Write i2c OK [08:49:44]MH_I2C_Read... [08:49:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:49:44]Read from MH i2c: E2 [08:49:44]MH_I2C_Read... [08:49:44]Read from MH i2c: E2 17 00 [08:49:44]MH_I2C_Read... [08:49:44]Read from MH i2c: E2 17 00 33 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 20 [08:49:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:49:44]wFMCommunicate OK [08:49:44]CreateOFDProtocolMessage done [08:49:44]OFDSenderStorePacket 165157 [08:49:44]StoreOFDPacket docnum=165157 [08:49:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 93 D4 07 01 3F A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 AB E2 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 25 85 02 00 35 04 06 00 9A C2 0F 74 CB DB A7 DB BD BC C7 F2 2E 62 [08:49:44]CheckFolder [08:49:44]dirname=/storage/ofd_packets [08:49:44]CheckFolder done [08:49:44]ProducePacketName [08:49:44]name=ofd_packets/00165157 [08:49:44]NVStorageSaveData ofd_packets/00165157 [08:49:44]File name is /storage/ofd_packets/00165157 [08:49:44]Write 301 bytes [08:49:44]NVStorageSaveData done [08:49:44]OFDSenderStorePacket done [08:49:44]KKMCreateOFDPacket done [08:49:44]NVStorageSaveData kkm_last_timestamp [08:49:44]File name is /storage/kkm_last_timestamp [08:49:44]Write 4 bytes [08:49:44]NVStorageSaveData done [08:49:44]ExternCall_PrintAddStr [08:49:44]wPrintStart [08:49:44]Write to MH i2c: 01 00 00 34 1D 51 [08:49:44]Write i2c OK [08:49:44]MH_I2C_Read... [08:49:44]Read from MH i2c: 01 [08:49:44]MH_I2C_Read... [08:49:44]Read from MH i2c: 01 07 00 [08:49:44]MH_I2C_Read... [08:49:44]Read from MH i2c: 01 07 00 34 1D 00 00 00 00 00 FF 0F 66 [08:49:44]RasterBufferAndPrint [08:49:44]line Счет N : (1)459258 [08:49:44]line ИНН: 02508201610067 [08:49:44]line Контрольно-Кассовый Чек [08:49:44]line ПРОДАЖА [08:49:44]line ТРК (МРК, ГНК) : 22 [08:49:44]line Товар: 2710124130 [08:49:44]line Аи-92-К-5 [08:49:44]line 15.200 * 65.80 [08:49:44]line = 1000.16 [08:49:44]line НДС 12% НСП 1% [08:49:44]line > о реализуемом товаре [08:49:44]line ОКРУГЛЕНИЕ: -0.16 [08:49:44]line ИТОГО: 1000.00 [08:49:44]line Внесено: 1000.00 [08:49:44]line СДАЧА: 0.00 [08:49:44]line НСП 1% : 8.85 [08:49:44]line НДС 12% : 106.21 [08:49:44]line Наличными: 1000.00 [08:49:44]line Безнал.: 0.00 [08:49:44]line Место: АЗС № 72 "Партнер Нефть" [08:49:44]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [08:49:44]line СНО: Общий режим [08:49:44]line Чек 30 15.07.2024 08:49 [08:49:44]line Смена: 448 ФФД: 1.0 [08:49:44]line ЗНМ: 0300000160 [08:49:44]line РНМ: 0000000000090829 [08:49:44]line Версия ККМ: 001 [08:49:44]line ФМ: 0000000000874718 [08:49:44]line ФД: 165157 [08:49:44]line ФПД: 170158273645531 [08:49:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T084947&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165157&fm=170158273645531&tin=02508201610067®Number=0000000000090829&sum=100000 [08:49:44]OFD Sender: Processing packet 165157 [packets to send 106, broken 105] [08:49:44]ProducePacketName [08:49:44]name=ofd_packets/00165157 [08:49:44]OFD Sender: To server: pG, [08:49:44]CommunicateWithHost lk.salyk.kg:30040 [08:49:44]ConnectInit lk.salyk.kg [08:49:44]written 0, free lines is 4095 [08:49:45]Connected sock=10 [08:49:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 93 D4 07 01 3F A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 AB E2 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 25 85 02 00 35 04 06 00 9A C2 0F 74 CB DB A7 DB BD BC C7 F2 2E 62 [08:49:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 5D 37 47 00 E3 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 37 31 38 10 04 04 00 25 85 02 00 F4 03 04 00 36 89 94 66 B6 04 01 00 00 94 3F 48 85 13 29 54 AA [08:49:45]CommunicateWithHost err = 0 [08:49:45]CheckOFDResponse [08:49:45]1017 (14) - 77093643461234 [08:49:45]1041 (16) - 0000000000874718 [08:49:45]1040 (4) - 165157 [08:49:45]1012 (4) - 15.07.2024 02:28 [08:49:45]1206 (1) - 0 [08:49:45]OFD Sender: Remove packet 165157 [08:49:45]ProducePacketName [08:49:45]name=ofd_packets/00165157 [08:49:45]NVStorageDeleteData [08:49:45]Write to MH i2c: 01 00 00 5E 1D 7B [08:49:45]Write i2c OK [08:49:45]MH_I2C_Read... [08:49:45]Read from MH i2c: 01 [08:49:45]MH_I2C_Read... [08:49:45]Read from MH i2c: 01 07 00 [08:49:45]MH_I2C_Read... [08:49:45]Read from MH i2c: 01 07 00 5E 1D 00 00 00 00 00 FD 0C 8B [08:49:45]RasterBufferAndPrint [08:49:45]line [08:49:45]line [08:49:45]line [08:49:45]line [08:49:45]line [08:49:45]written 0, free lines is 3331 [08:49:45]MH_Cut [08:49:45]Write to MH i2c: D1 01 00 65 1D 01 54 [08:49:45]Write i2c OK [08:49:45]MH_I2C_Read... [08:49:45]Read from MH i2c: D1 [08:49:45]MH_I2C_Read... [08:49:45]Read from MH i2c: D1 01 00 [08:49:45]MH_I2C_Read... [08:49:45]Read from MH i2c: D1 01 00 65 1D 00 53 [08:49:45]Write to MH i2c: 01 00 00 66 1D 83 [08:49:45]Write i2c OK [08:49:45]MH_I2C_Read... [08:49:45]OFD Sender: No OFD packet to send [08:49:46]*** Cut start [08:49:46]*** Partial cut [08:49:46]*** CUTSNS_PIN = 1 [08:49:46]*** CUTSNS_PIN = 0 [08:49:46]*** Brake cut motor [08:49:46]Read from MH i2c: 01 [08:49:46]MH_I2C_Read... [08:49:46]*** Stop cut motor [08:49:46]*** Cut end [08:49:46]Read from MH i2c: 01 07 00 [08:49:46]MH_I2C_Read... [08:49:46]Read from MH i2c: 01 07 00 66 1D 00 00 00 00 00 FF 0F 98 [08:49:46]process_action close_receipt done [08:49:46]requested_data is exist [08:49:46]produce_requested_data [08:49:46]requested_item fm.sn is exist - process it [08:49:46]wFMCommunicate request_size=4 [08:49:46]MH_SAM_APDU [08:49:46]CAPDU: 80 11 00 00 [08:49:46]Write to MH i2c: E2 08 00 67 1D 80 11 00 00 00 00 00 00 FE [08:49:46]Write i2c OK [08:49:46]MH_I2C_Read... [08:49:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:49:46]Read from MH i2c: E2 [08:49:46]MH_I2C_Read... [08:49:46]Read from MH i2c: E2 17 00 [08:49:46]MH_I2C_Read... [08:49:46]Read from MH i2c: E2 17 00 67 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 54 [08:49:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:49:46]wFMCommunicate OK [08:49:46]requested_item fd.num is exist - process it [08:49:46]SAM_PROTO_GetFieldsCounters [08:49:46]wFMCommunicate request_size=4 [08:49:46]MH_SAM_APDU [08:49:46]CAPDU: 80 13 00 00 [08:49:46]Write to MH i2c: E2 08 00 68 1D 80 13 00 00 00 00 00 00 01 [08:49:46]Write i2c OK [08:49:46]MH_I2C_Read... [08:49:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:49:46]Read from MH i2c: E2 [08:49:46]MH_I2C_Read... [08:49:46]Read from MH i2c: E2 62 00 [08:49:46]MH_I2C_Read... [08:49:46]Read from MH i2c: E2 62 00 68 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 25 85 02 00 0E 04 04 00 C0 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 EF [08:49: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 25 85 02 00 0E 04 04 00 C0 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 [08:49:46]wFMCommunicate OK [08:49:46]SAM_PROTO_GetFieldsCounters done [08:49:46]requested_item shift.num is exist - process it [08:49:46]requested_item shift.opened is exist - process it [08:49:46]req_shift_opened [08:49:46]FM_GetShiftState [08:49:46]SAM_PROTO_GetShiftState [08:49:46]wFMCommunicate request_size=4 [08:49:46]MH_SAM_APDU [08:49:46]CAPDU: 80 13 01 00 [08:49:46]Write to MH i2c: E2 08 00 69 1D 80 13 01 00 00 00 00 00 03 [08:49:46]Write i2c OK [08:49:46]MH_I2C_Read... [08:49:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:49:46]Read from MH i2c: E2 [08:49:46]MH_I2C_Read... [08:49:46]Read from MH i2c: E2 0E 00 [08:49:46]MH_I2C_Read... [08:49:46]Read from MH i2c: E2 0E 00 69 1D 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 DC [08:49:46]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [08:49:46]wFMCommunicate OK [08:49:46]SAM_PROTO_GetShiftState done [08:49:46]FM_GetShiftState done [08:49:46]req_shift_opened done [08:49:46]requested_item shift.open_date is exist - process it [08:49:46]req_shift_open_date [08:49:46]req_shift_open_date done [08:49:46]produce_requested_data done [08:49:46]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165157,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [08:49:46]process_action_free close_receipt [08:49:46]json_value_free [08:49:46]json_value_free done [08:49:46]process_json_proto returns [08:49:46]Send response to host [08:49:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165157,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [08:49:46]free response buf [08:49:46]execute_script done [08:49:46]execute_script returns [08:49:46]free content buf [08:49:46]Sock 7.Close socket [08:49:46]Sock 7.Thread stoped [08:49:50]OFD Sender: No OFD packet to send [08:49:55]OFD Sender: No OFD packet to send [08:50:00]OFD Sender: No OFD packet to send [08:50:05]OFD Sender: No OFD packet to send [08:50:10]OFD Sender: No OFD packet to send [08:50:15]OFD Sender: No OFD packet to send [08:50:20]OFD Sender: No OFD packet to send [08:50:25]OFD Sender: No OFD packet to send [08:50:30]OFD Sender: No OFD packet to send [08:50:35]OFD Sender: No OFD packet to send [08:50:40]OFD Sender: No OFD packet to send [08:50:45]OFD Sender: No OFD packet to send [08:50:50]OFD Sender: No OFD packet to send [08:50:55]OFD Sender: No OFD packet to send [08:51:00]OFD Sender: No OFD packet to send [08:51:04]accept exits with 9 [08:51:04]New connection [08:51:04]New thread 3066785124 created [08:51:04]Thread 3066928484 joined [08:51:04]Waiting for new connection... [08:51:04] Sock 9.Parse request [08:51:04]Sock 9.Check first char [08:51:04]Sock 9.First char is OK [08:51:04]request: POST /json_proto HTTP/1.0 [08:51:04]Method: POST [08:51:04]URL: /json_proto [08:51:04]Method is POST - this is cgi request [08:51:04]url: /json_proto [08:51:04]query_string will be loaded in cgi processing [08:51:04]execute_cgi json_proto POST (null) [08:51:04]execute_cgi path=json_proto method=POST [08:51:04]POST find Content-Length [08:51:04]Host: 172.17.56.4:8080 [08:51:04]Content-Length: 637 [08:51:04]Content-Type: application/json [08:51:04] [08:51:04]POST finish read [08:51:04]Found Content-Length = 637 [08:51:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459259", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 10.000, "sum" : 719.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 719.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:51:04]execute_script... [08: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)459259", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 10.000, "sum" : 719.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 719.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:51:04]POST & json_proto [08:51:04]process_json_proto [08:51:04]json parsed OK: [08:51:04]protocol is kg_v1.0 [08:51:04]action value=close_receipt [08:51:04]process_action close_receipt [08:51:04]cmd_close_receipt [08:51:04]MH_GetDate [08:51:04]Write to MH i2c: F0 00 00 6A 1D 76 [08:51:04]Write i2c OK [08:51:04]MH_I2C_Read... [08:51:04]Read from MH i2c: F0 [08:51:04]MH_I2C_Read... [08:51:04]Read from MH i2c: F0 09 00 [08:51:04]MH_I2C_Read... [08:51:04]Read from MH i2c: F0 09 00 6A 1D 00 FD E2 94 66 C9 DC B2 64 13 [08:51:04]GetLastDocTimeStamp 1721033387 [08:51:04]current date 1721033469 [08:51:04]FM_GetShiftState [08:51:04]SAM_PROTO_GetShiftState [08:51:04]wFMCommunicate request_size=4 [08:51:04]MH_SAM_APDU [08:51:04]CAPDU: 80 13 01 00 [08:51:04]Write to MH i2c: E2 08 00 6B 1D 80 13 01 00 00 00 00 00 05 [08:51:04]Write i2c OK [08:51:04]MH_I2C_Read... [08:51:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:04]Read from MH i2c: E2 [08:51:04]MH_I2C_Read... [08:51:04]Read from MH i2c: E2 0E 00 [08:51:04]MH_I2C_Read... [08:51:04]Read from MH i2c: E2 0E 00 6B 1D 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 DE [08:51:04]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [08:51:04]wFMCommunicate OK [08:51:04]SAM_PROTO_GetShiftState done [08:51:04]FM_GetShiftState done [08:51:04]opened in 1721003876 [08:51:04]opened+sec_in_day 1721090276 [08:51:04]quantity*price = 71900 [08:51:04]sum+1 = 71901 [08:51:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 719.00 НСП 1% : 6.36 НДС 12% : 76.35 Наличными: 719.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 31 15.07.2024 08:51 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165158 ФПД: 152107714389842 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T085109&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165158&fm=152107714389842&tin=02508201610067®Number=0000000000090829&sum=71900 [08:51:05]StoreToDocumentArchive [08:51:05]shift 448 fd 165158 [08:51:05]save to /storage/0448/doc_00165158 [08:51:05]save last doc name /storage/0448/doc_00165158 to /storage/kkm_last_doc_name [08:51:05]save OK [08:51:05]Clear old archive folders... [08:51:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:51:05]tlvbuf is 0139CAE0 [08:51:05]SAM_PROTO_ClearQueue [08:51:05]wFMCommunicate request_size=4 [08:51:05]MH_SAM_APDU [08:51:05]CAPDU: 80 09 00 00 [08:51:05]Write to MH i2c: E2 08 00 78 1D 80 09 00 00 00 00 00 00 07 [08:51:05]Write i2c OK [08:51:05]MH_I2C_Read... [08:51:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:51:05]Read from MH i2c: E2 [08:51:05]MH_I2C_Read... [08:51:05]Read from MH i2c: E2 03 00 [08:51:05]MH_I2C_Read... [08:51:05]Read from MH i2c: E2 03 00 78 1D 00 90 00 09 [08:51:05]RAPDU: 90 00 [08:51:05]wFMCommunicate OK [08:51:05]SAM_PROTO_ClearQueue done [08:51:05]KKMCreateOFDPacket [08:51:05]OFDProtocolAddRootSTLVToBuf [08:51:05]FM_MakeSignedData [08:51:05]FM_MakeSignedData [08:51:05]SAM_PROTO_SignData [08:51:05]wFMCommunicate request_size=4 [08:51:05]MH_SAM_APDU [08:51:05]CAPDU: 80 0D 01 02 [08:51:05]Write to MH i2c: E2 08 00 79 1D 80 0D 01 02 00 00 00 00 0F [08:51:05]Write i2c OK [08:51:05]MH_I2C_Read... [08:51:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:51:05]OFD Sender: No OFD packet to send [08:51:05]Read from MH i2c: E2 [08:51:05]MH_I2C_Read... [08:51:05]Read from MH i2c: E2 03 00 [08:51:05]MH_I2C_Read... [08:51:05]Read from MH i2c: E2 03 00 79 1D 00 90 00 0A [08:51:05]RAPDU: 90 00 [08:51:05]wFMCommunicate OK [08:51:05]wFMCommunicate request_size=255 [08:51:05]MH_SAM_APDU [08:51:05]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 DC 18 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 1D 00 00 00 00 07 04 06 00 DC 18 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 FD E2 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 26 85 02 00 35 04 06 00 8A 57 56 48 [08:51:05]Write to MH i2c: E2 02 01 7A 1D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 DC 18 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 1D 00 00 00 00 07 04 06 00 DC 18 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 FD E2 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 26 85 02 00 35 04 06 00 8A 57 56 48 00 00 0D [08:51:05]Write i2c OK [08:51:05]MH_I2C_Read... [08:51:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:06]Read from MH i2c: E2 [08:51:06]MH_I2C_Read... [08:51:06]Read from MH i2c: E2 03 00 [08:51:06]MH_I2C_Read... [08:51:06]Read from MH i2c: E2 03 00 7A 1D 00 90 00 0B [08:51:06]RAPDU: 90 00 [08:51:06]wFMCommunicate OK [08:51:06]wFMCommunicate request_size=7 [08:51:06]MH_SAM_APDU [08:51:06]CAPDU: 80 0D 02 02 02 A7 52 [08:51:06]Write to MH i2c: E2 0A 00 7B 1D 80 0D 02 02 02 00 A7 52 00 00 0F [08:51:06]Write i2c OK [08:51:06]MH_I2C_Read... [08:51:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:06]Read from MH i2c: E2 [08:51:06]MH_I2C_Read... [08:51:06]Read from MH i2c: E2 03 00 [08:51:06]MH_I2C_Read... [08:51:06]Read from MH i2c: E2 03 00 7B 1D 00 90 00 0C [08:51:06]RAPDU: 90 00 [08:51:06]wFMCommunicate OK [08:51:06]wFMCommunicate request_size=4 [08:51:06]MH_SAM_APDU [08:51:06]CAPDU: 80 0D 03 02 [08:51:06]Write to MH i2c: E2 08 00 7C 1D 80 0D 03 02 00 00 00 00 14 [08:51:06]Write i2c OK [08:51:06]MH_I2C_Read... [08:51:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:51:06]Read from MH i2c: E2 [08:51:06]MH_I2C_Read... [08:51:06]Read from MH i2c: E2 0B 00 [08:51:06]MH_I2C_Read... [08:51:06]Read from MH i2c: E2 0B 00 7C 1D 00 36 EA 91 50 85 3E 38 CA 90 00 DB [08:51:06]RAPDU: 36 EA 91 50 85 3E 38 CA 90 00 [08:51:06]wFMCommunicate OK [08:51:06]SAM_PROTO_SignData done [08:51:06]FM_MakeSignedData done [08:51:06]CreateOFDProtocolMessage [08:51:06]wFMCommunicate request_size=4 [08:51:06]MH_SAM_APDU [08:51:06]CAPDU: 80 11 00 00 [08:51:06]Write to MH i2c: E2 08 00 7D 1D 80 11 00 00 00 00 00 00 14 [08:51:06]Write i2c OK [08:51:06]MH_I2C_Read... [08:51:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:06]Read from MH i2c: E2 [08:51:06]MH_I2C_Read... [08:51:06]Read from MH i2c: E2 17 00 [08:51:06]MH_I2C_Read... [08:51:06]Read from MH i2c: E2 17 00 7D 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6A [08:51:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:51:06]wFMCommunicate OK [08:51:06]CreateOFDProtocolMessage done [08:51:06]OFDSenderStorePacket 165158 [08:51:06]StoreOFDPacket docnum=165158 [08:51:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 B1 7D 04 01 D4 82 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 DC 18 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 1D 00 00 00 00 07 04 06 00 DC 18 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 FD E2 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 26 85 02 00 35 04 06 00 8A 57 56 48 A7 52 36 EA 91 50 85 3E 38 CA [08:51:06]CheckFolder [08:51:06]dirname=/storage/ofd_packets [08:51:06]CheckFolder done [08:51:06]ProducePacketName [08:51:06]name=ofd_packets/00165158 [08:51:06]NVStorageSaveData ofd_packets/00165158 [08:51:06]File name is /storage/ofd_packets/00165158 [08:51:06]Write 298 bytes [08:51:06]NVStorageSaveData done [08:51:06]OFDSenderStorePacket done [08:51:06]KKMCreateOFDPacket done [08:51:06]NVStorageSaveData kkm_last_timestamp [08:51:06]File name is /storage/kkm_last_timestamp [08:51:06]Write 4 bytes [08:51:06]NVStorageSaveData done [08:51:06]ExternCall_PrintAddStr [08:51:06]wPrintStart [08:51:06]Write to MH i2c: 01 00 00 7E 1D 9B [08:51:06]Write i2c OK [08:51:06]MH_I2C_Read... [08:51:06]Read from MH i2c: 01 [08:51:06]MH_I2C_Read... [08:51:06]Read from MH i2c: 01 07 00 [08:51:06]MH_I2C_Read... [08:51:06]Read from MH i2c: 01 07 00 7E 1D 00 00 00 00 00 FF 0F B0 [08:51:06]RasterBufferAndPrint [08:51:06]line Счет N : (1)459259 [08:51:06]line ИНН: 02508201610067 [08:51:06]line Контрольно-Кассовый Чек [08:51:06]line ПРОДАЖА [08:51:06]line ТРК (МРК, ГНК) : 11 [08:51:06]line Товар: 2710194210 [08:51:06]line ДТ-К-5 [08:51:06]line 10.000 * 71.90 [08:51:06]line = 719.00 [08:51:06]line НДС 12% НСП 1% [08:51:06]line > о реализуемом товаре [08:51:06]line ИТОГО: 719.00 [08:51:06]line НСП 1% : 6.36 [08:51:06]line НДС 12% : 76.35 [08:51:06]line Наличными: 719.00 [08:51:06]line Безнал.: 0.00 [08:51:06]line Место: АЗС № 72 "Партнер Нефть" [08:51:06]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [08:51:06]line СНО: Общий режим [08:51:06]line Чек 31 15.07.2024 08:51 [08:51:06]line Смена: 448 ФФД: 1.0 [08:51:06]line ЗНМ: 0300000160 [08:51:06]line РНМ: 0000000000090829 [08:51:06]line Версия ККМ: 001 [08:51:06]line ФМ: 0000000000874718 [08:51:06]line ФД: 165158 [08:51:06]line ФПД: 152107714389842 [08:51:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T085109&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165158&fm=152107714389842&tin=02508201610067®Number=0000000000090829&sum=71900 [08:51:06]OFD Sender: Processing packet 165158 [packets to send 106, broken 105] [08:51:06]ProducePacketName [08:51:06]name=ofd_packets/00165158 [08:51:06]OFD Sender: To server: pG, [08:51:06]CommunicateWithHost lk.salyk.kg:30040 [08:51:06]ConnectInit lk.salyk.kg [08:51:06]written 0, free lines is 4095 [08:51:06]Connected sock=10 [08: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 37 31 38 0C 01 00 00 B1 7D 04 01 D4 82 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 DC 18 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 1D 00 00 00 00 07 04 06 00 DC 18 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 FD E2 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 26 85 02 00 35 04 06 00 8A 57 56 48 A7 52 36 EA 91 50 85 3E 38 CA [08:51:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 4A 75 47 00 08 B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 26 85 02 00 F4 03 04 00 87 89 94 66 B6 04 01 00 00 26 23 98 2D 9A CC 02 1E [08:51:06]CommunicateWithHost err = 0 [08:51:06]CheckOFDResponse [08:51:06]1017 (14) - 77093643461234 [08:51:06]1041 (16) - 0000000000874718 [08:51:06]1040 (4) - 165158 [08:51:06]1012 (4) - 15.07.2024 02:29 [08:51:06]1206 (1) - 0 [08:51:06]OFD Sender: Remove packet 165158 [08:51:06]ProducePacketName [08:51:06]name=ofd_packets/00165158 [08:51:06]NVStorageDeleteData [08:51:07]Write to MH i2c: 01 00 00 A5 1D C2 [08:51:07]Write i2c OK [08:51:07]MH_I2C_Read... [08:51:07]Read from MH i2c: 01 [08:51:07]MH_I2C_Read... [08:51:07]Read from MH i2c: 01 07 00 [08:51:07]MH_I2C_Read... [08:51:07]Read from MH i2c: 01 07 00 A5 1D 00 00 00 00 00 18 0D EE [08:51:07]RasterBufferAndPrint [08:51:07]line [08:51:07]line [08:51:07]line [08:51:07]line [08:51:07]line [08:51:07]written 0, free lines is 3358 [08:51:07]MH_Cut [08:51:07]Write to MH i2c: D1 01 00 AC 1D 01 9B [08:51:07]Write i2c OK [08:51:07]MH_I2C_Read... [08:51:07]Read from MH i2c: D1 [08:51:07]MH_I2C_Read... [08:51:07]Read from MH i2c: D1 01 00 [08:51:07]MH_I2C_Read... [08:51:07]Read from MH i2c: D1 01 00 AC 1D 00 9A [08:51:07]Write to MH i2c: 01 00 00 AD 1D CA [08:51:07]Write i2c OK [08:51:07]MH_I2C_Read... [08:51:07]OFD Sender: No OFD packet to send [08:51:07]*** Cut start [08:51:07]*** Partial cut [08:51:07]*** CUTSNS_PIN = 1 [08:51:07]*** CUTSNS_PIN = 0 [08:51:07]*** Brake cut motor [08:51:08]Read from MH i2c: 01 [08:51:08]MH_I2C_Read... [08:51:08]*** Stop cut motor [08:51:08]*** Cut end [08:51:08]Read from MH i2c: 01 07 00 [08:51:08]MH_I2C_Read... [08:51:08]Read from MH i2c: 01 07 00 AD 1D 00 00 00 00 00 FF 0F DF [08:51:08]process_action close_receipt done [08:51:08]requested_data is exist [08:51:08]produce_requested_data [08:51:08]requested_item fm.sn is exist - process it [08:51:08]wFMCommunicate request_size=4 [08:51:08]MH_SAM_APDU [08:51:08]CAPDU: 80 11 00 00 [08:51:08]Write to MH i2c: E2 08 00 AE 1D 80 11 00 00 00 00 00 00 45 [08:51:08]Write i2c OK [08:51:08]MH_I2C_Read... [08:51:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:08]Read from MH i2c: E2 [08:51:08]MH_I2C_Read... [08:51:08]Read from MH i2c: E2 17 00 [08:51:08]MH_I2C_Read... [08:51:08]Read from MH i2c: E2 17 00 AE 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 9B [08:51:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:51:08]wFMCommunicate OK [08:51:08]requested_item fd.num is exist - process it [08:51:08]SAM_PROTO_GetFieldsCounters [08:51:08]wFMCommunicate request_size=4 [08:51:08]MH_SAM_APDU [08:51:08]CAPDU: 80 13 00 00 [08:51:08]Write to MH i2c: E2 08 00 AF 1D 80 13 00 00 00 00 00 00 48 [08:51:08]Write i2c OK [08:51:08]MH_I2C_Read... [08:51:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:51:08]Read from MH i2c: E2 [08:51:08]MH_I2C_Read... [08:51:08]Read from MH i2c: E2 62 00 [08:51:08]MH_I2C_Read... [08:51:08]Read from MH i2c: E2 62 00 AF 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 26 85 02 00 0E 04 04 00 C0 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 3A [08:51: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 26 85 02 00 0E 04 04 00 C0 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 [08:51:08]wFMCommunicate OK [08:51:08]SAM_PROTO_GetFieldsCounters done [08:51:08]requested_item shift.num is exist - process it [08:51:08]requested_item shift.opened is exist - process it [08:51:08]req_shift_opened [08:51:08]FM_GetShiftState [08:51:08]SAM_PROTO_GetShiftState [08:51:08]wFMCommunicate request_size=4 [08:51:08]MH_SAM_APDU [08:51:08]CAPDU: 80 13 01 00 [08:51:08]Write to MH i2c: E2 08 00 B0 1D 80 13 01 00 00 00 00 00 4A [08:51:08]Write i2c OK [08:51:08]MH_I2C_Read... [08:51:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:08]Read from MH i2c: E2 [08:51:08]MH_I2C_Read... [08:51:08]Read from MH i2c: E2 0E 00 [08:51:08]MH_I2C_Read... [08:51:08]Read from MH i2c: E2 0E 00 B0 1D 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 23 [08:51:08]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [08:51:08]wFMCommunicate OK [08:51:08]SAM_PROTO_GetShiftState done [08:51:08]FM_GetShiftState done [08:51:08]req_shift_opened done [08:51:08]requested_item shift.open_date is exist - process it [08:51:08]req_shift_open_date [08:51:08]req_shift_open_date done [08:51:08]produce_requested_data done [08:51:08]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165158,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [08:51:08]process_action_free close_receipt [08:51:08]json_value_free [08:51:08]json_value_free done [08:51:08]process_json_proto returns [08:51:08]Send response to host [08:51:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165158,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [08:51:08]free response buf [08:51:08]execute_script done [08:51:08]execute_script returns [08:51:08]free content buf [08:51:08]Sock 9.Close socket [08:51:08]Sock 9.Thread stoped [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:48]accept exits with 7 [08:51:48]New connection [08:51:48]New thread 3066928484 created [08:51:48]Thread 3066785124 joined [08:51:48]Waiting for new connection... [08:51:48] Sock 7.Parse request [08:51:48]Sock 7.Check first char [08:51:48]Sock 7.First char is OK [08:51:48]request: POST /json_proto HTTP/1.0 [08:51:48]Method: POST [08:51:48]URL: /json_proto [08:51:48]Method is POST - this is cgi request [08:51:48]url: /json_proto [08:51:48]query_string will be loaded in cgi processing [08:51:48]execute_cgi json_proto POST (null) [08:51:48]execute_cgi path=json_proto method=POST [08:51:48]POST find Content-Length [08:51:48]Host: 172.17.56.4:8080 [08:51:48]Content-Length: 790 [08:51:48]Content-Type: application/json [08:51:48] [08:51:48]POST finish read [08:51:48]Found Content-Length = 790 [08:51:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459260", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 5.000, "sum" : 326.10, "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 326.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:51:48]execute_script... [08:51:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459260", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 5.000, "sum" : 326.10, "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 326.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:51:48]POST & json_proto [08:51:48]process_json_proto [08:51:48]json parsed OK: [08:51:48]protocol is kg_v1.0 [08:51:48]action value=close_receipt [08:51:48]process_action close_receipt [08:51:48]cmd_close_receipt [08:51:48]MH_GetDate [08:51:48]Write to MH i2c: F0 00 00 B1 1D BD [08:51:48]Write i2c OK [08:51:48]MH_I2C_Read... [08:51:48]Read from MH i2c: F0 [08:51:48]MH_I2C_Read... [08:51:48]Read from MH i2c: F0 09 00 [08:51:48]MH_I2C_Read... [08:51:48]Read from MH i2c: F0 09 00 B1 1D 00 28 E3 94 66 C9 DC B2 64 86 [08:51:48]GetLastDocTimeStamp 1721033469 [08:51:48]current date 1721033512 [08:51:48]FM_GetShiftState [08:51:48]SAM_PROTO_GetShiftState [08:51:48]wFMCommunicate request_size=4 [08:51:48]MH_SAM_APDU [08:51:48]CAPDU: 80 13 01 00 [08:51:48]Write to MH i2c: E2 08 00 B2 1D 80 13 01 00 00 00 00 00 4C [08:51:48]Write i2c OK [08:51:48]MH_I2C_Read... [08:51:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:48]Read from MH i2c: E2 [08:51:48]MH_I2C_Read... [08:51:48]Read from MH i2c: E2 0E 00 [08:51:48]MH_I2C_Read... [08:51:48]Read from MH i2c: E2 0E 00 B2 1D 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 25 [08:51:48]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [08:51:48]wFMCommunicate OK [08:51:48]SAM_PROTO_GetShiftState done [08:51:48]FM_GetShiftState done [08:51:48]opened in 1721003876 [08:51:48]opened+sec_in_day 1721090276 [08:51:48]quantity*price = 32610 [08:51:48]sum+1 = 32611 [08:51:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 326.10 НСП 1% : 2.89 НДС 12% : 34.63 Наличными: 0.00 Безнал.: 326.10 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 32 15.07.2024 08:51 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 165159 ФПД: 170688718611398 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T085152&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165159&fm=170688718611398&tin=02508201610067®Number=0000000000090829&sum=32610 [08:51:49]StoreToDocumentArchive [08:51:49]shift 448 fd 165159 [08:51:49]save to /storage/0448/doc_00165159 [08:51:49]save last doc name /storage/0448/doc_00165159 to /storage/kkm_last_doc_name [08:51:49]save OK [08:51:49]Clear old archive folders... [08:51:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:51:49]tlvbuf is 013610D0 [08:51:49]SAM_PROTO_ClearQueue [08:51:49]wFMCommunicate request_size=4 [08:51:49]MH_SAM_APDU [08:51:49]CAPDU: 80 09 00 00 [08:51:49]Write to MH i2c: E2 08 00 BF 1D 80 09 00 00 00 00 00 00 4E [08:51:49]Write i2c OK [08:51:49]MH_I2C_Read... [08:51:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:51:49]Read from MH i2c: E2 [08:51:49]MH_I2C_Read... [08:51:49]Read from MH i2c: E2 03 00 [08:51:49]MH_I2C_Read... [08:51:49]Read from MH i2c: E2 03 00 BF 1D 00 90 00 50 [08:51:49]RAPDU: 90 00 [08:51:49]wFMCommunicate OK [08:51:49]SAM_PROTO_ClearQueue done [08:51:49]KKMCreateOFDPacket [08:51:49]OFDProtocolAddRootSTLVToBuf [08:51:49]FM_MakeSignedData [08:51:49]FM_MakeSignedData [08:51:49]SAM_PROTO_SignData [08:51:49]wFMCommunicate request_size=4 [08:51:49]MH_SAM_APDU [08:51:49]CAPDU: 80 0D 01 02 [08:51:49]Write to MH i2c: E2 08 00 C0 1D 80 0D 01 02 00 00 00 00 56 [08:51:49]Write i2c OK [08:51:49]MH_I2C_Read... [08:51:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:51:49]Read from MH i2c: E2 [08:51:49]MH_I2C_Read... [08:51:49]Read from MH i2c: E2 03 00 [08:51:49]MH_I2C_Read... [08:51:49]Read from MH i2c: E2 03 00 C0 1D 00 90 00 51 [08:51:49]RAPDU: 90 00 [08:51:49]wFMCommunicate OK [08:51:49]wFMCommunicate request_size=255 [08:51:49]MH_SAM_APDU [08:51: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 88 13 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 7F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 7F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 7F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 28 E3 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 27 85 02 00 35 04 06 00 9B [08:51:49]Write to MH i2c: E2 02 01 C1 1D 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 88 13 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 7F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 7F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 7F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 28 E3 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 27 85 02 00 35 04 06 00 9B 00 00 1C [08:51:49]Write i2c OK [08:51:49]MH_I2C_Read... [08:51:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:49]Read from MH i2c: E2 [08:51:49]MH_I2C_Read... [08:51:49]Read from MH i2c: E2 03 00 [08:51:49]MH_I2C_Read... [08:51:49]Read from MH i2c: E2 03 00 C1 1D 00 90 00 52 [08:51:49]RAPDU: 90 00 [08:51:49]wFMCommunicate OK [08:51:49]wFMCommunicate request_size=10 [08:51:49]MH_SAM_APDU [08:51:49]CAPDU: 80 0D 02 02 05 3D 90 70 A3 C6 [08:51:49]Write to MH i2c: E2 0D 00 C2 1D 80 0D 02 02 05 00 3D 90 70 A3 C6 00 00 09 [08:51:49]Write i2c OK [08:51:49]MH_I2C_Read... [08:51:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:49]Read from MH i2c: E2 [08:51:49]MH_I2C_Read... [08:51:49]Read from MH i2c: E2 03 00 [08:51:49]MH_I2C_Read... [08:51:49]Read from MH i2c: E2 03 00 C2 1D 00 90 00 53 [08:51:49]RAPDU: 90 00 [08:51:49]wFMCommunicate OK [08:51:49]wFMCommunicate request_size=4 [08:51:49]MH_SAM_APDU [08:51:49]CAPDU: 80 0D 03 02 [08:51:49]Write to MH i2c: E2 08 00 C3 1D 80 0D 03 02 00 00 00 00 5B [08:51:49]Write i2c OK [08:51:49]MH_I2C_Read... [08:51:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:51:49]Read from MH i2c: E2 [08:51:49]MH_I2C_Read... [08:51:49]Read from MH i2c: E2 0B 00 [08:51:49]MH_I2C_Read... [08:51:49]Read from MH i2c: E2 0B 00 C3 1D 00 4C 35 23 7D F7 17 EC 3C 90 00 B3 [08:51:49]RAPDU: 4C 35 23 7D F7 17 EC 3C 90 00 [08:51:49]wFMCommunicate OK [08:51:49]SAM_PROTO_SignData done [08:51:49]FM_MakeSignedData done [08:51:49]CreateOFDProtocolMessage [08:51:49]wFMCommunicate request_size=4 [08:51:49]MH_SAM_APDU [08:51:49]CAPDU: 80 11 00 00 [08:51:49]Write to MH i2c: E2 08 00 C4 1D 80 11 00 00 00 00 00 00 5B [08:51:49]Write i2c OK [08:51:49]MH_I2C_Read... [08:51:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:49]Read from MH i2c: E2 [08:51:49]MH_I2C_Read... [08:51:49]Read from MH i2c: E2 17 00 [08:51:49]MH_I2C_Read... [08:51:49]Read from MH i2c: E2 17 00 C4 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B1 [08:51:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:51:49]wFMCommunicate OK [08:51:49]CreateOFDProtocolMessage done [08:51:49]OFDSenderStorePacket 165159 [08:51:49]StoreOFDPacket docnum=165159 [08:51:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 AF 2B 07 01 0A 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 88 13 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 7F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 7F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 7F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 28 E3 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 27 85 02 00 35 04 06 00 9B 3D 90 70 A3 C6 4C 35 23 7D F7 17 EC 3C [08:51:49]CheckFolder [08:51:49]dirname=/storage/ofd_packets [08:51:49]CheckFolder done [08:51:49]ProducePacketName [08:51:49]name=ofd_packets/00165159 [08:51:49]NVStorageSaveData ofd_packets/00165159 [08:51:49]File name is /storage/ofd_packets/00165159 [08:51:49]Write 301 bytes [08:51:49]NVStorageSaveData done [08:51:49]OFDSenderStorePacket done [08:51:49]KKMCreateOFDPacket done [08:51:49]NVStorageSaveData kkm_last_timestamp [08:51:49]File name is /storage/kkm_last_timestamp [08:51:49]Write 4 bytes [08:51:49]NVStorageSaveData done [08:51:49]ExternCall_PrintAddStr [08:51:49]wPrintStart [08:51:49]Write to MH i2c: 01 00 00 C5 1D E2 [08:51:49]Write i2c OK [08:51:49]MH_I2C_Read... [08:51:49]Read from MH i2c: 01 [08:51:49]MH_I2C_Read... [08:51:49]Read from MH i2c: 01 07 00 [08:51:49]MH_I2C_Read... [08:51:49]Read from MH i2c: 01 07 00 C5 1D 00 00 00 00 00 FF 0F F7 [08:51:49]RasterBufferAndPrint [08:51:49]line Счет N : (1)459260 [08:51:49]line ИНН: 02508201610067 [08:51:49]line Контрольно-Кассовый Чек [08:51:49]line ПРОДАЖА [08:51:49]line ТРК (МРК, ГНК) : 22 [08:51:49]line Товар: 2710124130 [08:51:49]line Аи-92-К-5 [08:51:49]line 5.000 * 65.22 [08:51:49]line = 326.10 [08:51:49]line НДС 12% НСП 1% [08:51:49]line > о реализуемом товаре [08:51:49]line ИТОГО: 326.10 [08:51:49]line НСП 1% : 2.89 [08:51:49]line НДС 12% : 34.63 [08:51:49]line Наличными: 0.00 [08:51:49]line Безнал.: 326.10 [08:51:49]line Место: АЗС № 72 "Партнер Нефть" [08:51:49]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [08:51:49]line СНО: Общий режим [08:51:49]line Чек 32 15.07.2024 08:51 [08:51:49]line Смена: 448 ФФД: 1.0 [08:51:49]line ЗНМ: 0300000160 [08:51:49]line РНМ: 0000000000090829 [08:51:49]line Версия ККМ: 001 [08:51:49]line Платежная система: KICB Банк [08:51:49]line ФМ: 0000000000874718 [08:51:49]line ФД: 165159 [08:51:49]line ФПД: 170688718611398 [08:51:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T085152&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165159&fm=170688718611398&tin=02508201610067®Number=0000000000090829&sum=32610 [08:51:50]OFD Sender: Processing packet 165159 [packets to send 106, broken 105] [08:51:50]ProducePacketName [08:51:50]name=ofd_packets/00165159 [08:51:50]OFD Sender: To server: pG, [08:51:50]CommunicateWithHost lk.salyk.kg:30040 [08:51:50]ConnectInit lk.salyk.kg [08:51:50]written 0, free lines is 4095 [08:51:50]Write to MH i2c: 01 00 00 EE 1D 0B [08:51:50]Write i2c OK [08:51:50]MH_I2C_Read... [08:51:50]Read from MH i2c: 01 [08:51:50]MH_I2C_Read... [08:51:50]Read from MH i2c: 01 07 00 [08:51:50]MH_I2C_Read... [08:51:50]Read from MH i2c: 01 07 00 EE 1D 00 00 00 00 00 01 0D 20 [08:51:50]RasterBufferAndPrint [08:51:50]line [08:51:50]line [08:51:50]line [08:51:50]line [08:51:50]line [08:51:50]written 0, free lines is 3335 [08:51:50]MH_Cut [08:51:50]Write to MH i2c: D1 01 00 F5 1D 01 E4 [08:51:50]Write i2c OK [08:51:50]MH_I2C_Read... [08:51:50]Read from MH i2c: D1 [08:51:50]MH_I2C_Read... [08:51:50]Read from MH i2c: D1 01 00 [08:51:50]MH_I2C_Read... [08:51:50]Read from MH i2c: D1 01 00 F5 1D 00 E3 [08:51:50]Write to MH i2c: 01 00 00 F6 1D 13 [08:51:50]Write i2c OK [08:51:50]MH_I2C_Read... [08:51:51]*** Cut start [08:51:51]*** Partial cut [08:51:51]*** CUTSNS_PIN = 1 [08:51:51]*** CUTSNS_PIN = 0 [08:51:51]*** Brake cut motor [08:51:51]Read from MH i2c: 01 [08:51:51]MH_I2C_Read... [08:51:51]*** Stop cut motor [08:51:51]*** Cut end [08:51:51]Read from MH i2c: 01 07 00 [08:51:51]MH_I2C_Read... [08:51:51]Read from MH i2c: 01 07 00 F6 1D 00 00 00 00 00 FF 0F 28 [08:51:51]process_action close_receipt done [08:51:51]requested_data is exist [08:51:51]produce_requested_data [08:51:51]requested_item fm.sn is exist - process it [08:51:51]wFMCommunicate request_size=4 [08:51:51]MH_SAM_APDU [08:51:51]CAPDU: 80 11 00 00 [08:51:51]Write to MH i2c: E2 08 00 F7 1D 80 11 00 00 00 00 00 00 8E [08:51:51]Write i2c OK [08:51:51]MH_I2C_Read... [08:51:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:51]Read from MH i2c: E2 [08:51:51]MH_I2C_Read... [08:51:51]Read from MH i2c: E2 17 00 [08:51:51]MH_I2C_Read... [08:51:51]Read from MH i2c: E2 17 00 F7 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E4 [08:51:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:51:51]wFMCommunicate OK [08:51:51]requested_item fd.num is exist - process it [08:51:51]SAM_PROTO_GetFieldsCounters [08:51:51]wFMCommunicate request_size=4 [08:51:51]MH_SAM_APDU [08:51:51]CAPDU: 80 13 00 00 [08:51:51]Write to MH i2c: E2 08 00 F8 1D 80 13 00 00 00 00 00 00 91 [08:51:51]Write i2c OK [08:51:51]MH_I2C_Read... [08:51:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:51:52]Read from MH i2c: E2 [08:51:52]MH_I2C_Read... [08:51:52]Read from MH i2c: E2 62 00 [08:51:52]MH_I2C_Read... [08:51:52]Read from MH i2c: E2 62 00 F8 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 27 85 02 00 0E 04 04 00 C0 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 87 [08:51: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 27 85 02 00 0E 04 04 00 C0 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 [08:51:52]wFMCommunicate OK [08:51:52]SAM_PROTO_GetFieldsCounters done [08:51:52]requested_item shift.num is exist - process it [08:51:52]requested_item shift.opened is exist - process it [08:51:52]req_shift_opened [08:51:52]FM_GetShiftState [08:51:52]SAM_PROTO_GetShiftState [08:51:52]wFMCommunicate request_size=4 [08:51:52]MH_SAM_APDU [08:51:52]CAPDU: 80 13 01 00 [08:51:52]Write to MH i2c: E2 08 00 F9 1D 80 13 01 00 00 00 00 00 93 [08:51:52]Write i2c OK [08:51:52]MH_I2C_Read... [08:51:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:52]Read from MH i2c: E2 [08:51:52]MH_I2C_Read... [08:51:52]Read from MH i2c: E2 0E 00 [08:51:52]MH_I2C_Read... [08:51:52]Read from MH i2c: E2 0E 00 F9 1D 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 6C [08:51:52]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [08:51:52]wFMCommunicate OK [08:51:52]SAM_PROTO_GetShiftState done [08:51:52]FM_GetShiftState done [08:51:52]req_shift_opened done [08:51:52]requested_item shift.open_date is exist - process it [08:51:52]req_shift_open_date [08:51:52]req_shift_open_date done [08:51:52]produce_requested_data done [08:51:52]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165159,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [08:51:52]process_action_free close_receipt [08:51:52]json_value_free [08:51:52]json_value_free done [08:51:52]process_json_proto returns [08:51:52]Send response to host [08:51:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165159,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [08:51:52]free response buf [08:51:52]execute_script done [08:51:52]execute_script returns [08:51:52]free content buf [08:51:52]Sock 7.Close socket [08:51:52]Sock 7.Thread stoped [08:52:07]accept exits with 9 [08:52:07]New connection [08:52:07]New thread 3066785124 created [08:52:07]Thread 3066928484 joined [08:52:07]Waiting for new connection... [08:52:07] Sock 9.Parse request [08:52:07]Sock 9.Check first char [08:52:07]Sock 9.First char is OK [08:52:07]request: POST /json_proto HTTP/1.0 [08:52:07]Method: POST [08:52:07]URL: /json_proto [08:52:07]Method is POST - this is cgi request [08:52:07]url: /json_proto [08:52:07]query_string will be loaded in cgi processing [08:52:07]execute_cgi json_proto POST (null) [08:52:07]execute_cgi path=json_proto method=POST [08:52:07]POST find Content-Length [08:52:07]Host: 172.17.56.4:8080 [08:52:07]Content-Length: 677 [08:52:07]Content-Type: application/json [08:52:07] [08:52:07]POST finish read [08:52:07]Found Content-Length = 677 [08:52:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459261", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:52:07]execute_script... [08:52: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)459261", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:52:07]POST & json_proto [08:52:07]process_json_proto [08:52:07]json parsed OK: [08:52:07]protocol is kg_v1.0 [08:52:07]action value=close_receipt [08:52:07]process_action close_receipt [08:52:07]cmd_close_receipt [08:52:07]MH_GetDate [08:52:07]Write to MH i2c: F0 00 00 FA 1D 06 [08:52:07]Write i2c OK [08:52:07]MH_I2C_Read... [08:52:07]Read from MH i2c: F0 [08:52:07]MH_I2C_Read... [08:52:07]Read from MH i2c: F0 09 00 [08:52:07]MH_I2C_Read... [08:52:07]Read from MH i2c: F0 09 00 FA 1D 00 3B E3 94 66 C9 DC B2 64 E2 [08:52:07]GetLastDocTimeStamp 1721033512 [08:52:07]current date 1721033531 [08:52:07]FM_GetShiftState [08:52:07]SAM_PROTO_GetShiftState [08:52:07]wFMCommunicate request_size=4 [08:52:07]MH_SAM_APDU [08:52:07]CAPDU: 80 13 01 00 [08:52:07]Write to MH i2c: E2 08 00 FB 1D 80 13 01 00 00 00 00 00 95 [08:52:07]Write i2c OK [08:52:07]MH_I2C_Read... [08:52:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:07]Read from MH i2c: E2 [08:52:07]MH_I2C_Read... [08:52:07]Read from MH i2c: E2 0E 00 [08:52:07]MH_I2C_Read... [08:52:07]Read from MH i2c: E2 0E 00 FB 1D 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 6E [08:52:07]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [08:52:07]wFMCommunicate OK [08:52:07]SAM_PROTO_GetShiftState done [08:52:07]FM_GetShiftState done [08:52:07]opened in 1721003876 [08:52:07]opened+sec_in_day 1721090276 [08:52:07]quantity*price = 50008 [08:52:07]sum+1 = 50009 [08:52:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 33 15.07.2024 08:52 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165160 ФПД: 276506558590546 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T085211&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165160&fm=276506558590546&tin=02508201610067®Number=0000000000090829&sum=50000 [08:52:08]StoreToDocumentArchive [08:52:08]shift 448 fd 165160 [08:52:08]save to /storage/0448/doc_00165160 [08:52:08]save last doc name /storage/0448/doc_00165160 to /storage/kkm_last_doc_name [08:52:08]save OK [08:52:08]Clear old archive folders... [08:52:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:52:08]tlvbuf is 0139CB10 [08:52:08]SAM_PROTO_ClearQueue [08:52:08]wFMCommunicate request_size=4 [08:52:08]MH_SAM_APDU [08:52:08]CAPDU: 80 09 00 00 [08:52:08]Write to MH i2c: E2 08 00 08 1E 80 09 00 00 00 00 00 00 98 [08:52:08]Write i2c OK [08:52:08]MH_I2C_Read... [08:52:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:52:08]Read from MH i2c: E2 [08:52:08]MH_I2C_Read... [08:52:08]Read from MH i2c: E2 03 00 [08:52:08]MH_I2C_Read... [08:52:08]Read from MH i2c: E2 03 00 08 1E 00 90 00 9A [08:52:08]RAPDU: 90 00 [08:52:08]wFMCommunicate OK [08:52:08]SAM_PROTO_ClearQueue done [08:52:08]KKMCreateOFDPacket [08:52:08]OFDProtocolAddRootSTLVToBuf [08:52:08]FM_MakeSignedData [08:52:08]FM_MakeSignedData [08:52:08]SAM_PROTO_SignData [08:52:08]wFMCommunicate request_size=4 [08:52:08]MH_SAM_APDU [08:52:08]CAPDU: 80 0D 01 02 [08:52:08]Write to MH i2c: E2 08 00 09 1E 80 0D 01 02 00 00 00 00 A0 [08:52:08]Write i2c OK [08:52:08]MH_I2C_Read... [08:52:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:52:08]Read from MH i2c: E2 [08:52:08]MH_I2C_Read... [08:52:08]Read from MH i2c: E2 03 00 [08:52:08]MH_I2C_Read... [08:52:08]Read from MH i2c: E2 03 00 09 1E 00 90 00 9B [08:52:08]RAPDU: 90 00 [08:52:08]wFMCommunicate OK [08:52:08]wFMCommunicate request_size=255 [08:52:08]MH_SAM_APDU [08:52:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 3B E3 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 28 85 02 00 35 04 06 00 FB [08:52:08]Write to MH i2c: E2 02 01 0A 1E 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 3B E3 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 28 85 02 00 35 04 06 00 FB 00 00 BD [08:52:08]Write i2c OK [08:52:08]MH_I2C_Read... [08:52:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:08]Read from MH i2c: E2 [08:52:08]MH_I2C_Read... [08:52:08]Read from MH i2c: E2 03 00 [08:52:08]MH_I2C_Read... [08:52:08]Read from MH i2c: E2 03 00 0A 1E 00 90 00 9C [08:52:08]RAPDU: 90 00 [08:52:08]wFMCommunicate OK [08:52:08]wFMCommunicate request_size=10 [08:52:08]MH_SAM_APDU [08:52:08]CAPDU: 80 0D 02 02 05 7B 33 33 EE 52 [08:52:08]Write to MH i2c: E2 0D 00 0B 1E 80 0D 02 02 05 00 7B 33 33 EE 52 00 00 CE [08:52:08]Write i2c OK [08:52:08]MH_I2C_Read... [08:52:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:08]Read from MH i2c: E2 [08:52:08]MH_I2C_Read... [08:52:08]Read from MH i2c: E2 03 00 [08:52:08]MH_I2C_Read... [08:52:08]Read from MH i2c: E2 03 00 0B 1E 00 90 00 9D [08:52:08]RAPDU: 90 00 [08:52:08]wFMCommunicate OK [08:52:08]wFMCommunicate request_size=4 [08:52:08]MH_SAM_APDU [08:52:08]CAPDU: 80 0D 03 02 [08:52:08]Write to MH i2c: E2 08 00 0C 1E 80 0D 03 02 00 00 00 00 A5 [08:52:08]Write i2c OK [08:52:08]MH_I2C_Read... [08:52:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:52:08]Read from MH i2c: E2 [08:52:08]MH_I2C_Read... [08:52:08]Read from MH i2c: E2 0B 00 [08:52:08]MH_I2C_Read... [08:52:08]Read from MH i2c: E2 0B 00 0C 1E 00 1C 23 FB 5A 58 10 9E D9 90 00 19 [08:52:08]RAPDU: 1C 23 FB 5A 58 10 9E D9 90 00 [08:52:08]wFMCommunicate OK [08:52:08]SAM_PROTO_SignData done [08:52:08]FM_MakeSignedData done [08:52:08]CreateOFDProtocolMessage [08:52:08]wFMCommunicate request_size=4 [08:52:08]MH_SAM_APDU [08:52:08]CAPDU: 80 11 00 00 [08:52:08]Write to MH i2c: E2 08 00 0D 1E 80 11 00 00 00 00 00 00 A5 [08:52:08]Write i2c OK [08:52:08]MH_I2C_Read... [08:52:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:08]Read from MH i2c: E2 [08:52:08]MH_I2C_Read... [08:52:08]Read from MH i2c: E2 17 00 [08:52:08]MH_I2C_Read... [08:52:08]Read from MH i2c: E2 17 00 0D 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FB [08:52:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:52:08]wFMCommunicate OK [08:52:08]CreateOFDProtocolMessage done [08:52:08]OFDSenderStorePacket 165160 [08:52:08]StoreOFDPacket docnum=165160 [08:52:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 0D B5 07 01 F2 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 3B E3 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 28 85 02 00 35 04 06 00 FB 7B 33 33 EE 52 1C 23 FB 5A 58 10 9E D9 [08:52:08]CheckFolder [08:52:08]dirname=/storage/ofd_packets [08:52:08]CheckFolder done [08:52:08]ProducePacketName [08:52:08]name=ofd_packets/00165160 [08:52:08]NVStorageSaveData ofd_packets/00165160 [08:52:08]File name is /storage/ofd_packets/00165160 [08:52:08]Write 301 bytes [08:52:08]NVStorageSaveData done [08:52:08]OFDSenderStorePacket done [08:52:08]KKMCreateOFDPacket done [08:52:08]NVStorageSaveData kkm_last_timestamp [08:52:08]File name is /storage/kkm_last_timestamp [08:52:08]Write 4 bytes [08:52:08]NVStorageSaveData done [08:52:08]ExternCall_PrintAddStr [08:52:08]wPrintStart [08:52:08]Write to MH i2c: 01 00 00 0E 1E 2C [08:52:08]Write i2c OK [08:52:08]MH_I2C_Read... [08:52:08]Read from MH i2c: 01 [08:52:08]MH_I2C_Read... [08:52:08]Read from MH i2c: 01 07 00 [08:52:08]MH_I2C_Read... [08:52:08]Read from MH i2c: 01 07 00 0E 1E 00 00 00 00 00 FF 0F 41 [08:52:08]RasterBufferAndPrint [08:52:08]line Счет N : (1)459261 [08:52:08]line ИНН: 02508201610067 [08:52:08]line Контрольно-Кассовый Чек [08:52:08]line ПРОДАЖА [08:52:08]line ТРК (МРК, ГНК) : 12 [08:52:08]line Товар: 2710124130 [08:52:08]line Аи-92-К-5 [08:52:08]line 7.600 * 65.80 [08:52:08]line = 500.08 [08:52:08]line НДС 12% НСП 1% [08:52:08]line > о реализуемом товаре [08:52:08]line ОКРУГЛЕНИЕ: -0.08 [08:52:08]line ИТОГО: 500.00 [08:52:08]line Внесено: 500.00 [08:52:08]line СДАЧА: 0.00 [08:52:08]line НСП 1% : 4.42 [08:52:08]line НДС 12% : 53.11 [08:52:08]line Наличными: 500.00 [08:52:08]line Безнал.: 0.00 [08:52:08]line Место: АЗС № 72 "Партнер Нефть" [08:52:08]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [08:52:08]line СНО: Общий режим [08:52:08]line Чек 33 15.07.2024 08:52 [08:52:08]line Смена: 448 ФФД: 1.0 [08:52:08]line ЗНМ: 0300000160 [08:52:08]line РНМ: 0000000000090829 [08:52:08]line Версия ККМ: 001 [08:52:08]line ФМ: 0000000000874718 [08:52:08]line ФД: 165160 [08:52:08]line ФПД: 276506558590546 [08:52:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T085211&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165160&fm=276506558590546&tin=02508201610067®Number=0000000000090829&sum=50000 [08:52:09]written 0, free lines is 4095 [08:52:09]Write to MH i2c: 01 00 00 38 1E 56 [08:52:09]Write i2c OK [08:52:09]MH_I2C_Read... [08:52:09]Read from MH i2c: 01 [08:52:09]MH_I2C_Read... [08:52:09]Read from MH i2c: 01 07 00 [08:52:09]MH_I2C_Read... [08:52:09]Read from MH i2c: 01 07 00 38 1E 00 00 00 00 00 EF 0C 58 [08:52:09]RasterBufferAndPrint [08:52:09]line [08:52:09]line [08:52:09]line [08:52:09]line [08:52:09]line [08:52:09]written 0, free lines is 3318 [08:52:09]MH_Cut [08:52:09]Write to MH i2c: D1 01 00 3F 1E 01 2F [08:52:09]Write i2c OK [08:52:09]MH_I2C_Read... [08:52:09]Read from MH i2c: D1 [08:52:09]MH_I2C_Read... [08:52:09]Read from MH i2c: D1 01 00 [08:52:09]MH_I2C_Read... [08:52:09]Read from MH i2c: D1 01 00 3F 1E 00 2E [08:52:09]Write to MH i2c: 01 00 00 40 1E 5E [08:52:09]Write i2c OK [08:52:09]MH_I2C_Read... [08:52:10]*** Cut start [08:52:10]*** Partial cut [08:52:10]*** CUTSNS_PIN = 1 [08:52:10]*** CUTSNS_PIN = 0 [08:52:10]*** Brake cut motor [08:52:10]Read from MH i2c: 01 [08:52:10]MH_I2C_Read... [08:52:10]*** Stop cut motor [08:52:10]*** Cut end [08:52:10]Read from MH i2c: 01 07 00 [08:52:10]MH_I2C_Read... [08:52:10]Read from MH i2c: 01 07 00 40 1E 00 00 00 00 00 FF 0F 73 [08:52:10]process_action close_receipt done [08:52:10]requested_data is exist [08:52:10]produce_requested_data [08:52:10]requested_item fm.sn is exist - process it [08:52:10]wFMCommunicate request_size=4 [08:52:10]MH_SAM_APDU [08:52:10]CAPDU: 80 11 00 00 [08:52:10]Write to MH i2c: E2 08 00 41 1E 80 11 00 00 00 00 00 00 D9 [08:52:10]Write i2c OK [08:52:10]MH_I2C_Read... [08:52:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:11]Read from MH i2c: E2 [08:52:11]MH_I2C_Read... [08:52:11]Read from MH i2c: E2 17 00 [08:52:11]MH_I2C_Read... [08:52:11]Read from MH i2c: E2 17 00 41 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2F [08:52:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:52:11]wFMCommunicate OK [08:52:11]requested_item fd.num is exist - process it [08:52:11]SAM_PROTO_GetFieldsCounters [08:52:11]wFMCommunicate request_size=4 [08:52:11]MH_SAM_APDU [08:52:11]CAPDU: 80 13 00 00 [08:52:11]Write to MH i2c: E2 08 00 42 1E 80 13 00 00 00 00 00 00 DC [08:52:11]Write i2c OK [08:52:11]MH_I2C_Read... [08:52:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:52:11]Read from MH i2c: E2 [08:52:11]MH_I2C_Read... [08:52:11]Read from MH i2c: E2 62 00 [08:52:11]MH_I2C_Read... [08:52:11]Read from MH i2c: E2 62 00 42 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 28 85 02 00 0E 04 04 00 C0 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 D6 [08:52: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 28 85 02 00 0E 04 04 00 C0 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 [08:52:11]wFMCommunicate OK [08:52:11]SAM_PROTO_GetFieldsCounters done [08:52:11]requested_item shift.num is exist - process it [08:52:11]requested_item shift.opened is exist - process it [08:52:11]req_shift_opened [08:52:11]FM_GetShiftState [08:52:11]SAM_PROTO_GetShiftState [08:52:11]wFMCommunicate request_size=4 [08:52:11]MH_SAM_APDU [08:52:11]CAPDU: 80 13 01 00 [08:52:11]Write to MH i2c: E2 08 00 43 1E 80 13 01 00 00 00 00 00 DE [08:52:11]Write i2c OK [08:52:11]MH_I2C_Read... [08:52:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:11]Read from MH i2c: E2 [08:52:11]MH_I2C_Read... [08:52:11]Read from MH i2c: E2 0E 00 [08:52:11]MH_I2C_Read... [08:52:11]Read from MH i2c: E2 0E 00 43 1E 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 B7 [08:52:11]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [08:52:11]wFMCommunicate OK [08:52:11]SAM_PROTO_GetShiftState done [08:52:11]FM_GetShiftState done [08:52:11]req_shift_opened done [08:52:11]requested_item shift.open_date is exist - process it [08:52:11]req_shift_open_date [08:52:11]req_shift_open_date done [08:52:11]produce_requested_data done [08:52:11]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165160,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [08:52:11]process_action_free close_receipt [08:52:11]json_value_free [08:52:11]json_value_free done [08:52:11]process_json_proto returns [08:52:11]Send response to host [08:52:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165160,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [08:52:11]free response buf [08:52:11]execute_script done [08:52:11]execute_script returns [08:52:11]free content buf [08:52:11]Sock 9.Close socket [08:52:11]Sock 9.Thread stoped [08:54:02]ConnectInit Can't connect to host [08:54:02]CommunicateWithHost connect error [08:54:02]CommunicateWithHost err = -1 [08:54:02]OFD Sender: Server communicate error [08:54:02]OFD Sender: Processing packet 165159 [packets to send 107, broken 105] [08:54:02]ProducePacketName [08:54:02]name=ofd_packets/00165159 [08:54:02]OFD Sender: To server: pG, [08:54:02]CommunicateWithHost lk.salyk.kg:30040 [08:54:02]ConnectInit lk.salyk.kg [08:54:02]Connected sock=9 [08:54: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 37 31 38 0F 01 00 00 AF 2B 07 01 0A 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 88 13 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 7F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 7F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 7F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 28 E3 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 27 85 02 00 35 04 06 00 9B 3D 90 70 A3 C6 4C 35 23 7D F7 17 EC 3C [08:54:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 9D 2C 47 00 1C EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 27 85 02 00 F4 03 04 00 37 8A 94 66 B6 04 01 00 00 08 E4 77 06 E2 A7 51 AB [08:54:02]CommunicateWithHost err = 0 [08:54:02]CheckOFDResponse [08:54:02]1017 (14) - 77093643461234 [08:54:02]1041 (16) - 0000000000874718 [08:54:02]1040 (4) - 165159 [08:54:02]1012 (4) - 15.07.2024 02:32 [08:54:02]1206 (1) - 0 [08:54:02]OFD Sender: Remove packet 165159 [08:54:02]ProducePacketName [08:54:02]name=ofd_packets/00165159 [08:54:02]NVStorageDeleteData [08:54:03]OFD Sender: Processing packet 165160 [packets to send 106, broken 105] [08:54:03]ProducePacketName [08:54:03]name=ofd_packets/00165160 [08:54:03]OFD Sender: To server: pG, [08:54:03]CommunicateWithHost lk.salyk.kg:30040 [08:54:03]ConnectInit lk.salyk.kg [08:54:03]Connected sock=9 [08:54:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 0D B5 07 01 F2 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 3B E3 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 28 85 02 00 35 04 06 00 FB 7B 33 33 EE 52 1C 23 FB 5A 58 10 9E D9 [08:54:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 41 4B 47 00 62 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 28 85 02 00 F4 03 04 00 38 8A 94 66 B6 04 01 00 00 82 BD 24 FA 9B AB 23 5C [08:54:03]CommunicateWithHost err = 0 [08:54:03]CheckOFDResponse [08:54:03]1017 (14) - 77093643461234 [08:54:03]1041 (16) - 0000000000874718 [08:54:03]1040 (4) - 165160 [08:54:03]1012 (4) - 15.07.2024 02:32 [08:54:03]1206 (1) - 0 [08:54:03]OFD Sender: Remove packet 165160 [08:54:03]ProducePacketName [08:54:03]name=ofd_packets/00165160 [08:54:03]NVStorageDeleteData [08:54:04]OFD Sender: No OFD packet to send [08:54:09]OFD Sender: No OFD packet to send [08:54:14]OFD Sender: No OFD packet to send [08:54:19]OFD Sender: No OFD packet to send [08:54:24]OFD Sender: No OFD packet to send [08:54:29]OFD Sender: No OFD packet to send [08:54:34]OFD Sender: No OFD packet to send [08:54:39]OFD Sender: No OFD packet to send [08:54:44]OFD Sender: No OFD packet to send [08:54:49]OFD Sender: No OFD packet to send [08:54:54]OFD Sender: No OFD packet to send [08:54:59]OFD Sender: No OFD packet to send [08:55:04]OFD Sender: No OFD packet to send [08:55:09]OFD Sender: No OFD packet to send [08:55:14]OFD Sender: No OFD packet to send [08:55:19]OFD Sender: No OFD packet to send [08:55:24]OFD Sender: No OFD packet to send [08:55:29]OFD Sender: No OFD packet to send [08:55:34]OFD Sender: No OFD packet to send [08:55:39]OFD Sender: No OFD packet to send [08:55:44]OFD Sender: No OFD packet to send [08:55:49]OFD Sender: No OFD packet to send [08:55:54]OFD Sender: No OFD packet to send [08:55:59]OFD Sender: No OFD packet to send [08:56:04]OFD Sender: No OFD packet to send [08:56:09]OFD Sender: No OFD packet to send [08:56:14]OFD Sender: No OFD packet to send [08:56:19]OFD Sender: No OFD packet to send [08:56:24]OFD Sender: No OFD packet to send [08:56:29]OFD Sender: No OFD packet to send [08:56:34]OFD Sender: No OFD packet to send [08:56:39]OFD Sender: No OFD packet to send [08:56:44]OFD Sender: No OFD packet to send [08:56:49]OFD Sender: No OFD packet to send [08:56:54]OFD Sender: No OFD packet to send [08:56:59]OFD Sender: No OFD packet to send [08:57:04]OFD Sender: No OFD packet to send [08:57:09]OFD Sender: No OFD packet to send [08:57:14]OFD Sender: No OFD packet to send [08:57:19]OFD Sender: No OFD packet to send [08:57:24]OFD Sender: No OFD packet to send [08:57:29]OFD Sender: No OFD packet to send [08:57:34]OFD Sender: No OFD packet to send [08:57:39]OFD Sender: No OFD packet to send [08:57:44]OFD Sender: No OFD packet to send [08:57:48]accept exits with 7 [08:57:48]New connection [08:57:48]New thread 3066928484 created [08:57:48]Thread 3066785124 joined [08:57:48]Waiting for new connection... [08:57:48] Sock 7.Parse request [08:57:48]Sock 7.Check first char [08:57:48]Sock 7.First char is OK [08:57:48]request: POST /json_proto HTTP/1.0 [08:57:48]Method: POST [08:57:48]URL: /json_proto [08:57:48]Method is POST - this is cgi request [08:57:48]url: /json_proto [08:57:48]query_string will be loaded in cgi processing [08:57:48]execute_cgi json_proto POST (null) [08:57:48]execute_cgi path=json_proto method=POST [08:57:48]POST find Content-Length [08:57:48]Host: 172.17.56.4:8080 [08:57:48]Content-Length: 677 [08:57:48]Content-Type: application/json [08:57:48] [08:57:48]POST finish read [08:57:48]Found Content-Length = 677 [08:57:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459262", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "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" ] } } [08:57:48]execute_script... [08:57:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459262", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "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" ] } } [08:57:48]POST & json_proto [08:57:48]process_json_proto [08:57:48]json parsed OK: [08:57:48]protocol is kg_v1.0 [08:57:48]action value=close_receipt [08:57:48]process_action close_receipt [08:57:48]cmd_close_receipt [08:57:48]MH_GetDate [08:57:48]Write to MH i2c: F0 00 00 44 1E 51 [08:57:48]Write i2c OK [08:57:48]MH_I2C_Read... [08:57:48]Read from MH i2c: F0 [08:57:48]MH_I2C_Read... [08:57:48]Read from MH i2c: F0 09 00 [08:57:48]MH_I2C_Read... [08:57:48]Read from MH i2c: F0 09 00 44 1E 00 90 E4 94 66 C9 DC B2 64 83 [08:57:48]GetLastDocTimeStamp 1721033531 [08:57:48]current date 1721033872 [08:57:48]FM_GetShiftState [08:57:48]SAM_PROTO_GetShiftState [08:57:48]wFMCommunicate request_size=4 [08:57:48]MH_SAM_APDU [08:57:48]CAPDU: 80 13 01 00 [08:57:48]Write to MH i2c: E2 08 00 45 1E 80 13 01 00 00 00 00 00 E0 [08:57:48]Write i2c OK [08:57:48]MH_I2C_Read... [08:57:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:48]Read from MH i2c: E2 [08:57:48]MH_I2C_Read... [08:57:48]Read from MH i2c: E2 0E 00 [08:57:48]MH_I2C_Read... [08:57:48]Read from MH i2c: E2 0E 00 45 1E 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 B9 [08:57:48]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [08:57:48]wFMCommunicate OK [08:57:48]SAM_PROTO_GetShiftState done [08:57:48]FM_GetShiftState done [08:57:48]opened in 1721003876 [08:57:48]opened+sec_in_day 1721090276 [08:57:48]quantity*price = 60009 [08:57:48]sum+1 = 60011 [08:57:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 34 15.07.2024 08:57 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165161 ФПД: 118339413962955 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T085752&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165161&fm=118339413962955&tin=02508201610067®Number=0000000000090829&sum=60000 [08:57:49]StoreToDocumentArchive [08:57:49]shift 448 fd 165161 [08:57:49]save to /storage/0448/doc_00165161 [08:57:49]save last doc name /storage/0448/doc_00165161 to /storage/kkm_last_doc_name [08:57:49]save OK [08:57:49]Clear old archive folders... [08:57:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:57:49]tlvbuf is 01346A80 [08:57:49]SAM_PROTO_ClearQueue [08:57:49]wFMCommunicate request_size=4 [08:57:49]MH_SAM_APDU [08:57:49]CAPDU: 80 09 00 00 [08:57:49]Write to MH i2c: E2 08 00 52 1E 80 09 00 00 00 00 00 00 E2 [08:57:49]Write i2c OK [08:57:49]MH_I2C_Read... [08:57:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:57:49]Read from MH i2c: E2 [08:57:49]MH_I2C_Read... [08:57:49]Read from MH i2c: E2 03 00 [08:57:49]MH_I2C_Read... [08:57:49]Read from MH i2c: E2 03 00 52 1E 00 90 00 E4 [08:57:49]RAPDU: 90 00 [08:57:49]wFMCommunicate OK [08:57:49]SAM_PROTO_ClearQueue done [08:57:49]KKMCreateOFDPacket [08:57:49]OFDProtocolAddRootSTLVToBuf [08:57:49]FM_MakeSignedData [08:57:49]FM_MakeSignedData [08:57:49]SAM_PROTO_SignData [08:57:49]wFMCommunicate request_size=4 [08:57:49]MH_SAM_APDU [08:57:49]CAPDU: 80 0D 01 02 [08:57:49]Write to MH i2c: E2 08 00 53 1E 80 0D 01 02 00 00 00 00 EA [08:57:49]Write i2c OK [08:57:49]MH_I2C_Read... [08:57:49]OFD Sender: No OFD packet to send [08:57:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:57:49]Read from MH i2c: E2 [08:57:49]MH_I2C_Read... [08:57:49]Read from MH i2c: E2 03 00 [08:57:49]MH_I2C_Read... [08:57:49]Read from MH i2c: E2 03 00 53 1E 00 90 00 E5 [08:57:49]RAPDU: 90 00 [08:57:49]wFMCommunicate OK [08:57:49]wFMCommunicate request_size=255 [08:57:49]MH_SAM_APDU [08:57: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 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 90 E4 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 29 85 02 00 35 04 06 00 6B [08:57:49]Write to MH i2c: E2 02 01 54 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 90 E4 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 29 85 02 00 35 04 06 00 6B 00 00 F0 [08:57:49]Write i2c OK [08:57:49]MH_I2C_Read... [08:57:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:49]Read from MH i2c: E2 [08:57:49]MH_I2C_Read... [08:57:49]Read from MH i2c: E2 03 00 [08:57:49]MH_I2C_Read... [08:57:49]Read from MH i2c: E2 03 00 54 1E 00 90 00 E6 [08:57:49]RAPDU: 90 00 [08:57:49]wFMCommunicate OK [08:57:49]wFMCommunicate request_size=10 [08:57:49]MH_SAM_APDU [08:57:49]CAPDU: 80 0D 02 02 05 A1 0A BB 70 CB [08:57:49]Write to MH i2c: E2 0D 00 55 1E 80 0D 02 02 05 00 A1 0A BB 70 CB 00 00 98 [08:57:49]Write i2c OK [08:57:49]MH_I2C_Read... [08:57:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:49]Read from MH i2c: E2 [08:57:49]MH_I2C_Read... [08:57:49]Read from MH i2c: E2 03 00 [08:57:49]MH_I2C_Read... [08:57:49]Read from MH i2c: E2 03 00 55 1E 00 90 00 E7 [08:57:49]RAPDU: 90 00 [08:57:49]wFMCommunicate OK [08:57:49]wFMCommunicate request_size=4 [08:57:49]MH_SAM_APDU [08:57:49]CAPDU: 80 0D 03 02 [08:57:49]Write to MH i2c: E2 08 00 56 1E 80 0D 03 02 00 00 00 00 EF [08:57:49]Write i2c OK [08:57:49]MH_I2C_Read... [08:57:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:57:49]Read from MH i2c: E2 [08:57:49]MH_I2C_Read... [08:57:49]Read from MH i2c: E2 0B 00 [08:57:49]MH_I2C_Read... [08:57:49]Read from MH i2c: E2 0B 00 56 1E 00 E6 05 43 92 3F 09 66 1A 90 00 78 [08:57:49]RAPDU: E6 05 43 92 3F 09 66 1A 90 00 [08:57:49]wFMCommunicate OK [08:57:49]SAM_PROTO_SignData done [08:57:49]FM_MakeSignedData done [08:57:49]CreateOFDProtocolMessage [08:57:49]wFMCommunicate request_size=4 [08:57:49]MH_SAM_APDU [08:57:49]CAPDU: 80 11 00 00 [08:57:49]Write to MH i2c: E2 08 00 57 1E 80 11 00 00 00 00 00 00 EF [08:57:49]Write i2c OK [08:57:49]MH_I2C_Read... [08:57:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:49]Read from MH i2c: E2 [08:57:49]MH_I2C_Read... [08:57:49]Read from MH i2c: E2 17 00 [08:57:49]MH_I2C_Read... [08:57:49]Read from MH i2c: E2 17 00 57 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 45 [08:57:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:57:49]wFMCommunicate OK [08:57:49]CreateOFDProtocolMessage done [08:57:49]OFDSenderStorePacket 165161 [08:57:49]StoreOFDPacket docnum=165161 [08:57:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 76 89 07 01 F4 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 90 E4 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 29 85 02 00 35 04 06 00 6B A1 0A BB 70 CB E6 05 43 92 3F 09 66 1A [08:57:49]CheckFolder [08:57:49]dirname=/storage/ofd_packets [08:57:49]CheckFolder done [08:57:49]ProducePacketName [08:57:49]name=ofd_packets/00165161 [08:57:49]NVStorageSaveData ofd_packets/00165161 [08:57:49]File name is /storage/ofd_packets/00165161 [08:57:49]Write 301 bytes [08:57:49]NVStorageSaveData done [08:57:49]OFDSenderStorePacket done [08:57:49]KKMCreateOFDPacket done [08:57:49]NVStorageSaveData kkm_last_timestamp [08:57:49]File name is /storage/kkm_last_timestamp [08:57:49]Write 4 bytes [08:57:49]NVStorageSaveData done [08:57:49]ExternCall_PrintAddStr [08:57:49]wPrintStart [08:57:49]Write to MH i2c: 01 00 00 58 1E 76 [08:57:49]Write i2c OK [08:57:49]MH_I2C_Read... [08:57:49]Read from MH i2c: 01 [08:57:49]MH_I2C_Read... [08:57:49]Read from MH i2c: 01 07 00 [08:57:49]MH_I2C_Read... [08:57:49]Read from MH i2c: 01 07 00 58 1E 00 00 00 00 00 FF 0F 8B [08:57:49]RasterBufferAndPrint [08:57:49]line Счет N : (1)459262 [08:57:49]line ИНН: 02508201610067 [08:57:49]line Контрольно-Кассовый Чек [08:57:49]line ПРОДАЖА [08:57:49]line ТРК (МРК, ГНК) : 12 [08:57:49]line Товар: 2710124130 [08:57:49]line Аи-92-К-5 [08:57:49]line 9.120 * 65.80 [08:57:49]line = 600.10 [08:57:49]line НДС 12% НСП 1% [08:57:49]line > о реализуемом товаре [08:57:49]line ОКРУГЛЕНИЕ: -0.10 [08:57:49]line ИТОГО: 600.00 [08:57:49]line Внесено: 600.00 [08:57:49]line СДАЧА: 0.00 [08:57:49]line НСП 1% : 5.31 [08:57:49]line НДС 12% : 63.73 [08:57:49]line Наличными: 600.00 [08:57:49]line Безнал.: 0.00 [08:57:49]line Место: АЗС № 72 "Партнер Нефть" [08:57:49]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [08:57:49]line СНО: Общий режим [08:57:49]line Чек 34 15.07.2024 08:57 [08:57:49]line Смена: 448 ФФД: 1.0 [08:57:49]line ЗНМ: 0300000160 [08:57:49]line РНМ: 0000000000090829 [08:57:49]line Версия ККМ: 001 [08:57:49]line ФМ: 0000000000874718 [08:57:49]line ФД: 165161 [08:57:49]line ФПД: 118339413962955 [08:57:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T085752&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165161&fm=118339413962955&tin=02508201610067®Number=0000000000090829&sum=60000 [08:57:50]OFD Sender: Processing packet 165161 [packets to send 106, broken 105] [08:57:50]ProducePacketName [08:57:50]name=ofd_packets/00165161 [08:57:50]OFD Sender: To server: pG, [08:57:50]CommunicateWithHost lk.salyk.kg:30040 [08:57:50]ConnectInit lk.salyk.kg [08:57:50]written 0, free lines is 4095 [08:57:50]Connected sock=10 [08:57: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 37 31 38 0F 01 00 00 76 89 07 01 F4 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 90 E4 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 29 85 02 00 35 04 06 00 6B A1 0A BB 70 CB E6 05 43 92 3F 09 66 1A [08:57:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 5D 8A 47 00 82 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 29 85 02 00 F4 03 04 00 1B 8B 94 66 B6 04 01 00 00 D2 8C 1E AD 90 A9 B9 DF [08:57:50]CommunicateWithHost err = 0 [08:57:50]CheckOFDResponse [08:57:50]1017 (14) - 77093643461234 [08:57:50]1041 (16) - 0000000000874718 [08:57:50]1040 (4) - 165161 [08:57:50]1012 (4) - 15.07.2024 02:36 [08:57:50]1206 (1) - 0 [08:57:50]OFD Sender: Remove packet 165161 [08:57:50]ProducePacketName [08:57:50]name=ofd_packets/00165161 [08:57:50]NVStorageDeleteData [08:57:50]Write to MH i2c: 01 00 00 82 1E A0 [08:57:50]Write i2c OK [08:57:50]MH_I2C_Read... [08:57:50]Read from MH i2c: 01 [08:57:50]MH_I2C_Read... [08:57:50]Read from MH i2c: 01 07 00 [08:57:50]MH_I2C_Read... [08:57:50]Read from MH i2c: 01 07 00 82 1E 00 00 00 00 00 F9 0C AC [08:57:50]RasterBufferAndPrint [08:57:50]line [08:57:50]line [08:57:50]line [08:57:50]line [08:57:50]line [08:57:50]written 0, free lines is 3327 [08:57:50]MH_Cut [08:57:50]Write to MH i2c: D1 01 00 89 1E 01 79 [08:57:50]Write i2c OK [08:57:50]MH_I2C_Read... [08:57:50]Read from MH i2c: D1 [08:57:50]MH_I2C_Read... [08:57:50]Read from MH i2c: D1 01 00 [08:57:50]MH_I2C_Read... [08:57:50]Read from MH i2c: D1 01 00 89 1E 00 78 [08:57:50]Write to MH i2c: 01 00 00 8A 1E A8 [08:57:50]Write i2c OK [08:57:50]MH_I2C_Read... [08:57:51]OFD Sender: No OFD packet to send [08:57:51]*** Cut start [08:57:51]*** Partial cut [08:57:51]*** CUTSNS_PIN = 1 [08:57:51]*** CUTSNS_PIN = 0 [08:57:51]*** Brake cut motor [08:57:51]Read from MH i2c: 01 [08:57:51]MH_I2C_Read... [08:57:51]*** Stop cut motor [08:57:51]*** Cut end [08:57:51]Read from MH i2c: 01 07 00 [08:57:51]MH_I2C_Read... [08:57:51]Read from MH i2c: 01 07 00 8A 1E 00 00 00 00 00 FF 0F BD [08:57:51]process_action close_receipt done [08:57:51]requested_data is exist [08:57:51]produce_requested_data [08:57:51]requested_item fm.sn is exist - process it [08:57:51]wFMCommunicate request_size=4 [08:57:51]MH_SAM_APDU [08:57:51]CAPDU: 80 11 00 00 [08:57:51]Write to MH i2c: E2 08 00 8B 1E 80 11 00 00 00 00 00 00 23 [08:57:51]Write i2c OK [08:57:51]MH_I2C_Read... [08:57:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:52]Read from MH i2c: E2 [08:57:52]MH_I2C_Read... [08:57:52]Read from MH i2c: E2 17 00 [08:57:52]MH_I2C_Read... [08:57:52]Read from MH i2c: E2 17 00 8B 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 79 [08:57:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [08:57:52]wFMCommunicate OK [08:57:52]requested_item fd.num is exist - process it [08:57:52]SAM_PROTO_GetFieldsCounters [08:57:52]wFMCommunicate request_size=4 [08:57:52]MH_SAM_APDU [08:57:52]CAPDU: 80 13 00 00 [08:57:52]Write to MH i2c: E2 08 00 8C 1E 80 13 00 00 00 00 00 00 26 [08:57:52]Write i2c OK [08:57:52]MH_I2C_Read... [08:57:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:57:52]Read from MH i2c: E2 [08:57:52]MH_I2C_Read... [08:57:52]Read from MH i2c: E2 62 00 [08:57:52]MH_I2C_Read... [08:57:52]Read from MH i2c: E2 62 00 8C 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 29 85 02 00 0E 04 04 00 C0 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 24 [08:57: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 29 85 02 00 0E 04 04 00 C0 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 [08:57:52]wFMCommunicate OK [08:57:52]SAM_PROTO_GetFieldsCounters done [08:57:52]requested_item shift.num is exist - process it [08:57:52]requested_item shift.opened is exist - process it [08:57:52]req_shift_opened [08:57:52]FM_GetShiftState [08:57:52]SAM_PROTO_GetShiftState [08:57:52]wFMCommunicate request_size=4 [08:57:52]MH_SAM_APDU [08:57:52]CAPDU: 80 13 01 00 [08:57:52]Write to MH i2c: E2 08 00 8D 1E 80 13 01 00 00 00 00 00 28 [08:57:52]Write i2c OK [08:57:52]MH_I2C_Read... [08:57:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:52]Read from MH i2c: E2 [08:57:52]MH_I2C_Read... [08:57:52]Read from MH i2c: E2 0E 00 [08:57:52]MH_I2C_Read... [08:57:52]Read from MH i2c: E2 0E 00 8D 1E 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 01 [08:57:52]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [08:57:52]wFMCommunicate OK [08:57:52]SAM_PROTO_GetShiftState done [08:57:52]FM_GetShiftState done [08:57:52]req_shift_opened done [08:57:52]requested_item shift.open_date is exist - process it [08:57:52]req_shift_open_date [08:57:52]req_shift_open_date done [08:57:52]produce_requested_data done [08:57:52]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165161,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [08:57:52]process_action_free close_receipt [08:57:52]json_value_free [08:57:52]json_value_free done [08:57:52]process_json_proto returns [08:57:52]Send response to host [08:57:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165161,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [08:57:52]free response buf [08:57:52]execute_script done [08:57:52]execute_script returns [08:57:52]free content buf [08:57:52]Sock 7.Close socket [08:57:52]Sock 7.Thread stoped [08:57:56]OFD Sender: No OFD packet to send [08:58:01]OFD Sender: No OFD packet to send [08:58:06]OFD Sender: No OFD packet to send [08:58:11]OFD Sender: No OFD packet to send [08:58:16]OFD Sender: No OFD packet to send [08:58:21]OFD Sender: No OFD packet to send [08:58:26]OFD Sender: No OFD packet to send [08:58:31]OFD Sender: No OFD packet to send [08:58:36]OFD Sender: No OFD packet to send [08:58:41]OFD Sender: No OFD packet to send [08:58:46]OFD Sender: No OFD packet to send [08:58:51]OFD Sender: No OFD packet to send [08:58:56]OFD Sender: No OFD packet to send [08:59:01]OFD Sender: No OFD packet to send [08:59:06]OFD Sender: No OFD packet to send [08:59:11]OFD Sender: No OFD packet to send [08:59:16]OFD Sender: No OFD packet to send [08:59:21]OFD Sender: No OFD packet to send [08:59:26]OFD Sender: No OFD packet to send [08:59:31]OFD Sender: No OFD packet to send [08:59:36]OFD Sender: No OFD packet to send [08:59:41]OFD Sender: No OFD packet to send [08:59:46]OFD Sender: No OFD packet to send [08:59:51]OFD Sender: No OFD packet to send [08:59:56]OFD Sender: No OFD packet to send [09:00:01]OFD Sender: No OFD packet to send [09:00:06]OFD Sender: No OFD packet to send [09:00:11]OFD Sender: No OFD packet to send [09:00:16]OFD Sender: No OFD packet to send [09:00:21]OFD Sender: No OFD packet to send [09:00:22]accept exits with 9 [09:00:22]New connection [09:00:22]New thread 3066785124 created [09:00:22]Thread 3066928484 joined [09:00:22]Waiting for new connection... [09:00:22] Sock 9.Parse request [09:00:22]Sock 9.Check first char [09:00:22]Sock 9.First char is OK [09:00:22]request: POST /json_proto HTTP/1.0 [09:00:22]Method: POST [09:00:22]URL: /json_proto [09:00:22]Method is POST - this is cgi request [09:00:22]url: /json_proto [09:00:22]query_string will be loaded in cgi processing [09:00:22]execute_cgi json_proto POST (null) [09:00:22]execute_cgi path=json_proto method=POST [09:00:22]POST find Content-Length [09:00:22]Host: 172.17.56.4:8080 [09:00:22]Content-Length: 678 [09:00:22]Content-Type: application/json [09:00:22] [09:00:22]POST finish read [09:00:22]Found Content-Length = 678 [09:00:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459263", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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" ] } } [09:00:22]execute_script... [09:00:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459263", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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" ] } } [09:00:22]POST & json_proto [09:00:22]process_json_proto [09:00:22]json parsed OK: [09:00:22]protocol is kg_v1.0 [09:00:22]action value=close_receipt [09:00:22]process_action close_receipt [09:00:22]cmd_close_receipt [09:00:22]MH_GetDate [09:00:22]Write to MH i2c: F0 00 00 8E 1E 9B [09:00:23]Write i2c OK [09:00:23]MH_I2C_Read... [09:00:23]Read from MH i2c: F0 [09:00:23]MH_I2C_Read... [09:00:23]Read from MH i2c: F0 09 00 [09:00:23]MH_I2C_Read... [09:00:23]Read from MH i2c: F0 09 00 8E 1E 00 2B E5 94 66 C9 DC B2 64 69 [09:00:23]GetLastDocTimeStamp 1721033872 [09:00:23]current date 1721034027 [09:00:23]FM_GetShiftState [09:00:23]SAM_PROTO_GetShiftState [09:00:23]wFMCommunicate request_size=4 [09:00:23]MH_SAM_APDU [09:00:23]CAPDU: 80 13 01 00 [09:00:23]Write to MH i2c: E2 08 00 8F 1E 80 13 01 00 00 00 00 00 2A [09:00:23]Write i2c OK [09:00:23]MH_I2C_Read... [09:00:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:23]Read from MH i2c: E2 [09:00:23]MH_I2C_Read... [09:00:23]Read from MH i2c: E2 0E 00 [09:00:23]MH_I2C_Read... [09:00:23]Read from MH i2c: E2 0E 00 8F 1E 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 03 [09:00:23]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [09:00:23]wFMCommunicate OK [09:00:23]SAM_PROTO_GetShiftState done [09:00:23]FM_GetShiftState done [09:00:23]opened in 1721003876 [09:00:23]opened+sec_in_day 1721090276 [09:00:23]quantity*price = 70011 [09:00:23]sum+1 = 70012 [09:00:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 35 15.07.2024 09:00 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165162 ФПД: 86027378847585 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T090027&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165162&fm=86027378847585&tin=02508201610067®Number=0000000000090829&sum=70000 [09:00:24]StoreToDocumentArchive [09:00:24]shift 448 fd 165162 [09:00:24]save to /storage/0448/doc_00165162 [09:00:24]save last doc name /storage/0448/doc_00165162 to /storage/kkm_last_doc_name [09:00:24]save OK [09:00:24]Clear old archive folders... [09:00:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:00:24]tlvbuf is B6EBB780 [09:00:24]SAM_PROTO_ClearQueue [09:00:24]wFMCommunicate request_size=4 [09:00:24]MH_SAM_APDU [09:00:24]CAPDU: 80 09 00 00 [09:00:24]Write to MH i2c: E2 08 00 9C 1E 80 09 00 00 00 00 00 00 2C [09:00:24]Write i2c OK [09:00:24]MH_I2C_Read... [09:00:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:00:24]Read from MH i2c: E2 [09:00:24]MH_I2C_Read... [09:00:24]Read from MH i2c: E2 03 00 [09:00:24]MH_I2C_Read... [09:00:24]Read from MH i2c: E2 03 00 9C 1E 00 90 00 2E [09:00:24]RAPDU: 90 00 [09:00:24]wFMCommunicate OK [09:00:24]SAM_PROTO_ClearQueue done [09:00:24]KKMCreateOFDPacket [09:00:24]OFDProtocolAddRootSTLVToBuf [09:00:24]FM_MakeSignedData [09:00:24]FM_MakeSignedData [09:00:24]SAM_PROTO_SignData [09:00:24]wFMCommunicate request_size=4 [09:00:24]MH_SAM_APDU [09:00:24]CAPDU: 80 0D 01 02 [09:00:24]Write to MH i2c: E2 08 00 9D 1E 80 0D 01 02 00 00 00 00 34 [09:00:24]Write i2c OK [09:00:24]MH_I2C_Read... [09:00:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:00:24]Read from MH i2c: E2 [09:00:24]MH_I2C_Read... [09:00:24]Read from MH i2c: E2 03 00 [09:00:24]MH_I2C_Read... [09:00:24]Read from MH i2c: E2 03 00 9D 1E 00 90 00 2F [09:00:24]RAPDU: 90 00 [09:00:24]wFMCommunicate OK [09:00:24]wFMCommunicate request_size=255 [09:00:24]MH_SAM_APDU [09:00:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 23 00 00 00 F4 03 04 00 2B E5 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2A 85 02 00 35 04 06 00 4E [09:00:24]Write to MH i2c: E2 02 01 9E 1E 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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 23 00 00 00 F4 03 04 00 2B E5 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2A 85 02 00 35 04 06 00 4E 00 00 DE [09:00:24]Write i2c OK [09:00:24]MH_I2C_Read... [09:00:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:24]Read from MH i2c: E2 [09:00:24]MH_I2C_Read... [09:00:24]Read from MH i2c: E2 03 00 [09:00:24]MH_I2C_Read... [09:00:24]Read from MH i2c: E2 03 00 9E 1E 00 90 00 30 [09:00:24]RAPDU: 90 00 [09:00:24]wFMCommunicate OK [09:00:24]wFMCommunicate request_size=10 [09:00:24]MH_SAM_APDU [09:00:24]CAPDU: 80 0D 02 02 05 3D CF 5B 6F 61 [09:00:24]Write to MH i2c: E2 0D 00 9F 1E 80 0D 02 02 05 00 3D CF 5B 6F 61 00 00 78 [09:00:24]Write i2c OK [09:00:24]MH_I2C_Read... [09:00:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:24]Read from MH i2c: E2 [09:00:24]MH_I2C_Read... [09:00:24]Read from MH i2c: E2 03 00 [09:00:24]MH_I2C_Read... [09:00:24]Read from MH i2c: E2 03 00 9F 1E 00 90 00 31 [09:00:24]RAPDU: 90 00 [09:00:24]wFMCommunicate OK [09:00:24]wFMCommunicate request_size=4 [09:00:24]MH_SAM_APDU [09:00:24]CAPDU: 80 0D 03 02 [09:00:24]Write to MH i2c: E2 08 00 A0 1E 80 0D 03 02 00 00 00 00 39 [09:00:24]Write i2c OK [09:00:24]MH_I2C_Read... [09:00:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:00:24]Read from MH i2c: E2 [09:00:24]MH_I2C_Read... [09:00:24]Read from MH i2c: E2 0B 00 [09:00:24]MH_I2C_Read... [09:00:24]Read from MH i2c: E2 0B 00 A0 1E 00 7A 4D 40 39 B4 30 5B 09 90 00 C2 [09:00:24]RAPDU: 7A 4D 40 39 B4 30 5B 09 90 00 [09:00:24]wFMCommunicate OK [09:00:24]SAM_PROTO_SignData done [09:00:24]FM_MakeSignedData done [09:00:24]CreateOFDProtocolMessage [09:00:24]wFMCommunicate request_size=4 [09:00:24]MH_SAM_APDU [09:00:24]CAPDU: 80 11 00 00 [09:00:24]Write to MH i2c: E2 08 00 A1 1E 80 11 00 00 00 00 00 00 39 [09:00:24]Write i2c OK [09:00:24]MH_I2C_Read... [09:00:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:24]Read from MH i2c: E2 [09:00:24]MH_I2C_Read... [09:00:24]Read from MH i2c: E2 17 00 [09:00:24]MH_I2C_Read... [09:00:24]Read from MH i2c: E2 17 00 A1 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8F [09:00:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:00:24]wFMCommunicate OK [09:00:24]CreateOFDProtocolMessage done [09:00:24]OFDSenderStorePacket 165162 [09:00:24]StoreOFDPacket docnum=165162 [09:00:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C2 B5 07 01 22 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 23 00 00 00 F4 03 04 00 2B E5 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2A 85 02 00 35 04 06 00 4E 3D CF 5B 6F 61 7A 4D 40 39 B4 30 5B 09 [09:00:24]CheckFolder [09:00:24]dirname=/storage/ofd_packets [09:00:24]CheckFolder done [09:00:24]ProducePacketName [09:00:24]name=ofd_packets/00165162 [09:00:24]NVStorageSaveData ofd_packets/00165162 [09:00:24]File name is /storage/ofd_packets/00165162 [09:00:24]Write 301 bytes [09:00:24]NVStorageSaveData done [09:00:24]OFDSenderStorePacket done [09:00:24]KKMCreateOFDPacket done [09:00:24]NVStorageSaveData kkm_last_timestamp [09:00:24]File name is /storage/kkm_last_timestamp [09:00:24]Write 4 bytes [09:00:24]NVStorageSaveData done [09:00:24]ExternCall_PrintAddStr [09:00:24]wPrintStart [09:00:24]Write to MH i2c: 01 00 00 A2 1E C0 [09:00:24]Write i2c OK [09:00:24]MH_I2C_Read... [09:00:24]Read from MH i2c: 01 [09:00:24]MH_I2C_Read... [09:00:24]Read from MH i2c: 01 07 00 [09:00:24]MH_I2C_Read... [09:00:24]Read from MH i2c: 01 07 00 A2 1E 00 00 00 00 00 FF 0F D5 [09:00:24]RasterBufferAndPrint [09:00:24]line Счет N : (1)459263 [09:00:24]line ИНН: 02508201610067 [09:00:24]line Контрольно-Кассовый Чек [09:00:24]line ПРОДАЖА [09:00:24]line ТРК (МРК, ГНК) : 22 [09:00:24]line Товар: 2710124130 [09:00:24]line Аи-92-К-5 [09:00:24]line 10.640 * 65.80 [09:00:24]line = 700.11 [09:00:24]line НДС 12% НСП 1% [09:00:24]line > о реализуемом товаре [09:00:24]line ОКРУГЛЕНИЕ: -0.11 [09:00:24]line ИТОГО: 700.00 [09:00:24]line Внесено: 700.00 [09:00:24]line СДАЧА: 0.00 [09:00:24]line НСП 1% : 6.20 [09:00:24]line НДС 12% : 74.35 [09:00:24]line Наличными: 700.00 [09:00:24]line Безнал.: 0.00 [09:00:24]line Место: АЗС № 72 "Партнер Нефть" [09:00:24]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:00:24]line СНО: Общий режим [09:00:24]line Чек 35 15.07.2024 09:00 [09:00:24]line Смена: 448 ФФД: 1.0 [09:00:24]line ЗНМ: 0300000160 [09:00:24]line РНМ: 0000000000090829 [09:00:24]line Версия ККМ: 001 [09:00:24]line ФМ: 0000000000874718 [09:00:24]line ФД: 165162 [09:00:24]line ФПД: 86027378847585 [09:00:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T090027&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165162&fm=86027378847585&tin=02508201610067®Number=0000000000090829&sum=70000 [09:00:25]OFD Sender: Processing packet 165162 [packets to send 106, broken 105] [09:00:25]ProducePacketName [09:00:25]name=ofd_packets/00165162 [09:00:25]OFD Sender: To server: pG, [09:00:25]CommunicateWithHost lk.salyk.kg:30040 [09:00:25]ConnectInit lk.salyk.kg [09:00:25]written 0, free lines is 4095 [09:00:25]Connected sock=10 [09:00:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C2 B5 07 01 22 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 23 00 00 00 F4 03 04 00 2B E5 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2A 85 02 00 35 04 06 00 4E 3D CF 5B 6F 61 7A 4D 40 39 B4 30 5B 09 [09:00:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 8B 47 47 00 9D 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2A 85 02 00 F4 03 04 00 B6 8B 94 66 B6 04 01 00 00 CF EE 27 CB 49 09 4A EB [09:00:25]CommunicateWithHost err = 0 [09:00:25]CheckOFDResponse [09:00:25]1017 (14) - 77093643461234 [09:00:25]1041 (16) - 0000000000874718 [09:00:25]1040 (4) - 165162 [09:00:25]1012 (4) - 15.07.2024 02:38 [09:00:25]1206 (1) - 0 [09:00:25]OFD Sender: Remove packet 165162 [09:00:25]ProducePacketName [09:00:25]name=ofd_packets/00165162 [09:00:25]NVStorageDeleteData [09:00:25]Write to MH i2c: 01 00 00 CC 1E EA [09:00:25]Write i2c OK [09:00:25]MH_I2C_Read... [09:00:25]Read from MH i2c: 01 [09:00:25]MH_I2C_Read... [09:00:25]Read from MH i2c: 01 07 00 [09:00:25]MH_I2C_Read... [09:00:25]Read from MH i2c: 01 07 00 CC 1E 00 00 00 00 00 F1 0C EE [09:00:25]RasterBufferAndPrint [09:00:25]line [09:00:25]line [09:00:25]line [09:00:25]line [09:00:25]line [09:00:25]written 0, free lines is 3319 [09:00:25]MH_Cut [09:00:25]Write to MH i2c: D1 01 00 D3 1E 01 C3 [09:00:25]Write i2c OK [09:00:25]MH_I2C_Read... [09:00:25]Read from MH i2c: D1 [09:00:25]MH_I2C_Read... [09:00:25]Read from MH i2c: D1 01 00 [09:00:25]MH_I2C_Read... [09:00:25]Read from MH i2c: D1 01 00 D3 1E 00 C2 [09:00:25]Write to MH i2c: 01 00 00 D4 1E F2 [09:00:25]Write i2c OK [09:00:25]MH_I2C_Read... [09:00:25]OFD Sender: No OFD packet to send [09:00:26]*** Cut start [09:00:26]*** Partial cut [09:00:26]*** CUTSNS_PIN = 1 [09:00:26]*** CUTSNS_PIN = 0 [09:00:26]*** Brake cut motor [09:00:26]Read from MH i2c: 01 [09:00:26]MH_I2C_Read... [09:00:26]*** Stop cut motor [09:00:26]*** Cut end [09:00:26]Read from MH i2c: 01 07 00 [09:00:26]MH_I2C_Read... [09:00:26]Read from MH i2c: 01 07 00 D4 1E 00 00 00 00 00 FF 0F 07 [09:00:26]process_action close_receipt done [09:00:26]requested_data is exist [09:00:26]produce_requested_data [09:00:26]requested_item fm.sn is exist - process it [09:00:26]wFMCommunicate request_size=4 [09:00:26]MH_SAM_APDU [09:00:26]CAPDU: 80 11 00 00 [09:00:26]Write to MH i2c: E2 08 00 D5 1E 80 11 00 00 00 00 00 00 6D [09:00:26]Write i2c OK [09:00:26]MH_I2C_Read... [09:00:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:26]Read from MH i2c: E2 [09:00:26]MH_I2C_Read... [09:00:26]Read from MH i2c: E2 17 00 [09:00:26]MH_I2C_Read... [09:00:26]Read from MH i2c: E2 17 00 D5 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C3 [09:00:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:00:26]wFMCommunicate OK [09:00:26]requested_item fd.num is exist - process it [09:00:26]SAM_PROTO_GetFieldsCounters [09:00:26]wFMCommunicate request_size=4 [09:00:26]MH_SAM_APDU [09:00:26]CAPDU: 80 13 00 00 [09:00:26]Write to MH i2c: E2 08 00 D6 1E 80 13 00 00 00 00 00 00 70 [09:00:26]Write i2c OK [09:00:26]MH_I2C_Read... [09:00:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:00:26]Read from MH i2c: E2 [09:00:26]MH_I2C_Read... [09:00:26]Read from MH i2c: E2 62 00 [09:00:26]MH_I2C_Read... [09:00:26]Read from MH i2c: E2 62 00 D6 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2A 85 02 00 0E 04 04 00 C0 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 72 [09:00:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2A 85 02 00 0E 04 04 00 C0 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 [09:00:26]wFMCommunicate OK [09:00:26]SAM_PROTO_GetFieldsCounters done [09:00:26]requested_item shift.num is exist - process it [09:00:26]requested_item shift.opened is exist - process it [09:00:26]req_shift_opened [09:00:26]FM_GetShiftState [09:00:26]SAM_PROTO_GetShiftState [09:00:26]wFMCommunicate request_size=4 [09:00:26]MH_SAM_APDU [09:00:26]CAPDU: 80 13 01 00 [09:00:26]Write to MH i2c: E2 08 00 D7 1E 80 13 01 00 00 00 00 00 72 [09:00:26]Write i2c OK [09:00:26]MH_I2C_Read... [09:00:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:26]Read from MH i2c: E2 [09:00:26]MH_I2C_Read... [09:00:26]Read from MH i2c: E2 0E 00 [09:00:26]MH_I2C_Read... [09:00:26]Read from MH i2c: E2 0E 00 D7 1E 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 4B [09:00:27]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [09:00:27]wFMCommunicate OK [09:00:27]SAM_PROTO_GetShiftState done [09:00:27]FM_GetShiftState done [09:00:27]req_shift_opened done [09:00:27]requested_item shift.open_date is exist - process it [09:00:27]req_shift_open_date [09:00:27]req_shift_open_date done [09:00:27]produce_requested_data done [09:00:27]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165162,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [09:00:27]process_action_free close_receipt [09:00:27]json_value_free [09:00:27]json_value_free done [09:00:27]process_json_proto returns [09:00:27]Send response to host [09:00:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165162,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [09:00:27]free response buf [09:00:27]execute_script done [09:00:27]execute_script returns [09:00:27]free content buf [09:00:27]Sock 9.Close socket [09:00:27]Sock 9.Thread stoped [09:00:30]OFD Sender: No OFD packet to send [09:00:35]OFD Sender: No OFD packet to send [09:00:40]OFD Sender: No OFD packet to send [09:00:45]OFD Sender: No OFD packet to send [09:00:50]OFD Sender: No OFD packet to send [09:00:55]OFD Sender: No OFD packet to send [09:01:00]OFD Sender: No OFD packet to send [09:01:05]OFD Sender: No OFD packet to send [09:01:10]OFD Sender: No OFD packet to send [09:01:15]OFD Sender: No OFD packet to send [09:01:20]OFD Sender: No OFD packet to send [09:01:25]OFD Sender: No OFD packet to send [09:01:30]OFD Sender: No OFD packet to send [09:01:35]OFD Sender: No OFD packet to send [09:01:40]OFD Sender: No OFD packet to send [09:01:45]OFD Sender: No OFD packet to send [09:01:50]OFD Sender: No OFD packet to send [09:01:55]OFD Sender: No OFD packet to send [09:02:00]OFD Sender: No OFD packet to send [09:02:05]OFD Sender: No OFD packet to send [09:02:10]OFD Sender: No OFD packet to send [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:56]OFD Sender: No OFD packet to send [09:03:01]OFD Sender: No OFD packet to send [09:03:06]OFD Sender: No OFD packet to send [09:03:11]OFD Sender: No OFD packet to send [09:03:16]OFD Sender: No OFD packet to send [09:03:21]OFD Sender: No OFD packet to send [09:03:26]OFD Sender: No OFD packet to send [09:03:31]OFD Sender: No OFD packet to send [09:03:36]OFD Sender: No OFD packet to send [09:03:41]OFD Sender: No OFD packet to send [09:03:46]OFD Sender: No OFD packet to send [09:03:51]OFD Sender: No OFD packet to send [09:03:56]OFD Sender: No OFD packet to send [09:04:01]OFD Sender: No OFD packet to send [09:04:06]OFD Sender: No OFD packet to send [09:04:11]OFD Sender: No OFD packet to send [09:04:16]OFD Sender: No OFD packet to send [09:04:21]OFD Sender: No OFD packet to send [09:04:26]OFD Sender: No OFD packet to send [09:04:31]OFD Sender: No OFD packet to send [09:04:36]OFD Sender: No OFD packet to send [09:04:41]OFD Sender: No OFD packet to send [09:04:46]OFD Sender: No OFD packet to send [09:04:51]OFD Sender: No OFD packet to send [09:04:56]OFD Sender: No OFD packet to send [09:04:58]accept exits with 7 [09:04:58]New connection [09:04:58]New thread 3066928484 created [09:04:58]Thread 3066785124 joined [09:04:58]Waiting for new connection... [09:04:58] Sock 7.Parse request [09:04:58]Sock 7.Check first char [09:04:58]Sock 7.First char is OK [09:04:58]request: POST /json_proto HTTP/1.0 [09:04:58]Method: POST [09:04:58]URL: /json_proto [09:04:58]Method is POST - this is cgi request [09:04:58]url: /json_proto [09:04:58]query_string will be loaded in cgi processing [09:04:58]execute_cgi json_proto POST (null) [09:04:58]execute_cgi path=json_proto method=POST [09:04:58]POST find Content-Length [09:04:58]Host: 172.17.56.4:8080 [09:04:58]Content-Length: 677 [09:04:58]Content-Type: application/json [09:04:58] [09:04:58]POST finish read [09:04:58]Found Content-Length = 677 [09:04:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459264", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:04:58]execute_script... [09:04: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)459264", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:04:58]POST & json_proto [09:04:58]process_json_proto [09:04:58]json parsed OK: [09:04:58]protocol is kg_v1.0 [09:04:58]action value=close_receipt [09:04:58]process_action close_receipt [09:04:58]cmd_close_receipt [09:04:58]MH_GetDate [09:04:58]Write to MH i2c: F0 00 00 D8 1E E5 [09:04:58]Write i2c OK [09:04:58]MH_I2C_Read... [09:04:58]Read from MH i2c: F0 [09:04:58]MH_I2C_Read... [09:04:58]Read from MH i2c: F0 09 00 [09:04:58]MH_I2C_Read... [09:04:58]Read from MH i2c: F0 09 00 D8 1E 00 3F E6 94 66 C9 DC B2 64 C8 [09:04:58]GetLastDocTimeStamp 1721034027 [09:04:58]current date 1721034303 [09:04:58]FM_GetShiftState [09:04:58]SAM_PROTO_GetShiftState [09:04:58]wFMCommunicate request_size=4 [09:04:58]MH_SAM_APDU [09:04:58]CAPDU: 80 13 01 00 [09:04:58]Write to MH i2c: E2 08 00 D9 1E 80 13 01 00 00 00 00 00 74 [09:04:58]Write i2c OK [09:04:58]MH_I2C_Read... [09:04:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:04:58]Read from MH i2c: E2 [09:04:58]MH_I2C_Read... [09:04:58]Read from MH i2c: E2 0E 00 [09:04:58]MH_I2C_Read... [09:04:58]Read from MH i2c: E2 0E 00 D9 1E 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 4D [09:04:58]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [09:04:58]wFMCommunicate OK [09:04:58]SAM_PROTO_GetShiftState done [09:04:58]FM_GetShiftState done [09:04:58]opened in 1721003876 [09:04:58]opened+sec_in_day 1721090276 [09:04:58]quantity*price = 50008 [09:04:58]sum+1 = 50009 [09:04:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 36 15.07.2024 09:05 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165163 ФПД: 191565013947488 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T090503&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165163&fm=191565013947488&tin=02508201610067®Number=0000000000090829&sum=50000 [09:04:59]StoreToDocumentArchive [09:04:59]shift 448 fd 165163 [09:04:59]save to /storage/0448/doc_00165163 [09:04:59]save last doc name /storage/0448/doc_00165163 to /storage/kkm_last_doc_name [09:04:59]save OK [09:04:59]Clear old archive folders... [09:04:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:04:59]tlvbuf is 01360860 [09:04:59]SAM_PROTO_ClearQueue [09:04:59]wFMCommunicate request_size=4 [09:04:59]MH_SAM_APDU [09:04:59]CAPDU: 80 09 00 00 [09:04:59]Write to MH i2c: E2 08 00 E6 1E 80 09 00 00 00 00 00 00 76 [09:04:59]Write i2c OK [09:04:59]MH_I2C_Read... [09:04:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:04:59]Read from MH i2c: E2 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: E2 03 00 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: E2 03 00 E6 1E 00 90 00 78 [09:04:59]RAPDU: 90 00 [09:04:59]wFMCommunicate OK [09:04:59]SAM_PROTO_ClearQueue done [09:04:59]KKMCreateOFDPacket [09:04:59]OFDProtocolAddRootSTLVToBuf [09:04:59]FM_MakeSignedData [09:04:59]FM_MakeSignedData [09:04:59]SAM_PROTO_SignData [09:04:59]wFMCommunicate request_size=4 [09:04:59]MH_SAM_APDU [09:04:59]CAPDU: 80 0D 01 02 [09:04:59]Write to MH i2c: E2 08 00 E7 1E 80 0D 01 02 00 00 00 00 7E [09:04:59]Write i2c OK [09:04:59]MH_I2C_Read... [09:04:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:04:59]Read from MH i2c: E2 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: E2 03 00 [09:04:59]MH_I2C_Read... [09:04:59]Read from MH i2c: E2 03 00 E7 1E 00 90 00 79 [09:04:59]RAPDU: 90 00 [09:04:59]wFMCommunicate OK [09:04:59]wFMCommunicate request_size=255 [09:04:59]MH_SAM_APDU [09:04:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 3F E6 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2B 85 02 00 35 04 06 00 AE [09:04:59]Write to MH i2c: E2 02 01 E8 1E 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 3F E6 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2B 85 02 00 35 04 06 00 AE 00 00 5B [09:04:59]Write i2c OK [09:04:59]MH_I2C_Read... [09:05:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:05:00]Read from MH i2c: E2 [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: E2 03 00 [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: E2 03 00 E8 1E 00 90 00 7A [09:05:00]RAPDU: 90 00 [09:05:00]wFMCommunicate OK [09:05:00]wFMCommunicate request_size=10 [09:05:00]MH_SAM_APDU [09:05:00]CAPDU: 80 0D 02 02 05 3A 34 9B 94 60 [09:05:00]Write to MH i2c: E2 0D 00 E9 1E 80 0D 02 02 05 00 3A 34 9B 94 60 00 00 88 [09:05:00]Write i2c OK [09:05:00]MH_I2C_Read... [09:05:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:05:00]Read from MH i2c: E2 [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: E2 03 00 [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: E2 03 00 E9 1E 00 90 00 7B [09:05:00]RAPDU: 90 00 [09:05:00]wFMCommunicate OK [09:05:00]wFMCommunicate request_size=4 [09:05:00]MH_SAM_APDU [09:05:00]CAPDU: 80 0D 03 02 [09:05:00]Write to MH i2c: E2 08 00 EA 1E 80 0D 03 02 00 00 00 00 83 [09:05:00]Write i2c OK [09:05:00]MH_I2C_Read... [09:05:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:05:00]Read from MH i2c: E2 [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: E2 0B 00 [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: E2 0B 00 EA 1E 00 EA F1 8A 06 56 29 6F 1E 90 00 FB [09:05:00]RAPDU: EA F1 8A 06 56 29 6F 1E 90 00 [09:05:00]wFMCommunicate OK [09:05:00]SAM_PROTO_SignData done [09:05:00]FM_MakeSignedData done [09:05:00]CreateOFDProtocolMessage [09:05:00]wFMCommunicate request_size=4 [09:05:00]MH_SAM_APDU [09:05:00]CAPDU: 80 11 00 00 [09:05:00]Write to MH i2c: E2 08 00 EB 1E 80 11 00 00 00 00 00 00 83 [09:05:00]Write i2c OK [09:05:00]MH_I2C_Read... [09:05:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:00]Read from MH i2c: E2 [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: E2 17 00 [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: E2 17 00 EB 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D9 [09:05:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:05:00]wFMCommunicate OK [09:05:00]CreateOFDProtocolMessage done [09:05:00]OFDSenderStorePacket 165163 [09:05:00]StoreOFDPacket docnum=165163 [09:05:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A3 14 07 01 4B E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 3F E6 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2B 85 02 00 35 04 06 00 AE 3A 34 9B 94 60 EA F1 8A 06 56 29 6F 1E [09:05:00]CheckFolder [09:05:00]dirname=/storage/ofd_packets [09:05:00]CheckFolder done [09:05:00]ProducePacketName [09:05:00]name=ofd_packets/00165163 [09:05:00]NVStorageSaveData ofd_packets/00165163 [09:05:00]File name is /storage/ofd_packets/00165163 [09:05:00]Write 301 bytes [09:05:00]NVStorageSaveData done [09:05:00]OFDSenderStorePacket done [09:05:00]KKMCreateOFDPacket done [09:05:00]NVStorageSaveData kkm_last_timestamp [09:05:00]File name is /storage/kkm_last_timestamp [09:05:00]Write 4 bytes [09:05:00]NVStorageSaveData done [09:05:00]ExternCall_PrintAddStr [09:05:00]wPrintStart [09:05:00]Write to MH i2c: 01 00 00 EC 1E 0A [09:05:00]Write i2c OK [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: 01 [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: 01 07 00 [09:05:00]MH_I2C_Read... [09:05:00]Read from MH i2c: 01 07 00 EC 1E 00 00 00 00 00 FF 0F 1F [09:05:00]RasterBufferAndPrint [09:05:00]line Счет N : (1)459264 [09:05:00]line ИНН: 02508201610067 [09:05:00]line Контрольно-Кассовый Чек [09:05:00]line ПРОДАЖА [09:05:00]line ТРК (МРК, ГНК) : 22 [09:05:00]line Товар: 2710124130 [09:05:00]line Аи-92-К-5 [09:05:00]line 7.600 * 65.80 [09:05:00]line = 500.08 [09:05:00]line НДС 12% НСП 1% [09:05:00]line > о реализуемом товаре [09:05:00]line ОКРУГЛЕНИЕ: -0.08 [09:05:00]line ИТОГО: 500.00 [09:05:00]line Внесено: 500.00 [09:05:00]line СДАЧА: 0.00 [09:05:00]line НСП 1% : 4.42 [09:05:00]line НДС 12% : 53.11 [09:05:00]line Наличными: 500.00 [09:05:00]line Безнал.: 0.00 [09:05:00]line Место: АЗС № 72 "Партнер Нефть" [09:05:00]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:05:00]line СНО: Общий режим [09:05:00]line Чек 36 15.07.2024 09:05 [09:05:00]line Смена: 448 ФФД: 1.0 [09:05:00]line ЗНМ: 0300000160 [09:05:00]line РНМ: 0000000000090829 [09:05:00]line Версия ККМ: 001 [09:05:00]line ФМ: 0000000000874718 [09:05:00]line ФД: 165163 [09:05:00]line ФПД: 191565013947488 [09:05:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T090503&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165163&fm=191565013947488&tin=02508201610067®Number=0000000000090829&sum=50000 [09:05:00]OFD Sender: Processing packet 165163 [packets to send 106, broken 105] [09:05:00]ProducePacketName [09:05:00]name=ofd_packets/00165163 [09:05:00]OFD Sender: To server: pG, [09:05:00]CommunicateWithHost lk.salyk.kg:30040 [09:05:00]ConnectInit lk.salyk.kg [09:05:00]written 0, free lines is 4095 [09:05:00]Connected sock=11 [09:05: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 37 31 38 0F 01 00 00 A3 14 07 01 4B E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 3F E6 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2B 85 02 00 35 04 06 00 AE 3A 34 9B 94 60 EA F1 8A 06 56 29 6F 1E [09:05:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 64 A8 47 00 2B 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 2B 85 02 00 F4 03 04 00 CA 8C 94 66 B6 04 01 00 00 87 D6 F7 47 46 B9 C7 16 [09:05:01]CommunicateWithHost err = 0 [09:05:01]CheckOFDResponse [09:05:01]1017 (14) - 77093643461234 [09:05:01]1041 (16) - 0000000000874718 [09:05:01]1040 (4) - 165163 [09:05:01]1012 (4) - 15.07.2024 02:43 [09:05:01]1206 (1) - 0 [09:05:01]OFD Sender: Remove packet 165163 [09:05:01]ProducePacketName [09:05:01]name=ofd_packets/00165163 [09:05:01]NVStorageDeleteData [09:05:01]Write to MH i2c: 01 00 00 16 1F 35 [09:05:01]Write i2c OK [09:05:01]MH_I2C_Read... [09:05:01]Read from MH i2c: 01 [09:05:01]MH_I2C_Read... [09:05:01]Read from MH i2c: 01 07 00 [09:05:01]MH_I2C_Read... [09:05:01]Read from MH i2c: 01 07 00 16 1F 00 00 00 00 00 FE 0C 46 [09:05:01]RasterBufferAndPrint [09:05:01]line [09:05:01]line [09:05:01]line [09:05:01]line [09:05:01]line [09:05:01]written 0, free lines is 3332 [09:05:01]MH_Cut [09:05:01]Write to MH i2c: D1 01 00 1D 1F 01 0E [09:05:01]Write i2c OK [09:05:01]MH_I2C_Read... [09:05:01]Read from MH i2c: D1 [09:05:01]MH_I2C_Read... [09:05:01]Read from MH i2c: D1 01 00 [09:05:01]MH_I2C_Read... [09:05:01]Read from MH i2c: D1 01 00 1D 1F 00 0D [09:05:01]Write to MH i2c: 01 00 00 1E 1F 3D [09:05:01]Write i2c OK [09:05:01]MH_I2C_Read... [09:05:01]OFD Sender: No OFD packet to send [09:05:01]*** Cut start [09:05:01]*** Partial cut [09:05:01]*** CUTSNS_PIN = 1 [09:05:01]*** CUTSNS_PIN = 0 [09:05:02]*** Brake cut motor [09:05:02]Read from MH i2c: 01 [09:05:02]MH_I2C_Read... [09:05:02]*** Stop cut motor [09:05:02]*** Cut end [09:05:02]Read from MH i2c: 01 07 00 [09:05:02]MH_I2C_Read... [09:05:02]Read from MH i2c: 01 07 00 1E 1F 00 00 00 00 00 FF 0F 52 [09:05:02]process_action close_receipt done [09:05:02]requested_data is exist [09:05:02]produce_requested_data [09:05:02]requested_item fm.sn is exist - process it [09:05:02]wFMCommunicate request_size=4 [09:05:02]MH_SAM_APDU [09:05:02]CAPDU: 80 11 00 00 [09:05:02]Write to MH i2c: E2 08 00 1F 1F 80 11 00 00 00 00 00 00 B8 [09:05:02]Write i2c OK [09:05:02]MH_I2C_Read... [09:05:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:02]Read from MH i2c: E2 [09:05:02]MH_I2C_Read... [09:05:02]Read from MH i2c: E2 17 00 [09:05:02]MH_I2C_Read... [09:05:02]Read from MH i2c: E2 17 00 1F 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0E [09:05:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:05:02]wFMCommunicate OK [09:05:02]requested_item fd.num is exist - process it [09:05:02]SAM_PROTO_GetFieldsCounters [09:05:02]wFMCommunicate request_size=4 [09:05:02]MH_SAM_APDU [09:05:02]CAPDU: 80 13 00 00 [09:05:02]Write to MH i2c: E2 08 00 20 1F 80 13 00 00 00 00 00 00 BB [09:05:02]Write i2c OK [09:05:02]MH_I2C_Read... [09:05:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:05:02]Read from MH i2c: E2 [09:05:02]MH_I2C_Read... [09:05:02]Read from MH i2c: E2 62 00 [09:05:02]MH_I2C_Read... [09:05:02]Read from MH i2c: E2 62 00 20 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2B 85 02 00 0E 04 04 00 C0 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 C1 [09:05:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2B 85 02 00 0E 04 04 00 C0 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 [09:05:02]wFMCommunicate OK [09:05:02]SAM_PROTO_GetFieldsCounters done [09:05:02]requested_item shift.num is exist - process it [09:05:02]requested_item shift.opened is exist - process it [09:05:02]req_shift_opened [09:05:02]FM_GetShiftState [09:05:02]SAM_PROTO_GetShiftState [09:05:02]wFMCommunicate request_size=4 [09:05:02]MH_SAM_APDU [09:05:02]CAPDU: 80 13 01 00 [09:05:02]Write to MH i2c: E2 08 00 21 1F 80 13 01 00 00 00 00 00 BD [09:05:02]Write i2c OK [09:05:02]MH_I2C_Read... [09:05:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:05:02]Read from MH i2c: E2 [09:05:02]MH_I2C_Read... [09:05:02]Read from MH i2c: E2 0E 00 [09:05:02]MH_I2C_Read... [09:05:02]Read from MH i2c: E2 0E 00 21 1F 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 96 [09:05:02]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [09:05:02]wFMCommunicate OK [09:05:02]SAM_PROTO_GetShiftState done [09:05:02]FM_GetShiftState done [09:05:02]req_shift_opened done [09:05:02]requested_item shift.open_date is exist - process it [09:05:02]req_shift_open_date [09:05:02]req_shift_open_date done [09:05:02]produce_requested_data done [09:05:02]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165163,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [09:05:02]process_action_free close_receipt [09:05:02]json_value_free [09:05:02]json_value_free done [09:05:02]process_json_proto returns [09:05:02]Send response to host [09:05:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165163,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [09:05:02]free response buf [09:05:02]execute_script done [09:05:02]execute_script returns [09:05:02]free content buf [09:05:02]Sock 7.Close socket [09:05:02]Sock 7.Thread stoped [09:05:06]OFD Sender: No OFD packet to send [09:05:11]OFD Sender: No OFD packet to send [09:05:16]OFD Sender: No OFD packet to send [09:05:21]OFD Sender: No OFD packet to send [09:05:26]OFD Sender: No OFD packet to send [09:05:31]OFD Sender: No OFD packet to send [09:05:36]OFD Sender: No OFD packet to send [09:05:41]OFD Sender: No OFD packet to send [09:05:46]OFD Sender: No OFD packet to send [09:05:51]OFD Sender: No OFD packet to send [09:05:56]OFD Sender: No OFD packet to send [09:06:01]OFD Sender: No OFD packet to send [09:06:06]OFD Sender: No OFD packet to send [09:06:11]OFD Sender: No OFD packet to send [09:06:16]OFD Sender: No OFD packet to send [09:06:21]OFD Sender: No OFD packet to send [09:06:26]OFD Sender: No OFD packet to send [09:06:31]OFD Sender: No OFD packet to send [09:06:36]OFD Sender: No OFD packet to send [09:06:41]OFD Sender: No OFD packet to send [09:06:46]OFD Sender: No OFD packet to send [09:06:51]OFD Sender: No OFD packet to send [09:06:55]accept exits with 9 [09:06:55]New connection [09:06:55]New thread 3066785124 created [09:06:55]Thread 3066928484 joined [09:06:55]Waiting for new connection... [09:06:55] Sock 9.Parse request [09:06:55]Sock 9.Check first char [09:06:55]Sock 9.First char is OK [09:06:55]request: POST /json_proto HTTP/1.0 [09:06:55]Method: POST [09:06:55]URL: /json_proto [09:06:55]Method is POST - this is cgi request [09:06:55]url: /json_proto [09:06:55]query_string will be loaded in cgi processing [09:06:55]execute_cgi json_proto POST (null) [09:06:55]execute_cgi path=json_proto method=POST [09:06:55]POST find Content-Length [09:06:55]Host: 172.17.56.4:8080 [09:06:55]Content-Length: 840 [09:06:55]Content-Type: application/json [09:06:55] [09:06:55]POST finish read [09:06:55]Found Content-Length = 840 [09:06:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459265", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 21.050, "sum" : 1500.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1500.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:55]execute_script... [09:06: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)459265", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 21.050, "sum" : 1500.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1500.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:55]POST & json_proto [09:06:55]process_json_proto [09:06:55]json parsed OK: [09:06:55]protocol is kg_v1.0 [09:06:55]action value=close_receipt [09:06:55]process_action close_receipt [09:06:55]cmd_close_receipt [09:06:55]MH_GetDate [09:06:55]Write to MH i2c: F0 00 00 22 1F 30 [09:06:55]Write i2c OK [09:06:55]MH_I2C_Read... [09:06:55]Read from MH i2c: F0 [09:06:55]MH_I2C_Read... [09:06:55]Read from MH i2c: F0 09 00 [09:06:55]MH_I2C_Read... [09:06:55]Read from MH i2c: F0 09 00 22 1F 00 B4 E6 94 66 C9 DC B2 64 88 [09:06:55]GetLastDocTimeStamp 1721034303 [09:06:55]current date 1721034420 [09:06:55]FM_GetShiftState [09:06:55]SAM_PROTO_GetShiftState [09:06:55]wFMCommunicate request_size=4 [09:06:55]MH_SAM_APDU [09:06:55]CAPDU: 80 13 01 00 [09:06:55]Write to MH i2c: E2 08 00 23 1F 80 13 01 00 00 00 00 00 BF [09:06:55]Write i2c OK [09:06:55]MH_I2C_Read... [09:06:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:55]Read from MH i2c: E2 [09:06:55]MH_I2C_Read... [09:06:55]Read from MH i2c: E2 0E 00 [09:06:55]MH_I2C_Read... [09:06:55]Read from MH i2c: E2 0E 00 23 1F 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 98 [09:06:55]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [09:06:55]wFMCommunicate OK [09:06:55]SAM_PROTO_GetShiftState done [09:06:55]FM_GetShiftState done [09:06:55]opened in 1721003876 [09:06:55]opened+sec_in_day 1721090276 [09:06:55]quantity*price = 150002 [09:06:55]sum+1 = 150003 [09:06:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.02 НСП 1% : 13.27 НДС 12% : 159.29 Наличными: 0.00 Безнал.: 1500.02 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 37 15.07.2024 09:07 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874718 ФД: 165164 ФПД: 3915904846297 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T090700&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165164&fm=3915904846297&tin=02508201610067®Number=0000000000090829&sum=150002 [09:06:56]StoreToDocumentArchive [09:06:56]shift 448 fd 165164 [09:06:56]save to /storage/0448/doc_00165164 [09:06:56]save last doc name /storage/0448/doc_00165164 to /storage/kkm_last_doc_name [09:06:56]save OK [09:06:56]Clear old archive folders... [09:06:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:06:56]tlvbuf is 013BC260 [09:06:56]SAM_PROTO_ClearQueue [09:06:56]wFMCommunicate request_size=4 [09:06:56]MH_SAM_APDU [09:06:56]CAPDU: 80 09 00 00 [09:06:56]Write to MH i2c: E2 08 00 30 1F 80 09 00 00 00 00 00 00 C1 [09:06:56]Write i2c OK [09:06:56]MH_I2C_Read... [09:06:56]Read from MH i2c: E2 [09:06:56]MH_I2C_Read... [09:06:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:06:56]Read from MH i2c: E2 03 00 [09:06:56]MH_I2C_Read... [09:06:56]Read from MH i2c: E2 03 00 30 1F 00 90 00 C3 [09:06:56]RAPDU: 90 00 [09:06:56]wFMCommunicate OK [09:06:56]SAM_PROTO_ClearQueue done [09:06:56]KKMCreateOFDPacket [09:06:56]OFDProtocolAddRootSTLVToBuf [09:06:56]FM_MakeSignedData [09:06:56]FM_MakeSignedData [09:06:56]SAM_PROTO_SignData [09:06:56]wFMCommunicate request_size=4 [09:06:56]MH_SAM_APDU [09:06:56]CAPDU: 80 0D 01 02 [09:06:56]Write to MH i2c: E2 08 00 31 1F 80 0D 01 02 00 00 00 00 C9 [09:06:56]Write i2c OK [09:06:56]MH_I2C_Read... [09:06:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:06:56]Read from MH i2c: E2 [09:06:56]MH_I2C_Read... [09:06:56]Read from MH i2c: E2 03 00 [09:06:56]MH_I2C_Read... [09:06:56]Read from MH i2c: E2 03 00 31 1F 00 90 00 C4 [09:06:56]RAPDU: 90 00 [09:06:56]wFMCommunicate OK [09:06:56]wFMCommunicate request_size=255 [09:06:56]MH_SAM_APDU [09:06:56]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3A 52 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 F2 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F2 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 39 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F2 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 B4 E6 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2C 85 02 00 35 04 06 00 03 8F BE 1E [09:06:56]Write to MH i2c: E2 02 01 32 1F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3A 52 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 F2 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F2 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 39 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F2 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 B4 E6 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2C 85 02 00 35 04 06 00 03 8F BE 1E 00 00 A6 [09:06:56]Write i2c OK [09:06:56]MH_I2C_Read... [09:06:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:57]Read from MH i2c: E2 [09:06:57]MH_I2C_Read... [09:06:57]Read from MH i2c: E2 03 00 [09:06:57]MH_I2C_Read... [09:06:57]Read from MH i2c: E2 03 00 32 1F 00 90 00 C5 [09:06:57]RAPDU: 90 00 [09:06:57]wFMCommunicate OK [09:06:57]wFMCommunicate request_size=7 [09:06:57]MH_SAM_APDU [09:06:57]CAPDU: 80 0D 02 02 02 09 D9 [09:06:57]Write to MH i2c: E2 0A 00 33 1F 80 0D 02 02 02 00 09 D9 00 00 B2 [09:06:57]Write i2c OK [09:06:57]MH_I2C_Read... [09:06:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:57]Read from MH i2c: E2 [09:06:57]MH_I2C_Read... [09:06:57]Read from MH i2c: E2 03 00 [09:06:57]MH_I2C_Read... [09:06:57]Read from MH i2c: E2 03 00 33 1F 00 90 00 C6 [09:06:57]RAPDU: 90 00 [09:06:57]wFMCommunicate OK [09:06:57]wFMCommunicate request_size=4 [09:06:57]MH_SAM_APDU [09:06:57]CAPDU: 80 0D 03 02 [09:06:57]Write to MH i2c: E2 08 00 34 1F 80 0D 03 02 00 00 00 00 CE [09:06:57]Write i2c OK [09:06:57]MH_I2C_Read... [09:06:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:06:57]Read from MH i2c: E2 [09:06:57]MH_I2C_Read... [09:06:57]Read from MH i2c: E2 0B 00 [09:06:57]MH_I2C_Read... [09:06:57]Read from MH i2c: E2 0B 00 34 1F 00 5B BD 5B FC EA 80 78 35 90 00 55 [09:06:57]RAPDU: 5B BD 5B FC EA 80 78 35 90 00 [09:06:57]wFMCommunicate OK [09:06:57]SAM_PROTO_SignData done [09:06:57]FM_MakeSignedData done [09:06:57]CreateOFDProtocolMessage [09:06:57]wFMCommunicate request_size=4 [09:06:57]MH_SAM_APDU [09:06:57]CAPDU: 80 11 00 00 [09:06:57]Write to MH i2c: E2 08 00 35 1F 80 11 00 00 00 00 00 00 CE [09:06:57]Write i2c OK [09:06:57]MH_I2C_Read... [09:06:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:57]Read from MH i2c: E2 [09:06:57]MH_I2C_Read... [09:06:57]Read from MH i2c: E2 17 00 [09:06:57]MH_I2C_Read... [09:06:57]Read from MH i2c: E2 17 00 35 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 24 [09:06:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:06:57]wFMCommunicate OK [09:06:57]CreateOFDProtocolMessage done [09:06:57]OFDSenderStorePacket 165164 [09:06:57]StoreOFDPacket docnum=165164 [09:06:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 BC 16 04 01 C9 EB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3A 52 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 F2 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F2 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 39 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F2 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 B4 E6 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2C 85 02 00 35 04 06 00 03 8F BE 1E 09 D9 5B BD 5B FC EA 80 78 35 [09:06:57]CheckFolder [09:06:57]dirname=/storage/ofd_packets [09:06:57]CheckFolder done [09:06:57]ProducePacketName [09:06:57]name=ofd_packets/00165164 [09:06:57]NVStorageSaveData ofd_packets/00165164 [09:06:57]File name is /storage/ofd_packets/00165164 [09:06:57]Write 298 bytes [09:06:57]NVStorageSaveData done [09:06:57]OFDSenderStorePacket done [09:06:57]KKMCreateOFDPacket done [09:06:57]NVStorageSaveData kkm_last_timestamp [09:06:57]File name is /storage/kkm_last_timestamp [09:06:57]Write 4 bytes [09:06:57]NVStorageSaveData done [09:06:57]ExternCall_PrintAddStr [09:06:57]wPrintStart [09:06:57]Write to MH i2c: 01 00 00 36 1F 55 [09:06:57]Write i2c OK [09:06:57]MH_I2C_Read... [09:06:57]Read from MH i2c: 01 [09:06:57]MH_I2C_Read... [09:06:57]Read from MH i2c: 01 07 00 [09:06:57]MH_I2C_Read... [09:06:57]Read from MH i2c: 01 07 00 36 1F 00 00 00 00 00 FF 0F 6A [09:06:57]RasterBufferAndPrint [09:06:57]line Счет N : (1)459265 [09:06:57]line ИНН: 02508201610067 [09:06:57]line Контрольно-Кассовый Чек [09:06:57]line ПРОДАЖА [09:06:57]line ТРК (МРК, ГНК) : 21 [09:06:57]line Товар: 2710194210 [09:06:57]line ДТ-К-5 [09:06:57]line 21.050 * 71.26 [09:06:57]line = 1500.02 [09:06:57]line НДС 12% НСП 1% [09:06:57]line > о реализуемом товаре [09:06:57]line ИТОГО: 1500.02 [09:06:57]line НСП 1% : 13.27 [09:06:57]line НДС 12% : 159.29 [09:06:57]line Наличными: 0.00 [09:06:57]line Безнал.: 1500.02 [09:06:57]line Место: АЗС № 72 "Партнер Нефть" [09:06:57]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:06:57]line СНО: Общий режим [09:06:57]line Чек 37 15.07.2024 09:07 [09:06:57]line Смена: 448 ФФД: 1.0 [09:06:57]line ЗНМ: 0300000160 [09:06:57]line РНМ: 0000000000090829 [09:06:57]line Версия ККМ: 001 [09:06:57]line Платежная система: АКБ Кыргызстан [09:06:57]line ФМ: 0000000000874718 [09:06:57]line ФД: 165164 [09:06:57]line ФПД: 3915904846297 [09:06:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T090700&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165164&fm=3915904846297&tin=02508201610067®Number=0000000000090829&sum=150002 [09:06:57]OFD Sender: Processing packet 165164 [packets to send 106, broken 105] [09:06:57]ProducePacketName [09:06:57]name=ofd_packets/00165164 [09:06:57]OFD Sender: To server: pG, [09:06:57]CommunicateWithHost lk.salyk.kg:30040 [09:06:57]ConnectInit lk.salyk.kg [09:06:57]written 0, free lines is 4095 [09:06:57]Connected sock=10 [09:06: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 37 31 38 0C 01 00 00 BC 16 04 01 C9 EB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3A 52 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 F2 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F2 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 39 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F2 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 B4 E6 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2C 85 02 00 35 04 06 00 03 8F BE 1E 09 D9 5B BD 5B FC EA 80 78 35 [09:06:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 8F 9D 47 00 56 B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2C 85 02 00 F4 03 04 00 3E 8D 94 66 B6 04 01 00 00 FB 14 54 1B B2 71 0C 59 [09:06:57]CommunicateWithHost err = 0 [09:06:57]CheckOFDResponse [09:06:57]1017 (14) - 77093643461234 [09:06:57]1041 (16) - 0000000000874718 [09:06:57]1040 (4) - 165164 [09:06:57]1012 (4) - 15.07.2024 02:45 [09:06:57]1206 (1) - 0 [09:06:57]OFD Sender: Remove packet 165164 [09:06:57]ProducePacketName [09:06:57]name=ofd_packets/00165164 [09:06:57]NVStorageDeleteData [09:06:58]Write to MH i2c: 01 00 00 5F 1F 7E [09:06:58]Write i2c OK [09:06:58]MH_I2C_Read... [09:06:58]Read from MH i2c: 01 [09:06:58]MH_I2C_Read... [09:06:58]Read from MH i2c: 01 07 00 [09:06:58]MH_I2C_Read... [09:06:58]Read from MH i2c: 01 07 00 5F 1F 00 00 00 00 00 0C 0D 9E [09:06:58]RasterBufferAndPrint [09:06:58]line [09:06:58]line [09:06:58]line [09:06:58]line [09:06:58]line [09:06:58]written 0, free lines is 3346 [09:06:58]MH_Cut [09:06:58]Write to MH i2c: D1 01 00 66 1F 01 57 [09:06:58]Write i2c OK [09:06:58]MH_I2C_Read... [09:06:58]Read from MH i2c: D1 [09:06:58]MH_I2C_Read... [09:06:58]Read from MH i2c: D1 01 00 [09:06:58]MH_I2C_Read... [09:06:58]Read from MH i2c: D1 01 00 66 1F 00 56 [09:06:58]Write to MH i2c: 01 00 00 67 1F 86 [09:06:58]Write i2c OK [09:06:58]MH_I2C_Read... [09:06:58]OFD Sender: No OFD packet to send [09:06:58]*** Cut start [09:06:58]*** Partial cut [09:06:58]*** CUTSNS_PIN = 1 [09:06:58]*** CUTSNS_PIN = 0 [09:06:59]*** Brake cut motor [09:06:59]Read from MH i2c: 01 [09:06:59]MH_I2C_Read... [09:06:59]*** Stop cut motor [09:06:59]*** Cut end [09:06:59]Read from MH i2c: 01 07 00 [09:06:59]MH_I2C_Read... [09:06:59]Read from MH i2c: 01 07 00 67 1F 00 00 00 00 00 FF 0F 9B [09:06:59]process_action close_receipt done [09:06:59]requested_data is exist [09:06:59]produce_requested_data [09:06:59]requested_item fm.sn is exist - process it [09:06:59]wFMCommunicate request_size=4 [09:06:59]MH_SAM_APDU [09:06:59]CAPDU: 80 11 00 00 [09:06:59]Write to MH i2c: E2 08 00 68 1F 80 11 00 00 00 00 00 00 01 [09:06:59]Write i2c OK [09:06:59]MH_I2C_Read... [09:06:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:59]Read from MH i2c: E2 [09:06:59]MH_I2C_Read... [09:06:59]Read from MH i2c: E2 17 00 [09:06:59]MH_I2C_Read... [09:06:59]Read from MH i2c: E2 17 00 68 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 57 [09:06:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:06:59]wFMCommunicate OK [09:06:59]requested_item fd.num is exist - process it [09:06:59]SAM_PROTO_GetFieldsCounters [09:06:59]wFMCommunicate request_size=4 [09:06:59]MH_SAM_APDU [09:06:59]CAPDU: 80 13 00 00 [09:06:59]Write to MH i2c: E2 08 00 69 1F 80 13 00 00 00 00 00 00 04 [09:06:59]Write i2c OK [09:06:59]MH_I2C_Read... [09:06:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:06:59]Read from MH i2c: E2 [09:06:59]MH_I2C_Read... [09:06:59]Read from MH i2c: E2 62 00 [09:06:59]MH_I2C_Read... [09:06:59]Read from MH i2c: E2 62 00 69 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2C 85 02 00 0E 04 04 00 C0 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 0E [09:06: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2C 85 02 00 0E 04 04 00 C0 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 [09:06:59]wFMCommunicate OK [09:06:59]SAM_PROTO_GetFieldsCounters done [09:06:59]requested_item shift.num is exist - process it [09:06:59]requested_item shift.opened is exist - process it [09:06:59]req_shift_opened [09:06:59]FM_GetShiftState [09:06:59]SAM_PROTO_GetShiftState [09:06:59]wFMCommunicate request_size=4 [09:06:59]MH_SAM_APDU [09:06:59]CAPDU: 80 13 01 00 [09:06:59]Write to MH i2c: E2 08 00 6A 1F 80 13 01 00 00 00 00 00 06 [09:06:59]Write i2c OK [09:06:59]MH_I2C_Read... [09:06:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:59]Read from MH i2c: E2 [09:06:59]MH_I2C_Read... [09:06:59]Read from MH i2c: E2 0E 00 [09:06:59]MH_I2C_Read... [09:06:59]Read from MH i2c: E2 0E 00 6A 1F 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 DF [09:06:59]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [09:06:59]wFMCommunicate OK [09:06:59]SAM_PROTO_GetShiftState done [09:06:59]FM_GetShiftState done [09:06:59]req_shift_opened done [09:06:59]requested_item shift.open_date is exist - process it [09:06:59]req_shift_open_date [09:06:59]req_shift_open_date done [09:06:59]produce_requested_data done [09:06:59]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165164,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [09:06:59]process_action_free close_receipt [09:06:59]json_value_free [09:06:59]json_value_free done [09:06:59]process_json_proto returns [09:06:59]Send response to host [09:06:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165164,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [09:06:59]free response buf [09:06:59]execute_script done [09:06:59]execute_script returns [09:06:59]free content buf [09:06:59]Sock 9.Close socket [09:06:59]Sock 9.Thread stoped [09:07:03]OFD Sender: No OFD packet to send [09:07:06]accept exits with 7 [09:07:06]New connection [09:07:06]New thread 3066928484 created [09:07:06]Thread 3066785124 joined [09:07:06]Waiting for new connection... [09:07:06] Sock 7.Parse request [09:07:06]Sock 7.Check first char [09:07:06]Sock 7.First char is OK [09:07:06]request: POST /json_proto HTTP/1.0 [09:07:06]Method: POST [09:07:06]URL: /json_proto [09:07:06]Method is POST - this is cgi request [09:07:06]url: /json_proto [09:07:07]query_string will be loaded in cgi processing [09:07:07]execute_cgi json_proto POST (null) [09:07:07]execute_cgi path=json_proto method=POST [09:07:07]POST find Content-Length [09:07:07]Host: 172.17.56.4:8080 [09:07:07]Content-Length: 1179 [09:07:07]Content-Type: application/json [09:07:07] [09:07:07]POST finish read [09:07:07]Found Content-Length = 1179 [09:07:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 72\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0434\u044B\u043A\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)459266\u000A15.07.2024 08:32\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 65.80\u000A\u0418\u0422\u041E\u0413: 1316.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\u000A3040661\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:07:07]execute_script... [09:07:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 72\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0434\u044B\u043A\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)459266\u000A15.07.2024 08:32\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 65.80\u000A\u0418\u0422\u041E\u0413: 1316.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\u000A3040661\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:07:07]POST & json_proto [09:07:07]process_json_proto [09:07:07]json parsed OK: [09:07:07]protocol is kg_v1.0 [09:07:07]action value=print_text [09:07:07]process_action print_text [09:07:07]cmd_print_text [09:07:07]ExternCall_PrintAddStr [09:07:07]wPrintStart [09:07:07]Write to MH i2c: 01 00 00 6B 1F 8A [09:07:07]Write i2c OK [09:07:07]MH_I2C_Read... [09:07:07]Read from MH i2c: 01 [09:07:07]MH_I2C_Read... [09:07:07]Read from MH i2c: 01 07 00 [09:07:07]MH_I2C_Read... [09:07:07]Read from MH i2c: 01 07 00 6B 1F 00 00 00 00 00 FF 0F 9F [09:07:07]RasterBufferAndPrint [09:07:07]line *****ТОВАРНЫЙ ЧЕК***** [09:07:07]line АЗС 72 [09:07:07]line Партнер нефть [09:07:07]line 02508201610067 [09:07:07]line Кассир : Садыков Н. [09:07:07]line Счет N : (1)459266 [09:07:07]line 15.07.2024 08:32 [09:07:07]line ПРОДАЖА [09:07:07]line ТРК (МРК, ГНК): 12 [09:07:07]line Вид ГСМ : 2710124130 [09:07:07]line Аи-92-К-5 [09:07:07]line 20.000 x 65.80 [09:07:07]line ИТОГ: 1316.00 [09:07:07]line Тип оплаты: Талоны: Партнер нефть [09:07:07]line 3040661 [09:07:07]line ______________________ [09:07:07]line (подпись) [09:07:07]written 0, free lines is 4095 [09:07:07]Write to MH i2c: 01 00 00 7F 1F 9E [09:07:07]Write i2c OK [09:07:07]MH_I2C_Read... [09:07:07]Read from MH i2c: 01 [09:07:07]MH_I2C_Read... [09:07:07]Read from MH i2c: 01 07 00 [09:07:07]MH_I2C_Read... [09:07:07]Read from MH i2c: 01 07 00 7F 1F 00 00 00 00 00 12 0E C5 [09:07:07]RasterBufferAndPrint [09:07:07]line [09:07:07]line [09:07:07]line [09:07:07]line [09:07:07]line [09:07:07]written 0, free lines is 3604 [09:07:07]MH_Cut [09:07:07]Write to MH i2c: D1 01 00 86 1F 01 77 [09:07:07]Write i2c OK [09:07:07]MH_I2C_Read... [09:07:07]Read from MH i2c: D1 [09:07:07]MH_I2C_Read... [09:07:07]Read from MH i2c: D1 01 00 [09:07:07]MH_I2C_Read... [09:07:07]Read from MH i2c: D1 01 00 86 1F 00 76 [09:07:07]Write to MH i2c: 01 00 00 87 1F A6 [09:07:07]Write i2c OK [09:07:07]MH_I2C_Read... [09:07:07]*** Cut start [09:07:07]*** Partial cut [09:07:07]*** CUTSNS_PIN = 1 [09:07:07]*** CUTSNS_PIN = 0 [09:07:07]*** Brake cut motor [09:07:08]Read from MH i2c: 01 [09:07:08]MH_I2C_Read... [09:07:08]*** Stop cut motor [09:07:08]*** Cut end [09:07:08]Read from MH i2c: 01 07 00 [09:07:08]MH_I2C_Read... [09:07:08]Read from MH i2c: 01 07 00 87 1F 00 00 00 00 00 FF 0F BB [09:07:08]process_action print_text done [09:07:08]requested_data is exist [09:07:08]produce_requested_data [09:07:08]requested_item fm.sn is exist - process it [09:07:08]wFMCommunicate request_size=4 [09:07:08]MH_SAM_APDU [09:07:08]CAPDU: 80 11 00 00 [09:07:08]Write to MH i2c: E2 08 00 88 1F 80 11 00 00 00 00 00 00 21 [09:07:08]Write i2c OK [09:07:08]MH_I2C_Read... [09:07:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:08]Read from MH i2c: E2 [09:07:08]MH_I2C_Read... [09:07:08]Read from MH i2c: E2 17 00 [09:07:08]MH_I2C_Read... [09:07:08]Read from MH i2c: E2 17 00 88 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 77 [09:07:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:07:08]wFMCommunicate OK [09:07:08]requested_item fd.num is exist - process it [09:07:08]SAM_PROTO_GetFieldsCounters [09:07:08]wFMCommunicate request_size=4 [09:07:08]MH_SAM_APDU [09:07:08]CAPDU: 80 13 00 00 [09:07:08]Write to MH i2c: E2 08 00 89 1F 80 13 00 00 00 00 00 00 24 [09:07:08]Write i2c OK [09:07:08]MH_I2C_Read... [09:07:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:07:08]Read from MH i2c: E2 [09:07:08]MH_I2C_Read... [09:07:08]Read from MH i2c: E2 62 00 [09:07:08]MH_I2C_Read... [09:07:08]Read from MH i2c: E2 62 00 89 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2C 85 02 00 0E 04 04 00 C0 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 2E [09:07: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2C 85 02 00 0E 04 04 00 C0 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 [09:07:08]wFMCommunicate OK [09:07:08]SAM_PROTO_GetFieldsCounters done [09:07:08]requested_item shift.num is exist - process it [09:07:08]requested_item shift.opened is exist - process it [09:07:08]req_shift_opened [09:07:08]FM_GetShiftState [09:07:08]SAM_PROTO_GetShiftState [09:07:08]wFMCommunicate request_size=4 [09:07:08]MH_SAM_APDU [09:07:08]CAPDU: 80 13 01 00 [09:07:08]Write to MH i2c: E2 08 00 8A 1F 80 13 01 00 00 00 00 00 26 [09:07:08]Write i2c OK [09:07:08]MH_I2C_Read... [09:07:08]OFD Sender: No OFD packet to send [09:07:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:08]Read from MH i2c: E2 [09:07:08]MH_I2C_Read... [09:07:08]Read from MH i2c: E2 0E 00 [09:07:08]MH_I2C_Read... [09:07:08]Read from MH i2c: E2 0E 00 8A 1F 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 FF [09:07:08]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [09:07:08]wFMCommunicate OK [09:07:08]SAM_PROTO_GetShiftState done [09:07:08]FM_GetShiftState done [09:07:08]req_shift_opened done [09:07:08]requested_item shift.open_date is exist - process it [09:07:08]req_shift_open_date [09:07:08]req_shift_open_date done [09:07:08]produce_requested_data done [09:07:08]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165164,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [09:07:08]process_action_free print_text [09:07:08]json_value_free [09:07:08]json_value_free done [09:07:08]process_json_proto returns [09:07:08]Send response to host [09:07:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165164,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [09:07:08]free response buf [09:07:08]execute_script done [09:07:08]execute_script returns [09:07:08]free content buf [09:07:08]Sock 7.Close socket [09:07:08]Sock 7.Thread stoped [09:07:13]OFD Sender: No OFD packet to send [09:07:18]OFD Sender: No OFD packet to send [09:07:23]OFD Sender: No OFD packet to send [09:07:28]OFD Sender: No OFD packet to send [09:07:33]OFD Sender: No OFD packet to send [09:07:38]OFD Sender: No OFD packet to send [09:07:43]OFD Sender: No OFD packet to send [09:07:48]OFD Sender: No OFD packet to send [09:07:53]OFD Sender: No OFD packet to send [09:07:58]OFD Sender: No OFD packet to send [09:08:03]OFD Sender: No OFD packet to send [09:08:08]OFD Sender: No OFD packet to send [09:08:13]OFD Sender: No OFD packet to send [09:08:18]OFD Sender: No OFD packet to send [09:08:19]accept exits with 9 [09:08:19]New connection [09:08:19]New thread 3066785124 created [09:08:19]Thread 3066928484 joined [09:08:19]Waiting for new connection... [09:08:19] Sock 9.Parse request [09:08:19]Sock 9.Check first char [09:08:19]Sock 9.First char is OK [09:08:19]request: POST /json_proto HTTP/1.0 [09:08:19]Method: POST [09:08:19]URL: /json_proto [09:08:19]Method is POST - this is cgi request [09:08:19]url: /json_proto [09:08:19]query_string will be loaded in cgi processing [09:08:19]execute_cgi json_proto POST (null) [09:08:19]execute_cgi path=json_proto method=POST [09:08:19]POST find Content-Length [09:08:19]Host: 172.17.56.4:8080 [09:08:19]Content-Length: 790 [09:08:19]Content-Type: application/json [09:08:19] [09:08:19]POST finish read [09:08:19]Found Content-Length = 790 [09:08:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459267", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 3.070, "sum" : 200.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 200.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:19]execute_script... [09:08: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)459267", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 3.070, "sum" : 200.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 200.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:19]POST & json_proto [09:08:19]process_json_proto [09:08:19]json parsed OK: [09:08:19]protocol is kg_v1.0 [09:08:19]action value=close_receipt [09:08:19]process_action close_receipt [09:08:19]cmd_close_receipt [09:08:19]MH_GetDate [09:08:19]Write to MH i2c: F0 00 00 8B 1F 99 [09:08:19]Write i2c OK [09:08:19]MH_I2C_Read... [09:08:19]Read from MH i2c: F0 [09:08:19]MH_I2C_Read... [09:08:19]Read from MH i2c: F0 09 00 [09:08:19]MH_I2C_Read... [09:08:19]Read from MH i2c: F0 09 00 8B 1F 00 07 E7 94 66 C9 DC B2 64 45 [09:08:19]GetLastDocTimeStamp 1721034420 [09:08:19]current date 1721034503 [09:08:19]FM_GetShiftState [09:08:19]SAM_PROTO_GetShiftState [09:08:19]wFMCommunicate request_size=4 [09:08:19]MH_SAM_APDU [09:08:19]CAPDU: 80 13 01 00 [09:08:19]Write to MH i2c: E2 08 00 8C 1F 80 13 01 00 00 00 00 00 28 [09:08:19]Write i2c OK [09:08:19]MH_I2C_Read... [09:08:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:19]Read from MH i2c: E2 [09:08:19]MH_I2C_Read... [09:08:19]Read from MH i2c: E2 0E 00 [09:08:19]MH_I2C_Read... [09:08:19]Read from MH i2c: E2 0E 00 8C 1F 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 01 [09:08:19]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [09:08:19]wFMCommunicate OK [09:08:19]SAM_PROTO_GetShiftState done [09:08:19]FM_GetShiftState done [09:08:19]opened in 1721003876 [09:08:19]opened+sec_in_day 1721090276 [09:08:19]quantity*price = 20022 [09:08:19]sum+1 = 20024 [09:08:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.23 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 0.00 Безнал.: 200.23 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 38 15.07.2024 09:08 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 165165 ФПД: 136577027877462 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T090823&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165165&fm=136577027877462&tin=02508201610067®Number=0000000000090829&sum=20023 [09:08:20]StoreToDocumentArchive [09:08:20]shift 448 fd 165165 [09:08:20]save to /storage/0448/doc_00165165 [09:08:20]save last doc name /storage/0448/doc_00165165 to /storage/kkm_last_doc_name [09:08:20]save OK [09:08:20]Clear old archive folders... [09:08:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:08:20]tlvbuf is 01360EE0 [09:08:20]SAM_PROTO_ClearQueue [09:08:20]wFMCommunicate request_size=4 [09:08:20]MH_SAM_APDU [09:08:20]CAPDU: 80 09 00 00 [09:08:20]Write to MH i2c: E2 08 00 99 1F 80 09 00 00 00 00 00 00 2A [09:08:20]Write i2c OK [09:08:20]MH_I2C_Read... [09:08:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:08:20]Read from MH i2c: E2 [09:08:20]MH_I2C_Read... [09:08:20]Read from MH i2c: E2 03 00 [09:08:20]MH_I2C_Read... [09:08:20]Read from MH i2c: E2 03 00 99 1F 00 90 00 2C [09:08:20]RAPDU: 90 00 [09:08:20]wFMCommunicate OK [09:08:20]SAM_PROTO_ClearQueue done [09:08:20]KKMCreateOFDPacket [09:08:20]OFDProtocolAddRootSTLVToBuf [09:08:20]FM_MakeSignedData [09:08:20]FM_MakeSignedData [09:08:20]SAM_PROTO_SignData [09:08:20]wFMCommunicate request_size=4 [09:08:20]MH_SAM_APDU [09:08:20]CAPDU: 80 0D 01 02 [09:08:20]Write to MH i2c: E2 08 00 9A 1F 80 0D 01 02 00 00 00 00 32 [09:08:20]Write i2c OK [09:08:20]MH_I2C_Read... [09:08:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:08:20]Read from MH i2c: E2 [09:08:20]MH_I2C_Read... [09:08:20]Read from MH i2c: E2 03 00 [09:08:20]MH_I2C_Read... [09:08:20]Read from MH i2c: E2 03 00 9A 1F 00 90 00 2D [09:08:20]RAPDU: 90 00 [09:08:20]wFMCommunicate OK [09:08:20]wFMCommunicate request_size=255 [09:08:20]MH_SAM_APDU [09:08:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 0B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 37 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 37 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 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 37 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 07 E7 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2D 85 02 00 35 04 06 00 7C [09:08:20]Write to MH i2c: E2 02 01 9B 1F 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 0B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 37 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 37 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 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 37 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 07 E7 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2D 85 02 00 35 04 06 00 7C 00 00 73 [09:08:20]Write i2c OK [09:08:20]MH_I2C_Read... [09:08:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:21]Read from MH i2c: E2 [09:08:21]MH_I2C_Read... [09:08:21]Read from MH i2c: E2 03 00 [09:08:21]MH_I2C_Read... [09:08:21]Read from MH i2c: E2 03 00 9B 1F 00 90 00 2E [09:08:21]RAPDU: 90 00 [09:08:21]wFMCommunicate OK [09:08:21]wFMCommunicate request_size=10 [09:08:21]MH_SAM_APDU [09:08:21]CAPDU: 80 0D 02 02 05 37 51 3B 2A 56 [09:08:21]Write to MH i2c: E2 0D 00 9C 1F 80 0D 02 02 05 00 37 51 3B 2A 56 00 00 82 [09:08:21]Write i2c OK [09:08:21]MH_I2C_Read... [09:08:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:21]Read from MH i2c: E2 [09:08:21]MH_I2C_Read... [09:08:21]Read from MH i2c: E2 03 00 [09:08:21]MH_I2C_Read... [09:08:21]Read from MH i2c: E2 03 00 9C 1F 00 90 00 2F [09:08:21]RAPDU: 90 00 [09:08:21]wFMCommunicate OK [09:08:21]wFMCommunicate request_size=4 [09:08:21]MH_SAM_APDU [09:08:21]CAPDU: 80 0D 03 02 [09:08:21]Write to MH i2c: E2 08 00 9D 1F 80 0D 03 02 00 00 00 00 37 [09:08:21]Write i2c OK [09:08:21]MH_I2C_Read... [09:08:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:08:21]Read from MH i2c: E2 [09:08:21]MH_I2C_Read... [09:08:21]Read from MH i2c: E2 0B 00 [09:08:21]MH_I2C_Read... [09:08:21]Read from MH i2c: E2 0B 00 9D 1F 00 F4 E8 E3 4C 8B C3 34 E2 90 00 A7 [09:08:21]RAPDU: F4 E8 E3 4C 8B C3 34 E2 90 00 [09:08:21]wFMCommunicate OK [09:08:21]SAM_PROTO_SignData done [09:08:21]FM_MakeSignedData done [09:08:21]CreateOFDProtocolMessage [09:08:21]wFMCommunicate request_size=4 [09:08:21]MH_SAM_APDU [09:08:21]CAPDU: 80 11 00 00 [09:08:21]Write to MH i2c: E2 08 00 9E 1F 80 11 00 00 00 00 00 00 37 [09:08:21]Write i2c OK [09:08:21]MH_I2C_Read... [09:08:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:21]Read from MH i2c: E2 [09:08:21]MH_I2C_Read... [09:08:21]Read from MH i2c: E2 17 00 [09:08:21]MH_I2C_Read... [09:08:21]Read from MH i2c: E2 17 00 9E 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8D [09:08:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:08:21]wFMCommunicate OK [09:08:21]CreateOFDProtocolMessage done [09:08:21]OFDSenderStorePacket 165165 [09:08:21]StoreOFDPacket docnum=165165 [09:08:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 99 8B 07 01 C9 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 0B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 37 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 37 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 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 37 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 07 E7 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2D 85 02 00 35 04 06 00 7C 37 51 3B 2A 56 F4 E8 E3 4C 8B C3 34 E2 [09:08:21]CheckFolder [09:08:21]dirname=/storage/ofd_packets [09:08:21]CheckFolder done [09:08:21]ProducePacketName [09:08:21]name=ofd_packets/00165165 [09:08:21]NVStorageSaveData ofd_packets/00165165 [09:08:21]File name is /storage/ofd_packets/00165165 [09:08:21]Write 301 bytes [09:08:21]NVStorageSaveData done [09:08:21]OFDSenderStorePacket done [09:08:21]KKMCreateOFDPacket done [09:08:21]NVStorageSaveData kkm_last_timestamp [09:08:21]File name is /storage/kkm_last_timestamp [09:08:21]Write 4 bytes [09:08:21]NVStorageSaveData done [09:08:21]ExternCall_PrintAddStr [09:08:21]wPrintStart [09:08:21]Write to MH i2c: 01 00 00 9F 1F BE [09:08:21]Write i2c OK [09:08:21]MH_I2C_Read... [09:08:21]Read from MH i2c: 01 [09:08:21]MH_I2C_Read... [09:08:21]Read from MH i2c: 01 07 00 [09:08:21]MH_I2C_Read... [09:08:21]Read from MH i2c: 01 07 00 9F 1F 00 00 00 00 00 FF 0F D3 [09:08:21]RasterBufferAndPrint [09:08:21]line Счет N : (1)459267 [09:08:21]line ИНН: 02508201610067 [09:08:21]line Контрольно-Кассовый Чек [09:08:21]line ПРОДАЖА [09:08:21]line ТРК (МРК, ГНК) : 12 [09:08:21]line Товар: 2710124130 [09:08:21]line Аи-92-К-5 [09:08:21]line 3.070 * 65.22 [09:08:21]line = 200.23 [09:08:21]line НДС 12% НСП 1% [09:08:21]line > о реализуемом товаре [09:08:21]line ИТОГО: 200.23 [09:08:21]line НСП 1% : 1.77 [09:08:21]line НДС 12% : 21.26 [09:08:21]line Наличными: 0.00 [09:08:21]line Безнал.: 200.23 [09:08:21]line Место: АЗС № 72 "Партнер Нефть" [09:08:21]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:08:21]line СНО: Общий режим [09:08:21]line Чек 38 15.07.2024 09:08 [09:08:21]line Смена: 448 ФФД: 1.0 [09:08:21]line ЗНМ: 0300000160 [09:08:21]line РНМ: 0000000000090829 [09:08:21]line Версия ККМ: 001 [09:08:21]line Платежная система: KICB Банк [09:08:21]line ФМ: 0000000000874718 [09:08:21]line ФД: 165165 [09:08:21]line ФПД: 136577027877462 [09:08:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T090823&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165165&fm=136577027877462&tin=02508201610067®Number=0000000000090829&sum=20023 [09:08:21]written 0, free lines is 4095 [09:08:21]OFD Sender: Processing packet 165165 [packets to send 106, broken 105] [09:08:21]ProducePacketName [09:08:21]name=ofd_packets/00165165 [09:08:21]OFD Sender: To server: pG, [09:08:21]CommunicateWithHost lk.salyk.kg:30040 [09:08:21]ConnectInit lk.salyk.kg [09:08:21]Connected sock=11 [09:08: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 37 31 38 0F 01 00 00 99 8B 07 01 C9 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 0B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 37 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 37 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 4E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 37 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 07 E7 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2D 85 02 00 35 04 06 00 7C 37 51 3B 2A 56 F4 E8 E3 4C 8B C3 34 E2 [09:08:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 4B F5 47 00 2E D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 2D 85 02 00 F4 03 04 00 92 8D 94 66 B6 04 01 00 00 D7 D9 14 A0 20 4E 2C DB [09:08:21]CommunicateWithHost err = 0 [09:08:21]CheckOFDResponse [09:08:21]1017 (14) - 77093643461234 [09:08:21]1041 (16) - 0000000000874718 [09:08:21]1040 (4) - 165165 [09:08:21]1012 (4) - 15.07.2024 02:46 [09:08:21]1206 (1) - 0 [09:08:21]OFD Sender: Remove packet 165165 [09:08:21]ProducePacketName [09:08:21]name=ofd_packets/00165165 [09:08:21]NVStorageDeleteData [09:08:21]Write to MH i2c: 01 00 00 C8 1F E7 [09:08:21]Write i2c OK [09:08:21]MH_I2C_Read... [09:08:21]Read from MH i2c: 01 [09:08:21]MH_I2C_Read... [09:08:21]Read from MH i2c: 01 07 00 [09:08:21]MH_I2C_Read... [09:08:21]Read from MH i2c: 01 07 00 C8 1F 00 00 00 00 00 16 0D 11 [09:08:21]RasterBufferAndPrint [09:08:21]line [09:08:21]line [09:08:21]line [09:08:21]line [09:08:21]line [09:08:21]written 0, free lines is 3357 [09:08:21]MH_Cut [09:08:21]Write to MH i2c: D1 01 00 CF 1F 01 C0 [09:08:21]Write i2c OK [09:08:21]MH_I2C_Read... [09:08:21]Read from MH i2c: D1 [09:08:21]MH_I2C_Read... [09:08:21]Read from MH i2c: D1 01 00 [09:08:21]MH_I2C_Read... [09:08:21]Read from MH i2c: D1 01 00 CF 1F 00 BF [09:08:21]Write to MH i2c: 01 00 00 D0 1F EF [09:08:21]Write i2c OK [09:08:21]MH_I2C_Read... [09:08:22]OFD Sender: No OFD packet to send [09:08:22]*** Cut start [09:08:22]*** Partial cut [09:08:22]*** CUTSNS_PIN = 1 [09:08:22]*** CUTSNS_PIN = 0 [09:08:22]*** Brake cut motor [09:08:22]Read from MH i2c: 01 [09:08:22]MH_I2C_Read... [09:08:22]*** Stop cut motor [09:08:22]*** Cut end [09:08:22]Read from MH i2c: 01 07 00 [09:08:22]MH_I2C_Read... [09:08:22]Read from MH i2c: 01 07 00 D0 1F 00 00 00 00 00 FF 0F 04 [09:08:22]process_action close_receipt done [09:08:22]requested_data is exist [09:08:22]produce_requested_data [09:08:22]requested_item fm.sn is exist - process it [09:08:22]wFMCommunicate request_size=4 [09:08:22]MH_SAM_APDU [09:08:22]CAPDU: 80 11 00 00 [09:08:22]Write to MH i2c: E2 08 00 D1 1F 80 11 00 00 00 00 00 00 6A [09:08:22]Write i2c OK [09:08:22]MH_I2C_Read... [09:08:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:22]Read from MH i2c: E2 [09:08:22]MH_I2C_Read... [09:08:22]Read from MH i2c: E2 17 00 [09:08:22]MH_I2C_Read... [09:08:22]Read from MH i2c: E2 17 00 D1 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C0 [09:08:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:08:22]wFMCommunicate OK [09:08:22]requested_item fd.num is exist - process it [09:08:22]SAM_PROTO_GetFieldsCounters [09:08:22]wFMCommunicate request_size=4 [09:08:22]MH_SAM_APDU [09:08:22]CAPDU: 80 13 00 00 [09:08:22]Write to MH i2c: E2 08 00 D2 1F 80 13 00 00 00 00 00 00 6D [09:08:22]Write i2c OK [09:08:22]MH_I2C_Read... [09:08:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:08:23]Read from MH i2c: E2 [09:08:23]MH_I2C_Read... [09:08:23]Read from MH i2c: E2 62 00 [09:08:23]MH_I2C_Read... [09:08:23]Read from MH i2c: E2 62 00 D2 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2D 85 02 00 0E 04 04 00 C0 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 7B [09:08:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2D 85 02 00 0E 04 04 00 C0 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 [09:08:23]wFMCommunicate OK [09:08:23]SAM_PROTO_GetFieldsCounters done [09:08:23]requested_item shift.num is exist - process it [09:08:23]requested_item shift.opened is exist - process it [09:08:23]req_shift_opened [09:08:23]FM_GetShiftState [09:08:23]SAM_PROTO_GetShiftState [09:08:23]wFMCommunicate request_size=4 [09:08:23]MH_SAM_APDU [09:08:23]CAPDU: 80 13 01 00 [09:08:23]Write to MH i2c: E2 08 00 D3 1F 80 13 01 00 00 00 00 00 6F [09:08:23]Write i2c OK [09:08:23]MH_I2C_Read... [09:08:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:23]Read from MH i2c: E2 [09:08:23]MH_I2C_Read... [09:08:23]Read from MH i2c: E2 0E 00 [09:08:23]MH_I2C_Read... [09:08:23]Read from MH i2c: E2 0E 00 D3 1F 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 48 [09:08:23]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [09:08:23]wFMCommunicate OK [09:08:23]SAM_PROTO_GetShiftState done [09:08:23]FM_GetShiftState done [09:08:23]req_shift_opened done [09:08:23]requested_item shift.open_date is exist - process it [09:08:23]req_shift_open_date [09:08:23]req_shift_open_date done [09:08:23]produce_requested_data done [09:08:23]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165165,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [09:08:23]process_action_free close_receipt [09:08:23]json_value_free [09:08:23]json_value_free done [09:08:23]process_json_proto returns [09:08:23]Send response to host [09:08:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165165,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [09:08:23]free response buf [09:08:23]execute_script done [09:08:23]execute_script returns [09:08:23]free content buf [09:08:23]Sock 9.Close socket [09:08:23]Sock 9.Thread stoped [09:08:27]OFD Sender: No OFD packet to send [09:08:32]OFD Sender: No OFD packet to send [09:08:37]OFD Sender: No OFD packet to send [09:08:42]OFD Sender: No OFD packet to send [09:08:47]OFD Sender: No OFD packet to send [09:08:52]OFD Sender: No OFD packet to send [09:08:57]OFD Sender: No OFD packet to send [09:09:02]OFD Sender: No OFD packet to send [09:09:07]OFD Sender: No OFD packet to send [09:09:12]OFD Sender: No OFD packet to send [09:09:17]OFD Sender: No OFD packet to send [09:09:22]OFD Sender: No OFD packet to send [09:09:27]OFD Sender: No OFD packet to send [09:09:28]accept exits with 7 [09:09:28]New connection [09:09:28]New thread 3066928484 created [09:09:28]Thread 3066785124 joined [09:09:28]Waiting for new connection... [09:09:28] Sock 7.Parse request [09:09:28]Sock 7.Check first char [09:09:28]Sock 7.First char is OK [09:09:28]request: POST /json_proto HTTP/1.0 [09:09:28]Method: POST [09:09:28]URL: /json_proto [09:09:28]Method is POST - this is cgi request [09:09:28]url: /json_proto [09:09:28]query_string will be loaded in cgi processing [09:09:28]execute_cgi json_proto POST (null) [09:09:28]execute_cgi path=json_proto method=POST [09:09:28]POST find Content-Length [09:09:28]Host: 172.17.56.4:8080 [09:09:28]Content-Length: 682 [09:09:28]Content-Type: application/json [09:09:28] [09:09:28]POST finish read [09:09:28]Found Content-Length = 682 [09:09:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459268", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:28]execute_script... [09:09:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459268", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:28]POST & json_proto [09:09:28]process_json_proto [09:09:28]json parsed OK: [09:09:28]protocol is kg_v1.0 [09:09:28]action value=close_receipt [09:09:28]process_action close_receipt [09:09:28]cmd_close_receipt [09:09:28]MH_GetDate [09:09:28]Write to MH i2c: F0 00 00 D4 1F E2 [09:09:28]Write i2c OK [09:09:28]MH_I2C_Read... [09:09:28]Read from MH i2c: F0 [09:09:28]MH_I2C_Read... [09:09:28]Read from MH i2c: F0 09 00 [09:09:28]MH_I2C_Read... [09:09:28]Read from MH i2c: F0 09 00 D4 1F 00 4D E7 94 66 C9 DC B2 64 D4 [09:09:28]GetLastDocTimeStamp 1721034503 [09:09:28]current date 1721034573 [09:09:28]FM_GetShiftState [09:09:28]SAM_PROTO_GetShiftState [09:09:28]wFMCommunicate request_size=4 [09:09:28]MH_SAM_APDU [09:09:28]CAPDU: 80 13 01 00 [09:09:28]Write to MH i2c: E2 08 00 D5 1F 80 13 01 00 00 00 00 00 71 [09:09:28]Write i2c OK [09:09:28]MH_I2C_Read... [09:09:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:28]Read from MH i2c: E2 [09:09:28]MH_I2C_Read... [09:09:28]Read from MH i2c: E2 0E 00 [09:09:28]MH_I2C_Read... [09:09:28]Read from MH i2c: E2 0E 00 D5 1F 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 4A [09:09:28]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [09:09:28]wFMCommunicate OK [09:09:28]SAM_PROTO_GetShiftState done [09:09:28]FM_GetShiftState done [09:09:28]opened in 1721003876 [09:09:28]opened+sec_in_day 1721090276 [09:09:28]quantity*price = 100016 [09:09:28]sum+1 = 100017 [09:09:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 39 15.07.2024 09:09 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165166 ФПД: 83636455213794 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T090933&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165166&fm=83636455213794&tin=02508201610067®Number=0000000000090829&sum=100000 [09:09:30]StoreToDocumentArchive [09:09:30]shift 448 fd 165166 [09:09:30]save to /storage/0448/doc_00165166 [09:09:30]save last doc name /storage/0448/doc_00165166 to /storage/kkm_last_doc_name [09:09:30]save OK [09:09:30]Clear old archive folders... [09:09:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:09:30]tlvbuf is B6EA2350 [09:09:30]SAM_PROTO_ClearQueue [09:09:30]wFMCommunicate request_size=4 [09:09:30]MH_SAM_APDU [09:09:30]CAPDU: 80 09 00 00 [09:09:30]Write to MH i2c: E2 08 00 E2 1F 80 09 00 00 00 00 00 00 73 [09:09:30]Write i2c OK [09:09:30]MH_I2C_Read... [09:09:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:09:30]Read from MH i2c: E2 [09:09:30]MH_I2C_Read... [09:09:30]Read from MH i2c: E2 03 00 [09:09:30]MH_I2C_Read... [09:09:30]Read from MH i2c: E2 03 00 E2 1F 00 90 00 75 [09:09:30]RAPDU: 90 00 [09:09:30]wFMCommunicate OK [09:09:30]SAM_PROTO_ClearQueue done [09:09:30]KKMCreateOFDPacket [09:09:30]OFDProtocolAddRootSTLVToBuf [09:09:30]FM_MakeSignedData [09:09:30]FM_MakeSignedData [09:09:30]SAM_PROTO_SignData [09:09:30]wFMCommunicate request_size=4 [09:09:30]MH_SAM_APDU [09:09:30]CAPDU: 80 0D 01 02 [09:09:30]Write to MH i2c: E2 08 00 E3 1F 80 0D 01 02 00 00 00 00 7B [09:09:30]Write i2c OK [09:09:30]MH_I2C_Read... [09:09:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:09:30]Read from MH i2c: E2 [09:09:30]MH_I2C_Read... [09:09:30]Read from MH i2c: E2 03 00 [09:09:30]MH_I2C_Read... [09:09:30]Read from MH i2c: E2 03 00 E3 1F 00 90 00 76 [09:09:30]RAPDU: 90 00 [09:09:30]wFMCommunicate OK [09:09:30]wFMCommunicate request_size=255 [09:09:30]MH_SAM_APDU [09:09: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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 4D E7 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2E 85 02 00 35 04 06 00 4C [09:09:30]Write to MH i2c: E2 02 01 E4 1F 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 4D E7 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2E 85 02 00 35 04 06 00 4C 00 00 AD [09:09:30]Write i2c OK [09:09:30]MH_I2C_Read... [09:09:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:30]Read from MH i2c: E2 [09:09:30]MH_I2C_Read... [09:09:30]Read from MH i2c: E2 03 00 [09:09:30]MH_I2C_Read... [09:09:30]Read from MH i2c: E2 03 00 E4 1F 00 90 00 77 [09:09:30]RAPDU: 90 00 [09:09:30]wFMCommunicate OK [09:09:30]wFMCommunicate request_size=10 [09:09:30]MH_SAM_APDU [09:09:30]CAPDU: 80 0D 02 02 05 11 21 34 0A E2 [09:09:30]Write to MH i2c: E2 0D 00 E5 1F 80 0D 02 02 05 00 11 21 34 0A E2 00 00 DA [09:09:30]Write i2c OK [09:09:30]MH_I2C_Read... [09:09:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:30]Read from MH i2c: E2 [09:09:30]MH_I2C_Read... [09:09:30]Read from MH i2c: E2 03 00 [09:09:30]MH_I2C_Read... [09:09:30]Read from MH i2c: E2 03 00 E5 1F 00 90 00 78 [09:09:30]RAPDU: 90 00 [09:09:30]wFMCommunicate OK [09:09:30]wFMCommunicate request_size=4 [09:09:30]MH_SAM_APDU [09:09:30]CAPDU: 80 0D 03 02 [09:09:30]Write to MH i2c: E2 08 00 E6 1F 80 0D 03 02 00 00 00 00 80 [09:09:30]Write i2c OK [09:09:30]MH_I2C_Read... [09:09:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:09:30]Read from MH i2c: E2 [09:09:30]MH_I2C_Read... [09:09:30]Read from MH i2c: E2 0B 00 [09:09:30]MH_I2C_Read... [09:09:30]Read from MH i2c: E2 0B 00 E6 1F 00 B0 DE 19 17 0A 38 7E B9 90 00 B8 [09:09:30]RAPDU: B0 DE 19 17 0A 38 7E B9 90 00 [09:09:30]wFMCommunicate OK [09:09:30]SAM_PROTO_SignData done [09:09:30]FM_MakeSignedData done [09:09:30]CreateOFDProtocolMessage [09:09:30]wFMCommunicate request_size=4 [09:09:30]MH_SAM_APDU [09:09:30]CAPDU: 80 11 00 00 [09:09:30]Write to MH i2c: E2 08 00 E7 1F 80 11 00 00 00 00 00 00 80 [09:09:30]Write i2c OK [09:09:30]MH_I2C_Read... [09:09:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:30]Read from MH i2c: E2 [09:09:30]MH_I2C_Read... [09:09:30]Read from MH i2c: E2 17 00 [09:09:30]MH_I2C_Read... [09:09:30]Read from MH i2c: E2 17 00 E7 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D6 [09:09:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:09:30]wFMCommunicate OK [09:09:30]CreateOFDProtocolMessage done [09:09:30]OFDSenderStorePacket 165166 [09:09:30]StoreOFDPacket docnum=165166 [09:09:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 39 D4 07 01 42 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 4D E7 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2E 85 02 00 35 04 06 00 4C 11 21 34 0A E2 B0 DE 19 17 0A 38 7E B9 [09:09:30]CheckFolder [09:09:30]dirname=/storage/ofd_packets [09:09:30]CheckFolder done [09:09:30]ProducePacketName [09:09:30]name=ofd_packets/00165166 [09:09:30]NVStorageSaveData ofd_packets/00165166 [09:09:30]File name is /storage/ofd_packets/00165166 [09:09:30]Write 301 bytes [09:09:30]NVStorageSaveData done [09:09:30]OFDSenderStorePacket done [09:09:30]KKMCreateOFDPacket done [09:09:30]NVStorageSaveData kkm_last_timestamp [09:09:30]File name is /storage/kkm_last_timestamp [09:09:30]Write 4 bytes [09:09:30]NVStorageSaveData done [09:09:30]ExternCall_PrintAddStr [09:09:30]wPrintStart [09:09:30]Write to MH i2c: 01 00 00 E8 1F 07 [09:09:30]Write i2c OK [09:09:30]MH_I2C_Read... [09:09:30]Read from MH i2c: 01 [09:09:30]MH_I2C_Read... [09:09:30]Read from MH i2c: 01 07 00 [09:09:30]MH_I2C_Read... [09:09:30]Read from MH i2c: 01 07 00 E8 1F 00 00 00 00 00 FF 0F 1C [09:09:30]RasterBufferAndPrint [09:09:30]line Счет N : (1)459268 [09:09:30]line ИНН: 02508201610067 [09:09:30]line Контрольно-Кассовый Чек [09:09:30]line ПРОДАЖА [09:09:30]line ТРК (МРК, ГНК) : 22 [09:09:30]line Товар: 2710124130 [09:09:30]line Аи-92-К-5 [09:09:30]line 15.200 * 65.80 [09:09:30]line = 1000.16 [09:09:30]line НДС 12% НСП 1% [09:09:30]line > о реализуемом товаре [09:09:30]line ОКРУГЛЕНИЕ: -0.16 [09:09:30]line ИТОГО: 1000.00 [09:09:30]line Внесено: 1000.00 [09:09:30]line СДАЧА: 0.00 [09:09:30]line НСП 1% : 8.85 [09:09:30]line НДС 12% : 106.21 [09:09:30]line Наличными: 1000.00 [09:09:30]line Безнал.: 0.00 [09:09:30]line Место: АЗС № 72 "Партнер Нефть" [09:09:30]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:09:30]line СНО: Общий режим [09:09:30]line Чек 39 15.07.2024 09:09 [09:09:30]line Смена: 448 ФФД: 1.0 [09:09:30]line ЗНМ: 0300000160 [09:09:30]line РНМ: 0000000000090829 [09:09:30]line Версия ККМ: 001 [09:09:30]line ФМ: 0000000000874718 [09:09:30]line ФД: 165166 [09:09:30]line ФПД: 83636455213794 [09:09:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T090933&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165166&fm=83636455213794&tin=02508201610067®Number=0000000000090829&sum=100000 [09:09:30]OFD Sender: Processing packet 165166 [packets to send 106, broken 105] [09:09:30]ProducePacketName [09:09:30]name=ofd_packets/00165166 [09:09:30]OFD Sender: To server: pG, [09:09:30]CommunicateWithHost lk.salyk.kg:30040 [09:09:30]ConnectInit lk.salyk.kg [09:09:30]written 0, free lines is 4095 [09:09:31]Connected sock=10 [09: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 37 31 38 0F 01 00 00 39 D4 07 01 42 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 4D E7 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2E 85 02 00 35 04 06 00 4C 11 21 34 0A E2 B0 DE 19 17 0A 38 7E B9 [09:09:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 F0 09 47 00 24 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 37 31 38 10 04 04 00 2E 85 02 00 F4 03 04 00 D8 8D 94 66 B6 04 01 00 00 BC 69 D5 18 3D E1 61 6A [09:09:31]CommunicateWithHost err = 0 [09:09:31]CheckOFDResponse [09:09:31]1017 (14) - 77093643461234 [09:09:31]1041 (16) - 0000000000874718 [09:09:31]1040 (4) - 165166 [09:09:31]1012 (4) - 15.07.2024 02:47 [09:09:31]1206 (1) - 0 [09:09:31]OFD Sender: Remove packet 165166 [09:09:31]ProducePacketName [09:09:31]name=ofd_packets/00165166 [09:09:31]NVStorageDeleteData [09:09:31]Write to MH i2c: 01 00 00 12 20 32 [09:09:31]Write i2c OK [09:09:31]MH_I2C_Read... [09:09:31]Read from MH i2c: 01 [09:09:31]MH_I2C_Read... [09:09:31]Read from MH i2c: 01 07 00 [09:09:31]MH_I2C_Read... [09:09:31]Read from MH i2c: 01 07 00 12 20 00 00 00 00 00 F7 0C 3C [09:09:31]RasterBufferAndPrint [09:09:31]line [09:09:31]line [09:09:31]line [09:09:31]line [09:09:31]line [09:09:31]written 0, free lines is 3326 [09:09:31]MH_Cut [09:09:31]Write to MH i2c: D1 01 00 19 20 01 0B [09:09:31]Write i2c OK [09:09:31]MH_I2C_Read... [09:09:31]Read from MH i2c: D1 [09:09:31]MH_I2C_Read... [09:09:31]Read from MH i2c: D1 01 00 [09:09:31]MH_I2C_Read... [09:09:31]Read from MH i2c: D1 01 00 19 20 00 0A [09:09:31]Write to MH i2c: 01 00 00 1A 20 3A [09:09:31]Write i2c OK [09:09:31]MH_I2C_Read... [09:09:31]OFD Sender: No OFD packet to send [09:09:32]*** Cut start [09:09:32]*** Partial cut [09:09:32]*** CUTSNS_PIN = 1 [09:09:32]*** CUTSNS_PIN = 0 [09:09:32]*** Brake cut motor [09:09:32]Read from MH i2c: 01 [09:09:32]MH_I2C_Read... [09:09:32]*** Stop cut motor [09:09:32]*** Cut end [09:09:32]Read from MH i2c: 01 07 00 [09:09:32]MH_I2C_Read... [09:09:32]Read from MH i2c: 01 07 00 1A 20 00 00 00 00 00 FF 0F 4F [09:09:32]process_action close_receipt done [09:09:32]requested_data is exist [09:09:32]produce_requested_data [09:09:32]requested_item fm.sn is exist - process it [09:09:32]wFMCommunicate request_size=4 [09:09:32]MH_SAM_APDU [09:09:32]CAPDU: 80 11 00 00 [09:09:32]Write to MH i2c: E2 08 00 1B 20 80 11 00 00 00 00 00 00 B5 [09:09:32]Write i2c OK [09:09:32]MH_I2C_Read... [09:09:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:32]Read from MH i2c: E2 [09:09:32]MH_I2C_Read... [09:09:32]Read from MH i2c: E2 17 00 [09:09:32]MH_I2C_Read... [09:09:32]Read from MH i2c: E2 17 00 1B 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0B [09:09:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:09:32]wFMCommunicate OK [09:09:32]requested_item fd.num is exist - process it [09:09:32]SAM_PROTO_GetFieldsCounters [09:09:32]wFMCommunicate request_size=4 [09:09:32]MH_SAM_APDU [09:09:32]CAPDU: 80 13 00 00 [09:09:32]Write to MH i2c: E2 08 00 1C 20 80 13 00 00 00 00 00 00 B8 [09:09:32]Write i2c OK [09:09:32]MH_I2C_Read... [09:09:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:09:32]Read from MH i2c: E2 [09:09:32]MH_I2C_Read... [09:09:32]Read from MH i2c: E2 62 00 [09:09:32]MH_I2C_Read... [09:09:32]Read from MH i2c: E2 62 00 1C 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2E 85 02 00 0E 04 04 00 C0 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 CA [09:09:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2E 85 02 00 0E 04 04 00 C0 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 [09:09:32]wFMCommunicate OK [09:09:32]SAM_PROTO_GetFieldsCounters done [09:09:32]requested_item shift.num is exist - process it [09:09:32]requested_item shift.opened is exist - process it [09:09:32]req_shift_opened [09:09:32]FM_GetShiftState [09:09:32]SAM_PROTO_GetShiftState [09:09:32]wFMCommunicate request_size=4 [09:09:32]MH_SAM_APDU [09:09:32]CAPDU: 80 13 01 00 [09:09:32]Write to MH i2c: E2 08 00 1D 20 80 13 01 00 00 00 00 00 BA [09:09:32]Write i2c OK [09:09:32]MH_I2C_Read... [09:09:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:32]Read from MH i2c: E2 [09:09:32]MH_I2C_Read... [09:09:32]Read from MH i2c: E2 0E 00 [09:09:32]MH_I2C_Read... [09:09:32]Read from MH i2c: E2 0E 00 1D 20 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 93 [09:09:32]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [09:09:32]wFMCommunicate OK [09:09:32]SAM_PROTO_GetShiftState done [09:09:32]FM_GetShiftState done [09:09:32]req_shift_opened done [09:09:32]requested_item shift.open_date is exist - process it [09:09:32]req_shift_open_date [09:09:32]req_shift_open_date done [09:09:32]produce_requested_data done [09:09:32]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165166,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [09:09:32]process_action_free close_receipt [09:09:32]json_value_free [09:09:32]json_value_free done [09:09:32]process_json_proto returns [09:09:32]Send response to host [09:09:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165166,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [09:09:32]free response buf [09:09:32]execute_script done [09:09:32]execute_script returns [09:09:32]free content buf [09:09:32]Sock 7.Close socket [09:09:32]Sock 7.Thread stoped [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: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:07]OFD Sender: No OFD packet to send [09:13:12]OFD Sender: No OFD packet to send [09:13:17]OFD Sender: No OFD packet to send [09:13:22]OFD Sender: No OFD packet to send [09:13:27]OFD Sender: No OFD packet to send [09:13:32]OFD Sender: No OFD packet to send [09:13:37]OFD Sender: No OFD packet to send [09:13:42]OFD Sender: No OFD packet to send [09:13:47]OFD Sender: No OFD packet to send [09:13:52]OFD Sender: No OFD packet to send [09:13:57]OFD Sender: No OFD packet to send [09:14:02]OFD Sender: No OFD packet to send [09:14:07]OFD Sender: No OFD packet to send [09:14:12]OFD Sender: No OFD packet to send [09:14:17]OFD Sender: No OFD packet to send [09:14:22]OFD Sender: No OFD packet to send [09:14:27]OFD Sender: No OFD packet to send [09:14:32]OFD Sender: No OFD packet to send [09:14:37]OFD Sender: No OFD packet to send [09:14:42]OFD Sender: No OFD packet to send [09:14:47]OFD Sender: No OFD packet to send [09:14:50]accept exits with 9 [09:14:50]New connection [09:14:50]New thread 3066785124 created [09:14:50]Thread 3066928484 joined [09:14:50]Waiting for new connection... [09:14:50] Sock 9.Parse request [09:14:50]Sock 9.Check first char [09:14:50]Sock 9.First char is OK [09:14:50]request: POST /json_proto HTTP/1.0 [09:14:50]Method: POST [09:14:50]URL: /json_proto [09:14:50]Method is POST - this is cgi request [09:14:50]url: /json_proto [09:14:50]query_string will be loaded in cgi processing [09:14:50]execute_cgi json_proto POST (null) [09:14:50]execute_cgi path=json_proto method=POST [09:14:50]POST find Content-Length [09:14:50]Host: 172.17.56.4:8080 [09:14:50]Content-Length: 639 [09:14:50]Content-Type: application/json [09:14:50] [09:14:50]POST finish read [09:14:50]Found Content-Length = 639 [09:14:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459269", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.000, "sum" : 329.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 329.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:14:50]execute_script... [09:14:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459269", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.000, "sum" : 329.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 329.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:14:50]POST & json_proto [09:14:50]process_json_proto [09:14:50]json parsed OK: [09:14:50]protocol is kg_v1.0 [09:14:50]action value=close_receipt [09:14:50]process_action close_receipt [09:14:50]cmd_close_receipt [09:14:50]MH_GetDate [09:14:50]Write to MH i2c: F0 00 00 1E 20 2D [09:14:50]Write i2c OK [09:14:50]MH_I2C_Read... [09:14:50]Read from MH i2c: F0 [09:14:50]MH_I2C_Read... [09:14:50]Read from MH i2c: F0 09 00 [09:14:50]MH_I2C_Read... [09:14:50]Read from MH i2c: F0 09 00 1E 20 00 8E E8 94 66 C9 DC B2 64 61 [09:14:50]GetLastDocTimeStamp 1721034573 [09:14:50]current date 1721034894 [09:14:50]FM_GetShiftState [09:14:50]SAM_PROTO_GetShiftState [09:14:50]wFMCommunicate request_size=4 [09:14:50]MH_SAM_APDU [09:14:50]CAPDU: 80 13 01 00 [09:14:50]Write to MH i2c: E2 08 00 1F 20 80 13 01 00 00 00 00 00 BC [09:14:50]Write i2c OK [09:14:50]MH_I2C_Read... [09:14:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:50]Read from MH i2c: E2 [09:14:50]MH_I2C_Read... [09:14:50]Read from MH i2c: E2 0E 00 [09:14:50]MH_I2C_Read... [09:14:50]Read from MH i2c: E2 0E 00 1F 20 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 95 [09:14:50]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [09:14:50]wFMCommunicate OK [09:14:50]SAM_PROTO_GetShiftState done [09:14:50]FM_GetShiftState done [09:14:50]opened in 1721003876 [09:14:50]opened+sec_in_day 1721090276 [09:14:50]quantity*price = 32900 [09:14:50]sum+1 = 32901 [09:14:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 329.00 НСП 1% : 2.91 НДС 12% : 34.94 Наличными: 329.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 40 15.07.2024 09:14 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165167 ФПД: 237036902365247 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T091454&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165167&fm=237036902365247&tin=02508201610067®Number=0000000000090829&sum=32900 [09:14:51]StoreToDocumentArchive [09:14:51]shift 448 fd 165167 [09:14:51]save to /storage/0448/doc_00165167 [09:14:51]save last doc name /storage/0448/doc_00165167 to /storage/kkm_last_doc_name [09:14:51]save OK [09:14:51]Clear old archive folders... [09:14:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:14:51]tlvbuf is 0139D420 [09:14:51]SAM_PROTO_ClearQueue [09:14:51]wFMCommunicate request_size=4 [09:14:51]MH_SAM_APDU [09:14:51]CAPDU: 80 09 00 00 [09:14:51]Write to MH i2c: E2 08 00 2C 20 80 09 00 00 00 00 00 00 BE [09:14:51]Write i2c OK [09:14:51]MH_I2C_Read... [09:14:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:14:51]Read from MH i2c: E2 [09:14:51]MH_I2C_Read... [09:14:51]Read from MH i2c: E2 03 00 [09:14:51]MH_I2C_Read... [09:14:51]Read from MH i2c: E2 03 00 2C 20 00 90 00 C0 [09:14:51]RAPDU: 90 00 [09:14:51]wFMCommunicate OK [09:14:51]SAM_PROTO_ClearQueue done [09:14:51]KKMCreateOFDPacket [09:14:51]OFDProtocolAddRootSTLVToBuf [09:14:51]FM_MakeSignedData [09:14:51]FM_MakeSignedData [09:14:51]SAM_PROTO_SignData [09:14:51]wFMCommunicate request_size=4 [09:14:51]MH_SAM_APDU [09:14:51]CAPDU: 80 0D 01 02 [09:14:51]Write to MH i2c: E2 08 00 2D 20 80 0D 01 02 00 00 00 00 C6 [09:14:51]Write i2c OK [09:14:51]MH_I2C_Read... [09:14:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:14:51]Read from MH i2c: E2 [09:14:51]MH_I2C_Read... [09:14:51]Read from MH i2c: E2 03 00 [09:14:51]MH_I2C_Read... [09:14:51]Read from MH i2c: E2 03 00 2D 20 00 90 00 C1 [09:14:51]RAPDU: 90 00 [09:14:51]wFMCommunicate OK [09:14:51]wFMCommunicate request_size=255 [09:14:51]MH_SAM_APDU [09:14:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 84 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 84 80 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 8E E8 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2F 85 02 00 35 04 06 00 D7 [09:14:51]Write to MH i2c: E2 02 01 2E 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 84 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 84 80 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 8E E8 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2F 85 02 00 35 04 06 00 D7 00 00 07 [09:14:51]Write i2c OK [09:14:51]MH_I2C_Read... [09:14:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:51]Read from MH i2c: E2 [09:14:51]MH_I2C_Read... [09:14:51]Read from MH i2c: E2 03 00 [09:14:51]MH_I2C_Read... [09:14:51]Read from MH i2c: E2 03 00 2E 20 00 90 00 C2 [09:14:51]RAPDU: 90 00 [09:14:51]wFMCommunicate OK [09:14:51]wFMCommunicate request_size=10 [09:14:51]MH_SAM_APDU [09:14:51]CAPDU: 80 0D 02 02 05 95 74 5D 38 3F [09:14:51]Write to MH i2c: E2 0D 00 2F 20 80 0D 02 02 05 00 95 74 5D 38 3F 00 00 B0 [09:14:51]Write i2c OK [09:14:51]MH_I2C_Read... [09:14:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:51]Read from MH i2c: E2 [09:14:51]MH_I2C_Read... [09:14:51]Read from MH i2c: E2 03 00 [09:14:51]MH_I2C_Read... [09:14:51]Read from MH i2c: E2 03 00 2F 20 00 90 00 C3 [09:14:51]RAPDU: 90 00 [09:14:51]wFMCommunicate OK [09:14:51]wFMCommunicate request_size=4 [09:14:51]MH_SAM_APDU [09:14:51]CAPDU: 80 0D 03 02 [09:14:51]Write to MH i2c: E2 08 00 30 20 80 0D 03 02 00 00 00 00 CB [09:14:51]Write i2c OK [09:14:51]MH_I2C_Read... [09:14:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:14:51]Read from MH i2c: E2 [09:14:51]MH_I2C_Read... [09:14:51]Read from MH i2c: E2 0B 00 [09:14:51]MH_I2C_Read... [09:14:51]Read from MH i2c: E2 0B 00 30 20 00 FA 8C 35 D6 CA CE A9 6D 90 00 0B [09:14:51]RAPDU: FA 8C 35 D6 CA CE A9 6D 90 00 [09:14:51]wFMCommunicate OK [09:14:51]SAM_PROTO_SignData done [09:14:51]FM_MakeSignedData done [09:14:51]CreateOFDProtocolMessage [09:14:51]wFMCommunicate request_size=4 [09:14:51]MH_SAM_APDU [09:14:51]CAPDU: 80 11 00 00 [09:14:51]Write to MH i2c: E2 08 00 31 20 80 11 00 00 00 00 00 00 CB [09:14:51]Write i2c OK [09:14:51]MH_I2C_Read... [09:14:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:51]Read from MH i2c: E2 [09:14:51]MH_I2C_Read... [09:14:51]Read from MH i2c: E2 17 00 [09:14:51]MH_I2C_Read... [09:14:51]Read from MH i2c: E2 17 00 31 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 21 [09:14:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:14:51]wFMCommunicate OK [09:14:51]CreateOFDProtocolMessage done [09:14:51]OFDSenderStorePacket 165167 [09:14:51]StoreOFDPacket docnum=165167 [09:14:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 37 61 07 01 7C 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 84 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 84 80 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 8E E8 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2F 85 02 00 35 04 06 00 D7 95 74 5D 38 3F FA 8C 35 D6 CA CE A9 6D [09:14:51]CheckFolder [09:14:51]dirname=/storage/ofd_packets [09:14:51]CheckFolder done [09:14:51]ProducePacketName [09:14:51]name=ofd_packets/00165167 [09:14:51]NVStorageSaveData ofd_packets/00165167 [09:14:51]File name is /storage/ofd_packets/00165167 [09:14:51]Write 301 bytes [09:14:51]NVStorageSaveData done [09:14:51]OFDSenderStorePacket done [09:14:51]KKMCreateOFDPacket done [09:14:51]NVStorageSaveData kkm_last_timestamp [09:14:51]File name is /storage/kkm_last_timestamp [09:14:51]Write 4 bytes [09:14:51]NVStorageSaveData done [09:14:51]ExternCall_PrintAddStr [09:14:51]wPrintStart [09:14:51]Write to MH i2c: 01 00 00 32 20 52 [09:14:51]Write i2c OK [09:14:51]MH_I2C_Read... [09:14:51]Read from MH i2c: 01 [09:14:51]MH_I2C_Read... [09:14:51]Read from MH i2c: 01 07 00 [09:14:51]MH_I2C_Read... [09:14:51]Read from MH i2c: 01 07 00 32 20 00 00 00 00 00 FF 0F 67 [09:14:51]RasterBufferAndPrint [09:14:51]line Счет N : (1)459269 [09:14:51]line ИНН: 02508201610067 [09:14:51]line Контрольно-Кассовый Чек [09:14:51]line ПРОДАЖА [09:14:51]line ТРК (МРК, ГНК) : 12 [09:14:51]line Товар: 2710124130 [09:14:51]line Аи-92-К-5 [09:14:51]line 5.000 * 65.80 [09:14:51]line = 329.00 [09:14:51]line НДС 12% НСП 1% [09:14:51]line > о реализуемом товаре [09:14:51]line ИТОГО: 329.00 [09:14:51]line НСП 1% : 2.91 [09:14:51]line НДС 12% : 34.94 [09:14:51]line Наличными: 329.00 [09:14:51]line Безнал.: 0.00 [09:14:51]line Место: АЗС № 72 "Партнер Нефть" [09:14:51]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:14:51]line СНО: Общий режим [09:14:51]line Чек 40 15.07.2024 09:14 [09:14:51]line Смена: 448 ФФД: 1.0 [09:14:51]line ЗНМ: 0300000160 [09:14:51]line РНМ: 0000000000090829 [09:14:51]line Версия ККМ: 001 [09:14:51]line ФМ: 0000000000874718 [09:14:51]line ФД: 165167 [09:14:51]line ФПД: 237036902365247 [09:14:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T091454&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165167&fm=237036902365247&tin=02508201610067®Number=0000000000090829&sum=32900 [09:14:52]OFD Sender: Processing packet 165167 [packets to send 106, broken 105] [09:14:52]ProducePacketName [09:14:52]name=ofd_packets/00165167 [09:14:52]OFD Sender: To server: pG, [09:14:52]CommunicateWithHost lk.salyk.kg:30040 [09:14:52]ConnectInit lk.salyk.kg [09:14:52]written 0, free lines is 4095 [09:14:52]Connected sock=10 [09:14:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 37 61 07 01 7C 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 84 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 84 80 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 8E E8 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2F 85 02 00 35 04 06 00 D7 95 74 5D 38 3F FA 8C 35 D6 CA CE A9 6D [09:14:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 CF 9C 47 00 57 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 2F 85 02 00 F4 03 04 00 19 8F 94 66 B6 04 01 00 00 E9 4F 87 88 B4 63 01 26 [09:14:52]CommunicateWithHost err = 0 [09:14:52]CheckOFDResponse [09:14:52]1017 (14) - 77093643461234 [09:14:52]1041 (16) - 0000000000874718 [09:14:52]1040 (4) - 165167 [09:14:52]1012 (4) - 15.07.2024 02:53 [09:14:52]1206 (1) - 0 [09:14:52]OFD Sender: Remove packet 165167 [09:14:52]ProducePacketName [09:14:52]name=ofd_packets/00165167 [09:14:52]NVStorageDeleteData [09:14:52]Write to MH i2c: 01 00 00 59 20 79 [09:14:52]Write i2c OK [09:14:52]MH_I2C_Read... [09:14:52]Read from MH i2c: 01 [09:14:52]MH_I2C_Read... [09:14:52]Read from MH i2c: 01 07 00 [09:14:52]MH_I2C_Read... [09:14:52]Read from MH i2c: 01 07 00 59 20 00 00 00 00 00 2E 0D BB [09:14:52]RasterBufferAndPrint [09:14:52]line [09:14:52]line [09:14:52]line [09:14:52]line [09:14:52]line [09:14:52]written 0, free lines is 3380 [09:14:52]MH_Cut [09:14:52]Write to MH i2c: D1 01 00 60 20 01 52 [09:14:52]Write i2c OK [09:14:52]MH_I2C_Read... [09:14:52]Read from MH i2c: D1 [09:14:52]MH_I2C_Read... [09:14:52]Read from MH i2c: D1 01 00 [09:14:52]MH_I2C_Read... [09:14:52]Read from MH i2c: D1 01 00 60 20 00 51 [09:14:52]Write to MH i2c: 01 00 00 61 20 81 [09:14:52]Write i2c OK [09:14:52]MH_I2C_Read... [09:14:52]OFD Sender: No OFD packet to send [09:14:53]*** Cut start [09:14:53]*** Partial cut [09:14:53]*** CUTSNS_PIN = 1 [09:14:53]*** CUTSNS_PIN = 0 [09:14:53]*** Brake cut motor [09:14:53]Read from MH i2c: 01 [09:14:53]MH_I2C_Read... [09:14:53]*** Stop cut motor [09:14:53]*** Cut end [09:14:53]Read from MH i2c: 01 07 00 [09:14:53]MH_I2C_Read... [09:14:53]Read from MH i2c: 01 07 00 61 20 00 00 00 00 00 FF 0F 96 [09:14:53]process_action close_receipt done [09:14:53]requested_data is exist [09:14:53]produce_requested_data [09:14:53]requested_item fm.sn is exist - process it [09:14:53]wFMCommunicate request_size=4 [09:14:53]MH_SAM_APDU [09:14:53]CAPDU: 80 11 00 00 [09:14:53]Write to MH i2c: E2 08 00 62 20 80 11 00 00 00 00 00 00 FC [09:14:53]Write i2c OK [09:14:53]MH_I2C_Read... [09:14:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:53]Read from MH i2c: E2 [09:14:53]MH_I2C_Read... [09:14:53]Read from MH i2c: E2 17 00 [09:14:53]MH_I2C_Read... [09:14:53]Read from MH i2c: E2 17 00 62 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 52 [09:14:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:14:53]wFMCommunicate OK [09:14:53]requested_item fd.num is exist - process it [09:14:53]SAM_PROTO_GetFieldsCounters [09:14:53]wFMCommunicate request_size=4 [09:14:53]MH_SAM_APDU [09:14:53]CAPDU: 80 13 00 00 [09:14:53]Write to MH i2c: E2 08 00 63 20 80 13 00 00 00 00 00 00 FF [09:14:53]Write i2c OK [09:14:53]MH_I2C_Read... [09:14:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:14:53]Read from MH i2c: E2 [09:14:53]MH_I2C_Read... [09:14:53]Read from MH i2c: E2 62 00 [09:14:53]MH_I2C_Read... [09:14:53]Read from MH i2c: E2 62 00 63 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2F 85 02 00 0E 04 04 00 C0 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 15 [09:14: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2F 85 02 00 0E 04 04 00 C0 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 [09:14:53]wFMCommunicate OK [09:14:53]SAM_PROTO_GetFieldsCounters done [09:14:53]requested_item shift.num is exist - process it [09:14:53]requested_item shift.opened is exist - process it [09:14:53]req_shift_opened [09:14:53]FM_GetShiftState [09:14:53]SAM_PROTO_GetShiftState [09:14:53]wFMCommunicate request_size=4 [09:14:53]MH_SAM_APDU [09:14:53]CAPDU: 80 13 01 00 [09:14:53]Write to MH i2c: E2 08 00 64 20 80 13 01 00 00 00 00 00 01 [09:14:53]Write i2c OK [09:14:53]MH_I2C_Read... [09:14:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:53]Read from MH i2c: E2 [09:14:53]MH_I2C_Read... [09:14:53]Read from MH i2c: E2 0E 00 [09:14:53]MH_I2C_Read... [09:14:53]Read from MH i2c: E2 0E 00 64 20 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 DA [09:14:53]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [09:14:53]wFMCommunicate OK [09:14:53]SAM_PROTO_GetShiftState done [09:14:53]FM_GetShiftState done [09:14:53]req_shift_opened done [09:14:53]requested_item shift.open_date is exist - process it [09:14:53]req_shift_open_date [09:14:53]req_shift_open_date done [09:14:53]produce_requested_data done [09:14:53]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165167,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [09:14:53]process_action_free close_receipt [09:14:53]json_value_free [09:14:53]json_value_free done [09:14:53]process_json_proto returns [09:14:53]Send response to host [09:14:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165167,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [09:14:53]free response buf [09:14:53]execute_script done [09:14:53]execute_script returns [09:14:53]free content buf [09:14:53]Sock 9.Close socket [09:14:53]Sock 9.Thread stoped [09:14:57]OFD Sender: No OFD packet to send [09:15:02]OFD Sender: No OFD packet to send [09:15:07]OFD Sender: No OFD packet to send [09:15:12]OFD Sender: No OFD packet to send [09:15:17]OFD Sender: No OFD packet to send [09:15:22]OFD Sender: No OFD packet to send [09:15:24]accept exits with 7 [09:15:24]New connection [09:15:24]New thread 3066928484 created [09:15:24]Thread 3066785124 joined [09:15:24]Waiting for new connection... [09:15:24] Sock 7.Parse request [09:15:24]Sock 7.Check first char [09:15:24]Sock 7.First char is OK [09:15:24]request: POST /json_proto HTTP/1.0 [09:15:24]Method: POST [09:15:24]URL: /json_proto [09:15:24]Method is POST - this is cgi request [09:15:24]url: /json_proto [09:15:24]query_string will be loaded in cgi processing [09:15:24]execute_cgi json_proto POST (null) [09:15:24]execute_cgi path=json_proto method=POST [09:15:24]POST find Content-Length [09:15:24]Host: 172.17.56.4:8080 [09:15:24]Content-Length: 677 [09:15:24]Content-Type: application/json [09:15:24] [09:15:24]POST finish read [09:15:24]Found Content-Length = 677 [09:15:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459270", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 8.670, "sum" : 570.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 570.00, "total" : 570.00, "payments": [ { "type": 0, "sum" : 570.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:24]execute_script... [09:15:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459270", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 8.670, "sum" : 570.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 570.00, "total" : 570.00, "payments": [ { "type": 0, "sum" : 570.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:24]POST & json_proto [09:15:24]process_json_proto [09:15:24]json parsed OK: [09:15:24]protocol is kg_v1.0 [09:15:24]action value=close_receipt [09:15:24]process_action close_receipt [09:15:24]cmd_close_receipt [09:15:24]MH_GetDate [09:15:24]Write to MH i2c: F0 00 00 65 20 74 [09:15:24]Write i2c OK [09:15:24]MH_I2C_Read... [09:15:24]Read from MH i2c: F0 [09:15:24]MH_I2C_Read... [09:15:24]Read from MH i2c: F0 09 00 [09:15:24]MH_I2C_Read... [09:15:24]Read from MH i2c: F0 09 00 65 20 00 B0 E8 94 66 C9 DC B2 64 CA [09:15:24]GetLastDocTimeStamp 1721034894 [09:15:24]current date 1721034928 [09:15:24]FM_GetShiftState [09:15:24]SAM_PROTO_GetShiftState [09:15:24]wFMCommunicate request_size=4 [09:15:24]MH_SAM_APDU [09:15:24]CAPDU: 80 13 01 00 [09:15:24]Write to MH i2c: E2 08 00 66 20 80 13 01 00 00 00 00 00 03 [09:15:24]Write i2c OK [09:15:24]MH_I2C_Read... [09:15:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:24]Read from MH i2c: E2 [09:15:24]MH_I2C_Read... [09:15:24]Read from MH i2c: E2 0E 00 [09:15:24]MH_I2C_Read... [09:15:24]Read from MH i2c: E2 0E 00 66 20 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 DC [09:15:24]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [09:15:24]wFMCommunicate OK [09:15:24]SAM_PROTO_GetShiftState done [09:15:24]FM_GetShiftState done [09:15:24]opened in 1721003876 [09:15:24]opened+sec_in_day 1721090276 [09:15:24]quantity*price = 57048 [09:15:24]sum+1 = 57050 [09:15:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 570.00 Внесено: 570.00 СДАЧА: 0.00 НСП 1% : 5.05 НДС 12% : 60.58 Наличными: 570.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 41 15.07.2024 09:15 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165168 ФПД: 58550483688020 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T091528&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165168&fm=58550483688020&tin=02508201610067®Number=0000000000090829&sum=57000 [09:15:25]StoreToDocumentArchive [09:15:25]shift 448 fd 165168 [09:15:25]save to /storage/0448/doc_00165168 [09:15:25]save last doc name /storage/0448/doc_00165168 to /storage/kkm_last_doc_name [09:15:25]save OK [09:15:25]Clear old archive folders... [09:15:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:15:25]tlvbuf is 0140C350 [09:15:25]SAM_PROTO_ClearQueue [09:15:25]wFMCommunicate request_size=4 [09:15:25]MH_SAM_APDU [09:15:25]CAPDU: 80 09 00 00 [09:15:25]Write to MH i2c: E2 08 00 73 20 80 09 00 00 00 00 00 00 05 [09:15:25]Write i2c OK [09:15:25]MH_I2C_Read... [09:15:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:15:25]Read from MH i2c: E2 [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: E2 03 00 [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: E2 03 00 73 20 00 90 00 07 [09:15:25]RAPDU: 90 00 [09:15:25]wFMCommunicate OK [09:15:25]SAM_PROTO_ClearQueue done [09:15:25]KKMCreateOFDPacket [09:15:25]OFDProtocolAddRootSTLVToBuf [09:15:25]FM_MakeSignedData [09:15:25]FM_MakeSignedData [09:15:25]SAM_PROTO_SignData [09:15:25]wFMCommunicate request_size=4 [09:15:25]MH_SAM_APDU [09:15:25]CAPDU: 80 0D 01 02 [09:15:25]Write to MH i2c: E2 08 00 74 20 80 0D 01 02 00 00 00 00 0D [09:15:25]Write i2c OK [09:15:25]MH_I2C_Read... [09:15:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:15:25]Read from MH i2c: E2 [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: E2 03 00 [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: E2 03 00 74 20 00 90 00 08 [09:15:25]RAPDU: 90 00 [09:15:25]wFMCommunicate OK [09:15:25]wFMCommunicate request_size=255 [09:15:25]MH_SAM_APDU [09:15:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 21 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 D9 DE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 DE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AA 17 00 00 00 00 07 04 06 00 A8 DE 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 B0 E8 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 30 85 02 00 35 04 06 00 35 [09:15:25]Write to MH i2c: E2 02 01 75 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 21 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 D9 DE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 DE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AA 17 00 00 00 00 07 04 06 00 A8 DE 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 B0 E8 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 30 85 02 00 35 04 06 00 35 00 00 CF [09:15:25]Write i2c OK [09:15:25]MH_I2C_Read... [09:15:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:25]Read from MH i2c: E2 [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: E2 03 00 [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: E2 03 00 75 20 00 90 00 09 [09:15:25]RAPDU: 90 00 [09:15:25]wFMCommunicate OK [09:15:25]wFMCommunicate request_size=10 [09:15:25]MH_SAM_APDU [09:15:25]CAPDU: 80 0D 02 02 05 40 58 C8 1A 54 [09:15:25]Write to MH i2c: E2 0D 00 76 20 80 0D 02 02 05 00 40 58 C8 1A 54 00 00 E8 [09:15:25]Write i2c OK [09:15:25]MH_I2C_Read... [09:15:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:25]Read from MH i2c: E2 [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: E2 03 00 [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: E2 03 00 76 20 00 90 00 0A [09:15:25]RAPDU: 90 00 [09:15:25]wFMCommunicate OK [09:15:25]wFMCommunicate request_size=4 [09:15:25]MH_SAM_APDU [09:15:25]CAPDU: 80 0D 03 02 [09:15:25]Write to MH i2c: E2 08 00 77 20 80 0D 03 02 00 00 00 00 12 [09:15:25]Write i2c OK [09:15:25]MH_I2C_Read... [09:15:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:15:25]Read from MH i2c: E2 [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: E2 0B 00 [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: E2 0B 00 77 20 00 29 25 2D C4 30 B0 D5 1D 90 00 24 [09:15:25]RAPDU: 29 25 2D C4 30 B0 D5 1D 90 00 [09:15:25]wFMCommunicate OK [09:15:25]SAM_PROTO_SignData done [09:15:25]FM_MakeSignedData done [09:15:25]CreateOFDProtocolMessage [09:15:25]wFMCommunicate request_size=4 [09:15:25]MH_SAM_APDU [09:15:25]CAPDU: 80 11 00 00 [09:15:25]Write to MH i2c: E2 08 00 78 20 80 11 00 00 00 00 00 00 12 [09:15:25]Write i2c OK [09:15:25]MH_I2C_Read... [09:15:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:25]Read from MH i2c: E2 [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: E2 17 00 [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: E2 17 00 78 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 68 [09:15:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:15:25]wFMCommunicate OK [09:15:25]CreateOFDProtocolMessage done [09:15:25]OFDSenderStorePacket 165168 [09:15:25]StoreOFDPacket docnum=165168 [09:15:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 77 50 07 01 D4 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 21 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 D9 DE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 DE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AA 17 00 00 00 00 07 04 06 00 A8 DE 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 B0 E8 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 30 85 02 00 35 04 06 00 35 40 58 C8 1A 54 29 25 2D C4 30 B0 D5 1D [09:15:25]CheckFolder [09:15:25]dirname=/storage/ofd_packets [09:15:25]CheckFolder done [09:15:25]ProducePacketName [09:15:25]name=ofd_packets/00165168 [09:15:25]NVStorageSaveData ofd_packets/00165168 [09:15:25]File name is /storage/ofd_packets/00165168 [09:15:25]Write 301 bytes [09:15:25]NVStorageSaveData done [09:15:25]OFDSenderStorePacket done [09:15:25]KKMCreateOFDPacket done [09:15:25]NVStorageSaveData kkm_last_timestamp [09:15:25]File name is /storage/kkm_last_timestamp [09:15:25]Write 4 bytes [09:15:25]NVStorageSaveData done [09:15:25]ExternCall_PrintAddStr [09:15:25]wPrintStart [09:15:25]Write to MH i2c: 01 00 00 79 20 99 [09:15:25]Write i2c OK [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: 01 [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: 01 07 00 [09:15:25]MH_I2C_Read... [09:15:25]Read from MH i2c: 01 07 00 79 20 00 00 00 00 00 FF 0F AE [09:15:25]RasterBufferAndPrint [09:15:25]line Счет N : (1)459270 [09:15:25]line ИНН: 02508201610067 [09:15:25]line Контрольно-Кассовый Чек [09:15:25]line ПРОДАЖА [09:15:25]line ТРК (МРК, ГНК) : 12 [09:15:25]line Товар: 2710124130 [09:15:25]line Аи-92-К-5 [09:15:25]line 8.670 * 65.80 [09:15:25]line = 570.49 [09:15:25]line НДС 12% НСП 1% [09:15:25]line > о реализуемом товаре [09:15:25]line ОКРУГЛЕНИЕ: -0.49 [09:15:25]line ИТОГО: 570.00 [09:15:25]line Внесено: 570.00 [09:15:25]line СДАЧА: 0.00 [09:15:25]line НСП 1% : 5.05 [09:15:25]line НДС 12% : 60.58 [09:15:25]line Наличными: 570.00 [09:15:25]line Безнал.: 0.00 [09:15:25]line Место: АЗС № 72 "Партнер Нефть" [09:15:25]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:15:25]line СНО: Общий режим [09:15:25]line Чек 41 15.07.2024 09:15 [09:15:25]line Смена: 448 ФФД: 1.0 [09:15:25]line ЗНМ: 0300000160 [09:15:25]line РНМ: 0000000000090829 [09:15:25]line Версия ККМ: 001 [09:15:25]line ФМ: 0000000000874718 [09:15:25]line ФД: 165168 [09:15:25]line ФПД: 58550483688020 [09:15:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T091528&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165168&fm=58550483688020&tin=02508201610067®Number=0000000000090829&sum=57000 [09:15:26]OFD Sender: Processing packet 165168 [packets to send 106, broken 105] [09:15:26]ProducePacketName [09:15:26]name=ofd_packets/00165168 [09:15:26]OFD Sender: To server: pG, [09:15:26]CommunicateWithHost lk.salyk.kg:30040 [09:15:26]ConnectInit lk.salyk.kg [09:15:26]written 0, free lines is 4095 [09:15:26]Connected sock=10 [09:15:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 77 50 07 01 D4 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 21 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 D9 DE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 DE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AA 17 00 00 00 00 07 04 06 00 A8 DE 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 B0 E8 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 30 85 02 00 35 04 06 00 35 40 58 C8 1A 54 29 25 2D C4 30 B0 D5 1D [09:15:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 B7 53 47 00 39 D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 30 85 02 00 F4 03 04 00 3B 8F 94 66 B6 04 01 00 00 DA 7B B5 B8 3A F0 28 FD [09:15:26]CommunicateWithHost err = 0 [09:15:26]CheckOFDResponse [09:15:26]1017 (14) - 77093643461234 [09:15:26]1041 (16) - 0000000000874718 [09:15:26]1040 (4) - 165168 [09:15:26]1012 (4) - 15.07.2024 02:53 [09:15:26]1206 (1) - 0 [09:15:26]OFD Sender: Remove packet 165168 [09:15:26]ProducePacketName [09:15:26]name=ofd_packets/00165168 [09:15:26]NVStorageDeleteData [09:15:26]Write to MH i2c: 01 00 00 A3 20 C3 [09:15:26]Write i2c OK [09:15:26]MH_I2C_Read... [09:15:26]Read from MH i2c: 01 [09:15:26]MH_I2C_Read... [09:15:26]Read from MH i2c: 01 07 00 [09:15:26]MH_I2C_Read... [09:15:26]Read from MH i2c: 01 07 00 A3 20 00 00 00 00 00 03 0D DA [09:15:26]RasterBufferAndPrint [09:15:26]line [09:15:26]line [09:15:26]line [09:15:26]line [09:15:26]line [09:15:26]written 0, free lines is 3337 [09:15:26]MH_Cut [09:15:26]Write to MH i2c: D1 01 00 AA 20 01 9C [09:15:26]Write i2c OK [09:15:26]MH_I2C_Read... [09:15:26]Read from MH i2c: D1 [09:15:26]MH_I2C_Read... [09:15:26]Read from MH i2c: D1 01 00 [09:15:26]MH_I2C_Read... [09:15:26]Read from MH i2c: D1 01 00 AA 20 00 9B [09:15:26]Write to MH i2c: 01 00 00 AB 20 CB [09:15:26]Write i2c OK [09:15:26]MH_I2C_Read... [09:15:26]OFD Sender: No OFD packet to send [09:15:27]*** Cut start [09:15:27]*** Partial cut [09:15:27]*** CUTSNS_PIN = 1 [09:15:27]*** CUTSNS_PIN = 0 [09:15:27]*** Brake cut motor [09:15:27]Read from MH i2c: 01 [09:15:27]MH_I2C_Read... [09:15:27]*** Stop cut motor [09:15:27]*** Cut end [09:15:27]Read from MH i2c: 01 07 00 [09:15:27]MH_I2C_Read... [09:15:27]Read from MH i2c: 01 07 00 AB 20 00 00 00 00 00 FF 0F E0 [09:15:27]process_action close_receipt done [09:15:27]requested_data is exist [09:15:27]produce_requested_data [09:15:27]requested_item fm.sn is exist - process it [09:15:27]wFMCommunicate request_size=4 [09:15:27]MH_SAM_APDU [09:15:27]CAPDU: 80 11 00 00 [09:15:27]Write to MH i2c: E2 08 00 AC 20 80 11 00 00 00 00 00 00 46 [09:15:27]Write i2c OK [09:15:27]MH_I2C_Read... [09:15:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:27]Read from MH i2c: E2 [09:15:27]MH_I2C_Read... [09:15:27]Read from MH i2c: E2 17 00 [09:15:27]MH_I2C_Read... [09:15:27]Read from MH i2c: E2 17 00 AC 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 9C [09:15:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:15:27]wFMCommunicate OK [09:15:27]requested_item fd.num is exist - process it [09:15:27]SAM_PROTO_GetFieldsCounters [09:15:27]wFMCommunicate request_size=4 [09:15:27]MH_SAM_APDU [09:15:27]CAPDU: 80 13 00 00 [09:15:27]Write to MH i2c: E2 08 00 AD 20 80 13 00 00 00 00 00 00 49 [09:15:27]Write i2c OK [09:15:27]MH_I2C_Read... [09:15:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:15:27]Read from MH i2c: E2 [09:15:27]MH_I2C_Read... [09:15:27]Read from MH i2c: E2 62 00 [09:15:27]MH_I2C_Read... [09:15:27]Read from MH i2c: E2 62 00 AD 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 30 85 02 00 0E 04 04 00 C0 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 63 [09:15:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 30 85 02 00 0E 04 04 00 C0 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 [09:15:27]wFMCommunicate OK [09:15:27]SAM_PROTO_GetFieldsCounters done [09:15:27]requested_item shift.num is exist - process it [09:15:27]requested_item shift.opened is exist - process it [09:15:27]req_shift_opened [09:15:27]FM_GetShiftState [09:15:27]SAM_PROTO_GetShiftState [09:15:27]wFMCommunicate request_size=4 [09:15:27]MH_SAM_APDU [09:15:27]CAPDU: 80 13 01 00 [09:15:27]Write to MH i2c: E2 08 00 AE 20 80 13 01 00 00 00 00 00 4B [09:15:27]Write i2c OK [09:15:27]MH_I2C_Read... [09:15:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:28]Read from MH i2c: E2 [09:15:28]MH_I2C_Read... [09:15:28]Read from MH i2c: E2 0E 00 [09:15:28]MH_I2C_Read... [09:15:28]Read from MH i2c: E2 0E 00 AE 20 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 24 [09:15:28]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [09:15:28]wFMCommunicate OK [09:15:28]SAM_PROTO_GetShiftState done [09:15:28]FM_GetShiftState done [09:15:28]req_shift_opened done [09:15:28]requested_item shift.open_date is exist - process it [09:15:28]req_shift_open_date [09:15:28]req_shift_open_date done [09:15:28]produce_requested_data done [09:15:28]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165168,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [09:15:28]process_action_free close_receipt [09:15:28]json_value_free [09:15:28]json_value_free done [09:15:28]process_json_proto returns [09:15:28]Send response to host [09:15:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165168,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [09:15:28]free response buf [09:15:28]execute_script done [09:15:28]execute_script returns [09:15:28]free content buf [09:15:28]Sock 7.Close socket [09:15:28]Sock 7.Thread stoped [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:01]OFD Sender: No OFD packet to send [09:16:06]OFD Sender: No OFD packet to send [09:16:11]OFD Sender: No OFD packet to send [09:16:16]OFD Sender: No OFD packet to send [09:16:21]OFD Sender: No OFD packet to send [09:16:26]OFD Sender: No OFD packet to send [09:16:31]OFD Sender: No OFD packet to send [09:16:36]OFD Sender: No OFD packet to send [09:16:41]OFD Sender: No OFD packet to send [09:16:46]OFD Sender: No OFD packet to send [09:16:51]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:33]accept exits with 9 [09:22:33]New connection [09:22:33]New thread 3066785124 created [09:22:33]Thread 3066928484 joined [09:22:33]Waiting for new connection... [09:22:33] Sock 9.Parse request [09:22:33]Sock 9.Check first char [09:22:33]Sock 9.First char is OK [09:22:33]request: POST /json_proto HTTP/1.0 [09:22:33]Method: POST [09:22:33]URL: /json_proto [09:22:33]Method is POST - this is cgi request [09:22:33]url: /json_proto [09:22:33]query_string will be loaded in cgi processing [09:22:33]execute_cgi json_proto POST (null) [09:22:33]execute_cgi path=json_proto method=POST [09:22:33]POST find Content-Length [09:22:33]Host: 172.17.56.4:8080 [09:22:33]Content-Length: 677 [09:22:33]Content-Type: application/json [09:22:33] [09:22:33]POST finish read [09:22:33]Found Content-Length = 677 [09:22:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459271", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:22:33]execute_script... [09:22: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)459271", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:22:33]POST & json_proto [09:22:33]process_json_proto [09:22:33]json parsed OK: [09:22:33]protocol is kg_v1.0 [09:22:33]action value=close_receipt [09:22:33]process_action close_receipt [09:22:33]cmd_close_receipt [09:22:33]MH_GetDate [09:22:33]Write to MH i2c: F0 00 00 AF 20 BE [09:22:33]Write i2c OK [09:22:33]MH_I2C_Read... [09:22:33]Read from MH i2c: F0 [09:22:33]MH_I2C_Read... [09:22:33]Read from MH i2c: F0 09 00 [09:22:33]MH_I2C_Read... [09:22:33]Read from MH i2c: F0 09 00 AF 20 00 5D EA 94 66 C9 DC B2 64 C3 [09:22:33]GetLastDocTimeStamp 1721034928 [09:22:33]current date 1721035357 [09:22:33]FM_GetShiftState [09:22:33]SAM_PROTO_GetShiftState [09:22:33]wFMCommunicate request_size=4 [09:22:33]MH_SAM_APDU [09:22:33]CAPDU: 80 13 01 00 [09:22:33]Write to MH i2c: E2 08 00 B0 20 80 13 01 00 00 00 00 00 4D [09:22:33]Write i2c OK [09:22:33]MH_I2C_Read... [09:22:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:33]Read from MH i2c: E2 [09:22:33]MH_I2C_Read... [09:22:33]Read from MH i2c: E2 0E 00 [09:22:33]MH_I2C_Read... [09:22:33]Read from MH i2c: E2 0E 00 B0 20 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 26 [09:22:33]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [09:22:33]wFMCommunicate OK [09:22:33]SAM_PROTO_GetShiftState done [09:22:33]FM_GetShiftState done [09:22:33]opened in 1721003876 [09:22:33]opened+sec_in_day 1721090276 [09:22:33]quantity*price = 50008 [09:22:33]sum+1 = 50009 [09:22:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 42 15.07.2024 09:22 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165169 ФПД: 127611311688303 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T092237&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165169&fm=127611311688303&tin=02508201610067®Number=0000000000090829&sum=50000 [09:22:34]StoreToDocumentArchive [09:22:34]shift 448 fd 165169 [09:22:34]save to /storage/0448/doc_00165169 [09:22:34]save last doc name /storage/0448/doc_00165169 to /storage/kkm_last_doc_name [09:22:34]save OK [09:22:34]Clear old archive folders... [09:22:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:22:34]tlvbuf is B6DA22C0 [09:22:34]SAM_PROTO_ClearQueue [09:22:34]wFMCommunicate request_size=4 [09:22:34]MH_SAM_APDU [09:22:34]CAPDU: 80 09 00 00 [09:22:34]Write to MH i2c: E2 08 00 BD 20 80 09 00 00 00 00 00 00 4F [09:22:34]Write i2c OK [09:22:34]MH_I2C_Read... [09:22:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:22:34]Read from MH i2c: E2 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: E2 03 00 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: E2 03 00 BD 20 00 90 00 51 [09:22:34]RAPDU: 90 00 [09:22:34]wFMCommunicate OK [09:22:34]SAM_PROTO_ClearQueue done [09:22:34]KKMCreateOFDPacket [09:22:34]OFDProtocolAddRootSTLVToBuf [09:22:34]FM_MakeSignedData [09:22:34]FM_MakeSignedData [09:22:34]SAM_PROTO_SignData [09:22:34]wFMCommunicate request_size=4 [09:22:34]MH_SAM_APDU [09:22:34]CAPDU: 80 0D 01 02 [09:22:34]Write to MH i2c: E2 08 00 BE 20 80 0D 01 02 00 00 00 00 57 [09:22:34]Write i2c OK [09:22:34]MH_I2C_Read... [09:22:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:22:34]Read from MH i2c: E2 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: E2 03 00 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: E2 03 00 BE 20 00 90 00 52 [09:22:34]RAPDU: 90 00 [09:22:34]wFMCommunicate OK [09:22:34]wFMCommunicate request_size=255 [09:22:34]MH_SAM_APDU [09:22: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 5D EA 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 31 85 02 00 35 04 06 00 74 [09:22:34]Write to MH i2c: E2 02 01 BF 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 5D EA 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 31 85 02 00 35 04 06 00 74 00 00 28 [09:22:34]Write i2c OK [09:22:34]MH_I2C_Read... [09:22:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:34]Read from MH i2c: E2 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: E2 03 00 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: E2 03 00 BF 20 00 90 00 53 [09:22:34]RAPDU: 90 00 [09:22:34]wFMCommunicate OK [09:22:34]wFMCommunicate request_size=10 [09:22:34]MH_SAM_APDU [09:22:34]CAPDU: 80 0D 02 02 05 0F D2 E7 0A 6F [09:22:34]Write to MH i2c: E2 0D 00 C0 20 80 0D 02 02 05 00 0F D2 E7 0A 6F 00 00 A5 [09:22:34]Write i2c OK [09:22:34]MH_I2C_Read... [09:22:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:34]Read from MH i2c: E2 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: E2 03 00 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: E2 03 00 C0 20 00 90 00 54 [09:22:34]RAPDU: 90 00 [09:22:34]wFMCommunicate OK [09:22:34]wFMCommunicate request_size=4 [09:22:34]MH_SAM_APDU [09:22:34]CAPDU: 80 0D 03 02 [09:22:34]Write to MH i2c: E2 08 00 C1 20 80 0D 03 02 00 00 00 00 5C [09:22:34]Write i2c OK [09:22:34]MH_I2C_Read... [09:22:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:22:34]Read from MH i2c: E2 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: E2 0B 00 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: E2 0B 00 C1 20 00 17 04 90 3A 2E 36 EA B7 90 00 47 [09:22:34]RAPDU: 17 04 90 3A 2E 36 EA B7 90 00 [09:22:34]wFMCommunicate OK [09:22:34]SAM_PROTO_SignData done [09:22:34]FM_MakeSignedData done [09:22:34]CreateOFDProtocolMessage [09:22:34]wFMCommunicate request_size=4 [09:22:34]MH_SAM_APDU [09:22:34]CAPDU: 80 11 00 00 [09:22:34]Write to MH i2c: E2 08 00 C2 20 80 11 00 00 00 00 00 00 5C [09:22:34]Write i2c OK [09:22:34]MH_I2C_Read... [09:22:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:34]Read from MH i2c: E2 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: E2 17 00 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: E2 17 00 C2 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B2 [09:22:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:22:34]wFMCommunicate OK [09:22:34]CreateOFDProtocolMessage done [09:22:34]OFDSenderStorePacket 165169 [09:22:34]StoreOFDPacket docnum=165169 [09:22:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 01 1C 07 01 87 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 5D EA 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 31 85 02 00 35 04 06 00 74 0F D2 E7 0A 6F 17 04 90 3A 2E 36 EA B7 [09:22:34]CheckFolder [09:22:34]dirname=/storage/ofd_packets [09:22:34]CheckFolder done [09:22:34]ProducePacketName [09:22:34]name=ofd_packets/00165169 [09:22:34]NVStorageSaveData ofd_packets/00165169 [09:22:34]File name is /storage/ofd_packets/00165169 [09:22:34]Write 301 bytes [09:22:34]NVStorageSaveData done [09:22:34]OFDSenderStorePacket done [09:22:34]KKMCreateOFDPacket done [09:22:34]NVStorageSaveData kkm_last_timestamp [09:22:34]File name is /storage/kkm_last_timestamp [09:22:34]Write 4 bytes [09:22:34]NVStorageSaveData done [09:22:34]ExternCall_PrintAddStr [09:22:34]wPrintStart [09:22:34]Write to MH i2c: 01 00 00 C3 20 E3 [09:22:34]Write i2c OK [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: 01 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: 01 07 00 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: 01 07 00 C3 20 00 00 00 00 00 FF 0F F8 [09:22:34]RasterBufferAndPrint [09:22:34]line Счет N : (1)459271 [09:22:34]line ИНН: 02508201610067 [09:22:34]line Контрольно-Кассовый Чек [09:22:34]line ПРОДАЖА [09:22:34]line ТРК (МРК, ГНК) : 22 [09:22:34]line Товар: 2710124130 [09:22:34]line Аи-92-К-5 [09:22:34]line 7.600 * 65.80 [09:22:34]line = 500.08 [09:22:34]line НДС 12% НСП 1% [09:22:34]line > о реализуемом товаре [09:22:34]line ОКРУГЛЕНИЕ: -0.08 [09:22:34]line ИТОГО: 500.00 [09:22:34]line Внесено: 500.00 [09:22:34]line СДАЧА: 0.00 [09:22:34]line НСП 1% : 4.42 [09:22:34]line НДС 12% : 53.11 [09:22:34]line Наличными: 500.00 [09:22:34]line Безнал.: 0.00 [09:22:34]line Место: АЗС № 72 "Партнер Нефть" [09:22:34]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:22:34]line СНО: Общий режим [09:22:34]line Чек 42 15.07.2024 09:22 [09:22:34]line Смена: 448 ФФД: 1.0 [09:22:34]line ЗНМ: 0300000160 [09:22:34]line РНМ: 0000000000090829 [09:22:34]line Версия ККМ: 001 [09:22:34]line ФМ: 0000000000874718 [09:22:34]line ФД: 165169 [09:22:34]line ФПД: 127611311688303 [09:22:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T092237&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165169&fm=127611311688303&tin=02508201610067®Number=0000000000090829&sum=50000 [09:22:35]written 0, free lines is 4095 [09:22:35]OFD Sender: Processing packet 165169 [packets to send 106, broken 105] [09:22:35]ProducePacketName [09:22:35]name=ofd_packets/00165169 [09:22:35]OFD Sender: To server: pG, [09:22:35]CommunicateWithHost lk.salyk.kg:30040 [09:22:35]ConnectInit lk.salyk.kg [09:22:35]Write to MH i2c: 01 00 00 ED 20 0D [09:22:35]Write i2c OK [09:22:35]MH_I2C_Read... [09:22:35]Read from MH i2c: 01 [09:22:35]MH_I2C_Read... [09:22:35]Read from MH i2c: 01 07 00 [09:22:35]MH_I2C_Read... [09:22:35]Read from MH i2c: 01 07 00 ED 20 00 00 00 00 00 F2 0C 12 [09:22:35]RasterBufferAndPrint [09:22:35]line [09:22:35]line [09:22:35]line [09:22:35]line [09:22:35]line [09:22:35]written 0, free lines is 3320 [09:22:35]MH_Cut [09:22:35]Write to MH i2c: D1 01 00 F4 20 01 E6 [09:22:35]Write i2c OK [09:22:35]MH_I2C_Read... [09:22:35]Read from MH i2c: D1 [09:22:35]MH_I2C_Read... [09:22:35]Read from MH i2c: D1 01 00 [09:22:35]MH_I2C_Read... [09:22:35]Read from MH i2c: D1 01 00 F4 20 00 E5 [09:22:35]Write to MH i2c: 01 00 00 F5 20 15 [09:22:35]Write i2c OK [09:22:35]MH_I2C_Read... [09:22:36]*** Cut start [09:22:36]*** Partial cut [09:22:36]*** CUTSNS_PIN = 1 [09:22:36]*** CUTSNS_PIN = 0 [09:22:36]*** Brake cut motor [09:22:36]Read from MH i2c: 01 [09:22:36]MH_I2C_Read... [09:22:36]*** Stop cut motor [09:22:36]*** Cut end [09:22:36]Read from MH i2c: 01 07 00 [09:22:36]MH_I2C_Read... [09:22:36]Read from MH i2c: 01 07 00 F5 20 00 00 00 00 00 FF 0F 2A [09:22:36]process_action close_receipt done [09:22:36]requested_data is exist [09:22:36]produce_requested_data [09:22:36]requested_item fm.sn is exist - process it [09:22:36]wFMCommunicate request_size=4 [09:22:36]MH_SAM_APDU [09:22:36]CAPDU: 80 11 00 00 [09:22:36]Write to MH i2c: E2 08 00 F6 20 80 11 00 00 00 00 00 00 90 [09:22:36]Write i2c OK [09:22:36]MH_I2C_Read... [09:22:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:37]Read from MH i2c: E2 [09:22:37]MH_I2C_Read... [09:22:37]Read from MH i2c: E2 17 00 [09:22:37]MH_I2C_Read... [09:22:37]Read from MH i2c: E2 17 00 F6 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E6 [09:22:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:22:37]wFMCommunicate OK [09:22:37]requested_item fd.num is exist - process it [09:22:37]SAM_PROTO_GetFieldsCounters [09:22:37]wFMCommunicate request_size=4 [09:22:37]MH_SAM_APDU [09:22:37]CAPDU: 80 13 00 00 [09:22:37]Write to MH i2c: E2 08 00 F7 20 80 13 00 00 00 00 00 00 93 [09:22:37]Write i2c OK [09:22:37]MH_I2C_Read... [09:22:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:22:37]Read from MH i2c: E2 [09:22:37]MH_I2C_Read... [09:22:37]Read from MH i2c: E2 62 00 [09:22:37]MH_I2C_Read... [09:22:37]Read from MH i2c: E2 62 00 F7 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 31 85 02 00 0E 04 04 00 C0 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 B1 [09:22:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 31 85 02 00 0E 04 04 00 C0 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 [09:22:37]wFMCommunicate OK [09:22:37]SAM_PROTO_GetFieldsCounters done [09:22:37]requested_item shift.num is exist - process it [09:22:37]requested_item shift.opened is exist - process it [09:22:37]req_shift_opened [09:22:37]FM_GetShiftState [09:22:37]SAM_PROTO_GetShiftState [09:22:37]wFMCommunicate request_size=4 [09:22:37]MH_SAM_APDU [09:22:37]CAPDU: 80 13 01 00 [09:22:37]Write to MH i2c: E2 08 00 F8 20 80 13 01 00 00 00 00 00 95 [09:22:37]Write i2c OK [09:22:37]MH_I2C_Read... [09:22:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:37]Read from MH i2c: E2 [09:22:37]MH_I2C_Read... [09:22:37]Read from MH i2c: E2 0E 00 [09:22:37]MH_I2C_Read... [09:22:37]Read from MH i2c: E2 0E 00 F8 20 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 6E [09:22:37]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [09:22:37]wFMCommunicate OK [09:22:37]SAM_PROTO_GetShiftState done [09:22:37]FM_GetShiftState done [09:22:37]req_shift_opened done [09:22:37]requested_item shift.open_date is exist - process it [09:22:37]req_shift_open_date [09:22:37]req_shift_open_date done [09:22:37]produce_requested_data done [09:22:37]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165169,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [09:22:37]process_action_free close_receipt [09:22:37]json_value_free [09:22:37]json_value_free done [09:22:37]process_json_proto returns [09:22:37]Send response to host [09:22:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165169,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [09:22:37]free response buf [09:22:37]execute_script done [09:22:37]execute_script returns [09:22:37]free content buf [09:22:37]Sock 9.Close socket [09:22:37]Sock 9.Thread stoped [09:24:45]ConnectInit Can't connect to host [09:24:45]CommunicateWithHost connect error [09:24:45]CommunicateWithHost err = -1 [09:24:45]OFD Sender: Server communicate error [09:24:50]OFD Sender: Processing packet 165169 [packets to send 106, broken 105] [09:24:50]ProducePacketName [09:24:50]name=ofd_packets/00165169 [09:24:50]OFD Sender: To server: pG, [09:24:50]CommunicateWithHost lk.salyk.kg:30040 [09:24:50]ConnectInit lk.salyk.kg [09:24:50]Connected sock=9 [09:24: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 37 31 38 0F 01 00 00 01 1C 07 01 87 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 5D EA 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 31 85 02 00 35 04 06 00 74 0F D2 E7 0A 6F 17 04 90 3A 2E 36 EA B7 [09:24:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 8A 4A 47 00 F0 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 31 85 02 00 F4 03 04 00 70 91 94 66 B6 04 01 00 00 55 7D 0E A3 59 DA 5C 99 [09:24:51]CommunicateWithHost err = 0 [09:24:51]CheckOFDResponse [09:24:51]1017 (14) - 77093643461234 [09:24:51]1041 (16) - 0000000000874718 [09:24:51]1040 (4) - 165169 [09:24:51]1012 (4) - 15.07.2024 03:03 [09:24:51]1206 (1) - 0 [09:24:51]OFD Sender: Remove packet 165169 [09:24:51]ProducePacketName [09:24:51]name=ofd_packets/00165169 [09:24:51]NVStorageDeleteData [09:24:51]OFD Sender: No OFD packet to send [09:24:56]OFD Sender: No OFD packet to send [09:25:01]OFD Sender: No OFD packet to send [09:25:06]OFD Sender: No OFD packet to send [09:25:11]OFD Sender: No OFD packet to send [09:25:16]OFD Sender: No OFD packet to send [09:25:21]OFD Sender: No OFD packet to send [09:25:26]OFD Sender: No OFD packet to send [09:25:31]OFD Sender: No OFD packet to send [09:25:36]OFD Sender: No OFD packet to send [09:25:39]accept exits with 7 [09:25:39]New connection [09:25:39]New thread 3066928484 created [09:25:39]Thread 3066785124 joined [09:25:39]Waiting for new connection... [09:25:39] Sock 7.Parse request [09:25:39]Sock 7.Check first char [09:25:39]Sock 7.First char is OK [09:25:39]request: POST /json_proto HTTP/1.0 [09:25:39]Method: POST [09:25:39]URL: /json_proto [09:25:39]Method is POST - this is cgi request [09:25:39]url: /json_proto [09:25:39]query_string will be loaded in cgi processing [09:25:39]execute_cgi json_proto POST (null) [09:25:39]execute_cgi path=json_proto method=POST [09:25:39]POST find Content-Length [09:25:39]Host: 172.17.56.4:8080 [09:25:39]Content-Length: 677 [09:25:39]Content-Type: application/json [09:25:39] [09:25:39]POST finish read [09:25:39]Found Content-Length = 677 [09:25:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459272", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:39]execute_script... [09:25: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)459272", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:39]POST & json_proto [09:25:39]process_json_proto [09:25:39]json parsed OK: [09:25:39]protocol is kg_v1.0 [09:25:39]action value=close_receipt [09:25:39]process_action close_receipt [09:25:39]cmd_close_receipt [09:25:39]MH_GetDate [09:25:39]Write to MH i2c: F0 00 00 F9 20 08 [09:25:39]Write i2c OK [09:25:39]MH_I2C_Read... [09:25:39]Read from MH i2c: F0 [09:25:39]MH_I2C_Read... [09:25:39]Read from MH i2c: F0 09 00 [09:25:39]MH_I2C_Read... [09:25:39]Read from MH i2c: F0 09 00 F9 20 00 18 EB 94 66 C9 DC B2 64 C9 [09:25:39]GetLastDocTimeStamp 1721035357 [09:25:39]current date 1721035544 [09:25:39]FM_GetShiftState [09:25:39]SAM_PROTO_GetShiftState [09:25:39]wFMCommunicate request_size=4 [09:25:39]MH_SAM_APDU [09:25:39]CAPDU: 80 13 01 00 [09:25:39]Write to MH i2c: E2 08 00 FA 20 80 13 01 00 00 00 00 00 97 [09:25:39]Write i2c OK [09:25:39]MH_I2C_Read... [09:25:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:39]Read from MH i2c: E2 [09:25:39]MH_I2C_Read... [09:25:39]Read from MH i2c: E2 0E 00 [09:25:39]MH_I2C_Read... [09:25:39]Read from MH i2c: E2 0E 00 FA 20 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 70 [09:25:39]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [09:25:39]wFMCommunicate OK [09:25:39]SAM_PROTO_GetShiftState done [09:25:39]FM_GetShiftState done [09:25:39]opened in 1721003876 [09:25:39]opened+sec_in_day 1721090276 [09:25:39]quantity*price = 50008 [09:25:39]sum+1 = 50009 [09:25:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 43 15.07.2024 09:25 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165170 ФПД: 168750012092545 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T092544&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165170&fm=168750012092545&tin=02508201610067®Number=0000000000090829&sum=50000 [09:25:40]StoreToDocumentArchive [09:25:40]shift 448 fd 165170 [09:25:40]save to /storage/0448/doc_00165170 [09:25:40]save last doc name /storage/0448/doc_00165170 to /storage/kkm_last_doc_name [09:25:40]save OK [09:25:40]Clear old archive folders... [09:25:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:25:40]tlvbuf is 013D8740 [09:25:40]SAM_PROTO_ClearQueue [09:25:40]wFMCommunicate request_size=4 [09:25:40]MH_SAM_APDU [09:25:40]CAPDU: 80 09 00 00 [09:25:40]Write to MH i2c: E2 08 00 07 21 80 09 00 00 00 00 00 00 9A [09:25:40]Write i2c OK [09:25:40]MH_I2C_Read... [09:25:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:25:40]Read from MH i2c: E2 [09:25:40]MH_I2C_Read... [09:25:40]Read from MH i2c: E2 03 00 [09:25:40]MH_I2C_Read... [09:25:40]Read from MH i2c: E2 03 00 07 21 00 90 00 9C [09:25:40]RAPDU: 90 00 [09:25:40]wFMCommunicate OK [09:25:40]SAM_PROTO_ClearQueue done [09:25:40]KKMCreateOFDPacket [09:25:40]OFDProtocolAddRootSTLVToBuf [09:25:40]FM_MakeSignedData [09:25:40]FM_MakeSignedData [09:25:40]SAM_PROTO_SignData [09:25:40]wFMCommunicate request_size=4 [09:25:40]MH_SAM_APDU [09:25:40]CAPDU: 80 0D 01 02 [09:25:40]Write to MH i2c: E2 08 00 08 21 80 0D 01 02 00 00 00 00 A2 [09:25:40]Write i2c OK [09:25:40]MH_I2C_Read... [09:25:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:25:40]Read from MH i2c: E2 [09:25:40]MH_I2C_Read... [09:25:40]Read from MH i2c: E2 03 00 [09:25:40]MH_I2C_Read... [09:25:40]Read from MH i2c: E2 03 00 08 21 00 90 00 9D [09:25:40]RAPDU: 90 00 [09:25:40]wFMCommunicate OK [09:25:40]wFMCommunicate request_size=255 [09:25:40]MH_SAM_APDU [09:25:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 18 EB 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 32 85 02 00 35 04 06 00 99 [09:25:40]Write to MH i2c: E2 02 01 09 21 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 18 EB 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 32 85 02 00 35 04 06 00 99 00 00 56 [09:25:40]Write i2c OK [09:25:40]MH_I2C_Read... [09:25:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:41]Read from MH i2c: E2 [09:25:41]MH_I2C_Read... [09:25:41]Read from MH i2c: E2 03 00 [09:25:41]MH_I2C_Read... [09:25:41]Read from MH i2c: E2 03 00 09 21 00 90 00 9E [09:25:41]RAPDU: 90 00 [09:25:41]wFMCommunicate OK [09:25:41]wFMCommunicate request_size=10 [09:25:41]MH_SAM_APDU [09:25:41]CAPDU: 80 0D 02 02 05 7A 2C 86 D0 81 [09:25:41]Write to MH i2c: E2 0D 00 0A 21 80 0D 02 02 05 00 7A 2C 86 D0 81 00 00 2C [09:25:41]Write i2c OK [09:25:41]MH_I2C_Read... [09:25:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:41]Read from MH i2c: E2 [09:25:41]MH_I2C_Read... [09:25:41]Read from MH i2c: E2 03 00 [09:25:41]MH_I2C_Read... [09:25:41]Read from MH i2c: E2 03 00 0A 21 00 90 00 9F [09:25:41]RAPDU: 90 00 [09:25:41]wFMCommunicate OK [09:25:41]wFMCommunicate request_size=4 [09:25:41]MH_SAM_APDU [09:25:41]CAPDU: 80 0D 03 02 [09:25:41]Write to MH i2c: E2 08 00 0B 21 80 0D 03 02 00 00 00 00 A7 [09:25:41]Write i2c OK [09:25:41]MH_I2C_Read... [09:25:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:25:41]Read from MH i2c: E2 [09:25:41]MH_I2C_Read... [09:25:41]Read from MH i2c: E2 0B 00 [09:25:41]MH_I2C_Read... [09:25:41]Read from MH i2c: E2 0B 00 0B 21 00 C8 87 08 4A 3E 84 23 9D 90 00 CB [09:25:41]RAPDU: C8 87 08 4A 3E 84 23 9D 90 00 [09:25:41]wFMCommunicate OK [09:25:41]SAM_PROTO_SignData done [09:25:41]FM_MakeSignedData done [09:25:41]CreateOFDProtocolMessage [09:25:41]wFMCommunicate request_size=4 [09:25:41]MH_SAM_APDU [09:25:41]CAPDU: 80 11 00 00 [09:25:41]Write to MH i2c: E2 08 00 0C 21 80 11 00 00 00 00 00 00 A7 [09:25:41]Write i2c OK [09:25:41]MH_I2C_Read... [09:25:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:41]Read from MH i2c: E2 [09:25:41]MH_I2C_Read... [09:25:41]Read from MH i2c: E2 17 00 [09:25:41]MH_I2C_Read... [09:25:41]Read from MH i2c: E2 17 00 0C 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FD [09:25:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:25:41]wFMCommunicate OK [09:25:41]CreateOFDProtocolMessage done [09:25:41]OFDSenderStorePacket 165170 [09:25:41]StoreOFDPacket docnum=165170 [09:25:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 3F 42 07 01 09 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 18 EB 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 32 85 02 00 35 04 06 00 99 7A 2C 86 D0 81 C8 87 08 4A 3E 84 23 9D [09:25:41]CheckFolder [09:25:41]dirname=/storage/ofd_packets [09:25:41]CheckFolder done [09:25:41]ProducePacketName [09:25:41]name=ofd_packets/00165170 [09:25:41]NVStorageSaveData ofd_packets/00165170 [09:25:41]File name is /storage/ofd_packets/00165170 [09:25:41]Write 301 bytes [09:25:41]NVStorageSaveData done [09:25:41]OFDSenderStorePacket done [09:25:41]KKMCreateOFDPacket done [09:25:41]NVStorageSaveData kkm_last_timestamp [09:25:41]File name is /storage/kkm_last_timestamp [09:25:41]Write 4 bytes [09:25:41]NVStorageSaveData done [09:25:41]ExternCall_PrintAddStr [09:25:41]wPrintStart [09:25:41]Write to MH i2c: 01 00 00 0D 21 2E [09:25:41]Write i2c OK [09:25:41]MH_I2C_Read... [09:25:41]Read from MH i2c: 01 [09:25:41]MH_I2C_Read... [09:25:41]Read from MH i2c: 01 07 00 [09:25:41]MH_I2C_Read... [09:25:41]Read from MH i2c: 01 07 00 0D 21 00 00 00 00 00 FF 0F 43 [09:25:41]RasterBufferAndPrint [09:25:41]line Счет N : (1)459272 [09:25:41]line ИНН: 02508201610067 [09:25:41]line Контрольно-Кассовый Чек [09:25:41]line ПРОДАЖА [09:25:41]line ТРК (МРК, ГНК) : 12 [09:25:41]line Товар: 2710124130 [09:25:41]line Аи-92-К-5 [09:25:41]line 7.600 * 65.80 [09:25:41]line = 500.08 [09:25:41]line НДС 12% НСП 1% [09:25:41]line > о реализуемом товаре [09:25:41]line ОКРУГЛЕНИЕ: -0.08 [09:25:41]line ИТОГО: 500.00 [09:25:41]line Внесено: 500.00 [09:25:41]line СДАЧА: 0.00 [09:25:41]line НСП 1% : 4.42 [09:25:41]line НДС 12% : 53.11 [09:25:41]line Наличными: 500.00 [09:25:41]line Безнал.: 0.00 [09:25:41]line Место: АЗС № 72 "Партнер Нефть" [09:25:41]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:25:41]line СНО: Общий режим [09:25:41]line Чек 43 15.07.2024 09:25 [09:25:41]line Смена: 448 ФФД: 1.0 [09:25:41]line ЗНМ: 0300000160 [09:25:41]line РНМ: 0000000000090829 [09:25:41]line Версия ККМ: 001 [09:25:41]line ФМ: 0000000000874718 [09:25:41]line ФД: 165170 [09:25:41]line ФПД: 168750012092545 [09:25:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T092544&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165170&fm=168750012092545&tin=02508201610067®Number=0000000000090829&sum=50000 [09:25:41]OFD Sender: Processing packet 165170 [packets to send 106, broken 105] [09:25:41]ProducePacketName [09:25:41]name=ofd_packets/00165170 [09:25:41]OFD Sender: To server: pG, [09:25:41]CommunicateWithHost lk.salyk.kg:30040 [09:25:41]ConnectInit lk.salyk.kg [09:25:41]written 0, free lines is 4095 [09:25:41]Connected sock=10 [09:25: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 37 31 38 0F 01 00 00 3F 42 07 01 09 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 18 EB 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 32 85 02 00 35 04 06 00 99 7A 2C 86 D0 81 C8 87 08 4A 3E 84 23 9D [09:25:42]Write to MH i2c: 01 00 00 37 21 58 [09:25:42]Write i2c OK [09:25:42]MH_I2C_Read... [09:25:42]Read from MH i2c: 01 [09:25:42]MH_I2C_Read... [09:25:42]Read from MH i2c: 01 07 00 [09:25:42]MH_I2C_Read... [09:25:42]Read from MH i2c: 01 07 00 37 21 00 00 00 00 00 FF 0C 6A [09:25:42]RasterBufferAndPrint [09:25:42]line [09:25:42]line [09:25:42]line [09:25:42]line [09:25:42]line [09:25:42]written 0, free lines is 3333 [09:25:42]MH_Cut [09:25:42]Write to MH i2c: D1 01 00 3E 21 01 31 [09:25:42]Write i2c OK [09:25:42]MH_I2C_Read... [09:25:42]Read from MH i2c: D1 [09:25:42]MH_I2C_Read... [09:25:42]Read from MH i2c: D1 01 00 [09:25:42]MH_I2C_Read... [09:25:42]Read from MH i2c: D1 01 00 3E 21 00 30 [09:25:42]Write to MH i2c: 01 00 00 3F 21 60 [09:25:42]Write i2c OK [09:25:42]MH_I2C_Read... [09:25:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 D8 A9 47 00 BD D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 32 85 02 00 F4 03 04 00 A3 91 94 66 B6 04 01 00 00 76 D2 AE 87 4C 08 B3 FE [09:25:42]CommunicateWithHost err = 0 [09:25:42]CheckOFDResponse [09:25:42]1017 (14) - 77093643461234 [09:25:42]1041 (16) - 0000000000874718 [09:25:42]1040 (4) - 165170 [09:25:42]1012 (4) - 15.07.2024 03:04 [09:25:42]1206 (1) - 0 [09:25:42]OFD Sender: Remove packet 165170 [09:25:42]ProducePacketName [09:25:42]name=ofd_packets/00165170 [09:25:42]NVStorageDeleteData [09:25:42]*** Cut start [09:25:42]*** Partial cut [09:25:42]*** CUTSNS_PIN = 1 [09:25:42]*** CUTSNS_PIN = 0 [09:25:43]*** Brake cut motor [09:25:43]OFD Sender: No OFD packet to send [09:25:43]Read from MH i2c: 01 [09:25:43]MH_I2C_Read... [09:25:43]*** Stop cut motor [09:25:43]*** Cut end [09:25:43]Read from MH i2c: 01 07 00 [09:25:43]MH_I2C_Read... [09:25:43]Read from MH i2c: 01 07 00 3F 21 00 00 00 00 00 FF 0F 75 [09:25:43]process_action close_receipt done [09:25:43]requested_data is exist [09:25:43]produce_requested_data [09:25:43]requested_item fm.sn is exist - process it [09:25:43]wFMCommunicate request_size=4 [09:25:43]MH_SAM_APDU [09:25:43]CAPDU: 80 11 00 00 [09:25:43]Write to MH i2c: E2 08 00 40 21 80 11 00 00 00 00 00 00 DB [09:25:43]Write i2c OK [09:25:43]MH_I2C_Read... [09:25:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:43]Read from MH i2c: E2 [09:25:43]MH_I2C_Read... [09:25:43]Read from MH i2c: E2 17 00 [09:25:43]MH_I2C_Read... [09:25:43]Read from MH i2c: E2 17 00 40 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 31 [09:25:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:25:43]wFMCommunicate OK [09:25:43]requested_item fd.num is exist - process it [09:25:43]SAM_PROTO_GetFieldsCounters [09:25:43]wFMCommunicate request_size=4 [09:25:43]MH_SAM_APDU [09:25:43]CAPDU: 80 13 00 00 [09:25:43]Write to MH i2c: E2 08 00 41 21 80 13 00 00 00 00 00 00 DE [09:25:43]Write i2c OK [09:25:43]MH_I2C_Read... [09:25:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:25:43]Read from MH i2c: E2 [09:25:43]MH_I2C_Read... [09:25:43]Read from MH i2c: E2 62 00 [09:25:43]MH_I2C_Read... [09:25:43]Read from MH i2c: E2 62 00 41 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 32 85 02 00 0E 04 04 00 C0 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 00 [09:25:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 32 85 02 00 0E 04 04 00 C0 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 [09:25:43]wFMCommunicate OK [09:25:43]SAM_PROTO_GetFieldsCounters done [09:25:43]requested_item shift.num is exist - process it [09:25:43]requested_item shift.opened is exist - process it [09:25:43]req_shift_opened [09:25:43]FM_GetShiftState [09:25:43]SAM_PROTO_GetShiftState [09:25:43]wFMCommunicate request_size=4 [09:25:43]MH_SAM_APDU [09:25:43]CAPDU: 80 13 01 00 [09:25:43]Write to MH i2c: E2 08 00 42 21 80 13 01 00 00 00 00 00 E0 [09:25:43]Write i2c OK [09:25:43]MH_I2C_Read... [09:25:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:43]Read from MH i2c: E2 [09:25:43]MH_I2C_Read... [09:25:43]Read from MH i2c: E2 0E 00 [09:25:43]MH_I2C_Read... [09:25:43]Read from MH i2c: E2 0E 00 42 21 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 B9 [09:25:43]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [09:25:43]wFMCommunicate OK [09:25:43]SAM_PROTO_GetShiftState done [09:25:43]FM_GetShiftState done [09:25:43]req_shift_opened done [09:25:43]requested_item shift.open_date is exist - process it [09:25:43]req_shift_open_date [09:25:43]req_shift_open_date done [09:25:43]produce_requested_data done [09:25:43]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165170,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [09:25:43]process_action_free close_receipt [09:25:43]json_value_free [09:25:43]json_value_free done [09:25:43]process_json_proto returns [09:25:43]Send response to host [09:25:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165170,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [09:25:43]free response buf [09:25:43]execute_script done [09:25:43]execute_script returns [09:25:43]free content buf [09:25:43]Sock 7.Close socket [09:25:43]Sock 7.Thread stoped [09:25:48]OFD Sender: No OFD packet to send [09:25:53]OFD Sender: No OFD packet to send [09:25:58]OFD Sender: No OFD packet to send [09:26:03]OFD Sender: No OFD packet to send [09:26:08]OFD Sender: No OFD packet to send [09:26:13]OFD Sender: No OFD packet to send [09:26:18]OFD Sender: No OFD packet to send [09:26:23]OFD Sender: No OFD packet to send [09:26:28]OFD Sender: No OFD packet to send [09:26:33]OFD Sender: No OFD packet to send [09:26:38]OFD Sender: No OFD packet to send [09:26:43]OFD Sender: No OFD packet to send [09:26:48]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:23]accept exits with 9 [09:30:23]New connection [09:30:23]New thread 3066785124 created [09:30:23]Thread 3066928484 joined [09:30:23]Waiting for new connection... [09:30:23] Sock 9.Parse request [09:30:23]Sock 9.Check first char [09:30:23]Sock 9.First char is OK [09:30:23]request: POST /json_proto HTTP/1.0 [09:30:23]Method: POST [09:30:23]URL: /json_proto [09:30:23]Method is POST - this is cgi request [09:30:23]url: /json_proto [09:30:23]query_string will be loaded in cgi processing [09:30:23]execute_cgi json_proto POST (null) [09:30:23]execute_cgi path=json_proto method=POST [09:30:23]POST find Content-Length [09:30:23]Host: 172.17.56.4:8080 [09:30:23]Content-Length: 677 [09:30:23]Content-Type: application/json [09:30:23] [09:30:23]POST finish read [09:30:23]Found Content-Length = 677 [09:30:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459274", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:23]execute_script... [09:30:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459274", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:23]POST & json_proto [09:30:23]process_json_proto [09:30:23]json parsed OK: [09:30:23]protocol is kg_v1.0 [09:30:23]action value=close_receipt [09:30:23]process_action close_receipt [09:30:23]cmd_close_receipt [09:30:23]MH_GetDate [09:30:23]Write to MH i2c: F0 00 00 43 21 53 [09:30:23]Write i2c OK [09:30:23]MH_I2C_Read... [09:30:23]Read from MH i2c: F0 [09:30:23]MH_I2C_Read... [09:30:23]Read from MH i2c: F0 09 00 [09:30:23]MH_I2C_Read... [09:30:23]Read from MH i2c: F0 09 00 43 21 00 34 EC 94 66 C9 DC B2 64 31 [09:30:23]GetLastDocTimeStamp 1721035544 [09:30:23]current date 1721035828 [09:30:23]FM_GetShiftState [09:30:23]SAM_PROTO_GetShiftState [09:30:23]wFMCommunicate request_size=4 [09:30:23]MH_SAM_APDU [09:30:23]CAPDU: 80 13 01 00 [09:30:23]Write to MH i2c: E2 08 00 44 21 80 13 01 00 00 00 00 00 E2 [09:30:23]Write i2c OK [09:30:23]MH_I2C_Read... [09:30:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:23]Read from MH i2c: E2 [09:30:23]MH_I2C_Read... [09:30:23]Read from MH i2c: E2 0E 00 [09:30:23]MH_I2C_Read... [09:30:23]Read from MH i2c: E2 0E 00 44 21 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 BB [09:30:23]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [09:30:23]wFMCommunicate OK [09:30:23]SAM_PROTO_GetShiftState done [09:30:23]FM_GetShiftState done [09:30:23]opened in 1721003876 [09:30:23]opened+sec_in_day 1721090276 [09:30:23]quantity*price = 20003 [09:30:23]sum+1 = 20004 [09:30:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 44 15.07.2024 09:30 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165171 ФПД: 115909078819671 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T093028&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165171&fm=115909078819671&tin=02508201610067®Number=0000000000090829&sum=20000 [09:30:24]StoreToDocumentArchive [09:30:24]shift 448 fd 165171 [09:30:24]save to /storage/0448/doc_00165171 [09:30:24]save last doc name /storage/0448/doc_00165171 to /storage/kkm_last_doc_name [09:30:24]save OK [09:30:24]Clear old archive folders... [09:30:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:30:24]tlvbuf is B6EA22C0 [09:30:24]SAM_PROTO_ClearQueue [09:30:24]wFMCommunicate request_size=4 [09:30:24]MH_SAM_APDU [09:30:24]CAPDU: 80 09 00 00 [09:30:24]Write to MH i2c: E2 08 00 51 21 80 09 00 00 00 00 00 00 E4 [09:30:24]Write i2c OK [09:30:24]MH_I2C_Read... [09:30:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:30:24]Read from MH i2c: E2 [09:30:24]MH_I2C_Read... [09:30:24]Read from MH i2c: E2 03 00 [09:30:24]MH_I2C_Read... [09:30:24]Read from MH i2c: E2 03 00 51 21 00 90 00 E6 [09:30:24]RAPDU: 90 00 [09:30:24]wFMCommunicate OK [09:30:24]SAM_PROTO_ClearQueue done [09:30:24]KKMCreateOFDPacket [09:30:24]OFDProtocolAddRootSTLVToBuf [09:30:24]FM_MakeSignedData [09:30:24]FM_MakeSignedData [09:30:24]SAM_PROTO_SignData [09:30:24]wFMCommunicate request_size=4 [09:30:24]MH_SAM_APDU [09:30:24]CAPDU: 80 0D 01 02 [09:30:24]Write to MH i2c: E2 08 00 52 21 80 0D 01 02 00 00 00 00 EC [09:30:24]Write i2c OK [09:30:24]MH_I2C_Read... [09:30:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:30:24]Read from MH i2c: E2 [09:30:24]MH_I2C_Read... [09:30:24]Read from MH i2c: E2 03 00 [09:30:24]MH_I2C_Read... [09:30:24]Read from MH i2c: E2 03 00 52 21 00 90 00 E7 [09:30:24]RAPDU: 90 00 [09:30:24]wFMCommunicate OK [09:30:24]wFMCommunicate request_size=255 [09:30:24]MH_SAM_APDU [09:30:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 34 EC 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 33 85 02 00 35 04 06 00 69 [09:30:24]Write to MH i2c: E2 02 01 53 21 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 34 EC 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 33 85 02 00 35 04 06 00 69 00 00 30 [09:30:24]Write i2c OK [09:30:24]MH_I2C_Read... [09:30:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:25]Read from MH i2c: E2 [09:30:25]MH_I2C_Read... [09:30:25]Read from MH i2c: E2 03 00 [09:30:25]MH_I2C_Read... [09:30:25]Read from MH i2c: E2 03 00 53 21 00 90 00 E8 [09:30:25]RAPDU: 90 00 [09:30:25]wFMCommunicate OK [09:30:25]wFMCommunicate request_size=10 [09:30:25]MH_SAM_APDU [09:30:25]CAPDU: 80 0D 02 02 05 6B 2F 78 23 57 [09:30:25]Write to MH i2c: E2 0D 00 54 21 80 0D 02 02 05 00 6B 2F 78 23 57 00 00 85 [09:30:25]Write i2c OK [09:30:25]MH_I2C_Read... [09:30:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:25]Read from MH i2c: E2 [09:30:25]MH_I2C_Read... [09:30:25]Read from MH i2c: E2 03 00 [09:30:25]MH_I2C_Read... [09:30:25]Read from MH i2c: E2 03 00 54 21 00 90 00 E9 [09:30:25]RAPDU: 90 00 [09:30:25]wFMCommunicate OK [09:30:25]wFMCommunicate request_size=4 [09:30:25]MH_SAM_APDU [09:30:25]CAPDU: 80 0D 03 02 [09:30:25]Write to MH i2c: E2 08 00 55 21 80 0D 03 02 00 00 00 00 F1 [09:30:25]Write i2c OK [09:30:25]MH_I2C_Read... [09:30:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:30:25]Read from MH i2c: E2 [09:30:25]MH_I2C_Read... [09:30:25]Read from MH i2c: E2 0B 00 [09:30:25]MH_I2C_Read... [09:30:25]Read from MH i2c: E2 0B 00 55 21 00 5B 1C 6A C2 A7 E9 75 8B 90 00 25 [09:30:25]RAPDU: 5B 1C 6A C2 A7 E9 75 8B 90 00 [09:30:25]wFMCommunicate OK [09:30:25]SAM_PROTO_SignData done [09:30:25]FM_MakeSignedData done [09:30:25]CreateOFDProtocolMessage [09:30:25]wFMCommunicate request_size=4 [09:30:25]MH_SAM_APDU [09:30:25]CAPDU: 80 11 00 00 [09:30:25]Write to MH i2c: E2 08 00 56 21 80 11 00 00 00 00 00 00 F1 [09:30:25]Write i2c OK [09:30:25]MH_I2C_Read... [09:30:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:25]Read from MH i2c: E2 [09:30:25]MH_I2C_Read... [09:30:25]Read from MH i2c: E2 17 00 [09:30:25]MH_I2C_Read... [09:30:25]Read from MH i2c: E2 17 00 56 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 47 [09:30:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:30:25]wFMCommunicate OK [09:30:25]CreateOFDProtocolMessage done [09:30:25]OFDSenderStorePacket 165171 [09:30:25]StoreOFDPacket docnum=165171 [09:30:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 66 78 07 01 86 BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 34 EC 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 33 85 02 00 35 04 06 00 69 6B 2F 78 23 57 5B 1C 6A C2 A7 E9 75 8B [09:30:25]CheckFolder [09:30:25]dirname=/storage/ofd_packets [09:30:25]CheckFolder done [09:30:25]ProducePacketName [09:30:25]name=ofd_packets/00165171 [09:30:25]NVStorageSaveData ofd_packets/00165171 [09:30:25]File name is /storage/ofd_packets/00165171 [09:30:25]Write 301 bytes [09:30:25]NVStorageSaveData done [09:30:25]OFDSenderStorePacket done [09:30:25]KKMCreateOFDPacket done [09:30:25]NVStorageSaveData kkm_last_timestamp [09:30:25]File name is /storage/kkm_last_timestamp [09:30:25]Write 4 bytes [09:30:25]NVStorageSaveData done [09:30:25]ExternCall_PrintAddStr [09:30:25]wPrintStart [09:30:25]Write to MH i2c: 01 00 00 57 21 78 [09:30:25]Write i2c OK [09:30:25]MH_I2C_Read... [09:30:25]Read from MH i2c: 01 [09:30:25]MH_I2C_Read... [09:30:25]Read from MH i2c: 01 07 00 [09:30:25]MH_I2C_Read... [09:30:25]Read from MH i2c: 01 07 00 57 21 00 00 00 00 00 FF 0F 8D [09:30:25]RasterBufferAndPrint [09:30:25]line Счет N : (1)459274 [09:30:25]line ИНН: 02508201610067 [09:30:25]line Контрольно-Кассовый Чек [09:30:25]line ПРОДАЖА [09:30:25]line ТРК (МРК, ГНК) : 12 [09:30:25]line Товар: 2710124130 [09:30:25]line Аи-92-К-5 [09:30:25]line 3.040 * 65.80 [09:30:25]line = 200.03 [09:30:25]line НДС 12% НСП 1% [09:30:25]line > о реализуемом товаре [09:30:25]line ОКРУГЛЕНИЕ: -0.03 [09:30:25]line ИТОГО: 200.00 [09:30:25]line Внесено: 200.00 [09:30:25]line СДАЧА: 0.00 [09:30:25]line НСП 1% : 1.77 [09:30:25]line НДС 12% : 21.24 [09:30:25]line Наличными: 200.00 [09:30:25]line Безнал.: 0.00 [09:30:25]line Место: АЗС № 72 "Партнер Нефть" [09:30:25]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:30:25]line СНО: Общий режим [09:30:25]line Чек 44 15.07.2024 09:30 [09:30:25]line Смена: 448 ФФД: 1.0 [09:30:25]line ЗНМ: 0300000160 [09:30:25]line РНМ: 0000000000090829 [09:30:25]line Версия ККМ: 001 [09:30:25]line ФМ: 0000000000874718 [09:30:25]line ФД: 165171 [09:30:25]line ФПД: 115909078819671 [09:30:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T093028&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165171&fm=115909078819671&tin=02508201610067®Number=0000000000090829&sum=20000 [09:30:25]written 0, free lines is 4095 [09:30:25]OFD Sender: Processing packet 165171 [packets to send 106, broken 105] [09:30:25]ProducePacketName [09:30:25]name=ofd_packets/00165171 [09:30:25]OFD Sender: To server: pG, [09:30:25]CommunicateWithHost lk.salyk.kg:30040 [09:30:25]ConnectInit lk.salyk.kg [09:30:25]Connected sock=10 [09:30:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 66 78 07 01 86 BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 34 EC 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 33 85 02 00 35 04 06 00 69 6B 2F 78 23 57 5B 1C 6A C2 A7 E9 75 8B [09:30:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 88 5F 47 00 0F 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 37 31 38 10 04 04 00 33 85 02 00 F4 03 04 00 BE 92 94 66 B6 04 01 00 00 3C 69 FA 1B 70 7E A0 FE [09:30:25]CommunicateWithHost err = 0 [09:30:25]CheckOFDResponse [09:30:25]1017 (14) - 77093643461234 [09:30:25]1041 (16) - 0000000000874718 [09:30:25]1040 (4) - 165171 [09:30:25]1012 (4) - 15.07.2024 03:08 [09:30:25]1206 (1) - 0 [09:30:25]OFD Sender: Remove packet 165171 [09:30:25]ProducePacketName [09:30:25]name=ofd_packets/00165171 [09:30:25]NVStorageDeleteData [09:30:26]Write to MH i2c: 01 00 00 81 21 A2 [09:30:26]Write i2c OK [09:30:26]MH_I2C_Read... [09:30:26]Read from MH i2c: 01 [09:30:26]MH_I2C_Read... [09:30:26]Read from MH i2c: 01 07 00 [09:30:26]MH_I2C_Read... [09:30:26]Read from MH i2c: 01 07 00 81 21 00 00 00 00 00 FE 0C B3 [09:30:26]RasterBufferAndPrint [09:30:26]line [09:30:26]line [09:30:26]line [09:30:26]line [09:30:26]line [09:30:26]written 0, free lines is 3332 [09:30:26]MH_Cut [09:30:26]Write to MH i2c: D1 01 00 88 21 01 7B [09:30:26]Write i2c OK [09:30:26]MH_I2C_Read... [09:30:26]Read from MH i2c: D1 [09:30:26]MH_I2C_Read... [09:30:26]Read from MH i2c: D1 01 00 [09:30:26]MH_I2C_Read... [09:30:26]Read from MH i2c: D1 01 00 88 21 00 7A [09:30:26]Write to MH i2c: 01 00 00 89 21 AA [09:30:26]Write i2c OK [09:30:26]MH_I2C_Read... [09:30:26]OFD Sender: No OFD packet to send [09:30:26]*** Cut start [09:30:26]*** Partial cut [09:30:26]*** CUTSNS_PIN = 1 [09:30:26]*** CUTSNS_PIN = 0 [09:30:26]*** Brake cut motor [09:30:27]Read from MH i2c: 01 [09:30:27]MH_I2C_Read... [09:30:27]*** Stop cut motor [09:30:27]*** Cut end [09:30:27]Read from MH i2c: 01 07 00 [09:30:27]MH_I2C_Read... [09:30:27]Read from MH i2c: 01 07 00 89 21 00 00 00 00 00 FF 0F BF [09:30:27]process_action close_receipt done [09:30:27]requested_data is exist [09:30:27]produce_requested_data [09:30:27]requested_item fm.sn is exist - process it [09:30:27]wFMCommunicate request_size=4 [09:30:27]MH_SAM_APDU [09:30:27]CAPDU: 80 11 00 00 [09:30:27]Write to MH i2c: E2 08 00 8A 21 80 11 00 00 00 00 00 00 25 [09:30:27]Write i2c OK [09:30:27]MH_I2C_Read... [09:30:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:27]Read from MH i2c: E2 [09:30:27]MH_I2C_Read... [09:30:27]Read from MH i2c: E2 17 00 [09:30:27]MH_I2C_Read... [09:30:27]Read from MH i2c: E2 17 00 8A 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7B [09:30:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:30:27]wFMCommunicate OK [09:30:27]requested_item fd.num is exist - process it [09:30:27]SAM_PROTO_GetFieldsCounters [09:30:27]wFMCommunicate request_size=4 [09:30:27]MH_SAM_APDU [09:30:27]CAPDU: 80 13 00 00 [09:30:27]Write to MH i2c: E2 08 00 8B 21 80 13 00 00 00 00 00 00 28 [09:30:27]Write i2c OK [09:30:27]MH_I2C_Read... [09:30:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:30:27]Read from MH i2c: E2 [09:30:27]MH_I2C_Read... [09:30:27]Read from MH i2c: E2 62 00 [09:30:27]MH_I2C_Read... [09:30:27]Read from MH i2c: E2 62 00 8B 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 33 85 02 00 0E 04 04 00 C0 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 4E [09:30:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 33 85 02 00 0E 04 04 00 C0 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 [09:30:27]wFMCommunicate OK [09:30:27]SAM_PROTO_GetFieldsCounters done [09:30:27]requested_item shift.num is exist - process it [09:30:27]requested_item shift.opened is exist - process it [09:30:27]req_shift_opened [09:30:27]FM_GetShiftState [09:30:27]SAM_PROTO_GetShiftState [09:30:27]wFMCommunicate request_size=4 [09:30:27]MH_SAM_APDU [09:30:27]CAPDU: 80 13 01 00 [09:30:27]Write to MH i2c: E2 08 00 8C 21 80 13 01 00 00 00 00 00 2A [09:30:27]Write i2c OK [09:30:27]MH_I2C_Read... [09:30:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:27]Read from MH i2c: E2 [09:30:27]MH_I2C_Read... [09:30:27]Read from MH i2c: E2 0E 00 [09:30:27]MH_I2C_Read... [09:30:27]Read from MH i2c: E2 0E 00 8C 21 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 03 [09:30:27]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [09:30:27]wFMCommunicate OK [09:30:27]SAM_PROTO_GetShiftState done [09:30:27]FM_GetShiftState done [09:30:27]req_shift_opened done [09:30:27]requested_item shift.open_date is exist - process it [09:30:27]req_shift_open_date [09:30:27]req_shift_open_date done [09:30:27]produce_requested_data done [09:30:27]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165171,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [09:30:27]process_action_free close_receipt [09:30:27]json_value_free [09:30:27]json_value_free done [09:30:27]process_json_proto returns [09:30:27]Send response to host [09:30:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165171,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [09:30:27]free response buf [09:30:27]execute_script done [09:30:27]execute_script returns [09:30:27]free content buf [09:30:27]Sock 9.Close socket [09:30:27]Sock 9.Thread stoped [09:30:31]OFD Sender: No OFD packet to send [09:30:36]OFD Sender: No OFD packet to send [09:30:41]OFD Sender: No OFD packet to send [09:30:46]OFD Sender: No OFD packet to send [09:30:51]OFD Sender: No OFD packet to send [09:30:56]OFD Sender: No OFD packet to send [09:31:01]OFD Sender: No OFD packet to send [09:31:06]OFD Sender: No OFD packet to send [09:31:07]accept exits with 7 [09:31:07]New connection [09:31:07]New thread 3066928484 created [09:31:07]Thread 3066785124 joined [09:31:07]Waiting for new connection... [09:31:07] Sock 7.Parse request [09:31:07]Sock 7.Check first char [09:31:07]Sock 7.First char is OK [09:31:07]request: POST /json_proto HTTP/1.0 [09:31:07]Method: POST [09:31:07]URL: /json_proto [09:31:07]Method is POST - this is cgi request [09:31:07]url: /json_proto [09:31:07]query_string will be loaded in cgi processing [09:31:07]execute_cgi json_proto POST (null) [09:31:07]execute_cgi path=json_proto method=POST [09:31:07]POST find Content-Length [09:31:07]Host: 172.17.56.4:8080 [09:31:07]Content-Length: 793 [09:31:07]Content-Type: application/json [09:31:07] [09:31:07]POST finish read [09:31:07]Found Content-Length = 793 [09:31:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459273", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 30.670, "sum" : 2000.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:07]execute_script... [09:31: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)459273", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 30.670, "sum" : 2000.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:07]POST & json_proto [09:31:07]process_json_proto [09:31:07]json parsed OK: [09:31:07]protocol is kg_v1.0 [09:31:07]action value=close_receipt [09:31:07]process_action close_receipt [09:31:07]cmd_close_receipt [09:31:07]MH_GetDate [09:31:07]Write to MH i2c: F0 00 00 8D 21 9D [09:31:07]Write i2c OK [09:31:07]MH_I2C_Read... [09:31:07]Read from MH i2c: F0 [09:31:07]MH_I2C_Read... [09:31:07]Read from MH i2c: F0 09 00 [09:31:07]MH_I2C_Read... [09:31:07]Read from MH i2c: F0 09 00 8D 21 00 60 EC 94 66 C9 DC B2 64 A7 [09:31:07]GetLastDocTimeStamp 1721035828 [09:31:07]current date 1721035872 [09:31:07]FM_GetShiftState [09:31:07]SAM_PROTO_GetShiftState [09:31:07]wFMCommunicate request_size=4 [09:31:07]MH_SAM_APDU [09:31:07]CAPDU: 80 13 01 00 [09:31:07]Write to MH i2c: E2 08 00 8E 21 80 13 01 00 00 00 00 00 2C [09:31:07]Write i2c OK [09:31:07]MH_I2C_Read... [09:31:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:07]Read from MH i2c: E2 [09:31:07]MH_I2C_Read... [09:31:07]Read from MH i2c: E2 0E 00 [09:31:07]MH_I2C_Read... [09:31:07]Read from MH i2c: E2 0E 00 8E 21 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 05 [09:31:07]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [09:31:07]wFMCommunicate OK [09:31:07]SAM_PROTO_GetShiftState done [09:31:07]FM_GetShiftState done [09:31:07]opened in 1721003876 [09:31:07]opened+sec_in_day 1721090276 [09:31:07]quantity*price = 200029 [09:31:07]sum+1 = 200031 [09:31:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.30 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.30 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 45 15.07.2024 09:31 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 165172 ФПД: 263066681640690 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T093112&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165172&fm=263066681640690&tin=02508201610067®Number=0000000000090829&sum=200030 [09:31:08]StoreToDocumentArchive [09:31:08]shift 448 fd 165172 [09:31:08]save to /storage/0448/doc_00165172 [09:31:08]save last doc name /storage/0448/doc_00165172 to /storage/kkm_last_doc_name [09:31:08]save OK [09:31:08]Clear old archive folders... [09:31:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:31:08]tlvbuf is 01360730 [09:31:08]SAM_PROTO_ClearQueue [09:31:08]wFMCommunicate request_size=4 [09:31:08]MH_SAM_APDU [09:31:08]CAPDU: 80 09 00 00 [09:31:08]Write to MH i2c: E2 08 00 9B 21 80 09 00 00 00 00 00 00 2E [09:31:08]Write i2c OK [09:31:08]MH_I2C_Read... [09:31:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:31:08]Read from MH i2c: E2 [09:31:08]MH_I2C_Read... [09:31:08]Read from MH i2c: E2 03 00 [09:31:08]MH_I2C_Read... [09:31:08]Read from MH i2c: E2 03 00 9B 21 00 90 00 30 [09:31:08]RAPDU: 90 00 [09:31:08]wFMCommunicate OK [09:31:08]SAM_PROTO_ClearQueue done [09:31:08]KKMCreateOFDPacket [09:31:08]OFDProtocolAddRootSTLVToBuf [09:31:08]FM_MakeSignedData [09:31:08]FM_MakeSignedData [09:31:08]SAM_PROTO_SignData [09:31:08]wFMCommunicate request_size=4 [09:31:08]MH_SAM_APDU [09:31:08]CAPDU: 80 0D 01 02 [09:31:08]Write to MH i2c: E2 08 00 9C 21 80 0D 01 02 00 00 00 00 36 [09:31:08]Write i2c OK [09:31:08]MH_I2C_Read... [09:31:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:31:08]Read from MH i2c: E2 [09:31:08]MH_I2C_Read... [09:31:08]Read from MH i2c: E2 03 00 [09:31:08]MH_I2C_Read... [09:31:08]Read from MH i2c: E2 03 00 9C 21 00 90 00 31 [09:31:08]RAPDU: 90 00 [09:31:08]wFMCommunicate OK [09:31:08]wFMCommunicate request_size=255 [09:31:08]MH_SAM_APDU [09:31:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 77 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 5E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5E 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5E 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 60 EC 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 34 85 02 00 35 04 06 00 EF [09:31:08]Write to MH i2c: E2 02 01 9D 21 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 CE 77 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 5E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5E 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5E 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 60 EC 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 34 85 02 00 35 04 06 00 EF 00 00 82 [09:31:08]Write i2c OK [09:31:08]MH_I2C_Read... [09:31:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:09]Read from MH i2c: E2 [09:31:09]MH_I2C_Read... [09:31:09]Read from MH i2c: E2 03 00 [09:31:09]MH_I2C_Read... [09:31:09]Read from MH i2c: E2 03 00 9D 21 00 90 00 32 [09:31:09]RAPDU: 90 00 [09:31:09]wFMCommunicate OK [09:31:09]wFMCommunicate request_size=10 [09:31:09]MH_SAM_APDU [09:31:09]CAPDU: 80 0D 02 02 05 41 FC 1C 86 F2 [09:31:09]Write to MH i2c: E2 0D 00 9E 21 80 0D 02 02 05 00 41 FC 1C 86 F2 00 00 14 [09:31:09]Write i2c OK [09:31:09]MH_I2C_Read... [09:31:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:09]Read from MH i2c: E2 [09:31:09]MH_I2C_Read... [09:31:09]Read from MH i2c: E2 03 00 [09:31:09]MH_I2C_Read... [09:31:09]Read from MH i2c: E2 03 00 9E 21 00 90 00 33 [09:31:09]RAPDU: 90 00 [09:31:09]wFMCommunicate OK [09:31:09]wFMCommunicate request_size=4 [09:31:09]MH_SAM_APDU [09:31:09]CAPDU: 80 0D 03 02 [09:31:09]Write to MH i2c: E2 08 00 9F 21 80 0D 03 02 00 00 00 00 3B [09:31:09]Write i2c OK [09:31:09]MH_I2C_Read... [09:31:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:31:09]Read from MH i2c: E2 [09:31:09]MH_I2C_Read... [09:31:09]Read from MH i2c: E2 0B 00 [09:31:09]MH_I2C_Read... [09:31:09]Read from MH i2c: E2 0B 00 9F 21 00 94 6F 16 67 C5 F4 F8 AC 90 00 19 [09:31:09]RAPDU: 94 6F 16 67 C5 F4 F8 AC 90 00 [09:31:09]wFMCommunicate OK [09:31:09]SAM_PROTO_SignData done [09:31:09]FM_MakeSignedData done [09:31:09]CreateOFDProtocolMessage [09:31:09]wFMCommunicate request_size=4 [09:31:09]MH_SAM_APDU [09:31:09]CAPDU: 80 11 00 00 [09:31:09]Write to MH i2c: E2 08 00 A0 21 80 11 00 00 00 00 00 00 3B [09:31:09]Write i2c OK [09:31:09]MH_I2C_Read... [09:31:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:09]Read from MH i2c: E2 [09:31:09]MH_I2C_Read... [09:31:09]Read from MH i2c: E2 17 00 [09:31:09]MH_I2C_Read... [09:31:09]Read from MH i2c: E2 17 00 A0 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 91 [09:31:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:31:09]wFMCommunicate OK [09:31:09]CreateOFDProtocolMessage done [09:31:09]OFDSenderStorePacket 165172 [09:31:09]StoreOFDPacket docnum=165172 [09:31:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 BA 7F 07 01 23 E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 CE 77 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 5E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5E 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5E 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 60 EC 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 34 85 02 00 35 04 06 00 EF 41 FC 1C 86 F2 94 6F 16 67 C5 F4 F8 AC [09:31:09]CheckFolder [09:31:09]dirname=/storage/ofd_packets [09:31:09]CheckFolder done [09:31:09]ProducePacketName [09:31:09]name=ofd_packets/00165172 [09:31:09]NVStorageSaveData ofd_packets/00165172 [09:31:09]File name is /storage/ofd_packets/00165172 [09:31:09]Write 301 bytes [09:31:09]NVStorageSaveData done [09:31:09]OFDSenderStorePacket done [09:31:09]KKMCreateOFDPacket done [09:31:09]NVStorageSaveData kkm_last_timestamp [09:31:09]File name is /storage/kkm_last_timestamp [09:31:09]Write 4 bytes [09:31:09]NVStorageSaveData done [09:31:09]ExternCall_PrintAddStr [09:31:09]wPrintStart [09:31:09]Write to MH i2c: 01 00 00 A1 21 C2 [09:31:09]Write i2c OK [09:31:09]MH_I2C_Read... [09:31:09]Read from MH i2c: 01 [09:31:09]MH_I2C_Read... [09:31:09]Read from MH i2c: 01 07 00 [09:31:09]MH_I2C_Read... [09:31:09]Read from MH i2c: 01 07 00 A1 21 00 00 00 00 00 FF 0F D7 [09:31:09]RasterBufferAndPrint [09:31:09]line Счет N : (1)459273 [09:31:09]line ИНН: 02508201610067 [09:31:09]line Контрольно-Кассовый Чек [09:31:09]line ПРОДАЖА [09:31:09]line ТРК (МРК, ГНК) : 22 [09:31:09]line Товар: 2710124130 [09:31:09]line Аи-92-К-5 [09:31:09]line 30.670 * 65.22 [09:31:09]line = 2000.30 [09:31:09]line НДС 12% НСП 1% [09:31:09]line > о реализуемом товаре [09:31:09]line ИТОГО: 2000.30 [09:31:09]line НСП 1% : 17.70 [09:31:09]line НДС 12% : 212.42 [09:31:09]line Наличными: 0.00 [09:31:09]line Безнал.: 2000.30 [09:31:09]line Место: АЗС № 72 "Партнер Нефть" [09:31:09]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:31:09]line СНО: Общий режим [09:31:09]line Чек 45 15.07.2024 09:31 [09:31:09]line Смена: 448 ФФД: 1.0 [09:31:09]line ЗНМ: 0300000160 [09:31:09]line РНМ: 0000000000090829 [09:31:09]line Версия ККМ: 001 [09:31:09]line Платежная система: KICB Банк [09:31:09]line ФМ: 0000000000874718 [09:31:09]line ФД: 165172 [09:31:09]line ФПД: 263066681640690 [09:31:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T093112&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165172&fm=263066681640690&tin=02508201610067®Number=0000000000090829&sum=200030 [09:31:09]written 0, free lines is 4095 [09:31:09]OFD Sender: Processing packet 165172 [packets to send 106, broken 105] [09:31:09]ProducePacketName [09:31:09]name=ofd_packets/00165172 [09:31:09]OFD Sender: To server: pG, [09:31:09]CommunicateWithHost lk.salyk.kg:30040 [09:31:09]ConnectInit lk.salyk.kg [09:31:09]Connected sock=10 [09:31: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 37 31 38 0F 01 00 00 BA 7F 07 01 23 E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 CE 77 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 5E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5E 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5E 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 60 EC 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 34 85 02 00 35 04 06 00 EF 41 FC 1C 86 F2 94 6F 16 67 C5 F4 F8 AC [09:31:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 CC 56 47 00 D5 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 34 85 02 00 F4 03 04 00 EA 92 94 66 B6 04 01 00 00 07 95 57 B5 6C 26 6B D5 [09:31:09]CommunicateWithHost err = 0 [09:31:09]CheckOFDResponse [09:31:09]1017 (14) - 77093643461234 [09:31:09]1041 (16) - 0000000000874718 [09:31:09]1040 (4) - 165172 [09:31:09]1012 (4) - 15.07.2024 03:09 [09:31:09]1206 (1) - 0 [09:31:09]OFD Sender: Remove packet 165172 [09:31:09]ProducePacketName [09:31:09]name=ofd_packets/00165172 [09:31:09]NVStorageDeleteData [09:31:09]Write to MH i2c: 01 00 00 CA 21 EB [09:31:09]Write i2c OK [09:31:09]MH_I2C_Read... [09:31:09]Read from MH i2c: 01 [09:31:09]MH_I2C_Read... [09:31:09]Read from MH i2c: 01 07 00 [09:31:09]MH_I2C_Read... [09:31:09]Read from MH i2c: 01 07 00 CA 21 00 00 00 00 00 20 0D 1F [09:31:09]RasterBufferAndPrint [09:31:09]line [09:31:09]line [09:31:09]line [09:31:09]line [09:31:09]line [09:31:09]written 0, free lines is 3366 [09:31:09]MH_Cut [09:31:09]Write to MH i2c: D1 01 00 D1 21 01 C4 [09:31:09]Write i2c OK [09:31:09]MH_I2C_Read... [09:31:09]Read from MH i2c: D1 [09:31:09]MH_I2C_Read... [09:31:09]Read from MH i2c: D1 01 00 [09:31:09]MH_I2C_Read... [09:31:09]Read from MH i2c: D1 01 00 D1 21 00 C3 [09:31:09]Write to MH i2c: 01 00 00 D2 21 F3 [09:31:09]Write i2c OK [09:31:09]MH_I2C_Read... [09:31:10]OFD Sender: No OFD packet to send [09:31:10]*** Cut start [09:31:10]*** Partial cut [09:31:10]*** CUTSNS_PIN = 1 [09:31:10]*** CUTSNS_PIN = 0 [09:31:10]*** Brake cut motor [09:31:11]Read from MH i2c: 01 [09:31:11]MH_I2C_Read... [09:31:11]*** Stop cut motor [09:31:11]*** Cut end [09:31:11]Read from MH i2c: 01 07 00 [09:31:11]MH_I2C_Read... [09:31:11]Read from MH i2c: 01 07 00 D2 21 00 00 00 00 00 FF 0F 08 [09:31:11]process_action close_receipt done [09:31:11]requested_data is exist [09:31:11]produce_requested_data [09:31:11]requested_item fm.sn is exist - process it [09:31:11]wFMCommunicate request_size=4 [09:31:11]MH_SAM_APDU [09:31:11]CAPDU: 80 11 00 00 [09:31:11]Write to MH i2c: E2 08 00 D3 21 80 11 00 00 00 00 00 00 6E [09:31:11]Write i2c OK [09:31:11]MH_I2C_Read... [09:31:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:11]Read from MH i2c: E2 [09:31:11]MH_I2C_Read... [09:31:11]Read from MH i2c: E2 17 00 [09:31:11]MH_I2C_Read... [09:31:11]Read from MH i2c: E2 17 00 D3 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C4 [09:31:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:31:11]wFMCommunicate OK [09:31:11]requested_item fd.num is exist - process it [09:31:11]SAM_PROTO_GetFieldsCounters [09:31:11]wFMCommunicate request_size=4 [09:31:11]MH_SAM_APDU [09:31:11]CAPDU: 80 13 00 00 [09:31:11]Write to MH i2c: E2 08 00 D4 21 80 13 00 00 00 00 00 00 71 [09:31:11]Write i2c OK [09:31:11]MH_I2C_Read... [09:31:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:31:11]Read from MH i2c: E2 [09:31:11]MH_I2C_Read... [09:31:11]Read from MH i2c: E2 62 00 [09:31:11]MH_I2C_Read... [09:31:11]Read from MH i2c: E2 62 00 D4 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 34 85 02 00 0E 04 04 00 C0 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 9B [09:31: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 34 85 02 00 0E 04 04 00 C0 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 [09:31:11]wFMCommunicate OK [09:31:11]SAM_PROTO_GetFieldsCounters done [09:31:11]requested_item shift.num is exist - process it [09:31:11]requested_item shift.opened is exist - process it [09:31:11]req_shift_opened [09:31:11]FM_GetShiftState [09:31:11]SAM_PROTO_GetShiftState [09:31:11]wFMCommunicate request_size=4 [09:31:11]MH_SAM_APDU [09:31:11]CAPDU: 80 13 01 00 [09:31:11]Write to MH i2c: E2 08 00 D5 21 80 13 01 00 00 00 00 00 73 [09:31:11]Write i2c OK [09:31:11]MH_I2C_Read... [09:31:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:11]Read from MH i2c: E2 [09:31:11]MH_I2C_Read... [09:31:11]Read from MH i2c: E2 0E 00 [09:31:11]MH_I2C_Read... [09:31:11]Read from MH i2c: E2 0E 00 D5 21 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 4C [09:31:11]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [09:31:11]wFMCommunicate OK [09:31:11]SAM_PROTO_GetShiftState done [09:31:11]FM_GetShiftState done [09:31:11]req_shift_opened done [09:31:11]requested_item shift.open_date is exist - process it [09:31:11]req_shift_open_date [09:31:11]req_shift_open_date done [09:31:11]produce_requested_data done [09:31:11]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165172,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [09:31:11]process_action_free close_receipt [09:31:11]json_value_free [09:31:11]json_value_free done [09:31:11]process_json_proto returns [09:31:11]Send response to host [09:31:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165172,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [09:31:11]free response buf [09:31:11]execute_script done [09:31:11]execute_script returns [09:31:11]free content buf [09:31:11]Sock 7.Close socket [09:31:11]Sock 7.Thread stoped [09:31:15]OFD Sender: No OFD packet to send [09:31:20]OFD Sender: No OFD packet to send [09:31:25]OFD Sender: No OFD packet to send [09:31:30]OFD Sender: No OFD packet to send [09:31:35]OFD Sender: No OFD packet to send [09:31:40]OFD Sender: No OFD packet to send [09:31:45]OFD Sender: No OFD packet to send [09:31:50]OFD Sender: No OFD packet to send [09:31:55]OFD Sender: No OFD packet to send [09:32:00]OFD Sender: No OFD packet to send [09:32:05]OFD Sender: No OFD packet to send [09:32:10]OFD Sender: No OFD packet to send [09:32:15]OFD Sender: No OFD packet to send [09:32:20]OFD Sender: No OFD packet to send [09:32:25]OFD Sender: No OFD packet to send [09:32:30]OFD Sender: No OFD packet to send [09:32:35]OFD Sender: No OFD packet to send [09:32:40]OFD Sender: No OFD packet to send [09:32:45]OFD Sender: No OFD packet to send [09:32:50]OFD Sender: No OFD packet to send [09:32:55]OFD Sender: No OFD packet to send [09:33:00]OFD Sender: No OFD packet to send [09:33:05]OFD Sender: No OFD packet to send [09:33:10]OFD Sender: No OFD packet to send [09:33:15]OFD Sender: No OFD packet to send [09:33:20]OFD Sender: No OFD packet to send [09:33:25]OFD Sender: No OFD packet to send [09:33:30]OFD Sender: No OFD packet to send [09:33:35]OFD Sender: No OFD packet to send [09:33:40]OFD Sender: No OFD packet to send [09:33:45]OFD Sender: No OFD packet to send [09:33:50]OFD Sender: No OFD packet to send [09:33:55]OFD Sender: No OFD packet to send [09:34:00]OFD Sender: No OFD packet to send [09:34:05]OFD Sender: No OFD packet to send [09:34:10]OFD Sender: No OFD packet to send [09:34:15]OFD Sender: No OFD packet to send [09:34:20]OFD Sender: No OFD packet to send [09:34:25]OFD Sender: No OFD packet to send [09:34:30]OFD Sender: No OFD packet to send [09:34:35]OFD Sender: No OFD packet to send [09:34:40]OFD Sender: No OFD packet to send [09:34:45]OFD Sender: No OFD packet to send [09:34:50]OFD Sender: No OFD packet to send [09:34:55]OFD Sender: No OFD packet to send [09:35:00]OFD Sender: No OFD packet to send [09:35:05]OFD Sender: No OFD packet to send [09:35:10]OFD Sender: No OFD packet to send [09:35:15]OFD Sender: No OFD packet to send [09:35:20]OFD Sender: No OFD packet to send [09:35:25]OFD Sender: No OFD packet to send [09:35:30]OFD Sender: No OFD packet to send [09:35:35]OFD Sender: No OFD packet to send [09:35:40]OFD Sender: No OFD packet to send [09:35:45]OFD Sender: No OFD packet to send [09:35:50]OFD Sender: No OFD packet to send [09:35:55]OFD Sender: No OFD packet to send [09:36:00]OFD Sender: No OFD packet to send [09:36:05]OFD Sender: No OFD packet to send [09:36:10]OFD Sender: No OFD packet to send [09:36:15]OFD Sender: No OFD packet to send [09:36:20]OFD Sender: No OFD packet to send [09:36:25]OFD Sender: No OFD packet to send [09:36:30]OFD Sender: No OFD packet to send [09:36:35]OFD Sender: No OFD packet to send [09:36:40]OFD Sender: No OFD packet to send [09:36:45]OFD Sender: No OFD packet to send [09:36:50]OFD Sender: No OFD packet to send [09:36:55]OFD Sender: No OFD packet to send [09:37:00]OFD Sender: No OFD packet to send [09:37:05]OFD Sender: No OFD packet to send [09:37:10]OFD Sender: No OFD packet to send [09:37:15]OFD Sender: No OFD packet to send [09:37:20]OFD Sender: No OFD packet to send [09:37:25]OFD Sender: No OFD packet to send [09:37:30]OFD Sender: No OFD packet to send [09:37:35]OFD Sender: No OFD packet to send [09:37:40]OFD Sender: No OFD packet to send [09:37:45]OFD Sender: No OFD packet to send [09:37:50]OFD Sender: No OFD packet to send [09:37:55]OFD Sender: No OFD packet to send [09:38:00]OFD Sender: No OFD packet to send [09:38:05]OFD Sender: No OFD packet to send [09:38:10]OFD Sender: No OFD packet to send [09:38:15]OFD Sender: No OFD packet to send [09:38:20]OFD Sender: No OFD packet to send [09:38:25]OFD Sender: No OFD packet to send [09:38:30]OFD Sender: No OFD packet to send [09:38:35]OFD Sender: No OFD packet to send [09:38:40]OFD Sender: No OFD packet to send [09:38:42]accept exits with 9 [09:38:42]New connection [09:38:42]New thread 3066785124 created [09:38:42]Thread 3066928484 joined [09:38:42]Waiting for new connection... [09:38:42] Sock 9.Parse request [09:38:42]Sock 9.Check first char [09:38:42]Sock 9.First char is OK [09:38:42]request: POST /json_proto HTTP/1.0 [09:38:42]Method: POST [09:38:42]URL: /json_proto [09:38:42]Method is POST - this is cgi request [09:38:42]url: /json_proto [09:38:42]query_string will be loaded in cgi processing [09:38:42]execute_cgi json_proto POST (null) [09:38:42]execute_cgi path=json_proto method=POST [09:38:42]POST find Content-Length [09:38:42]Host: 172.17.56.4:8080 [09:38:42]Content-Length: 677 [09:38:42]Content-Type: application/json [09:38:42] [09:38:42]POST finish read [09:38:42]Found Content-Length = 677 [09:38:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459275", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:38:42]execute_script... [09:38: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)459275", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:38:42]POST & json_proto [09:38:42]process_json_proto [09:38:42]json parsed OK: [09:38:42]protocol is kg_v1.0 [09:38:42]action value=close_receipt [09:38:42]process_action close_receipt [09:38:42]cmd_close_receipt [09:38:42]MH_GetDate [09:38:42]Write to MH i2c: F0 00 00 D6 21 E6 [09:38:42]Write i2c OK [09:38:42]MH_I2C_Read... [09:38:42]Read from MH i2c: F0 [09:38:42]MH_I2C_Read... [09:38:42]Read from MH i2c: F0 09 00 [09:38:42]MH_I2C_Read... [09:38:42]Read from MH i2c: F0 09 00 D6 21 00 27 EE 94 66 C9 DC B2 64 B9 [09:38:42]GetLastDocTimeStamp 1721035872 [09:38:42]current date 1721036327 [09:38:42]FM_GetShiftState [09:38:42]SAM_PROTO_GetShiftState [09:38:42]wFMCommunicate request_size=4 [09:38:42]MH_SAM_APDU [09:38:42]CAPDU: 80 13 01 00 [09:38:42]Write to MH i2c: E2 08 00 D7 21 80 13 01 00 00 00 00 00 75 [09:38:42]Write i2c OK [09:38:42]MH_I2C_Read... [09:38:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:42]Read from MH i2c: E2 [09:38:42]MH_I2C_Read... [09:38:42]Read from MH i2c: E2 0E 00 [09:38:42]MH_I2C_Read... [09:38:42]Read from MH i2c: E2 0E 00 D7 21 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 4E [09:38:42]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [09:38:42]wFMCommunicate OK [09:38:42]SAM_PROTO_GetShiftState done [09:38:42]FM_GetShiftState done [09:38:42]opened in 1721003876 [09:38:42]opened+sec_in_day 1721090276 [09:38:42]quantity*price = 40006 [09:38:42]sum+1 = 40007 [09:38:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 46 15.07.2024 09:38 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165173 ФПД: 279615160175810 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T093847&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165173&fm=279615160175810&tin=02508201610067®Number=0000000000090829&sum=40000 [09:38:43]StoreToDocumentArchive [09:38:43]shift 448 fd 165173 [09:38:43]save to /storage/0448/doc_00165173 [09:38:43]save last doc name /storage/0448/doc_00165173 to /storage/kkm_last_doc_name [09:38:43]save OK [09:38:43]Clear old archive folders... [09:38:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:38:43]tlvbuf is 01360A30 [09:38:43]SAM_PROTO_ClearQueue [09:38:43]wFMCommunicate request_size=4 [09:38:43]MH_SAM_APDU [09:38:43]CAPDU: 80 09 00 00 [09:38:43]Write to MH i2c: E2 08 00 E4 21 80 09 00 00 00 00 00 00 77 [09:38:43]Write i2c OK [09:38:43]MH_I2C_Read... [09:38:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:38:43]Read from MH i2c: E2 [09:38:43]MH_I2C_Read... [09:38:43]Read from MH i2c: E2 03 00 [09:38:43]MH_I2C_Read... [09:38:43]Read from MH i2c: E2 03 00 E4 21 00 90 00 79 [09:38:43]RAPDU: 90 00 [09:38:43]wFMCommunicate OK [09:38:43]SAM_PROTO_ClearQueue done [09:38:43]KKMCreateOFDPacket [09:38:43]OFDProtocolAddRootSTLVToBuf [09:38:43]FM_MakeSignedData [09:38:43]FM_MakeSignedData [09:38:43]SAM_PROTO_SignData [09:38:43]wFMCommunicate request_size=4 [09:38:43]MH_SAM_APDU [09:38:43]CAPDU: 80 0D 01 02 [09:38:43]Write to MH i2c: E2 08 00 E5 21 80 0D 01 02 00 00 00 00 7F [09:38:43]Write i2c OK [09:38:43]MH_I2C_Read... [09:38:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:38:43]Read from MH i2c: E2 [09:38:43]MH_I2C_Read... [09:38:43]Read from MH i2c: E2 03 00 [09:38:43]MH_I2C_Read... [09:38:43]Read from MH i2c: E2 03 00 E5 21 00 90 00 7A [09:38:43]RAPDU: 90 00 [09:38:43]wFMCommunicate OK [09:38:43]wFMCommunicate request_size=255 [09:38:43]MH_SAM_APDU [09:38: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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 27 EE 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 35 85 02 00 35 04 06 00 FE [09:38:43]Write to MH i2c: E2 02 01 E6 21 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 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 27 EE 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 35 85 02 00 35 04 06 00 FE 00 00 90 [09:38:43]Write i2c OK [09:38:43]MH_I2C_Read... [09:38:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:44]Read from MH i2c: E2 [09:38:44]MH_I2C_Read... [09:38:44]Read from MH i2c: E2 03 00 [09:38:44]MH_I2C_Read... [09:38:44]Read from MH i2c: E2 03 00 E6 21 00 90 00 7B [09:38:44]RAPDU: 90 00 [09:38:44]wFMCommunicate OK [09:38:44]wFMCommunicate request_size=10 [09:38:44]MH_SAM_APDU [09:38:44]CAPDU: 80 0D 02 02 05 4E FA 4B CC C2 [09:38:44]Write to MH i2c: E2 0D 00 E7 21 80 0D 02 02 05 00 4E FA 4B CC C2 00 00 AD [09:38:44]Write i2c OK [09:38:44]MH_I2C_Read... [09:38:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:44]Read from MH i2c: E2 [09:38:44]MH_I2C_Read... [09:38:44]Read from MH i2c: E2 03 00 [09:38:44]MH_I2C_Read... [09:38:44]Read from MH i2c: E2 03 00 E7 21 00 90 00 7C [09:38:44]RAPDU: 90 00 [09:38:44]wFMCommunicate OK [09:38:44]wFMCommunicate request_size=4 [09:38:44]MH_SAM_APDU [09:38:44]CAPDU: 80 0D 03 02 [09:38:44]Write to MH i2c: E2 08 00 E8 21 80 0D 03 02 00 00 00 00 84 [09:38:44]Write i2c OK [09:38:44]MH_I2C_Read... [09:38:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:38:44]Read from MH i2c: E2 [09:38:44]MH_I2C_Read... [09:38:44]Read from MH i2c: E2 0B 00 [09:38:44]MH_I2C_Read... [09:38:44]Read from MH i2c: E2 0B 00 E8 21 00 CC 96 25 3F 01 91 FC 9E 90 00 77 [09:38:44]RAPDU: CC 96 25 3F 01 91 FC 9E 90 00 [09:38:44]wFMCommunicate OK [09:38:44]SAM_PROTO_SignData done [09:38:44]FM_MakeSignedData done [09:38:44]CreateOFDProtocolMessage [09:38:44]wFMCommunicate request_size=4 [09:38:44]MH_SAM_APDU [09:38:44]CAPDU: 80 11 00 00 [09:38:44]Write to MH i2c: E2 08 00 E9 21 80 11 00 00 00 00 00 00 84 [09:38:44]Write i2c OK [09:38:44]MH_I2C_Read... [09:38:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:44]Read from MH i2c: E2 [09:38:44]MH_I2C_Read... [09:38:44]Read from MH i2c: E2 17 00 [09:38:44]MH_I2C_Read... [09:38:44]Read from MH i2c: E2 17 00 E9 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DA [09:38:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:38:44]wFMCommunicate OK [09:38:44]CreateOFDProtocolMessage done [09:38:44]OFDSenderStorePacket 165173 [09:38:44]StoreOFDPacket docnum=165173 [09:38:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 21 72 07 01 F6 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 27 EE 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 35 85 02 00 35 04 06 00 FE 4E FA 4B CC C2 CC 96 25 3F 01 91 FC 9E [09:38:44]CheckFolder [09:38:44]dirname=/storage/ofd_packets [09:38:44]CheckFolder done [09:38:44]ProducePacketName [09:38:44]name=ofd_packets/00165173 [09:38:44]NVStorageSaveData ofd_packets/00165173 [09:38:44]File name is /storage/ofd_packets/00165173 [09:38:44]Write 301 bytes [09:38:44]NVStorageSaveData done [09:38:44]OFDSenderStorePacket done [09:38:44]KKMCreateOFDPacket done [09:38:44]NVStorageSaveData kkm_last_timestamp [09:38:44]File name is /storage/kkm_last_timestamp [09:38:44]Write 4 bytes [09:38:44]NVStorageSaveData done [09:38:44]ExternCall_PrintAddStr [09:38:44]wPrintStart [09:38:44]Write to MH i2c: 01 00 00 EA 21 0B [09:38:44]Write i2c OK [09:38:44]MH_I2C_Read... [09:38:44]Read from MH i2c: 01 [09:38:44]MH_I2C_Read... [09:38:44]Read from MH i2c: 01 07 00 [09:38:44]MH_I2C_Read... [09:38:44]Read from MH i2c: 01 07 00 EA 21 00 00 00 00 00 FF 0F 20 [09:38:44]RasterBufferAndPrint [09:38:44]line Счет N : (1)459275 [09:38:44]line ИНН: 02508201610067 [09:38:44]line Контрольно-Кассовый Чек [09:38:44]line ПРОДАЖА [09:38:44]line ТРК (МРК, ГНК) : 12 [09:38:44]line Товар: 2710124130 [09:38:44]line Аи-92-К-5 [09:38:44]line 6.080 * 65.80 [09:38:44]line = 400.06 [09:38:44]line НДС 12% НСП 1% [09:38:44]line > о реализуемом товаре [09:38:44]line ОКРУГЛЕНИЕ: -0.06 [09:38:44]line ИТОГО: 400.00 [09:38:44]line Внесено: 400.00 [09:38:44]line СДАЧА: 0.00 [09:38:44]line НСП 1% : 3.54 [09:38:44]line НДС 12% : 42.48 [09:38:44]line Наличными: 400.00 [09:38:44]line Безнал.: 0.00 [09:38:44]line Место: АЗС № 72 "Партнер Нефть" [09:38:44]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:38:44]line СНО: Общий режим [09:38:44]line Чек 46 15.07.2024 09:38 [09:38:44]line Смена: 448 ФФД: 1.0 [09:38:44]line ЗНМ: 0300000160 [09:38:44]line РНМ: 0000000000090829 [09:38:44]line Версия ККМ: 001 [09:38:44]line ФМ: 0000000000874718 [09:38:44]line ФД: 165173 [09:38:44]line ФПД: 279615160175810 [09:38:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T093847&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165173&fm=279615160175810&tin=02508201610067®Number=0000000000090829&sum=40000 [09:38:44]OFD Sender: Processing packet 165173 [packets to send 106, broken 105] [09:38:44]ProducePacketName [09:38:44]name=ofd_packets/00165173 [09:38:44]OFD Sender: To server: pG, [09:38:44]CommunicateWithHost lk.salyk.kg:30040 [09:38:44]ConnectInit lk.salyk.kg [09:38:44]written 0, free lines is 4095 [09:38:44]Connected sock=11 [09:38: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 37 31 38 0F 01 00 00 21 72 07 01 F6 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 27 EE 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 35 85 02 00 35 04 06 00 FE 4E FA 4B CC C2 CC 96 25 3F 01 91 FC 9E [09:38:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 7B 35 47 00 E3 B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 35 85 02 00 F4 03 04 00 B1 94 94 66 B6 04 01 00 00 D2 8D 71 2C E7 AC 35 C0 [09:38:44]CommunicateWithHost err = 0 [09:38:44]CheckOFDResponse [09:38:44]1017 (14) - 77093643461234 [09:38:44]1041 (16) - 0000000000874718 [09:38:44]1040 (4) - 165173 [09:38:44]1012 (4) - 15.07.2024 03:17 [09:38:44]1206 (1) - 0 [09:38:44]OFD Sender: Remove packet 165173 [09:38:44]ProducePacketName [09:38:44]name=ofd_packets/00165173 [09:38:44]NVStorageDeleteData [09:38:45]Write to MH i2c: 01 00 00 14 22 36 [09:38:45]Write i2c OK [09:38:45]MH_I2C_Read... [09:38:45]Read from MH i2c: 01 [09:38:45]MH_I2C_Read... [09:38:45]Read from MH i2c: 01 07 00 [09:38:45]MH_I2C_Read... [09:38:45]Read from MH i2c: 01 07 00 14 22 00 00 00 00 00 04 0D 4E [09:38:45]RasterBufferAndPrint [09:38:45]line [09:38:45]line [09:38:45]line [09:38:45]line [09:38:45]line [09:38:45]written 0, free lines is 3338 [09:38:45]MH_Cut [09:38:45]Write to MH i2c: D1 01 00 1B 22 01 0F [09:38:45]Write i2c OK [09:38:45]MH_I2C_Read... [09:38:45]Read from MH i2c: D1 [09:38:45]MH_I2C_Read... [09:38:45]Read from MH i2c: D1 01 00 [09:38:45]MH_I2C_Read... [09:38:45]Read from MH i2c: D1 01 00 1B 22 00 0E [09:38:45]Write to MH i2c: 01 00 00 1C 22 3E [09:38:45]Write i2c OK [09:38:45]MH_I2C_Read... [09:38:45]OFD Sender: No OFD packet to send [09:38:45]*** Cut start [09:38:45]*** Partial cut [09:38:45]*** CUTSNS_PIN = 1 [09:38:45]*** CUTSNS_PIN = 0 [09:38:45]*** Brake cut motor [09:38:46]Read from MH i2c: 01 [09:38:46]MH_I2C_Read... [09:38:46]*** Stop cut motor [09:38:46]*** Cut end [09:38:46]Read from MH i2c: 01 07 00 [09:38:46]MH_I2C_Read... [09:38:46]Read from MH i2c: 01 07 00 1C 22 00 00 00 00 00 FF 0F 53 [09:38:46]process_action close_receipt done [09:38:46]requested_data is exist [09:38:46]produce_requested_data [09:38:46]requested_item fm.sn is exist - process it [09:38:46]wFMCommunicate request_size=4 [09:38:46]MH_SAM_APDU [09:38:46]CAPDU: 80 11 00 00 [09:38:46]Write to MH i2c: E2 08 00 1D 22 80 11 00 00 00 00 00 00 B9 [09:38:46]Write i2c OK [09:38:46]MH_I2C_Read... [09:38:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:46]Read from MH i2c: E2 [09:38:46]MH_I2C_Read... [09:38:46]Read from MH i2c: E2 17 00 [09:38:46]MH_I2C_Read... [09:38:46]Read from MH i2c: E2 17 00 1D 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0F [09:38:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:38:46]wFMCommunicate OK [09:38:46]requested_item fd.num is exist - process it [09:38:46]SAM_PROTO_GetFieldsCounters [09:38:46]wFMCommunicate request_size=4 [09:38:46]MH_SAM_APDU [09:38:46]CAPDU: 80 13 00 00 [09:38:46]Write to MH i2c: E2 08 00 1E 22 80 13 00 00 00 00 00 00 BC [09:38:46]Write i2c OK [09:38:46]MH_I2C_Read... [09:38:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:38:46]Read from MH i2c: E2 [09:38:46]MH_I2C_Read... [09:38:46]Read from MH i2c: E2 62 00 [09:38:46]MH_I2C_Read... [09:38:46]Read from MH i2c: E2 62 00 1E 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 35 85 02 00 0E 04 04 00 C0 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 EA [09:38: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 35 85 02 00 0E 04 04 00 C0 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 [09:38:46]wFMCommunicate OK [09:38:46]SAM_PROTO_GetFieldsCounters done [09:38:46]requested_item shift.num is exist - process it [09:38:46]requested_item shift.opened is exist - process it [09:38:46]req_shift_opened [09:38:46]FM_GetShiftState [09:38:46]SAM_PROTO_GetShiftState [09:38:46]wFMCommunicate request_size=4 [09:38:46]MH_SAM_APDU [09:38:46]CAPDU: 80 13 01 00 [09:38:46]Write to MH i2c: E2 08 00 1F 22 80 13 01 00 00 00 00 00 BE [09:38:46]Write i2c OK [09:38:46]MH_I2C_Read... [09:38:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:46]Read from MH i2c: E2 [09:38:46]MH_I2C_Read... [09:38:46]Read from MH i2c: E2 0E 00 [09:38:46]MH_I2C_Read... [09:38:46]Read from MH i2c: E2 0E 00 1F 22 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 97 [09:38:46]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [09:38:46]wFMCommunicate OK [09:38:46]SAM_PROTO_GetShiftState done [09:38:46]FM_GetShiftState done [09:38:46]req_shift_opened done [09:38:46]requested_item shift.open_date is exist - process it [09:38:46]req_shift_open_date [09:38:46]req_shift_open_date done [09:38:46]produce_requested_data done [09:38:46]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165173,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [09:38:46]process_action_free close_receipt [09:38:46]json_value_free [09:38:46]json_value_free done [09:38:46]process_json_proto returns [09:38:46]Send response to host [09:38:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165173,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [09:38:46]free response buf [09:38:46]execute_script done [09:38:46]execute_script returns [09:38:46]free content buf [09:38:46]Sock 9.Close socket [09:38:46]Sock 9.Thread stoped [09:38:50]OFD Sender: No OFD packet to send [09:38:55]OFD Sender: No OFD packet to send [09:39:00]OFD Sender: No OFD packet to send [09:39:05]OFD Sender: No OFD packet to send [09:39:10]OFD Sender: No OFD packet to send [09:39:15]OFD Sender: No OFD packet to send [09:39:20]OFD Sender: No OFD packet to send [09:39:25]OFD Sender: No OFD packet to send [09:39:27]accept exits with 7 [09:39:27]New connection [09:39:27]New thread 3066928484 created [09:39:27]Thread 3066785124 joined [09:39:27]Waiting for new connection... [09:39:27] Sock 7.Parse request [09:39:27]Sock 7.Check first char [09:39:27]Sock 7.First char is OK [09:39:27]request: POST /json_proto HTTP/1.0 [09:39:27]Method: POST [09:39:27]URL: /json_proto [09:39:27]Method is POST - this is cgi request [09:39:27]url: /json_proto [09:39:27]query_string will be loaded in cgi processing [09:39:27]execute_cgi json_proto POST (null) [09:39:27]execute_cgi path=json_proto method=POST [09:39:27]POST find Content-Length [09:39:27]Host: 172.17.56.4:8080 [09:39:27]Content-Length: 791 [09:39:27]Content-Type: application/json [09:39:27] [09:39:27]POST finish read [09:39:27]Found Content-Length = 791 [09:39:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459276", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 10.080, "sum" : 657.42, "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 657.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:27]execute_script... [09:39:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459276", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 10.080, "sum" : 657.42, "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 657.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:27]POST & json_proto [09:39:27]process_json_proto [09:39:27]json parsed OK: [09:39:27]protocol is kg_v1.0 [09:39:27]action value=close_receipt [09:39:27]process_action close_receipt [09:39:27]cmd_close_receipt [09:39:27]MH_GetDate [09:39:27]Write to MH i2c: F0 00 00 20 22 31 [09:39:27]Write i2c OK [09:39:27]MH_I2C_Read... [09:39:27]Read from MH i2c: F0 [09:39:27]MH_I2C_Read... [09:39:27]Read from MH i2c: F0 09 00 [09:39:27]MH_I2C_Read... [09:39:27]Read from MH i2c: F0 09 00 20 22 00 53 EE 94 66 C9 DC B2 64 30 [09:39:27]GetLastDocTimeStamp 1721036327 [09:39:27]current date 1721036371 [09:39:27]FM_GetShiftState [09:39:27]SAM_PROTO_GetShiftState [09:39:27]wFMCommunicate request_size=4 [09:39:27]MH_SAM_APDU [09:39:27]CAPDU: 80 13 01 00 [09:39:27]Write to MH i2c: E2 08 00 21 22 80 13 01 00 00 00 00 00 C0 [09:39:27]Write i2c OK [09:39:27]MH_I2C_Read... [09:39:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:27]Read from MH i2c: E2 [09:39:27]MH_I2C_Read... [09:39:27]Read from MH i2c: E2 0E 00 [09:39:27]MH_I2C_Read... [09:39:27]Read from MH i2c: E2 0E 00 21 22 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 99 [09:39:27]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [09:39:27]wFMCommunicate OK [09:39:27]SAM_PROTO_GetShiftState done [09:39:27]FM_GetShiftState done [09:39:27]opened in 1721003876 [09:39:27]opened+sec_in_day 1721090276 [09:39:27]quantity*price = 65741 [09:39:27]sum+1 = 65743 [09:39:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 657.42 НСП 1% : 5.82 НДС 12% : 69.81 Наличными: 0.00 Безнал.: 657.42 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 47 15.07.2024 09:39 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 165174 ФПД: 103399310445474 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T093932&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165174&fm=103399310445474&tin=02508201610067®Number=0000000000090829&sum=65742 [09:39:28]StoreToDocumentArchive [09:39:28]shift 448 fd 165174 [09:39:28]save to /storage/0448/doc_00165174 [09:39:28]save last doc name /storage/0448/doc_00165174 to /storage/kkm_last_doc_name [09:39:28]save OK [09:39:28]Clear old archive folders... [09:39:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:39:28]tlvbuf is B6EBB130 [09:39:28]SAM_PROTO_ClearQueue [09:39:28]wFMCommunicate request_size=4 [09:39:28]MH_SAM_APDU [09:39:28]CAPDU: 80 09 00 00 [09:39:28]Write to MH i2c: E2 08 00 2E 22 80 09 00 00 00 00 00 00 C2 [09:39:28]Write i2c OK [09:39:28]MH_I2C_Read... [09:39:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:39:28]Read from MH i2c: E2 [09:39:28]MH_I2C_Read... [09:39:28]Read from MH i2c: E2 03 00 [09:39:28]MH_I2C_Read... [09:39:28]Read from MH i2c: E2 03 00 2E 22 00 90 00 C4 [09:39:28]RAPDU: 90 00 [09:39:28]wFMCommunicate OK [09:39:28]SAM_PROTO_ClearQueue done [09:39:28]KKMCreateOFDPacket [09:39:28]OFDProtocolAddRootSTLVToBuf [09:39:28]FM_MakeSignedData [09:39:28]FM_MakeSignedData [09:39:28]SAM_PROTO_SignData [09:39:28]wFMCommunicate request_size=4 [09:39:28]MH_SAM_APDU [09:39:28]CAPDU: 80 0D 01 02 [09:39:28]Write to MH i2c: E2 08 00 2F 22 80 0D 01 02 00 00 00 00 CA [09:39:28]Write i2c OK [09:39:28]MH_I2C_Read... [09:39:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:39:28]Read from MH i2c: E2 [09:39:28]MH_I2C_Read... [09:39:28]Read from MH i2c: E2 03 00 [09:39:28]MH_I2C_Read... [09:39:28]Read from MH i2c: E2 03 00 2F 22 00 90 00 C5 [09:39:28]RAPDU: 90 00 [09:39:28]wFMCommunicate OK [09:39:28]wFMCommunicate request_size=255 [09:39:28]MH_SAM_APDU [09:39:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 CE 00 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CE 00 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CE 00 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 54 EE 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 36 85 02 00 35 04 06 00 5E [09:39:28]Write to MH i2c: E2 02 01 30 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 CE 00 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CE 00 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CE 00 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 54 EE 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 36 85 02 00 35 04 06 00 5E 00 00 50 [09:39:28]Write i2c OK [09:39:28]MH_I2C_Read... [09:39:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:28]Read from MH i2c: E2 [09:39:28]MH_I2C_Read... [09:39:28]Read from MH i2c: E2 03 00 [09:39:28]MH_I2C_Read... [09:39:28]Read from MH i2c: E2 03 00 30 22 00 90 00 C6 [09:39:28]RAPDU: 90 00 [09:39:28]wFMCommunicate OK [09:39:28]wFMCommunicate request_size=10 [09:39:28]MH_SAM_APDU [09:39:28]CAPDU: 80 0D 02 02 05 0A 87 2B 4B A2 [09:39:28]Write to MH i2c: E2 0D 00 31 22 80 0D 02 02 05 00 0A 87 2B 4B A2 00 00 80 [09:39:28]Write i2c OK [09:39:28]MH_I2C_Read... [09:39:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:29]Read from MH i2c: E2 [09:39:29]MH_I2C_Read... [09:39:29]Read from MH i2c: E2 03 00 [09:39:29]MH_I2C_Read... [09:39:29]Read from MH i2c: E2 03 00 31 22 00 90 00 C7 [09:39:29]RAPDU: 90 00 [09:39:29]wFMCommunicate OK [09:39:29]wFMCommunicate request_size=4 [09:39:29]MH_SAM_APDU [09:39:29]CAPDU: 80 0D 03 02 [09:39:29]Write to MH i2c: E2 08 00 32 22 80 0D 03 02 00 00 00 00 CF [09:39:29]Write i2c OK [09:39:29]MH_I2C_Read... [09:39:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:39:29]Read from MH i2c: E2 [09:39:29]MH_I2C_Read... [09:39:29]Read from MH i2c: E2 0B 00 [09:39:29]MH_I2C_Read... [09:39:29]Read from MH i2c: E2 0B 00 32 22 00 52 28 FF 39 DA EB AC DD 90 00 D0 [09:39:29]RAPDU: 52 28 FF 39 DA EB AC DD 90 00 [09:39:29]wFMCommunicate OK [09:39:29]SAM_PROTO_SignData done [09:39:29]FM_MakeSignedData done [09:39:29]CreateOFDProtocolMessage [09:39:29]wFMCommunicate request_size=4 [09:39:29]MH_SAM_APDU [09:39:29]CAPDU: 80 11 00 00 [09:39:29]Write to MH i2c: E2 08 00 33 22 80 11 00 00 00 00 00 00 CF [09:39:29]Write i2c OK [09:39:29]MH_I2C_Read... [09:39:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:29]Read from MH i2c: E2 [09:39:29]MH_I2C_Read... [09:39:29]Read from MH i2c: E2 17 00 [09:39:29]MH_I2C_Read... [09:39:29]Read from MH i2c: E2 17 00 33 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 25 [09:39:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:39:29]wFMCommunicate OK [09:39:29]CreateOFDProtocolMessage done [09:39:29]OFDSenderStorePacket 165174 [09:39:29]StoreOFDPacket docnum=165174 [09:39:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 6B 0E 07 01 EF 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 60 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 CE 00 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CE 00 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CE 00 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 54 EE 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 36 85 02 00 35 04 06 00 5E 0A 87 2B 4B A2 52 28 FF 39 DA EB AC DD [09:39:29]CheckFolder [09:39:29]dirname=/storage/ofd_packets [09:39:29]CheckFolder done [09:39:29]ProducePacketName [09:39:29]name=ofd_packets/00165174 [09:39:29]NVStorageSaveData ofd_packets/00165174 [09:39:29]File name is /storage/ofd_packets/00165174 [09:39:29]Write 301 bytes [09:39:29]NVStorageSaveData done [09:39:29]OFDSenderStorePacket done [09:39:29]KKMCreateOFDPacket done [09:39:29]NVStorageSaveData kkm_last_timestamp [09:39:29]File name is /storage/kkm_last_timestamp [09:39:29]Write 4 bytes [09:39:29]NVStorageSaveData done [09:39:29]ExternCall_PrintAddStr [09:39:29]wPrintStart [09:39:29]Write to MH i2c: 01 00 00 34 22 56 [09:39:29]Write i2c OK [09:39:29]MH_I2C_Read... [09:39:29]Read from MH i2c: 01 [09:39:29]MH_I2C_Read... [09:39:29]Read from MH i2c: 01 07 00 [09:39:29]MH_I2C_Read... [09:39:29]Read from MH i2c: 01 07 00 34 22 00 00 00 00 00 FF 0F 6B [09:39:29]RasterBufferAndPrint [09:39:29]line Счет N : (1)459276 [09:39:29]line ИНН: 02508201610067 [09:39:29]line Контрольно-Кассовый Чек [09:39:29]line ПРОДАЖА [09:39:29]line ТРК (МРК, ГНК) : 22 [09:39:29]line Товар: 2710124130 [09:39:29]line Аи-92-К-5 [09:39:29]line 10.080 * 65.22 [09:39:29]line = 657.42 [09:39:29]line НДС 12% НСП 1% [09:39:29]line > о реализуемом товаре [09:39:29]line ИТОГО: 657.42 [09:39:29]line НСП 1% : 5.82 [09:39:29]line НДС 12% : 69.81 [09:39:29]line Наличными: 0.00 [09:39:29]line Безнал.: 657.42 [09:39:29]line Место: АЗС № 72 "Партнер Нефть" [09:39:29]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:39:29]line СНО: Общий режим [09:39:29]line Чек 47 15.07.2024 09:39 [09:39:29]line Смена: 448 ФФД: 1.0 [09:39:29]line ЗНМ: 0300000160 [09:39:29]line РНМ: 0000000000090829 [09:39:29]line Версия ККМ: 001 [09:39:29]line Платежная система: KICB Банк [09:39:29]line ФМ: 0000000000874718 [09:39:29]line ФД: 165174 [09:39:29]line ФПД: 103399310445474 [09:39:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T093932&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165174&fm=103399310445474&tin=02508201610067®Number=0000000000090829&sum=65742 [09:39:29]written 0, free lines is 4095 [09:39:29]OFD Sender: Processing packet 165174 [packets to send 106, broken 105] [09:39:29]ProducePacketName [09:39:29]name=ofd_packets/00165174 [09:39:29]OFD Sender: To server: pG, [09:39:29]CommunicateWithHost lk.salyk.kg:30040 [09:39:29]ConnectInit lk.salyk.kg [09:39:29]Write to MH i2c: 01 00 00 5D 22 7F [09:39:29]Write i2c OK [09:39:29]MH_I2C_Read... [09:39:29]Read from MH i2c: 01 [09:39:29]MH_I2C_Read... [09:39:29]Read from MH i2c: 01 07 00 [09:39:29]MH_I2C_Read... [09:39:29]Read from MH i2c: 01 07 00 5D 22 00 00 00 00 00 0A 0D 9D [09:39:29]RasterBufferAndPrint [09:39:29]line [09:39:29]line [09:39:29]line [09:39:29]line [09:39:29]line [09:39:29]written 0, free lines is 3344 [09:39:29]Connected sock=10 [09:39:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 6B 0E 07 01 EF 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 60 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 CE 00 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CE 00 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CE 00 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 54 EE 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 36 85 02 00 35 04 06 00 5E 0A 87 2B 4B A2 52 28 FF 39 DA EB AC DD [09:39:29]MH_Cut [09:39:29]Write to MH i2c: D1 01 00 64 22 01 58 [09:39:29]Write i2c OK [09:39:29]MH_I2C_Read... [09:39:29]Read from MH i2c: D1 [09:39:29]MH_I2C_Read... [09:39:29]Read from MH i2c: D1 01 00 [09:39:29]MH_I2C_Read... [09:39:29]Read from MH i2c: D1 01 00 64 22 00 57 [09:39:29]Write to MH i2c: 01 00 00 65 22 87 [09:39:29]Write i2c OK [09:39:29]MH_I2C_Read... [09:39:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 EA FE 47 00 4E 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 36 85 02 00 F4 03 04 00 DE 94 94 66 B6 04 01 00 00 8E 11 16 B5 14 70 59 56 [09:39:29]CommunicateWithHost err = 0 [09:39:29]CheckOFDResponse [09:39:29]1017 (14) - 77093643461234 [09:39:29]1041 (16) - 0000000000874718 [09:39:29]1040 (4) - 165174 [09:39:29]1012 (4) - 15.07.2024 03:17 [09:39:29]1206 (1) - 0 [09:39:29]OFD Sender: Remove packet 165174 [09:39:29]ProducePacketName [09:39:29]name=ofd_packets/00165174 [09:39:29]NVStorageDeleteData [09:39:30]*** Cut start [09:39:30]*** Partial cut [09:39:30]*** CUTSNS_PIN = 1 [09:39:30]*** CUTSNS_PIN = 0 [09:39:30]OFD Sender: No OFD packet to send [09:39:30]*** Brake cut motor [09:39:30]Read from MH i2c: 01 [09:39:30]MH_I2C_Read... [09:39:30]*** Stop cut motor [09:39:30]*** Cut end [09:39:30]Read from MH i2c: 01 07 00 [09:39:30]MH_I2C_Read... [09:39:30]Read from MH i2c: 01 07 00 65 22 00 00 00 00 00 FF 0F 9C [09:39:30]process_action close_receipt done [09:39:30]requested_data is exist [09:39:30]produce_requested_data [09:39:30]requested_item fm.sn is exist - process it [09:39:30]wFMCommunicate request_size=4 [09:39:30]MH_SAM_APDU [09:39:30]CAPDU: 80 11 00 00 [09:39:30]Write to MH i2c: E2 08 00 66 22 80 11 00 00 00 00 00 00 02 [09:39:30]Write i2c OK [09:39:30]MH_I2C_Read... [09:39:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:30]Read from MH i2c: E2 [09:39:30]MH_I2C_Read... [09:39:30]Read from MH i2c: E2 17 00 [09:39:30]MH_I2C_Read... [09:39:30]Read from MH i2c: E2 17 00 66 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 58 [09:39:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:39:30]wFMCommunicate OK [09:39:30]requested_item fd.num is exist - process it [09:39:30]SAM_PROTO_GetFieldsCounters [09:39:30]wFMCommunicate request_size=4 [09:39:30]MH_SAM_APDU [09:39:30]CAPDU: 80 13 00 00 [09:39:30]Write to MH i2c: E2 08 00 67 22 80 13 00 00 00 00 00 00 05 [09:39:30]Write i2c OK [09:39:30]MH_I2C_Read... [09:39:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:39:31]Read from MH i2c: E2 [09:39:31]MH_I2C_Read... [09:39:31]Read from MH i2c: E2 62 00 [09:39:31]MH_I2C_Read... [09:39:31]Read from MH i2c: E2 62 00 67 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 36 85 02 00 0E 04 04 00 C0 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 37 [09:39: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 36 85 02 00 0E 04 04 00 C0 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 [09:39:31]wFMCommunicate OK [09:39:31]SAM_PROTO_GetFieldsCounters done [09:39:31]requested_item shift.num is exist - process it [09:39:31]requested_item shift.opened is exist - process it [09:39:31]req_shift_opened [09:39:31]FM_GetShiftState [09:39:31]SAM_PROTO_GetShiftState [09:39:31]wFMCommunicate request_size=4 [09:39:31]MH_SAM_APDU [09:39:31]CAPDU: 80 13 01 00 [09:39:31]Write to MH i2c: E2 08 00 68 22 80 13 01 00 00 00 00 00 07 [09:39:31]Write i2c OK [09:39:31]MH_I2C_Read... [09:39:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:31]Read from MH i2c: E2 [09:39:31]MH_I2C_Read... [09:39:31]Read from MH i2c: E2 0E 00 [09:39:31]MH_I2C_Read... [09:39:31]Read from MH i2c: E2 0E 00 68 22 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 E0 [09:39:31]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [09:39:31]wFMCommunicate OK [09:39:31]SAM_PROTO_GetShiftState done [09:39:31]FM_GetShiftState done [09:39:31]req_shift_opened done [09:39:31]requested_item shift.open_date is exist - process it [09:39:31]req_shift_open_date [09:39:31]req_shift_open_date done [09:39:31]produce_requested_data done [09:39:31]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165174,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [09:39:31]process_action_free close_receipt [09:39:31]json_value_free [09:39:31]json_value_free done [09:39:31]process_json_proto returns [09:39:31]Send response to host [09:39:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165174,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [09:39:31]free response buf [09:39:31]execute_script done [09:39:31]execute_script returns [09:39:31]free content buf [09:39:31]Sock 7.Close socket [09:39:31]Sock 7.Thread stoped [09:39:31]accept exits with 9 [09:39:31]New connection [09:39:31]New thread 3066785124 created [09:39:31]Thread 3066928484 joined [09:39:31]Waiting for new connection... [09:39:31] Sock 9.Parse request [09:39:31]Sock 9.Check first char [09:39:31]Sock 9.First char is OK [09:39:31]request: POST /json_proto HTTP/1.0 [09:39:31]Method: POST [09:39:31]URL: /json_proto [09:39:31]Method is POST - this is cgi request [09:39:31]url: /json_proto [09:39:31]query_string will be loaded in cgi processing [09:39:31]execute_cgi json_proto POST (null) [09:39:31]execute_cgi path=json_proto method=POST [09:39:31]POST find Content-Length [09:39:31]Host: 172.17.56.4:8080 [09:39:31]Content-Length: 677 [09:39:31]Content-Type: application/json [09:39:31] [09:39:31]POST finish read [09:39:31]Found Content-Length = 677 [09:39:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459277", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:31]execute_script... [09:39: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)459277", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:31]POST & json_proto [09:39:31]process_json_proto [09:39:31]json parsed OK: [09:39:31]protocol is kg_v1.0 [09:39:31]action value=close_receipt [09:39:31]process_action close_receipt [09:39:31]cmd_close_receipt [09:39:31]MH_GetDate [09:39:31]Write to MH i2c: F0 00 00 69 22 7A [09:39:31]Write i2c OK [09:39:31]MH_I2C_Read... [09:39:31]Read from MH i2c: F0 [09:39:31]MH_I2C_Read... [09:39:31]Read from MH i2c: F0 09 00 [09:39:31]MH_I2C_Read... [09:39:31]Read from MH i2c: F0 09 00 69 22 00 58 EE 94 66 C9 DC B2 64 7E [09:39:31]GetLastDocTimeStamp 1721036372 [09:39:31]current date 1721036376 [09:39:31]FM_GetShiftState [09:39:31]SAM_PROTO_GetShiftState [09:39:31]wFMCommunicate request_size=4 [09:39:31]MH_SAM_APDU [09:39:31]CAPDU: 80 13 01 00 [09:39:31]Write to MH i2c: E2 08 00 6A 22 80 13 01 00 00 00 00 00 09 [09:39:31]Write i2c OK [09:39:31]MH_I2C_Read... [09:39:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:31]Read from MH i2c: E2 [09:39:31]MH_I2C_Read... [09:39:31]Read from MH i2c: E2 0E 00 [09:39:31]MH_I2C_Read... [09:39:31]Read from MH i2c: E2 0E 00 6A 22 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 E2 [09:39:31]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [09:39:31]wFMCommunicate OK [09:39:31]SAM_PROTO_GetShiftState done [09:39:31]FM_GetShiftState done [09:39:31]opened in 1721003876 [09:39:31]opened+sec_in_day 1721090276 [09:39:31]quantity*price = 40006 [09:39:31]sum+1 = 40007 [09:39:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 48 15.07.2024 09:39 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165175 ФПД: 173084683888461 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T093936&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165175&fm=173084683888461&tin=02508201610067®Number=0000000000090829&sum=40000 [09:39:33]StoreToDocumentArchive [09:39:33]shift 448 fd 165175 [09:39:33]save to /storage/0448/doc_00165175 [09:39:33]save last doc name /storage/0448/doc_00165175 to /storage/kkm_last_doc_name [09:39:33]save OK [09:39:33]Clear old archive folders... [09:39:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:39:33]tlvbuf is B6ED4EE0 [09:39:33]SAM_PROTO_ClearQueue [09:39:33]wFMCommunicate request_size=4 [09:39:33]MH_SAM_APDU [09:39:33]CAPDU: 80 09 00 00 [09:39:33]Write to MH i2c: E2 08 00 77 22 80 09 00 00 00 00 00 00 0B [09:39:33]Write i2c OK [09:39:33]MH_I2C_Read... [09:39:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:39:33]Read from MH i2c: E2 [09:39:33]MH_I2C_Read... [09:39:33]Read from MH i2c: E2 03 00 [09:39:33]MH_I2C_Read... [09:39:33]Read from MH i2c: E2 03 00 77 22 00 90 00 0D [09:39:33]RAPDU: 90 00 [09:39:33]wFMCommunicate OK [09:39:33]SAM_PROTO_ClearQueue done [09:39:33]KKMCreateOFDPacket [09:39:33]OFDProtocolAddRootSTLVToBuf [09:39:33]FM_MakeSignedData [09:39:33]FM_MakeSignedData [09:39:33]SAM_PROTO_SignData [09:39:33]wFMCommunicate request_size=4 [09:39:33]MH_SAM_APDU [09:39:33]CAPDU: 80 0D 01 02 [09:39:33]Write to MH i2c: E2 08 00 78 22 80 0D 01 02 00 00 00 00 13 [09:39:33]Write i2c OK [09:39:33]MH_I2C_Read... [09:39:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:39:33]Read from MH i2c: E2 [09:39:33]MH_I2C_Read... [09:39:33]Read from MH i2c: E2 03 00 [09:39:33]MH_I2C_Read... [09:39:33]Read from MH i2c: E2 03 00 78 22 00 90 00 0E [09:39:33]RAPDU: 90 00 [09:39:33]wFMCommunicate OK [09:39:33]wFMCommunicate request_size=255 [09:39:33]MH_SAM_APDU [09:39:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 58 EE 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 37 85 02 00 35 04 06 00 9D [09:39:33]Write to MH i2c: E2 02 01 79 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 58 EE 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 37 85 02 00 35 04 06 00 9D 00 00 F8 [09:39:33]Write i2c OK [09:39:33]MH_I2C_Read... [09:39:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:33]Read from MH i2c: E2 [09:39:33]MH_I2C_Read... [09:39:33]Read from MH i2c: E2 03 00 [09:39:33]MH_I2C_Read... [09:39:33]Read from MH i2c: E2 03 00 79 22 00 90 00 0F [09:39:33]RAPDU: 90 00 [09:39:33]wFMCommunicate OK [09:39:33]wFMCommunicate request_size=10 [09:39:33]MH_SAM_APDU [09:39:33]CAPDU: 80 0D 02 02 05 6B 6B 19 67 4D [09:39:33]Write to MH i2c: E2 0D 00 7A 22 80 0D 02 02 05 00 6B 6B 19 67 4D 00 00 C3 [09:39:33]Write i2c OK [09:39:33]MH_I2C_Read... [09:39:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:33]Read from MH i2c: E2 [09:39:33]MH_I2C_Read... [09:39:33]Read from MH i2c: E2 03 00 [09:39:33]MH_I2C_Read... [09:39:33]Read from MH i2c: E2 03 00 7A 22 00 90 00 10 [09:39:33]RAPDU: 90 00 [09:39:33]wFMCommunicate OK [09:39:33]wFMCommunicate request_size=4 [09:39:33]MH_SAM_APDU [09:39:33]CAPDU: 80 0D 03 02 [09:39:33]Write to MH i2c: E2 08 00 7B 22 80 0D 03 02 00 00 00 00 18 [09:39:33]Write i2c OK [09:39:33]MH_I2C_Read... [09:39:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:39:33]Read from MH i2c: E2 [09:39:33]MH_I2C_Read... [09:39:33]Read from MH i2c: E2 0B 00 [09:39:33]MH_I2C_Read... [09:39:33]Read from MH i2c: E2 0B 00 7B 22 00 0F 6C 90 C6 C3 97 D6 85 90 00 9F [09:39:33]RAPDU: 0F 6C 90 C6 C3 97 D6 85 90 00 [09:39:33]wFMCommunicate OK [09:39:33]SAM_PROTO_SignData done [09:39:33]FM_MakeSignedData done [09:39:33]CreateOFDProtocolMessage [09:39:33]wFMCommunicate request_size=4 [09:39:33]MH_SAM_APDU [09:39:33]CAPDU: 80 11 00 00 [09:39:33]Write to MH i2c: E2 08 00 7C 22 80 11 00 00 00 00 00 00 18 [09:39:33]Write i2c OK [09:39:33]MH_I2C_Read... [09:39:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:33]Read from MH i2c: E2 [09:39:33]MH_I2C_Read... [09:39:33]Read from MH i2c: E2 17 00 [09:39:33]MH_I2C_Read... [09:39:33]Read from MH i2c: E2 17 00 7C 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6E [09:39:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:39:33]wFMCommunicate OK [09:39:33]CreateOFDProtocolMessage done [09:39:33]OFDSenderStorePacket 165175 [09:39:33]StoreOFDPacket docnum=165175 [09:39:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A8 8A 07 01 B2 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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 58 EE 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 37 85 02 00 35 04 06 00 9D 6B 6B 19 67 4D 0F 6C 90 C6 C3 97 D6 85 [09:39:33]CheckFolder [09:39:33]dirname=/storage/ofd_packets [09:39:33]CheckFolder done [09:39:33]ProducePacketName [09:39:33]name=ofd_packets/00165175 [09:39:33]NVStorageSaveData ofd_packets/00165175 [09:39:33]File name is /storage/ofd_packets/00165175 [09:39:33]Write 301 bytes [09:39:33]NVStorageSaveData done [09:39:33]OFDSenderStorePacket done [09:39:33]KKMCreateOFDPacket done [09:39:33]NVStorageSaveData kkm_last_timestamp [09:39:33]File name is /storage/kkm_last_timestamp [09:39:33]Write 4 bytes [09:39:33]NVStorageSaveData done [09:39:33]ExternCall_PrintAddStr [09:39:33]wPrintStart [09:39:33]Write to MH i2c: 01 00 00 7D 22 9F [09:39:33]Write i2c OK [09:39:33]MH_I2C_Read... [09:39:33]Read from MH i2c: 01 [09:39:33]MH_I2C_Read... [09:39:33]Read from MH i2c: 01 07 00 [09:39:33]MH_I2C_Read... [09:39:33]Read from MH i2c: 01 07 00 7D 22 00 00 00 00 00 FF 0F B4 [09:39:33]RasterBufferAndPrint [09:39:33]line Счет N : (1)459277 [09:39:33]line ИНН: 02508201610067 [09:39:33]line Контрольно-Кассовый Чек [09:39:33]line ПРОДАЖА [09:39:33]line ТРК (МРК, ГНК) : 12 [09:39:33]line Товар: 2710124130 [09:39:33]line Аи-92-К-5 [09:39:33]line 6.080 * 65.80 [09:39:33]line = 400.06 [09:39:33]line НДС 12% НСП 1% [09:39:33]line > о реализуемом товаре [09:39:33]line ОКРУГЛЕНИЕ: -0.06 [09:39:33]line ИТОГО: 400.00 [09:39:33]line Внесено: 400.00 [09:39:33]line СДАЧА: 0.00 [09:39:33]line НСП 1% : 3.54 [09:39:33]line НДС 12% : 42.48 [09:39:33]line Наличными: 400.00 [09:39:33]line Безнал.: 0.00 [09:39:33]line Место: АЗС № 72 "Партнер Нефть" [09:39:33]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:39:33]line СНО: Общий режим [09:39:33]line Чек 48 15.07.2024 09:39 [09:39:33]line Смена: 448 ФФД: 1.0 [09:39:33]line ЗНМ: 0300000160 [09:39:33]line РНМ: 0000000000090829 [09:39:33]line Версия ККМ: 001 [09:39:33]line ФМ: 0000000000874718 [09:39:33]line ФД: 165175 [09:39:33]line ФПД: 173084683888461 [09:39:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T093936&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165175&fm=173084683888461&tin=02508201610067®Number=0000000000090829&sum=40000 [09:39:33]written 0, free lines is 4095 [09:39:33]OFD Sender: Processing packet 165175 [packets to send 106, broken 105] [09:39:33]ProducePacketName [09:39:33]name=ofd_packets/00165175 [09:39:33]OFD Sender: To server: pG, [09:39:33]CommunicateWithHost lk.salyk.kg:30040 [09:39:33]ConnectInit lk.salyk.kg [09:39:33]Connected sock=10 [09:39: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 37 31 38 0F 01 00 00 A8 8A 07 01 B2 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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 58 EE 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 37 85 02 00 35 04 06 00 9D 6B 6B 19 67 4D 0F 6C 90 C6 C3 97 D6 85 [09:39:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 F9 93 47 00 AE 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 37 31 38 10 04 04 00 37 85 02 00 F4 03 04 00 E3 94 94 66 B6 04 01 00 00 98 12 49 84 CD 29 33 23 [09:39:34]CommunicateWithHost err = 0 [09:39:34]CheckOFDResponse [09:39:34]1017 (14) - 77093643461234 [09:39:34]1041 (16) - 0000000000874718 [09:39:34]1040 (4) - 165175 [09:39:34]1012 (4) - 15.07.2024 03:17 [09:39:34]1206 (1) - 0 [09:39:34]OFD Sender: Remove packet 165175 [09:39:34]ProducePacketName [09:39:34]name=ofd_packets/00165175 [09:39:34]NVStorageDeleteData [09:39:34]Write to MH i2c: 01 00 00 A7 22 C9 [09:39:34]Write i2c OK [09:39:34]MH_I2C_Read... [09:39:34]Read from MH i2c: 01 [09:39:34]MH_I2C_Read... [09:39:34]Read from MH i2c: 01 07 00 [09:39:34]MH_I2C_Read... [09:39:34]Read from MH i2c: 01 07 00 A7 22 00 00 00 00 00 0D 0D EA [09:39:34]RasterBufferAndPrint [09:39:34]line [09:39:34]line [09:39:34]line [09:39:34]line [09:39:34]line [09:39:34]written 0, free lines is 3357 [09:39:34]MH_Cut [09:39:34]Write to MH i2c: D1 01 00 AE 22 01 A2 [09:39:34]Write i2c OK [09:39:34]MH_I2C_Read... [09:39:34]Read from MH i2c: D1 [09:39:34]MH_I2C_Read... [09:39:34]Read from MH i2c: D1 01 00 [09:39:34]MH_I2C_Read... [09:39:34]Read from MH i2c: D1 01 00 AE 22 00 A1 [09:39:34]Write to MH i2c: 01 00 00 AF 22 D1 [09:39:34]Write i2c OK [09:39:34]MH_I2C_Read... [09:39:34]OFD Sender: No OFD packet to send [09:39:34]*** Cut start [09:39:34]*** Partial cut [09:39:34]*** CUTSNS_PIN = 1 [09:39:34]*** CUTSNS_PIN = 0 [09:39:35]*** Brake cut motor [09:39:35]Read from MH i2c: 01 [09:39:35]MH_I2C_Read... [09:39:35]*** Stop cut motor [09:39:35]*** Cut end [09:39:35]Read from MH i2c: 01 07 00 [09:39:35]MH_I2C_Read... [09:39:35]Read from MH i2c: 01 07 00 AF 22 00 00 00 00 00 FF 0F E6 [09:39:35]process_action close_receipt done [09:39:35]requested_data is exist [09:39:35]produce_requested_data [09:39:35]requested_item fm.sn is exist - process it [09:39:35]wFMCommunicate request_size=4 [09:39:35]MH_SAM_APDU [09:39:35]CAPDU: 80 11 00 00 [09:39:35]Write to MH i2c: E2 08 00 B0 22 80 11 00 00 00 00 00 00 4C [09:39:35]Write i2c OK [09:39:35]MH_I2C_Read... [09:39:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:35]Read from MH i2c: E2 [09:39:35]MH_I2C_Read... [09:39:35]Read from MH i2c: E2 17 00 [09:39:35]MH_I2C_Read... [09:39:35]Read from MH i2c: E2 17 00 B0 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A2 [09:39:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:39:35]wFMCommunicate OK [09:39:35]requested_item fd.num is exist - process it [09:39:35]SAM_PROTO_GetFieldsCounters [09:39:35]wFMCommunicate request_size=4 [09:39:35]MH_SAM_APDU [09:39:35]CAPDU: 80 13 00 00 [09:39:35]Write to MH i2c: E2 08 00 B1 22 80 13 00 00 00 00 00 00 4F [09:39:35]Write i2c OK [09:39:35]MH_I2C_Read... [09:39:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:39:35]Read from MH i2c: E2 [09:39:35]MH_I2C_Read... [09:39:35]Read from MH i2c: E2 62 00 [09:39:35]MH_I2C_Read... [09:39:35]Read from MH i2c: E2 62 00 B1 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 37 85 02 00 0E 04 04 00 C0 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 85 [09:39:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 37 85 02 00 0E 04 04 00 C0 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 [09:39:35]wFMCommunicate OK [09:39:35]SAM_PROTO_GetFieldsCounters done [09:39:35]requested_item shift.num is exist - process it [09:39:35]requested_item shift.opened is exist - process it [09:39:35]req_shift_opened [09:39:35]FM_GetShiftState [09:39:35]SAM_PROTO_GetShiftState [09:39:35]wFMCommunicate request_size=4 [09:39:35]MH_SAM_APDU [09:39:35]CAPDU: 80 13 01 00 [09:39:35]Write to MH i2c: E2 08 00 B2 22 80 13 01 00 00 00 00 00 51 [09:39:35]Write i2c OK [09:39:35]MH_I2C_Read... [09:39:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:35]Read from MH i2c: E2 [09:39:35]MH_I2C_Read... [09:39:35]Read from MH i2c: E2 0E 00 [09:39:35]MH_I2C_Read... [09:39:35]Read from MH i2c: E2 0E 00 B2 22 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 2A [09:39:35]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [09:39:35]wFMCommunicate OK [09:39:35]SAM_PROTO_GetShiftState done [09:39:35]FM_GetShiftState done [09:39:35]req_shift_opened done [09:39:35]requested_item shift.open_date is exist - process it [09:39:35]req_shift_open_date [09:39:35]req_shift_open_date done [09:39:35]produce_requested_data done [09:39:35]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165175,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [09:39:35]process_action_free close_receipt [09:39:35]json_value_free [09:39:35]json_value_free done [09:39:35]process_json_proto returns [09:39:35]Send response to host [09:39:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165175,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [09:39:35]free response buf [09:39:35]execute_script done [09:39:35]execute_script returns [09:39:35]free content buf [09:39:35]Sock 9.Close socket [09:39:35]Sock 9.Thread stoped [09:39:39]OFD Sender: No OFD packet to send [09:39:44]OFD Sender: No OFD packet to send [09:39:49]OFD Sender: No OFD packet to send [09:39:54]OFD Sender: No OFD packet to send [09:39:59]OFD Sender: No OFD packet to send [09:40:01]accept exits with 7 [09:40:01]New connection [09:40:01]New thread 3066928484 created [09:40:01]Thread 3066785124 joined [09:40:01]Waiting for new connection... [09:40:01] Sock 7.Parse request [09:40:01]Sock 7.Check first char [09:40:01]Sock 7.First char is OK [09:40:01]request: POST /json_proto HTTP/1.0 [09:40:01]Method: POST [09:40:01]URL: /json_proto [09:40:01]Method is POST - this is cgi request [09:40:01]url: /json_proto [09:40:01]query_string will be loaded in cgi processing [09:40:01]execute_cgi json_proto POST (null) [09:40:01]execute_cgi path=json_proto method=POST [09:40:01]POST find Content-Length [09:40:01]Host: 172.17.56.4:8080 [09:40:01]Content-Length: 677 [09:40:01]Content-Type: application/json [09:40:01] [09:40:01]POST finish read [09:40:01]Found Content-Length = 677 [09:40:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459278", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:01]execute_script... [09:40:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459278", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:01]POST & json_proto [09:40:01]process_json_proto [09:40:01]json parsed OK: [09:40:01]protocol is kg_v1.0 [09:40:01]action value=close_receipt [09:40:01]process_action close_receipt [09:40:01]cmd_close_receipt [09:40:01]MH_GetDate [09:40:01]Write to MH i2c: F0 00 00 B3 22 C4 [09:40:01]Write i2c OK [09:40:01]MH_I2C_Read... [09:40:01]Read from MH i2c: F0 [09:40:01]MH_I2C_Read... [09:40:01]Read from MH i2c: F0 09 00 [09:40:01]MH_I2C_Read... [09:40:01]Read from MH i2c: F0 09 00 B3 22 00 75 EE 94 66 C9 DC B2 64 E5 [09:40:01]GetLastDocTimeStamp 1721036376 [09:40:01]current date 1721036405 [09:40:01]FM_GetShiftState [09:40:01]SAM_PROTO_GetShiftState [09:40:01]wFMCommunicate request_size=4 [09:40:01]MH_SAM_APDU [09:40:01]CAPDU: 80 13 01 00 [09:40:01]Write to MH i2c: E2 08 00 B4 22 80 13 01 00 00 00 00 00 53 [09:40:01]Write i2c OK [09:40:01]MH_I2C_Read... [09:40:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:01]Read from MH i2c: E2 [09:40:01]MH_I2C_Read... [09:40:01]Read from MH i2c: E2 0E 00 [09:40:01]MH_I2C_Read... [09:40:01]Read from MH i2c: E2 0E 00 B4 22 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 2C [09:40:01]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [09:40:01]wFMCommunicate OK [09:40:01]SAM_PROTO_GetShiftState done [09:40:01]FM_GetShiftState done [09:40:01]opened in 1721003876 [09:40:01]opened+sec_in_day 1721090276 [09:40:01]quantity*price = 50008 [09:40:01]sum+1 = 50009 [09:40:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 49 15.07.2024 09:40 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165176 ФПД: 172608995428784 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T094005&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165176&fm=172608995428784&tin=02508201610067®Number=0000000000090829&sum=50000 [09:40:02]StoreToDocumentArchive [09:40:02]shift 448 fd 165176 [09:40:02]save to /storage/0448/doc_00165176 [09:40:02]save last doc name /storage/0448/doc_00165176 to /storage/kkm_last_doc_name [09:40:02]save OK [09:40:02]Clear old archive folders... [09:40:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:40:02]tlvbuf is B6EA2520 [09:40:02]SAM_PROTO_ClearQueue [09:40:02]wFMCommunicate request_size=4 [09:40:02]MH_SAM_APDU [09:40:02]CAPDU: 80 09 00 00 [09:40:02]Write to MH i2c: E2 08 00 C1 22 80 09 00 00 00 00 00 00 55 [09:40:02]Write i2c OK [09:40:02]MH_I2C_Read... [09:40:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:40:02]Read from MH i2c: E2 [09:40:02]MH_I2C_Read... [09:40:02]Read from MH i2c: E2 03 00 [09:40:02]MH_I2C_Read... [09:40:02]Read from MH i2c: E2 03 00 C1 22 00 90 00 57 [09:40:02]RAPDU: 90 00 [09:40:02]wFMCommunicate OK [09:40:02]SAM_PROTO_ClearQueue done [09:40:02]KKMCreateOFDPacket [09:40:02]OFDProtocolAddRootSTLVToBuf [09:40:02]FM_MakeSignedData [09:40:02]FM_MakeSignedData [09:40:02]SAM_PROTO_SignData [09:40:02]wFMCommunicate request_size=4 [09:40:02]MH_SAM_APDU [09:40:02]CAPDU: 80 0D 01 02 [09:40:02]Write to MH i2c: E2 08 00 C2 22 80 0D 01 02 00 00 00 00 5D [09:40:02]Write i2c OK [09:40:02]MH_I2C_Read... [09:40:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:40:02]Read from MH i2c: E2 [09:40:02]MH_I2C_Read... [09:40:02]Read from MH i2c: E2 03 00 [09:40:02]MH_I2C_Read... [09:40:02]Read from MH i2c: E2 03 00 C2 22 00 90 00 58 [09:40:02]RAPDU: 90 00 [09:40:02]wFMCommunicate OK [09:40:02]wFMCommunicate request_size=255 [09:40:02]MH_SAM_APDU [09:40:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 75 EE 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 38 85 02 00 35 04 06 00 9C [09:40:02]Write to MH i2c: E2 02 01 C3 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 75 EE 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 38 85 02 00 35 04 06 00 9C 00 00 80 [09:40:02]Write i2c OK [09:40:02]MH_I2C_Read... [09:40:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:02]Read from MH i2c: E2 [09:40:02]MH_I2C_Read... [09:40:02]Read from MH i2c: E2 03 00 [09:40:02]MH_I2C_Read... [09:40:02]Read from MH i2c: E2 03 00 C3 22 00 90 00 59 [09:40:02]RAPDU: 90 00 [09:40:02]wFMCommunicate OK [09:40:02]wFMCommunicate request_size=10 [09:40:02]MH_SAM_APDU [09:40:02]CAPDU: 80 0D 02 02 05 FC A9 DB 89 B0 [09:40:02]Write to MH i2c: E2 0D 00 C4 22 80 0D 02 02 05 00 FC A9 DB 89 B0 00 00 23 [09:40:02]Write i2c OK [09:40:02]MH_I2C_Read... [09:40:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:02]Read from MH i2c: E2 [09:40:02]MH_I2C_Read... [09:40:02]Read from MH i2c: E2 03 00 [09:40:02]MH_I2C_Read... [09:40:02]Read from MH i2c: E2 03 00 C4 22 00 90 00 5A [09:40:02]RAPDU: 90 00 [09:40:02]wFMCommunicate OK [09:40:02]wFMCommunicate request_size=4 [09:40:02]MH_SAM_APDU [09:40:02]CAPDU: 80 0D 03 02 [09:40:02]Write to MH i2c: E2 08 00 C5 22 80 0D 03 02 00 00 00 00 62 [09:40:02]Write i2c OK [09:40:02]MH_I2C_Read... [09:40:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:40:02]Read from MH i2c: E2 [09:40:02]MH_I2C_Read... [09:40:02]Read from MH i2c: E2 0B 00 [09:40:02]MH_I2C_Read... [09:40:02]Read from MH i2c: E2 0B 00 C5 22 00 3D FA 28 68 8D 10 5B 1D 90 00 3F [09:40:02]RAPDU: 3D FA 28 68 8D 10 5B 1D 90 00 [09:40:02]wFMCommunicate OK [09:40:02]SAM_PROTO_SignData done [09:40:02]FM_MakeSignedData done [09:40:02]CreateOFDProtocolMessage [09:40:02]wFMCommunicate request_size=4 [09:40:02]MH_SAM_APDU [09:40:02]CAPDU: 80 11 00 00 [09:40:02]Write to MH i2c: E2 08 00 C6 22 80 11 00 00 00 00 00 00 62 [09:40:02]Write i2c OK [09:40:02]MH_I2C_Read... [09:40:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:02]Read from MH i2c: E2 [09:40:02]MH_I2C_Read... [09:40:02]Read from MH i2c: E2 17 00 [09:40:02]MH_I2C_Read... [09:40:02]Read from MH i2c: E2 17 00 C6 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B8 [09:40:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:40:02]wFMCommunicate OK [09:40:02]CreateOFDProtocolMessage done [09:40:02]OFDSenderStorePacket 165176 [09:40:02]StoreOFDPacket docnum=165176 [09:40:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 AA 99 07 01 B3 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 75 EE 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 38 85 02 00 35 04 06 00 9C FC A9 DB 89 B0 3D FA 28 68 8D 10 5B 1D [09:40:02]CheckFolder [09:40:02]dirname=/storage/ofd_packets [09:40:02]CheckFolder done [09:40:02]ProducePacketName [09:40:02]name=ofd_packets/00165176 [09:40:02]NVStorageSaveData ofd_packets/00165176 [09:40:02]File name is /storage/ofd_packets/00165176 [09:40:02]Write 301 bytes [09:40:02]NVStorageSaveData done [09:40:02]OFDSenderStorePacket done [09:40:02]KKMCreateOFDPacket done [09:40:02]NVStorageSaveData kkm_last_timestamp [09:40:02]File name is /storage/kkm_last_timestamp [09:40:02]Write 4 bytes [09:40:02]NVStorageSaveData done [09:40:02]ExternCall_PrintAddStr [09:40:02]wPrintStart [09:40:02]Write to MH i2c: 01 00 00 C7 22 E9 [09:40:02]Write i2c OK [09:40:02]MH_I2C_Read... [09:40:02]Read from MH i2c: 01 [09:40:02]MH_I2C_Read... [09:40:02]Read from MH i2c: 01 07 00 [09:40:02]MH_I2C_Read... [09:40:02]Read from MH i2c: 01 07 00 C7 22 00 00 00 00 00 FF 0F FE [09:40:02]RasterBufferAndPrint [09:40:02]line Счет N : (1)459278 [09:40:02]line ИНН: 02508201610067 [09:40:02]line Контрольно-Кассовый Чек [09:40:02]line ПРОДАЖА [09:40:02]line ТРК (МРК, ГНК) : 22 [09:40:02]line Товар: 2710124130 [09:40:02]line Аи-92-К-5 [09:40:02]line 7.600 * 65.80 [09:40:02]line = 500.08 [09:40:02]line НДС 12% НСП 1% [09:40:02]line > о реализуемом товаре [09:40:02]line ОКРУГЛЕНИЕ: -0.08 [09:40:02]line ИТОГО: 500.00 [09:40:02]line Внесено: 500.00 [09:40:02]line СДАЧА: 0.00 [09:40:02]line НСП 1% : 4.42 [09:40:02]line НДС 12% : 53.11 [09:40:02]line Наличными: 500.00 [09:40:02]line Безнал.: 0.00 [09:40:02]line Место: АЗС № 72 "Партнер Нефть" [09:40:02]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:40:02]line СНО: Общий режим [09:40:02]line Чек 49 15.07.2024 09:40 [09:40:02]line Смена: 448 ФФД: 1.0 [09:40:02]line ЗНМ: 0300000160 [09:40:02]line РНМ: 0000000000090829 [09:40:02]line Версия ККМ: 001 [09:40:02]line ФМ: 0000000000874718 [09:40:02]line ФД: 165176 [09:40:02]line ФПД: 172608995428784 [09:40:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T094005&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165176&fm=172608995428784&tin=02508201610067®Number=0000000000090829&sum=50000 [09:40:03]OFD Sender: Processing packet 165176 [packets to send 106, broken 105] [09:40:03]ProducePacketName [09:40:03]name=ofd_packets/00165176 [09:40:03]OFD Sender: To server: pG, [09:40:03]CommunicateWithHost lk.salyk.kg:30040 [09:40:03]ConnectInit lk.salyk.kg [09:40:03]written 0, free lines is 4095 [09:40:03]Connected sock=10 [09:40:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 AA 99 07 01 B3 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 75 EE 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 38 85 02 00 35 04 06 00 9C FC A9 DB 89 B0 3D FA 28 68 8D 10 5B 1D [09:40:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 C3 A6 47 00 59 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 38 85 02 00 F4 03 04 00 00 95 94 66 B6 04 01 00 00 DF CC 93 0F FD D1 C3 7E [09:40:03]CommunicateWithHost err = 0 [09:40:03]CheckOFDResponse [09:40:03]1017 (14) - 77093643461234 [09:40:03]1041 (16) - 0000000000874718 [09:40:03]1040 (4) - 165176 [09:40:03]1012 (4) - 15.07.2024 03:18 [09:40:03]1206 (1) - 0 [09:40:03]OFD Sender: Remove packet 165176 [09:40:03]ProducePacketName [09:40:03]name=ofd_packets/00165176 [09:40:03]NVStorageDeleteData [09:40:03]Write to MH i2c: 01 00 00 F1 22 13 [09:40:03]Write i2c OK [09:40:03]MH_I2C_Read... [09:40:03]Read from MH i2c: 01 [09:40:03]MH_I2C_Read... [09:40:03]Read from MH i2c: 01 07 00 [09:40:03]MH_I2C_Read... [09:40:03]Read from MH i2c: 01 07 00 F1 22 00 00 00 00 00 00 0D 27 [09:40:03]RasterBufferAndPrint [09:40:03]line [09:40:03]line [09:40:03]line [09:40:03]line [09:40:03]line [09:40:03]written 0, free lines is 3334 [09:40:03]MH_Cut [09:40:03]Write to MH i2c: D1 01 00 F8 22 01 EC [09:40:03]Write i2c OK [09:40:03]MH_I2C_Read... [09:40:03]Read from MH i2c: D1 [09:40:03]MH_I2C_Read... [09:40:03]Read from MH i2c: D1 01 00 [09:40:03]MH_I2C_Read... [09:40:03]Read from MH i2c: D1 01 00 F8 22 00 EB [09:40:03]Write to MH i2c: 01 00 00 F9 22 1B [09:40:03]Write i2c OK [09:40:03]MH_I2C_Read... [09:40:04]OFD Sender: No OFD packet to send [09:40:04]*** Cut start [09:40:04]*** Partial cut [09:40:04]*** CUTSNS_PIN = 1 [09:40:04]*** CUTSNS_PIN = 0 [09:40:04]*** Brake cut motor [09:40:04]Read from MH i2c: 01 [09:40:04]MH_I2C_Read... [09:40:04]*** Stop cut motor [09:40:04]*** Cut end [09:40:04]Read from MH i2c: 01 07 00 [09:40:04]MH_I2C_Read... [09:40:04]Read from MH i2c: 01 07 00 F9 22 00 00 00 00 00 FF 0F 30 [09:40:04]process_action close_receipt done [09:40:04]requested_data is exist [09:40:04]produce_requested_data [09:40:04]requested_item fm.sn is exist - process it [09:40:04]wFMCommunicate request_size=4 [09:40:04]MH_SAM_APDU [09:40:04]CAPDU: 80 11 00 00 [09:40:04]Write to MH i2c: E2 08 00 FA 22 80 11 00 00 00 00 00 00 96 [09:40:04]Write i2c OK [09:40:04]MH_I2C_Read... [09:40:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:05]Read from MH i2c: E2 [09:40:05]MH_I2C_Read... [09:40:05]Read from MH i2c: E2 17 00 [09:40:05]MH_I2C_Read... [09:40:05]Read from MH i2c: E2 17 00 FA 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 EC [09:40:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:40:05]wFMCommunicate OK [09:40:05]requested_item fd.num is exist - process it [09:40:05]SAM_PROTO_GetFieldsCounters [09:40:05]wFMCommunicate request_size=4 [09:40:05]MH_SAM_APDU [09:40:05]CAPDU: 80 13 00 00 [09:40:05]Write to MH i2c: E2 08 00 FB 22 80 13 00 00 00 00 00 00 99 [09:40:05]Write i2c OK [09:40:05]MH_I2C_Read... [09:40:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:40:05]Read from MH i2c: E2 [09:40:05]MH_I2C_Read... [09:40:05]Read from MH i2c: E2 62 00 [09:40:05]MH_I2C_Read... [09:40:05]Read from MH i2c: E2 62 00 FB 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 38 85 02 00 0E 04 04 00 C0 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 D3 [09:40:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 38 85 02 00 0E 04 04 00 C0 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 [09:40:05]wFMCommunicate OK [09:40:05]SAM_PROTO_GetFieldsCounters done [09:40:05]requested_item shift.num is exist - process it [09:40:05]requested_item shift.opened is exist - process it [09:40:05]req_shift_opened [09:40:05]FM_GetShiftState [09:40:05]SAM_PROTO_GetShiftState [09:40:05]wFMCommunicate request_size=4 [09:40:05]MH_SAM_APDU [09:40:05]CAPDU: 80 13 01 00 [09:40:05]Write to MH i2c: E2 08 00 FC 22 80 13 01 00 00 00 00 00 9B [09:40:05]Write i2c OK [09:40:05]MH_I2C_Read... [09:40:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:05]Read from MH i2c: E2 [09:40:05]MH_I2C_Read... [09:40:05]Read from MH i2c: E2 0E 00 [09:40:05]MH_I2C_Read... [09:40:05]Read from MH i2c: E2 0E 00 FC 22 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 74 [09:40:05]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [09:40:05]wFMCommunicate OK [09:40:05]SAM_PROTO_GetShiftState done [09:40:05]FM_GetShiftState done [09:40:05]req_shift_opened done [09:40:05]requested_item shift.open_date is exist - process it [09:40:05]req_shift_open_date [09:40:05]req_shift_open_date done [09:40:05]produce_requested_data done [09:40:05]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165176,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [09:40:05]process_action_free close_receipt [09:40:05]json_value_free [09:40:05]json_value_free done [09:40:05]process_json_proto returns [09:40:05]Send response to host [09:40:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165176,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [09:40:05]free response buf [09:40:05]execute_script done [09:40:05]execute_script returns [09:40:05]free content buf [09:40:05]Sock 7.Close socket [09:40:05]Sock 7.Thread stoped [09:40:09]OFD Sender: No OFD packet to send [09:40:14]OFD Sender: No OFD packet to send [09:40:19]OFD Sender: No OFD packet to send [09:40:24]OFD Sender: No OFD packet to send [09:40:29]OFD Sender: No OFD packet to send [09:40:34]OFD Sender: No OFD packet to send [09:40:39]OFD Sender: No OFD packet to send [09:40:44]OFD Sender: No OFD packet to send [09:40:49]OFD Sender: No OFD packet to send [09:40:54]OFD Sender: No OFD packet to send [09:40:59]OFD Sender: No OFD packet to send [09:41:04]OFD Sender: No OFD packet to send [09:41:05]accept exits with 9 [09:41:05]New connection [09:41:05]New thread 3066785124 created [09:41:05]Thread 3066928484 joined [09:41:05]Waiting for new connection... [09:41:05] Sock 9.Parse request [09:41:05]Sock 9.Check first char [09:41:05]Sock 9.First char is OK [09:41:05]request: POST /json_proto HTTP/1.0 [09:41:05]Method: POST [09:41:05]URL: /json_proto [09:41:05]Method is POST - this is cgi request [09:41:05]url: /json_proto [09:41:05]query_string will be loaded in cgi processing [09:41:05]execute_cgi json_proto POST (null) [09:41:05]execute_cgi path=json_proto method=POST [09:41:05]POST find Content-Length [09:41:05]Host: 172.17.56.4:8080 [09:41:05]Content-Length: 677 [09:41:05]Content-Type: application/json [09:41:05] [09:41:05]POST finish read [09:41:05]Found Content-Length = 677 [09:41:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459279", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:05]execute_script... [09:41:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459279", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:05]POST & json_proto [09:41:05]process_json_proto [09:41:05]json parsed OK: [09:41:05]protocol is kg_v1.0 [09:41:05]action value=close_receipt [09:41:05]process_action close_receipt [09:41:05]cmd_close_receipt [09:41:05]MH_GetDate [09:41:05]Write to MH i2c: F0 00 00 FD 22 0E [09:41:05]Write i2c OK [09:41:05]MH_I2C_Read... [09:41:05]Read from MH i2c: F0 [09:41:05]MH_I2C_Read... [09:41:05]Read from MH i2c: F0 09 00 [09:41:05]MH_I2C_Read... [09:41:05]Read from MH i2c: F0 09 00 FD 22 00 B6 EE 94 66 C9 DC B2 64 70 [09:41:05]GetLastDocTimeStamp 1721036405 [09:41:05]current date 1721036470 [09:41:05]FM_GetShiftState [09:41:05]SAM_PROTO_GetShiftState [09:41:05]wFMCommunicate request_size=4 [09:41:05]MH_SAM_APDU [09:41:05]CAPDU: 80 13 01 00 [09:41:05]Write to MH i2c: E2 08 00 FE 22 80 13 01 00 00 00 00 00 9D [09:41:05]Write i2c OK [09:41:05]MH_I2C_Read... [09:41:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:05]Read from MH i2c: E2 [09:41:05]MH_I2C_Read... [09:41:05]Read from MH i2c: E2 0E 00 [09:41:05]MH_I2C_Read... [09:41:05]Read from MH i2c: E2 0E 00 FE 22 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 76 [09:41:05]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [09:41:05]wFMCommunicate OK [09:41:05]SAM_PROTO_GetShiftState done [09:41:05]FM_GetShiftState done [09:41:05]opened in 1721003876 [09:41:05]opened+sec_in_day 1721090276 [09:41:05]quantity*price = 50008 [09:41:05]sum+1 = 50009 [09:41:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 50 15.07.2024 09:41 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165177 ФПД: 269268553340975 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T094110&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165177&fm=269268553340975&tin=02508201610067®Number=0000000000090829&sum=50000 [09:41:06]StoreToDocumentArchive [09:41:06]shift 448 fd 165177 [09:41:06]save to /storage/0448/doc_00165177 [09:41:06]save last doc name /storage/0448/doc_00165177 to /storage/kkm_last_doc_name [09:41:06]save OK [09:41:06]Clear old archive folders... [09:41:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:41:06]tlvbuf is 013B4680 [09:41:06]SAM_PROTO_ClearQueue [09:41:06]wFMCommunicate request_size=4 [09:41:06]MH_SAM_APDU [09:41:06]CAPDU: 80 09 00 00 [09:41:06]Write to MH i2c: E2 08 00 0B 23 80 09 00 00 00 00 00 00 A0 [09:41:06]Write i2c OK [09:41:06]MH_I2C_Read... [09:41:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:41:06]Read from MH i2c: E2 [09:41:06]MH_I2C_Read... [09:41:06]Read from MH i2c: E2 03 00 [09:41:06]MH_I2C_Read... [09:41:06]Read from MH i2c: E2 03 00 0B 23 00 90 00 A2 [09:41:06]RAPDU: 90 00 [09:41:06]wFMCommunicate OK [09:41:06]SAM_PROTO_ClearQueue done [09:41:06]KKMCreateOFDPacket [09:41:06]OFDProtocolAddRootSTLVToBuf [09:41:06]FM_MakeSignedData [09:41:06]FM_MakeSignedData [09:41:06]SAM_PROTO_SignData [09:41:06]wFMCommunicate request_size=4 [09:41:06]MH_SAM_APDU [09:41:06]CAPDU: 80 0D 01 02 [09:41:06]Write to MH i2c: E2 08 00 0C 23 80 0D 01 02 00 00 00 00 A8 [09:41:06]Write i2c OK [09:41:06]MH_I2C_Read... [09:41:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:41:06]Read from MH i2c: E2 [09:41:06]MH_I2C_Read... [09:41:06]Read from MH i2c: E2 03 00 [09:41:06]MH_I2C_Read... [09:41:06]Read from MH i2c: E2 03 00 0C 23 00 90 00 A3 [09:41:06]RAPDU: 90 00 [09:41:06]wFMCommunicate OK [09:41:06]wFMCommunicate request_size=255 [09:41:06]MH_SAM_APDU [09:41: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 B6 EE 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 39 85 02 00 35 04 06 00 F4 [09:41:06]Write to MH i2c: E2 02 01 0D 23 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 B6 EE 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 39 85 02 00 35 04 06 00 F4 00 00 66 [09:41:06]Write i2c OK [09:41:06]MH_I2C_Read... [09:41:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:07]Read from MH i2c: E2 [09:41:07]MH_I2C_Read... [09:41:07]Read from MH i2c: E2 03 00 [09:41:07]MH_I2C_Read... [09:41:07]Read from MH i2c: E2 03 00 0D 23 00 90 00 A4 [09:41:07]RAPDU: 90 00 [09:41:07]wFMCommunicate OK [09:41:07]wFMCommunicate request_size=10 [09:41:07]MH_SAM_APDU [09:41:07]CAPDU: 80 0D 02 02 05 E5 F8 78 98 2F [09:41:07]Write to MH i2c: E2 0D 00 0E 23 80 0D 02 02 05 00 E5 F8 78 98 2F 00 00 D1 [09:41:07]Write i2c OK [09:41:07]MH_I2C_Read... [09:41:07]Read from MH i2c: E2 [09:41:07]MH_I2C_Read... [09:41:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:07]Read from MH i2c: E2 03 00 [09:41:07]MH_I2C_Read... [09:41:07]Read from MH i2c: E2 03 00 0E 23 00 90 00 A5 [09:41:07]RAPDU: 90 00 [09:41:07]wFMCommunicate OK [09:41:07]wFMCommunicate request_size=4 [09:41:07]MH_SAM_APDU [09:41:07]CAPDU: 80 0D 03 02 [09:41:07]Write to MH i2c: E2 08 00 0F 23 80 0D 03 02 00 00 00 00 AD [09:41:07]Write i2c OK [09:41:07]MH_I2C_Read... [09:41:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:41:07]Read from MH i2c: E2 [09:41:07]MH_I2C_Read... [09:41:07]Read from MH i2c: E2 0B 00 [09:41:07]MH_I2C_Read... [09:41:07]Read from MH i2c: E2 0B 00 0F 23 00 99 05 CD 41 67 F5 82 39 90 00 71 [09:41:07]RAPDU: 99 05 CD 41 67 F5 82 39 90 00 [09:41:07]wFMCommunicate OK [09:41:07]SAM_PROTO_SignData done [09:41:07]FM_MakeSignedData done [09:41:07]CreateOFDProtocolMessage [09:41:07]wFMCommunicate request_size=4 [09:41:07]MH_SAM_APDU [09:41:07]CAPDU: 80 11 00 00 [09:41:07]Write to MH i2c: E2 08 00 10 23 80 11 00 00 00 00 00 00 AD [09:41:07]Write i2c OK [09:41:07]MH_I2C_Read... [09:41:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:07]Read from MH i2c: E2 [09:41:07]MH_I2C_Read... [09:41:07]Read from MH i2c: E2 17 00 [09:41:07]MH_I2C_Read... [09:41:07]Read from MH i2c: E2 17 00 10 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 03 [09:41:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:41:07]wFMCommunicate OK [09:41:07]CreateOFDProtocolMessage done [09:41:07]OFDSenderStorePacket 165177 [09:41:07]StoreOFDPacket docnum=165177 [09:41:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A3 66 07 01 C4 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 B6 EE 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 39 85 02 00 35 04 06 00 F4 E5 F8 78 98 2F 99 05 CD 41 67 F5 82 39 [09:41:07]CheckFolder [09:41:07]dirname=/storage/ofd_packets [09:41:07]CheckFolder done [09:41:07]ProducePacketName [09:41:07]name=ofd_packets/00165177 [09:41:07]NVStorageSaveData ofd_packets/00165177 [09:41:07]File name is /storage/ofd_packets/00165177 [09:41:07]Write 301 bytes [09:41:07]NVStorageSaveData done [09:41:07]OFDSenderStorePacket done [09:41:07]KKMCreateOFDPacket done [09:41:07]NVStorageSaveData kkm_last_timestamp [09:41:07]File name is /storage/kkm_last_timestamp [09:41:07]Write 4 bytes [09:41:07]NVStorageSaveData done [09:41:07]ExternCall_PrintAddStr [09:41:07]wPrintStart [09:41:07]Write to MH i2c: 01 00 00 11 23 34 [09:41:07]Write i2c OK [09:41:07]MH_I2C_Read... [09:41:07]Read from MH i2c: 01 [09:41:07]MH_I2C_Read... [09:41:07]Read from MH i2c: 01 07 00 [09:41:07]MH_I2C_Read... [09:41:07]Read from MH i2c: 01 07 00 11 23 00 00 00 00 00 FF 0F 49 [09:41:07]RasterBufferAndPrint [09:41:07]line Счет N : (1)459279 [09:41:07]line ИНН: 02508201610067 [09:41:07]line Контрольно-Кассовый Чек [09:41:07]line ПРОДАЖА [09:41:07]line ТРК (МРК, ГНК) : 12 [09:41:07]line Товар: 2710124130 [09:41:07]line Аи-92-К-5 [09:41:07]line 7.600 * 65.80 [09:41:07]line = 500.08 [09:41:07]line НДС 12% НСП 1% [09:41:07]line > о реализуемом товаре [09:41:07]line ОКРУГЛЕНИЕ: -0.08 [09:41:07]line ИТОГО: 500.00 [09:41:07]line Внесено: 500.00 [09:41:07]line СДАЧА: 0.00 [09:41:07]line НСП 1% : 4.42 [09:41:07]line НДС 12% : 53.11 [09:41:07]line Наличными: 500.00 [09:41:07]line Безнал.: 0.00 [09:41:07]line Место: АЗС № 72 "Партнер Нефть" [09:41:07]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:41:07]line СНО: Общий режим [09:41:07]line Чек 50 15.07.2024 09:41 [09:41:07]line Смена: 448 ФФД: 1.0 [09:41:07]line ЗНМ: 0300000160 [09:41:07]line РНМ: 0000000000090829 [09:41:07]line Версия ККМ: 001 [09:41:07]line ФМ: 0000000000874718 [09:41:07]line ФД: 165177 [09:41:07]line ФПД: 269268553340975 [09:41:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T094110&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165177&fm=269268553340975&tin=02508201610067®Number=0000000000090829&sum=50000 [09:41:07]OFD Sender: Processing packet 165177 [packets to send 106, broken 105] [09:41:07]ProducePacketName [09:41:07]name=ofd_packets/00165177 [09:41:07]OFD Sender: To server: pG, [09:41:07]CommunicateWithHost lk.salyk.kg:30040 [09:41:07]ConnectInit lk.salyk.kg [09:41:07]written 0, free lines is 4095 [09:41:07]Connected sock=10 [09:41:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A3 66 07 01 C4 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 B6 EE 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 39 85 02 00 35 04 06 00 F4 E5 F8 78 98 2F 99 05 CD 41 67 F5 82 39 [09:41:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 B0 4C 47 00 BC B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 39 85 02 00 F4 03 04 00 40 95 94 66 B6 04 01 00 00 06 3F 20 42 D4 9A DD 1C [09:41:07]CommunicateWithHost err = 0 [09:41:07]CheckOFDResponse [09:41:07]1017 (14) - 77093643461234 [09:41:07]1041 (16) - 0000000000874718 [09:41:07]1040 (4) - 165177 [09:41:07]1012 (4) - 15.07.2024 03:19 [09:41:07]1206 (1) - 0 [09:41:07]OFD Sender: Remove packet 165177 [09:41:07]ProducePacketName [09:41:07]name=ofd_packets/00165177 [09:41:07]NVStorageDeleteData [09:41:07]Write to MH i2c: 01 00 00 3B 23 5E [09:41:07]Write i2c OK [09:41:07]MH_I2C_Read... [09:41:07]Read from MH i2c: 01 [09:41:07]MH_I2C_Read... [09:41:07]Read from MH i2c: 01 07 00 [09:41:07]MH_I2C_Read... [09:41:07]Read from MH i2c: 01 07 00 3B 23 00 00 00 00 00 FE 0C 6F [09:41:07]RasterBufferAndPrint [09:41:07]line [09:41:07]line [09:41:07]line [09:41:07]line [09:41:07]line [09:41:07]written 0, free lines is 3332 [09:41:07]MH_Cut [09:41:07]Write to MH i2c: D1 01 00 42 23 01 37 [09:41:07]Write i2c OK [09:41:07]MH_I2C_Read... [09:41:07]Read from MH i2c: D1 [09:41:07]MH_I2C_Read... [09:41:07]Read from MH i2c: D1 01 00 [09:41:07]MH_I2C_Read... [09:41:07]Read from MH i2c: D1 01 00 42 23 00 36 [09:41:07]Write to MH i2c: 01 00 00 43 23 66 [09:41:07]Write i2c OK [09:41:07]MH_I2C_Read... [09:41:08]OFD Sender: No OFD packet to send [09:41:08]*** Cut start [09:41:08]*** Partial cut [09:41:08]*** CUTSNS_PIN = 1 [09:41:08]*** CUTSNS_PIN = 0 [09:41:08]*** Brake cut motor [09:41:09]Read from MH i2c: 01 [09:41:09]MH_I2C_Read... [09:41:09]*** Stop cut motor [09:41:09]*** Cut end [09:41:09]Read from MH i2c: 01 07 00 [09:41:09]MH_I2C_Read... [09:41:09]Read from MH i2c: 01 07 00 43 23 00 00 00 00 00 FF 0F 7B [09:41:09]process_action close_receipt done [09:41:09]requested_data is exist [09:41:09]produce_requested_data [09:41:09]requested_item fm.sn is exist - process it [09:41:09]wFMCommunicate request_size=4 [09:41:09]MH_SAM_APDU [09:41:09]CAPDU: 80 11 00 00 [09:41:09]Write to MH i2c: E2 08 00 44 23 80 11 00 00 00 00 00 00 E1 [09:41:09]Write i2c OK [09:41:09]MH_I2C_Read... [09:41:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:09]Read from MH i2c: E2 [09:41:09]MH_I2C_Read... [09:41:09]Read from MH i2c: E2 17 00 [09:41:09]MH_I2C_Read... [09:41:09]Read from MH i2c: E2 17 00 44 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 37 [09:41:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:41:09]wFMCommunicate OK [09:41:09]requested_item fd.num is exist - process it [09:41:09]SAM_PROTO_GetFieldsCounters [09:41:09]wFMCommunicate request_size=4 [09:41:09]MH_SAM_APDU [09:41:09]CAPDU: 80 13 00 00 [09:41:09]Write to MH i2c: E2 08 00 45 23 80 13 00 00 00 00 00 00 E4 [09:41:09]Write i2c OK [09:41:09]MH_I2C_Read... [09:41:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:41:09]Read from MH i2c: E2 [09:41:09]MH_I2C_Read... [09:41:09]Read from MH i2c: E2 62 00 [09:41:09]MH_I2C_Read... [09:41:09]Read from MH i2c: E2 62 00 45 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 39 85 02 00 0E 04 04 00 C0 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 22 [09:41:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 39 85 02 00 0E 04 04 00 C0 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 [09:41:09]wFMCommunicate OK [09:41:09]SAM_PROTO_GetFieldsCounters done [09:41:09]requested_item shift.num is exist - process it [09:41:09]requested_item shift.opened is exist - process it [09:41:09]req_shift_opened [09:41:09]FM_GetShiftState [09:41:09]SAM_PROTO_GetShiftState [09:41:09]wFMCommunicate request_size=4 [09:41:09]MH_SAM_APDU [09:41:09]CAPDU: 80 13 01 00 [09:41:09]Write to MH i2c: E2 08 00 46 23 80 13 01 00 00 00 00 00 E6 [09:41:09]Write i2c OK [09:41:09]MH_I2C_Read... [09:41:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:09]Read from MH i2c: E2 [09:41:09]MH_I2C_Read... [09:41:09]Read from MH i2c: E2 0E 00 [09:41:09]MH_I2C_Read... [09:41:09]Read from MH i2c: E2 0E 00 46 23 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 BF [09:41:09]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [09:41:09]wFMCommunicate OK [09:41:09]SAM_PROTO_GetShiftState done [09:41:09]FM_GetShiftState done [09:41:09]req_shift_opened done [09:41:09]requested_item shift.open_date is exist - process it [09:41:09]req_shift_open_date [09:41:09]req_shift_open_date done [09:41:09]produce_requested_data done [09:41:09]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165177,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [09:41:09]process_action_free close_receipt [09:41:09]json_value_free [09:41:09]json_value_free done [09:41:09]process_json_proto returns [09:41:09]Send response to host [09:41:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165177,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [09:41:09]free response buf [09:41:09]execute_script done [09:41:09]execute_script returns [09:41:09]free content buf [09:41:09]Sock 9.Close socket [09:41:09]Sock 9.Thread stoped [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:52]accept exits with 7 [09:41:52]New connection [09:41:52]New thread 3066928484 created [09:41:52]Thread 3066785124 joined [09:41:52]Waiting for new connection... [09:41:52] Sock 7.Parse request [09:41:52]Sock 7.Check first char [09:41:52]Sock 7.First char is OK [09:41:52]request: POST /json_proto HTTP/1.0 [09:41:52]Method: POST [09:41:52]URL: /json_proto [09:41:52]Method is POST - this is cgi request [09:41:52]url: /json_proto [09:41:52]query_string will be loaded in cgi processing [09:41:52]execute_cgi json_proto POST (null) [09:41:52]execute_cgi path=json_proto method=POST [09:41:52]POST find Content-Length [09:41:52]Host: 172.17.56.4:8080 [09:41:52]Content-Length: 682 [09:41:52]Content-Type: application/json [09:41:52] [09:41:52]POST finish read [09:41:52]Found Content-Length = 682 [09:41:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459280", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:52]execute_script... [09:41:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459280", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:52]POST & json_proto [09:41:52]process_json_proto [09:41:52]json parsed OK: [09:41:52]protocol is kg_v1.0 [09:41:52]action value=close_receipt [09:41:52]process_action close_receipt [09:41:52]cmd_close_receipt [09:41:52]MH_GetDate [09:41:52]Write to MH i2c: F0 00 00 47 23 59 [09:41:52]Write i2c OK [09:41:52]MH_I2C_Read... [09:41:52]Read from MH i2c: F0 [09:41:52]MH_I2C_Read... [09:41:52]Read from MH i2c: F0 09 00 [09:41:52]MH_I2C_Read... [09:41:52]Read from MH i2c: F0 09 00 47 23 00 E5 EE 94 66 C9 DC B2 64 EA [09:41:52]GetLastDocTimeStamp 1721036470 [09:41:52]current date 1721036517 [09:41:52]FM_GetShiftState [09:41:52]SAM_PROTO_GetShiftState [09:41:52]wFMCommunicate request_size=4 [09:41:52]MH_SAM_APDU [09:41:52]CAPDU: 80 13 01 00 [09:41:52]Write to MH i2c: E2 08 00 48 23 80 13 01 00 00 00 00 00 E8 [09:41:52]Write i2c OK [09:41:52]MH_I2C_Read... [09:41:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:52]Read from MH i2c: E2 [09:41:52]MH_I2C_Read... [09:41:52]Read from MH i2c: E2 0E 00 [09:41:52]MH_I2C_Read... [09:41:52]Read from MH i2c: E2 0E 00 48 23 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 C1 [09:41:52]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [09:41:52]wFMCommunicate OK [09:41:52]SAM_PROTO_GetShiftState done [09:41:52]FM_GetShiftState done [09:41:52]opened in 1721003876 [09:41:52]opened+sec_in_day 1721090276 [09:41:52]quantity*price = 100016 [09:41:52]sum+1 = 100017 [09:41:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 51 15.07.2024 09:41 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165178 ФПД: 258997971894291 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T094157&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165178&fm=258997971894291&tin=02508201610067®Number=0000000000090829&sum=100000 [09:41:54]StoreToDocumentArchive [09:41:54]shift 448 fd 165178 [09:41:54]save to /storage/0448/doc_00165178 [09:41:54]save last doc name /storage/0448/doc_00165178 to /storage/kkm_last_doc_name [09:41:54]save OK [09:41:54]Clear old archive folders... [09:41:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:41:54]tlvbuf is 01346450 [09:41:54]SAM_PROTO_ClearQueue [09:41:54]wFMCommunicate request_size=4 [09:41:54]MH_SAM_APDU [09:41:54]CAPDU: 80 09 00 00 [09:41:54]Write to MH i2c: E2 08 00 55 23 80 09 00 00 00 00 00 00 EA [09:41:54]Write i2c OK [09:41:54]MH_I2C_Read... [09:41:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:41:54]Read from MH i2c: E2 [09:41:54]MH_I2C_Read... [09:41:54]Read from MH i2c: E2 03 00 [09:41:54]MH_I2C_Read... [09:41:54]Read from MH i2c: E2 03 00 55 23 00 90 00 EC [09:41:54]RAPDU: 90 00 [09:41:54]wFMCommunicate OK [09:41:54]SAM_PROTO_ClearQueue done [09:41:54]KKMCreateOFDPacket [09:41:54]OFDProtocolAddRootSTLVToBuf [09:41:54]FM_MakeSignedData [09:41:54]FM_MakeSignedData [09:41:54]SAM_PROTO_SignData [09:41:54]wFMCommunicate request_size=4 [09:41:54]MH_SAM_APDU [09:41:54]CAPDU: 80 0D 01 02 [09:41:54]Write to MH i2c: E2 08 00 56 23 80 0D 01 02 00 00 00 00 F2 [09:41:54]Write i2c OK [09:41:54]MH_I2C_Read... [09:41:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:41:54]Read from MH i2c: E2 [09:41:54]MH_I2C_Read... [09:41:54]Read from MH i2c: E2 03 00 [09:41:54]MH_I2C_Read... [09:41:54]Read from MH i2c: E2 03 00 56 23 00 90 00 ED [09:41:54]RAPDU: 90 00 [09:41:54]wFMCommunicate OK [09:41:54]wFMCommunicate request_size=255 [09:41:54]MH_SAM_APDU [09:41:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 E5 EE 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3A 85 02 00 35 04 06 00 EB [09:41:54]Write to MH i2c: E2 02 01 57 23 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 E5 EE 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3A 85 02 00 35 04 06 00 EB 00 00 7A [09:41:54]Write i2c OK [09:41:54]MH_I2C_Read... [09:41:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:54]Read from MH i2c: E2 [09:41:54]MH_I2C_Read... [09:41:54]Read from MH i2c: E2 03 00 [09:41:54]MH_I2C_Read... [09:41:54]Read from MH i2c: E2 03 00 57 23 00 90 00 EE [09:41:54]RAPDU: 90 00 [09:41:54]wFMCommunicate OK [09:41:54]wFMCommunicate request_size=10 [09:41:54]MH_SAM_APDU [09:41:54]CAPDU: 80 0D 02 02 05 8E AA 1C C0 13 [09:41:54]Write to MH i2c: E2 0D 00 58 23 80 0D 02 02 05 00 8E AA 1C C0 13 00 00 26 [09:41:54]Write i2c OK [09:41:54]MH_I2C_Read... [09:41:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:54]Read from MH i2c: E2 [09:41:54]MH_I2C_Read... [09:41:54]Read from MH i2c: E2 03 00 [09:41:54]MH_I2C_Read... [09:41:54]Read from MH i2c: E2 03 00 58 23 00 90 00 EF [09:41:54]RAPDU: 90 00 [09:41:54]wFMCommunicate OK [09:41:54]wFMCommunicate request_size=4 [09:41:54]MH_SAM_APDU [09:41:54]CAPDU: 80 0D 03 02 [09:41:54]Write to MH i2c: E2 08 00 59 23 80 0D 03 02 00 00 00 00 F7 [09:41:54]Write i2c OK [09:41:54]MH_I2C_Read... [09:41:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:41:54]Read from MH i2c: E2 [09:41:54]MH_I2C_Read... [09:41:54]Read from MH i2c: E2 0B 00 [09:41:54]MH_I2C_Read... [09:41:54]Read from MH i2c: E2 0B 00 59 23 00 1A 14 8A E1 3B 39 7C 82 90 00 03 [09:41:54]RAPDU: 1A 14 8A E1 3B 39 7C 82 90 00 [09:41:54]wFMCommunicate OK [09:41:54]SAM_PROTO_SignData done [09:41:54]FM_MakeSignedData done [09:41:54]CreateOFDProtocolMessage [09:41:54]wFMCommunicate request_size=4 [09:41:54]MH_SAM_APDU [09:41:54]CAPDU: 80 11 00 00 [09:41:54]Write to MH i2c: E2 08 00 5A 23 80 11 00 00 00 00 00 00 F7 [09:41:54]Write i2c OK [09:41:54]MH_I2C_Read... [09:41:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:54]Read from MH i2c: E2 [09:41:54]MH_I2C_Read... [09:41:54]Read from MH i2c: E2 17 00 [09:41:54]MH_I2C_Read... [09:41:54]Read from MH i2c: E2 17 00 5A 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4D [09:41:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:41:54]wFMCommunicate OK [09:41:54]CreateOFDProtocolMessage done [09:41:54]OFDSenderStorePacket 165178 [09:41:54]StoreOFDPacket docnum=165178 [09:41:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 49 6D 07 01 0B 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 E5 EE 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3A 85 02 00 35 04 06 00 EB 8E AA 1C C0 13 1A 14 8A E1 3B 39 7C 82 [09:41:54]CheckFolder [09:41:54]dirname=/storage/ofd_packets [09:41:54]CheckFolder done [09:41:54]ProducePacketName [09:41:54]name=ofd_packets/00165178 [09:41:54]NVStorageSaveData ofd_packets/00165178 [09:41:54]File name is /storage/ofd_packets/00165178 [09:41:54]Write 301 bytes [09:41:54]NVStorageSaveData done [09:41:54]OFDSenderStorePacket done [09:41:54]KKMCreateOFDPacket done [09:41:54]NVStorageSaveData kkm_last_timestamp [09:41:54]File name is /storage/kkm_last_timestamp [09:41:54]Write 4 bytes [09:41:54]NVStorageSaveData done [09:41:54]ExternCall_PrintAddStr [09:41:54]wPrintStart [09:41:54]Write to MH i2c: 01 00 00 5B 23 7E [09:41:54]Write i2c OK [09:41:54]MH_I2C_Read... [09:41:54]Read from MH i2c: 01 [09:41:54]MH_I2C_Read... [09:41:54]Read from MH i2c: 01 07 00 [09:41:54]MH_I2C_Read... [09:41:54]Read from MH i2c: 01 07 00 5B 23 00 00 00 00 00 FF 0F 93 [09:41:54]RasterBufferAndPrint [09:41:54]line Счет N : (1)459280 [09:41:54]line ИНН: 02508201610067 [09:41:54]line Контрольно-Кассовый Чек [09:41:54]line ПРОДАЖА [09:41:54]line ТРК (МРК, ГНК) : 22 [09:41:54]line Товар: 2710124130 [09:41:54]line Аи-92-К-5 [09:41:54]line 15.200 * 65.80 [09:41:54]line = 1000.16 [09:41:54]line НДС 12% НСП 1% [09:41:54]line > о реализуемом товаре [09:41:54]line ОКРУГЛЕНИЕ: -0.16 [09:41:54]line ИТОГО: 1000.00 [09:41:54]line Внесено: 1000.00 [09:41:54]line СДАЧА: 0.00 [09:41:54]line НСП 1% : 8.85 [09:41:54]line НДС 12% : 106.21 [09:41:54]line Наличными: 1000.00 [09:41:54]line Безнал.: 0.00 [09:41:54]line Место: АЗС № 72 "Партнер Нефть" [09:41:54]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:41:54]line СНО: Общий режим [09:41:54]line Чек 51 15.07.2024 09:41 [09:41:54]line Смена: 448 ФФД: 1.0 [09:41:54]line ЗНМ: 0300000160 [09:41:54]line РНМ: 0000000000090829 [09:41:54]line Версия ККМ: 001 [09:41:54]line ФМ: 0000000000874718 [09:41:54]line ФД: 165178 [09:41:54]line ФПД: 258997971894291 [09:41:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T094157&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165178&fm=258997971894291&tin=02508201610067®Number=0000000000090829&sum=100000 [09:41:54]OFD Sender: Processing packet 165178 [packets to send 106, broken 105] [09:41:54]ProducePacketName [09:41:54]name=ofd_packets/00165178 [09:41:54]OFD Sender: To server: pG, [09:41:54]CommunicateWithHost lk.salyk.kg:30040 [09:41:54]ConnectInit lk.salyk.kg [09:41:54]written 0, free lines is 4095 [09:41:55]Connected sock=10 [09:41:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 49 6D 07 01 0B 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 E5 EE 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3A 85 02 00 35 04 06 00 EB 8E AA 1C C0 13 1A 14 8A E1 3B 39 7C 82 [09:41:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 B0 37 47 00 85 CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3A 85 02 00 F4 03 04 00 70 95 94 66 B6 04 01 00 00 44 36 4E 4F 6C 76 D6 91 [09:41:55]CommunicateWithHost err = 0 [09:41:55]CheckOFDResponse [09:41:55]1017 (14) - 77093643461234 [09:41:55]1041 (16) - 0000000000874718 [09:41:55]1040 (4) - 165178 [09:41:55]1012 (4) - 15.07.2024 03:20 [09:41:55]1206 (1) - 0 [09:41:55]OFD Sender: Remove packet 165178 [09:41:55]ProducePacketName [09:41:55]name=ofd_packets/00165178 [09:41:55]NVStorageDeleteData [09:41:55]Write to MH i2c: 01 00 00 85 23 A8 [09:41:55]Write i2c OK [09:41:55]MH_I2C_Read... [09:41:55]Read from MH i2c: 01 [09:41:55]MH_I2C_Read... [09:41:55]Read from MH i2c: 01 07 00 [09:41:55]MH_I2C_Read... [09:41:55]Read from MH i2c: 01 07 00 85 23 00 00 00 00 00 F5 0C B0 [09:41:55]RasterBufferAndPrint [09:41:55]line [09:41:55]line [09:41:55]line [09:41:55]line [09:41:55]line [09:41:55]written 0, free lines is 3324 [09:41:55]MH_Cut [09:41:55]Write to MH i2c: D1 01 00 8C 23 01 81 [09:41:55]Write i2c OK [09:41:55]MH_I2C_Read... [09:41:55]Read from MH i2c: D1 [09:41:55]MH_I2C_Read... [09:41:55]Read from MH i2c: D1 01 00 [09:41:55]MH_I2C_Read... [09:41:55]Read from MH i2c: D1 01 00 8C 23 00 80 [09:41:55]Write to MH i2c: 01 00 00 8D 23 B0 [09:41:55]Write i2c OK [09:41:55]MH_I2C_Read... [09:41:55]OFD Sender: No OFD packet to send [09:41:56]*** Cut start [09:41:56]*** Partial cut [09:41:56]*** CUTSNS_PIN = 1 [09:41:56]*** CUTSNS_PIN = 0 [09:41:56]*** Brake cut motor [09:41:56]Read from MH i2c: 01 [09:41:56]MH_I2C_Read... [09:41:56]*** Stop cut motor [09:41:56]*** Cut end [09:41:56]Read from MH i2c: 01 07 00 [09:41:56]MH_I2C_Read... [09:41:56]Read from MH i2c: 01 07 00 8D 23 00 00 00 00 00 FF 0F C5 [09:41:56]process_action close_receipt done [09:41:56]requested_data is exist [09:41:56]produce_requested_data [09:41:56]requested_item fm.sn is exist - process it [09:41:56]wFMCommunicate request_size=4 [09:41:56]MH_SAM_APDU [09:41:56]CAPDU: 80 11 00 00 [09:41:56]Write to MH i2c: E2 08 00 8E 23 80 11 00 00 00 00 00 00 2B [09:41:56]Write i2c OK [09:41:56]MH_I2C_Read... [09:41:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:56]Read from MH i2c: E2 [09:41:56]MH_I2C_Read... [09:41:56]Read from MH i2c: E2 17 00 [09:41:56]MH_I2C_Read... [09:41:56]Read from MH i2c: E2 17 00 8E 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 81 [09:41:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:41:56]wFMCommunicate OK [09:41:56]requested_item fd.num is exist - process it [09:41:56]SAM_PROTO_GetFieldsCounters [09:41:56]wFMCommunicate request_size=4 [09:41:56]MH_SAM_APDU [09:41:56]CAPDU: 80 13 00 00 [09:41:56]Write to MH i2c: E2 08 00 8F 23 80 13 00 00 00 00 00 00 2E [09:41:56]Write i2c OK [09:41:56]MH_I2C_Read... [09:41:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:41:56]Read from MH i2c: E2 [09:41:56]MH_I2C_Read... [09:41:56]Read from MH i2c: E2 62 00 [09:41:56]MH_I2C_Read... [09:41:56]Read from MH i2c: E2 62 00 8F 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3A 85 02 00 0E 04 04 00 C0 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 70 [09:41: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3A 85 02 00 0E 04 04 00 C0 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 [09:41:56]wFMCommunicate OK [09:41:56]SAM_PROTO_GetFieldsCounters done [09:41:56]requested_item shift.num is exist - process it [09:41:56]requested_item shift.opened is exist - process it [09:41:56]req_shift_opened [09:41:56]FM_GetShiftState [09:41:56]SAM_PROTO_GetShiftState [09:41:56]wFMCommunicate request_size=4 [09:41:56]MH_SAM_APDU [09:41:56]CAPDU: 80 13 01 00 [09:41:56]Write to MH i2c: E2 08 00 90 23 80 13 01 00 00 00 00 00 30 [09:41:56]Write i2c OK [09:41:56]MH_I2C_Read... [09:41:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:56]Read from MH i2c: E2 [09:41:56]MH_I2C_Read... [09:41:56]Read from MH i2c: E2 0E 00 [09:41:56]MH_I2C_Read... [09:41:56]Read from MH i2c: E2 0E 00 90 23 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 09 [09:41:56]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [09:41:56]wFMCommunicate OK [09:41:56]SAM_PROTO_GetShiftState done [09:41:56]FM_GetShiftState done [09:41:56]req_shift_opened done [09:41:56]requested_item shift.open_date is exist - process it [09:41:56]req_shift_open_date [09:41:56]req_shift_open_date done [09:41:56]produce_requested_data done [09:41:56]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165178,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [09:41:56]process_action_free close_receipt [09:41:56]json_value_free [09:41:56]json_value_free done [09:41:56]process_json_proto returns [09:41:56]Send response to host [09:41:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165178,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [09:41:56]free response buf [09:41:56]execute_script done [09:41:56]execute_script returns [09:41:56]free content buf [09:41:56]Sock 7.Close socket [09:41:56]Sock 7.Thread stoped [09:42:00]OFD Sender: No OFD packet to send [09:42:05]OFD Sender: No OFD packet to send [09:42:10]OFD Sender: No OFD packet to send [09:42:15]OFD Sender: No OFD packet to send [09:42:20]OFD Sender: No OFD packet to send [09:42:25]OFD Sender: No OFD packet to send [09:42:30]OFD Sender: No OFD packet to send [09:42:35]OFD Sender: No OFD packet to send [09:42:40]OFD Sender: No OFD packet to send [09:42:45]OFD Sender: No OFD packet to send [09:42:50]OFD Sender: No OFD packet to send [09:42:55]OFD Sender: No OFD packet to send [09:43:00]OFD Sender: No OFD packet to send [09:43:05]OFD Sender: No OFD packet to send [09:43:10]OFD Sender: No OFD packet to send [09:43:15]OFD Sender: No OFD packet to send [09:43:20]OFD Sender: No OFD packet to send [09:43:25]OFD Sender: No OFD packet to send [09:43:30]OFD Sender: No OFD packet to send [09:43:35]OFD Sender: No OFD packet to send [09:43:40]OFD Sender: No OFD packet to send [09:43:45]OFD Sender: No OFD packet to send [09:43:50]OFD Sender: No OFD packet to send [09:43:55]OFD Sender: No OFD packet to send [09:44:00]OFD Sender: No OFD packet to send [09:44:05]OFD Sender: No OFD packet to send [09:44:10]OFD Sender: No OFD packet to send [09:44:15]OFD Sender: No OFD packet to send [09:44:20]OFD Sender: No OFD packet to send [09:44:25]OFD Sender: No OFD packet to send [09:44:30]OFD Sender: No OFD packet to send [09:44:35]OFD Sender: No OFD packet to send [09:44:40]OFD Sender: No OFD packet to send [09:44:45]OFD Sender: No OFD packet to send [09:44:50]OFD Sender: No OFD packet to send [09:44:55]OFD Sender: No OFD packet to send [09:45:00]OFD Sender: No OFD packet to send [09:45:05]OFD Sender: No OFD packet to send [09:45:10]OFD Sender: No OFD packet to send [09:45:15]OFD Sender: No OFD packet to send [09:45:20]OFD Sender: No OFD packet to send [09:45:25]OFD Sender: No OFD packet to send [09:45:31]OFD Sender: No OFD packet to send [09:45:36]OFD Sender: No OFD packet to send [09:45:41]OFD Sender: No OFD packet to send [09:45:46]OFD Sender: No OFD packet to send [09:45:51]OFD Sender: No OFD packet to send [09:45:56]OFD Sender: No OFD packet to send [09:46:01]OFD Sender: No OFD packet to send [09:46:06]OFD Sender: No OFD packet to send [09:46:11]OFD Sender: No OFD packet to send [09:46:16]OFD Sender: No OFD packet to send [09:46:19]accept exits with 9 [09:46:19]New connection [09:46:19]New thread 3066785124 created [09:46:19]Thread 3066928484 joined [09:46:19]Waiting for new connection... [09:46:19] Sock 9.Parse request [09:46:19]Sock 9.Check first char [09:46:19]Sock 9.First char is OK [09:46:19]request: POST /json_proto HTTP/1.0 [09:46:19]Method: POST [09:46:19]URL: /json_proto [09:46:19]Method is POST - this is cgi request [09:46:19]url: /json_proto [09:46:19]query_string will be loaded in cgi processing [09:46:19]execute_cgi json_proto POST (null) [09:46:19]execute_cgi path=json_proto method=POST [09:46:19]POST find Content-Length [09:46:19]Host: 172.17.56.4:8080 [09:46:19]Content-Length: 682 [09:46:19]Content-Type: application/json [09:46:19] [09:46:19]POST finish read [09:46:19]Found Content-Length = 682 [09:46:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459281", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:19]execute_script... [09:46: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)459281", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:19]POST & json_proto [09:46:19]process_json_proto [09:46:19]json parsed OK: [09:46:19]protocol is kg_v1.0 [09:46:19]action value=close_receipt [09:46:19]process_action close_receipt [09:46:19]cmd_close_receipt [09:46:19]MH_GetDate [09:46:19]Write to MH i2c: F0 00 00 91 23 A3 [09:46:19]Write i2c OK [09:46:19]MH_I2C_Read... [09:46:19]Read from MH i2c: F0 [09:46:19]MH_I2C_Read... [09:46:19]Read from MH i2c: F0 09 00 [09:46:19]MH_I2C_Read... [09:46:19]Read from MH i2c: F0 09 00 91 23 00 EF EF 94 66 C9 DC B2 64 3F [09:46:19]GetLastDocTimeStamp 1721036517 [09:46:19]current date 1721036783 [09:46:19]FM_GetShiftState [09:46:19]SAM_PROTO_GetShiftState [09:46:19]wFMCommunicate request_size=4 [09:46:19]MH_SAM_APDU [09:46:19]CAPDU: 80 13 01 00 [09:46:19]Write to MH i2c: E2 08 00 92 23 80 13 01 00 00 00 00 00 32 [09:46:19]Write i2c OK [09:46:19]MH_I2C_Read... [09:46:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:19]Read from MH i2c: E2 [09:46:19]MH_I2C_Read... [09:46:19]Read from MH i2c: E2 0E 00 [09:46:19]MH_I2C_Read... [09:46:19]Read from MH i2c: E2 0E 00 92 23 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 0B [09:46:19]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [09:46:19]wFMCommunicate OK [09:46:19]SAM_PROTO_GetShiftState done [09:46:19]FM_GetShiftState done [09:46:19]opened in 1721003876 [09:46:19]opened+sec_in_day 1721090276 [09:46:19]quantity*price = 100016 [09:46:19]sum+1 = 100017 [09:46:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 52 15.07.2024 09:46 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165179 ФПД: 31710022137114 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T094623&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165179&fm=31710022137114&tin=02508201610067®Number=0000000000090829&sum=100000 [09:46:20]StoreToDocumentArchive [09:46:20]shift 448 fd 165179 [09:46:20]save to /storage/0448/doc_00165179 [09:46:20]save last doc name /storage/0448/doc_00165179 to /storage/kkm_last_doc_name [09:46:20]save OK [09:46:20]Clear old archive folders... [09:46:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:46:20]tlvbuf is 013B4580 [09:46:20]SAM_PROTO_ClearQueue [09:46:20]wFMCommunicate request_size=4 [09:46:20]MH_SAM_APDU [09:46:20]CAPDU: 80 09 00 00 [09:46:20]Write to MH i2c: E2 08 00 9F 23 80 09 00 00 00 00 00 00 34 [09:46:20]Write i2c OK [09:46:20]MH_I2C_Read... [09:46:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:46:20]Read from MH i2c: E2 [09:46:20]MH_I2C_Read... [09:46:20]Read from MH i2c: E2 03 00 [09:46:20]MH_I2C_Read... [09:46:20]Read from MH i2c: E2 03 00 9F 23 00 90 00 36 [09:46:20]RAPDU: 90 00 [09:46:20]wFMCommunicate OK [09:46:20]SAM_PROTO_ClearQueue done [09:46:20]KKMCreateOFDPacket [09:46:20]OFDProtocolAddRootSTLVToBuf [09:46:20]FM_MakeSignedData [09:46:20]FM_MakeSignedData [09:46:20]SAM_PROTO_SignData [09:46:20]wFMCommunicate request_size=4 [09:46:20]MH_SAM_APDU [09:46:20]CAPDU: 80 0D 01 02 [09:46:20]Write to MH i2c: E2 08 00 A0 23 80 0D 01 02 00 00 00 00 3C [09:46:20]Write i2c OK [09:46:20]MH_I2C_Read... [09:46:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:46:20]Read from MH i2c: E2 [09:46:20]MH_I2C_Read... [09:46:20]Read from MH i2c: E2 03 00 [09:46:20]MH_I2C_Read... [09:46:20]Read from MH i2c: E2 03 00 A0 23 00 90 00 37 [09:46:20]RAPDU: 90 00 [09:46:20]wFMCommunicate OK [09:46:20]wFMCommunicate request_size=255 [09:46:20]MH_SAM_APDU [09:46:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 EF EF 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3B 85 02 00 35 04 06 00 1C [09:46:20]Write to MH i2c: E2 02 01 A1 23 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 EF EF 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3B 85 02 00 35 04 06 00 1C 00 00 02 [09:46:20]Write i2c OK [09:46:20]MH_I2C_Read... [09:46:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:20]Read from MH i2c: E2 [09:46:20]MH_I2C_Read... [09:46:20]Read from MH i2c: E2 03 00 [09:46:20]MH_I2C_Read... [09:46:20]Read from MH i2c: E2 03 00 A1 23 00 90 00 38 [09:46:20]RAPDU: 90 00 [09:46:20]wFMCommunicate OK [09:46:20]wFMCommunicate request_size=10 [09:46:20]MH_SAM_APDU [09:46:20]CAPDU: 80 0D 02 02 05 D7 10 9A F5 1A [09:46:20]Write to MH i2c: E2 0D 00 A2 23 80 0D 02 02 05 00 D7 10 9A F5 1A 00 00 D9 [09:46:20]Write i2c OK [09:46:20]MH_I2C_Read... [09:46:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:20]Read from MH i2c: E2 [09:46:20]MH_I2C_Read... [09:46:20]Read from MH i2c: E2 03 00 [09:46:20]MH_I2C_Read... [09:46:20]Read from MH i2c: E2 03 00 A2 23 00 90 00 39 [09:46:20]RAPDU: 90 00 [09:46:20]wFMCommunicate OK [09:46:20]wFMCommunicate request_size=4 [09:46:20]MH_SAM_APDU [09:46:20]CAPDU: 80 0D 03 02 [09:46:20]Write to MH i2c: E2 08 00 A3 23 80 0D 03 02 00 00 00 00 41 [09:46:20]Write i2c OK [09:46:20]MH_I2C_Read... [09:46:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:46:20]Read from MH i2c: E2 [09:46:20]MH_I2C_Read... [09:46:20]Read from MH i2c: E2 0B 00 [09:46:20]MH_I2C_Read... [09:46:20]Read from MH i2c: E2 0B 00 A3 23 00 DB 2D A9 A7 37 6A D0 00 90 00 0B [09:46:20]RAPDU: DB 2D A9 A7 37 6A D0 00 90 00 [09:46:20]wFMCommunicate OK [09:46:20]SAM_PROTO_SignData done [09:46:20]FM_MakeSignedData done [09:46:20]CreateOFDProtocolMessage [09:46:20]wFMCommunicate request_size=4 [09:46:20]MH_SAM_APDU [09:46:20]CAPDU: 80 11 00 00 [09:46:20]Write to MH i2c: E2 08 00 A4 23 80 11 00 00 00 00 00 00 41 [09:46:20]Write i2c OK [09:46:20]MH_I2C_Read... [09:46:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:20]Read from MH i2c: E2 [09:46:20]MH_I2C_Read... [09:46:20]Read from MH i2c: E2 17 00 [09:46:20]MH_I2C_Read... [09:46:20]Read from MH i2c: E2 17 00 A4 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 97 [09:46:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:46:20]wFMCommunicate OK [09:46:20]CreateOFDProtocolMessage done [09:46:20]OFDSenderStorePacket 165179 [09:46:20]StoreOFDPacket docnum=165179 [09:46:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 43 5D 07 01 7F 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 EF EF 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3B 85 02 00 35 04 06 00 1C D7 10 9A F5 1A DB 2D A9 A7 37 6A D0 00 [09:46:20]CheckFolder [09:46:20]dirname=/storage/ofd_packets [09:46:20]CheckFolder done [09:46:20]ProducePacketName [09:46:20]name=ofd_packets/00165179 [09:46:20]NVStorageSaveData ofd_packets/00165179 [09:46:20]File name is /storage/ofd_packets/00165179 [09:46:20]Write 301 bytes [09:46:20]NVStorageSaveData done [09:46:20]OFDSenderStorePacket done [09:46:20]KKMCreateOFDPacket done [09:46:20]NVStorageSaveData kkm_last_timestamp [09:46:20]File name is /storage/kkm_last_timestamp [09:46:20]Write 4 bytes [09:46:20]NVStorageSaveData done [09:46:20]OFD Sender: Processing packet 165179 [packets to send 106, broken 105] [09:46:20]ProducePacketName [09:46:20]name=ofd_packets/00165179 [09:46:20]OFD Sender: To server: pG, [09:46:20]CommunicateWithHost lk.salyk.kg:30040 [09:46:20]ConnectInit lk.salyk.kg [09:46:20]ExternCall_PrintAddStr [09:46:20]wPrintStart [09:46:20]Write to MH i2c: 01 00 00 A5 23 C8 [09:46:20]Write i2c OK [09:46:20]MH_I2C_Read... [09:46:20]Read from MH i2c: 01 [09:46:20]MH_I2C_Read... [09:46:20]Read from MH i2c: 01 07 00 [09:46:20]MH_I2C_Read... [09:46:20]Read from MH i2c: 01 07 00 A5 23 00 00 00 00 00 FF 0F DD [09:46:20]RasterBufferAndPrint [09:46:20]line Счет N : (1)459281 [09:46:20]line ИНН: 02508201610067 [09:46:20]line Контрольно-Кассовый Чек [09:46:20]line ПРОДАЖА [09:46:20]line ТРК (МРК, ГНК) : 12 [09:46:20]line Товар: 2710124130 [09:46:20]line Аи-92-К-5 [09:46:20]line 15.200 * 65.80 [09:46:20]line = 1000.16 [09:46:20]line НДС 12% НСП 1% [09:46:20]line > о реализуемом товаре [09:46:20]line ОКРУГЛЕНИЕ: -0.16 [09:46:20]line ИТОГО: 1000.00 [09:46:20]line Внесено: 1000.00 [09:46:20]line СДАЧА: 0.00 [09:46:20]line НСП 1% : 8.85 [09:46:20]line НДС 12% : 106.21 [09:46:20]line Наличными: 1000.00 [09:46:20]line Безнал.: 0.00 [09:46:20]line Место: АЗС № 72 "Партнер Нефть" [09:46:20]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:46:20]line СНО: Общий режим [09:46:20]line Чек 52 15.07.2024 09:46 [09:46:20]line Смена: 448 ФФД: 1.0 [09:46:20]line ЗНМ: 0300000160 [09:46:20]line РНМ: 0000000000090829 [09:46:20]line Версия ККМ: 001 [09:46:20]line ФМ: 0000000000874718 [09:46:20]line ФД: 165179 [09:46:20]line ФПД: 31710022137114 [09:46:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T094623&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165179&fm=31710022137114&tin=02508201610067®Number=0000000000090829&sum=100000 [09:46:21]Connected sock=11 [09:46: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 37 31 38 0F 01 00 00 43 5D 07 01 7F 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 EF EF 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3B 85 02 00 35 04 06 00 1C D7 10 9A F5 1A DB 2D A9 A7 37 6A D0 00 [09:46:21]written 0, free lines is 4095 [09:46:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 2B 36 47 00 B2 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3B 85 02 00 F4 03 04 00 7A 96 94 66 B6 04 01 00 00 74 43 31 AE 87 F8 A8 EC [09:46:21]CommunicateWithHost err = 0 [09:46:21]CheckOFDResponse [09:46:21]1017 (14) - 77093643461234 [09:46:21]1041 (16) - 0000000000874718 [09:46:21]1040 (4) - 165179 [09:46:21]1012 (4) - 15.07.2024 03:24 [09:46:21]1206 (1) - 0 [09:46:21]OFD Sender: Remove packet 165179 [09:46:21]ProducePacketName [09:46:21]name=ofd_packets/00165179 [09:46:21]NVStorageDeleteData [09:46:21]Write to MH i2c: 01 00 00 CF 23 F2 [09:46:21]Write i2c OK [09:46:21]MH_I2C_Read... [09:46:21]Read from MH i2c: 01 [09:46:21]MH_I2C_Read... [09:46:21]Read from MH i2c: 01 07 00 [09:46:21]MH_I2C_Read... [09:46:21]Read from MH i2c: 01 07 00 CF 23 00 00 00 00 00 EE 0C F3 [09:46:21]RasterBufferAndPrint [09:46:21]line [09:46:21]line [09:46:21]line [09:46:21]line [09:46:21]line [09:46:21]written 0, free lines is 3317 [09:46:21]MH_Cut [09:46:21]Write to MH i2c: D1 01 00 D6 23 01 CB [09:46:21]Write i2c OK [09:46:21]MH_I2C_Read... [09:46:21]Read from MH i2c: D1 [09:46:21]MH_I2C_Read... [09:46:21]Read from MH i2c: D1 01 00 [09:46:21]MH_I2C_Read... [09:46:21]Read from MH i2c: D1 01 00 D6 23 00 CA [09:46:21]Write to MH i2c: 01 00 00 D7 23 FA [09:46:21]Write i2c OK [09:46:21]MH_I2C_Read... [09:46:21]OFD Sender: No OFD packet to send [09:46:22]*** Cut start [09:46:22]*** Partial cut [09:46:22]*** CUTSNS_PIN = 1 [09:46:22]*** CUTSNS_PIN = 0 [09:46:22]*** Brake cut motor [09:46:22]Read from MH i2c: 01 [09:46:22]MH_I2C_Read... [09:46:22]*** Stop cut motor [09:46:22]*** Cut end [09:46:22]Read from MH i2c: 01 07 00 [09:46:22]MH_I2C_Read... [09:46:22]Read from MH i2c: 01 07 00 D7 23 00 00 00 00 00 FF 0F 0F [09:46:22]process_action close_receipt done [09:46:22]requested_data is exist [09:46:22]produce_requested_data [09:46:22]requested_item fm.sn is exist - process it [09:46:22]wFMCommunicate request_size=4 [09:46:22]MH_SAM_APDU [09:46:22]CAPDU: 80 11 00 00 [09:46:22]Write to MH i2c: E2 08 00 D8 23 80 11 00 00 00 00 00 00 75 [09:46:22]Write i2c OK [09:46:22]MH_I2C_Read... [09:46:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:23]Read from MH i2c: E2 [09:46:23]MH_I2C_Read... [09:46:23]Read from MH i2c: E2 17 00 [09:46:23]MH_I2C_Read... [09:46:23]Read from MH i2c: E2 17 00 D8 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CB [09:46:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:46:23]wFMCommunicate OK [09:46:23]requested_item fd.num is exist - process it [09:46:23]SAM_PROTO_GetFieldsCounters [09:46:23]wFMCommunicate request_size=4 [09:46:23]MH_SAM_APDU [09:46:23]CAPDU: 80 13 00 00 [09:46:23]Write to MH i2c: E2 08 00 D9 23 80 13 00 00 00 00 00 00 78 [09:46:23]Write i2c OK [09:46:23]MH_I2C_Read... [09:46:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:46:23]Read from MH i2c: E2 [09:46:23]MH_I2C_Read... [09:46:23]Read from MH i2c: E2 62 00 [09:46:23]MH_I2C_Read... [09:46:23]Read from MH i2c: E2 62 00 D9 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3B 85 02 00 0E 04 04 00 C0 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 BE [09:46:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3B 85 02 00 0E 04 04 00 C0 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 [09:46:23]wFMCommunicate OK [09:46:23]SAM_PROTO_GetFieldsCounters done [09:46:23]requested_item shift.num is exist - process it [09:46:23]requested_item shift.opened is exist - process it [09:46:23]req_shift_opened [09:46:23]FM_GetShiftState [09:46:23]SAM_PROTO_GetShiftState [09:46:23]wFMCommunicate request_size=4 [09:46:23]MH_SAM_APDU [09:46:23]CAPDU: 80 13 01 00 [09:46:23]Write to MH i2c: E2 08 00 DA 23 80 13 01 00 00 00 00 00 7A [09:46:23]Write i2c OK [09:46:23]MH_I2C_Read... [09:46:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:23]Read from MH i2c: E2 [09:46:23]MH_I2C_Read... [09:46:23]Read from MH i2c: E2 0E 00 [09:46:23]MH_I2C_Read... [09:46:23]Read from MH i2c: E2 0E 00 DA 23 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 53 [09:46:23]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [09:46:23]wFMCommunicate OK [09:46:23]SAM_PROTO_GetShiftState done [09:46:23]FM_GetShiftState done [09:46:23]req_shift_opened done [09:46:23]requested_item shift.open_date is exist - process it [09:46:23]req_shift_open_date [09:46:23]req_shift_open_date done [09:46:23]produce_requested_data done [09:46:23]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165179,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [09:46:23]process_action_free close_receipt [09:46:23]json_value_free [09:46:23]json_value_free done [09:46:23]process_json_proto returns [09:46:23]Send response to host [09:46:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165179,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [09:46:23]free response buf [09:46:23]execute_script done [09:46:23]execute_script returns [09:46:23]free content buf [09:46:23]Sock 9.Close socket [09:46:23]Sock 9.Thread stoped [09:46:24]accept exits with 7 [09:46:24]New connection [09:46:24]New thread 3066928484 created [09:46:24]Thread 3066785124 joined [09:46:24]Waiting for new connection... [09:46:24] Sock 7.Parse request [09:46:24]Sock 7.Check first char [09:46:24]Sock 7.First char is OK [09:46:24]request: POST /json_proto HTTP/1.0 [09:46:24]Method: POST [09:46:24]URL: /json_proto [09:46:24]Method is POST - this is cgi request [09:46:24]url: /json_proto [09:46:24]query_string will be loaded in cgi processing [09:46:24]execute_cgi json_proto POST (null) [09:46:24]execute_cgi path=json_proto method=POST [09:46:24]POST find Content-Length [09:46:24]Host: 172.17.56.4:8080 [09:46:24]Content-Length: 679 [09:46:24]Content-Type: application/json [09:46:24] [09:46:24]POST finish read [09:46:24]Found Content-Length = 679 [09:46:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459282", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\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" ] } } [09:46:24]execute_script... [09:46:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459282", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\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" ] } } [09:46:24]POST & json_proto [09:46:24]process_json_proto [09:46:24]json parsed OK: [09:46:24]protocol is kg_v1.0 [09:46:24]action value=close_receipt [09:46:24]process_action close_receipt [09:46:24]cmd_close_receipt [09:46:24]MH_GetDate [09:46:24]Write to MH i2c: F0 00 00 DB 23 ED [09:46:24]Write i2c OK [09:46:24]MH_I2C_Read... [09:46:24]Read from MH i2c: F0 [09:46:24]MH_I2C_Read... [09:46:24]Read from MH i2c: F0 09 00 [09:46:24]MH_I2C_Read... [09:46:24]Read from MH i2c: F0 09 00 DB 23 00 F5 EF 94 66 C9 DC B2 64 8F [09:46:24]GetLastDocTimeStamp 1721036783 [09:46:24]current date 1721036789 [09:46:24]FM_GetShiftState [09:46:24]SAM_PROTO_GetShiftState [09:46:24]wFMCommunicate request_size=4 [09:46:24]MH_SAM_APDU [09:46:24]CAPDU: 80 13 01 00 [09:46:24]Write to MH i2c: E2 08 00 DC 23 80 13 01 00 00 00 00 00 7C [09:46:24]Write i2c OK [09:46:24]MH_I2C_Read... [09:46:24]Read from MH i2c: E2 [09:46:24]MH_I2C_Read... [09:46:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:24]Read from MH i2c: E2 0E 00 [09:46:24]MH_I2C_Read... [09:46:24]Read from MH i2c: E2 0E 00 DC 23 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 55 [09:46:24]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [09:46:24]wFMCommunicate OK [09:46:24]SAM_PROTO_GetShiftState done [09:46:24]FM_GetShiftState done [09:46:24]opened in 1721003876 [09:46:24]opened+sec_in_day 1721090276 [09:46:24]quantity*price = 100012 [09:46:24]sum+1 = 100014 [09:46:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 53 15.07.2024 09:46 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165180 ФПД: 255177372476506 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T094629&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165180&fm=255177372476506&tin=02508201610067®Number=0000000000090829&sum=100000 [09:46:25]StoreToDocumentArchive [09:46:25]shift 448 fd 165180 [09:46:25]save to /storage/0448/doc_00165180 [09:46:25]save last doc name /storage/0448/doc_00165180 to /storage/kkm_last_doc_name [09:46:25]save OK [09:46:25]Clear old archive folders... [09:46:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:46:25]tlvbuf is 01441F90 [09:46:25]SAM_PROTO_ClearQueue [09:46:25]wFMCommunicate request_size=4 [09:46:25]MH_SAM_APDU [09:46:25]CAPDU: 80 09 00 00 [09:46:25]Write to MH i2c: E2 08 00 E9 23 80 09 00 00 00 00 00 00 7E [09:46:25]Write i2c OK [09:46:25]MH_I2C_Read... [09:46:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:46:25]Read from MH i2c: E2 [09:46:25]MH_I2C_Read... [09:46:25]Read from MH i2c: E2 03 00 [09:46:25]MH_I2C_Read... [09:46:25]Read from MH i2c: E2 03 00 E9 23 00 90 00 80 [09:46:25]RAPDU: 90 00 [09:46:25]wFMCommunicate OK [09:46:25]SAM_PROTO_ClearQueue done [09:46:25]KKMCreateOFDPacket [09:46:25]OFDProtocolAddRootSTLVToBuf [09:46:25]FM_MakeSignedData [09:46:25]FM_MakeSignedData [09:46:25]SAM_PROTO_SignData [09:46:25]wFMCommunicate request_size=4 [09:46:25]MH_SAM_APDU [09:46:25]CAPDU: 80 0D 01 02 [09:46:25]Write to MH i2c: E2 08 00 EA 23 80 0D 01 02 00 00 00 00 86 [09:46:25]Write i2c OK [09:46:25]MH_I2C_Read... [09:46:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:46:26]Read from MH i2c: E2 [09:46:26]MH_I2C_Read... [09:46:26]Read from MH i2c: E2 03 00 [09:46:26]MH_I2C_Read... [09:46:26]Read from MH i2c: E2 03 00 EA 23 00 90 00 81 [09:46:26]RAPDU: 90 00 [09:46:26]wFMCommunicate OK [09:46:26]wFMCommunicate request_size=255 [09:46:26]MH_SAM_APDU [09:46:26]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 35 00 00 00 F4 03 04 00 F5 EF 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3C 85 02 00 35 04 06 00 E8 15 1C A4 [09:46:26]Write to MH i2c: E2 02 01 EB 23 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 35 00 00 00 F4 03 04 00 F5 EF 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3C 85 02 00 35 04 06 00 E8 15 1C A4 00 00 9B [09:46:26]Write i2c OK [09:46:26]MH_I2C_Read... [09:46:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:26]Read from MH i2c: E2 [09:46:26]MH_I2C_Read... [09:46:26]Read from MH i2c: E2 03 00 [09:46:26]MH_I2C_Read... [09:46:26]Read from MH i2c: E2 03 00 EB 23 00 90 00 82 [09:46:26]RAPDU: 90 00 [09:46:26]wFMCommunicate OK [09:46:26]wFMCommunicate request_size=7 [09:46:26]MH_SAM_APDU [09:46:26]CAPDU: 80 0D 02 02 02 24 5A [09:46:26]Write to MH i2c: E2 0A 00 EC 23 80 0D 02 02 02 00 24 5A 00 00 0B [09:46:26]Write i2c OK [09:46:26]MH_I2C_Read... [09:46:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:26]Read from MH i2c: E2 [09:46:26]MH_I2C_Read... [09:46:26]Read from MH i2c: E2 03 00 [09:46:26]MH_I2C_Read... [09:46:26]Read from MH i2c: E2 03 00 EC 23 00 90 00 83 [09:46:26]RAPDU: 90 00 [09:46:26]wFMCommunicate OK [09:46:26]wFMCommunicate request_size=4 [09:46:26]MH_SAM_APDU [09:46:26]CAPDU: 80 0D 03 02 [09:46:26]Write to MH i2c: E2 08 00 ED 23 80 0D 03 02 00 00 00 00 8B [09:46:26]Write i2c OK [09:46:26]MH_I2C_Read... [09:46:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:46:26]Read from MH i2c: E2 [09:46:26]MH_I2C_Read... [09:46:26]Read from MH i2c: E2 0B 00 [09:46:26]MH_I2C_Read... [09:46:26]Read from MH i2c: E2 0B 00 ED 23 00 61 82 57 58 8A DB F7 B8 90 00 32 [09:46:26]RAPDU: 61 82 57 58 8A DB F7 B8 90 00 [09:46:26]wFMCommunicate OK [09:46:26]SAM_PROTO_SignData done [09:46:26]FM_MakeSignedData done [09:46:26]CreateOFDProtocolMessage [09:46:26]wFMCommunicate request_size=4 [09:46:26]MH_SAM_APDU [09:46:26]CAPDU: 80 11 00 00 [09:46:26]Write to MH i2c: E2 08 00 EE 23 80 11 00 00 00 00 00 00 8B [09:46:26]Write i2c OK [09:46:26]MH_I2C_Read... [09:46:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:26]Read from MH i2c: E2 [09:46:26]MH_I2C_Read... [09:46:26]Read from MH i2c: E2 17 00 [09:46:26]MH_I2C_Read... [09:46:26]Read from MH i2c: E2 17 00 EE 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E1 [09:46:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:46:26]wFMCommunicate OK [09:46:26]CreateOFDProtocolMessage done [09:46:26]OFDSenderStorePacket 165180 [09:46:26]StoreOFDPacket docnum=165180 [09:46:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 46 98 04 01 52 73 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 35 00 00 00 F4 03 04 00 F5 EF 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3C 85 02 00 35 04 06 00 E8 15 1C A4 24 5A 61 82 57 58 8A DB F7 B8 [09:46:26]CheckFolder [09:46:26]dirname=/storage/ofd_packets [09:46:26]CheckFolder done [09:46:26]ProducePacketName [09:46:26]name=ofd_packets/00165180 [09:46:26]NVStorageSaveData ofd_packets/00165180 [09:46:26]File name is /storage/ofd_packets/00165180 [09:46:26]Write 298 bytes [09:46:26]NVStorageSaveData done [09:46:26]OFDSenderStorePacket done [09:46:26]KKMCreateOFDPacket done [09:46:26]NVStorageSaveData kkm_last_timestamp [09:46:26]File name is /storage/kkm_last_timestamp [09:46:26]Write 4 bytes [09:46:26]NVStorageSaveData done [09:46:26]ExternCall_PrintAddStr [09:46:26]wPrintStart [09:46:26]Write to MH i2c: 01 00 00 EF 23 12 [09:46:26]Write i2c OK [09:46:26]MH_I2C_Read... [09:46:26]Read from MH i2c: 01 [09:46:26]MH_I2C_Read... [09:46:26]Read from MH i2c: 01 07 00 [09:46:26]MH_I2C_Read... [09:46:26]Read from MH i2c: 01 07 00 EF 23 00 00 00 00 00 FF 0F 27 [09:46:26]RasterBufferAndPrint [09:46:26]line Счет N : (1)459282 [09:46:26]line ИНН: 02508201610067 [09:46:26]line Контрольно-Кассовый Чек [09:46:26]line ПРОДАЖА [09:46:26]line ТРК (МРК, ГНК) : 11 [09:46:26]line Товар: 2710194210 [09:46:26]line ДТ-К-5 [09:46:26]line 13.910 * 71.90 [09:46:26]line = 1000.13 [09:46:26]line НДС 12% НСП 1% [09:46:26]line > о реализуемом товаре [09:46:26]line ОКРУГЛЕНИЕ: -0.13 [09:46:26]line ИТОГО: 1000.00 [09:46:26]line Внесено: 1000.00 [09:46:26]line СДАЧА: 0.00 [09:46:26]line НСП 1% : 8.85 [09:46:26]line НДС 12% : 106.21 [09:46:26]line Наличными: 1000.00 [09:46:26]line Безнал.: 0.00 [09:46:26]line Место: АЗС № 72 "Партнер Нефть" [09:46:26]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:46:26]line СНО: Общий режим [09:46:26]line Чек 53 15.07.2024 09:46 [09:46:26]line Смена: 448 ФФД: 1.0 [09:46:26]line ЗНМ: 0300000160 [09:46:26]line РНМ: 0000000000090829 [09:46:26]line Версия ККМ: 001 [09:46:26]line ФМ: 0000000000874718 [09:46:26]line ФД: 165180 [09:46:26]line ФПД: 255177372476506 [09:46:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T094629&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165180&fm=255177372476506&tin=02508201610067®Number=0000000000090829&sum=100000 [09:46:26]written 0, free lines is 4095 [09:46:26]OFD Sender: Processing packet 165180 [packets to send 106, broken 105] [09:46:26]ProducePacketName [09:46:26]name=ofd_packets/00165180 [09:46:26]OFD Sender: To server: pG, [09:46:26]CommunicateWithHost lk.salyk.kg:30040 [09:46:26]ConnectInit lk.salyk.kg [09:46:26]Connected sock=10 [09:46:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 46 98 04 01 52 73 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 35 00 00 00 F4 03 04 00 F5 EF 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3C 85 02 00 35 04 06 00 E8 15 1C A4 24 5A 61 82 57 58 8A DB F7 B8 [09:46:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 50 E1 47 00 08 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3C 85 02 00 F4 03 04 00 7F 96 94 66 B6 04 01 00 00 71 C2 63 3C 33 40 59 6C [09:46:26]CommunicateWithHost err = 0 [09:46:26]CheckOFDResponse [09:46:26]1017 (14) - 77093643461234 [09:46:26]1041 (16) - 0000000000874718 [09:46:26]1040 (4) - 165180 [09:46:26]1012 (4) - 15.07.2024 03:24 [09:46:26]1206 (1) - 0 [09:46:26]OFD Sender: Remove packet 165180 [09:46:26]ProducePacketName [09:46:26]name=ofd_packets/00165180 [09:46:26]NVStorageDeleteData [09:46:26]Write to MH i2c: 01 00 00 19 24 3D [09:46:26]Write i2c OK [09:46:26]MH_I2C_Read... [09:46:26]Read from MH i2c: 01 [09:46:26]MH_I2C_Read... [09:46:26]Read from MH i2c: 01 07 00 [09:46:26]MH_I2C_Read... [09:46:26]Read from MH i2c: 01 07 00 19 24 00 00 00 00 00 F6 0C 46 [09:46:26]RasterBufferAndPrint [09:46:26]line [09:46:26]line [09:46:26]line [09:46:26]line [09:46:26]line [09:46:26]written 0, free lines is 3330 [09:46:26]MH_Cut [09:46:26]Write to MH i2c: D1 01 00 20 24 01 16 [09:46:26]Write i2c OK [09:46:26]MH_I2C_Read... [09:46:26]Read from MH i2c: D1 [09:46:26]MH_I2C_Read... [09:46:26]Read from MH i2c: D1 01 00 [09:46:26]MH_I2C_Read... [09:46:26]Read from MH i2c: D1 01 00 20 24 00 15 [09:46:27]Write to MH i2c: 01 00 00 21 24 45 [09:46:27]Write i2c OK [09:46:27]MH_I2C_Read... [09:46:27]OFD Sender: No OFD packet to send [09:46:27]*** Cut start [09:46:27]*** Partial cut [09:46:27]*** CUTSNS_PIN = 1 [09:46:27]*** CUTSNS_PIN = 0 [09:46:27]*** Brake cut motor [09:46:28]Read from MH i2c: 01 [09:46:28]MH_I2C_Read... [09:46:28]*** Stop cut motor [09:46:28]*** Cut end [09:46:28]Read from MH i2c: 01 07 00 [09:46:28]MH_I2C_Read... [09:46:28]Read from MH i2c: 01 07 00 21 24 00 00 00 00 00 FF 0F 5A [09:46:28]process_action close_receipt done [09:46:28]requested_data is exist [09:46:28]produce_requested_data [09:46:28]requested_item fm.sn is exist - process it [09:46:28]wFMCommunicate request_size=4 [09:46:28]MH_SAM_APDU [09:46:28]CAPDU: 80 11 00 00 [09:46:28]Write to MH i2c: E2 08 00 22 24 80 11 00 00 00 00 00 00 C0 [09:46:28]Write i2c OK [09:46:28]MH_I2C_Read... [09:46:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:28]Read from MH i2c: E2 [09:46:28]MH_I2C_Read... [09:46:28]Read from MH i2c: E2 17 00 [09:46:28]MH_I2C_Read... [09:46:28]Read from MH i2c: E2 17 00 22 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 16 [09:46:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:46:28]wFMCommunicate OK [09:46:28]requested_item fd.num is exist - process it [09:46:28]SAM_PROTO_GetFieldsCounters [09:46:28]wFMCommunicate request_size=4 [09:46:28]MH_SAM_APDU [09:46:28]CAPDU: 80 13 00 00 [09:46:28]Write to MH i2c: E2 08 00 23 24 80 13 00 00 00 00 00 00 C3 [09:46:28]Write i2c OK [09:46:28]MH_I2C_Read... [09:46:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:46:28]Read from MH i2c: E2 [09:46:28]MH_I2C_Read... [09:46:28]Read from MH i2c: E2 62 00 [09:46:28]MH_I2C_Read... [09:46:28]Read from MH i2c: E2 62 00 23 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3C 85 02 00 0E 04 04 00 C0 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 0D [09:46:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3C 85 02 00 0E 04 04 00 C0 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 [09:46:28]wFMCommunicate OK [09:46:28]SAM_PROTO_GetFieldsCounters done [09:46:28]requested_item shift.num is exist - process it [09:46:28]requested_item shift.opened is exist - process it [09:46:28]req_shift_opened [09:46:28]FM_GetShiftState [09:46:28]SAM_PROTO_GetShiftState [09:46:28]wFMCommunicate request_size=4 [09:46:28]MH_SAM_APDU [09:46:28]CAPDU: 80 13 01 00 [09:46:28]Write to MH i2c: E2 08 00 24 24 80 13 01 00 00 00 00 00 C5 [09:46:28]Write i2c OK [09:46:28]MH_I2C_Read... [09:46:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:28]Read from MH i2c: E2 [09:46:28]MH_I2C_Read... [09:46:28]Read from MH i2c: E2 0E 00 [09:46:28]MH_I2C_Read... [09:46:28]Read from MH i2c: E2 0E 00 24 24 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 9E [09:46:28]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [09:46:28]wFMCommunicate OK [09:46:28]SAM_PROTO_GetShiftState done [09:46:28]FM_GetShiftState done [09:46:28]req_shift_opened done [09:46:28]requested_item shift.open_date is exist - process it [09:46:28]req_shift_open_date [09:46:28]req_shift_open_date done [09:46:28]produce_requested_data done [09:46:28]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165180,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [09:46:28]process_action_free close_receipt [09:46:28]json_value_free [09:46:28]json_value_free done [09:46:28]process_json_proto returns [09:46:28]Send response to host [09:46:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165180,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [09:46:28]free response buf [09:46:28]execute_script done [09:46:28]execute_script returns [09:46:28]free content buf [09:46:28]Sock 7.Close socket [09:46:28]Sock 7.Thread stoped [09:46:32]OFD Sender: No OFD packet to send [09:46:37]OFD Sender: No OFD packet to send [09:46:42]OFD Sender: No OFD packet to send [09:46:47]OFD Sender: No OFD packet to send [09:46:52]OFD Sender: No OFD packet to send [09:46:57]OFD Sender: No OFD packet to send [09:47:02]OFD Sender: No OFD packet to send [09:47:07]OFD Sender: No OFD packet to send [09:47:12]OFD Sender: No OFD packet to send [09:47:17]OFD Sender: No OFD packet to send [09:47:22]OFD Sender: No OFD packet to send [09:47:27]OFD Sender: No OFD packet to send [09:47:32]OFD Sender: No OFD packet to send [09:47:37]OFD Sender: No OFD packet to send [09:47:42]OFD Sender: No OFD packet to send [09:47:47]OFD Sender: No OFD packet to send [09:47:52]OFD Sender: No OFD packet to send [09:47:57]OFD Sender: No OFD packet to send [09:48:02]OFD Sender: No OFD packet to send [09:48:07]OFD Sender: No OFD packet to send [09:48:12]OFD Sender: No OFD packet to send [09:48:17]OFD Sender: No OFD packet to send [09:48:22]OFD Sender: No OFD packet to send [09:48:27]OFD Sender: No OFD packet to send [09:48:32]OFD Sender: No OFD packet to send [09:48:37]OFD Sender: No OFD packet to send [09:48:42]OFD Sender: No OFD packet to send [09:48:47]OFD Sender: No OFD packet to send [09:48:52]OFD Sender: No OFD packet to send [09:48:57]OFD Sender: No OFD packet to send [09:49:02]OFD Sender: No OFD packet to send [09:49:07]OFD Sender: No OFD packet to send [09:49:12]OFD Sender: No OFD packet to send [09:49:17]OFD Sender: No OFD packet to send [09:49:22]OFD Sender: No OFD packet to send [09:49:27]OFD Sender: No OFD packet to send [09:49:32]OFD Sender: No OFD packet to send [09:49:37]OFD Sender: No OFD packet to send [09:49:42]OFD Sender: No OFD packet to send [09:49:47]OFD Sender: No OFD packet to send [09:49:52]OFD Sender: No OFD packet to send [09:49:57]OFD Sender: No OFD packet to send [09:50:01]accept exits with 9 [09:50:01]New connection [09:50:01]New thread 3066785124 created [09:50:01]Thread 3066928484 joined [09:50:01]Waiting for new connection... [09:50:01] Sock 9.Parse request [09:50:01]Sock 9.Check first char [09:50:01]Sock 9.First char is OK [09:50:01]request: POST /json_proto HTTP/1.0 [09:50:01]Method: POST [09:50:01]URL: /json_proto [09:50:01]Method is POST - this is cgi request [09:50:01]url: /json_proto [09:50:01]query_string will be loaded in cgi processing [09:50:01]execute_cgi json_proto POST (null) [09:50:01]execute_cgi path=json_proto method=POST [09:50:01]POST find Content-Length [09:50:01]Host: 172.17.56.4:8080 [09:50:01]Content-Length: 682 [09:50:01]Content-Type: application/json [09:50:01] [09:50:01]POST finish read [09:50:01]Found Content-Length = 682 [09:50:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459283", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:50:01]execute_script... [09:50:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459283", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:50:01]POST & json_proto [09:50:01]process_json_proto [09:50:01]json parsed OK: [09:50:01]protocol is kg_v1.0 [09:50:01]action value=close_receipt [09:50:01]process_action close_receipt [09:50:01]cmd_close_receipt [09:50:01]MH_GetDate [09:50:01]Write to MH i2c: F0 00 00 25 24 38 [09:50:01]Write i2c OK [09:50:01]MH_I2C_Read... [09:50:01]Read from MH i2c: F0 [09:50:01]MH_I2C_Read... [09:50:01]Read from MH i2c: F0 09 00 [09:50:01]MH_I2C_Read... [09:50:01]Read from MH i2c: F0 09 00 25 24 00 CE F0 94 66 C9 DC B2 64 B4 [09:50:01]GetLastDocTimeStamp 1721036789 [09:50:01]current date 1721037006 [09:50:01]FM_GetShiftState [09:50:01]SAM_PROTO_GetShiftState [09:50:01]wFMCommunicate request_size=4 [09:50:01]MH_SAM_APDU [09:50:01]CAPDU: 80 13 01 00 [09:50:01]Write to MH i2c: E2 08 00 26 24 80 13 01 00 00 00 00 00 C7 [09:50:01]Write i2c OK [09:50:01]MH_I2C_Read... [09:50:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:01]Read from MH i2c: E2 [09:50:01]MH_I2C_Read... [09:50:01]Read from MH i2c: E2 0E 00 [09:50:01]MH_I2C_Read... [09:50:01]Read from MH i2c: E2 0E 00 26 24 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 A0 [09:50:01]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [09:50:01]wFMCommunicate OK [09:50:01]SAM_PROTO_GetShiftState done [09:50:01]FM_GetShiftState done [09:50:01]opened in 1721003876 [09:50:01]opened+sec_in_day 1721090276 [09:50:01]quantity*price = 100016 [09:50:01]sum+1 = 100017 [09:50:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 54 15.07.2024 09:50 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165181 ФПД: 79984350525076 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T095006&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165181&fm=79984350525076&tin=02508201610067®Number=0000000000090829&sum=100000 [09:50:02]StoreToDocumentArchive [09:50:02]shift 448 fd 165181 [09:50:02]save to /storage/0448/doc_00165181 [09:50:02]save last doc name /storage/0448/doc_00165181 to /storage/kkm_last_doc_name [09:50:02]save OK [09:50:02]Clear old archive folders... [09:50:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:50:02]tlvbuf is B6EA2BA0 [09:50:02]SAM_PROTO_ClearQueue [09:50:02]wFMCommunicate request_size=4 [09:50:02]MH_SAM_APDU [09:50:02]CAPDU: 80 09 00 00 [09:50:02]Write to MH i2c: E2 08 00 33 24 80 09 00 00 00 00 00 00 C9 [09:50:02]Write i2c OK [09:50:02]MH_I2C_Read... [09:50:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:50:02]Read from MH i2c: E2 [09:50:02]MH_I2C_Read... [09:50:02]Read from MH i2c: E2 03 00 [09:50:02]MH_I2C_Read... [09:50:02]Read from MH i2c: E2 03 00 33 24 00 90 00 CB [09:50:02]RAPDU: 90 00 [09:50:02]wFMCommunicate OK [09:50:02]SAM_PROTO_ClearQueue done [09:50:02]KKMCreateOFDPacket [09:50:02]OFDProtocolAddRootSTLVToBuf [09:50:02]FM_MakeSignedData [09:50:02]FM_MakeSignedData [09:50:02]SAM_PROTO_SignData [09:50:02]wFMCommunicate request_size=4 [09:50:02]MH_SAM_APDU [09:50:02]CAPDU: 80 0D 01 02 [09:50:02]Write to MH i2c: E2 08 00 34 24 80 0D 01 02 00 00 00 00 D1 [09:50:02]Write i2c OK [09:50:02]MH_I2C_Read... [09:50:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:50:02]Read from MH i2c: E2 [09:50:02]MH_I2C_Read... [09:50:02]Read from MH i2c: E2 03 00 [09:50:02]MH_I2C_Read... [09:50:02]Read from MH i2c: E2 03 00 34 24 00 90 00 CC [09:50:02]RAPDU: 90 00 [09:50:02]wFMCommunicate OK [09:50:02]wFMCommunicate request_size=255 [09:50:02]MH_SAM_APDU [09:50:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 CE F0 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3D 85 02 00 35 04 06 00 48 [09:50:02]Write to MH i2c: E2 02 01 35 24 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 CE F0 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3D 85 02 00 35 04 06 00 48 00 00 A7 [09:50:02]Write i2c OK [09:50:02]MH_I2C_Read... [09:50:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:03]Read from MH i2c: E2 [09:50:03]MH_I2C_Read... [09:50:03]Read from MH i2c: E2 03 00 [09:50:03]MH_I2C_Read... [09:50:03]Read from MH i2c: E2 03 00 35 24 00 90 00 CD [09:50:03]RAPDU: 90 00 [09:50:03]wFMCommunicate OK [09:50:03]wFMCommunicate request_size=10 [09:50:03]MH_SAM_APDU [09:50:03]CAPDU: 80 0D 02 02 05 BE CE CC F6 94 [09:50:03]Write to MH i2c: E2 0D 00 36 24 80 0D 02 02 05 00 BE CE CC F6 94 00 00 C0 [09:50:03]Write i2c OK [09:50:03]MH_I2C_Read... [09:50:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:03]Read from MH i2c: E2 [09:50:03]MH_I2C_Read... [09:50:03]Read from MH i2c: E2 03 00 [09:50:03]MH_I2C_Read... [09:50:03]Read from MH i2c: E2 03 00 36 24 00 90 00 CE [09:50:03]RAPDU: 90 00 [09:50:03]wFMCommunicate OK [09:50:03]wFMCommunicate request_size=4 [09:50:03]MH_SAM_APDU [09:50:03]CAPDU: 80 0D 03 02 [09:50:03]Write to MH i2c: E2 08 00 37 24 80 0D 03 02 00 00 00 00 D6 [09:50:03]Write i2c OK [09:50:03]MH_I2C_Read... [09:50:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:50:03]Read from MH i2c: E2 [09:50:03]MH_I2C_Read... [09:50:03]Read from MH i2c: E2 0B 00 [09:50:03]MH_I2C_Read... [09:50:03]Read from MH i2c: E2 0B 00 37 24 00 A1 1C 60 61 3A 78 90 23 90 00 BA [09:50:03]RAPDU: A1 1C 60 61 3A 78 90 23 90 00 [09:50:03]wFMCommunicate OK [09:50:03]SAM_PROTO_SignData done [09:50:03]FM_MakeSignedData done [09:50:03]CreateOFDProtocolMessage [09:50:03]wFMCommunicate request_size=4 [09:50:03]MH_SAM_APDU [09:50:03]CAPDU: 80 11 00 00 [09:50:03]Write to MH i2c: E2 08 00 38 24 80 11 00 00 00 00 00 00 D6 [09:50:03]Write i2c OK [09:50:03]MH_I2C_Read... [09:50:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:03]Read from MH i2c: E2 [09:50:03]MH_I2C_Read... [09:50:03]Read from MH i2c: E2 17 00 [09:50:03]MH_I2C_Read... [09:50:03]Read from MH i2c: E2 17 00 38 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2C [09:50:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:50:03]wFMCommunicate OK [09:50:03]CreateOFDProtocolMessage done [09:50:03]OFDSenderStorePacket 165181 [09:50:03]StoreOFDPacket docnum=165181 [09:50:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A2 16 07 01 E8 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 CE F0 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3D 85 02 00 35 04 06 00 48 BE CE CC F6 94 A1 1C 60 61 3A 78 90 23 [09:50:03]CheckFolder [09:50:03]dirname=/storage/ofd_packets [09:50:03]CheckFolder done [09:50:03]ProducePacketName [09:50:03]name=ofd_packets/00165181 [09:50:03]NVStorageSaveData ofd_packets/00165181 [09:50:03]File name is /storage/ofd_packets/00165181 [09:50:03]Write 301 bytes [09:50:03]NVStorageSaveData done [09:50:03]OFDSenderStorePacket done [09:50:03]KKMCreateOFDPacket done [09:50:03]NVStorageSaveData kkm_last_timestamp [09:50:03]File name is /storage/kkm_last_timestamp [09:50:03]Write 4 bytes [09:50:03]NVStorageSaveData done [09:50:03]ExternCall_PrintAddStr [09:50:03]wPrintStart [09:50:03]Write to MH i2c: 01 00 00 39 24 5D [09:50:03]Write i2c OK [09:50:03]MH_I2C_Read... [09:50:03]Read from MH i2c: 01 [09:50:03]MH_I2C_Read... [09:50:03]Read from MH i2c: 01 07 00 [09:50:03]MH_I2C_Read... [09:50:03]Read from MH i2c: 01 07 00 39 24 00 00 00 00 00 FF 0F 72 [09:50:03]RasterBufferAndPrint [09:50:03]line Счет N : (1)459283 [09:50:03]line ИНН: 02508201610067 [09:50:03]line Контрольно-Кассовый Чек [09:50:03]line ПРОДАЖА [09:50:03]line ТРК (МРК, ГНК) : 12 [09:50:03]line Товар: 2710124130 [09:50:03]line Аи-92-К-5 [09:50:03]line 15.200 * 65.80 [09:50:03]line = 1000.16 [09:50:03]line НДС 12% НСП 1% [09:50:03]line > о реализуемом товаре [09:50:03]line ОКРУГЛЕНИЕ: -0.16 [09:50:03]line ИТОГО: 1000.00 [09:50:03]line Внесено: 1000.00 [09:50:03]line СДАЧА: 0.00 [09:50:03]line НСП 1% : 8.85 [09:50:03]line НДС 12% : 106.21 [09:50:03]line Наличными: 1000.00 [09:50:03]line Безнал.: 0.00 [09:50:03]line Место: АЗС № 72 "Партнер Нефть" [09:50:03]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:50:03]line СНО: Общий режим [09:50:03]line Чек 54 15.07.2024 09:50 [09:50:03]line Смена: 448 ФФД: 1.0 [09:50:03]line ЗНМ: 0300000160 [09:50:03]line РНМ: 0000000000090829 [09:50:03]line Версия ККМ: 001 [09:50:03]line ФМ: 0000000000874718 [09:50:03]line ФД: 165181 [09:50:03]line ФПД: 79984350525076 [09:50:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T095006&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165181&fm=79984350525076&tin=02508201610067®Number=0000000000090829&sum=100000 [09:50:03]OFD Sender: Processing packet 165181 [packets to send 106, broken 105] [09:50:03]ProducePacketName [09:50:03]name=ofd_packets/00165181 [09:50:03]OFD Sender: To server: pG, [09:50:03]CommunicateWithHost lk.salyk.kg:30040 [09:50:03]ConnectInit lk.salyk.kg [09:50:03]written 0, free lines is 4095 [09:50:03]Connected sock=10 [09:50:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A2 16 07 01 E8 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 CE F0 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3D 85 02 00 35 04 06 00 48 BE CE CC F6 94 A1 1C 60 61 3A 78 90 23 [09:50:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 CE DA 47 00 4C 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3D 85 02 00 F4 03 04 00 59 97 94 66 B6 04 01 00 00 9B F2 53 07 F6 6B 37 DB [09:50:03]CommunicateWithHost err = 0 [09:50:03]CheckOFDResponse [09:50:03]1017 (14) - 77093643461234 [09:50:03]1041 (16) - 0000000000874718 [09:50:03]1040 (4) - 165181 [09:50:03]1012 (4) - 15.07.2024 03:28 [09:50:03]1206 (1) - 0 [09:50:03]OFD Sender: Remove packet 165181 [09:50:03]ProducePacketName [09:50:03]name=ofd_packets/00165181 [09:50:03]NVStorageDeleteData [09:50:04]Write to MH i2c: 01 00 00 63 24 87 [09:50:04]Write i2c OK [09:50:04]MH_I2C_Read... [09:50:04]Read from MH i2c: 01 [09:50:04]MH_I2C_Read... [09:50:04]Read from MH i2c: 01 07 00 [09:50:04]MH_I2C_Read... [09:50:04]Read from MH i2c: 01 07 00 63 24 00 00 00 00 00 F6 0C 90 [09:50:04]RasterBufferAndPrint [09:50:04]line [09:50:04]line [09:50:04]line [09:50:04]line [09:50:04]line [09:50:04]written 0, free lines is 3324 [09:50:04]MH_Cut [09:50:04]Write to MH i2c: D1 01 00 6A 24 01 60 [09:50:04]Write i2c OK [09:50:04]MH_I2C_Read... [09:50:04]Read from MH i2c: D1 [09:50:04]MH_I2C_Read... [09:50:04]Read from MH i2c: D1 01 00 [09:50:04]MH_I2C_Read... [09:50:04]Read from MH i2c: D1 01 00 6A 24 00 5F [09:50:04]Write to MH i2c: 01 00 00 6B 24 8F [09:50:04]Write i2c OK [09:50:04]MH_I2C_Read... [09:50:04]OFD Sender: No OFD packet to send [09:50:04]*** Cut start [09:50:04]*** Partial cut [09:50:04]*** CUTSNS_PIN = 1 [09:50:04]*** CUTSNS_PIN = 0 [09:50:04]*** Brake cut motor [09:50:05]Read from MH i2c: 01 [09:50:05]MH_I2C_Read... [09:50:05]*** Stop cut motor [09:50:05]*** Cut end [09:50:05]Read from MH i2c: 01 07 00 [09:50:05]MH_I2C_Read... [09:50:05]Read from MH i2c: 01 07 00 6B 24 00 00 00 00 00 FF 0F A4 [09:50:05]process_action close_receipt done [09:50:05]requested_data is exist [09:50:05]produce_requested_data [09:50:05]requested_item fm.sn is exist - process it [09:50:05]wFMCommunicate request_size=4 [09:50:05]MH_SAM_APDU [09:50:05]CAPDU: 80 11 00 00 [09:50:05]Write to MH i2c: E2 08 00 6C 24 80 11 00 00 00 00 00 00 0A [09:50:05]Write i2c OK [09:50:05]MH_I2C_Read... [09:50:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:05]Read from MH i2c: E2 [09:50:05]MH_I2C_Read... [09:50:05]Read from MH i2c: E2 17 00 [09:50:05]MH_I2C_Read... [09:50:05]Read from MH i2c: E2 17 00 6C 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 60 [09:50:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:50:05]wFMCommunicate OK [09:50:05]requested_item fd.num is exist - process it [09:50:05]SAM_PROTO_GetFieldsCounters [09:50:05]wFMCommunicate request_size=4 [09:50:05]MH_SAM_APDU [09:50:05]CAPDU: 80 13 00 00 [09:50:05]Write to MH i2c: E2 08 00 6D 24 80 13 00 00 00 00 00 00 0D [09:50:05]Write i2c OK [09:50:05]MH_I2C_Read... [09:50:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:50:05]Read from MH i2c: E2 [09:50:05]MH_I2C_Read... [09:50:05]Read from MH i2c: E2 62 00 [09:50:05]MH_I2C_Read... [09:50:05]Read from MH i2c: E2 62 00 6D 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3D 85 02 00 0E 04 04 00 C0 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 5B [09:50:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3D 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:50:05]wFMCommunicate OK [09:50:05]SAM_PROTO_GetFieldsCounters done [09:50:05]requested_item shift.num is exist - process it [09:50:05]requested_item shift.opened is exist - process it [09:50:05]req_shift_opened [09:50:05]FM_GetShiftState [09:50:05]SAM_PROTO_GetShiftState [09:50:05]wFMCommunicate request_size=4 [09:50:05]MH_SAM_APDU [09:50:05]CAPDU: 80 13 01 00 [09:50:05]Write to MH i2c: E2 08 00 6E 24 80 13 01 00 00 00 00 00 0F [09:50:05]Write i2c OK [09:50:05]MH_I2C_Read... [09:50:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:05]Read from MH i2c: E2 [09:50:05]MH_I2C_Read... [09:50:05]Read from MH i2c: E2 0E 00 [09:50:05]MH_I2C_Read... [09:50:05]Read from MH i2c: E2 0E 00 6E 24 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 E8 [09:50:05]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [09:50:05]wFMCommunicate OK [09:50:05]SAM_PROTO_GetShiftState done [09:50:05]FM_GetShiftState done [09:50:05]req_shift_opened done [09:50:05]requested_item shift.open_date is exist - process it [09:50:05]req_shift_open_date [09:50:05]req_shift_open_date done [09:50:05]produce_requested_data done [09:50:05]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165181,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [09:50:05]process_action_free close_receipt [09:50:05]json_value_free [09:50:05]json_value_free done [09:50:05]process_json_proto returns [09:50:05]Send response to host [09:50:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165181,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [09:50:05]free response buf [09:50:05]execute_script done [09:50:05]execute_script returns [09:50:05]free content buf [09:50:05]Sock 9.Close socket [09:50:05]Sock 9.Thread stoped [09:50:09]OFD Sender: No OFD packet to send [09:50:14]OFD Sender: No OFD packet to send [09:50:19]OFD Sender: No OFD packet to send [09:50:24]OFD Sender: No OFD packet to send [09:50:29]OFD Sender: No OFD packet to send [09:50:34]OFD Sender: No OFD packet to send [09:50:39]OFD Sender: No OFD packet to send [09:50:44]OFD Sender: No OFD packet to send [09:50:49]OFD Sender: No OFD packet to send [09:50:54]OFD Sender: No OFD packet to send [09:50:59]OFD Sender: No OFD packet to send [09:51:03]accept exits with 7 [09:51:03]New connection [09:51:03]New thread 3066928484 created [09:51:03]Thread 3066785124 joined [09:51:03]Waiting for new connection... [09:51:03] Sock 7.Parse request [09:51:03]Sock 7.Check first char [09:51:03]Sock 7.First char is OK [09:51:03]request: POST /json_proto HTTP/1.0 [09:51:03]Method: POST [09:51:03]URL: /json_proto [09:51:03]Method is POST - this is cgi request [09:51:03]url: /json_proto [09:51:03]query_string will be loaded in cgi processing [09:51:03]execute_cgi json_proto POST (null) [09:51:03]execute_cgi path=json_proto method=POST [09:51:03]POST find Content-Length [09:51:03]Host: 172.17.56.4:8080 [09:51:03]Content-Length: 677 [09:51:03]Content-Type: application/json [09:51:03] [09:51:03]POST finish read [09:51:03]Found Content-Length = 677 [09:51:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459284", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 8.360, "sum" : 550.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:03]execute_script... [09:51: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)459284", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 8.360, "sum" : 550.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:03]POST & json_proto [09:51:03]process_json_proto [09:51:03]json parsed OK: [09:51:03]protocol is kg_v1.0 [09:51:03]action value=close_receipt [09:51:03]process_action close_receipt [09:51:03]cmd_close_receipt [09:51:03]MH_GetDate [09:51:03]Write to MH i2c: F0 00 00 6F 24 82 [09:51:03]Write i2c OK [09:51:03]MH_I2C_Read... [09:51:03]Read from MH i2c: F0 [09:51:03]MH_I2C_Read... [09:51:03]Read from MH i2c: F0 09 00 [09:51:03]MH_I2C_Read... [09:51:03]Read from MH i2c: F0 09 00 6F 24 00 0C F1 94 66 C9 DC B2 64 3D [09:51:03]GetLastDocTimeStamp 1721037006 [09:51:03]current date 1721037068 [09:51:03]FM_GetShiftState [09:51:03]SAM_PROTO_GetShiftState [09:51:03]wFMCommunicate request_size=4 [09:51:03]MH_SAM_APDU [09:51:03]CAPDU: 80 13 01 00 [09:51:03]Write to MH i2c: E2 08 00 70 24 80 13 01 00 00 00 00 00 11 [09:51:03]Write i2c OK [09:51:03]MH_I2C_Read... [09:51:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:03]Read from MH i2c: E2 [09:51:03]MH_I2C_Read... [09:51:03]Read from MH i2c: E2 0E 00 [09:51:03]MH_I2C_Read... [09:51:03]Read from MH i2c: E2 0E 00 70 24 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 EA [09:51:03]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [09:51:03]wFMCommunicate OK [09:51:03]SAM_PROTO_GetShiftState done [09:51:03]FM_GetShiftState done [09:51:03]opened in 1721003876 [09:51:03]opened+sec_in_day 1721090276 [09:51:03]quantity*price = 55008 [09:51:03]sum+1 = 55010 [09:51:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 550.00 Внесено: 550.00 СДАЧА: 0.00 НСП 1% : 4.87 НДС 12% : 58.42 Наличными: 550.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 55 15.07.2024 09:51 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165182 ФПД: 48613651182836 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T095108&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165182&fm=48613651182836&tin=02508201610067®Number=0000000000090829&sum=55000 [09:51:04]StoreToDocumentArchive [09:51:04]shift 448 fd 165182 [09:51:04]save to /storage/0448/doc_00165182 [09:51:04]save last doc name /storage/0448/doc_00165182 to /storage/kkm_last_doc_name [09:51:04]save OK [09:51:04]Clear old archive folders... [09:51:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:51:04]tlvbuf is 013DC930 [09:51:04]SAM_PROTO_ClearQueue [09:51:04]wFMCommunicate request_size=4 [09:51:04]MH_SAM_APDU [09:51:04]CAPDU: 80 09 00 00 [09:51:04]Write to MH i2c: E2 08 00 7D 24 80 09 00 00 00 00 00 00 13 [09:51:04]Write i2c OK [09:51:04]MH_I2C_Read... [09:51:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:51:04]Read from MH i2c: E2 [09:51:04]MH_I2C_Read... [09:51:04]Read from MH i2c: E2 03 00 [09:51:04]MH_I2C_Read... [09:51:04]Read from MH i2c: E2 03 00 7D 24 00 90 00 15 [09:51:04]RAPDU: 90 00 [09:51:04]wFMCommunicate OK [09:51:04]SAM_PROTO_ClearQueue done [09:51:04]KKMCreateOFDPacket [09:51:04]OFDProtocolAddRootSTLVToBuf [09:51:04]FM_MakeSignedData [09:51:04]FM_MakeSignedData [09:51:04]SAM_PROTO_SignData [09:51:04]wFMCommunicate request_size=4 [09:51:04]MH_SAM_APDU [09:51:04]CAPDU: 80 0D 01 02 [09:51:04]Write to MH i2c: E2 08 00 7E 24 80 0D 01 02 00 00 00 00 1B [09:51:04]Write i2c OK [09:51:04]MH_I2C_Read... [09:51:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:51:04]Read from MH i2c: E2 [09:51:04]MH_I2C_Read... [09:51:04]Read from MH i2c: E2 03 00 [09:51:04]MH_I2C_Read... [09:51:04]Read from MH i2c: E2 03 00 7E 24 00 90 00 16 [09:51:04]RAPDU: 90 00 [09:51:04]wFMCommunicate OK [09:51:04]wFMCommunicate request_size=255 [09:51:04]MH_SAM_APDU [09:51: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 A8 20 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E1 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 0C F1 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3E 85 02 00 35 04 06 00 2C [09:51:04]Write to MH i2c: E2 02 01 7F 24 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 A8 20 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E1 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 0C F1 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3E 85 02 00 35 04 06 00 2C 00 00 83 [09:51:04]Write i2c OK [09:51:04]MH_I2C_Read... [09:51:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:05]Read from MH i2c: E2 [09:51:05]MH_I2C_Read... [09:51:05]Read from MH i2c: E2 03 00 [09:51:05]MH_I2C_Read... [09:51:05]Read from MH i2c: E2 03 00 7F 24 00 90 00 17 [09:51:05]RAPDU: 90 00 [09:51:05]wFMCommunicate OK [09:51:05]wFMCommunicate request_size=10 [09:51:05]MH_SAM_APDU [09:51:05]CAPDU: 80 0D 02 02 05 36 BF 68 F4 F4 [09:51:05]Write to MH i2c: E2 0D 00 80 24 80 0D 02 02 05 00 36 BF 68 F4 F4 00 00 6D [09:51:05]Write i2c OK [09:51:05]MH_I2C_Read... [09:51:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:05]Read from MH i2c: E2 [09:51:05]MH_I2C_Read... [09:51:05]Read from MH i2c: E2 03 00 [09:51:05]MH_I2C_Read... [09:51:05]Read from MH i2c: E2 03 00 80 24 00 90 00 18 [09:51:05]RAPDU: 90 00 [09:51:05]wFMCommunicate OK [09:51:05]wFMCommunicate request_size=4 [09:51:05]MH_SAM_APDU [09:51:05]CAPDU: 80 0D 03 02 [09:51:05]Write to MH i2c: E2 08 00 81 24 80 0D 03 02 00 00 00 00 20 [09:51:05]Write i2c OK [09:51:05]MH_I2C_Read... [09:51:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:51:05]Read from MH i2c: E2 [09:51:05]MH_I2C_Read... [09:51:05]Read from MH i2c: E2 0B 00 [09:51:05]MH_I2C_Read... [09:51:05]Read from MH i2c: E2 0B 00 81 24 00 BE E7 58 A2 D4 17 ED 14 90 00 AC [09:51:05]RAPDU: BE E7 58 A2 D4 17 ED 14 90 00 [09:51:05]wFMCommunicate OK [09:51:05]SAM_PROTO_SignData done [09:51:05]FM_MakeSignedData done [09:51:05]CreateOFDProtocolMessage [09:51:05]wFMCommunicate request_size=4 [09:51:05]MH_SAM_APDU [09:51:05]CAPDU: 80 11 00 00 [09:51:05]Write to MH i2c: E2 08 00 82 24 80 11 00 00 00 00 00 00 20 [09:51:05]Write i2c OK [09:51:05]MH_I2C_Read... [09:51:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:05]Read from MH i2c: E2 [09:51:05]MH_I2C_Read... [09:51:05]Read from MH i2c: E2 17 00 [09:51:05]MH_I2C_Read... [09:51:05]Read from MH i2c: E2 17 00 82 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 76 [09:51:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:51:05]wFMCommunicate OK [09:51:05]CreateOFDProtocolMessage done [09:51:05]OFDSenderStorePacket 165182 [09:51:05]StoreOFDPacket docnum=165182 [09:51:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 5A E1 07 01 47 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 20 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E1 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 0C F1 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3E 85 02 00 35 04 06 00 2C 36 BF 68 F4 F4 BE E7 58 A2 D4 17 ED 14 [09:51:05]CheckFolder [09:51:05]dirname=/storage/ofd_packets [09:51:05]CheckFolder done [09:51:05]ProducePacketName [09:51:05]name=ofd_packets/00165182 [09:51:05]NVStorageSaveData ofd_packets/00165182 [09:51:05]File name is /storage/ofd_packets/00165182 [09:51:05]Write 301 bytes [09:51:05]NVStorageSaveData done [09:51:05]OFDSenderStorePacket done [09:51:05]KKMCreateOFDPacket done [09:51:05]NVStorageSaveData kkm_last_timestamp [09:51:05]File name is /storage/kkm_last_timestamp [09:51:05]Write 4 bytes [09:51:05]NVStorageSaveData done [09:51:05]ExternCall_PrintAddStr [09:51:05]wPrintStart [09:51:05]Write to MH i2c: 01 00 00 83 24 A7 [09:51:05]Write i2c OK [09:51:05]MH_I2C_Read... [09:51:05]Read from MH i2c: 01 [09:51:05]MH_I2C_Read... [09:51:05]Read from MH i2c: 01 07 00 [09:51:05]MH_I2C_Read... [09:51:05]Read from MH i2c: 01 07 00 83 24 00 00 00 00 00 FF 0F BC [09:51:05]RasterBufferAndPrint [09:51:05]line Счет N : (1)459284 [09:51:05]line ИНН: 02508201610067 [09:51:05]line Контрольно-Кассовый Чек [09:51:05]line ПРОДАЖА [09:51:05]line ТРК (МРК, ГНК) : 12 [09:51:05]line Товар: 2710124130 [09:51:05]line Аи-92-К-5 [09:51:05]line 8.360 * 65.80 [09:51:05]line = 550.09 [09:51:05]line НДС 12% НСП 1% [09:51:05]line > о реализуемом товаре [09:51:05]line ОКРУГЛЕНИЕ: -0.09 [09:51:05]line ИТОГО: 550.00 [09:51:05]line Внесено: 550.00 [09:51:05]line СДАЧА: 0.00 [09:51:05]line НСП 1% : 4.87 [09:51:05]line НДС 12% : 58.42 [09:51:05]line Наличными: 550.00 [09:51:05]line Безнал.: 0.00 [09:51:05]line Место: АЗС № 72 "Партнер Нефть" [09:51:05]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:51:05]line СНО: Общий режим [09:51:05]line Чек 55 15.07.2024 09:51 [09:51:05]line Смена: 448 ФФД: 1.0 [09:51:05]line ЗНМ: 0300000160 [09:51:05]line РНМ: 0000000000090829 [09:51:05]line Версия ККМ: 001 [09:51:05]line ФМ: 0000000000874718 [09:51:05]line ФД: 165182 [09:51:05]line ФПД: 48613651182836 [09:51:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T095108&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165182&fm=48613651182836&tin=02508201610067®Number=0000000000090829&sum=55000 [09:51:05]OFD Sender: Processing packet 165182 [packets to send 106, broken 105] [09:51:05]ProducePacketName [09:51:05]name=ofd_packets/00165182 [09:51:05]OFD Sender: To server: pG, [09:51:05]CommunicateWithHost lk.salyk.kg:30040 [09:51:05]ConnectInit lk.salyk.kg [09:51:05]written 0, free lines is 4095 [09:51:05]Connected sock=10 [09:51: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 37 31 38 0F 01 00 00 5A E1 07 01 47 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 20 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E1 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 0C F1 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3E 85 02 00 35 04 06 00 2C 36 BF 68 F4 F4 BE E7 58 A2 D4 17 ED 14 [09:51:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 9C 06 47 00 E7 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 37 31 38 10 04 04 00 3E 85 02 00 F4 03 04 00 97 97 94 66 B6 04 01 00 00 B7 68 8A BF F4 9A 28 22 [09:51:05]CommunicateWithHost err = 0 [09:51:05]CheckOFDResponse [09:51:05]1017 (14) - 77093643461234 [09:51:05]1041 (16) - 0000000000874718 [09:51:05]1040 (4) - 165182 [09:51:05]1012 (4) - 15.07.2024 03:29 [09:51:05]1206 (1) - 0 [09:51:05]OFD Sender: Remove packet 165182 [09:51:05]ProducePacketName [09:51:05]name=ofd_packets/00165182 [09:51:05]NVStorageDeleteData [09:51:06]Write to MH i2c: 01 00 00 AD 24 D1 [09:51:06]Write i2c OK [09:51:06]MH_I2C_Read... [09:51:06]Read from MH i2c: 01 [09:51:06]MH_I2C_Read... [09:51:06]Read from MH i2c: 01 07 00 [09:51:06]MH_I2C_Read... [09:51:06]Read from MH i2c: 01 07 00 AD 24 00 00 00 00 00 F0 0C D4 [09:51:06]RasterBufferAndPrint [09:51:06]line [09:51:06]line [09:51:06]line [09:51:06]line [09:51:06]line [09:51:06]written 0, free lines is 3319 [09:51:06]MH_Cut [09:51:06]Write to MH i2c: D1 01 00 B4 24 01 AA [09:51:06]Write i2c OK [09:51:06]MH_I2C_Read... [09:51:06]Read from MH i2c: D1 [09:51:06]MH_I2C_Read... [09:51:06]Read from MH i2c: D1 01 00 [09:51:06]MH_I2C_Read... [09:51:06]Read from MH i2c: D1 01 00 B4 24 00 A9 [09:51:06]Write to MH i2c: 01 00 00 B5 24 D9 [09:51:06]Write i2c OK [09:51:06]MH_I2C_Read... [09:51:06]OFD Sender: No OFD packet to send [09:51:06]*** Cut start [09:51:06]*** Partial cut [09:51:06]*** CUTSNS_PIN = 1 [09:51:06]*** CUTSNS_PIN = 0 [09:51:06]*** Brake cut motor [09:51:07]Read from MH i2c: 01 [09:51:07]MH_I2C_Read... [09:51:07]*** Stop cut motor [09:51:07]*** Cut end [09:51:07]Read from MH i2c: 01 07 00 [09:51:07]MH_I2C_Read... [09:51:07]Read from MH i2c: 01 07 00 B5 24 00 00 00 00 00 FF 0F EE [09:51:07]process_action close_receipt done [09:51:07]requested_data is exist [09:51:07]produce_requested_data [09:51:07]requested_item fm.sn is exist - process it [09:51:07]wFMCommunicate request_size=4 [09:51:07]MH_SAM_APDU [09:51:07]CAPDU: 80 11 00 00 [09:51:07]Write to MH i2c: E2 08 00 B6 24 80 11 00 00 00 00 00 00 54 [09:51:07]Write i2c OK [09:51:07]MH_I2C_Read... [09:51:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:07]Read from MH i2c: E2 [09:51:07]MH_I2C_Read... [09:51:07]Read from MH i2c: E2 17 00 [09:51:07]MH_I2C_Read... [09:51:07]Read from MH i2c: E2 17 00 B6 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AA [09:51:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:51:07]wFMCommunicate OK [09:51:07]requested_item fd.num is exist - process it [09:51:07]SAM_PROTO_GetFieldsCounters [09:51:07]wFMCommunicate request_size=4 [09:51:07]MH_SAM_APDU [09:51:07]CAPDU: 80 13 00 00 [09:51:07]Write to MH i2c: E2 08 00 B7 24 80 13 00 00 00 00 00 00 57 [09:51:07]Write i2c OK [09:51:07]MH_I2C_Read... [09:51:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:51:07]Read from MH i2c: E2 [09:51:07]MH_I2C_Read... [09:51:07]Read from MH i2c: E2 62 00 [09:51:07]MH_I2C_Read... [09:51:07]Read from MH i2c: E2 62 00 B7 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3E 85 02 00 0E 04 04 00 C0 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 A9 [09:51:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3E 85 02 00 0E 04 04 00 C0 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 [09:51:07]wFMCommunicate OK [09:51:07]SAM_PROTO_GetFieldsCounters done [09:51:07]requested_item shift.num is exist - process it [09:51:07]requested_item shift.opened is exist - process it [09:51:07]req_shift_opened [09:51:07]FM_GetShiftState [09:51:07]SAM_PROTO_GetShiftState [09:51:07]wFMCommunicate request_size=4 [09:51:07]MH_SAM_APDU [09:51:07]CAPDU: 80 13 01 00 [09:51:07]Write to MH i2c: E2 08 00 B8 24 80 13 01 00 00 00 00 00 59 [09:51:07]Write i2c OK [09:51:07]MH_I2C_Read... [09:51:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:07]Read from MH i2c: E2 [09:51:07]MH_I2C_Read... [09:51:07]Read from MH i2c: E2 0E 00 [09:51:07]MH_I2C_Read... [09:51:07]Read from MH i2c: E2 0E 00 B8 24 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 32 [09:51:07]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [09:51:07]wFMCommunicate OK [09:51:07]SAM_PROTO_GetShiftState done [09:51:07]FM_GetShiftState done [09:51:07]req_shift_opened done [09:51:07]requested_item shift.open_date is exist - process it [09:51:07]req_shift_open_date [09:51:07]req_shift_open_date done [09:51:07]produce_requested_data done [09:51:07]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165182,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [09:51:07]process_action_free close_receipt [09:51:07]json_value_free [09:51:07]json_value_free done [09:51:07]process_json_proto returns [09:51:07]Send response to host [09:51:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165182,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [09:51:07]free response buf [09:51:07]execute_script done [09:51:07]execute_script returns [09:51:07]free content buf [09:51:07]Sock 7.Close socket [09:51:07]Sock 7.Thread stoped [09:51:11]OFD Sender: No OFD packet to send [09:51:16]OFD Sender: No OFD packet to send [09:51:21]OFD Sender: No OFD packet to send [09:51:26]OFD Sender: No OFD packet to send [09:51:31]OFD Sender: No OFD packet to send [09:51:36]OFD Sender: No OFD packet to send [09:51:41]OFD Sender: No OFD packet to send [09:51:46]OFD Sender: No OFD packet to send [09:51:51]OFD Sender: No OFD packet to send [09:51:55]accept exits with 9 [09:51:55]New connection [09:51:55]New thread 3066785124 created [09:51:55]Thread 3066928484 joined [09:51:55]Waiting for new connection... [09:51:55] Sock 9.Parse request [09:51:55]Sock 9.Check first char [09:51:55]Sock 9.First char is OK [09:51:55]request: POST /json_proto HTTP/1.0 [09:51:55]Method: POST [09:51:55]URL: /json_proto [09:51:55]Method is POST - this is cgi request [09:51:55]url: /json_proto [09:51:55]query_string will be loaded in cgi processing [09:51:55]execute_cgi json_proto POST (null) [09:51:55]execute_cgi path=json_proto method=POST [09:51:55]POST find Content-Length [09:51:55]Host: 172.17.56.4:8080 [09:51:55]Content-Length: 637 [09:51:55]Content-Type: application/json [09:51:55] [09:51:55]POST finish read [09:51:55]Found Content-Length = 637 [09:51:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459285", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 10.000, "sum" : 719.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 719.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:55]execute_script... [09:51: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)459285", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 10.000, "sum" : 719.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 719.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:55]POST & json_proto [09:51:55]process_json_proto [09:51:55]json parsed OK: [09:51:55]protocol is kg_v1.0 [09:51:55]action value=close_receipt [09:51:55]process_action close_receipt [09:51:55]cmd_close_receipt [09:51:55]MH_GetDate [09:51:55]Write to MH i2c: F0 00 00 B9 24 CC [09:51:55]Write i2c OK [09:51:55]MH_I2C_Read... [09:51:55]Read from MH i2c: F0 [09:51:55]MH_I2C_Read... [09:51:55]Read from MH i2c: F0 09 00 [09:51:55]MH_I2C_Read... [09:51:55]Read from MH i2c: F0 09 00 B9 24 00 3F F1 94 66 C9 DC B2 64 BA [09:51:55]GetLastDocTimeStamp 1721037068 [09:51:55]current date 1721037119 [09:51:55]FM_GetShiftState [09:51:55]SAM_PROTO_GetShiftState [09:51:55]wFMCommunicate request_size=4 [09:51:55]MH_SAM_APDU [09:51:55]CAPDU: 80 13 01 00 [09:51:55]Write to MH i2c: E2 08 00 BA 24 80 13 01 00 00 00 00 00 5B [09:51:55]Write i2c OK [09:51:55]MH_I2C_Read... [09:51:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:55]Read from MH i2c: E2 [09:51:55]MH_I2C_Read... [09:51:55]Read from MH i2c: E2 0E 00 [09:51:55]MH_I2C_Read... [09:51:55]Read from MH i2c: E2 0E 00 BA 24 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 34 [09:51:55]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [09:51:55]wFMCommunicate OK [09:51:55]SAM_PROTO_GetShiftState done [09:51:55]FM_GetShiftState done [09:51:55]opened in 1721003876 [09:51:55]opened+sec_in_day 1721090276 [09:51:55]quantity*price = 71900 [09:51:55]sum+1 = 71901 [09:51:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 719.00 НСП 1% : 6.36 НДС 12% : 76.35 Наличными: 719.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 56 15.07.2024 09:51 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165183 ФПД: 168259685157159 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T095159&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165183&fm=168259685157159&tin=02508201610067®Number=0000000000090829&sum=71900 [09:51:56]StoreToDocumentArchive [09:51:56]shift 448 fd 165183 [09:51:56]save to /storage/0448/doc_00165183 [09:51:56]save last doc name /storage/0448/doc_00165183 to /storage/kkm_last_doc_name [09:51:56]save OK [09:51:56]Clear old archive folders... [09:51:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:51:56]tlvbuf is B6EBB830 [09:51:56]SAM_PROTO_ClearQueue [09:51:56]wFMCommunicate request_size=4 [09:51:56]MH_SAM_APDU [09:51:56]CAPDU: 80 09 00 00 [09:51:56]Write to MH i2c: E2 08 00 C7 24 80 09 00 00 00 00 00 00 5D [09:51:56]Write i2c OK [09:51:56]MH_I2C_Read... [09:51:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:51:56]Read from MH i2c: E2 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: E2 03 00 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: E2 03 00 C7 24 00 90 00 5F [09:51:56]RAPDU: 90 00 [09:51:56]wFMCommunicate OK [09:51:56]SAM_PROTO_ClearQueue done [09:51:56]KKMCreateOFDPacket [09:51:56]OFDProtocolAddRootSTLVToBuf [09:51:56]FM_MakeSignedData [09:51:56]FM_MakeSignedData [09:51:56]SAM_PROTO_SignData [09:51:56]wFMCommunicate request_size=4 [09:51:56]MH_SAM_APDU [09:51:56]CAPDU: 80 0D 01 02 [09:51:56]Write to MH i2c: E2 08 00 C8 24 80 0D 01 02 00 00 00 00 65 [09:51:56]Write i2c OK [09:51:56]MH_I2C_Read... [09:51:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:51:56]Read from MH i2c: E2 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: E2 03 00 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: E2 03 00 C8 24 00 90 00 60 [09:51:56]RAPDU: 90 00 [09:51:56]wFMCommunicate OK [09:51:56]wFMCommunicate request_size=255 [09:51:56]MH_SAM_APDU [09:51:56]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 DC 18 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 1D 00 00 00 00 07 04 06 00 DC 18 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 3F F1 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3F 85 02 00 35 04 06 00 99 08 02 C3 [09:51:56]Write to MH i2c: E2 02 01 C9 24 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 DC 18 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 1D 00 00 00 00 07 04 06 00 DC 18 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 3F F1 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3F 85 02 00 35 04 06 00 99 08 02 C3 00 00 CD [09:51:56]Write i2c OK [09:51:56]MH_I2C_Read... [09:51:56]OFD Sender: No OFD packet to send [09:51:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:56]Read from MH i2c: E2 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: E2 03 00 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: E2 03 00 C9 24 00 90 00 61 [09:51:56]RAPDU: 90 00 [09:51:56]wFMCommunicate OK [09:51:56]wFMCommunicate request_size=7 [09:51:56]MH_SAM_APDU [09:51:56]CAPDU: 80 0D 02 02 02 89 27 [09:51:56]Write to MH i2c: E2 0A 00 CA 24 80 0D 02 02 02 00 89 27 00 00 1C [09:51:56]Write i2c OK [09:51:56]MH_I2C_Read... [09:51:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:56]Read from MH i2c: E2 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: E2 03 00 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: E2 03 00 CA 24 00 90 00 62 [09:51:56]RAPDU: 90 00 [09:51:56]wFMCommunicate OK [09:51:56]wFMCommunicate request_size=4 [09:51:56]MH_SAM_APDU [09:51:56]CAPDU: 80 0D 03 02 [09:51:56]Write to MH i2c: E2 08 00 CB 24 80 0D 03 02 00 00 00 00 6A [09:51:56]Write i2c OK [09:51:56]MH_I2C_Read... [09:51:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:51:56]Read from MH i2c: E2 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: E2 0B 00 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: E2 0B 00 CB 24 00 48 B5 C4 37 16 14 8E 2E 90 00 49 [09:51:56]RAPDU: 48 B5 C4 37 16 14 8E 2E 90 00 [09:51:56]wFMCommunicate OK [09:51:56]SAM_PROTO_SignData done [09:51:56]FM_MakeSignedData done [09:51:56]CreateOFDProtocolMessage [09:51:56]wFMCommunicate request_size=4 [09:51:56]MH_SAM_APDU [09:51:56]CAPDU: 80 11 00 00 [09:51:56]Write to MH i2c: E2 08 00 CC 24 80 11 00 00 00 00 00 00 6A [09:51:56]Write i2c OK [09:51:56]MH_I2C_Read... [09:51:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:56]Read from MH i2c: E2 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: E2 17 00 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: E2 17 00 CC 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C0 [09:51:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:51:56]wFMCommunicate OK [09:51:56]CreateOFDProtocolMessage done [09:51:56]OFDSenderStorePacket 165183 [09:51:56]StoreOFDPacket docnum=165183 [09:51:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 A9 4D 04 01 FE FF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 DC 18 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 1D 00 00 00 00 07 04 06 00 DC 18 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 3F F1 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3F 85 02 00 35 04 06 00 99 08 02 C3 89 27 48 B5 C4 37 16 14 8E 2E [09:51:56]CheckFolder [09:51:56]dirname=/storage/ofd_packets [09:51:56]CheckFolder done [09:51:56]ProducePacketName [09:51:56]name=ofd_packets/00165183 [09:51:56]NVStorageSaveData ofd_packets/00165183 [09:51:56]File name is /storage/ofd_packets/00165183 [09:51:56]Write 298 bytes [09:51:56]NVStorageSaveData done [09:51:56]OFDSenderStorePacket done [09:51:56]KKMCreateOFDPacket done [09:51:56]NVStorageSaveData kkm_last_timestamp [09:51:56]File name is /storage/kkm_last_timestamp [09:51:56]Write 4 bytes [09:51:56]NVStorageSaveData done [09:51:56]ExternCall_PrintAddStr [09:51:56]wPrintStart [09:51:56]Write to MH i2c: 01 00 00 CD 24 F1 [09:51:56]Write i2c OK [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: 01 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: 01 07 00 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: 01 07 00 CD 24 00 00 00 00 00 FF 0F 06 [09:51:56]RasterBufferAndPrint [09:51:56]line Счет N : (1)459285 [09:51:56]line ИНН: 02508201610067 [09:51:56]line Контрольно-Кассовый Чек [09:51:56]line ПРОДАЖА [09:51:56]line ТРК (МРК, ГНК) : 21 [09:51:56]line Товар: 2710194210 [09:51:56]line ДТ-К-5 [09:51:56]line 10.000 * 71.90 [09:51:56]line = 719.00 [09:51:56]line НДС 12% НСП 1% [09:51:56]line > о реализуемом товаре [09:51:56]line ИТОГО: 719.00 [09:51:56]line НСП 1% : 6.36 [09:51:56]line НДС 12% : 76.35 [09:51:56]line Наличными: 719.00 [09:51:56]line Безнал.: 0.00 [09:51:56]line Место: АЗС № 72 "Партнер Нефть" [09:51:56]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:51:56]line СНО: Общий режим [09:51:56]line Чек 56 15.07.2024 09:51 [09:51:56]line Смена: 448 ФФД: 1.0 [09:51:56]line ЗНМ: 0300000160 [09:51:56]line РНМ: 0000000000090829 [09:51:56]line Версия ККМ: 001 [09:51:56]line ФМ: 0000000000874718 [09:51:56]line ФД: 165183 [09:51:56]line ФПД: 168259685157159 [09:51:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T095159&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165183&fm=168259685157159&tin=02508201610067®Number=0000000000090829&sum=71900 [09:51:57]OFD Sender: Processing packet 165183 [packets to send 106, broken 105] [09:51:57]ProducePacketName [09:51:57]name=ofd_packets/00165183 [09:51:57]OFD Sender: To server: pG, [09:51:57]CommunicateWithHost lk.salyk.kg:30040 [09:51:57]ConnectInit lk.salyk.kg [09:51:57]written 0, free lines is 4095 [09:51:57]Connected sock=11 [09:51: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 37 31 38 0C 01 00 00 A9 4D 04 01 FE FF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 DC 18 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 1D 00 00 00 00 07 04 06 00 DC 18 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 3F F1 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3F 85 02 00 35 04 06 00 99 08 02 C3 89 27 48 B5 C4 37 16 14 8E 2E [09:51:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 1E 87 47 00 3C 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3F 85 02 00 F4 03 04 00 CA 97 94 66 B6 04 01 00 00 33 D0 A6 20 2C 5A 56 7B [09:51:57]CommunicateWithHost err = 0 [09:51:57]CheckOFDResponse [09:51:57]1017 (14) - 77093643461234 [09:51:57]1041 (16) - 0000000000874718 [09:51:57]1040 (4) - 165183 [09:51:57]1012 (4) - 15.07.2024 03:30 [09:51:57]1206 (1) - 0 [09:51:57]OFD Sender: Remove packet 165183 [09:51:57]ProducePacketName [09:51:57]name=ofd_packets/00165183 [09:51:57]NVStorageDeleteData [09:51:57]Write to MH i2c: 01 00 00 F4 24 18 [09:51:57]Write i2c OK [09:51:57]MH_I2C_Read... [09:51:57]Read from MH i2c: 01 [09:51:57]MH_I2C_Read... [09:51:57]Read from MH i2c: 01 07 00 [09:51:57]MH_I2C_Read... [09:51:57]Read from MH i2c: 01 07 00 F4 24 00 00 00 00 00 23 0D 4F [09:51:57]RasterBufferAndPrint [09:51:57]line [09:51:57]line [09:51:57]line [09:51:57]line [09:51:57]line [09:51:57]written 0, free lines is 3370 [09:51:57]MH_Cut [09:51:57]Write to MH i2c: D1 01 00 FB 24 01 F1 [09:51:57]Write i2c OK [09:51:57]MH_I2C_Read... [09:51:57]Read from MH i2c: D1 [09:51:57]MH_I2C_Read... [09:51:57]Read from MH i2c: D1 01 00 [09:51:57]MH_I2C_Read... [09:51:57]Read from MH i2c: D1 01 00 FB 24 00 F0 [09:51:57]Write to MH i2c: 01 00 00 FC 24 20 [09:51:57]Write i2c OK [09:51:57]MH_I2C_Read... [09:51:58]OFD Sender: No OFD packet to send [09:51:58]*** Cut start [09:51:58]*** Partial cut [09:51:58]*** CUTSNS_PIN = 1 [09:51:58]*** CUTSNS_PIN = 0 [09:51:58]*** Brake cut motor [09:51:58]Read from MH i2c: 01 [09:51:58]MH_I2C_Read... [09:51:58]*** Stop cut motor [09:51:58]*** Cut end [09:51:58]Read from MH i2c: 01 07 00 [09:51:58]MH_I2C_Read... [09:51:58]Read from MH i2c: 01 07 00 FC 24 00 00 00 00 00 FF 0F 35 [09:51:58]process_action close_receipt done [09:51:58]requested_data is exist [09:51:58]produce_requested_data [09:51:58]requested_item fm.sn is exist - process it [09:51:58]wFMCommunicate request_size=4 [09:51:58]MH_SAM_APDU [09:51:58]CAPDU: 80 11 00 00 [09:51:58]Write to MH i2c: E2 08 00 FD 24 80 11 00 00 00 00 00 00 9B [09:51:58]Write i2c OK [09:51:58]MH_I2C_Read... [09:51:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:58]Read from MH i2c: E2 [09:51:58]MH_I2C_Read... [09:51:58]Read from MH i2c: E2 17 00 [09:51:58]MH_I2C_Read... [09:51:58]Read from MH i2c: E2 17 00 FD 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F1 [09:51:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:51:58]wFMCommunicate OK [09:51:58]requested_item fd.num is exist - process it [09:51:58]SAM_PROTO_GetFieldsCounters [09:51:58]wFMCommunicate request_size=4 [09:51:58]MH_SAM_APDU [09:51:58]CAPDU: 80 13 00 00 [09:51:58]Write to MH i2c: E2 08 00 FE 24 80 13 00 00 00 00 00 00 9E [09:51:58]Write i2c OK [09:51:58]MH_I2C_Read... [09:51:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:51:59]Read from MH i2c: E2 [09:51:59]MH_I2C_Read... [09:51:59]Read from MH i2c: E2 62 00 [09:51:59]MH_I2C_Read... [09:51:59]Read from MH i2c: E2 62 00 FE 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3F 85 02 00 0E 04 04 00 C0 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 F4 [09:51: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3F 85 02 00 0E 04 04 00 C0 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 [09:51:59]wFMCommunicate OK [09:51:59]SAM_PROTO_GetFieldsCounters done [09:51:59]requested_item shift.num is exist - process it [09:51:59]requested_item shift.opened is exist - process it [09:51:59]req_shift_opened [09:51:59]FM_GetShiftState [09:51:59]SAM_PROTO_GetShiftState [09:51:59]wFMCommunicate request_size=4 [09:51:59]MH_SAM_APDU [09:51:59]CAPDU: 80 13 01 00 [09:51:59]Write to MH i2c: E2 08 00 FF 24 80 13 01 00 00 00 00 00 A0 [09:51:59]Write i2c OK [09:51:59]MH_I2C_Read... [09:51:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:59]Read from MH i2c: E2 [09:51:59]MH_I2C_Read... [09:51:59]Read from MH i2c: E2 0E 00 [09:51:59]MH_I2C_Read... [09:51:59]Read from MH i2c: E2 0E 00 FF 24 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 79 [09:51:59]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [09:51:59]wFMCommunicate OK [09:51:59]SAM_PROTO_GetShiftState done [09:51:59]FM_GetShiftState done [09:51:59]req_shift_opened done [09:51:59]requested_item shift.open_date is exist - process it [09:51:59]req_shift_open_date [09:51:59]req_shift_open_date done [09:51:59]produce_requested_data done [09:51:59]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165183,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [09:51:59]process_action_free close_receipt [09:51:59]json_value_free [09:51:59]json_value_free done [09:51:59]process_json_proto returns [09:51:59]Send response to host [09:51:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165183,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [09:51:59]free response buf [09:51:59]execute_script done [09:51:59]execute_script returns [09:51:59]free content buf [09:51:59]Sock 9.Close socket [09:51:59]Sock 9.Thread stoped [09:52:03]OFD Sender: No OFD packet to send [09:52:08]OFD Sender: No OFD packet to send [09:52:13]OFD Sender: No OFD packet to send [09:52:18]OFD Sender: No OFD packet to send [09:52:23]OFD Sender: No OFD packet to send [09:52:27]accept exits with 7 [09:52:27]New connection [09:52:27]New thread 3066928484 created [09:52:27]Thread 3066785124 joined [09:52:27]Waiting for new connection... [09:52:27] Sock 7.Parse request [09:52:27]Sock 7.Check first char [09:52:27]Sock 7.First char is OK [09:52:27]request: POST /json_proto HTTP/1.0 [09:52:27]Method: POST [09:52:27]URL: /json_proto [09:52:27]Method is POST - this is cgi request [09:52:27]url: /json_proto [09:52:27]query_string will be loaded in cgi processing [09:52:27]execute_cgi json_proto POST (null) [09:52:27]execute_cgi path=json_proto method=POST [09:52:27]POST find Content-Length [09:52:27]Host: 172.17.56.4:8080 [09:52:27]Content-Length: 677 [09:52:27]Content-Type: application/json [09:52:27] [09:52:27]POST finish read [09:52:27]Found Content-Length = 677 [09:52:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459286", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.280, "sum" : 281.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 281.00, "total" : 281.00, "payments": [ { "type": 0, "sum" : 281.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:27]execute_script... [09:52:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459286", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.280, "sum" : 281.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 281.00, "total" : 281.00, "payments": [ { "type": 0, "sum" : 281.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:27]POST & json_proto [09:52:27]process_json_proto [09:52:27]json parsed OK: [09:52:27]protocol is kg_v1.0 [09:52:27]action value=close_receipt [09:52:27]process_action close_receipt [09:52:27]cmd_close_receipt [09:52:27]MH_GetDate [09:52:27]Write to MH i2c: F0 00 00 00 25 14 [09:52:27]Write i2c OK [09:52:27]MH_I2C_Read... [09:52:27]Read from MH i2c: F0 [09:52:27]MH_I2C_Read... [09:52:27]Read from MH i2c: F0 09 00 [09:52:27]MH_I2C_Read... [09:52:27]Read from MH i2c: F0 09 00 00 25 00 60 F1 94 66 C9 DC B2 64 23 [09:52:27]GetLastDocTimeStamp 1721037119 [09:52:27]current date 1721037152 [09:52:27]FM_GetShiftState [09:52:27]SAM_PROTO_GetShiftState [09:52:27]wFMCommunicate request_size=4 [09:52:27]MH_SAM_APDU [09:52:27]CAPDU: 80 13 01 00 [09:52:27]Write to MH i2c: E2 08 00 01 25 80 13 01 00 00 00 00 00 A3 [09:52:27]Write i2c OK [09:52:27]MH_I2C_Read... [09:52:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:27]Read from MH i2c: E2 [09:52:27]MH_I2C_Read... [09:52:27]Read from MH i2c: E2 0E 00 [09:52:27]MH_I2C_Read... [09:52:27]Read from MH i2c: E2 0E 00 01 25 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 7C [09:52:27]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [09:52:27]wFMCommunicate OK [09:52:27]SAM_PROTO_GetShiftState done [09:52:27]FM_GetShiftState done [09:52:27]opened in 1721003876 [09:52:27]opened+sec_in_day 1721090276 [09:52:27]quantity*price = 28162 [09:52:27]sum+1 = 28163 [09:52:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 281.00 Внесено: 281.00 СДАЧА: 0.00 НСП 1% : 2.49 НДС 12% : 29.91 Наличными: 281.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 57 15.07.2024 09:52 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165184 ФПД: 112988310129781 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T095232&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165184&fm=112988310129781&tin=02508201610067®Number=0000000000090829&sum=28100 [09:52:28]StoreToDocumentArchive [09:52:28]shift 448 fd 165184 [09:52:28]save to /storage/0448/doc_00165184 [09:52:28]save last doc name /storage/0448/doc_00165184 to /storage/kkm_last_doc_name [09:52:28]save OK [09:52:28]Clear old archive folders... [09:52:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:52:28]tlvbuf is 013B4730 [09:52:28]SAM_PROTO_ClearQueue [09:52:28]wFMCommunicate request_size=4 [09:52:28]MH_SAM_APDU [09:52:28]CAPDU: 80 09 00 00 [09:52:28]Write to MH i2c: E2 08 00 0E 25 80 09 00 00 00 00 00 00 A5 [09:52:28]Write i2c OK [09:52:28]MH_I2C_Read... [09:52:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:52:28]Read from MH i2c: E2 [09:52:28]MH_I2C_Read... [09:52:28]Read from MH i2c: E2 03 00 [09:52:28]MH_I2C_Read... [09:52:28]Read from MH i2c: E2 03 00 0E 25 00 90 00 A7 [09:52:28]RAPDU: 90 00 [09:52:28]wFMCommunicate OK [09:52:28]SAM_PROTO_ClearQueue done [09:52:28]KKMCreateOFDPacket [09:52:28]OFDProtocolAddRootSTLVToBuf [09:52:28]FM_MakeSignedData [09:52:28]FM_MakeSignedData [09:52:28]SAM_PROTO_SignData [09:52:28]wFMCommunicate request_size=4 [09:52:28]MH_SAM_APDU [09:52:28]CAPDU: 80 0D 01 02 [09:52:28]Write to MH i2c: E2 08 00 0F 25 80 0D 01 02 00 00 00 00 AD [09:52:28]Write i2c OK [09:52:28]MH_I2C_Read... [09:52:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:52:28]Read from MH i2c: E2 [09:52:28]MH_I2C_Read... [09:52:28]Read from MH i2c: E2 03 00 [09:52:28]MH_I2C_Read... [09:52:28]Read from MH i2c: E2 03 00 0F 25 00 90 00 A8 [09:52:28]RAPDU: 90 00 [09:52:28]wFMCommunicate OK [09:52:28]wFMCommunicate request_size=255 [09:52:28]MH_SAM_APDU [09:52:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 10 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 02 6E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 0B 00 00 00 00 07 04 06 00 C4 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 60 F1 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 40 85 02 00 35 04 06 00 66 [09:52:28]Write to MH i2c: E2 02 01 10 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 10 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 02 6E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 0B 00 00 00 00 07 04 06 00 C4 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 60 F1 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 40 85 02 00 35 04 06 00 66 00 00 49 [09:52:28]Write i2c OK [09:52:28]MH_I2C_Read... [09:52:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:29]Read from MH i2c: E2 [09:52:29]MH_I2C_Read... [09:52:29]Read from MH i2c: E2 03 00 [09:52:29]MH_I2C_Read... [09:52:29]Read from MH i2c: E2 03 00 10 25 00 90 00 A9 [09:52:29]RAPDU: 90 00 [09:52:29]wFMCommunicate OK [09:52:29]wFMCommunicate request_size=10 [09:52:29]MH_SAM_APDU [09:52:29]CAPDU: 80 0D 02 02 05 C3 24 16 CC 75 [09:52:29]Write to MH i2c: E2 0D 00 11 25 80 0D 02 02 05 00 C3 24 16 CC 75 00 00 F8 [09:52:29]Write i2c OK [09:52:29]MH_I2C_Read... [09:52:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:29]Read from MH i2c: E2 [09:52:29]MH_I2C_Read... [09:52:29]Read from MH i2c: E2 03 00 [09:52:29]MH_I2C_Read... [09:52:29]Read from MH i2c: E2 03 00 11 25 00 90 00 AA [09:52:29]RAPDU: 90 00 [09:52:29]wFMCommunicate OK [09:52:29]wFMCommunicate request_size=4 [09:52:29]MH_SAM_APDU [09:52:29]CAPDU: 80 0D 03 02 [09:52:29]Write to MH i2c: E2 08 00 12 25 80 0D 03 02 00 00 00 00 B2 [09:52:29]Write i2c OK [09:52:29]MH_I2C_Read... [09:52:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:52:29]Read from MH i2c: E2 [09:52:29]MH_I2C_Read... [09:52:29]Read from MH i2c: E2 0B 00 [09:52:29]MH_I2C_Read... [09:52:29]Read from MH i2c: E2 0B 00 12 25 00 AD D4 C3 80 97 4D 9B 01 90 00 F7 [09:52:29]RAPDU: AD D4 C3 80 97 4D 9B 01 90 00 [09:52:29]wFMCommunicate OK [09:52:29]SAM_PROTO_SignData done [09:52:29]FM_MakeSignedData done [09:52:29]CreateOFDProtocolMessage [09:52:29]wFMCommunicate request_size=4 [09:52:29]MH_SAM_APDU [09:52:29]CAPDU: 80 11 00 00 [09:52:29]Write to MH i2c: E2 08 00 13 25 80 11 00 00 00 00 00 00 B2 [09:52:29]Write i2c OK [09:52:29]MH_I2C_Read... [09:52:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:29]Read from MH i2c: E2 [09:52:29]MH_I2C_Read... [09:52:29]Read from MH i2c: E2 17 00 [09:52:29]MH_I2C_Read... [09:52:29]Read from MH i2c: E2 17 00 13 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 08 [09:52:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:52:29]wFMCommunicate OK [09:52:29]CreateOFDProtocolMessage done [09:52:29]OFDSenderStorePacket 165184 [09:52:29]StoreOFDPacket docnum=165184 [09:52:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 20 E0 07 01 DA 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 B8 10 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 02 6E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 0B 00 00 00 00 07 04 06 00 C4 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 60 F1 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 40 85 02 00 35 04 06 00 66 C3 24 16 CC 75 AD D4 C3 80 97 4D 9B 01 [09:52:29]CheckFolder [09:52:29]dirname=/storage/ofd_packets [09:52:29]CheckFolder done [09:52:29]ProducePacketName [09:52:29]name=ofd_packets/00165184 [09:52:29]NVStorageSaveData ofd_packets/00165184 [09:52:29]File name is /storage/ofd_packets/00165184 [09:52:29]Write 301 bytes [09:52:29]NVStorageSaveData done [09:52:29]OFDSenderStorePacket done [09:52:29]KKMCreateOFDPacket done [09:52:29]NVStorageSaveData kkm_last_timestamp [09:52:29]File name is /storage/kkm_last_timestamp [09:52:29]Write 4 bytes [09:52:29]NVStorageSaveData done [09:52:29]ExternCall_PrintAddStr [09:52:29]wPrintStart [09:52:29]Write to MH i2c: 01 00 00 14 25 39 [09:52:29]Write i2c OK [09:52:29]MH_I2C_Read... [09:52:29]Read from MH i2c: 01 [09:52:29]MH_I2C_Read... [09:52:29]Read from MH i2c: 01 07 00 [09:52:29]MH_I2C_Read... [09:52:29]Read from MH i2c: 01 07 00 14 25 00 00 00 00 00 FF 0F 4E [09:52:29]RasterBufferAndPrint [09:52:29]line Счет N : (1)459286 [09:52:29]line ИНН: 02508201610067 [09:52:29]line Контрольно-Кассовый Чек [09:52:29]line ПРОДАЖА [09:52:29]line ТРК (МРК, ГНК) : 22 [09:52:29]line Товар: 2710124130 [09:52:29]line Аи-92-К-5 [09:52:29]line 4.280 * 65.80 [09:52:29]line = 281.62 [09:52:29]line НДС 12% НСП 1% [09:52:29]line > о реализуемом товаре [09:52:29]line ОКРУГЛЕНИЕ: -0.62 [09:52:29]line ИТОГО: 281.00 [09:52:29]line Внесено: 281.00 [09:52:29]line СДАЧА: 0.00 [09:52:29]line НСП 1% : 2.49 [09:52:29]line НДС 12% : 29.91 [09:52:29]line Наличными: 281.00 [09:52:29]line Безнал.: 0.00 [09:52:29]line Место: АЗС № 72 "Партнер Нефть" [09:52:29]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:52:29]line СНО: Общий режим [09:52:29]line Чек 57 15.07.2024 09:52 [09:52:29]line Смена: 448 ФФД: 1.0 [09:52:29]line ЗНМ: 0300000160 [09:52:29]line РНМ: 0000000000090829 [09:52:29]line Версия ККМ: 001 [09:52:29]line ФМ: 0000000000874718 [09:52:29]line ФД: 165184 [09:52:29]line ФПД: 112988310129781 [09:52:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T095232&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165184&fm=112988310129781&tin=02508201610067®Number=0000000000090829&sum=28100 [09:52:29]OFD Sender: Processing packet 165184 [packets to send 106, broken 105] [09:52:29]ProducePacketName [09:52:29]name=ofd_packets/00165184 [09:52:29]OFD Sender: To server: pG, [09:52:29]CommunicateWithHost lk.salyk.kg:30040 [09:52:29]ConnectInit lk.salyk.kg [09:52:29]written 0, free lines is 4095 [09:52:29]Connected sock=10 [09:52:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 20 E0 07 01 DA 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 B8 10 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 02 6E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 0B 00 00 00 00 07 04 06 00 C4 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 60 F1 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 40 85 02 00 35 04 06 00 66 C3 24 16 CC 75 AD D4 C3 80 97 4D 9B 01 [09:52:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 68 A1 47 00 D8 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 40 85 02 00 F4 03 04 00 EA 97 94 66 B6 04 01 00 00 71 3B 48 8E D7 57 8B 95 [09:52:29]CommunicateWithHost err = 0 [09:52:29]CheckOFDResponse [09:52:29]1017 (14) - 77093643461234 [09:52:29]1041 (16) - 0000000000874718 [09:52:29]1040 (4) - 165184 [09:52:29]1012 (4) - 15.07.2024 03:30 [09:52:29]1206 (1) - 0 [09:52:29]OFD Sender: Remove packet 165184 [09:52:29]ProducePacketName [09:52:29]name=ofd_packets/00165184 [09:52:29]NVStorageDeleteData [09:52:29]Write to MH i2c: 01 00 00 3E 25 63 [09:52:29]Write i2c OK [09:52:29]MH_I2C_Read... [09:52:29]Read from MH i2c: 01 [09:52:29]MH_I2C_Read... [09:52:29]Read from MH i2c: 01 07 00 [09:52:29]MH_I2C_Read... [09:52:29]Read from MH i2c: 01 07 00 3E 25 00 00 00 00 00 06 0D 7D [09:52:29]RasterBufferAndPrint [09:52:29]line [09:52:29]line [09:52:29]line [09:52:29]line [09:52:29]line [09:52:29]written 0, free lines is 3340 [09:52:29]MH_Cut [09:52:29]Write to MH i2c: D1 01 00 45 25 01 3C [09:52:29]Write i2c OK [09:52:29]MH_I2C_Read... [09:52:29]Read from MH i2c: D1 [09:52:29]MH_I2C_Read... [09:52:29]Read from MH i2c: D1 01 00 [09:52:29]MH_I2C_Read... [09:52:29]Read from MH i2c: D1 01 00 45 25 00 3B [09:52:29]Write to MH i2c: 01 00 00 46 25 6B [09:52:29]Write i2c OK [09:52:29]MH_I2C_Read... [09:52:30]OFD Sender: No OFD packet to send [09:52:30]*** Cut start [09:52:30]*** Partial cut [09:52:30]*** CUTSNS_PIN = 1 [09:52:30]*** CUTSNS_PIN = 0 [09:52:30]*** Brake cut motor [09:52:31]Read from MH i2c: 01 [09:52:31]MH_I2C_Read... [09:52:31]*** Stop cut motor [09:52:31]*** Cut end [09:52:31]Read from MH i2c: 01 07 00 [09:52:31]MH_I2C_Read... [09:52:31]Read from MH i2c: 01 07 00 46 25 00 00 00 00 00 FF 0F 80 [09:52:31]process_action close_receipt done [09:52:31]requested_data is exist [09:52:31]produce_requested_data [09:52:31]requested_item fm.sn is exist - process it [09:52:31]wFMCommunicate request_size=4 [09:52:31]MH_SAM_APDU [09:52:31]CAPDU: 80 11 00 00 [09:52:31]Write to MH i2c: E2 08 00 47 25 80 11 00 00 00 00 00 00 E6 [09:52:31]Write i2c OK [09:52:31]MH_I2C_Read... [09:52:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:31]Read from MH i2c: E2 [09:52:31]MH_I2C_Read... [09:52:31]Read from MH i2c: E2 17 00 [09:52:31]MH_I2C_Read... [09:52:31]Read from MH i2c: E2 17 00 47 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3C [09:52:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:52:31]wFMCommunicate OK [09:52:31]requested_item fd.num is exist - process it [09:52:31]SAM_PROTO_GetFieldsCounters [09:52:31]wFMCommunicate request_size=4 [09:52:31]MH_SAM_APDU [09:52:31]CAPDU: 80 13 00 00 [09:52:31]Write to MH i2c: E2 08 00 48 25 80 13 00 00 00 00 00 00 E9 [09:52:31]Write i2c OK [09:52:31]MH_I2C_Read... [09:52:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:52:31]Read from MH i2c: E2 [09:52:31]MH_I2C_Read... [09:52:31]Read from MH i2c: E2 62 00 [09:52:31]MH_I2C_Read... [09:52:31]Read from MH i2c: E2 62 00 48 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 40 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [09:52:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 40 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:52:31]wFMCommunicate OK [09:52:31]SAM_PROTO_GetFieldsCounters done [09:52:31]requested_item shift.num is exist - process it [09:52:31]requested_item shift.opened is exist - process it [09:52:31]req_shift_opened [09:52:31]FM_GetShiftState [09:52:31]SAM_PROTO_GetShiftState [09:52:31]wFMCommunicate request_size=4 [09:52:31]MH_SAM_APDU [09:52:31]CAPDU: 80 13 01 00 [09:52:31]Write to MH i2c: E2 08 00 49 25 80 13 01 00 00 00 00 00 EB [09:52:31]Write i2c OK [09:52:31]MH_I2C_Read... [09:52:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:31]Read from MH i2c: E2 [09:52:31]MH_I2C_Read... [09:52:31]Read from MH i2c: E2 0E 00 [09:52:31]MH_I2C_Read... [09:52:31]Read from MH i2c: E2 0E 00 49 25 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 C4 [09:52:31]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [09:52:31]wFMCommunicate OK [09:52:31]SAM_PROTO_GetShiftState done [09:52:31]FM_GetShiftState done [09:52:31]req_shift_opened done [09:52:31]requested_item shift.open_date is exist - process it [09:52:31]req_shift_open_date [09:52:31]req_shift_open_date done [09:52:31]produce_requested_data done [09:52:31]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165184,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [09:52:31]process_action_free close_receipt [09:52:31]json_value_free [09:52:31]json_value_free done [09:52:31]process_json_proto returns [09:52:31]Send response to host [09:52:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165184,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [09:52:31]free response buf [09:52:31]execute_script done [09:52:31]execute_script returns [09:52:31]free content buf [09:52:31]Sock 7.Close socket [09:52:31]Sock 7.Thread stoped [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:12]accept exits with 9 [09:53:12]New connection [09:53:12]New thread 3066785124 created [09:53:12]Thread 3066928484 joined [09:53:12]Waiting for new connection... [09:53:12] Sock 9.Parse request [09:53:12]Sock 9.Check first char [09:53:12]Sock 9.First char is OK [09:53:12]request: POST /json_proto HTTP/1.0 [09:53:12]Method: POST [09:53:12]URL: /json_proto [09:53:12]Method is POST - this is cgi request [09:53:12]url: /json_proto [09:53:12]query_string will be loaded in cgi processing [09:53:12]execute_cgi json_proto POST (null) [09:53:12]execute_cgi path=json_proto method=POST [09:53:12]POST find Content-Length [09:53:12]Host: 172.17.56.4:8080 [09:53:12]Content-Length: 677 [09:53:12]Content-Type: application/json [09:53:12] [09:53:12]POST finish read [09:53:12]Found Content-Length = 677 [09:53:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459287", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:12]execute_script... [09:53:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459287", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:12]POST & json_proto [09:53:12]process_json_proto [09:53:12]json parsed OK: [09:53:12]protocol is kg_v1.0 [09:53:12]action value=close_receipt [09:53:12]process_action close_receipt [09:53:12]cmd_close_receipt [09:53:12]MH_GetDate [09:53:12]Write to MH i2c: F0 00 00 4A 25 5E [09:53:12]Write i2c OK [09:53:12]MH_I2C_Read... [09:53:12]Read from MH i2c: F0 [09:53:12]MH_I2C_Read... [09:53:12]Read from MH i2c: F0 09 00 [09:53:12]MH_I2C_Read... [09:53:12]Read from MH i2c: F0 09 00 4A 25 00 8C F1 94 66 C9 DC B2 64 99 [09:53:12]GetLastDocTimeStamp 1721037152 [09:53:12]current date 1721037196 [09:53:12]FM_GetShiftState [09:53:12]SAM_PROTO_GetShiftState [09:53:12]wFMCommunicate request_size=4 [09:53:12]MH_SAM_APDU [09:53:12]CAPDU: 80 13 01 00 [09:53:12]Write to MH i2c: E2 08 00 4B 25 80 13 01 00 00 00 00 00 ED [09:53:12]Write i2c OK [09:53:12]MH_I2C_Read... [09:53:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:12]Read from MH i2c: E2 [09:53:12]MH_I2C_Read... [09:53:12]Read from MH i2c: E2 0E 00 [09:53:12]MH_I2C_Read... [09:53:12]Read from MH i2c: E2 0E 00 4B 25 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 C6 [09:53:12]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [09:53:12]wFMCommunicate OK [09:53:12]SAM_PROTO_GetShiftState done [09:53:12]FM_GetShiftState done [09:53:12]opened in 1721003876 [09:53:12]opened+sec_in_day 1721090276 [09:53:12]quantity*price = 40006 [09:53:12]sum+1 = 40007 [09:53:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 58 15.07.2024 09:53 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165185 ФПД: 250506565523997 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T095316&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165185&fm=250506565523997&tin=02508201610067®Number=0000000000090829&sum=40000 [09:53:13]StoreToDocumentArchive [09:53:13]shift 448 fd 165185 [09:53:13]save to /storage/0448/doc_00165185 [09:53:13]save last doc name /storage/0448/doc_00165185 to /storage/kkm_last_doc_name [09:53:13]save OK [09:53:13]Clear old archive folders... [09:53:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:53:13]tlvbuf is 013C2BA0 [09:53:13]SAM_PROTO_ClearQueue [09:53:13]wFMCommunicate request_size=4 [09:53:13]MH_SAM_APDU [09:53:13]CAPDU: 80 09 00 00 [09:53:13]Write to MH i2c: E2 08 00 58 25 80 09 00 00 00 00 00 00 EF [09:53:13]Write i2c OK [09:53:13]MH_I2C_Read... [09:53:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:53:13]Read from MH i2c: E2 [09:53:13]MH_I2C_Read... [09:53:13]Read from MH i2c: E2 03 00 [09:53:13]MH_I2C_Read... [09:53:13]Read from MH i2c: E2 03 00 58 25 00 90 00 F1 [09:53:13]RAPDU: 90 00 [09:53:13]wFMCommunicate OK [09:53:13]SAM_PROTO_ClearQueue done [09:53:13]KKMCreateOFDPacket [09:53:13]OFDProtocolAddRootSTLVToBuf [09:53:13]FM_MakeSignedData [09:53:13]FM_MakeSignedData [09:53:13]SAM_PROTO_SignData [09:53:13]wFMCommunicate request_size=4 [09:53:13]MH_SAM_APDU [09:53:13]CAPDU: 80 0D 01 02 [09:53:13]Write to MH i2c: E2 08 00 59 25 80 0D 01 02 00 00 00 00 F7 [09:53:13]Write i2c OK [09:53:13]MH_I2C_Read... [09:53:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:53:13]Read from MH i2c: E2 [09:53:13]MH_I2C_Read... [09:53:13]Read from MH i2c: E2 03 00 [09:53:13]MH_I2C_Read... [09:53:13]Read from MH i2c: E2 03 00 59 25 00 90 00 F2 [09:53:13]RAPDU: 90 00 [09:53:13]wFMCommunicate OK [09:53:13]wFMCommunicate request_size=255 [09:53:13]MH_SAM_APDU [09:53:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 8C F1 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 41 85 02 00 35 04 06 00 E3 [09:53:13]Write to MH i2c: E2 02 01 5A 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 8C F1 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 41 85 02 00 35 04 06 00 E3 00 00 6D [09:53:13]Write i2c OK [09:53:13]MH_I2C_Read... [09:53:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:13]Read from MH i2c: E2 [09:53:13]MH_I2C_Read... [09:53:13]Read from MH i2c: E2 03 00 [09:53:13]MH_I2C_Read... [09:53:13]Read from MH i2c: E2 03 00 5A 25 00 90 00 F3 [09:53:13]RAPDU: 90 00 [09:53:13]wFMCommunicate OK [09:53:13]wFMCommunicate request_size=10 [09:53:13]MH_SAM_APDU [09:53:13]CAPDU: 80 0D 02 02 05 D5 9A DA 1A 1D [09:53:13]Write to MH i2c: E2 0D 00 5B 25 80 0D 02 02 05 00 D5 9A DA 1A 1D 00 00 84 [09:53:13]Write i2c OK [09:53:13]MH_I2C_Read... [09:53:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:13]Read from MH i2c: E2 [09:53:13]MH_I2C_Read... [09:53:13]Read from MH i2c: E2 03 00 [09:53:13]MH_I2C_Read... [09:53:13]Read from MH i2c: E2 03 00 5B 25 00 90 00 F4 [09:53:13]RAPDU: 90 00 [09:53:13]wFMCommunicate OK [09:53:13]wFMCommunicate request_size=4 [09:53:13]MH_SAM_APDU [09:53:13]CAPDU: 80 0D 03 02 [09:53:13]Write to MH i2c: E2 08 00 5C 25 80 0D 03 02 00 00 00 00 FC [09:53:13]Write i2c OK [09:53:13]MH_I2C_Read... [09:53:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:53:13]Read from MH i2c: E2 [09:53:13]MH_I2C_Read... [09:53:13]Read from MH i2c: E2 0B 00 [09:53:13]MH_I2C_Read... [09:53:13]Read from MH i2c: E2 0B 00 5C 25 00 99 9E 3A 38 9D D4 0B B5 90 00 D7 [09:53:13]RAPDU: 99 9E 3A 38 9D D4 0B B5 90 00 [09:53:13]wFMCommunicate OK [09:53:13]SAM_PROTO_SignData done [09:53:13]FM_MakeSignedData done [09:53:13]CreateOFDProtocolMessage [09:53:13]wFMCommunicate request_size=4 [09:53:13]MH_SAM_APDU [09:53:13]CAPDU: 80 11 00 00 [09:53:13]Write to MH i2c: E2 08 00 5D 25 80 11 00 00 00 00 00 00 FC [09:53:13]Write i2c OK [09:53:13]MH_I2C_Read... [09:53:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:13]Read from MH i2c: E2 [09:53:13]MH_I2C_Read... [09:53:13]Read from MH i2c: E2 17 00 [09:53:13]MH_I2C_Read... [09:53:13]Read from MH i2c: E2 17 00 5D 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 52 [09:53:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:53:13]wFMCommunicate OK [09:53:13]CreateOFDProtocolMessage done [09:53:13]OFDSenderStorePacket 165185 [09:53:13]StoreOFDPacket docnum=165185 [09:53:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 7B A9 07 01 9C EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 8C F1 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 41 85 02 00 35 04 06 00 E3 D5 9A DA 1A 1D 99 9E 3A 38 9D D4 0B B5 [09:53:13]CheckFolder [09:53:13]dirname=/storage/ofd_packets [09:53:13]CheckFolder done [09:53:13]ProducePacketName [09:53:13]name=ofd_packets/00165185 [09:53:13]NVStorageSaveData ofd_packets/00165185 [09:53:13]File name is /storage/ofd_packets/00165185 [09:53:13]Write 301 bytes [09:53:13]NVStorageSaveData done [09:53:13]OFDSenderStorePacket done [09:53:13]KKMCreateOFDPacket done [09:53:13]NVStorageSaveData kkm_last_timestamp [09:53:13]File name is /storage/kkm_last_timestamp [09:53:13]Write 4 bytes [09:53:13]NVStorageSaveData done [09:53:13]ExternCall_PrintAddStr [09:53:13]wPrintStart [09:53:13]Write to MH i2c: 01 00 00 5E 25 83 [09:53:13]Write i2c OK [09:53:13]MH_I2C_Read... [09:53:13]Read from MH i2c: 01 [09:53:13]MH_I2C_Read... [09:53:13]Read from MH i2c: 01 07 00 [09:53:13]MH_I2C_Read... [09:53:13]Read from MH i2c: 01 07 00 5E 25 00 00 00 00 00 FF 0F 98 [09:53:13]RasterBufferAndPrint [09:53:13]line Счет N : (1)459287 [09:53:13]line ИНН: 02508201610067 [09:53:13]line Контрольно-Кассовый Чек [09:53:13]line ПРОДАЖА [09:53:13]line ТРК (МРК, ГНК) : 12 [09:53:13]line Товар: 2710124130 [09:53:13]line Аи-92-К-5 [09:53:13]line 6.080 * 65.80 [09:53:13]line = 400.06 [09:53:13]line НДС 12% НСП 1% [09:53:13]line > о реализуемом товаре [09:53:13]line ОКРУГЛЕНИЕ: -0.06 [09:53:13]line ИТОГО: 400.00 [09:53:13]line Внесено: 400.00 [09:53:13]line СДАЧА: 0.00 [09:53:13]line НСП 1% : 3.54 [09:53:13]line НДС 12% : 42.48 [09:53:13]line Наличными: 400.00 [09:53:13]line Безнал.: 0.00 [09:53:13]line Место: АЗС № 72 "Партнер Нефть" [09:53:13]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:53:13]line СНО: Общий режим [09:53:13]line Чек 58 15.07.2024 09:53 [09:53:13]line Смена: 448 ФФД: 1.0 [09:53:13]line ЗНМ: 0300000160 [09:53:13]line РНМ: 0000000000090829 [09:53:13]line Версия ККМ: 001 [09:53:13]line ФМ: 0000000000874718 [09:53:13]line ФД: 165185 [09:53:13]line ФПД: 250506565523997 [09:53:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T095316&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165185&fm=250506565523997&tin=02508201610067®Number=0000000000090829&sum=40000 [09:53:14]OFD Sender: Processing packet 165185 [packets to send 106, broken 105] [09:53:14]ProducePacketName [09:53:14]name=ofd_packets/00165185 [09:53:14]OFD Sender: To server: pG, [09:53:14]CommunicateWithHost lk.salyk.kg:30040 [09:53:14]ConnectInit lk.salyk.kg [09:53:14]written 0, free lines is 4095 [09:53:14]Connected sock=10 [09:53:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 7B A9 07 01 9C EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 8C F1 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 41 85 02 00 35 04 06 00 E3 D5 9A DA 1A 1D 99 9E 3A 38 9D D4 0B B5 [09:53:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 D9 76 47 00 86 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 37 31 38 10 04 04 00 41 85 02 00 F4 03 04 00 17 98 94 66 B6 04 01 00 00 7D E0 BB 6E 27 3A 28 C9 [09:53:14]CommunicateWithHost err = 0 [09:53:14]CheckOFDResponse [09:53:14]1017 (14) - 77093643461234 [09:53:14]1041 (16) - 0000000000874718 [09:53:14]1040 (4) - 165185 [09:53:14]1012 (4) - 15.07.2024 03:31 [09:53:14]1206 (1) - 0 [09:53:14]OFD Sender: Remove packet 165185 [09:53:14]ProducePacketName [09:53:14]name=ofd_packets/00165185 [09:53:14]NVStorageDeleteData [09:53:14]Write to MH i2c: 01 00 00 88 25 AD [09:53:14]Write i2c OK [09:53:14]MH_I2C_Read... [09:53:14]Read from MH i2c: 01 [09:53:14]MH_I2C_Read... [09:53:14]Read from MH i2c: 01 07 00 [09:53:14]MH_I2C_Read... [09:53:14]Read from MH i2c: 01 07 00 88 25 00 00 00 00 00 F3 0C B3 [09:53:14]RasterBufferAndPrint [09:53:14]line [09:53:14]line [09:53:14]line [09:53:14]line [09:53:14]line [09:53:14]written 0, free lines is 3322 [09:53:14]MH_Cut [09:53:14]Write to MH i2c: D1 01 00 8F 25 01 86 [09:53:14]Write i2c OK [09:53:14]MH_I2C_Read... [09:53:14]Read from MH i2c: D1 [09:53:14]MH_I2C_Read... [09:53:14]Read from MH i2c: D1 01 00 [09:53:14]MH_I2C_Read... [09:53:14]Read from MH i2c: D1 01 00 8F 25 00 85 [09:53:14]Write to MH i2c: 01 00 00 90 25 B5 [09:53:14]Write i2c OK [09:53:14]MH_I2C_Read... [09:53:15]OFD Sender: No OFD packet to send [09:53:15]*** Cut start [09:53:15]*** Partial cut [09:53:15]*** CUTSNS_PIN = 1 [09:53:15]*** CUTSNS_PIN = 0 [09:53:15]*** Brake cut motor [09:53:15]Read from MH i2c: 01 [09:53:15]MH_I2C_Read... [09:53:15]*** Stop cut motor [09:53:15]*** Cut end [09:53:15]Read from MH i2c: 01 07 00 [09:53:15]MH_I2C_Read... [09:53:15]Read from MH i2c: 01 07 00 90 25 00 00 00 00 00 FF 0F CA [09:53:15]process_action close_receipt done [09:53:15]requested_data is exist [09:53:15]produce_requested_data [09:53:15]requested_item fm.sn is exist - process it [09:53:15]wFMCommunicate request_size=4 [09:53:15]MH_SAM_APDU [09:53:15]CAPDU: 80 11 00 00 [09:53:15]Write to MH i2c: E2 08 00 91 25 80 11 00 00 00 00 00 00 30 [09:53:15]Write i2c OK [09:53:15]MH_I2C_Read... [09:53:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:16]Read from MH i2c: E2 [09:53:16]MH_I2C_Read... [09:53:16]Read from MH i2c: E2 17 00 [09:53:16]MH_I2C_Read... [09:53:16]Read from MH i2c: E2 17 00 91 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 86 [09:53:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:53:16]wFMCommunicate OK [09:53:16]requested_item fd.num is exist - process it [09:53:16]SAM_PROTO_GetFieldsCounters [09:53:16]wFMCommunicate request_size=4 [09:53:16]MH_SAM_APDU [09:53:16]CAPDU: 80 13 00 00 [09:53:16]Write to MH i2c: E2 08 00 92 25 80 13 00 00 00 00 00 00 33 [09:53:16]Write i2c OK [09:53:16]MH_I2C_Read... [09:53:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:53:16]Read from MH i2c: E2 [09:53:16]MH_I2C_Read... [09:53:16]Read from MH i2c: E2 62 00 [09:53:16]MH_I2C_Read... [09:53:16]Read from MH i2c: E2 62 00 92 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 41 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [09:53:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 41 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:53:16]wFMCommunicate OK [09:53:16]SAM_PROTO_GetFieldsCounters done [09:53:16]requested_item shift.num is exist - process it [09:53:16]requested_item shift.opened is exist - process it [09:53:16]req_shift_opened [09:53:16]FM_GetShiftState [09:53:16]SAM_PROTO_GetShiftState [09:53:16]wFMCommunicate request_size=4 [09:53:16]MH_SAM_APDU [09:53:16]CAPDU: 80 13 01 00 [09:53:16]Write to MH i2c: E2 08 00 93 25 80 13 01 00 00 00 00 00 35 [09:53:16]Write i2c OK [09:53:16]MH_I2C_Read... [09:53:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:16]Read from MH i2c: E2 [09:53:16]MH_I2C_Read... [09:53:16]Read from MH i2c: E2 0E 00 [09:53:16]MH_I2C_Read... [09:53:16]Read from MH i2c: E2 0E 00 93 25 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 0E [09:53:16]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [09:53:16]wFMCommunicate OK [09:53:16]SAM_PROTO_GetShiftState done [09:53:16]FM_GetShiftState done [09:53:16]req_shift_opened done [09:53:16]requested_item shift.open_date is exist - process it [09:53:16]req_shift_open_date [09:53:16]req_shift_open_date done [09:53:16]produce_requested_data done [09:53:16]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165185,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [09:53:16]process_action_free close_receipt [09:53:16]json_value_free [09:53:16]json_value_free done [09:53:16]process_json_proto returns [09:53:16]Send response to host [09:53:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165185,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [09:53:16]free response buf [09:53:16]execute_script done [09:53:16]execute_script returns [09:53:16]free content buf [09:53:16]Sock 9.Close socket [09:53:16]Sock 9.Thread stoped [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:20]OFD Sender: No OFD packet to send [09:54:25]OFD Sender: No OFD packet to send [09:54:30]OFD Sender: No OFD packet to send [09:54:35]OFD Sender: No OFD packet to send [09:54:40]OFD Sender: No OFD packet to send [09:54:45]OFD Sender: No OFD packet to send [09:54:50]OFD Sender: No OFD packet to send [09:54:55]OFD Sender: No OFD packet to send [09:55:00]OFD Sender: No OFD packet to send [09:55:05]OFD Sender: No OFD packet to send [09:55:09]accept exits with 7 [09:55:09]New connection [09:55:09]New thread 3066928484 created [09:55:09]Thread 3066785124 joined [09:55:09]Waiting for new connection... [09:55:09] Sock 7.Parse request [09:55:09]Sock 7.Check first char [09:55:09]Sock 7.First char is OK [09:55:09]request: POST /json_proto HTTP/1.0 [09:55:09]Method: POST [09:55:09]URL: /json_proto [09:55:09]Method is POST - this is cgi request [09:55:09]url: /json_proto [09:55:09]query_string will be loaded in cgi processing [09:55:09]execute_cgi json_proto POST (null) [09:55:09]execute_cgi path=json_proto method=POST [09:55:09]POST find Content-Length [09:55:09]Host: 172.17.56.4:8080 [09:55:09]Content-Length: 677 [09:55:09]Content-Type: application/json [09:55:09] [09:55:09]POST finish read [09:55:09]Found Content-Length = 677 [09:55:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459288", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "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:55:09]execute_script... [09:55: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)459288", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "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:55:09]POST & json_proto [09:55:09]process_json_proto [09:55:09]json parsed OK: [09:55:09]protocol is kg_v1.0 [09:55:09]action value=close_receipt [09:55:09]process_action close_receipt [09:55:09]cmd_close_receipt [09:55:09]MH_GetDate [09:55:09]Write to MH i2c: F0 00 00 94 25 A8 [09:55:09]Write i2c OK [09:55:09]MH_I2C_Read... [09:55:09]Read from MH i2c: F0 [09:55:09]MH_I2C_Read... [09:55:09]Read from MH i2c: F0 09 00 [09:55:09]MH_I2C_Read... [09:55:09]Read from MH i2c: F0 09 00 94 25 00 02 F2 94 66 C9 DC B2 64 5A [09:55:09]GetLastDocTimeStamp 1721037196 [09:55:09]current date 1721037314 [09:55:09]FM_GetShiftState [09:55:09]SAM_PROTO_GetShiftState [09:55:09]wFMCommunicate request_size=4 [09:55:09]MH_SAM_APDU [09:55:09]CAPDU: 80 13 01 00 [09:55:09]Write to MH i2c: E2 08 00 95 25 80 13 01 00 00 00 00 00 37 [09:55:09]Write i2c OK [09:55:09]MH_I2C_Read... [09:55:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:09]Read from MH i2c: E2 [09:55:09]MH_I2C_Read... [09:55:09]Read from MH i2c: E2 0E 00 [09:55:09]MH_I2C_Read... [09:55:09]Read from MH i2c: E2 0E 00 95 25 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 10 [09:55:09]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [09:55:09]wFMCommunicate OK [09:55:09]SAM_PROTO_GetShiftState done [09:55:09]FM_GetShiftState done [09:55:09]opened in 1721003876 [09:55:09]opened+sec_in_day 1721090276 [09:55:09]quantity*price = 60009 [09:55:09]sum+1 = 60011 [09:55:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 59 15.07.2024 09:55 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165186 ФПД: 130831528338654 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T095514&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165186&fm=130831528338654&tin=02508201610067®Number=0000000000090829&sum=60000 [09:55:10]StoreToDocumentArchive [09:55:10]shift 448 fd 165186 [09:55:10]save to /storage/0448/doc_00165186 [09:55:10]save last doc name /storage/0448/doc_00165186 to /storage/kkm_last_doc_name [09:55:10]save OK [09:55:10]Clear old archive folders... [09:55:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:55:10]tlvbuf is 013D85C0 [09:55:10]SAM_PROTO_ClearQueue [09:55:10]wFMCommunicate request_size=4 [09:55:10]MH_SAM_APDU [09:55:10]CAPDU: 80 09 00 00 [09:55:10]Write to MH i2c: E2 08 00 A2 25 80 09 00 00 00 00 00 00 39 [09:55:10]Write i2c OK [09:55:10]MH_I2C_Read... [09:55:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:55:10]Read from MH i2c: E2 [09:55:10]MH_I2C_Read... [09:55:10]Read from MH i2c: E2 03 00 [09:55:10]MH_I2C_Read... [09:55:10]Read from MH i2c: E2 03 00 A2 25 00 90 00 3B [09:55:10]RAPDU: 90 00 [09:55:10]wFMCommunicate OK [09:55:10]SAM_PROTO_ClearQueue done [09:55:10]KKMCreateOFDPacket [09:55:10]OFDProtocolAddRootSTLVToBuf [09:55:10]FM_MakeSignedData [09:55:10]FM_MakeSignedData [09:55:10]SAM_PROTO_SignData [09:55:10]wFMCommunicate request_size=4 [09:55:10]MH_SAM_APDU [09:55:10]CAPDU: 80 0D 01 02 [09:55:10]Write to MH i2c: E2 08 00 A3 25 80 0D 01 02 00 00 00 00 41 [09:55:10]Write i2c OK [09:55:10]MH_I2C_Read... [09:55:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:55:10]Read from MH i2c: E2 [09:55:10]MH_I2C_Read... [09:55:10]Read from MH i2c: E2 03 00 [09:55:10]MH_I2C_Read... [09:55:10]Read from MH i2c: E2 03 00 A3 25 00 90 00 3C [09:55:10]RAPDU: 90 00 [09:55:10]wFMCommunicate OK [09:55:10]wFMCommunicate request_size=255 [09:55:10]MH_SAM_APDU [09:55: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 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 02 F2 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 42 85 02 00 35 04 06 00 76 [09:55:10]Write to MH i2c: E2 02 01 A4 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 02 F2 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 42 85 02 00 35 04 06 00 76 00 00 04 [09:55:10]Write i2c OK [09:55:10]MH_I2C_Read... [09:55:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:11]Read from MH i2c: E2 [09:55:11]MH_I2C_Read... [09:55:11]Read from MH i2c: E2 03 00 [09:55:11]MH_I2C_Read... [09:55:11]Read from MH i2c: E2 03 00 A4 25 00 90 00 3D [09:55:11]RAPDU: 90 00 [09:55:11]wFMCommunicate OK [09:55:11]wFMCommunicate request_size=10 [09:55:11]MH_SAM_APDU [09:55:11]CAPDU: 80 0D 02 02 05 FD 96 C5 A4 DE [09:55:11]Write to MH i2c: E2 0D 00 A5 25 80 0D 02 02 05 00 FD 96 C5 A4 DE 00 00 28 [09:55:11]Write i2c OK [09:55:11]MH_I2C_Read... [09:55:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:11]Read from MH i2c: E2 [09:55:11]MH_I2C_Read... [09:55:11]Read from MH i2c: E2 03 00 [09:55:11]MH_I2C_Read... [09:55:11]Read from MH i2c: E2 03 00 A5 25 00 90 00 3E [09:55:11]RAPDU: 90 00 [09:55:11]wFMCommunicate OK [09:55:11]wFMCommunicate request_size=4 [09:55:11]MH_SAM_APDU [09:55:11]CAPDU: 80 0D 03 02 [09:55:11]Write to MH i2c: E2 08 00 A6 25 80 0D 03 02 00 00 00 00 46 [09:55:11]Write i2c OK [09:55:11]MH_I2C_Read... [09:55:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:55:11]Read from MH i2c: E2 [09:55:11]MH_I2C_Read... [09:55:11]Read from MH i2c: E2 0B 00 [09:55:11]MH_I2C_Read... [09:55:11]Read from MH i2c: E2 0B 00 A6 25 00 3D 21 07 48 E7 30 04 AB 90 00 BA [09:55:11]RAPDU: 3D 21 07 48 E7 30 04 AB 90 00 [09:55:11]wFMCommunicate OK [09:55:11]SAM_PROTO_SignData done [09:55:11]FM_MakeSignedData done [09:55:11]CreateOFDProtocolMessage [09:55:11]wFMCommunicate request_size=4 [09:55:11]MH_SAM_APDU [09:55:11]CAPDU: 80 11 00 00 [09:55:11]Write to MH i2c: E2 08 00 A7 25 80 11 00 00 00 00 00 00 46 [09:55:11]Write i2c OK [09:55:11]MH_I2C_Read... [09:55:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:11]Read from MH i2c: E2 [09:55:11]MH_I2C_Read... [09:55:11]Read from MH i2c: E2 17 00 [09:55:11]MH_I2C_Read... [09:55:11]Read from MH i2c: E2 17 00 A7 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 9C [09:55:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:55:11]wFMCommunicate OK [09:55:11]CreateOFDProtocolMessage done [09:55:11]OFDSenderStorePacket 165186 [09:55:11]StoreOFDPacket docnum=165186 [09:55:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 3D 7F 07 01 EE 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 02 F2 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 42 85 02 00 35 04 06 00 76 FD 96 C5 A4 DE 3D 21 07 48 E7 30 04 AB [09:55:11]CheckFolder [09:55:11]dirname=/storage/ofd_packets [09:55:11]CheckFolder done [09:55:11]ProducePacketName [09:55:11]name=ofd_packets/00165186 [09:55:11]NVStorageSaveData ofd_packets/00165186 [09:55:11]File name is /storage/ofd_packets/00165186 [09:55:11]Write 301 bytes [09:55:11]NVStorageSaveData done [09:55:11]OFDSenderStorePacket done [09:55:11]KKMCreateOFDPacket done [09:55:11]NVStorageSaveData kkm_last_timestamp [09:55:11]File name is /storage/kkm_last_timestamp [09:55:11]Write 4 bytes [09:55:11]NVStorageSaveData done [09:55:11]ExternCall_PrintAddStr [09:55:11]wPrintStart [09:55:11]Write to MH i2c: 01 00 00 A8 25 CD [09:55:11]Write i2c OK [09:55:11]MH_I2C_Read... [09:55:11]Read from MH i2c: 01 [09:55:11]MH_I2C_Read... [09:55:11]Read from MH i2c: 01 07 00 [09:55:11]MH_I2C_Read... [09:55:11]Read from MH i2c: 01 07 00 A8 25 00 00 00 00 00 FF 0F E2 [09:55:11]RasterBufferAndPrint [09:55:11]line Счет N : (1)459288 [09:55:11]line ИНН: 02508201610067 [09:55:11]line Контрольно-Кассовый Чек [09:55:11]line ПРОДАЖА [09:55:11]line ТРК (МРК, ГНК) : 12 [09:55:11]line Товар: 2710124130 [09:55:11]line Аи-92-К-5 [09:55:11]line 9.120 * 65.80 [09:55:11]line = 600.10 [09:55:11]line НДС 12% НСП 1% [09:55:11]line > о реализуемом товаре [09:55:11]line ОКРУГЛЕНИЕ: -0.10 [09:55:11]line ИТОГО: 600.00 [09:55:11]line Внесено: 600.00 [09:55:11]line СДАЧА: 0.00 [09:55:11]line НСП 1% : 5.31 [09:55:11]line НДС 12% : 63.73 [09:55:11]line Наличными: 600.00 [09:55:11]line Безнал.: 0.00 [09:55:11]line Место: АЗС № 72 "Партнер Нефть" [09:55:11]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:55:11]line СНО: Общий режим [09:55:11]line Чек 59 15.07.2024 09:55 [09:55:11]line Смена: 448 ФФД: 1.0 [09:55:11]line ЗНМ: 0300000160 [09:55:11]line РНМ: 0000000000090829 [09:55:11]line Версия ККМ: 001 [09:55:11]line ФМ: 0000000000874718 [09:55:11]line ФД: 165186 [09:55:11]line ФПД: 130831528338654 [09:55:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T095514&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165186&fm=130831528338654&tin=02508201610067®Number=0000000000090829&sum=60000 [09:55:11]OFD Sender: Processing packet 165186 [packets to send 106, broken 105] [09:55:11]ProducePacketName [09:55:11]name=ofd_packets/00165186 [09:55:11]OFD Sender: To server: pG, [09:55:11]CommunicateWithHost lk.salyk.kg:30040 [09:55:11]ConnectInit lk.salyk.kg [09:55:11]written 0, free lines is 4095 [09:55:11]Connected sock=10 [09:55: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 37 31 38 0F 01 00 00 3D 7F 07 01 EE 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 02 F2 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 42 85 02 00 35 04 06 00 76 FD 96 C5 A4 DE 3D 21 07 48 E7 30 04 AB [09:55:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 39 FC 47 00 A4 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 37 31 38 10 04 04 00 42 85 02 00 F4 03 04 00 8C 98 94 66 B6 04 01 00 00 2A 82 5F 45 EC FB 80 5D [09:55:11]CommunicateWithHost err = 0 [09:55:11]CheckOFDResponse [09:55:11]1017 (14) - 77093643461234 [09:55:11]1041 (16) - 0000000000874718 [09:55:11]1040 (4) - 165186 [09:55:11]1012 (4) - 15.07.2024 03:33 [09:55:11]1206 (1) - 0 [09:55:11]OFD Sender: Remove packet 165186 [09:55:11]ProducePacketName [09:55:11]name=ofd_packets/00165186 [09:55:11]NVStorageDeleteData [09:55:11]Write to MH i2c: 01 00 00 D2 25 F7 [09:55:11]Write i2c OK [09:55:11]MH_I2C_Read... [09:55:11]Read from MH i2c: 01 [09:55:11]MH_I2C_Read... [09:55:11]Read from MH i2c: 01 07 00 [09:55:11]MH_I2C_Read... [09:55:11]Read from MH i2c: 01 07 00 D2 25 00 00 00 00 00 F9 0C 03 [09:55:11]RasterBufferAndPrint [09:55:11]line [09:55:11]line [09:55:11]line [09:55:11]line [09:55:11]line [09:55:11]written 0, free lines is 3327 [09:55:11]MH_Cut [09:55:11]Write to MH i2c: D1 01 00 D9 25 01 D0 [09:55:11]Write i2c OK [09:55:11]MH_I2C_Read... [09:55:11]Read from MH i2c: D1 [09:55:11]MH_I2C_Read... [09:55:11]Read from MH i2c: D1 01 00 [09:55:11]MH_I2C_Read... [09:55:11]Read from MH i2c: D1 01 00 D9 25 00 CF [09:55:11]Write to MH i2c: 01 00 00 DA 25 FF [09:55:11]Write i2c OK [09:55:11]MH_I2C_Read... [09:55:12]OFD Sender: No OFD packet to send [09:55:12]*** Cut start [09:55:12]*** Partial cut [09:55:12]*** CUTSNS_PIN = 1 [09:55:12]*** CUTSNS_PIN = 0 [09:55:12]*** Brake cut motor [09:55:13]Read from MH i2c: 01 [09:55:13]MH_I2C_Read... [09:55:13]*** Stop cut motor [09:55:13]*** Cut end [09:55:13]Read from MH i2c: 01 07 00 [09:55:13]MH_I2C_Read... [09:55:13]Read from MH i2c: 01 07 00 DA 25 00 00 00 00 00 FF 0F 14 [09:55:13]process_action close_receipt done [09:55:13]requested_data is exist [09:55:13]produce_requested_data [09:55:13]requested_item fm.sn is exist - process it [09:55:13]wFMCommunicate request_size=4 [09:55:13]MH_SAM_APDU [09:55:13]CAPDU: 80 11 00 00 [09:55:13]Write to MH i2c: E2 08 00 DB 25 80 11 00 00 00 00 00 00 7A [09:55:13]Write i2c OK [09:55:13]MH_I2C_Read... [09:55:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:13]Read from MH i2c: E2 [09:55:13]MH_I2C_Read... [09:55:13]Read from MH i2c: E2 17 00 [09:55:13]MH_I2C_Read... [09:55:13]Read from MH i2c: E2 17 00 DB 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D0 [09:55:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:55:13]wFMCommunicate OK [09:55:13]requested_item fd.num is exist - process it [09:55:13]SAM_PROTO_GetFieldsCounters [09:55:13]wFMCommunicate request_size=4 [09:55:13]MH_SAM_APDU [09:55:13]CAPDU: 80 13 00 00 [09:55:13]Write to MH i2c: E2 08 00 DC 25 80 13 00 00 00 00 00 00 7D [09:55:13]Write i2c OK [09:55:13]MH_I2C_Read... [09:55:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:55:13]Read from MH i2c: E2 [09:55:13]MH_I2C_Read... [09:55:13]Read from MH i2c: E2 62 00 [09:55:13]MH_I2C_Read... [09:55:13]Read from MH i2c: E2 62 00 DC 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 42 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [09:55: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 42 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:55:13]wFMCommunicate OK [09:55:13]SAM_PROTO_GetFieldsCounters done [09:55:13]requested_item shift.num is exist - process it [09:55:13]requested_item shift.opened is exist - process it [09:55:13]req_shift_opened [09:55:13]FM_GetShiftState [09:55:13]SAM_PROTO_GetShiftState [09:55:13]wFMCommunicate request_size=4 [09:55:13]MH_SAM_APDU [09:55:13]CAPDU: 80 13 01 00 [09:55:13]Write to MH i2c: E2 08 00 DD 25 80 13 01 00 00 00 00 00 7F [09:55:13]Write i2c OK [09:55:13]MH_I2C_Read... [09:55:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:13]Read from MH i2c: E2 [09:55:13]MH_I2C_Read... [09:55:13]Read from MH i2c: E2 0E 00 [09:55:13]MH_I2C_Read... [09:55:13]Read from MH i2c: E2 0E 00 DD 25 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 58 [09:55:13]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [09:55:13]wFMCommunicate OK [09:55:13]SAM_PROTO_GetShiftState done [09:55:13]FM_GetShiftState done [09:55:13]req_shift_opened done [09:55:13]requested_item shift.open_date is exist - process it [09:55:13]req_shift_open_date [09:55:13]req_shift_open_date done [09:55:13]produce_requested_data done [09:55:13]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165186,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [09:55:13]process_action_free close_receipt [09:55:13]json_value_free [09:55:13]json_value_free done [09:55:13]process_json_proto returns [09:55:13]Send response to host [09:55:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165186,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [09:55:13]free response buf [09:55:13]execute_script done [09:55:13]execute_script returns [09:55:13]free content buf [09:55:13]Sock 7.Close socket [09:55:13]Sock 7.Thread stoped [09:55:17]OFD Sender: No OFD packet to send [09:55:22]OFD Sender: No OFD packet to send [09:55:27]OFD Sender: No OFD packet to send [09:55:32]OFD Sender: No OFD packet to send [09:55:37]OFD Sender: No OFD packet to send [09:55:42]OFD Sender: No OFD packet to send [09:55:45]accept exits with 9 [09:55:45]New connection [09:55:45]New thread 3066785124 created [09:55:45]Thread 3066928484 joined [09:55:45]Waiting for new connection... [09:55:45] Sock 9.Parse request [09:55:45]Sock 9.Check first char [09:55:45]Sock 9.First char is OK [09:55:45]request: POST /json_proto HTTP/1.0 [09:55:45]Method: POST [09:55:45]URL: /json_proto [09:55:45]Method is POST - this is cgi request [09:55:45]url: /json_proto [09:55:45]query_string will be loaded in cgi processing [09:55:45]execute_cgi json_proto POST (null) [09:55:45]execute_cgi path=json_proto method=POST [09:55:45]POST find Content-Length [09:55:45]Host: 172.17.56.4:8080 [09:55:45]Content-Length: 677 [09:55:45]Content-Type: application/json [09:55:45] [09:55:45]POST finish read [09:55:45]Found Content-Length = 677 [09:55:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459289", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:45]execute_script... [09:55: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)459289", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:45]POST & json_proto [09:55:45]process_json_proto [09:55:45]json parsed OK: [09:55:45]protocol is kg_v1.0 [09:55:45]action value=close_receipt [09:55:45]process_action close_receipt [09:55:45]cmd_close_receipt [09:55:45]MH_GetDate [09:55:45]Write to MH i2c: F0 00 00 DE 25 F2 [09:55:45]Write i2c OK [09:55:45]MH_I2C_Read... [09:55:45]Read from MH i2c: F0 [09:55:45]MH_I2C_Read... [09:55:45]Read from MH i2c: F0 09 00 [09:55:45]MH_I2C_Read... [09:55:45]Read from MH i2c: F0 09 00 DE 25 00 25 F2 94 66 C9 DC B2 64 C7 [09:55:45]GetLastDocTimeStamp 1721037314 [09:55:45]current date 1721037349 [09:55:45]FM_GetShiftState [09:55:45]SAM_PROTO_GetShiftState [09:55:45]wFMCommunicate request_size=4 [09:55:45]MH_SAM_APDU [09:55:45]CAPDU: 80 13 01 00 [09:55:45]Write to MH i2c: E2 08 00 DF 25 80 13 01 00 00 00 00 00 81 [09:55:45]Write i2c OK [09:55:45]MH_I2C_Read... [09:55:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:45]Read from MH i2c: E2 [09:55:45]MH_I2C_Read... [09:55:45]Read from MH i2c: E2 0E 00 [09:55:45]MH_I2C_Read... [09:55:45]Read from MH i2c: E2 0E 00 DF 25 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 5A [09:55:45]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [09:55:45]wFMCommunicate OK [09:55:45]SAM_PROTO_GetShiftState done [09:55:45]FM_GetShiftState done [09:55:45]opened in 1721003876 [09:55:45]opened+sec_in_day 1721090276 [09:55:45]quantity*price = 50008 [09:55:45]sum+1 = 50009 [09:55:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 60 15.07.2024 09:55 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165187 ФПД: 220236073232529 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T095549&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165187&fm=220236073232529&tin=02508201610067®Number=0000000000090829&sum=50000 [09:55:46]StoreToDocumentArchive [09:55:46]shift 448 fd 165187 [09:55:46]save to /storage/0448/doc_00165187 [09:55:46]save last doc name /storage/0448/doc_00165187 to /storage/kkm_last_doc_name [09:55:46]save OK [09:55:46]Clear old archive folders... [09:55:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:55:46]tlvbuf is 01346990 [09:55:46]SAM_PROTO_ClearQueue [09:55:46]wFMCommunicate request_size=4 [09:55:46]MH_SAM_APDU [09:55:46]CAPDU: 80 09 00 00 [09:55:46]Write to MH i2c: E2 08 00 EC 25 80 09 00 00 00 00 00 00 83 [09:55:46]Write i2c OK [09:55:46]MH_I2C_Read... [09:55:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:55:46]Read from MH i2c: E2 [09:55:46]MH_I2C_Read... [09:55:46]Read from MH i2c: E2 03 00 [09:55:46]MH_I2C_Read... [09:55:46]Read from MH i2c: E2 03 00 EC 25 00 90 00 85 [09:55:46]RAPDU: 90 00 [09:55:46]wFMCommunicate OK [09:55:46]SAM_PROTO_ClearQueue done [09:55:46]KKMCreateOFDPacket [09:55:46]OFDProtocolAddRootSTLVToBuf [09:55:46]FM_MakeSignedData [09:55:46]FM_MakeSignedData [09:55:46]SAM_PROTO_SignData [09:55:46]wFMCommunicate request_size=4 [09:55:46]MH_SAM_APDU [09:55:46]CAPDU: 80 0D 01 02 [09:55:46]Write to MH i2c: E2 08 00 ED 25 80 0D 01 02 00 00 00 00 8B [09:55:46]Write i2c OK [09:55:46]MH_I2C_Read... [09:55:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:55:46]Read from MH i2c: E2 [09:55:46]MH_I2C_Read... [09:55:46]Read from MH i2c: E2 03 00 [09:55:46]MH_I2C_Read... [09:55:46]Read from MH i2c: E2 03 00 ED 25 00 90 00 86 [09:55:46]RAPDU: 90 00 [09:55:46]wFMCommunicate OK [09:55:46]wFMCommunicate request_size=255 [09:55:46]MH_SAM_APDU [09:55: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 25 F2 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 43 85 02 00 35 04 06 00 C8 [09:55:46]Write to MH i2c: E2 02 01 EE 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 25 F2 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 43 85 02 00 35 04 06 00 C8 00 00 A4 [09:55:46]Write i2c OK [09:55:46]MH_I2C_Read... [09:55:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:46]Read from MH i2c: E2 [09:55:46]MH_I2C_Read... [09:55:46]Read from MH i2c: E2 03 00 [09:55:46]MH_I2C_Read... [09:55:46]Read from MH i2c: E2 03 00 EE 25 00 90 00 87 [09:55:46]RAPDU: 90 00 [09:55:46]wFMCommunicate OK [09:55:46]wFMCommunicate request_size=10 [09:55:46]MH_SAM_APDU [09:55:46]CAPDU: 80 0D 02 02 05 4D B4 E9 68 91 [09:55:46]Write to MH i2c: E2 0D 00 EF 25 80 0D 02 02 05 00 4D B4 E9 68 91 00 00 7B [09:55:46]Write i2c OK [09:55:46]MH_I2C_Read... [09:55:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:46]Read from MH i2c: E2 [09:55:46]MH_I2C_Read... [09:55:46]Read from MH i2c: E2 03 00 [09:55:46]MH_I2C_Read... [09:55:46]Read from MH i2c: E2 03 00 EF 25 00 90 00 88 [09:55:46]RAPDU: 90 00 [09:55:46]wFMCommunicate OK [09:55:46]wFMCommunicate request_size=4 [09:55:46]MH_SAM_APDU [09:55:46]CAPDU: 80 0D 03 02 [09:55:46]Write to MH i2c: E2 08 00 F0 25 80 0D 03 02 00 00 00 00 90 [09:55:46]Write i2c OK [09:55:46]MH_I2C_Read... [09:55:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:55:46]Read from MH i2c: E2 [09:55:46]MH_I2C_Read... [09:55:46]Read from MH i2c: E2 0B 00 [09:55:46]MH_I2C_Read... [09:55:46]Read from MH i2c: E2 0B 00 F0 25 00 81 3F E2 C5 79 FA 80 5A 90 00 45 [09:55:46]RAPDU: 81 3F E2 C5 79 FA 80 5A 90 00 [09:55:46]wFMCommunicate OK [09:55:46]SAM_PROTO_SignData done [09:55:46]FM_MakeSignedData done [09:55:46]CreateOFDProtocolMessage [09:55:46]wFMCommunicate request_size=4 [09:55:46]MH_SAM_APDU [09:55:46]CAPDU: 80 11 00 00 [09:55:46]Write to MH i2c: E2 08 00 F1 25 80 11 00 00 00 00 00 00 90 [09:55:46]Write i2c OK [09:55:46]MH_I2C_Read... [09:55:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:46]Read from MH i2c: E2 [09:55:46]MH_I2C_Read... [09:55:46]Read from MH i2c: E2 17 00 [09:55:46]MH_I2C_Read... [09:55:46]Read from MH i2c: E2 17 00 F1 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E6 [09:55:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:55:46]wFMCommunicate OK [09:55:46]CreateOFDProtocolMessage done [09:55:46]OFDSenderStorePacket 165187 [09:55:46]StoreOFDPacket docnum=165187 [09:55:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 21 3F 07 01 C6 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 25 F2 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 43 85 02 00 35 04 06 00 C8 4D B4 E9 68 91 81 3F E2 C5 79 FA 80 5A [09:55:46]CheckFolder [09:55:46]dirname=/storage/ofd_packets [09:55:46]CheckFolder done [09:55:46]ProducePacketName [09:55:46]name=ofd_packets/00165187 [09:55:46]NVStorageSaveData ofd_packets/00165187 [09:55:46]File name is /storage/ofd_packets/00165187 [09:55:46]Write 301 bytes [09:55:46]NVStorageSaveData done [09:55:46]OFDSenderStorePacket done [09:55:46]KKMCreateOFDPacket done [09:55:46]NVStorageSaveData kkm_last_timestamp [09:55:46]File name is /storage/kkm_last_timestamp [09:55:46]Write 4 bytes [09:55:46]NVStorageSaveData done [09:55:46]ExternCall_PrintAddStr [09:55:46]wPrintStart [09:55:46]Write to MH i2c: 01 00 00 F2 25 17 [09:55:46]Write i2c OK [09:55:46]MH_I2C_Read... [09:55:46]Read from MH i2c: 01 [09:55:46]MH_I2C_Read... [09:55:46]Read from MH i2c: 01 07 00 [09:55:46]MH_I2C_Read... [09:55:46]Read from MH i2c: 01 07 00 F2 25 00 00 00 00 00 FF 0F 2C [09:55:46]RasterBufferAndPrint [09:55:46]line Счет N : (1)459289 [09:55:46]line ИНН: 02508201610067 [09:55:46]line Контрольно-Кассовый Чек [09:55:46]line ПРОДАЖА [09:55:46]line ТРК (МРК, ГНК) : 12 [09:55:46]line Товар: 2710124130 [09:55:46]line Аи-92-К-5 [09:55:46]line 7.600 * 65.80 [09:55:46]line = 500.08 [09:55:46]line НДС 12% НСП 1% [09:55:46]line > о реализуемом товаре [09:55:46]line ОКРУГЛЕНИЕ: -0.08 [09:55:46]line ИТОГО: 500.00 [09:55:46]line Внесено: 500.00 [09:55:46]line СДАЧА: 0.00 [09:55:46]line НСП 1% : 4.42 [09:55:46]line НДС 12% : 53.11 [09:55:46]line Наличными: 500.00 [09:55:46]line Безнал.: 0.00 [09:55:46]line Место: АЗС № 72 "Партнер Нефть" [09:55:46]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:55:46]line СНО: Общий режим [09:55:46]line Чек 60 15.07.2024 09:55 [09:55:46]line Смена: 448 ФФД: 1.0 [09:55:46]line ЗНМ: 0300000160 [09:55:46]line РНМ: 0000000000090829 [09:55:46]line Версия ККМ: 001 [09:55:46]line ФМ: 0000000000874718 [09:55:46]line ФД: 165187 [09:55:46]line ФПД: 220236073232529 [09:55:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T095549&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165187&fm=220236073232529&tin=02508201610067®Number=0000000000090829&sum=50000 [09:55:47]written 0, free lines is 4095 [09:55:47]OFD Sender: Processing packet 165187 [packets to send 106, broken 105] [09:55:47]ProducePacketName [09:55:47]name=ofd_packets/00165187 [09:55:47]OFD Sender: To server: pG, [09:55:47]CommunicateWithHost lk.salyk.kg:30040 [09:55:47]ConnectInit lk.salyk.kg [09:55:47]Connected sock=10 [09:55: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 37 31 38 0F 01 00 00 21 3F 07 01 C6 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 25 F2 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 43 85 02 00 35 04 06 00 C8 4D B4 E9 68 91 81 3F E2 C5 79 FA 80 5A [09:55:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 5E 34 47 00 D6 DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 43 85 02 00 F4 03 04 00 B0 98 94 66 B6 04 01 00 00 FE A6 08 D3 84 1C A9 81 [09:55:47]CommunicateWithHost err = 0 [09:55:47]CheckOFDResponse [09:55:47]1017 (14) - 77093643461234 [09:55:47]1041 (16) - 0000000000874718 [09:55:47]1040 (4) - 165187 [09:55:47]1012 (4) - 15.07.2024 03:34 [09:55:47]1206 (1) - 0 [09:55:47]OFD Sender: Remove packet 165187 [09:55:47]ProducePacketName [09:55:47]name=ofd_packets/00165187 [09:55:47]NVStorageDeleteData [09:55:47]Write to MH i2c: 01 00 00 1C 26 42 [09:55:47]Write i2c OK [09:55:47]MH_I2C_Read... [09:55:47]Read from MH i2c: 01 [09:55:47]MH_I2C_Read... [09:55:47]Read from MH i2c: 01 07 00 [09:55:47]MH_I2C_Read... [09:55:47]Read from MH i2c: 01 07 00 1C 26 00 00 00 00 00 F3 0C 48 [09:55:47]RasterBufferAndPrint [09:55:47]line [09:55:47]line [09:55:47]line [09:55:47]line [09:55:47]line [09:55:47]written 0, free lines is 3321 [09:55:47]MH_Cut [09:55:47]Write to MH i2c: D1 01 00 23 26 01 1B [09:55:47]Write i2c OK [09:55:47]MH_I2C_Read... [09:55:47]Read from MH i2c: D1 [09:55:47]MH_I2C_Read... [09:55:47]Read from MH i2c: D1 01 00 [09:55:47]MH_I2C_Read... [09:55:47]Read from MH i2c: D1 01 00 23 26 00 1A [09:55:47]Write to MH i2c: 01 00 00 24 26 4A [09:55:47]Write i2c OK [09:55:47]MH_I2C_Read... [09:55:47]OFD Sender: No OFD packet to send [09:55:48]*** Cut start [09:55:48]*** Partial cut [09:55:48]*** CUTSNS_PIN = 1 [09:55:48]*** CUTSNS_PIN = 0 [09:55:48]*** Brake cut motor [09:55:48]Read from MH i2c: 01 [09:55:48]MH_I2C_Read... [09:55:48]*** Stop cut motor [09:55:48]*** Cut end [09:55:48]Read from MH i2c: 01 07 00 [09:55:48]MH_I2C_Read... [09:55:48]Read from MH i2c: 01 07 00 24 26 00 00 00 00 00 FF 0F 5F [09:55:48]process_action close_receipt done [09:55:48]requested_data is exist [09:55:48]produce_requested_data [09:55:48]requested_item fm.sn is exist - process it [09:55:48]wFMCommunicate request_size=4 [09:55:48]MH_SAM_APDU [09:55:48]CAPDU: 80 11 00 00 [09:55:48]Write to MH i2c: E2 08 00 25 26 80 11 00 00 00 00 00 00 C5 [09:55:48]Write i2c OK [09:55:48]MH_I2C_Read... [09:55:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:48]Read from MH i2c: E2 [09:55:48]MH_I2C_Read... [09:55:48]Read from MH i2c: E2 17 00 [09:55:48]MH_I2C_Read... [09:55:48]Read from MH i2c: E2 17 00 25 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1B [09:55:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:55:48]wFMCommunicate OK [09:55:48]requested_item fd.num is exist - process it [09:55:48]SAM_PROTO_GetFieldsCounters [09:55:48]wFMCommunicate request_size=4 [09:55:48]MH_SAM_APDU [09:55:48]CAPDU: 80 13 00 00 [09:55:48]Write to MH i2c: E2 08 00 26 26 80 13 00 00 00 00 00 00 C8 [09:55:48]Write i2c OK [09:55:48]MH_I2C_Read... [09:55:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:55:49]Read from MH i2c: E2 [09:55:49]MH_I2C_Read... [09:55:49]Read from MH i2c: E2 62 00 [09:55:49]MH_I2C_Read... [09:55:49]Read from MH i2c: E2 62 00 26 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 43 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [09:55:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 43 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:55:49]wFMCommunicate OK [09:55:49]SAM_PROTO_GetFieldsCounters done [09:55:49]requested_item shift.num is exist - process it [09:55:49]requested_item shift.opened is exist - process it [09:55:49]req_shift_opened [09:55:49]FM_GetShiftState [09:55:49]SAM_PROTO_GetShiftState [09:55:49]wFMCommunicate request_size=4 [09:55:49]MH_SAM_APDU [09:55:49]CAPDU: 80 13 01 00 [09:55:49]Write to MH i2c: E2 08 00 27 26 80 13 01 00 00 00 00 00 CA [09:55:49]Write i2c OK [09:55:49]MH_I2C_Read... [09:55:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:49]Read from MH i2c: E2 [09:55:49]MH_I2C_Read... [09:55:49]Read from MH i2c: E2 0E 00 [09:55:49]MH_I2C_Read... [09:55:49]Read from MH i2c: E2 0E 00 27 26 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 A3 [09:55:49]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [09:55:49]wFMCommunicate OK [09:55:49]SAM_PROTO_GetShiftState done [09:55:49]FM_GetShiftState done [09:55:49]req_shift_opened done [09:55:49]requested_item shift.open_date is exist - process it [09:55:49]req_shift_open_date [09:55:49]req_shift_open_date done [09:55:49]produce_requested_data done [09:55:49]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165187,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [09:55:49]process_action_free close_receipt [09:55:49]json_value_free [09:55:49]json_value_free done [09:55:49]process_json_proto returns [09:55:49]Send response to host [09:55:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165187,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [09:55:49]free response buf [09:55:49]execute_script done [09:55:49]execute_script returns [09:55:49]free content buf [09:55:49]Sock 9.Close socket [09:55:49]Sock 9.Thread stoped [09:55:52]OFD Sender: No OFD packet to send [09:55:57]OFD Sender: No OFD packet to send [09:56:02]OFD Sender: No OFD packet to send [09:56:07]OFD Sender: No OFD packet to send [09:56:12]OFD Sender: No OFD packet to send [09:56:17]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:56:59]accept exits with 7 [09:56:59]New connection [09:56:59]New thread 3066928484 created [09:56:59]Thread 3066785124 joined [09:56:59]Waiting for new connection... [09:56:59] Sock 7.Parse request [09:56:59]Sock 7.Check first char [09:56:59]Sock 7.First char is OK [09:56:59]request: POST /json_proto HTTP/1.0 [09:56:59]Method: POST [09:56:59]URL: /json_proto [09:56:59]Method is POST - this is cgi request [09:56:59]url: /json_proto [09:56:59]query_string will be loaded in cgi processing [09:56:59]execute_cgi json_proto POST (null) [09:56:59]execute_cgi path=json_proto method=POST [09:56:59]POST find Content-Length [09:56:59]Host: 172.17.56.4:8080 [09:56:59]Content-Length: 677 [09:56:59]Content-Type: application/json [09:56:59] [09:56:59]POST finish read [09:56:59]Found Content-Length = 677 [09:56:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459290", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.020, "sum" : 330.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 330.00, "total" : 330.00, "payments": [ { "type": 0, "sum" : 330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:56:59]execute_script... [09:56: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)459290", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.020, "sum" : 330.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 330.00, "total" : 330.00, "payments": [ { "type": 0, "sum" : 330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:56:59]POST & json_proto [09:56:59]process_json_proto [09:56:59]json parsed OK: [09:56:59]protocol is kg_v1.0 [09:56:59]action value=close_receipt [09:56:59]process_action close_receipt [09:56:59]cmd_close_receipt [09:56:59]MH_GetDate [09:56:59]Write to MH i2c: F0 00 00 28 26 3D [09:56:59]Write i2c OK [09:56:59]MH_I2C_Read... [09:56:59]Read from MH i2c: F0 [09:56:59]MH_I2C_Read... [09:56:59]Read from MH i2c: F0 09 00 [09:56:59]MH_I2C_Read... [09:56:59]Read from MH i2c: F0 09 00 28 26 00 70 F2 94 66 C9 DC B2 64 5D [09:56:59]GetLastDocTimeStamp 1721037349 [09:56:59]current date 1721037424 [09:56:59]FM_GetShiftState [09:56:59]SAM_PROTO_GetShiftState [09:56:59]wFMCommunicate request_size=4 [09:56:59]MH_SAM_APDU [09:56:59]CAPDU: 80 13 01 00 [09:56:59]Write to MH i2c: E2 08 00 29 26 80 13 01 00 00 00 00 00 CC [09:56:59]Write i2c OK [09:56:59]MH_I2C_Read... [09:56:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:59]Read from MH i2c: E2 [09:56:59]MH_I2C_Read... [09:56:59]Read from MH i2c: E2 0E 00 [09:56:59]MH_I2C_Read... [09:56:59]Read from MH i2c: E2 0E 00 29 26 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 A5 [09:56:59]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [09:56:59]wFMCommunicate OK [09:56:59]SAM_PROTO_GetShiftState done [09:56:59]FM_GetShiftState done [09:56:59]opened in 1721003876 [09:56:59]opened+sec_in_day 1721090276 [09:56:59]quantity*price = 33031 [09:56:59]sum+1 = 33033 [09:56:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 330.00 Внесено: 330.00 СДАЧА: 0.00 НСП 1% : 2.92 НДС 12% : 35.08 Наличными: 330.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 61 15.07.2024 09:57 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165188 ФПД: 189227609963689 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T095704&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165188&fm=189227609963689&tin=02508201610067®Number=0000000000090829&sum=33000 [09:57:00]StoreToDocumentArchive [09:57:00]shift 448 fd 165188 [09:57:00]save to /storage/0448/doc_00165188 [09:57:00]save last doc name /storage/0448/doc_00165188 to /storage/kkm_last_doc_name [09:57:00]save OK [09:57:00]Clear old archive folders... [09:57:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:57:00]tlvbuf is 0143A9B0 [09:57:00]SAM_PROTO_ClearQueue [09:57:00]wFMCommunicate request_size=4 [09:57:00]MH_SAM_APDU [09:57:00]CAPDU: 80 09 00 00 [09:57:00]Write to MH i2c: E2 08 00 36 26 80 09 00 00 00 00 00 00 CE [09:57:00]Write i2c OK [09:57:00]MH_I2C_Read... [09:57:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:57:00]Read from MH i2c: E2 [09:57:00]MH_I2C_Read... [09:57:00]Read from MH i2c: E2 03 00 [09:57:00]MH_I2C_Read... [09:57:00]Read from MH i2c: E2 03 00 36 26 00 90 00 D0 [09:57:00]RAPDU: 90 00 [09:57:00]wFMCommunicate OK [09:57:00]SAM_PROTO_ClearQueue done [09:57:00]KKMCreateOFDPacket [09:57:00]OFDProtocolAddRootSTLVToBuf [09:57:00]FM_MakeSignedData [09:57:00]FM_MakeSignedData [09:57:00]SAM_PROTO_SignData [09:57:00]wFMCommunicate request_size=4 [09:57:00]MH_SAM_APDU [09:57:00]CAPDU: 80 0D 01 02 [09:57:00]Write to MH i2c: E2 08 00 37 26 80 0D 01 02 00 00 00 00 D6 [09:57:00]Write i2c OK [09:57:00]MH_I2C_Read... [09:57:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:57:00]Read from MH i2c: E2 [09:57:00]MH_I2C_Read... [09:57:00]Read from MH i2c: E2 03 00 [09:57:00]MH_I2C_Read... [09:57:00]Read from MH i2c: E2 03 00 37 26 00 90 00 D1 [09:57:00]RAPDU: 90 00 [09:57:00]wFMCommunicate OK [09:57:00]wFMCommunicate request_size=255 [09:57:00]MH_SAM_APDU [09:57: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 9C 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 70 F2 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 44 85 02 00 35 04 06 00 AC [09:57:00]Write to MH i2c: E2 02 01 38 26 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 9C 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 70 F2 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 44 85 02 00 35 04 06 00 AC 00 00 72 [09:57:00]Write i2c OK [09:57:00]MH_I2C_Read... [09:57:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:01]Read from MH i2c: E2 [09:57:01]MH_I2C_Read... [09:57:01]Read from MH i2c: E2 03 00 [09:57:01]MH_I2C_Read... [09:57:01]Read from MH i2c: E2 03 00 38 26 00 90 00 D2 [09:57:01]RAPDU: 90 00 [09:57:01]wFMCommunicate OK [09:57:01]wFMCommunicate request_size=10 [09:57:01]MH_SAM_APDU [09:57:01]CAPDU: 80 0D 02 02 05 19 FC 79 3C A9 [09:57:01]Write to MH i2c: E2 0D 00 39 26 80 0D 02 02 05 00 19 FC 79 3C A9 00 00 56 [09:57:01]Write i2c OK [09:57:01]MH_I2C_Read... [09:57:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:01]Read from MH i2c: E2 [09:57:01]MH_I2C_Read... [09:57:01]Read from MH i2c: E2 03 00 [09:57:01]MH_I2C_Read... [09:57:01]Read from MH i2c: E2 03 00 39 26 00 90 00 D3 [09:57:01]RAPDU: 90 00 [09:57:01]wFMCommunicate OK [09:57:01]wFMCommunicate request_size=4 [09:57:01]MH_SAM_APDU [09:57:01]CAPDU: 80 0D 03 02 [09:57:01]Write to MH i2c: E2 08 00 3A 26 80 0D 03 02 00 00 00 00 DB [09:57:01]Write i2c OK [09:57:01]MH_I2C_Read... [09:57:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:57:01]Read from MH i2c: E2 [09:57:01]MH_I2C_Read... [09:57:01]Read from MH i2c: E2 0B 00 [09:57:01]MH_I2C_Read... [09:57:01]Read from MH i2c: E2 0B 00 3A 26 00 54 C5 40 98 4C 4D 22 4A 90 00 D2 [09:57:01]RAPDU: 54 C5 40 98 4C 4D 22 4A 90 00 [09:57:01]wFMCommunicate OK [09:57:01]SAM_PROTO_SignData done [09:57:01]FM_MakeSignedData done [09:57:01]CreateOFDProtocolMessage [09:57:01]wFMCommunicate request_size=4 [09:57:01]MH_SAM_APDU [09:57:01]CAPDU: 80 11 00 00 [09:57:01]Write to MH i2c: E2 08 00 3B 26 80 11 00 00 00 00 00 00 DB [09:57:01]Write i2c OK [09:57:01]MH_I2C_Read... [09:57:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:01]Read from MH i2c: E2 [09:57:01]MH_I2C_Read... [09:57:01]Read from MH i2c: E2 17 00 [09:57:01]MH_I2C_Read... [09:57:01]Read from MH i2c: E2 17 00 3B 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 31 [09:57:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:57:01]wFMCommunicate OK [09:57:01]CreateOFDProtocolMessage done [09:57:01]OFDSenderStorePacket 165188 [09:57:01]StoreOFDPacket docnum=165188 [09:57:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 17 3F 07 01 7F D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 9C 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 70 F2 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 44 85 02 00 35 04 06 00 AC 19 FC 79 3C A9 54 C5 40 98 4C 4D 22 4A [09:57:01]CheckFolder [09:57:01]dirname=/storage/ofd_packets [09:57:01]CheckFolder done [09:57:01]ProducePacketName [09:57:01]name=ofd_packets/00165188 [09:57:01]NVStorageSaveData ofd_packets/00165188 [09:57:01]File name is /storage/ofd_packets/00165188 [09:57:01]Write 301 bytes [09:57:01]NVStorageSaveData done [09:57:01]OFDSenderStorePacket done [09:57:01]KKMCreateOFDPacket done [09:57:01]NVStorageSaveData kkm_last_timestamp [09:57:01]File name is /storage/kkm_last_timestamp [09:57:01]Write 4 bytes [09:57:01]NVStorageSaveData done [09:57:01]ExternCall_PrintAddStr [09:57:01]wPrintStart [09:57:01]Write to MH i2c: 01 00 00 3C 26 62 [09:57:01]Write i2c OK [09:57:01]MH_I2C_Read... [09:57:01]Read from MH i2c: 01 [09:57:01]MH_I2C_Read... [09:57:01]Read from MH i2c: 01 07 00 [09:57:01]MH_I2C_Read... [09:57:01]Read from MH i2c: 01 07 00 3C 26 00 00 00 00 00 FF 0F 77 [09:57:01]RasterBufferAndPrint [09:57:01]line Счет N : (1)459290 [09:57:01]line ИНН: 02508201610067 [09:57:01]line Контрольно-Кассовый Чек [09:57:01]line ПРОДАЖА [09:57:01]line ТРК (МРК, ГНК) : 12 [09:57:01]line Товар: 2710124130 [09:57:01]line Аи-92-К-5 [09:57:01]line 5.020 * 65.80 [09:57:01]line = 330.32 [09:57:01]line НДС 12% НСП 1% [09:57:01]line > о реализуемом товаре [09:57:01]line ОКРУГЛЕНИЕ: -0.32 [09:57:01]line ИТОГО: 330.00 [09:57:01]line Внесено: 330.00 [09:57:01]line СДАЧА: 0.00 [09:57:01]line НСП 1% : 2.92 [09:57:01]line НДС 12% : 35.08 [09:57:01]line Наличными: 330.00 [09:57:01]line Безнал.: 0.00 [09:57:01]line Место: АЗС № 72 "Партнер Нефть" [09:57:01]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:57:01]line СНО: Общий режим [09:57:01]line Чек 61 15.07.2024 09:57 [09:57:01]line Смена: 448 ФФД: 1.0 [09:57:01]line ЗНМ: 0300000160 [09:57:01]line РНМ: 0000000000090829 [09:57:01]line Версия ККМ: 001 [09:57:01]line ФМ: 0000000000874718 [09:57:01]line ФД: 165188 [09:57:01]line ФПД: 189227609963689 [09:57:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T095704&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165188&fm=189227609963689&tin=02508201610067®Number=0000000000090829&sum=33000 [09:57:01]written 0, free lines is 4095 [09:57:01]OFD Sender: Processing packet 165188 [packets to send 106, broken 105] [09:57:01]ProducePacketName [09:57:01]name=ofd_packets/00165188 [09:57:01]OFD Sender: To server: pG, [09:57:01]CommunicateWithHost lk.salyk.kg:30040 [09:57:01]ConnectInit lk.salyk.kg [09:57:01]Connected sock=10 [09:57: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 37 31 38 0F 01 00 00 17 3F 07 01 7F D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 9C 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 70 F2 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 44 85 02 00 35 04 06 00 AC 19 FC 79 3C A9 54 C5 40 98 4C 4D 22 4A [09:57:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 3F 03 47 00 BA F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 44 85 02 00 F4 03 04 00 FA 98 94 66 B6 04 01 00 00 AB 20 C9 18 50 37 11 80 [09:57:01]CommunicateWithHost err = 0 [09:57:01]CheckOFDResponse [09:57:01]1017 (14) - 77093643461234 [09:57:01]1041 (16) - 0000000000874718 [09:57:01]1040 (4) - 165188 [09:57:01]1012 (4) - 15.07.2024 03:35 [09:57:01]1206 (1) - 0 [09:57:01]OFD Sender: Remove packet 165188 [09:57:01]ProducePacketName [09:57:01]name=ofd_packets/00165188 [09:57:01]NVStorageDeleteData [09:57:01]Write to MH i2c: 01 00 00 66 26 8C [09:57:01]Write i2c OK [09:57:01]MH_I2C_Read... [09:57:01]Read from MH i2c: 01 [09:57:01]MH_I2C_Read... [09:57:01]Read from MH i2c: 01 07 00 [09:57:01]MH_I2C_Read... [09:57:01]Read from MH i2c: 01 07 00 66 26 00 00 00 00 00 F8 0C 97 [09:57:01]RasterBufferAndPrint [09:57:01]line [09:57:01]line [09:57:01]line [09:57:01]line [09:57:01]line [09:57:01]written 0, free lines is 3330 [09:57:01]MH_Cut [09:57:01]Write to MH i2c: D1 01 00 6D 26 01 65 [09:57:01]Write i2c OK [09:57:01]MH_I2C_Read... [09:57:01]Read from MH i2c: D1 [09:57:01]MH_I2C_Read... [09:57:01]Read from MH i2c: D1 01 00 [09:57:01]MH_I2C_Read... [09:57:01]Read from MH i2c: D1 01 00 6D 26 00 64 [09:57:01]Write to MH i2c: 01 00 00 6E 26 94 [09:57:01]Write i2c OK [09:57:01]MH_I2C_Read... [09:57:02]OFD Sender: No OFD packet to send [09:57:02]*** Cut start [09:57:02]*** Partial cut [09:57:02]*** CUTSNS_PIN = 1 [09:57:02]*** CUTSNS_PIN = 0 [09:57:02]*** Brake cut motor [09:57:03]Read from MH i2c: 01 [09:57:03]MH_I2C_Read... [09:57:03]*** Stop cut motor [09:57:03]*** Cut end [09:57:03]Read from MH i2c: 01 07 00 [09:57:03]MH_I2C_Read... [09:57:03]Read from MH i2c: 01 07 00 6E 26 00 00 00 00 00 FF 0F A9 [09:57:03]process_action close_receipt done [09:57:03]requested_data is exist [09:57:03]produce_requested_data [09:57:03]requested_item fm.sn is exist - process it [09:57:03]wFMCommunicate request_size=4 [09:57:03]MH_SAM_APDU [09:57:03]CAPDU: 80 11 00 00 [09:57:03]Write to MH i2c: E2 08 00 6F 26 80 11 00 00 00 00 00 00 0F [09:57:03]Write i2c OK [09:57:03]MH_I2C_Read... [09:57:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:03]Read from MH i2c: E2 [09:57:03]MH_I2C_Read... [09:57:03]Read from MH i2c: E2 17 00 [09:57:03]MH_I2C_Read... [09:57:03]Read from MH i2c: E2 17 00 6F 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 65 [09:57:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:57:03]wFMCommunicate OK [09:57:03]requested_item fd.num is exist - process it [09:57:03]SAM_PROTO_GetFieldsCounters [09:57:03]wFMCommunicate request_size=4 [09:57:03]MH_SAM_APDU [09:57:03]CAPDU: 80 13 00 00 [09:57:03]Write to MH i2c: E2 08 00 70 26 80 13 00 00 00 00 00 00 12 [09:57:03]Write i2c OK [09:57:03]MH_I2C_Read... [09:57:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:57:03]Read from MH i2c: E2 [09:57:03]MH_I2C_Read... [09:57:03]Read from MH i2c: E2 62 00 [09:57:03]MH_I2C_Read... [09:57:03]Read from MH i2c: E2 62 00 70 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 44 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [09:57: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 44 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:57:03]wFMCommunicate OK [09:57:03]SAM_PROTO_GetFieldsCounters done [09:57:03]requested_item shift.num is exist - process it [09:57:03]requested_item shift.opened is exist - process it [09:57:03]req_shift_opened [09:57:03]FM_GetShiftState [09:57:03]SAM_PROTO_GetShiftState [09:57:03]wFMCommunicate request_size=4 [09:57:03]MH_SAM_APDU [09:57:03]CAPDU: 80 13 01 00 [09:57:03]Write to MH i2c: E2 08 00 71 26 80 13 01 00 00 00 00 00 14 [09:57:03]Write i2c OK [09:57:03]MH_I2C_Read... [09:57:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:03]Read from MH i2c: E2 [09:57:03]MH_I2C_Read... [09:57:03]Read from MH i2c: E2 0E 00 [09:57:03]MH_I2C_Read... [09:57:03]Read from MH i2c: E2 0E 00 71 26 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 ED [09:57:03]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [09:57:03]wFMCommunicate OK [09:57:03]SAM_PROTO_GetShiftState done [09:57:03]FM_GetShiftState done [09:57:03]req_shift_opened done [09:57:03]requested_item shift.open_date is exist - process it [09:57:03]req_shift_open_date [09:57:03]req_shift_open_date done [09:57:03]produce_requested_data done [09:57:03]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165188,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [09:57:03]process_action_free close_receipt [09:57:03]json_value_free [09:57:03]json_value_free done [09:57:03]process_json_proto returns [09:57:03]Send response to host [09:57:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165188,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [09:57:03]free response buf [09:57:03]execute_script done [09:57:03]execute_script returns [09:57:03]free content buf [09:57:03]Sock 7.Close socket [09:57:03]Sock 7.Thread stoped [09:57:07]OFD Sender: No OFD packet to send [09:57:12]OFD Sender: No OFD packet to send [09:57:17]OFD Sender: No OFD packet to send [09:57:22]OFD Sender: No OFD packet to send [09:57:27]OFD Sender: No OFD packet to send [09:57:32]OFD Sender: No OFD packet to send [09:57:37]OFD Sender: No OFD packet to send [09:57:42]OFD Sender: No OFD packet to send [09:57:47]OFD Sender: No OFD packet to send [09:57:52]OFD Sender: No OFD packet to send [09:57:57]OFD Sender: No OFD packet to send [09:57:57]accept exits with 9 [09:57:57]New connection [09:57:57]New thread 3066785124 created [09:57:57]Thread 3066928484 joined [09:57:57]Waiting for new connection... [09:57:57] Sock 9.Parse request [09:57:57]Sock 9.Check first char [09:57:57]Sock 9.First char is OK [09:57:57]request: POST /json_proto HTTP/1.0 [09:57:57]Method: POST [09:57:57]URL: /json_proto [09:57:57]Method is POST - this is cgi request [09:57:57]url: /json_proto [09:57:57]query_string will be loaded in cgi processing [09:57:57]execute_cgi json_proto POST (null) [09:57:57]execute_cgi path=json_proto method=POST [09:57:57]POST find Content-Length [09:57:57]Host: 172.17.56.4:8080 [09:57:57]Content-Length: 674 [09:57:57]Content-Type: application/json [09:57:57] [09:57:57]POST finish read [09:57:57]Found Content-Length = 674 [09:57:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459291", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 4.180, "sum" : 300.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:57:57]execute_script... [09:57:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459291", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 4.180, "sum" : 300.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:57:57]POST & json_proto [09:57:57]process_json_proto [09:57:57]json parsed OK: [09:57:57]protocol is kg_v1.0 [09:57:57]action value=close_receipt [09:57:57]process_action close_receipt [09:57:57]cmd_close_receipt [09:57:57]MH_GetDate [09:57:57]Write to MH i2c: F0 00 00 72 26 87 [09:57:57]Write i2c OK [09:57:57]MH_I2C_Read... [09:57:57]Read from MH i2c: F0 [09:57:57]MH_I2C_Read... [09:57:57]Read from MH i2c: F0 09 00 [09:57:57]MH_I2C_Read... [09:57:57]Read from MH i2c: F0 09 00 72 26 00 AA F2 94 66 C9 DC B2 64 E1 [09:57:57]GetLastDocTimeStamp 1721037424 [09:57:57]current date 1721037482 [09:57:57]FM_GetShiftState [09:57:57]SAM_PROTO_GetShiftState [09:57:57]wFMCommunicate request_size=4 [09:57:57]MH_SAM_APDU [09:57:57]CAPDU: 80 13 01 00 [09:57:57]Write to MH i2c: E2 08 00 73 26 80 13 01 00 00 00 00 00 16 [09:57:57]Write i2c OK [09:57:57]MH_I2C_Read... [09:57:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:57]Read from MH i2c: E2 [09:57:57]MH_I2C_Read... [09:57:57]Read from MH i2c: E2 0E 00 [09:57:57]MH_I2C_Read... [09:57:57]Read from MH i2c: E2 0E 00 73 26 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 EF [09:57:57]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [09:57:57]wFMCommunicate OK [09:57:57]SAM_PROTO_GetShiftState done [09:57:57]FM_GetShiftState done [09:57:57]opened in 1721003876 [09:57:57]opened+sec_in_day 1721090276 [09:57:57]quantity*price = 30054 [09:57:57]sum+1 = 30055 [09:57:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.92 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 62 15.07.2024 09:58 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165189 ФПД: 188209639358177 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T095802&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165189&fm=188209639358177&tin=02508201610067®Number=0000000000090829&sum=30000 [09:57:58]StoreToDocumentArchive [09:57:58]shift 448 fd 165189 [09:57:58]save to /storage/0448/doc_00165189 [09:57:58]save last doc name /storage/0448/doc_00165189 to /storage/kkm_last_doc_name [09:57:58]save OK [09:57:58]Clear old archive folders... [09:57:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:57:58]tlvbuf is B6DA22D0 [09:57:58]SAM_PROTO_ClearQueue [09:57:58]wFMCommunicate request_size=4 [09:57:58]MH_SAM_APDU [09:57:58]CAPDU: 80 09 00 00 [09:57:58]Write to MH i2c: E2 08 00 80 26 80 09 00 00 00 00 00 00 18 [09:57:58]Write i2c OK [09:57:58]MH_I2C_Read... [09:57:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:57:59]Read from MH i2c: E2 [09:57:59]MH_I2C_Read... [09:57:59]Read from MH i2c: E2 03 00 [09:57:59]MH_I2C_Read... [09:57:59]Read from MH i2c: E2 03 00 80 26 00 90 00 1A [09:57:59]RAPDU: 90 00 [09:57:59]wFMCommunicate OK [09:57:59]SAM_PROTO_ClearQueue done [09:57:59]KKMCreateOFDPacket [09:57:59]OFDProtocolAddRootSTLVToBuf [09:57:59]FM_MakeSignedData [09:57:59]FM_MakeSignedData [09:57:59]SAM_PROTO_SignData [09:57:59]wFMCommunicate request_size=4 [09:57:59]MH_SAM_APDU [09:57:59]CAPDU: 80 0D 01 02 [09:57:59]Write to MH i2c: E2 08 00 81 26 80 0D 01 02 00 00 00 00 20 [09:57:59]Write i2c OK [09:57:59]MH_I2C_Read... [09:57:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:57:59]Read from MH i2c: E2 [09:57:59]MH_I2C_Read... [09:57:59]Read from MH i2c: E2 03 00 [09:57:59]MH_I2C_Read... [09:57:59]Read from MH i2c: E2 03 00 81 26 00 90 00 1B [09:57:59]RAPDU: 90 00 [09:57:59]wFMCommunicate OK [09:57:59]wFMCommunicate request_size=255 [09:57:59]MH_SAM_APDU [09:57:59]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 AA F2 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 45 85 02 00 35 04 06 00 AB 2C F8 B2 [09:57:59]Write to MH i2c: E2 02 01 82 26 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 AA F2 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 45 85 02 00 35 04 06 00 AB 2C F8 B2 00 00 AF [09:57:59]Write i2c OK [09:57:59]MH_I2C_Read... [09:57:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:59]Read from MH i2c: E2 [09:57:59]MH_I2C_Read... [09:57:59]Read from MH i2c: E2 03 00 [09:57:59]MH_I2C_Read... [09:57:59]Read from MH i2c: E2 03 00 82 26 00 90 00 1C [09:57:59]RAPDU: 90 00 [09:57:59]wFMCommunicate OK [09:57:59]wFMCommunicate request_size=7 [09:57:59]MH_SAM_APDU [09:57:59]CAPDU: 80 0D 02 02 02 7E E1 [09:57:59]Write to MH i2c: E2 0A 00 83 26 80 0D 02 02 02 00 7E E1 00 00 86 [09:57:59]Write i2c OK [09:57:59]MH_I2C_Read... [09:57:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:59]Read from MH i2c: E2 [09:57:59]MH_I2C_Read... [09:57:59]Read from MH i2c: E2 03 00 [09:57:59]MH_I2C_Read... [09:57:59]Read from MH i2c: E2 03 00 83 26 00 90 00 1D [09:57:59]RAPDU: 90 00 [09:57:59]wFMCommunicate OK [09:57:59]wFMCommunicate request_size=4 [09:57:59]MH_SAM_APDU [09:57:59]CAPDU: 80 0D 03 02 [09:57:59]Write to MH i2c: E2 08 00 84 26 80 0D 03 02 00 00 00 00 25 [09:57:59]Write i2c OK [09:57:59]MH_I2C_Read... [09:57:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:57:59]Read from MH i2c: E2 [09:57:59]MH_I2C_Read... [09:57:59]Read from MH i2c: E2 0B 00 [09:57:59]MH_I2C_Read... [09:57:59]Read from MH i2c: E2 0B 00 84 26 00 3B EA FA DF 83 BB 2C 51 90 00 DF [09:57:59]RAPDU: 3B EA FA DF 83 BB 2C 51 90 00 [09:57:59]wFMCommunicate OK [09:57:59]SAM_PROTO_SignData done [09:57:59]FM_MakeSignedData done [09:57:59]CreateOFDProtocolMessage [09:57:59]wFMCommunicate request_size=4 [09:57:59]MH_SAM_APDU [09:57:59]CAPDU: 80 11 00 00 [09:57:59]Write to MH i2c: E2 08 00 85 26 80 11 00 00 00 00 00 00 25 [09:57:59]Write i2c OK [09:57:59]MH_I2C_Read... [09:57:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:59]Read from MH i2c: E2 [09:57:59]MH_I2C_Read... [09:57:59]Read from MH i2c: E2 17 00 [09:57:59]MH_I2C_Read... [09:57:59]Read from MH i2c: E2 17 00 85 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7B [09:57:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:57:59]wFMCommunicate OK [09:57:59]CreateOFDProtocolMessage done [09:57:59]OFDSenderStorePacket 165189 [09:57:59]StoreOFDPacket docnum=165189 [09:57:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 24 F6 04 01 B1 84 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 AA F2 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 45 85 02 00 35 04 06 00 AB 2C F8 B2 7E E1 3B EA FA DF 83 BB 2C 51 [09:57:59]CheckFolder [09:57:59]dirname=/storage/ofd_packets [09:57:59]CheckFolder done [09:57:59]ProducePacketName [09:57:59]name=ofd_packets/00165189 [09:57:59]NVStorageSaveData ofd_packets/00165189 [09:57:59]File name is /storage/ofd_packets/00165189 [09:57:59]Write 298 bytes [09:57:59]NVStorageSaveData done [09:57:59]OFDSenderStorePacket done [09:57:59]KKMCreateOFDPacket done [09:57:59]NVStorageSaveData kkm_last_timestamp [09:57:59]File name is /storage/kkm_last_timestamp [09:57:59]Write 4 bytes [09:57:59]NVStorageSaveData done [09:57:59]ExternCall_PrintAddStr [09:57:59]wPrintStart [09:57:59]Write to MH i2c: 01 00 00 86 26 AC [09:57:59]Write i2c OK [09:57:59]MH_I2C_Read... [09:57:59]Read from MH i2c: 01 [09:57:59]MH_I2C_Read... [09:57:59]Read from MH i2c: 01 07 00 [09:57:59]MH_I2C_Read... [09:57:59]Read from MH i2c: 01 07 00 86 26 00 00 00 00 00 FF 0F C1 [09:57:59]RasterBufferAndPrint [09:57:59]line Счет N : (1)459291 [09:57:59]line ИНН: 02508201610067 [09:57:59]line Контрольно-Кассовый Чек [09:57:59]line ПРОДАЖА [09:57:59]line ТРК (МРК, ГНК) : 21 [09:57:59]line Товар: 2710194210 [09:57:59]line ДТ-К-5 [09:57:59]line 4.180 * 71.90 [09:57:59]line = 300.54 [09:57:59]line НДС 12% НСП 1% [09:57:59]line > о реализуемом товаре [09:57:59]line ОКРУГЛЕНИЕ: -0.54 [09:57:59]line ИТОГО: 300.00 [09:57:59]line Внесено: 300.00 [09:57:59]line СДАЧА: 0.00 [09:57:59]line НСП 1% : 2.66 [09:57:59]line НДС 12% : 31.92 [09:57:59]line Наличными: 300.00 [09:57:59]line Безнал.: 0.00 [09:57:59]line Место: АЗС № 72 "Партнер Нефть" [09:57:59]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:57:59]line СНО: Общий режим [09:57:59]line Чек 62 15.07.2024 09:58 [09:57:59]line Смена: 448 ФФД: 1.0 [09:57:59]line ЗНМ: 0300000160 [09:57:59]line РНМ: 0000000000090829 [09:57:59]line Версия ККМ: 001 [09:57:59]line ФМ: 0000000000874718 [09:57:59]line ФД: 165189 [09:57:59]line ФПД: 188209639358177 [09:57:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T095802&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165189&fm=188209639358177&tin=02508201610067®Number=0000000000090829&sum=30000 [09:57:59]OFD Sender: Processing packet 165189 [packets to send 106, broken 105] [09:57:59]ProducePacketName [09:57:59]name=ofd_packets/00165189 [09:57:59]OFD Sender: To server: pG, [09:57:59]CommunicateWithHost lk.salyk.kg:30040 [09:57:59]ConnectInit lk.salyk.kg [09:57:59]written 0, free lines is 4095 [09:57:59]Connected sock=10 [09:57:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 24 F6 04 01 B1 84 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 AA F2 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 45 85 02 00 35 04 06 00 AB 2C F8 B2 7E E1 3B EA FA DF 83 BB 2C 51 [09:58:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 03 44 47 00 7D 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 45 85 02 00 F4 03 04 00 35 99 94 66 B6 04 01 00 00 79 73 4F 39 37 6F 93 D8 [09:58:00]CommunicateWithHost err = 0 [09:58:00]CheckOFDResponse [09:58:00]1017 (14) - 77093643461234 [09:58:00]1041 (16) - 0000000000874718 [09:58:00]1040 (4) - 165189 [09:58:00]1012 (4) - 15.07.2024 03:36 [09:58:00]1206 (1) - 0 [09:58:00]OFD Sender: Remove packet 165189 [09:58:00]ProducePacketName [09:58:00]name=ofd_packets/00165189 [09:58:00]NVStorageDeleteData [09:58:00]Write to MH i2c: 01 00 00 B0 26 D6 [09:58:00]Write i2c OK [09:58:00]MH_I2C_Read... [09:58:00]Read from MH i2c: 01 [09:58:00]MH_I2C_Read... [09:58:00]Read from MH i2c: 01 07 00 [09:58:00]MH_I2C_Read... [09:58:00]Read from MH i2c: 01 07 00 B0 26 00 00 00 00 00 F3 0C DC [09:58:00]RasterBufferAndPrint [09:58:00]line [09:58:00]line [09:58:00]line [09:58:00]line [09:58:00]line [09:58:00]written 0, free lines is 3321 [09:58:00]MH_Cut [09:58:00]Write to MH i2c: D1 01 00 B7 26 01 AF [09:58:00]Write i2c OK [09:58:00]MH_I2C_Read... [09:58:00]Read from MH i2c: D1 [09:58:00]MH_I2C_Read... [09:58:00]Read from MH i2c: D1 01 00 [09:58:00]MH_I2C_Read... [09:58:00]Read from MH i2c: D1 01 00 B7 26 00 AE [09:58:00]Write to MH i2c: 01 00 00 B8 26 DE [09:58:00]Write i2c OK [09:58:00]MH_I2C_Read... [09:58:00]OFD Sender: No OFD packet to send [09:58:00]*** Cut start [09:58:00]*** Partial cut [09:58:00]*** CUTSNS_PIN = 1 [09:58:00]*** CUTSNS_PIN = 0 [09:58:01]*** Brake cut motor [09:58:01]Read from MH i2c: 01 [09:58:01]MH_I2C_Read... [09:58:01]*** Stop cut motor [09:58:01]*** Cut end [09:58:01]Read from MH i2c: 01 07 00 [09:58:01]MH_I2C_Read... [09:58:01]Read from MH i2c: 01 07 00 B8 26 00 00 00 00 00 FF 0F F3 [09:58:01]process_action close_receipt done [09:58:01]requested_data is exist [09:58:01]produce_requested_data [09:58:01]requested_item fm.sn is exist - process it [09:58:01]wFMCommunicate request_size=4 [09:58:01]MH_SAM_APDU [09:58:01]CAPDU: 80 11 00 00 [09:58:01]Write to MH i2c: E2 08 00 B9 26 80 11 00 00 00 00 00 00 59 [09:58:01]Write i2c OK [09:58:01]MH_I2C_Read... [09:58:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:01]Read from MH i2c: E2 [09:58:01]MH_I2C_Read... [09:58:01]Read from MH i2c: E2 17 00 [09:58:01]MH_I2C_Read... [09:58:01]Read from MH i2c: E2 17 00 B9 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AF [09:58:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:58:01]wFMCommunicate OK [09:58:01]requested_item fd.num is exist - process it [09:58:01]SAM_PROTO_GetFieldsCounters [09:58:01]wFMCommunicate request_size=4 [09:58:01]MH_SAM_APDU [09:58:01]CAPDU: 80 13 00 00 [09:58:01]Write to MH i2c: E2 08 00 BA 26 80 13 00 00 00 00 00 00 5C [09:58:01]Write i2c OK [09:58:01]MH_I2C_Read... [09:58:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:58:01]Read from MH i2c: E2 [09:58:01]MH_I2C_Read... [09:58:01]Read from MH i2c: E2 62 00 [09:58:01]MH_I2C_Read... [09:58:01]Read from MH i2c: E2 62 00 BA 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 45 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [09:58:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 45 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:58:01]wFMCommunicate OK [09:58:01]SAM_PROTO_GetFieldsCounters done [09:58:01]requested_item shift.num is exist - process it [09:58:01]requested_item shift.opened is exist - process it [09:58:01]req_shift_opened [09:58:01]FM_GetShiftState [09:58:01]SAM_PROTO_GetShiftState [09:58:01]wFMCommunicate request_size=4 [09:58:01]MH_SAM_APDU [09:58:01]CAPDU: 80 13 01 00 [09:58:01]Write to MH i2c: E2 08 00 BB 26 80 13 01 00 00 00 00 00 5E [09:58:01]Write i2c OK [09:58:01]MH_I2C_Read... [09:58:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:01]Read from MH i2c: E2 [09:58:01]MH_I2C_Read... [09:58:01]Read from MH i2c: E2 0E 00 [09:58:01]MH_I2C_Read... [09:58:01]Read from MH i2c: E2 0E 00 BB 26 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 37 [09:58:01]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [09:58:01]wFMCommunicate OK [09:58:01]SAM_PROTO_GetShiftState done [09:58:01]FM_GetShiftState done [09:58:01]req_shift_opened done [09:58:01]requested_item shift.open_date is exist - process it [09:58:01]req_shift_open_date [09:58:01]req_shift_open_date done [09:58:01]produce_requested_data done [09:58:01]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165189,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [09:58:01]process_action_free close_receipt [09:58:01]json_value_free [09:58:01]json_value_free done [09:58:01]process_json_proto returns [09:58:01]Send response to host [09:58:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165189,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [09:58:01]free response buf [09:58:01]execute_script done [09:58:01]execute_script returns [09:58:01]free content buf [09:58:01]Sock 9.Close socket [09:58:01]Sock 9.Thread stoped [09:58:05]OFD Sender: No OFD packet to send [09:58:10]OFD Sender: No OFD packet to send [09:58:15]OFD Sender: No OFD packet to send [09:58:20]OFD Sender: No OFD packet to send [09:58:24]accept exits with 7 [09:58:24]New connection [09:58:24]New thread 3066928484 created [09:58:24]Thread 3066785124 joined [09:58:24]Waiting for new connection... [09:58:24] Sock 7.Parse request [09:58:24]Sock 7.Check first char [09:58:24]Sock 7.First char is OK [09:58:24]request: POST /json_proto HTTP/1.0 [09:58:24]Method: POST [09:58:24]URL: /json_proto [09:58:24]Method is POST - this is cgi request [09:58:24]url: /json_proto [09:58:24]query_string will be loaded in cgi processing [09:58:24]execute_cgi json_proto POST (null) [09:58:24]execute_cgi path=json_proto method=POST [09:58:24]POST find Content-Length [09:58:24]Host: 172.17.56.4:8080 [09:58:24]Content-Length: 674 [09:58:24]Content-Type: application/json [09:58:24] [09:58:24]POST finish read [09:58:24]Found Content-Length = 674 [09:58:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459292", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 4.180, "sum" : 300.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:24]execute_script... [09:58:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459292", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 4.180, "sum" : 300.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:24]POST & json_proto [09:58:24]process_json_proto [09:58:24]json parsed OK: [09:58:24]protocol is kg_v1.0 [09:58:24]action value=close_receipt [09:58:24]process_action close_receipt [09:58:24]cmd_close_receipt [09:58:24]MH_GetDate [09:58:24]Write to MH i2c: F0 00 00 BC 26 D1 [09:58:24]Write i2c OK [09:58:24]MH_I2C_Read... [09:58:24]Read from MH i2c: F0 [09:58:24]MH_I2C_Read... [09:58:24]Read from MH i2c: F0 09 00 [09:58:24]MH_I2C_Read... [09:58:24]Read from MH i2c: F0 09 00 BC 26 00 C5 F2 94 66 C9 DC B2 64 46 [09:58:24]GetLastDocTimeStamp 1721037482 [09:58:24]current date 1721037509 [09:58:24]FM_GetShiftState [09:58:24]SAM_PROTO_GetShiftState [09:58:24]wFMCommunicate request_size=4 [09:58:24]MH_SAM_APDU [09:58:24]CAPDU: 80 13 01 00 [09:58:24]Write to MH i2c: E2 08 00 BD 26 80 13 01 00 00 00 00 00 60 [09:58:24]Write i2c OK [09:58:24]MH_I2C_Read... [09:58:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:24]Read from MH i2c: E2 [09:58:24]MH_I2C_Read... [09:58:24]Read from MH i2c: E2 0E 00 [09:58:24]MH_I2C_Read... [09:58:24]Read from MH i2c: E2 0E 00 BD 26 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 39 [09:58:24]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [09:58:24]wFMCommunicate OK [09:58:24]SAM_PROTO_GetShiftState done [09:58:24]FM_GetShiftState done [09:58:24]opened in 1721003876 [09:58:24]opened+sec_in_day 1721090276 [09:58:24]quantity*price = 30054 [09:58:24]sum+1 = 30055 [09:58:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.92 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 63 15.07.2024 09:58 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165190 ФПД: 246704177404881 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T095829&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165190&fm=246704177404881&tin=02508201610067®Number=0000000000090829&sum=30000 [09:58:25]StoreToDocumentArchive [09:58:25]shift 448 fd 165190 [09:58:25]save to /storage/0448/doc_00165190 [09:58:25]save last doc name /storage/0448/doc_00165190 to /storage/kkm_last_doc_name [09:58:25]save OK [09:58:25]Clear old archive folders... [09:58:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:58:25]tlvbuf is B6DA2940 [09:58:25]SAM_PROTO_ClearQueue [09:58:25]wFMCommunicate request_size=4 [09:58:25]MH_SAM_APDU [09:58:25]CAPDU: 80 09 00 00 [09:58:25]Write to MH i2c: E2 08 00 CA 26 80 09 00 00 00 00 00 00 62 [09:58:25]Write i2c OK [09:58:25]MH_I2C_Read... [09:58:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:58:25]OFD Sender: No OFD packet to send [09:58:25]Read from MH i2c: E2 [09:58:25]MH_I2C_Read... [09:58:25]Read from MH i2c: E2 03 00 [09:58:25]MH_I2C_Read... [09:58:25]Read from MH i2c: E2 03 00 CA 26 00 90 00 64 [09:58:25]RAPDU: 90 00 [09:58:25]wFMCommunicate OK [09:58:25]SAM_PROTO_ClearQueue done [09:58:25]KKMCreateOFDPacket [09:58:25]OFDProtocolAddRootSTLVToBuf [09:58:25]FM_MakeSignedData [09:58:25]FM_MakeSignedData [09:58:25]SAM_PROTO_SignData [09:58:25]wFMCommunicate request_size=4 [09:58:25]MH_SAM_APDU [09:58:25]CAPDU: 80 0D 01 02 [09:58:25]Write to MH i2c: E2 08 00 CB 26 80 0D 01 02 00 00 00 00 6A [09:58:25]Write i2c OK [09:58:25]MH_I2C_Read... [09:58:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:58:25]Read from MH i2c: E2 [09:58:25]MH_I2C_Read... [09:58:25]Read from MH i2c: E2 03 00 [09:58:25]MH_I2C_Read... [09:58:25]Read from MH i2c: E2 03 00 CB 26 00 90 00 65 [09:58:25]RAPDU: 90 00 [09:58:25]wFMCommunicate OK [09:58:25]wFMCommunicate request_size=255 [09:58:25]MH_SAM_APDU [09:58:25]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 C5 F2 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 46 85 02 00 35 04 06 00 E0 60 4A DB [09:58:25]Write to MH i2c: E2 02 01 CC 26 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 C5 F2 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 46 85 02 00 35 04 06 00 E0 60 4A DB 00 00 FA [09:58:25]Write i2c OK [09:58:25]MH_I2C_Read... [09:58:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:26]Read from MH i2c: E2 [09:58:26]MH_I2C_Read... [09:58:26]Read from MH i2c: E2 03 00 [09:58:26]MH_I2C_Read... [09:58:26]Read from MH i2c: E2 03 00 CC 26 00 90 00 66 [09:58:26]RAPDU: 90 00 [09:58:26]wFMCommunicate OK [09:58:26]wFMCommunicate request_size=7 [09:58:26]MH_SAM_APDU [09:58:26]CAPDU: 80 0D 02 02 02 DB D1 [09:58:26]Write to MH i2c: E2 0A 00 CD 26 80 0D 02 02 02 00 DB D1 00 00 1D [09:58:26]Write i2c OK [09:58:26]MH_I2C_Read... [09:58:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:26]Read from MH i2c: E2 [09:58:26]MH_I2C_Read... [09:58:26]Read from MH i2c: E2 03 00 [09:58:26]MH_I2C_Read... [09:58:26]Read from MH i2c: E2 03 00 CD 26 00 90 00 67 [09:58:26]RAPDU: 90 00 [09:58:26]wFMCommunicate OK [09:58:26]wFMCommunicate request_size=4 [09:58:26]MH_SAM_APDU [09:58:26]CAPDU: 80 0D 03 02 [09:58:26]Write to MH i2c: E2 08 00 CE 26 80 0D 03 02 00 00 00 00 6F [09:58:26]Write i2c OK [09:58:26]MH_I2C_Read... [09:58:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:58:26]Read from MH i2c: E2 [09:58:26]MH_I2C_Read... [09:58:26]Read from MH i2c: E2 0B 00 [09:58:26]MH_I2C_Read... [09:58:26]Read from MH i2c: E2 0B 00 CE 26 00 AE D3 9A 26 C9 87 C4 81 90 00 46 [09:58:26]RAPDU: AE D3 9A 26 C9 87 C4 81 90 00 [09:58:26]wFMCommunicate OK [09:58:26]SAM_PROTO_SignData done [09:58:26]FM_MakeSignedData done [09:58:26]CreateOFDProtocolMessage [09:58:26]wFMCommunicate request_size=4 [09:58:26]MH_SAM_APDU [09:58:26]CAPDU: 80 11 00 00 [09:58:26]Write to MH i2c: E2 08 00 CF 26 80 11 00 00 00 00 00 00 6F [09:58:26]Write i2c OK [09:58:26]MH_I2C_Read... [09:58:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:26]Read from MH i2c: E2 [09:58:26]MH_I2C_Read... [09:58:26]Read from MH i2c: E2 17 00 [09:58:26]MH_I2C_Read... [09:58:26]Read from MH i2c: E2 17 00 CF 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C5 [09:58:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:58:26]wFMCommunicate OK [09:58:26]CreateOFDProtocolMessage done [09:58:26]OFDSenderStorePacket 165190 [09:58:26]StoreOFDPacket docnum=165190 [09:58:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 FD AE 04 01 3C D7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 C5 F2 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 46 85 02 00 35 04 06 00 E0 60 4A DB DB D1 AE D3 9A 26 C9 87 C4 81 [09:58:26]CheckFolder [09:58:26]dirname=/storage/ofd_packets [09:58:26]CheckFolder done [09:58:26]ProducePacketName [09:58:26]name=ofd_packets/00165190 [09:58:26]NVStorageSaveData ofd_packets/00165190 [09:58:26]File name is /storage/ofd_packets/00165190 [09:58:26]Write 298 bytes [09:58:26]NVStorageSaveData done [09:58:26]OFDSenderStorePacket done [09:58:26]KKMCreateOFDPacket done [09:58:26]NVStorageSaveData kkm_last_timestamp [09:58:26]File name is /storage/kkm_last_timestamp [09:58:26]Write 4 bytes [09:58:26]NVStorageSaveData done [09:58:26]ExternCall_PrintAddStr [09:58:26]wPrintStart [09:58:26]Write to MH i2c: 01 00 00 D0 26 F6 [09:58:26]Write i2c OK [09:58:26]MH_I2C_Read... [09:58:26]Read from MH i2c: 01 [09:58:26]MH_I2C_Read... [09:58:26]Read from MH i2c: 01 07 00 [09:58:26]MH_I2C_Read... [09:58:26]Read from MH i2c: 01 07 00 D0 26 00 00 00 00 00 FF 0F 0B [09:58:26]RasterBufferAndPrint [09:58:26]line Счет N : (1)459292 [09:58:26]line ИНН: 02508201610067 [09:58:26]line Контрольно-Кассовый Чек [09:58:26]line ПРОДАЖА [09:58:26]line ТРК (МРК, ГНК) : 21 [09:58:26]line Товар: 2710194210 [09:58:26]line ДТ-К-5 [09:58:26]line 4.180 * 71.90 [09:58:26]line = 300.54 [09:58:26]line НДС 12% НСП 1% [09:58:26]line > о реализуемом товаре [09:58:26]line ОКРУГЛЕНИЕ: -0.54 [09:58:26]line ИТОГО: 300.00 [09:58:26]line Внесено: 300.00 [09:58:26]line СДАЧА: 0.00 [09:58:26]line НСП 1% : 2.66 [09:58:26]line НДС 12% : 31.92 [09:58:26]line Наличными: 300.00 [09:58:26]line Безнал.: 0.00 [09:58:26]line Место: АЗС № 72 "Партнер Нефть" [09:58:26]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:58:26]line СНО: Общий режим [09:58:26]line Чек 63 15.07.2024 09:58 [09:58:26]line Смена: 448 ФФД: 1.0 [09:58:26]line ЗНМ: 0300000160 [09:58:26]line РНМ: 0000000000090829 [09:58:26]line Версия ККМ: 001 [09:58:26]line ФМ: 0000000000874718 [09:58:26]line ФД: 165190 [09:58:26]line ФПД: 246704177404881 [09:58:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T095829&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165190&fm=246704177404881&tin=02508201610067®Number=0000000000090829&sum=30000 [09:58:26]OFD Sender: Processing packet 165190 [packets to send 106, broken 105] [09:58:26]ProducePacketName [09:58:26]name=ofd_packets/00165190 [09:58:26]OFD Sender: To server: pG, [09:58:26]CommunicateWithHost lk.salyk.kg:30040 [09:58:26]ConnectInit lk.salyk.kg [09:58:26]written 0, free lines is 4095 [09:58:26]Connected sock=10 [09:58:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 FD AE 04 01 3C D7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 C5 F2 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 46 85 02 00 35 04 06 00 E0 60 4A DB DB D1 AE D3 9A 26 C9 87 C4 81 [09:58:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 AF 27 47 00 06 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 46 85 02 00 F4 03 04 00 4F 99 94 66 B6 04 01 00 00 CD 81 71 64 1B AC 27 D2 [09:58:26]CommunicateWithHost err = 0 [09:58:26]CheckOFDResponse [09:58:26]1017 (14) - 77093643461234 [09:58:26]1041 (16) - 0000000000874718 [09:58:26]1040 (4) - 165190 [09:58:26]1012 (4) - 15.07.2024 03:36 [09:58:26]1206 (1) - 0 [09:58:26]OFD Sender: Remove packet 165190 [09:58:26]ProducePacketName [09:58:26]name=ofd_packets/00165190 [09:58:26]NVStorageDeleteData [09:58:26]Write to MH i2c: 01 00 00 FA 26 20 [09:58:26]Write i2c OK [09:58:26]MH_I2C_Read... [09:58:26]Read from MH i2c: 01 [09:58:26]MH_I2C_Read... [09:58:26]Read from MH i2c: 01 07 00 [09:58:26]MH_I2C_Read... [09:58:26]Read from MH i2c: 01 07 00 FA 26 00 00 00 00 00 F2 0C 25 [09:58:26]RasterBufferAndPrint [09:58:26]line [09:58:26]line [09:58:26]line [09:58:26]line [09:58:26]line [09:58:26]written 0, free lines is 3320 [09:58:26]MH_Cut [09:58:26]Write to MH i2c: D1 01 00 01 27 01 FA [09:58:26]Write i2c OK [09:58:26]MH_I2C_Read... [09:58:26]Read from MH i2c: D1 [09:58:26]MH_I2C_Read... [09:58:26]Read from MH i2c: D1 01 00 [09:58:26]MH_I2C_Read... [09:58:26]Read from MH i2c: D1 01 00 01 27 00 F9 [09:58:26]Write to MH i2c: 01 00 00 02 27 29 [09:58:26]Write i2c OK [09:58:26]MH_I2C_Read... [09:58:27]OFD Sender: No OFD packet to send [09:58:27]*** Cut start [09:58:27]*** Partial cut [09:58:27]*** CUTSNS_PIN = 1 [09:58:27]*** CUTSNS_PIN = 0 [09:58:27]*** Brake cut motor [09:58:28]Read from MH i2c: 01 [09:58:28]MH_I2C_Read... [09:58:28]*** Stop cut motor [09:58:28]*** Cut end [09:58:28]Read from MH i2c: 01 07 00 [09:58:28]MH_I2C_Read... [09:58:28]Read from MH i2c: 01 07 00 02 27 00 00 00 00 00 FF 0F 3E [09:58:28]process_action close_receipt done [09:58:28]requested_data is exist [09:58:28]produce_requested_data [09:58:28]requested_item fm.sn is exist - process it [09:58:28]wFMCommunicate request_size=4 [09:58:28]MH_SAM_APDU [09:58:28]CAPDU: 80 11 00 00 [09:58:28]Write to MH i2c: E2 08 00 03 27 80 11 00 00 00 00 00 00 A4 [09:58:28]Write i2c OK [09:58:28]MH_I2C_Read... [09:58:28]Read from MH i2c: E2 [09:58:28]MH_I2C_Read... [09:58:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:28]Read from MH i2c: E2 17 00 [09:58:28]MH_I2C_Read... [09:58:28]Read from MH i2c: E2 17 00 03 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FA [09:58:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:58:28]wFMCommunicate OK [09:58:28]requested_item fd.num is exist - process it [09:58:28]SAM_PROTO_GetFieldsCounters [09:58:28]wFMCommunicate request_size=4 [09:58:28]MH_SAM_APDU [09:58:28]CAPDU: 80 13 00 00 [09:58:28]Write to MH i2c: E2 08 00 04 27 80 13 00 00 00 00 00 00 A7 [09:58:28]Write i2c OK [09:58:28]MH_I2C_Read... [09:58:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:58:28]Read from MH i2c: E2 [09:58:28]MH_I2C_Read... [09:58:28]Read from MH i2c: E2 62 00 [09:58:28]MH_I2C_Read... [09:58:28]Read from MH i2c: E2 62 00 04 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 46 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 19 [09:58:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 46 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:58:28]wFMCommunicate OK [09:58:28]SAM_PROTO_GetFieldsCounters done [09:58:28]requested_item shift.num is exist - process it [09:58:28]requested_item shift.opened is exist - process it [09:58:28]req_shift_opened [09:58:28]FM_GetShiftState [09:58:28]SAM_PROTO_GetShiftState [09:58:28]wFMCommunicate request_size=4 [09:58:28]MH_SAM_APDU [09:58:28]CAPDU: 80 13 01 00 [09:58:28]Write to MH i2c: E2 08 00 05 27 80 13 01 00 00 00 00 00 A9 [09:58:28]Write i2c OK [09:58:28]MH_I2C_Read... [09:58:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:28]Read from MH i2c: E2 [09:58:28]MH_I2C_Read... [09:58:28]Read from MH i2c: E2 0E 00 [09:58:28]MH_I2C_Read... [09:58:28]Read from MH i2c: E2 0E 00 05 27 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 82 [09:58:28]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [09:58:28]wFMCommunicate OK [09:58:28]SAM_PROTO_GetShiftState done [09:58:28]FM_GetShiftState done [09:58:28]req_shift_opened done [09:58:28]requested_item shift.open_date is exist - process it [09:58:28]req_shift_open_date [09:58:28]req_shift_open_date done [09:58:28]produce_requested_data done [09:58:28]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165190,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [09:58:28]process_action_free close_receipt [09:58:28]json_value_free [09:58:28]json_value_free done [09:58:28]process_json_proto returns [09:58:28]Send response to host [09:58:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165190,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [09:58:28]free response buf [09:58:28]execute_script done [09:58:28]execute_script returns [09:58:28]free content buf [09:58:28]Sock 7.Close socket [09:58:28]Sock 7.Thread stoped [09:58:32]OFD Sender: No OFD packet to send [09:58:37]OFD Sender: No OFD packet to send [09:58:42]OFD Sender: No OFD packet to send [09:58:47]OFD Sender: No OFD packet to send [09:58:52]OFD Sender: No OFD packet to send [09:58:57]OFD Sender: No OFD packet to send [09:59:02]OFD Sender: No OFD packet to send [09:59:07]OFD Sender: No OFD packet to send [09:59:12]OFD Sender: No OFD packet to send [09:59:17]OFD Sender: No OFD packet to send [09:59:22]OFD Sender: No OFD packet to send [09:59:27]OFD Sender: No OFD packet to send [09:59:32]OFD Sender: No OFD packet to send [09:59:37]OFD Sender: No OFD packet to send [09:59:42]OFD Sender: No OFD packet to send [09:59:47]OFD Sender: No OFD packet to send [09:59:52]OFD Sender: No OFD packet to send [09:59:57]accept exits with 9 [09:59:57]New connection [09:59:57]New thread 3066785124 created [09:59:57]Thread 3066928484 joined [09:59:57]Waiting for new connection... [09:59:57] Sock 9.Parse request [09:59:57]Sock 9.Check first char [09:59:57]Sock 9.First char is OK [09:59:57]request: POST /json_proto HTTP/1.0 [09:59:57]Method: POST [09:59:57]URL: /json_proto [09:59:57]Method is POST - this is cgi request [09:59:57]url: /json_proto [09:59:57]query_string will be loaded in cgi processing [09:59:57]execute_cgi json_proto POST (null) [09:59:57]execute_cgi path=json_proto method=POST [09:59:57]POST find Content-Length [09:59:57]Host: 172.17.56.4:8080 [09:59:57]Content-Length: 682 [09:59:57]Content-Type: application/json [09:59:57] [09:59:57]POST finish read [09:59:57]Found Content-Length = 682 [09:59:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459293", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:57]execute_script... [09:59:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459293", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:57]POST & json_proto [09:59:57]process_json_proto [09:59:57]json parsed OK: [09:59:57]protocol is kg_v1.0 [09:59:57]action value=close_receipt [09:59:57]process_action close_receipt [09:59:57]cmd_close_receipt [09:59:57]MH_GetDate [09:59:57]Write to MH i2c: F0 00 00 06 27 1C [09:59:57]Write i2c OK [09:59:57]MH_I2C_Read... [09:59:57]Read from MH i2c: F0 [09:59:57]MH_I2C_Read... [09:59:57]Read from MH i2c: F0 09 00 [09:59:57]MH_I2C_Read... [09:59:57]Read from MH i2c: F0 09 00 06 27 00 21 F3 94 66 C9 DC B2 64 EE [09:59:57]GetLastDocTimeStamp 1721037509 [09:59:57]current date 1721037601 [09:59:57]FM_GetShiftState [09:59:57]SAM_PROTO_GetShiftState [09:59:57]wFMCommunicate request_size=4 [09:59:57]MH_SAM_APDU [09:59:57]CAPDU: 80 13 01 00 [09:59:57]Write to MH i2c: E2 08 00 07 27 80 13 01 00 00 00 00 00 AB [09:59:57]Write i2c OK [09:59:57]MH_I2C_Read... [09:59:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:57]Read from MH i2c: E2 [09:59:57]MH_I2C_Read... [09:59:57]Read from MH i2c: E2 0E 00 [09:59:57]MH_I2C_Read... [09:59:57]Read from MH i2c: E2 0E 00 07 27 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 84 [09:59:57]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [09:59:57]wFMCommunicate OK [09:59:57]SAM_PROTO_GetShiftState done [09:59:57]FM_GetShiftState done [09:59:57]opened in 1721003876 [09:59:57]opened+sec_in_day 1721090276 [09:59:57]quantity*price = 100016 [09:59:57]sum+1 = 100017 [09:59:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 64 15.07.2024 10:00 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165191 ФПД: 167752522623790 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T100001&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165191&fm=167752522623790&tin=02508201610067®Number=0000000000090829&sum=100000 [09:59:58]StoreToDocumentArchive [09:59:58]shift 448 fd 165191 [09:59:58]save to /storage/0448/doc_00165191 [09:59:58]save last doc name /storage/0448/doc_00165191 to /storage/kkm_last_doc_name [09:59:58]save OK [09:59:58]Clear old archive folders... [09:59:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:59:58]tlvbuf is B6DA22D0 [09:59:58]SAM_PROTO_ClearQueue [09:59:58]wFMCommunicate request_size=4 [09:59:58]MH_SAM_APDU [09:59:58]CAPDU: 80 09 00 00 [09:59:58]Write to MH i2c: E2 08 00 14 27 80 09 00 00 00 00 00 00 AD [09:59:58]Write i2c OK [09:59:58]MH_I2C_Read... [09:59:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:59:58]Read from MH i2c: E2 [09:59:58]MH_I2C_Read... [09:59:58]Read from MH i2c: E2 03 00 [09:59:58]MH_I2C_Read... [09:59:58]Read from MH i2c: E2 03 00 14 27 00 90 00 AF [09:59:58]RAPDU: 90 00 [09:59:58]wFMCommunicate OK [09:59:58]SAM_PROTO_ClearQueue done [09:59:58]KKMCreateOFDPacket [09:59:58]OFDProtocolAddRootSTLVToBuf [09:59:58]FM_MakeSignedData [09:59:58]FM_MakeSignedData [09:59:58]SAM_PROTO_SignData [09:59:58]wFMCommunicate request_size=4 [09:59:58]MH_SAM_APDU [09:59:58]CAPDU: 80 0D 01 02 [09:59:58]Write to MH i2c: E2 08 00 15 27 80 0D 01 02 00 00 00 00 B5 [09:59:58]Write i2c OK [09:59:58]MH_I2C_Read... [09:59:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:59:58]Read from MH i2c: E2 [09:59:58]MH_I2C_Read... [09:59:58]Read from MH i2c: E2 03 00 [09:59:58]MH_I2C_Read... [09:59:58]Read from MH i2c: E2 03 00 15 27 00 90 00 B0 [09:59:58]RAPDU: 90 00 [09:59:58]wFMCommunicate OK [09:59:58]wFMCommunicate request_size=255 [09:59:58]MH_SAM_APDU [09:59:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 21 F3 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 47 85 02 00 35 04 06 00 98 [09:59:58]Write to MH i2c: E2 02 01 16 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 21 F3 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 47 85 02 00 35 04 06 00 98 00 00 45 [09:59:58]Write i2c OK [09:59:58]MH_I2C_Read... [09:59:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:58]Read from MH i2c: E2 [09:59:58]MH_I2C_Read... [09:59:58]Read from MH i2c: E2 03 00 [09:59:58]MH_I2C_Read... [09:59:58]Read from MH i2c: E2 03 00 16 27 00 90 00 B1 [09:59:58]RAPDU: 90 00 [09:59:58]wFMCommunicate OK [09:59:58]wFMCommunicate request_size=10 [09:59:58]MH_SAM_APDU [09:59:58]CAPDU: 80 0D 02 02 05 91 ED 85 6B 2E [09:59:58]Write to MH i2c: E2 0D 00 17 27 80 0D 02 02 05 00 91 ED 85 6B 2E 00 00 5E [09:59:58]Write i2c OK [09:59:58]MH_I2C_Read... [09:59:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:58]Read from MH i2c: E2 [09:59:58]MH_I2C_Read... [09:59:58]Read from MH i2c: E2 03 00 [09:59:58]MH_I2C_Read... [09:59:58]Read from MH i2c: E2 03 00 17 27 00 90 00 B2 [09:59:58]RAPDU: 90 00 [09:59:58]wFMCommunicate OK [09:59:58]wFMCommunicate request_size=4 [09:59:58]MH_SAM_APDU [09:59:58]CAPDU: 80 0D 03 02 [09:59:58]Write to MH i2c: E2 08 00 18 27 80 0D 03 02 00 00 00 00 BA [09:59:58]Write i2c OK [09:59:58]MH_I2C_Read... [09:59:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:59:58]Read from MH i2c: E2 [09:59:58]MH_I2C_Read... [09:59:58]Read from MH i2c: E2 0B 00 [09:59:58]MH_I2C_Read... [09:59:58]Read from MH i2c: E2 0B 00 18 27 00 4F 7E 4F 53 00 6A 04 C6 90 00 5E [09:59:58]RAPDU: 4F 7E 4F 53 00 6A 04 C6 90 00 [09:59:58]wFMCommunicate OK [09:59:58]SAM_PROTO_SignData done [09:59:58]FM_MakeSignedData done [09:59:58]CreateOFDProtocolMessage [09:59:58]wFMCommunicate request_size=4 [09:59:58]MH_SAM_APDU [09:59:58]CAPDU: 80 11 00 00 [09:59:58]Write to MH i2c: E2 08 00 19 27 80 11 00 00 00 00 00 00 BA [09:59:58]Write i2c OK [09:59:58]MH_I2C_Read... [09:59:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:58]Read from MH i2c: E2 [09:59:58]MH_I2C_Read... [09:59:58]Read from MH i2c: E2 17 00 [09:59:58]MH_I2C_Read... [09:59:58]Read from MH i2c: E2 17 00 19 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 10 [09:59:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [09:59:58]wFMCommunicate OK [09:59:58]CreateOFDProtocolMessage done [09:59:58]OFDSenderStorePacket 165191 [09:59:58]StoreOFDPacket docnum=165191 [09:59:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 95 6F 07 01 8C 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 21 F3 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 47 85 02 00 35 04 06 00 98 91 ED 85 6B 2E 4F 7E 4F 53 00 6A 04 C6 [09:59:58]CheckFolder [09:59:58]dirname=/storage/ofd_packets [09:59:58]CheckFolder done [09:59:58]ProducePacketName [09:59:58]name=ofd_packets/00165191 [09:59:58]NVStorageSaveData ofd_packets/00165191 [09:59:58]File name is /storage/ofd_packets/00165191 [09:59:58]Write 301 bytes [09:59:58]NVStorageSaveData done [09:59:58]OFDSenderStorePacket done [09:59:58]KKMCreateOFDPacket done [09:59:58]NVStorageSaveData kkm_last_timestamp [09:59:58]File name is /storage/kkm_last_timestamp [09:59:58]Write 4 bytes [09:59:58]NVStorageSaveData done [09:59:58]ExternCall_PrintAddStr [09:59:58]wPrintStart [09:59:58]Write to MH i2c: 01 00 00 1A 27 41 [09:59:58]Write i2c OK [09:59:58]MH_I2C_Read... [09:59:58]Read from MH i2c: 01 [09:59:58]MH_I2C_Read... [09:59:58]Read from MH i2c: 01 07 00 [09:59:58]MH_I2C_Read... [09:59:58]Read from MH i2c: 01 07 00 1A 27 00 00 00 00 00 FF 0F 56 [09:59:58]RasterBufferAndPrint [09:59:58]line Счет N : (1)459293 [09:59:58]line ИНН: 02508201610067 [09:59:58]line Контрольно-Кассовый Чек [09:59:58]line ПРОДАЖА [09:59:58]line ТРК (МРК, ГНК) : 12 [09:59:58]line Товар: 2710124130 [09:59:58]line Аи-92-К-5 [09:59:58]line 15.200 * 65.80 [09:59:58]line = 1000.16 [09:59:58]line НДС 12% НСП 1% [09:59:58]line > о реализуемом товаре [09:59:58]line ОКРУГЛЕНИЕ: -0.16 [09:59:58]line ИТОГО: 1000.00 [09:59:58]line Внесено: 1000.00 [09:59:58]line СДАЧА: 0.00 [09:59:58]line НСП 1% : 8.85 [09:59:58]line НДС 12% : 106.21 [09:59:58]line Наличными: 1000.00 [09:59:58]line Безнал.: 0.00 [09:59:58]line Место: АЗС № 72 "Партнер Нефть" [09:59:58]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [09:59:58]line СНО: Общий режим [09:59:58]line Чек 64 15.07.2024 10:00 [09:59:58]line Смена: 448 ФФД: 1.0 [09:59:58]line ЗНМ: 0300000160 [09:59:58]line РНМ: 0000000000090829 [09:59:58]line Версия ККМ: 001 [09:59:58]line ФМ: 0000000000874718 [09:59:58]line ФД: 165191 [09:59:58]line ФПД: 167752522623790 [09:59:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T100001&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165191&fm=167752522623790&tin=02508201610067®Number=0000000000090829&sum=100000 [09:59:59]OFD Sender: Processing packet 165191 [packets to send 106, broken 105] [09:59:59]ProducePacketName [09:59:59]name=ofd_packets/00165191 [09:59:59]OFD Sender: To server: pG, [09:59:59]CommunicateWithHost lk.salyk.kg:30040 [09:59:59]ConnectInit lk.salyk.kg [09:59:59]written 0, free lines is 4095 [09:59:59]Connected sock=7 [09:59:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 95 6F 07 01 8C 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 21 F3 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 47 85 02 00 35 04 06 00 98 91 ED 85 6B 2E 4F 7E 4F 53 00 6A 04 C6 [09:59:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 AA FF 47 00 6C 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 47 85 02 00 F4 03 04 00 AC 99 94 66 B6 04 01 00 00 31 BA B5 DC 1E DF EB 16 [09:59:59]CommunicateWithHost err = 0 [09:59:59]CheckOFDResponse [09:59:59]1017 (14) - 77093643461234 [09:59:59]1041 (16) - 0000000000874718 [09:59:59]1040 (4) - 165191 [09:59:59]1012 (4) - 15.07.2024 03:38 [09:59:59]1206 (1) - 0 [09:59:59]OFD Sender: Remove packet 165191 [09:59:59]ProducePacketName [09:59:59]name=ofd_packets/00165191 [09:59:59]NVStorageDeleteData [09:59:59]Write to MH i2c: 01 00 00 44 27 6B [09:59:59]Write i2c OK [09:59:59]MH_I2C_Read... [09:59:59]Read from MH i2c: 01 [09:59:59]MH_I2C_Read... [09:59:59]Read from MH i2c: 01 07 00 [09:59:59]MH_I2C_Read... [09:59:59]Read from MH i2c: 01 07 00 44 27 00 00 00 00 00 FF 0C 7D [09:59:59]RasterBufferAndPrint [09:59:59]line [09:59:59]line [09:59:59]line [09:59:59]line [09:59:59]line [09:59:59]written 0, free lines is 3333 [09:59:59]MH_Cut [09:59:59]Write to MH i2c: D1 01 00 4B 27 01 44 [09:59:59]Write i2c OK [09:59:59]MH_I2C_Read... [09:59:59]Read from MH i2c: D1 [09:59:59]MH_I2C_Read... [09:59:59]Read from MH i2c: D1 01 00 [09:59:59]MH_I2C_Read... [09:59:59]Read from MH i2c: D1 01 00 4B 27 00 43 [09:59:59]Write to MH i2c: 01 00 00 4C 27 73 [09:59:59]Write i2c OK [09:59:59]MH_I2C_Read... [10:00:00]OFD Sender: No OFD packet to send [10:00:00]*** Cut start [10:00:00]*** Partial cut [10:00:00]*** CUTSNS_PIN = 1 [10:00:00]*** CUTSNS_PIN = 0 [10:00:00]*** Brake cut motor [10:00:01]Read from MH i2c: 01 [10:00:01]MH_I2C_Read... [10:00:01]*** Stop cut motor [10:00:01]*** Cut end [10:00:01]Read from MH i2c: 01 07 00 [10:00:01]MH_I2C_Read... [10:00:01]Read from MH i2c: 01 07 00 4C 27 00 00 00 00 00 FF 0F 88 [10:00:01]process_action close_receipt done [10:00:01]requested_data is exist [10:00:01]produce_requested_data [10:00:01]requested_item fm.sn is exist - process it [10:00:01]wFMCommunicate request_size=4 [10:00:01]MH_SAM_APDU [10:00:01]CAPDU: 80 11 00 00 [10:00:01]Write to MH i2c: E2 08 00 4D 27 80 11 00 00 00 00 00 00 EE [10:00:01]Write i2c OK [10:00:01]MH_I2C_Read... [10:00:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:01]Read from MH i2c: E2 [10:00:01]MH_I2C_Read... [10:00:01]Read from MH i2c: E2 17 00 [10:00:01]MH_I2C_Read... [10:00:01]Read from MH i2c: E2 17 00 4D 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 44 [10:00:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:00:01]wFMCommunicate OK [10:00:01]requested_item fd.num is exist - process it [10:00:01]SAM_PROTO_GetFieldsCounters [10:00:01]wFMCommunicate request_size=4 [10:00:01]MH_SAM_APDU [10:00:01]CAPDU: 80 13 00 00 [10:00:01]Write to MH i2c: E2 08 00 4E 27 80 13 00 00 00 00 00 00 F1 [10:00:01]Write i2c OK [10:00:01]MH_I2C_Read... [10:00:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:00:01]Read from MH i2c: E2 [10:00:01]MH_I2C_Read... [10:00:01]Read from MH i2c: E2 62 00 [10:00:01]MH_I2C_Read... [10:00:01]Read from MH i2c: E2 62 00 4E 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 47 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [10:00:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 47 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:00:01]wFMCommunicate OK [10:00:01]SAM_PROTO_GetFieldsCounters done [10:00:01]requested_item shift.num is exist - process it [10:00:01]requested_item shift.opened is exist - process it [10:00:01]req_shift_opened [10:00:01]FM_GetShiftState [10:00:01]SAM_PROTO_GetShiftState [10:00:01]wFMCommunicate request_size=4 [10:00:01]MH_SAM_APDU [10:00:01]CAPDU: 80 13 01 00 [10:00:01]Write to MH i2c: E2 08 00 4F 27 80 13 01 00 00 00 00 00 F3 [10:00:01]Write i2c OK [10:00:01]MH_I2C_Read... [10:00:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:01]Read from MH i2c: E2 [10:00:01]MH_I2C_Read... [10:00:01]Read from MH i2c: E2 0E 00 [10:00:01]MH_I2C_Read... [10:00:01]Read from MH i2c: E2 0E 00 4F 27 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 CC [10:00:01]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:00:01]wFMCommunicate OK [10:00:01]SAM_PROTO_GetShiftState done [10:00:01]FM_GetShiftState done [10:00:01]req_shift_opened done [10:00:01]requested_item shift.open_date is exist - process it [10:00:01]req_shift_open_date [10:00:01]req_shift_open_date done [10:00:01]produce_requested_data done [10:00:01]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165191,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [10:00:01]process_action_free close_receipt [10:00:01]json_value_free [10:00:01]json_value_free done [10:00:01]process_json_proto returns [10:00:01]Send response to host [10:00:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165191,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [10:00:01]free response buf [10:00:01]execute_script done [10:00:01]execute_script returns [10:00:01]free content buf [10:00:01]Sock 9.Close socket [10:00:01]Sock 9.Thread stoped [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:45]OFD Sender: No OFD packet to send [10:00:50]OFD Sender: No OFD packet to send [10:00:55]OFD Sender: No OFD packet to send [10:01:00]OFD Sender: No OFD packet to send [10:01:05]OFD Sender: No OFD packet to send [10:01:10]OFD Sender: No OFD packet to send [10:01:12]accept exits with 10 [10:01:12]New connection [10:01:12]New thread 3066928484 created [10:01:12]Thread 3066785124 joined [10:01:12]Waiting for new connection... [10:01:12] Sock 10.Parse request [10:01:12]Sock 10.Check first char [10:01:12]Sock 10.First char is OK [10:01:12]request: POST /json_proto HTTP/1.0 [10:01:12]Method: POST [10:01:12]URL: /json_proto [10:01:12]Method is POST - this is cgi request [10:01:12]url: /json_proto [10:01:12]query_string will be loaded in cgi processing [10:01:12]execute_cgi json_proto POST (null) [10:01:12]execute_cgi path=json_proto method=POST [10:01:12]POST find Content-Length [10:01:12]Host: 172.17.56.4:8080 [10:01:12]Content-Length: 677 [10:01:12]Content-Type: application/json [10:01:12] [10:01:12]POST finish read [10:01:12]Found Content-Length = 677 [10:01:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459294", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:12]execute_script... [10:01:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459294", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:12]POST & json_proto [10:01:12]process_json_proto [10:01:12]json parsed OK: [10:01:12]protocol is kg_v1.0 [10:01:12]action value=close_receipt [10:01:12]process_action close_receipt [10:01:12]cmd_close_receipt [10:01:12]MH_GetDate [10:01:12]Write to MH i2c: F0 00 00 50 27 66 [10:01:12]Write i2c OK [10:01:12]MH_I2C_Read... [10:01:12]Read from MH i2c: F0 [10:01:12]MH_I2C_Read... [10:01:12]Read from MH i2c: F0 09 00 [10:01:12]MH_I2C_Read... [10:01:12]Read from MH i2c: F0 09 00 50 27 00 6D F3 94 66 C9 DC B2 64 84 [10:01:12]GetLastDocTimeStamp 1721037601 [10:01:12]current date 1721037677 [10:01:12]FM_GetShiftState [10:01:12]SAM_PROTO_GetShiftState [10:01:12]wFMCommunicate request_size=4 [10:01:12]MH_SAM_APDU [10:01:12]CAPDU: 80 13 01 00 [10:01:12]Write to MH i2c: E2 08 00 51 27 80 13 01 00 00 00 00 00 F5 [10:01:12]Write i2c OK [10:01:12]MH_I2C_Read... [10:01:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:12]Read from MH i2c: E2 [10:01:12]MH_I2C_Read... [10:01:12]Read from MH i2c: E2 0E 00 [10:01:12]MH_I2C_Read... [10:01:12]Read from MH i2c: E2 0E 00 51 27 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 CE [10:01:12]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:01:12]wFMCommunicate OK [10:01:12]SAM_PROTO_GetShiftState done [10:01:12]FM_GetShiftState done [10:01:12]opened in 1721003876 [10:01:12]opened+sec_in_day 1721090276 [10:01:12]quantity*price = 30004 [10:01:12]sum+1 = 30006 [10:01:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 65 15.07.2024 10:01 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165192 ФПД: 116673110825344 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T100117&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165192&fm=116673110825344&tin=02508201610067®Number=0000000000090829&sum=30000 [10:01:13]StoreToDocumentArchive [10:01:13]shift 448 fd 165192 [10:01:13]save to /storage/0448/doc_00165192 [10:01:13]save last doc name /storage/0448/doc_00165192 to /storage/kkm_last_doc_name [10:01:13]save OK [10:01:13]Clear old archive folders... [10:01:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:01:13]tlvbuf is 013FA680 [10:01:13]SAM_PROTO_ClearQueue [10:01:13]wFMCommunicate request_size=4 [10:01:13]MH_SAM_APDU [10:01:13]CAPDU: 80 09 00 00 [10:01:13]Write to MH i2c: E2 08 00 5E 27 80 09 00 00 00 00 00 00 F7 [10:01:13]Write i2c OK [10:01:13]MH_I2C_Read... [10:01:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:01:13]Read from MH i2c: E2 [10:01:13]MH_I2C_Read... [10:01:13]Read from MH i2c: E2 03 00 [10:01:13]MH_I2C_Read... [10:01:13]Read from MH i2c: E2 03 00 5E 27 00 90 00 F9 [10:01:13]RAPDU: 90 00 [10:01:13]wFMCommunicate OK [10:01:13]SAM_PROTO_ClearQueue done [10:01:13]KKMCreateOFDPacket [10:01:13]OFDProtocolAddRootSTLVToBuf [10:01:13]FM_MakeSignedData [10:01:13]FM_MakeSignedData [10:01:13]SAM_PROTO_SignData [10:01:13]wFMCommunicate request_size=4 [10:01:13]MH_SAM_APDU [10:01:13]CAPDU: 80 0D 01 02 [10:01:13]Write to MH i2c: E2 08 00 5F 27 80 0D 01 02 00 00 00 00 FF [10:01:13]Write i2c OK [10:01:13]MH_I2C_Read... [10:01:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:01:13]Read from MH i2c: E2 [10:01:13]MH_I2C_Read... [10:01:13]Read from MH i2c: E2 03 00 [10:01:13]MH_I2C_Read... [10:01:13]Read from MH i2c: E2 03 00 5F 27 00 90 00 FA [10:01:13]RAPDU: 90 00 [10:01:13]wFMCommunicate OK [10:01:13]wFMCommunicate request_size=255 [10:01:13]MH_SAM_APDU [10:01:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 6D F3 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 48 85 02 00 35 04 06 00 6A [10:01:13]Write to MH i2c: E2 02 01 60 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 6D F3 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 48 85 02 00 35 04 06 00 6A 00 00 CE [10:01:13]Write i2c OK [10:01:13]MH_I2C_Read... [10:01:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:14]Read from MH i2c: E2 [10:01:14]MH_I2C_Read... [10:01:14]Read from MH i2c: E2 03 00 [10:01:14]MH_I2C_Read... [10:01:14]Read from MH i2c: E2 03 00 60 27 00 90 00 FB [10:01:14]RAPDU: 90 00 [10:01:14]wFMCommunicate OK [10:01:14]wFMCommunicate request_size=10 [10:01:14]MH_SAM_APDU [10:01:14]CAPDU: 80 0D 02 02 05 1D 13 53 59 80 [10:01:14]Write to MH i2c: E2 0D 00 61 27 80 0D 02 02 05 00 1D 13 53 59 80 00 00 68 [10:01:14]Write i2c OK [10:01:14]MH_I2C_Read... [10:01:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:14]Read from MH i2c: E2 [10:01:14]MH_I2C_Read... [10:01:14]Read from MH i2c: E2 03 00 [10:01:14]MH_I2C_Read... [10:01:14]Read from MH i2c: E2 03 00 61 27 00 90 00 FC [10:01:14]RAPDU: 90 00 [10:01:14]wFMCommunicate OK [10:01:14]wFMCommunicate request_size=4 [10:01:14]MH_SAM_APDU [10:01:14]CAPDU: 80 0D 03 02 [10:01:14]Write to MH i2c: E2 08 00 62 27 80 0D 03 02 00 00 00 00 04 [10:01:14]Write i2c OK [10:01:14]MH_I2C_Read... [10:01:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:01:14]Read from MH i2c: E2 [10:01:14]MH_I2C_Read... [10:01:14]Read from MH i2c: E2 0B 00 [10:01:14]MH_I2C_Read... [10:01:14]Read from MH i2c: E2 0B 00 62 27 00 97 66 8D 73 70 BA C5 BA 90 00 AB [10:01:14]RAPDU: 97 66 8D 73 70 BA C5 BA 90 00 [10:01:14]wFMCommunicate OK [10:01:14]SAM_PROTO_SignData done [10:01:14]FM_MakeSignedData done [10:01:14]CreateOFDProtocolMessage [10:01:14]wFMCommunicate request_size=4 [10:01:14]MH_SAM_APDU [10:01:14]CAPDU: 80 11 00 00 [10:01:14]Write to MH i2c: E2 08 00 63 27 80 11 00 00 00 00 00 00 04 [10:01:14]Write i2c OK [10:01:14]MH_I2C_Read... [10:01:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:14]Read from MH i2c: E2 [10:01:14]MH_I2C_Read... [10:01:14]Read from MH i2c: E2 17 00 [10:01:14]MH_I2C_Read... [10:01:14]Read from MH i2c: E2 17 00 63 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5A [10:01:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:01:14]wFMCommunicate OK [10:01:14]CreateOFDProtocolMessage done [10:01:14]OFDSenderStorePacket 165192 [10:01:14]StoreOFDPacket docnum=165192 [10:01:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B3 F4 07 01 60 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 6D F3 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 48 85 02 00 35 04 06 00 6A 1D 13 53 59 80 97 66 8D 73 70 BA C5 BA [10:01:14]CheckFolder [10:01:14]dirname=/storage/ofd_packets [10:01:14]CheckFolder done [10:01:14]ProducePacketName [10:01:14]name=ofd_packets/00165192 [10:01:14]NVStorageSaveData ofd_packets/00165192 [10:01:14]File name is /storage/ofd_packets/00165192 [10:01:14]Write 301 bytes [10:01:14]NVStorageSaveData done [10:01:14]OFDSenderStorePacket done [10:01:14]KKMCreateOFDPacket done [10:01:14]NVStorageSaveData kkm_last_timestamp [10:01:14]File name is /storage/kkm_last_timestamp [10:01:14]Write 4 bytes [10:01:14]NVStorageSaveData done [10:01:14]ExternCall_PrintAddStr [10:01:14]wPrintStart [10:01:14]Write to MH i2c: 01 00 00 64 27 8B [10:01:14]Write i2c OK [10:01:14]MH_I2C_Read... [10:01:14]Read from MH i2c: 01 [10:01:14]MH_I2C_Read... [10:01:14]Read from MH i2c: 01 07 00 [10:01:14]MH_I2C_Read... [10:01:14]Read from MH i2c: 01 07 00 64 27 00 00 00 00 00 FF 0F A0 [10:01:14]RasterBufferAndPrint [10:01:14]line Счет N : (1)459294 [10:01:14]line ИНН: 02508201610067 [10:01:14]line Контрольно-Кассовый Чек [10:01:14]line ПРОДАЖА [10:01:14]line ТРК (МРК, ГНК) : 22 [10:01:14]line Товар: 2710124130 [10:01:14]line Аи-92-К-5 [10:01:14]line 4.560 * 65.80 [10:01:14]line = 300.05 [10:01:14]line НДС 12% НСП 1% [10:01:14]line > о реализуемом товаре [10:01:14]line ОКРУГЛЕНИЕ: -0.05 [10:01:14]line ИТОГО: 300.00 [10:01:14]line Внесено: 300.00 [10:01:14]line СДАЧА: 0.00 [10:01:14]line НСП 1% : 2.65 [10:01:14]line НДС 12% : 31.86 [10:01:14]line Наличными: 300.00 [10:01:14]line Безнал.: 0.00 [10:01:14]line Место: АЗС № 72 "Партнер Нефть" [10:01:14]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:01:14]line СНО: Общий режим [10:01:14]line Чек 65 15.07.2024 10:01 [10:01:14]line Смена: 448 ФФД: 1.0 [10:01:14]line ЗНМ: 0300000160 [10:01:14]line РНМ: 0000000000090829 [10:01:14]line Версия ККМ: 001 [10:01:14]line ФМ: 0000000000874718 [10:01:14]line ФД: 165192 [10:01:14]line ФПД: 116673110825344 [10:01:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T100117&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165192&fm=116673110825344&tin=02508201610067®Number=0000000000090829&sum=30000 [10:01:14]written 0, free lines is 4095 [10:01:14]OFD Sender: Processing packet 165192 [packets to send 106, broken 105] [10:01:14]ProducePacketName [10:01:14]name=ofd_packets/00165192 [10:01:14]OFD Sender: To server: pG, [10:01:14]CommunicateWithHost lk.salyk.kg:30040 [10:01:14]ConnectInit lk.salyk.kg [10:01:14]Connected sock=9 [10:01:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B3 F4 07 01 60 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 6D F3 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 48 85 02 00 35 04 06 00 6A 1D 13 53 59 80 97 66 8D 73 70 BA C5 BA [10:01:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 42 E1 47 00 38 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 37 31 38 10 04 04 00 48 85 02 00 F4 03 04 00 F8 99 94 66 B6 04 01 00 00 50 64 37 C8 C1 A3 E9 71 [10:01:15]CommunicateWithHost err = 0 [10:01:15]CheckOFDResponse [10:01:15]1017 (14) - 77093643461234 [10:01:15]1041 (16) - 0000000000874718 [10:01:15]1040 (4) - 165192 [10:01:15]1012 (4) - 15.07.2024 03:39 [10:01:15]1206 (1) - 0 [10:01:15]OFD Sender: Remove packet 165192 [10:01:15]ProducePacketName [10:01:15]name=ofd_packets/00165192 [10:01:15]NVStorageDeleteData [10:01:15]Write to MH i2c: 01 00 00 8E 27 B5 [10:01:15]Write i2c OK [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: 01 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: 01 07 00 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: 01 07 00 8E 27 00 00 00 00 00 F2 0C BA [10:01:15]RasterBufferAndPrint [10:01:15]line [10:01:15]line [10:01:15]line [10:01:15]line [10:01:15]line [10:01:15]written 0, free lines is 3320 [10:01:15]MH_Cut [10:01:15]Write to MH i2c: D1 01 00 95 27 01 8E [10:01:15]Write i2c OK [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: D1 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: D1 01 00 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: D1 01 00 95 27 00 8D [10:01:15]Write to MH i2c: 01 00 00 96 27 BD [10:01:15]Write i2c OK [10:01:15]MH_I2C_Read... [10:01:15]OFD Sender: No OFD packet to send [10:01:15]*** Cut start [10:01:15]*** Partial cut [10:01:15]*** CUTSNS_PIN = 1 [10:01:15]*** CUTSNS_PIN = 0 [10:01:16]*** Brake cut motor [10:01:16]Read from MH i2c: 01 [10:01:16]MH_I2C_Read... [10:01:16]*** Stop cut motor [10:01:16]*** Cut end [10:01:16]Read from MH i2c: 01 07 00 [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: 01 07 00 96 27 00 00 00 00 00 FF 0F D2 [10:01:16]process_action close_receipt done [10:01:16]requested_data is exist [10:01:16]produce_requested_data [10:01:16]requested_item fm.sn is exist - process it [10:01:16]wFMCommunicate request_size=4 [10:01:16]MH_SAM_APDU [10:01:16]CAPDU: 80 11 00 00 [10:01:16]Write to MH i2c: E2 08 00 97 27 80 11 00 00 00 00 00 00 38 [10:01:16]Write i2c OK [10:01:16]MH_I2C_Read... [10:01:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:16]Read from MH i2c: E2 [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: E2 17 00 [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: E2 17 00 97 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8E [10:01:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:01:16]wFMCommunicate OK [10:01:16]requested_item fd.num is exist - process it [10:01:16]SAM_PROTO_GetFieldsCounters [10:01:16]wFMCommunicate request_size=4 [10:01:16]MH_SAM_APDU [10:01:16]CAPDU: 80 13 00 00 [10:01:16]Write to MH i2c: E2 08 00 98 27 80 13 00 00 00 00 00 00 3B [10:01:16]Write i2c OK [10:01:16]MH_I2C_Read... [10:01:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:01:16]Read from MH i2c: E2 [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: E2 62 00 [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: E2 62 00 98 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 48 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [10:01:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 48 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:01:16]wFMCommunicate OK [10:01:16]SAM_PROTO_GetFieldsCounters done [10:01:16]requested_item shift.num is exist - process it [10:01:16]requested_item shift.opened is exist - process it [10:01:16]req_shift_opened [10:01:16]FM_GetShiftState [10:01:16]SAM_PROTO_GetShiftState [10:01:16]wFMCommunicate request_size=4 [10:01:16]MH_SAM_APDU [10:01:16]CAPDU: 80 13 01 00 [10:01:16]Write to MH i2c: E2 08 00 99 27 80 13 01 00 00 00 00 00 3D [10:01:16]Write i2c OK [10:01:16]MH_I2C_Read... [10:01:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:16]Read from MH i2c: E2 [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: E2 0E 00 [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: E2 0E 00 99 27 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 16 [10:01:16]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:01:16]wFMCommunicate OK [10:01:16]SAM_PROTO_GetShiftState done [10:01:16]FM_GetShiftState done [10:01:16]req_shift_opened done [10:01:16]requested_item shift.open_date is exist - process it [10:01:16]req_shift_open_date [10:01:16]req_shift_open_date done [10:01:16]produce_requested_data done [10:01:16]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165192,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [10:01:16]process_action_free close_receipt [10:01:16]json_value_free [10:01:16]json_value_free done [10:01:16]process_json_proto returns [10:01:16]Send response to host [10:01:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165192,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [10:01:16]free response buf [10:01:16]execute_script done [10:01:16]execute_script returns [10:01:16]free content buf [10:01:16]Sock 10.Close socket [10:01:16]Sock 10.Thread stoped [10:01:20]OFD Sender: No OFD packet to send [10:01:25]OFD Sender: No OFD packet to send [10:01:30]OFD Sender: No OFD packet to send [10:01:35]OFD Sender: No OFD packet to send [10:01:40]OFD Sender: No OFD packet to send [10:01:45]OFD Sender: No OFD packet to send [10:01:50]OFD Sender: No OFD packet to send [10:01:55]OFD Sender: No OFD packet to send [10:02:00]OFD Sender: No OFD packet to send [10:02:05]OFD Sender: No OFD packet to send [10:02:10]OFD Sender: No OFD packet to send [10:02:15]OFD Sender: No OFD packet to send [10:02:20]OFD Sender: No OFD packet to send [10:02:25]OFD Sender: No OFD packet to send [10:02:30]OFD Sender: No OFD packet to send [10:02:35]OFD Sender: No OFD packet to send [10:02:40]OFD Sender: No OFD packet to send [10:02:45]OFD Sender: No OFD packet to send [10:02:50]OFD Sender: No OFD packet to send [10:02:55]OFD Sender: No OFD packet to send [10:03:00]OFD Sender: No OFD packet to send [10:03:05]OFD Sender: No OFD packet to send [10:03:10]OFD Sender: No OFD packet to send [10:03:15]OFD Sender: No OFD packet to send [10:03:20]OFD Sender: No OFD packet to send [10:03:25]OFD Sender: No OFD packet to send [10:03:30]OFD Sender: No OFD packet to send [10:03:35]OFD Sender: No OFD packet to send [10:03:40]OFD Sender: No OFD packet to send [10:03:45]OFD Sender: No OFD packet to send [10:03:50]OFD Sender: No OFD packet to send [10:03:55]OFD Sender: No OFD packet to send [10:04:00]OFD Sender: No OFD packet to send [10:04:05]OFD Sender: No OFD packet to send [10:04:10]OFD Sender: No OFD packet to send [10:04:15]OFD Sender: No OFD packet to send [10:04:20]OFD Sender: No OFD packet to send [10:04:25]OFD Sender: No OFD packet to send [10:04:30]OFD Sender: No OFD packet to send [10:04:35]OFD Sender: No OFD packet to send [10:04:40]OFD Sender: No OFD packet to send [10:04:45]OFD Sender: No OFD packet to send [10:04:50]OFD Sender: No OFD packet to send [10:04:55]OFD Sender: No OFD packet to send [10:05:00]OFD Sender: No OFD packet to send [10:05:05]OFD Sender: No OFD packet to send [10:05:10]OFD Sender: No OFD packet to send [10:05:15]OFD Sender: No OFD packet to send [10:05:20]OFD Sender: No OFD packet to send [10:05:25]OFD Sender: No OFD packet to send [10:05:30]OFD Sender: No OFD packet to send [10:05:35]OFD Sender: No OFD packet to send [10:05:40]OFD Sender: No OFD packet to send [10:05:45]OFD Sender: No OFD packet to send [10:05:50]OFD Sender: No OFD packet to send [10:05:55]OFD Sender: No OFD packet to send [10:06:00]OFD Sender: No OFD packet to send [10:06:05]OFD Sender: No OFD packet to send [10:06:10]OFD Sender: No OFD packet to send [10:06:15]OFD Sender: No OFD packet to send [10:06:20]OFD Sender: No OFD packet to send [10:06:25]OFD Sender: No OFD packet to send [10:06:30]OFD Sender: No OFD packet to send [10:06:35]OFD Sender: No OFD packet to send [10:06:40]OFD Sender: No OFD packet to send [10:06:45]OFD Sender: No OFD packet to send [10:06:50]OFD Sender: No OFD packet to send [10:06:55]OFD Sender: No OFD packet to send [10:07:00]OFD Sender: No OFD packet to send [10:07:05]OFD Sender: No OFD packet to send [10:07:10]OFD Sender: No OFD packet to send [10:07:15]OFD Sender: No OFD packet to send [10:07:20]OFD Sender: No OFD packet to send [10:07:25]OFD Sender: No OFD packet to send [10:07:30]OFD Sender: No OFD packet to send [10:07:35]OFD Sender: No OFD packet to send [10:07:40]OFD Sender: No OFD packet to send [10:07:43]accept exits with 7 [10:07:43]New connection [10:07:43]New thread 3066785124 created [10:07:43]Thread 3066928484 joined [10:07:43]Waiting for new connection... [10:07:43] Sock 7.Parse request [10:07:43]Sock 7.Check first char [10:07:43]Sock 7.First char is OK [10:07:43]request: POST /json_proto HTTP/1.0 [10:07:43]Method: POST [10:07:43]URL: /json_proto [10:07:43]Method is POST - this is cgi request [10:07:43]url: /json_proto [10:07:43]query_string will be loaded in cgi processing [10:07:43]execute_cgi json_proto POST (null) [10:07:43]execute_cgi path=json_proto method=POST [10:07:43]POST find Content-Length [10:07:43]Host: 172.17.56.4:8080 [10:07:43]Content-Length: 677 [10:07:43]Content-Type: application/json [10:07:43] [10:07:43]POST finish read [10:07:43]Found Content-Length = 677 [10:07:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:43]execute_script... [10:07:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:43]POST & json_proto [10:07:43]process_json_proto [10:07:43]json parsed OK: [10:07:43]protocol is kg_v1.0 [10:07:43]action value=close_receipt [10:07:43]process_action close_receipt [10:07:43]cmd_close_receipt [10:07:43]MH_GetDate [10:07:43]Write to MH i2c: F0 00 00 9A 27 B0 [10:07:43]Write i2c OK [10:07:43]MH_I2C_Read... [10:07:43]Read from MH i2c: F0 [10:07:43]MH_I2C_Read... [10:07:43]Read from MH i2c: F0 09 00 [10:07:43]MH_I2C_Read... [10:07:43]Read from MH i2c: F0 09 00 9A 27 00 F3 F4 94 66 C9 DC B2 64 55 [10:07:43]GetLastDocTimeStamp 1721037677 [10:07:43]current date 1721038067 [10:07:43]FM_GetShiftState [10:07:43]SAM_PROTO_GetShiftState [10:07:43]wFMCommunicate request_size=4 [10:07:43]MH_SAM_APDU [10:07:43]CAPDU: 80 13 01 00 [10:07:43]Write to MH i2c: E2 08 00 9B 27 80 13 01 00 00 00 00 00 3F [10:07:43]Write i2c OK [10:07:43]MH_I2C_Read... [10:07:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:43]Read from MH i2c: E2 [10:07:43]MH_I2C_Read... [10:07:43]Read from MH i2c: E2 0E 00 [10:07:43]MH_I2C_Read... [10:07:43]Read from MH i2c: E2 0E 00 9B 27 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 18 [10:07:43]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:07:43]wFMCommunicate OK [10:07:43]SAM_PROTO_GetShiftState done [10:07:43]FM_GetShiftState done [10:07:43]opened in 1721003876 [10:07:43]opened+sec_in_day 1721090276 [10:07:43]quantity*price = 20003 [10:07:43]sum+1 = 20004 [10:07:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 66 15.07.2024 10:07 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165193 ФПД: 147868973733515 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T100747&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165193&fm=147868973733515&tin=02508201610067®Number=0000000000090829&sum=20000 [10:07:44]StoreToDocumentArchive [10:07:44]shift 448 fd 165193 [10:07:44]save to /storage/0448/doc_00165193 [10:07:44]save last doc name /storage/0448/doc_00165193 to /storage/kkm_last_doc_name [10:07:44]save OK [10:07:44]Clear old archive folders... [10:07:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:07:44]tlvbuf is B6F524F0 [10:07:44]SAM_PROTO_ClearQueue [10:07:44]wFMCommunicate request_size=4 [10:07:44]MH_SAM_APDU [10:07:44]CAPDU: 80 09 00 00 [10:07:44]Write to MH i2c: E2 08 00 A8 27 80 09 00 00 00 00 00 00 41 [10:07:44]Write i2c OK [10:07:44]MH_I2C_Read... [10:07:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:07:44]Read from MH i2c: E2 [10:07:44]MH_I2C_Read... [10:07:44]Read from MH i2c: E2 03 00 [10:07:44]MH_I2C_Read... [10:07:44]Read from MH i2c: E2 03 00 A8 27 00 90 00 43 [10:07:44]RAPDU: 90 00 [10:07:44]wFMCommunicate OK [10:07:44]SAM_PROTO_ClearQueue done [10:07:44]KKMCreateOFDPacket [10:07:44]OFDProtocolAddRootSTLVToBuf [10:07:44]FM_MakeSignedData [10:07:44]FM_MakeSignedData [10:07:44]SAM_PROTO_SignData [10:07:44]wFMCommunicate request_size=4 [10:07:44]MH_SAM_APDU [10:07:44]CAPDU: 80 0D 01 02 [10:07:44]Write to MH i2c: E2 08 00 A9 27 80 0D 01 02 00 00 00 00 49 [10:07:44]Write i2c OK [10:07:44]MH_I2C_Read... [10:07:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:07:44]Read from MH i2c: E2 [10:07:44]MH_I2C_Read... [10:07:44]Read from MH i2c: E2 03 00 [10:07:44]MH_I2C_Read... [10:07:44]Read from MH i2c: E2 03 00 A9 27 00 90 00 44 [10:07:44]RAPDU: 90 00 [10:07:44]wFMCommunicate OK [10:07:44]wFMCommunicate request_size=255 [10:07:44]MH_SAM_APDU [10:07:44]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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 F3 F4 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 49 85 02 00 35 04 06 00 86 [10:07:44]Write to MH i2c: E2 02 01 AA 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 F3 F4 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 49 85 02 00 35 04 06 00 86 00 00 9D [10:07:44]Write i2c OK [10:07:44]MH_I2C_Read... [10:07:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:44]Read from MH i2c: E2 [10:07:44]MH_I2C_Read... [10:07:44]Read from MH i2c: E2 03 00 [10:07:44]MH_I2C_Read... [10:07:44]Read from MH i2c: E2 03 00 AA 27 00 90 00 45 [10:07:44]RAPDU: 90 00 [10:07:44]wFMCommunicate OK [10:07:44]wFMCommunicate request_size=10 [10:07:44]MH_SAM_APDU [10:07:44]CAPDU: 80 0D 02 02 05 7C 6D A7 16 8B [10:07:44]Write to MH i2c: E2 0D 00 AB 27 80 0D 02 02 05 00 7C 6D A7 16 8B 00 00 87 [10:07:44]Write i2c OK [10:07:44]MH_I2C_Read... [10:07:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:44]Read from MH i2c: E2 [10:07:44]MH_I2C_Read... [10:07:44]Read from MH i2c: E2 03 00 [10:07:44]MH_I2C_Read... [10:07:44]Read from MH i2c: E2 03 00 AB 27 00 90 00 46 [10:07:44]RAPDU: 90 00 [10:07:44]wFMCommunicate OK [10:07:44]wFMCommunicate request_size=4 [10:07:44]MH_SAM_APDU [10:07:44]CAPDU: 80 0D 03 02 [10:07:44]Write to MH i2c: E2 08 00 AC 27 80 0D 03 02 00 00 00 00 4E [10:07:44]Write i2c OK [10:07:44]MH_I2C_Read... [10:07:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:07:44]Read from MH i2c: E2 [10:07:44]MH_I2C_Read... [10:07:44]Read from MH i2c: E2 0B 00 [10:07:44]MH_I2C_Read... [10:07:44]Read from MH i2c: E2 0B 00 AC 27 00 DB AD F9 4D 0D A6 3F 94 90 00 A3 [10:07:44]RAPDU: DB AD F9 4D 0D A6 3F 94 90 00 [10:07:44]wFMCommunicate OK [10:07:44]SAM_PROTO_SignData done [10:07:44]FM_MakeSignedData done [10:07:44]CreateOFDProtocolMessage [10:07:44]wFMCommunicate request_size=4 [10:07:44]MH_SAM_APDU [10:07:44]CAPDU: 80 11 00 00 [10:07:44]Write to MH i2c: E2 08 00 AD 27 80 11 00 00 00 00 00 00 4E [10:07:44]Write i2c OK [10:07:44]MH_I2C_Read... [10:07:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:44]Read from MH i2c: E2 [10:07:44]MH_I2C_Read... [10:07:44]Read from MH i2c: E2 17 00 [10:07:44]MH_I2C_Read... [10:07:44]Read from MH i2c: E2 17 00 AD 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A4 [10:07:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:07:44]wFMCommunicate OK [10:07:44]CreateOFDProtocolMessage done [10:07:44]OFDSenderStorePacket 165193 [10:07:44]StoreOFDPacket docnum=165193 [10:07:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 24 F9 07 01 4B 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 F3 F4 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 49 85 02 00 35 04 06 00 86 7C 6D A7 16 8B DB AD F9 4D 0D A6 3F 94 [10:07:44]CheckFolder [10:07:44]dirname=/storage/ofd_packets [10:07:44]CheckFolder done [10:07:44]ProducePacketName [10:07:44]name=ofd_packets/00165193 [10:07:44]NVStorageSaveData ofd_packets/00165193 [10:07:44]File name is /storage/ofd_packets/00165193 [10:07:44]Write 301 bytes [10:07:44]NVStorageSaveData done [10:07:44]OFDSenderStorePacket done [10:07:44]KKMCreateOFDPacket done [10:07:44]NVStorageSaveData kkm_last_timestamp [10:07:44]File name is /storage/kkm_last_timestamp [10:07:44]Write 4 bytes [10:07:44]NVStorageSaveData done [10:07:44]ExternCall_PrintAddStr [10:07:44]wPrintStart [10:07:44]Write to MH i2c: 01 00 00 AE 27 D5 [10:07:44]Write i2c OK [10:07:44]MH_I2C_Read... [10:07:44]Read from MH i2c: 01 [10:07:44]MH_I2C_Read... [10:07:44]Read from MH i2c: 01 07 00 [10:07:44]MH_I2C_Read... [10:07:44]Read from MH i2c: 01 07 00 AE 27 00 00 00 00 00 FF 0F EA [10:07:44]RasterBufferAndPrint [10:07:44]line Счет N : (1)459296 [10:07:44]line ИНН: 02508201610067 [10:07:44]line Контрольно-Кассовый Чек [10:07:44]line ПРОДАЖА [10:07:44]line ТРК (МРК, ГНК) : 22 [10:07:44]line Товар: 2710124130 [10:07:44]line Аи-92-К-5 [10:07:44]line 3.040 * 65.80 [10:07:44]line = 200.03 [10:07:44]line НДС 12% НСП 1% [10:07:44]line > о реализуемом товаре [10:07:44]line ОКРУГЛЕНИЕ: -0.03 [10:07:44]line ИТОГО: 200.00 [10:07:44]line Внесено: 200.00 [10:07:44]line СДАЧА: 0.00 [10:07:44]line НСП 1% : 1.77 [10:07:44]line НДС 12% : 21.24 [10:07:44]line Наличными: 200.00 [10:07:44]line Безнал.: 0.00 [10:07:44]line Место: АЗС № 72 "Партнер Нефть" [10:07:44]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:07:44]line СНО: Общий режим [10:07:44]line Чек 66 15.07.2024 10:07 [10:07:44]line Смена: 448 ФФД: 1.0 [10:07:44]line ЗНМ: 0300000160 [10:07:44]line РНМ: 0000000000090829 [10:07:44]line Версия ККМ: 001 [10:07:44]line ФМ: 0000000000874718 [10:07:44]line ФД: 165193 [10:07:44]line ФПД: 147868973733515 [10:07:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T100747&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165193&fm=147868973733515&tin=02508201610067®Number=0000000000090829&sum=20000 [10:07:45]written 0, free lines is 4095 [10:07:45]OFD Sender: Processing packet 165193 [packets to send 106, broken 105] [10:07:45]ProducePacketName [10:07:45]name=ofd_packets/00165193 [10:07:45]OFD Sender: To server: pG, [10:07:45]CommunicateWithHost lk.salyk.kg:30040 [10:07:45]ConnectInit lk.salyk.kg [10:07:45]Connected sock=10 [10:07:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 24 F9 07 01 4B 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 F3 F4 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 49 85 02 00 35 04 06 00 86 7C 6D A7 16 8B DB AD F9 4D 0D A6 3F 94 [10:07:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 1B 78 47 00 86 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 49 85 02 00 F4 03 04 00 7E 9B 94 66 B6 04 01 00 00 09 56 CA 63 41 8E CE 2A [10:07:45]CommunicateWithHost err = 0 [10:07:45]CheckOFDResponse [10:07:45]1017 (14) - 77093643461234 [10:07:45]1041 (16) - 0000000000874718 [10:07:45]1040 (4) - 165193 [10:07:45]1012 (4) - 15.07.2024 03:46 [10:07:45]1206 (1) - 0 [10:07:45]OFD Sender: Remove packet 165193 [10:07:45]ProducePacketName [10:07:45]name=ofd_packets/00165193 [10:07:45]NVStorageDeleteData [10:07:45]Write to MH i2c: 01 00 00 D8 27 FF [10:07:45]Write i2c OK [10:07:45]MH_I2C_Read... [10:07:45]Read from MH i2c: 01 [10:07:45]MH_I2C_Read... [10:07:45]Read from MH i2c: 01 07 00 [10:07:45]MH_I2C_Read... [10:07:45]Read from MH i2c: 01 07 00 D8 27 00 00 00 00 00 04 0D 17 [10:07:45]RasterBufferAndPrint [10:07:45]line [10:07:45]line [10:07:45]line [10:07:45]line [10:07:45]line [10:07:45]written 0, free lines is 3338 [10:07:45]MH_Cut [10:07:45]Write to MH i2c: D1 01 00 DF 27 01 D8 [10:07:45]Write i2c OK [10:07:45]MH_I2C_Read... [10:07:45]Read from MH i2c: D1 [10:07:45]MH_I2C_Read... [10:07:45]Read from MH i2c: D1 01 00 [10:07:45]MH_I2C_Read... [10:07:45]Read from MH i2c: D1 01 00 DF 27 00 D7 [10:07:45]Write to MH i2c: 01 00 00 E0 27 07 [10:07:45]Write i2c OK [10:07:45]MH_I2C_Read... [10:07:46]OFD Sender: No OFD packet to send [10:07:46]*** Cut start [10:07:46]*** Partial cut [10:07:46]*** CUTSNS_PIN = 1 [10:07:46]*** CUTSNS_PIN = 0 [10:07:46]*** Brake cut motor [10:07:46]Read from MH i2c: 01 [10:07:46]MH_I2C_Read... [10:07:46]*** Stop cut motor [10:07:47]*** Cut end [10:07:47]Read from MH i2c: 01 07 00 [10:07:47]MH_I2C_Read... [10:07:47]Read from MH i2c: 01 07 00 E0 27 00 00 00 00 00 FF 0F 1C [10:07:47]process_action close_receipt done [10:07:47]requested_data is exist [10:07:47]produce_requested_data [10:07:47]requested_item fm.sn is exist - process it [10:07:47]wFMCommunicate request_size=4 [10:07:47]MH_SAM_APDU [10:07:47]CAPDU: 80 11 00 00 [10:07:47]Write to MH i2c: E2 08 00 E1 27 80 11 00 00 00 00 00 00 82 [10:07:47]Write i2c OK [10:07:47]MH_I2C_Read... [10:07:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:47]Read from MH i2c: E2 [10:07:47]MH_I2C_Read... [10:07:47]Read from MH i2c: E2 17 00 [10:07:47]MH_I2C_Read... [10:07:47]Read from MH i2c: E2 17 00 E1 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D8 [10:07:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:07:47]wFMCommunicate OK [10:07:47]requested_item fd.num is exist - process it [10:07:47]SAM_PROTO_GetFieldsCounters [10:07:47]wFMCommunicate request_size=4 [10:07:47]MH_SAM_APDU [10:07:47]CAPDU: 80 13 00 00 [10:07:47]Write to MH i2c: E2 08 00 E2 27 80 13 00 00 00 00 00 00 85 [10:07:47]Write i2c OK [10:07:47]MH_I2C_Read... [10:07:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:07:47]Read from MH i2c: E2 [10:07:47]MH_I2C_Read... [10:07:47]Read from MH i2c: E2 62 00 [10:07:47]MH_I2C_Read... [10:07:47]Read from MH i2c: E2 62 00 E2 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 49 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [10:07: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 49 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:07:47]wFMCommunicate OK [10:07:47]SAM_PROTO_GetFieldsCounters done [10:07:47]requested_item shift.num is exist - process it [10:07:47]requested_item shift.opened is exist - process it [10:07:47]req_shift_opened [10:07:47]FM_GetShiftState [10:07:47]SAM_PROTO_GetShiftState [10:07:47]wFMCommunicate request_size=4 [10:07:47]MH_SAM_APDU [10:07:47]CAPDU: 80 13 01 00 [10:07:47]Write to MH i2c: E2 08 00 E3 27 80 13 01 00 00 00 00 00 87 [10:07:47]Write i2c OK [10:07:47]MH_I2C_Read... [10:07:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:47]Read from MH i2c: E2 [10:07:47]MH_I2C_Read... [10:07:47]Read from MH i2c: E2 0E 00 [10:07:47]MH_I2C_Read... [10:07:47]Read from MH i2c: E2 0E 00 E3 27 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 60 [10:07:47]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:07:47]wFMCommunicate OK [10:07:47]SAM_PROTO_GetShiftState done [10:07:47]FM_GetShiftState done [10:07:47]req_shift_opened done [10:07:47]requested_item shift.open_date is exist - process it [10:07:47]req_shift_open_date [10:07:47]req_shift_open_date done [10:07:47]produce_requested_data done [10:07:47]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165193,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [10:07:47]process_action_free close_receipt [10:07:47]json_value_free [10:07:47]json_value_free done [10:07:47]process_json_proto returns [10:07:47]Send response to host [10:07:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165193,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [10:07:47]free response buf [10:07:47]execute_script done [10:07:47]execute_script returns [10:07:47]free content buf [10:07:47]Sock 7.Close socket [10:07:47]Sock 7.Thread stoped [10:07:47]accept exits with 9 [10:07:47]New connection [10:07:47]New thread 3066928484 created [10:07:47]Thread 3066785124 joined [10:07:47]Waiting for new connection... [10:07:47] Sock 9.Parse request [10:07:47]Sock 9.Check first char [10:07:47]Sock 9.First char is OK [10:07:47]request: POST /json_proto HTTP/1.0 [10:07:47]Method: POST [10:07:47]URL: /json_proto [10:07:47]Method is POST - this is cgi request [10:07:47]url: /json_proto [10:07:47]query_string will be loaded in cgi processing [10:07:47]execute_cgi json_proto POST (null) [10:07:47]execute_cgi path=json_proto method=POST [10:07:47]POST find Content-Length [10:07:47]Host: 172.17.56.4:8080 [10:07:47]Content-Length: 679 [10:07:47]Content-Type: application/json [10:07:47] [10:07:47]POST finish read [10:07:47]Found Content-Length = 679 [10:07:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459295", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 20.870, "sum" : 1500.55, "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" ] } } [10:07:47]execute_script... [10:07:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459295", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 20.870, "sum" : 1500.55, "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" ] } } [10:07:47]POST & json_proto [10:07:47]process_json_proto [10:07:47]json parsed OK: [10:07:47]protocol is kg_v1.0 [10:07:47]action value=close_receipt [10:07:47]process_action close_receipt [10:07:47]cmd_close_receipt [10:07:47]MH_GetDate [10:07:47]Write to MH i2c: F0 00 00 E4 27 FA [10:07:47]Write i2c OK [10:07:47]MH_I2C_Read... [10:07:47]Read from MH i2c: F0 [10:07:47]MH_I2C_Read... [10:07:47]Read from MH i2c: F0 09 00 [10:07:47]MH_I2C_Read... [10:07:47]Read from MH i2c: F0 09 00 E4 27 00 F8 F4 94 66 C9 DC B2 64 A4 [10:07:47]GetLastDocTimeStamp 1721038067 [10:07:47]current date 1721038072 [10:07:47]FM_GetShiftState [10:07:47]SAM_PROTO_GetShiftState [10:07:47]wFMCommunicate request_size=4 [10:07:47]MH_SAM_APDU [10:07:47]CAPDU: 80 13 01 00 [10:07:47]Write to MH i2c: E2 08 00 E5 27 80 13 01 00 00 00 00 00 89 [10:07:47]Write i2c OK [10:07:47]MH_I2C_Read... [10:07:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:47]Read from MH i2c: E2 [10:07:47]MH_I2C_Read... [10:07:47]Read from MH i2c: E2 0E 00 [10:07:47]MH_I2C_Read... [10:07:47]Read from MH i2c: E2 0E 00 E5 27 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 62 [10:07:47]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:07:47]wFMCommunicate OK [10:07:47]SAM_PROTO_GetShiftState done [10:07:47]FM_GetShiftState done [10:07:47]opened in 1721003876 [10:07:47]opened+sec_in_day 1721090276 [10:07:47]quantity*price = 150055 [10:07:47]sum+1 = 150056 [10:07:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 67 15.07.2024 10:07 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165194 ФПД: 267280731006086 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T100752&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165194&fm=267280731006086&tin=02508201610067®Number=0000000000090829&sum=150000 [10:07:49]StoreToDocumentArchive [10:07:49]shift 448 fd 165194 [10:07:49]save to /storage/0448/doc_00165194 [10:07:49]save last doc name /storage/0448/doc_00165194 to /storage/kkm_last_doc_name [10:07:49]save OK [10:07:49]Clear old archive folders... [10:07:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:07:49]tlvbuf is 01329960 [10:07:49]SAM_PROTO_ClearQueue [10:07:49]wFMCommunicate request_size=4 [10:07:49]MH_SAM_APDU [10:07:49]CAPDU: 80 09 00 00 [10:07:49]Write to MH i2c: E2 08 00 F2 27 80 09 00 00 00 00 00 00 8B [10:07:49]Write i2c OK [10:07:49]MH_I2C_Read... [10:07:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:07:49]Read from MH i2c: E2 [10:07:49]MH_I2C_Read... [10:07:49]Read from MH i2c: E2 03 00 [10:07:49]MH_I2C_Read... [10:07:49]Read from MH i2c: E2 03 00 F2 27 00 90 00 8D [10:07:49]RAPDU: 90 00 [10:07:49]wFMCommunicate OK [10:07:49]SAM_PROTO_ClearQueue done [10:07:49]KKMCreateOFDPacket [10:07:49]OFDProtocolAddRootSTLVToBuf [10:07:49]FM_MakeSignedData [10:07:49]FM_MakeSignedData [10:07:49]SAM_PROTO_SignData [10:07:49]wFMCommunicate request_size=4 [10:07:49]MH_SAM_APDU [10:07:49]CAPDU: 80 0D 01 02 [10:07:49]Write to MH i2c: E2 08 00 F3 27 80 0D 01 02 00 00 00 00 93 [10:07:49]Write i2c OK [10:07:49]MH_I2C_Read... [10:07:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:07:49]Read from MH i2c: E2 [10:07:49]MH_I2C_Read... [10:07:49]Read from MH i2c: E2 03 00 [10:07:49]MH_I2C_Read... [10:07:49]Read from MH i2c: E2 03 00 F3 27 00 90 00 8E [10:07:49]RAPDU: 90 00 [10:07:49]wFMCommunicate OK [10:07:49]wFMCommunicate request_size=255 [10:07:49]MH_SAM_APDU [10:07:49]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 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 43 00 00 00 F4 03 04 00 F8 F4 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4A 85 02 00 35 04 06 00 F3 17 25 06 [10:07:49]Write to MH i2c: E2 02 01 F4 27 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 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 43 00 00 00 F4 03 04 00 F8 F4 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4A 85 02 00 35 04 06 00 F3 17 25 06 00 00 8A [10:07:49]Write i2c OK [10:07:49]MH_I2C_Read... [10:07:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:49]Read from MH i2c: E2 [10:07:49]MH_I2C_Read... [10:07:49]Read from MH i2c: E2 03 00 [10:07:49]MH_I2C_Read... [10:07:49]Read from MH i2c: E2 03 00 F4 27 00 90 00 8F [10:07:49]RAPDU: 90 00 [10:07:49]wFMCommunicate OK [10:07:49]wFMCommunicate request_size=7 [10:07:49]MH_SAM_APDU [10:07:49]CAPDU: 80 0D 02 02 02 E4 86 [10:07:49]Write to MH i2c: E2 0A 00 F5 27 80 0D 02 02 02 00 E4 86 00 00 04 [10:07:49]Write i2c OK [10:07:49]MH_I2C_Read... [10:07:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:49]Read from MH i2c: E2 [10:07:49]MH_I2C_Read... [10:07:49]Read from MH i2c: E2 03 00 [10:07:49]MH_I2C_Read... [10:07:49]Read from MH i2c: E2 03 00 F5 27 00 90 00 90 [10:07:49]RAPDU: 90 00 [10:07:49]wFMCommunicate OK [10:07:49]wFMCommunicate request_size=4 [10:07:49]MH_SAM_APDU [10:07:49]CAPDU: 80 0D 03 02 [10:07:49]Write to MH i2c: E2 08 00 F6 27 80 0D 03 02 00 00 00 00 98 [10:07:49]Write i2c OK [10:07:49]MH_I2C_Read... [10:07:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:07:49]Read from MH i2c: E2 [10:07:49]MH_I2C_Read... [10:07:49]Read from MH i2c: E2 0B 00 [10:07:49]MH_I2C_Read... [10:07:49]Read from MH i2c: E2 0B 00 F6 27 00 3E A1 9B 1C FA D7 86 6C 90 00 F2 [10:07:49]RAPDU: 3E A1 9B 1C FA D7 86 6C 90 00 [10:07:49]wFMCommunicate OK [10:07:49]SAM_PROTO_SignData done [10:07:49]FM_MakeSignedData done [10:07:49]CreateOFDProtocolMessage [10:07:49]wFMCommunicate request_size=4 [10:07:49]MH_SAM_APDU [10:07:49]CAPDU: 80 11 00 00 [10:07:49]Write to MH i2c: E2 08 00 F7 27 80 11 00 00 00 00 00 00 98 [10:07:49]Write i2c OK [10:07:49]MH_I2C_Read... [10:07:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:49]Read from MH i2c: E2 [10:07:49]MH_I2C_Read... [10:07:49]Read from MH i2c: E2 17 00 [10:07:49]MH_I2C_Read... [10:07:49]Read from MH i2c: E2 17 00 F7 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 EE [10:07:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:07:49]wFMCommunicate OK [10:07:49]CreateOFDProtocolMessage done [10:07:49]OFDSenderStorePacket 165194 [10:07:49]StoreOFDPacket docnum=165194 [10:07:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 79 B3 04 01 78 21 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 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 43 00 00 00 F4 03 04 00 F8 F4 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4A 85 02 00 35 04 06 00 F3 17 25 06 E4 86 3E A1 9B 1C FA D7 86 6C [10:07:49]CheckFolder [10:07:49]dirname=/storage/ofd_packets [10:07:49]CheckFolder done [10:07:49]ProducePacketName [10:07:49]name=ofd_packets/00165194 [10:07:49]NVStorageSaveData ofd_packets/00165194 [10:07:49]File name is /storage/ofd_packets/00165194 [10:07:49]Write 298 bytes [10:07:49]NVStorageSaveData done [10:07:49]OFDSenderStorePacket done [10:07:49]KKMCreateOFDPacket done [10:07:49]NVStorageSaveData kkm_last_timestamp [10:07:49]File name is /storage/kkm_last_timestamp [10:07:49]Write 4 bytes [10:07:49]NVStorageSaveData done [10:07:49]ExternCall_PrintAddStr [10:07:49]wPrintStart [10:07:49]Write to MH i2c: 01 00 00 F8 27 1F [10:07:49]Write i2c OK [10:07:49]MH_I2C_Read... [10:07:49]Read from MH i2c: 01 [10:07:49]MH_I2C_Read... [10:07:49]Read from MH i2c: 01 07 00 [10:07:49]MH_I2C_Read... [10:07:49]Read from MH i2c: 01 07 00 F8 27 00 00 00 00 00 FF 0F 34 [10:07:49]RasterBufferAndPrint [10:07:49]line Счет N : (1)459295 [10:07:49]line ИНН: 02508201610067 [10:07:49]line Контрольно-Кассовый Чек [10:07:49]line ПРОДАЖА [10:07:49]line ТРК (МРК, ГНК) : 21 [10:07:49]line Товар: 2710194210 [10:07:49]line ДТ-К-5 [10:07:49]line 20.870 * 71.90 [10:07:49]line = 1500.55 [10:07:49]line НДС 12% НСП 1% [10:07:49]line > о реализуемом товаре [10:07:49]line ОКРУГЛЕНИЕ: -0.55 [10:07:49]line ИТОГО: 1500.00 [10:07:49]line Внесено: 1500.00 [10:07:49]line СДАЧА: 0.00 [10:07:49]line НСП 1% : 13.28 [10:07:49]line НДС 12% : 159.35 [10:07:49]line Наличными: 1500.00 [10:07:49]line Безнал.: 0.00 [10:07:49]line Место: АЗС № 72 "Партнер Нефть" [10:07:49]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:07:49]line СНО: Общий режим [10:07:49]line Чек 67 15.07.2024 10:07 [10:07:49]line Смена: 448 ФФД: 1.0 [10:07:49]line ЗНМ: 0300000160 [10:07:49]line РНМ: 0000000000090829 [10:07:49]line Версия ККМ: 001 [10:07:49]line ФМ: 0000000000874718 [10:07:49]line ФД: 165194 [10:07:49]line ФПД: 267280731006086 [10:07:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T100752&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165194&fm=267280731006086&tin=02508201610067®Number=0000000000090829&sum=150000 [10:07:49]written 0, free lines is 4095 [10:07:49]OFD Sender: Processing packet 165194 [packets to send 106, broken 105] [10:07:49]ProducePacketName [10:07:49]name=ofd_packets/00165194 [10:07:49]OFD Sender: To server: pG, [10:07:49]CommunicateWithHost lk.salyk.kg:30040 [10:07:49]ConnectInit lk.salyk.kg [10:07:49]Connected sock=10 [10:07:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 79 B3 04 01 78 21 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 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 43 00 00 00 F4 03 04 00 F8 F4 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4A 85 02 00 35 04 06 00 F3 17 25 06 E4 86 3E A1 9B 1C FA D7 86 6C [10:07:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 92 CB 47 00 2C F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4A 85 02 00 F4 03 04 00 83 9B 94 66 B6 04 01 00 00 7F 52 E8 73 FE BE D2 3F [10:07:50]CommunicateWithHost err = 0 [10:07:50]CheckOFDResponse [10:07:50]1017 (14) - 77093643461234 [10:07:50]1041 (16) - 0000000000874718 [10:07:50]1040 (4) - 165194 [10:07:50]1012 (4) - 15.07.2024 03:46 [10:07:50]1206 (1) - 0 [10:07:50]OFD Sender: Remove packet 165194 [10:07:50]ProducePacketName [10:07:50]name=ofd_packets/00165194 [10:07:50]NVStorageDeleteData [10:07:50]Write to MH i2c: 01 00 00 22 28 4A [10:07:50]Write i2c OK [10:07:50]MH_I2C_Read... [10:07:50]Read from MH i2c: 01 [10:07:50]MH_I2C_Read... [10:07:50]Read from MH i2c: 01 07 00 [10:07:50]MH_I2C_Read... [10:07:50]Read from MH i2c: 01 07 00 22 28 00 00 00 00 00 04 0D 62 [10:07:50]RasterBufferAndPrint [10:07:50]line [10:07:50]line [10:07:50]line [10:07:50]line [10:07:50]line [10:07:50]written 0, free lines is 3347 [10:07:50]MH_Cut [10:07:50]Write to MH i2c: D1 01 00 29 28 01 23 [10:07:50]Write i2c OK [10:07:50]MH_I2C_Read... [10:07:50]Read from MH i2c: D1 [10:07:50]MH_I2C_Read... [10:07:50]Read from MH i2c: D1 01 00 [10:07:50]MH_I2C_Read... [10:07:50]Read from MH i2c: D1 01 00 29 28 00 22 [10:07:50]Write to MH i2c: 01 00 00 2A 28 52 [10:07:50]Write i2c OK [10:07:50]MH_I2C_Read... [10:07:50]OFD Sender: No OFD packet to send [10:07:50]*** Cut start [10:07:50]*** Partial cut [10:07:50]*** CUTSNS_PIN = 1 [10:07:50]*** CUTSNS_PIN = 0 [10:07:51]*** Brake cut motor [10:07:51]Read from MH i2c: 01 [10:07:51]MH_I2C_Read... [10:07:51]*** Stop cut motor [10:07:51]*** Cut end [10:07:51]Read from MH i2c: 01 07 00 [10:07:51]MH_I2C_Read... [10:07:51]Read from MH i2c: 01 07 00 2A 28 00 00 00 00 00 FF 0F 67 [10:07:51]process_action close_receipt done [10:07:51]requested_data is exist [10:07:51]produce_requested_data [10:07:51]requested_item fm.sn is exist - process it [10:07:51]wFMCommunicate request_size=4 [10:07:51]MH_SAM_APDU [10:07:51]CAPDU: 80 11 00 00 [10:07:51]Write to MH i2c: E2 08 00 2B 28 80 11 00 00 00 00 00 00 CD [10:07:51]Write i2c OK [10:07:51]MH_I2C_Read... [10:07:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:51]Read from MH i2c: E2 [10:07:51]MH_I2C_Read... [10:07:51]Read from MH i2c: E2 17 00 [10:07:51]MH_I2C_Read... [10:07:51]Read from MH i2c: E2 17 00 2B 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 23 [10:07:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:07:51]wFMCommunicate OK [10:07:51]requested_item fd.num is exist - process it [10:07:51]SAM_PROTO_GetFieldsCounters [10:07:51]wFMCommunicate request_size=4 [10:07:51]MH_SAM_APDU [10:07:51]CAPDU: 80 13 00 00 [10:07:51]Write to MH i2c: E2 08 00 2C 28 80 13 00 00 00 00 00 00 D0 [10:07:51]Write i2c OK [10:07:51]MH_I2C_Read... [10:07:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:07:51]Read from MH i2c: E2 [10:07:51]MH_I2C_Read... [10:07:51]Read from MH i2c: E2 62 00 [10:07:51]MH_I2C_Read... [10:07:51]Read from MH i2c: E2 62 00 2C 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4A 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [10:07:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4A 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:07:51]wFMCommunicate OK [10:07:51]SAM_PROTO_GetFieldsCounters done [10:07:51]requested_item shift.num is exist - process it [10:07:51]requested_item shift.opened is exist - process it [10:07:51]req_shift_opened [10:07:51]FM_GetShiftState [10:07:51]SAM_PROTO_GetShiftState [10:07:51]wFMCommunicate request_size=4 [10:07:51]MH_SAM_APDU [10:07:51]CAPDU: 80 13 01 00 [10:07:51]Write to MH i2c: E2 08 00 2D 28 80 13 01 00 00 00 00 00 D2 [10:07:51]Write i2c OK [10:07:51]MH_I2C_Read... [10:07:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:51]Read from MH i2c: E2 [10:07:51]MH_I2C_Read... [10:07:51]Read from MH i2c: E2 0E 00 [10:07:51]MH_I2C_Read... [10:07:51]Read from MH i2c: E2 0E 00 2D 28 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 AB [10:07:51]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:07:51]wFMCommunicate OK [10:07:51]SAM_PROTO_GetShiftState done [10:07:51]FM_GetShiftState done [10:07:51]req_shift_opened done [10:07:51]requested_item shift.open_date is exist - process it [10:07:51]req_shift_open_date [10:07:51]req_shift_open_date done [10:07:51]produce_requested_data done [10:07:51]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165194,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [10:07:51]process_action_free close_receipt [10:07:51]json_value_free [10:07:51]json_value_free done [10:07:51]process_json_proto returns [10:07:51]Send response to host [10:07:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165194,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [10:07:51]free response buf [10:07:51]execute_script done [10:07:51]execute_script returns [10:07:51]free content buf [10:07:51]Sock 9.Close socket [10:07:51]Sock 9.Thread stoped [10:07:55]OFD Sender: No OFD packet to send [10:08:00]OFD Sender: No OFD packet to send [10:08:05]OFD Sender: No OFD packet to send [10:08:10]OFD Sender: No OFD packet to send [10:08:15]OFD Sender: No OFD packet to send [10:08:20]OFD Sender: No OFD packet to send [10:08:25]OFD Sender: No OFD packet to send [10:08:30]OFD Sender: No OFD packet to send [10:08:35]OFD Sender: No OFD packet to send [10:08:40]OFD Sender: No OFD packet to send [10:08:45]OFD Sender: No OFD packet to send [10:08:50]OFD Sender: No OFD packet to send [10:08:55]OFD Sender: No OFD packet to send [10:09:00]OFD Sender: No OFD packet to send [10:09:05]OFD Sender: No OFD packet to send [10:09:10]OFD Sender: No OFD packet to send [10:09:15]OFD Sender: No OFD packet to send [10:09:20]OFD Sender: No OFD packet to send [10:09:25]OFD Sender: No OFD packet to send [10:09:26]accept exits with 7 [10:09:26]New connection [10:09:26]New thread 3066785124 created [10:09:26]Thread 3066928484 joined [10:09:26]Waiting for new connection... [10:09:26] Sock 7.Parse request [10:09:26]Sock 7.Check first char [10:09:26]Sock 7.First char is OK [10:09:26]request: POST /json_proto HTTP/1.0 [10:09:26]Method: POST [10:09:26]URL: /json_proto [10:09:26]Method is POST - this is cgi request [10:09:26]url: /json_proto [10:09:26]query_string will be loaded in cgi processing [10:09:26]execute_cgi json_proto POST (null) [10:09:26]execute_cgi path=json_proto method=POST [10:09:26]POST find Content-Length [10:09:26]Host: 172.17.56.4:8080 [10:09:26]Content-Length: 677 [10:09:26]Content-Type: application/json [10:09:26] [10:09:26]POST finish read [10:09:26]Found Content-Length = 677 [10:09:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459297", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:26]execute_script... [10:09:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459297", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:26]POST & json_proto [10:09:26]process_json_proto [10:09:26]json parsed OK: [10:09:26]protocol is kg_v1.0 [10:09:26]action value=close_receipt [10:09:26]process_action close_receipt [10:09:26]cmd_close_receipt [10:09:26]MH_GetDate [10:09:26]Write to MH i2c: F0 00 00 2E 28 45 [10:09:26]Write i2c OK [10:09:26]MH_I2C_Read... [10:09:26]Read from MH i2c: F0 [10:09:26]MH_I2C_Read... [10:09:26]Read from MH i2c: F0 09 00 [10:09:26]MH_I2C_Read... [10:09:26]Read from MH i2c: F0 09 00 2E 28 00 5A F5 94 66 C9 DC B2 64 52 [10:09:26]GetLastDocTimeStamp 1721038072 [10:09:26]current date 1721038170 [10:09:26]FM_GetShiftState [10:09:26]SAM_PROTO_GetShiftState [10:09:26]wFMCommunicate request_size=4 [10:09:26]MH_SAM_APDU [10:09:26]CAPDU: 80 13 01 00 [10:09:26]Write to MH i2c: E2 08 00 2F 28 80 13 01 00 00 00 00 00 D4 [10:09:26]Write i2c OK [10:09:26]MH_I2C_Read... [10:09:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:26]Read from MH i2c: E2 [10:09:26]MH_I2C_Read... [10:09:26]Read from MH i2c: E2 0E 00 [10:09:26]MH_I2C_Read... [10:09:26]Read from MH i2c: E2 0E 00 2F 28 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 AD [10:09:26]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:09:26]wFMCommunicate OK [10:09:26]SAM_PROTO_GetShiftState done [10:09:26]FM_GetShiftState done [10:09:26]opened in 1721003876 [10:09:26]opened+sec_in_day 1721090276 [10:09:26]quantity*price = 50008 [10:09:26]sum+1 = 50009 [10:09:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 68 15.07.2024 10:09 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165195 ФПД: 136047162364152 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T100930&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165195&fm=136047162364152&tin=02508201610067®Number=0000000000090829&sum=50000 [10:09:27]StoreToDocumentArchive [10:09:27]shift 448 fd 165195 [10:09:27]save to /storage/0448/doc_00165195 [10:09:27]save last doc name /storage/0448/doc_00165195 to /storage/kkm_last_doc_name [10:09:27]save OK [10:09:27]Clear old archive folders... [10:09:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:09:27]tlvbuf is 013B9F30 [10:09:27]SAM_PROTO_ClearQueue [10:09:27]wFMCommunicate request_size=4 [10:09:27]MH_SAM_APDU [10:09:27]CAPDU: 80 09 00 00 [10:09:27]Write to MH i2c: E2 08 00 3C 28 80 09 00 00 00 00 00 00 D6 [10:09:27]Write i2c OK [10:09:27]MH_I2C_Read... [10:09:27]Read from MH i2c: E2 [10:09:27]MH_I2C_Read... [10:09:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:09:27]Read from MH i2c: E2 03 00 [10:09:27]MH_I2C_Read... [10:09:27]Read from MH i2c: E2 03 00 3C 28 00 90 00 D8 [10:09:27]RAPDU: 90 00 [10:09:27]wFMCommunicate OK [10:09:27]SAM_PROTO_ClearQueue done [10:09:27]KKMCreateOFDPacket [10:09:27]OFDProtocolAddRootSTLVToBuf [10:09:27]FM_MakeSignedData [10:09:27]FM_MakeSignedData [10:09:27]SAM_PROTO_SignData [10:09:27]wFMCommunicate request_size=4 [10:09:27]MH_SAM_APDU [10:09:27]CAPDU: 80 0D 01 02 [10:09:27]Write to MH i2c: E2 08 00 3D 28 80 0D 01 02 00 00 00 00 DE [10:09:27]Write i2c OK [10:09:27]MH_I2C_Read... [10:09:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:09:27]Read from MH i2c: E2 [10:09:27]MH_I2C_Read... [10:09:27]Read from MH i2c: E2 03 00 [10:09:27]MH_I2C_Read... [10:09:27]Read from MH i2c: E2 03 00 3D 28 00 90 00 D9 [10:09:27]RAPDU: 90 00 [10:09:27]wFMCommunicate OK [10:09:27]wFMCommunicate request_size=255 [10:09:27]MH_SAM_APDU [10:09: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 5A F5 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4B 85 02 00 35 04 06 00 7B [10:09:27]Write to MH i2c: E2 02 01 3E 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 5A F5 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4B 85 02 00 35 04 06 00 7B 00 00 F2 [10:09:27]Write i2c OK [10:09:27]MH_I2C_Read... [10:09:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:27]Read from MH i2c: E2 [10:09:27]MH_I2C_Read... [10:09:27]Read from MH i2c: E2 03 00 [10:09:27]MH_I2C_Read... [10:09:27]Read from MH i2c: E2 03 00 3E 28 00 90 00 DA [10:09:27]RAPDU: 90 00 [10:09:27]wFMCommunicate OK [10:09:27]wFMCommunicate request_size=10 [10:09:27]MH_SAM_APDU [10:09:27]CAPDU: 80 0D 02 02 05 BB F2 C9 10 F8 [10:09:27]Write to MH i2c: E2 0D 00 3F 28 80 0D 02 02 05 00 BB F2 C9 10 F8 00 00 69 [10:09:27]Write i2c OK [10:09:27]MH_I2C_Read... [10:09:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:27]Read from MH i2c: E2 [10:09:27]MH_I2C_Read... [10:09:27]Read from MH i2c: E2 03 00 [10:09:27]MH_I2C_Read... [10:09:27]Read from MH i2c: E2 03 00 3F 28 00 90 00 DB [10:09:27]RAPDU: 90 00 [10:09:27]wFMCommunicate OK [10:09:27]wFMCommunicate request_size=4 [10:09:27]MH_SAM_APDU [10:09:27]CAPDU: 80 0D 03 02 [10:09:27]Write to MH i2c: E2 08 00 40 28 80 0D 03 02 00 00 00 00 E3 [10:09:27]Write i2c OK [10:09:27]MH_I2C_Read... [10:09:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:09:27]Read from MH i2c: E2 [10:09:27]MH_I2C_Read... [10:09:27]Read from MH i2c: E2 0B 00 [10:09:27]MH_I2C_Read... [10:09:27]Read from MH i2c: E2 0B 00 40 28 00 E0 49 F4 10 4A 9E 88 BF 90 00 40 [10:09:27]RAPDU: E0 49 F4 10 4A 9E 88 BF 90 00 [10:09:27]wFMCommunicate OK [10:09:27]SAM_PROTO_SignData done [10:09:27]FM_MakeSignedData done [10:09:27]CreateOFDProtocolMessage [10:09:27]wFMCommunicate request_size=4 [10:09:27]MH_SAM_APDU [10:09:27]CAPDU: 80 11 00 00 [10:09:27]Write to MH i2c: E2 08 00 41 28 80 11 00 00 00 00 00 00 E3 [10:09:27]Write i2c OK [10:09:27]MH_I2C_Read... [10:09:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:27]Read from MH i2c: E2 [10:09:27]MH_I2C_Read... [10:09:27]Read from MH i2c: E2 17 00 [10:09:27]MH_I2C_Read... [10:09:27]Read from MH i2c: E2 17 00 41 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 39 [10:09:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:09:27]wFMCommunicate OK [10:09:27]CreateOFDProtocolMessage done [10:09:27]OFDSenderStorePacket 165195 [10:09:27]StoreOFDPacket docnum=165195 [10:09:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 65 9C 07 01 41 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 5A F5 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4B 85 02 00 35 04 06 00 7B BB F2 C9 10 F8 E0 49 F4 10 4A 9E 88 BF [10:09:27]CheckFolder [10:09:27]dirname=/storage/ofd_packets [10:09:27]CheckFolder done [10:09:27]ProducePacketName [10:09:27]name=ofd_packets/00165195 [10:09:27]NVStorageSaveData ofd_packets/00165195 [10:09:27]File name is /storage/ofd_packets/00165195 [10:09:27]Write 301 bytes [10:09:27]NVStorageSaveData done [10:09:27]OFDSenderStorePacket done [10:09:27]KKMCreateOFDPacket done [10:09:27]NVStorageSaveData kkm_last_timestamp [10:09:27]File name is /storage/kkm_last_timestamp [10:09:27]Write 4 bytes [10:09:27]NVStorageSaveData done [10:09:27]ExternCall_PrintAddStr [10:09:27]wPrintStart [10:09:27]Write to MH i2c: 01 00 00 42 28 6A [10:09:27]Write i2c OK [10:09:27]MH_I2C_Read... [10:09:27]Read from MH i2c: 01 [10:09:27]MH_I2C_Read... [10:09:27]Read from MH i2c: 01 07 00 [10:09:27]MH_I2C_Read... [10:09:27]Read from MH i2c: 01 07 00 42 28 00 00 00 00 00 FF 0F 7F [10:09:27]RasterBufferAndPrint [10:09:27]line Счет N : (1)459297 [10:09:27]line ИНН: 02508201610067 [10:09:27]line Контрольно-Кассовый Чек [10:09:27]line ПРОДАЖА [10:09:27]line ТРК (МРК, ГНК) : 12 [10:09:27]line Товар: 2710124130 [10:09:27]line Аи-92-К-5 [10:09:27]line 7.600 * 65.80 [10:09:27]line = 500.08 [10:09:27]line НДС 12% НСП 1% [10:09:27]line > о реализуемом товаре [10:09:27]line ОКРУГЛЕНИЕ: -0.08 [10:09:27]line ИТОГО: 500.00 [10:09:27]line Внесено: 500.00 [10:09:27]line СДАЧА: 0.00 [10:09:27]line НСП 1% : 4.42 [10:09:27]line НДС 12% : 53.11 [10:09:27]line Наличными: 500.00 [10:09:27]line Безнал.: 0.00 [10:09:27]line Место: АЗС № 72 "Партнер Нефть" [10:09:27]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:09:27]line СНО: Общий режим [10:09:27]line Чек 68 15.07.2024 10:09 [10:09:27]line Смена: 448 ФФД: 1.0 [10:09:27]line ЗНМ: 0300000160 [10:09:27]line РНМ: 0000000000090829 [10:09:27]line Версия ККМ: 001 [10:09:27]line ФМ: 0000000000874718 [10:09:27]line ФД: 165195 [10:09:27]line ФПД: 136047162364152 [10:09:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T100930&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165195&fm=136047162364152&tin=02508201610067®Number=0000000000090829&sum=50000 [10:09:28]OFD Sender: Processing packet 165195 [packets to send 106, broken 105] [10:09:28]ProducePacketName [10:09:28]name=ofd_packets/00165195 [10:09:28]OFD Sender: To server: pG, [10:09:28]CommunicateWithHost lk.salyk.kg:30040 [10:09:28]ConnectInit lk.salyk.kg [10:09:28]written 0, free lines is 4095 [10:09:28]Connected sock=10 [10:09:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 65 9C 07 01 41 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 5A F5 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4B 85 02 00 35 04 06 00 7B BB F2 C9 10 F8 E0 49 F4 10 4A 9E 88 BF [10:09:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 D4 CF 47 00 3F 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 37 31 38 10 04 04 00 4B 85 02 00 F4 03 04 00 E5 9B 94 66 B6 04 01 00 00 D1 5E FC 44 38 2E 4F A4 [10:09:28]CommunicateWithHost err = 0 [10:09:28]CheckOFDResponse [10:09:28]1017 (14) - 77093643461234 [10:09:28]1041 (16) - 0000000000874718 [10:09:28]1040 (4) - 165195 [10:09:28]1012 (4) - 15.07.2024 03:47 [10:09:28]1206 (1) - 0 [10:09:28]OFD Sender: Remove packet 165195 [10:09:28]ProducePacketName [10:09:28]name=ofd_packets/00165195 [10:09:28]NVStorageDeleteData [10:09:28]Write to MH i2c: 01 00 00 6C 28 94 [10:09:28]Write i2c OK [10:09:28]MH_I2C_Read... [10:09:28]Read from MH i2c: 01 [10:09:28]MH_I2C_Read... [10:09:28]Read from MH i2c: 01 07 00 [10:09:28]MH_I2C_Read... [10:09:28]Read from MH i2c: 01 07 00 6C 28 00 00 00 00 00 FA 0C A1 [10:09:28]RasterBufferAndPrint [10:09:28]line [10:09:28]line [10:09:28]line [10:09:28]line [10:09:28]line [10:09:28]written 0, free lines is 3328 [10:09:28]MH_Cut [10:09:28]Write to MH i2c: D1 01 00 73 28 01 6D [10:09:28]Write i2c OK [10:09:28]MH_I2C_Read... [10:09:28]Read from MH i2c: D1 [10:09:28]MH_I2C_Read... [10:09:28]Read from MH i2c: D1 01 00 [10:09:28]MH_I2C_Read... [10:09:28]Read from MH i2c: D1 01 00 73 28 00 6C [10:09:28]Write to MH i2c: 01 00 00 74 28 9C [10:09:28]Write i2c OK [10:09:28]MH_I2C_Read... [10:09:28]OFD Sender: No OFD packet to send [10:09:29]*** Cut start [10:09:29]*** Partial cut [10:09:29]*** CUTSNS_PIN = 1 [10:09:29]*** CUTSNS_PIN = 0 [10:09:29]*** Brake cut motor [10:09:29]Read from MH i2c: 01 [10:09:29]MH_I2C_Read... [10:09:29]*** Stop cut motor [10:09:29]*** Cut end [10:09:29]Read from MH i2c: 01 07 00 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: 01 07 00 74 28 00 00 00 00 00 FF 0F B1 [10:09:29]process_action close_receipt done [10:09:29]requested_data is exist [10:09:29]produce_requested_data [10:09:29]requested_item fm.sn is exist - process it [10:09:29]wFMCommunicate request_size=4 [10:09:29]MH_SAM_APDU [10:09:29]CAPDU: 80 11 00 00 [10:09:29]Write to MH i2c: E2 08 00 75 28 80 11 00 00 00 00 00 00 17 [10:09:29]Write i2c OK [10:09:29]MH_I2C_Read... [10:09:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:29]Read from MH i2c: E2 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: E2 17 00 [10:09:29]MH_I2C_Read... [10:09:29]Read from MH i2c: E2 17 00 75 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6D [10:09:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:09:29]wFMCommunicate OK [10:09:29]requested_item fd.num is exist - process it [10:09:29]SAM_PROTO_GetFieldsCounters [10:09:29]wFMCommunicate request_size=4 [10:09:29]MH_SAM_APDU [10:09:29]CAPDU: 80 13 00 00 [10:09:29]Write to MH i2c: E2 08 00 76 28 80 13 00 00 00 00 00 00 1A [10:09:29]Write i2c OK [10:09:29]MH_I2C_Read... [10:09:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:09:30]Read from MH i2c: E2 [10:09:30]MH_I2C_Read... [10:09:30]Read from MH i2c: E2 62 00 [10:09:30]MH_I2C_Read... [10:09:30]Read from MH i2c: E2 62 00 76 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4B 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [10:09: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4B 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:09:30]wFMCommunicate OK [10:09:30]SAM_PROTO_GetFieldsCounters done [10:09:30]requested_item shift.num is exist - process it [10:09:30]requested_item shift.opened is exist - process it [10:09:30]req_shift_opened [10:09:30]FM_GetShiftState [10:09:30]SAM_PROTO_GetShiftState [10:09:30]wFMCommunicate request_size=4 [10:09:30]MH_SAM_APDU [10:09:30]CAPDU: 80 13 01 00 [10:09:30]Write to MH i2c: E2 08 00 77 28 80 13 01 00 00 00 00 00 1C [10:09:30]Write i2c OK [10:09:30]MH_I2C_Read... [10:09:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:30]Read from MH i2c: E2 [10:09:30]MH_I2C_Read... [10:09:30]Read from MH i2c: E2 0E 00 [10:09:30]MH_I2C_Read... [10:09:30]Read from MH i2c: E2 0E 00 77 28 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 F5 [10:09:30]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:09:30]wFMCommunicate OK [10:09:30]SAM_PROTO_GetShiftState done [10:09:30]FM_GetShiftState done [10:09:30]req_shift_opened done [10:09:30]requested_item shift.open_date is exist - process it [10:09:30]req_shift_open_date [10:09:30]req_shift_open_date done [10:09:30]produce_requested_data done [10:09:30]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165195,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [10:09:30]process_action_free close_receipt [10:09:30]json_value_free [10:09:30]json_value_free done [10:09:30]process_json_proto returns [10:09:30]Send response to host [10:09:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165195,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [10:09:30]free response buf [10:09:30]execute_script done [10:09:30]execute_script returns [10:09:30]free content buf [10:09:30]Sock 7.Close socket [10:09:30]Sock 7.Thread stoped [10:09:33]OFD Sender: No OFD packet to send [10:09:38]OFD Sender: No OFD packet to send [10:09:43]OFD Sender: No OFD packet to send [10:09:48]OFD Sender: No OFD packet to send [10:09:53]OFD Sender: No OFD packet to send [10:09:58]OFD Sender: No OFD packet to send [10:10:01]accept exits with 9 [10:10:01]New connection [10:10:01]New thread 3066928484 created [10:10:01]Thread 3066785124 joined [10:10:01]Waiting for new connection... [10:10:01] Sock 9.Parse request [10:10:01]Sock 9.Check first char [10:10:01]Sock 9.First char is OK [10:10:01]request: POST /json_proto HTTP/1.0 [10:10:01]Method: POST [10:10:01]URL: /json_proto [10:10:01]Method is POST - this is cgi request [10:10:01]url: /json_proto [10:10:01]query_string will be loaded in cgi processing [10:10:01]execute_cgi json_proto POST (null) [10:10:01]execute_cgi path=json_proto method=POST [10:10:01]POST find Content-Length [10:10:01]Host: 172.17.56.4:8080 [10:10:01]Content-Length: 673 [10:10:01]Content-Type: application/json [10:10:01] [10:10:01]POST finish read [10:10:01]Found Content-Length = 673 [10:10:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459298", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.070, "sum" : 70.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 70.00, "total" : 70.00, "payments": [ { "type": 0, "sum" : 70.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:01]execute_script... [10:10:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459298", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.070, "sum" : 70.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 70.00, "total" : 70.00, "payments": [ { "type": 0, "sum" : 70.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:01]POST & json_proto [10:10:01]process_json_proto [10:10:01]json parsed OK: [10:10:01]protocol is kg_v1.0 [10:10:01]action value=close_receipt [10:10:01]process_action close_receipt [10:10:01]cmd_close_receipt [10:10:01]MH_GetDate [10:10:01]Write to MH i2c: F0 00 00 78 28 8F [10:10:01]Write i2c OK [10:10:01]MH_I2C_Read... [10:10:01]Read from MH i2c: F0 [10:10:01]MH_I2C_Read... [10:10:01]Read from MH i2c: F0 09 00 [10:10:01]MH_I2C_Read... [10:10:01]Read from MH i2c: F0 09 00 78 28 00 7E F5 94 66 C9 DC B2 64 C0 [10:10:01]GetLastDocTimeStamp 1721038170 [10:10:01]current date 1721038206 [10:10:01]FM_GetShiftState [10:10:01]SAM_PROTO_GetShiftState [10:10:01]wFMCommunicate request_size=4 [10:10:01]MH_SAM_APDU [10:10:01]CAPDU: 80 13 01 00 [10:10:01]Write to MH i2c: E2 08 00 79 28 80 13 01 00 00 00 00 00 1E [10:10:01]Write i2c OK [10:10:01]MH_I2C_Read... [10:10:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:01]Read from MH i2c: E2 [10:10:01]MH_I2C_Read... [10:10:01]Read from MH i2c: E2 0E 00 [10:10:01]MH_I2C_Read... [10:10:01]Read from MH i2c: E2 0E 00 79 28 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 F7 [10:10:01]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:10:01]wFMCommunicate OK [10:10:01]SAM_PROTO_GetShiftState done [10:10:01]FM_GetShiftState done [10:10:01]opened in 1721003876 [10:10:01]opened+sec_in_day 1721090276 [10:10:01]quantity*price = 7040 [10:10:01]sum+1 = 7042 [10:10:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 70.00 Внесено: 70.00 СДАЧА: 0.00 НСП 1% : 0.62 НДС 12% : 7.48 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 69 15.07.2024 10:10 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165196 ФПД: 169984916185050 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T101006&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165196&fm=169984916185050&tin=02508201610067®Number=0000000000090829&sum=7000 [10:10:02]StoreToDocumentArchive [10:10:02]shift 448 fd 165196 [10:10:02]save to /storage/0448/doc_00165196 [10:10:02]save last doc name /storage/0448/doc_00165196 to /storage/kkm_last_doc_name [10:10:02]save OK [10:10:02]Clear old archive folders... [10:10:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:10:02]tlvbuf is 013E40E0 [10:10:02]SAM_PROTO_ClearQueue [10:10:02]wFMCommunicate request_size=4 [10:10:02]MH_SAM_APDU [10:10:02]CAPDU: 80 09 00 00 [10:10:02]Write to MH i2c: E2 08 00 86 28 80 09 00 00 00 00 00 00 20 [10:10:02]Write i2c OK [10:10:02]MH_I2C_Read... [10:10:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:10:02]Read from MH i2c: E2 [10:10:02]MH_I2C_Read... [10:10:02]Read from MH i2c: E2 03 00 [10:10:02]MH_I2C_Read... [10:10:02]Read from MH i2c: E2 03 00 86 28 00 90 00 22 [10:10:02]RAPDU: 90 00 [10:10:02]wFMCommunicate OK [10:10:02]SAM_PROTO_ClearQueue done [10:10:02]KKMCreateOFDPacket [10:10:02]OFDProtocolAddRootSTLVToBuf [10:10:02]FM_MakeSignedData [10:10:02]FM_MakeSignedData [10:10:02]SAM_PROTO_SignData [10:10:02]wFMCommunicate request_size=4 [10:10:02]MH_SAM_APDU [10:10:02]CAPDU: 80 0D 01 02 [10:10:02]Write to MH i2c: E2 08 00 87 28 80 0D 01 02 00 00 00 00 28 [10:10:02]Write i2c OK [10:10:02]MH_I2C_Read... [10:10:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:10:02]Read from MH i2c: E2 [10:10:02]MH_I2C_Read... [10:10:02]Read from MH i2c: E2 03 00 [10:10:02]MH_I2C_Read... [10:10:02]Read from MH i2c: E2 03 00 87 28 00 90 00 23 [10:10:02]RAPDU: 90 00 [10:10:02]wFMCommunicate OK [10:10:02]wFMCommunicate request_size=255 [10:10:02]MH_SAM_APDU [10:10:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 04 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 81 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 7E F5 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4C 85 02 00 35 04 06 00 9A [10:10:02]Write to MH i2c: E2 02 01 88 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 04 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 81 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 7E F5 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4C 85 02 00 35 04 06 00 9A 00 00 C5 [10:10:02]Write i2c OK [10:10:02]MH_I2C_Read... [10:10:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:03]Read from MH i2c: E2 [10:10:03]MH_I2C_Read... [10:10:03]Read from MH i2c: E2 03 00 [10:10:03]MH_I2C_Read... [10:10:03]Read from MH i2c: E2 03 00 88 28 00 90 00 24 [10:10:03]RAPDU: 90 00 [10:10:03]wFMCommunicate OK [10:10:03]wFMCommunicate request_size=10 [10:10:03]MH_SAM_APDU [10:10:03]CAPDU: 80 0D 02 02 05 99 B2 8B DF DA [10:10:03]Write to MH i2c: E2 0D 00 89 28 80 0D 02 02 05 00 99 B2 8B DF DA 00 00 C4 [10:10:03]Write i2c OK [10:10:03]MH_I2C_Read... [10:10:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:03]Read from MH i2c: E2 [10:10:03]MH_I2C_Read... [10:10:03]Read from MH i2c: E2 03 00 [10:10:03]MH_I2C_Read... [10:10:03]Read from MH i2c: E2 03 00 89 28 00 90 00 25 [10:10:03]RAPDU: 90 00 [10:10:03]wFMCommunicate OK [10:10:03]wFMCommunicate request_size=4 [10:10:03]MH_SAM_APDU [10:10:03]CAPDU: 80 0D 03 02 [10:10:03]Write to MH i2c: E2 08 00 8A 28 80 0D 03 02 00 00 00 00 2D [10:10:03]Write i2c OK [10:10:03]MH_I2C_Read... [10:10:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:10:03]Read from MH i2c: E2 [10:10:03]MH_I2C_Read... [10:10:03]Read from MH i2c: E2 0B 00 [10:10:03]MH_I2C_Read... [10:10:03]Read from MH i2c: E2 0B 00 8A 28 00 29 25 EA 28 DD AC 16 F4 90 00 21 [10:10:03]RAPDU: 29 25 EA 28 DD AC 16 F4 90 00 [10:10:03]wFMCommunicate OK [10:10:03]SAM_PROTO_SignData done [10:10:03]FM_MakeSignedData done [10:10:03]CreateOFDProtocolMessage [10:10:03]wFMCommunicate request_size=4 [10:10:03]MH_SAM_APDU [10:10:03]CAPDU: 80 11 00 00 [10:10:03]Write to MH i2c: E2 08 00 8B 28 80 11 00 00 00 00 00 00 2D [10:10:03]Write i2c OK [10:10:03]MH_I2C_Read... [10:10:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:03]Read from MH i2c: E2 [10:10:03]MH_I2C_Read... [10:10:03]Read from MH i2c: E2 17 00 [10:10:03]MH_I2C_Read... [10:10:03]Read from MH i2c: E2 17 00 8B 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 83 [10:10:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:10:03]wFMCommunicate OK [10:10:03]CreateOFDProtocolMessage done [10:10:03]OFDSenderStorePacket 165196 [10:10:03]StoreOFDPacket docnum=165196 [10:10:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 BE B8 07 01 13 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 2E 04 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 81 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 7E F5 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4C 85 02 00 35 04 06 00 9A 99 B2 8B DF DA 29 25 EA 28 DD AC 16 F4 [10:10:03]CheckFolder [10:10:03]dirname=/storage/ofd_packets [10:10:03]CheckFolder done [10:10:03]ProducePacketName [10:10:03]name=ofd_packets/00165196 [10:10:03]NVStorageSaveData ofd_packets/00165196 [10:10:03]File name is /storage/ofd_packets/00165196 [10:10:03]Write 301 bytes [10:10:03]NVStorageSaveData done [10:10:03]OFDSenderStorePacket done [10:10:03]KKMCreateOFDPacket done [10:10:03]NVStorageSaveData kkm_last_timestamp [10:10:03]File name is /storage/kkm_last_timestamp [10:10:03]Write 4 bytes [10:10:03]NVStorageSaveData done [10:10:03]ExternCall_PrintAddStr [10:10:03]wPrintStart [10:10:03]Write to MH i2c: 01 00 00 8C 28 B4 [10:10:03]Write i2c OK [10:10:03]MH_I2C_Read... [10:10:03]Read from MH i2c: 01 [10:10:03]MH_I2C_Read... [10:10:03]Read from MH i2c: 01 07 00 [10:10:03]MH_I2C_Read... [10:10:03]Read from MH i2c: 01 07 00 8C 28 00 00 00 00 00 FF 0F C9 [10:10:03]RasterBufferAndPrint [10:10:03]line Счет N : (1)459298 [10:10:03]line ИНН: 02508201610067 [10:10:03]line Контрольно-Кассовый Чек [10:10:03]line ПРОДАЖА [10:10:03]line ТРК (МРК, ГНК) : 12 [10:10:03]line Товар: 2710124130 [10:10:03]line Аи-92-К-5 [10:10:03]line 1.070 * 65.80 [10:10:03]line = 70.41 [10:10:03]line НДС 12% НСП 1% [10:10:03]line > о реализуемом товаре [10:10:03]line ОКРУГЛЕНИЕ: -0.41 [10:10:03]line ИТОГО: 70.00 [10:10:03]line Внесено: 70.00 [10:10:03]line СДАЧА: 0.00 [10:10:03]line НСП 1% : 0.62 [10:10:03]line НДС 12% : 7.48 [10:10:03]line Наличными: 70.00 [10:10:03]line Безнал.: 0.00 [10:10:03]line Место: АЗС № 72 "Партнер Нефть" [10:10:03]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:10:03]line СНО: Общий режим [10:10:03]line Чек 69 15.07.2024 10:10 [10:10:03]line Смена: 448 ФФД: 1.0 [10:10:03]line ЗНМ: 0300000160 [10:10:03]line РНМ: 0000000000090829 [10:10:03]line Версия ККМ: 001 [10:10:03]line ФМ: 0000000000874718 [10:10:03]line ФД: 165196 [10:10:03]line ФПД: 169984916185050 [10:10:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T101006&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165196&fm=169984916185050&tin=02508201610067®Number=0000000000090829&sum=7000 [10:10:03]OFD Sender: Processing packet 165196 [packets to send 106, broken 105] [10:10:03]ProducePacketName [10:10:03]name=ofd_packets/00165196 [10:10:03]OFD Sender: To server: pG, [10:10:03]CommunicateWithHost lk.salyk.kg:30040 [10:10:03]ConnectInit lk.salyk.kg [10:10:03]written 0, free lines is 4095 [10:10:03]Connected sock=10 [10:10:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 BE B8 07 01 13 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 2E 04 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 81 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 7E F5 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4C 85 02 00 35 04 06 00 9A 99 B2 8B DF DA 29 25 EA 28 DD AC 16 F4 [10:10:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 96 D4 47 00 2E 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 4C 85 02 00 F4 03 04 00 09 9C 94 66 B6 04 01 00 00 8D 77 02 C7 73 B9 3C 69 [10:10:03]CommunicateWithHost err = 0 [10:10:03]CheckOFDResponse [10:10:03]1017 (14) - 77093643461234 [10:10:03]1041 (16) - 0000000000874718 [10:10:03]1040 (4) - 165196 [10:10:03]1012 (4) - 15.07.2024 03:48 [10:10:03]1206 (1) - 0 [10:10:03]OFD Sender: Remove packet 165196 [10:10:03]ProducePacketName [10:10:03]name=ofd_packets/00165196 [10:10:03]NVStorageDeleteData [10:10:04]Write to MH i2c: 01 00 00 B6 28 DE [10:10:04]Write i2c OK [10:10:04]MH_I2C_Read... [10:10:04]Read from MH i2c: 01 [10:10:04]MH_I2C_Read... [10:10:04]Read from MH i2c: 01 07 00 [10:10:04]MH_I2C_Read... [10:10:04]Read from MH i2c: 01 07 00 B6 28 00 00 00 00 00 01 0D F3 [10:10:04]RasterBufferAndPrint [10:10:04]line [10:10:04]line [10:10:04]line [10:10:04]line [10:10:04]line [10:10:04]written 0, free lines is 3335 [10:10:04]MH_Cut [10:10:04]Write to MH i2c: D1 01 00 BD 28 01 B7 [10:10:04]Write i2c OK [10:10:04]MH_I2C_Read... [10:10:04]Read from MH i2c: D1 [10:10:04]MH_I2C_Read... [10:10:04]Read from MH i2c: D1 01 00 [10:10:04]MH_I2C_Read... [10:10:04]Read from MH i2c: D1 01 00 BD 28 00 B6 [10:10:04]Write to MH i2c: 01 00 00 BE 28 E6 [10:10:04]Write i2c OK [10:10:04]MH_I2C_Read... [10:10:04]OFD Sender: No OFD packet to send [10:10:04]*** Cut start [10:10:04]*** Partial cut [10:10:04]*** CUTSNS_PIN = 1 [10:10:04]*** CUTSNS_PIN = 0 [10:10:05]*** Brake cut motor [10:10:05]Read from MH i2c: 01 [10:10:05]MH_I2C_Read... [10:10:05]*** Stop cut motor [10:10:05]*** Cut end [10:10:05]Read from MH i2c: 01 07 00 [10:10:05]MH_I2C_Read... [10:10:05]Read from MH i2c: 01 07 00 BE 28 00 00 00 00 00 FF 0F FB [10:10:05]process_action close_receipt done [10:10:05]requested_data is exist [10:10:05]produce_requested_data [10:10:05]requested_item fm.sn is exist - process it [10:10:05]wFMCommunicate request_size=4 [10:10:05]MH_SAM_APDU [10:10:05]CAPDU: 80 11 00 00 [10:10:05]Write to MH i2c: E2 08 00 BF 28 80 11 00 00 00 00 00 00 61 [10:10:05]Write i2c OK [10:10:05]MH_I2C_Read... [10:10:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:05]Read from MH i2c: E2 [10:10:05]MH_I2C_Read... [10:10:05]Read from MH i2c: E2 17 00 [10:10:05]MH_I2C_Read... [10:10:05]Read from MH i2c: E2 17 00 BF 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B7 [10:10:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:10:05]wFMCommunicate OK [10:10:05]requested_item fd.num is exist - process it [10:10:05]SAM_PROTO_GetFieldsCounters [10:10:05]wFMCommunicate request_size=4 [10:10:05]MH_SAM_APDU [10:10:05]CAPDU: 80 13 00 00 [10:10:05]Write to MH i2c: E2 08 00 C0 28 80 13 00 00 00 00 00 00 64 [10:10:05]Write i2c OK [10:10:05]MH_I2C_Read... [10:10:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:10:05]Read from MH i2c: E2 [10:10:05]MH_I2C_Read... [10:10:05]Read from MH i2c: E2 62 00 [10:10:05]MH_I2C_Read... [10:10:05]Read from MH i2c: E2 62 00 C0 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4C 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 EE [10:10:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4C 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:10:05]wFMCommunicate OK [10:10:05]SAM_PROTO_GetFieldsCounters done [10:10:05]requested_item shift.num is exist - process it [10:10:05]requested_item shift.opened is exist - process it [10:10:05]req_shift_opened [10:10:05]FM_GetShiftState [10:10:05]SAM_PROTO_GetShiftState [10:10:05]wFMCommunicate request_size=4 [10:10:05]MH_SAM_APDU [10:10:05]CAPDU: 80 13 01 00 [10:10:05]Write to MH i2c: E2 08 00 C1 28 80 13 01 00 00 00 00 00 66 [10:10:05]Write i2c OK [10:10:05]MH_I2C_Read... [10:10:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:05]Read from MH i2c: E2 [10:10:05]MH_I2C_Read... [10:10:05]Read from MH i2c: E2 0E 00 [10:10:05]MH_I2C_Read... [10:10:05]Read from MH i2c: E2 0E 00 C1 28 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 3F [10:10:05]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:10:05]wFMCommunicate OK [10:10:05]SAM_PROTO_GetShiftState done [10:10:05]FM_GetShiftState done [10:10:05]req_shift_opened done [10:10:05]requested_item shift.open_date is exist - process it [10:10:05]req_shift_open_date [10:10:05]req_shift_open_date done [10:10:05]produce_requested_data done [10:10:05]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165196,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [10:10:05]process_action_free close_receipt [10:10:05]json_value_free [10:10:05]json_value_free done [10:10:05]process_json_proto returns [10:10:05]Send response to host [10:10:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165196,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [10:10:05]free response buf [10:10:05]execute_script done [10:10:05]execute_script returns [10:10:05]free content buf [10:10:05]Sock 9.Close socket [10:10:05]Sock 9.Thread stoped [10:10:09]OFD Sender: No OFD packet to send [10:10:14]OFD Sender: No OFD packet to send [10:10:19]OFD Sender: No OFD packet to send [10:10:24]OFD Sender: No OFD packet to send [10:10:29]OFD Sender: No OFD packet to send [10:10:34]OFD Sender: No OFD packet to send [10:10:39]accept exits with 7 [10:10:39]New connection [10:10:39]New thread 3066785124 created [10:10:39]Thread 3066928484 joined [10:10:39]Waiting for new connection... [10:10:39] Sock 7.Parse request [10:10:39]Sock 7.Check first char [10:10:39]Sock 7.First char is OK [10:10:39]request: POST /json_proto HTTP/1.0 [10:10:39]Method: POST [10:10:39]URL: /json_proto [10:10:39]Method is POST - this is cgi request [10:10:39]url: /json_proto [10:10:39]query_string will be loaded in cgi processing [10:10:39]execute_cgi json_proto POST (null) [10:10:39]execute_cgi path=json_proto method=POST [10:10:39]POST find Content-Length [10:10:39]Host: 172.17.56.4:8080 [10:10:39]Content-Length: 678 [10:10:39]Content-Type: application/json [10:10:39] [10:10:39]POST finish read [10:10:39]Found Content-Length = 678 [10:10:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459299", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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" ] } } [10:10:39]execute_script... [10:10:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459299", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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" ] } } [10:10:39]POST & json_proto [10:10:39]process_json_proto [10:10:39]json parsed OK: [10:10:39]protocol is kg_v1.0 [10:10:39]action value=close_receipt [10:10:39]process_action close_receipt [10:10:39]cmd_close_receipt [10:10:39]MH_GetDate [10:10:39]Write to MH i2c: F0 00 00 C2 28 D9 [10:10:39]Write i2c OK [10:10:39]MH_I2C_Read... [10:10:39]Read from MH i2c: F0 [10:10:39]MH_I2C_Read... [10:10:39]Read from MH i2c: F0 09 00 [10:10:39]MH_I2C_Read... [10:10:39]Read from MH i2c: F0 09 00 C2 28 00 A4 F5 94 66 C9 DC B2 64 30 [10:10:39]GetLastDocTimeStamp 1721038206 [10:10:39]current date 1721038244 [10:10:39]FM_GetShiftState [10:10:39]SAM_PROTO_GetShiftState [10:10:39]wFMCommunicate request_size=4 [10:10:39]MH_SAM_APDU [10:10:39]CAPDU: 80 13 01 00 [10:10:39]Write to MH i2c: E2 08 00 C3 28 80 13 01 00 00 00 00 00 68 [10:10:39]Write i2c OK [10:10:39]MH_I2C_Read... [10:10:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:39]Read from MH i2c: E2 [10:10:39]MH_I2C_Read... [10:10:39]Read from MH i2c: E2 0E 00 [10:10:39]MH_I2C_Read... [10:10:39]Read from MH i2c: E2 0E 00 C3 28 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 41 [10:10:39]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:10:39]wFMCommunicate OK [10:10:39]SAM_PROTO_GetShiftState done [10:10:39]FM_GetShiftState done [10:10:39]opened in 1721003876 [10:10:39]opened+sec_in_day 1721090276 [10:10:39]quantity*price = 70011 [10:10:39]sum+1 = 70012 [10:10:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 70 15.07.2024 10:10 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165197 ФПД: 69585215731660 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T101044&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165197&fm=69585215731660&tin=02508201610067®Number=0000000000090829&sum=70000 [10:10:40]StoreToDocumentArchive [10:10:40]shift 448 fd 165197 [10:10:40]save to /storage/0448/doc_00165197 [10:10:40]save last doc name /storage/0448/doc_00165197 to /storage/kkm_last_doc_name [10:10:40]save OK [10:10:40]Clear old archive folders... [10:10:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:10:40]tlvbuf is 0143D550 [10:10:40]SAM_PROTO_ClearQueue [10:10:40]wFMCommunicate request_size=4 [10:10:40]MH_SAM_APDU [10:10:40]CAPDU: 80 09 00 00 [10:10:40]Write to MH i2c: E2 08 00 D0 28 80 09 00 00 00 00 00 00 6A [10:10:40]Write i2c OK [10:10:40]MH_I2C_Read... [10:10:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:10:40]Read from MH i2c: E2 [10:10:40]MH_I2C_Read... [10:10:40]Read from MH i2c: E2 03 00 [10:10:40]MH_I2C_Read... [10:10:40]Read from MH i2c: E2 03 00 D0 28 00 90 00 6C [10:10:40]RAPDU: 90 00 [10:10:40]wFMCommunicate OK [10:10:40]SAM_PROTO_ClearQueue done [10:10:40]KKMCreateOFDPacket [10:10:40]OFDProtocolAddRootSTLVToBuf [10:10:40]FM_MakeSignedData [10:10:40]FM_MakeSignedData [10:10:40]SAM_PROTO_SignData [10:10:40]wFMCommunicate request_size=4 [10:10:40]MH_SAM_APDU [10:10:40]CAPDU: 80 0D 01 02 [10:10:40]Write to MH i2c: E2 08 00 D1 28 80 0D 01 02 00 00 00 00 72 [10:10:40]Write i2c OK [10:10:40]MH_I2C_Read... [10:10:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:10:40]Read from MH i2c: E2 [10:10:40]MH_I2C_Read... [10:10:40]Read from MH i2c: E2 03 00 [10:10:40]MH_I2C_Read... [10:10:40]Read from MH i2c: E2 03 00 D1 28 00 90 00 6D [10:10:40]RAPDU: 90 00 [10:10:40]wFMCommunicate OK [10:10:40]wFMCommunicate request_size=255 [10:10:40]MH_SAM_APDU [10:10:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 46 00 00 00 F4 03 04 00 A4 F5 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4D 85 02 00 35 04 06 00 3F [10:10:40]Write to MH i2c: E2 02 01 D2 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 46 00 00 00 F4 03 04 00 A4 F5 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4D 85 02 00 35 04 06 00 3F 00 00 DC [10:10:40]Write i2c OK [10:10:40]MH_I2C_Read... [10:10:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:40]Read from MH i2c: E2 [10:10:40]MH_I2C_Read... [10:10:40]Read from MH i2c: E2 03 00 [10:10:40]MH_I2C_Read... [10:10:40]Read from MH i2c: E2 03 00 D2 28 00 90 00 6E [10:10:40]RAPDU: 90 00 [10:10:40]wFMCommunicate OK [10:10:40]wFMCommunicate request_size=10 [10:10:40]MH_SAM_APDU [10:10:40]CAPDU: 80 0D 02 02 05 49 92 10 B7 CC [10:10:40]Write to MH i2c: E2 0D 00 D3 28 80 0D 02 02 05 00 49 92 10 B7 CC 00 00 ED [10:10:40]Write i2c OK [10:10:40]MH_I2C_Read... [10:10:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:41]Read from MH i2c: E2 [10:10:41]MH_I2C_Read... [10:10:41]Read from MH i2c: E2 03 00 [10:10:41]MH_I2C_Read... [10:10:41]Read from MH i2c: E2 03 00 D3 28 00 90 00 6F [10:10:41]RAPDU: 90 00 [10:10:41]wFMCommunicate OK [10:10:41]wFMCommunicate request_size=4 [10:10:41]MH_SAM_APDU [10:10:41]CAPDU: 80 0D 03 02 [10:10:41]Write to MH i2c: E2 08 00 D4 28 80 0D 03 02 00 00 00 00 77 [10:10:41]Write i2c OK [10:10:41]MH_I2C_Read... [10:10:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:10:41]Read from MH i2c: E2 [10:10:41]MH_I2C_Read... [10:10:41]Read from MH i2c: E2 0B 00 [10:10:41]MH_I2C_Read... [10:10:41]Read from MH i2c: E2 0B 00 D4 28 00 CD 73 79 A2 96 62 CD 7E 90 00 16 [10:10:41]RAPDU: CD 73 79 A2 96 62 CD 7E 90 00 [10:10:41]wFMCommunicate OK [10:10:41]SAM_PROTO_SignData done [10:10:41]FM_MakeSignedData done [10:10:41]CreateOFDProtocolMessage [10:10:41]wFMCommunicate request_size=4 [10:10:41]MH_SAM_APDU [10:10:41]CAPDU: 80 11 00 00 [10:10:41]Write to MH i2c: E2 08 00 D5 28 80 11 00 00 00 00 00 00 77 [10:10:41]Write i2c OK [10:10:41]MH_I2C_Read... [10:10:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:41]Read from MH i2c: E2 [10:10:41]MH_I2C_Read... [10:10:41]Read from MH i2c: E2 17 00 [10:10:41]MH_I2C_Read... [10:10:41]Read from MH i2c: E2 17 00 D5 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CD [10:10:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:10:41]wFMCommunicate OK [10:10:41]CreateOFDProtocolMessage done [10:10:41]OFDSenderStorePacket 165197 [10:10:41]StoreOFDPacket docnum=165197 [10:10:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 17 F5 07 01 A5 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 46 00 00 00 F4 03 04 00 A4 F5 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4D 85 02 00 35 04 06 00 3F 49 92 10 B7 CC CD 73 79 A2 96 62 CD 7E [10:10:41]CheckFolder [10:10:41]dirname=/storage/ofd_packets [10:10:41]CheckFolder done [10:10:41]ProducePacketName [10:10:41]name=ofd_packets/00165197 [10:10:41]NVStorageSaveData ofd_packets/00165197 [10:10:41]File name is /storage/ofd_packets/00165197 [10:10:41]Write 301 bytes [10:10:41]NVStorageSaveData done [10:10:41]OFDSenderStorePacket done [10:10:41]KKMCreateOFDPacket done [10:10:41]NVStorageSaveData kkm_last_timestamp [10:10:41]File name is /storage/kkm_last_timestamp [10:10:41]Write 4 bytes [10:10:41]NVStorageSaveData done [10:10:41]ExternCall_PrintAddStr [10:10:41]wPrintStart [10:10:41]Write to MH i2c: 01 00 00 D6 28 FE [10:10:41]Write i2c OK [10:10:41]MH_I2C_Read... [10:10:41]Read from MH i2c: 01 [10:10:41]MH_I2C_Read... [10:10:41]Read from MH i2c: 01 07 00 [10:10:41]MH_I2C_Read... [10:10:41]Read from MH i2c: 01 07 00 D6 28 00 00 00 00 00 FF 0F 13 [10:10:41]RasterBufferAndPrint [10:10:41]line Счет N : (1)459299 [10:10:41]line ИНН: 02508201610067 [10:10:41]line Контрольно-Кассовый Чек [10:10:41]line ПРОДАЖА [10:10:41]line ТРК (МРК, ГНК) : 22 [10:10:41]line Товар: 2710124130 [10:10:41]line Аи-92-К-5 [10:10:41]line 10.640 * 65.80 [10:10:41]line = 700.11 [10:10:41]line НДС 12% НСП 1% [10:10:41]line > о реализуемом товаре [10:10:41]line ОКРУГЛЕНИЕ: -0.11 [10:10:41]line ИТОГО: 700.00 [10:10:41]line Внесено: 700.00 [10:10:41]line СДАЧА: 0.00 [10:10:41]line НСП 1% : 6.20 [10:10:41]line НДС 12% : 74.35 [10:10:41]line Наличными: 700.00 [10:10:41]line Безнал.: 0.00 [10:10:41]line Место: АЗС № 72 "Партнер Нефть" [10:10:41]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:10:41]line СНО: Общий режим [10:10:41]line Чек 70 15.07.2024 10:10 [10:10:41]line Смена: 448 ФФД: 1.0 [10:10:41]line ЗНМ: 0300000160 [10:10:41]line РНМ: 0000000000090829 [10:10:41]line Версия ККМ: 001 [10:10:41]line ФМ: 0000000000874718 [10:10:41]line ФД: 165197 [10:10:41]line ФПД: 69585215731660 [10:10:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T101044&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165197&fm=69585215731660&tin=02508201610067®Number=0000000000090829&sum=70000 [10:10:41]written 0, free lines is 4095 [10:10:41]OFD Sender: Processing packet 165197 [packets to send 106, broken 105] [10:10:41]ProducePacketName [10:10:41]name=ofd_packets/00165197 [10:10:41]OFD Sender: To server: pG, [10:10:41]CommunicateWithHost lk.salyk.kg:30040 [10:10:41]ConnectInit lk.salyk.kg [10:10:41]Connected sock=10 [10:10:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 17 F5 07 01 A5 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 46 00 00 00 F4 03 04 00 A4 F5 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4D 85 02 00 35 04 06 00 3F 49 92 10 B7 CC CD 73 79 A2 96 62 CD 7E [10:10:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 BC C7 47 00 C8 FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4D 85 02 00 F4 03 04 00 2E 9C 94 66 B6 04 01 00 00 B2 FA 06 30 BA 92 CE F7 [10:10:41]CommunicateWithHost err = 0 [10:10:41]CheckOFDResponse [10:10:41]1017 (14) - 77093643461234 [10:10:41]1041 (16) - 0000000000874718 [10:10:41]1040 (4) - 165197 [10:10:41]1012 (4) - 15.07.2024 03:49 [10:10:41]1206 (1) - 0 [10:10:41]OFD Sender: Remove packet 165197 [10:10:41]ProducePacketName [10:10:41]name=ofd_packets/00165197 [10:10:41]NVStorageDeleteData [10:10:41]Write to MH i2c: 01 00 00 00 29 29 [10:10:41]Write i2c OK [10:10:41]MH_I2C_Read... [10:10:41]Read from MH i2c: 01 [10:10:41]MH_I2C_Read... [10:10:41]Read from MH i2c: 01 07 00 [10:10:41]MH_I2C_Read... [10:10:41]Read from MH i2c: 01 07 00 00 29 00 00 00 00 00 ED 0C 29 [10:10:41]RasterBufferAndPrint [10:10:41]line [10:10:41]line [10:10:41]line [10:10:41]line [10:10:41]line [10:10:41]written 0, free lines is 3315 [10:10:41]MH_Cut [10:10:41]Write to MH i2c: D1 01 00 07 29 01 02 [10:10:41]Write i2c OK [10:10:41]MH_I2C_Read... [10:10:41]Read from MH i2c: D1 [10:10:41]MH_I2C_Read... [10:10:41]Read from MH i2c: D1 01 00 [10:10:41]MH_I2C_Read... [10:10:41]Read from MH i2c: D1 01 00 07 29 00 01 [10:10:41]Write to MH i2c: 01 00 00 08 29 31 [10:10:41]Write i2c OK [10:10:41]MH_I2C_Read... [10:10:42]OFD Sender: No OFD packet to send [10:10:42]*** Cut start [10:10:42]*** Partial cut [10:10:42]*** CUTSNS_PIN = 1 [10:10:42]*** CUTSNS_PIN = 0 [10:10:42]*** Brake cut motor [10:10:43]Read from MH i2c: 01 [10:10:43]MH_I2C_Read... [10:10:43]*** Stop cut motor [10:10:43]*** Cut end [10:10:43]Read from MH i2c: 01 07 00 [10:10:43]MH_I2C_Read... [10:10:43]Read from MH i2c: 01 07 00 08 29 00 00 00 00 00 FF 0F 46 [10:10:43]process_action close_receipt done [10:10:43]requested_data is exist [10:10:43]produce_requested_data [10:10:43]requested_item fm.sn is exist - process it [10:10:43]wFMCommunicate request_size=4 [10:10:43]MH_SAM_APDU [10:10:43]CAPDU: 80 11 00 00 [10:10:43]Write to MH i2c: E2 08 00 09 29 80 11 00 00 00 00 00 00 AC [10:10:43]Write i2c OK [10:10:43]MH_I2C_Read... [10:10:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:43]Read from MH i2c: E2 [10:10:43]MH_I2C_Read... [10:10:43]Read from MH i2c: E2 17 00 [10:10:43]MH_I2C_Read... [10:10:43]Read from MH i2c: E2 17 00 09 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 02 [10:10:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:10:43]wFMCommunicate OK [10:10:43]requested_item fd.num is exist - process it [10:10:43]SAM_PROTO_GetFieldsCounters [10:10:43]wFMCommunicate request_size=4 [10:10:43]MH_SAM_APDU [10:10:43]CAPDU: 80 13 00 00 [10:10:43]Write to MH i2c: E2 08 00 0A 29 80 13 00 00 00 00 00 00 AF [10:10:43]Write i2c OK [10:10:43]MH_I2C_Read... [10:10:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:10:43]Read from MH i2c: E2 [10:10:43]MH_I2C_Read... [10:10:43]Read from MH i2c: E2 62 00 [10:10:43]MH_I2C_Read... [10:10:43]Read from MH i2c: E2 62 00 0A 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4D 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [10:10:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4D 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:10:43]wFMCommunicate OK [10:10:43]SAM_PROTO_GetFieldsCounters done [10:10:43]requested_item shift.num is exist - process it [10:10:43]requested_item shift.opened is exist - process it [10:10:43]req_shift_opened [10:10:43]FM_GetShiftState [10:10:43]SAM_PROTO_GetShiftState [10:10:43]wFMCommunicate request_size=4 [10:10:43]MH_SAM_APDU [10:10:43]CAPDU: 80 13 01 00 [10:10:43]Write to MH i2c: E2 08 00 0B 29 80 13 01 00 00 00 00 00 B1 [10:10:43]Write i2c OK [10:10:43]MH_I2C_Read... [10:10:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:43]Read from MH i2c: E2 [10:10:43]MH_I2C_Read... [10:10:43]Read from MH i2c: E2 0E 00 [10:10:43]MH_I2C_Read... [10:10:43]Read from MH i2c: E2 0E 00 0B 29 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 8A [10:10:43]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:10:43]wFMCommunicate OK [10:10:43]SAM_PROTO_GetShiftState done [10:10:43]FM_GetShiftState done [10:10:43]req_shift_opened done [10:10:43]requested_item shift.open_date is exist - process it [10:10:43]req_shift_open_date [10:10:43]req_shift_open_date done [10:10:43]produce_requested_data done [10:10:43]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165197,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [10:10:43]process_action_free close_receipt [10:10:43]json_value_free [10:10:43]json_value_free done [10:10:43]process_json_proto returns [10:10:43]Send response to host [10:10:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165197,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [10:10:43]free response buf [10:10:43]execute_script done [10:10:43]execute_script returns [10:10:43]free content buf [10:10:43]Sock 7.Close socket [10:10:43]Sock 7.Thread stoped [10:10:47]OFD Sender: No OFD packet to send [10:10:52]OFD Sender: No OFD packet to send [10:10:57]OFD Sender: No OFD packet to send [10:11:02]OFD Sender: No OFD packet to send [10:11:07]OFD Sender: No OFD packet to send [10:11:12]OFD Sender: No OFD packet to send [10:11:17]OFD Sender: No OFD packet to send [10:11:22]OFD Sender: No OFD packet to send [10:11:27]OFD Sender: No OFD packet to send [10:11:32]OFD Sender: No OFD packet to send [10:11:37]OFD Sender: No OFD packet to send [10:11:42]OFD Sender: No OFD packet to send [10:11:47]OFD Sender: No OFD packet to send [10:11:52]OFD Sender: No OFD packet to send [10:11:57]OFD Sender: No OFD packet to send [10:12:02]OFD Sender: No OFD packet to send [10:12:07]OFD Sender: No OFD packet to send [10:12:09]accept exits with 9 [10:12:09]New connection [10:12:09]New thread 3066928484 created [10:12:09]Thread 3066785124 joined [10:12:09]Waiting for new connection... [10:12:09] Sock 9.Parse request [10:12:09]Sock 9.Check first char [10:12:09]Sock 9.First char is OK [10:12:09]request: POST /json_proto HTTP/1.0 [10:12:09]Method: POST [10:12:09]URL: /json_proto [10:12:09]Method is POST - this is cgi request [10:12:09]url: /json_proto [10:12:09]query_string will be loaded in cgi processing [10:12:09]execute_cgi json_proto POST (null) [10:12:09]execute_cgi path=json_proto method=POST [10:12:09]POST find Content-Length [10:12:09]Host: 172.17.56.4:8080 [10:12:09]Content-Length: 677 [10:12:09]Content-Type: application/json [10:12:09] [10:12:09]POST finish read [10:12:09]Found Content-Length = 677 [10:12:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459300", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:09]execute_script... [10:12: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)459300", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:09]POST & json_proto [10:12:09]process_json_proto [10:12:09]json parsed OK: [10:12:09]protocol is kg_v1.0 [10:12:09]action value=close_receipt [10:12:09]process_action close_receipt [10:12:09]cmd_close_receipt [10:12:09]MH_GetDate [10:12:09]Write to MH i2c: F0 00 00 0C 29 24 [10:12:09]Write i2c OK [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: F0 [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: F0 09 00 [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: F0 09 00 0C 29 00 FE F5 94 66 C9 DC B2 64 D5 [10:12:09]GetLastDocTimeStamp 1721038244 [10:12:09]current date 1721038334 [10:12:09]FM_GetShiftState [10:12:09]SAM_PROTO_GetShiftState [10:12:09]wFMCommunicate request_size=4 [10:12:09]MH_SAM_APDU [10:12:09]CAPDU: 80 13 01 00 [10:12:09]Write to MH i2c: E2 08 00 0D 29 80 13 01 00 00 00 00 00 B3 [10:12:09]Write i2c OK [10:12:09]MH_I2C_Read... [10:12:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:09]Read from MH i2c: E2 [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: E2 0E 00 [10:12:09]MH_I2C_Read... [10:12:09]Read from MH i2c: E2 0E 00 0D 29 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 8C [10:12:09]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:12:09]wFMCommunicate OK [10:12:09]SAM_PROTO_GetShiftState done [10:12:09]FM_GetShiftState done [10:12:09]opened in 1721003876 [10:12:09]opened+sec_in_day 1721090276 [10:12:09]quantity*price = 30004 [10:12:09]sum+1 = 30006 [10:12:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 71 15.07.2024 10:12 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165198 ФПД: 213659670316759 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T101214&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165198&fm=213659670316759&tin=02508201610067®Number=0000000000090829&sum=30000 [10:12:11]StoreToDocumentArchive [10:12:11]shift 448 fd 165198 [10:12:11]save to /storage/0448/doc_00165198 [10:12:11]save last doc name /storage/0448/doc_00165198 to /storage/kkm_last_doc_name [10:12:11]save OK [10:12:11]Clear old archive folders... [10:12:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:12:11]tlvbuf is B6EA24B0 [10:12:11]SAM_PROTO_ClearQueue [10:12:11]wFMCommunicate request_size=4 [10:12:11]MH_SAM_APDU [10:12:11]CAPDU: 80 09 00 00 [10:12:11]Write to MH i2c: E2 08 00 1A 29 80 09 00 00 00 00 00 00 B5 [10:12:11]Write i2c OK [10:12:11]MH_I2C_Read... [10:12:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:12:11]Read from MH i2c: E2 [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: E2 03 00 [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: E2 03 00 1A 29 00 90 00 B7 [10:12:11]RAPDU: 90 00 [10:12:11]wFMCommunicate OK [10:12:11]SAM_PROTO_ClearQueue done [10:12:11]KKMCreateOFDPacket [10:12:11]OFDProtocolAddRootSTLVToBuf [10:12:11]FM_MakeSignedData [10:12:11]FM_MakeSignedData [10:12:11]SAM_PROTO_SignData [10:12:11]wFMCommunicate request_size=4 [10:12:11]MH_SAM_APDU [10:12:11]CAPDU: 80 0D 01 02 [10:12:11]Write to MH i2c: E2 08 00 1B 29 80 0D 01 02 00 00 00 00 BD [10:12:11]Write i2c OK [10:12:11]MH_I2C_Read... [10:12:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:12:11]Read from MH i2c: E2 [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: E2 03 00 [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: E2 03 00 1B 29 00 90 00 B8 [10:12:11]RAPDU: 90 00 [10:12:11]wFMCommunicate OK [10:12:11]wFMCommunicate request_size=255 [10:12:11]MH_SAM_APDU [10:12: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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 FE F5 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4E 85 02 00 35 04 06 00 C2 [10:12:11]Write to MH i2c: E2 02 01 1C 29 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 FE F5 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4E 85 02 00 35 04 06 00 C2 00 00 83 [10:12:11]Write i2c OK [10:12:11]MH_I2C_Read... [10:12:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:11]Read from MH i2c: E2 [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: E2 03 00 [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: E2 03 00 1C 29 00 90 00 B9 [10:12:11]RAPDU: 90 00 [10:12:11]wFMCommunicate OK [10:12:11]wFMCommunicate request_size=10 [10:12:11]MH_SAM_APDU [10:12:11]CAPDU: 80 0D 02 02 05 52 84 C0 86 D7 [10:12:11]Write to MH i2c: E2 0D 00 1D 29 80 0D 02 02 05 00 52 84 C0 86 D7 00 00 BD [10:12:11]Write i2c OK [10:12:11]MH_I2C_Read... [10:12:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:11]Read from MH i2c: E2 [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: E2 03 00 [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: E2 03 00 1D 29 00 90 00 BA [10:12:11]RAPDU: 90 00 [10:12:11]wFMCommunicate OK [10:12:11]wFMCommunicate request_size=4 [10:12:11]MH_SAM_APDU [10:12:11]CAPDU: 80 0D 03 02 [10:12:11]Write to MH i2c: E2 08 00 1E 29 80 0D 03 02 00 00 00 00 C2 [10:12:11]Write i2c OK [10:12:11]MH_I2C_Read... [10:12:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:12:11]Read from MH i2c: E2 [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: E2 0B 00 [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: E2 0B 00 1E 29 00 5D E0 C7 E1 95 CE 50 1C 90 00 77 [10:12:11]RAPDU: 5D E0 C7 E1 95 CE 50 1C 90 00 [10:12:11]wFMCommunicate OK [10:12:11]SAM_PROTO_SignData done [10:12:11]FM_MakeSignedData done [10:12:11]CreateOFDProtocolMessage [10:12:11]wFMCommunicate request_size=4 [10:12:11]MH_SAM_APDU [10:12:11]CAPDU: 80 11 00 00 [10:12:11]Write to MH i2c: E2 08 00 1F 29 80 11 00 00 00 00 00 00 C2 [10:12:11]Write i2c OK [10:12:11]MH_I2C_Read... [10:12:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:11]Read from MH i2c: E2 [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: E2 17 00 [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: E2 17 00 1F 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 18 [10:12:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:12:11]wFMCommunicate OK [10:12:11]CreateOFDProtocolMessage done [10:12:11]OFDSenderStorePacket 165198 [10:12:11]StoreOFDPacket docnum=165198 [10:12:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 70 2A 07 01 EF 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 FE F5 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4E 85 02 00 35 04 06 00 C2 52 84 C0 86 D7 5D E0 C7 E1 95 CE 50 1C [10:12:11]CheckFolder [10:12:11]dirname=/storage/ofd_packets [10:12:11]CheckFolder done [10:12:11]ProducePacketName [10:12:11]name=ofd_packets/00165198 [10:12:11]NVStorageSaveData ofd_packets/00165198 [10:12:11]File name is /storage/ofd_packets/00165198 [10:12:11]Write 301 bytes [10:12:11]NVStorageSaveData done [10:12:11]OFDSenderStorePacket done [10:12:11]KKMCreateOFDPacket done [10:12:11]NVStorageSaveData kkm_last_timestamp [10:12:11]File name is /storage/kkm_last_timestamp [10:12:11]Write 4 bytes [10:12:11]NVStorageSaveData done [10:12:11]ExternCall_PrintAddStr [10:12:11]wPrintStart [10:12:11]Write to MH i2c: 01 00 00 20 29 49 [10:12:11]Write i2c OK [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: 01 [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: 01 07 00 [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: 01 07 00 20 29 00 00 00 00 00 FF 0F 5E [10:12:11]RasterBufferAndPrint [10:12:11]line Счет N : (1)459300 [10:12:11]line ИНН: 02508201610067 [10:12:11]line Контрольно-Кассовый Чек [10:12:11]line ПРОДАЖА [10:12:11]line ТРК (МРК, ГНК) : 12 [10:12:11]line Товар: 2710124130 [10:12:11]line Аи-92-К-5 [10:12:11]line 4.560 * 65.80 [10:12:11]line = 300.05 [10:12:11]line НДС 12% НСП 1% [10:12:11]line > о реализуемом товаре [10:12:11]line ОКРУГЛЕНИЕ: -0.05 [10:12:11]line ИТОГО: 300.00 [10:12:11]line Внесено: 300.00 [10:12:11]line СДАЧА: 0.00 [10:12:11]line НСП 1% : 2.65 [10:12:11]line НДС 12% : 31.86 [10:12:11]line Наличными: 300.00 [10:12:11]line Безнал.: 0.00 [10:12:11]line Место: АЗС № 72 "Партнер Нефть" [10:12:11]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:12:11]line СНО: Общий режим [10:12:11]line Чек 71 15.07.2024 10:12 [10:12:11]line Смена: 448 ФФД: 1.0 [10:12:11]line ЗНМ: 0300000160 [10:12:11]line РНМ: 0000000000090829 [10:12:11]line Версия ККМ: 001 [10:12:11]line ФМ: 0000000000874718 [10:12:11]line ФД: 165198 [10:12:11]line ФПД: 213659670316759 [10:12:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T101214&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165198&fm=213659670316759&tin=02508201610067®Number=0000000000090829&sum=30000 [10:12:11]written 0, free lines is 4095 [10:12:11]OFD Sender: Processing packet 165198 [packets to send 106, broken 105] [10:12:11]ProducePacketName [10:12:11]name=ofd_packets/00165198 [10:12:11]OFD Sender: To server: pG, [10:12:11]CommunicateWithHost lk.salyk.kg:30040 [10:12:11]ConnectInit lk.salyk.kg [10:12:11]Connected sock=10 [10:12: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 37 31 38 0F 01 00 00 70 2A 07 01 EF 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 FE F5 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4E 85 02 00 35 04 06 00 C2 52 84 C0 86 D7 5D E0 C7 E1 95 CE 50 1C [10:12:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 B7 8E 47 00 80 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 4E 85 02 00 F4 03 04 00 89 9C 94 66 B6 04 01 00 00 56 88 A3 D8 41 52 77 E8 [10:12:11]CommunicateWithHost err = 0 [10:12:11]CheckOFDResponse [10:12:11]1017 (14) - 77093643461234 [10:12:11]1041 (16) - 0000000000874718 [10:12:11]1040 (4) - 165198 [10:12:11]1012 (4) - 15.07.2024 03:50 [10:12:11]1206 (1) - 0 [10:12:11]OFD Sender: Remove packet 165198 [10:12:11]ProducePacketName [10:12:11]name=ofd_packets/00165198 [10:12:11]NVStorageDeleteData [10:12:12]Write to MH i2c: 01 00 00 4A 29 73 [10:12:12]Write i2c OK [10:12:12]MH_I2C_Read... [10:12:12]Read from MH i2c: 01 [10:12:12]MH_I2C_Read... [10:12:12]Read from MH i2c: 01 07 00 [10:12:12]MH_I2C_Read... [10:12:12]Read from MH i2c: 01 07 00 4A 29 00 00 00 00 00 0A 0D 91 [10:12:12]RasterBufferAndPrint [10:12:12]line [10:12:12]line [10:12:12]line [10:12:12]line [10:12:12]line [10:12:12]written 0, free lines is 3344 [10:12:12]MH_Cut [10:12:12]Write to MH i2c: D1 01 00 51 29 01 4C [10:12:12]Write i2c OK [10:12:12]MH_I2C_Read... [10:12:12]Read from MH i2c: D1 [10:12:12]MH_I2C_Read... [10:12:12]Read from MH i2c: D1 01 00 [10:12:12]MH_I2C_Read... [10:12:12]Read from MH i2c: D1 01 00 51 29 00 4B [10:12:12]Write to MH i2c: 01 00 00 52 29 7B [10:12:12]Write i2c OK [10:12:12]MH_I2C_Read... [10:12:12]OFD Sender: No OFD packet to send [10:12:12]*** Cut start [10:12:12]*** Partial cut [10:12:12]*** CUTSNS_PIN = 1 [10:12:12]*** CUTSNS_PIN = 0 [10:12:12]*** Brake cut motor [10:12:13]Read from MH i2c: 01 [10:12:13]MH_I2C_Read... [10:12:13]*** Stop cut motor [10:12:13]*** Cut end [10:12:13]Read from MH i2c: 01 07 00 [10:12:13]MH_I2C_Read... [10:12:13]Read from MH i2c: 01 07 00 52 29 00 00 00 00 00 FF 0F 90 [10:12:13]process_action close_receipt done [10:12:13]requested_data is exist [10:12:13]produce_requested_data [10:12:13]requested_item fm.sn is exist - process it [10:12:13]wFMCommunicate request_size=4 [10:12:13]MH_SAM_APDU [10:12:13]CAPDU: 80 11 00 00 [10:12:13]Write to MH i2c: E2 08 00 53 29 80 11 00 00 00 00 00 00 F6 [10:12:13]Write i2c OK [10:12:13]MH_I2C_Read... [10:12:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:13]Read from MH i2c: E2 [10:12:13]MH_I2C_Read... [10:12:13]Read from MH i2c: E2 17 00 [10:12:13]MH_I2C_Read... [10:12:13]Read from MH i2c: E2 17 00 53 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4C [10:12:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:12:13]wFMCommunicate OK [10:12:13]requested_item fd.num is exist - process it [10:12:13]SAM_PROTO_GetFieldsCounters [10:12:13]wFMCommunicate request_size=4 [10:12:13]MH_SAM_APDU [10:12:13]CAPDU: 80 13 00 00 [10:12:13]Write to MH i2c: E2 08 00 54 29 80 13 00 00 00 00 00 00 F9 [10:12:13]Write i2c OK [10:12:13]MH_I2C_Read... [10:12:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:12:13]Read from MH i2c: E2 [10:12:13]MH_I2C_Read... [10:12:13]Read from MH i2c: E2 62 00 [10:12:13]MH_I2C_Read... [10:12:13]Read from MH i2c: E2 62 00 54 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4E 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [10:12: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4E 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:12:13]wFMCommunicate OK [10:12:13]SAM_PROTO_GetFieldsCounters done [10:12:13]requested_item shift.num is exist - process it [10:12:13]requested_item shift.opened is exist - process it [10:12:13]req_shift_opened [10:12:13]FM_GetShiftState [10:12:13]SAM_PROTO_GetShiftState [10:12:13]wFMCommunicate request_size=4 [10:12:13]MH_SAM_APDU [10:12:13]CAPDU: 80 13 01 00 [10:12:13]Write to MH i2c: E2 08 00 55 29 80 13 01 00 00 00 00 00 FB [10:12:13]Write i2c OK [10:12:13]MH_I2C_Read... [10:12:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:13]Read from MH i2c: E2 [10:12:13]MH_I2C_Read... [10:12:13]Read from MH i2c: E2 0E 00 [10:12:13]MH_I2C_Read... [10:12:13]Read from MH i2c: E2 0E 00 55 29 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 D4 [10:12:13]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:12:13]wFMCommunicate OK [10:12:13]SAM_PROTO_GetShiftState done [10:12:13]FM_GetShiftState done [10:12:13]req_shift_opened done [10:12:13]requested_item shift.open_date is exist - process it [10:12:13]req_shift_open_date [10:12:13]req_shift_open_date done [10:12:13]produce_requested_data done [10:12:13]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165198,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [10:12:13]process_action_free close_receipt [10:12:13]json_value_free [10:12:13]json_value_free done [10:12:13]process_json_proto returns [10:12:13]Send response to host [10:12:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165198,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [10:12:13]free response buf [10:12:13]execute_script done [10:12:13]execute_script returns [10:12:13]free content buf [10:12:13]Sock 9.Close socket [10:12:13]Sock 9.Thread stoped [10:12:17]OFD Sender: No OFD packet to send [10:12:22]OFD Sender: No OFD packet to send [10:12:27]OFD Sender: No OFD packet to send [10:12:32]OFD Sender: No OFD packet to send [10:12:37]OFD Sender: No OFD packet to send [10:12:42]OFD Sender: No OFD packet to send [10:12:47]OFD Sender: No OFD packet to send [10:12:52]OFD Sender: No OFD packet to send [10:12:57]OFD Sender: No OFD packet to send [10:13:02]OFD Sender: No OFD packet to send [10:13:07]OFD Sender: No OFD packet to send [10:13:12]OFD Sender: No OFD packet to send [10:13:17]OFD Sender: No OFD packet to send [10:13:22]OFD Sender: No OFD packet to send [10:13:27]OFD Sender: No OFD packet to send [10:13:27]accept exits with 7 [10:13:27]New connection [10:13:27]New thread 3066785124 created [10:13:27]Thread 3066928484 joined [10:13:27]Waiting for new connection... [10:13:27] Sock 7.Parse request [10:13:27]Sock 7.Check first char [10:13:27]Sock 7.First char is OK [10:13:27]request: POST /json_proto HTTP/1.0 [10:13:27]Method: POST [10:13:27]URL: /json_proto [10:13:27]Method is POST - this is cgi request [10:13:27]url: /json_proto [10:13:27]query_string will be loaded in cgi processing [10:13:27]execute_cgi json_proto POST (null) [10:13:27]execute_cgi path=json_proto method=POST [10:13:27]POST find Content-Length [10:13:27]Host: 172.17.56.4:8080 [10:13:27]Content-Length: 637 [10:13:27]Content-Type: application/json [10:13:27] [10:13:27]POST finish read [10:13:27]Found Content-Length = 637 [10:13:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459301", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 10.000, "sum" : 719.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 719.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:13:27]execute_script... [10:13:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459301", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 10.000, "sum" : 719.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 719.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:13:27]POST & json_proto [10:13:27]process_json_proto [10:13:27]json parsed OK: [10:13:27]protocol is kg_v1.0 [10:13:27]action value=close_receipt [10:13:27]process_action close_receipt [10:13:27]cmd_close_receipt [10:13:27]MH_GetDate [10:13:27]Write to MH i2c: F0 00 00 56 29 6E [10:13:27]Write i2c OK [10:13:27]MH_I2C_Read... [10:13:27]Read from MH i2c: F0 [10:13:27]MH_I2C_Read... [10:13:27]Read from MH i2c: F0 09 00 [10:13:27]MH_I2C_Read... [10:13:27]Read from MH i2c: F0 09 00 56 29 00 4C F6 94 66 C9 DC B2 64 6E [10:13:27]GetLastDocTimeStamp 1721038334 [10:13:27]current date 1721038412 [10:13:27]FM_GetShiftState [10:13:27]SAM_PROTO_GetShiftState [10:13:27]wFMCommunicate request_size=4 [10:13:27]MH_SAM_APDU [10:13:27]CAPDU: 80 13 01 00 [10:13:27]Write to MH i2c: E2 08 00 57 29 80 13 01 00 00 00 00 00 FD [10:13:27]Write i2c OK [10:13:27]MH_I2C_Read... [10:13:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:27]Read from MH i2c: E2 [10:13:27]MH_I2C_Read... [10:13:27]Read from MH i2c: E2 0E 00 [10:13:27]MH_I2C_Read... [10:13:27]Read from MH i2c: E2 0E 00 57 29 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 D6 [10:13:27]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:13:27]wFMCommunicate OK [10:13:27]SAM_PROTO_GetShiftState done [10:13:27]FM_GetShiftState done [10:13:27]opened in 1721003876 [10:13:27]opened+sec_in_day 1721090276 [10:13:27]quantity*price = 71900 [10:13:27]sum+1 = 71901 [10:13:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 719.00 НСП 1% : 6.36 НДС 12% : 76.35 Наличными: 719.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 72 15.07.2024 10:13 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165199 ФПД: 127185167993002 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T101332&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165199&fm=127185167993002&tin=02508201610067®Number=0000000000090829&sum=71900 [10:13:28]StoreToDocumentArchive [10:13:28]shift 448 fd 165199 [10:13:28]save to /storage/0448/doc_00165199 [10:13:28]save last doc name /storage/0448/doc_00165199 to /storage/kkm_last_doc_name [10:13:28]save OK [10:13:28]Clear old archive folders... [10:13:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:13:28]tlvbuf is 01447E90 [10:13:28]SAM_PROTO_ClearQueue [10:13:28]wFMCommunicate request_size=4 [10:13:28]MH_SAM_APDU [10:13:28]CAPDU: 80 09 00 00 [10:13:28]Write to MH i2c: E2 08 00 64 29 80 09 00 00 00 00 00 00 FF [10:13:28]Write i2c OK [10:13:28]MH_I2C_Read... [10:13:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:13:29]Read from MH i2c: E2 [10:13:29]MH_I2C_Read... [10:13:29]Read from MH i2c: E2 03 00 [10:13:29]MH_I2C_Read... [10:13:29]Read from MH i2c: E2 03 00 64 29 00 90 00 01 [10:13:29]RAPDU: 90 00 [10:13:29]wFMCommunicate OK [10:13:29]SAM_PROTO_ClearQueue done [10:13:29]KKMCreateOFDPacket [10:13:29]OFDProtocolAddRootSTLVToBuf [10:13:29]FM_MakeSignedData [10:13:29]FM_MakeSignedData [10:13:29]SAM_PROTO_SignData [10:13:29]wFMCommunicate request_size=4 [10:13:29]MH_SAM_APDU [10:13:29]CAPDU: 80 0D 01 02 [10:13:29]Write to MH i2c: E2 08 00 65 29 80 0D 01 02 00 00 00 00 07 [10:13:29]Write i2c OK [10:13:29]MH_I2C_Read... [10:13:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:13:29]Read from MH i2c: E2 [10:13:29]MH_I2C_Read... [10:13:29]Read from MH i2c: E2 03 00 [10:13:29]MH_I2C_Read... [10:13:29]Read from MH i2c: E2 03 00 65 29 00 90 00 02 [10:13:29]RAPDU: 90 00 [10:13:29]wFMCommunicate OK [10:13:29]wFMCommunicate request_size=255 [10:13:29]MH_SAM_APDU [10:13:29]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 DC 18 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 1D 00 00 00 00 07 04 06 00 DC 18 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 4C F6 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4F 85 02 00 35 04 06 00 73 AC 9A C2 [10:13:29]Write to MH i2c: E2 02 01 66 29 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 DC 18 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 1D 00 00 00 00 07 04 06 00 DC 18 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 4C F6 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4F 85 02 00 35 04 06 00 73 AC 9A C2 00 00 B6 [10:13:29]Write i2c OK [10:13:29]MH_I2C_Read... [10:13:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:29]Read from MH i2c: E2 [10:13:29]MH_I2C_Read... [10:13:29]Read from MH i2c: E2 03 00 [10:13:29]MH_I2C_Read... [10:13:29]Read from MH i2c: E2 03 00 66 29 00 90 00 03 [10:13:29]RAPDU: 90 00 [10:13:29]wFMCommunicate OK [10:13:29]wFMCommunicate request_size=7 [10:13:29]MH_SAM_APDU [10:13:29]CAPDU: 80 0D 02 02 02 48 AA [10:13:29]Write to MH i2c: E2 0A 00 67 29 80 0D 02 02 02 00 48 AA 00 00 00 [10:13:29]Write i2c OK [10:13:29]MH_I2C_Read... [10:13:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:29]Read from MH i2c: E2 [10:13:29]MH_I2C_Read... [10:13:29]Read from MH i2c: E2 03 00 [10:13:29]MH_I2C_Read... [10:13:29]Read from MH i2c: E2 03 00 67 29 00 90 00 04 [10:13:29]RAPDU: 90 00 [10:13:29]wFMCommunicate OK [10:13:29]wFMCommunicate request_size=4 [10:13:29]MH_SAM_APDU [10:13:29]CAPDU: 80 0D 03 02 [10:13:29]Write to MH i2c: E2 08 00 68 29 80 0D 03 02 00 00 00 00 0C [10:13:29]Write i2c OK [10:13:29]MH_I2C_Read... [10:13:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:13:29]Read from MH i2c: E2 [10:13:29]MH_I2C_Read... [10:13:29]Read from MH i2c: E2 0B 00 [10:13:29]MH_I2C_Read... [10:13:29]Read from MH i2c: E2 0B 00 68 29 00 EE 29 5C 0D F1 65 09 5A 90 00 46 [10:13:29]RAPDU: EE 29 5C 0D F1 65 09 5A 90 00 [10:13:29]wFMCommunicate OK [10:13:29]SAM_PROTO_SignData done [10:13:29]FM_MakeSignedData done [10:13:29]CreateOFDProtocolMessage [10:13:29]wFMCommunicate request_size=4 [10:13:29]MH_SAM_APDU [10:13:29]CAPDU: 80 11 00 00 [10:13:29]Write to MH i2c: E2 08 00 69 29 80 11 00 00 00 00 00 00 0C [10:13:29]Write i2c OK [10:13:29]MH_I2C_Read... [10:13:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:29]Read from MH i2c: E2 [10:13:29]MH_I2C_Read... [10:13:29]Read from MH i2c: E2 17 00 [10:13:29]MH_I2C_Read... [10:13:29]Read from MH i2c: E2 17 00 69 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 62 [10:13:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:13:29]wFMCommunicate OK [10:13:29]CreateOFDProtocolMessage done [10:13:29]OFDSenderStorePacket 165199 [10:13:29]StoreOFDPacket docnum=165199 [10:13:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 74 F5 04 01 E2 7F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 DC 18 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 1D 00 00 00 00 07 04 06 00 DC 18 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 4C F6 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4F 85 02 00 35 04 06 00 73 AC 9A C2 48 AA EE 29 5C 0D F1 65 09 5A [10:13:29]CheckFolder [10:13:29]dirname=/storage/ofd_packets [10:13:29]CheckFolder done [10:13:29]ProducePacketName [10:13:29]name=ofd_packets/00165199 [10:13:29]NVStorageSaveData ofd_packets/00165199 [10:13:29]File name is /storage/ofd_packets/00165199 [10:13:29]Write 298 bytes [10:13:29]NVStorageSaveData done [10:13:29]OFDSenderStorePacket done [10:13:29]KKMCreateOFDPacket done [10:13:29]NVStorageSaveData kkm_last_timestamp [10:13:29]File name is /storage/kkm_last_timestamp [10:13:29]Write 4 bytes [10:13:29]NVStorageSaveData done [10:13:29]ExternCall_PrintAddStr [10:13:29]wPrintStart [10:13:29]Write to MH i2c: 01 00 00 6A 29 93 [10:13:29]Write i2c OK [10:13:29]MH_I2C_Read... [10:13:29]Read from MH i2c: 01 [10:13:29]MH_I2C_Read... [10:13:29]Read from MH i2c: 01 07 00 [10:13:29]MH_I2C_Read... [10:13:29]Read from MH i2c: 01 07 00 6A 29 00 00 00 00 00 FF 0F A8 [10:13:29]RasterBufferAndPrint [10:13:29]line Счет N : (1)459301 [10:13:29]line ИНН: 02508201610067 [10:13:29]line Контрольно-Кассовый Чек [10:13:29]line ПРОДАЖА [10:13:29]line ТРК (МРК, ГНК) : 21 [10:13:29]line Товар: 2710194210 [10:13:29]line ДТ-К-5 [10:13:29]line 10.000 * 71.90 [10:13:29]line = 719.00 [10:13:29]line НДС 12% НСП 1% [10:13:29]line > о реализуемом товаре [10:13:29]line ИТОГО: 719.00 [10:13:29]line НСП 1% : 6.36 [10:13:29]line НДС 12% : 76.35 [10:13:29]line Наличными: 719.00 [10:13:29]line Безнал.: 0.00 [10:13:29]line Место: АЗС № 72 "Партнер Нефть" [10:13:29]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:13:29]line СНО: Общий режим [10:13:29]line Чек 72 15.07.2024 10:13 [10:13:29]line Смена: 448 ФФД: 1.0 [10:13:29]line ЗНМ: 0300000160 [10:13:29]line РНМ: 0000000000090829 [10:13:29]line Версия ККМ: 001 [10:13:29]line ФМ: 0000000000874718 [10:13:29]line ФД: 165199 [10:13:29]line ФПД: 127185167993002 [10:13:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T101332&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165199&fm=127185167993002&tin=02508201610067®Number=0000000000090829&sum=71900 [10:13:29]OFD Sender: Processing packet 165199 [packets to send 106, broken 105] [10:13:29]ProducePacketName [10:13:29]name=ofd_packets/00165199 [10:13:29]OFD Sender: To server: pG, [10:13:29]CommunicateWithHost lk.salyk.kg:30040 [10:13:29]ConnectInit lk.salyk.kg [10:13:29]written 0, free lines is 4095 [10:13:29]Connected sock=11 [10:13:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 74 F5 04 01 E2 7F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 DC 18 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 1D 00 00 00 00 07 04 06 00 DC 18 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 4C F6 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4F 85 02 00 35 04 06 00 73 AC 9A C2 48 AA EE 29 5C 0D F1 65 09 5A [10:13:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 15 68 47 00 D7 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 4F 85 02 00 F4 03 04 00 D7 9C 94 66 B6 04 01 00 00 1D FE 2B 1B 6E AD A6 39 [10:13:30]CommunicateWithHost err = 0 [10:13:30]CheckOFDResponse [10:13:30]1017 (14) - 77093643461234 [10:13:30]1041 (16) - 0000000000874718 [10:13:30]1040 (4) - 165199 [10:13:30]1012 (4) - 15.07.2024 03:51 [10:13:30]1206 (1) - 0 [10:13:30]OFD Sender: Remove packet 165199 [10:13:30]ProducePacketName [10:13:30]name=ofd_packets/00165199 [10:13:30]NVStorageDeleteData [10:13:30]Write to MH i2c: 01 00 00 91 29 BA [10:13:30]Write i2c OK [10:13:30]MH_I2C_Read... [10:13:30]Read from MH i2c: 01 [10:13:30]MH_I2C_Read... [10:13:30]Read from MH i2c: 01 07 00 [10:13:30]MH_I2C_Read... [10:13:30]Read from MH i2c: 01 07 00 91 29 00 00 00 00 00 29 0D F7 [10:13:30]RasterBufferAndPrint [10:13:30]line [10:13:30]line [10:13:30]line [10:13:30]line [10:13:30]line [10:13:30]written 0, free lines is 3375 [10:13:30]MH_Cut [10:13:30]Write to MH i2c: D1 01 00 98 29 01 93 [10:13:30]Write i2c OK [10:13:30]MH_I2C_Read... [10:13:30]Read from MH i2c: D1 [10:13:30]MH_I2C_Read... [10:13:30]Read from MH i2c: D1 01 00 [10:13:30]MH_I2C_Read... [10:13:30]Read from MH i2c: D1 01 00 98 29 00 92 [10:13:30]Write to MH i2c: 01 00 00 99 29 C2 [10:13:30]Write i2c OK [10:13:30]MH_I2C_Read... [10:13:30]OFD Sender: No OFD packet to send [10:13:30]*** Cut start [10:13:30]*** Partial cut [10:13:30]*** CUTSNS_PIN = 1 [10:13:30]*** CUTSNS_PIN = 0 [10:13:31]*** Brake cut motor [10:13:31]Read from MH i2c: 01 [10:13:31]MH_I2C_Read... [10:13:31]*** Stop cut motor [10:13:31]*** Cut end [10:13:31]Read from MH i2c: 01 07 00 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: 01 07 00 99 29 00 00 00 00 00 FF 0F D7 [10:13:31]process_action close_receipt done [10:13:31]requested_data is exist [10:13:31]produce_requested_data [10:13:31]requested_item fm.sn is exist - process it [10:13:31]wFMCommunicate request_size=4 [10:13:31]MH_SAM_APDU [10:13:31]CAPDU: 80 11 00 00 [10:13:31]Write to MH i2c: E2 08 00 9A 29 80 11 00 00 00 00 00 00 3D [10:13:31]Write i2c OK [10:13:31]MH_I2C_Read... [10:13:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:31]Read from MH i2c: E2 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: E2 17 00 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: E2 17 00 9A 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 93 [10:13:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:13:31]wFMCommunicate OK [10:13:31]requested_item fd.num is exist - process it [10:13:31]SAM_PROTO_GetFieldsCounters [10:13:31]wFMCommunicate request_size=4 [10:13:31]MH_SAM_APDU [10:13:31]CAPDU: 80 13 00 00 [10:13:31]Write to MH i2c: E2 08 00 9B 29 80 13 00 00 00 00 00 00 40 [10:13:31]Write i2c OK [10:13:31]MH_I2C_Read... [10:13:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:13:31]Read from MH i2c: E2 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: E2 62 00 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: E2 62 00 9B 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4F 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [10:13: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4F 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:13:31]wFMCommunicate OK [10:13:31]SAM_PROTO_GetFieldsCounters done [10:13:31]requested_item shift.num is exist - process it [10:13:31]requested_item shift.opened is exist - process it [10:13:31]req_shift_opened [10:13:31]FM_GetShiftState [10:13:31]SAM_PROTO_GetShiftState [10:13:31]wFMCommunicate request_size=4 [10:13:31]MH_SAM_APDU [10:13:31]CAPDU: 80 13 01 00 [10:13:31]Write to MH i2c: E2 08 00 9C 29 80 13 01 00 00 00 00 00 42 [10:13:31]Write i2c OK [10:13:31]MH_I2C_Read... [10:13:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:31]Read from MH i2c: E2 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: E2 0E 00 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: E2 0E 00 9C 29 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 1B [10:13:31]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:13:31]wFMCommunicate OK [10:13:31]SAM_PROTO_GetShiftState done [10:13:31]FM_GetShiftState done [10:13:31]req_shift_opened done [10:13:31]requested_item shift.open_date is exist - process it [10:13:31]req_shift_open_date [10:13:31]req_shift_open_date done [10:13:31]produce_requested_data done [10:13:31]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165199,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [10:13:31]process_action_free close_receipt [10:13:31]json_value_free [10:13:31]json_value_free done [10:13:31]process_json_proto returns [10:13:31]Send response to host [10:13:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165199,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [10:13:31]free response buf [10:13:31]execute_script done [10:13:31]execute_script returns [10:13:31]free content buf [10:13:31]Sock 7.Close socket [10:13:31]Sock 7.Thread stoped [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]accept exits with 9 [10:15:30]New connection [10:15:30]New thread 3066928484 created [10:15:30]Thread 3066785124 joined [10:15:30]Waiting for new connection... [10:15:30] Sock 9.Parse request [10:15:30]Sock 9.Check first char [10:15:30]Sock 9.First char is OK [10:15:30]request: POST /json_proto HTTP/1.0 [10:15:30]Method: POST [10:15:30]URL: /json_proto [10:15:30]Method is POST - this is cgi request [10:15:30]url: /json_proto [10:15:30]query_string will be loaded in cgi processing [10:15:30]execute_cgi json_proto POST (null) [10:15:30]execute_cgi path=json_proto method=POST [10:15:30]POST find Content-Length [10:15:30]Host: 172.17.56.4:8080 [10:15:30]Content-Length: 679 [10:15:30]Content-Type: application/json [10:15:30] [10:15:30]POST finish read [10:15:30]Found Content-Length = 679 [10:15:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459302", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\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:15:30]execute_script... [10:15:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459302", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\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:15:30]POST & json_proto [10:15:30]process_json_proto [10:15:30]json parsed OK: [10:15:30]protocol is kg_v1.0 [10:15:30]action value=close_receipt [10:15:30]process_action close_receipt [10:15:30]cmd_close_receipt [10:15:30]MH_GetDate [10:15:30]Write to MH i2c: F0 00 00 9D 29 B5 [10:15:30]Write i2c OK [10:15:30]MH_I2C_Read... [10:15:30]Read from MH i2c: F0 [10:15:30]MH_I2C_Read... [10:15:30]Read from MH i2c: F0 09 00 [10:15:30]MH_I2C_Read... [10:15:30]Read from MH i2c: F0 09 00 9D 29 00 C7 F6 94 66 C9 DC B2 64 30 [10:15:30]GetLastDocTimeStamp 1721038412 [10:15:30]current date 1721038535 [10:15:30]FM_GetShiftState [10:15:30]SAM_PROTO_GetShiftState [10:15:30]wFMCommunicate request_size=4 [10:15:30]MH_SAM_APDU [10:15:30]CAPDU: 80 13 01 00 [10:15:30]Write to MH i2c: E2 08 00 9E 29 80 13 01 00 00 00 00 00 44 [10:15:30]Write i2c OK [10:15:30]MH_I2C_Read... [10:15:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:30]Read from MH i2c: E2 [10:15:30]MH_I2C_Read... [10:15:30]Read from MH i2c: E2 0E 00 [10:15:30]MH_I2C_Read... [10:15:30]Read from MH i2c: E2 0E 00 9E 29 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 1D [10:15:30]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:15:30]wFMCommunicate OK [10:15:30]SAM_PROTO_GetShiftState done [10:15:30]FM_GetShiftState done [10:15:30]opened in 1721003876 [10:15:30]opened+sec_in_day 1721090276 [10:15:30]quantity*price = 100012 [10:15:30]sum+1 = 100014 [10:15:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 73 15.07.2024 10:15 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165200 ФПД: 119057857706442 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T101535&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165200&fm=119057857706442&tin=02508201610067®Number=0000000000090829&sum=100000 [10:15:31]StoreToDocumentArchive [10:15:31]shift 448 fd 165200 [10:15:31]save to /storage/0448/doc_00165200 [10:15:31]save last doc name /storage/0448/doc_00165200 to /storage/kkm_last_doc_name [10:15:31]save OK [10:15:31]Clear old archive folders... [10:15:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:15:31]tlvbuf is B6DA2860 [10:15:31]SAM_PROTO_ClearQueue [10:15:31]wFMCommunicate request_size=4 [10:15:31]MH_SAM_APDU [10:15:31]CAPDU: 80 09 00 00 [10:15:31]Write to MH i2c: E2 08 00 AB 29 80 09 00 00 00 00 00 00 46 [10:15:31]Write i2c OK [10:15:31]MH_I2C_Read... [10:15:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:15:31]Read from MH i2c: E2 [10:15:31]MH_I2C_Read... [10:15:31]Read from MH i2c: E2 03 00 [10:15:31]MH_I2C_Read... [10:15:31]Read from MH i2c: E2 03 00 AB 29 00 90 00 48 [10:15:31]RAPDU: 90 00 [10:15:31]wFMCommunicate OK [10:15:31]SAM_PROTO_ClearQueue done [10:15:31]KKMCreateOFDPacket [10:15:31]OFDProtocolAddRootSTLVToBuf [10:15:31]FM_MakeSignedData [10:15:31]FM_MakeSignedData [10:15:31]SAM_PROTO_SignData [10:15:31]wFMCommunicate request_size=4 [10:15:31]MH_SAM_APDU [10:15:31]CAPDU: 80 0D 01 02 [10:15:31]Write to MH i2c: E2 08 00 AC 29 80 0D 01 02 00 00 00 00 4E [10:15:31]Write i2c OK [10:15:31]MH_I2C_Read... [10:15:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:15:31]Read from MH i2c: E2 [10:15:31]MH_I2C_Read... [10:15:31]Read from MH i2c: E2 03 00 [10:15:31]MH_I2C_Read... [10:15:31]Read from MH i2c: E2 03 00 AC 29 00 90 00 49 [10:15:31]RAPDU: 90 00 [10:15:31]wFMCommunicate OK [10:15:31]wFMCommunicate request_size=255 [10:15:31]MH_SAM_APDU [10:15:31]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 49 00 00 00 F4 03 04 00 C7 F6 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 50 85 02 00 35 04 06 00 6C 48 51 50 [10:15:31]Write to MH i2c: E2 02 01 AD 29 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 49 00 00 00 F4 03 04 00 C7 F6 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 50 85 02 00 35 04 06 00 6C 48 51 50 00 00 FC [10:15:31]Write i2c OK [10:15:31]MH_I2C_Read... [10:15:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:32]Read from MH i2c: E2 [10:15:32]MH_I2C_Read... [10:15:32]Read from MH i2c: E2 03 00 [10:15:32]MH_I2C_Read... [10:15:32]Read from MH i2c: E2 03 00 AD 29 00 90 00 4A [10:15:32]RAPDU: 90 00 [10:15:32]wFMCommunicate OK [10:15:32]wFMCommunicate request_size=7 [10:15:32]MH_SAM_APDU [10:15:32]CAPDU: 80 0D 02 02 02 F9 CA [10:15:32]Write to MH i2c: E2 0A 00 AE 29 80 0D 02 02 02 00 F9 CA 00 00 18 [10:15:32]Write i2c OK [10:15:32]MH_I2C_Read... [10:15:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:32]Read from MH i2c: E2 [10:15:32]MH_I2C_Read... [10:15:32]Read from MH i2c: E2 03 00 [10:15:32]MH_I2C_Read... [10:15:32]Read from MH i2c: E2 03 00 AE 29 00 90 00 4B [10:15:32]RAPDU: 90 00 [10:15:32]wFMCommunicate OK [10:15:32]wFMCommunicate request_size=4 [10:15:32]MH_SAM_APDU [10:15:32]CAPDU: 80 0D 03 02 [10:15:32]Write to MH i2c: E2 08 00 AF 29 80 0D 03 02 00 00 00 00 53 [10:15:32]Write i2c OK [10:15:32]MH_I2C_Read... [10:15:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:15:32]Read from MH i2c: E2 [10:15:32]MH_I2C_Read... [10:15:32]Read from MH i2c: E2 0B 00 [10:15:32]MH_I2C_Read... [10:15:32]Read from MH i2c: E2 0B 00 AF 29 00 39 FF 4E 89 FE 6F ED AD 90 00 6A [10:15:32]RAPDU: 39 FF 4E 89 FE 6F ED AD 90 00 [10:15:32]wFMCommunicate OK [10:15:32]SAM_PROTO_SignData done [10:15:32]FM_MakeSignedData done [10:15:32]CreateOFDProtocolMessage [10:15:32]wFMCommunicate request_size=4 [10:15:32]MH_SAM_APDU [10:15:32]CAPDU: 80 11 00 00 [10:15:32]Write to MH i2c: E2 08 00 B0 29 80 11 00 00 00 00 00 00 53 [10:15:32]Write i2c OK [10:15:32]MH_I2C_Read... [10:15:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:32]Read from MH i2c: E2 [10:15:32]MH_I2C_Read... [10:15:32]Read from MH i2c: E2 17 00 [10:15:32]MH_I2C_Read... [10:15:32]Read from MH i2c: E2 17 00 B0 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A9 [10:15:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:15:32]wFMCommunicate OK [10:15:32]CreateOFDProtocolMessage done [10:15:32]OFDSenderStorePacket 165200 [10:15:32]StoreOFDPacket docnum=165200 [10:15:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 4C F2 04 01 05 80 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 49 00 00 00 F4 03 04 00 C7 F6 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 50 85 02 00 35 04 06 00 6C 48 51 50 F9 CA 39 FF 4E 89 FE 6F ED AD [10:15:32]CheckFolder [10:15:32]dirname=/storage/ofd_packets [10:15:32]CheckFolder done [10:15:32]ProducePacketName [10:15:32]name=ofd_packets/00165200 [10:15:32]NVStorageSaveData ofd_packets/00165200 [10:15:32]File name is /storage/ofd_packets/00165200 [10:15:32]Write 298 bytes [10:15:32]NVStorageSaveData done [10:15:32]OFDSenderStorePacket done [10:15:32]KKMCreateOFDPacket done [10:15:32]NVStorageSaveData kkm_last_timestamp [10:15:32]File name is /storage/kkm_last_timestamp [10:15:32]Write 4 bytes [10:15:32]NVStorageSaveData done [10:15:32]ExternCall_PrintAddStr [10:15:32]wPrintStart [10:15:32]Write to MH i2c: 01 00 00 B1 29 DA [10:15:32]Write i2c OK [10:15:32]MH_I2C_Read... [10:15:32]Read from MH i2c: 01 [10:15:32]MH_I2C_Read... [10:15:32]Read from MH i2c: 01 07 00 [10:15:32]MH_I2C_Read... [10:15:32]Read from MH i2c: 01 07 00 B1 29 00 00 00 00 00 FF 0F EF [10:15:32]RasterBufferAndPrint [10:15:32]line Счет N : (1)459302 [10:15:32]line ИНН: 02508201610067 [10:15:32]line Контрольно-Кассовый Чек [10:15:32]line ПРОДАЖА [10:15:32]line ТРК (МРК, ГНК) : 21 [10:15:32]line Товар: 2710194210 [10:15:32]line ДТ-К-5 [10:15:32]line 13.910 * 71.90 [10:15:32]line = 1000.13 [10:15:32]line НДС 12% НСП 1% [10:15:32]line > о реализуемом товаре [10:15:32]line ОКРУГЛЕНИЕ: -0.13 [10:15:32]line ИТОГО: 1000.00 [10:15:32]line Внесено: 1000.00 [10:15:32]line СДАЧА: 0.00 [10:15:32]line НСП 1% : 8.85 [10:15:32]line НДС 12% : 106.21 [10:15:32]line Наличными: 1000.00 [10:15:32]line Безнал.: 0.00 [10:15:32]line Место: АЗС № 72 "Партнер Нефть" [10:15:32]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:15:32]line СНО: Общий режим [10:15:32]line Чек 73 15.07.2024 10:15 [10:15:32]line Смена: 448 ФФД: 1.0 [10:15:32]line ЗНМ: 0300000160 [10:15:32]line РНМ: 0000000000090829 [10:15:32]line Версия ККМ: 001 [10:15:32]line ФМ: 0000000000874718 [10:15:32]line ФД: 165200 [10:15:32]line ФПД: 119057857706442 [10:15:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T101535&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165200&fm=119057857706442&tin=02508201610067®Number=0000000000090829&sum=100000 [10:15:32]OFD Sender: Processing packet 165200 [packets to send 106, broken 105] [10:15:32]ProducePacketName [10:15:32]name=ofd_packets/00165200 [10:15:32]OFD Sender: To server: pG, [10:15:32]CommunicateWithHost lk.salyk.kg:30040 [10:15:32]ConnectInit lk.salyk.kg [10:15:32]written 0, free lines is 4095 [10:15:32]Connected sock=10 [10:15:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 4C F2 04 01 05 80 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 49 00 00 00 F4 03 04 00 C7 F6 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 50 85 02 00 35 04 06 00 6C 48 51 50 F9 CA 39 FF 4E 89 FE 6F ED AD [10:15:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 1D 3A 47 00 BF 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 37 31 38 10 04 04 00 50 85 02 00 F4 03 04 00 52 9D 94 66 B6 04 01 00 00 CA 5A A0 13 76 81 2C D9 [10:15:32]CommunicateWithHost err = 0 [10:15:32]CheckOFDResponse [10:15:32]1017 (14) - 77093643461234 [10:15:32]1041 (16) - 0000000000874718 [10:15:32]1040 (4) - 165200 [10:15:32]1012 (4) - 15.07.2024 03:53 [10:15:32]1206 (1) - 0 [10:15:32]OFD Sender: Remove packet 165200 [10:15:32]ProducePacketName [10:15:32]name=ofd_packets/00165200 [10:15:32]NVStorageDeleteData [10:15:33]Write to MH i2c: 01 00 00 DB 29 04 [10:15:33]Write i2c OK [10:15:33]MH_I2C_Read... [10:15:33]Read from MH i2c: 01 [10:15:33]MH_I2C_Read... [10:15:33]Read from MH i2c: 01 07 00 [10:15:33]MH_I2C_Read... [10:15:33]Read from MH i2c: 01 07 00 DB 29 00 00 00 00 00 F2 0C 09 [10:15:33]RasterBufferAndPrint [10:15:33]line [10:15:33]line [10:15:33]line [10:15:33]line [10:15:33]line [10:15:33]written 0, free lines is 3322 [10:15:33]MH_Cut [10:15:33]Write to MH i2c: D1 01 00 E2 29 01 DD [10:15:33]Write i2c OK [10:15:33]MH_I2C_Read... [10:15:33]Read from MH i2c: D1 [10:15:33]MH_I2C_Read... [10:15:33]Read from MH i2c: D1 01 00 [10:15:33]MH_I2C_Read... [10:15:33]Read from MH i2c: D1 01 00 E2 29 00 DC [10:15:33]Write to MH i2c: 01 00 00 E3 29 0C [10:15:33]Write i2c OK [10:15:33]MH_I2C_Read... [10:15:33]OFD Sender: No OFD packet to send [10:15:33]*** Cut start [10:15:33]*** Partial cut [10:15:33]*** CUTSNS_PIN = 1 [10:15:33]*** CUTSNS_PIN = 0 [10:15:34]*** Brake cut motor [10:15:34]Read from MH i2c: 01 [10:15:34]MH_I2C_Read... [10:15:34]*** Stop cut motor [10:15:34]*** Cut end [10:15:34]Read from MH i2c: 01 07 00 [10:15:34]MH_I2C_Read... [10:15:34]Read from MH i2c: 01 07 00 E3 29 00 00 00 00 00 FF 0F 21 [10:15:34]process_action close_receipt done [10:15:34]requested_data is exist [10:15:34]produce_requested_data [10:15:34]requested_item fm.sn is exist - process it [10:15:34]wFMCommunicate request_size=4 [10:15:34]MH_SAM_APDU [10:15:34]CAPDU: 80 11 00 00 [10:15:34]Write to MH i2c: E2 08 00 E4 29 80 11 00 00 00 00 00 00 87 [10:15:34]Write i2c OK [10:15:34]MH_I2C_Read... [10:15:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:34]Read from MH i2c: E2 [10:15:34]MH_I2C_Read... [10:15:34]Read from MH i2c: E2 17 00 [10:15:34]MH_I2C_Read... [10:15:34]Read from MH i2c: E2 17 00 E4 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DD [10:15:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:15:34]wFMCommunicate OK [10:15:34]requested_item fd.num is exist - process it [10:15:34]SAM_PROTO_GetFieldsCounters [10:15:34]wFMCommunicate request_size=4 [10:15:34]MH_SAM_APDU [10:15:34]CAPDU: 80 13 00 00 [10:15:34]Write to MH i2c: E2 08 00 E5 29 80 13 00 00 00 00 00 00 8A [10:15:34]Write i2c OK [10:15:34]MH_I2C_Read... [10:15:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:15:34]Read from MH i2c: E2 [10:15:34]MH_I2C_Read... [10:15:34]Read from MH i2c: E2 62 00 [10:15:34]MH_I2C_Read... [10:15:34]Read from MH i2c: E2 62 00 E5 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 50 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [10:15: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 50 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:15:34]wFMCommunicate OK [10:15:34]SAM_PROTO_GetFieldsCounters done [10:15:34]requested_item shift.num is exist - process it [10:15:34]requested_item shift.opened is exist - process it [10:15:34]req_shift_opened [10:15:34]FM_GetShiftState [10:15:34]SAM_PROTO_GetShiftState [10:15:34]wFMCommunicate request_size=4 [10:15:34]MH_SAM_APDU [10:15:34]CAPDU: 80 13 01 00 [10:15:34]Write to MH i2c: E2 08 00 E6 29 80 13 01 00 00 00 00 00 8C [10:15:34]Write i2c OK [10:15:34]MH_I2C_Read... [10:15:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:34]Read from MH i2c: E2 [10:15:34]MH_I2C_Read... [10:15:34]Read from MH i2c: E2 0E 00 [10:15:34]MH_I2C_Read... [10:15:34]Read from MH i2c: E2 0E 00 E6 29 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 65 [10:15:34]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:15:34]wFMCommunicate OK [10:15:34]SAM_PROTO_GetShiftState done [10:15:34]FM_GetShiftState done [10:15:34]req_shift_opened done [10:15:34]requested_item shift.open_date is exist - process it [10:15:34]req_shift_open_date [10:15:34]req_shift_open_date done [10:15:34]produce_requested_data done [10:15:34]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165200,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [10:15:34]process_action_free close_receipt [10:15:34]json_value_free [10:15:34]json_value_free done [10:15:34]process_json_proto returns [10:15:34]Send response to host [10:15:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165200,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [10:15:34]free response buf [10:15:34]execute_script done [10:15:34]execute_script returns [10:15:34]free content buf [10:15:34]Sock 9.Close socket [10:15:34]Sock 9.Thread stoped [10:15:38]OFD Sender: No OFD packet to send [10:15:43]OFD Sender: No OFD packet to send [10:15:48]OFD Sender: No OFD packet to send [10:15:53]OFD Sender: No OFD packet to send [10:15:58]OFD Sender: No OFD packet to send [10:16:03]OFD Sender: No OFD packet to send [10:16:08]OFD Sender: No OFD packet to send [10:16:13]OFD Sender: No OFD packet to send [10:16:18]OFD Sender: No OFD packet to send [10:16:23]OFD Sender: No OFD packet to send [10:16:28]OFD Sender: No OFD packet to send [10:16:33]OFD Sender: No OFD packet to send [10:16:38]OFD Sender: No OFD packet to send [10:16:43]OFD Sender: No OFD packet to send [10:16:48]OFD Sender: No OFD packet to send [10:16:53]OFD Sender: No OFD packet to send [10:16:58]OFD Sender: No OFD packet to send [10:17:03]OFD Sender: No OFD packet to send [10:17:08]OFD Sender: No OFD packet to send [10:17:13]OFD Sender: No OFD packet to send [10:17:18]OFD Sender: No OFD packet to send [10:17:23]accept exits with 7 [10:17:23]New connection [10:17:23]New thread 3066785124 created [10:17:23]Thread 3066928484 joined [10:17:23]Waiting for new connection... [10:17:23] Sock 7.Parse request [10:17:23]Sock 7.Check first char [10:17:23]Sock 7.First char is OK [10:17:23]request: POST /json_proto HTTP/1.0 [10:17:23]Method: POST [10:17:23]URL: /json_proto [10:17:23]Method is POST - this is cgi request [10:17:23]url: /json_proto [10:17:23]query_string will be loaded in cgi processing [10:17:23]execute_cgi json_proto POST (null) [10:17:23]execute_cgi path=json_proto method=POST [10:17:23]POST find Content-Length [10:17:23]Host: 172.17.56.4:8080 [10:17:23]Content-Length: 677 [10:17:23]Content-Type: application/json [10:17:23] [10:17:23]POST finish read [10:17:23]Found Content-Length = 677 [10:17:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459303", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:17:23]execute_script... [10:17:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459303", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:17:23]POST & json_proto [10:17:23]process_json_proto [10:17:23]json parsed OK: [10:17:23]protocol is kg_v1.0 [10:17:23]action value=close_receipt [10:17:23]process_action close_receipt [10:17:23]cmd_close_receipt [10:17:23]MH_GetDate [10:17:23]Write to MH i2c: F0 00 00 E7 29 FF [10:17:23]Write i2c OK [10:17:23]MH_I2C_Read... [10:17:23]Read from MH i2c: F0 [10:17:23]MH_I2C_Read... [10:17:23]Read from MH i2c: F0 09 00 [10:17:23]MH_I2C_Read... [10:17:23]Read from MH i2c: F0 09 00 E7 29 00 38 F7 94 66 C9 DC B2 64 EC [10:17:23]GetLastDocTimeStamp 1721038535 [10:17:23]current date 1721038648 [10:17:23]FM_GetShiftState [10:17:23]SAM_PROTO_GetShiftState [10:17:23]wFMCommunicate request_size=4 [10:17:23]MH_SAM_APDU [10:17:23]CAPDU: 80 13 01 00 [10:17:23]Write to MH i2c: E2 08 00 E8 29 80 13 01 00 00 00 00 00 8E [10:17:23]Write i2c OK [10:17:23]MH_I2C_Read... [10:17:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:23]Read from MH i2c: E2 [10:17:23]MH_I2C_Read... [10:17:23]Read from MH i2c: E2 0E 00 [10:17:23]MH_I2C_Read... [10:17:23]Read from MH i2c: E2 0E 00 E8 29 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 67 [10:17:23]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:17:23]wFMCommunicate OK [10:17:23]SAM_PROTO_GetShiftState done [10:17:23]FM_GetShiftState done [10:17:23]opened in 1721003876 [10:17:23]opened+sec_in_day 1721090276 [10:17:23]quantity*price = 30004 [10:17:23]sum+1 = 30006 [10:17:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 74 15.07.2024 10:17 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165201 ФПД: 55441483973662 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T101728&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165201&fm=55441483973662&tin=02508201610067®Number=0000000000090829&sum=30000 [10:17:24]StoreToDocumentArchive [10:17:24]shift 448 fd 165201 [10:17:24]save to /storage/0448/doc_00165201 [10:17:24]save last doc name /storage/0448/doc_00165201 to /storage/kkm_last_doc_name [10:17:24]save OK [10:17:24]Clear old archive folders... [10:17:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:17:24]tlvbuf is 01396CC0 [10:17:24]SAM_PROTO_ClearQueue [10:17:24]wFMCommunicate request_size=4 [10:17:24]MH_SAM_APDU [10:17:24]CAPDU: 80 09 00 00 [10:17:24]Write to MH i2c: E2 08 00 F5 29 80 09 00 00 00 00 00 00 90 [10:17:24]Write i2c OK [10:17:24]MH_I2C_Read... [10:17:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:17:24]Read from MH i2c: E2 [10:17:24]MH_I2C_Read... [10:17:24]Read from MH i2c: E2 03 00 [10:17:24]MH_I2C_Read... [10:17:24]Read from MH i2c: E2 03 00 F5 29 00 90 00 92 [10:17:24]RAPDU: 90 00 [10:17:24]wFMCommunicate OK [10:17:24]SAM_PROTO_ClearQueue done [10:17:24]KKMCreateOFDPacket [10:17:24]OFDProtocolAddRootSTLVToBuf [10:17:24]FM_MakeSignedData [10:17:24]FM_MakeSignedData [10:17:24]SAM_PROTO_SignData [10:17:24]wFMCommunicate request_size=4 [10:17:24]MH_SAM_APDU [10:17:24]CAPDU: 80 0D 01 02 [10:17:24]Write to MH i2c: E2 08 00 F6 29 80 0D 01 02 00 00 00 00 98 [10:17:24]Write i2c OK [10:17:24]MH_I2C_Read... [10:17:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:17:24]Read from MH i2c: E2 [10:17:24]MH_I2C_Read... [10:17:24]Read from MH i2c: E2 03 00 [10:17:24]MH_I2C_Read... [10:17:24]Read from MH i2c: E2 03 00 F6 29 00 90 00 93 [10:17:24]RAPDU: 90 00 [10:17:24]wFMCommunicate OK [10:17:24]wFMCommunicate request_size=255 [10:17:24]MH_SAM_APDU [10:17:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 38 F7 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 51 85 02 00 35 04 06 00 32 [10:17:24]Write to MH i2c: E2 02 01 F7 29 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 38 F7 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 51 85 02 00 35 04 06 00 32 00 00 10 [10:17:24]Write i2c OK [10:17:24]MH_I2C_Read... [10:17:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:24]Read from MH i2c: E2 [10:17:24]MH_I2C_Read... [10:17:24]Read from MH i2c: E2 03 00 [10:17:24]MH_I2C_Read... [10:17:24]Read from MH i2c: E2 03 00 F7 29 00 90 00 94 [10:17:24]RAPDU: 90 00 [10:17:24]wFMCommunicate OK [10:17:24]wFMCommunicate request_size=10 [10:17:24]MH_SAM_APDU [10:17:24]CAPDU: 80 0D 02 02 05 6C 79 F5 44 1E [10:17:24]Write to MH i2c: E2 0D 00 F8 29 80 0D 02 02 05 00 6C 79 F5 44 1E 00 00 E1 [10:17:24]Write i2c OK [10:17:24]MH_I2C_Read... [10:17:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:25]Read from MH i2c: E2 [10:17:25]MH_I2C_Read... [10:17:25]Read from MH i2c: E2 03 00 [10:17:25]MH_I2C_Read... [10:17:25]Read from MH i2c: E2 03 00 F8 29 00 90 00 95 [10:17:25]RAPDU: 90 00 [10:17:25]wFMCommunicate OK [10:17:25]wFMCommunicate request_size=4 [10:17:25]MH_SAM_APDU [10:17:25]CAPDU: 80 0D 03 02 [10:17:25]Write to MH i2c: E2 08 00 F9 29 80 0D 03 02 00 00 00 00 9D [10:17:25]Write i2c OK [10:17:25]MH_I2C_Read... [10:17:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:17:25]Read from MH i2c: E2 [10:17:25]MH_I2C_Read... [10:17:25]Read from MH i2c: E2 0B 00 [10:17:25]MH_I2C_Read... [10:17:25]Read from MH i2c: E2 0B 00 F9 29 00 1E 50 32 28 E4 C4 7E 41 90 00 CD [10:17:25]RAPDU: 1E 50 32 28 E4 C4 7E 41 90 00 [10:17:25]wFMCommunicate OK [10:17:25]SAM_PROTO_SignData done [10:17:25]FM_MakeSignedData done [10:17:25]CreateOFDProtocolMessage [10:17:25]wFMCommunicate request_size=4 [10:17:25]MH_SAM_APDU [10:17:25]CAPDU: 80 11 00 00 [10:17:25]Write to MH i2c: E2 08 00 FA 29 80 11 00 00 00 00 00 00 9D [10:17:25]Write i2c OK [10:17:25]MH_I2C_Read... [10:17:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:25]Read from MH i2c: E2 [10:17:25]MH_I2C_Read... [10:17:25]Read from MH i2c: E2 17 00 [10:17:25]MH_I2C_Read... [10:17:25]Read from MH i2c: E2 17 00 FA 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F3 [10:17:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:17:25]wFMCommunicate OK [10:17:25]CreateOFDProtocolMessage done [10:17:25]OFDSenderStorePacket 165201 [10:17:25]StoreOFDPacket docnum=165201 [10:17:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 92 94 07 01 61 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 38 F7 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 51 85 02 00 35 04 06 00 32 6C 79 F5 44 1E 1E 50 32 28 E4 C4 7E 41 [10:17:25]CheckFolder [10:17:25]dirname=/storage/ofd_packets [10:17:25]CheckFolder done [10:17:25]ProducePacketName [10:17:25]name=ofd_packets/00165201 [10:17:25]NVStorageSaveData ofd_packets/00165201 [10:17:25]File name is /storage/ofd_packets/00165201 [10:17:25]Write 301 bytes [10:17:25]NVStorageSaveData done [10:17:25]OFDSenderStorePacket done [10:17:25]KKMCreateOFDPacket done [10:17:25]NVStorageSaveData kkm_last_timestamp [10:17:25]File name is /storage/kkm_last_timestamp [10:17:25]Write 4 bytes [10:17:25]NVStorageSaveData done [10:17:25]ExternCall_PrintAddStr [10:17:25]wPrintStart [10:17:25]Write to MH i2c: 01 00 00 FB 29 24 [10:17:25]Write i2c OK [10:17:25]MH_I2C_Read... [10:17:25]Read from MH i2c: 01 [10:17:25]MH_I2C_Read... [10:17:25]Read from MH i2c: 01 07 00 [10:17:25]MH_I2C_Read... [10:17:25]Read from MH i2c: 01 07 00 FB 29 00 00 00 00 00 FF 0F 39 [10:17:25]RasterBufferAndPrint [10:17:25]line Счет N : (1)459303 [10:17:25]line ИНН: 02508201610067 [10:17:25]line Контрольно-Кассовый Чек [10:17:25]line ПРОДАЖА [10:17:25]line ТРК (МРК, ГНК) : 12 [10:17:25]line Товар: 2710124130 [10:17:25]line Аи-92-К-5 [10:17:25]line 4.560 * 65.80 [10:17:25]line = 300.05 [10:17:25]line НДС 12% НСП 1% [10:17:25]line > о реализуемом товаре [10:17:25]line ОКРУГЛЕНИЕ: -0.05 [10:17:25]line ИТОГО: 300.00 [10:17:25]line Внесено: 300.00 [10:17:25]line СДАЧА: 0.00 [10:17:25]line НСП 1% : 2.65 [10:17:25]line НДС 12% : 31.86 [10:17:25]line Наличными: 300.00 [10:17:25]line Безнал.: 0.00 [10:17:25]line Место: АЗС № 72 "Партнер Нефть" [10:17:25]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:17:25]line СНО: Общий режим [10:17:25]line Чек 74 15.07.2024 10:17 [10:17:25]line Смена: 448 ФФД: 1.0 [10:17:25]line ЗНМ: 0300000160 [10:17:25]line РНМ: 0000000000090829 [10:17:25]line Версия ККМ: 001 [10:17:25]line ФМ: 0000000000874718 [10:17:25]line ФД: 165201 [10:17:25]line ФПД: 55441483973662 [10:17:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T101728&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165201&fm=55441483973662&tin=02508201610067®Number=0000000000090829&sum=30000 [10:17:25]written 0, free lines is 4095 [10:17:25]OFD Sender: Processing packet 165201 [packets to send 106, broken 105] [10:17:25]ProducePacketName [10:17:25]name=ofd_packets/00165201 [10:17:25]OFD Sender: To server: pG, [10:17:25]CommunicateWithHost lk.salyk.kg:30040 [10:17:25]ConnectInit lk.salyk.kg [10:17:25]Connected sock=11 [10:17:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 92 94 07 01 61 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 38 F7 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 51 85 02 00 35 04 06 00 32 6C 79 F5 44 1E 1E 50 32 28 E4 C4 7E 41 [10:17:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 FF 77 47 00 51 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 51 85 02 00 F4 03 04 00 C2 9D 94 66 B6 04 01 00 00 84 13 F3 62 52 32 05 4F [10:17:25]CommunicateWithHost err = 0 [10:17:25]CheckOFDResponse [10:17:25]1017 (14) - 77093643461234 [10:17:25]1041 (16) - 0000000000874718 [10:17:25]1040 (4) - 165201 [10:17:25]1012 (4) - 15.07.2024 03:55 [10:17:25]1206 (1) - 0 [10:17:25]OFD Sender: Remove packet 165201 [10:17:25]ProducePacketName [10:17:25]name=ofd_packets/00165201 [10:17:25]NVStorageDeleteData [10:17:25]Write to MH i2c: 01 00 00 25 2A 4F [10:17:25]Write i2c OK [10:17:25]MH_I2C_Read... [10:17:25]Read from MH i2c: 01 [10:17:25]MH_I2C_Read... [10:17:25]Read from MH i2c: 01 07 00 [10:17:25]MH_I2C_Read... [10:17:25]Read from MH i2c: 01 07 00 25 2A 00 00 00 00 00 06 0D 69 [10:17:25]RasterBufferAndPrint [10:17:25]line [10:17:25]line [10:17:25]line [10:17:25]line [10:17:25]line [10:17:25]written 0, free lines is 3340 [10:17:25]MH_Cut [10:17:25]Write to MH i2c: D1 01 00 2C 2A 01 28 [10:17:25]Write i2c OK [10:17:25]MH_I2C_Read... [10:17:25]Read from MH i2c: D1 [10:17:25]MH_I2C_Read... [10:17:25]Read from MH i2c: D1 01 00 [10:17:25]MH_I2C_Read... [10:17:25]Read from MH i2c: D1 01 00 2C 2A 00 27 [10:17:25]Write to MH i2c: 01 00 00 2D 2A 57 [10:17:25]Write i2c OK [10:17:25]MH_I2C_Read... [10:17:26]OFD Sender: No OFD packet to send [10:17:26]*** Cut start [10:17:26]*** Partial cut [10:17:26]*** CUTSNS_PIN = 1 [10:17:26]*** CUTSNS_PIN = 0 [10:17:26]*** Brake cut motor [10:17:27]Read from MH i2c: 01 [10:17:27]MH_I2C_Read... [10:17:27]*** Stop cut motor [10:17:27]*** Cut end [10:17:27]Read from MH i2c: 01 07 00 [10:17:27]MH_I2C_Read... [10:17:27]Read from MH i2c: 01 07 00 2D 2A 00 00 00 00 00 FF 0F 6C [10:17:27]process_action close_receipt done [10:17:27]requested_data is exist [10:17:27]produce_requested_data [10:17:27]requested_item fm.sn is exist - process it [10:17:27]wFMCommunicate request_size=4 [10:17:27]MH_SAM_APDU [10:17:27]CAPDU: 80 11 00 00 [10:17:27]Write to MH i2c: E2 08 00 2E 2A 80 11 00 00 00 00 00 00 D2 [10:17:27]Write i2c OK [10:17:27]MH_I2C_Read... [10:17:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:27]Read from MH i2c: E2 [10:17:27]MH_I2C_Read... [10:17:27]Read from MH i2c: E2 17 00 [10:17:27]MH_I2C_Read... [10:17:27]Read from MH i2c: E2 17 00 2E 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 28 [10:17:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:17:27]wFMCommunicate OK [10:17:27]requested_item fd.num is exist - process it [10:17:27]SAM_PROTO_GetFieldsCounters [10:17:27]wFMCommunicate request_size=4 [10:17:27]MH_SAM_APDU [10:17:27]CAPDU: 80 13 00 00 [10:17:27]Write to MH i2c: E2 08 00 2F 2A 80 13 00 00 00 00 00 00 D5 [10:17:27]Write i2c OK [10:17:27]MH_I2C_Read... [10:17:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:17:27]Read from MH i2c: E2 [10:17:27]MH_I2C_Read... [10:17:27]Read from MH i2c: E2 62 00 [10:17:27]MH_I2C_Read... [10:17:27]Read from MH i2c: E2 62 00 2F 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 51 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [10:17:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 51 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:17:27]wFMCommunicate OK [10:17:27]SAM_PROTO_GetFieldsCounters done [10:17:27]requested_item shift.num is exist - process it [10:17:27]requested_item shift.opened is exist - process it [10:17:27]req_shift_opened [10:17:27]FM_GetShiftState [10:17:27]SAM_PROTO_GetShiftState [10:17:27]wFMCommunicate request_size=4 [10:17:27]MH_SAM_APDU [10:17:27]CAPDU: 80 13 01 00 [10:17:27]Write to MH i2c: E2 08 00 30 2A 80 13 01 00 00 00 00 00 D7 [10:17:27]Write i2c OK [10:17:27]MH_I2C_Read... [10:17:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:27]Read from MH i2c: E2 [10:17:27]MH_I2C_Read... [10:17:27]Read from MH i2c: E2 0E 00 [10:17:27]MH_I2C_Read... [10:17:27]Read from MH i2c: E2 0E 00 30 2A 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 B0 [10:17:27]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:17:27]wFMCommunicate OK [10:17:27]SAM_PROTO_GetShiftState done [10:17:27]FM_GetShiftState done [10:17:27]req_shift_opened done [10:17:27]requested_item shift.open_date is exist - process it [10:17:27]req_shift_open_date [10:17:27]req_shift_open_date done [10:17:27]produce_requested_data done [10:17:27]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165201,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [10:17:27]process_action_free close_receipt [10:17:27]json_value_free [10:17:27]json_value_free done [10:17:27]process_json_proto returns [10:17:27]Send response to host [10:17:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165201,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [10:17:27]free response buf [10:17:27]execute_script done [10:17:27]execute_script returns [10:17:27]free content buf [10:17:27]Sock 7.Close socket [10:17:27]Sock 7.Thread stoped [10:17:31]OFD Sender: No OFD packet to send [10:17:36]OFD Sender: No OFD packet to send [10:17:37]accept exits with 10 [10:17:37]New connection [10:17:37]New thread 3066928484 created [10:17:37]Thread 3066785124 joined [10:17:37]Waiting for new connection... [10:17:37] Sock 10.Parse request [10:17:37]Sock 10.Check first char [10:17:37]Sock 10.First char is OK [10:17:37]request: POST /json_proto HTTP/1.0 [10:17:37]Method: POST [10:17:37]URL: /json_proto [10:17:37]Method is POST - this is cgi request [10:17:37]url: /json_proto [10:17:37]query_string will be loaded in cgi processing [10:17:37]execute_cgi json_proto POST (null) [10:17:37]execute_cgi path=json_proto method=POST [10:17:37]POST find Content-Length [10:17:37]Host: 172.17.56.4:8080 [10:17:37]Content-Length: 677 [10:17:37]Content-Type: application/json [10:17:37] [10:17:37]POST finish read [10:17:37]Found Content-Length = 677 [10:17:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459304", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:17:37]execute_script... [10:17:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459304", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:17:37]POST & json_proto [10:17:37]process_json_proto [10:17:37]json parsed OK: [10:17:37]protocol is kg_v1.0 [10:17:37]action value=close_receipt [10:17:37]process_action close_receipt [10:17:37]cmd_close_receipt [10:17:37]MH_GetDate [10:17:37]Write to MH i2c: F0 00 00 31 2A 4A [10:17:37]Write i2c OK [10:17:37]MH_I2C_Read... [10:17:37]Read from MH i2c: F0 [10:17:37]MH_I2C_Read... [10:17:37]Read from MH i2c: F0 09 00 [10:17:37]MH_I2C_Read... [10:17:37]Read from MH i2c: F0 09 00 31 2A 00 46 F7 94 66 C9 DC B2 64 45 [10:17:37]GetLastDocTimeStamp 1721038648 [10:17:37]current date 1721038662 [10:17:37]FM_GetShiftState [10:17:37]SAM_PROTO_GetShiftState [10:17:37]wFMCommunicate request_size=4 [10:17:37]MH_SAM_APDU [10:17:37]CAPDU: 80 13 01 00 [10:17:37]Write to MH i2c: E2 08 00 32 2A 80 13 01 00 00 00 00 00 D9 [10:17:37]Write i2c OK [10:17:37]MH_I2C_Read... [10:17:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:37]Read from MH i2c: E2 [10:17:37]MH_I2C_Read... [10:17:37]Read from MH i2c: E2 0E 00 [10:17:37]MH_I2C_Read... [10:17:37]Read from MH i2c: E2 0E 00 32 2A 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 B2 [10:17:37]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:17:37]wFMCommunicate OK [10:17:37]SAM_PROTO_GetShiftState done [10:17:37]FM_GetShiftState done [10:17:37]opened in 1721003876 [10:17:37]opened+sec_in_day 1721090276 [10:17:37]quantity*price = 50008 [10:17:37]sum+1 = 50009 [10:17:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 75 15.07.2024 10:17 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165202 ФПД: 17593925479423 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T101742&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165202&fm=17593925479423&tin=02508201610067®Number=0000000000090829&sum=50000 [10:17:38]StoreToDocumentArchive [10:17:38]shift 448 fd 165202 [10:17:38]save to /storage/0448/doc_00165202 [10:17:38]save last doc name /storage/0448/doc_00165202 to /storage/kkm_last_doc_name [10:17:38]save OK [10:17:38]Clear old archive folders... [10:17:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:17:38]tlvbuf is 0145D040 [10:17:38]SAM_PROTO_ClearQueue [10:17:38]wFMCommunicate request_size=4 [10:17:38]MH_SAM_APDU [10:17:38]CAPDU: 80 09 00 00 [10:17:38]Write to MH i2c: E2 08 00 3F 2A 80 09 00 00 00 00 00 00 DB [10:17:38]Write i2c OK [10:17:38]MH_I2C_Read... [10:17:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:17:38]Read from MH i2c: E2 [10:17:38]MH_I2C_Read... [10:17:38]Read from MH i2c: E2 03 00 [10:17:38]MH_I2C_Read... [10:17:38]Read from MH i2c: E2 03 00 3F 2A 00 90 00 DD [10:17:38]RAPDU: 90 00 [10:17:38]wFMCommunicate OK [10:17:38]SAM_PROTO_ClearQueue done [10:17:38]KKMCreateOFDPacket [10:17:38]OFDProtocolAddRootSTLVToBuf [10:17:38]FM_MakeSignedData [10:17:38]FM_MakeSignedData [10:17:38]SAM_PROTO_SignData [10:17:38]wFMCommunicate request_size=4 [10:17:38]MH_SAM_APDU [10:17:38]CAPDU: 80 0D 01 02 [10:17:38]Write to MH i2c: E2 08 00 40 2A 80 0D 01 02 00 00 00 00 E3 [10:17:38]Write i2c OK [10:17:38]MH_I2C_Read... [10:17:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:17:38]Read from MH i2c: E2 [10:17:38]MH_I2C_Read... [10:17:38]Read from MH i2c: E2 03 00 [10:17:38]MH_I2C_Read... [10:17:38]Read from MH i2c: E2 03 00 40 2A 00 90 00 DE [10:17:38]RAPDU: 90 00 [10:17:38]wFMCommunicate OK [10:17:38]wFMCommunicate request_size=255 [10:17:38]MH_SAM_APDU [10:17: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 46 F7 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 52 85 02 00 35 04 06 00 10 [10:17:38]Write to MH i2c: E2 02 01 41 2A 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 46 F7 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 52 85 02 00 35 04 06 00 10 00 00 88 [10:17:38]Write i2c OK [10:17:38]MH_I2C_Read... [10:17:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:38]Read from MH i2c: E2 [10:17:38]MH_I2C_Read... [10:17:38]Read from MH i2c: E2 03 00 [10:17:38]MH_I2C_Read... [10:17:38]Read from MH i2c: E2 03 00 41 2A 00 90 00 DF [10:17:38]RAPDU: 90 00 [10:17:38]wFMCommunicate OK [10:17:38]wFMCommunicate request_size=10 [10:17:38]MH_SAM_APDU [10:17:38]CAPDU: 80 0D 02 02 05 00 67 AD AB FF [10:17:38]Write to MH i2c: E2 0D 00 42 2A 80 0D 02 02 05 00 00 67 AD AB FF 00 00 AE [10:17:38]Write i2c OK [10:17:38]MH_I2C_Read... [10:17:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:38]Read from MH i2c: E2 [10:17:38]MH_I2C_Read... [10:17:38]Read from MH i2c: E2 03 00 [10:17:38]MH_I2C_Read... [10:17:38]Read from MH i2c: E2 03 00 42 2A 00 90 00 E0 [10:17:38]RAPDU: 90 00 [10:17:38]wFMCommunicate OK [10:17:38]wFMCommunicate request_size=4 [10:17:38]MH_SAM_APDU [10:17:38]CAPDU: 80 0D 03 02 [10:17:38]Write to MH i2c: E2 08 00 43 2A 80 0D 03 02 00 00 00 00 E8 [10:17:38]Write i2c OK [10:17:38]MH_I2C_Read... [10:17:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:17:38]Read from MH i2c: E2 [10:17:39]MH_I2C_Read... [10:17:39]Read from MH i2c: E2 0B 00 [10:17:39]MH_I2C_Read... [10:17:39]Read from MH i2c: E2 0B 00 43 2A 00 46 1B 63 7C D6 6B B3 56 90 00 73 [10:17:39]RAPDU: 46 1B 63 7C D6 6B B3 56 90 00 [10:17:39]wFMCommunicate OK [10:17:39]SAM_PROTO_SignData done [10:17:39]FM_MakeSignedData done [10:17:39]CreateOFDProtocolMessage [10:17:39]wFMCommunicate request_size=4 [10:17:39]MH_SAM_APDU [10:17:39]CAPDU: 80 11 00 00 [10:17:39]Write to MH i2c: E2 08 00 44 2A 80 11 00 00 00 00 00 00 E8 [10:17:39]Write i2c OK [10:17:39]MH_I2C_Read... [10:17:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:39]Read from MH i2c: E2 [10:17:39]MH_I2C_Read... [10:17:39]Read from MH i2c: E2 17 00 [10:17:39]MH_I2C_Read... [10:17:39]Read from MH i2c: E2 17 00 44 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3E [10:17:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:17:39]wFMCommunicate OK [10:17:39]CreateOFDProtocolMessage done [10:17:39]OFDSenderStorePacket 165202 [10:17:39]StoreOFDPacket docnum=165202 [10:17:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 6C E2 07 01 67 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 46 F7 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 52 85 02 00 35 04 06 00 10 00 67 AD AB FF 46 1B 63 7C D6 6B B3 56 [10:17:39]CheckFolder [10:17:39]dirname=/storage/ofd_packets [10:17:39]CheckFolder done [10:17:39]ProducePacketName [10:17:39]name=ofd_packets/00165202 [10:17:39]NVStorageSaveData ofd_packets/00165202 [10:17:39]File name is /storage/ofd_packets/00165202 [10:17:39]Write 301 bytes [10:17:39]NVStorageSaveData done [10:17:39]OFDSenderStorePacket done [10:17:39]KKMCreateOFDPacket done [10:17:39]NVStorageSaveData kkm_last_timestamp [10:17:39]File name is /storage/kkm_last_timestamp [10:17:39]Write 4 bytes [10:17:39]NVStorageSaveData done [10:17:39]ExternCall_PrintAddStr [10:17:39]wPrintStart [10:17:39]Write to MH i2c: 01 00 00 45 2A 6F [10:17:39]Write i2c OK [10:17:39]MH_I2C_Read... [10:17:39]Read from MH i2c: 01 [10:17:39]MH_I2C_Read... [10:17:39]Read from MH i2c: 01 07 00 [10:17:39]MH_I2C_Read... [10:17:39]Read from MH i2c: 01 07 00 45 2A 00 00 00 00 00 FF 0F 84 [10:17:39]RasterBufferAndPrint [10:17:39]line Счет N : (1)459304 [10:17:39]line ИНН: 02508201610067 [10:17:39]line Контрольно-Кассовый Чек [10:17:39]line ПРОДАЖА [10:17:39]line ТРК (МРК, ГНК) : 22 [10:17:39]line Товар: 2710124130 [10:17:39]line Аи-92-К-5 [10:17:39]line 7.600 * 65.80 [10:17:39]line = 500.08 [10:17:39]line НДС 12% НСП 1% [10:17:39]line > о реализуемом товаре [10:17:39]line ОКРУГЛЕНИЕ: -0.08 [10:17:39]line ИТОГО: 500.00 [10:17:39]line Внесено: 500.00 [10:17:39]line СДАЧА: 0.00 [10:17:39]line НСП 1% : 4.42 [10:17:39]line НДС 12% : 53.11 [10:17:39]line Наличными: 500.00 [10:17:39]line Безнал.: 0.00 [10:17:39]line Место: АЗС № 72 "Партнер Нефть" [10:17:39]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:17:39]line СНО: Общий режим [10:17:39]line Чек 75 15.07.2024 10:17 [10:17:39]line Смена: 448 ФФД: 1.0 [10:17:39]line ЗНМ: 0300000160 [10:17:39]line РНМ: 0000000000090829 [10:17:39]line Версия ККМ: 001 [10:17:39]line ФМ: 0000000000874718 [10:17:39]line ФД: 165202 [10:17:39]line ФПД: 17593925479423 [10:17:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T101742&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165202&fm=17593925479423&tin=02508201610067®Number=0000000000090829&sum=50000 [10:17:39]OFD Sender: Processing packet 165202 [packets to send 106, broken 105] [10:17:39]ProducePacketName [10:17:39]name=ofd_packets/00165202 [10:17:39]OFD Sender: To server: pG, [10:17:39]CommunicateWithHost lk.salyk.kg:30040 [10:17:39]ConnectInit lk.salyk.kg [10:17:39]written 0, free lines is 4095 [10:17:39]Connected sock=11 [10:17:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 6C E2 07 01 67 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 46 F7 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 52 85 02 00 35 04 06 00 10 00 67 AD AB FF 46 1B 63 7C D6 6B B3 56 [10:17:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 49 C4 47 00 90 D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 52 85 02 00 F4 03 04 00 D0 9D 94 66 B6 04 01 00 00 7D BF 63 A3 91 DB 2F C7 [10:17:39]CommunicateWithHost err = 0 [10:17:39]CheckOFDResponse [10:17:39]1017 (14) - 77093643461234 [10:17:39]1041 (16) - 0000000000874718 [10:17:39]1040 (4) - 165202 [10:17:39]1012 (4) - 15.07.2024 03:56 [10:17:39]1206 (1) - 0 [10:17:39]OFD Sender: Remove packet 165202 [10:17:39]ProducePacketName [10:17:39]name=ofd_packets/00165202 [10:17:39]NVStorageDeleteData [10:17:39]Write to MH i2c: 01 00 00 6F 2A 99 [10:17:39]Write i2c OK [10:17:39]MH_I2C_Read... [10:17:39]Read from MH i2c: 01 [10:17:39]MH_I2C_Read... [10:17:39]Read from MH i2c: 01 07 00 [10:17:39]MH_I2C_Read... [10:17:39]Read from MH i2c: 01 07 00 6F 2A 00 00 00 00 00 07 0D B4 [10:17:39]RasterBufferAndPrint [10:17:39]line [10:17:39]line [10:17:39]line [10:17:39]line [10:17:39]line [10:17:39]written 0, free lines is 3353 [10:17:39]MH_Cut [10:17:39]Write to MH i2c: D1 01 00 76 2A 01 72 [10:17:39]Write i2c OK [10:17:39]MH_I2C_Read... [10:17:39]Read from MH i2c: D1 [10:17:39]MH_I2C_Read... [10:17:39]Read from MH i2c: D1 01 00 [10:17:39]MH_I2C_Read... [10:17:39]Read from MH i2c: D1 01 00 76 2A 00 71 [10:17:39]Write to MH i2c: 01 00 00 77 2A A1 [10:17:39]Write i2c OK [10:17:39]MH_I2C_Read... [10:17:40]OFD Sender: No OFD packet to send [10:17:40]*** Cut start [10:17:40]*** Partial cut [10:17:40]*** CUTSNS_PIN = 1 [10:17:40]*** CUTSNS_PIN = 0 [10:17:40]*** Brake cut motor [10:17:41]Read from MH i2c: 01 [10:17:41]MH_I2C_Read... [10:17:41]*** Stop cut motor [10:17:41]*** Cut end [10:17:41]Read from MH i2c: 01 07 00 [10:17:41]MH_I2C_Read... [10:17:41]Read from MH i2c: 01 07 00 77 2A 00 00 00 00 00 FF 0F B6 [10:17:41]process_action close_receipt done [10:17:41]requested_data is exist [10:17:41]produce_requested_data [10:17:41]requested_item fm.sn is exist - process it [10:17:41]wFMCommunicate request_size=4 [10:17:41]MH_SAM_APDU [10:17:41]CAPDU: 80 11 00 00 [10:17:41]Write to MH i2c: E2 08 00 78 2A 80 11 00 00 00 00 00 00 1C [10:17:41]Write i2c OK [10:17:41]MH_I2C_Read... [10:17:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:41]Read from MH i2c: E2 [10:17:41]MH_I2C_Read... [10:17:41]Read from MH i2c: E2 17 00 [10:17:41]MH_I2C_Read... [10:17:41]Read from MH i2c: E2 17 00 78 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 72 [10:17:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:17:41]wFMCommunicate OK [10:17:41]requested_item fd.num is exist - process it [10:17:41]SAM_PROTO_GetFieldsCounters [10:17:41]wFMCommunicate request_size=4 [10:17:41]MH_SAM_APDU [10:17:41]CAPDU: 80 13 00 00 [10:17:41]Write to MH i2c: E2 08 00 79 2A 80 13 00 00 00 00 00 00 1F [10:17:41]Write i2c OK [10:17:41]MH_I2C_Read... [10:17:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:17:41]Read from MH i2c: E2 [10:17:41]MH_I2C_Read... [10:17:41]Read from MH i2c: E2 62 00 [10:17:41]MH_I2C_Read... [10:17:41]Read from MH i2c: E2 62 00 79 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 52 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 C1 [10:17: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 52 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:17:41]wFMCommunicate OK [10:17:41]SAM_PROTO_GetFieldsCounters done [10:17:41]requested_item shift.num is exist - process it [10:17:41]requested_item shift.opened is exist - process it [10:17:41]req_shift_opened [10:17:41]FM_GetShiftState [10:17:41]SAM_PROTO_GetShiftState [10:17:41]wFMCommunicate request_size=4 [10:17:41]MH_SAM_APDU [10:17:41]CAPDU: 80 13 01 00 [10:17:41]Write to MH i2c: E2 08 00 7A 2A 80 13 01 00 00 00 00 00 21 [10:17:41]Write i2c OK [10:17:41]MH_I2C_Read... [10:17:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:41]Read from MH i2c: E2 [10:17:41]MH_I2C_Read... [10:17:41]Read from MH i2c: E2 0E 00 [10:17:41]MH_I2C_Read... [10:17:41]Read from MH i2c: E2 0E 00 7A 2A 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 FA [10:17:41]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:17:41]wFMCommunicate OK [10:17:41]SAM_PROTO_GetShiftState done [10:17:41]FM_GetShiftState done [10:17:41]req_shift_opened done [10:17:41]requested_item shift.open_date is exist - process it [10:17:41]req_shift_open_date [10:17:41]req_shift_open_date done [10:17:41]produce_requested_data done [10:17:41]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165202,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [10:17:41]process_action_free close_receipt [10:17:41]json_value_free [10:17:41]json_value_free done [10:17:41]process_json_proto returns [10:17:41]Send response to host [10:17:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165202,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [10:17:41]free response buf [10:17:41]execute_script done [10:17:41]execute_script returns [10:17:41]free content buf [10:17:41]Sock 10.Close socket [10:17:41]Sock 10.Thread stoped [10:17:42]accept exits with 7 [10:17:42]New connection [10:17:42]New thread 3066785124 created [10:17:42]Thread 3066928484 joined [10:17:42]Waiting for new connection... [10:17:42] Sock 7.Parse request [10:17:42]Sock 7.Check first char [10:17:42]Sock 7.First char is OK [10:17:42]request: POST /json_proto HTTP/1.0 [10:17:42]Method: POST [10:17:42]URL: /json_proto [10:17:42]Method is POST - this is cgi request [10:17:42]url: /json_proto [10:17:42]query_string will be loaded in cgi processing [10:17:42]execute_cgi json_proto POST (null) [10:17:42]execute_cgi path=json_proto method=POST [10:17:42]POST find Content-Length [10:17:42]Host: 172.17.56.4:8080 [10:17:42]Content-Length: 675 [10:17:42]Content-Type: application/json [10:17:42] [10:17:42]POST finish read [10:17:42]Found Content-Length = 675 [10:17:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459305", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 10.020, "sum" : 720.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 720.00, "total" : 720.00, "payments": [ { "type": 0, "sum" : 720.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:17:42]execute_script... [10:17: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)459305", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 10.020, "sum" : 720.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 720.00, "total" : 720.00, "payments": [ { "type": 0, "sum" : 720.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:17:42]POST & json_proto [10:17:42]process_json_proto [10:17:42]json parsed OK: [10:17:42]protocol is kg_v1.0 [10:17:42]action value=close_receipt [10:17:42]process_action close_receipt [10:17:42]cmd_close_receipt [10:17:42]MH_GetDate [10:17:42]Write to MH i2c: F0 00 00 7B 2A 94 [10:17:42]Write i2c OK [10:17:42]MH_I2C_Read... [10:17:42]Read from MH i2c: F0 [10:17:42]MH_I2C_Read... [10:17:42]Read from MH i2c: F0 09 00 [10:17:42]MH_I2C_Read... [10:17:42]Read from MH i2c: F0 09 00 7B 2A 00 4B F7 94 66 C9 DC B2 64 94 [10:17:42]GetLastDocTimeStamp 1721038662 [10:17:42]current date 1721038667 [10:17:42]FM_GetShiftState [10:17:42]SAM_PROTO_GetShiftState [10:17:42]wFMCommunicate request_size=4 [10:17:42]MH_SAM_APDU [10:17:42]CAPDU: 80 13 01 00 [10:17:42]Write to MH i2c: E2 08 00 7C 2A 80 13 01 00 00 00 00 00 23 [10:17:42]Write i2c OK [10:17:42]MH_I2C_Read... [10:17:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:42]Read from MH i2c: E2 [10:17:42]MH_I2C_Read... [10:17:42]Read from MH i2c: E2 0E 00 [10:17:42]MH_I2C_Read... [10:17:42]Read from MH i2c: E2 0E 00 7C 2A 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 FC [10:17:42]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:17:42]wFMCommunicate OK [10:17:42]SAM_PROTO_GetShiftState done [10:17:42]FM_GetShiftState done [10:17:42]opened in 1721003876 [10:17:42]opened+sec_in_day 1721090276 [10:17:42]quantity*price = 72043 [10:17:42]sum+1 = 72045 [10:17:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 720.00 Внесено: 720.00 СДАЧА: 0.00 НСП 1% : 6.38 НДС 12% : 76.51 Наличными: 720.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 76 15.07.2024 10:17 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165203 ФПД: 170369072865120 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T101747&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165203&fm=170369072865120&tin=02508201610067®Number=0000000000090829&sum=72000 [10:17:44]StoreToDocumentArchive [10:17:44]shift 448 fd 165203 [10:17:44]save to /storage/0448/doc_00165203 [10:17:44]save last doc name /storage/0448/doc_00165203 to /storage/kkm_last_doc_name [10:17:44]save OK [10:17:44]Clear old archive folders... [10:17:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:17:44]tlvbuf is 0148BF80 [10:17:44]SAM_PROTO_ClearQueue [10:17:44]wFMCommunicate request_size=4 [10:17:44]MH_SAM_APDU [10:17:44]CAPDU: 80 09 00 00 [10:17:44]Write to MH i2c: E2 08 00 89 2A 80 09 00 00 00 00 00 00 25 [10:17:44]Write i2c OK [10:17:44]MH_I2C_Read... [10:17:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:17:44]Read from MH i2c: E2 [10:17:44]MH_I2C_Read... [10:17:44]Read from MH i2c: E2 03 00 [10:17:44]MH_I2C_Read... [10:17:44]Read from MH i2c: E2 03 00 89 2A 00 90 00 27 [10:17:44]RAPDU: 90 00 [10:17:44]wFMCommunicate OK [10:17:44]SAM_PROTO_ClearQueue done [10:17:44]KKMCreateOFDPacket [10:17:44]OFDProtocolAddRootSTLVToBuf [10:17:44]FM_MakeSignedData [10:17:44]FM_MakeSignedData [10:17:44]SAM_PROTO_SignData [10:17:44]wFMCommunicate request_size=4 [10:17:44]MH_SAM_APDU [10:17:44]CAPDU: 80 0D 01 02 [10:17:44]Write to MH i2c: E2 08 00 8A 2A 80 0D 01 02 00 00 00 00 2D [10:17:44]Write i2c OK [10:17:44]MH_I2C_Read... [10:17:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:17:44]Read from MH i2c: E2 [10:17:44]MH_I2C_Read... [10:17:44]Read from MH i2c: E2 03 00 [10:17:44]MH_I2C_Read... [10:17:44]Read from MH i2c: E2 03 00 8A 2A 00 90 00 28 [10:17:44]RAPDU: 90 00 [10:17:44]wFMCommunicate OK [10:17:44]wFMCommunicate request_size=255 [10:17:44]MH_SAM_APDU [10:17:44]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 6C 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 4B F7 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 53 85 02 00 35 04 06 00 9A F3 24 11 [10:17:44]Write to MH i2c: E2 02 01 8B 2A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 6C 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 4B F7 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 53 85 02 00 35 04 06 00 9A F3 24 11 00 00 AC [10:17:44]Write i2c OK [10:17:44]MH_I2C_Read... [10:17:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:44]Read from MH i2c: E2 [10:17:44]MH_I2C_Read... [10:17:44]Read from MH i2c: E2 03 00 [10:17:44]MH_I2C_Read... [10:17:44]Read from MH i2c: E2 03 00 8B 2A 00 90 00 29 [10:17:44]RAPDU: 90 00 [10:17:44]wFMCommunicate OK [10:17:44]wFMCommunicate request_size=7 [10:17:44]MH_SAM_APDU [10:17:44]CAPDU: 80 0D 02 02 02 9F 60 [10:17:44]Write to MH i2c: E2 0A 00 8C 2A 80 0D 02 02 02 00 9F 60 00 00 33 [10:17:44]Write i2c OK [10:17:44]MH_I2C_Read... [10:17:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:45]Read from MH i2c: E2 [10:17:45]MH_I2C_Read... [10:17:45]Read from MH i2c: E2 03 00 [10:17:45]MH_I2C_Read... [10:17:45]Read from MH i2c: E2 03 00 8C 2A 00 90 00 2A [10:17:45]RAPDU: 90 00 [10:17:45]wFMCommunicate OK [10:17:45]wFMCommunicate request_size=4 [10:17:45]MH_SAM_APDU [10:17:45]CAPDU: 80 0D 03 02 [10:17:45]Write to MH i2c: E2 08 00 8D 2A 80 0D 03 02 00 00 00 00 32 [10:17:45]Write i2c OK [10:17:45]MH_I2C_Read... [10:17:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:17:45]Read from MH i2c: E2 [10:17:45]MH_I2C_Read... [10:17:45]Read from MH i2c: E2 0B 00 [10:17:45]MH_I2C_Read... [10:17:45]Read from MH i2c: E2 0B 00 8D 2A 00 EA 68 05 2E EC F8 9E 24 90 00 5E [10:17:45]RAPDU: EA 68 05 2E EC F8 9E 24 90 00 [10:17:45]wFMCommunicate OK [10:17:45]SAM_PROTO_SignData done [10:17:45]FM_MakeSignedData done [10:17:45]CreateOFDProtocolMessage [10:17:45]wFMCommunicate request_size=4 [10:17:45]MH_SAM_APDU [10:17:45]CAPDU: 80 11 00 00 [10:17:45]Write to MH i2c: E2 08 00 8E 2A 80 11 00 00 00 00 00 00 32 [10:17:45]Write i2c OK [10:17:45]MH_I2C_Read... [10:17:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:45]Read from MH i2c: E2 [10:17:45]MH_I2C_Read... [10:17:45]Read from MH i2c: E2 17 00 [10:17:45]MH_I2C_Read... [10:17:45]Read from MH i2c: E2 17 00 8E 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 88 [10:17:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:17:45]wFMCommunicate OK [10:17:45]CreateOFDProtocolMessage done [10:17:45]OFDSenderStorePacket 165203 [10:17:45]StoreOFDPacket docnum=165203 [10:17:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 8E 7B 04 01 BC 28 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 6C 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 4B F7 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 53 85 02 00 35 04 06 00 9A F3 24 11 9F 60 EA 68 05 2E EC F8 9E 24 [10:17:45]CheckFolder [10:17:45]dirname=/storage/ofd_packets [10:17:45]CheckFolder done [10:17:45]ProducePacketName [10:17:45]name=ofd_packets/00165203 [10:17:45]NVStorageSaveData ofd_packets/00165203 [10:17:45]File name is /storage/ofd_packets/00165203 [10:17:45]Write 298 bytes [10:17:45]NVStorageSaveData done [10:17:45]OFDSenderStorePacket done [10:17:45]KKMCreateOFDPacket done [10:17:45]NVStorageSaveData kkm_last_timestamp [10:17:45]File name is /storage/kkm_last_timestamp [10:17:45]Write 4 bytes [10:17:45]NVStorageSaveData done [10:17:45]ExternCall_PrintAddStr [10:17:45]wPrintStart [10:17:45]Write to MH i2c: 01 00 00 8F 2A B9 [10:17:45]Write i2c OK [10:17:45]MH_I2C_Read... [10:17:45]Read from MH i2c: 01 [10:17:45]MH_I2C_Read... [10:17:45]Read from MH i2c: 01 07 00 [10:17:45]MH_I2C_Read... [10:17:45]Read from MH i2c: 01 07 00 8F 2A 00 00 00 00 00 FF 0F CE [10:17:45]RasterBufferAndPrint [10:17:45]line Счет N : (1)459305 [10:17:45]line ИНН: 02508201610067 [10:17:45]line Контрольно-Кассовый Чек [10:17:45]line ПРОДАЖА [10:17:45]line ТРК (МРК, ГНК) : 21 [10:17:45]line Товар: 2710194210 [10:17:45]line ДТ-К-5 [10:17:45]line 10.020 * 71.90 [10:17:45]line = 720.44 [10:17:45]line НДС 12% НСП 1% [10:17:45]line > о реализуемом товаре [10:17:45]line ОКРУГЛЕНИЕ: -0.44 [10:17:45]line ИТОГО: 720.00 [10:17:45]line Внесено: 720.00 [10:17:45]line СДАЧА: 0.00 [10:17:45]line НСП 1% : 6.38 [10:17:45]line НДС 12% : 76.51 [10:17:45]line Наличными: 720.00 [10:17:45]line Безнал.: 0.00 [10:17:45]line Место: АЗС № 72 "Партнер Нефть" [10:17:45]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:17:45]line СНО: Общий режим [10:17:45]line Чек 76 15.07.2024 10:17 [10:17:45]line Смена: 448 ФФД: 1.0 [10:17:45]line ЗНМ: 0300000160 [10:17:45]line РНМ: 0000000000090829 [10:17:45]line Версия ККМ: 001 [10:17:45]line ФМ: 0000000000874718 [10:17:45]line ФД: 165203 [10:17:45]line ФПД: 170369072865120 [10:17:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T101747&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165203&fm=170369072865120&tin=02508201610067®Number=0000000000090829&sum=72000 [10:17:45]OFD Sender: Processing packet 165203 [packets to send 106, broken 105] [10:17:45]ProducePacketName [10:17:45]name=ofd_packets/00165203 [10:17:45]OFD Sender: To server: pG, [10:17:45]CommunicateWithHost lk.salyk.kg:30040 [10:17:45]ConnectInit lk.salyk.kg [10:17:45]written 0, free lines is 4095 [10:17:45]Connected sock=11 [10:17:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 8E 7B 04 01 BC 28 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 6C 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 4B F7 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 53 85 02 00 35 04 06 00 9A F3 24 11 9F 60 EA 68 05 2E EC F8 9E 24 [10:17:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 44 12 47 00 7B 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 53 85 02 00 F4 03 04 00 D6 9D 94 66 B6 04 01 00 00 3B 36 84 50 18 0B 2E AB [10:17:45]CommunicateWithHost err = 0 [10:17:45]CheckOFDResponse [10:17:45]1017 (14) - 77093643461234 [10:17:45]1041 (16) - 0000000000874718 [10:17:45]1040 (4) - 165203 [10:17:45]1012 (4) - 15.07.2024 03:56 [10:17:45]1206 (1) - 0 [10:17:45]OFD Sender: Remove packet 165203 [10:17:45]ProducePacketName [10:17:45]name=ofd_packets/00165203 [10:17:45]NVStorageDeleteData [10:17:45]Write to MH i2c: 01 00 00 B9 2A E3 [10:17:45]Write i2c OK [10:17:45]MH_I2C_Read... [10:17:45]Read from MH i2c: 01 [10:17:45]MH_I2C_Read... [10:17:45]Read from MH i2c: 01 07 00 [10:17:45]MH_I2C_Read... [10:17:45]Read from MH i2c: 01 07 00 B9 2A 00 00 00 00 00 86 0D 7D [10:17:45]RasterBufferAndPrint [10:17:45]line [10:17:45]line [10:17:45]line [10:17:45]line [10:17:45]line [10:17:45]written 0, free lines is 3489 [10:17:45]MH_Cut [10:17:45]Write to MH i2c: D1 01 00 C0 2A 01 BC [10:17:45]Write i2c OK [10:17:45]MH_I2C_Read... [10:17:45]Read from MH i2c: D1 [10:17:45]MH_I2C_Read... [10:17:45]Read from MH i2c: D1 01 00 [10:17:45]MH_I2C_Read... [10:17:45]Read from MH i2c: D1 01 00 C0 2A 00 BB [10:17:45]Write to MH i2c: 01 00 00 C1 2A EB [10:17:45]Write i2c OK [10:17:45]MH_I2C_Read... [10:17:46]OFD Sender: No OFD packet to send [10:17:46]*** Cut start [10:17:46]*** Partial cut [10:17:46]*** CUTSNS_PIN = 1 [10:17:46]*** CUTSNS_PIN = 0 [10:17:46]*** Brake cut motor [10:17:46]Read from MH i2c: 01 [10:17:46]MH_I2C_Read... [10:17:46]*** Stop cut motor [10:17:46]*** Cut end [10:17:46]Read from MH i2c: 01 07 00 [10:17:47]MH_I2C_Read... [10:17:47]Read from MH i2c: 01 07 00 C1 2A 00 00 00 00 00 FF 0F 00 [10:17:47]process_action close_receipt done [10:17:47]requested_data is exist [10:17:47]produce_requested_data [10:17:47]requested_item fm.sn is exist - process it [10:17:47]wFMCommunicate request_size=4 [10:17:47]MH_SAM_APDU [10:17:47]CAPDU: 80 11 00 00 [10:17:47]Write to MH i2c: E2 08 00 C2 2A 80 11 00 00 00 00 00 00 66 [10:17:47]Write i2c OK [10:17:47]MH_I2C_Read... [10:17:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:47]Read from MH i2c: E2 [10:17:47]MH_I2C_Read... [10:17:47]Read from MH i2c: E2 17 00 [10:17:47]MH_I2C_Read... [10:17:47]Read from MH i2c: E2 17 00 C2 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 BC [10:17:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:17:47]wFMCommunicate OK [10:17:47]requested_item fd.num is exist - process it [10:17:47]SAM_PROTO_GetFieldsCounters [10:17:47]wFMCommunicate request_size=4 [10:17:47]MH_SAM_APDU [10:17:47]CAPDU: 80 13 00 00 [10:17:47]Write to MH i2c: E2 08 00 C3 2A 80 13 00 00 00 00 00 00 69 [10:17:47]Write i2c OK [10:17:47]MH_I2C_Read... [10:17:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:17:47]Read from MH i2c: E2 [10:17:47]MH_I2C_Read... [10:17:47]Read from MH i2c: E2 62 00 [10:17:47]MH_I2C_Read... [10:17:47]Read from MH i2c: E2 62 00 C3 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 53 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [10:17: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 53 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:17:47]wFMCommunicate OK [10:17:47]SAM_PROTO_GetFieldsCounters done [10:17:47]requested_item shift.num is exist - process it [10:17:47]requested_item shift.opened is exist - process it [10:17:47]req_shift_opened [10:17:47]FM_GetShiftState [10:17:47]SAM_PROTO_GetShiftState [10:17:47]wFMCommunicate request_size=4 [10:17:47]MH_SAM_APDU [10:17:47]CAPDU: 80 13 01 00 [10:17:47]Write to MH i2c: E2 08 00 C4 2A 80 13 01 00 00 00 00 00 6B [10:17:47]Write i2c OK [10:17:47]MH_I2C_Read... [10:17:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:47]Read from MH i2c: E2 [10:17:47]MH_I2C_Read... [10:17:47]Read from MH i2c: E2 0E 00 [10:17:47]MH_I2C_Read... [10:17:47]Read from MH i2c: E2 0E 00 C4 2A 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 44 [10:17:47]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:17:47]wFMCommunicate OK [10:17:47]SAM_PROTO_GetShiftState done [10:17:47]FM_GetShiftState done [10:17:47]req_shift_opened done [10:17:47]requested_item shift.open_date is exist - process it [10:17:47]req_shift_open_date [10:17:47]req_shift_open_date done [10:17:47]produce_requested_data done [10:17:47]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165203,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [10:17:47]process_action_free close_receipt [10:17:47]json_value_free [10:17:47]json_value_free done [10:17:47]process_json_proto returns [10:17:47]Send response to host [10:17:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165203,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [10:17:47]free response buf [10:17:47]execute_script done [10:17:47]execute_script returns [10:17:47]free content buf [10:17:47]Sock 7.Close socket [10:17:47]Sock 7.Thread stoped [10:17:51]OFD Sender: No OFD packet to send [10:17:56]OFD Sender: No OFD packet to send [10:18:01]OFD Sender: No OFD packet to send [10:18:06]OFD Sender: No OFD packet to send [10:18:11]OFD Sender: No OFD packet to send [10:18:16]OFD Sender: No OFD packet to send [10:18:21]OFD Sender: No OFD packet to send [10:18:26]OFD Sender: No OFD packet to send [10:18:31]OFD Sender: No OFD packet to send [10:18:36]OFD Sender: No OFD packet to send [10:18:41]OFD Sender: No OFD packet to send [10:18:46]OFD Sender: No OFD packet to send [10:18:51]OFD Sender: No OFD packet to send [10:18:56]OFD Sender: No OFD packet to send [10:19:01]OFD Sender: No OFD packet to send [10:19:06]OFD Sender: No OFD packet to send [10:19:11]OFD Sender: No OFD packet to send [10:19:16]OFD Sender: No OFD packet to send [10:19:21]OFD Sender: No OFD packet to send [10:19:26]OFD Sender: No OFD packet to send [10:19:30]accept exits with 10 [10:19:30]New connection [10:19:30]New thread 3066928484 created [10:19:30]Thread 3066785124 joined [10:19:30]Waiting for new connection... [10:19:30] Sock 10.Parse request [10:19:30]Sock 10.Check first char [10:19:30]Sock 10.First char is OK [10:19:30]request: POST /json_proto HTTP/1.0 [10:19:30]Method: POST [10:19:30]URL: /json_proto [10:19:30]Method is POST - this is cgi request [10:19:30]url: /json_proto [10:19:30]query_string will be loaded in cgi processing [10:19:30]execute_cgi json_proto POST (null) [10:19:30]execute_cgi path=json_proto method=POST [10:19:30]POST find Content-Length [10:19:30]Host: 172.17.56.4:8080 [10:19:30]Content-Length: 677 [10:19:30]Content-Type: application/json [10:19:30] [10:19:30]POST finish read [10:19:30]Found Content-Length = 677 [10:19:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459307", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:30]execute_script... [10:19:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459307", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:30]POST & json_proto [10:19:30]process_json_proto [10:19:30]json parsed OK: [10:19:30]protocol is kg_v1.0 [10:19:30]action value=close_receipt [10:19:30]process_action close_receipt [10:19:30]cmd_close_receipt [10:19:30]MH_GetDate [10:19:30]Write to MH i2c: F0 00 00 C5 2A DE [10:19:30]Write i2c OK [10:19:30]MH_I2C_Read... [10:19:30]Read from MH i2c: F0 [10:19:30]MH_I2C_Read... [10:19:30]Read from MH i2c: F0 09 00 [10:19:30]MH_I2C_Read... [10:19:30]Read from MH i2c: F0 09 00 C5 2A 00 B7 F7 94 66 C9 DC B2 64 4A [10:19:30]GetLastDocTimeStamp 1721038667 [10:19:30]current date 1721038775 [10:19:30]FM_GetShiftState [10:19:30]SAM_PROTO_GetShiftState [10:19:30]wFMCommunicate request_size=4 [10:19:30]MH_SAM_APDU [10:19:30]CAPDU: 80 13 01 00 [10:19:30]Write to MH i2c: E2 08 00 C6 2A 80 13 01 00 00 00 00 00 6D [10:19:30]Write i2c OK [10:19:30]MH_I2C_Read... [10:19:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:30]Read from MH i2c: E2 [10:19:30]MH_I2C_Read... [10:19:30]Read from MH i2c: E2 0E 00 [10:19:30]MH_I2C_Read... [10:19:30]Read from MH i2c: E2 0E 00 C6 2A 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 46 [10:19:30]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:19:30]wFMCommunicate OK [10:19:30]SAM_PROTO_GetShiftState done [10:19:30]FM_GetShiftState done [10:19:30]opened in 1721003876 [10:19:30]opened+sec_in_day 1721090276 [10:19:30]quantity*price = 30004 [10:19:30]sum+1 = 30006 [10:19:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 77 15.07.2024 10:19 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165204 ФПД: 203098138109044 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T101935&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165204&fm=203098138109044&tin=02508201610067®Number=0000000000090829&sum=30000 [10:19:32]StoreToDocumentArchive [10:19:32]shift 448 fd 165204 [10:19:32]save to /storage/0448/doc_00165204 [10:19:32]save last doc name /storage/0448/doc_00165204 to /storage/kkm_last_doc_name [10:19:32]save OK [10:19:32]Clear old archive folders... [10:19:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:19:32]tlvbuf is 0135B460 [10:19:32]SAM_PROTO_ClearQueue [10:19:32]wFMCommunicate request_size=4 [10:19:32]MH_SAM_APDU [10:19:32]CAPDU: 80 09 00 00 [10:19:32]Write to MH i2c: E2 08 00 D3 2A 80 09 00 00 00 00 00 00 6F [10:19:32]Write i2c OK [10:19:32]MH_I2C_Read... [10:19:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:19:32]Read from MH i2c: E2 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: E2 03 00 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: E2 03 00 D3 2A 00 90 00 71 [10:19:32]RAPDU: 90 00 [10:19:32]wFMCommunicate OK [10:19:32]SAM_PROTO_ClearQueue done [10:19:32]KKMCreateOFDPacket [10:19:32]OFDProtocolAddRootSTLVToBuf [10:19:32]FM_MakeSignedData [10:19:32]FM_MakeSignedData [10:19:32]SAM_PROTO_SignData [10:19:32]wFMCommunicate request_size=4 [10:19:32]MH_SAM_APDU [10:19:32]CAPDU: 80 0D 01 02 [10:19:32]Write to MH i2c: E2 08 00 D4 2A 80 0D 01 02 00 00 00 00 77 [10:19:32]Write i2c OK [10:19:32]MH_I2C_Read... [10:19:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:19:32]Read from MH i2c: E2 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: E2 03 00 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: E2 03 00 D4 2A 00 90 00 72 [10:19:32]RAPDU: 90 00 [10:19:32]wFMCommunicate OK [10:19:32]wFMCommunicate request_size=255 [10:19:32]MH_SAM_APDU [10:19:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 B7 F7 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 54 85 02 00 35 04 06 00 B8 [10:19:32]Write to MH i2c: E2 02 01 D5 2A 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 B7 F7 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 54 85 02 00 35 04 06 00 B8 00 00 FA [10:19:32]Write i2c OK [10:19:32]MH_I2C_Read... [10:19:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:32]Read from MH i2c: E2 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: E2 03 00 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: E2 03 00 D5 2A 00 90 00 73 [10:19:32]RAPDU: 90 00 [10:19:32]wFMCommunicate OK [10:19:32]wFMCommunicate request_size=10 [10:19:32]MH_SAM_APDU [10:19:32]CAPDU: 80 0D 02 02 05 B7 78 60 64 74 [10:19:32]Write to MH i2c: E2 0D 00 D6 2A 80 0D 02 02 05 00 B7 78 60 64 74 00 00 EB [10:19:32]Write i2c OK [10:19:32]MH_I2C_Read... [10:19:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:32]Read from MH i2c: E2 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: E2 03 00 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: E2 03 00 D6 2A 00 90 00 74 [10:19:32]RAPDU: 90 00 [10:19:32]wFMCommunicate OK [10:19:32]wFMCommunicate request_size=4 [10:19:32]MH_SAM_APDU [10:19:32]CAPDU: 80 0D 03 02 [10:19:32]Write to MH i2c: E2 08 00 D7 2A 80 0D 03 02 00 00 00 00 7C [10:19:32]Write i2c OK [10:19:32]MH_I2C_Read... [10:19:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:19:32]Read from MH i2c: E2 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: E2 0B 00 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: E2 0B 00 D7 2A 00 02 58 59 D9 C6 CE 71 0B 90 00 19 [10:19:32]RAPDU: 02 58 59 D9 C6 CE 71 0B 90 00 [10:19:32]wFMCommunicate OK [10:19:32]SAM_PROTO_SignData done [10:19:32]FM_MakeSignedData done [10:19:32]CreateOFDProtocolMessage [10:19:32]wFMCommunicate request_size=4 [10:19:32]MH_SAM_APDU [10:19:32]CAPDU: 80 11 00 00 [10:19:32]Write to MH i2c: E2 08 00 D8 2A 80 11 00 00 00 00 00 00 7C [10:19:32]Write i2c OK [10:19:32]MH_I2C_Read... [10:19:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:32]Read from MH i2c: E2 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: E2 17 00 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: E2 17 00 D8 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D2 [10:19:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:19:32]wFMCommunicate OK [10:19:32]CreateOFDProtocolMessage done [10:19:32]OFDSenderStorePacket 165204 [10:19:32]StoreOFDPacket docnum=165204 [10:19:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 60 42 07 01 64 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 B7 F7 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 54 85 02 00 35 04 06 00 B8 B7 78 60 64 74 02 58 59 D9 C6 CE 71 0B [10:19:32]CheckFolder [10:19:32]dirname=/storage/ofd_packets [10:19:32]CheckFolder done [10:19:32]ProducePacketName [10:19:32]name=ofd_packets/00165204 [10:19:32]NVStorageSaveData ofd_packets/00165204 [10:19:32]File name is /storage/ofd_packets/00165204 [10:19:32]Write 301 bytes [10:19:32]NVStorageSaveData done [10:19:32]OFDSenderStorePacket done [10:19:32]KKMCreateOFDPacket done [10:19:32]NVStorageSaveData kkm_last_timestamp [10:19:32]File name is /storage/kkm_last_timestamp [10:19:32]Write 4 bytes [10:19:32]NVStorageSaveData done [10:19:32]ExternCall_PrintAddStr [10:19:32]wPrintStart [10:19:32]Write to MH i2c: 01 00 00 D9 2A 03 [10:19:32]Write i2c OK [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: 01 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: 01 07 00 [10:19:32]MH_I2C_Read... [10:19:32]Read from MH i2c: 01 07 00 D9 2A 00 00 00 00 00 FF 0F 18 [10:19:32]RasterBufferAndPrint [10:19:32]line Счет N : (1)459307 [10:19:32]line ИНН: 02508201610067 [10:19:32]line Контрольно-Кассовый Чек [10:19:32]line ПРОДАЖА [10:19:32]line ТРК (МРК, ГНК) : 12 [10:19:32]line Товар: 2710124130 [10:19:32]line Аи-92-К-5 [10:19:32]line 4.560 * 65.80 [10:19:32]line = 300.05 [10:19:32]line НДС 12% НСП 1% [10:19:32]line > о реализуемом товаре [10:19:32]line ОКРУГЛЕНИЕ: -0.05 [10:19:32]line ИТОГО: 300.00 [10:19:32]line Внесено: 300.00 [10:19:32]line СДАЧА: 0.00 [10:19:32]line НСП 1% : 2.65 [10:19:32]line НДС 12% : 31.86 [10:19:32]line Наличными: 300.00 [10:19:32]line Безнал.: 0.00 [10:19:32]line Место: АЗС № 72 "Партнер Нефть" [10:19:32]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:19:32]line СНО: Общий режим [10:19:32]line Чек 77 15.07.2024 10:19 [10:19:32]line Смена: 448 ФФД: 1.0 [10:19:32]line ЗНМ: 0300000160 [10:19:32]line РНМ: 0000000000090829 [10:19:32]line Версия ККМ: 001 [10:19:32]line ФМ: 0000000000874718 [10:19:32]line ФД: 165204 [10:19:32]line ФПД: 203098138109044 [10:19:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T101935&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165204&fm=203098138109044&tin=02508201610067®Number=0000000000090829&sum=30000 [10:19:32]written 0, free lines is 4095 [10:19:32]OFD Sender: Processing packet 165204 [packets to send 106, broken 105] [10:19:32]ProducePacketName [10:19:32]name=ofd_packets/00165204 [10:19:32]OFD Sender: To server: pG, [10:19:32]CommunicateWithHost lk.salyk.kg:30040 [10:19:32]ConnectInit lk.salyk.kg [10:19:33]Connected sock=9 [10:19: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 37 31 38 0F 01 00 00 60 42 07 01 64 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 B7 F7 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 54 85 02 00 35 04 06 00 B8 B7 78 60 64 74 02 58 59 D9 C6 CE 71 0B [10:19:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 27 48 47 00 40 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 54 85 02 00 F4 03 04 00 42 9E 94 66 B6 04 01 00 00 03 EC E9 8E 6B D4 BB B5 [10:19:33]CommunicateWithHost err = 0 [10:19:33]CheckOFDResponse [10:19:33]1017 (14) - 77093643461234 [10:19:33]1041 (16) - 0000000000874718 [10:19:33]1040 (4) - 165204 [10:19:33]1012 (4) - 15.07.2024 03:57 [10:19:33]1206 (1) - 0 [10:19:33]OFD Sender: Remove packet 165204 [10:19:33]ProducePacketName [10:19:33]name=ofd_packets/00165204 [10:19:33]NVStorageDeleteData [10:19:33]Write to MH i2c: 01 00 00 03 2B 2E [10:19:33]Write i2c OK [10:19:33]MH_I2C_Read... [10:19:33]Read from MH i2c: 01 [10:19:33]MH_I2C_Read... [10:19:33]Read from MH i2c: 01 07 00 [10:19:33]MH_I2C_Read... [10:19:33]Read from MH i2c: 01 07 00 03 2B 00 00 00 00 00 FA 0C 3B [10:19:33]RasterBufferAndPrint [10:19:33]line [10:19:33]line [10:19:33]line [10:19:33]line [10:19:33]line [10:19:33]written 0, free lines is 3328 [10:19:33]MH_Cut [10:19:33]Write to MH i2c: D1 01 00 0A 2B 01 07 [10:19:33]Write i2c OK [10:19:33]MH_I2C_Read... [10:19:33]Read from MH i2c: D1 [10:19:33]MH_I2C_Read... [10:19:33]Read from MH i2c: D1 01 00 [10:19:33]MH_I2C_Read... [10:19:33]Read from MH i2c: D1 01 00 0A 2B 00 06 [10:19:33]Write to MH i2c: 01 00 00 0B 2B 36 [10:19:33]Write i2c OK [10:19:33]MH_I2C_Read... [10:19:33]OFD Sender: No OFD packet to send [10:19:34]*** Cut start [10:19:34]*** Partial cut [10:19:34]*** CUTSNS_PIN = 1 [10:19:34]*** CUTSNS_PIN = 0 [10:19:34]*** Brake cut motor [10:19:34]Read from MH i2c: 01 [10:19:34]MH_I2C_Read... [10:19:34]*** Stop cut motor [10:19:34]*** Cut end [10:19:34]Read from MH i2c: 01 07 00 [10:19:34]MH_I2C_Read... [10:19:34]Read from MH i2c: 01 07 00 0B 2B 00 00 00 00 00 FF 0F 4B [10:19:34]process_action close_receipt done [10:19:34]requested_data is exist [10:19:34]produce_requested_data [10:19:34]requested_item fm.sn is exist - process it [10:19:34]wFMCommunicate request_size=4 [10:19:34]MH_SAM_APDU [10:19:34]CAPDU: 80 11 00 00 [10:19:34]Write to MH i2c: E2 08 00 0C 2B 80 11 00 00 00 00 00 00 B1 [10:19:34]Write i2c OK [10:19:34]MH_I2C_Read... [10:19:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:34]Read from MH i2c: E2 [10:19:34]MH_I2C_Read... [10:19:34]Read from MH i2c: E2 17 00 [10:19:34]MH_I2C_Read... [10:19:34]Read from MH i2c: E2 17 00 0C 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 07 [10:19:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:19:34]wFMCommunicate OK [10:19:34]requested_item fd.num is exist - process it [10:19:34]SAM_PROTO_GetFieldsCounters [10:19:34]wFMCommunicate request_size=4 [10:19:34]MH_SAM_APDU [10:19:34]CAPDU: 80 13 00 00 [10:19:34]Write to MH i2c: E2 08 00 0D 2B 80 13 00 00 00 00 00 00 B4 [10:19:34]Write i2c OK [10:19:34]MH_I2C_Read... [10:19:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:19:34]Read from MH i2c: E2 [10:19:34]MH_I2C_Read... [10:19:34]Read from MH i2c: E2 62 00 [10:19:34]MH_I2C_Read... [10:19:34]Read from MH i2c: E2 62 00 0D 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 54 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [10:19:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 54 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:19:34]wFMCommunicate OK [10:19:34]SAM_PROTO_GetFieldsCounters done [10:19:34]requested_item shift.num is exist - process it [10:19:34]requested_item shift.opened is exist - process it [10:19:34]req_shift_opened [10:19:34]FM_GetShiftState [10:19:34]SAM_PROTO_GetShiftState [10:19:34]wFMCommunicate request_size=4 [10:19:34]MH_SAM_APDU [10:19:34]CAPDU: 80 13 01 00 [10:19:34]Write to MH i2c: E2 08 00 0E 2B 80 13 01 00 00 00 00 00 B6 [10:19:34]Write i2c OK [10:19:34]MH_I2C_Read... [10:19:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:34]Read from MH i2c: E2 [10:19:34]MH_I2C_Read... [10:19:34]Read from MH i2c: E2 0E 00 [10:19:34]MH_I2C_Read... [10:19:34]Read from MH i2c: E2 0E 00 0E 2B 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 8F [10:19:34]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:19:34]wFMCommunicate OK [10:19:34]SAM_PROTO_GetShiftState done [10:19:34]FM_GetShiftState done [10:19:34]req_shift_opened done [10:19:34]requested_item shift.open_date is exist - process it [10:19:34]req_shift_open_date [10:19:34]req_shift_open_date done [10:19:34]produce_requested_data done [10:19:34]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165204,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [10:19:34]process_action_free close_receipt [10:19:34]json_value_free [10:19:34]json_value_free done [10:19:34]process_json_proto returns [10:19:34]Send response to host [10:19:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165204,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [10:19:34]free response buf [10:19:34]execute_script done [10:19:34]execute_script returns [10:19:34]free content buf [10:19:34]Sock 10.Close socket [10:19:34]Sock 10.Thread stoped [10:19:36]accept exits with 7 [10:19:36]New connection [10:19:36]New thread 3066785124 created [10:19:36]Thread 3066928484 joined [10:19:36]Waiting for new connection... [10:19:36] Sock 7.Parse request [10:19:36]Sock 7.Check first char [10:19:36]Sock 7.First char is OK [10:19:36]request: POST /json_proto HTTP/1.0 [10:19:36]Method: POST [10:19:36]URL: /json_proto [10:19:36]Method is POST - this is cgi request [10:19:36]url: /json_proto [10:19:36]query_string will be loaded in cgi processing [10:19:36]execute_cgi json_proto POST (null) [10:19:36]execute_cgi path=json_proto method=POST [10:19:36]POST find Content-Length [10:19:36]Host: 172.17.56.4:8080 [10:19:36]Content-Length: 682 [10:19:36]Content-Type: application/json [10:19:36] [10:19:36]POST finish read [10:19:36]Found Content-Length = 682 [10:19:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459306", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 20.070, "sum" : 1320.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1320.00, "total" : 1320.00, "payments": [ { "type": 0, "sum" : 1320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:36]execute_script... [10:19: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)459306", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 20.070, "sum" : 1320.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1320.00, "total" : 1320.00, "payments": [ { "type": 0, "sum" : 1320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:36]POST & json_proto [10:19:36]process_json_proto [10:19:36]json parsed OK: [10:19:36]protocol is kg_v1.0 [10:19:36]action value=close_receipt [10:19:36]process_action close_receipt [10:19:36]cmd_close_receipt [10:19:36]MH_GetDate [10:19:36]Write to MH i2c: F0 00 00 0F 2B 29 [10:19:36]Write i2c OK [10:19:36]MH_I2C_Read... [10:19:36]Read from MH i2c: F0 [10:19:36]MH_I2C_Read... [10:19:36]Read from MH i2c: F0 09 00 [10:19:36]MH_I2C_Read... [10:19:36]Read from MH i2c: F0 09 00 0F 2B 00 BD F7 94 66 C9 DC B2 64 9B [10:19:36]GetLastDocTimeStamp 1721038775 [10:19:36]current date 1721038781 [10:19:36]FM_GetShiftState [10:19:36]SAM_PROTO_GetShiftState [10:19:36]wFMCommunicate request_size=4 [10:19:36]MH_SAM_APDU [10:19:36]CAPDU: 80 13 01 00 [10:19:36]Write to MH i2c: E2 08 00 10 2B 80 13 01 00 00 00 00 00 B8 [10:19:36]Write i2c OK [10:19:36]MH_I2C_Read... [10:19:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:36]Read from MH i2c: E2 [10:19:36]MH_I2C_Read... [10:19:36]Read from MH i2c: E2 0E 00 [10:19:36]MH_I2C_Read... [10:19:36]Read from MH i2c: E2 0E 00 10 2B 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 91 [10:19:36]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:19:36]wFMCommunicate OK [10:19:36]SAM_PROTO_GetShiftState done [10:19:36]FM_GetShiftState done [10:19:36]opened in 1721003876 [10:19:36]opened+sec_in_day 1721090276 [10:19:36]quantity*price = 132060 [10:19:36]sum+1 = 132062 [10:19:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 1320.00 Внесено: 1320.00 СДАЧА: 0.00 НСП 1% : 11.69 НДС 12% : 140.24 Наличными: 1320.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 78 15.07.2024 10:19 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165205 ФПД: 83622035620598 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T101941&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165205&fm=83622035620598&tin=02508201610067®Number=0000000000090829&sum=132000 [10:19:37]StoreToDocumentArchive [10:19:37]shift 448 fd 165205 [10:19:37]save to /storage/0448/doc_00165205 [10:19:37]save last doc name /storage/0448/doc_00165205 to /storage/kkm_last_doc_name [10:19:37]save OK [10:19:37]Clear old archive folders... [10:19:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:19:37]tlvbuf is 014436A0 [10:19:37]SAM_PROTO_ClearQueue [10:19:37]wFMCommunicate request_size=4 [10:19:37]MH_SAM_APDU [10:19:37]CAPDU: 80 09 00 00 [10:19:37]Write to MH i2c: E2 08 00 1D 2B 80 09 00 00 00 00 00 00 BA [10:19:37]Write i2c OK [10:19:37]MH_I2C_Read... [10:19:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:19:37]Read from MH i2c: E2 [10:19:37]MH_I2C_Read... [10:19:37]Read from MH i2c: E2 03 00 [10:19:37]MH_I2C_Read... [10:19:37]Read from MH i2c: E2 03 00 1D 2B 00 90 00 BC [10:19:37]RAPDU: 90 00 [10:19:37]wFMCommunicate OK [10:19:37]SAM_PROTO_ClearQueue done [10:19:37]KKMCreateOFDPacket [10:19:37]OFDProtocolAddRootSTLVToBuf [10:19:37]FM_MakeSignedData [10:19:37]FM_MakeSignedData [10:19:37]SAM_PROTO_SignData [10:19:37]wFMCommunicate request_size=4 [10:19:37]MH_SAM_APDU [10:19:37]CAPDU: 80 0D 01 02 [10:19:37]Write to MH i2c: E2 08 00 1E 2B 80 0D 01 02 00 00 00 00 C2 [10:19:37]Write i2c OK [10:19:37]MH_I2C_Read... [10:19:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:19:37]Read from MH i2c: E2 [10:19:37]MH_I2C_Read... [10:19:37]Read from MH i2c: E2 03 00 [10:19:37]MH_I2C_Read... [10:19:37]Read from MH i2c: E2 03 00 1E 2B 00 90 00 BD [10:19:37]RAPDU: 90 00 [10:19:37]wFMCommunicate OK [10:19:37]wFMCommunicate request_size=255 [10:19:37]MH_SAM_APDU [10:19: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 66 4E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 DD 03 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 03 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 36 00 00 00 00 07 04 06 00 A0 03 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 BD F7 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 55 85 02 00 35 04 06 00 4C [10:19:37]Write to MH i2c: E2 02 01 1F 2B 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 66 4E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 DD 03 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 03 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 36 00 00 00 00 07 04 06 00 A0 03 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 BD F7 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 55 85 02 00 35 04 06 00 4C 00 00 F7 [10:19:37]Write i2c OK [10:19:37]MH_I2C_Read... [10:19:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:38]Read from MH i2c: E2 [10:19:38]MH_I2C_Read... [10:19:38]Read from MH i2c: E2 03 00 [10:19:38]MH_I2C_Read... [10:19:38]Read from MH i2c: E2 03 00 1F 2B 00 90 00 BE [10:19:38]RAPDU: 90 00 [10:19:38]wFMCommunicate OK [10:19:38]wFMCommunicate request_size=10 [10:19:38]MH_SAM_APDU [10:19:38]CAPDU: 80 0D 02 02 05 0D C5 BA 82 F6 [10:19:38]Write to MH i2c: E2 0D 00 20 2B 80 0D 02 02 05 00 0D C5 BA 82 F6 00 00 D3 [10:19:38]Write i2c OK [10:19:38]MH_I2C_Read... [10:19:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:38]Read from MH i2c: E2 [10:19:38]MH_I2C_Read... [10:19:38]Read from MH i2c: E2 03 00 [10:19:38]MH_I2C_Read... [10:19:38]Read from MH i2c: E2 03 00 20 2B 00 90 00 BF [10:19:38]RAPDU: 90 00 [10:19:38]wFMCommunicate OK [10:19:38]wFMCommunicate request_size=4 [10:19:38]MH_SAM_APDU [10:19:38]CAPDU: 80 0D 03 02 [10:19:38]Write to MH i2c: E2 08 00 21 2B 80 0D 03 02 00 00 00 00 C7 [10:19:38]Write i2c OK [10:19:38]MH_I2C_Read... [10:19:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:19:38]Read from MH i2c: E2 [10:19:38]MH_I2C_Read... [10:19:38]Read from MH i2c: E2 0B 00 [10:19:38]MH_I2C_Read... [10:19:38]Read from MH i2c: E2 0B 00 21 2B 00 18 C7 98 81 85 00 02 82 90 00 C9 [10:19:38]RAPDU: 18 C7 98 81 85 00 02 82 90 00 [10:19:38]wFMCommunicate OK [10:19:38]SAM_PROTO_SignData done [10:19:38]FM_MakeSignedData done [10:19:38]CreateOFDProtocolMessage [10:19:38]wFMCommunicate request_size=4 [10:19:38]MH_SAM_APDU [10:19:38]CAPDU: 80 11 00 00 [10:19:38]Write to MH i2c: E2 08 00 22 2B 80 11 00 00 00 00 00 00 C7 [10:19:38]Write i2c OK [10:19:38]MH_I2C_Read... [10:19:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:38]Read from MH i2c: E2 [10:19:38]MH_I2C_Read... [10:19:38]Read from MH i2c: E2 17 00 [10:19:38]MH_I2C_Read... [10:19:38]Read from MH i2c: E2 17 00 22 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1D [10:19:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:19:38]wFMCommunicate OK [10:19:38]CreateOFDProtocolMessage done [10:19:38]OFDSenderStorePacket 165205 [10:19:38]StoreOFDPacket docnum=165205 [10:19:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C1 2A 07 01 9B 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 4E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 DD 03 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 03 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 36 00 00 00 00 07 04 06 00 A0 03 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 BD F7 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 55 85 02 00 35 04 06 00 4C 0D C5 BA 82 F6 18 C7 98 81 85 00 02 82 [10:19:38]CheckFolder [10:19:38]dirname=/storage/ofd_packets [10:19:38]CheckFolder done [10:19:38]ProducePacketName [10:19:38]name=ofd_packets/00165205 [10:19:38]NVStorageSaveData ofd_packets/00165205 [10:19:38]File name is /storage/ofd_packets/00165205 [10:19:38]Write 301 bytes [10:19:38]NVStorageSaveData done [10:19:38]OFDSenderStorePacket done [10:19:38]KKMCreateOFDPacket done [10:19:38]NVStorageSaveData kkm_last_timestamp [10:19:38]File name is /storage/kkm_last_timestamp [10:19:38]Write 4 bytes [10:19:38]NVStorageSaveData done [10:19:38]ExternCall_PrintAddStr [10:19:38]wPrintStart [10:19:38]Write to MH i2c: 01 00 00 23 2B 4E [10:19:38]OFD Sender: Processing packet 165205 [packets to send 106, broken 105] [10:19:38]ProducePacketName [10:19:38]name=ofd_packets/00165205 [10:19:38]OFD Sender: To server: pG, [10:19:38]CommunicateWithHost lk.salyk.kg:30040 [10:19:38]ConnectInit lk.salyk.kg [10:19:38]Write i2c OK [10:19:38]MH_I2C_Read... [10:19:38]Read from MH i2c: 01 [10:19:38]MH_I2C_Read... [10:19:38]Read from MH i2c: 01 07 00 [10:19:38]MH_I2C_Read... [10:19:38]Read from MH i2c: 01 07 00 23 2B 00 00 00 00 00 FF 0F 63 [10:19:38]RasterBufferAndPrint [10:19:38]line Счет N : (1)459306 [10:19:38]line ИНН: 02508201610067 [10:19:38]line Контрольно-Кассовый Чек [10:19:38]line ПРОДАЖА [10:19:38]line ТРК (МРК, ГНК) : 22 [10:19:38]line Товар: 2710124130 [10:19:38]line Аи-92-К-5 [10:19:38]line 20.070 * 65.80 [10:19:38]line = 1320.61 [10:19:38]line НДС 12% НСП 1% [10:19:38]line > о реализуемом товаре [10:19:38]line ОКРУГЛЕНИЕ: -0.61 [10:19:38]line ИТОГО: 1320.00 [10:19:38]line Внесено: 1320.00 [10:19:38]line СДАЧА: 0.00 [10:19:38]line НСП 1% : 11.69 [10:19:38]line НДС 12% : 140.24 [10:19:38]line Наличными: 1320.00 [10:19:38]line Безнал.: 0.00 [10:19:38]line Место: АЗС № 72 "Партнер Нефть" [10:19:38]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:19:38]line СНО: Общий режим [10:19:38]line Чек 78 15.07.2024 10:19 [10:19:38]line Смена: 448 ФФД: 1.0 [10:19:38]line ЗНМ: 0300000160 [10:19:38]line РНМ: 0000000000090829 [10:19:38]line Версия ККМ: 001 [10:19:38]line ФМ: 0000000000874718 [10:19:38]line ФД: 165205 [10:19:38]line ФПД: 83622035620598 [10:19:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T101941&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165205&fm=83622035620598&tin=02508201610067®Number=0000000000090829&sum=132000 [10:19:38]written 0, free lines is 4095 [10:19:38]Connected sock=10 [10:19: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 37 31 38 0F 01 00 00 C1 2A 07 01 9B 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 4E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 DD 03 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 03 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 36 00 00 00 00 07 04 06 00 A0 03 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 BD F7 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 55 85 02 00 35 04 06 00 4C 0D C5 BA 82 F6 18 C7 98 81 85 00 02 82 [10:19:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 B7 17 47 00 A0 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 37 31 38 10 04 04 00 55 85 02 00 F4 03 04 00 47 9E 94 66 B6 04 01 00 00 A8 2C E0 54 BE CD 9E 5F [10:19:38]CommunicateWithHost err = 0 [10:19:38]CheckOFDResponse [10:19:38]1017 (14) - 77093643461234 [10:19:38]1041 (16) - 0000000000874718 [10:19:38]1040 (4) - 165205 [10:19:38]1012 (4) - 15.07.2024 03:57 [10:19:38]1206 (1) - 0 [10:19:38]OFD Sender: Remove packet 165205 [10:19:38]ProducePacketName [10:19:38]name=ofd_packets/00165205 [10:19:38]NVStorageDeleteData [10:19:38]Write to MH i2c: 01 00 00 4D 2B 78 [10:19:38]Write i2c OK [10:19:38]MH_I2C_Read... [10:19:38]Read from MH i2c: 01 [10:19:38]MH_I2C_Read... [10:19:38]Read from MH i2c: 01 07 00 [10:19:38]MH_I2C_Read... [10:19:38]Read from MH i2c: 01 07 00 4D 2B 00 00 00 00 00 02 0D 8E [10:19:38]RasterBufferAndPrint [10:19:38]line [10:19:38]line [10:19:38]line [10:19:38]line [10:19:38]line [10:19:38]written 0, free lines is 3345 [10:19:38]MH_Cut [10:19:38]Write to MH i2c: D1 01 00 54 2B 01 51 [10:19:38]Write i2c OK [10:19:38]MH_I2C_Read... [10:19:38]Read from MH i2c: D1 [10:19:38]MH_I2C_Read... [10:19:38]Read from MH i2c: D1 01 00 [10:19:38]MH_I2C_Read... [10:19:38]Read from MH i2c: D1 01 00 54 2B 00 50 [10:19:38]Write to MH i2c: 01 00 00 55 2B 80 [10:19:38]Write i2c OK [10:19:38]MH_I2C_Read... [10:19:39]OFD Sender: No OFD packet to send [10:19:39]*** Cut start [10:19:39]*** Partial cut [10:19:39]*** CUTSNS_PIN = 1 [10:19:39]*** CUTSNS_PIN = 0 [10:19:39]*** Brake cut motor [10:19:40]Read from MH i2c: 01 [10:19:40]MH_I2C_Read... [10:19:40]*** Stop cut motor [10:19:40]*** Cut end [10:19:40]Read from MH i2c: 01 07 00 [10:19:40]MH_I2C_Read... [10:19:40]Read from MH i2c: 01 07 00 55 2B 00 00 00 00 00 FF 0F 95 [10:19:40]process_action close_receipt done [10:19:40]requested_data is exist [10:19:40]produce_requested_data [10:19:40]requested_item fm.sn is exist - process it [10:19:40]wFMCommunicate request_size=4 [10:19:40]MH_SAM_APDU [10:19:40]CAPDU: 80 11 00 00 [10:19:40]Write to MH i2c: E2 08 00 56 2B 80 11 00 00 00 00 00 00 FB [10:19:40]Write i2c OK [10:19:40]MH_I2C_Read... [10:19:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:40]Read from MH i2c: E2 [10:19:40]MH_I2C_Read... [10:19:40]Read from MH i2c: E2 17 00 [10:19:40]MH_I2C_Read... [10:19:40]Read from MH i2c: E2 17 00 56 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 51 [10:19:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:19:40]wFMCommunicate OK [10:19:40]requested_item fd.num is exist - process it [10:19:40]SAM_PROTO_GetFieldsCounters [10:19:40]wFMCommunicate request_size=4 [10:19:40]MH_SAM_APDU [10:19:40]CAPDU: 80 13 00 00 [10:19:40]Write to MH i2c: E2 08 00 57 2B 80 13 00 00 00 00 00 00 FE [10:19:40]Write i2c OK [10:19:40]MH_I2C_Read... [10:19:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:19:40]Read from MH i2c: E2 [10:19:40]MH_I2C_Read... [10:19:40]Read from MH i2c: E2 62 00 [10:19:40]MH_I2C_Read... [10:19:40]Read from MH i2c: E2 62 00 57 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 55 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [10:19: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 55 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:19:40]wFMCommunicate OK [10:19:40]SAM_PROTO_GetFieldsCounters done [10:19:40]requested_item shift.num is exist - process it [10:19:40]requested_item shift.opened is exist - process it [10:19:40]req_shift_opened [10:19:40]FM_GetShiftState [10:19:40]SAM_PROTO_GetShiftState [10:19:40]wFMCommunicate request_size=4 [10:19:40]MH_SAM_APDU [10:19:40]CAPDU: 80 13 01 00 [10:19:40]Write to MH i2c: E2 08 00 58 2B 80 13 01 00 00 00 00 00 00 [10:19:40]Write i2c OK [10:19:40]MH_I2C_Read... [10:19:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:40]Read from MH i2c: E2 [10:19:40]MH_I2C_Read... [10:19:40]Read from MH i2c: E2 0E 00 [10:19:40]MH_I2C_Read... [10:19:40]Read from MH i2c: E2 0E 00 58 2B 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 D9 [10:19:40]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:19:40]wFMCommunicate OK [10:19:40]SAM_PROTO_GetShiftState done [10:19:40]FM_GetShiftState done [10:19:40]req_shift_opened done [10:19:40]requested_item shift.open_date is exist - process it [10:19:40]req_shift_open_date [10:19:40]req_shift_open_date done [10:19:40]produce_requested_data done [10:19:40]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165205,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [10:19:40]process_action_free close_receipt [10:19:40]json_value_free [10:19:40]json_value_free done [10:19:40]process_json_proto returns [10:19:40]Send response to host [10:19:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165205,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [10:19:40]free response buf [10:19:40]execute_script done [10:19:40]execute_script returns [10:19:40]free content buf [10:19:40]Sock 7.Close socket [10:19:40]Sock 7.Thread stoped [10:19:44]OFD Sender: No OFD packet to send [10:19:49]OFD Sender: No OFD packet to send [10:19:54]OFD Sender: No OFD packet to send [10:19:59]OFD Sender: No OFD packet to send [10:20:04]OFD Sender: No OFD packet to send [10:20:04]accept exits with 9 [10:20:04]New connection [10:20:04]New thread 3066928484 created [10:20:04]Thread 3066785124 joined [10:20:04]Waiting for new connection... [10:20:04] Sock 9.Parse request [10:20:04]Sock 9.Check first char [10:20:04]Sock 9.First char is OK [10:20:04]request: POST /json_proto HTTP/1.0 [10:20:04]Method: POST [10:20:04]URL: /json_proto [10:20:04]Method is POST - this is cgi request [10:20:04]url: /json_proto [10:20:04]query_string will be loaded in cgi processing [10:20:04]execute_cgi json_proto POST (null) [10:20:04]execute_cgi path=json_proto method=POST [10:20:04]POST find Content-Length [10:20:04]Host: 172.17.56.4:8080 [10:20:04]Content-Length: 677 [10:20:04]Content-Type: application/json [10:20:04] [10:20:04]POST finish read [10:20:04]Found Content-Length = 677 [10:20:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459308", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:04]execute_script... [10:20: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)459308", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:04]POST & json_proto [10:20:04]process_json_proto [10:20:04]json parsed OK: [10:20:04]protocol is kg_v1.0 [10:20:04]action value=close_receipt [10:20:04]process_action close_receipt [10:20:04]cmd_close_receipt [10:20:04]MH_GetDate [10:20:04]Write to MH i2c: F0 00 00 59 2B 73 [10:20:04]Write i2c OK [10:20:04]MH_I2C_Read... [10:20:04]Read from MH i2c: F0 [10:20:04]MH_I2C_Read... [10:20:04]Read from MH i2c: F0 09 00 [10:20:04]MH_I2C_Read... [10:20:04]Read from MH i2c: F0 09 00 59 2B 00 D9 F7 94 66 C9 DC B2 64 01 [10:20:04]GetLastDocTimeStamp 1721038781 [10:20:04]current date 1721038809 [10:20:04]FM_GetShiftState [10:20:04]SAM_PROTO_GetShiftState [10:20:04]wFMCommunicate request_size=4 [10:20:04]MH_SAM_APDU [10:20:04]CAPDU: 80 13 01 00 [10:20:04]Write to MH i2c: E2 08 00 5A 2B 80 13 01 00 00 00 00 00 02 [10:20:04]Write i2c OK [10:20:04]MH_I2C_Read... [10:20:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:04]Read from MH i2c: E2 [10:20:04]MH_I2C_Read... [10:20:04]Read from MH i2c: E2 0E 00 [10:20:04]MH_I2C_Read... [10:20:04]Read from MH i2c: E2 0E 00 5A 2B 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 DB [10:20:04]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:20:04]wFMCommunicate OK [10:20:04]SAM_PROTO_GetShiftState done [10:20:04]FM_GetShiftState done [10:20:04]opened in 1721003876 [10:20:04]opened+sec_in_day 1721090276 [10:20:04]quantity*price = 30004 [10:20:04]sum+1 = 30006 [10:20:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 79 15.07.2024 10:20 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165206 ФПД: 80602055507559 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T102009&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165206&fm=80602055507559&tin=02508201610067®Number=0000000000090829&sum=30000 [10:20:05]StoreToDocumentArchive [10:20:05]shift 448 fd 165206 [10:20:05]save to /storage/0448/doc_00165206 [10:20:05]save last doc name /storage/0448/doc_00165206 to /storage/kkm_last_doc_name [10:20:05]save OK [10:20:05]Clear old archive folders... [10:20:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:20:05]tlvbuf is B6F52B30 [10:20:05]SAM_PROTO_ClearQueue [10:20:05]wFMCommunicate request_size=4 [10:20:05]MH_SAM_APDU [10:20:05]CAPDU: 80 09 00 00 [10:20:05]Write to MH i2c: E2 08 00 67 2B 80 09 00 00 00 00 00 00 04 [10:20:05]Write i2c OK [10:20:05]MH_I2C_Read... [10:20:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:20:05]Read from MH i2c: E2 [10:20:05]MH_I2C_Read... [10:20:05]Read from MH i2c: E2 03 00 [10:20:05]MH_I2C_Read... [10:20:05]Read from MH i2c: E2 03 00 67 2B 00 90 00 06 [10:20:05]RAPDU: 90 00 [10:20:05]wFMCommunicate OK [10:20:05]SAM_PROTO_ClearQueue done [10:20:05]KKMCreateOFDPacket [10:20:05]OFDProtocolAddRootSTLVToBuf [10:20:05]FM_MakeSignedData [10:20:05]FM_MakeSignedData [10:20:05]SAM_PROTO_SignData [10:20:05]wFMCommunicate request_size=4 [10:20:05]MH_SAM_APDU [10:20:05]CAPDU: 80 0D 01 02 [10:20:05]Write to MH i2c: E2 08 00 68 2B 80 0D 01 02 00 00 00 00 0C [10:20:05]Write i2c OK [10:20:05]MH_I2C_Read... [10:20:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:20:05]Read from MH i2c: E2 [10:20:05]MH_I2C_Read... [10:20:05]Read from MH i2c: E2 03 00 [10:20:05]MH_I2C_Read... [10:20:05]Read from MH i2c: E2 03 00 68 2B 00 90 00 07 [10:20:05]RAPDU: 90 00 [10:20:05]wFMCommunicate OK [10:20:05]wFMCommunicate request_size=255 [10:20:05]MH_SAM_APDU [10:20:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 D9 F7 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 56 85 02 00 35 04 06 00 49 [10:20:05]Write to MH i2c: E2 02 01 69 2B 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 D9 F7 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 56 85 02 00 35 04 06 00 49 00 00 46 [10:20:05]Write i2c OK [10:20:05]MH_I2C_Read... [10:20:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:06]Read from MH i2c: E2 [10:20:06]MH_I2C_Read... [10:20:06]Read from MH i2c: E2 03 00 [10:20:06]MH_I2C_Read... [10:20:06]Read from MH i2c: E2 03 00 69 2B 00 90 00 08 [10:20:06]RAPDU: 90 00 [10:20:06]wFMCommunicate OK [10:20:06]wFMCommunicate request_size=10 [10:20:06]MH_SAM_APDU [10:20:06]CAPDU: 80 0D 02 02 05 4E A0 E2 FE 67 [10:20:06]Write to MH i2c: E2 0D 00 6A 2B 80 0D 02 02 05 00 4E A0 E2 FE 67 00 00 4E [10:20:06]Write i2c OK [10:20:06]MH_I2C_Read... [10:20:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:06]Read from MH i2c: E2 [10:20:06]MH_I2C_Read... [10:20:06]Read from MH i2c: E2 03 00 [10:20:06]MH_I2C_Read... [10:20:06]Read from MH i2c: E2 03 00 6A 2B 00 90 00 09 [10:20:06]RAPDU: 90 00 [10:20:06]wFMCommunicate OK [10:20:06]wFMCommunicate request_size=4 [10:20:06]MH_SAM_APDU [10:20:06]CAPDU: 80 0D 03 02 [10:20:06]Write to MH i2c: E2 08 00 6B 2B 80 0D 03 02 00 00 00 00 11 [10:20:06]Write i2c OK [10:20:06]MH_I2C_Read... [10:20:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:20:06]Read from MH i2c: E2 [10:20:06]MH_I2C_Read... [10:20:06]Read from MH i2c: E2 0B 00 [10:20:06]MH_I2C_Read... [10:20:06]Read from MH i2c: E2 0B 00 6B 2B 00 97 7A 6A 1E FC B8 DB 79 90 00 B3 [10:20:06]RAPDU: 97 7A 6A 1E FC B8 DB 79 90 00 [10:20:06]wFMCommunicate OK [10:20:06]SAM_PROTO_SignData done [10:20:06]FM_MakeSignedData done [10:20:06]CreateOFDProtocolMessage [10:20:06]wFMCommunicate request_size=4 [10:20:06]MH_SAM_APDU [10:20:06]CAPDU: 80 11 00 00 [10:20:06]Write to MH i2c: E2 08 00 6C 2B 80 11 00 00 00 00 00 00 11 [10:20:06]Write i2c OK [10:20:06]MH_I2C_Read... [10:20:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:06]Read from MH i2c: E2 [10:20:06]MH_I2C_Read... [10:20:06]Read from MH i2c: E2 17 00 [10:20:06]MH_I2C_Read... [10:20:06]Read from MH i2c: E2 17 00 6C 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 67 [10:20:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:20:06]wFMCommunicate OK [10:20:06]CreateOFDProtocolMessage done [10:20:06]OFDSenderStorePacket 165206 [10:20:06]StoreOFDPacket docnum=165206 [10:20:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D1 FF 07 01 67 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 D9 F7 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 56 85 02 00 35 04 06 00 49 4E A0 E2 FE 67 97 7A 6A 1E FC B8 DB 79 [10:20:06]CheckFolder [10:20:06]dirname=/storage/ofd_packets [10:20:06]CheckFolder done [10:20:06]ProducePacketName [10:20:06]name=ofd_packets/00165206 [10:20:06]NVStorageSaveData ofd_packets/00165206 [10:20:06]File name is /storage/ofd_packets/00165206 [10:20:06]Write 301 bytes [10:20:06]NVStorageSaveData done [10:20:06]OFDSenderStorePacket done [10:20:06]KKMCreateOFDPacket done [10:20:06]NVStorageSaveData kkm_last_timestamp [10:20:06]File name is /storage/kkm_last_timestamp [10:20:06]Write 4 bytes [10:20:06]NVStorageSaveData done [10:20:06]ExternCall_PrintAddStr [10:20:06]wPrintStart [10:20:06]Write to MH i2c: 01 00 00 6D 2B 98 [10:20:06]Write i2c OK [10:20:06]MH_I2C_Read... [10:20:06]Read from MH i2c: 01 [10:20:06]MH_I2C_Read... [10:20:06]Read from MH i2c: 01 07 00 [10:20:06]MH_I2C_Read... [10:20:06]Read from MH i2c: 01 07 00 6D 2B 00 00 00 00 00 FF 0F AD [10:20:06]RasterBufferAndPrint [10:20:06]line Счет N : (1)459308 [10:20:06]line ИНН: 02508201610067 [10:20:06]line Контрольно-Кассовый Чек [10:20:06]line ПРОДАЖА [10:20:06]line ТРК (МРК, ГНК) : 12 [10:20:06]line Товар: 2710124130 [10:20:06]line Аи-92-К-5 [10:20:06]line 4.560 * 65.80 [10:20:06]line = 300.05 [10:20:06]line НДС 12% НСП 1% [10:20:06]line > о реализуемом товаре [10:20:06]line ОКРУГЛЕНИЕ: -0.05 [10:20:06]line ИТОГО: 300.00 [10:20:06]line Внесено: 300.00 [10:20:06]line СДАЧА: 0.00 [10:20:06]line НСП 1% : 2.65 [10:20:06]line НДС 12% : 31.86 [10:20:06]line Наличными: 300.00 [10:20:06]line Безнал.: 0.00 [10:20:06]line Место: АЗС № 72 "Партнер Нефть" [10:20:06]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:20:06]line СНО: Общий режим [10:20:06]line Чек 79 15.07.2024 10:20 [10:20:06]line Смена: 448 ФФД: 1.0 [10:20:06]line ЗНМ: 0300000160 [10:20:06]line РНМ: 0000000000090829 [10:20:06]line Версия ККМ: 001 [10:20:06]line ФМ: 0000000000874718 [10:20:06]line ФД: 165206 [10:20:06]line ФПД: 80602055507559 [10:20:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T102009&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165206&fm=80602055507559&tin=02508201610067®Number=0000000000090829&sum=30000 [10:20:06]written 0, free lines is 4095 [10:20:06]OFD Sender: Processing packet 165206 [packets to send 106, broken 105] [10:20:06]ProducePacketName [10:20:06]name=ofd_packets/00165206 [10:20:06]OFD Sender: To server: pG, [10:20:06]CommunicateWithHost lk.salyk.kg:30040 [10:20:06]ConnectInit lk.salyk.kg [10:20:06]Connected sock=10 [10:20: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 37 31 38 0F 01 00 00 D1 FF 07 01 67 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 D9 F7 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 56 85 02 00 35 04 06 00 49 4E A0 E2 FE 67 97 7A 6A 1E FC B8 DB 79 [10:20:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 3A 22 47 00 4D 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 37 31 38 10 04 04 00 56 85 02 00 F4 03 04 00 63 9E 94 66 B6 04 01 00 00 B5 D4 E7 4A 70 33 CE 41 [10:20:06]CommunicateWithHost err = 0 [10:20:06]CheckOFDResponse [10:20:06]1017 (14) - 77093643461234 [10:20:06]1041 (16) - 0000000000874718 [10:20:06]1040 (4) - 165206 [10:20:06]1012 (4) - 15.07.2024 03:58 [10:20:06]1206 (1) - 0 [10:20:06]OFD Sender: Remove packet 165206 [10:20:06]ProducePacketName [10:20:06]name=ofd_packets/00165206 [10:20:06]NVStorageDeleteData [10:20:06]Write to MH i2c: 01 00 00 97 2B C2 [10:20:06]Write i2c OK [10:20:06]MH_I2C_Read... [10:20:06]Read from MH i2c: 01 [10:20:06]MH_I2C_Read... [10:20:06]Read from MH i2c: 01 07 00 [10:20:06]MH_I2C_Read... [10:20:06]Read from MH i2c: 01 07 00 97 2B 00 00 00 00 00 0D 0D E3 [10:20:06]RasterBufferAndPrint [10:20:06]line [10:20:06]line [10:20:06]line [10:20:06]line [10:20:06]line [10:20:06]written 0, free lines is 3347 [10:20:06]MH_Cut [10:20:06]Write to MH i2c: D1 01 00 9E 2B 01 9B [10:20:06]Write i2c OK [10:20:06]MH_I2C_Read... [10:20:06]Read from MH i2c: D1 [10:20:06]MH_I2C_Read... [10:20:06]Read from MH i2c: D1 01 00 [10:20:06]MH_I2C_Read... [10:20:06]Read from MH i2c: D1 01 00 9E 2B 00 9A [10:20:06]Write to MH i2c: 01 00 00 9F 2B CA [10:20:06]Write i2c OK [10:20:06]MH_I2C_Read... [10:20:07]OFD Sender: No OFD packet to send [10:20:07]*** Cut start [10:20:07]*** Partial cut [10:20:07]*** CUTSNS_PIN = 1 [10:20:07]*** CUTSNS_PIN = 0 [10:20:07]*** Brake cut motor [10:20:08]Read from MH i2c: 01 [10:20:08]MH_I2C_Read... [10:20:08]*** Stop cut motor [10:20:08]*** Cut end [10:20:08]Read from MH i2c: 01 07 00 [10:20:08]MH_I2C_Read... [10:20:08]Read from MH i2c: 01 07 00 9F 2B 00 00 00 00 00 FF 0F DF [10:20:08]process_action close_receipt done [10:20:08]requested_data is exist [10:20:08]produce_requested_data [10:20:08]requested_item fm.sn is exist - process it [10:20:08]wFMCommunicate request_size=4 [10:20:08]MH_SAM_APDU [10:20:08]CAPDU: 80 11 00 00 [10:20:08]Write to MH i2c: E2 08 00 A0 2B 80 11 00 00 00 00 00 00 45 [10:20:08]Write i2c OK [10:20:08]MH_I2C_Read... [10:20:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:08]Read from MH i2c: E2 [10:20:08]MH_I2C_Read... [10:20:08]Read from MH i2c: E2 17 00 [10:20:08]MH_I2C_Read... [10:20:08]Read from MH i2c: E2 17 00 A0 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 9B [10:20:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:20:08]wFMCommunicate OK [10:20:08]requested_item fd.num is exist - process it [10:20:08]SAM_PROTO_GetFieldsCounters [10:20:08]wFMCommunicate request_size=4 [10:20:08]MH_SAM_APDU [10:20:08]CAPDU: 80 13 00 00 [10:20:08]Write to MH i2c: E2 08 00 A1 2B 80 13 00 00 00 00 00 00 48 [10:20:08]Write i2c OK [10:20:08]MH_I2C_Read... [10:20:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:20:08]Read from MH i2c: E2 [10:20:08]MH_I2C_Read... [10:20:08]Read from MH i2c: E2 62 00 [10:20:08]MH_I2C_Read... [10:20:08]Read from MH i2c: E2 62 00 A1 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 56 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [10:20: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 56 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:20:08]wFMCommunicate OK [10:20:08]SAM_PROTO_GetFieldsCounters done [10:20:08]requested_item shift.num is exist - process it [10:20:08]requested_item shift.opened is exist - process it [10:20:08]req_shift_opened [10:20:08]FM_GetShiftState [10:20:08]SAM_PROTO_GetShiftState [10:20:08]wFMCommunicate request_size=4 [10:20:08]MH_SAM_APDU [10:20:08]CAPDU: 80 13 01 00 [10:20:08]Write to MH i2c: E2 08 00 A2 2B 80 13 01 00 00 00 00 00 4A [10:20:08]Write i2c OK [10:20:08]MH_I2C_Read... [10:20:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:08]Read from MH i2c: E2 [10:20:08]MH_I2C_Read... [10:20:08]Read from MH i2c: E2 0E 00 [10:20:08]MH_I2C_Read... [10:20:08]Read from MH i2c: E2 0E 00 A2 2B 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 23 [10:20:08]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:20:08]wFMCommunicate OK [10:20:08]SAM_PROTO_GetShiftState done [10:20:08]FM_GetShiftState done [10:20:08]req_shift_opened done [10:20:08]requested_item shift.open_date is exist - process it [10:20:08]req_shift_open_date [10:20:08]req_shift_open_date done [10:20:08]produce_requested_data done [10:20:08]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165206,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [10:20:08]process_action_free close_receipt [10:20:08]json_value_free [10:20:08]json_value_free done [10:20:08]process_json_proto returns [10:20:08]Send response to host [10:20:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165206,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [10:20:08]free response buf [10:20:08]execute_script done [10:20:08]execute_script returns [10:20:08]free content buf [10:20:08]Sock 9.Close socket [10:20:08]Sock 9.Thread stoped [10:20:12]OFD Sender: No OFD packet to send [10:20:17]OFD Sender: No OFD packet to send [10:20:22]OFD Sender: No OFD packet to send [10:20:27]OFD Sender: No OFD packet to send [10:20:32]OFD Sender: No OFD packet to send [10:20:37]OFD Sender: No OFD packet to send [10:20:42]OFD Sender: No OFD packet to send [10:20:47]OFD Sender: No OFD packet to send [10:20:52]OFD Sender: No OFD packet to send [10:20:57]OFD Sender: No OFD packet to send [10:21:02]OFD Sender: No OFD packet to send [10:21:07]OFD Sender: No OFD packet to send [10:21:12]OFD Sender: No OFD packet to send [10:21:17]OFD Sender: No OFD packet to send [10:21:18]accept exits with 7 [10:21:18]New connection [10:21:18]New thread 3066785124 created [10:21:18]Thread 3066928484 joined [10:21:18]Waiting for new connection... [10:21:18] Sock 7.Parse request [10:21:18]Sock 7.Check first char [10:21:18]Sock 7.First char is OK [10:21:18]request: POST /json_proto HTTP/1.0 [10:21:18]Method: POST [10:21:18]URL: /json_proto [10:21:18]Method is POST - this is cgi request [10:21:18]url: /json_proto [10:21:18]query_string will be loaded in cgi processing [10:21:18]execute_cgi json_proto POST (null) [10:21:18]execute_cgi path=json_proto method=POST [10:21:18]POST find Content-Length [10:21:18]Host: 172.17.56.4:8080 [10:21:18]Content-Length: 677 [10:21:18]Content-Type: application/json [10:21:18] [10:21:18]POST finish read [10:21:18]Found Content-Length = 677 [10:21:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459309", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:18]execute_script... [10:21: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)459309", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:18]POST & json_proto [10:21:18]process_json_proto [10:21:18]json parsed OK: [10:21:18]protocol is kg_v1.0 [10:21:18]action value=close_receipt [10:21:18]process_action close_receipt [10:21:18]cmd_close_receipt [10:21:18]MH_GetDate [10:21:18]Write to MH i2c: F0 00 00 A3 2B BD [10:21:18]Write i2c OK [10:21:18]MH_I2C_Read... [10:21:18]Read from MH i2c: F0 [10:21:18]MH_I2C_Read... [10:21:18]Read from MH i2c: F0 09 00 [10:21:18]MH_I2C_Read... [10:21:18]Read from MH i2c: F0 09 00 A3 2B 00 23 F8 94 66 C9 DC B2 64 96 [10:21:18]GetLastDocTimeStamp 1721038809 [10:21:18]current date 1721038883 [10:21:18]FM_GetShiftState [10:21:18]SAM_PROTO_GetShiftState [10:21:18]wFMCommunicate request_size=4 [10:21:18]MH_SAM_APDU [10:21:18]CAPDU: 80 13 01 00 [10:21:18]Write to MH i2c: E2 08 00 A4 2B 80 13 01 00 00 00 00 00 4C [10:21:18]Write i2c OK [10:21:18]MH_I2C_Read... [10:21:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:18]Read from MH i2c: E2 [10:21:18]MH_I2C_Read... [10:21:18]Read from MH i2c: E2 0E 00 [10:21:18]MH_I2C_Read... [10:21:18]Read from MH i2c: E2 0E 00 A4 2B 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 25 [10:21:18]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:21:18]wFMCommunicate OK [10:21:18]SAM_PROTO_GetShiftState done [10:21:18]FM_GetShiftState done [10:21:18]opened in 1721003876 [10:21:18]opened+sec_in_day 1721090276 [10:21:18]quantity*price = 40006 [10:21:18]sum+1 = 40007 [10:21:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 80 15.07.2024 10:21 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165207 ФПД: 129965334582956 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T102123&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165207&fm=129965334582956&tin=02508201610067®Number=0000000000090829&sum=40000 [10:21:19]StoreToDocumentArchive [10:21:19]shift 448 fd 165207 [10:21:19]save to /storage/0448/doc_00165207 [10:21:19]save last doc name /storage/0448/doc_00165207 to /storage/kkm_last_doc_name [10:21:19]save OK [10:21:19]Clear old archive folders... [10:21:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:21:19]tlvbuf is B6F52A90 [10:21:19]SAM_PROTO_ClearQueue [10:21:19]wFMCommunicate request_size=4 [10:21:19]MH_SAM_APDU [10:21:19]CAPDU: 80 09 00 00 [10:21:19]Write to MH i2c: E2 08 00 B1 2B 80 09 00 00 00 00 00 00 4E [10:21:19]Write i2c OK [10:21:19]MH_I2C_Read... [10:21:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:21:20]Read from MH i2c: E2 [10:21:20]MH_I2C_Read... [10:21:20]Read from MH i2c: E2 03 00 [10:21:20]MH_I2C_Read... [10:21:20]Read from MH i2c: E2 03 00 B1 2B 00 90 00 50 [10:21:20]RAPDU: 90 00 [10:21:20]wFMCommunicate OK [10:21:20]SAM_PROTO_ClearQueue done [10:21:20]KKMCreateOFDPacket [10:21:20]OFDProtocolAddRootSTLVToBuf [10:21:20]FM_MakeSignedData [10:21:20]FM_MakeSignedData [10:21:20]SAM_PROTO_SignData [10:21:20]wFMCommunicate request_size=4 [10:21:20]MH_SAM_APDU [10:21:20]CAPDU: 80 0D 01 02 [10:21:20]Write to MH i2c: E2 08 00 B2 2B 80 0D 01 02 00 00 00 00 56 [10:21:20]Write i2c OK [10:21:20]MH_I2C_Read... [10:21:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:21:20]Read from MH i2c: E2 [10:21:20]MH_I2C_Read... [10:21:20]Read from MH i2c: E2 03 00 [10:21:20]MH_I2C_Read... [10:21:20]Read from MH i2c: E2 03 00 B2 2B 00 90 00 51 [10:21:20]RAPDU: 90 00 [10:21:20]wFMCommunicate OK [10:21:20]wFMCommunicate request_size=255 [10:21:20]MH_SAM_APDU [10:21:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 23 F8 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 57 85 02 00 35 04 06 00 76 [10:21:20]Write to MH i2c: E2 02 01 B3 2B 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 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 23 F8 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 57 85 02 00 35 04 06 00 76 00 00 29 [10:21:20]Write i2c OK [10:21:20]MH_I2C_Read... [10:21:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:20]Read from MH i2c: E2 [10:21:20]MH_I2C_Read... [10:21:20]Read from MH i2c: E2 03 00 [10:21:20]MH_I2C_Read... [10:21:20]Read from MH i2c: E2 03 00 B3 2B 00 90 00 52 [10:21:20]RAPDU: 90 00 [10:21:20]wFMCommunicate OK [10:21:20]wFMCommunicate request_size=10 [10:21:20]MH_SAM_APDU [10:21:20]CAPDU: 80 0D 02 02 05 33 E9 99 D6 AC [10:21:20]Write to MH i2c: E2 0D 00 B4 2B 80 0D 02 02 05 00 33 E9 99 D6 AC 00 00 9A [10:21:20]Write i2c OK [10:21:20]MH_I2C_Read... [10:21:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:20]Read from MH i2c: E2 [10:21:20]MH_I2C_Read... [10:21:20]Read from MH i2c: E2 03 00 [10:21:20]MH_I2C_Read... [10:21:20]Read from MH i2c: E2 03 00 B4 2B 00 90 00 53 [10:21:20]RAPDU: 90 00 [10:21:20]wFMCommunicate OK [10:21:20]wFMCommunicate request_size=4 [10:21:20]MH_SAM_APDU [10:21:20]CAPDU: 80 0D 03 02 [10:21:20]Write to MH i2c: E2 08 00 B5 2B 80 0D 03 02 00 00 00 00 5B [10:21:20]Write i2c OK [10:21:20]MH_I2C_Read... [10:21:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:21:20]Read from MH i2c: E2 [10:21:20]MH_I2C_Read... [10:21:20]Read from MH i2c: E2 0B 00 [10:21:20]MH_I2C_Read... [10:21:20]Read from MH i2c: E2 0B 00 B5 2B 00 B5 4E E2 0B 76 AB B3 5B 90 00 7B [10:21:20]RAPDU: B5 4E E2 0B 76 AB B3 5B 90 00 [10:21:20]wFMCommunicate OK [10:21:20]SAM_PROTO_SignData done [10:21:20]FM_MakeSignedData done [10:21:20]CreateOFDProtocolMessage [10:21:20]wFMCommunicate request_size=4 [10:21:20]MH_SAM_APDU [10:21:20]CAPDU: 80 11 00 00 [10:21:20]Write to MH i2c: E2 08 00 B6 2B 80 11 00 00 00 00 00 00 5B [10:21:20]Write i2c OK [10:21:20]MH_I2C_Read... [10:21:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:20]Read from MH i2c: E2 [10:21:20]MH_I2C_Read... [10:21:20]Read from MH i2c: E2 17 00 [10:21:20]MH_I2C_Read... [10:21:20]Read from MH i2c: E2 17 00 B6 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B1 [10:21:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:21:20]wFMCommunicate OK [10:21:20]CreateOFDProtocolMessage done [10:21:20]OFDSenderStorePacket 165207 [10:21:20]StoreOFDPacket docnum=165207 [10:21:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 BC E6 07 01 22 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 23 F8 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 57 85 02 00 35 04 06 00 76 33 E9 99 D6 AC B5 4E E2 0B 76 AB B3 5B [10:21:20]CheckFolder [10:21:20]dirname=/storage/ofd_packets [10:21:20]CheckFolder done [10:21:20]ProducePacketName [10:21:20]name=ofd_packets/00165207 [10:21:20]NVStorageSaveData ofd_packets/00165207 [10:21:20]File name is /storage/ofd_packets/00165207 [10:21:20]Write 301 bytes [10:21:20]NVStorageSaveData done [10:21:20]OFDSenderStorePacket done [10:21:20]KKMCreateOFDPacket done [10:21:20]NVStorageSaveData kkm_last_timestamp [10:21:20]File name is /storage/kkm_last_timestamp [10:21:20]Write 4 bytes [10:21:20]NVStorageSaveData done [10:21:20]ExternCall_PrintAddStr [10:21:20]wPrintStart [10:21:20]Write to MH i2c: 01 00 00 B7 2B E2 [10:21:20]Write i2c OK [10:21:20]MH_I2C_Read... [10:21:20]Read from MH i2c: 01 [10:21:20]MH_I2C_Read... [10:21:20]Read from MH i2c: 01 07 00 [10:21:20]MH_I2C_Read... [10:21:20]Read from MH i2c: 01 07 00 B7 2B 00 00 00 00 00 FF 0F F7 [10:21:20]RasterBufferAndPrint [10:21:20]line Счет N : (1)459309 [10:21:20]line ИНН: 02508201610067 [10:21:20]line Контрольно-Кассовый Чек [10:21:20]line ПРОДАЖА [10:21:20]line ТРК (МРК, ГНК) : 12 [10:21:20]line Товар: 2710124130 [10:21:20]line Аи-92-К-5 [10:21:20]line 6.080 * 65.80 [10:21:20]line = 400.06 [10:21:20]line НДС 12% НСП 1% [10:21:20]line > о реализуемом товаре [10:21:20]line ОКРУГЛЕНИЕ: -0.06 [10:21:20]line ИТОГО: 400.00 [10:21:20]line Внесено: 400.00 [10:21:20]line СДАЧА: 0.00 [10:21:20]line НСП 1% : 3.54 [10:21:20]line НДС 12% : 42.48 [10:21:20]line Наличными: 400.00 [10:21:20]line Безнал.: 0.00 [10:21:20]line Место: АЗС № 72 "Партнер Нефть" [10:21:20]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:21:20]line СНО: Общий режим [10:21:20]line Чек 80 15.07.2024 10:21 [10:21:20]line Смена: 448 ФФД: 1.0 [10:21:20]line ЗНМ: 0300000160 [10:21:20]line РНМ: 0000000000090829 [10:21:20]line Версия ККМ: 001 [10:21:20]line ФМ: 0000000000874718 [10:21:20]line ФД: 165207 [10:21:20]line ФПД: 129965334582956 [10:21:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T102123&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165207&fm=129965334582956&tin=02508201610067®Number=0000000000090829&sum=40000 [10:21:20]written 0, free lines is 4095 [10:21:20]OFD Sender: Processing packet 165207 [packets to send 106, broken 105] [10:21:20]ProducePacketName [10:21:20]name=ofd_packets/00165207 [10:21:20]OFD Sender: To server: pG, [10:21:20]CommunicateWithHost lk.salyk.kg:30040 [10:21:20]ConnectInit lk.salyk.kg [10:21:20]Connected sock=10 [10:21: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 37 31 38 0F 01 00 00 BC E6 07 01 22 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 23 F8 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 57 85 02 00 35 04 06 00 76 33 E9 99 D6 AC B5 4E E2 0B 76 AB B3 5B [10:21:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 B0 E5 47 00 B6 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 57 85 02 00 F4 03 04 00 AE 9E 94 66 B6 04 01 00 00 91 1E 88 65 E9 CA 28 83 [10:21:21]CommunicateWithHost err = 0 [10:21:21]CheckOFDResponse [10:21:21]1017 (14) - 77093643461234 [10:21:21]1041 (16) - 0000000000874718 [10:21:21]1040 (4) - 165207 [10:21:21]1012 (4) - 15.07.2024 03:59 [10:21:21]1206 (1) - 0 [10:21:21]OFD Sender: Remove packet 165207 [10:21:21]ProducePacketName [10:21:21]name=ofd_packets/00165207 [10:21:21]NVStorageDeleteData [10:21:21]Write to MH i2c: 01 00 00 E1 2B 0C [10:21:21]Write i2c OK [10:21:21]MH_I2C_Read... [10:21:21]Read from MH i2c: 01 [10:21:21]MH_I2C_Read... [10:21:21]Read from MH i2c: 01 07 00 [10:21:21]MH_I2C_Read... [10:21:21]Read from MH i2c: 01 07 00 E1 2B 00 00 00 00 00 01 0D 21 [10:21:21]RasterBufferAndPrint [10:21:21]line [10:21:21]line [10:21:21]line [10:21:21]line [10:21:21]line [10:21:21]written 0, free lines is 3335 [10:21:21]MH_Cut [10:21:21]Write to MH i2c: D1 01 00 E8 2B 01 E5 [10:21:21]Write i2c OK [10:21:21]MH_I2C_Read... [10:21:21]Read from MH i2c: D1 [10:21:21]MH_I2C_Read... [10:21:21]Read from MH i2c: D1 01 00 [10:21:21]MH_I2C_Read... [10:21:21]Read from MH i2c: D1 01 00 E8 2B 00 E4 [10:21:21]Write to MH i2c: 01 00 00 E9 2B 14 [10:21:21]Write i2c OK [10:21:21]MH_I2C_Read... [10:21:21]OFD Sender: No OFD packet to send [10:21:21]*** Cut start [10:21:21]*** Partial cut [10:21:21]*** CUTSNS_PIN = 1 [10:21:22]*** CUTSNS_PIN = 0 [10:21:22]*** Brake cut motor [10:21:22]Read from MH i2c: 01 [10:21:22]MH_I2C_Read... [10:21:22]*** Stop cut motor [10:21:22]*** Cut end [10:21:22]Read from MH i2c: 01 07 00 [10:21:22]MH_I2C_Read... [10:21:22]Read from MH i2c: 01 07 00 E9 2B 00 00 00 00 00 FF 0F 29 [10:21:22]process_action close_receipt done [10:21:22]requested_data is exist [10:21:22]produce_requested_data [10:21:22]requested_item fm.sn is exist - process it [10:21:22]wFMCommunicate request_size=4 [10:21:22]MH_SAM_APDU [10:21:22]CAPDU: 80 11 00 00 [10:21:22]Write to MH i2c: E2 08 00 EA 2B 80 11 00 00 00 00 00 00 8F [10:21:22]Write i2c OK [10:21:22]MH_I2C_Read... [10:21:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:22]Read from MH i2c: E2 [10:21:22]MH_I2C_Read... [10:21:22]Read from MH i2c: E2 17 00 [10:21:22]MH_I2C_Read... [10:21:22]Read from MH i2c: E2 17 00 EA 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E5 [10:21:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:21:22]wFMCommunicate OK [10:21:22]requested_item fd.num is exist - process it [10:21:22]SAM_PROTO_GetFieldsCounters [10:21:22]wFMCommunicate request_size=4 [10:21:22]MH_SAM_APDU [10:21:22]CAPDU: 80 13 00 00 [10:21:22]Write to MH i2c: E2 08 00 EB 2B 80 13 00 00 00 00 00 00 92 [10:21:22]Write i2c OK [10:21:22]MH_I2C_Read... [10:21:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:21:22]Read from MH i2c: E2 [10:21:22]MH_I2C_Read... [10:21:22]Read from MH i2c: E2 62 00 [10:21:22]MH_I2C_Read... [10:21:22]Read from MH i2c: E2 62 00 EB 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 57 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [10:21: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 57 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:21:22]wFMCommunicate OK [10:21:22]SAM_PROTO_GetFieldsCounters done [10:21:22]requested_item shift.num is exist - process it [10:21:22]requested_item shift.opened is exist - process it [10:21:22]req_shift_opened [10:21:22]FM_GetShiftState [10:21:22]SAM_PROTO_GetShiftState [10:21:22]wFMCommunicate request_size=4 [10:21:22]MH_SAM_APDU [10:21:22]CAPDU: 80 13 01 00 [10:21:22]Write to MH i2c: E2 08 00 EC 2B 80 13 01 00 00 00 00 00 94 [10:21:22]Write i2c OK [10:21:22]MH_I2C_Read... [10:21:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:22]Read from MH i2c: E2 [10:21:22]MH_I2C_Read... [10:21:22]Read from MH i2c: E2 0E 00 [10:21:22]MH_I2C_Read... [10:21:22]Read from MH i2c: E2 0E 00 EC 2B 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 6D [10:21:22]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:21:22]wFMCommunicate OK [10:21:22]SAM_PROTO_GetShiftState done [10:21:22]FM_GetShiftState done [10:21:22]req_shift_opened done [10:21:22]requested_item shift.open_date is exist - process it [10:21:22]req_shift_open_date [10:21:22]req_shift_open_date done [10:21:22]produce_requested_data done [10:21:22]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165207,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [10:21:22]process_action_free close_receipt [10:21:22]json_value_free [10:21:22]json_value_free done [10:21:22]process_json_proto returns [10:21:22]Send response to host [10:21:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165207,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [10:21:22]free response buf [10:21:22]execute_script done [10:21:22]execute_script returns [10:21:22]free content buf [10:21:22]Sock 7.Close socket [10:21:22]Sock 7.Thread stoped [10:21:26]OFD Sender: No OFD packet to send [10:21:31]OFD Sender: No OFD packet to send [10:21:36]OFD Sender: No OFD packet to send [10:21:41]OFD Sender: No OFD packet to send [10:21:46]OFD Sender: No OFD packet to send [10:21:51]OFD Sender: No OFD packet to send [10:21:56]OFD Sender: No OFD packet to send [10:22:01]OFD Sender: No OFD packet to send [10:22:06]OFD Sender: No OFD packet to send [10:22:11]OFD Sender: No OFD packet to send [10:22:16]OFD Sender: No OFD packet to send [10:22:21]OFD Sender: No OFD packet to send [10:22:26]OFD Sender: No OFD packet to send [10:22:31]OFD Sender: No OFD packet to send [10:22:36]OFD Sender: No OFD packet to send [10:22:41]OFD Sender: No OFD packet to send [10:22:46]OFD Sender: No OFD packet to send [10:22:51]OFD Sender: No OFD packet to send [10:22:56]OFD Sender: No OFD packet to send [10:23:01]accept exits with 9 [10:23:01]New connection [10:23:01]New thread 3066928484 created [10:23:01]Thread 3066785124 joined [10:23:01]Waiting for new connection... [10:23:01] Sock 9.Parse request [10:23:01]Sock 9.Check first char [10:23:01]Sock 9.First char is OK [10:23:01]request: POST /json_proto HTTP/1.0 [10:23:01]Method: POST [10:23:01]URL: /json_proto [10:23:01]Method is POST - this is cgi request [10:23:01]url: /json_proto [10:23:01]query_string will be loaded in cgi processing [10:23:01]execute_cgi json_proto POST (null) [10:23:01]execute_cgi path=json_proto method=POST [10:23:01]POST find Content-Length [10:23:01]Host: 172.17.56.4:8080 [10:23:01]Content-Length: 682 [10:23:01]Content-Type: application/json [10:23:01] [10:23:01]POST finish read [10:23:01]Found Content-Length = 682 [10:23:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459310", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:01]execute_script... [10:23:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459310", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:01]POST & json_proto [10:23:01]process_json_proto [10:23:01]json parsed OK: [10:23:01]protocol is kg_v1.0 [10:23:01]action value=close_receipt [10:23:01]process_action close_receipt [10:23:01]cmd_close_receipt [10:23:01]MH_GetDate [10:23:01]Write to MH i2c: F0 00 00 ED 2B 07 [10:23:01]Write i2c OK [10:23:01]MH_I2C_Read... [10:23:01]Read from MH i2c: F0 [10:23:01]MH_I2C_Read... [10:23:01]Read from MH i2c: F0 09 00 [10:23:01]MH_I2C_Read... [10:23:01]Read from MH i2c: F0 09 00 ED 2B 00 89 F8 94 66 C9 DC B2 64 46 [10:23:01]GetLastDocTimeStamp 1721038883 [10:23:01]current date 1721038985 [10:23:01]FM_GetShiftState [10:23:01]SAM_PROTO_GetShiftState [10:23:01]wFMCommunicate request_size=4 [10:23:01]MH_SAM_APDU [10:23:01]CAPDU: 80 13 01 00 [10:23:01]Write to MH i2c: E2 08 00 EE 2B 80 13 01 00 00 00 00 00 96 [10:23:01]Write i2c OK [10:23:01]MH_I2C_Read... [10:23:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:01]Read from MH i2c: E2 [10:23:01]MH_I2C_Read... [10:23:01]Read from MH i2c: E2 0E 00 [10:23:01]MH_I2C_Read... [10:23:01]Read from MH i2c: E2 0E 00 EE 2B 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 6F [10:23:01]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:23:01]wFMCommunicate OK [10:23:01]SAM_PROTO_GetShiftState done [10:23:01]FM_GetShiftState done [10:23:01]opened in 1721003876 [10:23:01]opened+sec_in_day 1721090276 [10:23:01]quantity*price = 100016 [10:23:01]sum+1 = 100017 [10:23:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 81 15.07.2024 10:23 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165208 ФПД: 88308794098982 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T102305&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165208&fm=88308794098982&tin=02508201610067®Number=0000000000090829&sum=100000 [10:23:02]StoreToDocumentArchive [10:23:02]shift 448 fd 165208 [10:23:02]save to /storage/0448/doc_00165208 [10:23:02]save last doc name /storage/0448/doc_00165208 to /storage/kkm_last_doc_name [10:23:02]save OK [10:23:02]Clear old archive folders... [10:23:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:23:02]tlvbuf is B6ED4860 [10:23:02]SAM_PROTO_ClearQueue [10:23:02]wFMCommunicate request_size=4 [10:23:02]MH_SAM_APDU [10:23:02]CAPDU: 80 09 00 00 [10:23:02]Write to MH i2c: E2 08 00 FB 2B 80 09 00 00 00 00 00 00 98 [10:23:02]Write i2c OK [10:23:02]MH_I2C_Read... [10:23:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:23:02]Read from MH i2c: E2 [10:23:02]MH_I2C_Read... [10:23:02]Read from MH i2c: E2 03 00 [10:23:02]MH_I2C_Read... [10:23:02]Read from MH i2c: E2 03 00 FB 2B 00 90 00 9A [10:23:02]RAPDU: 90 00 [10:23:02]wFMCommunicate OK [10:23:02]SAM_PROTO_ClearQueue done [10:23:02]KKMCreateOFDPacket [10:23:02]OFDProtocolAddRootSTLVToBuf [10:23:02]FM_MakeSignedData [10:23:02]FM_MakeSignedData [10:23:02]SAM_PROTO_SignData [10:23:02]wFMCommunicate request_size=4 [10:23:02]MH_SAM_APDU [10:23:02]CAPDU: 80 0D 01 02 [10:23:02]Write to MH i2c: E2 08 00 FC 2B 80 0D 01 02 00 00 00 00 A0 [10:23:02]Write i2c OK [10:23:02]MH_I2C_Read... [10:23:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:23:02]Read from MH i2c: E2 [10:23:02]MH_I2C_Read... [10:23:02]Read from MH i2c: E2 03 00 [10:23:02]MH_I2C_Read... [10:23:02]Read from MH i2c: E2 03 00 FC 2B 00 90 00 9B [10:23:02]RAPDU: 90 00 [10:23:02]wFMCommunicate OK [10:23:02]wFMCommunicate request_size=255 [10:23:02]MH_SAM_APDU [10:23:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 89 F8 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 58 85 02 00 35 04 06 00 50 [10:23:02]Write to MH i2c: E2 02 01 FD 2B 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 89 F8 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 58 85 02 00 35 04 06 00 50 00 00 77 [10:23:02]Write i2c OK [10:23:02]MH_I2C_Read... [10:23:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:02]Read from MH i2c: E2 [10:23:02]MH_I2C_Read... [10:23:02]Read from MH i2c: E2 03 00 [10:23:02]MH_I2C_Read... [10:23:02]Read from MH i2c: E2 03 00 FD 2B 00 90 00 9C [10:23:02]RAPDU: 90 00 [10:23:02]wFMCommunicate OK [10:23:02]wFMCommunicate request_size=10 [10:23:02]MH_SAM_APDU [10:23:02]CAPDU: 80 0D 02 02 05 50 FE 4D 85 26 [10:23:02]Write to MH i2c: E2 0D 00 FE 2B 80 0D 02 02 05 00 50 FE 4D 85 26 00 00 F3 [10:23:02]Write i2c OK [10:23:02]MH_I2C_Read... [10:23:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:02]Read from MH i2c: E2 [10:23:02]MH_I2C_Read... [10:23:02]Read from MH i2c: E2 03 00 [10:23:02]MH_I2C_Read... [10:23:02]Read from MH i2c: E2 03 00 FE 2B 00 90 00 9D [10:23:02]RAPDU: 90 00 [10:23:02]wFMCommunicate OK [10:23:02]wFMCommunicate request_size=4 [10:23:02]MH_SAM_APDU [10:23:02]CAPDU: 80 0D 03 02 [10:23:02]Write to MH i2c: E2 08 00 FF 2B 80 0D 03 02 00 00 00 00 A5 [10:23:02]Write i2c OK [10:23:02]MH_I2C_Read... [10:23:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:23:02]Read from MH i2c: E2 [10:23:02]MH_I2C_Read... [10:23:02]Read from MH i2c: E2 0B 00 [10:23:02]MH_I2C_Read... [10:23:02]Read from MH i2c: E2 0B 00 FF 2B 00 C3 28 70 11 DE 4A 28 00 90 00 62 [10:23:02]RAPDU: C3 28 70 11 DE 4A 28 00 90 00 [10:23:02]wFMCommunicate OK [10:23:02]SAM_PROTO_SignData done [10:23:02]FM_MakeSignedData done [10:23:02]CreateOFDProtocolMessage [10:23:02]wFMCommunicate request_size=4 [10:23:02]MH_SAM_APDU [10:23:02]CAPDU: 80 11 00 00 [10:23:02]Write to MH i2c: E2 08 00 00 2C 80 11 00 00 00 00 00 00 A6 [10:23:02]Write i2c OK [10:23:02]MH_I2C_Read... [10:23:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:02]Read from MH i2c: E2 [10:23:02]MH_I2C_Read... [10:23:02]Read from MH i2c: E2 17 00 [10:23:02]MH_I2C_Read... [10:23:02]Read from MH i2c: E2 17 00 00 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FC [10:23:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:23:02]wFMCommunicate OK [10:23:02]CreateOFDProtocolMessage done [10:23:02]OFDSenderStorePacket 165208 [10:23:02]StoreOFDPacket docnum=165208 [10:23:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C6 05 07 01 BF 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 89 F8 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 58 85 02 00 35 04 06 00 50 50 FE 4D 85 26 C3 28 70 11 DE 4A 28 00 [10:23:02]CheckFolder [10:23:02]dirname=/storage/ofd_packets [10:23:02]CheckFolder done [10:23:02]ProducePacketName [10:23:02]name=ofd_packets/00165208 [10:23:02]NVStorageSaveData ofd_packets/00165208 [10:23:02]File name is /storage/ofd_packets/00165208 [10:23:02]Write 301 bytes [10:23:02]NVStorageSaveData done [10:23:02]OFDSenderStorePacket done [10:23:02]KKMCreateOFDPacket done [10:23:02]NVStorageSaveData kkm_last_timestamp [10:23:02]File name is /storage/kkm_last_timestamp [10:23:02]Write 4 bytes [10:23:02]NVStorageSaveData done [10:23:02]ExternCall_PrintAddStr [10:23:02]wPrintStart [10:23:02]Write to MH i2c: 01 00 00 01 2C 2D [10:23:02]Write i2c OK [10:23:02]MH_I2C_Read... [10:23:02]Read from MH i2c: 01 [10:23:02]MH_I2C_Read... [10:23:02]Read from MH i2c: 01 07 00 [10:23:02]MH_I2C_Read... [10:23:02]Read from MH i2c: 01 07 00 01 2C 00 00 00 00 00 FF 0F 42 [10:23:02]RasterBufferAndPrint [10:23:02]line Счет N : (1)459310 [10:23:02]line ИНН: 02508201610067 [10:23:02]line Контрольно-Кассовый Чек [10:23:02]line ПРОДАЖА [10:23:02]line ТРК (МРК, ГНК) : 22 [10:23:02]line Товар: 2710124130 [10:23:02]line Аи-92-К-5 [10:23:02]line 15.200 * 65.80 [10:23:02]line = 1000.16 [10:23:02]line НДС 12% НСП 1% [10:23:02]line > о реализуемом товаре [10:23:02]line ОКРУГЛЕНИЕ: -0.16 [10:23:02]line ИТОГО: 1000.00 [10:23:02]line Внесено: 1000.00 [10:23:02]line СДАЧА: 0.00 [10:23:02]line НСП 1% : 8.85 [10:23:02]line НДС 12% : 106.21 [10:23:02]line Наличными: 1000.00 [10:23:02]line Безнал.: 0.00 [10:23:02]line Место: АЗС № 72 "Партнер Нефть" [10:23:02]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:23:02]line СНО: Общий режим [10:23:02]line Чек 81 15.07.2024 10:23 [10:23:02]line Смена: 448 ФФД: 1.0 [10:23:02]line ЗНМ: 0300000160 [10:23:02]line РНМ: 0000000000090829 [10:23:02]line Версия ККМ: 001 [10:23:02]line ФМ: 0000000000874718 [10:23:02]line ФД: 165208 [10:23:02]line ФПД: 88308794098982 [10:23:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T102305&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165208&fm=88308794098982&tin=02508201610067®Number=0000000000090829&sum=100000 [10:23:03]OFD Sender: Processing packet 165208 [packets to send 106, broken 105] [10:23:03]ProducePacketName [10:23:03]name=ofd_packets/00165208 [10:23:03]OFD Sender: To server: pG, [10:23:03]CommunicateWithHost lk.salyk.kg:30040 [10:23:03]ConnectInit lk.salyk.kg [10:23:03]written 0, free lines is 4095 [10:23:03]Connected sock=10 [10:23:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C6 05 07 01 BF 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 89 F8 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 58 85 02 00 35 04 06 00 50 50 FE 4D 85 26 C3 28 70 11 DE 4A 28 00 [10:23:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 B3 CE 47 00 9F 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 37 31 38 10 04 04 00 58 85 02 00 F4 03 04 00 14 9F 94 66 B6 04 01 00 00 17 93 50 DD FB 94 03 71 [10:23:03]CommunicateWithHost err = 0 [10:23:03]CheckOFDResponse [10:23:03]1017 (14) - 77093643461234 [10:23:03]1041 (16) - 0000000000874718 [10:23:03]1040 (4) - 165208 [10:23:03]1012 (4) - 15.07.2024 04:01 [10:23:03]1206 (1) - 0 [10:23:03]OFD Sender: Remove packet 165208 [10:23:03]ProducePacketName [10:23:03]name=ofd_packets/00165208 [10:23:03]NVStorageDeleteData [10:23:03]Write to MH i2c: 01 00 00 2B 2C 57 [10:23:03]Write i2c OK [10:23:03]MH_I2C_Read... [10:23:03]Read from MH i2c: 01 [10:23:03]MH_I2C_Read... [10:23:03]Read from MH i2c: 01 07 00 [10:23:03]MH_I2C_Read... [10:23:03]Read from MH i2c: 01 07 00 2B 2C 00 00 00 00 00 F2 0C 5C [10:23:03]RasterBufferAndPrint [10:23:03]line [10:23:03]line [10:23:03]line [10:23:03]line [10:23:03]line [10:23:03]written 0, free lines is 3322 [10:23:03]MH_Cut [10:23:03]Write to MH i2c: D1 01 00 32 2C 01 30 [10:23:03]Write i2c OK [10:23:03]MH_I2C_Read... [10:23:03]Read from MH i2c: D1 [10:23:03]MH_I2C_Read... [10:23:03]Read from MH i2c: D1 01 00 [10:23:03]MH_I2C_Read... [10:23:03]Read from MH i2c: D1 01 00 32 2C 00 2F [10:23:03]Write to MH i2c: 01 00 00 33 2C 5F [10:23:03]Write i2c OK [10:23:03]MH_I2C_Read... [10:23:03]OFD Sender: No OFD packet to send [10:23:04]*** Cut start [10:23:04]*** Partial cut [10:23:04]*** CUTSNS_PIN = 1 [10:23:04]*** CUTSNS_PIN = 0 [10:23:04]*** Brake cut motor [10:23:04]Read from MH i2c: 01 [10:23:04]MH_I2C_Read... [10:23:04]*** Stop cut motor [10:23:04]*** Cut end [10:23:04]Read from MH i2c: 01 07 00 [10:23:04]MH_I2C_Read... [10:23:04]Read from MH i2c: 01 07 00 33 2C 00 00 00 00 00 FF 0F 74 [10:23:04]process_action close_receipt done [10:23:04]requested_data is exist [10:23:04]produce_requested_data [10:23:04]requested_item fm.sn is exist - process it [10:23:04]wFMCommunicate request_size=4 [10:23:04]MH_SAM_APDU [10:23:04]CAPDU: 80 11 00 00 [10:23:04]Write to MH i2c: E2 08 00 34 2C 80 11 00 00 00 00 00 00 DA [10:23:04]Write i2c OK [10:23:04]MH_I2C_Read... [10:23:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:04]Read from MH i2c: E2 [10:23:04]MH_I2C_Read... [10:23:04]Read from MH i2c: E2 17 00 [10:23:04]MH_I2C_Read... [10:23:04]Read from MH i2c: E2 17 00 34 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 30 [10:23:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:23:04]wFMCommunicate OK [10:23:04]requested_item fd.num is exist - process it [10:23:04]SAM_PROTO_GetFieldsCounters [10:23:04]wFMCommunicate request_size=4 [10:23:04]MH_SAM_APDU [10:23:04]CAPDU: 80 13 00 00 [10:23:04]Write to MH i2c: E2 08 00 35 2C 80 13 00 00 00 00 00 00 DD [10:23:04]Write i2c OK [10:23:04]MH_I2C_Read... [10:23:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:23:05]Read from MH i2c: E2 [10:23:05]MH_I2C_Read... [10:23:05]Read from MH i2c: E2 62 00 [10:23:05]MH_I2C_Read... [10:23:05]Read from MH i2c: E2 62 00 35 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 58 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [10:23:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 58 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:23:05]wFMCommunicate OK [10:23:05]SAM_PROTO_GetFieldsCounters done [10:23:05]requested_item shift.num is exist - process it [10:23:05]requested_item shift.opened is exist - process it [10:23:05]req_shift_opened [10:23:05]FM_GetShiftState [10:23:05]SAM_PROTO_GetShiftState [10:23:05]wFMCommunicate request_size=4 [10:23:05]MH_SAM_APDU [10:23:05]CAPDU: 80 13 01 00 [10:23:05]Write to MH i2c: E2 08 00 36 2C 80 13 01 00 00 00 00 00 DF [10:23:05]Write i2c OK [10:23:05]MH_I2C_Read... [10:23:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:05]Read from MH i2c: E2 [10:23:05]MH_I2C_Read... [10:23:05]Read from MH i2c: E2 0E 00 [10:23:05]MH_I2C_Read... [10:23:05]Read from MH i2c: E2 0E 00 36 2C 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 B8 [10:23:05]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:23:05]wFMCommunicate OK [10:23:05]SAM_PROTO_GetShiftState done [10:23:05]FM_GetShiftState done [10:23:05]req_shift_opened done [10:23:05]requested_item shift.open_date is exist - process it [10:23:05]req_shift_open_date [10:23:05]req_shift_open_date done [10:23:05]produce_requested_data done [10:23:05]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165208,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [10:23:05]process_action_free close_receipt [10:23:05]json_value_free [10:23:05]json_value_free done [10:23:05]process_json_proto returns [10:23:05]Send response to host [10:23:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165208,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [10:23:05]free response buf [10:23:05]execute_script done [10:23:05]execute_script returns [10:23:05]free content buf [10:23:05]Sock 9.Close socket [10:23:05]Sock 9.Thread stoped [10:23:08]OFD Sender: No OFD packet to send [10:23:13]OFD Sender: No OFD packet to send [10:23:18]OFD Sender: No OFD packet to send [10:23:23]OFD Sender: No OFD packet to send [10:23:28]OFD Sender: No OFD packet to send [10:23:33]OFD Sender: No OFD packet to send [10:23:38]OFD Sender: No OFD packet to send [10:23:43]OFD Sender: No OFD packet to send [10:23:48]OFD Sender: No OFD packet to send [10:23:53]OFD Sender: No OFD packet to send [10:23:58]OFD Sender: No OFD packet to send [10:24:03]OFD Sender: No OFD packet to send [10:24:08]OFD Sender: No OFD packet to send [10:24:13]OFD Sender: No OFD packet to send [10:24:19]OFD Sender: No OFD packet to send [10:24:24]OFD Sender: No OFD packet to send [10:24:29]OFD Sender: No OFD packet to send [10:24:34]OFD Sender: No OFD packet to send [10:24:39]OFD Sender: No OFD packet to send [10:24:44]OFD Sender: No OFD packet to send [10:24:49]OFD Sender: No OFD packet to send [10:24:54]OFD Sender: No OFD packet to send [10:24:59]OFD Sender: No OFD packet to send [10:25:04]OFD Sender: No OFD packet to send [10:25:09]OFD Sender: No OFD packet to send [10:25:14]OFD Sender: No OFD packet to send [10:25:19]OFD Sender: No OFD packet to send [10:25:24]OFD Sender: No OFD packet to send [10:25:29]OFD Sender: No OFD packet to send [10:25:34]OFD Sender: No OFD packet to send [10:25:39]OFD Sender: No OFD packet to send [10:25:44]OFD Sender: No OFD packet to send [10:25:49]OFD Sender: No OFD packet to send [10:25:54]OFD Sender: No OFD packet to send [10:25:59]OFD Sender: No OFD packet to send [10:26:04]OFD Sender: No OFD packet to send [10:26:09]OFD Sender: No OFD packet to send [10:26:14]OFD Sender: No OFD packet to send [10:26:19]OFD Sender: No OFD packet to send [10:26:24]OFD Sender: No OFD packet to send [10:26:29]OFD Sender: No OFD packet to send [10:26:34]OFD Sender: No OFD packet to send [10:26:39]OFD Sender: No OFD packet to send [10:26:40]accept exits with 7 [10:26:40]New connection [10:26:40]New thread 3066785124 created [10:26:40]Thread 3066928484 joined [10:26:40]Waiting for new connection... [10:26:40] Sock 7.Parse request [10:26:40]Sock 7.Check first char [10:26:40]Sock 7.First char is OK [10:26:40]request: POST /json_proto HTTP/1.0 [10:26:40]Method: POST [10:26:40]URL: /json_proto [10:26:40]Method is POST - this is cgi request [10:26:40]url: /json_proto [10:26:40]query_string will be loaded in cgi processing [10:26:40]execute_cgi json_proto POST (null) [10:26:40]execute_cgi path=json_proto method=POST [10:26:40]POST find Content-Length [10:26:40]Host: 172.17.56.4:8080 [10:26:40]Content-Length: 678 [10:26:40]Content-Type: application/json [10:26:40] [10:26:40]POST finish read [10:26:40]Found Content-Length = 678 [10:26:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459312", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.040, "sum" : 660.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:40]execute_script... [10:26:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459312", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.040, "sum" : 660.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:40]POST & json_proto [10:26:40]process_json_proto [10:26:40]json parsed OK: [10:26:40]protocol is kg_v1.0 [10:26:40]action value=close_receipt [10:26:40]process_action close_receipt [10:26:40]cmd_close_receipt [10:26:40]MH_GetDate [10:26:40]Write to MH i2c: F0 00 00 37 2C 52 [10:26:40]Write i2c OK [10:26:40]MH_I2C_Read... [10:26:40]Read from MH i2c: F0 [10:26:40]MH_I2C_Read... [10:26:40]Read from MH i2c: F0 09 00 [10:26:40]MH_I2C_Read... [10:26:40]Read from MH i2c: F0 09 00 37 2C 00 65 F9 94 66 C9 DC B2 64 6E [10:26:40]GetLastDocTimeStamp 1721038985 [10:26:40]current date 1721039205 [10:26:40]FM_GetShiftState [10:26:40]SAM_PROTO_GetShiftState [10:26:40]wFMCommunicate request_size=4 [10:26:40]MH_SAM_APDU [10:26:40]CAPDU: 80 13 01 00 [10:26:40]Write to MH i2c: E2 08 00 38 2C 80 13 01 00 00 00 00 00 E1 [10:26:40]Write i2c OK [10:26:40]MH_I2C_Read... [10:26:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:40]Read from MH i2c: E2 [10:26:40]MH_I2C_Read... [10:26:40]Read from MH i2c: E2 0E 00 [10:26:40]MH_I2C_Read... [10:26:40]Read from MH i2c: E2 0E 00 38 2C 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 BA [10:26:40]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:26:40]wFMCommunicate OK [10:26:40]SAM_PROTO_GetShiftState done [10:26:40]FM_GetShiftState done [10:26:40]opened in 1721003876 [10:26:40]opened+sec_in_day 1721090276 [10:26:40]quantity*price = 66063 [10:26:40]sum+1 = 66064 [10:26:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 660.00 Внесено: 660.00 СДАЧА: 0.00 НСП 1% : 5.85 НДС 12% : 70.15 Наличными: 660.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 82 15.07.2024 10:26 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165209 ФПД: 63690560638176 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T102645&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165209&fm=63690560638176&tin=02508201610067®Number=0000000000090829&sum=66000 [10:26:42]StoreToDocumentArchive [10:26:42]shift 448 fd 165209 [10:26:42]save to /storage/0448/doc_00165209 [10:26:42]save last doc name /storage/0448/doc_00165209 to /storage/kkm_last_doc_name [10:26:42]save OK [10:26:42]Clear old archive folders... [10:26:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:26:42]tlvbuf is 013FA4A0 [10:26:42]SAM_PROTO_ClearQueue [10:26:42]wFMCommunicate request_size=4 [10:26:42]MH_SAM_APDU [10:26:42]CAPDU: 80 09 00 00 [10:26:42]Write to MH i2c: E2 08 00 45 2C 80 09 00 00 00 00 00 00 E3 [10:26:42]Write i2c OK [10:26:42]MH_I2C_Read... [10:26:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:26:42]Read from MH i2c: E2 [10:26:42]MH_I2C_Read... [10:26:42]Read from MH i2c: E2 03 00 [10:26:42]MH_I2C_Read... [10:26:42]Read from MH i2c: E2 03 00 45 2C 00 90 00 E5 [10:26:42]RAPDU: 90 00 [10:26:42]wFMCommunicate OK [10:26:42]SAM_PROTO_ClearQueue done [10:26:42]KKMCreateOFDPacket [10:26:42]OFDProtocolAddRootSTLVToBuf [10:26:42]FM_MakeSignedData [10:26:42]FM_MakeSignedData [10:26:42]SAM_PROTO_SignData [10:26:42]wFMCommunicate request_size=4 [10:26:42]MH_SAM_APDU [10:26:42]CAPDU: 80 0D 01 02 [10:26:42]Write to MH i2c: E2 08 00 46 2C 80 0D 01 02 00 00 00 00 EB [10:26:42]Write i2c OK [10:26:42]MH_I2C_Read... [10:26:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:26:42]Read from MH i2c: E2 [10:26:42]MH_I2C_Read... [10:26:42]Read from MH i2c: E2 03 00 [10:26:42]MH_I2C_Read... [10:26:42]Read from MH i2c: E2 03 00 46 2C 00 90 00 E6 [10:26:42]RAPDU: 90 00 [10:26:42]wFMCommunicate OK [10:26:42]wFMCommunicate request_size=255 [10:26:42]MH_SAM_APDU [10:26: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 38 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 65 F9 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 59 85 02 00 35 04 06 00 39 [10:26:42]Write to MH i2c: E2 02 01 47 2C 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 38 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 65 F9 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 59 85 02 00 35 04 06 00 39 00 00 2E [10:26:42]Write i2c OK [10:26:42]MH_I2C_Read... [10:26:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:42]Read from MH i2c: E2 [10:26:42]MH_I2C_Read... [10:26:42]Read from MH i2c: E2 03 00 [10:26:42]MH_I2C_Read... [10:26:42]Read from MH i2c: E2 03 00 47 2C 00 90 00 E7 [10:26:42]RAPDU: 90 00 [10:26:42]wFMCommunicate OK [10:26:42]wFMCommunicate request_size=10 [10:26:42]MH_SAM_APDU [10:26:42]CAPDU: 80 0D 02 02 05 ED 1D 3E 0C E0 [10:26:42]Write to MH i2c: E2 0D 00 48 2C 80 0D 02 02 05 00 ED 1D 3E 0C E0 00 00 2C [10:26:42]Write i2c OK [10:26:42]MH_I2C_Read... [10:26:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:42]Read from MH i2c: E2 [10:26:42]MH_I2C_Read... [10:26:42]Read from MH i2c: E2 03 00 [10:26:42]MH_I2C_Read... [10:26:42]Read from MH i2c: E2 03 00 48 2C 00 90 00 E8 [10:26:42]RAPDU: 90 00 [10:26:42]wFMCommunicate OK [10:26:42]wFMCommunicate request_size=4 [10:26:42]MH_SAM_APDU [10:26:42]CAPDU: 80 0D 03 02 [10:26:42]Write to MH i2c: E2 08 00 49 2C 80 0D 03 02 00 00 00 00 F0 [10:26:42]Write i2c OK [10:26:42]MH_I2C_Read... [10:26:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:26:42]Read from MH i2c: E2 [10:26:42]MH_I2C_Read... [10:26:42]Read from MH i2c: E2 0B 00 [10:26:42]MH_I2C_Read... [10:26:42]Read from MH i2c: E2 0B 00 49 2C 00 57 69 A9 D1 E4 83 2F 64 90 00 25 [10:26:42]RAPDU: 57 69 A9 D1 E4 83 2F 64 90 00 [10:26:42]wFMCommunicate OK [10:26:42]SAM_PROTO_SignData done [10:26:42]FM_MakeSignedData done [10:26:42]CreateOFDProtocolMessage [10:26:42]wFMCommunicate request_size=4 [10:26:42]MH_SAM_APDU [10:26:42]CAPDU: 80 11 00 00 [10:26:42]Write to MH i2c: E2 08 00 4A 2C 80 11 00 00 00 00 00 00 F0 [10:26:42]Write i2c OK [10:26:42]MH_I2C_Read... [10:26:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:42]Read from MH i2c: E2 [10:26:42]MH_I2C_Read... [10:26:42]Read from MH i2c: E2 17 00 [10:26:42]MH_I2C_Read... [10:26:42]Read from MH i2c: E2 17 00 4A 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 46 [10:26:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:26:42]wFMCommunicate OK [10:26:42]CreateOFDProtocolMessage done [10:26:42]OFDSenderStorePacket 165209 [10:26:42]StoreOFDPacket docnum=165209 [10:26:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 32 F2 07 01 69 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 38 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 65 F9 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 59 85 02 00 35 04 06 00 39 ED 1D 3E 0C E0 57 69 A9 D1 E4 83 2F 64 [10:26:42]CheckFolder [10:26:42]dirname=/storage/ofd_packets [10:26:42]CheckFolder done [10:26:42]ProducePacketName [10:26:42]name=ofd_packets/00165209 [10:26:42]NVStorageSaveData ofd_packets/00165209 [10:26:42]File name is /storage/ofd_packets/00165209 [10:26:42]Write 301 bytes [10:26:42]NVStorageSaveData done [10:26:42]OFDSenderStorePacket done [10:26:42]KKMCreateOFDPacket done [10:26:42]NVStorageSaveData kkm_last_timestamp [10:26:42]File name is /storage/kkm_last_timestamp [10:26:42]Write 4 bytes [10:26:42]NVStorageSaveData done [10:26:42]ExternCall_PrintAddStr [10:26:42]wPrintStart [10:26:42]Write to MH i2c: 01 00 00 4B 2C 77 [10:26:42]Write i2c OK [10:26:42]MH_I2C_Read... [10:26:42]Read from MH i2c: 01 [10:26:42]MH_I2C_Read... [10:26:42]Read from MH i2c: 01 07 00 [10:26:42]MH_I2C_Read... [10:26:42]Read from MH i2c: 01 07 00 4B 2C 00 00 00 00 00 FF 0F 8C [10:26:42]RasterBufferAndPrint [10:26:42]line Счет N : (1)459312 [10:26:42]line ИНН: 02508201610067 [10:26:42]line Контрольно-Кассовый Чек [10:26:42]line ПРОДАЖА [10:26:42]line ТРК (МРК, ГНК) : 12 [10:26:42]line Товар: 2710124130 [10:26:42]line Аи-92-К-5 [10:26:42]line 10.040 * 65.80 [10:26:42]line = 660.63 [10:26:42]line НДС 12% НСП 1% [10:26:42]line > о реализуемом товаре [10:26:42]line ОКРУГЛЕНИЕ: -0.63 [10:26:42]line ИТОГО: 660.00 [10:26:42]line Внесено: 660.00 [10:26:42]line СДАЧА: 0.00 [10:26:42]line НСП 1% : 5.85 [10:26:42]line НДС 12% : 70.15 [10:26:42]line Наличными: 660.00 [10:26:42]line Безнал.: 0.00 [10:26:42]line Место: АЗС № 72 "Партнер Нефть" [10:26:42]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:26:42]line СНО: Общий режим [10:26:42]line Чек 82 15.07.2024 10:26 [10:26:42]line Смена: 448 ФФД: 1.0 [10:26:42]line ЗНМ: 0300000160 [10:26:42]line РНМ: 0000000000090829 [10:26:42]line Версия ККМ: 001 [10:26:42]line ФМ: 0000000000874718 [10:26:42]line ФД: 165209 [10:26:42]line ФПД: 63690560638176 [10:26:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T102645&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165209&fm=63690560638176&tin=02508201610067®Number=0000000000090829&sum=66000 [10:26:42]written 0, free lines is 4095 [10:26:42]OFD Sender: Processing packet 165209 [packets to send 106, broken 105] [10:26:42]ProducePacketName [10:26:42]name=ofd_packets/00165209 [10:26:42]OFD Sender: To server: pG, [10:26:42]CommunicateWithHost lk.salyk.kg:30040 [10:26:42]ConnectInit lk.salyk.kg [10:26:42]Connected sock=10 [10:26:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 32 F2 07 01 69 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 38 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 65 F9 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 59 85 02 00 35 04 06 00 39 ED 1D 3E 0C E0 57 69 A9 D1 E4 83 2F 64 [10:26:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 E4 24 47 00 7F 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 37 31 38 10 04 04 00 59 85 02 00 F4 03 04 00 F0 9F 94 66 B6 04 01 00 00 4F 7F 93 E8 23 94 12 90 [10:26:42]CommunicateWithHost err = 0 [10:26:42]CheckOFDResponse [10:26:42]1017 (14) - 77093643461234 [10:26:42]1041 (16) - 0000000000874718 [10:26:42]1040 (4) - 165209 [10:26:42]1012 (4) - 15.07.2024 04:05 [10:26:42]1206 (1) - 0 [10:26:42]OFD Sender: Remove packet 165209 [10:26:42]ProducePacketName [10:26:42]name=ofd_packets/00165209 [10:26:42]NVStorageDeleteData [10:26:43]Write to MH i2c: 01 00 00 75 2C A1 [10:26:43]Write i2c OK [10:26:43]MH_I2C_Read... [10:26:43]Read from MH i2c: 01 [10:26:43]MH_I2C_Read... [10:26:43]Read from MH i2c: 01 07 00 [10:26:43]MH_I2C_Read... [10:26:43]Read from MH i2c: 01 07 00 75 2C 00 00 00 00 00 02 0D B7 [10:26:43]RasterBufferAndPrint [10:26:43]line [10:26:43]line [10:26:43]line [10:26:43]line [10:26:43]line [10:26:43]written 0, free lines is 3336 [10:26:43]MH_Cut [10:26:43]Write to MH i2c: D1 01 00 7C 2C 01 7A [10:26:43]Write i2c OK [10:26:43]MH_I2C_Read... [10:26:43]Read from MH i2c: D1 [10:26:43]MH_I2C_Read... [10:26:43]Read from MH i2c: D1 01 00 [10:26:43]MH_I2C_Read... [10:26:43]Read from MH i2c: D1 01 00 7C 2C 00 79 [10:26:43]Write to MH i2c: 01 00 00 7D 2C A9 [10:26:43]Write i2c OK [10:26:43]MH_I2C_Read... [10:26:43]OFD Sender: No OFD packet to send [10:26:43]*** Cut start [10:26:43]*** Partial cut [10:26:43]*** CUTSNS_PIN = 1 [10:26:43]*** CUTSNS_PIN = 0 [10:26:43]*** Brake cut motor [10:26:44]Read from MH i2c: 01 [10:26:44]MH_I2C_Read... [10:26:44]*** Stop cut motor [10:26:44]*** Cut end [10:26:44]Read from MH i2c: 01 07 00 [10:26:44]MH_I2C_Read... [10:26:44]Read from MH i2c: 01 07 00 7D 2C 00 00 00 00 00 FF 0F BE [10:26:44]process_action close_receipt done [10:26:44]requested_data is exist [10:26:44]produce_requested_data [10:26:44]requested_item fm.sn is exist - process it [10:26:44]wFMCommunicate request_size=4 [10:26:44]MH_SAM_APDU [10:26:44]CAPDU: 80 11 00 00 [10:26:44]Write to MH i2c: E2 08 00 7E 2C 80 11 00 00 00 00 00 00 24 [10:26:44]Write i2c OK [10:26:44]MH_I2C_Read... [10:26:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:44]Read from MH i2c: E2 [10:26:44]MH_I2C_Read... [10:26:44]Read from MH i2c: E2 17 00 [10:26:44]MH_I2C_Read... [10:26:44]Read from MH i2c: E2 17 00 7E 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7A [10:26:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:26:44]wFMCommunicate OK [10:26:44]requested_item fd.num is exist - process it [10:26:44]SAM_PROTO_GetFieldsCounters [10:26:44]wFMCommunicate request_size=4 [10:26:44]MH_SAM_APDU [10:26:44]CAPDU: 80 13 00 00 [10:26:44]Write to MH i2c: E2 08 00 7F 2C 80 13 00 00 00 00 00 00 27 [10:26:44]Write i2c OK [10:26:44]MH_I2C_Read... [10:26:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:26:44]Read from MH i2c: E2 [10:26:44]MH_I2C_Read... [10:26:44]Read from MH i2c: E2 62 00 [10:26:44]MH_I2C_Read... [10:26:44]Read from MH i2c: E2 62 00 7F 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 59 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 E5 [10:26: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 59 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:26:44]wFMCommunicate OK [10:26:44]SAM_PROTO_GetFieldsCounters done [10:26:44]requested_item shift.num is exist - process it [10:26:44]requested_item shift.opened is exist - process it [10:26:44]req_shift_opened [10:26:44]FM_GetShiftState [10:26:44]SAM_PROTO_GetShiftState [10:26:44]wFMCommunicate request_size=4 [10:26:44]MH_SAM_APDU [10:26:44]CAPDU: 80 13 01 00 [10:26:44]Write to MH i2c: E2 08 00 80 2C 80 13 01 00 00 00 00 00 29 [10:26:44]Write i2c OK [10:26:44]MH_I2C_Read... [10:26:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:44]Read from MH i2c: E2 [10:26:44]MH_I2C_Read... [10:26:44]Read from MH i2c: E2 0E 00 [10:26:44]MH_I2C_Read... [10:26:44]Read from MH i2c: E2 0E 00 80 2C 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 02 [10:26:44]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:26:44]wFMCommunicate OK [10:26:44]SAM_PROTO_GetShiftState done [10:26:44]FM_GetShiftState done [10:26:44]req_shift_opened done [10:26:44]requested_item shift.open_date is exist - process it [10:26:44]req_shift_open_date [10:26:44]req_shift_open_date done [10:26:44]produce_requested_data done [10:26:44]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165209,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [10:26:44]process_action_free close_receipt [10:26:44]json_value_free [10:26:44]json_value_free done [10:26:44]process_json_proto returns [10:26:44]Send response to host [10:26:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165209,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [10:26:44]free response buf [10:26:44]execute_script done [10:26:44]execute_script returns [10:26:44]free content buf [10:26:44]Sock 7.Close socket [10:26:44]Sock 7.Thread stoped [10:26:44]accept exits with 9 [10:26:44]New connection [10:26:44]New thread 3066928484 created [10:26:44]Thread 3066785124 joined [10:26:44]Waiting for new connection... [10:26:44] Sock 9.Parse request [10:26:44]Sock 9.Check first char [10:26:44]Sock 9.First char is OK [10:26:44]request: POST /json_proto HTTP/1.0 [10:26:44]Method: POST [10:26:44]URL: /json_proto [10:26:44]Method is POST - this is cgi request [10:26:44]url: /json_proto [10:26:44]query_string will be loaded in cgi processing [10:26:44]execute_cgi json_proto POST (null) [10:26:44]execute_cgi path=json_proto method=POST [10:26:44]POST find Content-Length [10:26:44]Host: 172.17.56.4:8080 [10:26:44]Content-Length: 677 [10:26:44]Content-Type: application/json [10:26:44] [10:26:44]POST finish read [10:26:44]Found Content-Length = 677 [10:26:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459314", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:44]execute_script... [10:26:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459314", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:44]POST & json_proto [10:26:44]process_json_proto [10:26:44]json parsed OK: [10:26:44]protocol is kg_v1.0 [10:26:44]action value=close_receipt [10:26:44]process_action close_receipt [10:26:44]cmd_close_receipt [10:26:44]MH_GetDate [10:26:44]Write to MH i2c: F0 00 00 81 2C 9C [10:26:44]Write i2c OK [10:26:44]MH_I2C_Read... [10:26:44]Read from MH i2c: F0 [10:26:44]MH_I2C_Read... [10:26:44]Read from MH i2c: F0 09 00 [10:26:44]MH_I2C_Read... [10:26:44]Read from MH i2c: F0 09 00 81 2C 00 69 F9 94 66 C9 DC B2 64 BC [10:26:44]GetLastDocTimeStamp 1721039205 [10:26:44]current date 1721039209 [10:26:44]FM_GetShiftState [10:26:44]SAM_PROTO_GetShiftState [10:26:44]wFMCommunicate request_size=4 [10:26:44]MH_SAM_APDU [10:26:44]CAPDU: 80 13 01 00 [10:26:44]Write to MH i2c: E2 08 00 82 2C 80 13 01 00 00 00 00 00 2B [10:26:44]Write i2c OK [10:26:44]MH_I2C_Read... [10:26:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:44]Read from MH i2c: E2 [10:26:44]MH_I2C_Read... [10:26:44]Read from MH i2c: E2 0E 00 [10:26:44]MH_I2C_Read... [10:26:44]Read from MH i2c: E2 0E 00 82 2C 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 04 [10:26:44]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:26:44]wFMCommunicate OK [10:26:44]SAM_PROTO_GetShiftState done [10:26:44]FM_GetShiftState done [10:26:44]opened in 1721003876 [10:26:44]opened+sec_in_day 1721090276 [10:26:44]quantity*price = 50008 [10:26:44]sum+1 = 50009 [10:26:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 83 15.07.2024 10:26 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165210 ФПД: 41412208008112 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T102649&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165210&fm=41412208008112&tin=02508201610067®Number=0000000000090829&sum=50000 [10:26:46]StoreToDocumentArchive [10:26:46]shift 448 fd 165210 [10:26:46]save to /storage/0448/doc_00165210 [10:26:46]save last doc name /storage/0448/doc_00165210 to /storage/kkm_last_doc_name [10:26:46]save OK [10:26:46]Clear old archive folders... [10:26:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:26:46]tlvbuf is B6DA26A0 [10:26:46]SAM_PROTO_ClearQueue [10:26:46]wFMCommunicate request_size=4 [10:26:46]MH_SAM_APDU [10:26:46]CAPDU: 80 09 00 00 [10:26:46]Write to MH i2c: E2 08 00 8F 2C 80 09 00 00 00 00 00 00 2D [10:26:46]Write i2c OK [10:26:46]MH_I2C_Read... [10:26:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:26:46]Read from MH i2c: E2 [10:26:46]MH_I2C_Read... [10:26:46]Read from MH i2c: E2 03 00 [10:26:46]MH_I2C_Read... [10:26:46]Read from MH i2c: E2 03 00 8F 2C 00 90 00 2F [10:26:46]RAPDU: 90 00 [10:26:46]wFMCommunicate OK [10:26:46]SAM_PROTO_ClearQueue done [10:26:46]KKMCreateOFDPacket [10:26:46]OFDProtocolAddRootSTLVToBuf [10:26:46]FM_MakeSignedData [10:26:46]FM_MakeSignedData [10:26:46]SAM_PROTO_SignData [10:26:46]wFMCommunicate request_size=4 [10:26:46]MH_SAM_APDU [10:26:46]CAPDU: 80 0D 01 02 [10:26:46]Write to MH i2c: E2 08 00 90 2C 80 0D 01 02 00 00 00 00 35 [10:26:46]Write i2c OK [10:26:46]MH_I2C_Read... [10:26:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:26:46]Read from MH i2c: E2 [10:26:46]MH_I2C_Read... [10:26:46]Read from MH i2c: E2 03 00 [10:26:46]MH_I2C_Read... [10:26:46]Read from MH i2c: E2 03 00 90 2C 00 90 00 30 [10:26:46]RAPDU: 90 00 [10:26:46]wFMCommunicate OK [10:26:46]wFMCommunicate request_size=255 [10:26:46]MH_SAM_APDU [10:26: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 69 F9 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5A 85 02 00 35 04 06 00 25 [10:26:46]Write to MH i2c: E2 02 01 91 2C 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 69 F9 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5A 85 02 00 35 04 06 00 25 00 00 24 [10:26:46]Write i2c OK [10:26:46]MH_I2C_Read... [10:26:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:46]Read from MH i2c: E2 [10:26:46]MH_I2C_Read... [10:26:46]Read from MH i2c: E2 03 00 [10:26:46]MH_I2C_Read... [10:26:46]Read from MH i2c: E2 03 00 91 2C 00 90 00 31 [10:26:46]RAPDU: 90 00 [10:26:46]wFMCommunicate OK [10:26:46]wFMCommunicate request_size=10 [10:26:46]MH_SAM_APDU [10:26:46]CAPDU: 80 0D 02 02 05 AA 07 F2 9B B0 [10:26:46]Write to MH i2c: E2 0D 00 92 2C 80 0D 02 02 05 00 AA 07 F2 9B B0 00 00 30 [10:26:46]Write i2c OK [10:26:46]MH_I2C_Read... [10:26:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:46]Read from MH i2c: E2 [10:26:46]MH_I2C_Read... [10:26:46]Read from MH i2c: E2 03 00 [10:26:46]MH_I2C_Read... [10:26:46]Read from MH i2c: E2 03 00 92 2C 00 90 00 32 [10:26:46]RAPDU: 90 00 [10:26:46]wFMCommunicate OK [10:26:46]wFMCommunicate request_size=4 [10:26:46]MH_SAM_APDU [10:26:46]CAPDU: 80 0D 03 02 [10:26:46]Write to MH i2c: E2 08 00 93 2C 80 0D 03 02 00 00 00 00 3A [10:26:46]Write i2c OK [10:26:46]MH_I2C_Read... [10:26:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:26:46]Read from MH i2c: E2 [10:26:46]MH_I2C_Read... [10:26:46]Read from MH i2c: E2 0B 00 [10:26:46]MH_I2C_Read... [10:26:46]Read from MH i2c: E2 0B 00 93 2C 00 A9 AC 73 02 C4 C6 C1 64 90 00 B4 [10:26:46]RAPDU: A9 AC 73 02 C4 C6 C1 64 90 00 [10:26:46]wFMCommunicate OK [10:26:46]SAM_PROTO_SignData done [10:26:46]FM_MakeSignedData done [10:26:46]CreateOFDProtocolMessage [10:26:46]wFMCommunicate request_size=4 [10:26:46]MH_SAM_APDU [10:26:46]CAPDU: 80 11 00 00 [10:26:46]Write to MH i2c: E2 08 00 94 2C 80 11 00 00 00 00 00 00 3A [10:26:46]Write i2c OK [10:26:46]MH_I2C_Read... [10:26:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:47]Read from MH i2c: E2 [10:26:47]MH_I2C_Read... [10:26:47]Read from MH i2c: E2 17 00 [10:26:47]MH_I2C_Read... [10:26:47]Read from MH i2c: E2 17 00 94 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 90 [10:26:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:26:47]wFMCommunicate OK [10:26:47]CreateOFDProtocolMessage done [10:26:47]OFDSenderStorePacket 165210 [10:26:47]StoreOFDPacket docnum=165210 [10:26:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C1 75 07 01 EC E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 69 F9 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5A 85 02 00 35 04 06 00 25 AA 07 F2 9B B0 A9 AC 73 02 C4 C6 C1 64 [10:26:47]CheckFolder [10:26:47]dirname=/storage/ofd_packets [10:26:47]CheckFolder done [10:26:47]ProducePacketName [10:26:47]name=ofd_packets/00165210 [10:26:47]NVStorageSaveData ofd_packets/00165210 [10:26:47]File name is /storage/ofd_packets/00165210 [10:26:47]Write 301 bytes [10:26:47]NVStorageSaveData done [10:26:47]OFDSenderStorePacket done [10:26:47]KKMCreateOFDPacket done [10:26:47]NVStorageSaveData kkm_last_timestamp [10:26:47]File name is /storage/kkm_last_timestamp [10:26:47]Write 4 bytes [10:26:47]NVStorageSaveData done [10:26:47]ExternCall_PrintAddStr [10:26:47]wPrintStart [10:26:47]Write to MH i2c: 01 00 00 95 2C C1 [10:26:47]Write i2c OK [10:26:47]MH_I2C_Read... [10:26:47]Read from MH i2c: 01 [10:26:47]MH_I2C_Read... [10:26:47]Read from MH i2c: 01 07 00 [10:26:47]MH_I2C_Read... [10:26:47]Read from MH i2c: 01 07 00 95 2C 00 00 00 00 00 FF 0F D6 [10:26:47]RasterBufferAndPrint [10:26:47]line Счет N : (1)459314 [10:26:47]line ИНН: 02508201610067 [10:26:47]line Контрольно-Кассовый Чек [10:26:47]line ПРОДАЖА [10:26:47]line ТРК (МРК, ГНК) : 22 [10:26:47]line Товар: 2710124130 [10:26:47]line Аи-92-К-5 [10:26:47]line 7.600 * 65.80 [10:26:47]line = 500.08 [10:26:47]line НДС 12% НСП 1% [10:26:47]line > о реализуемом товаре [10:26:47]line ОКРУГЛЕНИЕ: -0.08 [10:26:47]line ИТОГО: 500.00 [10:26:47]line Внесено: 500.00 [10:26:47]line СДАЧА: 0.00 [10:26:47]line НСП 1% : 4.42 [10:26:47]line НДС 12% : 53.11 [10:26:47]line Наличными: 500.00 [10:26:47]line Безнал.: 0.00 [10:26:47]line Место: АЗС № 72 "Партнер Нефть" [10:26:47]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:26:47]line СНО: Общий режим [10:26:47]line Чек 83 15.07.2024 10:26 [10:26:47]line Смена: 448 ФФД: 1.0 [10:26:47]line ЗНМ: 0300000160 [10:26:47]line РНМ: 0000000000090829 [10:26:47]line Версия ККМ: 001 [10:26:47]line ФМ: 0000000000874718 [10:26:47]line ФД: 165210 [10:26:47]line ФПД: 41412208008112 [10:26:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T102649&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165210&fm=41412208008112&tin=02508201610067®Number=0000000000090829&sum=50000 [10:26:47]OFD Sender: Processing packet 165210 [packets to send 106, broken 105] [10:26:47]ProducePacketName [10:26:47]name=ofd_packets/00165210 [10:26:47]written 0, free lines is 4095 [10:26:47]OFD Sender: To server: pG, [10:26:47]CommunicateWithHost lk.salyk.kg:30040 [10:26:47]ConnectInit lk.salyk.kg [10:26:47]Write to MH i2c: 01 00 00 BF 2C EB [10:26:47]Write i2c OK [10:26:47]MH_I2C_Read... [10:26:47]Read from MH i2c: 01 [10:26:47]MH_I2C_Read... [10:26:47]Read from MH i2c: 01 07 00 [10:26:47]MH_I2C_Read... [10:26:47]Read from MH i2c: 01 07 00 BF 2C 00 00 00 00 00 F7 0C F5 [10:26:47]RasterBufferAndPrint [10:26:47]line [10:26:47]line [10:26:47]line [10:26:47]line [10:26:47]line [10:26:47]written 0, free lines is 3329 [10:26:47]MH_Cut [10:26:47]Write to MH i2c: D1 01 00 C6 2C 01 C4 [10:26:47]Write i2c OK [10:26:47]MH_I2C_Read... [10:26:47]Read from MH i2c: D1 [10:26:47]MH_I2C_Read... [10:26:47]Read from MH i2c: D1 01 00 [10:26:47]MH_I2C_Read... [10:26:47]Read from MH i2c: D1 01 00 C6 2C 00 C3 [10:26:47]Write to MH i2c: 01 00 00 C7 2C F3 [10:26:47]Write i2c OK [10:26:47]MH_I2C_Read... [10:26:48]*** Cut start [10:26:48]*** Partial cut [10:26:48]*** CUTSNS_PIN = 1 [10:26:48]*** CUTSNS_PIN = 0 [10:26:48]*** Brake cut motor [10:26:49]Read from MH i2c: 01 [10:26:49]MH_I2C_Read... [10:26:49]*** Stop cut motor [10:26:49]*** Cut end [10:26:49]Read from MH i2c: 01 07 00 [10:26:49]MH_I2C_Read... [10:26:49]Read from MH i2c: 01 07 00 C7 2C 00 00 00 00 00 FF 0F 08 [10:26:49]process_action close_receipt done [10:26:49]requested_data is exist [10:26:49]produce_requested_data [10:26:49]requested_item fm.sn is exist - process it [10:26:49]wFMCommunicate request_size=4 [10:26:49]MH_SAM_APDU [10:26:49]CAPDU: 80 11 00 00 [10:26:49]Write to MH i2c: E2 08 00 C8 2C 80 11 00 00 00 00 00 00 6E [10:26:49]Write i2c OK [10:26:49]MH_I2C_Read... [10:26:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:49]Read from MH i2c: E2 [10:26:49]MH_I2C_Read... [10:26:49]Read from MH i2c: E2 17 00 [10:26:49]MH_I2C_Read... [10:26:49]Read from MH i2c: E2 17 00 C8 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C4 [10:26:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:26:49]wFMCommunicate OK [10:26:49]requested_item fd.num is exist - process it [10:26:49]SAM_PROTO_GetFieldsCounters [10:26:49]wFMCommunicate request_size=4 [10:26:49]MH_SAM_APDU [10:26:49]CAPDU: 80 13 00 00 [10:26:49]Write to MH i2c: E2 08 00 C9 2C 80 13 00 00 00 00 00 00 71 [10:26:49]Write i2c OK [10:26:49]MH_I2C_Read... [10:26:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:26:49]Read from MH i2c: E2 [10:26:49]MH_I2C_Read... [10:26:49]Read from MH i2c: E2 62 00 [10:26:49]MH_I2C_Read... [10:26:49]Read from MH i2c: E2 62 00 C9 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5A 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 33 [10:26: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5A 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:26:49]wFMCommunicate OK [10:26:49]SAM_PROTO_GetFieldsCounters done [10:26:49]requested_item shift.num is exist - process it [10:26:49]requested_item shift.opened is exist - process it [10:26:49]req_shift_opened [10:26:49]FM_GetShiftState [10:26:49]SAM_PROTO_GetShiftState [10:26:49]wFMCommunicate request_size=4 [10:26:49]MH_SAM_APDU [10:26:49]CAPDU: 80 13 01 00 [10:26:49]Write to MH i2c: E2 08 00 CA 2C 80 13 01 00 00 00 00 00 73 [10:26:49]Write i2c OK [10:26:49]MH_I2C_Read... [10:26:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:49]Read from MH i2c: E2 [10:26:49]MH_I2C_Read... [10:26:49]Read from MH i2c: E2 0E 00 [10:26:49]MH_I2C_Read... [10:26:49]Read from MH i2c: E2 0E 00 CA 2C 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 4C [10:26:49]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:26:49]wFMCommunicate OK [10:26:49]SAM_PROTO_GetShiftState done [10:26:49]FM_GetShiftState done [10:26:49]req_shift_opened done [10:26:49]requested_item shift.open_date is exist - process it [10:26:49]req_shift_open_date [10:26:49]req_shift_open_date done [10:26:49]produce_requested_data done [10:26:49]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165210,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [10:26:49]process_action_free close_receipt [10:26:49]json_value_free [10:26:49]json_value_free done [10:26:49]process_json_proto returns [10:26:49]Send response to host [10:26:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165210,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [10:26:49]free response buf [10:26:49]execute_script done [10:26:49]execute_script returns [10:26:49]free content buf [10:26:49]Sock 9.Close socket [10:26:49]Sock 9.Thread stoped [10:26:49]accept exits with 7 [10:26:49]New connection [10:26:49]New thread 3066785124 created [10:26:49]Thread 3066928484 joined [10:26:49]Waiting for new connection... [10:26:49] Sock 7.Parse request [10:26:49]Sock 7.Check first char [10:26:49]Sock 7.First char is OK [10:26:49]request: POST /json_proto HTTP/1.0 [10:26:49]Method: POST [10:26:49]URL: /json_proto [10:26:49]Method is POST - this is cgi request [10:26:49]url: /json_proto [10:26:49]query_string will be loaded in cgi processing [10:26:49]execute_cgi json_proto POST (null) [10:26:49]execute_cgi path=json_proto method=POST [10:26:49]POST find Content-Length [10:26:49]Host: 172.17.56.4:8080 [10:26:49]Content-Length: 679 [10:26:49]Content-Type: application/json [10:26:49] [10:26:49]POST finish read [10:26:49]Found Content-Length = 679 [10:26:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459313", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 20.870, "sum" : 1500.55, "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" ] } } [10:26:49]execute_script... [10:26:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459313", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 20.870, "sum" : 1500.55, "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" ] } } [10:26:49]POST & json_proto [10:26:49]process_json_proto [10:26:49]json parsed OK: [10:26:49]protocol is kg_v1.0 [10:26:49]action value=close_receipt [10:26:49]process_action close_receipt [10:26:49]cmd_close_receipt [10:26:49]MH_GetDate [10:26:49]Write to MH i2c: F0 00 00 CB 2C E6 [10:26:49]Write i2c OK [10:26:49]MH_I2C_Read... [10:26:49]Read from MH i2c: F0 [10:26:49]MH_I2C_Read... [10:26:49]Read from MH i2c: F0 09 00 [10:26:49]MH_I2C_Read... [10:26:49]Read from MH i2c: F0 09 00 CB 2C 00 6E F9 94 66 C9 DC B2 64 0B [10:26:49]GetLastDocTimeStamp 1721039209 [10:26:49]current date 1721039214 [10:26:49]FM_GetShiftState [10:26:49]SAM_PROTO_GetShiftState [10:26:49]wFMCommunicate request_size=4 [10:26:49]MH_SAM_APDU [10:26:49]CAPDU: 80 13 01 00 [10:26:49]Write to MH i2c: E2 08 00 CC 2C 80 13 01 00 00 00 00 00 75 [10:26:49]Write i2c OK [10:26:49]MH_I2C_Read... [10:26:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:49]Read from MH i2c: E2 [10:26:49]MH_I2C_Read... [10:26:49]Read from MH i2c: E2 0E 00 [10:26:49]MH_I2C_Read... [10:26:49]Read from MH i2c: E2 0E 00 CC 2C 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 4E [10:26:49]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:26:49]wFMCommunicate OK [10:26:49]SAM_PROTO_GetShiftState done [10:26:49]FM_GetShiftState done [10:26:49]opened in 1721003876 [10:26:49]opened+sec_in_day 1721090276 [10:26:49]quantity*price = 150055 [10:26:49]sum+1 = 150056 [10:26:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 84 15.07.2024 10:26 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165211 ФПД: 14838914543157 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T102654&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165211&fm=14838914543157&tin=02508201610067®Number=0000000000090829&sum=150000 [10:26:51]StoreToDocumentArchive [10:26:51]shift 448 fd 165211 [10:26:51]save to /storage/0448/doc_00165211 [10:26:51]save last doc name /storage/0448/doc_00165211 to /storage/kkm_last_doc_name [10:26:51]save OK [10:26:51]Clear old archive folders... [10:26:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:26:51]tlvbuf is 01472B20 [10:26:51]SAM_PROTO_ClearQueue [10:26:51]wFMCommunicate request_size=4 [10:26:51]MH_SAM_APDU [10:26:51]CAPDU: 80 09 00 00 [10:26:51]Write to MH i2c: E2 08 00 D9 2C 80 09 00 00 00 00 00 00 77 [10:26:51]Write i2c OK [10:26:51]MH_I2C_Read... [10:26:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:26:51]Read from MH i2c: E2 [10:26:51]MH_I2C_Read... [10:26:51]Read from MH i2c: E2 03 00 [10:26:51]MH_I2C_Read... [10:26:51]Read from MH i2c: E2 03 00 D9 2C 00 90 00 79 [10:26:51]RAPDU: 90 00 [10:26:51]wFMCommunicate OK [10:26:51]SAM_PROTO_ClearQueue done [10:26:51]KKMCreateOFDPacket [10:26:51]OFDProtocolAddRootSTLVToBuf [10:26:51]FM_MakeSignedData [10:26:51]FM_MakeSignedData [10:26:51]SAM_PROTO_SignData [10:26:51]wFMCommunicate request_size=4 [10:26:51]MH_SAM_APDU [10:26:51]CAPDU: 80 0D 01 02 [10:26:51]Write to MH i2c: E2 08 00 DA 2C 80 0D 01 02 00 00 00 00 7F [10:26:51]Write i2c OK [10:26:51]MH_I2C_Read... [10:26:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:26:51]Read from MH i2c: E2 [10:26:51]MH_I2C_Read... [10:26:51]Read from MH i2c: E2 03 00 [10:26:51]MH_I2C_Read... [10:26:51]Read from MH i2c: E2 03 00 DA 2C 00 90 00 7A [10:26:51]RAPDU: 90 00 [10:26:51]wFMCommunicate OK [10:26:51]wFMCommunicate request_size=255 [10:26:51]MH_SAM_APDU [10:26:51]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 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 54 00 00 00 F4 03 04 00 6E F9 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5B 85 02 00 35 04 06 00 0D 7E F4 3A [10:26:51]Write to MH i2c: E2 02 01 DB 2C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 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 54 00 00 00 F4 03 04 00 6E F9 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5B 85 02 00 35 04 06 00 0D 7E F4 3A 00 00 97 [10:26:51]Write i2c OK [10:26:51]MH_I2C_Read... [10:26:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:51]Read from MH i2c: E2 [10:26:51]MH_I2C_Read... [10:26:51]Read from MH i2c: E2 03 00 [10:26:51]MH_I2C_Read... [10:26:51]Read from MH i2c: E2 03 00 DB 2C 00 90 00 7B [10:26:51]RAPDU: 90 00 [10:26:51]wFMCommunicate OK [10:26:51]wFMCommunicate request_size=7 [10:26:51]MH_SAM_APDU [10:26:51]CAPDU: 80 0D 02 02 02 EE 35 [10:26:51]Write to MH i2c: E2 0A 00 DC 2C 80 0D 02 02 02 00 EE 35 00 00 A9 [10:26:51]Write i2c OK [10:26:51]MH_I2C_Read... [10:26:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:51]Read from MH i2c: E2 [10:26:51]MH_I2C_Read... [10:26:51]Read from MH i2c: E2 03 00 [10:26:51]MH_I2C_Read... [10:26:51]Read from MH i2c: E2 03 00 DC 2C 00 90 00 7C [10:26:51]RAPDU: 90 00 [10:26:51]wFMCommunicate OK [10:26:51]wFMCommunicate request_size=4 [10:26:51]MH_SAM_APDU [10:26:51]CAPDU: 80 0D 03 02 [10:26:51]Write to MH i2c: E2 08 00 DD 2C 80 0D 03 02 00 00 00 00 84 [10:26:51]Write i2c OK [10:26:51]MH_I2C_Read... [10:26:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:26:51]Read from MH i2c: E2 [10:26:51]MH_I2C_Read... [10:26:51]Read from MH i2c: E2 0B 00 [10:26:51]MH_I2C_Read... [10:26:51]Read from MH i2c: E2 0B 00 DD 2C 00 09 F1 AD E4 FB CD 0B 95 90 00 78 [10:26:51]RAPDU: 09 F1 AD E4 FB CD 0B 95 90 00 [10:26:51]wFMCommunicate OK [10:26:51]SAM_PROTO_SignData done [10:26:51]FM_MakeSignedData done [10:26:51]CreateOFDProtocolMessage [10:26:51]wFMCommunicate request_size=4 [10:26:51]MH_SAM_APDU [10:26:51]CAPDU: 80 11 00 00 [10:26:51]Write to MH i2c: E2 08 00 DE 2C 80 11 00 00 00 00 00 00 84 [10:26:51]Write i2c OK [10:26:51]MH_I2C_Read... [10:26:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:52]Read from MH i2c: E2 [10:26:52]MH_I2C_Read... [10:26:52]Read from MH i2c: E2 17 00 [10:26:52]MH_I2C_Read... [10:26:52]Read from MH i2c: E2 17 00 DE 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DA [10:26:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:26:52]wFMCommunicate OK [10:26:52]CreateOFDProtocolMessage done [10:26:52]OFDSenderStorePacket 165211 [10:26:52]StoreOFDPacket docnum=165211 [10:26:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 7E C9 04 01 00 1F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 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 54 00 00 00 F4 03 04 00 6E F9 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5B 85 02 00 35 04 06 00 0D 7E F4 3A EE 35 09 F1 AD E4 FB CD 0B 95 [10:26:52]CheckFolder [10:26:52]dirname=/storage/ofd_packets [10:26:52]CheckFolder done [10:26:52]ProducePacketName [10:26:52]name=ofd_packets/00165211 [10:26:52]NVStorageSaveData ofd_packets/00165211 [10:26:52]File name is /storage/ofd_packets/00165211 [10:26:52]Write 298 bytes [10:26:52]NVStorageSaveData done [10:26:52]OFDSenderStorePacket done [10:26:52]KKMCreateOFDPacket done [10:26:52]NVStorageSaveData kkm_last_timestamp [10:26:52]File name is /storage/kkm_last_timestamp [10:26:52]Write 4 bytes [10:26:52]NVStorageSaveData done [10:26:52]ExternCall_PrintAddStr [10:26:52]wPrintStart [10:26:52]Write to MH i2c: 01 00 00 DF 2C 0B [10:26:52]Write i2c OK [10:26:52]MH_I2C_Read... [10:26:52]Read from MH i2c: 01 [10:26:52]MH_I2C_Read... [10:26:52]Read from MH i2c: 01 07 00 [10:26:52]MH_I2C_Read... [10:26:52]Read from MH i2c: 01 07 00 DF 2C 00 00 00 00 00 FF 0F 20 [10:26:52]RasterBufferAndPrint [10:26:52]line Счет N : (1)459313 [10:26:52]line ИНН: 02508201610067 [10:26:52]line Контрольно-Кассовый Чек [10:26:52]line ПРОДАЖА [10:26:52]line ТРК (МРК, ГНК) : 21 [10:26:52]line Товар: 2710194210 [10:26:52]line ДТ-К-5 [10:26:52]line 20.870 * 71.90 [10:26:52]line = 1500.55 [10:26:52]line НДС 12% НСП 1% [10:26:52]line > о реализуемом товаре [10:26:52]line ОКРУГЛЕНИЕ: -0.55 [10:26:52]line ИТОГО: 1500.00 [10:26:52]line Внесено: 1500.00 [10:26:52]line СДАЧА: 0.00 [10:26:52]line НСП 1% : 13.28 [10:26:52]line НДС 12% : 159.35 [10:26:52]line Наличными: 1500.00 [10:26:52]line Безнал.: 0.00 [10:26:52]line Место: АЗС № 72 "Партнер Нефть" [10:26:52]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:26:52]line СНО: Общий режим [10:26:52]line Чек 84 15.07.2024 10:26 [10:26:52]line Смена: 448 ФФД: 1.0 [10:26:52]line ЗНМ: 0300000160 [10:26:52]line РНМ: 0000000000090829 [10:26:52]line Версия ККМ: 001 [10:26:52]line ФМ: 0000000000874718 [10:26:52]line ФД: 165211 [10:26:52]line ФПД: 14838914543157 [10:26:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T102654&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165211&fm=14838914543157&tin=02508201610067®Number=0000000000090829&sum=150000 [10:26:52]written 0, free lines is 4095 [10:26:52]Write to MH i2c: 01 00 00 09 2D 36 [10:26:52]Write i2c OK [10:26:52]MH_I2C_Read... [10:26:52]Read from MH i2c: 01 [10:26:52]MH_I2C_Read... [10:26:52]Read from MH i2c: 01 07 00 [10:26:52]MH_I2C_Read... [10:26:52]Read from MH i2c: 01 07 00 09 2D 00 00 00 00 00 EC 0C 35 [10:26:52]RasterBufferAndPrint [10:26:52]line [10:26:52]line [10:26:52]line [10:26:52]line [10:26:52]line [10:26:52]written 0, free lines is 3326 [10:26:52]MH_Cut [10:26:52]Write to MH i2c: D1 01 00 10 2D 01 0F [10:26:52]Write i2c OK [10:26:52]MH_I2C_Read... [10:26:52]Read from MH i2c: D1 [10:26:52]MH_I2C_Read... [10:26:52]Read from MH i2c: D1 01 00 [10:26:52]MH_I2C_Read... [10:26:52]Read from MH i2c: D1 01 00 10 2D 00 0E [10:26:52]Write to MH i2c: 01 00 00 11 2D 3E [10:26:52]Write i2c OK [10:26:52]MH_I2C_Read... [10:26:53]*** Cut start [10:26:53]*** Partial cut [10:26:53]*** CUTSNS_PIN = 1 [10:26:53]*** CUTSNS_PIN = 0 [10:26:53]*** Brake cut motor [10:26:53]Read from MH i2c: 01 [10:26:53]MH_I2C_Read... [10:26:53]*** Stop cut motor [10:26:53]*** Cut end [10:26:53]Read from MH i2c: 01 07 00 [10:26:53]MH_I2C_Read... [10:26:53]Read from MH i2c: 01 07 00 11 2D 00 00 00 00 00 FF 0F 53 [10:26:53]process_action close_receipt done [10:26:53]requested_data is exist [10:26:53]produce_requested_data [10:26:53]requested_item fm.sn is exist - process it [10:26:53]wFMCommunicate request_size=4 [10:26:53]MH_SAM_APDU [10:26:53]CAPDU: 80 11 00 00 [10:26:53]Write to MH i2c: E2 08 00 12 2D 80 11 00 00 00 00 00 00 B9 [10:26:53]Write i2c OK [10:26:53]MH_I2C_Read... [10:26:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:53]Read from MH i2c: E2 [10:26:53]MH_I2C_Read... [10:26:53]Read from MH i2c: E2 17 00 [10:26:53]MH_I2C_Read... [10:26:53]Read from MH i2c: E2 17 00 12 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0F [10:26:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:26:53]wFMCommunicate OK [10:26:53]requested_item fd.num is exist - process it [10:26:53]SAM_PROTO_GetFieldsCounters [10:26:53]wFMCommunicate request_size=4 [10:26:53]MH_SAM_APDU [10:26:53]CAPDU: 80 13 00 00 [10:26:53]Write to MH i2c: E2 08 00 13 2D 80 13 00 00 00 00 00 00 BC [10:26:53]Write i2c OK [10:26:53]MH_I2C_Read... [10:26:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:26:53]Read from MH i2c: E2 [10:26:53]MH_I2C_Read... [10:26:53]Read from MH i2c: E2 62 00 [10:26:53]MH_I2C_Read... [10:26:53]Read from MH i2c: E2 62 00 13 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5B 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 82 [10:26: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5B 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:26:54]wFMCommunicate OK [10:26:54]SAM_PROTO_GetFieldsCounters done [10:26:54]requested_item shift.num is exist - process it [10:26:54]requested_item shift.opened is exist - process it [10:26:54]req_shift_opened [10:26:54]FM_GetShiftState [10:26:54]SAM_PROTO_GetShiftState [10:26:54]wFMCommunicate request_size=4 [10:26:54]MH_SAM_APDU [10:26:54]CAPDU: 80 13 01 00 [10:26:54]Write to MH i2c: E2 08 00 14 2D 80 13 01 00 00 00 00 00 BE [10:26:54]Write i2c OK [10:26:54]MH_I2C_Read... [10:26:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:54]Read from MH i2c: E2 [10:26:54]MH_I2C_Read... [10:26:54]Read from MH i2c: E2 0E 00 [10:26:54]MH_I2C_Read... [10:26:54]Read from MH i2c: E2 0E 00 14 2D 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 97 [10:26:54]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:26:54]wFMCommunicate OK [10:26:54]SAM_PROTO_GetShiftState done [10:26:54]FM_GetShiftState done [10:26:54]req_shift_opened done [10:26:54]requested_item shift.open_date is exist - process it [10:26:54]req_shift_open_date [10:26:54]req_shift_open_date done [10:26:54]produce_requested_data done [10:26:54]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165211,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [10:26:54]process_action_free close_receipt [10:26:54]json_value_free [10:26:54]json_value_free done [10:26:54]process_json_proto returns [10:26:54]Send response to host [10:26:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165211,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [10:26:54]free response buf [10:26:54]execute_script done [10:26:54]execute_script returns [10:26:54]free content buf [10:26:54]Sock 7.Close socket [10:26:54]Sock 7.Thread stoped [10:28:32]accept exits with 9 [10:28:32]New connection [10:28:32]New thread 3066928484 created [10:28:32]Thread 3066785124 joined [10:28:32]Waiting for new connection... [10:28:32] Sock 9.Parse request [10:28:32]Sock 9.Check first char [10:28:32]Sock 9.First char is OK [10:28:32]request: POST /json_proto HTTP/1.0 [10:28:32]Method: POST [10:28:32]URL: /json_proto [10:28:32]Method is POST - this is cgi request [10:28:32]url: /json_proto [10:28:32]query_string will be loaded in cgi processing [10:28:32]execute_cgi json_proto POST (null) [10:28:32]execute_cgi path=json_proto method=POST [10:28:32]POST find Content-Length [10:28:32]Host: 172.17.56.4:8080 [10:28:32]Content-Length: 677 [10:28:32]Content-Type: application/json [10:28:32] [10:28:32]POST finish read [10:28:32]Found Content-Length = 677 [10:28:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459315", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:32]execute_script... [10:28:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459315", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:32]POST & json_proto [10:28:32]process_json_proto [10:28:32]json parsed OK: [10:28:32]protocol is kg_v1.0 [10:28:32]action value=close_receipt [10:28:32]process_action close_receipt [10:28:32]cmd_close_receipt [10:28:32]MH_GetDate [10:28:32]Write to MH i2c: F0 00 00 15 2D 31 [10:28:32]Write i2c OK [10:28:32]MH_I2C_Read... [10:28:32]Read from MH i2c: F0 [10:28:32]MH_I2C_Read... [10:28:32]Read from MH i2c: F0 09 00 [10:28:32]MH_I2C_Read... [10:28:32]Read from MH i2c: F0 09 00 15 2D 00 D5 F9 94 66 C9 DC B2 64 BD [10:28:32]GetLastDocTimeStamp 1721039214 [10:28:32]current date 1721039317 [10:28:32]FM_GetShiftState [10:28:32]SAM_PROTO_GetShiftState [10:28:32]wFMCommunicate request_size=4 [10:28:32]MH_SAM_APDU [10:28:32]CAPDU: 80 13 01 00 [10:28:32]Write to MH i2c: E2 08 00 16 2D 80 13 01 00 00 00 00 00 C0 [10:28:32]Write i2c OK [10:28:32]MH_I2C_Read... [10:28:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:32]Read from MH i2c: E2 [10:28:32]MH_I2C_Read... [10:28:32]Read from MH i2c: E2 0E 00 [10:28:32]MH_I2C_Read... [10:28:32]Read from MH i2c: E2 0E 00 16 2D 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 99 [10:28:32]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:28:32]wFMCommunicate OK [10:28:32]SAM_PROTO_GetShiftState done [10:28:32]FM_GetShiftState done [10:28:32]opened in 1721003876 [10:28:32]opened+sec_in_day 1721090276 [10:28:32]quantity*price = 50008 [10:28:32]sum+1 = 50009 [10:28:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 85 15.07.2024 10:28 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165212 ФПД: 145461541168706 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T102837&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165212&fm=145461541168706&tin=02508201610067®Number=0000000000090829&sum=50000 [10:28:33]StoreToDocumentArchive [10:28:33]shift 448 fd 165212 [10:28:33]save to /storage/0448/doc_00165212 [10:28:33]save last doc name /storage/0448/doc_00165212 to /storage/kkm_last_doc_name [10:28:33]save OK [10:28:33]Clear old archive folders... [10:28:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:28:33]tlvbuf is B6F52460 [10:28:33]SAM_PROTO_ClearQueue [10:28:33]wFMCommunicate request_size=4 [10:28:33]MH_SAM_APDU [10:28:33]CAPDU: 80 09 00 00 [10:28:33]Write to MH i2c: E2 08 00 23 2D 80 09 00 00 00 00 00 00 C2 [10:28:33]Write i2c OK [10:28:33]MH_I2C_Read... [10:28:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:28:33]Read from MH i2c: E2 [10:28:33]MH_I2C_Read... [10:28:33]Read from MH i2c: E2 03 00 [10:28:33]MH_I2C_Read... [10:28:33]Read from MH i2c: E2 03 00 23 2D 00 90 00 C4 [10:28:33]RAPDU: 90 00 [10:28:33]wFMCommunicate OK [10:28:33]SAM_PROTO_ClearQueue done [10:28:33]KKMCreateOFDPacket [10:28:33]OFDProtocolAddRootSTLVToBuf [10:28:33]FM_MakeSignedData [10:28:33]FM_MakeSignedData [10:28:33]SAM_PROTO_SignData [10:28:33]wFMCommunicate request_size=4 [10:28:33]MH_SAM_APDU [10:28:33]CAPDU: 80 0D 01 02 [10:28:33]Write to MH i2c: E2 08 00 24 2D 80 0D 01 02 00 00 00 00 CA [10:28:33]Write i2c OK [10:28:33]MH_I2C_Read... [10:28:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:28:33]Read from MH i2c: E2 [10:28:33]MH_I2C_Read... [10:28:33]Read from MH i2c: E2 03 00 [10:28:33]MH_I2C_Read... [10:28:33]Read from MH i2c: E2 03 00 24 2D 00 90 00 C5 [10:28:33]RAPDU: 90 00 [10:28:33]wFMCommunicate OK [10:28:33]wFMCommunicate request_size=255 [10:28:33]MH_SAM_APDU [10:28:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 D5 F9 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5C 85 02 00 35 04 06 00 84 [10:28:33]Write to MH i2c: E2 02 01 25 2D 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 D5 F9 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5C 85 02 00 35 04 06 00 84 00 00 88 [10:28:33]Write i2c OK [10:28:33]MH_I2C_Read... [10:28:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:34]Read from MH i2c: E2 [10:28:34]MH_I2C_Read... [10:28:34]Read from MH i2c: E2 03 00 [10:28:34]MH_I2C_Read... [10:28:34]Read from MH i2c: E2 03 00 25 2D 00 90 00 C6 [10:28:34]RAPDU: 90 00 [10:28:34]wFMCommunicate OK [10:28:34]wFMCommunicate request_size=10 [10:28:34]MH_SAM_APDU [10:28:34]CAPDU: 80 0D 02 02 05 4B E7 7D 66 42 [10:28:34]Write to MH i2c: E2 0D 00 26 2D 80 0D 02 02 05 00 4B E7 7D 66 42 00 00 2E [10:28:34]Write i2c OK [10:28:34]MH_I2C_Read... [10:28:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:34]Read from MH i2c: E2 [10:28:34]MH_I2C_Read... [10:28:34]Read from MH i2c: E2 03 00 [10:28:34]MH_I2C_Read... [10:28:34]Read from MH i2c: E2 03 00 26 2D 00 90 00 C7 [10:28:34]RAPDU: 90 00 [10:28:34]wFMCommunicate OK [10:28:34]wFMCommunicate request_size=4 [10:28:34]MH_SAM_APDU [10:28:34]CAPDU: 80 0D 03 02 [10:28:34]Write to MH i2c: E2 08 00 27 2D 80 0D 03 02 00 00 00 00 CF [10:28:34]Write i2c OK [10:28:34]MH_I2C_Read... [10:28:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:28:34]Read from MH i2c: E2 [10:28:34]MH_I2C_Read... [10:28:34]Read from MH i2c: E2 0B 00 [10:28:34]MH_I2C_Read... [10:28:34]Read from MH i2c: E2 0B 00 27 2D 00 37 7D 9F B2 DC 35 4B 5C 90 00 8D [10:28:34]RAPDU: 37 7D 9F B2 DC 35 4B 5C 90 00 [10:28:34]wFMCommunicate OK [10:28:34]SAM_PROTO_SignData done [10:28:34]FM_MakeSignedData done [10:28:34]CreateOFDProtocolMessage [10:28:34]wFMCommunicate request_size=4 [10:28:34]MH_SAM_APDU [10:28:34]CAPDU: 80 11 00 00 [10:28:34]Write to MH i2c: E2 08 00 28 2D 80 11 00 00 00 00 00 00 CF [10:28:34]Write i2c OK [10:28:34]MH_I2C_Read... [10:28:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:34]Read from MH i2c: E2 [10:28:34]MH_I2C_Read... [10:28:34]Read from MH i2c: E2 17 00 [10:28:34]MH_I2C_Read... [10:28:34]Read from MH i2c: E2 17 00 28 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 25 [10:28:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:28:34]wFMCommunicate OK [10:28:34]CreateOFDProtocolMessage done [10:28:34]OFDSenderStorePacket 165212 [10:28:34]StoreOFDPacket docnum=165212 [10:28:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 2B 78 07 01 98 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 D5 F9 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5C 85 02 00 35 04 06 00 84 4B E7 7D 66 42 37 7D 9F B2 DC 35 4B 5C [10:28:34]CheckFolder [10:28:34]dirname=/storage/ofd_packets [10:28:34]CheckFolder done [10:28:34]ProducePacketName [10:28:34]name=ofd_packets/00165212 [10:28:34]NVStorageSaveData ofd_packets/00165212 [10:28:34]File name is /storage/ofd_packets/00165212 [10:28:34]Write 301 bytes [10:28:34]NVStorageSaveData done [10:28:34]OFDSenderStorePacket done [10:28:34]KKMCreateOFDPacket done [10:28:34]NVStorageSaveData kkm_last_timestamp [10:28:34]File name is /storage/kkm_last_timestamp [10:28:34]Write 4 bytes [10:28:34]NVStorageSaveData done [10:28:34]ExternCall_PrintAddStr [10:28:34]wPrintStart [10:28:34]Write to MH i2c: 01 00 00 29 2D 56 [10:28:34]Write i2c OK [10:28:34]MH_I2C_Read... [10:28:34]Read from MH i2c: 01 [10:28:34]MH_I2C_Read... [10:28:34]Read from MH i2c: 01 07 00 [10:28:34]MH_I2C_Read... [10:28:34]Read from MH i2c: 01 07 00 29 2D 00 00 00 00 00 FF 0F 6B [10:28:34]RasterBufferAndPrint [10:28:34]line Счет N : (1)459315 [10:28:34]line ИНН: 02508201610067 [10:28:34]line Контрольно-Кассовый Чек [10:28:34]line ПРОДАЖА [10:28:34]line ТРК (МРК, ГНК) : 22 [10:28:34]line Товар: 2710124130 [10:28:34]line Аи-92-К-5 [10:28:34]line 7.600 * 65.80 [10:28:34]line = 500.08 [10:28:34]line НДС 12% НСП 1% [10:28:34]line > о реализуемом товаре [10:28:34]line ОКРУГЛЕНИЕ: -0.08 [10:28:34]line ИТОГО: 500.00 [10:28:34]line Внесено: 500.00 [10:28:34]line СДАЧА: 0.00 [10:28:34]line НСП 1% : 4.42 [10:28:34]line НДС 12% : 53.11 [10:28:34]line Наличными: 500.00 [10:28:34]line Безнал.: 0.00 [10:28:34]line Место: АЗС № 72 "Партнер Нефть" [10:28:34]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:28:34]line СНО: Общий режим [10:28:34]line Чек 85 15.07.2024 10:28 [10:28:34]line Смена: 448 ФФД: 1.0 [10:28:34]line ЗНМ: 0300000160 [10:28:34]line РНМ: 0000000000090829 [10:28:34]line Версия ККМ: 001 [10:28:34]line ФМ: 0000000000874718 [10:28:34]line ФД: 165212 [10:28:34]line ФПД: 145461541168706 [10:28:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T102837&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165212&fm=145461541168706&tin=02508201610067®Number=0000000000090829&sum=50000 [10:28:34]written 0, free lines is 4095 [10:28:35]Write to MH i2c: 01 00 00 53 2D 80 [10:28:35]Write i2c OK [10:28:35]MH_I2C_Read... [10:28:35]Read from MH i2c: 01 [10:28:35]MH_I2C_Read... [10:28:35]Read from MH i2c: 01 07 00 [10:28:35]MH_I2C_Read... [10:28:35]Read from MH i2c: 01 07 00 53 2D 00 00 00 00 00 EB 0C 7E [10:28:35]RasterBufferAndPrint [10:28:35]line [10:28:35]line [10:28:35]line [10:28:35]line [10:28:35]line [10:28:35]written 0, free lines is 3314 [10:28:35]MH_Cut [10:28:35]Write to MH i2c: D1 01 00 5A 2D 01 59 [10:28:35]Write i2c OK [10:28:35]MH_I2C_Read... [10:28:35]Read from MH i2c: D1 [10:28:35]MH_I2C_Read... [10:28:35]Read from MH i2c: D1 01 00 [10:28:35]MH_I2C_Read... [10:28:35]Read from MH i2c: D1 01 00 5A 2D 00 58 [10:28:35]Write to MH i2c: 01 00 00 5B 2D 88 [10:28:35]Write i2c OK [10:28:35]MH_I2C_Read... [10:28:35]*** Cut start [10:28:35]*** Partial cut [10:28:35]*** CUTSNS_PIN = 1 [10:28:35]*** CUTSNS_PIN = 0 [10:28:36]*** Brake cut motor [10:28:36]Read from MH i2c: 01 [10:28:36]MH_I2C_Read... [10:28:36]*** Stop cut motor [10:28:36]*** Cut end [10:28:36]Read from MH i2c: 01 07 00 [10:28:36]MH_I2C_Read... [10:28:36]Read from MH i2c: 01 07 00 5B 2D 00 00 00 00 00 FF 0F 9D [10:28:36]process_action close_receipt done [10:28:36]requested_data is exist [10:28:36]produce_requested_data [10:28:36]requested_item fm.sn is exist - process it [10:28:36]wFMCommunicate request_size=4 [10:28:36]MH_SAM_APDU [10:28:36]CAPDU: 80 11 00 00 [10:28:36]Write to MH i2c: E2 08 00 5C 2D 80 11 00 00 00 00 00 00 03 [10:28:36]Write i2c OK [10:28:36]MH_I2C_Read... [10:28:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:36]Read from MH i2c: E2 [10:28:36]MH_I2C_Read... [10:28:36]Read from MH i2c: E2 17 00 [10:28:36]MH_I2C_Read... [10:28:36]Read from MH i2c: E2 17 00 5C 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 59 [10:28:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:28:36]wFMCommunicate OK [10:28:36]requested_item fd.num is exist - process it [10:28:36]SAM_PROTO_GetFieldsCounters [10:28:36]wFMCommunicate request_size=4 [10:28:36]MH_SAM_APDU [10:28:36]CAPDU: 80 13 00 00 [10:28:36]Write to MH i2c: E2 08 00 5D 2D 80 13 00 00 00 00 00 00 06 [10:28:36]Write i2c OK [10:28:36]MH_I2C_Read... [10:28:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:28:36]Read from MH i2c: E2 [10:28:36]MH_I2C_Read... [10:28:36]Read from MH i2c: E2 62 00 [10:28:36]MH_I2C_Read... [10:28:36]Read from MH i2c: E2 62 00 5D 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5C 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [10:28:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5C 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:28:36]wFMCommunicate OK [10:28:36]SAM_PROTO_GetFieldsCounters done [10:28:36]requested_item shift.num is exist - process it [10:28:36]requested_item shift.opened is exist - process it [10:28:36]req_shift_opened [10:28:36]FM_GetShiftState [10:28:36]SAM_PROTO_GetShiftState [10:28:36]wFMCommunicate request_size=4 [10:28:36]MH_SAM_APDU [10:28:36]CAPDU: 80 13 01 00 [10:28:36]Write to MH i2c: E2 08 00 5E 2D 80 13 01 00 00 00 00 00 08 [10:28:36]Write i2c OK [10:28:36]MH_I2C_Read... [10:28:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:36]Read from MH i2c: E2 [10:28:36]MH_I2C_Read... [10:28:36]Read from MH i2c: E2 0E 00 [10:28:36]MH_I2C_Read... [10:28:36]Read from MH i2c: E2 0E 00 5E 2D 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 E1 [10:28:36]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:28:36]wFMCommunicate OK [10:28:36]SAM_PROTO_GetShiftState done [10:28:36]FM_GetShiftState done [10:28:36]req_shift_opened done [10:28:36]requested_item shift.open_date is exist - process it [10:28:36]req_shift_open_date [10:28:36]req_shift_open_date done [10:28:36]produce_requested_data done [10:28:36]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165212,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [10:28:36]process_action_free close_receipt [10:28:36]json_value_free [10:28:36]json_value_free done [10:28:36]process_json_proto returns [10:28:36]Send response to host [10:28:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165212,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [10:28:36]free response buf [10:28:36]execute_script done [10:28:36]execute_script returns [10:28:36]free content buf [10:28:36]Sock 9.Close socket [10:28:36]Sock 9.Thread stoped [10:29:01]ConnectInit Can't connect to host [10:29:01]CommunicateWithHost connect error [10:29:01]CommunicateWithHost err = -1 [10:29:01]OFD Sender: Server communicate error [10:29:01]OFD Sender: Processing packet 165210 [packets to send 108, broken 105] [10:29:01]ProducePacketName [10:29:01]name=ofd_packets/00165210 [10:29:01]OFD Sender: To server: pG, [10:29:01]CommunicateWithHost lk.salyk.kg:30040 [10:29:01]ConnectInit lk.salyk.kg [10:29:01]Connected sock=9 [10:29: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 37 31 38 0F 01 00 00 C1 75 07 01 EC E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 69 F9 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5A 85 02 00 35 04 06 00 25 AA 07 F2 9B B0 A9 AC 73 02 C4 C6 C1 64 [10:29:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 EE EE 47 00 80 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5A 85 02 00 F4 03 04 00 7A A0 94 66 B6 04 01 00 00 CA CF 9E 5B 26 83 DB 59 [10:29:01]CommunicateWithHost err = 0 [10:29:01]CheckOFDResponse [10:29:01]1017 (14) - 77093643461234 [10:29:01]1041 (16) - 0000000000874718 [10:29:01]1040 (4) - 165210 [10:29:01]1012 (4) - 15.07.2024 04:07 [10:29:01]1206 (1) - 0 [10:29:01]OFD Sender: Remove packet 165210 [10:29:01]ProducePacketName [10:29:01]name=ofd_packets/00165210 [10:29:01]NVStorageDeleteData [10:29:01]OFD Sender: Processing packet 165211 [packets to send 107, broken 105] [10:29:01]ProducePacketName [10:29:01]name=ofd_packets/00165211 [10:29:01]OFD Sender: To server: pG, [10:29:01]CommunicateWithHost lk.salyk.kg:30040 [10:29:01]ConnectInit lk.salyk.kg [10:29:02]Connected sock=9 [10:29:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 7E C9 04 01 00 1F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 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 54 00 00 00 F4 03 04 00 6E F9 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5B 85 02 00 35 04 06 00 0D 7E F4 3A EE 35 09 F1 AD E4 FB CD 0B 95 [10:29:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 84 39 47 00 E8 A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5B 85 02 00 F4 03 04 00 7B A0 94 66 B6 04 01 00 00 C5 CE 28 BF 3C 9E C1 88 [10:29:02]CommunicateWithHost err = 0 [10:29:02]CheckOFDResponse [10:29:02]1017 (14) - 77093643461234 [10:29:02]1041 (16) - 0000000000874718 [10:29:02]1040 (4) - 165211 [10:29:02]1012 (4) - 15.07.2024 04:07 [10:29:02]1206 (1) - 0 [10:29:02]OFD Sender: Remove packet 165211 [10:29:02]ProducePacketName [10:29:02]name=ofd_packets/00165211 [10:29:02]NVStorageDeleteData [10:29:02]OFD Sender: Processing packet 165212 [packets to send 106, broken 105] [10:29:02]ProducePacketName [10:29:02]name=ofd_packets/00165212 [10:29:02]OFD Sender: To server: pG, [10:29:02]CommunicateWithHost lk.salyk.kg:30040 [10:29:02]ConnectInit lk.salyk.kg [10:29:02]Connected sock=9 [10:29:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 2B 78 07 01 98 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 D5 F9 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5C 85 02 00 35 04 06 00 84 4B E7 7D 66 42 37 7D 9F B2 DC 35 4B 5C [10:29:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 64 76 47 00 03 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5C 85 02 00 F4 03 04 00 7C A0 94 66 B6 04 01 00 00 9F BB 3C 4D 4A C3 88 CD [10:29:03]CommunicateWithHost err = 0 [10:29:03]CheckOFDResponse [10:29:03]1017 (14) - 77093643461234 [10:29:03]1041 (16) - 0000000000874718 [10:29:03]1040 (4) - 165212 [10:29:03]1012 (4) - 15.07.2024 04:07 [10:29:03]1206 (1) - 0 [10:29:03]OFD Sender: Remove packet 165212 [10:29:03]ProducePacketName [10:29:03]name=ofd_packets/00165212 [10:29:03]NVStorageDeleteData [10:29:03]OFD Sender: No OFD packet to send [10:29:08]OFD Sender: No OFD packet to send [10:29:13]OFD Sender: No OFD packet to send [10:29:18]OFD Sender: No OFD packet to send [10:29:23]OFD Sender: No OFD packet to send [10:29:28]OFD Sender: No OFD packet to send [10:29:33]OFD Sender: No OFD packet to send [10:29:38]OFD Sender: No OFD packet to send [10:29:43]OFD Sender: No OFD packet to send [10:29:48]OFD Sender: No OFD packet to send [10:29:53]OFD Sender: No OFD packet to send [10:29:58]OFD Sender: No OFD packet to send [10:30:03]OFD Sender: No OFD packet to send [10:30:08]OFD Sender: No OFD packet to send [10:30:13]OFD Sender: No OFD packet to send [10:30:14]accept exits with 7 [10:30:14]New connection [10:30:14]New thread 3066785124 created [10:30:14]Thread 3066928484 joined [10:30:14]Waiting for new connection... [10:30:14] Sock 7.Parse request [10:30:14]Sock 7.Check first char [10:30:14]Sock 7.First char is OK [10:30:14]request: POST /json_proto HTTP/1.0 [10:30:14]Method: POST [10:30:14]URL: /json_proto [10:30:14]Method is POST - this is cgi request [10:30:14]url: /json_proto [10:30:14]query_string will be loaded in cgi processing [10:30:14]execute_cgi json_proto POST (null) [10:30:14]execute_cgi path=json_proto method=POST [10:30:14]POST find Content-Length [10:30:14]Host: 172.17.56.4:8080 [10:30:14]Content-Length: 674 [10:30:14]Content-Type: application/json [10:30:14] [10:30:14]POST finish read [10:30:14]Found Content-Length = 674 [10:30:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459316", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "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:30:14]execute_script... [10:30: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)459316", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "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:30:14]POST & json_proto [10:30:14]process_json_proto [10:30:14]json parsed OK: [10:30:14]protocol is kg_v1.0 [10:30:14]action value=close_receipt [10:30:14]process_action close_receipt [10:30:14]cmd_close_receipt [10:30:14]MH_GetDate [10:30:14]Write to MH i2c: F0 00 00 5F 2D 7B [10:30:14]Write i2c OK [10:30:14]MH_I2C_Read... [10:30:14]Read from MH i2c: F0 [10:30:14]MH_I2C_Read... [10:30:14]Read from MH i2c: F0 09 00 [10:30:14]MH_I2C_Read... [10:30:14]Read from MH i2c: F0 09 00 5F 2D 00 3B FA 94 66 C9 DC B2 64 6E [10:30:14]GetLastDocTimeStamp 1721039317 [10:30:14]current date 1721039419 [10:30:14]FM_GetShiftState [10:30:14]SAM_PROTO_GetShiftState [10:30:14]wFMCommunicate request_size=4 [10:30:14]MH_SAM_APDU [10:30:14]CAPDU: 80 13 01 00 [10:30:14]Write to MH i2c: E2 08 00 60 2D 80 13 01 00 00 00 00 00 0A [10:30:14]Write i2c OK [10:30:14]MH_I2C_Read... [10:30:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:14]Read from MH i2c: E2 [10:30:14]MH_I2C_Read... [10:30:14]Read from MH i2c: E2 0E 00 [10:30:14]MH_I2C_Read... [10:30:14]Read from MH i2c: E2 0E 00 60 2D 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 E3 [10:30:14]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:30:14]wFMCommunicate OK [10:30:14]SAM_PROTO_GetShiftState done [10:30:14]FM_GetShiftState done [10:30:14]opened in 1721003876 [10:30:14]opened+sec_in_day 1721090276 [10:30:14]quantity*price = 50042 [10:30:14]sum+1 = 50043 [10:30:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 86 15.07.2024 10:30 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165213 ФПД: 52356136255899 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T103019&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165213&fm=52356136255899&tin=02508201610067®Number=0000000000090829&sum=50000 [10:30:15]StoreToDocumentArchive [10:30:15]shift 448 fd 165213 [10:30:15]save to /storage/0448/doc_00165213 [10:30:15]save last doc name /storage/0448/doc_00165213 to /storage/kkm_last_doc_name [10:30:15]save OK [10:30:15]Clear old archive folders... [10:30:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:30:15]tlvbuf is 013973D0 [10:30:15]SAM_PROTO_ClearQueue [10:30:15]wFMCommunicate request_size=4 [10:30:15]MH_SAM_APDU [10:30:15]CAPDU: 80 09 00 00 [10:30:15]Write to MH i2c: E2 08 00 6D 2D 80 09 00 00 00 00 00 00 0C [10:30:15]Write i2c OK [10:30:15]MH_I2C_Read... [10:30:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:30:15]Read from MH i2c: E2 [10:30:15]MH_I2C_Read... [10:30:15]Read from MH i2c: E2 03 00 [10:30:15]MH_I2C_Read... [10:30:15]Read from MH i2c: E2 03 00 6D 2D 00 90 00 0E [10:30:15]RAPDU: 90 00 [10:30:15]wFMCommunicate OK [10:30:15]SAM_PROTO_ClearQueue done [10:30:15]KKMCreateOFDPacket [10:30:15]OFDProtocolAddRootSTLVToBuf [10:30:15]FM_MakeSignedData [10:30:15]FM_MakeSignedData [10:30:15]SAM_PROTO_SignData [10:30:15]wFMCommunicate request_size=4 [10:30:15]MH_SAM_APDU [10:30:15]CAPDU: 80 0D 01 02 [10:30:15]Write to MH i2c: E2 08 00 6E 2D 80 0D 01 02 00 00 00 00 14 [10:30:15]Write i2c OK [10:30:15]MH_I2C_Read... [10:30:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:30:15]Read from MH i2c: E2 [10:30:15]MH_I2C_Read... [10:30:15]Read from MH i2c: E2 03 00 [10:30:15]MH_I2C_Read... [10:30:15]Read from MH i2c: E2 03 00 6E 2D 00 90 00 0F [10:30:15]RAPDU: 90 00 [10:30:15]wFMCommunicate OK [10:30:15]wFMCommunicate request_size=255 [10:30:15]MH_SAM_APDU [10:30:15]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A 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 56 00 00 00 F4 03 04 00 3B FA 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5D 85 02 00 35 04 06 00 2F 9E 1C E7 [10:30:15]Write to MH i2c: E2 02 01 6F 2D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A 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 56 00 00 00 F4 03 04 00 3B FA 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5D 85 02 00 35 04 06 00 2F 9E 1C E7 00 00 E3 [10:30:15]Write i2c OK [10:30:15]MH_I2C_Read... [10:30:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:16]Read from MH i2c: E2 [10:30:16]MH_I2C_Read... [10:30:16]Read from MH i2c: E2 03 00 [10:30:16]MH_I2C_Read... [10:30:16]Read from MH i2c: E2 03 00 6F 2D 00 90 00 10 [10:30:16]RAPDU: 90 00 [10:30:16]wFMCommunicate OK [10:30:16]wFMCommunicate request_size=7 [10:30:16]MH_SAM_APDU [10:30:16]CAPDU: 80 0D 02 02 02 41 9B [10:30:16]Write to MH i2c: E2 0A 00 70 2D 80 0D 02 02 02 00 41 9B 00 00 F7 [10:30:16]Write i2c OK [10:30:16]MH_I2C_Read... [10:30:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:16]Read from MH i2c: E2 [10:30:16]MH_I2C_Read... [10:30:16]Read from MH i2c: E2 03 00 [10:30:16]MH_I2C_Read... [10:30:16]Read from MH i2c: E2 03 00 70 2D 00 90 00 11 [10:30:16]RAPDU: 90 00 [10:30:16]wFMCommunicate OK [10:30:16]wFMCommunicate request_size=4 [10:30:16]MH_SAM_APDU [10:30:16]CAPDU: 80 0D 03 02 [10:30:16]Write to MH i2c: E2 08 00 71 2D 80 0D 03 02 00 00 00 00 19 [10:30:16]Write i2c OK [10:30:16]MH_I2C_Read... [10:30:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:30:16]Read from MH i2c: E2 [10:30:16]MH_I2C_Read... [10:30:16]Read from MH i2c: E2 0B 00 [10:30:16]MH_I2C_Read... [10:30:16]Read from MH i2c: E2 0B 00 71 2D 00 47 9C 8D 6A 49 0C D9 74 90 00 96 [10:30:16]RAPDU: 47 9C 8D 6A 49 0C D9 74 90 00 [10:30:16]wFMCommunicate OK [10:30:16]SAM_PROTO_SignData done [10:30:16]FM_MakeSignedData done [10:30:16]CreateOFDProtocolMessage [10:30:16]wFMCommunicate request_size=4 [10:30:16]MH_SAM_APDU [10:30:16]CAPDU: 80 11 00 00 [10:30:16]Write to MH i2c: E2 08 00 72 2D 80 11 00 00 00 00 00 00 19 [10:30:16]Write i2c OK [10:30:16]MH_I2C_Read... [10:30:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:16]Read from MH i2c: E2 [10:30:16]MH_I2C_Read... [10:30:16]Read from MH i2c: E2 17 00 [10:30:16]MH_I2C_Read... [10:30:16]Read from MH i2c: E2 17 00 72 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6F [10:30:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:30:16]wFMCommunicate OK [10:30:16]CreateOFDProtocolMessage done [10:30:16]OFDSenderStorePacket 165213 [10:30:16]StoreOFDPacket docnum=165213 [10:30:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 C3 56 04 01 32 14 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A 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 56 00 00 00 F4 03 04 00 3B FA 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5D 85 02 00 35 04 06 00 2F 9E 1C E7 41 9B 47 9C 8D 6A 49 0C D9 74 [10:30:16]CheckFolder [10:30:16]dirname=/storage/ofd_packets [10:30:16]CheckFolder done [10:30:16]ProducePacketName [10:30:16]name=ofd_packets/00165213 [10:30:16]NVStorageSaveData ofd_packets/00165213 [10:30:16]File name is /storage/ofd_packets/00165213 [10:30:16]Write 298 bytes [10:30:16]NVStorageSaveData done [10:30:16]OFDSenderStorePacket done [10:30:16]KKMCreateOFDPacket done [10:30:16]NVStorageSaveData kkm_last_timestamp [10:30:16]File name is /storage/kkm_last_timestamp [10:30:16]Write 4 bytes [10:30:16]NVStorageSaveData done [10:30:16]ExternCall_PrintAddStr [10:30:16]wPrintStart [10:30:16]Write to MH i2c: 01 00 00 73 2D A0 [10:30:16]Write i2c OK [10:30:16]MH_I2C_Read... [10:30:16]Read from MH i2c: 01 [10:30:16]MH_I2C_Read... [10:30:16]Read from MH i2c: 01 07 00 [10:30:16]MH_I2C_Read... [10:30:16]Read from MH i2c: 01 07 00 73 2D 00 00 00 00 00 FF 0F B5 [10:30:16]RasterBufferAndPrint [10:30:16]line Счет N : (1)459316 [10:30:16]line ИНН: 02508201610067 [10:30:16]line Контрольно-Кассовый Чек [10:30:16]line ПРОДАЖА [10:30:16]line ТРК (МРК, ГНК) : 11 [10:30:16]line Товар: 2710194210 [10:30:16]line ДТ-К-5 [10:30:16]line 6.960 * 71.90 [10:30:16]line = 500.42 [10:30:16]line НДС 12% НСП 1% [10:30:16]line > о реализуемом товаре [10:30:16]line ОКРУГЛЕНИЕ: -0.42 [10:30:16]line ИТОГО: 500.00 [10:30:16]line Внесено: 500.00 [10:30:16]line СДАЧА: 0.00 [10:30:16]line НСП 1% : 4.43 [10:30:16]line НДС 12% : 53.14 [10:30:16]line Наличными: 500.00 [10:30:16]line Безнал.: 0.00 [10:30:16]line Место: АЗС № 72 "Партнер Нефть" [10:30:16]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:30:16]line СНО: Общий режим [10:30:16]line Чек 86 15.07.2024 10:30 [10:30:16]line Смена: 448 ФФД: 1.0 [10:30:16]line ЗНМ: 0300000160 [10:30:16]line РНМ: 0000000000090829 [10:30:16]line Версия ККМ: 001 [10:30:16]line ФМ: 0000000000874718 [10:30:16]line ФД: 165213 [10:30:16]line ФПД: 52356136255899 [10:30:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T103019&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165213&fm=52356136255899&tin=02508201610067®Number=0000000000090829&sum=50000 [10:30:16]OFD Sender: Processing packet 165213 [packets to send 106, broken 105] [10:30:16]ProducePacketName [10:30:16]name=ofd_packets/00165213 [10:30:16]OFD Sender: To server: pG, [10:30:16]CommunicateWithHost lk.salyk.kg:30040 [10:30:16]ConnectInit lk.salyk.kg [10:30:16]written 0, free lines is 4095 [10:30:16]Connected sock=10 [10:30: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 37 31 38 0C 01 00 00 C3 56 04 01 32 14 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A 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 56 00 00 00 F4 03 04 00 3B FA 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5D 85 02 00 35 04 06 00 2F 9E 1C E7 41 9B 47 9C 8D 6A 49 0C D9 74 [10:30:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 DE 1E 47 00 67 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5D 85 02 00 F4 03 04 00 C5 A0 94 66 B6 04 01 00 00 53 B2 A8 66 7E 04 BF FE [10:30:16]CommunicateWithHost err = 0 [10:30:16]CheckOFDResponse [10:30:16]1017 (14) - 77093643461234 [10:30:16]1041 (16) - 0000000000874718 [10:30:16]1040 (4) - 165213 [10:30:16]1012 (4) - 15.07.2024 04:08 [10:30:16]1206 (1) - 0 [10:30:16]OFD Sender: Remove packet 165213 [10:30:16]ProducePacketName [10:30:16]name=ofd_packets/00165213 [10:30:16]NVStorageDeleteData [10:30:16]Write to MH i2c: 01 00 00 9D 2D CA [10:30:16]Write i2c OK [10:30:16]MH_I2C_Read... [10:30:16]Read from MH i2c: 01 [10:30:16]MH_I2C_Read... [10:30:16]Read from MH i2c: 01 07 00 [10:30:16]MH_I2C_Read... [10:30:16]Read from MH i2c: 01 07 00 9D 2D 00 00 00 00 00 E9 0C C6 [10:30:16]RasterBufferAndPrint [10:30:16]line [10:30:16]line [10:30:16]line [10:30:16]line [10:30:16]line [10:30:16]written 0, free lines is 3312 [10:30:16]MH_Cut [10:30:16]Write to MH i2c: D1 01 00 A4 2D 01 A3 [10:30:16]Write i2c OK [10:30:16]MH_I2C_Read... [10:30:16]Read from MH i2c: D1 [10:30:16]MH_I2C_Read... [10:30:16]Read from MH i2c: D1 01 00 [10:30:16]MH_I2C_Read... [10:30:16]Read from MH i2c: D1 01 00 A4 2D 00 A2 [10:30:16]Write to MH i2c: 01 00 00 A5 2D D2 [10:30:16]Write i2c OK [10:30:16]MH_I2C_Read... [10:30:17]OFD Sender: No OFD packet to send [10:30:17]*** Cut start [10:30:17]*** Partial cut [10:30:17]*** CUTSNS_PIN = 1 [10:30:17]*** CUTSNS_PIN = 0 [10:30:17]*** Brake cut motor [10:30:18]Read from MH i2c: 01 [10:30:18]MH_I2C_Read... [10:30:18]*** Stop cut motor [10:30:18]*** Cut end [10:30:18]Read from MH i2c: 01 07 00 [10:30:18]MH_I2C_Read... [10:30:18]Read from MH i2c: 01 07 00 A5 2D 00 00 00 00 00 FF 0F E7 [10:30:18]process_action close_receipt done [10:30:18]requested_data is exist [10:30:18]produce_requested_data [10:30:18]requested_item fm.sn is exist - process it [10:30:18]wFMCommunicate request_size=4 [10:30:18]MH_SAM_APDU [10:30:18]CAPDU: 80 11 00 00 [10:30:18]Write to MH i2c: E2 08 00 A6 2D 80 11 00 00 00 00 00 00 4D [10:30:18]Write i2c OK [10:30:18]MH_I2C_Read... [10:30:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:18]Read from MH i2c: E2 [10:30:18]MH_I2C_Read... [10:30:18]Read from MH i2c: E2 17 00 [10:30:18]MH_I2C_Read... [10:30:18]Read from MH i2c: E2 17 00 A6 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A3 [10:30:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:30:18]wFMCommunicate OK [10:30:18]requested_item fd.num is exist - process it [10:30:18]SAM_PROTO_GetFieldsCounters [10:30:18]wFMCommunicate request_size=4 [10:30:18]MH_SAM_APDU [10:30:18]CAPDU: 80 13 00 00 [10:30:18]Write to MH i2c: E2 08 00 A7 2D 80 13 00 00 00 00 00 00 50 [10:30:18]Write i2c OK [10:30:18]MH_I2C_Read... [10:30:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:30:18]Read from MH i2c: E2 [10:30:18]MH_I2C_Read... [10:30:18]Read from MH i2c: E2 62 00 [10:30:18]MH_I2C_Read... [10:30:18]Read from MH i2c: E2 62 00 A7 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5D 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [10:30: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5D 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:30:18]wFMCommunicate OK [10:30:18]SAM_PROTO_GetFieldsCounters done [10:30:18]requested_item shift.num is exist - process it [10:30:18]requested_item shift.opened is exist - process it [10:30:18]req_shift_opened [10:30:18]FM_GetShiftState [10:30:18]SAM_PROTO_GetShiftState [10:30:18]wFMCommunicate request_size=4 [10:30:18]MH_SAM_APDU [10:30:18]CAPDU: 80 13 01 00 [10:30:18]Write to MH i2c: E2 08 00 A8 2D 80 13 01 00 00 00 00 00 52 [10:30:18]Write i2c OK [10:30:18]MH_I2C_Read... [10:30:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:18]Read from MH i2c: E2 [10:30:18]MH_I2C_Read... [10:30:18]Read from MH i2c: E2 0E 00 [10:30:18]MH_I2C_Read... [10:30:18]Read from MH i2c: E2 0E 00 A8 2D 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 2B [10:30:18]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:30:18]wFMCommunicate OK [10:30:18]SAM_PROTO_GetShiftState done [10:30:18]FM_GetShiftState done [10:30:18]req_shift_opened done [10:30:18]requested_item shift.open_date is exist - process it [10:30:18]req_shift_open_date [10:30:18]req_shift_open_date done [10:30:18]produce_requested_data done [10:30:18]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165213,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [10:30:18]process_action_free close_receipt [10:30:18]json_value_free [10:30:18]json_value_free done [10:30:18]process_json_proto returns [10:30:18]Send response to host [10:30:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165213,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [10:30:18]free response buf [10:30:18]execute_script done [10:30:18]execute_script returns [10:30:18]free content buf [10:30:18]Sock 7.Close socket [10:30:18]Sock 7.Thread stoped [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:26]accept exits with 9 [10:31:26]New connection [10:31:26]New thread 3066928484 created [10:31:26]Thread 3066785124 joined [10:31:26]Waiting for new connection... [10:31:26] Sock 9.Parse request [10:31:26]Sock 9.Check first char [10:31:26]Sock 9.First char is OK [10:31:26]request: POST /json_proto HTTP/1.0 [10:31:26]Method: POST [10:31:26]URL: /json_proto [10:31:26]Method is POST - this is cgi request [10:31:26]url: /json_proto [10:31:26]query_string will be loaded in cgi processing [10:31:26]execute_cgi json_proto POST (null) [10:31:26]execute_cgi path=json_proto method=POST [10:31:26]POST find Content-Length [10:31:26]Host: 172.17.56.4:8080 [10:31:26]Content-Length: 678 [10:31:26]Content-Type: application/json [10:31:26] [10:31:26]POST finish read [10:31:26]Found Content-Length = 678 [10:31:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459317", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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" ] } } [10:31:26]execute_script... [10:31:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459317", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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" ] } } [10:31:26]POST & json_proto [10:31:26]process_json_proto [10:31:26]json parsed OK: [10:31:26]protocol is kg_v1.0 [10:31:26]action value=close_receipt [10:31:26]process_action close_receipt [10:31:26]cmd_close_receipt [10:31:26]MH_GetDate [10:31:26]Write to MH i2c: F0 00 00 A9 2D C5 [10:31:26]Write i2c OK [10:31:26]MH_I2C_Read... [10:31:26]Read from MH i2c: F0 [10:31:26]MH_I2C_Read... [10:31:26]Read from MH i2c: F0 09 00 [10:31:26]MH_I2C_Read... [10:31:26]Read from MH i2c: F0 09 00 A9 2D 00 83 FA 94 66 C9 DC B2 64 00 [10:31:26]GetLastDocTimeStamp 1721039419 [10:31:26]current date 1721039491 [10:31:26]FM_GetShiftState [10:31:26]SAM_PROTO_GetShiftState [10:31:26]wFMCommunicate request_size=4 [10:31:26]MH_SAM_APDU [10:31:26]CAPDU: 80 13 01 00 [10:31:26]Write to MH i2c: E2 08 00 AA 2D 80 13 01 00 00 00 00 00 54 [10:31:26]Write i2c OK [10:31:26]MH_I2C_Read... [10:31:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:26]Read from MH i2c: E2 [10:31:26]MH_I2C_Read... [10:31:26]Read from MH i2c: E2 0E 00 [10:31:26]MH_I2C_Read... [10:31:26]Read from MH i2c: E2 0E 00 AA 2D 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 2D [10:31:26]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:31:26]wFMCommunicate OK [10:31:26]SAM_PROTO_GetShiftState done [10:31:26]FM_GetShiftState done [10:31:26]opened in 1721003876 [10:31:26]opened+sec_in_day 1721090276 [10:31:26]quantity*price = 70011 [10:31:26]sum+1 = 70012 [10:31:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 87 15.07.2024 10:31 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165214 ФПД: 71654462114823 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T103131&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165214&fm=71654462114823&tin=02508201610067®Number=0000000000090829&sum=70000 [10:31:28]StoreToDocumentArchive [10:31:28]shift 448 fd 165214 [10:31:28]save to /storage/0448/doc_00165214 [10:31:28]save last doc name /storage/0448/doc_00165214 to /storage/kkm_last_doc_name [10:31:28]save OK [10:31:28]Clear old archive folders... [10:31:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:31:28]tlvbuf is 0140E820 [10:31:28]SAM_PROTO_ClearQueue [10:31:28]wFMCommunicate request_size=4 [10:31:28]MH_SAM_APDU [10:31:28]CAPDU: 80 09 00 00 [10:31:28]Write to MH i2c: E2 08 00 B7 2D 80 09 00 00 00 00 00 00 56 [10:31:28]Write i2c OK [10:31:28]MH_I2C_Read... [10:31:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:31:28]Read from MH i2c: E2 [10:31:28]MH_I2C_Read... [10:31:28]Read from MH i2c: E2 03 00 [10:31:28]MH_I2C_Read... [10:31:28]Read from MH i2c: E2 03 00 B7 2D 00 90 00 58 [10:31:28]RAPDU: 90 00 [10:31:28]wFMCommunicate OK [10:31:28]SAM_PROTO_ClearQueue done [10:31:28]KKMCreateOFDPacket [10:31:28]OFDProtocolAddRootSTLVToBuf [10:31:28]FM_MakeSignedData [10:31:28]FM_MakeSignedData [10:31:28]SAM_PROTO_SignData [10:31:28]wFMCommunicate request_size=4 [10:31:28]MH_SAM_APDU [10:31:28]CAPDU: 80 0D 01 02 [10:31:28]Write to MH i2c: E2 08 00 B8 2D 80 0D 01 02 00 00 00 00 5E [10:31:28]Write i2c OK [10:31:28]MH_I2C_Read... [10:31:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:31:28]Read from MH i2c: E2 [10:31:28]MH_I2C_Read... [10:31:28]Read from MH i2c: E2 03 00 [10:31:28]MH_I2C_Read... [10:31:28]Read from MH i2c: E2 03 00 B8 2D 00 90 00 59 [10:31:28]RAPDU: 90 00 [10:31:28]wFMCommunicate OK [10:31:28]wFMCommunicate request_size=255 [10:31:28]MH_SAM_APDU [10:31:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 57 00 00 00 F4 03 04 00 83 FA 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5E 85 02 00 35 04 06 00 41 [10:31:28]Write to MH i2c: E2 02 01 B9 2D 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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 57 00 00 00 F4 03 04 00 83 FA 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5E 85 02 00 35 04 06 00 41 00 00 D0 [10:31:28]Write i2c OK [10:31:28]MH_I2C_Read... [10:31:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:28]Read from MH i2c: E2 [10:31:28]MH_I2C_Read... [10:31:28]Read from MH i2c: E2 03 00 [10:31:28]MH_I2C_Read... [10:31:28]Read from MH i2c: E2 03 00 B9 2D 00 90 00 5A [10:31:28]RAPDU: 90 00 [10:31:28]wFMCommunicate OK [10:31:28]wFMCommunicate request_size=10 [10:31:28]MH_SAM_APDU [10:31:28]CAPDU: 80 0D 02 02 05 2B 5A C2 CC 07 [10:31:28]Write to MH i2c: E2 0D 00 BA 2D 80 0D 02 02 05 00 2B 5A C2 CC 07 00 00 85 [10:31:28]Write i2c OK [10:31:28]MH_I2C_Read... [10:31:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:28]Read from MH i2c: E2 [10:31:28]MH_I2C_Read... [10:31:28]Read from MH i2c: E2 03 00 [10:31:28]MH_I2C_Read... [10:31:28]Read from MH i2c: E2 03 00 BA 2D 00 90 00 5B [10:31:28]RAPDU: 90 00 [10:31:28]wFMCommunicate OK [10:31:28]wFMCommunicate request_size=4 [10:31:28]MH_SAM_APDU [10:31:28]CAPDU: 80 0D 03 02 [10:31:28]Write to MH i2c: E2 08 00 BB 2D 80 0D 03 02 00 00 00 00 63 [10:31:28]Write i2c OK [10:31:28]MH_I2C_Read... [10:31:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:31:28]Read from MH i2c: E2 [10:31:28]MH_I2C_Read... [10:31:28]Read from MH i2c: E2 0B 00 [10:31:28]MH_I2C_Read... [10:31:28]Read from MH i2c: E2 0B 00 BB 2D 00 FF BE 5A 2D 60 F2 12 1D 90 00 29 [10:31:28]RAPDU: FF BE 5A 2D 60 F2 12 1D 90 00 [10:31:28]wFMCommunicate OK [10:31:28]SAM_PROTO_SignData done [10:31:28]FM_MakeSignedData done [10:31:28]CreateOFDProtocolMessage [10:31:28]wFMCommunicate request_size=4 [10:31:28]MH_SAM_APDU [10:31:28]CAPDU: 80 11 00 00 [10:31:28]Write to MH i2c: E2 08 00 BC 2D 80 11 00 00 00 00 00 00 63 [10:31:28]Write i2c OK [10:31:28]MH_I2C_Read... [10:31:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:28]Read from MH i2c: E2 [10:31:28]MH_I2C_Read... [10:31:28]Read from MH i2c: E2 17 00 [10:31:28]MH_I2C_Read... [10:31:28]Read from MH i2c: E2 17 00 BC 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B9 [10:31:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:31:28]wFMCommunicate OK [10:31:28]CreateOFDProtocolMessage done [10:31:28]OFDSenderStorePacket 165214 [10:31:28]StoreOFDPacket docnum=165214 [10:31:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F8 BC 07 01 13 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 57 00 00 00 F4 03 04 00 83 FA 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5E 85 02 00 35 04 06 00 41 2B 5A C2 CC 07 FF BE 5A 2D 60 F2 12 1D [10:31:28]CheckFolder [10:31:28]dirname=/storage/ofd_packets [10:31:28]CheckFolder done [10:31:28]ProducePacketName [10:31:28]name=ofd_packets/00165214 [10:31:28]NVStorageSaveData ofd_packets/00165214 [10:31:28]File name is /storage/ofd_packets/00165214 [10:31:28]Write 301 bytes [10:31:28]NVStorageSaveData done [10:31:28]OFDSenderStorePacket done [10:31:28]KKMCreateOFDPacket done [10:31:28]NVStorageSaveData kkm_last_timestamp [10:31:28]File name is /storage/kkm_last_timestamp [10:31:28]Write 4 bytes [10:31:28]NVStorageSaveData done [10:31:28]ExternCall_PrintAddStr [10:31:28]wPrintStart [10:31:28]Write to MH i2c: 01 00 00 BD 2D EA [10:31:28]Write i2c OK [10:31:28]MH_I2C_Read... [10:31:28]Read from MH i2c: 01 [10:31:28]MH_I2C_Read... [10:31:28]Read from MH i2c: 01 07 00 [10:31:28]MH_I2C_Read... [10:31:28]Read from MH i2c: 01 07 00 BD 2D 00 00 00 00 00 FF 0F FF [10:31:28]RasterBufferAndPrint [10:31:28]line Счет N : (1)459317 [10:31:28]line ИНН: 02508201610067 [10:31:28]line Контрольно-Кассовый Чек [10:31:28]line ПРОДАЖА [10:31:28]line ТРК (МРК, ГНК) : 22 [10:31:28]line Товар: 2710124130 [10:31:28]line Аи-92-К-5 [10:31:28]line 10.640 * 65.80 [10:31:28]line = 700.11 [10:31:28]line НДС 12% НСП 1% [10:31:28]line > о реализуемом товаре [10:31:28]line ОКРУГЛЕНИЕ: -0.11 [10:31:28]line ИТОГО: 700.00 [10:31:28]line Внесено: 700.00 [10:31:28]line СДАЧА: 0.00 [10:31:28]line НСП 1% : 6.20 [10:31:28]line НДС 12% : 74.35 [10:31:28]line Наличными: 700.00 [10:31:28]line Безнал.: 0.00 [10:31:28]line Место: АЗС № 72 "Партнер Нефть" [10:31:28]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:31:28]line СНО: Общий режим [10:31:28]line Чек 87 15.07.2024 10:31 [10:31:28]line Смена: 448 ФФД: 1.0 [10:31:28]line ЗНМ: 0300000160 [10:31:28]line РНМ: 0000000000090829 [10:31:28]line Версия ККМ: 001 [10:31:28]line ФМ: 0000000000874718 [10:31:28]line ФД: 165214 [10:31:28]line ФПД: 71654462114823 [10:31:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T103131&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165214&fm=71654462114823&tin=02508201610067®Number=0000000000090829&sum=70000 [10:31:28]OFD Sender: Processing packet 165214 [packets to send 106, broken 105] [10:31:28]ProducePacketName [10:31:28]name=ofd_packets/00165214 [10:31:28]OFD Sender: To server: pG, [10:31:28]CommunicateWithHost lk.salyk.kg:30040 [10:31:28]ConnectInit lk.salyk.kg [10:31:28]written 0, free lines is 4095 [10:31:29]Connected sock=10 [10:31:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F8 BC 07 01 13 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 57 00 00 00 F4 03 04 00 83 FA 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5E 85 02 00 35 04 06 00 41 2B 5A C2 CC 07 FF BE 5A 2D 60 F2 12 1D [10:31:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 26 45 47 00 48 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5E 85 02 00 F4 03 04 00 0E A1 94 66 B6 04 01 00 00 B6 05 09 47 34 15 BE DE [10:31:29]CommunicateWithHost err = 0 [10:31:29]CheckOFDResponse [10:31:29]1017 (14) - 77093643461234 [10:31:29]1041 (16) - 0000000000874718 [10:31:29]1040 (4) - 165214 [10:31:29]1012 (4) - 15.07.2024 04:09 [10:31:29]1206 (1) - 0 [10:31:29]OFD Sender: Remove packet 165214 [10:31:29]ProducePacketName [10:31:29]name=ofd_packets/00165214 [10:31:29]NVStorageDeleteData [10:31:29]Write to MH i2c: 01 00 00 E7 2D 14 [10:31:29]Write i2c OK [10:31:29]MH_I2C_Read... [10:31:29]Read from MH i2c: 01 [10:31:29]MH_I2C_Read... [10:31:29]Read from MH i2c: 01 07 00 [10:31:29]MH_I2C_Read... [10:31:29]Read from MH i2c: 01 07 00 E7 2D 00 00 00 00 00 F3 0C 1A [10:31:29]RasterBufferAndPrint [10:31:29]line [10:31:29]line [10:31:29]line [10:31:29]line [10:31:29]line [10:31:29]written 0, free lines is 3322 [10:31:29]MH_Cut [10:31:29]Write to MH i2c: D1 01 00 EE 2D 01 ED [10:31:29]Write i2c OK [10:31:29]MH_I2C_Read... [10:31:29]Read from MH i2c: D1 [10:31:29]MH_I2C_Read... [10:31:29]Read from MH i2c: D1 01 00 [10:31:29]MH_I2C_Read... [10:31:29]Read from MH i2c: D1 01 00 EE 2D 00 EC [10:31:29]Write to MH i2c: 01 00 00 EF 2D 1C [10:31:29]Write i2c OK [10:31:29]MH_I2C_Read... [10:31:29]OFD Sender: No OFD packet to send [10:31:30]*** Cut start [10:31:30]*** Partial cut [10:31:30]*** CUTSNS_PIN = 1 [10:31:30]*** CUTSNS_PIN = 0 [10:31:30]*** Brake cut motor [10:31:30]Read from MH i2c: 01 [10:31:30]MH_I2C_Read... [10:31:30]*** Stop cut motor [10:31:30]*** Cut end [10:31:30]Read from MH i2c: 01 07 00 [10:31:30]MH_I2C_Read... [10:31:30]Read from MH i2c: 01 07 00 EF 2D 00 00 00 00 00 FF 0F 31 [10:31:30]process_action close_receipt done [10:31:30]requested_data is exist [10:31:30]produce_requested_data [10:31:30]requested_item fm.sn is exist - process it [10:31:30]wFMCommunicate request_size=4 [10:31:30]MH_SAM_APDU [10:31:30]CAPDU: 80 11 00 00 [10:31:30]Write to MH i2c: E2 08 00 F0 2D 80 11 00 00 00 00 00 00 97 [10:31:30]Write i2c OK [10:31:30]MH_I2C_Read... [10:31:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:30]Read from MH i2c: E2 [10:31:30]MH_I2C_Read... [10:31:30]Read from MH i2c: E2 17 00 [10:31:30]MH_I2C_Read... [10:31:30]Read from MH i2c: E2 17 00 F0 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 ED [10:31:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:31:30]wFMCommunicate OK [10:31:30]requested_item fd.num is exist - process it [10:31:30]SAM_PROTO_GetFieldsCounters [10:31:30]wFMCommunicate request_size=4 [10:31:30]MH_SAM_APDU [10:31:30]CAPDU: 80 13 00 00 [10:31:30]Write to MH i2c: E2 08 00 F1 2D 80 13 00 00 00 00 00 00 9A [10:31:30]Write i2c OK [10:31:30]MH_I2C_Read... [10:31:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:31:30]Read from MH i2c: E2 [10:31:30]MH_I2C_Read... [10:31:30]Read from MH i2c: E2 62 00 [10:31:30]MH_I2C_Read... [10:31:30]Read from MH i2c: E2 62 00 F1 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5E 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [10:31: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5E 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:31:30]wFMCommunicate OK [10:31:30]SAM_PROTO_GetFieldsCounters done [10:31:30]requested_item shift.num is exist - process it [10:31:30]requested_item shift.opened is exist - process it [10:31:30]req_shift_opened [10:31:30]FM_GetShiftState [10:31:30]SAM_PROTO_GetShiftState [10:31:30]wFMCommunicate request_size=4 [10:31:30]MH_SAM_APDU [10:31:30]CAPDU: 80 13 01 00 [10:31:30]Write to MH i2c: E2 08 00 F2 2D 80 13 01 00 00 00 00 00 9C [10:31:30]Write i2c OK [10:31:30]MH_I2C_Read... [10:31:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:30]Read from MH i2c: E2 [10:31:30]MH_I2C_Read... [10:31:30]Read from MH i2c: E2 0E 00 [10:31:30]MH_I2C_Read... [10:31:30]Read from MH i2c: E2 0E 00 F2 2D 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 75 [10:31:30]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:31:30]wFMCommunicate OK [10:31:30]SAM_PROTO_GetShiftState done [10:31:30]FM_GetShiftState done [10:31:30]req_shift_opened done [10:31:30]requested_item shift.open_date is exist - process it [10:31:30]req_shift_open_date [10:31:30]req_shift_open_date done [10:31:30]produce_requested_data done [10:31:30]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165214,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [10:31:30]process_action_free close_receipt [10:31:30]json_value_free [10:31:30]json_value_free done [10:31:30]process_json_proto returns [10:31:30]Send response to host [10:31:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165214,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [10:31:30]free response buf [10:31:30]execute_script done [10:31:30]execute_script returns [10:31:30]free content buf [10:31:30]Sock 9.Close socket [10:31:30]Sock 9.Thread stoped [10:31:34]OFD Sender: No OFD packet to send [10:31:35]accept exits with 7 [10:31:35]New connection [10:31:35]New thread 3066785124 created [10:31:35]Thread 3066928484 joined [10:31:35]Waiting for new connection... [10:31:35] Sock 7.Parse request [10:31:35]Sock 7.Check first char [10:31:35]Sock 7.First char is OK [10:31:35]request: POST /json_proto HTTP/1.0 [10:31:35]Method: POST [10:31:35]URL: /json_proto [10:31:35]Method is POST - this is cgi request [10:31:35]url: /json_proto [10:31:35]query_string will be loaded in cgi processing [10:31:35]execute_cgi json_proto POST (null) [10:31:35]execute_cgi path=json_proto method=POST [10:31:35]POST find Content-Length [10:31:35]Host: 172.17.56.4:8080 [10:31:35]Content-Length: 677 [10:31:35]Content-Type: application/json [10:31:35] [10:31:35]POST finish read [10:31:35]Found Content-Length = 677 [10:31:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459318", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:35]execute_script... [10:31: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)459318", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:35]POST & json_proto [10:31:35]process_json_proto [10:31:35]json parsed OK: [10:31:35]protocol is kg_v1.0 [10:31:35]action value=close_receipt [10:31:35]process_action close_receipt [10:31:35]cmd_close_receipt [10:31:35]MH_GetDate [10:31:35]Write to MH i2c: F0 00 00 F3 2D 0F [10:31:35]Write i2c OK [10:31:35]MH_I2C_Read... [10:31:35]Read from MH i2c: F0 [10:31:35]MH_I2C_Read... [10:31:35]Read from MH i2c: F0 09 00 [10:31:35]MH_I2C_Read... [10:31:35]Read from MH i2c: F0 09 00 F3 2D 00 8C FA 94 66 C9 DC B2 64 53 [10:31:35]GetLastDocTimeStamp 1721039491 [10:31:35]current date 1721039500 [10:31:35]FM_GetShiftState [10:31:35]SAM_PROTO_GetShiftState [10:31:35]wFMCommunicate request_size=4 [10:31:35]MH_SAM_APDU [10:31:35]CAPDU: 80 13 01 00 [10:31:35]Write to MH i2c: E2 08 00 F4 2D 80 13 01 00 00 00 00 00 9E [10:31:35]Write i2c OK [10:31:35]MH_I2C_Read... [10:31:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:35]Read from MH i2c: E2 [10:31:35]MH_I2C_Read... [10:31:35]Read from MH i2c: E2 0E 00 [10:31:35]MH_I2C_Read... [10:31:35]Read from MH i2c: E2 0E 00 F4 2D 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 77 [10:31:35]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:31:35]wFMCommunicate OK [10:31:35]SAM_PROTO_GetShiftState done [10:31:35]FM_GetShiftState done [10:31:35]opened in 1721003876 [10:31:35]opened+sec_in_day 1721090276 [10:31:35]quantity*price = 20003 [10:31:35]sum+1 = 20004 [10:31:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 88 15.07.2024 10:31 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165215 ФПД: 182537565978978 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T103140&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165215&fm=182537565978978&tin=02508201610067®Number=0000000000090829&sum=20000 [10:31:36]StoreToDocumentArchive [10:31:36]shift 448 fd 165215 [10:31:36]save to /storage/0448/doc_00165215 [10:31:36]save last doc name /storage/0448/doc_00165215 to /storage/kkm_last_doc_name [10:31:36]save OK [10:31:36]Clear old archive folders... [10:31:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:31:36]tlvbuf is 01410BA0 [10:31:36]SAM_PROTO_ClearQueue [10:31:36]wFMCommunicate request_size=4 [10:31:36]MH_SAM_APDU [10:31:36]CAPDU: 80 09 00 00 [10:31:36]Write to MH i2c: E2 08 00 01 2E 80 09 00 00 00 00 00 00 A1 [10:31:36]Write i2c OK [10:31:36]MH_I2C_Read... [10:31:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:31:36]Read from MH i2c: E2 [10:31:36]MH_I2C_Read... [10:31:36]Read from MH i2c: E2 03 00 [10:31:36]MH_I2C_Read... [10:31:36]Read from MH i2c: E2 03 00 01 2E 00 90 00 A3 [10:31:36]RAPDU: 90 00 [10:31:36]wFMCommunicate OK [10:31:36]SAM_PROTO_ClearQueue done [10:31:36]KKMCreateOFDPacket [10:31:36]OFDProtocolAddRootSTLVToBuf [10:31:36]FM_MakeSignedData [10:31:36]FM_MakeSignedData [10:31:36]SAM_PROTO_SignData [10:31:36]wFMCommunicate request_size=4 [10:31:36]MH_SAM_APDU [10:31:36]CAPDU: 80 0D 01 02 [10:31:36]Write to MH i2c: E2 08 00 02 2E 80 0D 01 02 00 00 00 00 A9 [10:31:36]Write i2c OK [10:31:36]MH_I2C_Read... [10:31:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:31:36]Read from MH i2c: E2 [10:31:36]MH_I2C_Read... [10:31:36]Read from MH i2c: E2 03 00 [10:31:36]MH_I2C_Read... [10:31:36]Read from MH i2c: E2 03 00 02 2E 00 90 00 A4 [10:31:36]RAPDU: 90 00 [10:31:36]wFMCommunicate OK [10:31:36]wFMCommunicate request_size=255 [10:31:36]MH_SAM_APDU [10:31:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 8C FA 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5F 85 02 00 35 04 06 00 A6 [10:31:36]Write to MH i2c: E2 02 01 03 2E 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 8C FA 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5F 85 02 00 35 04 06 00 A6 00 00 E8 [10:31:36]Write i2c OK [10:31:36]MH_I2C_Read... [10:31:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:37]Read from MH i2c: E2 [10:31:37]MH_I2C_Read... [10:31:37]Read from MH i2c: E2 03 00 [10:31:37]MH_I2C_Read... [10:31:37]Read from MH i2c: E2 03 00 03 2E 00 90 00 A5 [10:31:37]RAPDU: 90 00 [10:31:37]wFMCommunicate OK [10:31:37]wFMCommunicate request_size=10 [10:31:37]MH_SAM_APDU [10:31:37]CAPDU: 80 0D 02 02 05 04 56 C7 41 62 [10:31:37]Write to MH i2c: E2 0D 00 04 2E 80 0D 02 02 05 00 04 56 C7 41 62 00 00 7A [10:31:37]Write i2c OK [10:31:37]MH_I2C_Read... [10:31:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:37]Read from MH i2c: E2 [10:31:37]MH_I2C_Read... [10:31:37]Read from MH i2c: E2 03 00 [10:31:37]MH_I2C_Read... [10:31:37]Read from MH i2c: E2 03 00 04 2E 00 90 00 A6 [10:31:37]RAPDU: 90 00 [10:31:37]wFMCommunicate OK [10:31:37]wFMCommunicate request_size=4 [10:31:37]MH_SAM_APDU [10:31:37]CAPDU: 80 0D 03 02 [10:31:37]Write to MH i2c: E2 08 00 05 2E 80 0D 03 02 00 00 00 00 AE [10:31:37]Write i2c OK [10:31:37]MH_I2C_Read... [10:31:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:31:37]Read from MH i2c: E2 [10:31:37]MH_I2C_Read... [10:31:37]Read from MH i2c: E2 0B 00 [10:31:37]MH_I2C_Read... [10:31:37]Read from MH i2c: E2 0B 00 05 2E 00 8D 89 20 7B 1E 45 C4 46 90 00 CD [10:31:37]RAPDU: 8D 89 20 7B 1E 45 C4 46 90 00 [10:31:37]wFMCommunicate OK [10:31:37]SAM_PROTO_SignData done [10:31:37]FM_MakeSignedData done [10:31:37]CreateOFDProtocolMessage [10:31:37]wFMCommunicate request_size=4 [10:31:37]MH_SAM_APDU [10:31:37]CAPDU: 80 11 00 00 [10:31:37]Write to MH i2c: E2 08 00 06 2E 80 11 00 00 00 00 00 00 AE [10:31:37]Write i2c OK [10:31:37]MH_I2C_Read... [10:31:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:37]Read from MH i2c: E2 [10:31:37]MH_I2C_Read... [10:31:37]Read from MH i2c: E2 17 00 [10:31:37]MH_I2C_Read... [10:31:37]Read from MH i2c: E2 17 00 06 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 04 [10:31:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:31:37]wFMCommunicate OK [10:31:37]CreateOFDProtocolMessage done [10:31:37]OFDSenderStorePacket 165215 [10:31:37]StoreOFDPacket docnum=165215 [10:31:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 94 D5 07 01 7A 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 8C FA 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5F 85 02 00 35 04 06 00 A6 04 56 C7 41 62 8D 89 20 7B 1E 45 C4 46 [10:31:37]CheckFolder [10:31:37]dirname=/storage/ofd_packets [10:31:37]CheckFolder done [10:31:37]ProducePacketName [10:31:37]name=ofd_packets/00165215 [10:31:37]NVStorageSaveData ofd_packets/00165215 [10:31:37]File name is /storage/ofd_packets/00165215 [10:31:37]Write 301 bytes [10:31:37]NVStorageSaveData done [10:31:37]OFDSenderStorePacket done [10:31:37]KKMCreateOFDPacket done [10:31:37]NVStorageSaveData kkm_last_timestamp [10:31:37]File name is /storage/kkm_last_timestamp [10:31:37]Write 4 bytes [10:31:37]NVStorageSaveData done [10:31:37]ExternCall_PrintAddStr [10:31:37]wPrintStart [10:31:37]Write to MH i2c: 01 00 00 07 2E 35 [10:31:37]Write i2c OK [10:31:37]MH_I2C_Read... [10:31:37]Read from MH i2c: 01 [10:31:37]MH_I2C_Read... [10:31:37]Read from MH i2c: 01 07 00 [10:31:37]MH_I2C_Read... [10:31:37]Read from MH i2c: 01 07 00 07 2E 00 00 00 00 00 FF 0F 4A [10:31:37]RasterBufferAndPrint [10:31:37]line Счет N : (1)459318 [10:31:37]line ИНН: 02508201610067 [10:31:37]line Контрольно-Кассовый Чек [10:31:37]line ПРОДАЖА [10:31:37]line ТРК (МРК, ГНК) : 12 [10:31:37]line Товар: 2710124130 [10:31:37]line Аи-92-К-5 [10:31:37]line 3.040 * 65.80 [10:31:37]line = 200.03 [10:31:37]line НДС 12% НСП 1% [10:31:37]line > о реализуемом товаре [10:31:37]line ОКРУГЛЕНИЕ: -0.03 [10:31:37]line ИТОГО: 200.00 [10:31:37]line Внесено: 200.00 [10:31:37]line СДАЧА: 0.00 [10:31:37]line НСП 1% : 1.77 [10:31:37]line НДС 12% : 21.24 [10:31:37]line Наличными: 200.00 [10:31:37]line Безнал.: 0.00 [10:31:37]line Место: АЗС № 72 "Партнер Нефть" [10:31:37]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:31:37]line СНО: Общий режим [10:31:37]line Чек 88 15.07.2024 10:31 [10:31:37]line Смена: 448 ФФД: 1.0 [10:31:37]line ЗНМ: 0300000160 [10:31:37]line РНМ: 0000000000090829 [10:31:37]line Версия ККМ: 001 [10:31:37]line ФМ: 0000000000874718 [10:31:37]line ФД: 165215 [10:31:37]line ФПД: 182537565978978 [10:31:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T103140&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165215&fm=182537565978978&tin=02508201610067®Number=0000000000090829&sum=20000 [10:31:37]written 0, free lines is 4095 [10:31:37]OFD Sender: Processing packet 165215 [packets to send 106, broken 105] [10:31:37]ProducePacketName [10:31:37]name=ofd_packets/00165215 [10:31:37]OFD Sender: To server: pG, [10:31:37]CommunicateWithHost lk.salyk.kg:30040 [10:31:37]ConnectInit lk.salyk.kg [10:31:37]Connected sock=10 [10:31: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 37 31 38 0F 01 00 00 94 D5 07 01 7A 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 8C FA 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5F 85 02 00 35 04 06 00 A6 04 56 C7 41 62 8D 89 20 7B 1E 45 C4 46 [10:31:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 FC 8E 47 00 2E 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 37 31 38 10 04 04 00 5F 85 02 00 F4 03 04 00 16 A1 94 66 B6 04 01 00 00 3A B3 FA 0C 5C 06 24 1F [10:31:37]CommunicateWithHost err = 0 [10:31:37]CheckOFDResponse [10:31:37]1017 (14) - 77093643461234 [10:31:37]1041 (16) - 0000000000874718 [10:31:37]1040 (4) - 165215 [10:31:37]1012 (4) - 15.07.2024 04:09 [10:31:37]1206 (1) - 0 [10:31:37]OFD Sender: Remove packet 165215 [10:31:37]ProducePacketName [10:31:37]name=ofd_packets/00165215 [10:31:37]NVStorageDeleteData [10:31:37]Write to MH i2c: 01 00 00 31 2E 5F [10:31:37]Write i2c OK [10:31:37]MH_I2C_Read... [10:31:37]Read from MH i2c: 01 [10:31:37]MH_I2C_Read... [10:31:37]Read from MH i2c: 01 07 00 [10:31:37]MH_I2C_Read... [10:31:37]Read from MH i2c: 01 07 00 31 2E 00 00 00 00 00 F7 0C 69 [10:31:37]RasterBufferAndPrint [10:31:37]line [10:31:37]line [10:31:37]line [10:31:37]line [10:31:37]line [10:31:37]written 0, free lines is 3329 [10:31:37]MH_Cut [10:31:37]Write to MH i2c: D1 01 00 38 2E 01 38 [10:31:37]Write i2c OK [10:31:37]MH_I2C_Read... [10:31:37]Read from MH i2c: D1 [10:31:37]MH_I2C_Read... [10:31:37]Read from MH i2c: D1 01 00 [10:31:37]MH_I2C_Read... [10:31:37]Read from MH i2c: D1 01 00 38 2E 00 37 [10:31:37]Write to MH i2c: 01 00 00 39 2E 67 [10:31:37]Write i2c OK [10:31:37]MH_I2C_Read... [10:31:38]OFD Sender: No OFD packet to send [10:31:38]*** Cut start [10:31:38]*** Partial cut [10:31:38]*** CUTSNS_PIN = 1 [10:31:38]*** CUTSNS_PIN = 0 [10:31:38]*** Brake cut motor [10:31:38]Read from MH i2c: 01 [10:31:38]MH_I2C_Read... [10:31:38]*** Stop cut motor [10:31:38]*** Cut end [10:31:38]Read from MH i2c: 01 07 00 [10:31:38]MH_I2C_Read... [10:31:38]Read from MH i2c: 01 07 00 39 2E 00 00 00 00 00 FF 0F 7C [10:31:38]process_action close_receipt done [10:31:38]requested_data is exist [10:31:38]produce_requested_data [10:31:38]requested_item fm.sn is exist - process it [10:31:38]wFMCommunicate request_size=4 [10:31:38]MH_SAM_APDU [10:31:38]CAPDU: 80 11 00 00 [10:31:38]Write to MH i2c: E2 08 00 3A 2E 80 11 00 00 00 00 00 00 E2 [10:31:38]Write i2c OK [10:31:38]MH_I2C_Read... [10:31:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:39]Read from MH i2c: E2 [10:31:39]MH_I2C_Read... [10:31:39]Read from MH i2c: E2 17 00 [10:31:39]MH_I2C_Read... [10:31:39]Read from MH i2c: E2 17 00 3A 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 38 [10:31:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:31:39]wFMCommunicate OK [10:31:39]requested_item fd.num is exist - process it [10:31:39]SAM_PROTO_GetFieldsCounters [10:31:39]wFMCommunicate request_size=4 [10:31:39]MH_SAM_APDU [10:31:39]CAPDU: 80 13 00 00 [10:31:39]Write to MH i2c: E2 08 00 3B 2E 80 13 00 00 00 00 00 00 E5 [10:31:39]Write i2c OK [10:31:39]MH_I2C_Read... [10:31:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:31:39]Read from MH i2c: E2 [10:31:39]MH_I2C_Read... [10:31:39]Read from MH i2c: E2 62 00 [10:31:39]MH_I2C_Read... [10:31:39]Read from MH i2c: E2 62 00 3B 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5F 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [10:31:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5F 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:31:39]wFMCommunicate OK [10:31:39]SAM_PROTO_GetFieldsCounters done [10:31:39]requested_item shift.num is exist - process it [10:31:39]requested_item shift.opened is exist - process it [10:31:39]req_shift_opened [10:31:39]FM_GetShiftState [10:31:39]SAM_PROTO_GetShiftState [10:31:39]wFMCommunicate request_size=4 [10:31:39]MH_SAM_APDU [10:31:39]CAPDU: 80 13 01 00 [10:31:39]Write to MH i2c: E2 08 00 3C 2E 80 13 01 00 00 00 00 00 E7 [10:31:39]Write i2c OK [10:31:39]MH_I2C_Read... [10:31:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:39]Read from MH i2c: E2 [10:31:39]MH_I2C_Read... [10:31:39]Read from MH i2c: E2 0E 00 [10:31:39]MH_I2C_Read... [10:31:39]Read from MH i2c: E2 0E 00 3C 2E 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 C0 [10:31:39]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:31:39]wFMCommunicate OK [10:31:39]SAM_PROTO_GetShiftState done [10:31:39]FM_GetShiftState done [10:31:39]req_shift_opened done [10:31:39]requested_item shift.open_date is exist - process it [10:31:39]req_shift_open_date [10:31:39]req_shift_open_date done [10:31:39]produce_requested_data done [10:31:39]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165215,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [10:31:39]process_action_free close_receipt [10:31:39]json_value_free [10:31:39]json_value_free done [10:31:39]process_json_proto returns [10:31:39]Send response to host [10:31:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165215,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [10:31:39]free response buf [10:31:39]execute_script done [10:31:39]execute_script returns [10:31:39]free content buf [10:31:39]Sock 7.Close socket [10:31:39]Sock 7.Thread stoped [10:31:43]OFD Sender: No OFD packet to send [10:31:48]OFD Sender: No OFD packet to send [10:31:53]OFD Sender: No OFD packet to send [10:31:58]OFD Sender: No OFD packet to send [10:32:03]OFD Sender: No OFD packet to send [10:32:08]OFD Sender: No OFD packet to send [10:32:13]OFD Sender: No OFD packet to send [10:32:18]OFD Sender: No OFD packet to send [10:32:23]OFD Sender: No OFD packet to send [10:32:28]OFD Sender: No OFD packet to send [10:32:33]OFD Sender: No OFD packet to send [10:32:38]OFD Sender: No OFD packet to send [10:32:43]OFD Sender: No OFD packet to send [10:32:48]OFD Sender: No OFD packet to send [10:32:53]OFD Sender: No OFD packet to send [10:32:58]OFD Sender: No OFD packet to send [10:33:03]OFD Sender: No OFD packet to send [10:33:08]OFD Sender: No OFD packet to send [10:33:13]OFD Sender: No OFD packet to send [10:33:18]OFD Sender: No OFD packet to send [10:33:23]OFD Sender: No OFD packet to send [10:33:28]OFD Sender: No OFD packet to send [10:33:33]OFD Sender: No OFD packet to send [10:33:38]OFD Sender: No OFD packet to send [10:33:43]OFD Sender: No OFD packet to send [10:33:48]OFD Sender: No OFD packet to send [10:33:53]OFD Sender: No OFD packet to send [10:33:58]OFD Sender: No OFD packet to send [10:34:03]OFD Sender: No OFD packet to send [10:34:08]OFD Sender: No OFD packet to send [10:34:13]OFD Sender: No OFD packet to send [10:34:18]OFD Sender: No OFD packet to send [10:34:23]OFD Sender: No OFD packet to send [10:34:28]OFD Sender: No OFD packet to send [10:34:33]OFD Sender: No OFD packet to send [10:34:38]OFD Sender: No OFD packet to send [10:34:43]OFD Sender: No OFD packet to send [10:34:48]OFD Sender: No OFD packet to send [10:34:53]OFD Sender: No OFD packet to send [10:34:58]OFD Sender: No OFD packet to send [10:35:03]OFD Sender: No OFD packet to send [10:35:08]OFD Sender: No OFD packet to send [10:35:13]OFD Sender: No OFD packet to send [10:35:18]OFD Sender: No OFD packet to send [10:35:23]OFD Sender: No OFD packet to send [10:35:28]OFD Sender: No OFD packet to send [10:35:33]OFD Sender: No OFD packet to send [10:35:38]OFD Sender: No OFD packet to send [10:35:43]OFD Sender: No OFD packet to send [10:35:48]OFD Sender: No OFD packet to send [10:35:53]OFD Sender: No OFD packet to send [10:35:58]OFD Sender: No OFD packet to send [10:36:03]OFD Sender: No OFD packet to send [10:36:04]accept exits with 9 [10:36:04]New connection [10:36:04]New thread 3066928484 created [10:36:04]Thread 3066785124 joined [10:36:04]Waiting for new connection... [10:36:04] Sock 9.Parse request [10:36:04]Sock 9.Check first char [10:36:04]Sock 9.First char is OK [10:36:04]request: POST /json_proto HTTP/1.0 [10:36:04]Method: POST [10:36:04]URL: /json_proto [10:36:04]Method is POST - this is cgi request [10:36:04]url: /json_proto [10:36:04]query_string will be loaded in cgi processing [10:36:04]execute_cgi json_proto POST (null) [10:36:04]execute_cgi path=json_proto method=POST [10:36:04]POST find Content-Length [10:36:04]Host: 172.17.56.4:8080 [10:36:04]Content-Length: 677 [10:36:04]Content-Type: application/json [10:36:04] [10:36:04]POST finish read [10:36:04]Found Content-Length = 677 [10:36:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459320", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.880, "sum" : 650.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:04]execute_script... [10:36: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)459320", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.880, "sum" : 650.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:04]POST & json_proto [10:36:04]process_json_proto [10:36:04]json parsed OK: [10:36:04]protocol is kg_v1.0 [10:36:04]action value=close_receipt [10:36:04]process_action close_receipt [10:36:04]cmd_close_receipt [10:36:04]MH_GetDate [10:36:04]Write to MH i2c: F0 00 00 3D 2E 5A [10:36:04]Write i2c OK [10:36:04]MH_I2C_Read... [10:36:04]Read from MH i2c: F0 [10:36:04]MH_I2C_Read... [10:36:04]Read from MH i2c: F0 09 00 [10:36:04]MH_I2C_Read... [10:36:04]Read from MH i2c: F0 09 00 3D 2E 00 99 FB 94 66 C9 DC B2 64 AC [10:36:04]GetLastDocTimeStamp 1721039500 [10:36:04]current date 1721039769 [10:36:04]FM_GetShiftState [10:36:04]SAM_PROTO_GetShiftState [10:36:04]wFMCommunicate request_size=4 [10:36:04]MH_SAM_APDU [10:36:04]CAPDU: 80 13 01 00 [10:36:04]Write to MH i2c: E2 08 00 3E 2E 80 13 01 00 00 00 00 00 E9 [10:36:04]Write i2c OK [10:36:04]MH_I2C_Read... [10:36:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:04]Read from MH i2c: E2 [10:36:04]MH_I2C_Read... [10:36:04]Read from MH i2c: E2 0E 00 [10:36:04]MH_I2C_Read... [10:36:04]Read from MH i2c: E2 0E 00 3E 2E 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 C2 [10:36:04]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:36:04]wFMCommunicate OK [10:36:04]SAM_PROTO_GetShiftState done [10:36:04]FM_GetShiftState done [10:36:04]opened in 1721003876 [10:36:04]opened+sec_in_day 1721090276 [10:36:04]quantity*price = 65010 [10:36:04]sum+1 = 65011 [10:36:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.75 НДС 12% : 69.04 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 89 15.07.2024 10:36 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165216 ФПД: 231228362579877 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T103609&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165216&fm=231228362579877&tin=02508201610067®Number=0000000000090829&sum=65000 [10:36:06]StoreToDocumentArchive [10:36:06]shift 448 fd 165216 [10:36:06]save to /storage/0448/doc_00165216 [10:36:06]save last doc name /storage/0448/doc_00165216 to /storage/kkm_last_doc_name [10:36:06]save OK [10:36:06]Clear old archive folders... [10:36:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:36:06]tlvbuf is B6F52230 [10:36:06]SAM_PROTO_ClearQueue [10:36:06]wFMCommunicate request_size=4 [10:36:06]MH_SAM_APDU [10:36:06]CAPDU: 80 09 00 00 [10:36:06]Write to MH i2c: E2 08 00 4B 2E 80 09 00 00 00 00 00 00 EB [10:36:06]Write i2c OK [10:36:06]MH_I2C_Read... [10:36:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:36:06]Read from MH i2c: E2 [10:36:06]MH_I2C_Read... [10:36:06]Read from MH i2c: E2 03 00 [10:36:06]MH_I2C_Read... [10:36:06]Read from MH i2c: E2 03 00 4B 2E 00 90 00 ED [10:36:06]RAPDU: 90 00 [10:36:06]wFMCommunicate OK [10:36:06]SAM_PROTO_ClearQueue done [10:36:06]KKMCreateOFDPacket [10:36:06]OFDProtocolAddRootSTLVToBuf [10:36:06]FM_MakeSignedData [10:36:06]FM_MakeSignedData [10:36:06]SAM_PROTO_SignData [10:36:06]wFMCommunicate request_size=4 [10:36:06]MH_SAM_APDU [10:36:06]CAPDU: 80 0D 01 02 [10:36:06]Write to MH i2c: E2 08 00 4C 2E 80 0D 01 02 00 00 00 00 F3 [10:36:06]Write i2c OK [10:36:06]MH_I2C_Read... [10:36:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:36:06]Read from MH i2c: E2 [10:36:06]MH_I2C_Read... [10:36:06]Read from MH i2c: E2 03 00 [10:36:06]MH_I2C_Read... [10:36:06]Read from MH i2c: E2 03 00 4C 2E 00 90 00 EE [10:36:06]RAPDU: 90 00 [10:36:06]wFMCommunicate OK [10:36:06]wFMCommunicate request_size=255 [10:36:06]MH_SAM_APDU [10:36: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 98 26 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 F2 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 99 FB 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 60 85 02 00 35 04 06 00 D2 [10:36:06]Write to MH i2c: E2 02 01 4D 2E 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 98 26 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 F2 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 99 FB 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 60 85 02 00 35 04 06 00 D2 00 00 FB [10:36:06]Write i2c OK [10:36:06]MH_I2C_Read... [10:36:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:06]Read from MH i2c: E2 [10:36:06]MH_I2C_Read... [10:36:06]Read from MH i2c: E2 03 00 [10:36:06]MH_I2C_Read... [10:36:06]Read from MH i2c: E2 03 00 4D 2E 00 90 00 EF [10:36:06]RAPDU: 90 00 [10:36:06]wFMCommunicate OK [10:36:06]wFMCommunicate request_size=10 [10:36:06]MH_SAM_APDU [10:36:06]CAPDU: 80 0D 02 02 05 4D 0C 69 DF A5 [10:36:06]Write to MH i2c: E2 0D 00 4E 2E 80 0D 02 02 05 00 4D 0C 69 DF A5 00 00 46 [10:36:06]Write i2c OK [10:36:06]MH_I2C_Read... [10:36:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:06]Read from MH i2c: E2 [10:36:06]MH_I2C_Read... [10:36:06]Read from MH i2c: E2 03 00 [10:36:06]MH_I2C_Read... [10:36:06]Read from MH i2c: E2 03 00 4E 2E 00 90 00 F0 [10:36:06]RAPDU: 90 00 [10:36:06]wFMCommunicate OK [10:36:06]wFMCommunicate request_size=4 [10:36:06]MH_SAM_APDU [10:36:06]CAPDU: 80 0D 03 02 [10:36:06]Write to MH i2c: E2 08 00 4F 2E 80 0D 03 02 00 00 00 00 F8 [10:36:06]Write i2c OK [10:36:06]MH_I2C_Read... [10:36:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:36:06]Read from MH i2c: E2 [10:36:06]MH_I2C_Read... [10:36:06]Read from MH i2c: E2 0B 00 [10:36:06]MH_I2C_Read... [10:36:06]Read from MH i2c: E2 0B 00 4F 2E 00 1D BC A3 DC 48 DE 83 80 90 00 7A [10:36:06]RAPDU: 1D BC A3 DC 48 DE 83 80 90 00 [10:36:06]wFMCommunicate OK [10:36:06]SAM_PROTO_SignData done [10:36:06]FM_MakeSignedData done [10:36:06]CreateOFDProtocolMessage [10:36:06]wFMCommunicate request_size=4 [10:36:06]MH_SAM_APDU [10:36:06]CAPDU: 80 11 00 00 [10:36:06]Write to MH i2c: E2 08 00 50 2E 80 11 00 00 00 00 00 00 F8 [10:36:06]Write i2c OK [10:36:06]MH_I2C_Read... [10:36:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:06]Read from MH i2c: E2 [10:36:06]MH_I2C_Read... [10:36:06]Read from MH i2c: E2 17 00 [10:36:06]MH_I2C_Read... [10:36:06]Read from MH i2c: E2 17 00 50 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4E [10:36:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:36:06]wFMCommunicate OK [10:36:06]CreateOFDProtocolMessage done [10:36:06]OFDSenderStorePacket 165216 [10:36:06]StoreOFDPacket docnum=165216 [10:36:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 AF 81 07 01 9F DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 98 26 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 F2 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 99 FB 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 60 85 02 00 35 04 06 00 D2 4D 0C 69 DF A5 1D BC A3 DC 48 DE 83 80 [10:36:06]CheckFolder [10:36:06]dirname=/storage/ofd_packets [10:36:06]CheckFolder done [10:36:06]ProducePacketName [10:36:06]name=ofd_packets/00165216 [10:36:06]NVStorageSaveData ofd_packets/00165216 [10:36:06]File name is /storage/ofd_packets/00165216 [10:36:06]Write 301 bytes [10:36:06]NVStorageSaveData done [10:36:06]OFDSenderStorePacket done [10:36:06]KKMCreateOFDPacket done [10:36:06]NVStorageSaveData kkm_last_timestamp [10:36:06]File name is /storage/kkm_last_timestamp [10:36:06]Write 4 bytes [10:36:06]NVStorageSaveData done [10:36:06]OFD Sender: Processing packet 165216 [packets to send 106, broken 105] [10:36:06]ProducePacketName [10:36:06]name=ofd_packets/00165216 [10:36:06]OFD Sender: To server: pG, [10:36:06]CommunicateWithHost lk.salyk.kg:30040 [10:36:06]ConnectInit lk.salyk.kg [10:36:06]ExternCall_PrintAddStr [10:36:06]wPrintStart [10:36:06]Write to MH i2c: 01 00 00 51 2E 7F [10:36:06]Write i2c OK [10:36:06]MH_I2C_Read... [10:36:06]Read from MH i2c: 01 [10:36:06]MH_I2C_Read... [10:36:06]Read from MH i2c: 01 07 00 [10:36:06]MH_I2C_Read... [10:36:06]Read from MH i2c: 01 07 00 51 2E 00 00 00 00 00 FF 0F 94 [10:36:06]RasterBufferAndPrint [10:36:06]line Счет N : (1)459320 [10:36:06]line ИНН: 02508201610067 [10:36:06]line Контрольно-Кассовый Чек [10:36:06]line ПРОДАЖА [10:36:06]line ТРК (МРК, ГНК) : 12 [10:36:06]line Товар: 2710124130 [10:36:06]line Аи-92-К-5 [10:36:06]line 9.880 * 65.80 [10:36:06]line = 650.10 [10:36:06]line НДС 12% НСП 1% [10:36:06]line > о реализуемом товаре [10:36:06]line ОКРУГЛЕНИЕ: -0.10 [10:36:06]line ИТОГО: 650.00 [10:36:06]line Внесено: 650.00 [10:36:06]line СДАЧА: 0.00 [10:36:06]line НСП 1% : 5.75 [10:36:06]line НДС 12% : 69.04 [10:36:06]line Наличными: 650.00 [10:36:06]line Безнал.: 0.00 [10:36:06]line Место: АЗС № 72 "Партнер Нефть" [10:36:06]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:36:06]line СНО: Общий режим [10:36:06]line Чек 89 15.07.2024 10:36 [10:36:06]line Смена: 448 ФФД: 1.0 [10:36:06]line ЗНМ: 0300000160 [10:36:06]line РНМ: 0000000000090829 [10:36:06]line Версия ККМ: 001 [10:36:06]line ФМ: 0000000000874718 [10:36:06]line ФД: 165216 [10:36:06]line ФПД: 231228362579877 [10:36:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T103609&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165216&fm=231228362579877&tin=02508201610067®Number=0000000000090829&sum=65000 [10:36:06]Connected sock=11 [10:36: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 37 31 38 0F 01 00 00 AF 81 07 01 9F DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 98 26 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 F2 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 99 FB 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 60 85 02 00 35 04 06 00 D2 4D 0C 69 DF A5 1D BC A3 DC 48 DE 83 80 [10:36:06]written 0, free lines is 4095 [10:36:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 6B 7C 47 00 83 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 60 85 02 00 F4 03 04 00 24 A2 94 66 B6 04 01 00 00 57 4A 44 54 5E FE F7 A7 [10:36:07]CommunicateWithHost err = 0 [10:36:07]CheckOFDResponse [10:36:07]1017 (14) - 77093643461234 [10:36:07]1041 (16) - 0000000000874718 [10:36:07]1040 (4) - 165216 [10:36:07]1012 (4) - 15.07.2024 04:14 [10:36:07]1206 (1) - 0 [10:36:07]OFD Sender: Remove packet 165216 [10:36:07]ProducePacketName [10:36:07]name=ofd_packets/00165216 [10:36:07]NVStorageDeleteData [10:36:07]Write to MH i2c: 01 00 00 7B 2E A9 [10:36:07]Write i2c OK [10:36:07]MH_I2C_Read... [10:36:07]Read from MH i2c: 01 [10:36:07]MH_I2C_Read... [10:36:07]Read from MH i2c: 01 07 00 [10:36:07]MH_I2C_Read... [10:36:07]Read from MH i2c: 01 07 00 7B 2E 00 00 00 00 00 FA 0C B6 [10:36:07]RasterBufferAndPrint [10:36:07]line [10:36:07]line [10:36:07]line [10:36:07]line [10:36:07]line [10:36:07]written 0, free lines is 3329 [10:36:07]MH_Cut [10:36:07]Write to MH i2c: D1 01 00 82 2E 01 82 [10:36:07]Write i2c OK [10:36:07]MH_I2C_Read... [10:36:07]Read from MH i2c: D1 [10:36:07]MH_I2C_Read... [10:36:07]Read from MH i2c: D1 01 00 [10:36:07]MH_I2C_Read... [10:36:07]Read from MH i2c: D1 01 00 82 2E 00 81 [10:36:07]Write to MH i2c: 01 00 00 83 2E B1 [10:36:07]Write i2c OK [10:36:07]MH_I2C_Read... [10:36:07]OFD Sender: No OFD packet to send [10:36:08]*** Cut start [10:36:08]*** Partial cut [10:36:08]*** CUTSNS_PIN = 1 [10:36:08]*** CUTSNS_PIN = 0 [10:36:08]*** Brake cut motor [10:36:08]Read from MH i2c: 01 [10:36:08]MH_I2C_Read... [10:36:08]*** Stop cut motor [10:36:08]*** Cut end [10:36:08]Read from MH i2c: 01 07 00 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: 01 07 00 83 2E 00 00 00 00 00 FF 0F C6 [10:36:08]process_action close_receipt done [10:36:08]requested_data is exist [10:36:08]produce_requested_data [10:36:08]requested_item fm.sn is exist - process it [10:36:08]wFMCommunicate request_size=4 [10:36:08]MH_SAM_APDU [10:36:08]CAPDU: 80 11 00 00 [10:36:08]Write to MH i2c: E2 08 00 84 2E 80 11 00 00 00 00 00 00 2C [10:36:08]Write i2c OK [10:36:08]MH_I2C_Read... [10:36:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:08]Read from MH i2c: E2 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: E2 17 00 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: E2 17 00 84 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 82 [10:36:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:36:08]wFMCommunicate OK [10:36:08]requested_item fd.num is exist - process it [10:36:08]SAM_PROTO_GetFieldsCounters [10:36:08]wFMCommunicate request_size=4 [10:36:08]MH_SAM_APDU [10:36:08]CAPDU: 80 13 00 00 [10:36:08]Write to MH i2c: E2 08 00 85 2E 80 13 00 00 00 00 00 00 2F [10:36:08]Write i2c OK [10:36:08]MH_I2C_Read... [10:36:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:36:08]Read from MH i2c: E2 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: E2 62 00 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: E2 62 00 85 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 60 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [10:36: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 60 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:36:08]wFMCommunicate OK [10:36:08]SAM_PROTO_GetFieldsCounters done [10:36:08]requested_item shift.num is exist - process it [10:36:08]requested_item shift.opened is exist - process it [10:36:08]req_shift_opened [10:36:08]FM_GetShiftState [10:36:08]SAM_PROTO_GetShiftState [10:36:08]wFMCommunicate request_size=4 [10:36:08]MH_SAM_APDU [10:36:08]CAPDU: 80 13 01 00 [10:36:08]Write to MH i2c: E2 08 00 86 2E 80 13 01 00 00 00 00 00 31 [10:36:08]Write i2c OK [10:36:08]MH_I2C_Read... [10:36:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:08]Read from MH i2c: E2 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: E2 0E 00 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: E2 0E 00 86 2E 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 0A [10:36:08]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:36:08]wFMCommunicate OK [10:36:08]SAM_PROTO_GetShiftState done [10:36:08]FM_GetShiftState done [10:36:08]req_shift_opened done [10:36:08]requested_item shift.open_date is exist - process it [10:36:08]req_shift_open_date [10:36:08]req_shift_open_date done [10:36:08]produce_requested_data done [10:36:08]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165216,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [10:36:08]process_action_free close_receipt [10:36:08]json_value_free [10:36:08]json_value_free done [10:36:08]process_json_proto returns [10:36:08]Send response to host [10:36:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165216,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [10:36:08]free response buf [10:36:08]execute_script done [10:36:08]execute_script returns [10:36:08]free content buf [10:36:08]Sock 9.Close socket [10:36:08]Sock 9.Thread stoped [10:36:09]accept exits with 7 [10:36:09]New connection [10:36:09]New thread 3066785124 created [10:36:09]Thread 3066928484 joined [10:36:09]Waiting for new connection... [10:36:09] Sock 7.Parse request [10:36:09]Sock 7.Check first char [10:36:09]Sock 7.First char is OK [10:36:09]request: POST /json_proto HTTP/1.0 [10:36:09]Method: POST [10:36:09]URL: /json_proto [10:36:09]Method is POST - this is cgi request [10:36:09]url: /json_proto [10:36:09]query_string will be loaded in cgi processing [10:36:09]execute_cgi json_proto POST (null) [10:36:09]execute_cgi path=json_proto method=POST [10:36:09]POST find Content-Length [10:36:09]Host: 172.17.56.4:8080 [10:36:09]Content-Length: 682 [10:36:09]Content-Type: application/json [10:36:09] [10:36:09]POST finish read [10:36:09]Found Content-Length = 682 [10:36:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459319", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 18.240, "sum" : 1200.19, "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" ] } } [10:36:09]execute_script... [10:36: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)459319", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 18.240, "sum" : 1200.19, "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" ] } } [10:36:09]POST & json_proto [10:36:09]process_json_proto [10:36:09]json parsed OK: [10:36:09]protocol is kg_v1.0 [10:36:09]action value=close_receipt [10:36:09]process_action close_receipt [10:36:09]cmd_close_receipt [10:36:09]MH_GetDate [10:36:09]Write to MH i2c: F0 00 00 87 2E A4 [10:36:09]Write i2c OK [10:36:09]MH_I2C_Read... [10:36:09]Read from MH i2c: F0 [10:36:09]MH_I2C_Read... [10:36:09]Read from MH i2c: F0 09 00 [10:36:09]MH_I2C_Read... [10:36:09]Read from MH i2c: F0 09 00 87 2E 00 9E FB 94 66 C9 DC B2 64 FB [10:36:09]GetLastDocTimeStamp 1721039769 [10:36:09]current date 1721039774 [10:36:09]FM_GetShiftState [10:36:09]SAM_PROTO_GetShiftState [10:36:09]wFMCommunicate request_size=4 [10:36:09]MH_SAM_APDU [10:36:09]CAPDU: 80 13 01 00 [10:36:09]Write to MH i2c: E2 08 00 88 2E 80 13 01 00 00 00 00 00 33 [10:36:09]Write i2c OK [10:36:09]MH_I2C_Read... [10:36:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:09]Read from MH i2c: E2 [10:36:09]MH_I2C_Read... [10:36:09]Read from MH i2c: E2 0E 00 [10:36:09]MH_I2C_Read... [10:36:09]Read from MH i2c: E2 0E 00 88 2E 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 0C [10:36:09]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:36:09]wFMCommunicate OK [10:36:09]SAM_PROTO_GetShiftState done [10:36:09]FM_GetShiftState done [10:36:09]opened in 1721003876 [10:36:09]opened+sec_in_day 1721090276 [10:36:09]quantity*price = 120019 [10:36:09]sum+1 = 120020 [10:36:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 90 15.07.2024 10:36 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165217 ФПД: 92921562294985 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T103614&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165217&fm=92921562294985&tin=02508201610067®Number=0000000000090829&sum=120000 [10:36:10]StoreToDocumentArchive [10:36:10]shift 448 fd 165217 [10:36:10]save to /storage/0448/doc_00165217 [10:36:10]save last doc name /storage/0448/doc_00165217 to /storage/kkm_last_doc_name [10:36:10]save OK [10:36:10]Clear old archive folders... [10:36:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:36:10]tlvbuf is 0136FB20 [10:36:10]SAM_PROTO_ClearQueue [10:36:10]wFMCommunicate request_size=4 [10:36:10]MH_SAM_APDU [10:36:10]CAPDU: 80 09 00 00 [10:36:10]Write to MH i2c: E2 08 00 95 2E 80 09 00 00 00 00 00 00 35 [10:36:10]Write i2c OK [10:36:10]MH_I2C_Read... [10:36:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:36:10]Read from MH i2c: E2 [10:36:10]MH_I2C_Read... [10:36:10]Read from MH i2c: E2 03 00 [10:36:10]MH_I2C_Read... [10:36:10]Read from MH i2c: E2 03 00 95 2E 00 90 00 37 [10:36:10]RAPDU: 90 00 [10:36:10]wFMCommunicate OK [10:36:10]SAM_PROTO_ClearQueue done [10:36:10]KKMCreateOFDPacket [10:36:10]OFDProtocolAddRootSTLVToBuf [10:36:10]FM_MakeSignedData [10:36:10]FM_MakeSignedData [10:36:10]SAM_PROTO_SignData [10:36:10]wFMCommunicate request_size=4 [10:36:10]MH_SAM_APDU [10:36:10]CAPDU: 80 0D 01 02 [10:36:10]Write to MH i2c: E2 08 00 96 2E 80 0D 01 02 00 00 00 00 3D [10:36:10]Write i2c OK [10:36:10]MH_I2C_Read... [10:36:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:36:10]Read from MH i2c: E2 [10:36:10]MH_I2C_Read... [10:36:10]Read from MH i2c: E2 03 00 [10:36:10]MH_I2C_Read... [10:36:10]Read from MH i2c: E2 03 00 96 2E 00 90 00 38 [10:36:10]RAPDU: 90 00 [10:36:10]wFMCommunicate OK [10:36:10]wFMCommunicate request_size=255 [10:36:10]MH_SAM_APDU [10:36: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 40 47 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 5A 00 00 00 F4 03 04 00 9E FB 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 61 85 02 00 35 04 06 00 54 [10:36:10]Write to MH i2c: E2 02 01 97 2E 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 40 47 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 5A 00 00 00 F4 03 04 00 9E FB 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 61 85 02 00 35 04 06 00 54 00 00 81 [10:36:11]Write i2c OK [10:36:11]MH_I2C_Read... [10:36:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:11]Read from MH i2c: E2 [10:36:11]MH_I2C_Read... [10:36:11]Read from MH i2c: E2 03 00 [10:36:11]MH_I2C_Read... [10:36:11]Read from MH i2c: E2 03 00 97 2E 00 90 00 39 [10:36:11]RAPDU: 90 00 [10:36:11]wFMCommunicate OK [10:36:11]wFMCommunicate request_size=10 [10:36:11]MH_SAM_APDU [10:36:11]CAPDU: 80 0D 02 02 05 82 FC B6 6A C9 [10:36:11]Write to MH i2c: E2 0D 00 98 2E 80 0D 02 02 05 00 82 FC B6 6A C9 00 00 B1 [10:36:11]Write i2c OK [10:36:11]MH_I2C_Read... [10:36:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:11]Read from MH i2c: E2 [10:36:11]MH_I2C_Read... [10:36:11]Read from MH i2c: E2 03 00 [10:36:11]MH_I2C_Read... [10:36:11]Read from MH i2c: E2 03 00 98 2E 00 90 00 3A [10:36:11]RAPDU: 90 00 [10:36:11]wFMCommunicate OK [10:36:11]wFMCommunicate request_size=4 [10:36:11]MH_SAM_APDU [10:36:11]CAPDU: 80 0D 03 02 [10:36:11]Write to MH i2c: E2 08 00 99 2E 80 0D 03 02 00 00 00 00 42 [10:36:11]Write i2c OK [10:36:11]MH_I2C_Read... [10:36:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:36:11]Read from MH i2c: E2 [10:36:11]MH_I2C_Read... [10:36:11]Read from MH i2c: E2 0B 00 [10:36:11]MH_I2C_Read... [10:36:11]Read from MH i2c: E2 0B 00 99 2E 00 1D 05 BD 3D D5 90 87 33 90 00 7E [10:36:11]RAPDU: 1D 05 BD 3D D5 90 87 33 90 00 [10:36:11]wFMCommunicate OK [10:36:11]SAM_PROTO_SignData done [10:36:11]FM_MakeSignedData done [10:36:11]CreateOFDProtocolMessage [10:36:11]wFMCommunicate request_size=4 [10:36:11]MH_SAM_APDU [10:36:11]CAPDU: 80 11 00 00 [10:36:11]Write to MH i2c: E2 08 00 9A 2E 80 11 00 00 00 00 00 00 42 [10:36:11]Write i2c OK [10:36:11]MH_I2C_Read... [10:36:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:11]Read from MH i2c: E2 [10:36:11]MH_I2C_Read... [10:36:11]Read from MH i2c: E2 17 00 [10:36:11]MH_I2C_Read... [10:36:11]Read from MH i2c: E2 17 00 9A 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 98 [10:36:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:36:11]wFMCommunicate OK [10:36:11]CreateOFDProtocolMessage done [10:36:11]OFDSenderStorePacket 165217 [10:36:11]StoreOFDPacket docnum=165217 [10:36:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 8A A2 07 01 DD 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 47 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 5A 00 00 00 F4 03 04 00 9E FB 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 61 85 02 00 35 04 06 00 54 82 FC B6 6A C9 1D 05 BD 3D D5 90 87 33 [10:36:11]CheckFolder [10:36:11]dirname=/storage/ofd_packets [10:36:11]CheckFolder done [10:36:11]ProducePacketName [10:36:11]name=ofd_packets/00165217 [10:36:11]NVStorageSaveData ofd_packets/00165217 [10:36:11]File name is /storage/ofd_packets/00165217 [10:36:11]Write 301 bytes [10:36:11]NVStorageSaveData done [10:36:11]OFDSenderStorePacket done [10:36:11]KKMCreateOFDPacket done [10:36:11]NVStorageSaveData kkm_last_timestamp [10:36:11]File name is /storage/kkm_last_timestamp [10:36:11]Write 4 bytes [10:36:11]NVStorageSaveData done [10:36:11]ExternCall_PrintAddStr [10:36:11]wPrintStart [10:36:11]Write to MH i2c: 01 00 00 9B 2E C9 [10:36:11]Write i2c OK [10:36:11]MH_I2C_Read... [10:36:11]Read from MH i2c: 01 [10:36:11]MH_I2C_Read... [10:36:11]Read from MH i2c: 01 07 00 [10:36:11]MH_I2C_Read... [10:36:11]Read from MH i2c: 01 07 00 9B 2E 00 00 00 00 00 FF 0F DE [10:36:11]RasterBufferAndPrint [10:36:11]line Счет N : (1)459319 [10:36:11]line ИНН: 02508201610067 [10:36:11]line Контрольно-Кассовый Чек [10:36:11]line ПРОДАЖА [10:36:11]line ТРК (МРК, ГНК) : 22 [10:36:11]line Товар: 2710124130 [10:36:11]line Аи-92-К-5 [10:36:11]line 18.240 * 65.80 [10:36:11]line = 1200.19 [10:36:11]line НДС 12% НСП 1% [10:36:11]line > о реализуемом товаре [10:36:11]line ОКРУГЛЕНИЕ: -0.19 [10:36:11]line ИТОГО: 1200.00 [10:36:11]line Внесено: 1200.00 [10:36:11]line СДАЧА: 0.00 [10:36:11]line НСП 1% : 10.62 [10:36:11]line НДС 12% : 127.45 [10:36:11]line Наличными: 1200.00 [10:36:11]line Безнал.: 0.00 [10:36:11]line Место: АЗС № 72 "Партнер Нефть" [10:36:11]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:36:11]line СНО: Общий режим [10:36:11]line Чек 90 15.07.2024 10:36 [10:36:11]line Смена: 448 ФФД: 1.0 [10:36:11]line ЗНМ: 0300000160 [10:36:11]line РНМ: 0000000000090829 [10:36:11]line Версия ККМ: 001 [10:36:11]line ФМ: 0000000000874718 [10:36:11]line ФД: 165217 [10:36:11]line ФПД: 92921562294985 [10:36:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T103614&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165217&fm=92921562294985&tin=02508201610067®Number=0000000000090829&sum=120000 [10:36:11]written 0, free lines is 4095 [10:36:11]OFD Sender: Processing packet 165217 [packets to send 106, broken 105] [10:36:11]ProducePacketName [10:36:11]name=ofd_packets/00165217 [10:36:11]OFD Sender: To server: pG, [10:36:11]CommunicateWithHost lk.salyk.kg:30040 [10:36:11]ConnectInit lk.salyk.kg [10:36:11]Connected sock=10 [10:36: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 37 31 38 0F 01 00 00 8A A2 07 01 DD 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 47 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 5A 00 00 00 F4 03 04 00 9E FB 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 61 85 02 00 35 04 06 00 54 82 FC B6 6A C9 1D 05 BD 3D D5 90 87 33 [10:36:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 B1 8B 47 00 B1 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 61 85 02 00 F4 03 04 00 29 A2 94 66 B6 04 01 00 00 75 50 FC 7E 95 C9 B8 CE [10:36:11]CommunicateWithHost err = 0 [10:36:11]CheckOFDResponse [10:36:11]1017 (14) - 77093643461234 [10:36:11]1041 (16) - 0000000000874718 [10:36:11]1040 (4) - 165217 [10:36:11]1012 (4) - 15.07.2024 04:14 [10:36:11]1206 (1) - 0 [10:36:11]OFD Sender: Remove packet 165217 [10:36:11]ProducePacketName [10:36:11]name=ofd_packets/00165217 [10:36:11]NVStorageDeleteData [10:36:11]Write to MH i2c: 01 00 00 C5 2E F3 [10:36:11]Write i2c OK [10:36:11]MH_I2C_Read... [10:36:11]Read from MH i2c: 01 [10:36:11]MH_I2C_Read... [10:36:11]Read from MH i2c: 01 07 00 [10:36:11]MH_I2C_Read... [10:36:11]Read from MH i2c: 01 07 00 C5 2E 00 00 00 00 00 05 0D 0C [10:36:11]RasterBufferAndPrint [10:36:11]line [10:36:11]line [10:36:11]line [10:36:11]line [10:36:11]line [10:36:11]written 0, free lines is 3348 [10:36:11]MH_Cut [10:36:11]Write to MH i2c: D1 01 00 CC 2E 01 CC [10:36:11]Write i2c OK [10:36:11]MH_I2C_Read... [10:36:11]Read from MH i2c: D1 [10:36:11]MH_I2C_Read... [10:36:11]Read from MH i2c: D1 01 00 [10:36:11]MH_I2C_Read... [10:36:11]Read from MH i2c: D1 01 00 CC 2E 00 CB [10:36:11]Write to MH i2c: 01 00 00 CD 2E FB [10:36:11]Write i2c OK [10:36:11]MH_I2C_Read... [10:36:12]OFD Sender: No OFD packet to send [10:36:12]*** Cut start [10:36:12]*** Partial cut [10:36:12]*** CUTSNS_PIN = 1 [10:36:12]*** CUTSNS_PIN = 0 [10:36:12]*** Brake cut motor [10:36:13]Read from MH i2c: 01 [10:36:13]MH_I2C_Read... [10:36:13]*** Stop cut motor [10:36:13]*** Cut end [10:36:13]Read from MH i2c: 01 07 00 [10:36:13]MH_I2C_Read... [10:36:13]Read from MH i2c: 01 07 00 CD 2E 00 00 00 00 00 FF 0F 10 [10:36:13]process_action close_receipt done [10:36:13]requested_data is exist [10:36:13]produce_requested_data [10:36:13]requested_item fm.sn is exist - process it [10:36:13]wFMCommunicate request_size=4 [10:36:13]MH_SAM_APDU [10:36:13]CAPDU: 80 11 00 00 [10:36:13]Write to MH i2c: E2 08 00 CE 2E 80 11 00 00 00 00 00 00 76 [10:36:13]Write i2c OK [10:36:13]MH_I2C_Read... [10:36:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:13]Read from MH i2c: E2 [10:36:13]MH_I2C_Read... [10:36:13]Read from MH i2c: E2 17 00 [10:36:13]MH_I2C_Read... [10:36:13]Read from MH i2c: E2 17 00 CE 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CC [10:36:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:36:13]wFMCommunicate OK [10:36:13]requested_item fd.num is exist - process it [10:36:13]SAM_PROTO_GetFieldsCounters [10:36:13]wFMCommunicate request_size=4 [10:36:13]MH_SAM_APDU [10:36:13]CAPDU: 80 13 00 00 [10:36:13]Write to MH i2c: E2 08 00 CF 2E 80 13 00 00 00 00 00 00 79 [10:36:13]Write i2c OK [10:36:13]MH_I2C_Read... [10:36:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:36:13]Read from MH i2c: E2 [10:36:13]MH_I2C_Read... [10:36:13]Read from MH i2c: E2 62 00 [10:36:13]MH_I2C_Read... [10:36:13]Read from MH i2c: E2 62 00 CF 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 61 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [10:36:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 61 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:36:13]wFMCommunicate OK [10:36:13]SAM_PROTO_GetFieldsCounters done [10:36:13]requested_item shift.num is exist - process it [10:36:13]requested_item shift.opened is exist - process it [10:36:13]req_shift_opened [10:36:13]FM_GetShiftState [10:36:13]SAM_PROTO_GetShiftState [10:36:13]wFMCommunicate request_size=4 [10:36:13]MH_SAM_APDU [10:36:13]CAPDU: 80 13 01 00 [10:36:13]Write to MH i2c: E2 08 00 D0 2E 80 13 01 00 00 00 00 00 7B [10:36:13]Write i2c OK [10:36:13]MH_I2C_Read... [10:36:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:13]Read from MH i2c: E2 [10:36:13]MH_I2C_Read... [10:36:13]Read from MH i2c: E2 0E 00 [10:36:13]MH_I2C_Read... [10:36:13]Read from MH i2c: E2 0E 00 D0 2E 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 54 [10:36:13]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:36:13]wFMCommunicate OK [10:36:13]SAM_PROTO_GetShiftState done [10:36:13]FM_GetShiftState done [10:36:13]req_shift_opened done [10:36:13]requested_item shift.open_date is exist - process it [10:36:13]req_shift_open_date [10:36:13]req_shift_open_date done [10:36:13]produce_requested_data done [10:36:13]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165217,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [10:36:13]process_action_free close_receipt [10:36:13]json_value_free [10:36:13]json_value_free done [10:36:13]process_json_proto returns [10:36:13]Send response to host [10:36:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165217,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [10:36:13]free response buf [10:36:13]execute_script done [10:36:13]execute_script returns [10:36:13]free content buf [10:36:13]Sock 7.Close socket [10:36:13]Sock 7.Thread stoped [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:46]accept exits with 9 [10:36:46]New connection [10:36:46]New thread 3066928484 created [10:36:46]Thread 3066785124 joined [10:36:46]Waiting for new connection... [10:36:46] Sock 9.Parse request [10:36:46]Sock 9.Check first char [10:36:46]Sock 9.First char is OK [10:36:46]request: POST /json_proto HTTP/1.0 [10:36:46]Method: POST [10:36:46]URL: /json_proto [10:36:46]Method is POST - this is cgi request [10:36:46]url: /json_proto [10:36:46]query_string will be loaded in cgi processing [10:36:46]execute_cgi json_proto POST (null) [10:36:46]execute_cgi path=json_proto method=POST [10:36:46]POST find Content-Length [10:36:46]Host: 172.17.56.4:8080 [10:36:46]Content-Length: 677 [10:36:46]Content-Type: application/json [10:36:46] [10:36:46]POST finish read [10:36:46]Found Content-Length = 677 [10:36:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459321", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 8.970, "sum" : 590.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 590.00, "total" : 590.00, "payments": [ { "type": 0, "sum" : 590.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:46]execute_script... [10:36: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)459321", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 8.970, "sum" : 590.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 590.00, "total" : 590.00, "payments": [ { "type": 0, "sum" : 590.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:46]POST & json_proto [10:36:46]process_json_proto [10:36:46]json parsed OK: [10:36:46]protocol is kg_v1.0 [10:36:46]action value=close_receipt [10:36:46]process_action close_receipt [10:36:46]cmd_close_receipt [10:36:46]MH_GetDate [10:36:46]Write to MH i2c: F0 00 00 D1 2E EE [10:36:46]Write i2c OK [10:36:46]MH_I2C_Read... [10:36:46]Read from MH i2c: F0 [10:36:46]MH_I2C_Read... [10:36:46]Read from MH i2c: F0 09 00 [10:36:46]MH_I2C_Read... [10:36:46]Read from MH i2c: F0 09 00 D1 2E 00 C3 FB 94 66 C9 DC B2 64 6A [10:36:46]GetLastDocTimeStamp 1721039774 [10:36:46]current date 1721039811 [10:36:46]FM_GetShiftState [10:36:46]SAM_PROTO_GetShiftState [10:36:46]wFMCommunicate request_size=4 [10:36:46]MH_SAM_APDU [10:36:46]CAPDU: 80 13 01 00 [10:36:46]Write to MH i2c: E2 08 00 D2 2E 80 13 01 00 00 00 00 00 7D [10:36:46]Write i2c OK [10:36:46]MH_I2C_Read... [10:36:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:46]Read from MH i2c: E2 [10:36:46]MH_I2C_Read... [10:36:46]Read from MH i2c: E2 0E 00 [10:36:46]MH_I2C_Read... [10:36:46]Read from MH i2c: E2 0E 00 D2 2E 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 56 [10:36:46]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:36:46]wFMCommunicate OK [10:36:46]SAM_PROTO_GetShiftState done [10:36:46]FM_GetShiftState done [10:36:46]opened in 1721003876 [10:36:46]opened+sec_in_day 1721090276 [10:36:46]quantity*price = 59022 [10:36:46]sum+1 = 59024 [10:36:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 590.00 Внесено: 590.00 СДАЧА: 0.00 НСП 1% : 5.22 НДС 12% : 62.68 Наличными: 590.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 91 15.07.2024 10:36 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165218 ФПД: 231974231952712 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T103651&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165218&fm=231974231952712&tin=02508201610067®Number=0000000000090829&sum=59000 [10:36:47]StoreToDocumentArchive [10:36:47]shift 448 fd 165218 [10:36:47]save to /storage/0448/doc_00165218 [10:36:47]save last doc name /storage/0448/doc_00165218 to /storage/kkm_last_doc_name [10:36:47]save OK [10:36:47]Clear old archive folders... [10:36:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:36:47]tlvbuf is B6DA2010 [10:36:47]SAM_PROTO_ClearQueue [10:36:47]wFMCommunicate request_size=4 [10:36:47]MH_SAM_APDU [10:36:47]CAPDU: 80 09 00 00 [10:36:47]Write to MH i2c: E2 08 00 DF 2E 80 09 00 00 00 00 00 00 7F [10:36:47]Write i2c OK [10:36:47]MH_I2C_Read... [10:36:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:36:47]Read from MH i2c: E2 [10:36:47]MH_I2C_Read... [10:36:47]Read from MH i2c: E2 03 00 [10:36:47]MH_I2C_Read... [10:36:47]Read from MH i2c: E2 03 00 DF 2E 00 90 00 81 [10:36:47]RAPDU: 90 00 [10:36:47]wFMCommunicate OK [10:36:47]SAM_PROTO_ClearQueue done [10:36:47]KKMCreateOFDPacket [10:36:47]OFDProtocolAddRootSTLVToBuf [10:36:47]FM_MakeSignedData [10:36:47]FM_MakeSignedData [10:36:47]SAM_PROTO_SignData [10:36:47]wFMCommunicate request_size=4 [10:36:47]MH_SAM_APDU [10:36:47]CAPDU: 80 0D 01 02 [10:36:47]Write to MH i2c: E2 08 00 E0 2E 80 0D 01 02 00 00 00 00 87 [10:36:47]Write i2c OK [10:36:47]MH_I2C_Read... [10:36:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:36:47]Read from MH i2c: E2 [10:36:47]MH_I2C_Read... [10:36:47]Read from MH i2c: E2 03 00 [10:36:47]MH_I2C_Read... [10:36:47]Read from MH i2c: E2 03 00 E0 2E 00 90 00 82 [10:36:47]RAPDU: 90 00 [10:36:47]wFMCommunicate OK [10:36:47]wFMCommunicate request_size=255 [10:36:47]MH_SAM_APDU [10:36: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 0A 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 8F E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 18 00 00 00 00 07 04 06 00 78 E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 C3 FB 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 62 85 02 00 35 04 06 00 D2 [10:36:47]Write to MH i2c: E2 02 01 E1 2E 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 0A 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 8F E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 18 00 00 00 00 07 04 06 00 78 E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 C3 FB 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 62 85 02 00 35 04 06 00 D2 00 00 F1 [10:36:48]Write i2c OK [10:36:48]MH_I2C_Read... [10:36:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:48]Read from MH i2c: E2 [10:36:48]MH_I2C_Read... [10:36:48]Read from MH i2c: E2 03 00 [10:36:48]MH_I2C_Read... [10:36:48]Read from MH i2c: E2 03 00 E1 2E 00 90 00 83 [10:36:48]RAPDU: 90 00 [10:36:48]wFMCommunicate OK [10:36:48]wFMCommunicate request_size=10 [10:36:48]MH_SAM_APDU [10:36:48]CAPDU: 80 0D 02 02 05 FA B5 B1 4D 48 [10:36:48]Write to MH i2c: E2 0D 00 E2 2E 80 0D 02 02 05 00 FA B5 B1 4D 48 00 00 89 [10:36:48]Write i2c OK [10:36:48]MH_I2C_Read... [10:36:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:48]Read from MH i2c: E2 [10:36:48]MH_I2C_Read... [10:36:48]Read from MH i2c: E2 03 00 [10:36:48]MH_I2C_Read... [10:36:48]Read from MH i2c: E2 03 00 E2 2E 00 90 00 84 [10:36:48]RAPDU: 90 00 [10:36:48]wFMCommunicate OK [10:36:48]wFMCommunicate request_size=4 [10:36:48]MH_SAM_APDU [10:36:48]CAPDU: 80 0D 03 02 [10:36:48]Write to MH i2c: E2 08 00 E3 2E 80 0D 03 02 00 00 00 00 8C [10:36:48]Write i2c OK [10:36:48]MH_I2C_Read... [10:36:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:36:48]Read from MH i2c: E2 [10:36:48]MH_I2C_Read... [10:36:48]Read from MH i2c: E2 0B 00 [10:36:48]MH_I2C_Read... [10:36:48]Read from MH i2c: E2 0B 00 E3 2E 00 9D 01 51 7A C8 AE AF 48 90 00 63 [10:36:48]RAPDU: 9D 01 51 7A C8 AE AF 48 90 00 [10:36:48]wFMCommunicate OK [10:36:48]SAM_PROTO_SignData done [10:36:48]FM_MakeSignedData done [10:36:48]CreateOFDProtocolMessage [10:36:48]wFMCommunicate request_size=4 [10:36:48]MH_SAM_APDU [10:36:48]CAPDU: 80 11 00 00 [10:36:48]Write to MH i2c: E2 08 00 E4 2E 80 11 00 00 00 00 00 00 8C [10:36:48]Write i2c OK [10:36:48]MH_I2C_Read... [10:36:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:48]Read from MH i2c: E2 [10:36:48]MH_I2C_Read... [10:36:48]Read from MH i2c: E2 17 00 [10:36:48]MH_I2C_Read... [10:36:48]Read from MH i2c: E2 17 00 E4 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E2 [10:36:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:36:48]wFMCommunicate OK [10:36:48]CreateOFDProtocolMessage done [10:36:48]OFDSenderStorePacket 165218 [10:36:48]StoreOFDPacket docnum=165218 [10:36:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A9 3A 07 01 AB 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 0A 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 8F E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 18 00 00 00 00 07 04 06 00 78 E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 C3 FB 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 62 85 02 00 35 04 06 00 D2 FA B5 B1 4D 48 9D 01 51 7A C8 AE AF 48 [10:36:48]CheckFolder [10:36:48]dirname=/storage/ofd_packets [10:36:48]CheckFolder done [10:36:48]ProducePacketName [10:36:48]name=ofd_packets/00165218 [10:36:48]NVStorageSaveData ofd_packets/00165218 [10:36:48]File name is /storage/ofd_packets/00165218 [10:36:48]Write 301 bytes [10:36:48]NVStorageSaveData done [10:36:48]OFDSenderStorePacket done [10:36:48]KKMCreateOFDPacket done [10:36:48]NVStorageSaveData kkm_last_timestamp [10:36:48]File name is /storage/kkm_last_timestamp [10:36:48]Write 4 bytes [10:36:48]NVStorageSaveData done [10:36:48]ExternCall_PrintAddStr [10:36:48]wPrintStart [10:36:48]Write to MH i2c: 01 00 00 E5 2E 13 [10:36:48]Write i2c OK [10:36:48]MH_I2C_Read... [10:36:48]Read from MH i2c: 01 [10:36:48]MH_I2C_Read... [10:36:48]Read from MH i2c: 01 07 00 [10:36:48]MH_I2C_Read... [10:36:48]Read from MH i2c: 01 07 00 E5 2E 00 00 00 00 00 FF 0F 28 [10:36:48]RasterBufferAndPrint [10:36:48]line Счет N : (1)459321 [10:36:48]line ИНН: 02508201610067 [10:36:48]line Контрольно-Кассовый Чек [10:36:48]line ПРОДАЖА [10:36:48]line ТРК (МРК, ГНК) : 12 [10:36:48]line Товар: 2710124130 [10:36:48]line Аи-92-К-5 [10:36:48]line 8.970 * 65.80 [10:36:48]line = 590.23 [10:36:48]line НДС 12% НСП 1% [10:36:48]line > о реализуемом товаре [10:36:48]line ОКРУГЛЕНИЕ: -0.23 [10:36:48]line ИТОГО: 590.00 [10:36:48]line Внесено: 590.00 [10:36:48]line СДАЧА: 0.00 [10:36:48]line НСП 1% : 5.22 [10:36:48]line НДС 12% : 62.68 [10:36:48]line Наличными: 590.00 [10:36:48]line Безнал.: 0.00 [10:36:48]line Место: АЗС № 72 "Партнер Нефть" [10:36:48]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:36:48]line СНО: Общий режим [10:36:48]line Чек 91 15.07.2024 10:36 [10:36:48]line Смена: 448 ФФД: 1.0 [10:36:48]line ЗНМ: 0300000160 [10:36:48]line РНМ: 0000000000090829 [10:36:48]line Версия ККМ: 001 [10:36:48]line ФМ: 0000000000874718 [10:36:48]line ФД: 165218 [10:36:48]line ФПД: 231974231952712 [10:36:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T103651&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165218&fm=231974231952712&tin=02508201610067®Number=0000000000090829&sum=59000 [10:36:48]OFD Sender: Processing packet 165218 [packets to send 106, broken 105] [10:36:48]ProducePacketName [10:36:48]name=ofd_packets/00165218 [10:36:48]OFD Sender: To server: pG, [10:36:48]CommunicateWithHost lk.salyk.kg:30040 [10:36:48]ConnectInit lk.salyk.kg [10:36:48]written 0, free lines is 4095 [10:36:48]Connected sock=10 [10:36: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 37 31 38 0F 01 00 00 A9 3A 07 01 AB 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 0A 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 8F E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 18 00 00 00 00 07 04 06 00 78 E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 C3 FB 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 62 85 02 00 35 04 06 00 D2 FA B5 B1 4D 48 9D 01 51 7A C8 AE AF 48 [10:36:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 8C 64 47 00 4C 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 62 85 02 00 F4 03 04 00 4E A2 94 66 B6 04 01 00 00 08 EB B9 74 9C 6F 76 70 [10:36:49]CommunicateWithHost err = 0 [10:36:49]CheckOFDResponse [10:36:49]1017 (14) - 77093643461234 [10:36:49]1041 (16) - 0000000000874718 [10:36:49]1040 (4) - 165218 [10:36:49]1012 (4) - 15.07.2024 04:15 [10:36:49]1206 (1) - 0 [10:36:49]OFD Sender: Remove packet 165218 [10:36:49]ProducePacketName [10:36:49]name=ofd_packets/00165218 [10:36:49]NVStorageDeleteData [10:36:49]Write to MH i2c: 01 00 00 0F 2F 3E [10:36:49]Write i2c OK [10:36:49]MH_I2C_Read... [10:36:49]Read from MH i2c: 01 [10:36:49]MH_I2C_Read... [10:36:49]Read from MH i2c: 01 07 00 [10:36:49]MH_I2C_Read... [10:36:49]Read from MH i2c: 01 07 00 0F 2F 00 00 00 00 00 F3 0C 44 [10:36:49]RasterBufferAndPrint [10:36:49]line [10:36:49]line [10:36:49]line [10:36:49]line [10:36:49]line [10:36:49]written 0, free lines is 3321 [10:36:49]MH_Cut [10:36:49]Write to MH i2c: D1 01 00 16 2F 01 17 [10:36:49]Write i2c OK [10:36:49]MH_I2C_Read... [10:36:49]Read from MH i2c: D1 [10:36:49]MH_I2C_Read... [10:36:49]Read from MH i2c: D1 01 00 [10:36:49]MH_I2C_Read... [10:36:49]Read from MH i2c: D1 01 00 16 2F 00 16 [10:36:49]Write to MH i2c: 01 00 00 17 2F 46 [10:36:49]Write i2c OK [10:36:49]MH_I2C_Read... [10:36:49]OFD Sender: No OFD packet to send [10:36:49]*** Cut start [10:36:49]*** Partial cut [10:36:49]*** CUTSNS_PIN = 1 [10:36:49]*** CUTSNS_PIN = 0 [10:36:50]*** Brake cut motor [10:36:50]Read from MH i2c: 01 [10:36:50]MH_I2C_Read... [10:36:50]*** Stop cut motor [10:36:50]*** Cut end [10:36:50]Read from MH i2c: 01 07 00 [10:36:50]MH_I2C_Read... [10:36:50]Read from MH i2c: 01 07 00 17 2F 00 00 00 00 00 FF 0F 5B [10:36:50]process_action close_receipt done [10:36:50]requested_data is exist [10:36:50]produce_requested_data [10:36:50]requested_item fm.sn is exist - process it [10:36:50]wFMCommunicate request_size=4 [10:36:50]MH_SAM_APDU [10:36:50]CAPDU: 80 11 00 00 [10:36:50]Write to MH i2c: E2 08 00 18 2F 80 11 00 00 00 00 00 00 C1 [10:36:50]Write i2c OK [10:36:50]MH_I2C_Read... [10:36:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:50]Read from MH i2c: E2 [10:36:50]MH_I2C_Read... [10:36:50]Read from MH i2c: E2 17 00 [10:36:50]MH_I2C_Read... [10:36:50]Read from MH i2c: E2 17 00 18 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 17 [10:36:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:36:50]wFMCommunicate OK [10:36:50]requested_item fd.num is exist - process it [10:36:50]SAM_PROTO_GetFieldsCounters [10:36:50]wFMCommunicate request_size=4 [10:36:50]MH_SAM_APDU [10:36:50]CAPDU: 80 13 00 00 [10:36:50]Write to MH i2c: E2 08 00 19 2F 80 13 00 00 00 00 00 00 C4 [10:36:50]Write i2c OK [10:36:50]MH_I2C_Read... [10:36:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:36:50]Read from MH i2c: E2 [10:36:50]MH_I2C_Read... [10:36:50]Read from MH i2c: E2 62 00 [10:36:50]MH_I2C_Read... [10:36:50]Read from MH i2c: E2 62 00 19 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 62 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [10:36: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 62 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:36:50]wFMCommunicate OK [10:36:50]SAM_PROTO_GetFieldsCounters done [10:36:50]requested_item shift.num is exist - process it [10:36:50]requested_item shift.opened is exist - process it [10:36:50]req_shift_opened [10:36:50]FM_GetShiftState [10:36:50]SAM_PROTO_GetShiftState [10:36:50]wFMCommunicate request_size=4 [10:36:50]MH_SAM_APDU [10:36:50]CAPDU: 80 13 01 00 [10:36:50]Write to MH i2c: E2 08 00 1A 2F 80 13 01 00 00 00 00 00 C6 [10:36:50]Write i2c OK [10:36:50]MH_I2C_Read... [10:36:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:50]Read from MH i2c: E2 [10:36:50]MH_I2C_Read... [10:36:50]Read from MH i2c: E2 0E 00 [10:36:50]MH_I2C_Read... [10:36:50]Read from MH i2c: E2 0E 00 1A 2F 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 9F [10:36:50]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:36:50]wFMCommunicate OK [10:36:50]SAM_PROTO_GetShiftState done [10:36:50]FM_GetShiftState done [10:36:50]req_shift_opened done [10:36:50]requested_item shift.open_date is exist - process it [10:36:50]req_shift_open_date [10:36:50]req_shift_open_date done [10:36:50]produce_requested_data done [10:36:50]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165218,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [10:36:50]process_action_free close_receipt [10:36:50]json_value_free [10:36:50]json_value_free done [10:36:50]process_json_proto returns [10:36:50]Send response to host [10:36:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165218,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [10:36:50]free response buf [10:36:50]execute_script done [10:36:50]execute_script returns [10:36:50]free content buf [10:36:50]Sock 9.Close socket [10:36:50]Sock 9.Thread stoped [10:36:54]OFD Sender: No OFD packet to send [10:36:59]OFD Sender: No OFD packet to send [10:37:04]OFD Sender: No OFD packet to send [10:37:09]OFD Sender: No OFD packet to send [10:37:14]OFD Sender: No OFD packet to send [10:37:19]OFD Sender: No OFD packet to send [10:37:24]OFD Sender: No OFD packet to send [10:37:29]OFD Sender: No OFD packet to send [10:37:34]OFD Sender: No OFD packet to send [10:37:39]OFD Sender: No OFD packet to send [10:37:44]OFD Sender: No OFD packet to send [10:37:49]OFD Sender: No OFD packet to send [10:37:54]OFD Sender: No OFD packet to send [10:37:59]OFD Sender: No OFD packet to send [10:38:04]OFD Sender: No OFD packet to send [10:38:09]OFD Sender: No OFD packet to send [10:38:14]OFD Sender: No OFD packet to send [10:38:19]OFD Sender: No OFD packet to send [10:38:24]OFD Sender: No OFD packet to send [10:38:29]OFD Sender: No OFD packet to send [10:38:34]OFD Sender: No OFD packet to send [10:38:39]OFD Sender: No OFD packet to send [10:38:44]OFD Sender: No OFD packet to send [10:38:49]OFD Sender: No OFD packet to send [10:38:54]accept exits with 7 [10:38:54]New connection [10:38:54]New thread 3066785124 created [10:38:54]Thread 3066928484 joined [10:38:54]Waiting for new connection... [10:38:54] Sock 7.Parse request [10:38:54]Sock 7.Check first char [10:38:54]Sock 7.First char is OK [10:38:54]request: POST /json_proto HTTP/1.0 [10:38:54]Method: POST [10:38:54]URL: /json_proto [10:38:54]Method is POST - this is cgi request [10:38:54]url: /json_proto [10:38:54]query_string will be loaded in cgi processing [10:38:54]execute_cgi json_proto POST (null) [10:38:54]execute_cgi path=json_proto method=POST [10:38:54]POST find Content-Length [10:38:54]Host: 172.17.56.4:8080 [10:38:54]Content-Length: 679 [10:38:54]Content-Type: application/json [10:38:54] [10:38:54]POST finish read [10:38:54]Found Content-Length = 679 [10:38:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459322", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\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" ] } } [10:38:54]execute_script... [10:38: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)459322", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\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" ] } } [10:38:54]POST & json_proto [10:38:54]process_json_proto [10:38:54]json parsed OK: [10:38:54]protocol is kg_v1.0 [10:38:54]action value=close_receipt [10:38:54]process_action close_receipt [10:38:54]cmd_close_receipt [10:38:54]MH_GetDate [10:38:54]Write to MH i2c: F0 00 00 1B 2F 39 [10:38:54]Write i2c OK [10:38:54]MH_I2C_Read... [10:38:54]Read from MH i2c: F0 [10:38:54]MH_I2C_Read... [10:38:54]Read from MH i2c: F0 09 00 [10:38:54]MH_I2C_Read... [10:38:54]Read from MH i2c: F0 09 00 1B 2F 00 42 FC 94 66 C9 DC B2 64 35 [10:38:54]GetLastDocTimeStamp 1721039811 [10:38:54]current date 1721039938 [10:38:54]FM_GetShiftState [10:38:54]SAM_PROTO_GetShiftState [10:38:54]wFMCommunicate request_size=4 [10:38:54]MH_SAM_APDU [10:38:54]CAPDU: 80 13 01 00 [10:38:54]Write to MH i2c: E2 08 00 1C 2F 80 13 01 00 00 00 00 00 C8 [10:38:54]Write i2c OK [10:38:54]MH_I2C_Read... [10:38:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:54]Read from MH i2c: E2 [10:38:54]MH_I2C_Read... [10:38:54]Read from MH i2c: E2 0E 00 [10:38:54]MH_I2C_Read... [10:38:54]Read from MH i2c: E2 0E 00 1C 2F 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 A1 [10:38:54]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:38:54]wFMCommunicate OK [10:38:54]SAM_PROTO_GetShiftState done [10:38:54]FM_GetShiftState done [10:38:54]opened in 1721003876 [10:38:54]opened+sec_in_day 1721090276 [10:38:54]quantity*price = 300038 [10:38:54]sum+1 = 300040 [10:38:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.62 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 92 15.07.2024 10:38 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165219 ФПД: 25897056415108 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T103859&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165219&fm=25897056415108&tin=02508201610067®Number=0000000000090829&sum=300000 [10:38:55]StoreToDocumentArchive [10:38:55]shift 448 fd 165219 [10:38:55]save to /storage/0448/doc_00165219 [10:38:55]save last doc name /storage/0448/doc_00165219 to /storage/kkm_last_doc_name [10:38:55]save OK [10:38:55]Clear old archive folders... [10:38:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:38:55]tlvbuf is 013D8B90 [10:38:55]SAM_PROTO_ClearQueue [10:38:55]wFMCommunicate request_size=4 [10:38:55]MH_SAM_APDU [10:38:55]CAPDU: 80 09 00 00 [10:38:55]Write to MH i2c: E2 08 00 29 2F 80 09 00 00 00 00 00 00 CA [10:38:55]Write i2c OK [10:38:55]MH_I2C_Read... [10:38:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:38:55]Read from MH i2c: E2 [10:38:55]MH_I2C_Read... [10:38:55]Read from MH i2c: E2 03 00 [10:38:55]MH_I2C_Read... [10:38:55]Read from MH i2c: E2 03 00 29 2F 00 90 00 CC [10:38:55]RAPDU: 90 00 [10:38:55]wFMCommunicate OK [10:38:55]SAM_PROTO_ClearQueue done [10:38:55]KKMCreateOFDPacket [10:38:55]OFDProtocolAddRootSTLVToBuf [10:38:55]FM_MakeSignedData [10:38:55]FM_MakeSignedData [10:38:55]SAM_PROTO_SignData [10:38:55]wFMCommunicate request_size=4 [10:38:55]MH_SAM_APDU [10:38:55]CAPDU: 80 0D 01 02 [10:38:55]Write to MH i2c: E2 08 00 2A 2F 80 0D 01 02 00 00 00 00 D2 [10:38:55]Write i2c OK [10:38:55]MH_I2C_Read... [10:38:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:38:55]Read from MH i2c: E2 [10:38:55]MH_I2C_Read... [10:38:55]Read from MH i2c: E2 03 00 [10:38:55]MH_I2C_Read... [10:38:55]Read from MH i2c: E2 03 00 2A 2F 00 90 00 CD [10:38:55]RAPDU: 90 00 [10:38:55]wFMCommunicate OK [10:38:55]wFMCommunicate request_size=255 [10:38:55]MH_SAM_APDU [10:38:55]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 5C 00 00 00 F4 03 04 00 43 FC 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 63 85 02 00 35 04 06 00 17 8D A0 D9 [10:38:55]Write to MH i2c: E2 02 01 2B 2F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 5C 00 00 00 F4 03 04 00 43 FC 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 63 85 02 00 35 04 06 00 17 8D A0 D9 00 00 51 [10:38:55]Write i2c OK [10:38:55]MH_I2C_Read... [10:38:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:55]Read from MH i2c: E2 [10:38:55]MH_I2C_Read... [10:38:55]Read from MH i2c: E2 03 00 [10:38:55]MH_I2C_Read... [10:38:55]Read from MH i2c: E2 03 00 2B 2F 00 90 00 CE [10:38:55]RAPDU: 90 00 [10:38:55]wFMCommunicate OK [10:38:55]wFMCommunicate request_size=7 [10:38:55]MH_SAM_APDU [10:38:55]CAPDU: 80 0D 02 02 02 2D 84 [10:38:55]Write to MH i2c: E2 0A 00 2C 2F 80 0D 02 02 02 00 2D 84 00 00 8A [10:38:55]Write i2c OK [10:38:55]MH_I2C_Read... [10:38:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:55]Read from MH i2c: E2 [10:38:55]MH_I2C_Read... [10:38:55]Read from MH i2c: E2 03 00 [10:38:55]MH_I2C_Read... [10:38:55]Read from MH i2c: E2 03 00 2C 2F 00 90 00 CF [10:38:55]RAPDU: 90 00 [10:38:55]wFMCommunicate OK [10:38:55]wFMCommunicate request_size=4 [10:38:55]MH_SAM_APDU [10:38:55]CAPDU: 80 0D 03 02 [10:38:55]Write to MH i2c: E2 08 00 2D 2F 80 0D 03 02 00 00 00 00 D7 [10:38:55]Write i2c OK [10:38:55]MH_I2C_Read... [10:38:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:38:55]Read from MH i2c: E2 [10:38:55]MH_I2C_Read... [10:38:55]Read from MH i2c: E2 0B 00 [10:38:55]MH_I2C_Read... [10:38:55]Read from MH i2c: E2 0B 00 2D 2F 00 C6 59 F9 B7 D8 4F 8A 15 90 00 6D [10:38:55]RAPDU: C6 59 F9 B7 D8 4F 8A 15 90 00 [10:38:55]wFMCommunicate OK [10:38:55]SAM_PROTO_SignData done [10:38:55]FM_MakeSignedData done [10:38:55]CreateOFDProtocolMessage [10:38:55]wFMCommunicate request_size=4 [10:38:55]MH_SAM_APDU [10:38:55]CAPDU: 80 11 00 00 [10:38:55]Write to MH i2c: E2 08 00 2E 2F 80 11 00 00 00 00 00 00 D7 [10:38:55]Write i2c OK [10:38:55]MH_I2C_Read... [10:38:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:55]Read from MH i2c: E2 [10:38:55]MH_I2C_Read... [10:38:55]Read from MH i2c: E2 17 00 [10:38:55]MH_I2C_Read... [10:38:55]Read from MH i2c: E2 17 00 2E 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2D [10:38:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:38:55]wFMCommunicate OK [10:38:55]CreateOFDProtocolMessage done [10:38:55]OFDSenderStorePacket 165219 [10:38:55]StoreOFDPacket docnum=165219 [10:38:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 24 18 04 01 02 60 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 5C 00 00 00 F4 03 04 00 43 FC 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 63 85 02 00 35 04 06 00 17 8D A0 D9 2D 84 C6 59 F9 B7 D8 4F 8A 15 [10:38:55]CheckFolder [10:38:55]dirname=/storage/ofd_packets [10:38:55]CheckFolder done [10:38:55]ProducePacketName [10:38:55]name=ofd_packets/00165219 [10:38:55]NVStorageSaveData ofd_packets/00165219 [10:38:55]File name is /storage/ofd_packets/00165219 [10:38:55]Write 298 bytes [10:38:55]NVStorageSaveData done [10:38:55]OFDSenderStorePacket done [10:38:55]KKMCreateOFDPacket done [10:38:55]NVStorageSaveData kkm_last_timestamp [10:38:55]File name is /storage/kkm_last_timestamp [10:38:55]Write 4 bytes [10:38:55]NVStorageSaveData done [10:38:55]ExternCall_PrintAddStr [10:38:55]wPrintStart [10:38:55]Write to MH i2c: 01 00 00 2F 2F 5E [10:38:55]Write i2c OK [10:38:55]MH_I2C_Read... [10:38:55]Read from MH i2c: 01 [10:38:55]MH_I2C_Read... [10:38:55]Read from MH i2c: 01 07 00 [10:38:55]MH_I2C_Read... [10:38:55]Read from MH i2c: 01 07 00 2F 2F 00 00 00 00 00 FF 0F 73 [10:38:55]RasterBufferAndPrint [10:38:55]line Счет N : (1)459322 [10:38:55]line ИНН: 02508201610067 [10:38:55]line Контрольно-Кассовый Чек [10:38:55]line ПРОДАЖА [10:38:55]line ТРК (МРК, ГНК) : 21 [10:38:55]line Товар: 2710194210 [10:38:55]line ДТ-К-5 [10:38:55]line 41.730 * 71.90 [10:38:55]line = 3000.39 [10:38:55]line НДС 12% НСП 1% [10:38:55]line > о реализуемом товаре [10:38:55]line ОКРУГЛЕНИЕ: -0.39 [10:38:55]line ИТОГО: 3000.00 [10:38:55]line Внесено: 3000.00 [10:38:55]line СДАЧА: 0.00 [10:38:55]line НСП 1% : 26.55 [10:38:55]line НДС 12% : 318.62 [10:38:55]line Наличными: 3000.00 [10:38:55]line Безнал.: 0.00 [10:38:55]line Место: АЗС № 72 "Партнер Нефть" [10:38:55]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:38:55]line СНО: Общий режим [10:38:55]line Чек 92 15.07.2024 10:38 [10:38:55]line Смена: 448 ФФД: 1.0 [10:38:55]line ЗНМ: 0300000160 [10:38:55]line РНМ: 0000000000090829 [10:38:55]line Версия ККМ: 001 [10:38:55]line ФМ: 0000000000874718 [10:38:55]line ФД: 165219 [10:38:55]line ФПД: 25897056415108 [10:38:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T103859&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165219&fm=25897056415108&tin=02508201610067®Number=0000000000090829&sum=300000 [10:38:56]OFD Sender: Processing packet 165219 [packets to send 106, broken 105] [10:38:56]ProducePacketName [10:38:56]name=ofd_packets/00165219 [10:38:56]OFD Sender: To server: pG, [10:38:56]CommunicateWithHost lk.salyk.kg:30040 [10:38:56]ConnectInit lk.salyk.kg [10:38:56]written 0, free lines is 4095 [10:38:56]Connected sock=10 [10:38: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 37 31 38 0C 01 00 00 24 18 04 01 02 60 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 5C 00 00 00 F4 03 04 00 43 FC 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 63 85 02 00 35 04 06 00 17 8D A0 D9 2D 84 C6 59 F9 B7 D8 4F 8A 15 [10:38:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 5C 65 47 00 D5 D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 63 85 02 00 F4 03 04 00 CD A2 94 66 B6 04 01 00 00 10 9B E2 53 C3 8F E4 AA [10:38:56]CommunicateWithHost err = 0 [10:38:56]CheckOFDResponse [10:38:56]1017 (14) - 77093643461234 [10:38:56]1041 (16) - 0000000000874718 [10:38:56]1040 (4) - 165219 [10:38:56]1012 (4) - 15.07.2024 04:17 [10:38:56]1206 (1) - 0 [10:38:56]OFD Sender: Remove packet 165219 [10:38:56]ProducePacketName [10:38:56]name=ofd_packets/00165219 [10:38:56]NVStorageDeleteData [10:38:56]Write to MH i2c: 01 00 00 59 2F 88 [10:38:56]Write i2c OK [10:38:56]MH_I2C_Read... [10:38:56]Read from MH i2c: 01 [10:38:56]MH_I2C_Read... [10:38:56]Read from MH i2c: 01 07 00 [10:38:56]MH_I2C_Read... [10:38:56]Read from MH i2c: 01 07 00 59 2F 00 00 00 00 00 05 0D A1 [10:38:56]RasterBufferAndPrint [10:38:56]line [10:38:56]line [10:38:56]line [10:38:56]line [10:38:56]line [10:38:56]written 0, free lines is 3339 [10:38:56]MH_Cut [10:38:56]Write to MH i2c: D1 01 00 60 2F 01 61 [10:38:56]Write i2c OK [10:38:56]MH_I2C_Read... [10:38:56]Read from MH i2c: D1 [10:38:56]MH_I2C_Read... [10:38:56]Read from MH i2c: D1 01 00 [10:38:56]MH_I2C_Read... [10:38:56]Read from MH i2c: D1 01 00 60 2F 00 60 [10:38:56]Write to MH i2c: 01 00 00 61 2F 90 [10:38:56]Write i2c OK [10:38:56]MH_I2C_Read... [10:38:56]OFD Sender: No OFD packet to send [10:38:57]*** Cut start [10:38:57]*** Partial cut [10:38:57]*** CUTSNS_PIN = 1 [10:38:57]*** CUTSNS_PIN = 0 [10:38:57]*** Brake cut motor [10:38:57]Read from MH i2c: 01 [10:38:57]MH_I2C_Read... [10:38:57]*** Stop cut motor [10:38:57]*** Cut end [10:38:57]Read from MH i2c: 01 07 00 [10:38:57]MH_I2C_Read... [10:38:57]Read from MH i2c: 01 07 00 61 2F 00 00 00 00 00 FF 0F A5 [10:38:57]process_action close_receipt done [10:38:57]requested_data is exist [10:38:57]produce_requested_data [10:38:57]requested_item fm.sn is exist - process it [10:38:57]wFMCommunicate request_size=4 [10:38:57]MH_SAM_APDU [10:38:57]CAPDU: 80 11 00 00 [10:38:57]Write to MH i2c: E2 08 00 62 2F 80 11 00 00 00 00 00 00 0B [10:38:57]Write i2c OK [10:38:57]MH_I2C_Read... [10:38:57]Read from MH i2c: E2 [10:38:57]MH_I2C_Read... [10:38:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:57]Read from MH i2c: E2 17 00 [10:38:57]MH_I2C_Read... [10:38:57]Read from MH i2c: E2 17 00 62 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 61 [10:38:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:38:57]wFMCommunicate OK [10:38:57]requested_item fd.num is exist - process it [10:38:57]SAM_PROTO_GetFieldsCounters [10:38:57]wFMCommunicate request_size=4 [10:38:57]MH_SAM_APDU [10:38:57]CAPDU: 80 13 00 00 [10:38:57]Write to MH i2c: E2 08 00 63 2F 80 13 00 00 00 00 00 00 0E [10:38:57]Write i2c OK [10:38:57]MH_I2C_Read... [10:38:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:38:58]Read from MH i2c: E2 [10:38:58]MH_I2C_Read... [10:38:58]Read from MH i2c: E2 62 00 [10:38:58]MH_I2C_Read... [10:38:58]Read from MH i2c: E2 62 00 63 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 63 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [10:38: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 63 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:38:58]wFMCommunicate OK [10:38:58]SAM_PROTO_GetFieldsCounters done [10:38:58]requested_item shift.num is exist - process it [10:38:58]requested_item shift.opened is exist - process it [10:38:58]req_shift_opened [10:38:58]FM_GetShiftState [10:38:58]SAM_PROTO_GetShiftState [10:38:58]wFMCommunicate request_size=4 [10:38:58]MH_SAM_APDU [10:38:58]CAPDU: 80 13 01 00 [10:38:58]Write to MH i2c: E2 08 00 64 2F 80 13 01 00 00 00 00 00 10 [10:38:58]Write i2c OK [10:38:58]MH_I2C_Read... [10:38:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:58]Read from MH i2c: E2 [10:38:58]MH_I2C_Read... [10:38:58]Read from MH i2c: E2 0E 00 [10:38:58]MH_I2C_Read... [10:38:58]Read from MH i2c: E2 0E 00 64 2F 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 E9 [10:38:58]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:38:58]wFMCommunicate OK [10:38:58]SAM_PROTO_GetShiftState done [10:38:58]FM_GetShiftState done [10:38:58]req_shift_opened done [10:38:58]requested_item shift.open_date is exist - process it [10:38:58]req_shift_open_date [10:38:58]req_shift_open_date done [10:38:58]produce_requested_data done [10:38:58]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165219,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [10:38:58]process_action_free close_receipt [10:38:58]json_value_free [10:38:58]json_value_free done [10:38:58]process_json_proto returns [10:38:58]Send response to host [10:38:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165219,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [10:38:58]free response buf [10:38:58]execute_script done [10:38:58]execute_script returns [10:38:58]free content buf [10:38:58]Sock 7.Close socket [10:38:58]Sock 7.Thread stoped [10:39:02]OFD Sender: No OFD packet to send [10:39:07]OFD Sender: No OFD packet to send [10:39:12]OFD Sender: No OFD packet to send [10:39:13]accept exits with 9 [10:39:13]New connection [10:39:13]New thread 3066928484 created [10:39:13]Thread 3066785124 joined [10:39:13]Waiting for new connection... [10:39:13] Sock 9.Parse request [10:39:13]Sock 9.Check first char [10:39:13]Sock 9.First char is OK [10:39:13]request: POST /json_proto HTTP/1.0 [10:39:13]Method: POST [10:39:13]URL: /json_proto [10:39:13]Method is POST - this is cgi request [10:39:13]url: /json_proto [10:39:13]query_string will be loaded in cgi processing [10:39:13]execute_cgi json_proto POST (null) [10:39:13]execute_cgi path=json_proto method=POST [10:39:13]POST find Content-Length [10:39:13]Host: 172.17.56.4:8080 [10:39:13]Content-Length: 679 [10:39:13]Content-Type: application/json [10:39:13] [10:39:13]POST finish read [10:39:13]Found Content-Length = 679 [10:39:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459323", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "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" ] } } [10:39:13]execute_script... [10:39:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459323", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "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" ] } } [10:39:13]POST & json_proto [10:39:13]process_json_proto [10:39:13]json parsed OK: [10:39:13]protocol is kg_v1.0 [10:39:13]action value=close_receipt [10:39:13]process_action close_receipt [10:39:13]cmd_close_receipt [10:39:13]MH_GetDate [10:39:13]Write to MH i2c: F0 00 00 65 2F 83 [10:39:13]Write i2c OK [10:39:13]MH_I2C_Read... [10:39:13]Read from MH i2c: F0 [10:39:13]MH_I2C_Read... [10:39:13]Read from MH i2c: F0 09 00 [10:39:13]MH_I2C_Read... [10:39:13]Read from MH i2c: F0 09 00 65 2F 00 56 FC 94 66 C9 DC B2 64 93 [10:39:13]GetLastDocTimeStamp 1721039939 [10:39:13]current date 1721039958 [10:39:13]FM_GetShiftState [10:39:13]SAM_PROTO_GetShiftState [10:39:13]wFMCommunicate request_size=4 [10:39:13]MH_SAM_APDU [10:39:13]CAPDU: 80 13 01 00 [10:39:13]Write to MH i2c: E2 08 00 66 2F 80 13 01 00 00 00 00 00 12 [10:39:13]Write i2c OK [10:39:13]MH_I2C_Read... [10:39:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:13]Read from MH i2c: E2 [10:39:13]MH_I2C_Read... [10:39:13]Read from MH i2c: E2 0E 00 [10:39:13]MH_I2C_Read... [10:39:13]Read from MH i2c: E2 0E 00 66 2F 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 EB [10:39:13]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:39:13]wFMCommunicate OK [10:39:13]SAM_PROTO_GetShiftState done [10:39:13]FM_GetShiftState done [10:39:13]opened in 1721003876 [10:39:13]opened+sec_in_day 1721090276 [10:39:13]quantity*price = 200025 [10:39:13]sum+1 = 200027 [10:39:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 93 15.07.2024 10:39 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165220 ФПД: 261974080472828 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T103918&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165220&fm=261974080472828&tin=02508201610067®Number=0000000000090829&sum=200000 [10:39:14]StoreToDocumentArchive [10:39:14]shift 448 fd 165220 [10:39:14]save to /storage/0448/doc_00165220 [10:39:14]save last doc name /storage/0448/doc_00165220 to /storage/kkm_last_doc_name [10:39:14]save OK [10:39:14]Clear old archive folders... [10:39:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:39:14]tlvbuf is B6ED4EF0 [10:39:14]SAM_PROTO_ClearQueue [10:39:14]wFMCommunicate request_size=4 [10:39:14]MH_SAM_APDU [10:39:14]CAPDU: 80 09 00 00 [10:39:14]Write to MH i2c: E2 08 00 73 2F 80 09 00 00 00 00 00 00 14 [10:39:14]Write i2c OK [10:39:14]MH_I2C_Read... [10:39:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:39:14]Read from MH i2c: E2 [10:39:14]MH_I2C_Read... [10:39:14]Read from MH i2c: E2 03 00 [10:39:14]MH_I2C_Read... [10:39:14]Read from MH i2c: E2 03 00 73 2F 00 90 00 16 [10:39:14]RAPDU: 90 00 [10:39:14]wFMCommunicate OK [10:39:14]SAM_PROTO_ClearQueue done [10:39:14]KKMCreateOFDPacket [10:39:14]OFDProtocolAddRootSTLVToBuf [10:39:14]FM_MakeSignedData [10:39:14]FM_MakeSignedData [10:39:14]SAM_PROTO_SignData [10:39:14]wFMCommunicate request_size=4 [10:39:14]MH_SAM_APDU [10:39:14]CAPDU: 80 0D 01 02 [10:39:14]Write to MH i2c: E2 08 00 74 2F 80 0D 01 02 00 00 00 00 1C [10:39:14]Write i2c OK [10:39:14]MH_I2C_Read... [10:39:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:39:14]Read from MH i2c: E2 [10:39:14]MH_I2C_Read... [10:39:14]Read from MH i2c: E2 03 00 [10:39:14]MH_I2C_Read... [10:39:14]Read from MH i2c: E2 03 00 74 2F 00 90 00 17 [10:39:14]RAPDU: 90 00 [10:39:14]wFMCommunicate OK [10:39:14]wFMCommunicate request_size=255 [10:39:14]MH_SAM_APDU [10:39:14]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 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 5D 00 00 00 F4 03 04 00 56 FC 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 64 85 02 00 35 04 06 00 EE 43 98 01 [10:39:14]Write to MH i2c: E2 02 01 75 2F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 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 5D 00 00 00 F4 03 04 00 56 FC 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 64 85 02 00 35 04 06 00 EE 43 98 01 00 00 2E [10:39:14]Write i2c OK [10:39:14]MH_I2C_Read... [10:39:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:14]Read from MH i2c: E2 [10:39:14]MH_I2C_Read... [10:39:14]Read from MH i2c: E2 03 00 [10:39:14]MH_I2C_Read... [10:39:14]Read from MH i2c: E2 03 00 75 2F 00 90 00 18 [10:39:14]RAPDU: 90 00 [10:39:14]wFMCommunicate OK [10:39:14]wFMCommunicate request_size=7 [10:39:14]MH_SAM_APDU [10:39:14]CAPDU: 80 0D 02 02 02 C6 FC [10:39:14]Write to MH i2c: E2 0A 00 76 2F 80 0D 02 02 02 00 C6 FC 00 00 E5 [10:39:14]Write i2c OK [10:39:14]MH_I2C_Read... [10:39:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:14]Read from MH i2c: E2 [10:39:14]MH_I2C_Read... [10:39:14]Read from MH i2c: E2 03 00 [10:39:14]MH_I2C_Read... [10:39:14]Read from MH i2c: E2 03 00 76 2F 00 90 00 19 [10:39:14]RAPDU: 90 00 [10:39:14]wFMCommunicate OK [10:39:14]wFMCommunicate request_size=4 [10:39:14]MH_SAM_APDU [10:39:14]CAPDU: 80 0D 03 02 [10:39:14]Write to MH i2c: E2 08 00 77 2F 80 0D 03 02 00 00 00 00 21 [10:39:14]Write i2c OK [10:39:14]MH_I2C_Read... [10:39:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:39:14]Read from MH i2c: E2 [10:39:14]MH_I2C_Read... [10:39:14]Read from MH i2c: E2 0B 00 [10:39:14]MH_I2C_Read... [10:39:14]Read from MH i2c: E2 0B 00 77 2F 00 15 63 05 99 5A F7 64 FE 90 00 EB [10:39:14]RAPDU: 15 63 05 99 5A F7 64 FE 90 00 [10:39:14]wFMCommunicate OK [10:39:14]SAM_PROTO_SignData done [10:39:14]FM_MakeSignedData done [10:39:14]CreateOFDProtocolMessage [10:39:14]wFMCommunicate request_size=4 [10:39:14]MH_SAM_APDU [10:39:14]CAPDU: 80 11 00 00 [10:39:14]Write to MH i2c: E2 08 00 78 2F 80 11 00 00 00 00 00 00 21 [10:39:14]Write i2c OK [10:39:14]MH_I2C_Read... [10:39:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:14]Read from MH i2c: E2 [10:39:14]MH_I2C_Read... [10:39:14]Read from MH i2c: E2 17 00 [10:39:14]MH_I2C_Read... [10:39:14]Read from MH i2c: E2 17 00 78 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 77 [10:39:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:39:14]wFMCommunicate OK [10:39:14]CreateOFDProtocolMessage done [10:39:14]OFDSenderStorePacket 165220 [10:39:14]StoreOFDPacket docnum=165220 [10:39:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 6C 82 04 01 DC E3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 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 5D 00 00 00 F4 03 04 00 56 FC 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 64 85 02 00 35 04 06 00 EE 43 98 01 C6 FC 15 63 05 99 5A F7 64 FE [10:39:14]CheckFolder [10:39:14]dirname=/storage/ofd_packets [10:39:14]CheckFolder done [10:39:14]ProducePacketName [10:39:14]name=ofd_packets/00165220 [10:39:14]NVStorageSaveData ofd_packets/00165220 [10:39:14]File name is /storage/ofd_packets/00165220 [10:39:14]Write 298 bytes [10:39:14]NVStorageSaveData done [10:39:14]OFDSenderStorePacket done [10:39:14]KKMCreateOFDPacket done [10:39:14]NVStorageSaveData kkm_last_timestamp [10:39:14]File name is /storage/kkm_last_timestamp [10:39:14]Write 4 bytes [10:39:14]NVStorageSaveData done [10:39:14]ExternCall_PrintAddStr [10:39:14]wPrintStart [10:39:14]Write to MH i2c: 01 00 00 79 2F A8 [10:39:14]Write i2c OK [10:39:14]MH_I2C_Read... [10:39:14]Read from MH i2c: 01 [10:39:14]MH_I2C_Read... [10:39:14]Read from MH i2c: 01 07 00 [10:39:14]MH_I2C_Read... [10:39:14]Read from MH i2c: 01 07 00 79 2F 00 00 00 00 00 FF 0F BD [10:39:14]RasterBufferAndPrint [10:39:14]line Счет N : (1)459323 [10:39:14]line ИНН: 02508201610067 [10:39:14]line Контрольно-Кассовый Чек [10:39:14]line ПРОДАЖА [10:39:14]line ТРК (МРК, ГНК) : 11 [10:39:14]line Товар: 2710194210 [10:39:14]line ДТ-К-5 [10:39:14]line 27.820 * 71.90 [10:39:14]line = 2000.26 [10:39:14]line НДС 12% НСП 1% [10:39:14]line > о реализуемом товаре [10:39:14]line ОКРУГЛЕНИЕ: -0.26 [10:39:14]line ИТОГО: 2000.00 [10:39:14]line Внесено: 2000.00 [10:39:14]line СДАЧА: 0.00 [10:39:14]line НСП 1% : 17.70 [10:39:14]line НДС 12% : 212.42 [10:39:14]line Наличными: 2000.00 [10:39:14]line Безнал.: 0.00 [10:39:14]line Место: АЗС № 72 "Партнер Нефть" [10:39:14]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:39:14]line СНО: Общий режим [10:39:14]line Чек 93 15.07.2024 10:39 [10:39:14]line Смена: 448 ФФД: 1.0 [10:39:14]line ЗНМ: 0300000160 [10:39:14]line РНМ: 0000000000090829 [10:39:14]line Версия ККМ: 001 [10:39:14]line ФМ: 0000000000874718 [10:39:14]line ФД: 165220 [10:39:14]line ФПД: 261974080472828 [10:39:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T103918&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165220&fm=261974080472828&tin=02508201610067®Number=0000000000090829&sum=200000 [10:39:15]OFD Sender: Processing packet 165220 [packets to send 106, broken 105] [10:39:15]ProducePacketName [10:39:15]name=ofd_packets/00165220 [10:39:15]OFD Sender: To server: pG, [10:39:15]CommunicateWithHost lk.salyk.kg:30040 [10:39:15]ConnectInit lk.salyk.kg [10:39:15]written 0, free lines is 4095 [10:39:15]Connected sock=10 [10:39:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 6C 82 04 01 DC E3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 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 5D 00 00 00 F4 03 04 00 56 FC 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 64 85 02 00 35 04 06 00 EE 43 98 01 C6 FC 15 63 05 99 5A F7 64 FE [10:39:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 32 B9 47 00 F7 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 64 85 02 00 F4 03 04 00 E0 A2 94 66 B6 04 01 00 00 FC 32 9E C7 75 26 BD 6D [10:39:15]CommunicateWithHost err = 0 [10:39:15]CheckOFDResponse [10:39:15]1017 (14) - 77093643461234 [10:39:15]1041 (16) - 0000000000874718 [10:39:15]1040 (4) - 165220 [10:39:15]1012 (4) - 15.07.2024 04:17 [10:39:15]1206 (1) - 0 [10:39:15]OFD Sender: Remove packet 165220 [10:39:15]ProducePacketName [10:39:15]name=ofd_packets/00165220 [10:39:15]NVStorageDeleteData [10:39:15]Write to MH i2c: 01 00 00 A3 2F D2 [10:39:15]Write i2c OK [10:39:15]MH_I2C_Read... [10:39:15]Read from MH i2c: 01 [10:39:15]MH_I2C_Read... [10:39:15]Read from MH i2c: 01 07 00 [10:39:15]MH_I2C_Read... [10:39:15]Read from MH i2c: 01 07 00 A3 2F 00 00 00 00 00 F0 0C D5 [10:39:15]RasterBufferAndPrint [10:39:15]line [10:39:15]line [10:39:15]line [10:39:15]line [10:39:15]line [10:39:15]written 0, free lines is 3318 [10:39:15]MH_Cut [10:39:15]Write to MH i2c: D1 01 00 AA 2F 01 AB [10:39:15]Write i2c OK [10:39:15]MH_I2C_Read... [10:39:15]Read from MH i2c: D1 [10:39:15]MH_I2C_Read... [10:39:15]Read from MH i2c: D1 01 00 [10:39:15]MH_I2C_Read... [10:39:15]Read from MH i2c: D1 01 00 AA 2F 00 AA [10:39:15]Write to MH i2c: 01 00 00 AB 2F DA [10:39:15]Write i2c OK [10:39:15]MH_I2C_Read... [10:39:16]OFD Sender: No OFD packet to send [10:39:16]*** Cut start [10:39:16]*** Partial cut [10:39:16]*** CUTSNS_PIN = 1 [10:39:16]*** CUTSNS_PIN = 0 [10:39:16]*** Brake cut motor [10:39:17]Read from MH i2c: 01 [10:39:17]MH_I2C_Read... [10:39:17]*** Stop cut motor [10:39:17]*** Cut end [10:39:17]Read from MH i2c: 01 07 00 [10:39:17]MH_I2C_Read... [10:39:17]Read from MH i2c: 01 07 00 AB 2F 00 00 00 00 00 FF 0F EF [10:39:17]process_action close_receipt done [10:39:17]requested_data is exist [10:39:17]produce_requested_data [10:39:17]requested_item fm.sn is exist - process it [10:39:17]wFMCommunicate request_size=4 [10:39:17]MH_SAM_APDU [10:39:17]CAPDU: 80 11 00 00 [10:39:17]Write to MH i2c: E2 08 00 AC 2F 80 11 00 00 00 00 00 00 55 [10:39:17]Write i2c OK [10:39:17]MH_I2C_Read... [10:39:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:17]Read from MH i2c: E2 [10:39:17]MH_I2C_Read... [10:39:17]Read from MH i2c: E2 17 00 [10:39:17]MH_I2C_Read... [10:39:17]Read from MH i2c: E2 17 00 AC 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AB [10:39:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:39:17]wFMCommunicate OK [10:39:17]requested_item fd.num is exist - process it [10:39:17]SAM_PROTO_GetFieldsCounters [10:39:17]wFMCommunicate request_size=4 [10:39:17]MH_SAM_APDU [10:39:17]CAPDU: 80 13 00 00 [10:39:17]Write to MH i2c: E2 08 00 AD 2F 80 13 00 00 00 00 00 00 58 [10:39:17]Write i2c OK [10:39:17]MH_I2C_Read... [10:39:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:39:17]Read from MH i2c: E2 [10:39:17]MH_I2C_Read... [10:39:17]Read from MH i2c: E2 62 00 [10:39:17]MH_I2C_Read... [10:39:17]Read from MH i2c: E2 62 00 AD 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 64 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [10:39: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 64 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:39:17]wFMCommunicate OK [10:39:17]SAM_PROTO_GetFieldsCounters done [10:39:17]requested_item shift.num is exist - process it [10:39:17]requested_item shift.opened is exist - process it [10:39:17]req_shift_opened [10:39:17]FM_GetShiftState [10:39:17]SAM_PROTO_GetShiftState [10:39:17]wFMCommunicate request_size=4 [10:39:17]MH_SAM_APDU [10:39:17]CAPDU: 80 13 01 00 [10:39:17]Write to MH i2c: E2 08 00 AE 2F 80 13 01 00 00 00 00 00 5A [10:39:17]Write i2c OK [10:39:17]MH_I2C_Read... [10:39:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:17]Read from MH i2c: E2 [10:39:17]MH_I2C_Read... [10:39:17]Read from MH i2c: E2 0E 00 [10:39:17]MH_I2C_Read... [10:39:17]Read from MH i2c: E2 0E 00 AE 2F 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 33 [10:39:17]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:39:17]wFMCommunicate OK [10:39:17]SAM_PROTO_GetShiftState done [10:39:17]FM_GetShiftState done [10:39:17]req_shift_opened done [10:39:17]requested_item shift.open_date is exist - process it [10:39:17]req_shift_open_date [10:39:17]req_shift_open_date done [10:39:17]produce_requested_data done [10:39:17]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165220,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [10:39:17]process_action_free close_receipt [10:39:17]json_value_free [10:39:17]json_value_free done [10:39:17]process_json_proto returns [10:39:17]Send response to host [10:39:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165220,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [10:39:17]free response buf [10:39:17]execute_script done [10:39:17]execute_script returns [10:39:17]free content buf [10:39:17]Sock 9.Close socket [10:39:17]Sock 9.Thread stoped [10:39:21]OFD Sender: No OFD packet to send [10:39:26]OFD Sender: No OFD packet to send [10:39:31]OFD Sender: No OFD packet to send [10:39:36]OFD Sender: No OFD packet to send [10:39:41]OFD Sender: No OFD packet to send [10:39:41]accept exits with 7 [10:39:41]New connection [10:39:41]New thread 3066785124 created [10:39:41]Thread 3066928484 joined [10:39:41]Waiting for new connection... [10:39:41] Sock 7.Parse request [10:39:41]Sock 7.Check first char [10:39:41]Sock 7.First char is OK [10:39:41]request: POST /json_proto HTTP/1.0 [10:39:41]Method: POST [10:39:41]URL: /json_proto [10:39:41]Method is POST - this is cgi request [10:39:41]url: /json_proto [10:39:41]query_string will be loaded in cgi processing [10:39:41]execute_cgi json_proto POST (null) [10:39:41]execute_cgi path=json_proto method=POST [10:39:41]POST find Content-Length [10:39:41]Host: 172.17.56.4:8080 [10:39:41]Content-Length: 677 [10:39:41]Content-Type: application/json [10:39:41] [10:39:41]POST finish read [10:39:41]Found Content-Length = 677 [10:39:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459324", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.980, "sum" : 130.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 130.00, "total" : 130.00, "payments": [ { "type": 0, "sum" : 130.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:41]execute_script... [10:39: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)459324", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.980, "sum" : 130.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 130.00, "total" : 130.00, "payments": [ { "type": 0, "sum" : 130.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:41]POST & json_proto [10:39:41]process_json_proto [10:39:41]json parsed OK: [10:39:41]protocol is kg_v1.0 [10:39:41]action value=close_receipt [10:39:41]process_action close_receipt [10:39:41]cmd_close_receipt [10:39:41]MH_GetDate [10:39:41]Write to MH i2c: F0 00 00 AF 2F CD [10:39:41]Write i2c OK [10:39:41]MH_I2C_Read... [10:39:41]Read from MH i2c: F0 [10:39:41]MH_I2C_Read... [10:39:41]Read from MH i2c: F0 09 00 [10:39:41]MH_I2C_Read... [10:39:41]Read from MH i2c: F0 09 00 AF 2F 00 72 FC 94 66 C9 DC B2 64 F9 [10:39:41]GetLastDocTimeStamp 1721039958 [10:39:41]current date 1721039986 [10:39:41]FM_GetShiftState [10:39:41]SAM_PROTO_GetShiftState [10:39:41]wFMCommunicate request_size=4 [10:39:41]MH_SAM_APDU [10:39:41]CAPDU: 80 13 01 00 [10:39:41]Write to MH i2c: E2 08 00 B0 2F 80 13 01 00 00 00 00 00 5C [10:39:41]Write i2c OK [10:39:41]MH_I2C_Read... [10:39:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:41]Read from MH i2c: E2 [10:39:41]MH_I2C_Read... [10:39:41]Read from MH i2c: E2 0E 00 [10:39:41]MH_I2C_Read... [10:39:41]Read from MH i2c: E2 0E 00 B0 2F 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 35 [10:39:41]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:39:41]wFMCommunicate OK [10:39:41]SAM_PROTO_GetShiftState done [10:39:41]FM_GetShiftState done [10:39:41]opened in 1721003876 [10:39:41]opened+sec_in_day 1721090276 [10:39:41]quantity*price = 13028 [10:39:41]sum+1 = 13029 [10:39:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 130.00 Внесено: 130.00 СДАЧА: 0.00 НСП 1% : 1.15 НДС 12% : 13.83 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 94 15.07.2024 10:39 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165221 ФПД: 194929580794448 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T103946&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165221&fm=194929580794448&tin=02508201610067®Number=0000000000090829&sum=13000 [10:39:42]StoreToDocumentArchive [10:39:42]shift 448 fd 165221 [10:39:42]save to /storage/0448/doc_00165221 [10:39:42]save last doc name /storage/0448/doc_00165221 to /storage/kkm_last_doc_name [10:39:42]save OK [10:39:42]Clear old archive folders... [10:39:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:39:42]tlvbuf is 01396F80 [10:39:42]SAM_PROTO_ClearQueue [10:39:42]wFMCommunicate request_size=4 [10:39:42]MH_SAM_APDU [10:39:42]CAPDU: 80 09 00 00 [10:39:42]Write to MH i2c: E2 08 00 BD 2F 80 09 00 00 00 00 00 00 5E [10:39:42]Write i2c OK [10:39:42]MH_I2C_Read... [10:39:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:39:42]Read from MH i2c: E2 [10:39:42]MH_I2C_Read... [10:39:42]Read from MH i2c: E2 03 00 [10:39:42]MH_I2C_Read... [10:39:42]Read from MH i2c: E2 03 00 BD 2F 00 90 00 60 [10:39:42]RAPDU: 90 00 [10:39:42]wFMCommunicate OK [10:39:42]SAM_PROTO_ClearQueue done [10:39:42]KKMCreateOFDPacket [10:39:42]OFDProtocolAddRootSTLVToBuf [10:39:42]FM_MakeSignedData [10:39:42]FM_MakeSignedData [10:39:42]SAM_PROTO_SignData [10:39:42]wFMCommunicate request_size=4 [10:39:42]MH_SAM_APDU [10:39:42]CAPDU: 80 0D 01 02 [10:39:42]Write to MH i2c: E2 08 00 BE 2F 80 0D 01 02 00 00 00 00 66 [10:39:42]Write i2c OK [10:39:42]MH_I2C_Read... [10:39:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:39:42]Read from MH i2c: E2 [10:39:42]MH_I2C_Read... [10:39:42]Read from MH i2c: E2 03 00 [10:39:42]MH_I2C_Read... [10:39:42]Read from MH i2c: E2 03 00 BE 2F 00 90 00 61 [10:39:42]RAPDU: 90 00 [10:39:42]wFMCommunicate OK [10:39:42]wFMCommunicate request_size=255 [10:39:42]MH_SAM_APDU [10:39: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 BC 07 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E4 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 72 FC 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 65 85 02 00 35 04 06 00 B1 [10:39:42]Write to MH i2c: E2 02 01 BF 2F 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 BC 07 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E4 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 72 FC 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 65 85 02 00 35 04 06 00 B1 00 00 13 [10:39:42]Write i2c OK [10:39:42]MH_I2C_Read... [10:39:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:42]Read from MH i2c: E2 [10:39:42]MH_I2C_Read... [10:39:42]Read from MH i2c: E2 03 00 [10:39:42]MH_I2C_Read... [10:39:42]Read from MH i2c: E2 03 00 BF 2F 00 90 00 62 [10:39:42]RAPDU: 90 00 [10:39:42]wFMCommunicate OK [10:39:42]wFMCommunicate request_size=10 [10:39:42]MH_SAM_APDU [10:39:42]CAPDU: 80 0D 02 02 05 49 94 6B 62 50 [10:39:42]Write to MH i2c: E2 0D 00 C0 2F 80 0D 02 02 05 00 49 94 6B 62 50 00 00 6D [10:39:42]Write i2c OK [10:39:42]MH_I2C_Read... [10:39:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:42]Read from MH i2c: E2 [10:39:42]MH_I2C_Read... [10:39:42]Read from MH i2c: E2 03 00 [10:39:42]MH_I2C_Read... [10:39:42]Read from MH i2c: E2 03 00 C0 2F 00 90 00 63 [10:39:42]RAPDU: 90 00 [10:39:42]wFMCommunicate OK [10:39:42]wFMCommunicate request_size=4 [10:39:42]MH_SAM_APDU [10:39:42]CAPDU: 80 0D 03 02 [10:39:42]Write to MH i2c: E2 08 00 C1 2F 80 0D 03 02 00 00 00 00 6B [10:39:42]Write i2c OK [10:39:42]MH_I2C_Read... [10:39:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:39:42]Read from MH i2c: E2 [10:39:42]MH_I2C_Read... [10:39:42]Read from MH i2c: E2 0B 00 [10:39:42]MH_I2C_Read... [10:39:42]Read from MH i2c: E2 0B 00 C1 2F 00 3A F6 88 9D BC FF 23 3C 90 00 DB [10:39:42]RAPDU: 3A F6 88 9D BC FF 23 3C 90 00 [10:39:42]wFMCommunicate OK [10:39:42]SAM_PROTO_SignData done [10:39:42]FM_MakeSignedData done [10:39:42]CreateOFDProtocolMessage [10:39:42]wFMCommunicate request_size=4 [10:39:42]MH_SAM_APDU [10:39:42]CAPDU: 80 11 00 00 [10:39:42]Write to MH i2c: E2 08 00 C2 2F 80 11 00 00 00 00 00 00 6B [10:39:42]Write i2c OK [10:39:42]MH_I2C_Read... [10:39:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:42]Read from MH i2c: E2 [10:39:42]MH_I2C_Read... [10:39:42]Read from MH i2c: E2 17 00 [10:39:42]MH_I2C_Read... [10:39:42]Read from MH i2c: E2 17 00 C2 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C1 [10:39:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:39:42]wFMCommunicate OK [10:39:42]CreateOFDProtocolMessage done [10:39:42]OFDSenderStorePacket 165221 [10:39:42]StoreOFDPacket docnum=165221 [10:39:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B6 3D 07 01 20 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BC 07 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E4 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 72 FC 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 65 85 02 00 35 04 06 00 B1 49 94 6B 62 50 3A F6 88 9D BC FF 23 3C [10:39:42]CheckFolder [10:39:42]dirname=/storage/ofd_packets [10:39:42]CheckFolder done [10:39:42]ProducePacketName [10:39:42]name=ofd_packets/00165221 [10:39:42]NVStorageSaveData ofd_packets/00165221 [10:39:42]File name is /storage/ofd_packets/00165221 [10:39:42]Write 301 bytes [10:39:42]NVStorageSaveData done [10:39:42]OFDSenderStorePacket done [10:39:42]KKMCreateOFDPacket done [10:39:42]NVStorageSaveData kkm_last_timestamp [10:39:42]File name is /storage/kkm_last_timestamp [10:39:42]Write 4 bytes [10:39:42]NVStorageSaveData done [10:39:42]OFD Sender: Processing packet 165221 [packets to send 106, broken 105] [10:39:42]ProducePacketName [10:39:42]name=ofd_packets/00165221 [10:39:42]OFD Sender: To server: pG, [10:39:42]CommunicateWithHost lk.salyk.kg:30040 [10:39:42]ConnectInit lk.salyk.kg [10:39:42]ExternCall_PrintAddStr [10:39:42]wPrintStart [10:39:42]Write to MH i2c: 01 00 00 C3 2F F2 [10:39:42]Write i2c OK [10:39:42]MH_I2C_Read... [10:39:42]Read from MH i2c: 01 [10:39:42]MH_I2C_Read... [10:39:42]Read from MH i2c: 01 07 00 [10:39:42]MH_I2C_Read... [10:39:42]Read from MH i2c: 01 07 00 C3 2F 00 00 00 00 00 FF 0F 07 [10:39:42]RasterBufferAndPrint [10:39:42]line Счет N : (1)459324 [10:39:42]line ИНН: 02508201610067 [10:39:42]line Контрольно-Кассовый Чек [10:39:42]line ПРОДАЖА [10:39:42]line ТРК (МРК, ГНК) : 12 [10:39:42]line Товар: 2710124130 [10:39:42]line Аи-92-К-5 [10:39:42]line 1.980 * 65.80 [10:39:42]line = 130.28 [10:39:42]line НДС 12% НСП 1% [10:39:42]line > о реализуемом товаре [10:39:42]line ОКРУГЛЕНИЕ: -0.28 [10:39:42]line ИТОГО: 130.00 [10:39:42]line Внесено: 130.00 [10:39:42]line СДАЧА: 0.00 [10:39:42]line НСП 1% : 1.15 [10:39:42]line НДС 12% : 13.83 [10:39:42]line Наличными: 130.00 [10:39:42]line Безнал.: 0.00 [10:39:42]line Место: АЗС № 72 "Партнер Нефть" [10:39:42]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:39:42]line СНО: Общий режим [10:39:42]line Чек 94 15.07.2024 10:39 [10:39:42]line Смена: 448 ФФД: 1.0 [10:39:42]line ЗНМ: 0300000160 [10:39:42]line РНМ: 0000000000090829 [10:39:42]line Версия ККМ: 001 [10:39:42]line ФМ: 0000000000874718 [10:39:42]line ФД: 165221 [10:39:42]line ФПД: 194929580794448 [10:39:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T103946&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165221&fm=194929580794448&tin=02508201610067®Number=0000000000090829&sum=13000 [10:39:43]Connected sock=11 [10:39: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 37 31 38 0F 01 00 00 B6 3D 07 01 20 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BC 07 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E4 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 72 FC 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 65 85 02 00 35 04 06 00 B1 49 94 6B 62 50 3A F6 88 9D BC FF 23 3C [10:39:43]written 0, free lines is 4095 [10:39:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 AD 25 47 00 45 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 65 85 02 00 F4 03 04 00 FC A2 94 66 B6 04 01 00 00 8F 49 51 E1 B0 F6 84 F6 [10:39:43]CommunicateWithHost err = 0 [10:39:43]CheckOFDResponse [10:39:43]1017 (14) - 77093643461234 [10:39:43]1041 (16) - 0000000000874718 [10:39:43]1040 (4) - 165221 [10:39:43]1012 (4) - 15.07.2024 04:18 [10:39:43]1206 (1) - 0 [10:39:43]OFD Sender: Remove packet 165221 [10:39:43]ProducePacketName [10:39:43]name=ofd_packets/00165221 [10:39:43]NVStorageDeleteData [10:39:43]Write to MH i2c: 01 00 00 ED 2F 1C [10:39:43]Write i2c OK [10:39:43]MH_I2C_Read... [10:39:43]Read from MH i2c: 01 [10:39:43]MH_I2C_Read... [10:39:43]Read from MH i2c: 01 07 00 [10:39:43]MH_I2C_Read... [10:39:43]Read from MH i2c: 01 07 00 ED 2F 00 00 00 00 00 F6 0C 25 [10:39:43]RasterBufferAndPrint [10:39:43]line [10:39:43]line [10:39:43]line [10:39:43]line [10:39:43]line [10:39:43]written 0, free lines is 3325 [10:39:43]MH_Cut [10:39:43]Write to MH i2c: D1 01 00 F4 2F 01 F5 [10:39:43]Write i2c OK [10:39:43]MH_I2C_Read... [10:39:43]Read from MH i2c: D1 [10:39:43]MH_I2C_Read... [10:39:43]Read from MH i2c: D1 01 00 [10:39:43]MH_I2C_Read... [10:39:43]Read from MH i2c: D1 01 00 F4 2F 00 F4 [10:39:43]Write to MH i2c: 01 00 00 F5 2F 24 [10:39:43]Write i2c OK [10:39:43]MH_I2C_Read... [10:39:43]OFD Sender: No OFD packet to send [10:39:44]*** Cut start [10:39:44]*** Partial cut [10:39:44]*** CUTSNS_PIN = 1 [10:39:44]*** CUTSNS_PIN = 0 [10:39:44]*** Brake cut motor [10:39:44]Read from MH i2c: 01 [10:39:44]MH_I2C_Read... [10:39:44]*** Stop cut motor [10:39:44]*** Cut end [10:39:44]Read from MH i2c: 01 07 00 [10:39:44]MH_I2C_Read... [10:39:44]Read from MH i2c: 01 07 00 F5 2F 00 00 00 00 00 FF 0F 39 [10:39:44]process_action close_receipt done [10:39:44]requested_data is exist [10:39:44]produce_requested_data [10:39:44]requested_item fm.sn is exist - process it [10:39:44]wFMCommunicate request_size=4 [10:39:44]MH_SAM_APDU [10:39:44]CAPDU: 80 11 00 00 [10:39:44]Write to MH i2c: E2 08 00 F6 2F 80 11 00 00 00 00 00 00 9F [10:39:44]Write i2c OK [10:39:44]MH_I2C_Read... [10:39:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:45]Read from MH i2c: E2 [10:39:45]MH_I2C_Read... [10:39:45]Read from MH i2c: E2 17 00 [10:39:45]MH_I2C_Read... [10:39:45]Read from MH i2c: E2 17 00 F6 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F5 [10:39:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:39:45]wFMCommunicate OK [10:39:45]requested_item fd.num is exist - process it [10:39:45]SAM_PROTO_GetFieldsCounters [10:39:45]wFMCommunicate request_size=4 [10:39:45]MH_SAM_APDU [10:39:45]CAPDU: 80 13 00 00 [10:39:45]Write to MH i2c: E2 08 00 F7 2F 80 13 00 00 00 00 00 00 A2 [10:39:45]Write i2c OK [10:39:45]MH_I2C_Read... [10:39:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:39:45]Read from MH i2c: E2 [10:39:45]MH_I2C_Read... [10:39:45]Read from MH i2c: E2 62 00 [10:39:45]MH_I2C_Read... [10:39:45]Read from MH i2c: E2 62 00 F7 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 65 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [10:39: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 65 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:39:45]wFMCommunicate OK [10:39:45]SAM_PROTO_GetFieldsCounters done [10:39:45]requested_item shift.num is exist - process it [10:39:45]requested_item shift.opened is exist - process it [10:39:45]req_shift_opened [10:39:45]FM_GetShiftState [10:39:45]SAM_PROTO_GetShiftState [10:39:45]wFMCommunicate request_size=4 [10:39:45]MH_SAM_APDU [10:39:45]CAPDU: 80 13 01 00 [10:39:45]Write to MH i2c: E2 08 00 F8 2F 80 13 01 00 00 00 00 00 A4 [10:39:45]Write i2c OK [10:39:45]MH_I2C_Read... [10:39:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:45]Read from MH i2c: E2 [10:39:45]MH_I2C_Read... [10:39:45]Read from MH i2c: E2 0E 00 [10:39:45]MH_I2C_Read... [10:39:45]Read from MH i2c: E2 0E 00 F8 2F 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 7D [10:39:45]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:39:45]wFMCommunicate OK [10:39:45]SAM_PROTO_GetShiftState done [10:39:45]FM_GetShiftState done [10:39:45]req_shift_opened done [10:39:45]requested_item shift.open_date is exist - process it [10:39:45]req_shift_open_date [10:39:45]req_shift_open_date done [10:39:45]produce_requested_data done [10:39:45]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165221,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [10:39:45]process_action_free close_receipt [10:39:45]json_value_free [10:39:45]json_value_free done [10:39:45]process_json_proto returns [10:39:45]Send response to host [10:39:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165221,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [10:39:45]free response buf [10:39:45]execute_script done [10:39:45]execute_script returns [10:39:45]free content buf [10:39:45]Sock 7.Close socket [10:39:45]Sock 7.Thread stoped [10:39:48]OFD Sender: No OFD packet to send [10:39:53]OFD Sender: No OFD packet to send [10:39:58]OFD Sender: No OFD packet to send [10:40:02]accept exits with 9 [10:40:02]New connection [10:40:02]New thread 3066928484 created [10:40:02]Thread 3066785124 joined [10:40:02]Waiting for new connection... [10:40:02] Sock 9.Parse request [10:40:02]Sock 9.Check first char [10:40:02]Sock 9.First char is OK [10:40:02]request: POST /json_proto HTTP/1.0 [10:40:02]Method: POST [10:40:02]URL: /json_proto [10:40:02]Method is POST - this is cgi request [10:40:02]url: /json_proto [10:40:02]query_string will be loaded in cgi processing [10:40:02]execute_cgi json_proto POST (null) [10:40:02]execute_cgi path=json_proto method=POST [10:40:02]POST find Content-Length [10:40:02]Host: 172.17.56.4:8080 [10:40:02]Content-Length: 677 [10:40:02]Content-Type: application/json [10:40:02] [10:40:02]POST finish read [10:40:02]Found Content-Length = 677 [10:40:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459325", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:40:02]execute_script... [10:40:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459325", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:40:02]POST & json_proto [10:40:02]process_json_proto [10:40:02]json parsed OK: [10:40:02]protocol is kg_v1.0 [10:40:02]action value=close_receipt [10:40:02]process_action close_receipt [10:40:02]cmd_close_receipt [10:40:02]MH_GetDate [10:40:02]Write to MH i2c: F0 00 00 F9 2F 17 [10:40:02]Write i2c OK [10:40:02]MH_I2C_Read... [10:40:02]Read from MH i2c: F0 [10:40:02]MH_I2C_Read... [10:40:02]Read from MH i2c: F0 09 00 [10:40:02]MH_I2C_Read... [10:40:02]Read from MH i2c: F0 09 00 F9 2F 00 87 FC 94 66 C9 DC B2 64 58 [10:40:02]GetLastDocTimeStamp 1721039986 [10:40:02]current date 1721040007 [10:40:02]FM_GetShiftState [10:40:02]SAM_PROTO_GetShiftState [10:40:02]wFMCommunicate request_size=4 [10:40:02]MH_SAM_APDU [10:40:02]CAPDU: 80 13 01 00 [10:40:02]Write to MH i2c: E2 08 00 FA 2F 80 13 01 00 00 00 00 00 A6 [10:40:02]Write i2c OK [10:40:02]MH_I2C_Read... [10:40:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:02]Read from MH i2c: E2 [10:40:02]MH_I2C_Read... [10:40:02]Read from MH i2c: E2 0E 00 [10:40:02]MH_I2C_Read... [10:40:02]Read from MH i2c: E2 0E 00 FA 2F 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 7F [10:40:02]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:40:02]wFMCommunicate OK [10:40:02]SAM_PROTO_GetShiftState done [10:40:02]FM_GetShiftState done [10:40:02]opened in 1721003876 [10:40:02]opened+sec_in_day 1721090276 [10:40:02]quantity*price = 40006 [10:40:02]sum+1 = 40007 [10:40:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 95 15.07.2024 10:40 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165222 ФПД: 140352215699614 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T104007&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165222&fm=140352215699614&tin=02508201610067®Number=0000000000090829&sum=40000 [10:40:03]StoreToDocumentArchive [10:40:03]shift 448 fd 165222 [10:40:03]save to /storage/0448/doc_00165222 [10:40:03]save last doc name /storage/0448/doc_00165222 to /storage/kkm_last_doc_name [10:40:03]save OK [10:40:03]Clear old archive folders... [10:40:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:40:03]tlvbuf is 01397660 [10:40:03]SAM_PROTO_ClearQueue [10:40:03]wFMCommunicate request_size=4 [10:40:03]MH_SAM_APDU [10:40:03]CAPDU: 80 09 00 00 [10:40:03]Write to MH i2c: E2 08 00 07 30 80 09 00 00 00 00 00 00 A9 [10:40:03]Write i2c OK [10:40:03]MH_I2C_Read... [10:40:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:40:03]Read from MH i2c: E2 [10:40:03]MH_I2C_Read... [10:40:03]Read from MH i2c: E2 03 00 [10:40:03]MH_I2C_Read... [10:40:03]Read from MH i2c: E2 03 00 07 30 00 90 00 AB [10:40:03]RAPDU: 90 00 [10:40:03]wFMCommunicate OK [10:40:03]SAM_PROTO_ClearQueue done [10:40:03]KKMCreateOFDPacket [10:40:03]OFDProtocolAddRootSTLVToBuf [10:40:03]FM_MakeSignedData [10:40:03]FM_MakeSignedData [10:40:03]SAM_PROTO_SignData [10:40:03]wFMCommunicate request_size=4 [10:40:03]MH_SAM_APDU [10:40:03]CAPDU: 80 0D 01 02 [10:40:03]Write to MH i2c: E2 08 00 08 30 80 0D 01 02 00 00 00 00 B1 [10:40:03]Write i2c OK [10:40:03]MH_I2C_Read... [10:40:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:40:03]Read from MH i2c: E2 [10:40:03]MH_I2C_Read... [10:40:03]Read from MH i2c: E2 03 00 [10:40:03]MH_I2C_Read... [10:40:03]Read from MH i2c: E2 03 00 08 30 00 90 00 AC [10:40:03]RAPDU: 90 00 [10:40:03]wFMCommunicate OK [10:40:03]wFMCommunicate request_size=255 [10:40:03]MH_SAM_APDU [10:40:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 87 FC 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 66 85 02 00 35 04 06 00 7F [10:40:03]Write to MH i2c: E2 02 01 09 30 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 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 87 FC 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 66 85 02 00 35 04 06 00 7F 00 00 13 [10:40:03]Write i2c OK [10:40:03]MH_I2C_Read... [10:40:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:03]Read from MH i2c: E2 [10:40:03]MH_I2C_Read... [10:40:03]Read from MH i2c: E2 03 00 [10:40:03]MH_I2C_Read... [10:40:03]Read from MH i2c: E2 03 00 09 30 00 90 00 AD [10:40:03]RAPDU: 90 00 [10:40:03]wFMCommunicate OK [10:40:03]wFMCommunicate request_size=10 [10:40:03]MH_SAM_APDU [10:40:03]CAPDU: 80 0D 02 02 05 A6 4B F5 D0 9E [10:40:03]Write to MH i2c: E2 0D 00 0A 30 80 0D 02 02 05 00 A6 4B F5 D0 9E 00 00 12 [10:40:03]Write i2c OK [10:40:03]MH_I2C_Read... [10:40:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:03]Read from MH i2c: E2 [10:40:03]MH_I2C_Read... [10:40:03]Read from MH i2c: E2 03 00 [10:40:03]MH_I2C_Read... [10:40:03]Read from MH i2c: E2 03 00 0A 30 00 90 00 AE [10:40:03]RAPDU: 90 00 [10:40:03]wFMCommunicate OK [10:40:03]wFMCommunicate request_size=4 [10:40:03]MH_SAM_APDU [10:40:03]CAPDU: 80 0D 03 02 [10:40:03]Write to MH i2c: E2 08 00 0B 30 80 0D 03 02 00 00 00 00 B6 [10:40:03]Write i2c OK [10:40:03]MH_I2C_Read... [10:40:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:40:03]Read from MH i2c: E2 [10:40:03]MH_I2C_Read... [10:40:03]Read from MH i2c: E2 0B 00 [10:40:03]MH_I2C_Read... [10:40:03]Read from MH i2c: E2 0B 00 0B 30 00 E3 8C 7A 44 0A CE 81 73 90 00 B0 [10:40:03]RAPDU: E3 8C 7A 44 0A CE 81 73 90 00 [10:40:03]wFMCommunicate OK [10:40:03]SAM_PROTO_SignData done [10:40:03]FM_MakeSignedData done [10:40:03]CreateOFDProtocolMessage [10:40:03]wFMCommunicate request_size=4 [10:40:03]MH_SAM_APDU [10:40:03]CAPDU: 80 11 00 00 [10:40:03]Write to MH i2c: E2 08 00 0C 30 80 11 00 00 00 00 00 00 B6 [10:40:03]Write i2c OK [10:40:03]MH_I2C_Read... [10:40:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:03]Read from MH i2c: E2 [10:40:03]MH_I2C_Read... [10:40:03]Read from MH i2c: E2 17 00 [10:40:03]MH_I2C_Read... [10:40:03]Read from MH i2c: E2 17 00 0C 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0C [10:40:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:40:03]wFMCommunicate OK [10:40:03]CreateOFDProtocolMessage done [10:40:03]OFDSenderStorePacket 165222 [10:40:03]StoreOFDPacket docnum=165222 [10:40:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 AB BC 07 01 80 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 87 FC 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 66 85 02 00 35 04 06 00 7F A6 4B F5 D0 9E E3 8C 7A 44 0A CE 81 73 [10:40:03]CheckFolder [10:40:03]dirname=/storage/ofd_packets [10:40:03]CheckFolder done [10:40:03]ProducePacketName [10:40:03]name=ofd_packets/00165222 [10:40:03]NVStorageSaveData ofd_packets/00165222 [10:40:03]File name is /storage/ofd_packets/00165222 [10:40:03]Write 301 bytes [10:40:03]NVStorageSaveData done [10:40:03]OFDSenderStorePacket done [10:40:03]KKMCreateOFDPacket done [10:40:03]NVStorageSaveData kkm_last_timestamp [10:40:03]File name is /storage/kkm_last_timestamp [10:40:03]Write 4 bytes [10:40:03]NVStorageSaveData done [10:40:03]ExternCall_PrintAddStr [10:40:03]wPrintStart [10:40:03]Write to MH i2c: 01 00 00 0D 30 3D [10:40:03]Write i2c OK [10:40:03]MH_I2C_Read... [10:40:03]Read from MH i2c: 01 [10:40:03]MH_I2C_Read... [10:40:03]Read from MH i2c: 01 07 00 [10:40:03]MH_I2C_Read... [10:40:03]Read from MH i2c: 01 07 00 0D 30 00 00 00 00 00 FF 0F 52 [10:40:03]RasterBufferAndPrint [10:40:03]line Счет N : (1)459325 [10:40:03]line ИНН: 02508201610067 [10:40:03]line Контрольно-Кассовый Чек [10:40:03]line ПРОДАЖА [10:40:03]line ТРК (МРК, ГНК) : 22 [10:40:03]line Товар: 2710124130 [10:40:03]line Аи-92-К-5 [10:40:03]line 6.080 * 65.80 [10:40:03]line = 400.06 [10:40:03]line НДС 12% НСП 1% [10:40:03]line > о реализуемом товаре [10:40:03]line ОКРУГЛЕНИЕ: -0.06 [10:40:03]line ИТОГО: 400.00 [10:40:03]line Внесено: 400.00 [10:40:03]line СДАЧА: 0.00 [10:40:03]line НСП 1% : 3.54 [10:40:03]line НДС 12% : 42.48 [10:40:03]line Наличными: 400.00 [10:40:03]line Безнал.: 0.00 [10:40:03]line Место: АЗС № 72 "Партнер Нефть" [10:40:03]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:40:03]line СНО: Общий режим [10:40:03]line Чек 95 15.07.2024 10:40 [10:40:03]line Смена: 448 ФФД: 1.0 [10:40:03]line ЗНМ: 0300000160 [10:40:03]line РНМ: 0000000000090829 [10:40:03]line Версия ККМ: 001 [10:40:03]line ФМ: 0000000000874718 [10:40:03]line ФД: 165222 [10:40:03]line ФПД: 140352215699614 [10:40:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T104007&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165222&fm=140352215699614&tin=02508201610067®Number=0000000000090829&sum=40000 [10:40:03]written 0, free lines is 4095 [10:40:03]OFD Sender: Processing packet 165222 [packets to send 106, broken 105] [10:40:03]ProducePacketName [10:40:03]name=ofd_packets/00165222 [10:40:03]OFD Sender: To server: pG, [10:40:03]CommunicateWithHost lk.salyk.kg:30040 [10:40:03]ConnectInit lk.salyk.kg [10:40:04]Connected sock=10 [10:40:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 AB BC 07 01 80 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 87 FC 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 66 85 02 00 35 04 06 00 7F A6 4B F5 D0 9E E3 8C 7A 44 0A CE 81 73 [10:40:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 E3 68 47 00 DF 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 66 85 02 00 F4 03 04 00 11 A3 94 66 B6 04 01 00 00 B8 FB 68 A1 5D 53 B9 30 [10:40:04]CommunicateWithHost err = 0 [10:40:04]CheckOFDResponse [10:40:04]1017 (14) - 77093643461234 [10:40:04]1041 (16) - 0000000000874718 [10:40:04]1040 (4) - 165222 [10:40:04]1012 (4) - 15.07.2024 04:18 [10:40:04]1206 (1) - 0 [10:40:04]OFD Sender: Remove packet 165222 [10:40:04]ProducePacketName [10:40:04]name=ofd_packets/00165222 [10:40:04]NVStorageDeleteData [10:40:04]Write to MH i2c: 01 00 00 37 30 67 [10:40:04]Write i2c OK [10:40:04]MH_I2C_Read... [10:40:04]Read from MH i2c: 01 [10:40:04]MH_I2C_Read... [10:40:04]Read from MH i2c: 01 07 00 [10:40:04]MH_I2C_Read... [10:40:04]Read from MH i2c: 01 07 00 37 30 00 00 00 00 00 F2 0C 6C [10:40:04]RasterBufferAndPrint [10:40:04]line [10:40:04]line [10:40:04]line [10:40:04]line [10:40:04]line [10:40:04]written 0, free lines is 3318 [10:40:04]MH_Cut [10:40:04]Write to MH i2c: D1 01 00 3E 30 01 40 [10:40:04]Write i2c OK [10:40:04]MH_I2C_Read... [10:40:04]Read from MH i2c: D1 [10:40:04]MH_I2C_Read... [10:40:04]Read from MH i2c: D1 01 00 [10:40:04]MH_I2C_Read... [10:40:04]Read from MH i2c: D1 01 00 3E 30 00 3F [10:40:04]Write to MH i2c: 01 00 00 3F 30 6F [10:40:04]Write i2c OK [10:40:04]MH_I2C_Read... [10:40:04]OFD Sender: No OFD packet to send [10:40:05]*** Cut start [10:40:05]*** Partial cut [10:40:05]*** CUTSNS_PIN = 1 [10:40:05]*** CUTSNS_PIN = 0 [10:40:05]*** Brake cut motor [10:40:05]Read from MH i2c: 01 [10:40:05]MH_I2C_Read... [10:40:05]*** Stop cut motor [10:40:05]*** Cut end [10:40:05]Read from MH i2c: 01 07 00 [10:40:05]MH_I2C_Read... [10:40:05]Read from MH i2c: 01 07 00 3F 30 00 00 00 00 00 FF 0F 84 [10:40:05]process_action close_receipt done [10:40:05]requested_data is exist [10:40:05]produce_requested_data [10:40:05]requested_item fm.sn is exist - process it [10:40:05]wFMCommunicate request_size=4 [10:40:05]MH_SAM_APDU [10:40:05]CAPDU: 80 11 00 00 [10:40:05]Write to MH i2c: E2 08 00 40 30 80 11 00 00 00 00 00 00 EA [10:40:05]Write i2c OK [10:40:05]MH_I2C_Read... [10:40:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:05]Read from MH i2c: E2 [10:40:05]MH_I2C_Read... [10:40:05]Read from MH i2c: E2 17 00 [10:40:05]MH_I2C_Read... [10:40:05]Read from MH i2c: E2 17 00 40 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 40 [10:40:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:40:05]wFMCommunicate OK [10:40:05]requested_item fd.num is exist - process it [10:40:05]SAM_PROTO_GetFieldsCounters [10:40:05]wFMCommunicate request_size=4 [10:40:05]MH_SAM_APDU [10:40:05]CAPDU: 80 13 00 00 [10:40:05]Write to MH i2c: E2 08 00 41 30 80 13 00 00 00 00 00 00 ED [10:40:05]Write i2c OK [10:40:05]MH_I2C_Read... [10:40:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:40:05]Read from MH i2c: E2 [10:40:05]MH_I2C_Read... [10:40:05]Read from MH i2c: E2 62 00 [10:40:05]MH_I2C_Read... [10:40:05]Read from MH i2c: E2 62 00 41 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 66 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [10:40:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 66 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:40:05]wFMCommunicate OK [10:40:05]SAM_PROTO_GetFieldsCounters done [10:40:05]requested_item shift.num is exist - process it [10:40:05]requested_item shift.opened is exist - process it [10:40:05]req_shift_opened [10:40:05]FM_GetShiftState [10:40:05]SAM_PROTO_GetShiftState [10:40:05]wFMCommunicate request_size=4 [10:40:05]MH_SAM_APDU [10:40:05]CAPDU: 80 13 01 00 [10:40:05]Write to MH i2c: E2 08 00 42 30 80 13 01 00 00 00 00 00 EF [10:40:05]Write i2c OK [10:40:05]MH_I2C_Read... [10:40:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:05]Read from MH i2c: E2 [10:40:05]MH_I2C_Read... [10:40:05]Read from MH i2c: E2 0E 00 [10:40:05]MH_I2C_Read... [10:40:05]Read from MH i2c: E2 0E 00 42 30 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 C8 [10:40:05]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:40:05]wFMCommunicate OK [10:40:05]SAM_PROTO_GetShiftState done [10:40:05]FM_GetShiftState done [10:40:05]req_shift_opened done [10:40:05]requested_item shift.open_date is exist - process it [10:40:05]req_shift_open_date [10:40:05]req_shift_open_date done [10:40:05]produce_requested_data done [10:40:05]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165222,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [10:40:05]process_action_free close_receipt [10:40:05]json_value_free [10:40:05]json_value_free done [10:40:05]process_json_proto returns [10:40:05]Send response to host [10:40:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165222,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [10:40:05]free response buf [10:40:05]execute_script done [10:40:05]execute_script returns [10:40:05]free content buf [10:40:05]Sock 9.Close socket [10:40:05]Sock 9.Thread stoped [10:40:09]OFD Sender: No OFD packet to send [10:40:14]OFD Sender: No OFD packet to send [10:40:16]accept exits with 7 [10:40:16]New connection [10:40:16]New thread 3066785124 created [10:40:16]Thread 3066928484 joined [10:40:16]Waiting for new connection... [10:40:16] Sock 7.Parse request [10:40:16]Sock 7.Check first char [10:40:16]Sock 7.First char is OK [10:40:16]request: POST /json_proto HTTP/1.0 [10:40:16]Method: POST [10:40:16]URL: /json_proto [10:40:16]Method is POST - this is cgi request [10:40:16]url: /json_proto [10:40:16]query_string will be loaded in cgi processing [10:40:16]execute_cgi json_proto POST (null) [10:40:16]execute_cgi path=json_proto method=POST [10:40:16]POST find Content-Length [10:40:16]Host: 172.17.56.4:8080 [10:40:16]Content-Length: 677 [10:40:16]Content-Type: application/json [10:40:16] [10:40:16]POST finish read [10:40:16]Found Content-Length = 677 [10:40:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459326", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:40:16]execute_script... [10:40: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)459326", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:40:16]POST & json_proto [10:40:16]process_json_proto [10:40:16]json parsed OK: [10:40:16]protocol is kg_v1.0 [10:40:16]action value=close_receipt [10:40:16]process_action close_receipt [10:40:16]cmd_close_receipt [10:40:16]MH_GetDate [10:40:16]Write to MH i2c: F0 00 00 43 30 62 [10:40:16]Write i2c OK [10:40:16]MH_I2C_Read... [10:40:16]Read from MH i2c: F0 [10:40:16]MH_I2C_Read... [10:40:16]Read from MH i2c: F0 09 00 [10:40:16]MH_I2C_Read... [10:40:16]Read from MH i2c: F0 09 00 43 30 00 95 FC 94 66 C9 DC B2 64 B1 [10:40:16]GetLastDocTimeStamp 1721040007 [10:40:16]current date 1721040021 [10:40:16]FM_GetShiftState [10:40:16]SAM_PROTO_GetShiftState [10:40:16]wFMCommunicate request_size=4 [10:40:16]MH_SAM_APDU [10:40:16]CAPDU: 80 13 01 00 [10:40:16]Write to MH i2c: E2 08 00 44 30 80 13 01 00 00 00 00 00 F1 [10:40:16]Write i2c OK [10:40:16]MH_I2C_Read... [10:40:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:16]Read from MH i2c: E2 [10:40:16]MH_I2C_Read... [10:40:16]Read from MH i2c: E2 0E 00 [10:40:16]MH_I2C_Read... [10:40:16]Read from MH i2c: E2 0E 00 44 30 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 CA [10:40:16]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:40:16]wFMCommunicate OK [10:40:16]SAM_PROTO_GetShiftState done [10:40:16]FM_GetShiftState done [10:40:16]opened in 1721003876 [10:40:16]opened+sec_in_day 1721090276 [10:40:16]quantity*price = 40006 [10:40:16]sum+1 = 40007 [10:40:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 96 15.07.2024 10:40 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165223 ФПД: 142990834722949 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T104021&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165223&fm=142990834722949&tin=02508201610067®Number=0000000000090829&sum=40000 [10:40:18]StoreToDocumentArchive [10:40:18]shift 448 fd 165223 [10:40:18]save to /storage/0448/doc_00165223 [10:40:18]save last doc name /storage/0448/doc_00165223 to /storage/kkm_last_doc_name [10:40:18]save OK [10:40:18]Clear old archive folders... [10:40:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:40:18]tlvbuf is B6ED44E0 [10:40:18]SAM_PROTO_ClearQueue [10:40:18]wFMCommunicate request_size=4 [10:40:18]MH_SAM_APDU [10:40:18]CAPDU: 80 09 00 00 [10:40:18]Write to MH i2c: E2 08 00 51 30 80 09 00 00 00 00 00 00 F3 [10:40:18]Write i2c OK [10:40:18]MH_I2C_Read... [10:40:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:40:18]Read from MH i2c: E2 [10:40:18]MH_I2C_Read... [10:40:18]Read from MH i2c: E2 03 00 [10:40:18]MH_I2C_Read... [10:40:18]Read from MH i2c: E2 03 00 51 30 00 90 00 F5 [10:40:18]RAPDU: 90 00 [10:40:18]wFMCommunicate OK [10:40:18]SAM_PROTO_ClearQueue done [10:40:18]KKMCreateOFDPacket [10:40:18]OFDProtocolAddRootSTLVToBuf [10:40:18]FM_MakeSignedData [10:40:18]FM_MakeSignedData [10:40:18]SAM_PROTO_SignData [10:40:18]wFMCommunicate request_size=4 [10:40:18]MH_SAM_APDU [10:40:18]CAPDU: 80 0D 01 02 [10:40:18]Write to MH i2c: E2 08 00 52 30 80 0D 01 02 00 00 00 00 FB [10:40:18]Write i2c OK [10:40:18]MH_I2C_Read... [10:40:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:40:18]Read from MH i2c: E2 [10:40:18]MH_I2C_Read... [10:40:18]Read from MH i2c: E2 03 00 [10:40:18]MH_I2C_Read... [10:40:18]Read from MH i2c: E2 03 00 52 30 00 90 00 F6 [10:40:18]RAPDU: 90 00 [10:40:18]wFMCommunicate OK [10:40:18]wFMCommunicate request_size=255 [10:40:18]MH_SAM_APDU [10:40:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 95 FC 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 67 85 02 00 35 04 06 00 82 [10:40:18]Write to MH i2c: E2 02 01 53 30 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 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 95 FC 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 67 85 02 00 35 04 06 00 82 00 00 70 [10:40:18]Write i2c OK [10:40:18]MH_I2C_Read... [10:40:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:18]Read from MH i2c: E2 [10:40:18]MH_I2C_Read... [10:40:18]Read from MH i2c: E2 03 00 [10:40:18]MH_I2C_Read... [10:40:18]Read from MH i2c: E2 03 00 53 30 00 90 00 F7 [10:40:18]RAPDU: 90 00 [10:40:18]wFMCommunicate OK [10:40:18]wFMCommunicate request_size=10 [10:40:18]MH_SAM_APDU [10:40:18]CAPDU: 80 0D 02 02 05 0C A5 E8 E8 85 [10:40:18]Write to MH i2c: E2 0D 00 54 30 80 0D 02 02 05 00 0C A5 E8 E8 85 00 00 0E [10:40:18]Write i2c OK [10:40:18]MH_I2C_Read... [10:40:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:18]Read from MH i2c: E2 [10:40:18]MH_I2C_Read... [10:40:18]Read from MH i2c: E2 03 00 [10:40:18]MH_I2C_Read... [10:40:18]Read from MH i2c: E2 03 00 54 30 00 90 00 F8 [10:40:18]RAPDU: 90 00 [10:40:18]wFMCommunicate OK [10:40:18]wFMCommunicate request_size=4 [10:40:18]MH_SAM_APDU [10:40:18]CAPDU: 80 0D 03 02 [10:40:18]Write to MH i2c: E2 08 00 55 30 80 0D 03 02 00 00 00 00 00 [10:40:18]Write i2c OK [10:40:18]MH_I2C_Read... [10:40:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:40:18]Read from MH i2c: E2 [10:40:18]MH_I2C_Read... [10:40:18]Read from MH i2c: E2 0B 00 [10:40:18]MH_I2C_Read... [10:40:18]Read from MH i2c: E2 0B 00 55 30 00 82 3E 2E 76 55 80 37 9A 90 00 0B [10:40:18]RAPDU: 82 3E 2E 76 55 80 37 9A 90 00 [10:40:18]wFMCommunicate OK [10:40:18]SAM_PROTO_SignData done [10:40:18]FM_MakeSignedData done [10:40:18]CreateOFDProtocolMessage [10:40:18]wFMCommunicate request_size=4 [10:40:18]MH_SAM_APDU [10:40:18]CAPDU: 80 11 00 00 [10:40:18]Write to MH i2c: E2 08 00 56 30 80 11 00 00 00 00 00 00 00 [10:40:18]Write i2c OK [10:40:18]MH_I2C_Read... [10:40:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:18]Read from MH i2c: E2 [10:40:18]MH_I2C_Read... [10:40:18]Read from MH i2c: E2 17 00 [10:40:18]MH_I2C_Read... [10:40:18]Read from MH i2c: E2 17 00 56 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 56 [10:40:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:40:18]wFMCommunicate OK [10:40:18]CreateOFDProtocolMessage done [10:40:18]OFDSenderStorePacket 165223 [10:40:18]StoreOFDPacket docnum=165223 [10:40:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 79 26 07 01 C1 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 95 FC 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 67 85 02 00 35 04 06 00 82 0C A5 E8 E8 85 82 3E 2E 76 55 80 37 9A [10:40:18]CheckFolder [10:40:18]dirname=/storage/ofd_packets [10:40:18]CheckFolder done [10:40:18]ProducePacketName [10:40:18]name=ofd_packets/00165223 [10:40:18]NVStorageSaveData ofd_packets/00165223 [10:40:18]File name is /storage/ofd_packets/00165223 [10:40:18]Write 301 bytes [10:40:18]NVStorageSaveData done [10:40:18]OFDSenderStorePacket done [10:40:18]KKMCreateOFDPacket done [10:40:18]NVStorageSaveData kkm_last_timestamp [10:40:18]File name is /storage/kkm_last_timestamp [10:40:18]Write 4 bytes [10:40:18]NVStorageSaveData done [10:40:18]ExternCall_PrintAddStr [10:40:18]wPrintStart [10:40:18]Write to MH i2c: 01 00 00 57 30 87 [10:40:18]Write i2c OK [10:40:18]MH_I2C_Read... [10:40:18]Read from MH i2c: 01 [10:40:18]MH_I2C_Read... [10:40:18]Read from MH i2c: 01 07 00 [10:40:18]MH_I2C_Read... [10:40:18]Read from MH i2c: 01 07 00 57 30 00 00 00 00 00 FF 0F 9C [10:40:18]RasterBufferAndPrint [10:40:18]line Счет N : (1)459326 [10:40:18]line ИНН: 02508201610067 [10:40:18]line Контрольно-Кассовый Чек [10:40:18]line ПРОДАЖА [10:40:18]line ТРК (МРК, ГНК) : 12 [10:40:18]line Товар: 2710124130 [10:40:18]line Аи-92-К-5 [10:40:18]line 6.080 * 65.80 [10:40:18]line = 400.06 [10:40:18]line НДС 12% НСП 1% [10:40:18]line > о реализуемом товаре [10:40:18]line ОКРУГЛЕНИЕ: -0.06 [10:40:18]line ИТОГО: 400.00 [10:40:18]line Внесено: 400.00 [10:40:18]line СДАЧА: 0.00 [10:40:18]line НСП 1% : 3.54 [10:40:18]line НДС 12% : 42.48 [10:40:18]line Наличными: 400.00 [10:40:18]line Безнал.: 0.00 [10:40:18]line Место: АЗС № 72 "Партнер Нефть" [10:40:18]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:40:18]line СНО: Общий режим [10:40:18]line Чек 96 15.07.2024 10:40 [10:40:18]line Смена: 448 ФФД: 1.0 [10:40:18]line ЗНМ: 0300000160 [10:40:18]line РНМ: 0000000000090829 [10:40:18]line Версия ККМ: 001 [10:40:18]line ФМ: 0000000000874718 [10:40:18]line ФД: 165223 [10:40:18]line ФПД: 142990834722949 [10:40:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T104021&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165223&fm=142990834722949&tin=02508201610067®Number=0000000000090829&sum=40000 [10:40:18]OFD Sender: Processing packet 165223 [packets to send 106, broken 105] [10:40:18]ProducePacketName [10:40:18]name=ofd_packets/00165223 [10:40:18]OFD Sender: To server: pG, [10:40:18]CommunicateWithHost lk.salyk.kg:30040 [10:40:18]ConnectInit lk.salyk.kg [10:40:18]written 0, free lines is 4095 [10:40:19]Connected sock=10 [10:40:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 79 26 07 01 C1 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 95 FC 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 67 85 02 00 35 04 06 00 82 0C A5 E8 E8 85 82 3E 2E 76 55 80 37 9A [10:40:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 AB 9D 47 00 15 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 37 31 38 10 04 04 00 67 85 02 00 F4 03 04 00 20 A3 94 66 B6 04 01 00 00 94 E9 1C C6 16 36 98 54 [10:40:19]CommunicateWithHost err = 0 [10:40:19]CheckOFDResponse [10:40:19]1017 (14) - 77093643461234 [10:40:19]1041 (16) - 0000000000874718 [10:40:19]1040 (4) - 165223 [10:40:19]1012 (4) - 15.07.2024 04:18 [10:40:19]1206 (1) - 0 [10:40:19]OFD Sender: Remove packet 165223 [10:40:19]ProducePacketName [10:40:19]name=ofd_packets/00165223 [10:40:19]NVStorageDeleteData [10:40:19]Write to MH i2c: 01 00 00 81 30 B1 [10:40:19]Write i2c OK [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: 01 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: 01 07 00 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: 01 07 00 81 30 00 00 00 00 00 F7 0C BB [10:40:19]RasterBufferAndPrint [10:40:19]line [10:40:19]line [10:40:19]line [10:40:19]line [10:40:19]line [10:40:19]written 0, free lines is 3326 [10:40:19]MH_Cut [10:40:19]Write to MH i2c: D1 01 00 88 30 01 8A [10:40:19]Write i2c OK [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: D1 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: D1 01 00 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: D1 01 00 88 30 00 89 [10:40:19]Write to MH i2c: 01 00 00 89 30 B9 [10:40:19]Write i2c OK [10:40:19]MH_I2C_Read... [10:40:19]OFD Sender: No OFD packet to send [10:40:20]*** Cut start [10:40:20]*** Partial cut [10:40:20]*** CUTSNS_PIN = 1 [10:40:20]*** CUTSNS_PIN = 0 [10:40:20]*** Brake cut motor [10:40:20]Read from MH i2c: 01 [10:40:20]MH_I2C_Read... [10:40:20]*** Stop cut motor [10:40:20]*** Cut end [10:40:20]Read from MH i2c: 01 07 00 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: 01 07 00 89 30 00 00 00 00 00 FF 0F CE [10:40:20]process_action close_receipt done [10:40:20]requested_data is exist [10:40:20]produce_requested_data [10:40:20]requested_item fm.sn is exist - process it [10:40:20]wFMCommunicate request_size=4 [10:40:20]MH_SAM_APDU [10:40:20]CAPDU: 80 11 00 00 [10:40:20]Write to MH i2c: E2 08 00 8A 30 80 11 00 00 00 00 00 00 34 [10:40:20]Write i2c OK [10:40:20]MH_I2C_Read... [10:40:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:20]Read from MH i2c: E2 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: E2 17 00 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: E2 17 00 8A 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8A [10:40:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:40:20]wFMCommunicate OK [10:40:20]requested_item fd.num is exist - process it [10:40:20]SAM_PROTO_GetFieldsCounters [10:40:20]wFMCommunicate request_size=4 [10:40:20]MH_SAM_APDU [10:40:20]CAPDU: 80 13 00 00 [10:40:20]Write to MH i2c: E2 08 00 8B 30 80 13 00 00 00 00 00 00 37 [10:40:20]Write i2c OK [10:40:20]MH_I2C_Read... [10:40:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:40:20]Read from MH i2c: E2 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: E2 62 00 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: E2 62 00 8B 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 67 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [10:40: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 67 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:40:20]wFMCommunicate OK [10:40:20]SAM_PROTO_GetFieldsCounters done [10:40:20]requested_item shift.num is exist - process it [10:40:20]requested_item shift.opened is exist - process it [10:40:20]req_shift_opened [10:40:20]FM_GetShiftState [10:40:20]SAM_PROTO_GetShiftState [10:40:20]wFMCommunicate request_size=4 [10:40:20]MH_SAM_APDU [10:40:20]CAPDU: 80 13 01 00 [10:40:20]Write to MH i2c: E2 08 00 8C 30 80 13 01 00 00 00 00 00 39 [10:40:20]Write i2c OK [10:40:20]MH_I2C_Read... [10:40:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:20]Read from MH i2c: E2 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: E2 0E 00 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: E2 0E 00 8C 30 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 12 [10:40:20]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:40:20]wFMCommunicate OK [10:40:20]SAM_PROTO_GetShiftState done [10:40:20]FM_GetShiftState done [10:40:20]req_shift_opened done [10:40:20]requested_item shift.open_date is exist - process it [10:40:20]req_shift_open_date [10:40:20]req_shift_open_date done [10:40:20]produce_requested_data done [10:40:20]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165223,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [10:40:20]process_action_free close_receipt [10:40:20]json_value_free [10:40:20]json_value_free done [10:40:20]process_json_proto returns [10:40:20]Send response to host [10:40:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165223,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [10:40:20]free response buf [10:40:20]execute_script done [10:40:20]execute_script returns [10:40:20]free content buf [10:40:20]Sock 7.Close socket [10:40:20]Sock 7.Thread stoped [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:24]accept exits with 9 [10:41:24]New connection [10:41:24]New thread 3066928484 created [10:41:24]Thread 3066785124 joined [10:41:24]Waiting for new connection... [10:41:24] Sock 9.Parse request [10:41:24]Sock 9.Check first char [10:41:24]Sock 9.First char is OK [10:41:24]request: POST /json_proto HTTP/1.0 [10:41:24]Method: POST [10:41:24]URL: /json_proto [10:41:24]Method is POST - this is cgi request [10:41:24]url: /json_proto [10:41:24]query_string will be loaded in cgi processing [10:41:24]execute_cgi json_proto POST (null) [10:41:24]execute_cgi path=json_proto method=POST [10:41:24]POST find Content-Length [10:41:24]Host: 172.17.56.4:8080 [10:41:24]Content-Length: 637 [10:41:24]Content-Type: application/json [10:41:24] [10:41:24]POST finish read [10:41:24]Found Content-Length = 637 [10:41:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459327", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 10.000, "sum" : 719.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 719.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:24]execute_script... [10:41:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459327", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 10.000, "sum" : 719.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 719.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:24]POST & json_proto [10:41:24]process_json_proto [10:41:24]json parsed OK: [10:41:24]protocol is kg_v1.0 [10:41:24]action value=close_receipt [10:41:24]process_action close_receipt [10:41:24]cmd_close_receipt [10:41:24]MH_GetDate [10:41:24]Write to MH i2c: F0 00 00 8D 30 AC [10:41:24]Write i2c OK [10:41:24]MH_I2C_Read... [10:41:24]Read from MH i2c: F0 [10:41:24]MH_I2C_Read... [10:41:24]Read from MH i2c: F0 09 00 [10:41:24]MH_I2C_Read... [10:41:24]Read from MH i2c: F0 09 00 8D 30 00 D9 FC 94 66 C9 DC B2 64 3F [10:41:24]GetLastDocTimeStamp 1721040021 [10:41:24]current date 1721040089 [10:41:24]FM_GetShiftState [10:41:24]SAM_PROTO_GetShiftState [10:41:24]wFMCommunicate request_size=4 [10:41:24]MH_SAM_APDU [10:41:24]CAPDU: 80 13 01 00 [10:41:24]Write to MH i2c: E2 08 00 8E 30 80 13 01 00 00 00 00 00 3B [10:41:24]Write i2c OK [10:41:24]MH_I2C_Read... [10:41:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:24]Read from MH i2c: E2 [10:41:24]MH_I2C_Read... [10:41:24]Read from MH i2c: E2 0E 00 [10:41:24]MH_I2C_Read... [10:41:24]Read from MH i2c: E2 0E 00 8E 30 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 14 [10:41:24]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:41:24]wFMCommunicate OK [10:41:24]SAM_PROTO_GetShiftState done [10:41:24]FM_GetShiftState done [10:41:24]opened in 1721003876 [10:41:24]opened+sec_in_day 1721090276 [10:41:24]quantity*price = 71900 [10:41:24]sum+1 = 71901 [10:41:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 719.00 НСП 1% : 6.36 НДС 12% : 76.35 Наличными: 719.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 97 15.07.2024 10:41 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165224 ФПД: 176192734157417 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T104129&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165224&fm=176192734157417&tin=02508201610067®Number=0000000000090829&sum=71900 [10:41:26]StoreToDocumentArchive [10:41:26]shift 448 fd 165224 [10:41:26]save to /storage/0448/doc_00165224 [10:41:26]save last doc name /storage/0448/doc_00165224 to /storage/kkm_last_doc_name [10:41:26]save OK [10:41:26]Clear old archive folders... [10:41:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:41:26]tlvbuf is 013E44D0 [10:41:26]SAM_PROTO_ClearQueue [10:41:26]wFMCommunicate request_size=4 [10:41:26]MH_SAM_APDU [10:41:26]CAPDU: 80 09 00 00 [10:41:26]Write to MH i2c: E2 08 00 9B 30 80 09 00 00 00 00 00 00 3D [10:41:26]Write i2c OK [10:41:26]MH_I2C_Read... [10:41:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:41:26]Read from MH i2c: E2 [10:41:26]MH_I2C_Read... [10:41:26]Read from MH i2c: E2 03 00 [10:41:26]MH_I2C_Read... [10:41:26]Read from MH i2c: E2 03 00 9B 30 00 90 00 3F [10:41:26]RAPDU: 90 00 [10:41:26]wFMCommunicate OK [10:41:26]SAM_PROTO_ClearQueue done [10:41:26]KKMCreateOFDPacket [10:41:26]OFDProtocolAddRootSTLVToBuf [10:41:26]FM_MakeSignedData [10:41:26]FM_MakeSignedData [10:41:26]SAM_PROTO_SignData [10:41:26]wFMCommunicate request_size=4 [10:41:26]MH_SAM_APDU [10:41:26]CAPDU: 80 0D 01 02 [10:41:26]Write to MH i2c: E2 08 00 9C 30 80 0D 01 02 00 00 00 00 45 [10:41:26]Write i2c OK [10:41:26]MH_I2C_Read... [10:41:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:41:26]Read from MH i2c: E2 [10:41:26]MH_I2C_Read... [10:41:26]Read from MH i2c: E2 03 00 [10:41:26]MH_I2C_Read... [10:41:26]Read from MH i2c: E2 03 00 9C 30 00 90 00 40 [10:41:26]RAPDU: 90 00 [10:41:26]wFMCommunicate OK [10:41:26]wFMCommunicate request_size=255 [10:41:26]MH_SAM_APDU [10:41:26]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 DC 18 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 1D 00 00 00 00 07 04 06 00 DC 18 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 D9 FC 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 68 85 02 00 35 04 06 00 A0 3F 11 54 [10:41:26]Write to MH i2c: E2 02 01 9D 30 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 DC 18 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 1D 00 00 00 00 07 04 06 00 DC 18 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 D9 FC 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 68 85 02 00 35 04 06 00 A0 3F 11 54 00 00 82 [10:41:26]Write i2c OK [10:41:26]MH_I2C_Read... [10:41:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:26]Read from MH i2c: E2 [10:41:26]MH_I2C_Read... [10:41:26]Read from MH i2c: E2 03 00 [10:41:26]MH_I2C_Read... [10:41:26]Read from MH i2c: E2 03 00 9D 30 00 90 00 41 [10:41:26]RAPDU: 90 00 [10:41:26]wFMCommunicate OK [10:41:26]wFMCommunicate request_size=7 [10:41:26]MH_SAM_APDU [10:41:26]CAPDU: 80 0D 02 02 02 DA 69 [10:41:26]Write to MH i2c: E2 0A 00 9E 30 80 0D 02 02 02 00 DA 69 00 00 8F [10:41:26]Write i2c OK [10:41:26]MH_I2C_Read... [10:41:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:26]Read from MH i2c: E2 [10:41:26]MH_I2C_Read... [10:41:26]Read from MH i2c: E2 03 00 [10:41:26]MH_I2C_Read... [10:41:26]Read from MH i2c: E2 03 00 9E 30 00 90 00 42 [10:41:26]RAPDU: 90 00 [10:41:26]wFMCommunicate OK [10:41:26]wFMCommunicate request_size=4 [10:41:26]MH_SAM_APDU [10:41:26]CAPDU: 80 0D 03 02 [10:41:26]Write to MH i2c: E2 08 00 9F 30 80 0D 03 02 00 00 00 00 4A [10:41:26]Write i2c OK [10:41:26]MH_I2C_Read... [10:41:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:41:26]Read from MH i2c: E2 [10:41:26]MH_I2C_Read... [10:41:26]Read from MH i2c: E2 0B 00 [10:41:26]MH_I2C_Read... [10:41:26]Read from MH i2c: E2 0B 00 9F 30 00 1F 60 DE E4 67 31 08 78 90 00 A4 [10:41:26]RAPDU: 1F 60 DE E4 67 31 08 78 90 00 [10:41:26]wFMCommunicate OK [10:41:26]SAM_PROTO_SignData done [10:41:26]FM_MakeSignedData done [10:41:26]CreateOFDProtocolMessage [10:41:26]wFMCommunicate request_size=4 [10:41:26]MH_SAM_APDU [10:41:26]CAPDU: 80 11 00 00 [10:41:26]Write to MH i2c: E2 08 00 A0 30 80 11 00 00 00 00 00 00 4A [10:41:26]Write i2c OK [10:41:26]MH_I2C_Read... [10:41:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:26]Read from MH i2c: E2 [10:41:26]MH_I2C_Read... [10:41:26]Read from MH i2c: E2 17 00 [10:41:26]MH_I2C_Read... [10:41:26]Read from MH i2c: E2 17 00 A0 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A0 [10:41:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:41:26]wFMCommunicate OK [10:41:26]CreateOFDProtocolMessage done [10:41:26]OFDSenderStorePacket 165224 [10:41:26]StoreOFDPacket docnum=165224 [10:41:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 D2 C3 04 01 6D CA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 DC 18 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 1D 00 00 00 00 07 04 06 00 DC 18 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 D9 FC 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 68 85 02 00 35 04 06 00 A0 3F 11 54 DA 69 1F 60 DE E4 67 31 08 78 [10:41:26]CheckFolder [10:41:26]dirname=/storage/ofd_packets [10:41:26]CheckFolder done [10:41:26]ProducePacketName [10:41:26]name=ofd_packets/00165224 [10:41:26]NVStorageSaveData ofd_packets/00165224 [10:41:26]File name is /storage/ofd_packets/00165224 [10:41:26]Write 298 bytes [10:41:26]NVStorageSaveData done [10:41:26]OFDSenderStorePacket done [10:41:26]KKMCreateOFDPacket done [10:41:26]NVStorageSaveData kkm_last_timestamp [10:41:26]File name is /storage/kkm_last_timestamp [10:41:26]Write 4 bytes [10:41:26]NVStorageSaveData done [10:41:26]ExternCall_PrintAddStr [10:41:26]wPrintStart [10:41:26]Write to MH i2c: 01 00 00 A1 30 D1 [10:41:26]Write i2c OK [10:41:26]MH_I2C_Read... [10:41:26]Read from MH i2c: 01 [10:41:26]MH_I2C_Read... [10:41:26]Read from MH i2c: 01 07 00 [10:41:26]MH_I2C_Read... [10:41:26]Read from MH i2c: 01 07 00 A1 30 00 00 00 00 00 FF 0F E6 [10:41:26]RasterBufferAndPrint [10:41:26]line Счет N : (1)459327 [10:41:26]line ИНН: 02508201610067 [10:41:26]line Контрольно-Кассовый Чек [10:41:26]line ПРОДАЖА [10:41:26]line ТРК (МРК, ГНК) : 11 [10:41:26]line Товар: 2710194210 [10:41:26]line ДТ-К-5 [10:41:26]line 10.000 * 71.90 [10:41:26]line = 719.00 [10:41:26]line НДС 12% НСП 1% [10:41:26]line > о реализуемом товаре [10:41:26]line ИТОГО: 719.00 [10:41:26]line НСП 1% : 6.36 [10:41:26]line НДС 12% : 76.35 [10:41:26]line Наличными: 719.00 [10:41:26]line Безнал.: 0.00 [10:41:26]line Место: АЗС № 72 "Партнер Нефть" [10:41:26]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:41:26]line СНО: Общий режим [10:41:26]line Чек 97 15.07.2024 10:41 [10:41:26]line Смена: 448 ФФД: 1.0 [10:41:26]line ЗНМ: 0300000160 [10:41:26]line РНМ: 0000000000090829 [10:41:26]line Версия ККМ: 001 [10:41:26]line ФМ: 0000000000874718 [10:41:26]line ФД: 165224 [10:41:26]line ФПД: 176192734157417 [10:41:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T104129&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165224&fm=176192734157417&tin=02508201610067®Number=0000000000090829&sum=71900 [10:41:26]OFD Sender: Processing packet 165224 [packets to send 106, broken 105] [10:41:26]ProducePacketName [10:41:26]name=ofd_packets/00165224 [10:41:26]OFD Sender: To server: pG, [10:41:26]CommunicateWithHost lk.salyk.kg:30040 [10:41:26]ConnectInit lk.salyk.kg [10:41:26]written 0, free lines is 4095 [10:41:27]Connected sock=10 [10:41: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 37 31 38 0C 01 00 00 D2 C3 04 01 6D CA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 DC 18 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 1D 00 00 00 00 07 04 06 00 DC 18 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 D9 FC 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 68 85 02 00 35 04 06 00 A0 3F 11 54 DA 69 1F 60 DE E4 67 31 08 78 [10:41:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 A6 0C 47 00 93 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 68 85 02 00 F4 03 04 00 64 A3 94 66 B6 04 01 00 00 24 05 61 7A BD 7C E1 87 [10:41:27]CommunicateWithHost err = 0 [10:41:27]CheckOFDResponse [10:41:27]1017 (14) - 77093643461234 [10:41:27]1041 (16) - 0000000000874718 [10:41:27]1040 (4) - 165224 [10:41:27]1012 (4) - 15.07.2024 04:19 [10:41:27]1206 (1) - 0 [10:41:27]OFD Sender: Remove packet 165224 [10:41:27]ProducePacketName [10:41:27]name=ofd_packets/00165224 [10:41:27]NVStorageDeleteData [10:41:27]Write to MH i2c: 01 00 00 C8 30 F8 [10:41:27]Write i2c OK [10:41:27]MH_I2C_Read... [10:41:27]Read from MH i2c: 01 [10:41:27]MH_I2C_Read... [10:41:27]Read from MH i2c: 01 07 00 [10:41:27]MH_I2C_Read... [10:41:27]Read from MH i2c: 01 07 00 C8 30 00 00 00 00 00 20 0D 2C [10:41:27]RasterBufferAndPrint [10:41:27]line [10:41:27]line [10:41:27]line [10:41:27]line [10:41:27]line [10:41:27]written 0, free lines is 3366 [10:41:27]MH_Cut [10:41:27]Write to MH i2c: D1 01 00 CF 30 01 D1 [10:41:27]Write i2c OK [10:41:27]MH_I2C_Read... [10:41:27]Read from MH i2c: D1 [10:41:27]MH_I2C_Read... [10:41:27]Read from MH i2c: D1 01 00 [10:41:27]MH_I2C_Read... [10:41:27]Read from MH i2c: D1 01 00 CF 30 00 D0 [10:41:27]Write to MH i2c: 01 00 00 D0 30 00 [10:41:27]Write i2c OK [10:41:27]MH_I2C_Read... [10:41:27]OFD Sender: No OFD packet to send [10:41:27]*** Cut start [10:41:27]*** Partial cut [10:41:27]*** CUTSNS_PIN = 1 [10:41:28]*** CUTSNS_PIN = 0 [10:41:28]*** Brake cut motor [10:41:28]Read from MH i2c: 01 [10:41:28]MH_I2C_Read... [10:41:28]*** Stop cut motor [10:41:28]*** Cut end [10:41:28]Read from MH i2c: 01 07 00 [10:41:28]MH_I2C_Read... [10:41:28]Read from MH i2c: 01 07 00 D0 30 00 00 00 00 00 FF 0F 15 [10:41:28]process_action close_receipt done [10:41:28]requested_data is exist [10:41:28]produce_requested_data [10:41:28]requested_item fm.sn is exist - process it [10:41:28]wFMCommunicate request_size=4 [10:41:28]MH_SAM_APDU [10:41:28]CAPDU: 80 11 00 00 [10:41:28]Write to MH i2c: E2 08 00 D1 30 80 11 00 00 00 00 00 00 7B [10:41:28]Write i2c OK [10:41:28]MH_I2C_Read... [10:41:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:28]Read from MH i2c: E2 [10:41:28]MH_I2C_Read... [10:41:28]Read from MH i2c: E2 17 00 [10:41:28]MH_I2C_Read... [10:41:28]Read from MH i2c: E2 17 00 D1 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D1 [10:41:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:41:28]wFMCommunicate OK [10:41:28]requested_item fd.num is exist - process it [10:41:28]SAM_PROTO_GetFieldsCounters [10:41:28]wFMCommunicate request_size=4 [10:41:28]MH_SAM_APDU [10:41:28]CAPDU: 80 13 00 00 [10:41:28]Write to MH i2c: E2 08 00 D2 30 80 13 00 00 00 00 00 00 7E [10:41:28]Write i2c OK [10:41:28]MH_I2C_Read... [10:41:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:41:28]Read from MH i2c: E2 [10:41:28]MH_I2C_Read... [10:41:28]Read from MH i2c: E2 62 00 [10:41:28]MH_I2C_Read... [10:41:28]Read from MH i2c: E2 62 00 D2 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 68 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [10:41:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 68 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:41:28]wFMCommunicate OK [10:41:28]SAM_PROTO_GetFieldsCounters done [10:41:28]requested_item shift.num is exist - process it [10:41:28]requested_item shift.opened is exist - process it [10:41:28]req_shift_opened [10:41:28]FM_GetShiftState [10:41:28]SAM_PROTO_GetShiftState [10:41:28]wFMCommunicate request_size=4 [10:41:28]MH_SAM_APDU [10:41:28]CAPDU: 80 13 01 00 [10:41:28]Write to MH i2c: E2 08 00 D3 30 80 13 01 00 00 00 00 00 80 [10:41:28]Write i2c OK [10:41:28]MH_I2C_Read... [10:41:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:28]Read from MH i2c: E2 [10:41:28]MH_I2C_Read... [10:41:28]Read from MH i2c: E2 0E 00 [10:41:28]MH_I2C_Read... [10:41:28]Read from MH i2c: E2 0E 00 D3 30 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 59 [10:41:28]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:41:28]wFMCommunicate OK [10:41:28]SAM_PROTO_GetShiftState done [10:41:28]FM_GetShiftState done [10:41:28]req_shift_opened done [10:41:28]requested_item shift.open_date is exist - process it [10:41:28]req_shift_open_date [10:41:28]req_shift_open_date done [10:41:28]produce_requested_data done [10:41:28]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165224,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [10:41:28]process_action_free close_receipt [10:41:28]json_value_free [10:41:28]json_value_free done [10:41:28]process_json_proto returns [10:41:28]Send response to host [10:41:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165224,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [10:41:28]free response buf [10:41:28]execute_script done [10:41:28]execute_script returns [10:41:28]free content buf [10:41:28]Sock 9.Close socket [10:41:28]Sock 9.Thread stoped [10:41:32]OFD Sender: No OFD packet to send [10:41:37]OFD Sender: No OFD packet to send [10:41:42]OFD Sender: No OFD packet to send [10:41:47]OFD Sender: No OFD packet to send [10:41:52]OFD Sender: No OFD packet to send [10:41:57]OFD Sender: No OFD packet to send [10:42:02]OFD Sender: No OFD packet to send [10:42:07]OFD Sender: No OFD packet to send [10:42:12]OFD Sender: No OFD packet to send [10:42:17]OFD Sender: No OFD packet to send [10:42:22]OFD Sender: No OFD packet to send [10:42:27]OFD Sender: No OFD packet to send [10:42:32]OFD Sender: No OFD packet to send [10:42:37]OFD Sender: No OFD packet to send [10:42:42]OFD Sender: No OFD packet to send [10:42:47]OFD Sender: No OFD packet to send [10:42:52]OFD Sender: No OFD packet to send [10:42:57]OFD Sender: No OFD packet to send [10:43:02]OFD Sender: No OFD packet to send [10:43:07]OFD Sender: No OFD packet to send [10:43:12]OFD Sender: No OFD packet to send [10:43:17]OFD Sender: No OFD packet to send [10:43:22]OFD Sender: No OFD packet to send [10:43:27]OFD Sender: No OFD packet to send [10:43:32]OFD Sender: No OFD packet to send [10:43:37]OFD Sender: No OFD packet to send [10:43:42]OFD Sender: No OFD packet to send [10:43:47]OFD Sender: No OFD packet to send [10:43:52]OFD Sender: No OFD packet to send [10:43:57]OFD Sender: No OFD packet to send [10:44:02]OFD Sender: No OFD packet to send [10:44:07]OFD Sender: No OFD packet to send [10:44:13]OFD Sender: No OFD packet to send [10:44:18]OFD Sender: No OFD packet to send [10:44:23]OFD Sender: No OFD packet to send [10:44:28]OFD Sender: No OFD packet to send [10:44:33]OFD Sender: No OFD packet to send [10:44:38]OFD Sender: No OFD packet to send [10:44:43]OFD Sender: No OFD packet to send [10:44:48]OFD Sender: No OFD packet to send [10:44:53]OFD Sender: No OFD packet to send [10:44:58]OFD Sender: No OFD packet to send [10:45:03]OFD Sender: No OFD packet to send [10:45:08]OFD Sender: No OFD packet to send [10:45:13]OFD Sender: No OFD packet to send [10:45:18]OFD Sender: No OFD packet to send [10:45:23]OFD Sender: No OFD packet to send [10:45:28]OFD Sender: No OFD packet to send [10:45:33]OFD Sender: No OFD packet to send [10:45:38]OFD Sender: No OFD packet to send [10:45:43]OFD Sender: No OFD packet to send [10:45:48]OFD Sender: No OFD packet to send [10:45:53]OFD Sender: No OFD packet to send [10:45:58]OFD Sender: No OFD packet to send [10:46:03]OFD Sender: No OFD packet to send [10:46:08]OFD Sender: No OFD packet to send [10:46:13]OFD Sender: No OFD packet to send [10:46:18]OFD Sender: No OFD packet to send [10:46:23]OFD Sender: No OFD packet to send [10:46:28]OFD Sender: No OFD packet to send [10:46:33]OFD Sender: No OFD packet to send [10:46:38]OFD Sender: No OFD packet to send [10:46:43]OFD Sender: No OFD packet to send [10:46:43]accept exits with 7 [10:46:43]New connection [10:46:43]New thread 3066785124 created [10:46:43]Thread 3066928484 joined [10:46:43]Waiting for new connection... [10:46:43] Sock 7.Parse request [10:46:43]Sock 7.Check first char [10:46:43]Sock 7.First char is OK [10:46:43]request: POST /json_proto HTTP/1.0 [10:46:43]Method: POST [10:46:43]URL: /json_proto [10:46:43]Method is POST - this is cgi request [10:46:43]url: /json_proto [10:46:43]query_string will be loaded in cgi processing [10:46:43]execute_cgi json_proto POST (null) [10:46:43]execute_cgi path=json_proto method=POST [10:46:43]POST find Content-Length [10:46:43]Host: 172.17.56.4:8080 [10:46:43]Content-Length: 682 [10:46:43]Content-Type: application/json [10:46:43] [10:46:43]POST finish read [10:46:43]Found Content-Length = 682 [10:46:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459328", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:43]execute_script... [10:46:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459328", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:43]POST & json_proto [10:46:43]process_json_proto [10:46:43]json parsed OK: [10:46:43]protocol is kg_v1.0 [10:46:43]action value=close_receipt [10:46:43]process_action close_receipt [10:46:43]cmd_close_receipt [10:46:43]MH_GetDate [10:46:43]Write to MH i2c: F0 00 00 D4 30 F3 [10:46:43]Write i2c OK [10:46:43]MH_I2C_Read... [10:46:43]Read from MH i2c: F0 [10:46:43]MH_I2C_Read... [10:46:43]Read from MH i2c: F0 09 00 [10:46:43]MH_I2C_Read... [10:46:43]Read from MH i2c: F0 09 00 D4 30 00 18 FE 94 66 C9 DC B2 64 C7 [10:46:43]GetLastDocTimeStamp 1721040089 [10:46:43]current date 1721040408 [10:46:43]FM_GetShiftState [10:46:43]SAM_PROTO_GetShiftState [10:46:43]wFMCommunicate request_size=4 [10:46:43]MH_SAM_APDU [10:46:43]CAPDU: 80 13 01 00 [10:46:43]Write to MH i2c: E2 08 00 D5 30 80 13 01 00 00 00 00 00 82 [10:46:43]Write i2c OK [10:46:43]MH_I2C_Read... [10:46:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:43]Read from MH i2c: E2 [10:46:43]MH_I2C_Read... [10:46:43]Read from MH i2c: E2 0E 00 [10:46:43]MH_I2C_Read... [10:46:43]Read from MH i2c: E2 0E 00 D5 30 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 5B [10:46:43]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:46:43]wFMCommunicate OK [10:46:43]SAM_PROTO_GetShiftState done [10:46:43]FM_GetShiftState done [10:46:43]opened in 1721003876 [10:46:43]opened+sec_in_day 1721090276 [10:46:43]quantity*price = 100016 [10:46:43]sum+1 = 100017 [10:46:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 98 15.07.2024 10:46 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165225 ФПД: 58709987934989 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T104648&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165225&fm=58709987934989&tin=02508201610067®Number=0000000000090829&sum=100000 [10:46:44]StoreToDocumentArchive [10:46:44]shift 448 fd 165225 [10:46:44]save to /storage/0448/doc_00165225 [10:46:44]save last doc name /storage/0448/doc_00165225 to /storage/kkm_last_doc_name [10:46:44]save OK [10:46:44]Clear old archive folders... [10:46:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:46:44]tlvbuf is B6F52720 [10:46:44]SAM_PROTO_ClearQueue [10:46:44]wFMCommunicate request_size=4 [10:46:44]MH_SAM_APDU [10:46:44]CAPDU: 80 09 00 00 [10:46:44]Write to MH i2c: E2 08 00 E2 30 80 09 00 00 00 00 00 00 84 [10:46:44]Write i2c OK [10:46:44]MH_I2C_Read... [10:46:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:46:44]Read from MH i2c: E2 [10:46:44]MH_I2C_Read... [10:46:44]Read from MH i2c: E2 03 00 [10:46:44]MH_I2C_Read... [10:46:44]Read from MH i2c: E2 03 00 E2 30 00 90 00 86 [10:46:44]RAPDU: 90 00 [10:46:44]wFMCommunicate OK [10:46:44]SAM_PROTO_ClearQueue done [10:46:44]KKMCreateOFDPacket [10:46:44]OFDProtocolAddRootSTLVToBuf [10:46:44]FM_MakeSignedData [10:46:44]FM_MakeSignedData [10:46:44]SAM_PROTO_SignData [10:46:44]wFMCommunicate request_size=4 [10:46:44]MH_SAM_APDU [10:46:44]CAPDU: 80 0D 01 02 [10:46:44]Write to MH i2c: E2 08 00 E3 30 80 0D 01 02 00 00 00 00 8C [10:46:44]Write i2c OK [10:46:44]MH_I2C_Read... [10:46:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:46:44]Read from MH i2c: E2 [10:46:44]MH_I2C_Read... [10:46:44]Read from MH i2c: E2 03 00 [10:46:44]MH_I2C_Read... [10:46:44]Read from MH i2c: E2 03 00 E3 30 00 90 00 87 [10:46:44]RAPDU: 90 00 [10:46:44]wFMCommunicate OK [10:46:44]wFMCommunicate request_size=255 [10:46:44]MH_SAM_APDU [10:46:44]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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 18 FE 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 69 85 02 00 35 04 06 00 35 [10:46:44]Write to MH i2c: E2 02 01 E4 30 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 18 FE 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 69 85 02 00 35 04 06 00 35 00 00 FF [10:46:44]Write i2c OK [10:46:44]MH_I2C_Read... [10:46:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:45]Read from MH i2c: E2 [10:46:45]MH_I2C_Read... [10:46:45]Read from MH i2c: E2 03 00 [10:46:45]MH_I2C_Read... [10:46:45]Read from MH i2c: E2 03 00 E4 30 00 90 00 88 [10:46:45]RAPDU: 90 00 [10:46:45]wFMCommunicate OK [10:46:45]wFMCommunicate request_size=10 [10:46:45]MH_SAM_APDU [10:46:45]CAPDU: 80 0D 02 02 05 65 7B F9 C3 0D [10:46:45]Write to MH i2c: E2 0D 00 E5 30 80 0D 02 02 05 00 65 7B F9 C3 0D 00 00 42 [10:46:45]Write i2c OK [10:46:45]MH_I2C_Read... [10:46:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:45]Read from MH i2c: E2 [10:46:45]MH_I2C_Read... [10:46:45]Read from MH i2c: E2 03 00 [10:46:45]MH_I2C_Read... [10:46:45]Read from MH i2c: E2 03 00 E5 30 00 90 00 89 [10:46:45]RAPDU: 90 00 [10:46:45]wFMCommunicate OK [10:46:45]wFMCommunicate request_size=4 [10:46:45]MH_SAM_APDU [10:46:45]CAPDU: 80 0D 03 02 [10:46:45]Write to MH i2c: E2 08 00 E6 30 80 0D 03 02 00 00 00 00 91 [10:46:45]Write i2c OK [10:46:45]MH_I2C_Read... [10:46:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:46:45]Read from MH i2c: E2 [10:46:45]MH_I2C_Read... [10:46:45]Read from MH i2c: E2 0B 00 [10:46:45]MH_I2C_Read... [10:46:45]Read from MH i2c: E2 0B 00 E6 30 00 34 52 E5 47 A8 5D 29 76 90 00 E8 [10:46:45]RAPDU: 34 52 E5 47 A8 5D 29 76 90 00 [10:46:45]wFMCommunicate OK [10:46:45]SAM_PROTO_SignData done [10:46:45]FM_MakeSignedData done [10:46:45]CreateOFDProtocolMessage [10:46:45]wFMCommunicate request_size=4 [10:46:45]MH_SAM_APDU [10:46:45]CAPDU: 80 11 00 00 [10:46:45]Write to MH i2c: E2 08 00 E7 30 80 11 00 00 00 00 00 00 91 [10:46:45]Write i2c OK [10:46:45]MH_I2C_Read... [10:46:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:45]Read from MH i2c: E2 [10:46:45]MH_I2C_Read... [10:46:45]Read from MH i2c: E2 17 00 [10:46:45]MH_I2C_Read... [10:46:45]Read from MH i2c: E2 17 00 E7 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E7 [10:46:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:46:45]wFMCommunicate OK [10:46:45]CreateOFDProtocolMessage done [10:46:45]OFDSenderStorePacket 165225 [10:46:45]StoreOFDPacket docnum=165225 [10:46:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A5 3F 07 01 F0 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 18 FE 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 69 85 02 00 35 04 06 00 35 65 7B F9 C3 0D 34 52 E5 47 A8 5D 29 76 [10:46:45]CheckFolder [10:46:45]dirname=/storage/ofd_packets [10:46:45]CheckFolder done [10:46:45]ProducePacketName [10:46:45]name=ofd_packets/00165225 [10:46:45]NVStorageSaveData ofd_packets/00165225 [10:46:45]File name is /storage/ofd_packets/00165225 [10:46:45]Write 301 bytes [10:46:45]NVStorageSaveData done [10:46:45]OFDSenderStorePacket done [10:46:45]KKMCreateOFDPacket done [10:46:45]NVStorageSaveData kkm_last_timestamp [10:46:45]File name is /storage/kkm_last_timestamp [10:46:45]Write 4 bytes [10:46:45]NVStorageSaveData done [10:46:45]ExternCall_PrintAddStr [10:46:45]wPrintStart [10:46:45]Write to MH i2c: 01 00 00 E8 30 18 [10:46:45]Write i2c OK [10:46:45]MH_I2C_Read... [10:46:45]Read from MH i2c: 01 [10:46:45]MH_I2C_Read... [10:46:45]Read from MH i2c: 01 07 00 [10:46:45]MH_I2C_Read... [10:46:45]Read from MH i2c: 01 07 00 E8 30 00 00 00 00 00 FF 0F 2D [10:46:45]RasterBufferAndPrint [10:46:45]line Счет N : (1)459328 [10:46:45]line ИНН: 02508201610067 [10:46:45]line Контрольно-Кассовый Чек [10:46:45]line ПРОДАЖА [10:46:45]line ТРК (МРК, ГНК) : 12 [10:46:45]line Товар: 2710124130 [10:46:45]line Аи-92-К-5 [10:46:45]line 15.200 * 65.80 [10:46:45]line = 1000.16 [10:46:45]line НДС 12% НСП 1% [10:46:45]line > о реализуемом товаре [10:46:45]line ОКРУГЛЕНИЕ: -0.16 [10:46:45]line ИТОГО: 1000.00 [10:46:45]line Внесено: 1000.00 [10:46:45]line СДАЧА: 0.00 [10:46:45]line НСП 1% : 8.85 [10:46:45]line НДС 12% : 106.21 [10:46:45]line Наличными: 1000.00 [10:46:45]line Безнал.: 0.00 [10:46:45]line Место: АЗС № 72 "Партнер Нефть" [10:46:45]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:46:45]line СНО: Общий режим [10:46:45]line Чек 98 15.07.2024 10:46 [10:46:45]line Смена: 448 ФФД: 1.0 [10:46:45]line ЗНМ: 0300000160 [10:46:45]line РНМ: 0000000000090829 [10:46:45]line Версия ККМ: 001 [10:46:45]line ФМ: 0000000000874718 [10:46:45]line ФД: 165225 [10:46:45]line ФПД: 58709987934989 [10:46:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T104648&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165225&fm=58709987934989&tin=02508201610067®Number=0000000000090829&sum=100000 [10:46:45]OFD Sender: Processing packet 165225 [packets to send 106, broken 105] [10:46:45]ProducePacketName [10:46:45]name=ofd_packets/00165225 [10:46:45]OFD Sender: To server: pG, [10:46:45]CommunicateWithHost lk.salyk.kg:30040 [10:46:45]ConnectInit lk.salyk.kg [10:46:45]written 0, free lines is 4095 [10:46:45]Connected sock=11 [10:46:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A5 3F 07 01 F0 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 18 FE 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 69 85 02 00 35 04 06 00 35 65 7B F9 C3 0D 34 52 E5 47 A8 5D 29 76 [10:46:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 61 E6 47 00 C8 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 69 85 02 00 F4 03 04 00 A2 A4 94 66 B6 04 01 00 00 A4 A5 0E BF E9 FE B3 08 [10:46:45]CommunicateWithHost err = 0 [10:46:45]CheckOFDResponse [10:46:45]1017 (14) - 77093643461234 [10:46:45]1041 (16) - 0000000000874718 [10:46:45]1040 (4) - 165225 [10:46:45]1012 (4) - 15.07.2024 04:25 [10:46:45]1206 (1) - 0 [10:46:45]OFD Sender: Remove packet 165225 [10:46:45]ProducePacketName [10:46:45]name=ofd_packets/00165225 [10:46:45]NVStorageDeleteData [10:46:45]Write to MH i2c: 01 00 00 12 31 43 [10:46:45]Write i2c OK [10:46:45]MH_I2C_Read... [10:46:45]Read from MH i2c: 01 [10:46:45]MH_I2C_Read... [10:46:45]Read from MH i2c: 01 07 00 [10:46:45]MH_I2C_Read... [10:46:45]Read from MH i2c: 01 07 00 12 31 00 00 00 00 00 09 0D 60 [10:46:45]RasterBufferAndPrint [10:46:45]line [10:46:45]line [10:46:45]line [10:46:45]line [10:46:45]line [10:46:45]written 0, free lines is 3343 [10:46:45]MH_Cut [10:46:45]Write to MH i2c: D1 01 00 19 31 01 1C [10:46:45]Write i2c OK [10:46:45]MH_I2C_Read... [10:46:45]Read from MH i2c: D1 [10:46:45]MH_I2C_Read... [10:46:45]Read from MH i2c: D1 01 00 [10:46:45]MH_I2C_Read... [10:46:45]Read from MH i2c: D1 01 00 19 31 00 1B [10:46:45]Write to MH i2c: 01 00 00 1A 31 4B [10:46:45]Write i2c OK [10:46:45]MH_I2C_Read... [10:46:46]OFD Sender: No OFD packet to send [10:46:46]*** Cut start [10:46:46]*** Partial cut [10:46:46]*** CUTSNS_PIN = 1 [10:46:46]*** CUTSNS_PIN = 0 [10:46:46]*** Brake cut motor [10:46:47]Read from MH i2c: 01 [10:46:47]MH_I2C_Read... [10:46:47]*** Stop cut motor [10:46:47]*** Cut end [10:46:47]Read from MH i2c: 01 07 00 [10:46:47]MH_I2C_Read... [10:46:47]Read from MH i2c: 01 07 00 1A 31 00 00 00 00 00 FF 0F 60 [10:46:47]process_action close_receipt done [10:46:47]requested_data is exist [10:46:47]produce_requested_data [10:46:47]requested_item fm.sn is exist - process it [10:46:47]wFMCommunicate request_size=4 [10:46:47]MH_SAM_APDU [10:46:47]CAPDU: 80 11 00 00 [10:46:47]Write to MH i2c: E2 08 00 1B 31 80 11 00 00 00 00 00 00 C6 [10:46:47]Write i2c OK [10:46:47]MH_I2C_Read... [10:46:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:47]Read from MH i2c: E2 [10:46:47]MH_I2C_Read... [10:46:47]Read from MH i2c: E2 17 00 [10:46:47]MH_I2C_Read... [10:46:47]Read from MH i2c: E2 17 00 1B 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1C [10:46:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:46:47]wFMCommunicate OK [10:46:47]requested_item fd.num is exist - process it [10:46:47]SAM_PROTO_GetFieldsCounters [10:46:47]wFMCommunicate request_size=4 [10:46:47]MH_SAM_APDU [10:46:47]CAPDU: 80 13 00 00 [10:46:47]Write to MH i2c: E2 08 00 1C 31 80 13 00 00 00 00 00 00 C9 [10:46:47]Write i2c OK [10:46:47]MH_I2C_Read... [10:46:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:46:47]Read from MH i2c: E2 [10:46:47]MH_I2C_Read... [10:46:47]Read from MH i2c: E2 62 00 [10:46:47]MH_I2C_Read... [10:46:47]Read from MH i2c: E2 62 00 1C 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 69 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [10:46:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 69 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:46:47]wFMCommunicate OK [10:46:47]SAM_PROTO_GetFieldsCounters done [10:46:47]requested_item shift.num is exist - process it [10:46:47]requested_item shift.opened is exist - process it [10:46:47]req_shift_opened [10:46:47]FM_GetShiftState [10:46:47]SAM_PROTO_GetShiftState [10:46:47]wFMCommunicate request_size=4 [10:46:47]MH_SAM_APDU [10:46:47]CAPDU: 80 13 01 00 [10:46:47]Write to MH i2c: E2 08 00 1D 31 80 13 01 00 00 00 00 00 CB [10:46:47]Write i2c OK [10:46:47]MH_I2C_Read... [10:46:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:47]Read from MH i2c: E2 [10:46:47]MH_I2C_Read... [10:46:47]Read from MH i2c: E2 0E 00 [10:46:47]MH_I2C_Read... [10:46:47]Read from MH i2c: E2 0E 00 1D 31 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 A4 [10:46:47]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:46:47]wFMCommunicate OK [10:46:47]SAM_PROTO_GetShiftState done [10:46:47]FM_GetShiftState done [10:46:47]req_shift_opened done [10:46:47]requested_item shift.open_date is exist - process it [10:46:47]req_shift_open_date [10:46:47]req_shift_open_date done [10:46:47]produce_requested_data done [10:46:47]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165225,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [10:46:47]process_action_free close_receipt [10:46:47]json_value_free [10:46:47]json_value_free done [10:46:47]process_json_proto returns [10:46:47]Send response to host [10:46:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165225,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [10:46:47]free response buf [10:46:47]execute_script done [10:46:47]execute_script returns [10:46:47]free content buf [10:46:47]Sock 7.Close socket [10:46:47]Sock 7.Thread stoped [10:46:51]OFD Sender: No OFD packet to send [10:46:56]OFD Sender: No OFD packet to send [10:47:01]OFD Sender: No OFD packet to send [10:47:06]OFD Sender: No OFD packet to send [10:47:11]OFD Sender: No OFD packet to send [10:47:16]OFD Sender: No OFD packet to send [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:56]OFD Sender: No OFD packet to send [10:48:01]OFD Sender: No OFD packet to send [10:48:06]OFD Sender: No OFD packet to send [10:48:11]OFD Sender: No OFD packet to send [10:48:16]OFD Sender: No OFD packet to send [10:48:21]OFD Sender: No OFD packet to send [10:48:22]accept exits with 9 [10:48:22]New connection [10:48:22]New thread 3066928484 created [10:48:22]Thread 3066785124 joined [10:48:22]Waiting for new connection... [10:48:22] Sock 9.Parse request [10:48:22]Sock 9.Check first char [10:48:22]Sock 9.First char is OK [10:48:22]request: POST /json_proto HTTP/1.0 [10:48:22]Method: POST [10:48:22]URL: /json_proto [10:48:22]Method is POST - this is cgi request [10:48:22]url: /json_proto [10:48:22]query_string will be loaded in cgi processing [10:48:22]execute_cgi json_proto POST (null) [10:48:22]execute_cgi path=json_proto method=POST [10:48:22]POST find Content-Length [10:48:22]Host: 172.17.56.4:8080 [10:48:22]Content-Length: 677 [10:48:22]Content-Type: application/json [10:48:22] [10:48:22]POST finish read [10:48:22]Found Content-Length = 677 [10:48:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459329", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:22]execute_script... [10:48:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459329", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:22]POST & json_proto [10:48:22]process_json_proto [10:48:22]json parsed OK: [10:48:22]protocol is kg_v1.0 [10:48:22]action value=close_receipt [10:48:22]process_action close_receipt [10:48:22]cmd_close_receipt [10:48:22]MH_GetDate [10:48:22]Write to MH i2c: F0 00 00 1E 31 3E [10:48:22]Write i2c OK [10:48:22]MH_I2C_Read... [10:48:22]Read from MH i2c: F0 [10:48:22]MH_I2C_Read... [10:48:22]Read from MH i2c: F0 09 00 [10:48:22]MH_I2C_Read... [10:48:22]Read from MH i2c: F0 09 00 1E 31 00 7B FE 94 66 C9 DC B2 64 75 [10:48:22]GetLastDocTimeStamp 1721040408 [10:48:22]current date 1721040507 [10:48:22]FM_GetShiftState [10:48:22]SAM_PROTO_GetShiftState [10:48:22]wFMCommunicate request_size=4 [10:48:22]MH_SAM_APDU [10:48:22]CAPDU: 80 13 01 00 [10:48:22]Write to MH i2c: E2 08 00 1F 31 80 13 01 00 00 00 00 00 CD [10:48:22]Write i2c OK [10:48:22]MH_I2C_Read... [10:48:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:22]Read from MH i2c: E2 [10:48:22]MH_I2C_Read... [10:48:22]Read from MH i2c: E2 0E 00 [10:48:22]MH_I2C_Read... [10:48:22]Read from MH i2c: E2 0E 00 1F 31 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 A6 [10:48:22]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:48:22]wFMCommunicate OK [10:48:22]SAM_PROTO_GetShiftState done [10:48:22]FM_GetShiftState done [10:48:22]opened in 1721003876 [10:48:22]opened+sec_in_day 1721090276 [10:48:22]quantity*price = 50008 [10:48:22]sum+1 = 50009 [10:48:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 99 15.07.2024 10:48 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165226 ФПД: 23648238864508 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T104827&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165226&fm=23648238864508&tin=02508201610067®Number=0000000000090829&sum=50000 [10:48:23]StoreToDocumentArchive [10:48:23]shift 448 fd 165226 [10:48:23]save to /storage/0448/doc_00165226 [10:48:23]save last doc name /storage/0448/doc_00165226 to /storage/kkm_last_doc_name [10:48:23]save OK [10:48:23]Clear old archive folders... [10:48:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:48:23]tlvbuf is B6F4F790 [10:48:23]SAM_PROTO_ClearQueue [10:48:23]wFMCommunicate request_size=4 [10:48:23]MH_SAM_APDU [10:48:23]CAPDU: 80 09 00 00 [10:48:23]Write to MH i2c: E2 08 00 2C 31 80 09 00 00 00 00 00 00 CF [10:48:23]Write i2c OK [10:48:23]MH_I2C_Read... [10:48:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:48:23]Read from MH i2c: E2 [10:48:23]MH_I2C_Read... [10:48:23]Read from MH i2c: E2 03 00 [10:48:23]MH_I2C_Read... [10:48:23]Read from MH i2c: E2 03 00 2C 31 00 90 00 D1 [10:48:23]RAPDU: 90 00 [10:48:23]wFMCommunicate OK [10:48:23]SAM_PROTO_ClearQueue done [10:48:23]KKMCreateOFDPacket [10:48:23]OFDProtocolAddRootSTLVToBuf [10:48:23]FM_MakeSignedData [10:48:23]FM_MakeSignedData [10:48:23]SAM_PROTO_SignData [10:48:23]wFMCommunicate request_size=4 [10:48:23]MH_SAM_APDU [10:48:23]CAPDU: 80 0D 01 02 [10:48:23]Write to MH i2c: E2 08 00 2D 31 80 0D 01 02 00 00 00 00 D7 [10:48:23]Write i2c OK [10:48:23]MH_I2C_Read... [10:48:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:48:23]Read from MH i2c: E2 [10:48:23]MH_I2C_Read... [10:48:23]Read from MH i2c: E2 03 00 [10:48:23]MH_I2C_Read... [10:48:23]Read from MH i2c: E2 03 00 2D 31 00 90 00 D2 [10:48:23]RAPDU: 90 00 [10:48:23]wFMCommunicate OK [10:48:23]wFMCommunicate request_size=255 [10:48:23]MH_SAM_APDU [10:48:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 7B FE 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6A 85 02 00 35 04 06 00 15 [10:48:23]Write to MH i2c: E2 02 01 2E 31 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 7B FE 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6A 85 02 00 35 04 06 00 15 00 00 ED [10:48:23]Write i2c OK [10:48:23]MH_I2C_Read... [10:48:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:24]Read from MH i2c: E2 [10:48:24]MH_I2C_Read... [10:48:24]Read from MH i2c: E2 03 00 [10:48:24]MH_I2C_Read... [10:48:24]Read from MH i2c: E2 03 00 2E 31 00 90 00 D3 [10:48:24]RAPDU: 90 00 [10:48:24]wFMCommunicate OK [10:48:24]wFMCommunicate request_size=10 [10:48:24]MH_SAM_APDU [10:48:24]CAPDU: 80 0D 02 02 05 82 08 E0 88 7C [10:48:24]Write to MH i2c: E2 0D 00 2F 31 80 0D 02 02 05 00 82 08 E0 88 7C 00 00 52 [10:48:24]Write i2c OK [10:48:24]MH_I2C_Read... [10:48:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:24]Read from MH i2c: E2 [10:48:24]MH_I2C_Read... [10:48:24]Read from MH i2c: E2 03 00 [10:48:24]MH_I2C_Read... [10:48:24]Read from MH i2c: E2 03 00 2F 31 00 90 00 D4 [10:48:24]RAPDU: 90 00 [10:48:24]wFMCommunicate OK [10:48:24]wFMCommunicate request_size=4 [10:48:24]MH_SAM_APDU [10:48:24]CAPDU: 80 0D 03 02 [10:48:24]Write to MH i2c: E2 08 00 30 31 80 0D 03 02 00 00 00 00 DC [10:48:24]Write i2c OK [10:48:24]MH_I2C_Read... [10:48:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:48:24]Read from MH i2c: E2 [10:48:24]MH_I2C_Read... [10:48:24]Read from MH i2c: E2 0B 00 [10:48:24]MH_I2C_Read... [10:48:24]Read from MH i2c: E2 0B 00 30 31 00 09 AC AE ED D4 D0 29 96 90 00 90 [10:48:24]RAPDU: 09 AC AE ED D4 D0 29 96 90 00 [10:48:24]wFMCommunicate OK [10:48:24]SAM_PROTO_SignData done [10:48:24]FM_MakeSignedData done [10:48:24]CreateOFDProtocolMessage [10:48:24]wFMCommunicate request_size=4 [10:48:24]MH_SAM_APDU [10:48:24]CAPDU: 80 11 00 00 [10:48:24]Write to MH i2c: E2 08 00 31 31 80 11 00 00 00 00 00 00 DC [10:48:24]Write i2c OK [10:48:24]MH_I2C_Read... [10:48:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:24]Read from MH i2c: E2 [10:48:24]MH_I2C_Read... [10:48:24]Read from MH i2c: E2 17 00 [10:48:24]MH_I2C_Read... [10:48:24]Read from MH i2c: E2 17 00 31 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 32 [10:48:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:48:24]wFMCommunicate OK [10:48:24]CreateOFDProtocolMessage done [10:48:24]OFDSenderStorePacket 165226 [10:48:24]StoreOFDPacket docnum=165226 [10:48:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 92 19 07 01 E3 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 7B FE 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6A 85 02 00 35 04 06 00 15 82 08 E0 88 7C 09 AC AE ED D4 D0 29 96 [10:48:24]CheckFolder [10:48:24]dirname=/storage/ofd_packets [10:48:24]CheckFolder done [10:48:24]ProducePacketName [10:48:24]name=ofd_packets/00165226 [10:48:24]NVStorageSaveData ofd_packets/00165226 [10:48:24]File name is /storage/ofd_packets/00165226 [10:48:24]Write 301 bytes [10:48:24]NVStorageSaveData done [10:48:24]OFDSenderStorePacket done [10:48:24]KKMCreateOFDPacket done [10:48:24]NVStorageSaveData kkm_last_timestamp [10:48:24]File name is /storage/kkm_last_timestamp [10:48:24]Write 4 bytes [10:48:24]NVStorageSaveData done [10:48:24]ExternCall_PrintAddStr [10:48:24]wPrintStart [10:48:24]Write to MH i2c: 01 00 00 32 31 63 [10:48:24]Write i2c OK [10:48:24]MH_I2C_Read... [10:48:24]Read from MH i2c: 01 [10:48:24]MH_I2C_Read... [10:48:24]Read from MH i2c: 01 07 00 [10:48:24]MH_I2C_Read... [10:48:24]Read from MH i2c: 01 07 00 32 31 00 00 00 00 00 FF 0F 78 [10:48:24]RasterBufferAndPrint [10:48:24]line Счет N : (1)459329 [10:48:24]line ИНН: 02508201610067 [10:48:24]line Контрольно-Кассовый Чек [10:48:24]line ПРОДАЖА [10:48:24]line ТРК (МРК, ГНК) : 22 [10:48:24]line Товар: 2710124130 [10:48:24]line Аи-92-К-5 [10:48:24]line 7.600 * 65.80 [10:48:24]line = 500.08 [10:48:24]line НДС 12% НСП 1% [10:48:24]line > о реализуемом товаре [10:48:24]line ОКРУГЛЕНИЕ: -0.08 [10:48:24]line ИТОГО: 500.00 [10:48:24]line Внесено: 500.00 [10:48:24]line СДАЧА: 0.00 [10:48:24]line НСП 1% : 4.42 [10:48:24]line НДС 12% : 53.11 [10:48:24]line Наличными: 500.00 [10:48:24]line Безнал.: 0.00 [10:48:24]line Место: АЗС № 72 "Партнер Нефть" [10:48:24]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:48:24]line СНО: Общий режим [10:48:24]line Чек 99 15.07.2024 10:48 [10:48:24]line Смена: 448 ФФД: 1.0 [10:48:24]line ЗНМ: 0300000160 [10:48:24]line РНМ: 0000000000090829 [10:48:24]line Версия ККМ: 001 [10:48:24]line ФМ: 0000000000874718 [10:48:24]line ФД: 165226 [10:48:24]line ФПД: 23648238864508 [10:48:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T104827&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165226&fm=23648238864508&tin=02508201610067®Number=0000000000090829&sum=50000 [10:48:24]written 0, free lines is 4095 [10:48:24]OFD Sender: Processing packet 165226 [packets to send 106, broken 105] [10:48:24]ProducePacketName [10:48:24]name=ofd_packets/00165226 [10:48:24]OFD Sender: To server: pG, [10:48:24]CommunicateWithHost lk.salyk.kg:30040 [10:48:24]ConnectInit lk.salyk.kg [10:48:24]Connected sock=10 [10:48:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 92 19 07 01 E3 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 7B FE 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6A 85 02 00 35 04 06 00 15 82 08 E0 88 7C 09 AC AE ED D4 D0 29 96 [10:48:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 A2 37 47 00 D0 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6A 85 02 00 F4 03 04 00 05 A5 94 66 B6 04 01 00 00 FC 8E AE C1 F3 7C F7 74 [10:48:24]CommunicateWithHost err = 0 [10:48:24]CheckOFDResponse [10:48:24]1017 (14) - 77093643461234 [10:48:24]1041 (16) - 0000000000874718 [10:48:24]1040 (4) - 165226 [10:48:24]1012 (4) - 15.07.2024 04:26 [10:48:24]1206 (1) - 0 [10:48:24]OFD Sender: Remove packet 165226 [10:48:24]ProducePacketName [10:48:24]name=ofd_packets/00165226 [10:48:24]NVStorageDeleteData [10:48:24]Write to MH i2c: 01 00 00 5C 31 8D [10:48:24]Write i2c OK [10:48:24]MH_I2C_Read... [10:48:24]Read from MH i2c: 01 [10:48:24]MH_I2C_Read... [10:48:24]Read from MH i2c: 01 07 00 [10:48:24]MH_I2C_Read... [10:48:24]Read from MH i2c: 01 07 00 5C 31 00 00 00 00 00 05 0D A6 [10:48:24]RasterBufferAndPrint [10:48:24]line [10:48:24]line [10:48:24]line [10:48:24]line [10:48:24]line [10:48:24]written 0, free lines is 3340 [10:48:24]int [10:48:24]Write to MH i2c: 01 00 00 5E 31 8F [10:48:24]*** FLAG_PRN_PAP2 set [10:48:24]Read from MH i2c: DD [10:48:24]MH_I2C_Read... [10:48:24]Write i2c OK [10:48:24]MH_I2C_Read... [10:48:24]Read from MH i2c: DD 01 00 [10:48:24]MH_I2C_Read... [10:48:24]Read from MH i2c: DD [10:48:24]MH_I2C_Read... [10:48:24]Read from MH i2c: DD 01 00 5E 31 05 71 [10:48:24]Error from MH - 05 [10:48:24]process_action_free close_receipt [10:48:24]json_value_free [10:48:24]json_value_free done [10:48:24]process_json_proto returns [10:48:24]Send response to host [10:48:24]{"protocol":"kg_v1.0","response":{"error":1033,"error_desc":"No paper"}} [10:48:24]free response buf [10:48:24]execute_script done [10:48:24]execute_script returns [10:48:24]free content buf [10:48:24]Sock 9.Close socket [10:48:24]Sock 9.Thread stoped [10:48:24]Read from MH i2c: DD 01 00 [10:48:24]answer for other command [DD] [10:48:24]MH Int Process stopped [10:48:25]OFD Sender: No OFD packet to send [10:48:30]OFD Sender: No OFD packet to send [10:48:33]*** FLAG_PRN_PAP1 set [10:48:33]*** FLAG_PRN_PAP1 reset [10:48:33]*** FLAG_PRN_PAP1 set [10:48:33]*** FLAG_PRN_PAP1 reset [10:48:34]*** FLAG_PRN_PAP1 set [10:48:35]OFD Sender: No OFD packet to send [10:48:40]OFD Sender: No OFD packet to send [10:48:45]OFD Sender: No OFD packet to send [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 CB FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 70 [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: *** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]A0 *** [00:00:10]01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005725CB (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 31597028+1689443529=1721040557 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33520623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 CB FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 71 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 60 00 FF FF 7F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 AE FE 94 66 C9 DC B2 64 60 [10:49:18]Current date/time: 15.07.2024 10:49 [10:49:18]FM_Init [10:49:18]wFMConnect [10:49:18]MH_SAM_On [10:49:18]Write to MH i2c: E0 00 00 08 00 E7 [10:49:18]Write i2c OK [10:49:18]MH_I2C_Read... [10:49:18]*** iso7816_init finished! [10:49:18]*** atr: [10:49:18]*** 0F 3B D5 18 FF 81 91 FE [10:49:18]*** 1F C3 80 73 C8 21 10 0A [10:49:18]*** 00 00 00 00 00 00 00 00 [10:49:18]*** 00 00 00 00 00 00 00 00 [10:49:18]*** 00 00 00 00 00 00 00 00 [10:49:18]*** 00 00 00 00 00 00 00 00 [10:49:18]*** 00 00 00 00 00 00 00 00 [10:49:18]*** 00 00 00 00 00 00 00 00 [10:49:18]Read from MH i2c: E0 [10:49:18]MH_I2C_Read... [10:49:18]Read from MH i2c: E0 10 00 [10:49:18]MH_I2C_Read... [10:49:18]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [10:49:18]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [10:49:18]wFMCommunicate request_size=10 [10:49:18]MH_SAM_APDU [10:49:18]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [10:49:18]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [10:49:18]Write i2c OK [10:49:18]MH_I2C_Read... [10:49:18]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [10:49:18]Read from MH i2c: E2 [10:49:18]MH_I2C_Read... [10:49:18]Read from MH i2c: E2 03 00 [10:49:18]MH_I2C_Read... [10:49:18]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [10:49:18]RAPDU: 90 00 [10:49:18]wFMCommunicate OK [10:49:18]wFMCommunicate request_size=4 [10:49:18]MH_SAM_APDU [10:49:18]CAPDU: 80 11 00 00 [10:49:18]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [10:49:18]Write i2c OK [10:49:18]MH_I2C_Read... [10:49:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:18]Read from MH i2c: E2 [10:49:18]MH_I2C_Read... [10:49:18]Read from MH i2c: E2 17 00 [10:49:18]MH_I2C_Read... [10:49:18]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DA [10:49:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:49:18]wFMCommunicate OK [10:49:18]Detected FM SN is 0000000000874718 [10:49:18]Stored FM SN is 0000000000874718 [10:49:18]wFMCommunicate request_size=9 [10:49:18]MH_SAM_APDU [10:49:18]CAPDU: 80 16 00 00 04 29 B3 00 00 [10:49:18]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 29 B3 00 00 00 00 6E [10:49:18]Write i2c OK [10:49:18]MH_I2C_Read... [10:49:18]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [10:49:18]Read from MH i2c: E2 [10:49:18]MH_I2C_Read... [10:49:18]Read from MH i2c: E2 03 00 [10:49:18]MH_I2C_Read... [10:49:18]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [10:49:18]RAPDU: 90 00 [10:49:18]wFMCommunicate OK [10:49:18]FM PIN OK [10:49:18]wFMCommunicate request_size=8 [10:49:18]MH_SAM_APDU [10:49:18]CAPDU: 80 14 04 00 03 02 00 01 [10:49:18]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [10:49:18]Write i2c OK [10:49:18]MH_I2C_Read... [10:49:18]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [10:49:18]Read from MH i2c: E2 [10:49:18]MH_I2C_Read... [10:49:18]Read from MH i2c: E2 03 00 [10:49:18]MH_I2C_Read... [10:49:18]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [10:49:18]RAPDU: 90 00 [10:49:18]wFMCommunicate OK [10:49:18]wFMCommunicate request_size=13 [10:49:18]MH_SAM_APDU [10:49:18]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [10:49:18]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [10:49:18]Write i2c OK [10:49:18]MH_I2C_Read... [10:49:18]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [10:49:18]Read from MH i2c: E2 [10:49:18]MH_I2C_Read... [10:49:18]Read from MH i2c: E2 03 00 [10:49:18]MH_I2C_Read... [10:49:18]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [10:49:18]RAPDU: 90 00 [10:49:18]wFMCommunicate OK [10:49:18]wFMCommunicate request_size=4 [10:49:18]MH_SAM_APDU [10:49:18]CAPDU: 80 11 00 00 [10:49:18]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [10:49:18]Write i2c OK [10:49:18]MH_I2C_Read... [10:49:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:18]Read from MH i2c: E2 [10:49:18]MH_I2C_Read... [10:49:18]Read from MH i2c: E2 17 00 [10:49:18]MH_I2C_Read... [10:49:18]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DE [10:49:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:49:18]wFMCommunicate OK [10:49:18]DocumentArchiveInit [10:49:18]Start Httpd... [10:49:18]Httpd thread 3067141476 created [10:49:18]Write to MH i2c: 01 00 00 0F 00 0F [10:49:18]Write i2c OK [10:49:18]MH_I2C_Read... [10:49:18]Read from MH i2c: 01 [10:49:18]MH_I2C_Read... [10:49:18]Read from MH i2c: 01 07 00 [10:49:18]MH_I2C_Read... [10:49:18]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [10:49:18]MH Int Process started [10:49:18]Allocated Socket 6 [10:49:18]Bind OK [10:49:18]Listen OK [10:49:18]httpd running on port 8080 [10:49:18]Waiting for new connection... [10:49:18]int [10:49:18]Write to MH i2c: 01 00 00 10 00 10 [10:49:18]*** FLAG_PRN_KEY set [10:49:18]Write i2c OK [10:49:18]MH_I2C_Read... [10:49:18]Read from MH i2c: 01 [10:49:18]MH_I2C_Read... [10:49:18]Read from MH i2c: 01 07 00 [10:49:18]MH_I2C_Read... [10:49:18]Read from MH i2c: 01 07 00 10 00 00 08 00 00 00 FF 0F 2D [10:49:18]state=0 [10:49:18]Key pressed [10:49:18]Feed [10:49:18]Write to MH i2c: D8 00 00 11 00 E8 [10:49:18]Write i2c OK [10:49:18]MH_I2C_Read... [10:49:18]Read from MH i2c: D8 [10:49:18]MH_I2C_Read... [10:49:18]Read from MH i2c: D8 01 00 [10:49:18]MH_I2C_Read... [10:49:18]Read from MH i2c: D8 01 00 11 00 00 E9 [10:49:18]OFD Sender: No OFD packet to send [10:49:19]int [10:49:19]Write to MH i2c: 01 00 00 12 00 12 [10:49:19]*** FLAG_PRN_KEY reset [10:49:19]Write i2c OK [10:49:19]MH_I2C_Read... [10:49:19]Read from MH i2c: 01 [10:49:19]MH_I2C_Read... [10:49:19]Read from MH i2c: 01 07 00 [10:49:19]MH_I2C_Read... [10:49:19]Read from MH i2c: 01 07 00 12 00 00 00 00 00 00 FF 0F 27 [10:49:19]state=2 [10:49:19]Stop feed [10:49:19]int [10:49:19]Write to MH i2c: 01 00 00 13 00 13 [10:49:19]*** FLAG_PRN_KEY set [10:49:19]Write i2c OK [10:49:19]MH_I2C_Read... [10:49:19]Read from MH i2c: 01 [10:49:19]MH_I2C_Read... [10:49:19]Read from MH i2c: 01 07 00 [10:49:19]MH_I2C_Read... [10:49:19]Read from MH i2c: 01 07 00 13 00 00 08 00 00 00 FF 0F 30 [10:49:19]state=0 [10:49:19]Key pressed [10:49:19]Feed [10:49:19]Write to MH i2c: D8 00 00 14 00 EB [10:49:19]Write i2c OK [10:49:19]MH_I2C_Read... [10:49:19]Read from MH i2c: D8 [10:49:19]MH_I2C_Read... [10:49:19]Read from MH i2c: D8 01 00 [10:49:19]MH_I2C_Read... [10:49:19]Read from MH i2c: D8 01 00 14 00 00 EC [10:49:19]int [10:49:19]Write to MH i2c: 01 00 00 15 00 15 [10:49:19]*** FLAG_PRN_KEY reset [10:49:19]Write i2c OK [10:49:19]MH_I2C_Read... [10:49:19]Read from MH i2c: 01 [10:49:19]MH_I2C_Read... [10:49:19]Read from MH i2c: 01 07 00 [10:49:19]MH_I2C_Read... [10:49:19]Read from MH i2c: 01 07 00 15 00 00 00 00 00 00 FF 0F 2A [10:49:19]state=2 [10:49:19]Stop feed [10:49:20]int [10:49:20]Write to MH i2c: 01 00 00 16 00 16 [10:49:20]*** FLAG_PRN_KEY set [10:49:20]Write i2c OK [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: 01 [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: 01 07 00 [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: 01 07 00 16 00 00 08 00 00 00 FF 0F 33 [10:49:20]state=0 [10:49:20]Key pressed [10:49:20]Feed [10:49:20]Write to MH i2c: D8 00 00 17 00 EE [10:49:20]Write i2c OK [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: D8 [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: D8 01 00 [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: D8 01 00 17 00 00 EF [10:49:20]int [10:49:20]Write to MH i2c: 01 00 00 18 00 18 [10:49:20]*** FLAG_PRN_KEY reset [10:49:20]Write i2c OK [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: 01 [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: 01 07 00 [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: 01 07 00 18 00 00 00 00 00 00 FF 0F 2D [10:49:20]state=2 [10:49:20]Stop feed [10:49:20]int [10:49:20]Write to MH i2c: 01 00 00 19 00 19 [10:49:20]*** FLAG_PRN_KEY set [10:49:20]Write i2c OK [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: 01 [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: 01 07 00 [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: 01 07 00 19 00 00 08 00 00 00 FF 0F 36 [10:49:20]state=0 [10:49:20]Key pressed [10:49:20]Feed [10:49:20]Write to MH i2c: D8 00 00 1A 00 F1 [10:49:20]Write i2c OK [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: D8 [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: D8 01 00 [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: D8 01 00 1A 00 00 F2 [10:49:20]int [10:49:20]Write to MH i2c: 01 00 00 1B 00 1B [10:49:20]Write i2c OK [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: 01 [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: 01 07 00 [10:49:20]MH_I2C_Read... [10:49:20]Read from MH i2c: 01 07 00 1B 00 00 48 00 00 00 3C 00 A6 [10:49:20]state=2 [10:49:20]Key pressed [10:49:22]int [10:49:22]Write to MH i2c: 01 00 00 1C 00 1C [10:49:22]*** FLAG_PRN_KEY reset [10:49:22]Write i2c OK [10:49:22]MH_I2C_Read... [10:49:22]Read from MH i2c: 01 [10:49:22]MH_I2C_Read... [10:49:22]Read from MH i2c: 01 07 00 [10:49:22]MH_I2C_Read... [10:49:22]Read from MH i2c: 01 07 00 1C 00 00 00 00 00 00 F6 0F 28 [10:49:22]state=2 [10:49:22]Stop feed [10:49:23]OFD Sender: No OFD packet to send [10:49:26]accept exits with 7 [10:49:26]New connection [10:49:26]New thread 3066854756 created [10:49:26]Waiting for new connection... [10:49:26] Sock 7.Parse request [10:49:26]Sock 7.Check first char [10:49:26]Sock 7.First char is OK [10:49:26]request: POST /json_proto HTTP/1.0 [10:49:26]Method: POST [10:49:26]URL: /json_proto [10:49:26]Method is POST - this is cgi request [10:49:26]url: /json_proto [10:49:26]query_string will be loaded in cgi processing [10:49:26]execute_cgi json_proto POST (null) [10:49:26]execute_cgi path=json_proto method=POST [10:49:26]POST find Content-Length [10:49:26]Host: 172.17.56.4:8080 [10:49:26]Content-Length: 215 [10:49:26]Content-Type: application/json [10:49:26] [10:49:26]POST finish read [10:49:26]Found Content-Length = 215 [10:49:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:26]execute_script... [10:49:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:26]POST & json_proto [10:49:26]process_json_proto [10:49:26]json parsed OK: [10:49:26]protocol is kg_v1.0 [10:49:26]action value=get_value [10:49:26]process_action get_value [10:49:26]cmd_get_value [10:49:26]process_action get_value done [10:49:26]requested_data is exist [10:49:26]produce_requested_data [10:49:26]requested_item kkm.sn is exist - process it [10:49:26]requested_item kkm.ver is exist - process it [10:49:26]requested_item fm.sn is exist - process it [10:49:26]wFMCommunicate request_size=4 [10:49:26]MH_SAM_APDU [10:49:26]CAPDU: 80 11 00 00 [10:49:26]Write to MH i2c: E2 08 00 1D 00 80 11 00 00 00 00 00 00 97 [10:49:26]Write i2c OK [10:49:26]MH_I2C_Read... [10:49:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:26]Read from MH i2c: E2 [10:49:26]MH_I2C_Read... [10:49:26]Read from MH i2c: E2 17 00 [10:49:26]MH_I2C_Read... [10:49:26]Read from MH i2c: E2 17 00 1D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 ED [10:49:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:49:26]wFMCommunicate OK [10:49:26]requested_item fd.num is exist - process it [10:49:26]SAM_PROTO_GetFieldsCounters [10:49:26]wFMCommunicate request_size=4 [10:49:26]MH_SAM_APDU [10:49:26]CAPDU: 80 13 00 00 [10:49:26]Write to MH i2c: E2 08 00 1E 00 80 13 00 00 00 00 00 00 9A [10:49:26]Write i2c OK [10:49:26]MH_I2C_Read... [10:49:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:49:26]Read from MH i2c: E2 [10:49:26]MH_I2C_Read... [10:49:26]Read from MH i2c: E2 62 00 [10:49:26]MH_I2C_Read... [10:49:26]Read from MH i2c: E2 62 00 1E 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6A 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [10:49:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6A 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:49:26]wFMCommunicate OK [10:49:26]SAM_PROTO_GetFieldsCounters done [10:49:26]requested_item shift.num is exist - process it [10:49:26]requested_item shift.opened is exist - process it [10:49:26]req_shift_opened [10:49:26]FM_GetShiftState [10:49:26]SAM_PROTO_GetShiftState [10:49:26]wFMCommunicate request_size=4 [10:49:26]MH_SAM_APDU [10:49:26]CAPDU: 80 13 01 00 [10:49:26]Write to MH i2c: E2 08 00 1F 00 80 13 01 00 00 00 00 00 9C [10:49:26]Write i2c OK [10:49:26]MH_I2C_Read... [10:49:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:26]Read from MH i2c: E2 [10:49:26]MH_I2C_Read... [10:49:26]Read from MH i2c: E2 0E 00 [10:49:26]MH_I2C_Read... [10:49:26]Read from MH i2c: E2 0E 00 1F 00 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 75 [10:49:26]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:49:26]wFMCommunicate OK [10:49:26]SAM_PROTO_GetShiftState done [10:49:26]FM_GetShiftState done [10:49:26]req_shift_opened done [10:49:26]requested_item shift.open_date is exist - process it [10:49:26]req_shift_open_date [10:49:26]req_shift_open_date done [10:49:26]produce_requested_data done [10:49:26]produce_requested_data return {"kkm.sn":"0300000160","kkm.ver":"001","fm.sn":"0000000000874718","fd.num":165226,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [10:49:26]process_action_free get_value [10:49:26]json_value_free [10:49:26]json_value_free done [10:49:26]process_json_proto returns [10:49:26]Send response to host [10:49:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000160","kkm.ver":"001","fm.sn":"0000000000874718","fd.num":165226,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [10:49:26]free response buf [10:49:26]execute_script done [10:49:26]execute_script returns [10:49:26]free content buf [10:49:26]Sock 7.Close socket [10:49:26]Sock 7.Thread stoped [10:49:26]accept exits with 9 [10:49:26]New connection [10:49:26]New thread 3066711396 created [10:49:26]Thread 3066854756 joined [10:49:26]Waiting for new connection... [10:49:26] Sock 9.Parse request [10:49:26]Sock 9.Check first char [10:49:26]Sock 9.First char is OK [10:49:26]request: POST /json_proto HTTP/1.0 [10:49:26]Method: POST [10:49:26]URL: /json_proto [10:49:26]Method is POST - this is cgi request [10:49:26]url: /json_proto [10:49:26]query_string will be loaded in cgi processing [10:49:26]execute_cgi json_proto POST (null) [10:49:26]execute_cgi path=json_proto method=POST [10:49:26]POST find Content-Length [10:49:26]Host: 172.17.56.4:8080 [10:49:26]Content-Length: 331 [10:49:26]Content-Type: application/json [10:49:26] [10:49:26]POST finish read [10:49:26]Found Content-Length = 331 [10:49: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" ] } } [10:49:26]execute_script... [10:49: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" ] } } [10:49:26]POST & json_proto [10:49:26]process_json_proto [10:49:26]json parsed OK: [10:49:26]protocol is kg_v1.0 [10:49:26]action value=get_value [10:49:26]process_action get_value [10:49:26]cmd_get_value [10:49:26]process_action get_value done [10:49:26]requested_data is exist [10:49:26]produce_requested_data [10:49:26]requested_item fm.sale.total is exist - process it [10:49:26]SAM_PROTO_GetFMData [10:49:26]wFMCommunicate request_size=4 [10:49:26]MH_SAM_APDU [10:49:26]CAPDU: 80 13 03 00 [10:49:26]Write to MH i2c: E2 08 00 20 00 80 13 03 00 00 00 00 00 9F [10:49:26]Write i2c OK [10:49:26]MH_I2C_Read... [10:49:27]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [10:49:27]Read from MH i2c: E2 [10:49:27]MH_I2C_Read... [10:49:27]Read from MH i2c: E2 FD 00 [10:49:27]MH_I2C_Read... [10:49:27]Read from MH i2c: E2 FD 00 20 00 00 C4 04 85 04 C0 04 6E 04 04 00 E7 81 02 00 69 04 A3 00 6F 04 04 00 D9 80 02 00 B1 04 05 00 44 E7 C0 59 02 70 04 05 00 9D 9E 5B 37 02 72 04 04 00 A7 48 65 22 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 F7 7E ED 3F 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 E2 99 53 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 0E 01 00 00 B1 04 04 00 6C E5 46 03 70 04 04 00 6C E5 46 03 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 23 19 59 EF 03 09 00 90 00 59 [10:49:27]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 E7 81 02 00 69 04 A3 00 6F 04 04 00 D9 80 02 00 B1 04 05 00 44 E7 C0 59 02 70 04 05 00 9D 9E 5B 37 02 72 04 04 00 A7 48 65 22 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 F7 7E ED 3F 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 E2 99 53 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 0E 01 00 00 B1 04 04 00 6C E5 46 03 70 04 04 00 6C E5 46 03 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 23 19 59 EF 03 09 00 90 00 [10:49:27]wFMCommunicate OK [10:49:27]wFMCommunicate request_size=4 [10:49:27]MH_SAM_APDU [10:49:27]CAPDU: 80 17 00 00 [10:49:27]Write to MH i2c: E2 08 00 21 00 80 17 00 00 00 00 00 00 A1 [10:49:27]Write i2c OK [10:49:27]MH_I2C_Read... [10:49:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:49:27]Read from MH i2c: E2 [10:49:27]MH_I2C_Read... [10:49:27]Read from MH i2c: E2 FD 00 [10:49:27]MH_I2C_Read... [10:49:27]Read from MH i2c: E2 FD 00 21 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B1 6C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 7B [10:49:27]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B1 6C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:49:27]wFMCommunicate OK [10:49:27]wFMCommunicate request_size=4 [10:49:27]MH_SAM_APDU [10:49:27]CAPDU: 80 17 00 00 [10:49:27]Write to MH i2c: E2 08 00 22 00 80 17 00 00 00 00 00 00 A2 [10:49:27]Write i2c OK [10:49:27]MH_I2C_Read... [10:49:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:49:27]Read from MH i2c: E2 [10:49:27]MH_I2C_Read... [10:49:27]Read from MH i2c: E2 FD 00 [10:49:27]MH_I2C_Read... [10:49:27]Read from MH i2c: E2 FD 00 22 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B7 [10:49:27]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:49:27]wFMCommunicate OK [10:49:27]wFMCommunicate request_size=4 [10:49:27]MH_SAM_APDU [10:49:27]CAPDU: 80 17 00 00 [10:49:27]Write to MH i2c: E2 08 00 23 00 80 17 00 00 00 00 00 00 A3 [10:49:27]Write i2c OK [10:49:27]MH_I2C_Read... [10:49:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:49:28]Read from MH i2c: E2 [10:49:28]MH_I2C_Read... [10:49:28]Read from MH i2c: E2 FD 00 [10:49:28]MH_I2C_Read... [10:49:28]Read from MH i2c: E2 FD 00 23 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1B [10:49:28]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:49:28]wFMCommunicate OK [10:49:28]wFMCommunicate request_size=4 [10:49:28]MH_SAM_APDU [10:49:28]CAPDU: 80 17 00 00 [10:49:28]Write to MH i2c: E2 08 00 24 00 80 17 00 00 00 00 00 00 A4 [10:49:28]Write i2c OK [10:49:28]MH_I2C_Read... [10:49:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [10:49:28]Read from MH i2c: E2 [10:49:28]MH_I2C_Read... [10:49:28]Read from MH i2c: E2 E1 00 [10:49:28]MH_I2C_Read... [10:49:28]Read from MH i2c: E2 E1 00 24 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 92 [10:49:28]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [10:49:28]wFMCommunicate OK [10:49:28]SAM_PROTO_GetFMData done [10:49:28]requested_item fm.sale_refund.total is exist - process it [10:49:28]requested_item fm.buy.total is exist - process it [10:49:28]requested_item shift.sale.total is exist - process it [10:49:28]SAM_PROTO_GetShiftData [10:49:28]wFMCommunicate request_size=4 [10:49:28]MH_SAM_APDU [10:49:28]CAPDU: 80 13 02 00 [10:49:28]Write to MH i2c: E2 08 00 25 00 80 13 02 00 00 00 00 00 A3 [10:49:28]Write i2c OK [10:49:28]MH_I2C_Read... [10:49:28]OFD Sender: No OFD packet to send [10:49:28]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [10:49:28]Read from MH i2c: E2 [10:49:28]MH_I2C_Read... [10:49:28]Read from MH i2c: E2 FD 00 [10:49:28]MH_I2C_Read... [10:49:28]Read from MH i2c: E2 FD 00 25 00 00 AE 04 AA 04 AA 04 6E 04 04 00 63 00 00 00 69 04 9B 00 6F 04 04 00 63 00 00 00 B1 04 03 00 BF A1 6F 70 04 03 00 40 A0 5B 72 04 03 00 7F 01 14 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 6E DB 0B 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 E4 FC EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 FC [10:49:28]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 63 00 00 00 69 04 9B 00 6F 04 04 00 63 00 00 00 B1 04 03 00 BF A1 6F 70 04 03 00 40 A0 5B 72 04 03 00 7F 01 14 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 6E DB 0B 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 E4 FC EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [10:49:28]wFMCommunicate OK [10:49:28]wFMCommunicate request_size=4 [10:49:28]MH_SAM_APDU [10:49:28]CAPDU: 80 17 00 00 [10:49:28]Write to MH i2c: E2 08 00 26 00 80 17 00 00 00 00 00 00 A6 [10:49:28]Write i2c OK [10:49:28]MH_I2C_Read... [10:49:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:49:29]Read from MH i2c: E2 [10:49:29]MH_I2C_Read... [10:49:29]Read from MH i2c: E2 FD 00 [10:49:29]MH_I2C_Read... [10:49:29]Read from MH i2c: E2 FD 00 26 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 C8 [10:49: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 [10:49:29]wFMCommunicate OK [10:49:29]wFMCommunicate request_size=4 [10:49:29]MH_SAM_APDU [10:49:29]CAPDU: 80 17 00 00 [10:49:29]Write to MH i2c: E2 08 00 27 00 80 17 00 00 00 00 00 00 A7 [10:49:29]Write i2c OK [10:49:29]MH_I2C_Read... [10:49:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:49:29]Read from MH i2c: E2 [10:49:29]MH_I2C_Read... [10:49:29]Read from MH i2c: E2 FD 00 [10:49:29]MH_I2C_Read... [10:49:29]Read from MH i2c: E2 FD 00 27 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 5E [10:49: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 [10:49:29]wFMCommunicate OK [10:49:29]wFMCommunicate request_size=4 [10:49:29]MH_SAM_APDU [10:49:29]CAPDU: 80 17 00 00 [10:49:29]Write to MH i2c: E2 08 00 28 00 80 17 00 00 00 00 00 00 A8 [10:49:29]Write i2c OK [10:49:29]MH_I2C_Read... [10:49:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:49:29]Read from MH i2c: E2 [10:49:29]MH_I2C_Read... [10:49:29]Read from MH i2c: E2 FD 00 [10:49:29]MH_I2C_Read... [10:49:29]Read from MH i2c: E2 FD 00 28 00 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 1A [10:49:29]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [10:49:29]wFMCommunicate OK [10:49:29]wFMCommunicate request_size=4 [10:49:29]MH_SAM_APDU [10:49:29]CAPDU: 80 17 00 00 [10:49:29]Write to MH i2c: E2 08 00 29 00 80 17 00 00 00 00 00 00 A9 [10:49:29]Write i2c OK [10:49:29]MH_I2C_Read... [10:49:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [10:49:29]Read from MH i2c: E2 [10:49:29]MH_I2C_Read... [10:49:29]Read from MH i2c: E2 CB 00 [10:49:29]MH_I2C_Read... [10:49:29]Read from MH i2c: E2 CB 00 29 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 92 [10:49:29]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [10:49:29]wFMCommunicate OK [10:49:29]SAM_PROTO_GetShiftData done [10:49:29]requested_item shift.sale.total_cash is exist - process it [10:49:29]requested_item shift.sale_refund.total is exist - process it [10:49:29]requested_item shift.sale_refund.total_cash is exist - process it [10:49:29]requested_item shift.buy.total is exist - process it [10:49:29]requested_item shift.buy.total_cash is exist - process it [10:49:29]produce_requested_data done [10:49:29]produce_requested_data return {"fm.sale.total":100957489.32,"fm.sale_refund.total":549779.00,"fm.buy.total":0.00,"shift.sale.total":73159.03,"shift.sale.total_cash":60048.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [10:49:29]process_action_free get_value [10:49:29]json_value_free [10:49:29]json_value_free done [10:49:29]process_json_proto returns [10:49:29]Send response to host [10:49:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":100957489.32,"fm.sale_refund.total":549779.00,"fm.buy.total":0.00,"shift.sale.total":73159.03,"shift.sale.total_cash":60048.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [10:49:29]free response buf [10:49:29]execute_script done [10:49:29]execute_script returns [10:49:29]free content buf [10:49:29]Sock 9.Close socket [10:49:29]Sock 9.Thread stoped [10:49:30]accept exits with 7 [10:49:30]New connection [10:49:30]New thread 3066854756 created [10:49:30]Thread 3066711396 joined [10:49:30]Waiting for new connection... [10:49:30] Sock 7.Parse request [10:49:30]Sock 7.Check first char [10:49:30]Sock 7.First char is OK [10:49:30]request: POST /json_proto HTTP/1.0 [10:49:30]Method: POST [10:49:30]URL: /json_proto [10:49:30]Method is POST - this is cgi request [10:49:30]url: /json_proto [10:49:30]query_string will be loaded in cgi processing [10:49:30]execute_cgi json_proto POST (null) [10:49:30]execute_cgi path=json_proto method=POST [10:49:30]POST find Content-Length [10:49:30]Host: 172.17.56.4:8080 [10:49:30]Content-Length: 144 [10:49:30]Content-Type: application/json [10:49:30] [10:49:30]POST finish read [10:49:30]Found Content-Length = 144 [10:49:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [10:49:30]execute_script... [10:49:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [10:49:30]POST & json_proto [10:49:30]process_json_proto [10:49:30]json parsed OK: [10:49:30]protocol is kg_v1.0 [10:49:30]action value=print_doc [10:49:30]process_action print_doc [10:49:30]process_action_free print_doc [10:49:30]json_value_free [10:49:30]json_value_free done [10:49:30]process_json_proto returns [10:49:30]Send response to host [10:49:30]{"protocol":"kg_v1.0","response":{"error":1000,"error_desc":"Open file error(LoadLastDocumentFromArchive)"}} [10:49:30]free response buf [10:49:30]execute_script done [10:49:30]execute_script returns [10:49:30]free content buf [10:49:30]Sock 7.Close socket [10:49:30]Sock 7.Thread stoped [10:49:33]accept exits with 9 [10:49:33]New connection [10:49:33]New thread 3066711396 created [10:49:33]Thread 3066854756 joined [10:49:33]Waiting for new connection... [10:49:33] Sock 9.Parse request [10:49:33]Sock 9.Check first char [10:49:33]Sock 9.First char is OK [10:49:33]request: POST /json_proto HTTP/1.0 [10:49:33]Method: POST [10:49:33]URL: /json_proto [10:49:33]Method is POST - this is cgi request [10:49:33]url: /json_proto [10:49:33]query_string will be loaded in cgi processing [10:49:33]execute_cgi json_proto POST (null) [10:49:33]execute_cgi path=json_proto method=POST [10:49:33]POST find Content-Length [10:49:33]Host: 172.17.56.4:8080 [10:49:33]Content-Length: 215 [10:49:33]Content-Type: application/json [10:49:33] [10:49:33]POST finish read [10:49:33]Found Content-Length = 215 [10:49:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:33]execute_script... [10:49:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:33]POST & json_proto [10:49:33]process_json_proto [10:49:33]json parsed OK: [10:49:33]protocol is kg_v1.0 [10:49:33]action value=get_value [10:49:33]process_action get_value [10:49:33]cmd_get_value [10:49:33]process_action get_value done [10:49:33]requested_data is exist [10:49:33]produce_requested_data [10:49:33]requested_item kkm.sn is exist - process it [10:49:33]requested_item kkm.ver is exist - process it [10:49:33]requested_item fm.sn is exist - process it [10:49:33]wFMCommunicate request_size=4 [10:49:33]MH_SAM_APDU [10:49:33]CAPDU: 80 11 00 00 [10:49:33]Write to MH i2c: E2 08 00 2A 00 80 11 00 00 00 00 00 00 A4 [10:49:33]Write i2c OK [10:49:33]MH_I2C_Read... [10:49:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:33]Read from MH i2c: E2 [10:49:33]MH_I2C_Read... [10:49:33]Read from MH i2c: E2 17 00 [10:49:33]MH_I2C_Read... [10:49:33]Read from MH i2c: E2 17 00 2A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FA [10:49:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:49:33]wFMCommunicate OK [10:49:33]requested_item fd.num is exist - process it [10:49:33]SAM_PROTO_GetFieldsCounters [10:49:33]wFMCommunicate request_size=4 [10:49:33]MH_SAM_APDU [10:49:33]CAPDU: 80 13 00 00 [10:49:33]Write to MH i2c: E2 08 00 2B 00 80 13 00 00 00 00 00 00 A7 [10:49:33]Write i2c OK [10:49:33]MH_I2C_Read... [10:49:33]OFD Sender: No OFD packet to send [10:49:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:49:33]Read from MH i2c: E2 [10:49:33]MH_I2C_Read... [10:49:33]Read from MH i2c: E2 62 00 [10:49:33]MH_I2C_Read... [10:49:33]Read from MH i2c: E2 62 00 2B 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6A 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [10:49: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6A 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:49:33]wFMCommunicate OK [10:49:33]SAM_PROTO_GetFieldsCounters done [10:49:33]requested_item shift.num is exist - process it [10:49:33]requested_item shift.opened is exist - process it [10:49:33]req_shift_opened [10:49:33]FM_GetShiftState [10:49:33]SAM_PROTO_GetShiftState [10:49:33]wFMCommunicate request_size=4 [10:49:33]MH_SAM_APDU [10:49:33]CAPDU: 80 13 01 00 [10:49:33]Write to MH i2c: E2 08 00 2C 00 80 13 01 00 00 00 00 00 A9 [10:49:33]Write i2c OK [10:49:33]MH_I2C_Read... [10:49:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:33]Read from MH i2c: E2 [10:49:33]MH_I2C_Read... [10:49:33]Read from MH i2c: E2 0E 00 [10:49:33]MH_I2C_Read... [10:49:33]Read from MH i2c: E2 0E 00 2C 00 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 82 [10:49:33]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:49:33]wFMCommunicate OK [10:49:33]SAM_PROTO_GetShiftState done [10:49:33]FM_GetShiftState done [10:49:33]req_shift_opened done [10:49:33]requested_item shift.open_date is exist - process it [10:49:33]req_shift_open_date [10:49:33]req_shift_open_date done [10:49:33]produce_requested_data done [10:49:33]produce_requested_data return {"kkm.sn":"0300000160","kkm.ver":"001","fm.sn":"0000000000874718","fd.num":165226,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [10:49:33]process_action_free get_value [10:49:33]json_value_free [10:49:33]json_value_free done [10:49:33]process_json_proto returns [10:49:33]Send response to host [10:49:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000160","kkm.ver":"001","fm.sn":"0000000000874718","fd.num":165226,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [10:49:33]free response buf [10:49:33]execute_script done [10:49:33]execute_script returns [10:49:33]free content buf [10:49:33]Sock 9.Close socket [10:49:33]Sock 9.Thread stoped [10:49:33]accept exits with 8 [10:49:33]New connection [10:49:33]New thread 3066854756 created [10:49:33]Thread 3066711396 joined [10:49:33]Waiting for new connection... [10:49:33] Sock 8.Parse request [10:49:33]Sock 8.Check first char [10:49:33]Sock 8.First char is OK [10:49:33]request: POST /json_proto HTTP/1.0 [10:49:33]Method: POST [10:49:33]URL: /json_proto [10:49:33]Method is POST - this is cgi request [10:49:33]url: /json_proto [10:49:33]query_string will be loaded in cgi processing [10:49:33]execute_cgi json_proto POST (null) [10:49:33]execute_cgi path=json_proto method=POST [10:49:33]POST find Content-Length [10:49:33]Host: 172.17.56.4:8080 [10:49:33]Content-Length: 331 [10:49:33]Content-Type: application/json [10:49:33] [10:49:33]POST finish read [10:49:33]Found Content-Length = 331 [10:49:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [10:49:33]execute_script... [10:49:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [10:49:33]POST & json_proto [10:49:33]process_json_proto [10:49:33]json parsed OK: [10:49:33]protocol is kg_v1.0 [10:49:33]action value=get_value [10:49:33]process_action get_value [10:49:33]cmd_get_value [10:49:33]process_action get_value done [10:49:33]requested_data is exist [10:49:33]produce_requested_data [10:49:33]requested_item fm.sale.total is exist - process it [10:49:33]SAM_PROTO_GetFMData [10:49:33]wFMCommunicate request_size=4 [10:49:33]MH_SAM_APDU [10:49:33]CAPDU: 80 13 03 00 [10:49:33]Write to MH i2c: E2 08 00 2D 00 80 13 03 00 00 00 00 00 AC [10:49:33]Write i2c OK [10:49:33]MH_I2C_Read... [10:49:34]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [10:49:34]Read from MH i2c: E2 [10:49:34]MH_I2C_Read... [10:49:34]Read from MH i2c: E2 FD 00 [10:49:34]MH_I2C_Read... [10:49:34]Read from MH i2c: E2 FD 00 2D 00 00 C4 04 85 04 C0 04 6E 04 04 00 E7 81 02 00 69 04 A3 00 6F 04 04 00 D9 80 02 00 B1 04 05 00 44 E7 C0 59 02 70 04 05 00 9D 9E 5B 37 02 72 04 04 00 A7 48 65 22 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 F7 7E ED 3F 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 E2 99 53 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 0E 01 00 00 B1 04 04 00 6C E5 46 03 70 04 04 00 6C E5 46 03 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 23 19 59 EF 03 09 00 90 00 66 [10:49:34]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 E7 81 02 00 69 04 A3 00 6F 04 04 00 D9 80 02 00 B1 04 05 00 44 E7 C0 59 02 70 04 05 00 9D 9E 5B 37 02 72 04 04 00 A7 48 65 22 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 F7 7E ED 3F 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 E2 99 53 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 0E 01 00 00 B1 04 04 00 6C E5 46 03 70 04 04 00 6C E5 46 03 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 23 19 59 EF 03 09 00 90 00 [10:49:34]wFMCommunicate OK [10:49:34]wFMCommunicate request_size=4 [10:49:34]MH_SAM_APDU [10:49:34]CAPDU: 80 17 00 00 [10:49:34]Write to MH i2c: E2 08 00 2E 00 80 17 00 00 00 00 00 00 AE [10:49:34]Write i2c OK [10:49:34]MH_I2C_Read... [10:49:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:49:34]Read from MH i2c: E2 [10:49:34]MH_I2C_Read... [10:49:34]Read from MH i2c: E2 FD 00 [10:49:34]MH_I2C_Read... [10:49:34]Read from MH i2c: E2 FD 00 2E 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B1 6C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 88 [10:49:34]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B1 6C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:49:34]wFMCommunicate OK [10:49:34]wFMCommunicate request_size=4 [10:49:34]MH_SAM_APDU [10:49:34]CAPDU: 80 17 00 00 [10:49:34]Write to MH i2c: E2 08 00 2F 00 80 17 00 00 00 00 00 00 AF [10:49:34]Write i2c OK [10:49:34]MH_I2C_Read... [10:49:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:49:34]Read from MH i2c: E2 [10:49:34]MH_I2C_Read... [10:49:34]Read from MH i2c: E2 FD 00 [10:49:34]MH_I2C_Read... [10:49:34]Read from MH i2c: E2 FD 00 2F 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C4 [10:49:34]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:49:34]wFMCommunicate OK [10:49:34]wFMCommunicate request_size=4 [10:49:34]MH_SAM_APDU [10:49:34]CAPDU: 80 17 00 00 [10:49:34]Write to MH i2c: E2 08 00 30 00 80 17 00 00 00 00 00 00 B0 [10:49:35]Write i2c OK [10:49:35]MH_I2C_Read... [10:49:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:49:35]Read from MH i2c: E2 [10:49:35]MH_I2C_Read... [10:49:35]Read from MH i2c: E2 FD 00 [10:49:35]MH_I2C_Read... [10:49:35]Read from MH i2c: E2 FD 00 30 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 28 [10:49:35]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:49:35]wFMCommunicate OK [10:49:35]wFMCommunicate request_size=4 [10:49:35]MH_SAM_APDU [10:49:35]CAPDU: 80 17 00 00 [10:49:35]Write to MH i2c: E2 08 00 31 00 80 17 00 00 00 00 00 00 B1 [10:49:35]Write i2c OK [10:49:35]MH_I2C_Read... [10:49:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [10:49:35]Read from MH i2c: E2 [10:49:35]MH_I2C_Read... [10:49:35]Read from MH i2c: E2 E1 00 [10:49:35]MH_I2C_Read... [10:49:35]Read from MH i2c: E2 E1 00 31 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9F [10:49:35]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [10:49:35]wFMCommunicate OK [10:49:35]SAM_PROTO_GetFMData done [10:49:35]requested_item fm.sale_refund.total is exist - process it [10:49:35]requested_item fm.buy.total is exist - process it [10:49:35]requested_item shift.sale.total is exist - process it [10:49:35]SAM_PROTO_GetShiftData [10:49:35]wFMCommunicate request_size=4 [10:49:35]MH_SAM_APDU [10:49:35]CAPDU: 80 13 02 00 [10:49:35]Write to MH i2c: E2 08 00 32 00 80 13 02 00 00 00 00 00 B0 [10:49:35]Write i2c OK [10:49:35]MH_I2C_Read... [10:49:36]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [10:49:36]Read from MH i2c: E2 [10:49:36]MH_I2C_Read... [10:49:36]Read from MH i2c: E2 FD 00 [10:49:36]MH_I2C_Read... [10:49:36]Read from MH i2c: E2 FD 00 32 00 00 AE 04 AA 04 AA 04 6E 04 04 00 63 00 00 00 69 04 9B 00 6F 04 04 00 63 00 00 00 B1 04 03 00 BF A1 6F 70 04 03 00 40 A0 5B 72 04 03 00 7F 01 14 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 6E DB 0B 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 E4 FC EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 09 [10:49:36]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 63 00 00 00 69 04 9B 00 6F 04 04 00 63 00 00 00 B1 04 03 00 BF A1 6F 70 04 03 00 40 A0 5B 72 04 03 00 7F 01 14 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 6E DB 0B 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 E4 FC EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [10:49:36]wFMCommunicate OK [10:49:36]wFMCommunicate request_size=4 [10:49:36]MH_SAM_APDU [10:49:36]CAPDU: 80 17 00 00 [10:49:36]Write to MH i2c: E2 08 00 33 00 80 17 00 00 00 00 00 00 B3 [10:49:36]Write i2c OK [10:49:36]MH_I2C_Read... [10:49:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:49:36]Read from MH i2c: E2 [10:49:36]MH_I2C_Read... [10:49:36]Read from MH i2c: E2 FD 00 [10:49:36]MH_I2C_Read... [10:49:36]Read from MH i2c: E2 FD 00 33 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 D5 [10:49:36]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [10:49:36]wFMCommunicate OK [10:49:36]wFMCommunicate request_size=4 [10:49:36]MH_SAM_APDU [10:49:36]CAPDU: 80 17 00 00 [10:49:36]Write to MH i2c: E2 08 00 34 00 80 17 00 00 00 00 00 00 B4 [10:49:36]Write i2c OK [10:49:36]MH_I2C_Read... [10:49:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:49:36]Read from MH i2c: E2 [10:49:36]MH_I2C_Read... [10:49:36]Read from MH i2c: E2 FD 00 [10:49:36]MH_I2C_Read... [10:49:36]Read from MH i2c: E2 FD 00 34 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 6B [10:49:37]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [10:49:37]wFMCommunicate OK [10:49:37]wFMCommunicate request_size=4 [10:49:37]MH_SAM_APDU [10:49:37]CAPDU: 80 17 00 00 [10:49:37]Write to MH i2c: E2 08 00 35 00 80 17 00 00 00 00 00 00 B5 [10:49:37]Write i2c OK [10:49:37]MH_I2C_Read... [10:49:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:49:37]Read from MH i2c: E2 [10:49:37]MH_I2C_Read... [10:49:37]Read from MH i2c: E2 FD 00 [10:49:37]MH_I2C_Read... [10:49:37]Read from MH i2c: E2 FD 00 35 00 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 27 [10:49:37]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [10:49:37]wFMCommunicate OK [10:49:37]wFMCommunicate request_size=4 [10:49:37]MH_SAM_APDU [10:49:37]CAPDU: 80 17 00 00 [10:49:37]Write to MH i2c: E2 08 00 36 00 80 17 00 00 00 00 00 00 B6 [10:49:37]Write i2c OK [10:49:37]MH_I2C_Read... [10:49:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [10:49:37]Read from MH i2c: E2 [10:49:37]MH_I2C_Read... [10:49:37]Read from MH i2c: E2 CB 00 [10:49:37]MH_I2C_Read... [10:49:37]Read from MH i2c: E2 CB 00 36 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 9F [10:49:37]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [10:49:37]wFMCommunicate OK [10:49:37]SAM_PROTO_GetShiftData done [10:49:37]requested_item shift.sale.total_cash is exist - process it [10:49:37]requested_item shift.sale_refund.total is exist - process it [10:49:37]requested_item shift.sale_refund.total_cash is exist - process it [10:49:37]requested_item shift.buy.total is exist - process it [10:49:37]requested_item shift.buy.total_cash is exist - process it [10:49:37]produce_requested_data done [10:49:37]produce_requested_data return {"fm.sale.total":100957489.32,"fm.sale_refund.total":549779.00,"fm.buy.total":0.00,"shift.sale.total":73159.03,"shift.sale.total_cash":60048.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [10:49:37]process_action_free get_value [10:49:37]json_value_free [10:49:37]json_value_free done [10:49:37]process_json_proto returns [10:49:37]Send response to host [10:49:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":100957489.32,"fm.sale_refund.total":549779.00,"fm.buy.total":0.00,"shift.sale.total":73159.03,"shift.sale.total_cash":60048.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [10:49:37]free response buf [10:49:37]execute_script done [10:49:37]execute_script returns [10:49:37]free content buf [10:49:37]Sock 8.Close socket [10:49:37]Sock 8.Thread stoped [10:49:38]OFD Sender: No OFD packet to send [10:49:43]OFD Sender: No OFD packet to send [10:49:48]OFD Sender: No OFD packet to send [10:49:53]OFD Sender: No OFD packet to send [10:49:58]OFD Sender: No OFD packet to send [10:50:03]OFD Sender: No OFD packet to send [10:50:08]OFD Sender: No OFD packet to send [10:50:13]OFD Sender: No OFD packet to send [10:50:18]OFD Sender: No OFD packet to send [10:50:23]OFD Sender: No OFD packet to send [10:50:28]OFD Sender: No OFD packet to send [10:50:33]OFD Sender: No OFD packet to send [10:50:38]OFD Sender: No OFD packet to send [10:50:43]OFD Sender: No OFD packet to send [10:50:48]OFD Sender: No OFD packet to send [10:50:53]OFD Sender: No OFD packet to send [10:50:58]OFD Sender: No OFD packet to send [10:51:03]OFD Sender: No OFD packet to send [10:51:08]OFD Sender: No OFD packet to send [10:51:13]OFD Sender: No OFD packet to send [10:51:18]OFD Sender: No OFD packet to send [10:51:23]OFD Sender: No OFD packet to send [10:51:28]OFD Sender: No OFD packet to send [10:51:33]OFD Sender: No OFD packet to send [10:51:38]OFD Sender: No OFD packet to send [10:51:43]OFD Sender: No OFD packet to send [10:51:48]OFD Sender: No OFD packet to send [10:51:53]OFD Sender: No OFD packet to send [10:51:58]OFD Sender: No OFD packet to send [10:52:03]OFD Sender: No OFD packet to send [10:52:08]OFD Sender: No OFD packet to send [10:52:13]OFD Sender: No OFD packet to send [10:52:18]OFD Sender: No OFD packet to send [10:52:23]OFD Sender: No OFD packet to send [10:52:28]OFD Sender: No OFD packet to send [10:52:33]OFD Sender: No OFD packet to send [10:52:38]OFD Sender: No OFD packet to send [10:52:43]OFD Sender: No OFD packet to send [10:52:48]OFD Sender: No OFD packet to send [10:52:53]OFD Sender: No OFD packet to send [10:52:56]accept exits with 9 [10:52:56]New connection [10:52:56]New thread 3066711396 created [10:52:56]Thread 3066854756 joined [10:52:56]Waiting for new connection... [10:52:56] Sock 9.Parse request [10:52:56]Sock 9.Check first char [10:52:56]Sock 9.First char is OK [10:52:56]request: POST /json_proto HTTP/1.0 [10:52:56]Method: POST [10:52:56]URL: /json_proto [10:52:56]Method is POST - this is cgi request [10:52:56]url: /json_proto [10:52:56]query_string will be loaded in cgi processing [10:52:56]execute_cgi json_proto POST (null) [10:52:56]execute_cgi path=json_proto method=POST [10:52:56]POST find Content-Length [10:52:56]Host: 172.17.56.4:8080 [10:52:56]Content-Length: 677 [10:52:56]Content-Type: application/json [10:52:56] [10:52:56]POST finish read [10:52:56]Found Content-Length = 677 [10:52:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459330", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.390, "sum" : 420.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 420.00, "total" : 420.00, "payments": [ { "type": 0, "sum" : 420.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:56]execute_script... [10:52:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459330", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.390, "sum" : 420.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 420.00, "total" : 420.00, "payments": [ { "type": 0, "sum" : 420.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:56]POST & json_proto [10:52:56]process_json_proto [10:52:56]json parsed OK: [10:52:56]protocol is kg_v1.0 [10:52:56]action value=close_receipt [10:52:56]process_action close_receipt [10:52:56]cmd_close_receipt [10:52:56]MH_GetDate [10:52:56]Write to MH i2c: F0 00 00 37 00 26 [10:52:56]Write i2c OK [10:52:56]MH_I2C_Read... [10:52:56]Read from MH i2c: F0 [10:52:56]MH_I2C_Read... [10:52:56]Read from MH i2c: F0 09 00 [10:52:56]MH_I2C_Read... [10:52:56]Read from MH i2c: F0 09 00 37 00 00 88 FF 94 66 C9 DC B2 64 6B [10:52:56]GetLastDocTimeStamp 97 [10:52:56]current date 1721040776 [10:52:56]FM_GetShiftState [10:52:56]SAM_PROTO_GetShiftState [10:52:56]wFMCommunicate request_size=4 [10:52:56]MH_SAM_APDU [10:52:56]CAPDU: 80 13 01 00 [10:52:56]Write to MH i2c: E2 08 00 38 00 80 13 01 00 00 00 00 00 B5 [10:52:56]Write i2c OK [10:52:56]MH_I2C_Read... [10:52:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:56]Read from MH i2c: E2 [10:52:56]MH_I2C_Read... [10:52:56]Read from MH i2c: E2 0E 00 [10:52:56]MH_I2C_Read... [10:52:56]Read from MH i2c: E2 0E 00 38 00 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 8E [10:52:56]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:52:56]wFMCommunicate OK [10:52:56]SAM_PROTO_GetShiftState done [10:52:56]FM_GetShiftState done [10:52:56]opened in 1721003876 [10:52:56]opened+sec_in_day 1721090276 [10:52:56]quantity*price = 42046 [10:52:56]sum+1 = 42047 [10:52:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 420.00 Внесено: 420.00 СДАЧА: 0.00 НСП 1% : 3.72 НДС 12% : 44.65 Наличными: 420.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 100 15.07.2024 10:52 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165227 ФПД: 123582444022651 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T105256&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165227&fm=123582444022651&tin=02508201610067®Number=0000000000090829&sum=42000 [10:52:57]StoreToDocumentArchive [10:52:57]shift 448 fd 165227 [10:52:57]save to /storage/0448/doc_00165227 [10:52:57]save last doc name /storage/0448/doc_00165227 to /storage/kkm_last_doc_name [10:52:57]save OK [10:52:57]Clear old archive folders... [10:52:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:52:57]tlvbuf is 01825A90 [10:52:57]SAM_PROTO_ClearQueue [10:52:57]wFMCommunicate request_size=4 [10:52:57]MH_SAM_APDU [10:52:57]CAPDU: 80 09 00 00 [10:52:57]Write to MH i2c: E2 08 00 45 00 80 09 00 00 00 00 00 00 B7 [10:52:57]Write i2c OK [10:52:57]MH_I2C_Read... [10:52:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:52:57]Read from MH i2c: E2 [10:52:57]MH_I2C_Read... [10:52:57]Read from MH i2c: E2 03 00 [10:52:57]MH_I2C_Read... [10:52:57]Read from MH i2c: E2 03 00 45 00 00 90 00 B9 [10:52:57]RAPDU: 90 00 [10:52:57]wFMCommunicate OK [10:52:57]SAM_PROTO_ClearQueue done [10:52:57]KKMCreateOFDPacket [10:52:57]OFDProtocolAddRootSTLVToBuf [10:52:57]FM_MakeSignedData [10:52:57]FM_MakeSignedData [10:52:57]SAM_PROTO_SignData [10:52:57]wFMCommunicate request_size=4 [10:52:57]MH_SAM_APDU [10:52:57]CAPDU: 80 0D 01 02 [10:52:57]Write to MH i2c: E2 08 00 46 00 80 0D 01 02 00 00 00 00 BF [10:52:57]Write i2c OK [10:52:57]MH_I2C_Read... [10:52:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:52:57]Read from MH i2c: E2 [10:52:57]MH_I2C_Read... [10:52:57]Read from MH i2c: E2 03 00 [10:52:57]MH_I2C_Read... [10:52:57]Read from MH i2c: E2 03 00 46 00 00 90 00 BA [10:52:57]RAPDU: 90 00 [10:52:57]wFMCommunicate OK [10:52:57]wFMCommunicate request_size=255 [10:52:57]MH_SAM_APDU [10:52: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 F6 18 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 3E A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 88 FF 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6B 85 02 00 35 04 06 00 70 [10:52:57]Write to MH i2c: E2 02 01 47 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 18 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 3E A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 88 FF 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6B 85 02 00 35 04 06 00 70 00 00 F3 [10:52:57]Write i2c OK [10:52:57]MH_I2C_Read... [10:52:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:57]Read from MH i2c: E2 [10:52:57]MH_I2C_Read... [10:52:57]Read from MH i2c: E2 03 00 [10:52:57]MH_I2C_Read... [10:52:57]Read from MH i2c: E2 03 00 47 00 00 90 00 BB [10:52:57]RAPDU: 90 00 [10:52:57]wFMCommunicate OK [10:52:57]wFMCommunicate request_size=10 [10:52:57]MH_SAM_APDU [10:52:57]CAPDU: 80 0D 02 02 05 65 C7 AD 2B 7B [10:52:57]Write to MH i2c: E2 0D 00 48 00 80 0D 02 02 05 00 65 C7 AD 2B 7B 00 00 4B [10:52:57]Write i2c OK [10:52:57]MH_I2C_Read... [10:52:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:57]Read from MH i2c: E2 [10:52:57]MH_I2C_Read... [10:52:57]Read from MH i2c: E2 03 00 [10:52:57]MH_I2C_Read... [10:52:57]Read from MH i2c: E2 03 00 48 00 00 90 00 BC [10:52:57]RAPDU: 90 00 [10:52:57]wFMCommunicate OK [10:52:57]wFMCommunicate request_size=4 [10:52:57]MH_SAM_APDU [10:52:57]CAPDU: 80 0D 03 02 [10:52:57]Write to MH i2c: E2 08 00 49 00 80 0D 03 02 00 00 00 00 C4 [10:52:57]Write i2c OK [10:52:57]MH_I2C_Read... [10:52:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:52:57]Read from MH i2c: E2 [10:52:57]MH_I2C_Read... [10:52:57]Read from MH i2c: E2 0B 00 [10:52:57]MH_I2C_Read... [10:52:57]Read from MH i2c: E2 0B 00 49 00 00 04 04 AF 67 E6 7E 6B FE 90 00 B0 [10:52:57]RAPDU: 04 04 AF 67 E6 7E 6B FE 90 00 [10:52:57]wFMCommunicate OK [10:52:57]SAM_PROTO_SignData done [10:52:57]FM_MakeSignedData done [10:52:57]CreateOFDProtocolMessage [10:52:57]wFMCommunicate request_size=4 [10:52:57]MH_SAM_APDU [10:52:57]CAPDU: 80 11 00 00 [10:52:57]Write to MH i2c: E2 08 00 4A 00 80 11 00 00 00 00 00 00 C4 [10:52:57]Write i2c OK [10:52:57]MH_I2C_Read... [10:52:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:57]Read from MH i2c: E2 [10:52:57]MH_I2C_Read... [10:52:57]Read from MH i2c: E2 17 00 [10:52:57]MH_I2C_Read... [10:52:57]Read from MH i2c: E2 17 00 4A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1A [10:52:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:52:57]wFMCommunicate OK [10:52:57]CreateOFDProtocolMessage done [10:52:57]OFDSenderStorePacket 165227 [10:52:57]StoreOFDPacket docnum=165227 [10:52:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 09 C6 07 01 C3 D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 F6 18 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 3E A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 88 FF 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6B 85 02 00 35 04 06 00 70 65 C7 AD 2B 7B 04 04 AF 67 E6 7E 6B FE [10:52:57]CheckFolder [10:52:57]dirname=/storage/ofd_packets [10:52:57]CheckFolder done [10:52:57]ProducePacketName [10:52:57]name=ofd_packets/00165227 [10:52:57]NVStorageSaveData ofd_packets/00165227 [10:52:57]File name is /storage/ofd_packets/00165227 [10:52:57]Write 301 bytes [10:52:57]NVStorageSaveData done [10:52:57]OFDSenderStorePacket done [10:52:57]KKMCreateOFDPacket done [10:52:57]NVStorageSaveData kkm_last_timestamp [10:52:57]File name is /storage/kkm_last_timestamp [10:52:57]Write 4 bytes [10:52:57]NVStorageSaveData done [10:52:57]OFD Sender: Processing packet 165227 [packets to send 106, broken 105] [10:52:57]ProducePacketName [10:52:57]name=ofd_packets/00165227 [10:52:57]OFD Sender: To server: pG, [10:52:57]CommunicateWithHost lk.salyk.kg:30040 [10:52:57]ConnectInit lk.salyk.kg [10:52:57]ExternCall_PrintAddStr [10:52:57]wPrintStart [10:52:57]Write to MH i2c: 01 00 00 4B 00 4B [10:52:57]Write i2c OK [10:52:57]MH_I2C_Read... [10:52:57]Read from MH i2c: 01 [10:52:57]MH_I2C_Read... [10:52:57]Read from MH i2c: 01 07 00 [10:52:57]MH_I2C_Read... [10:52:57]Read from MH i2c: 01 07 00 4B 00 00 00 00 00 00 FF 0F 60 [10:52:57]RasterBufferAndPrint [10:52:57]line Счет N : (1)459330 [10:52:57]line ИНН: 02508201610067 [10:52:57]line Контрольно-Кассовый Чек [10:52:57]line ПРОДАЖА [10:52:57]line ТРК (МРК, ГНК) : 12 [10:52:57]line Товар: 2710124130 [10:52:57]line Аи-92-К-5 [10:52:57]line 6.390 * 65.80 [10:52:57]line = 420.46 [10:52:57]line НДС 12% НСП 1% [10:52:57]line > о реализуемом товаре [10:52:57]line ОКРУГЛЕНИЕ: -0.46 [10:52:57]line ИТОГО: 420.00 [10:52:57]line Внесено: 420.00 [10:52:57]line СДАЧА: 0.00 [10:52:57]line НСП 1% : 3.72 [10:52:57]line НДС 12% : 44.65 [10:52:57]line Наличными: 420.00 [10:52:57]line Безнал.: 0.00 [10:52:57]line Место: АЗС № 72 "Партнер Нефть" [10:52:57]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:52:57]line СНО: Общий режим [10:52:57]line Чек 100 15.07.2024 10:52 [10:52:57]line Смена: 448 ФФД: 1.0 [10:52:57]line ЗНМ: 0300000160 [10:52:57]line РНМ: 0000000000090829 [10:52:57]line Версия ККМ: 001 [10:52:57]line ФМ: 0000000000874718 [10:52:57]line ФД: 165227 [10:52:57]line ФПД: 123582444022651 [10:52:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T105256&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165227&fm=123582444022651&tin=02508201610067®Number=0000000000090829&sum=42000 [10:52:57]written 0, free lines is 4095 [10:52:58]Connected sock=11 [10:52:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 09 C6 07 01 C3 D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 F6 18 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 3E A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 88 FF 94 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6B 85 02 00 35 04 06 00 70 65 C7 AD 2B 7B 04 04 AF 67 E6 7E 6B FE [10:52:58]Write to MH i2c: 01 00 00 75 00 75 [10:52:58]Write i2c OK [10:52:58]MH_I2C_Read... [10:52:58]Read from MH i2c: 01 [10:52:58]MH_I2C_Read... [10:52:58]Read from MH i2c: 01 07 00 [10:52:58]MH_I2C_Read... [10:52:58]Read from MH i2c: 01 07 00 75 00 00 00 00 00 00 FA 0C 82 [10:52:58]RasterBufferAndPrint [10:52:58]line [10:52:58]line [10:52:58]line [10:52:58]line [10:52:58]line [10:52:58]written 0, free lines is 3328 [10:52:58]MH_Cut [10:52:58]Write to MH i2c: D1 01 00 7C 00 01 4E [10:52:58]Write i2c OK [10:52:58]MH_I2C_Read... [10:52:58]Read from MH i2c: D1 [10:52:58]MH_I2C_Read... [10:52:58]Read from MH i2c: D1 01 00 [10:52:58]MH_I2C_Read... [10:52:58]Read from MH i2c: D1 01 00 7C 00 00 4D [10:52:58]Write to MH i2c: 01 00 00 7D 00 7D [10:52:58]Write i2c OK [10:52:58]MH_I2C_Read... [10:52:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 D7 CC 47 00 6F 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 6B 85 02 00 F4 03 04 00 13 A6 94 66 B6 04 01 00 00 BE 09 35 A9 5C 9A 3A 8D [10:52:58]CommunicateWithHost err = 0 [10:52:58]CheckOFDResponse [10:52:58]1017 (14) - 77093643461234 [10:52:58]1041 (16) - 0000000000874718 [10:52:58]1040 (4) - 165227 [10:52:58]1012 (4) - 15.07.2024 04:31 [10:52:58]1206 (1) - 0 [10:52:58]OFD Sender: Remove packet 165227 [10:52:58]ProducePacketName [10:52:58]name=ofd_packets/00165227 [10:52:58]NVStorageDeleteData [10:52:59]OFD Sender: No OFD packet to send [10:52:59]*** Cut start [10:52:59]*** Partial cut [10:52:59]*** CUTSNS_PIN = 1 [10:52:59]*** CUTSNS_PIN = 0 [10:52:59]*** Brake cut motor [10:52:59]Read from MH i2c: 01 [10:52:59]MH_I2C_Read... [10:52:59]*** Stop cut motor [10:52:59]*** Cut end [10:52:59]Read from MH i2c: 01 07 00 [10:52:59]MH_I2C_Read... [10:52:59]Read from MH i2c: 01 07 00 7D 00 00 00 00 00 00 FF 0F 92 [10:52:59]process_action close_receipt done [10:52:59]requested_data is exist [10:52:59]produce_requested_data [10:52:59]requested_item fm.sn is exist - process it [10:52:59]wFMCommunicate request_size=4 [10:52:59]MH_SAM_APDU [10:52:59]CAPDU: 80 11 00 00 [10:52:59]Write to MH i2c: E2 08 00 7E 00 80 11 00 00 00 00 00 00 F8 [10:52:59]Write i2c OK [10:52:59]MH_I2C_Read... [10:52:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:59]Read from MH i2c: E2 [10:52:59]MH_I2C_Read... [10:52:59]Read from MH i2c: E2 17 00 [10:52:59]MH_I2C_Read... [10:52:59]Read from MH i2c: E2 17 00 7E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4E [10:52:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:52:59]wFMCommunicate OK [10:52:59]requested_item fd.num is exist - process it [10:52:59]SAM_PROTO_GetFieldsCounters [10:52:59]wFMCommunicate request_size=4 [10:52:59]MH_SAM_APDU [10:52:59]CAPDU: 80 13 00 00 [10:52:59]Write to MH i2c: E2 08 00 7F 00 80 13 00 00 00 00 00 00 FB [10:52:59]Write i2c OK [10:52:59]MH_I2C_Read... [10:52:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:52:59]Read from MH i2c: E2 [10:52:59]MH_I2C_Read... [10:52:59]Read from MH i2c: E2 62 00 [10:52:59]MH_I2C_Read... [10:52:59]Read from MH i2c: E2 62 00 7F 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6B 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [10:52: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6B 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:52:59]wFMCommunicate OK [10:52:59]SAM_PROTO_GetFieldsCounters done [10:52:59]requested_item shift.num is exist - process it [10:52:59]requested_item shift.opened is exist - process it [10:52:59]req_shift_opened [10:52:59]FM_GetShiftState [10:52:59]SAM_PROTO_GetShiftState [10:52:59]wFMCommunicate request_size=4 [10:52:59]MH_SAM_APDU [10:52:59]CAPDU: 80 13 01 00 [10:52:59]Write to MH i2c: E2 08 00 80 00 80 13 01 00 00 00 00 00 FD [10:52:59]Write i2c OK [10:52:59]MH_I2C_Read... [10:52:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:59]Read from MH i2c: E2 [10:52:59]MH_I2C_Read... [10:52:59]Read from MH i2c: E2 0E 00 [10:52:59]MH_I2C_Read... [10:52:59]Read from MH i2c: E2 0E 00 80 00 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 D6 [10:52:59]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:52:59]wFMCommunicate OK [10:52:59]SAM_PROTO_GetShiftState done [10:52:59]FM_GetShiftState done [10:52:59]req_shift_opened done [10:52:59]requested_item shift.open_date is exist - process it [10:52:59]req_shift_open_date [10:52:59]req_shift_open_date done [10:52:59]produce_requested_data done [10:52:59]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165227,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [10:52:59]process_action_free close_receipt [10:52:59]json_value_free [10:52:59]json_value_free done [10:52:59]process_json_proto returns [10:52:59]Send response to host [10:52:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165227,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [10:52:59]free response buf [10:52:59]execute_script done [10:52:59]execute_script returns [10:52:59]free content buf [10:52:59]Sock 9.Close socket [10:52:59]Sock 9.Thread stoped [10:53:04]OFD Sender: No OFD packet to send [10:53:09]OFD Sender: No OFD packet to send [10:53:14]OFD Sender: No OFD packet to send [10:53:19]OFD Sender: No OFD packet to send [10:53:24]OFD Sender: No OFD packet to send [10:53:29]OFD Sender: No OFD packet to send [10:53:34]OFD Sender: No OFD packet to send [10:53:39]OFD Sender: No OFD packet to send [10:53:44]OFD Sender: No OFD packet to send [10:53:49]OFD Sender: No OFD packet to send [10:53:54]OFD Sender: No OFD packet to send [10:53:59]OFD Sender: No OFD packet to send [10:54:04]OFD Sender: No OFD packet to send [10:54:09]OFD Sender: No OFD packet to send [10:54:14]OFD Sender: No OFD packet to send [10:54:19]OFD Sender: No OFD packet to send [10:54:24]OFD Sender: No OFD packet to send [10:54:29]OFD Sender: No OFD packet to send [10:54:34]OFD Sender: No OFD packet to send [10:54:39]OFD Sender: No OFD packet to send [10:54:44]OFD Sender: No OFD packet to send [10:54:49]OFD Sender: No OFD packet to send [10:54:54]OFD Sender: No OFD packet to send [10:54:59]OFD Sender: No OFD packet to send [10:55:04]OFD Sender: No OFD packet to send [10:55:09]OFD Sender: No OFD packet to send [10:55:14]OFD Sender: No OFD packet to send [10:55:19]OFD Sender: No OFD packet to send [10:55:24]OFD Sender: No OFD packet to send [10:55:29]OFD Sender: No OFD packet to send [10:55:34]OFD Sender: No OFD packet to send [10:55:39]OFD Sender: No OFD packet to send [10:55:44]OFD Sender: No OFD packet to send [10:55:49]OFD Sender: No OFD packet to send [10:55:54]OFD Sender: No OFD packet to send [10:55:59]OFD Sender: No OFD packet to send [10:56:04]OFD Sender: No OFD packet to send [10:56:09]OFD Sender: No OFD packet to send [10:56:14]OFD Sender: No OFD packet to send [10:56:19]OFD Sender: No OFD packet to send [10:56:24]OFD Sender: No OFD packet to send [10:56:29]OFD Sender: No OFD packet to send [10:56:34]OFD Sender: No OFD packet to send [10:56:39]OFD Sender: No OFD packet to send [10:56:44]OFD Sender: No OFD packet to send [10:56:49]OFD Sender: No OFD packet to send [10:56:54]OFD Sender: No OFD packet to send [10:56:59]OFD Sender: No OFD packet to send [10:57:04]OFD Sender: No OFD packet to send [10:57:09]OFD Sender: No OFD packet to send [10:57:14]OFD Sender: No OFD packet to send [10:57:19]OFD Sender: No OFD packet to send [10:57:24]OFD Sender: No OFD packet to send [10:57:29]OFD Sender: No OFD packet to send [10:57:34]OFD Sender: No OFD packet to send [10:57:39]OFD Sender: No OFD packet to send [10:57:44]OFD Sender: No OFD packet to send [10:57:45]accept exits with 8 [10:57:45]New connection [10:57:45]New thread 3066854756 created [10:57:45]Thread 3066711396 joined [10:57:45]Waiting for new connection... [10:57:45] Sock 8.Parse request [10:57:45]Sock 8.Check first char [10:57:45]Sock 8.First char is OK [10:57:45]request: POST /json_proto HTTP/1.0 [10:57:45]Method: POST [10:57:45]URL: /json_proto [10:57:45]Method is POST - this is cgi request [10:57:45]url: /json_proto [10:57:45]query_string will be loaded in cgi processing [10:57:45]execute_cgi json_proto POST (null) [10:57:45]execute_cgi path=json_proto method=POST [10:57:45]POST find Content-Length [10:57:45]Host: 172.17.56.4:8080 [10:57:45]Content-Length: 677 [10:57:45]Content-Type: application/json [10:57:45] [10:57:45]POST finish read [10:57:45]Found Content-Length = 677 [10:57:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459331", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:45]execute_script... [10:57: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)459331", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:45]POST & json_proto [10:57:45]process_json_proto [10:57:45]json parsed OK: [10:57:45]protocol is kg_v1.0 [10:57:45]action value=close_receipt [10:57:45]process_action close_receipt [10:57:45]cmd_close_receipt [10:57:45]MH_GetDate [10:57:45]Write to MH i2c: F0 00 00 81 00 70 [10:57:45]Write i2c OK [10:57:45]MH_I2C_Read... [10:57:45]Read from MH i2c: F0 [10:57:45]MH_I2C_Read... [10:57:45]Read from MH i2c: F0 09 00 [10:57:45]MH_I2C_Read... [10:57:45]Read from MH i2c: F0 09 00 81 00 00 AA 00 95 66 C9 DC B2 64 D9 [10:57:45]GetLastDocTimeStamp 1721040776 [10:57:45]current date 1721041066 [10:57:45]FM_GetShiftState [10:57:45]SAM_PROTO_GetShiftState [10:57:45]wFMCommunicate request_size=4 [10:57:45]MH_SAM_APDU [10:57:45]CAPDU: 80 13 01 00 [10:57:45]Write to MH i2c: E2 08 00 82 00 80 13 01 00 00 00 00 00 FF [10:57:45]Write i2c OK [10:57:45]MH_I2C_Read... [10:57:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:45]Read from MH i2c: E2 [10:57:45]MH_I2C_Read... [10:57:45]Read from MH i2c: E2 0E 00 [10:57:45]MH_I2C_Read... [10:57:45]Read from MH i2c: E2 0E 00 82 00 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 D8 [10:57:45]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:57:45]wFMCommunicate OK [10:57:45]SAM_PROTO_GetShiftState done [10:57:45]FM_GetShiftState done [10:57:45]opened in 1721003876 [10:57:45]opened+sec_in_day 1721090276 [10:57:45]quantity*price = 50008 [10:57:45]sum+1 = 50009 [10:57:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 101 15.07.2024 10:57 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165228 ФПД: 86890322804757 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T105746&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165228&fm=86890322804757&tin=02508201610067®Number=0000000000090829&sum=50000 [10:57:46]StoreToDocumentArchive [10:57:46]shift 448 fd 165228 [10:57:46]save to /storage/0448/doc_00165228 [10:57:46]save last doc name /storage/0448/doc_00165228 to /storage/kkm_last_doc_name [10:57:46]save OK [10:57:46]Clear old archive folders... [10:57:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:57:46]tlvbuf is 01815A90 [10:57:46]SAM_PROTO_ClearQueue [10:57:46]wFMCommunicate request_size=4 [10:57:46]MH_SAM_APDU [10:57:46]CAPDU: 80 09 00 00 [10:57:46]Write to MH i2c: E2 08 00 8F 00 80 09 00 00 00 00 00 00 01 [10:57:46]Write i2c OK [10:57:46]MH_I2C_Read... [10:57:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:57:46]Read from MH i2c: E2 [10:57:46]MH_I2C_Read... [10:57:46]Read from MH i2c: E2 03 00 [10:57:46]MH_I2C_Read... [10:57:46]Read from MH i2c: E2 03 00 8F 00 00 90 00 03 [10:57:46]RAPDU: 90 00 [10:57:46]wFMCommunicate OK [10:57:46]SAM_PROTO_ClearQueue done [10:57:46]KKMCreateOFDPacket [10:57:46]OFDProtocolAddRootSTLVToBuf [10:57:46]FM_MakeSignedData [10:57:46]FM_MakeSignedData [10:57:46]SAM_PROTO_SignData [10:57:46]wFMCommunicate request_size=4 [10:57:46]MH_SAM_APDU [10:57:46]CAPDU: 80 0D 01 02 [10:57:46]Write to MH i2c: E2 08 00 90 00 80 0D 01 02 00 00 00 00 09 [10:57:46]Write i2c OK [10:57:46]MH_I2C_Read... [10:57:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:57:46]Read from MH i2c: E2 [10:57:46]MH_I2C_Read... [10:57:46]Read from MH i2c: E2 03 00 [10:57:46]MH_I2C_Read... [10:57:46]Read from MH i2c: E2 03 00 90 00 00 90 00 04 [10:57:46]RAPDU: 90 00 [10:57:46]wFMCommunicate OK [10:57:46]wFMCommunicate request_size=255 [10:57:46]MH_SAM_APDU [10:57: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 AA 00 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6C 85 02 00 35 04 06 00 4F [10:57:46]Write to MH i2c: E2 02 01 91 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 AA 00 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6C 85 02 00 35 04 06 00 4F 00 00 8F [10:57:46]Write i2c OK [10:57:46]MH_I2C_Read... [10:57:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:47]Read from MH i2c: E2 [10:57:47]MH_I2C_Read... [10:57:47]Read from MH i2c: E2 03 00 [10:57:47]MH_I2C_Read... [10:57:47]Read from MH i2c: E2 03 00 91 00 00 90 00 05 [10:57:47]RAPDU: 90 00 [10:57:47]wFMCommunicate OK [10:57:47]wFMCommunicate request_size=10 [10:57:47]MH_SAM_APDU [10:57:47]CAPDU: 80 0D 02 02 05 06 BA D3 40 15 [10:57:47]Write to MH i2c: E2 0D 00 92 00 80 0D 02 02 05 00 06 BA D3 40 15 00 00 FE [10:57:47]Write i2c OK [10:57:47]MH_I2C_Read... [10:57:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:47]Read from MH i2c: E2 [10:57:47]MH_I2C_Read... [10:57:47]Read from MH i2c: E2 03 00 [10:57:47]MH_I2C_Read... [10:57:47]Read from MH i2c: E2 03 00 92 00 00 90 00 06 [10:57:47]RAPDU: 90 00 [10:57:47]wFMCommunicate OK [10:57:47]wFMCommunicate request_size=4 [10:57:47]MH_SAM_APDU [10:57:47]CAPDU: 80 0D 03 02 [10:57:47]Write to MH i2c: E2 08 00 93 00 80 0D 03 02 00 00 00 00 0E [10:57:47]Write i2c OK [10:57:47]MH_I2C_Read... [10:57:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:57:47]Read from MH i2c: E2 [10:57:47]MH_I2C_Read... [10:57:47]Read from MH i2c: E2 0B 00 [10:57:47]MH_I2C_Read... [10:57:47]Read from MH i2c: E2 0B 00 93 00 00 7C 4F C6 FD 21 F0 88 41 90 00 77 [10:57:47]RAPDU: 7C 4F C6 FD 21 F0 88 41 90 00 [10:57:47]wFMCommunicate OK [10:57:47]SAM_PROTO_SignData done [10:57:47]FM_MakeSignedData done [10:57:47]CreateOFDProtocolMessage [10:57:47]wFMCommunicate request_size=4 [10:57:47]MH_SAM_APDU [10:57:47]CAPDU: 80 11 00 00 [10:57:47]Write to MH i2c: E2 08 00 94 00 80 11 00 00 00 00 00 00 0E [10:57:47]Write i2c OK [10:57:47]MH_I2C_Read... [10:57:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:47]Read from MH i2c: E2 [10:57:47]MH_I2C_Read... [10:57:47]Read from MH i2c: E2 17 00 [10:57:47]MH_I2C_Read... [10:57:47]Read from MH i2c: E2 17 00 94 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 64 [10:57:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:57:47]wFMCommunicate OK [10:57:47]CreateOFDProtocolMessage done [10:57:47]OFDSenderStorePacket 165228 [10:57:47]StoreOFDPacket docnum=165228 [10:57:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 1C 19 07 01 D3 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 AA 00 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6C 85 02 00 35 04 06 00 4F 06 BA D3 40 15 7C 4F C6 FD 21 F0 88 41 [10:57:47]CheckFolder [10:57:47]dirname=/storage/ofd_packets [10:57:47]CheckFolder done [10:57:47]ProducePacketName [10:57:47]name=ofd_packets/00165228 [10:57:47]NVStorageSaveData ofd_packets/00165228 [10:57:47]File name is /storage/ofd_packets/00165228 [10:57:47]Write 301 bytes [10:57:47]NVStorageSaveData done [10:57:47]OFDSenderStorePacket done [10:57:47]KKMCreateOFDPacket done [10:57:47]NVStorageSaveData kkm_last_timestamp [10:57:47]File name is /storage/kkm_last_timestamp [10:57:47]Write 4 bytes [10:57:47]NVStorageSaveData done [10:57:47]OFD Sender: Processing packet 165228 [packets to send 106, broken 105] [10:57:47]ProducePacketName [10:57:47]name=ofd_packets/00165228 [10:57:47]OFD Sender: To server: pG, [10:57:47]CommunicateWithHost lk.salyk.kg:30040 [10:57:47]ConnectInit lk.salyk.kg [10:57:47]ExternCall_PrintAddStr [10:57:47]wPrintStart [10:57:47]Write to MH i2c: 01 00 00 95 00 95 [10:57:47]Write i2c OK [10:57:47]MH_I2C_Read... [10:57:47]Read from MH i2c: 01 [10:57:47]MH_I2C_Read... [10:57:47]Read from MH i2c: 01 07 00 [10:57:47]MH_I2C_Read... [10:57:47]Read from MH i2c: 01 07 00 95 00 00 00 00 00 00 FF 0F AA [10:57:47]RasterBufferAndPrint [10:57:47]line Счет N : (1)459331 [10:57:47]line ИНН: 02508201610067 [10:57:47]line Контрольно-Кассовый Чек [10:57:47]line ПРОДАЖА [10:57:47]line ТРК (МРК, ГНК) : 22 [10:57:47]line Товар: 2710124130 [10:57:47]line Аи-92-К-5 [10:57:47]line 7.600 * 65.80 [10:57:47]line = 500.08 [10:57:47]line НДС 12% НСП 1% [10:57:47]line > о реализуемом товаре [10:57:47]line ОКРУГЛЕНИЕ: -0.08 [10:57:47]line ИТОГО: 500.00 [10:57:47]line Внесено: 500.00 [10:57:47]line СДАЧА: 0.00 [10:57:47]line НСП 1% : 4.42 [10:57:47]line НДС 12% : 53.11 [10:57:47]line Наличными: 500.00 [10:57:47]line Безнал.: 0.00 [10:57:47]line Место: АЗС № 72 "Партнер Нефть" [10:57:47]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:57:47]line СНО: Общий режим [10:57:47]line Чек 101 15.07.2024 10:57 [10:57:47]line Смена: 448 ФФД: 1.0 [10:57:47]line ЗНМ: 0300000160 [10:57:47]line РНМ: 0000000000090829 [10:57:47]line Версия ККМ: 001 [10:57:47]line ФМ: 0000000000874718 [10:57:47]line ФД: 165228 [10:57:47]line ФПД: 86890322804757 [10:57:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T105746&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165228&fm=86890322804757&tin=02508201610067®Number=0000000000090829&sum=50000 [10:57:47]Connected sock=11 [10:57:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 1C 19 07 01 D3 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 AA 00 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6C 85 02 00 35 04 06 00 4F 06 BA D3 40 15 7C 4F C6 FD 21 F0 88 41 [10:57:47]written 0, free lines is 4095 [10:57:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 10 26 47 00 51 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 6C 85 02 00 F4 03 04 00 34 A7 94 66 B6 04 01 00 00 84 BD BB 45 68 05 9F FC [10:57:47]CommunicateWithHost err = 0 [10:57:47]CheckOFDResponse [10:57:47]1017 (14) - 77093643461234 [10:57:47]1041 (16) - 0000000000874718 [10:57:47]1040 (4) - 165228 [10:57:47]1012 (4) - 15.07.2024 04:36 [10:57:47]1206 (1) - 0 [10:57:47]OFD Sender: Remove packet 165228 [10:57:47]ProducePacketName [10:57:47]name=ofd_packets/00165228 [10:57:47]NVStorageDeleteData [10:57:47]Write to MH i2c: 01 00 00 BF 00 BF [10:57:47]Write i2c OK [10:57:47]MH_I2C_Read... [10:57:47]Read from MH i2c: 01 [10:57:47]MH_I2C_Read... [10:57:47]Read from MH i2c: 01 07 00 [10:57:47]MH_I2C_Read... [10:57:47]Read from MH i2c: 01 07 00 BF 00 00 00 00 00 00 F3 0C C5 [10:57:47]RasterBufferAndPrint [10:57:47]line [10:57:47]line [10:57:47]line [10:57:47]line [10:57:47]line [10:57:47]written 0, free lines is 3321 [10:57:48]MH_Cut [10:57:48]Write to MH i2c: D1 01 00 C6 00 01 98 [10:57:48]Write i2c OK [10:57:48]MH_I2C_Read... [10:57:48]Read from MH i2c: D1 [10:57:48]MH_I2C_Read... [10:57:48]Read from MH i2c: D1 01 00 [10:57:48]MH_I2C_Read... [10:57:48]Read from MH i2c: D1 01 00 C6 00 00 97 [10:57:48]Write to MH i2c: 01 00 00 C7 00 C7 [10:57:48]Write i2c OK [10:57:48]MH_I2C_Read... [10:57:48]OFD Sender: No OFD packet to send [10:57:48]*** Cut start [10:57:48]*** Partial cut [10:57:48]*** CUTSNS_PIN = 1 [10:57:48]*** CUTSNS_PIN = 0 [10:57:48]*** Brake cut motor [10:57:49]Read from MH i2c: 01 [10:57:49]MH_I2C_Read... [10:57:49]*** Stop cut motor [10:57:49]*** Cut end [10:57:49]Read from MH i2c: 01 07 00 [10:57:49]MH_I2C_Read... [10:57:49]Read from MH i2c: 01 07 00 C7 00 00 00 00 00 00 FF 0F DC [10:57:49]process_action close_receipt done [10:57:49]requested_data is exist [10:57:49]produce_requested_data [10:57:49]requested_item fm.sn is exist - process it [10:57:49]wFMCommunicate request_size=4 [10:57:49]MH_SAM_APDU [10:57:49]CAPDU: 80 11 00 00 [10:57:49]Write to MH i2c: E2 08 00 C8 00 80 11 00 00 00 00 00 00 42 [10:57:49]Write i2c OK [10:57:49]MH_I2C_Read... [10:57:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:49]Read from MH i2c: E2 [10:57:49]MH_I2C_Read... [10:57:49]Read from MH i2c: E2 17 00 [10:57:49]MH_I2C_Read... [10:57:49]Read from MH i2c: E2 17 00 C8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 98 [10:57:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:57:49]wFMCommunicate OK [10:57:49]requested_item fd.num is exist - process it [10:57:49]SAM_PROTO_GetFieldsCounters [10:57:49]wFMCommunicate request_size=4 [10:57:49]MH_SAM_APDU [10:57:49]CAPDU: 80 13 00 00 [10:57:49]Write to MH i2c: E2 08 00 C9 00 80 13 00 00 00 00 00 00 45 [10:57:49]Write i2c OK [10:57:49]MH_I2C_Read... [10:57:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:57:49]Read from MH i2c: E2 [10:57:49]MH_I2C_Read... [10:57:49]Read from MH i2c: E2 62 00 [10:57:49]MH_I2C_Read... [10:57:49]Read from MH i2c: E2 62 00 C9 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6C 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [10:57: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6C 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:57:49]wFMCommunicate OK [10:57:49]SAM_PROTO_GetFieldsCounters done [10:57:49]requested_item shift.num is exist - process it [10:57:49]requested_item shift.opened is exist - process it [10:57:49]req_shift_opened [10:57:49]FM_GetShiftState [10:57:49]SAM_PROTO_GetShiftState [10:57:49]wFMCommunicate request_size=4 [10:57:49]MH_SAM_APDU [10:57:49]CAPDU: 80 13 01 00 [10:57:49]Write to MH i2c: E2 08 00 CA 00 80 13 01 00 00 00 00 00 47 [10:57:49]Write i2c OK [10:57:49]MH_I2C_Read... [10:57:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:49]Read from MH i2c: E2 [10:57:49]MH_I2C_Read... [10:57:49]Read from MH i2c: E2 0E 00 [10:57:49]MH_I2C_Read... [10:57:49]Read from MH i2c: E2 0E 00 CA 00 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 20 [10:57:49]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:57:49]wFMCommunicate OK [10:57:49]SAM_PROTO_GetShiftState done [10:57:49]FM_GetShiftState done [10:57:49]req_shift_opened done [10:57:49]requested_item shift.open_date is exist - process it [10:57:49]req_shift_open_date [10:57:49]req_shift_open_date done [10:57:49]produce_requested_data done [10:57:49]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165228,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [10:57:49]process_action_free close_receipt [10:57:49]json_value_free [10:57:49]json_value_free done [10:57:49]process_json_proto returns [10:57:49]Send response to host [10:57:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165228,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [10:57:49]free response buf [10:57:49]execute_script done [10:57:49]execute_script returns [10:57:49]free content buf [10:57:49]Sock 8.Close socket [10:57:49]Sock 8.Thread stoped [10:57:53]OFD Sender: No OFD packet to send [10:57:58]OFD Sender: No OFD packet to send [10:58:03]OFD Sender: No OFD packet to send [10:58:08]OFD Sender: No OFD packet to send [10:58:13]OFD Sender: No OFD packet to send [10:58:18]OFD Sender: No OFD packet to send [10:58:23]OFD Sender: No OFD packet to send [10:58:28]OFD Sender: No OFD packet to send [10:58:33]OFD Sender: No OFD packet to send [10:58:38]OFD Sender: No OFD packet to send [10:58:43]OFD Sender: No OFD packet to send [10:58:48]OFD Sender: No OFD packet to send [10:58:53]OFD Sender: No OFD packet to send [10:58:58]OFD Sender: No OFD packet to send [10:59:03]OFD Sender: No OFD packet to send [10:59:08]OFD Sender: No OFD packet to send [10:59:13]OFD Sender: No OFD packet to send [10:59:18]OFD Sender: No OFD packet to send [10:59:23]OFD Sender: No OFD packet to send [10:59:28]OFD Sender: No OFD packet to send [10:59:33]OFD Sender: No OFD packet to send [10:59:38]OFD Sender: No OFD packet to send [10:59:43]OFD Sender: No OFD packet to send [10:59:48]OFD Sender: No OFD packet to send [10:59:53]OFD Sender: No OFD packet to send [10:59:55]accept exits with 9 [10:59:55]New connection [10:59:55]New thread 3066711396 created [10:59:55]Thread 3066854756 joined [10:59:55]Waiting for new connection... [10:59:55] Sock 9.Parse request [10:59:55]Sock 9.Check first char [10:59:55]Sock 9.First char is OK [10:59:55]request: POST /json_proto HTTP/1.0 [10:59:55]Method: POST [10:59:55]URL: /json_proto [10:59:55]Method is POST - this is cgi request [10:59:55]url: /json_proto [10:59:55]query_string will be loaded in cgi processing [10:59:55]execute_cgi json_proto POST (null) [10:59:55]execute_cgi path=json_proto method=POST [10:59:55]POST find Content-Length [10:59:55]Host: 172.17.56.4:8080 [10:59:55]Content-Length: 677 [10:59:55]Content-Type: application/json [10:59:55] [10:59:55]POST finish read [10:59:55]Found Content-Length = 677 [10:59:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459332", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:55]execute_script... [10:59: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)459332", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:55]POST & json_proto [10:59:55]process_json_proto [10:59:55]json parsed OK: [10:59:55]protocol is kg_v1.0 [10:59:55]action value=close_receipt [10:59:55]process_action close_receipt [10:59:55]cmd_close_receipt [10:59:55]MH_GetDate [10:59:55]Write to MH i2c: F0 00 00 CB 00 BA [10:59:55]Write i2c OK [10:59:55]MH_I2C_Read... [10:59:55]Read from MH i2c: F0 [10:59:55]MH_I2C_Read... [10:59:55]Read from MH i2c: F0 09 00 [10:59:55]MH_I2C_Read... [10:59:55]Read from MH i2c: F0 09 00 CB 00 00 2C 01 95 66 C9 DC B2 64 A6 [10:59:55]GetLastDocTimeStamp 1721041066 [10:59:55]current date 1721041196 [10:59:55]FM_GetShiftState [10:59:55]SAM_PROTO_GetShiftState [10:59:55]wFMCommunicate request_size=4 [10:59:55]MH_SAM_APDU [10:59:55]CAPDU: 80 13 01 00 [10:59:55]Write to MH i2c: E2 08 00 CC 00 80 13 01 00 00 00 00 00 49 [10:59:55]Write i2c OK [10:59:55]MH_I2C_Read... [10:59:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:55]Read from MH i2c: E2 [10:59:55]MH_I2C_Read... [10:59:55]Read from MH i2c: E2 0E 00 [10:59:55]MH_I2C_Read... [10:59:55]Read from MH i2c: E2 0E 00 CC 00 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 22 [10:59:55]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:59:55]wFMCommunicate OK [10:59:55]SAM_PROTO_GetShiftState done [10:59:55]FM_GetShiftState done [10:59:55]opened in 1721003876 [10:59:55]opened+sec_in_day 1721090276 [10:59:55]quantity*price = 20003 [10:59:55]sum+1 = 20004 [10:59:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 102 15.07.2024 10:59 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165229 ФПД: 125665580964821 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T105956&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165229&fm=125665580964821&tin=02508201610067®Number=0000000000090829&sum=20000 [10:59:56]StoreToDocumentArchive [10:59:56]shift 448 fd 165229 [10:59:56]save to /storage/0448/doc_00165229 [10:59:56]save last doc name /storage/0448/doc_00165229 to /storage/kkm_last_doc_name [10:59:56]save OK [10:59:56]Clear old archive folders... [10:59:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:59:56]tlvbuf is 0184FF70 [10:59:56]SAM_PROTO_ClearQueue [10:59:56]wFMCommunicate request_size=4 [10:59:56]MH_SAM_APDU [10:59:56]CAPDU: 80 09 00 00 [10:59:56]Write to MH i2c: E2 08 00 D9 00 80 09 00 00 00 00 00 00 4B [10:59:56]Write i2c OK [10:59:56]MH_I2C_Read... [10:59:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:59:56]Read from MH i2c: E2 [10:59:56]MH_I2C_Read... [10:59:56]Read from MH i2c: E2 03 00 [10:59:56]MH_I2C_Read... [10:59:56]Read from MH i2c: E2 03 00 D9 00 00 90 00 4D [10:59:56]RAPDU: 90 00 [10:59:56]wFMCommunicate OK [10:59:56]SAM_PROTO_ClearQueue done [10:59:56]KKMCreateOFDPacket [10:59:56]OFDProtocolAddRootSTLVToBuf [10:59:56]FM_MakeSignedData [10:59:56]FM_MakeSignedData [10:59:56]SAM_PROTO_SignData [10:59:56]wFMCommunicate request_size=4 [10:59:56]MH_SAM_APDU [10:59:56]CAPDU: 80 0D 01 02 [10:59:56]Write to MH i2c: E2 08 00 DA 00 80 0D 01 02 00 00 00 00 53 [10:59:56]Write i2c OK [10:59:56]MH_I2C_Read... [10:59:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:59:56]Read from MH i2c: E2 [10:59:56]MH_I2C_Read... [10:59:56]Read from MH i2c: E2 03 00 [10:59:56]MH_I2C_Read... [10:59:56]Read from MH i2c: E2 03 00 DA 00 00 90 00 4E [10:59:56]RAPDU: 90 00 [10:59:56]wFMCommunicate OK [10:59:56]wFMCommunicate request_size=255 [10:59:56]MH_SAM_APDU [10:59: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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 2C 01 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6D 85 02 00 35 04 06 00 72 [10:59:56]Write to MH i2c: E2 02 01 DB 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 2C 01 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6D 85 02 00 35 04 06 00 72 00 00 22 [10:59:56]Write i2c OK [10:59:56]MH_I2C_Read... [10:59:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:57]Read from MH i2c: E2 [10:59:57]MH_I2C_Read... [10:59:57]Read from MH i2c: E2 03 00 [10:59:57]MH_I2C_Read... [10:59:57]Read from MH i2c: E2 03 00 DB 00 00 90 00 4F [10:59:57]RAPDU: 90 00 [10:59:57]wFMCommunicate OK [10:59:57]wFMCommunicate request_size=10 [10:59:57]MH_SAM_APDU [10:59:57]CAPDU: 80 0D 02 02 05 4A CC 50 5B D5 [10:59:57]Write to MH i2c: E2 0D 00 DC 00 80 0D 02 02 05 00 4A CC 50 5B D5 00 00 F6 [10:59:57]Write i2c OK [10:59:57]MH_I2C_Read... [10:59:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:57]Read from MH i2c: E2 [10:59:57]MH_I2C_Read... [10:59:57]Read from MH i2c: E2 03 00 [10:59:57]MH_I2C_Read... [10:59:57]Read from MH i2c: E2 03 00 DC 00 00 90 00 50 [10:59:57]RAPDU: 90 00 [10:59:57]wFMCommunicate OK [10:59:57]wFMCommunicate request_size=4 [10:59:57]MH_SAM_APDU [10:59:57]CAPDU: 80 0D 03 02 [10:59:57]Write to MH i2c: E2 08 00 DD 00 80 0D 03 02 00 00 00 00 58 [10:59:57]Write i2c OK [10:59:57]MH_I2C_Read... [10:59:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:59:57]Read from MH i2c: E2 [10:59:57]MH_I2C_Read... [10:59:57]Read from MH i2c: E2 0B 00 [10:59:57]MH_I2C_Read... [10:59:57]Read from MH i2c: E2 0B 00 DD 00 00 79 14 34 54 7E 30 FE 74 90 00 8E [10:59:57]RAPDU: 79 14 34 54 7E 30 FE 74 90 00 [10:59:57]wFMCommunicate OK [10:59:57]SAM_PROTO_SignData done [10:59:57]FM_MakeSignedData done [10:59:57]CreateOFDProtocolMessage [10:59:57]wFMCommunicate request_size=4 [10:59:57]MH_SAM_APDU [10:59:57]CAPDU: 80 11 00 00 [10:59:57]Write to MH i2c: E2 08 00 DE 00 80 11 00 00 00 00 00 00 58 [10:59:57]Write i2c OK [10:59:57]MH_I2C_Read... [10:59:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:57]Read from MH i2c: E2 [10:59:57]MH_I2C_Read... [10:59:57]Read from MH i2c: E2 17 00 [10:59:57]MH_I2C_Read... [10:59:57]Read from MH i2c: E2 17 00 DE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AE [10:59:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:59:57]wFMCommunicate OK [10:59:57]CreateOFDProtocolMessage done [10:59:57]OFDSenderStorePacket 165229 [10:59:57]StoreOFDPacket docnum=165229 [10:59:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 FC D7 07 01 0D FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 2C 01 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6D 85 02 00 35 04 06 00 72 4A CC 50 5B D5 79 14 34 54 7E 30 FE 74 [10:59:57]CheckFolder [10:59:57]dirname=/storage/ofd_packets [10:59:57]CheckFolder done [10:59:57]ProducePacketName [10:59:57]name=ofd_packets/00165229 [10:59:57]NVStorageSaveData ofd_packets/00165229 [10:59:57]File name is /storage/ofd_packets/00165229 [10:59:57]Write 301 bytes [10:59:57]NVStorageSaveData done [10:59:57]OFDSenderStorePacket done [10:59:57]KKMCreateOFDPacket done [10:59:57]NVStorageSaveData kkm_last_timestamp [10:59:57]File name is /storage/kkm_last_timestamp [10:59:57]Write 4 bytes [10:59:57]NVStorageSaveData done [10:59:57]ExternCall_PrintAddStr [10:59:57]wPrintStart [10:59:57]Write to MH i2c: 01 00 00 DF 00 DF [10:59:57]Write i2c OK [10:59:57]MH_I2C_Read... [10:59:57]Read from MH i2c: 01 [10:59:57]MH_I2C_Read... [10:59:57]Read from MH i2c: 01 07 00 [10:59:57]MH_I2C_Read... [10:59:57]Read from MH i2c: 01 07 00 DF 00 00 00 00 00 00 FF 0F F4 [10:59:57]RasterBufferAndPrint [10:59:57]line Счет N : (1)459332 [10:59:57]line ИНН: 02508201610067 [10:59:57]line Контрольно-Кассовый Чек [10:59:57]line ПРОДАЖА [10:59:57]line ТРК (МРК, ГНК) : 12 [10:59:57]line Товар: 2710124130 [10:59:57]line Аи-92-К-5 [10:59:57]line 3.040 * 65.80 [10:59:57]line = 200.03 [10:59:57]line НДС 12% НСП 1% [10:59:57]line > о реализуемом товаре [10:59:57]line ОКРУГЛЕНИЕ: -0.03 [10:59:57]line ИТОГО: 200.00 [10:59:57]line Внесено: 200.00 [10:59:57]line СДАЧА: 0.00 [10:59:57]line НСП 1% : 1.77 [10:59:57]line НДС 12% : 21.24 [10:59:57]line Наличными: 200.00 [10:59:57]line Безнал.: 0.00 [10:59:57]line Место: АЗС № 72 "Партнер Нефть" [10:59:57]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [10:59:57]line СНО: Общий режим [10:59:57]line Чек 102 15.07.2024 10:59 [10:59:57]line Смена: 448 ФФД: 1.0 [10:59:57]line ЗНМ: 0300000160 [10:59:57]line РНМ: 0000000000090829 [10:59:57]line Версия ККМ: 001 [10:59:57]line ФМ: 0000000000874718 [10:59:57]line ФД: 165229 [10:59:57]line ФПД: 125665580964821 [10:59:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T105956&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165229&fm=125665580964821&tin=02508201610067®Number=0000000000090829&sum=20000 [10:59:57]written 0, free lines is 4095 [10:59:57]OFD Sender: Processing packet 165229 [packets to send 106, broken 105] [10:59:57]ProducePacketName [10:59:57]name=ofd_packets/00165229 [10:59:57]OFD Sender: To server: pG, [10:59:57]CommunicateWithHost lk.salyk.kg:30040 [10:59:57]ConnectInit lk.salyk.kg [10:59:57]Connected sock=11 [10:59: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 37 31 38 0F 01 00 00 FC D7 07 01 0D FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 2C 01 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6D 85 02 00 35 04 06 00 72 4A CC 50 5B D5 79 14 34 54 7E 30 FE 74 [10:59:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 97 EA 47 00 9D AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6D 85 02 00 F4 03 04 00 B6 A7 94 66 B6 04 01 00 00 68 C7 30 AB 31 EF FC C9 [10:59:58]CommunicateWithHost err = 0 [10:59:58]CheckOFDResponse [10:59:58]1017 (14) - 77093643461234 [10:59:58]1041 (16) - 0000000000874718 [10:59:58]1040 (4) - 165229 [10:59:58]1012 (4) - 15.07.2024 04:38 [10:59:58]1206 (1) - 0 [10:59:58]OFD Sender: Remove packet 165229 [10:59:58]ProducePacketName [10:59:58]name=ofd_packets/00165229 [10:59:58]NVStorageDeleteData [10:59:58]Write to MH i2c: 01 00 00 09 01 0A [10:59:58]Write i2c OK [10:59:58]MH_I2C_Read... [10:59:58]Read from MH i2c: 01 [10:59:58]MH_I2C_Read... [10:59:58]Read from MH i2c: 01 07 00 [10:59:58]MH_I2C_Read... [10:59:58]Read from MH i2c: 01 07 00 09 01 00 00 00 00 00 F3 0C 10 [10:59:58]RasterBufferAndPrint [10:59:58]line [10:59:58]line [10:59:58]line [10:59:58]line [10:59:58]line [10:59:58]written 0, free lines is 3322 [10:59:58]MH_Cut [10:59:58]Write to MH i2c: D1 01 00 10 01 01 E3 [10:59:58]Write i2c OK [10:59:58]MH_I2C_Read... [10:59:58]Read from MH i2c: D1 [10:59:58]MH_I2C_Read... [10:59:58]Read from MH i2c: D1 01 00 [10:59:58]MH_I2C_Read... [10:59:58]Read from MH i2c: D1 01 00 10 01 00 E2 [10:59:58]Write to MH i2c: 01 00 00 11 01 12 [10:59:58]Write i2c OK [10:59:58]MH_I2C_Read... [10:59:58]OFD Sender: No OFD packet to send [10:59:58]*** Cut start [10:59:58]*** Partial cut [10:59:58]*** CUTSNS_PIN = 1 [10:59:58]*** CUTSNS_PIN = 0 [10:59:59]*** Brake cut motor [10:59:59]Read from MH i2c: 01 [10:59:59]MH_I2C_Read... [10:59:59]*** Stop cut motor [10:59:59]*** Cut end [10:59:59]Read from MH i2c: 01 07 00 [10:59:59]MH_I2C_Read... [10:59:59]Read from MH i2c: 01 07 00 11 01 00 00 00 00 00 FF 0F 27 [10:59:59]process_action close_receipt done [10:59:59]requested_data is exist [10:59:59]produce_requested_data [10:59:59]requested_item fm.sn is exist - process it [10:59:59]wFMCommunicate request_size=4 [10:59:59]MH_SAM_APDU [10:59:59]CAPDU: 80 11 00 00 [10:59:59]Write to MH i2c: E2 08 00 12 01 80 11 00 00 00 00 00 00 8D [10:59:59]Write i2c OK [10:59:59]MH_I2C_Read... [10:59:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:59]Read from MH i2c: E2 [10:59:59]MH_I2C_Read... [10:59:59]Read from MH i2c: E2 17 00 [10:59:59]MH_I2C_Read... [10:59:59]Read from MH i2c: E2 17 00 12 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E3 [10:59:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [10:59:59]wFMCommunicate OK [10:59:59]requested_item fd.num is exist - process it [10:59:59]SAM_PROTO_GetFieldsCounters [10:59:59]wFMCommunicate request_size=4 [10:59:59]MH_SAM_APDU [10:59:59]CAPDU: 80 13 00 00 [10:59:59]Write to MH i2c: E2 08 00 13 01 80 13 00 00 00 00 00 00 90 [10:59:59]Write i2c OK [10:59:59]MH_I2C_Read... [10:59:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:59:59]Read from MH i2c: E2 [10:59:59]MH_I2C_Read... [10:59:59]Read from MH i2c: E2 62 00 [10:59:59]MH_I2C_Read... [10:59:59]Read from MH i2c: E2 62 00 13 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6D 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [10:59: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6D 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:59:59]wFMCommunicate OK [10:59:59]SAM_PROTO_GetFieldsCounters done [10:59:59]requested_item shift.num is exist - process it [10:59:59]requested_item shift.opened is exist - process it [10:59:59]req_shift_opened [10:59:59]FM_GetShiftState [10:59:59]SAM_PROTO_GetShiftState [10:59:59]wFMCommunicate request_size=4 [10:59:59]MH_SAM_APDU [10:59:59]CAPDU: 80 13 01 00 [10:59:59]Write to MH i2c: E2 08 00 14 01 80 13 01 00 00 00 00 00 92 [10:59:59]Write i2c OK [10:59:59]MH_I2C_Read... [10:59:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:59]Read from MH i2c: E2 [10:59:59]MH_I2C_Read... [10:59:59]Read from MH i2c: E2 0E 00 [10:59:59]MH_I2C_Read... [10:59:59]Read from MH i2c: E2 0E 00 14 01 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 6B [10:59:59]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [10:59:59]wFMCommunicate OK [10:59:59]SAM_PROTO_GetShiftState done [10:59:59]FM_GetShiftState done [10:59:59]req_shift_opened done [10:59:59]requested_item shift.open_date is exist - process it [10:59:59]req_shift_open_date [10:59:59]req_shift_open_date done [10:59:59]produce_requested_data done [10:59:59]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165229,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [10:59:59]process_action_free close_receipt [10:59:59]json_value_free [10:59:59]json_value_free done [10:59:59]process_json_proto returns [10:59:59]Send response to host [10:59:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165229,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [10:59:59]free response buf [10:59:59]execute_script done [10:59:59]execute_script returns [10:59:59]free content buf [10:59:59]Sock 9.Close socket [10:59:59]Sock 9.Thread stoped [11:00:03]OFD Sender: No OFD packet to send [11:00:08]OFD Sender: No OFD packet to send [11:00:13]accept exits with 8 [11:00:13]New connection [11:00:13]New thread 3066854756 created [11:00:13]Thread 3066711396 joined [11:00:13]Waiting for new connection... [11:00:13] Sock 8.Parse request [11:00:13]Sock 8.Check first char [11:00:13]Sock 8.First char is OK [11:00:13]request: POST /json_proto HTTP/1.0 [11:00:13]Method: POST [11:00:13]URL: /json_proto [11:00:13]Method is POST - this is cgi request [11:00:13]url: /json_proto [11:00:13]query_string will be loaded in cgi processing [11:00:13]execute_cgi json_proto POST (null) [11:00:13]execute_cgi path=json_proto method=POST [11:00:13]POST find Content-Length [11:00:13]Host: 172.17.56.4:8080 [11:00:13]Content-Length: 677 [11:00:13]Content-Type: application/json [11:00:13] [11:00:13]POST finish read [11:00:13]Found Content-Length = 677 [11:00:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459333", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:13]execute_script... [11:00:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459333", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:13]POST & json_proto [11:00:13]process_json_proto [11:00:13]json parsed OK: [11:00:13]protocol is kg_v1.0 [11:00:13]action value=close_receipt [11:00:13]process_action close_receipt [11:00:13]cmd_close_receipt [11:00:13]MH_GetDate [11:00:13]Write to MH i2c: F0 00 00 15 01 05 [11:00:13]Write i2c OK [11:00:13]MH_I2C_Read... [11:00:13]Read from MH i2c: F0 [11:00:13]MH_I2C_Read... [11:00:13]Read from MH i2c: F0 09 00 [11:00:13]MH_I2C_Read... [11:00:13]Read from MH i2c: F0 09 00 15 01 00 3D 01 95 66 C9 DC B2 64 02 [11:00:13]GetLastDocTimeStamp 1721041196 [11:00:13]current date 1721041213 [11:00:13]FM_GetShiftState [11:00:13]SAM_PROTO_GetShiftState [11:00:13]wFMCommunicate request_size=4 [11:00:13]MH_SAM_APDU [11:00:13]CAPDU: 80 13 01 00 [11:00:13]Write to MH i2c: E2 08 00 16 01 80 13 01 00 00 00 00 00 94 [11:00:13]Write i2c OK [11:00:13]MH_I2C_Read... [11:00:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:13]Read from MH i2c: E2 [11:00:13]MH_I2C_Read... [11:00:13]Read from MH i2c: E2 0E 00 [11:00:13]MH_I2C_Read... [11:00:13]Read from MH i2c: E2 0E 00 16 01 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 6D [11:00:13]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [11:00:13]wFMCommunicate OK [11:00:13]SAM_PROTO_GetShiftState done [11:00:13]FM_GetShiftState done [11:00:13]opened in 1721003876 [11:00:13]opened+sec_in_day 1721090276 [11:00:13]quantity*price = 30004 [11:00:13]sum+1 = 30006 [11:00:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 103 15.07.2024 11:00 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165230 ФПД: 268887953471614 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T110013&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165230&fm=268887953471614&tin=02508201610067®Number=0000000000090829&sum=30000 [11:00:14]StoreToDocumentArchive [11:00:14]shift 448 fd 165230 [11:00:14]save to /storage/0448/doc_00165230 [11:00:14]save last doc name /storage/0448/doc_00165230 to /storage/kkm_last_doc_name [11:00:14]save OK [11:00:14]Clear old archive folders... [11:00:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:00:14]tlvbuf is 01819E90 [11:00:14]SAM_PROTO_ClearQueue [11:00:14]wFMCommunicate request_size=4 [11:00:14]MH_SAM_APDU [11:00:14]CAPDU: 80 09 00 00 [11:00:14]Write to MH i2c: E2 08 00 23 01 80 09 00 00 00 00 00 00 96 [11:00:14]Write i2c OK [11:00:14]MH_I2C_Read... [11:00:14]Read from MH i2c: E2 [11:00:14]MH_I2C_Read... [11:00:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:00:14]Read from MH i2c: E2 03 00 [11:00:14]MH_I2C_Read... [11:00:14]Read from MH i2c: E2 03 00 23 01 00 90 00 98 [11:00:14]RAPDU: 90 00 [11:00:14]wFMCommunicate OK [11:00:14]SAM_PROTO_ClearQueue done [11:00:14]KKMCreateOFDPacket [11:00:14]OFDProtocolAddRootSTLVToBuf [11:00:14]FM_MakeSignedData [11:00:14]FM_MakeSignedData [11:00:14]SAM_PROTO_SignData [11:00:14]wFMCommunicate request_size=4 [11:00:14]MH_SAM_APDU [11:00:14]CAPDU: 80 0D 01 02 [11:00:14]Write to MH i2c: E2 08 00 24 01 80 0D 01 02 00 00 00 00 9E [11:00:14]Write i2c OK [11:00:14]MH_I2C_Read... [11:00:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:00:14]Read from MH i2c: E2 [11:00:14]MH_I2C_Read... [11:00:14]Read from MH i2c: E2 03 00 [11:00:14]MH_I2C_Read... [11:00:14]Read from MH i2c: E2 03 00 24 01 00 90 00 99 [11:00:14]RAPDU: 90 00 [11:00:14]wFMCommunicate OK [11:00:14]wFMCommunicate request_size=255 [11:00:14]MH_SAM_APDU [11:00:14]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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 3D 01 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6E 85 02 00 35 04 06 00 F4 [11:00:14]Write to MH i2c: E2 02 01 25 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 3D 01 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6E 85 02 00 35 04 06 00 F4 00 00 22 [11:00:14]Write i2c OK [11:00:14]MH_I2C_Read... [11:00:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:14]Read from MH i2c: E2 [11:00:14]MH_I2C_Read... [11:00:14]Read from MH i2c: E2 03 00 [11:00:14]MH_I2C_Read... [11:00:14]Read from MH i2c: E2 03 00 25 01 00 90 00 9A [11:00:14]RAPDU: 90 00 [11:00:14]wFMCommunicate OK [11:00:14]wFMCommunicate request_size=10 [11:00:14]MH_SAM_APDU [11:00:14]CAPDU: 80 0D 02 02 05 8D 5A F3 78 7E [11:00:14]Write to MH i2c: E2 0D 00 26 01 80 0D 02 02 05 00 8D 5A F3 78 7E 00 00 7B [11:00:14]Write i2c OK [11:00:14]MH_I2C_Read... [11:00:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:14]Read from MH i2c: E2 [11:00:14]MH_I2C_Read... [11:00:14]Read from MH i2c: E2 03 00 [11:00:14]MH_I2C_Read... [11:00:14]Read from MH i2c: E2 03 00 26 01 00 90 00 9B [11:00:14]RAPDU: 90 00 [11:00:14]wFMCommunicate OK [11:00:14]wFMCommunicate request_size=4 [11:00:14]MH_SAM_APDU [11:00:14]CAPDU: 80 0D 03 02 [11:00:14]Write to MH i2c: E2 08 00 27 01 80 0D 03 02 00 00 00 00 A3 [11:00:14]Write i2c OK [11:00:14]MH_I2C_Read... [11:00:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:00:14]Read from MH i2c: E2 [11:00:14]MH_I2C_Read... [11:00:14]Read from MH i2c: E2 0B 00 [11:00:14]MH_I2C_Read... [11:00:14]Read from MH i2c: E2 0B 00 27 01 00 26 A8 E8 C2 DF C7 51 92 90 00 A5 [11:00:14]RAPDU: 26 A8 E8 C2 DF C7 51 92 90 00 [11:00:14]wFMCommunicate OK [11:00:14]SAM_PROTO_SignData done [11:00:14]FM_MakeSignedData done [11:00:14]CreateOFDProtocolMessage [11:00:14]wFMCommunicate request_size=4 [11:00:14]MH_SAM_APDU [11:00:14]CAPDU: 80 11 00 00 [11:00:14]Write to MH i2c: E2 08 00 28 01 80 11 00 00 00 00 00 00 A3 [11:00:14]Write i2c OK [11:00:14]MH_I2C_Read... [11:00:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:14]Read from MH i2c: E2 [11:00:14]MH_I2C_Read... [11:00:14]Read from MH i2c: E2 17 00 [11:00:14]MH_I2C_Read... [11:00:14]Read from MH i2c: E2 17 00 28 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F9 [11:00:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:00:14]wFMCommunicate OK [11:00:14]CreateOFDProtocolMessage done [11:00:14]OFDSenderStorePacket 165230 [11:00:14]StoreOFDPacket docnum=165230 [11:00:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 55 39 07 01 DF 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 3D 01 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6E 85 02 00 35 04 06 00 F4 8D 5A F3 78 7E 26 A8 E8 C2 DF C7 51 92 [11:00:14]CheckFolder [11:00:14]dirname=/storage/ofd_packets [11:00:14]CheckFolder done [11:00:14]ProducePacketName [11:00:14]name=ofd_packets/00165230 [11:00:14]NVStorageSaveData ofd_packets/00165230 [11:00:14]File name is /storage/ofd_packets/00165230 [11:00:14]Write 301 bytes [11:00:14]NVStorageSaveData done [11:00:14]OFDSenderStorePacket done [11:00:14]KKMCreateOFDPacket done [11:00:14]NVStorageSaveData kkm_last_timestamp [11:00:14]File name is /storage/kkm_last_timestamp [11:00:14]Write 4 bytes [11:00:14]NVStorageSaveData done [11:00:14]ExternCall_PrintAddStr [11:00:14]wPrintStart [11:00:14]Write to MH i2c: 01 00 00 29 01 2A [11:00:14]Write i2c OK [11:00:14]MH_I2C_Read... [11:00:14]Read from MH i2c: 01 [11:00:14]MH_I2C_Read... [11:00:14]Read from MH i2c: 01 07 00 [11:00:14]MH_I2C_Read... [11:00:14]Read from MH i2c: 01 07 00 29 01 00 00 00 00 00 FF 0F 3F [11:00:14]RasterBufferAndPrint [11:00:14]line Счет N : (1)459333 [11:00:14]line ИНН: 02508201610067 [11:00:14]line Контрольно-Кассовый Чек [11:00:14]line ПРОДАЖА [11:00:14]line ТРК (МРК, ГНК) : 22 [11:00:14]line Товар: 2710124130 [11:00:14]line Аи-92-К-5 [11:00:14]line 4.560 * 65.80 [11:00:14]line = 300.05 [11:00:14]line НДС 12% НСП 1% [11:00:14]line > о реализуемом товаре [11:00:14]line ОКРУГЛЕНИЕ: -0.05 [11:00:14]line ИТОГО: 300.00 [11:00:14]line Внесено: 300.00 [11:00:14]line СДАЧА: 0.00 [11:00:14]line НСП 1% : 2.65 [11:00:14]line НДС 12% : 31.86 [11:00:14]line Наличными: 300.00 [11:00:14]line Безнал.: 0.00 [11:00:14]line Место: АЗС № 72 "Партнер Нефть" [11:00:14]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:00:14]line СНО: Общий режим [11:00:14]line Чек 103 15.07.2024 11:00 [11:00:14]line Смена: 448 ФФД: 1.0 [11:00:14]line ЗНМ: 0300000160 [11:00:14]line РНМ: 0000000000090829 [11:00:14]line Версия ККМ: 001 [11:00:14]line ФМ: 0000000000874718 [11:00:14]line ФД: 165230 [11:00:14]line ФПД: 268887953471614 [11:00:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T110013&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165230&fm=268887953471614&tin=02508201610067®Number=0000000000090829&sum=30000 [11:00:15]OFD Sender: Processing packet 165230 [packets to send 106, broken 105] [11:00:15]ProducePacketName [11:00:15]name=ofd_packets/00165230 [11:00:15]OFD Sender: To server: pG, [11:00:15]CommunicateWithHost lk.salyk.kg:30040 [11:00:15]ConnectInit lk.salyk.kg [11:00:15]written 0, free lines is 4095 [11:00:15]Connected sock=10 [11:00:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 55 39 07 01 DF 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 3D 01 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6E 85 02 00 35 04 06 00 F4 8D 5A F3 78 7E 26 A8 E8 C2 DF C7 51 92 [11:00:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 1F E6 47 00 F7 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 37 31 38 10 04 04 00 6E 85 02 00 F4 03 04 00 C8 A7 94 66 B6 04 01 00 00 75 77 62 16 E3 DD E1 94 [11:00:15]CommunicateWithHost err = 0 [11:00:15]CheckOFDResponse [11:00:15]1017 (14) - 77093643461234 [11:00:15]1041 (16) - 0000000000874718 [11:00:15]1040 (4) - 165230 [11:00:15]1012 (4) - 15.07.2024 04:38 [11:00:15]1206 (1) - 0 [11:00:15]OFD Sender: Remove packet 165230 [11:00:15]ProducePacketName [11:00:15]name=ofd_packets/00165230 [11:00:15]NVStorageDeleteData [11:00:15]Write to MH i2c: 01 00 00 53 01 54 [11:00:15]Write i2c OK [11:00:15]MH_I2C_Read... [11:00:15]Read from MH i2c: 01 [11:00:15]MH_I2C_Read... [11:00:15]Read from MH i2c: 01 07 00 [11:00:15]MH_I2C_Read... [11:00:15]Read from MH i2c: 01 07 00 53 01 00 00 00 00 00 F4 0C 5B [11:00:15]RasterBufferAndPrint [11:00:15]line [11:00:15]line [11:00:15]line [11:00:15]line [11:00:15]line [11:00:15]written 0, free lines is 3323 [11:00:15]MH_Cut [11:00:15]Write to MH i2c: D1 01 00 5A 01 01 2D [11:00:15]Write i2c OK [11:00:15]MH_I2C_Read... [11:00:15]Read from MH i2c: D1 [11:00:15]MH_I2C_Read... [11:00:15]Read from MH i2c: D1 01 00 [11:00:15]MH_I2C_Read... [11:00:15]Read from MH i2c: D1 01 00 5A 01 00 2C [11:00:15]Write to MH i2c: 01 00 00 5B 01 5C [11:00:15]Write i2c OK [11:00:15]MH_I2C_Read... [11:00:15]OFD Sender: No OFD packet to send [11:00:16]*** Cut start [11:00:16]*** Partial cut [11:00:16]*** CUTSNS_PIN = 1 [11:00:16]*** CUTSNS_PIN = 0 [11:00:16]*** Brake cut motor [11:00:16]Read from MH i2c: 01 [11:00:16]MH_I2C_Read... [11:00:16]*** Stop cut motor [11:00:16]*** Cut end [11:00:16]Read from MH i2c: 01 07 00 [11:00:16]MH_I2C_Read... [11:00:16]Read from MH i2c: 01 07 00 5B 01 00 00 00 00 00 FF 0F 71 [11:00:16]process_action close_receipt done [11:00:16]requested_data is exist [11:00:16]produce_requested_data [11:00:16]requested_item fm.sn is exist - process it [11:00:16]wFMCommunicate request_size=4 [11:00:16]MH_SAM_APDU [11:00:16]CAPDU: 80 11 00 00 [11:00:16]Write to MH i2c: E2 08 00 5C 01 80 11 00 00 00 00 00 00 D7 [11:00:16]Write i2c OK [11:00:16]MH_I2C_Read... [11:00:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:16]Read from MH i2c: E2 [11:00:16]MH_I2C_Read... [11:00:16]Read from MH i2c: E2 17 00 [11:00:16]MH_I2C_Read... [11:00:16]Read from MH i2c: E2 17 00 5C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2D [11:00:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:00:16]wFMCommunicate OK [11:00:16]requested_item fd.num is exist - process it [11:00:16]SAM_PROTO_GetFieldsCounters [11:00:16]wFMCommunicate request_size=4 [11:00:16]MH_SAM_APDU [11:00:16]CAPDU: 80 13 00 00 [11:00:16]Write to MH i2c: E2 08 00 5D 01 80 13 00 00 00 00 00 00 DA [11:00:16]Write i2c OK [11:00:16]MH_I2C_Read... [11:00:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:00:17]Read from MH i2c: E2 [11:00:17]MH_I2C_Read... [11:00:17]Read from MH i2c: E2 62 00 [11:00:17]MH_I2C_Read... [11:00:17]Read from MH i2c: E2 62 00 5D 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6E 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [11:00: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6E 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:00:17]wFMCommunicate OK [11:00:17]SAM_PROTO_GetFieldsCounters done [11:00:17]requested_item shift.num is exist - process it [11:00:17]requested_item shift.opened is exist - process it [11:00:17]req_shift_opened [11:00:17]FM_GetShiftState [11:00:17]SAM_PROTO_GetShiftState [11:00:17]wFMCommunicate request_size=4 [11:00:17]MH_SAM_APDU [11:00:17]CAPDU: 80 13 01 00 [11:00:17]Write to MH i2c: E2 08 00 5E 01 80 13 01 00 00 00 00 00 DC [11:00:17]Write i2c OK [11:00:17]MH_I2C_Read... [11:00:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:17]Read from MH i2c: E2 [11:00:17]MH_I2C_Read... [11:00:17]Read from MH i2c: E2 0E 00 [11:00:17]MH_I2C_Read... [11:00:17]Read from MH i2c: E2 0E 00 5E 01 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 B5 [11:00:17]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [11:00:17]wFMCommunicate OK [11:00:17]SAM_PROTO_GetShiftState done [11:00:17]FM_GetShiftState done [11:00:17]req_shift_opened done [11:00:17]requested_item shift.open_date is exist - process it [11:00:17]req_shift_open_date [11:00:17]req_shift_open_date done [11:00:17]produce_requested_data done [11:00:17]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165230,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [11:00:17]process_action_free close_receipt [11:00:17]json_value_free [11:00:17]json_value_free done [11:00:17]process_json_proto returns [11:00:17]Send response to host [11:00:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165230,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [11:00:17]free response buf [11:00:17]execute_script done [11:00:17]execute_script returns [11:00:17]free content buf [11:00:17]Sock 8.Close socket [11:00:17]Sock 8.Thread stoped [11:00:20]OFD Sender: No OFD packet to send [11:00:25]OFD Sender: No OFD packet to send [11:00:30]OFD Sender: No OFD packet to send [11:00:35]OFD Sender: No OFD packet to send [11:00:40]OFD Sender: No OFD packet to send [11:00:45]OFD Sender: No OFD packet to send [11:00:50]OFD Sender: No OFD packet to send [11:00:55]OFD Sender: No OFD packet to send [11:01:00]OFD Sender: No OFD packet to send [11:01:06]OFD Sender: No OFD packet to send [11:01:11]OFD Sender: No OFD packet to send [11:01:16]OFD Sender: No OFD packet to send [11:01:21]OFD Sender: No OFD packet to send [11:01:26]OFD Sender: No OFD packet to send [11:01:31]OFD Sender: No OFD packet to send [11:01:36]OFD Sender: No OFD packet to send [11:01:41]OFD Sender: No OFD packet to send [11:01:46]OFD Sender: No OFD packet to send [11:01:51]OFD Sender: No OFD packet to send [11:01:56]OFD Sender: No OFD packet to send [11:02:01]OFD Sender: No OFD packet to send [11:02:06]OFD Sender: No OFD packet to send [11:02:11]OFD Sender: No OFD packet to send [11:02:16]OFD Sender: No OFD packet to send [11:02:17]accept exits with 9 [11:02:17]New connection [11:02:17]New thread 3066711396 created [11:02:17]Thread 3066854756 joined [11:02:17]Waiting for new connection... [11:02:17] Sock 9.Parse request [11:02:17]Sock 9.Check first char [11:02:17]Sock 9.First char is OK [11:02:17]request: POST /json_proto HTTP/1.0 [11:02:17]Method: POST [11:02:17]URL: /json_proto [11:02:17]Method is POST - this is cgi request [11:02:17]url: /json_proto [11:02:17]query_string will be loaded in cgi processing [11:02:17]execute_cgi json_proto POST (null) [11:02:17]execute_cgi path=json_proto method=POST [11:02:17]POST find Content-Length [11:02:17]Host: 172.17.56.4:8080 [11:02:17]Content-Length: 677 [11:02:17]Content-Type: application/json [11:02:17] [11:02:17]POST finish read [11:02:17]Found Content-Length = 677 [11:02:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459334", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:17]execute_script... [11:02:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459334", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:17]POST & json_proto [11:02:17]process_json_proto [11:02:17]json parsed OK: [11:02:17]protocol is kg_v1.0 [11:02:17]action value=close_receipt [11:02:17]process_action close_receipt [11:02:17]cmd_close_receipt [11:02:17]MH_GetDate [11:02:17]Write to MH i2c: F0 00 00 5F 01 4F [11:02:17]Write i2c OK [11:02:17]MH_I2C_Read... [11:02:17]Read from MH i2c: F0 [11:02:17]MH_I2C_Read... [11:02:17]Read from MH i2c: F0 09 00 [11:02:17]MH_I2C_Read... [11:02:17]Read from MH i2c: F0 09 00 5F 01 00 B9 01 95 66 C9 DC B2 64 C8 [11:02:17]GetLastDocTimeStamp 1721041213 [11:02:17]current date 1721041337 [11:02:17]FM_GetShiftState [11:02:17]SAM_PROTO_GetShiftState [11:02:17]wFMCommunicate request_size=4 [11:02:17]MH_SAM_APDU [11:02:17]CAPDU: 80 13 01 00 [11:02:17]Write to MH i2c: E2 08 00 60 01 80 13 01 00 00 00 00 00 DE [11:02:17]Write i2c OK [11:02:17]MH_I2C_Read... [11:02:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:17]Read from MH i2c: E2 [11:02:17]MH_I2C_Read... [11:02:17]Read from MH i2c: E2 0E 00 [11:02:17]MH_I2C_Read... [11:02:17]Read from MH i2c: E2 0E 00 60 01 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 B7 [11:02:17]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [11:02:17]wFMCommunicate OK [11:02:17]SAM_PROTO_GetShiftState done [11:02:17]FM_GetShiftState done [11:02:17]opened in 1721003876 [11:02:17]opened+sec_in_day 1721090276 [11:02:17]quantity*price = 30004 [11:02:17]sum+1 = 30006 [11:02:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 104 15.07.2024 11:02 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165231 ФПД: 243154484621554 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T110217&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165231&fm=243154484621554&tin=02508201610067®Number=0000000000090829&sum=30000 [11:02:18]StoreToDocumentArchive [11:02:18]shift 448 fd 165231 [11:02:18]save to /storage/0448/doc_00165231 [11:02:18]save last doc name /storage/0448/doc_00165231 to /storage/kkm_last_doc_name [11:02:18]save OK [11:02:18]Clear old archive folders... [11:02:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:02:18]tlvbuf is 018128C0 [11:02:18]SAM_PROTO_ClearQueue [11:02:18]wFMCommunicate request_size=4 [11:02:18]MH_SAM_APDU [11:02:18]CAPDU: 80 09 00 00 [11:02:18]Write to MH i2c: E2 08 00 6D 01 80 09 00 00 00 00 00 00 E0 [11:02:18]Write i2c OK [11:02:18]MH_I2C_Read... [11:02:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:02:18]Read from MH i2c: E2 [11:02:18]MH_I2C_Read... [11:02:18]Read from MH i2c: E2 03 00 [11:02:18]MH_I2C_Read... [11:02:18]Read from MH i2c: E2 03 00 6D 01 00 90 00 E2 [11:02:18]RAPDU: 90 00 [11:02:18]wFMCommunicate OK [11:02:18]SAM_PROTO_ClearQueue done [11:02:18]KKMCreateOFDPacket [11:02:18]OFDProtocolAddRootSTLVToBuf [11:02:18]FM_MakeSignedData [11:02:18]FM_MakeSignedData [11:02:18]SAM_PROTO_SignData [11:02:18]wFMCommunicate request_size=4 [11:02:18]MH_SAM_APDU [11:02:18]CAPDU: 80 0D 01 02 [11:02:18]Write to MH i2c: E2 08 00 6E 01 80 0D 01 02 00 00 00 00 E8 [11:02:18]Write i2c OK [11:02:18]MH_I2C_Read... [11:02:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:02:18]Read from MH i2c: E2 [11:02:18]MH_I2C_Read... [11:02:18]Read from MH i2c: E2 03 00 [11:02:18]MH_I2C_Read... [11:02:18]Read from MH i2c: E2 03 00 6E 01 00 90 00 E3 [11:02:18]RAPDU: 90 00 [11:02:18]wFMCommunicate OK [11:02:18]wFMCommunicate request_size=255 [11:02:18]MH_SAM_APDU [11:02:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 B9 01 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6F 85 02 00 35 04 06 00 DD [11:02:18]Write to MH i2c: E2 02 01 6F 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 B9 01 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6F 85 02 00 35 04 06 00 DD 00 00 D3 [11:02:18]Write i2c OK [11:02:18]MH_I2C_Read... [11:02:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:18]Read from MH i2c: E2 [11:02:18]MH_I2C_Read... [11:02:18]Read from MH i2c: E2 03 00 [11:02:18]MH_I2C_Read... [11:02:18]Read from MH i2c: E2 03 00 6F 01 00 90 00 E4 [11:02:18]RAPDU: 90 00 [11:02:18]wFMCommunicate OK [11:02:18]wFMCommunicate request_size=10 [11:02:18]MH_SAM_APDU [11:02:18]CAPDU: 80 0D 02 02 05 25 D0 AE 70 F2 [11:02:18]Write to MH i2c: E2 0D 00 70 01 80 0D 02 02 05 00 25 D0 AE 70 F2 00 00 FA [11:02:18]Write i2c OK [11:02:18]MH_I2C_Read... [11:02:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:18]Read from MH i2c: E2 [11:02:18]MH_I2C_Read... [11:02:18]Read from MH i2c: E2 03 00 [11:02:18]MH_I2C_Read... [11:02:18]Read from MH i2c: E2 03 00 70 01 00 90 00 E5 [11:02:18]RAPDU: 90 00 [11:02:18]wFMCommunicate OK [11:02:18]wFMCommunicate request_size=4 [11:02:18]MH_SAM_APDU [11:02:18]CAPDU: 80 0D 03 02 [11:02:18]Write to MH i2c: E2 08 00 71 01 80 0D 03 02 00 00 00 00 ED [11:02:18]Write i2c OK [11:02:18]MH_I2C_Read... [11:02:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:02:18]Read from MH i2c: E2 [11:02:18]MH_I2C_Read... [11:02:18]Read from MH i2c: E2 0B 00 [11:02:18]MH_I2C_Read... [11:02:18]Read from MH i2c: E2 0B 00 71 01 00 8B A6 17 53 84 39 65 FB 90 00 A6 [11:02:18]RAPDU: 8B A6 17 53 84 39 65 FB 90 00 [11:02:18]wFMCommunicate OK [11:02:18]SAM_PROTO_SignData done [11:02:18]FM_MakeSignedData done [11:02:18]CreateOFDProtocolMessage [11:02:18]wFMCommunicate request_size=4 [11:02:18]MH_SAM_APDU [11:02:18]CAPDU: 80 11 00 00 [11:02:18]Write to MH i2c: E2 08 00 72 01 80 11 00 00 00 00 00 00 ED [11:02:18]Write i2c OK [11:02:18]MH_I2C_Read... [11:02:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:18]Read from MH i2c: E2 [11:02:18]MH_I2C_Read... [11:02:18]Read from MH i2c: E2 17 00 [11:02:18]MH_I2C_Read... [11:02:18]Read from MH i2c: E2 17 00 72 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 43 [11:02:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:02:18]wFMCommunicate OK [11:02:18]CreateOFDProtocolMessage done [11:02:18]OFDSenderStorePacket 165231 [11:02:18]StoreOFDPacket docnum=165231 [11:02:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 05 7B 07 01 4A CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 B9 01 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6F 85 02 00 35 04 06 00 DD 25 D0 AE 70 F2 8B A6 17 53 84 39 65 FB [11:02:18]CheckFolder [11:02:18]dirname=/storage/ofd_packets [11:02:18]CheckFolder done [11:02:18]ProducePacketName [11:02:18]name=ofd_packets/00165231 [11:02:18]NVStorageSaveData ofd_packets/00165231 [11:02:18]File name is /storage/ofd_packets/00165231 [11:02:18]Write 301 bytes [11:02:18]NVStorageSaveData done [11:02:18]OFDSenderStorePacket done [11:02:18]KKMCreateOFDPacket done [11:02:18]NVStorageSaveData kkm_last_timestamp [11:02:18]File name is /storage/kkm_last_timestamp [11:02:18]Write 4 bytes [11:02:18]NVStorageSaveData done [11:02:18]OFD Sender: Processing packet 165231 [packets to send 106, broken 105] [11:02:18]ProducePacketName [11:02:18]name=ofd_packets/00165231 [11:02:18]OFD Sender: To server: pG, [11:02:18]CommunicateWithHost lk.salyk.kg:30040 [11:02:18]ConnectInit lk.salyk.kg [11:02:18]ExternCall_PrintAddStr [11:02:18]wPrintStart [11:02:18]Write to MH i2c: 01 00 00 73 01 74 [11:02:18]Write i2c OK [11:02:18]MH_I2C_Read... [11:02:18]Read from MH i2c: 01 [11:02:18]MH_I2C_Read... [11:02:18]Read from MH i2c: 01 07 00 [11:02:18]MH_I2C_Read... [11:02:18]Read from MH i2c: 01 07 00 73 01 00 00 00 00 00 FF 0F 89 [11:02:18]RasterBufferAndPrint [11:02:18]line Счет N : (1)459334 [11:02:18]line ИНН: 02508201610067 [11:02:18]line Контрольно-Кассовый Чек [11:02:18]line ПРОДАЖА [11:02:18]line ТРК (МРК, ГНК) : 12 [11:02:18]line Товар: 2710124130 [11:02:18]line Аи-92-К-5 [11:02:18]line 4.560 * 65.80 [11:02:18]line = 300.05 [11:02:18]line НДС 12% НСП 1% [11:02:18]line > о реализуемом товаре [11:02:18]line ОКРУГЛЕНИЕ: -0.05 [11:02:18]line ИТОГО: 300.00 [11:02:18]line Внесено: 300.00 [11:02:18]line СДАЧА: 0.00 [11:02:18]line НСП 1% : 2.65 [11:02:18]line НДС 12% : 31.86 [11:02:18]line Наличными: 300.00 [11:02:18]line Безнал.: 0.00 [11:02:18]line Место: АЗС № 72 "Партнер Нефть" [11:02:18]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:02:18]line СНО: Общий режим [11:02:18]line Чек 104 15.07.2024 11:02 [11:02:18]line Смена: 448 ФФД: 1.0 [11:02:18]line ЗНМ: 0300000160 [11:02:18]line РНМ: 0000000000090829 [11:02:18]line Версия ККМ: 001 [11:02:18]line ФМ: 0000000000874718 [11:02:18]line ФД: 165231 [11:02:18]line ФПД: 243154484621554 [11:02:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T110217&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165231&fm=243154484621554&tin=02508201610067®Number=0000000000090829&sum=30000 [11:02:19]Connected sock=11 [11:02:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 05 7B 07 01 4A CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 B9 01 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6F 85 02 00 35 04 06 00 DD 25 D0 AE 70 F2 8B A6 17 53 84 39 65 FB [11:02:19]written 0, free lines is 4095 [11:02:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 AB 07 47 00 E2 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 37 31 38 10 04 04 00 6F 85 02 00 F4 03 04 00 44 A8 94 66 B6 04 01 00 00 E4 17 2A 59 B0 93 DA A7 [11:02:19]CommunicateWithHost err = 0 [11:02:19]CheckOFDResponse [11:02:19]1017 (14) - 77093643461234 [11:02:19]1041 (16) - 0000000000874718 [11:02:19]1040 (4) - 165231 [11:02:19]1012 (4) - 15.07.2024 04:40 [11:02:19]1206 (1) - 0 [11:02:19]OFD Sender: Remove packet 165231 [11:02:19]ProducePacketName [11:02:19]name=ofd_packets/00165231 [11:02:19]NVStorageDeleteData [11:02:19]Write to MH i2c: 01 00 00 9D 01 9E [11:02:19]Write i2c OK [11:02:19]MH_I2C_Read... [11:02:19]Read from MH i2c: 01 [11:02:19]MH_I2C_Read... [11:02:19]Read from MH i2c: 01 07 00 [11:02:19]MH_I2C_Read... [11:02:19]Read from MH i2c: 01 07 00 9D 01 00 00 00 00 00 F4 0C A5 [11:02:19]RasterBufferAndPrint [11:02:19]line [11:02:19]line [11:02:19]line [11:02:19]line [11:02:19]line [11:02:19]written 0, free lines is 3323 [11:02:19]MH_Cut [11:02:19]Write to MH i2c: D1 01 00 A4 01 01 77 [11:02:19]Write i2c OK [11:02:19]MH_I2C_Read... [11:02:19]Read from MH i2c: D1 [11:02:19]MH_I2C_Read... [11:02:19]Read from MH i2c: D1 01 00 [11:02:19]MH_I2C_Read... [11:02:19]Read from MH i2c: D1 01 00 A4 01 00 76 [11:02:19]Write to MH i2c: 01 00 00 A5 01 A6 [11:02:19]Write i2c OK [11:02:19]MH_I2C_Read... [11:02:19]OFD Sender: No OFD packet to send [11:02:20]*** Cut start [11:02:20]*** Partial cut [11:02:20]*** CUTSNS_PIN = 1 [11:02:20]*** CUTSNS_PIN = 0 [11:02:20]*** Brake cut motor [11:02:20]Read from MH i2c: 01 [11:02:20]MH_I2C_Read... [11:02:20]*** Stop cut motor [11:02:21]*** Cut end [11:02:21]Read from MH i2c: 01 07 00 [11:02:21]MH_I2C_Read... [11:02:21]Read from MH i2c: 01 07 00 A5 01 00 00 00 00 00 FF 0F BB [11:02:21]process_action close_receipt done [11:02:21]requested_data is exist [11:02:21]produce_requested_data [11:02:21]requested_item fm.sn is exist - process it [11:02:21]wFMCommunicate request_size=4 [11:02:21]MH_SAM_APDU [11:02:21]CAPDU: 80 11 00 00 [11:02:21]Write to MH i2c: E2 08 00 A6 01 80 11 00 00 00 00 00 00 21 [11:02:21]Write i2c OK [11:02:21]MH_I2C_Read... [11:02:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:21]Read from MH i2c: E2 [11:02:21]MH_I2C_Read... [11:02:21]Read from MH i2c: E2 17 00 [11:02:21]MH_I2C_Read... [11:02:21]Read from MH i2c: E2 17 00 A6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 77 [11:02:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:02:21]wFMCommunicate OK [11:02:21]requested_item fd.num is exist - process it [11:02:21]SAM_PROTO_GetFieldsCounters [11:02:21]wFMCommunicate request_size=4 [11:02:21]MH_SAM_APDU [11:02:21]CAPDU: 80 13 00 00 [11:02:21]Write to MH i2c: E2 08 00 A7 01 80 13 00 00 00 00 00 00 24 [11:02:21]Write i2c OK [11:02:21]MH_I2C_Read... [11:02:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:02:21]Read from MH i2c: E2 [11:02:21]MH_I2C_Read... [11:02:21]Read from MH i2c: E2 62 00 [11:02:21]MH_I2C_Read... [11:02:21]Read from MH i2c: E2 62 00 A7 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6F 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [11:02:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6F 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:02:21]wFMCommunicate OK [11:02:21]SAM_PROTO_GetFieldsCounters done [11:02:21]requested_item shift.num is exist - process it [11:02:21]requested_item shift.opened is exist - process it [11:02:21]req_shift_opened [11:02:21]FM_GetShiftState [11:02:21]SAM_PROTO_GetShiftState [11:02:21]wFMCommunicate request_size=4 [11:02:21]MH_SAM_APDU [11:02:21]CAPDU: 80 13 01 00 [11:02:21]Write to MH i2c: E2 08 00 A8 01 80 13 01 00 00 00 00 00 26 [11:02:21]Write i2c OK [11:02:21]MH_I2C_Read... [11:02:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:21]Read from MH i2c: E2 [11:02:21]MH_I2C_Read... [11:02:21]Read from MH i2c: E2 0E 00 [11:02:21]MH_I2C_Read... [11:02:21]Read from MH i2c: E2 0E 00 A8 01 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 FF [11:02:21]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [11:02:21]wFMCommunicate OK [11:02:21]SAM_PROTO_GetShiftState done [11:02:21]FM_GetShiftState done [11:02:21]req_shift_opened done [11:02:21]requested_item shift.open_date is exist - process it [11:02:21]req_shift_open_date [11:02:21]req_shift_open_date done [11:02:21]produce_requested_data done [11:02:21]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165231,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [11:02:21]process_action_free close_receipt [11:02:21]json_value_free [11:02:21]json_value_free done [11:02:21]process_json_proto returns [11:02:21]Send response to host [11:02:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165231,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [11:02:21]free response buf [11:02:21]execute_script done [11:02:21]execute_script returns [11:02:21]free content buf [11:02:21]Sock 9.Close socket [11:02:21]Sock 9.Thread stoped [11:02:24]OFD Sender: No OFD packet to send [11:02:29]OFD Sender: No OFD packet to send [11:02:34]OFD Sender: No OFD packet to send [11:02:40]OFD Sender: No OFD packet to send [11:02:45]OFD Sender: No OFD packet to send [11:02:50]OFD Sender: No OFD packet to send [11:02:55]OFD Sender: No OFD packet to send [11:03:00]OFD Sender: No OFD packet to send [11:03:05]OFD Sender: No OFD packet to send [11:03:10]OFD Sender: No OFD packet to send [11:03:15]OFD Sender: No OFD packet to send [11:03:20]OFD Sender: No OFD packet to send [11:03:25]OFD Sender: No OFD packet to send [11:03:30]OFD Sender: No OFD packet to send [11:03:35]OFD Sender: No OFD packet to send [11:03:40]OFD Sender: No OFD packet to send [11:03:45]OFD Sender: No OFD packet to send [11:03:47]accept exits with 8 [11:03:47]New connection [11:03:47]New thread 3066854756 created [11:03:47]Thread 3066711396 joined [11:03:47]Waiting for new connection... [11:03:47] Sock 8.Parse request [11:03:47]Sock 8.Check first char [11:03:47]Sock 8.First char is OK [11:03:47]request: POST /json_proto HTTP/1.0 [11:03:47]Method: POST [11:03:47]URL: /json_proto [11:03:47]Method is POST - this is cgi request [11:03:47]url: /json_proto [11:03:47]query_string will be loaded in cgi processing [11:03:47]execute_cgi json_proto POST (null) [11:03:47]execute_cgi path=json_proto method=POST [11:03:47]POST find Content-Length [11:03:47]Host: 172.17.56.4:8080 [11:03:47]Content-Length: 671 [11:03:47]Content-Type: application/json [11:03:47] [11:03:47]POST finish read [11:03:47]Found Content-Length = 671 [11:03:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459335", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 0.020, "sum" : 1.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 1.00, "payments": [ { "type": 0, "sum" : 1.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:03:47]execute_script... [11:03: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)459335", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 0.020, "sum" : 1.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 1.00, "payments": [ { "type": 0, "sum" : 1.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:03:47]POST & json_proto [11:03:47]process_json_proto [11:03:47]json parsed OK: [11:03:47]protocol is kg_v1.0 [11:03:47]action value=close_receipt [11:03:47]process_action close_receipt [11:03:47]cmd_close_receipt [11:03:47]MH_GetDate [11:03:47]Write to MH i2c: F0 00 00 A9 01 99 [11:03:47]Write i2c OK [11:03:47]MH_I2C_Read... [11:03:47]Read from MH i2c: F0 [11:03:47]MH_I2C_Read... [11:03:47]Read from MH i2c: F0 09 00 [11:03:47]MH_I2C_Read... [11:03:47]Read from MH i2c: F0 09 00 A9 01 00 14 02 95 66 C9 DC B2 64 6E [11:03:47]GetLastDocTimeStamp 1721041337 [11:03:47]current date 1721041428 [11:03:47]FM_GetShiftState [11:03:47]SAM_PROTO_GetShiftState [11:03:47]wFMCommunicate request_size=4 [11:03:47]MH_SAM_APDU [11:03:47]CAPDU: 80 13 01 00 [11:03:47]Write to MH i2c: E2 08 00 AA 01 80 13 01 00 00 00 00 00 28 [11:03:47]Write i2c OK [11:03:47]MH_I2C_Read... [11:03:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:47]Read from MH i2c: E2 [11:03:47]MH_I2C_Read... [11:03:47]Read from MH i2c: E2 0E 00 [11:03:47]MH_I2C_Read... [11:03:47]Read from MH i2c: E2 0E 00 AA 01 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 01 [11:03:47]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [11:03:47]wFMCommunicate OK [11:03:47]SAM_PROTO_GetShiftState done [11:03:47]FM_GetShiftState done [11:03:47]opened in 1721003876 [11:03:47]opened+sec_in_day 1721090276 [11:03:47]quantity*price = 131 [11:03:47]sum+1 = 133 [11:03:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1.00 Внесено: 400.00 СДАЧА: 399.00 НСП 1% : 0.01 НДС 12% : 0.14 Наличными: 1.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 105 15.07.2024 11:03 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165232 ФПД: 171974214751491 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T110348&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165232&fm=171974214751491&tin=02508201610067®Number=0000000000090829&sum=100 [11:03:48]StoreToDocumentArchive [11:03:48]shift 448 fd 165232 [11:03:48]save to /storage/0448/doc_00165232 [11:03:48]save last doc name /storage/0448/doc_00165232 to /storage/kkm_last_doc_name [11:03:48]save OK [11:03:48]Clear old archive folders... [11:03:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:03:48]tlvbuf is 018144C0 [11:03:48]SAM_PROTO_ClearQueue [11:03:48]wFMCommunicate request_size=4 [11:03:48]MH_SAM_APDU [11:03:48]CAPDU: 80 09 00 00 [11:03:48]Write to MH i2c: E2 08 00 B7 01 80 09 00 00 00 00 00 00 2A [11:03:48]Write i2c OK [11:03:48]MH_I2C_Read... [11:03:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:03:48]Read from MH i2c: E2 [11:03:48]MH_I2C_Read... [11:03:48]Read from MH i2c: E2 03 00 [11:03:48]MH_I2C_Read... [11:03:48]Read from MH i2c: E2 03 00 B7 01 00 90 00 2C [11:03:48]RAPDU: 90 00 [11:03:48]wFMCommunicate OK [11:03:48]SAM_PROTO_ClearQueue done [11:03:48]KKMCreateOFDPacket [11:03:48]OFDProtocolAddRootSTLVToBuf [11:03:48]FM_MakeSignedData [11:03:48]FM_MakeSignedData [11:03:48]SAM_PROTO_SignData [11:03:48]wFMCommunicate request_size=4 [11:03:48]MH_SAM_APDU [11:03:48]CAPDU: 80 0D 01 02 [11:03:48]Write to MH i2c: E2 08 00 B8 01 80 0D 01 02 00 00 00 00 32 [11:03:48]Write i2c OK [11:03:48]MH_I2C_Read... [11:03:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:03:48]Read from MH i2c: E2 [11:03:48]MH_I2C_Read... [11:03:48]Read from MH i2c: E2 03 00 [11:03:48]MH_I2C_Read... [11:03:48]Read from MH i2c: E2 03 00 B8 01 00 90 00 2D [11:03:48]RAPDU: 90 00 [11:03:48]wFMCommunicate OK [11:03:48]wFMCommunicate request_size=255 [11:03:48]MH_SAM_APDU [11:03:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 00 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 84 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 00 00 00 00 00 07 04 06 00 64 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 14 02 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 70 85 02 00 35 04 06 00 9C [11:03:48]Write to MH i2c: E2 02 01 B9 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 00 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 84 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 00 00 00 00 00 07 04 06 00 64 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 14 02 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 70 85 02 00 35 04 06 00 9C 00 00 4C [11:03:48]Write i2c OK [11:03:48]MH_I2C_Read... [11:03:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:49]Read from MH i2c: E2 [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: E2 03 00 [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: E2 03 00 B9 01 00 90 00 2E [11:03:49]RAPDU: 90 00 [11:03:49]wFMCommunicate OK [11:03:49]wFMCommunicate request_size=10 [11:03:49]MH_SAM_APDU [11:03:49]CAPDU: 80 0D 02 02 05 68 DD FB 15 03 [11:03:49]Write to MH i2c: E2 0D 00 BA 01 80 0D 02 02 05 00 68 DD FB 15 03 00 00 97 [11:03:49]Write i2c OK [11:03:49]MH_I2C_Read... [11:03:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:49]Read from MH i2c: E2 [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: E2 03 00 [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: E2 03 00 BA 01 00 90 00 2F [11:03:49]RAPDU: 90 00 [11:03:49]wFMCommunicate OK [11:03:49]wFMCommunicate request_size=4 [11:03:49]MH_SAM_APDU [11:03:49]CAPDU: 80 0D 03 02 [11:03:49]Write to MH i2c: E2 08 00 BB 01 80 0D 03 02 00 00 00 00 37 [11:03:49]Write i2c OK [11:03:49]MH_I2C_Read... [11:03:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:03:49]Read from MH i2c: E2 [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: E2 0B 00 [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: E2 0B 00 BB 01 00 CB 61 97 6A 07 16 F7 30 90 00 A9 [11:03:49]RAPDU: CB 61 97 6A 07 16 F7 30 90 00 [11:03:49]wFMCommunicate OK [11:03:49]SAM_PROTO_SignData done [11:03:49]FM_MakeSignedData done [11:03:49]CreateOFDProtocolMessage [11:03:49]wFMCommunicate request_size=4 [11:03:49]MH_SAM_APDU [11:03:49]CAPDU: 80 11 00 00 [11:03:49]Write to MH i2c: E2 08 00 BC 01 80 11 00 00 00 00 00 00 37 [11:03:49]Write i2c OK [11:03:49]MH_I2C_Read... [11:03:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:49]Read from MH i2c: E2 [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: E2 17 00 [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: E2 17 00 BC 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8D [11:03:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:03:49]wFMCommunicate OK [11:03:49]CreateOFDProtocolMessage done [11:03:49]OFDSenderStorePacket 165232 [11:03:49]StoreOFDPacket docnum=165232 [11:03:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 73 16 07 01 B5 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 00 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 84 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 00 00 00 00 00 07 04 06 00 64 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 14 02 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 70 85 02 00 35 04 06 00 9C 68 DD FB 15 03 CB 61 97 6A 07 16 F7 30 [11:03:49]CheckFolder [11:03:49]dirname=/storage/ofd_packets [11:03:49]CheckFolder done [11:03:49]ProducePacketName [11:03:49]name=ofd_packets/00165232 [11:03:49]NVStorageSaveData ofd_packets/00165232 [11:03:49]File name is /storage/ofd_packets/00165232 [11:03:49]Write 301 bytes [11:03:49]NVStorageSaveData done [11:03:49]OFDSenderStorePacket done [11:03:49]KKMCreateOFDPacket done [11:03:49]NVStorageSaveData kkm_last_timestamp [11:03:49]File name is /storage/kkm_last_timestamp [11:03:49]Write 4 bytes [11:03:49]NVStorageSaveData done [11:03:49]ExternCall_PrintAddStr [11:03:49]wPrintStart [11:03:49]Write to MH i2c: 01 00 00 BD 01 BE [11:03:49]Write i2c OK [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: 01 [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: 01 07 00 [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: 01 07 00 BD 01 00 00 00 00 00 FF 0F D3 [11:03:49]RasterBufferAndPrint [11:03:49]line Счет N : (1)459335 [11:03:49]line ИНН: 02508201610067 [11:03:49]line Контрольно-Кассовый Чек [11:03:49]line ПРОДАЖА [11:03:49]line ТРК (МРК, ГНК) : 22 [11:03:49]line Товар: 2710124130 [11:03:49]line Аи-92-К-5 [11:03:49]line 0.020 * 65.80 [11:03:49]line = 1.32 [11:03:49]line НДС 12% НСП 1% [11:03:49]line > о реализуемом товаре [11:03:49]line ОКРУГЛЕНИЕ: -0.32 [11:03:49]line ИТОГО: 1.00 [11:03:49]line Внесено: 400.00 [11:03:49]line СДАЧА: 399.00 [11:03:49]line НСП 1% : 0.01 [11:03:49]line НДС 12% : 0.14 [11:03:49]line Наличными: 1.00 [11:03:49]line Безнал.: 0.00 [11:03:49]line Место: АЗС № 72 "Партнер Нефть" [11:03:49]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:03:49]line СНО: Общий режим [11:03:49]line Чек 105 15.07.2024 11:03 [11:03:49]line Смена: 448 ФФД: 1.0 [11:03:49]line ЗНМ: 0300000160 [11:03:49]line РНМ: 0000000000090829 [11:03:49]line Версия ККМ: 001 [11:03:49]line ФМ: 0000000000874718 [11:03:49]line ФД: 165232 [11:03:49]line ФПД: 171974214751491 [11:03:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T110348&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165232&fm=171974214751491&tin=02508201610067®Number=0000000000090829&sum=100 [11:03:49]written 0, free lines is 4095 [11:03:49]OFD Sender: Processing packet 165232 [packets to send 106, broken 105] [11:03:49]ProducePacketName [11:03:49]name=ofd_packets/00165232 [11:03:49]OFD Sender: To server: pG, [11:03:49]CommunicateWithHost lk.salyk.kg:30040 [11:03:49]ConnectInit lk.salyk.kg [11:03:49]Connected sock=10 [11:03:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 73 16 07 01 B5 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 00 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 84 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 00 00 00 00 00 07 04 06 00 64 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 14 02 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 70 85 02 00 35 04 06 00 9C 68 DD FB 15 03 CB 61 97 6A 07 16 F7 30 [11:03:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 1B 44 47 00 F1 BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 70 85 02 00 F4 03 04 00 9E A8 94 66 B6 04 01 00 00 54 D1 80 FE 34 1C B0 7F [11:03:49]CommunicateWithHost err = 0 [11:03:49]CheckOFDResponse [11:03:49]1017 (14) - 77093643461234 [11:03:49]1041 (16) - 0000000000874718 [11:03:49]1040 (4) - 165232 [11:03:49]1012 (4) - 15.07.2024 04:42 [11:03:49]1206 (1) - 0 [11:03:49]OFD Sender: Remove packet 165232 [11:03:49]ProducePacketName [11:03:49]name=ofd_packets/00165232 [11:03:49]NVStorageDeleteData [11:03:49]Write to MH i2c: 01 00 00 E7 01 E8 [11:03:49]Write i2c OK [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: 01 [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: 01 07 00 [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: 01 07 00 E7 01 00 00 00 00 00 F0 0C EB [11:03:49]RasterBufferAndPrint [11:03:49]line [11:03:49]line [11:03:49]line [11:03:49]line [11:03:49]line [11:03:49]written 0, free lines is 3318 [11:03:49]MH_Cut [11:03:49]Write to MH i2c: D1 01 00 EE 01 01 C1 [11:03:49]Write i2c OK [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: D1 [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: D1 01 00 [11:03:49]MH_I2C_Read... [11:03:49]Read from MH i2c: D1 01 00 EE 01 00 C0 [11:03:49]Write to MH i2c: 01 00 00 EF 01 F0 [11:03:49]Write i2c OK [11:03:49]MH_I2C_Read... [11:03:50]OFD Sender: No OFD packet to send [11:03:50]*** Cut start [11:03:50]*** Partial cut [11:03:50]*** CUTSNS_PIN = 1 [11:03:50]*** CUTSNS_PIN = 0 [11:03:50]*** Brake cut motor [11:03:50]Read from MH i2c: 01 [11:03:50]MH_I2C_Read... [11:03:50]*** Stop cut motor [11:03:50]*** Cut end [11:03:50]Read from MH i2c: 01 07 00 [11:03:50]MH_I2C_Read... [11:03:50]Read from MH i2c: 01 07 00 EF 01 00 00 00 00 00 FF 0F 05 [11:03:50]process_action close_receipt done [11:03:50]requested_data is exist [11:03:50]produce_requested_data [11:03:50]requested_item fm.sn is exist - process it [11:03:50]wFMCommunicate request_size=4 [11:03:50]MH_SAM_APDU [11:03:50]CAPDU: 80 11 00 00 [11:03:50]Write to MH i2c: E2 08 00 F0 01 80 11 00 00 00 00 00 00 6B [11:03:50]Write i2c OK [11:03:50]MH_I2C_Read... [11:03:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:50]Read from MH i2c: E2 [11:03:51]MH_I2C_Read... [11:03:51]Read from MH i2c: E2 17 00 [11:03:51]MH_I2C_Read... [11:03:51]Read from MH i2c: E2 17 00 F0 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C1 [11:03:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:03:51]wFMCommunicate OK [11:03:51]requested_item fd.num is exist - process it [11:03:51]SAM_PROTO_GetFieldsCounters [11:03:51]wFMCommunicate request_size=4 [11:03:51]MH_SAM_APDU [11:03:51]CAPDU: 80 13 00 00 [11:03:51]Write to MH i2c: E2 08 00 F1 01 80 13 00 00 00 00 00 00 6E [11:03:51]Write i2c OK [11:03:51]MH_I2C_Read... [11:03:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:03:51]Read from MH i2c: E2 [11:03:51]MH_I2C_Read... [11:03:51]Read from MH i2c: E2 62 00 [11:03:51]MH_I2C_Read... [11:03:51]Read from MH i2c: E2 62 00 F1 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 70 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [11:03:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 70 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:03:51]wFMCommunicate OK [11:03:51]SAM_PROTO_GetFieldsCounters done [11:03:51]requested_item shift.num is exist - process it [11:03:51]requested_item shift.opened is exist - process it [11:03:51]req_shift_opened [11:03:51]FM_GetShiftState [11:03:51]SAM_PROTO_GetShiftState [11:03:51]wFMCommunicate request_size=4 [11:03:51]MH_SAM_APDU [11:03:51]CAPDU: 80 13 01 00 [11:03:51]Write to MH i2c: E2 08 00 F2 01 80 13 01 00 00 00 00 00 70 [11:03:51]Write i2c OK [11:03:51]MH_I2C_Read... [11:03:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:51]Read from MH i2c: E2 [11:03:51]MH_I2C_Read... [11:03:51]Read from MH i2c: E2 0E 00 [11:03:51]MH_I2C_Read... [11:03:51]Read from MH i2c: E2 0E 00 F2 01 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 49 [11:03:51]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [11:03:51]wFMCommunicate OK [11:03:51]SAM_PROTO_GetShiftState done [11:03:51]FM_GetShiftState done [11:03:51]req_shift_opened done [11:03:51]requested_item shift.open_date is exist - process it [11:03:51]req_shift_open_date [11:03:51]req_shift_open_date done [11:03:51]produce_requested_data done [11:03:51]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165232,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [11:03:51]process_action_free close_receipt [11:03:51]json_value_free [11:03:51]json_value_free done [11:03:51]process_json_proto returns [11:03:51]Send response to host [11:03:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165232,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [11:03:51]free response buf [11:03:51]execute_script done [11:03:51]execute_script returns [11:03:51]free content buf [11:03:51]Sock 8.Close socket [11:03:51]Sock 8.Thread stoped [11:03:55]OFD Sender: No OFD packet to send [11:04:00]OFD Sender: No OFD packet to send [11:04:05]OFD Sender: No OFD packet to send [11:04:10]OFD Sender: No OFD packet to send [11:04:15]OFD Sender: No OFD packet to send [11:04:20]OFD Sender: No OFD packet to send [11:04:25]OFD Sender: No OFD packet to send [11:04:27]accept exits with 9 [11:04:27]New connection [11:04:27]New thread 3066711396 created [11:04:27]Thread 3066854756 joined [11:04:27]Waiting for new connection... [11:04:27] Sock 9.Parse request [11:04:27]Sock 9.Check first char [11:04:27]Sock 9.First char is OK [11:04:27]request: POST /json_proto HTTP/1.0 [11:04:27]Method: POST [11:04:27]URL: /json_proto [11:04:27]Method is POST - this is cgi request [11:04:27]url: /json_proto [11:04:27]query_string will be loaded in cgi processing [11:04:27]execute_cgi json_proto POST (null) [11:04:27]execute_cgi path=json_proto method=POST [11:04:27]POST find Content-Length [11:04:27]Host: 172.17.56.4:8080 [11:04:27]Content-Length: 677 [11:04:27]Content-Type: application/json [11:04:27] [11:04:27]POST finish read [11:04:27]Found Content-Length = 677 [11:04:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459337", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.070, "sum" : 399.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 399.00, "total" : 399.00, "payments": [ { "type": 0, "sum" : 399.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:04:27]execute_script... [11:04:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459337", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.070, "sum" : 399.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 399.00, "total" : 399.00, "payments": [ { "type": 0, "sum" : 399.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:04:27]POST & json_proto [11:04:27]process_json_proto [11:04:27]json parsed OK: [11:04:27]protocol is kg_v1.0 [11:04:27]action value=close_receipt [11:04:27]process_action close_receipt [11:04:27]cmd_close_receipt [11:04:27]MH_GetDate [11:04:27]Write to MH i2c: F0 00 00 F3 01 E3 [11:04:27]Write i2c OK [11:04:27]MH_I2C_Read... [11:04:27]Read from MH i2c: F0 [11:04:27]MH_I2C_Read... [11:04:27]Read from MH i2c: F0 09 00 [11:04:27]MH_I2C_Read... [11:04:27]Read from MH i2c: F0 09 00 F3 01 00 3C 02 95 66 C9 DC B2 64 E0 [11:04:27]GetLastDocTimeStamp 1721041428 [11:04:27]current date 1721041468 [11:04:27]FM_GetShiftState [11:04:27]SAM_PROTO_GetShiftState [11:04:27]wFMCommunicate request_size=4 [11:04:27]MH_SAM_APDU [11:04:27]CAPDU: 80 13 01 00 [11:04:27]Write to MH i2c: E2 08 00 F4 01 80 13 01 00 00 00 00 00 72 [11:04:27]Write i2c OK [11:04:27]MH_I2C_Read... [11:04:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:27]Read from MH i2c: E2 [11:04:27]MH_I2C_Read... [11:04:27]Read from MH i2c: E2 0E 00 [11:04:27]MH_I2C_Read... [11:04:27]Read from MH i2c: E2 0E 00 F4 01 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 4B [11:04:27]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [11:04:27]wFMCommunicate OK [11:04:27]SAM_PROTO_GetShiftState done [11:04:27]FM_GetShiftState done [11:04:27]opened in 1721003876 [11:04:27]opened+sec_in_day 1721090276 [11:04:27]quantity*price = 39940 [11:04:27]sum+1 = 39942 [11:04:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 399.00 Внесено: 399.00 СДАЧА: 0.00 НСП 1% : 3.53 НДС 12% : 42.41 Наличными: 399.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 106 15.07.2024 11:04 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165233 ФПД: 137729543607702 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T110428&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165233&fm=137729543607702&tin=02508201610067®Number=0000000000090829&sum=39900 [11:04:28]StoreToDocumentArchive [11:04:28]shift 448 fd 165233 [11:04:28]save to /storage/0448/doc_00165233 [11:04:28]save last doc name /storage/0448/doc_00165233 to /storage/kkm_last_doc_name [11:04:28]save OK [11:04:28]Clear old archive folders... [11:04:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:04:28]tlvbuf is 01819570 [11:04:28]SAM_PROTO_ClearQueue [11:04:28]wFMCommunicate request_size=4 [11:04:28]MH_SAM_APDU [11:04:28]CAPDU: 80 09 00 00 [11:04:28]Write to MH i2c: E2 08 00 01 02 80 09 00 00 00 00 00 00 75 [11:04:28]Write i2c OK [11:04:28]MH_I2C_Read... [11:04:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:04:28]Read from MH i2c: E2 [11:04:28]MH_I2C_Read... [11:04:28]Read from MH i2c: E2 03 00 [11:04:28]MH_I2C_Read... [11:04:28]Read from MH i2c: E2 03 00 01 02 00 90 00 77 [11:04:28]RAPDU: 90 00 [11:04:28]wFMCommunicate OK [11:04:28]SAM_PROTO_ClearQueue done [11:04:28]KKMCreateOFDPacket [11:04:28]OFDProtocolAddRootSTLVToBuf [11:04:28]FM_MakeSignedData [11:04:28]FM_MakeSignedData [11:04:28]SAM_PROTO_SignData [11:04:28]wFMCommunicate request_size=4 [11:04:28]MH_SAM_APDU [11:04:28]CAPDU: 80 0D 01 02 [11:04:28]Write to MH i2c: E2 08 00 02 02 80 0D 01 02 00 00 00 00 7D [11:04:28]Write i2c OK [11:04:28]MH_I2C_Read... [11:04:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:04:28]Read from MH i2c: E2 [11:04:28]MH_I2C_Read... [11:04:28]Read from MH i2c: E2 03 00 [11:04:28]MH_I2C_Read... [11:04:28]Read from MH i2c: E2 03 00 02 02 00 90 00 78 [11:04:28]RAPDU: 90 00 [11:04:28]wFMCommunicate OK [11:04:28]wFMCommunicate request_size=255 [11:04:28]MH_SAM_APDU [11:04:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 05 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 10 00 00 00 00 07 04 06 00 DC 9B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 3C 02 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 71 85 02 00 35 04 06 00 7D [11:04:28]Write to MH i2c: E2 02 01 03 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 05 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 10 00 00 00 00 07 04 06 00 DC 9B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 3C 02 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 71 85 02 00 35 04 06 00 7D 00 00 92 [11:04:28]Write i2c OK [11:04:28]MH_I2C_Read... [11:04:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:29]Read from MH i2c: E2 [11:04:29]MH_I2C_Read... [11:04:29]Read from MH i2c: E2 03 00 [11:04:29]MH_I2C_Read... [11:04:29]Read from MH i2c: E2 03 00 03 02 00 90 00 79 [11:04:29]RAPDU: 90 00 [11:04:29]wFMCommunicate OK [11:04:29]wFMCommunicate request_size=10 [11:04:29]MH_SAM_APDU [11:04:29]CAPDU: 80 0D 02 02 05 43 A8 85 95 96 [11:04:29]Write to MH i2c: E2 0D 00 04 02 80 0D 02 02 05 00 43 A8 85 95 96 00 00 25 [11:04:29]Write i2c OK [11:04:29]MH_I2C_Read... [11:04:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:29]Read from MH i2c: E2 [11:04:29]MH_I2C_Read... [11:04:29]Read from MH i2c: E2 03 00 [11:04:29]MH_I2C_Read... [11:04:29]Read from MH i2c: E2 03 00 04 02 00 90 00 7A [11:04:29]RAPDU: 90 00 [11:04:29]wFMCommunicate OK [11:04:29]wFMCommunicate request_size=4 [11:04:29]MH_SAM_APDU [11:04:29]CAPDU: 80 0D 03 02 [11:04:29]Write to MH i2c: E2 08 00 05 02 80 0D 03 02 00 00 00 00 82 [11:04:29]Write i2c OK [11:04:29]MH_I2C_Read... [11:04:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:04:29]Read from MH i2c: E2 [11:04:29]MH_I2C_Read... [11:04:29]Read from MH i2c: E2 0B 00 [11:04:29]MH_I2C_Read... [11:04:29]Read from MH i2c: E2 0B 00 05 02 00 79 AE 85 18 EE C1 F7 58 90 00 45 [11:04:29]RAPDU: 79 AE 85 18 EE C1 F7 58 90 00 [11:04:29]wFMCommunicate OK [11:04:29]SAM_PROTO_SignData done [11:04:29]FM_MakeSignedData done [11:04:29]CreateOFDProtocolMessage [11:04:29]wFMCommunicate request_size=4 [11:04:29]MH_SAM_APDU [11:04:29]CAPDU: 80 11 00 00 [11:04:29]Write to MH i2c: E2 08 00 06 02 80 11 00 00 00 00 00 00 82 [11:04:29]Write i2c OK [11:04:29]MH_I2C_Read... [11:04:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:29]Read from MH i2c: E2 [11:04:29]MH_I2C_Read... [11:04:29]Read from MH i2c: E2 17 00 [11:04:29]MH_I2C_Read... [11:04:29]Read from MH i2c: E2 17 00 06 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D8 [11:04:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:04:29]wFMCommunicate OK [11:04:29]CreateOFDProtocolMessage done [11:04:29]OFDSenderStorePacket 165233 [11:04:29]StoreOFDPacket docnum=165233 [11:04:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 38 BC 07 01 41 A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 B6 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 05 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 10 00 00 00 00 07 04 06 00 DC 9B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 3C 02 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 71 85 02 00 35 04 06 00 7D 43 A8 85 95 96 79 AE 85 18 EE C1 F7 58 [11:04:29]CheckFolder [11:04:29]dirname=/storage/ofd_packets [11:04:29]CheckFolder done [11:04:29]ProducePacketName [11:04:29]name=ofd_packets/00165233 [11:04:29]NVStorageSaveData ofd_packets/00165233 [11:04:29]File name is /storage/ofd_packets/00165233 [11:04:29]Write 301 bytes [11:04:29]NVStorageSaveData done [11:04:29]OFDSenderStorePacket done [11:04:29]KKMCreateOFDPacket done [11:04:29]NVStorageSaveData kkm_last_timestamp [11:04:29]File name is /storage/kkm_last_timestamp [11:04:29]Write 4 bytes [11:04:29]NVStorageSaveData done [11:04:29]ExternCall_PrintAddStr [11:04:29]wPrintStart [11:04:29]Write to MH i2c: 01 00 00 07 02 09 [11:04:29]Write i2c OK [11:04:29]MH_I2C_Read... [11:04:29]Read from MH i2c: 01 [11:04:29]MH_I2C_Read... [11:04:29]Read from MH i2c: 01 07 00 [11:04:29]MH_I2C_Read... [11:04:29]Read from MH i2c: 01 07 00 07 02 00 00 00 00 00 FF 0F 1E [11:04:29]RasterBufferAndPrint [11:04:29]line Счет N : (1)459337 [11:04:29]line ИНН: 02508201610067 [11:04:29]line Контрольно-Кассовый Чек [11:04:29]line ПРОДАЖА [11:04:29]line ТРК (МРК, ГНК) : 22 [11:04:29]line Товар: 2710124130 [11:04:29]line Аи-92-К-5 [11:04:29]line 6.070 * 65.80 [11:04:29]line = 399.41 [11:04:29]line НДС 12% НСП 1% [11:04:29]line > о реализуемом товаре [11:04:29]line ОКРУГЛЕНИЕ: -0.41 [11:04:29]line ИТОГО: 399.00 [11:04:29]line Внесено: 399.00 [11:04:29]line СДАЧА: 0.00 [11:04:29]line НСП 1% : 3.53 [11:04:29]line НДС 12% : 42.41 [11:04:29]line Наличными: 399.00 [11:04:29]line Безнал.: 0.00 [11:04:29]line Место: АЗС № 72 "Партнер Нефть" [11:04:29]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:04:29]line СНО: Общий режим [11:04:29]line Чек 106 15.07.2024 11:04 [11:04:29]line Смена: 448 ФФД: 1.0 [11:04:29]line ЗНМ: 0300000160 [11:04:29]line РНМ: 0000000000090829 [11:04:29]line Версия ККМ: 001 [11:04:29]line ФМ: 0000000000874718 [11:04:29]line ФД: 165233 [11:04:29]line ФПД: 137729543607702 [11:04:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T110428&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165233&fm=137729543607702&tin=02508201610067®Number=0000000000090829&sum=39900 [11:04:29]OFD Sender: Processing packet 165233 [packets to send 106, broken 105] [11:04:29]ProducePacketName [11:04:29]name=ofd_packets/00165233 [11:04:29]OFD Sender: To server: pG, [11:04:29]CommunicateWithHost lk.salyk.kg:30040 [11:04:29]ConnectInit lk.salyk.kg [11:04:29]written 0, free lines is 4095 [11:04:29]Connected sock=10 [11:04:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 38 BC 07 01 41 A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 B6 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 05 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 10 00 00 00 00 07 04 06 00 DC 9B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 3C 02 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 71 85 02 00 35 04 06 00 7D 43 A8 85 95 96 79 AE 85 18 EE C1 F7 58 [11:04:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 0E B9 47 00 38 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 71 85 02 00 F4 03 04 00 C6 A8 94 66 B6 04 01 00 00 72 00 09 7D 16 78 99 69 [11:04:29]CommunicateWithHost err = 0 [11:04:29]CheckOFDResponse [11:04:29]1017 (14) - 77093643461234 [11:04:29]1041 (16) - 0000000000874718 [11:04:29]1040 (4) - 165233 [11:04:29]1012 (4) - 15.07.2024 04:42 [11:04:29]1206 (1) - 0 [11:04:29]OFD Sender: Remove packet 165233 [11:04:29]ProducePacketName [11:04:29]name=ofd_packets/00165233 [11:04:29]NVStorageDeleteData [11:04:30]Write to MH i2c: 01 00 00 31 02 33 [11:04:30]Write i2c OK [11:04:30]MH_I2C_Read... [11:04:30]Read from MH i2c: 01 [11:04:30]MH_I2C_Read... [11:04:30]Read from MH i2c: 01 07 00 [11:04:30]MH_I2C_Read... [11:04:30]Read from MH i2c: 01 07 00 31 02 00 00 00 00 00 F0 0C 36 [11:04:30]RasterBufferAndPrint [11:04:30]line [11:04:30]line [11:04:30]line [11:04:30]line [11:04:30]line [11:04:30]written 0, free lines is 3318 [11:04:30]MH_Cut [11:04:30]Write to MH i2c: D1 01 00 38 02 01 0C [11:04:30]Write i2c OK [11:04:30]MH_I2C_Read... [11:04:30]Read from MH i2c: D1 [11:04:30]MH_I2C_Read... [11:04:30]Read from MH i2c: D1 01 00 [11:04:30]MH_I2C_Read... [11:04:30]Read from MH i2c: D1 01 00 38 02 00 0B [11:04:30]Write to MH i2c: 01 00 00 39 02 3B [11:04:30]Write i2c OK [11:04:30]MH_I2C_Read... [11:04:30]OFD Sender: No OFD packet to send [11:04:30]*** Cut start [11:04:30]*** Partial cut [11:04:30]*** CUTSNS_PIN = 1 [11:04:30]*** CUTSNS_PIN = 0 [11:04:31]*** Brake cut motor [11:04:31]Read from MH i2c: 01 [11:04:31]MH_I2C_Read... [11:04:31]*** Stop cut motor [11:04:31]*** Cut end [11:04:31]Read from MH i2c: 01 07 00 [11:04:31]MH_I2C_Read... [11:04:31]Read from MH i2c: 01 07 00 39 02 00 00 00 00 00 FF 0F 50 [11:04:31]process_action close_receipt done [11:04:31]requested_data is exist [11:04:31]produce_requested_data [11:04:31]requested_item fm.sn is exist - process it [11:04:31]wFMCommunicate request_size=4 [11:04:31]MH_SAM_APDU [11:04:31]CAPDU: 80 11 00 00 [11:04:31]Write to MH i2c: E2 08 00 3A 02 80 11 00 00 00 00 00 00 B6 [11:04:31]Write i2c OK [11:04:31]MH_I2C_Read... [11:04:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:31]Read from MH i2c: E2 [11:04:31]MH_I2C_Read... [11:04:31]Read from MH i2c: E2 17 00 [11:04:31]MH_I2C_Read... [11:04:31]Read from MH i2c: E2 17 00 3A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0C [11:04:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:04:31]wFMCommunicate OK [11:04:31]requested_item fd.num is exist - process it [11:04:31]SAM_PROTO_GetFieldsCounters [11:04:31]wFMCommunicate request_size=4 [11:04:31]MH_SAM_APDU [11:04:31]CAPDU: 80 13 00 00 [11:04:31]Write to MH i2c: E2 08 00 3B 02 80 13 00 00 00 00 00 00 B9 [11:04:31]Write i2c OK [11:04:31]MH_I2C_Read... [11:04:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:04:31]Read from MH i2c: E2 [11:04:31]MH_I2C_Read... [11:04:31]Read from MH i2c: E2 62 00 [11:04:31]MH_I2C_Read... [11:04:31]Read from MH i2c: E2 62 00 3B 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 71 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [11:04: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 71 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:04:31]wFMCommunicate OK [11:04:31]SAM_PROTO_GetFieldsCounters done [11:04:31]requested_item shift.num is exist - process it [11:04:31]requested_item shift.opened is exist - process it [11:04:31]req_shift_opened [11:04:31]FM_GetShiftState [11:04:31]SAM_PROTO_GetShiftState [11:04:31]wFMCommunicate request_size=4 [11:04:31]MH_SAM_APDU [11:04:31]CAPDU: 80 13 01 00 [11:04:31]Write to MH i2c: E2 08 00 3C 02 80 13 01 00 00 00 00 00 BB [11:04:31]Write i2c OK [11:04:31]MH_I2C_Read... [11:04:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:31]Read from MH i2c: E2 [11:04:31]MH_I2C_Read... [11:04:31]Read from MH i2c: E2 0E 00 [11:04:31]MH_I2C_Read... [11:04:31]Read from MH i2c: E2 0E 00 3C 02 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 94 [11:04:31]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [11:04:31]wFMCommunicate OK [11:04:31]SAM_PROTO_GetShiftState done [11:04:31]FM_GetShiftState done [11:04:31]req_shift_opened done [11:04:31]requested_item shift.open_date is exist - process it [11:04:31]req_shift_open_date [11:04:31]req_shift_open_date done [11:04:31]produce_requested_data done [11:04:31]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165233,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [11:04:31]process_action_free close_receipt [11:04:31]json_value_free [11:04:31]json_value_free done [11:04:31]process_json_proto returns [11:04:31]Send response to host [11:04:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165233,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [11:04:31]free response buf [11:04:31]execute_script done [11:04:31]execute_script returns [11:04:31]free content buf [11:04:31]Sock 9.Close socket [11:04:31]Sock 9.Thread stoped [11:04:32]accept exits with 8 [11:04:32]New connection [11:04:32]New thread 3066854756 created [11:04:32]Thread 3066711396 joined [11:04:32]Waiting for new connection... [11:04:32] Sock 8.Parse request [11:04:32]Sock 8.Check first char [11:04:32]Sock 8.First char is OK [11:04:32]request: POST /json_proto HTTP/1.0 [11:04:32]Method: POST [11:04:32]URL: /json_proto [11:04:32]Method is POST - this is cgi request [11:04:32]url: /json_proto [11:04:32]query_string will be loaded in cgi processing [11:04:32]execute_cgi json_proto POST (null) [11:04:32]execute_cgi path=json_proto method=POST [11:04:32]POST find Content-Length [11:04:32]Host: 172.17.56.4:8080 [11:04:32]Content-Length: 1178 [11:04:32]Content-Type: application/json [11:04:32] [11:04:32]POST finish read [11:04:32]Found Content-Length = 1178 [11:04:32]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 72\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0434\u044B\u043A\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)459336\u000A15.07.2024 10:29\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 65.80\u000A\u0418\u0422\u041E\u0413: 658.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\u000A4128790\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:04:32]execute_script... [11:04:32]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 72\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0434\u044B\u043A\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)459336\u000A15.07.2024 10:29\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 65.80\u000A\u0418\u0422\u041E\u0413: 658.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\u000A4128790\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:04:32]POST & json_proto [11:04:32]process_json_proto [11:04:32]json parsed OK: [11:04:32]protocol is kg_v1.0 [11:04:32]action value=print_text [11:04:32]process_action print_text [11:04:32]cmd_print_text [11:04:32]ExternCall_PrintAddStr [11:04:32]wPrintStart [11:04:32]Write to MH i2c: 01 00 00 3D 02 3F [11:04:32]Write i2c OK [11:04:32]MH_I2C_Read... [11:04:32]Read from MH i2c: 01 [11:04:32]MH_I2C_Read... [11:04:32]Read from MH i2c: 01 07 00 [11:04:32]MH_I2C_Read... [11:04:32]Read from MH i2c: 01 07 00 3D 02 00 00 00 00 00 FF 0F 54 [11:04:32]RasterBufferAndPrint [11:04:32]line *****ТОВАРНЫЙ ЧЕК***** [11:04:32]line АЗС 72 [11:04:32]line Партнер нефть [11:04:32]line 02508201610067 [11:04:32]line Кассир : Садыков Н. [11:04:32]line Счет N : (1)459336 [11:04:32]line 15.07.2024 10:29 [11:04:32]line ПРОДАЖА [11:04:32]line ТРК (МРК, ГНК): 12 [11:04:32]line Вид ГСМ : 2710124130 [11:04:32]line Аи-92-К-5 [11:04:32]line 10.000 x 65.80 [11:04:32]line ИТОГ: 658.00 [11:04:32]line Тип оплаты: Талоны: Партнер нефть [11:04:32]line 4128790 [11:04:32]line ______________________ [11:04:32]line (подпись) [11:04:32]written 0, free lines is 4095 [11:04:32]Write to MH i2c: 01 00 00 51 02 53 [11:04:32]Write i2c OK [11:04:32]MH_I2C_Read... [11:04:32]Read from MH i2c: 01 [11:04:32]MH_I2C_Read... [11:04:32]Read from MH i2c: 01 07 00 [11:04:32]MH_I2C_Read... [11:04:32]Read from MH i2c: 01 07 00 51 02 00 00 00 00 00 10 0E 78 [11:04:32]RasterBufferAndPrint [11:04:32]line [11:04:32]line [11:04:32]line [11:04:32]line [11:04:32]line [11:04:32]written 0, free lines is 3603 [11:04:32]MH_Cut [11:04:32]Write to MH i2c: D1 01 00 58 02 01 2C [11:04:32]Write i2c OK [11:04:32]MH_I2C_Read... [11:04:32]Read from MH i2c: D1 [11:04:32]MH_I2C_Read... [11:04:32]Read from MH i2c: D1 01 00 [11:04:32]MH_I2C_Read... [11:04:32]Read from MH i2c: D1 01 00 58 02 00 2B [11:04:32]Write to MH i2c: 01 00 00 59 02 5B [11:04:32]Write i2c OK [11:04:32]MH_I2C_Read... [11:04:32]*** Cut start [11:04:32]*** Partial cut [11:04:32]*** CUTSNS_PIN = 1 [11:04:32]*** CUTSNS_PIN = 0 [11:04:32]*** Brake cut motor [11:04:33]Read from MH i2c: 01 [11:04:33]MH_I2C_Read... [11:04:33]*** Stop cut motor [11:04:33]*** Cut end [11:04:33]Read from MH i2c: 01 07 00 [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: 01 07 00 59 02 00 00 00 00 00 FF 0F 70 [11:04:33]process_action print_text done [11:04:33]requested_data is exist [11:04:33]produce_requested_data [11:04:33]requested_item fm.sn is exist - process it [11:04:33]wFMCommunicate request_size=4 [11:04:33]MH_SAM_APDU [11:04:33]CAPDU: 80 11 00 00 [11:04:33]Write to MH i2c: E2 08 00 5A 02 80 11 00 00 00 00 00 00 D6 [11:04:33]Write i2c OK [11:04:33]MH_I2C_Read... [11:04:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:33]Read from MH i2c: E2 [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: E2 17 00 [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: E2 17 00 5A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2C [11:04:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:04:33]wFMCommunicate OK [11:04:33]requested_item fd.num is exist - process it [11:04:33]SAM_PROTO_GetFieldsCounters [11:04:33]wFMCommunicate request_size=4 [11:04:33]MH_SAM_APDU [11:04:33]CAPDU: 80 13 00 00 [11:04:33]Write to MH i2c: E2 08 00 5B 02 80 13 00 00 00 00 00 00 D9 [11:04:33]Write i2c OK [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: E2 [11:04:33]MH_I2C_Read... [11:04:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:04:33]Read from MH i2c: E2 62 00 [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: E2 62 00 5B 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 71 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [11:04: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 71 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:04:33]wFMCommunicate OK [11:04:33]SAM_PROTO_GetFieldsCounters done [11:04:33]requested_item shift.num is exist - process it [11:04:33]requested_item shift.opened is exist - process it [11:04:33]req_shift_opened [11:04:33]FM_GetShiftState [11:04:33]SAM_PROTO_GetShiftState [11:04:33]wFMCommunicate request_size=4 [11:04:33]MH_SAM_APDU [11:04:33]CAPDU: 80 13 01 00 [11:04:33]Write to MH i2c: E2 08 00 5C 02 80 13 01 00 00 00 00 00 DB [11:04:33]Write i2c OK [11:04:33]MH_I2C_Read... [11:04:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:33]Read from MH i2c: E2 [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: E2 0E 00 [11:04:33]MH_I2C_Read... [11:04:33]Read from MH i2c: E2 0E 00 5C 02 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 B4 [11:04:33]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [11:04:33]wFMCommunicate OK [11:04:33]SAM_PROTO_GetShiftState done [11:04:33]FM_GetShiftState done [11:04:33]req_shift_opened done [11:04:33]requested_item shift.open_date is exist - process it [11:04:33]req_shift_open_date [11:04:33]req_shift_open_date done [11:04:33]produce_requested_data done [11:04:33]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165233,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [11:04:33]process_action_free print_text [11:04:33]json_value_free [11:04:33]json_value_free done [11:04:33]process_json_proto returns [11:04:33]Send response to host [11:04:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165233,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [11:04:33]free response buf [11:04:33]execute_script done [11:04:33]execute_script returns [11:04:33]free content buf [11:04:33]Sock 8.Close socket [11:04:33]Sock 8.Thread stoped [11:04:35]OFD Sender: No OFD packet to send [11:04:40]OFD Sender: No OFD packet to send [11:04:45]OFD Sender: No OFD packet to send [11:04:50]OFD Sender: No OFD packet to send [11:04:55]OFD Sender: No OFD packet to send [11:05:00]OFD Sender: No OFD packet to send [11:05:05]OFD Sender: No OFD packet to send [11:05:10]OFD Sender: No OFD packet to send [11:05:15]OFD Sender: No OFD packet to send [11:05:20]OFD Sender: No OFD packet to send [11:05:25]OFD Sender: No OFD packet to send [11:05:28]accept exits with 9 [11:05:28]New connection [11:05:28]New thread 3066711396 created [11:05:28]Thread 3066854756 joined [11:05:28]Waiting for new connection... [11:05:28] Sock 9.Parse request [11:05:28]Sock 9.Check first char [11:05:28]Sock 9.First char is OK [11:05:28]request: POST /json_proto HTTP/1.0 [11:05:28]Method: POST [11:05:28]URL: /json_proto [11:05:28]Method is POST - this is cgi request [11:05:28]url: /json_proto [11:05:28]query_string will be loaded in cgi processing [11:05:28]execute_cgi json_proto POST (null) [11:05:28]execute_cgi path=json_proto method=POST [11:05:28]POST find Content-Length [11:05:28]Host: 172.17.56.4:8080 [11:05:28]Content-Length: 679 [11:05:28]Content-Type: application/json [11:05:28] [11:05:28]POST finish read [11:05:28]Found Content-Length = 679 [11:05:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459338", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "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" ] } } [11:05:28]execute_script... [11:05:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459338", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "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" ] } } [11:05:28]POST & json_proto [11:05:28]process_json_proto [11:05:28]json parsed OK: [11:05:28]protocol is kg_v1.0 [11:05:28]action value=close_receipt [11:05:28]process_action close_receipt [11:05:28]cmd_close_receipt [11:05:28]MH_GetDate [11:05:28]Write to MH i2c: F0 00 00 5D 02 4E [11:05:28]Write i2c OK [11:05:28]MH_I2C_Read... [11:05:28]Read from MH i2c: F0 [11:05:28]MH_I2C_Read... [11:05:28]Read from MH i2c: F0 09 00 [11:05:28]MH_I2C_Read... [11:05:28]Read from MH i2c: F0 09 00 5D 02 00 78 02 95 66 C9 DC B2 64 87 [11:05:28]GetLastDocTimeStamp 1721041468 [11:05:28]current date 1721041528 [11:05:28]FM_GetShiftState [11:05:28]SAM_PROTO_GetShiftState [11:05:28]wFMCommunicate request_size=4 [11:05:28]MH_SAM_APDU [11:05:28]CAPDU: 80 13 01 00 [11:05:28]Write to MH i2c: E2 08 00 5E 02 80 13 01 00 00 00 00 00 DD [11:05:28]Write i2c OK [11:05:28]MH_I2C_Read... [11:05:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:28]Read from MH i2c: E2 [11:05:28]MH_I2C_Read... [11:05:28]Read from MH i2c: E2 0E 00 [11:05:28]MH_I2C_Read... [11:05:28]Read from MH i2c: E2 0E 00 5E 02 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 B6 [11:05:28]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [11:05:28]wFMCommunicate OK [11:05:28]SAM_PROTO_GetShiftState done [11:05:28]FM_GetShiftState done [11:05:28]opened in 1721003876 [11:05:28]opened+sec_in_day 1721090276 [11:05:28]quantity*price = 200025 [11:05:28]sum+1 = 200027 [11:05:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 107 15.07.2024 11:05 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165234 ФПД: 172367455138437 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T110528&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165234&fm=172367455138437&tin=02508201610067®Number=0000000000090829&sum=200000 [11:05:29]StoreToDocumentArchive [11:05:29]shift 448 fd 165234 [11:05:29]save to /storage/0448/doc_00165234 [11:05:29]save last doc name /storage/0448/doc_00165234 to /storage/kkm_last_doc_name [11:05:29]save OK [11:05:29]Clear old archive folders... [11:05:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:05:29]tlvbuf is 01819160 [11:05:29]SAM_PROTO_ClearQueue [11:05:29]wFMCommunicate request_size=4 [11:05:29]MH_SAM_APDU [11:05:29]CAPDU: 80 09 00 00 [11:05:29]Write to MH i2c: E2 08 00 6B 02 80 09 00 00 00 00 00 00 DF [11:05:29]Write i2c OK [11:05:29]MH_I2C_Read... [11:05:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:05:29]Read from MH i2c: E2 [11:05:29]MH_I2C_Read... [11:05:29]Read from MH i2c: E2 03 00 [11:05:29]MH_I2C_Read... [11:05:29]Read from MH i2c: E2 03 00 6B 02 00 90 00 E1 [11:05:29]RAPDU: 90 00 [11:05:29]wFMCommunicate OK [11:05:29]SAM_PROTO_ClearQueue done [11:05:29]KKMCreateOFDPacket [11:05:29]OFDProtocolAddRootSTLVToBuf [11:05:29]FM_MakeSignedData [11:05:29]FM_MakeSignedData [11:05:29]SAM_PROTO_SignData [11:05:29]wFMCommunicate request_size=4 [11:05:29]MH_SAM_APDU [11:05:29]CAPDU: 80 0D 01 02 [11:05:29]Write to MH i2c: E2 08 00 6C 02 80 0D 01 02 00 00 00 00 E7 [11:05:29]Write i2c OK [11:05:29]MH_I2C_Read... [11:05:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:05:29]Read from MH i2c: E2 [11:05:29]MH_I2C_Read... [11:05:29]Read from MH i2c: E2 03 00 [11:05:29]MH_I2C_Read... [11:05:29]Read from MH i2c: E2 03 00 6C 02 00 90 00 E2 [11:05:29]RAPDU: 90 00 [11:05:29]wFMCommunicate OK [11:05:29]wFMCommunicate request_size=255 [11:05:29]MH_SAM_APDU [11:05:29]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 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 6B 00 00 00 F4 03 04 00 78 02 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 72 85 02 00 35 04 06 00 9C C4 6C EF [11:05:29]Write to MH i2c: E2 02 01 6D 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 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 6B 00 00 00 F4 03 04 00 78 02 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 72 85 02 00 35 04 06 00 9C C4 6C EF 00 00 2F [11:05:29]Write i2c OK [11:05:29]MH_I2C_Read... [11:05:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:29]Read from MH i2c: E2 [11:05:29]MH_I2C_Read... [11:05:29]Read from MH i2c: E2 03 00 [11:05:29]MH_I2C_Read... [11:05:29]Read from MH i2c: E2 03 00 6D 02 00 90 00 E3 [11:05:29]RAPDU: 90 00 [11:05:29]wFMCommunicate OK [11:05:29]wFMCommunicate request_size=7 [11:05:29]MH_SAM_APDU [11:05:29]CAPDU: 80 0D 02 02 02 32 85 [11:05:29]Write to MH i2c: E2 0A 00 6E 02 80 0D 02 02 02 00 32 85 00 00 A5 [11:05:29]Write i2c OK [11:05:29]MH_I2C_Read... [11:05:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:29]Read from MH i2c: E2 [11:05:29]MH_I2C_Read... [11:05:29]Read from MH i2c: E2 03 00 [11:05:29]MH_I2C_Read... [11:05:29]Read from MH i2c: E2 03 00 6E 02 00 90 00 E4 [11:05:29]RAPDU: 90 00 [11:05:29]wFMCommunicate OK [11:05:29]wFMCommunicate request_size=4 [11:05:29]MH_SAM_APDU [11:05:29]CAPDU: 80 0D 03 02 [11:05:29]Write to MH i2c: E2 08 00 6F 02 80 0D 03 02 00 00 00 00 EC [11:05:29]Write i2c OK [11:05:29]MH_I2C_Read... [11:05:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:05:29]Read from MH i2c: E2 [11:05:29]MH_I2C_Read... [11:05:29]Read from MH i2c: E2 0B 00 [11:05:29]MH_I2C_Read... [11:05:29]Read from MH i2c: E2 0B 00 6F 02 00 32 F2 7D A5 23 48 93 2D 90 00 5E [11:05:29]RAPDU: 32 F2 7D A5 23 48 93 2D 90 00 [11:05:29]wFMCommunicate OK [11:05:29]SAM_PROTO_SignData done [11:05:29]FM_MakeSignedData done [11:05:29]CreateOFDProtocolMessage [11:05:29]wFMCommunicate request_size=4 [11:05:29]MH_SAM_APDU [11:05:29]CAPDU: 80 11 00 00 [11:05:29]Write to MH i2c: E2 08 00 70 02 80 11 00 00 00 00 00 00 EC [11:05:29]Write i2c OK [11:05:29]MH_I2C_Read... [11:05:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:29]Read from MH i2c: E2 [11:05:29]MH_I2C_Read... [11:05:29]Read from MH i2c: E2 17 00 [11:05:29]MH_I2C_Read... [11:05:29]Read from MH i2c: E2 17 00 70 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 42 [11:05:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:05:29]wFMCommunicate OK [11:05:29]CreateOFDProtocolMessage done [11:05:29]OFDSenderStorePacket 165234 [11:05:29]StoreOFDPacket docnum=165234 [11:05:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 EF 5E 04 01 DB 37 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 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 6B 00 00 00 F4 03 04 00 78 02 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 72 85 02 00 35 04 06 00 9C C4 6C EF 32 85 32 F2 7D A5 23 48 93 2D [11:05:29]CheckFolder [11:05:29]dirname=/storage/ofd_packets [11:05:29]CheckFolder done [11:05:29]ProducePacketName [11:05:29]name=ofd_packets/00165234 [11:05:29]NVStorageSaveData ofd_packets/00165234 [11:05:29]File name is /storage/ofd_packets/00165234 [11:05:29]Write 298 bytes [11:05:29]NVStorageSaveData done [11:05:29]OFDSenderStorePacket done [11:05:29]KKMCreateOFDPacket done [11:05:29]NVStorageSaveData kkm_last_timestamp [11:05:29]File name is /storage/kkm_last_timestamp [11:05:29]Write 4 bytes [11:05:29]NVStorageSaveData done [11:05:29]ExternCall_PrintAddStr [11:05:29]wPrintStart [11:05:29]Write to MH i2c: 01 00 00 71 02 73 [11:05:29]Write i2c OK [11:05:29]MH_I2C_Read... [11:05:29]Read from MH i2c: 01 [11:05:29]MH_I2C_Read... [11:05:29]Read from MH i2c: 01 07 00 [11:05:29]MH_I2C_Read... [11:05:29]Read from MH i2c: 01 07 00 71 02 00 00 00 00 00 FF 0F 88 [11:05:29]RasterBufferAndPrint [11:05:29]line Счет N : (1)459338 [11:05:29]line ИНН: 02508201610067 [11:05:29]line Контрольно-Кассовый Чек [11:05:29]line ПРОДАЖА [11:05:29]line ТРК (МРК, ГНК) : 21 [11:05:29]line Товар: 2710194210 [11:05:29]line ДТ-К-5 [11:05:29]line 27.820 * 71.90 [11:05:29]line = 2000.26 [11:05:29]line НДС 12% НСП 1% [11:05:29]line > о реализуемом товаре [11:05:29]line ОКРУГЛЕНИЕ: -0.26 [11:05:29]line ИТОГО: 2000.00 [11:05:29]line Внесено: 2000.00 [11:05:29]line СДАЧА: 0.00 [11:05:29]line НСП 1% : 17.70 [11:05:29]line НДС 12% : 212.42 [11:05:29]line Наличными: 2000.00 [11:05:29]line Безнал.: 0.00 [11:05:29]line Место: АЗС № 72 "Партнер Нефть" [11:05:29]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:05:29]line СНО: Общий режим [11:05:29]line Чек 107 15.07.2024 11:05 [11:05:29]line Смена: 448 ФФД: 1.0 [11:05:29]line ЗНМ: 0300000160 [11:05:29]line РНМ: 0000000000090829 [11:05:29]line Версия ККМ: 001 [11:05:29]line ФМ: 0000000000874718 [11:05:29]line ФД: 165234 [11:05:29]line ФПД: 172367455138437 [11:05:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T110528&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165234&fm=172367455138437&tin=02508201610067®Number=0000000000090829&sum=200000 [11:05:30]OFD Sender: Processing packet 165234 [packets to send 106, broken 105] [11:05:30]ProducePacketName [11:05:30]name=ofd_packets/00165234 [11:05:30]OFD Sender: To server: pG, [11:05:30]CommunicateWithHost lk.salyk.kg:30040 [11:05:30]ConnectInit lk.salyk.kg [11:05:30]written 0, free lines is 4095 [11:05:30]Connected sock=10 [11:05:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 EF 5E 04 01 DB 37 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 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 6B 00 00 00 F4 03 04 00 78 02 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 72 85 02 00 35 04 06 00 9C C4 6C EF 32 85 32 F2 7D A5 23 48 93 2D [11:05:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 FE C4 47 00 EF 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 72 85 02 00 F4 03 04 00 03 A9 94 66 B6 04 01 00 00 B1 B1 32 0E 90 87 19 34 [11:05:30]CommunicateWithHost err = 0 [11:05:30]CheckOFDResponse [11:05:30]1017 (14) - 77093643461234 [11:05:30]1041 (16) - 0000000000874718 [11:05:30]1040 (4) - 165234 [11:05:30]1012 (4) - 15.07.2024 04:43 [11:05:30]1206 (1) - 0 [11:05:30]OFD Sender: Remove packet 165234 [11:05:30]ProducePacketName [11:05:30]name=ofd_packets/00165234 [11:05:30]NVStorageDeleteData [11:05:30]Write to MH i2c: 01 00 00 9B 02 9D [11:05:30]Write i2c OK [11:05:30]MH_I2C_Read... [11:05:30]Read from MH i2c: 01 [11:05:30]MH_I2C_Read... [11:05:30]Read from MH i2c: 01 07 00 [11:05:30]MH_I2C_Read... [11:05:30]Read from MH i2c: 01 07 00 9B 02 00 00 00 00 00 F8 0C A8 [11:05:30]RasterBufferAndPrint [11:05:30]line [11:05:30]line [11:05:30]line [11:05:30]line [11:05:30]line [11:05:30]written 0, free lines is 3326 [11:05:30]MH_Cut [11:05:30]Write to MH i2c: D1 01 00 A2 02 01 76 [11:05:30]Write i2c OK [11:05:30]MH_I2C_Read... [11:05:30]Read from MH i2c: D1 [11:05:30]MH_I2C_Read... [11:05:30]Read from MH i2c: D1 01 00 [11:05:30]MH_I2C_Read... [11:05:30]Read from MH i2c: D1 01 00 A2 02 00 75 [11:05:30]Write to MH i2c: 01 00 00 A3 02 A5 [11:05:30]Write i2c OK [11:05:30]MH_I2C_Read... [11:05:30]OFD Sender: No OFD packet to send [11:05:31]*** Cut start [11:05:31]*** Partial cut [11:05:31]*** CUTSNS_PIN = 1 [11:05:31]*** CUTSNS_PIN = 0 [11:05:31]*** Brake cut motor [11:05:31]Read from MH i2c: 01 [11:05:31]MH_I2C_Read... [11:05:31]*** Stop cut motor [11:05:31]*** Cut end [11:05:31]Read from MH i2c: 01 07 00 [11:05:31]MH_I2C_Read... [11:05:31]Read from MH i2c: 01 07 00 A3 02 00 00 00 00 00 FF 0F BA [11:05:31]process_action close_receipt done [11:05:31]requested_data is exist [11:05:31]produce_requested_data [11:05:31]requested_item fm.sn is exist - process it [11:05:31]wFMCommunicate request_size=4 [11:05:31]MH_SAM_APDU [11:05:31]CAPDU: 80 11 00 00 [11:05:31]Write to MH i2c: E2 08 00 A4 02 80 11 00 00 00 00 00 00 20 [11:05:31]Write i2c OK [11:05:31]MH_I2C_Read... [11:05:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:31]Read from MH i2c: E2 [11:05:31]MH_I2C_Read... [11:05:31]Read from MH i2c: E2 17 00 [11:05:31]MH_I2C_Read... [11:05:31]Read from MH i2c: E2 17 00 A4 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 76 [11:05:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:05:31]wFMCommunicate OK [11:05:31]requested_item fd.num is exist - process it [11:05:31]SAM_PROTO_GetFieldsCounters [11:05:31]wFMCommunicate request_size=4 [11:05:31]MH_SAM_APDU [11:05:31]CAPDU: 80 13 00 00 [11:05:31]Write to MH i2c: E2 08 00 A5 02 80 13 00 00 00 00 00 00 23 [11:05:31]Write i2c OK [11:05:31]MH_I2C_Read... [11:05:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:05:31]Read from MH i2c: E2 [11:05:31]MH_I2C_Read... [11:05:31]Read from MH i2c: E2 62 00 [11:05:31]MH_I2C_Read... [11:05:31]Read from MH i2c: E2 62 00 A5 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 72 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [11:05: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 72 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:05:31]wFMCommunicate OK [11:05:31]SAM_PROTO_GetFieldsCounters done [11:05:31]requested_item shift.num is exist - process it [11:05:31]requested_item shift.opened is exist - process it [11:05:31]req_shift_opened [11:05:31]FM_GetShiftState [11:05:31]SAM_PROTO_GetShiftState [11:05:31]wFMCommunicate request_size=4 [11:05:31]MH_SAM_APDU [11:05:31]CAPDU: 80 13 01 00 [11:05:32]Write to MH i2c: E2 08 00 A6 02 80 13 01 00 00 00 00 00 25 [11:05:32]Write i2c OK [11:05:32]MH_I2C_Read... [11:05:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:32]Read from MH i2c: E2 [11:05:32]MH_I2C_Read... [11:05:32]Read from MH i2c: E2 0E 00 [11:05:32]MH_I2C_Read... [11:05:32]Read from MH i2c: E2 0E 00 A6 02 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 FE [11:05:32]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [11:05:32]wFMCommunicate OK [11:05:32]SAM_PROTO_GetShiftState done [11:05:32]FM_GetShiftState done [11:05:32]req_shift_opened done [11:05:32]requested_item shift.open_date is exist - process it [11:05:32]req_shift_open_date [11:05:32]req_shift_open_date done [11:05:32]produce_requested_data done [11:05:32]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165234,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [11:05:32]process_action_free close_receipt [11:05:32]json_value_free [11:05:32]json_value_free done [11:05:32]process_json_proto returns [11:05:32]Send response to host [11:05:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165234,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [11:05:32]free response buf [11:05:32]execute_script done [11:05:32]execute_script returns [11:05:32]free content buf [11:05:32]Sock 9.Close socket [11:05:32]Sock 9.Thread stoped [11:05:35]OFD Sender: No OFD packet to send [11:05:40]OFD Sender: No OFD packet to send [11:05:45]OFD Sender: No OFD packet to send [11:05:50]OFD Sender: No OFD packet to send [11:05:55]OFD Sender: No OFD packet to send [11:06:00]OFD Sender: No OFD packet to send [11:06:05]OFD Sender: No OFD packet to send [11:06:10]OFD Sender: No OFD packet to send [11:06:15]OFD Sender: No OFD packet to send [11:06:20]OFD Sender: No OFD packet to send [11:06:25]OFD Sender: No OFD packet to send [11:06:30]OFD Sender: No OFD packet to send [11:06:34]accept exits with 8 [11:06:34]New connection [11:06:34]New thread 3066854756 created [11:06:34]Thread 3066711396 joined [11:06:34]Waiting for new connection... [11:06:34] Sock 8.Parse request [11:06:34]Sock 8.Check first char [11:06:34]Sock 8.First char is OK [11:06:34]request: POST /json_proto HTTP/1.0 [11:06:34]Method: POST [11:06:34]URL: /json_proto [11:06:34]Method is POST - this is cgi request [11:06:34]url: /json_proto [11:06:34]query_string will be loaded in cgi processing [11:06:34]execute_cgi json_proto POST (null) [11:06:34]execute_cgi path=json_proto method=POST [11:06:34]POST find Content-Length [11:06:34]Host: 172.17.56.4:8080 [11:06:34]Content-Length: 1188 [11:06:34]Content-Type: application/json [11:06:34] [11:06:34]POST finish read [11:06:34]Found Content-Length = 1188 [11:06:34]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 72\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0434\u044B\u043A\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)459339\u000A15.07.2024 10:31\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 65.80\u000A\u0418\u0422\u041E\u0413: 658.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\u000A32771\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:06:34]execute_script... [11:06:34]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 72\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0434\u044B\u043A\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)459339\u000A15.07.2024 10:31\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 65.80\u000A\u0418\u0422\u041E\u0413: 658.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\u000A32771\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:06:34]POST & json_proto [11:06:34]process_json_proto [11:06:34]json parsed OK: [11:06:34]protocol is kg_v1.0 [11:06:34]action value=print_text [11:06:34]process_action print_text [11:06:34]cmd_print_text [11:06:34]ExternCall_PrintAddStr [11:06:34]wPrintStart [11:06:34]Write to MH i2c: 01 00 00 A7 02 A9 [11:06:34]Write i2c OK [11:06:34]MH_I2C_Read... [11:06:34]Read from MH i2c: 01 [11:06:34]MH_I2C_Read... [11:06:34]Read from MH i2c: 01 07 00 [11:06:34]MH_I2C_Read... [11:06:34]Read from MH i2c: 01 07 00 A7 02 00 00 00 00 00 FF 0F BE [11:06:34]RasterBufferAndPrint [11:06:34]line *****ТОВАРНЫЙ ЧЕК***** [11:06:34]line АЗС 72 [11:06:34]line Партнер нефть [11:06:34]line 02508201610067 [11:06:34]line Кассир : Садыков Н. [11:06:34]line Счет N : (1)459339 [11:06:34]line 15.07.2024 10:31 [11:06:34]line ПРОДАЖА [11:06:34]line ТРК (МРК, ГНК): 12 [11:06:34]line Вид ГСМ : 2710124130 [11:06:34]line Аи-92-К-5 [11:06:34]line 10.000 x 65.80 [11:06:34]line ИТОГ: 658.00 [11:06:34]line Тип оплаты: Талоны: Топливная Карта [11:06:34]line 32771 [11:06:34]line ______________________ [11:06:34]line (подпись) [11:06:34]written 0, free lines is 4095 [11:06:34]Write to MH i2c: 01 00 00 BB 02 BD [11:06:34]Write i2c OK [11:06:34]MH_I2C_Read... [11:06:34]Read from MH i2c: 01 [11:06:34]MH_I2C_Read... [11:06:34]Read from MH i2c: 01 07 00 [11:06:34]MH_I2C_Read... [11:06:34]Read from MH i2c: 01 07 00 BB 02 00 00 00 00 00 0E 0E E0 [11:06:34]RasterBufferAndPrint [11:06:34]line [11:06:34]line [11:06:34]line [11:06:34]line [11:06:34]line [11:06:34]written 0, free lines is 3599 [11:06:34]MH_Cut [11:06:34]Write to MH i2c: D1 01 00 C2 02 01 96 [11:06:34]Write i2c OK [11:06:34]MH_I2C_Read... [11:06:34]Read from MH i2c: D1 [11:06:34]MH_I2C_Read... [11:06:34]Read from MH i2c: D1 01 00 [11:06:34]MH_I2C_Read... [11:06:34]Read from MH i2c: D1 01 00 C2 02 00 95 [11:06:34]Write to MH i2c: 01 00 00 C3 02 C5 [11:06:34]Write i2c OK [11:06:34]MH_I2C_Read... [11:06:34]*** Cut start [11:06:34]*** Partial cut [11:06:34]*** CUTSNS_PIN = 1 [11:06:34]*** CUTSNS_PIN = 0 [11:06:35]*** Brake cut motor [11:06:35]Read from MH i2c: 01 [11:06:35]MH_I2C_Read... [11:06:35]*** Stop cut motor [11:06:35]*** Cut end [11:06:35]Read from MH i2c: 01 07 00 [11:06:35]MH_I2C_Read... [11:06:35]Read from MH i2c: 01 07 00 C3 02 00 00 00 00 00 FF 0F DA [11:06:35]process_action print_text done [11:06:35]requested_data is exist [11:06:35]produce_requested_data [11:06:35]requested_item fm.sn is exist - process it [11:06:35]wFMCommunicate request_size=4 [11:06:35]MH_SAM_APDU [11:06:35]CAPDU: 80 11 00 00 [11:06:35]Write to MH i2c: E2 08 00 C4 02 80 11 00 00 00 00 00 00 40 [11:06:35]Write i2c OK [11:06:35]MH_I2C_Read... [11:06:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:35]Read from MH i2c: E2 [11:06:35]MH_I2C_Read... [11:06:35]Read from MH i2c: E2 17 00 [11:06:35]MH_I2C_Read... [11:06:35]Read from MH i2c: E2 17 00 C4 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 96 [11:06:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:06:35]wFMCommunicate OK [11:06:35]requested_item fd.num is exist - process it [11:06:35]SAM_PROTO_GetFieldsCounters [11:06:35]wFMCommunicate request_size=4 [11:06:35]MH_SAM_APDU [11:06:35]CAPDU: 80 13 00 00 [11:06:35]Write to MH i2c: E2 08 00 C5 02 80 13 00 00 00 00 00 00 43 [11:06:35]Write i2c OK [11:06:35]MH_I2C_Read... [11:06:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:06:35]Read from MH i2c: E2 [11:06:35]MH_I2C_Read... [11:06:35]Read from MH i2c: E2 62 00 [11:06:35]MH_I2C_Read... [11:06:35]Read from MH i2c: E2 62 00 C5 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 72 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 65 [11:06:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 72 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:06:35]wFMCommunicate OK [11:06:35]SAM_PROTO_GetFieldsCounters done [11:06:35]requested_item shift.num is exist - process it [11:06:35]requested_item shift.opened is exist - process it [11:06:35]req_shift_opened [11:06:35]FM_GetShiftState [11:06:35]SAM_PROTO_GetShiftState [11:06:35]wFMCommunicate request_size=4 [11:06:35]MH_SAM_APDU [11:06:35]CAPDU: 80 13 01 00 [11:06:35]Write to MH i2c: E2 08 00 C6 02 80 13 01 00 00 00 00 00 45 [11:06:35]Write i2c OK [11:06:35]MH_I2C_Read... [11:06:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:35]Read from MH i2c: E2 [11:06:35]MH_I2C_Read... [11:06:35]Read from MH i2c: E2 0E 00 [11:06:35]MH_I2C_Read... [11:06:35]Read from MH i2c: E2 0E 00 C6 02 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 1E [11:06:35]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [11:06:35]wFMCommunicate OK [11:06:35]SAM_PROTO_GetShiftState done [11:06:35]FM_GetShiftState done [11:06:35]req_shift_opened done [11:06:35]requested_item shift.open_date is exist - process it [11:06:35]req_shift_open_date [11:06:35]req_shift_open_date done [11:06:35]produce_requested_data done [11:06:35]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165234,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [11:06:35]process_action_free print_text [11:06:35]json_value_free [11:06:35]json_value_free done [11:06:35]process_json_proto returns [11:06:35]Send response to host [11:06:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165234,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [11:06:35]free response buf [11:06:35]execute_script done [11:06:35]execute_script returns [11:06:35]free content buf [11:06:35]Sock 8.Close socket [11:06:35]Sock 8.Thread stoped [11:06:36]OFD Sender: No OFD packet to send [11:06:41]OFD Sender: No OFD packet to send [11:06:46]OFD Sender: No OFD packet to send [11:06:51]OFD Sender: No OFD packet to send [11:06:56]OFD Sender: No OFD packet to send [11:07:01]OFD Sender: No OFD packet to send [11:07:06]OFD Sender: No OFD packet to send [11:07:11]OFD Sender: No OFD packet to send [11:07:16]OFD Sender: No OFD packet to send [11:07:21]OFD Sender: No OFD packet to send [11:07:26]OFD Sender: No OFD packet to send [11:07:31]OFD Sender: No OFD packet to send [11:07:36]OFD Sender: No OFD packet to send [11:07:41]OFD Sender: No OFD packet to send [11:07:45]accept exits with 10 [11:07:45]New connection [11:07:45]New thread 3066711396 created [11:07:45]Thread 3066854756 joined [11:07:45]Waiting for new connection... [11:07:45] Sock 10.Parse request [11:07:45]Sock 10.Check first char [11:07:45]Sock 10.First char is OK [11:07:45]request: POST /json_proto HTTP/1.0 [11:07:45]Method: POST [11:07:45]URL: /json_proto [11:07:45]Method is POST - this is cgi request [11:07:45]url: /json_proto [11:07:45]query_string will be loaded in cgi processing [11:07:45]execute_cgi json_proto POST (null) [11:07:45]execute_cgi path=json_proto method=POST [11:07:45]POST find Content-Length [11:07:45]Host: 172.17.56.4:8080 [11:07:45]Content-Length: 1185 [11:07:45]Content-Type: application/json [11:07:45] [11:07:45]POST finish read [11:07:45]Found Content-Length = 1185 [11:07:45]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 72\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0434\u044B\u043A\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)459340\u000A15.07.2024 10:33\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 10.000 x 71.90\u000A\u0418\u0422\u041E\u0413: 719.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\u000A32771\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:07:45]execute_script... [11:07:45]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 72\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0434\u044B\u043A\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)459340\u000A15.07.2024 10:33\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 10.000 x 71.90\u000A\u0418\u0422\u041E\u0413: 719.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\u000A32771\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:07:45]POST & json_proto [11:07:45]process_json_proto [11:07:45]json parsed OK: [11:07:45]protocol is kg_v1.0 [11:07:45]action value=print_text [11:07:45]process_action print_text [11:07:45]cmd_print_text [11:07:45]ExternCall_PrintAddStr [11:07:45]wPrintStart [11:07:45]Write to MH i2c: 01 00 00 C7 02 C9 [11:07:45]Write i2c OK [11:07:45]MH_I2C_Read... [11:07:45]Read from MH i2c: 01 [11:07:45]MH_I2C_Read... [11:07:45]Read from MH i2c: 01 07 00 [11:07:45]MH_I2C_Read... [11:07:45]Read from MH i2c: 01 07 00 C7 02 00 00 00 00 00 FF 0F DE [11:07:45]RasterBufferAndPrint [11:07:45]line *****ТОВАРНЫЙ ЧЕК***** [11:07:45]line АЗС 72 [11:07:45]line Партнер нефть [11:07:45]line 02508201610067 [11:07:45]line Кассир : Садыков Н. [11:07:45]line Счет N : (1)459340 [11:07:45]line 15.07.2024 10:33 [11:07:45]line ПРОДАЖА [11:07:45]line ТРК (МРК, ГНК): 21 [11:07:45]line Вид ГСМ : 2710194210 [11:07:45]line ДТ-К-5 [11:07:45]line 10.000 x 71.90 [11:07:45]line ИТОГ: 719.00 [11:07:45]line Тип оплаты: Талоны: Топливная Карта [11:07:45]line 32771 [11:07:45]line ______________________ [11:07:45]line (подпись) [11:07:45]written 0, free lines is 4095 [11:07:45]Write to MH i2c: 01 00 00 DB 02 DD [11:07:45]Write i2c OK [11:07:45]MH_I2C_Read... [11:07:45]Read from MH i2c: 01 [11:07:45]MH_I2C_Read... [11:07:45]Read from MH i2c: 01 07 00 [11:07:45]MH_I2C_Read... [11:07:45]Read from MH i2c: 01 07 00 DB 02 00 00 00 00 00 0C 0E FE [11:07:45]RasterBufferAndPrint [11:07:45]line [11:07:45]line [11:07:45]line [11:07:45]line [11:07:45]line [11:07:45]written 0, free lines is 3597 [11:07:45]MH_Cut [11:07:45]Write to MH i2c: D1 01 00 E2 02 01 B6 [11:07:45]Write i2c OK [11:07:45]MH_I2C_Read... [11:07:45]Read from MH i2c: D1 [11:07:45]MH_I2C_Read... [11:07:45]Read from MH i2c: D1 01 00 [11:07:45]MH_I2C_Read... [11:07:45]Read from MH i2c: D1 01 00 E2 02 00 B5 [11:07:45]Write to MH i2c: 01 00 00 E3 02 E5 [11:07:45]Write i2c OK [11:07:45]MH_I2C_Read... [11:07:46]OFD Sender: No OFD packet to send [11:07:46]*** Cut start [11:07:46]*** Partial cut [11:07:46]*** CUTSNS_PIN = 1 [11:07:46]*** CUTSNS_PIN = 0 [11:07:46]*** Brake cut motor [11:07:46]Read from MH i2c: 01 [11:07:46]MH_I2C_Read... [11:07:46]Read from MH i2c: 01 07 00 [11:07:46]MH_I2C_Read... [11:07:46]*** Stop cut motor [11:07:46]*** Cut end [11:07:46]Read from MH i2c: 01 07 00 E3 02 00 00 00 00 00 FF 0F FA [11:07:46]process_action print_text done [11:07:46]requested_data is exist [11:07:46]produce_requested_data [11:07:46]requested_item fm.sn is exist - process it [11:07:46]wFMCommunicate request_size=4 [11:07:46]MH_SAM_APDU [11:07:46]CAPDU: 80 11 00 00 [11:07:46]Write to MH i2c: E2 08 00 E4 02 80 11 00 00 00 00 00 00 60 [11:07:46]Write i2c OK [11:07:46]MH_I2C_Read... [11:07:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:46]Read from MH i2c: E2 [11:07:46]MH_I2C_Read... [11:07:46]Read from MH i2c: E2 17 00 [11:07:46]MH_I2C_Read... [11:07:46]Read from MH i2c: E2 17 00 E4 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B6 [11:07:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:07:46]wFMCommunicate OK [11:07:46]requested_item fd.num is exist - process it [11:07:46]SAM_PROTO_GetFieldsCounters [11:07:46]wFMCommunicate request_size=4 [11:07:46]MH_SAM_APDU [11:07:46]CAPDU: 80 13 00 00 [11:07:46]Write to MH i2c: E2 08 00 E5 02 80 13 00 00 00 00 00 00 63 [11:07:46]Write i2c OK [11:07:46]MH_I2C_Read... [11:07:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:07:46]Read from MH i2c: E2 [11:07:46]MH_I2C_Read... [11:07:46]Read from MH i2c: E2 62 00 [11:07:46]MH_I2C_Read... [11:07:46]Read from MH i2c: E2 62 00 E5 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 72 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [11:07: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 72 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:07:46]wFMCommunicate OK [11:07:46]SAM_PROTO_GetFieldsCounters done [11:07:46]requested_item shift.num is exist - process it [11:07:46]requested_item shift.opened is exist - process it [11:07:46]req_shift_opened [11:07:46]FM_GetShiftState [11:07:46]SAM_PROTO_GetShiftState [11:07:46]wFMCommunicate request_size=4 [11:07:46]MH_SAM_APDU [11:07:46]CAPDU: 80 13 01 00 [11:07:46]Write to MH i2c: E2 08 00 E6 02 80 13 01 00 00 00 00 00 65 [11:07:46]Write i2c OK [11:07:46]MH_I2C_Read... [11:07:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:46]Read from MH i2c: E2 [11:07:46]MH_I2C_Read... [11:07:46]Read from MH i2c: E2 0E 00 [11:07:46]MH_I2C_Read... [11:07:46]Read from MH i2c: E2 0E 00 E6 02 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 3E [11:07:46]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [11:07:46]wFMCommunicate OK [11:07:46]SAM_PROTO_GetShiftState done [11:07:46]FM_GetShiftState done [11:07:46]req_shift_opened done [11:07:46]requested_item shift.open_date is exist - process it [11:07:46]req_shift_open_date [11:07:46]req_shift_open_date done [11:07:46]produce_requested_data done [11:07:46]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165234,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [11:07:46]process_action_free print_text [11:07:46]json_value_free [11:07:46]json_value_free done [11:07:46]process_json_proto returns [11:07:46]Send response to host [11:07:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165234,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [11:07:46]free response buf [11:07:46]execute_script done [11:07:46]execute_script returns [11:07:46]free content buf [11:07:46]Sock 10.Close socket [11:07:46]Sock 10.Thread stoped [11:07:51]OFD Sender: No OFD packet to send [11:07:56]OFD Sender: No OFD packet to send [11:08:01]OFD Sender: No OFD packet to send [11:08:06]OFD Sender: No OFD packet to send [11:08:11]OFD Sender: No OFD packet to send [11:08:16]OFD Sender: No OFD packet to send [11:08:20]accept exits with 8 [11:08:20]New connection [11:08:20]New thread 3066854756 created [11:08:20]Thread 3066711396 joined [11:08:20]Waiting for new connection... [11:08:20] Sock 8.Parse request [11:08:20]Sock 8.Check first char [11:08:20]Sock 8.First char is OK [11:08:20]request: POST /json_proto HTTP/1.0 [11:08:20]Method: POST [11:08:20]URL: /json_proto [11:08:20]Method is POST - this is cgi request [11:08:20]url: /json_proto [11:08:20]query_string will be loaded in cgi processing [11:08:20]execute_cgi json_proto POST (null) [11:08:20]execute_cgi path=json_proto method=POST [11:08:20]POST find Content-Length [11:08:20]Host: 172.17.56.4:8080 [11:08:20]Content-Length: 677 [11:08:20]Content-Type: application/json [11:08:20] [11:08:20]POST finish read [11:08:20]Found Content-Length = 677 [11:08:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459341", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:20]execute_script... [11:08: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)459341", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:20]POST & json_proto [11:08:20]process_json_proto [11:08:20]json parsed OK: [11:08:20]protocol is kg_v1.0 [11:08:20]action value=close_receipt [11:08:20]process_action close_receipt [11:08:20]cmd_close_receipt [11:08:20]MH_GetDate [11:08:20]Write to MH i2c: F0 00 00 E7 02 D8 [11:08:20]Write i2c OK [11:08:20]MH_I2C_Read... [11:08:20]Read from MH i2c: F0 [11:08:20]MH_I2C_Read... [11:08:20]Read from MH i2c: F0 09 00 [11:08:20]MH_I2C_Read... [11:08:20]Read from MH i2c: F0 09 00 E7 02 00 24 03 95 66 C9 DC B2 64 BE [11:08:20]GetLastDocTimeStamp 1721041528 [11:08:20]current date 1721041700 [11:08:20]FM_GetShiftState [11:08:20]SAM_PROTO_GetShiftState [11:08:20]wFMCommunicate request_size=4 [11:08:20]MH_SAM_APDU [11:08:20]CAPDU: 80 13 01 00 [11:08:20]Write to MH i2c: E2 08 00 E8 02 80 13 01 00 00 00 00 00 67 [11:08:20]Write i2c OK [11:08:20]MH_I2C_Read... [11:08:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:20]Read from MH i2c: E2 [11:08:20]MH_I2C_Read... [11:08:20]Read from MH i2c: E2 0E 00 [11:08:20]MH_I2C_Read... [11:08:20]Read from MH i2c: E2 0E 00 E8 02 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 40 [11:08:20]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [11:08:20]wFMCommunicate OK [11:08:20]SAM_PROTO_GetShiftState done [11:08:20]FM_GetShiftState done [11:08:20]opened in 1721003876 [11:08:20]opened+sec_in_day 1721090276 [11:08:20]quantity*price = 30004 [11:08:20]sum+1 = 30006 [11:08:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 108 15.07.2024 11:08 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165235 ФПД: 267085526850213 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T110820&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165235&fm=267085526850213&tin=02508201610067®Number=0000000000090829&sum=30000 [11:08:21]StoreToDocumentArchive [11:08:21]shift 448 fd 165235 [11:08:21]save to /storage/0448/doc_00165235 [11:08:21]save last doc name /storage/0448/doc_00165235 to /storage/kkm_last_doc_name [11:08:21]save OK [11:08:21]Clear old archive folders... [11:08:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:08:21]tlvbuf is 01844CA0 [11:08:21]SAM_PROTO_ClearQueue [11:08:21]wFMCommunicate request_size=4 [11:08:21]MH_SAM_APDU [11:08:21]CAPDU: 80 09 00 00 [11:08:21]Write to MH i2c: E2 08 00 F5 02 80 09 00 00 00 00 00 00 69 [11:08:21]Write i2c OK [11:08:21]MH_I2C_Read... [11:08:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:08:21]Read from MH i2c: E2 [11:08:21]MH_I2C_Read... [11:08:21]Read from MH i2c: E2 03 00 [11:08:21]MH_I2C_Read... [11:08:21]Read from MH i2c: E2 03 00 F5 02 00 90 00 6B [11:08:21]RAPDU: 90 00 [11:08:21]wFMCommunicate OK [11:08:21]SAM_PROTO_ClearQueue done [11:08:21]KKMCreateOFDPacket [11:08:21]OFDProtocolAddRootSTLVToBuf [11:08:21]FM_MakeSignedData [11:08:21]FM_MakeSignedData [11:08:21]SAM_PROTO_SignData [11:08:21]wFMCommunicate request_size=4 [11:08:21]MH_SAM_APDU [11:08:21]CAPDU: 80 0D 01 02 [11:08:21]Write to MH i2c: E2 08 00 F6 02 80 0D 01 02 00 00 00 00 71 [11:08:21]Write i2c OK [11:08:21]MH_I2C_Read... [11:08:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:08:21]Read from MH i2c: E2 [11:08:21]MH_I2C_Read... [11:08:21]Read from MH i2c: E2 03 00 [11:08:21]MH_I2C_Read... [11:08:21]Read from MH i2c: E2 03 00 F6 02 00 90 00 6C [11:08:21]RAPDU: 90 00 [11:08:21]wFMCommunicate OK [11:08:21]wFMCommunicate request_size=255 [11:08:21]MH_SAM_APDU [11:08:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 24 03 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 73 85 02 00 35 04 06 00 F2 [11:08:21]Write to MH i2c: E2 02 01 F7 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 24 03 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 73 85 02 00 35 04 06 00 F2 00 00 E6 [11:08:21]Write i2c OK [11:08:21]MH_I2C_Read... [11:08:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:21]Read from MH i2c: E2 [11:08:21]MH_I2C_Read... [11:08:21]Read from MH i2c: E2 03 00 [11:08:21]MH_I2C_Read... [11:08:21]Read from MH i2c: E2 03 00 F7 02 00 90 00 6D [11:08:21]RAPDU: 90 00 [11:08:21]wFMCommunicate OK [11:08:21]wFMCommunicate request_size=10 [11:08:21]MH_SAM_APDU [11:08:21]CAPDU: 80 0D 02 02 05 E9 B1 F3 DA A5 [11:08:21]Write to MH i2c: E2 0D 00 F8 02 80 0D 02 02 05 00 E9 B1 F3 DA A5 00 00 8A [11:08:21]Write i2c OK [11:08:21]MH_I2C_Read... [11:08:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:21]Read from MH i2c: E2 [11:08:21]MH_I2C_Read... [11:08:21]Read from MH i2c: E2 03 00 [11:08:21]MH_I2C_Read... [11:08:21]Read from MH i2c: E2 03 00 F8 02 00 90 00 6E [11:08:21]RAPDU: 90 00 [11:08:21]wFMCommunicate OK [11:08:21]wFMCommunicate request_size=4 [11:08:21]MH_SAM_APDU [11:08:21]CAPDU: 80 0D 03 02 [11:08:21]Write to MH i2c: E2 08 00 F9 02 80 0D 03 02 00 00 00 00 76 [11:08:21]Write i2c OK [11:08:21]MH_I2C_Read... [11:08:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:08:21]Read from MH i2c: E2 [11:08:21]MH_I2C_Read... [11:08:21]Read from MH i2c: E2 0B 00 [11:08:21]MH_I2C_Read... [11:08:21]Read from MH i2c: E2 0B 00 F9 02 00 CF 7E 4F 7D 15 2B 5C C9 90 00 F5 [11:08:21]RAPDU: CF 7E 4F 7D 15 2B 5C C9 90 00 [11:08:21]wFMCommunicate OK [11:08:21]SAM_PROTO_SignData done [11:08:21]FM_MakeSignedData done [11:08:21]CreateOFDProtocolMessage [11:08:21]wFMCommunicate request_size=4 [11:08:21]MH_SAM_APDU [11:08:21]CAPDU: 80 11 00 00 [11:08:21]Write to MH i2c: E2 08 00 FA 02 80 11 00 00 00 00 00 00 76 [11:08:21]Write i2c OK [11:08:21]MH_I2C_Read... [11:08:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:21]Read from MH i2c: E2 [11:08:21]MH_I2C_Read... [11:08:21]Read from MH i2c: E2 17 00 [11:08:21]MH_I2C_Read... [11:08:21]Read from MH i2c: E2 17 00 FA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CC [11:08:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:08:21]wFMCommunicate OK [11:08:21]CreateOFDProtocolMessage done [11:08:21]OFDSenderStorePacket 165235 [11:08:21]StoreOFDPacket docnum=165235 [11:08:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 93 B2 07 01 CB B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 24 03 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 73 85 02 00 35 04 06 00 F2 E9 B1 F3 DA A5 CF 7E 4F 7D 15 2B 5C C9 [11:08:21]CheckFolder [11:08:21]dirname=/storage/ofd_packets [11:08:21]CheckFolder done [11:08:21]ProducePacketName [11:08:21]name=ofd_packets/00165235 [11:08:21]NVStorageSaveData ofd_packets/00165235 [11:08:21]File name is /storage/ofd_packets/00165235 [11:08:21]Write 301 bytes [11:08:21]NVStorageSaveData done [11:08:21]OFDSenderStorePacket done [11:08:21]KKMCreateOFDPacket done [11:08:21]NVStorageSaveData kkm_last_timestamp [11:08:21]File name is /storage/kkm_last_timestamp [11:08:21]Write 4 bytes [11:08:21]NVStorageSaveData done [11:08:21]OFD Sender: Processing packet 165235 [packets to send 106, broken 105] [11:08:21]ProducePacketName [11:08:21]name=ofd_packets/00165235 [11:08:21]OFD Sender: To server: pG, [11:08:21]CommunicateWithHost lk.salyk.kg:30040 [11:08:21]ConnectInit lk.salyk.kg [11:08:21]ExternCall_PrintAddStr [11:08:21]wPrintStart [11:08:21]Write to MH i2c: 01 00 00 FB 02 FD [11:08:21]Write i2c OK [11:08:21]MH_I2C_Read... [11:08:21]Read from MH i2c: 01 [11:08:21]MH_I2C_Read... [11:08:21]Read from MH i2c: 01 07 00 [11:08:21]MH_I2C_Read... [11:08:21]Read from MH i2c: 01 07 00 FB 02 00 00 00 00 00 FF 0F 12 [11:08:21]RasterBufferAndPrint [11:08:21]line Счет N : (1)459341 [11:08:21]line ИНН: 02508201610067 [11:08:21]line Контрольно-Кассовый Чек [11:08:21]line ПРОДАЖА [11:08:21]line ТРК (МРК, ГНК) : 12 [11:08:21]line Товар: 2710124130 [11:08:21]line Аи-92-К-5 [11:08:21]line 4.560 * 65.80 [11:08:21]line = 300.05 [11:08:21]line НДС 12% НСП 1% [11:08:21]line > о реализуемом товаре [11:08:21]line ОКРУГЛЕНИЕ: -0.05 [11:08:21]line ИТОГО: 300.00 [11:08:21]line Внесено: 300.00 [11:08:21]line СДАЧА: 0.00 [11:08:21]line НСП 1% : 2.65 [11:08:21]line НДС 12% : 31.86 [11:08:21]line Наличными: 300.00 [11:08:21]line Безнал.: 0.00 [11:08:21]line Место: АЗС № 72 "Партнер Нефть" [11:08:21]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:08:21]line СНО: Общий режим [11:08:21]line Чек 108 15.07.2024 11:08 [11:08:21]line Смена: 448 ФФД: 1.0 [11:08:21]line ЗНМ: 0300000160 [11:08:21]line РНМ: 0000000000090829 [11:08:21]line Версия ККМ: 001 [11:08:21]line ФМ: 0000000000874718 [11:08:21]line ФД: 165235 [11:08:21]line ФПД: 267085526850213 [11:08:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T110820&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165235&fm=267085526850213&tin=02508201610067®Number=0000000000090829&sum=30000 [11:08:22]Connected sock=11 [11:08: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 37 31 38 0F 01 00 00 93 B2 07 01 CB B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 24 03 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 73 85 02 00 35 04 06 00 F2 E9 B1 F3 DA A5 CF 7E 4F 7D 15 2B 5C C9 [11:08:22]written 0, free lines is 4095 [11:08:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 AE 6D 47 00 63 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 37 31 38 10 04 04 00 73 85 02 00 F4 03 04 00 AF A9 94 66 B6 04 01 00 00 F5 6F 96 89 27 13 2A 6E [11:08:22]CommunicateWithHost err = 0 [11:08:22]CheckOFDResponse [11:08:22]1017 (14) - 77093643461234 [11:08:22]1041 (16) - 0000000000874718 [11:08:22]1040 (4) - 165235 [11:08:22]1012 (4) - 15.07.2024 04:46 [11:08:22]1206 (1) - 0 [11:08:22]OFD Sender: Remove packet 165235 [11:08:22]ProducePacketName [11:08:22]name=ofd_packets/00165235 [11:08:22]NVStorageDeleteData [11:08:22]Write to MH i2c: 01 00 00 25 03 28 [11:08:22]Write i2c OK [11:08:22]MH_I2C_Read... [11:08:22]Read from MH i2c: 01 [11:08:22]MH_I2C_Read... [11:08:22]Read from MH i2c: 01 07 00 [11:08:22]MH_I2C_Read... [11:08:22]Read from MH i2c: 01 07 00 25 03 00 00 00 00 00 00 0D 3C [11:08:22]RasterBufferAndPrint [11:08:22]line [11:08:22]line [11:08:22]line [11:08:22]line [11:08:22]line [11:08:22]written 0, free lines is 3334 [11:08:22]MH_Cut [11:08:22]Write to MH i2c: D1 01 00 2C 03 01 01 [11:08:22]Write i2c OK [11:08:22]MH_I2C_Read... [11:08:22]Read from MH i2c: D1 [11:08:22]MH_I2C_Read... [11:08:22]Read from MH i2c: D1 01 00 [11:08:22]MH_I2C_Read... [11:08:22]Read from MH i2c: D1 01 00 2C 03 00 00 [11:08:22]Write to MH i2c: 01 00 00 2D 03 30 [11:08:22]Write i2c OK [11:08:22]MH_I2C_Read... [11:08:22]OFD Sender: No OFD packet to send [11:08:23]*** Cut start [11:08:23]*** Partial cut [11:08:23]*** CUTSNS_PIN = 1 [11:08:23]*** CUTSNS_PIN = 0 [11:08:23]*** Brake cut motor [11:08:23]Read from MH i2c: 01 [11:08:23]MH_I2C_Read... [11:08:23]*** Stop cut motor [11:08:23]*** Cut end [11:08:23]Read from MH i2c: 01 07 00 [11:08:23]MH_I2C_Read... [11:08:23]Read from MH i2c: 01 07 00 2D 03 00 00 00 00 00 FF 0F 45 [11:08:23]process_action close_receipt done [11:08:23]requested_data is exist [11:08:23]produce_requested_data [11:08:23]requested_item fm.sn is exist - process it [11:08:23]wFMCommunicate request_size=4 [11:08:23]MH_SAM_APDU [11:08:23]CAPDU: 80 11 00 00 [11:08:23]Write to MH i2c: E2 08 00 2E 03 80 11 00 00 00 00 00 00 AB [11:08:23]Write i2c OK [11:08:23]MH_I2C_Read... [11:08:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:23]Read from MH i2c: E2 [11:08:23]MH_I2C_Read... [11:08:23]Read from MH i2c: E2 17 00 [11:08:23]MH_I2C_Read... [11:08:23]Read from MH i2c: E2 17 00 2E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 01 [11:08:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:08:23]wFMCommunicate OK [11:08:23]requested_item fd.num is exist - process it [11:08:23]SAM_PROTO_GetFieldsCounters [11:08:23]wFMCommunicate request_size=4 [11:08:23]MH_SAM_APDU [11:08:23]CAPDU: 80 13 00 00 [11:08:23]Write to MH i2c: E2 08 00 2F 03 80 13 00 00 00 00 00 00 AE [11:08:23]Write i2c OK [11:08:23]MH_I2C_Read... [11:08:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:08:24]Read from MH i2c: E2 [11:08:24]MH_I2C_Read... [11:08:24]Read from MH i2c: E2 62 00 [11:08:24]MH_I2C_Read... [11:08:24]Read from MH i2c: E2 62 00 2F 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 73 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [11:08: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 73 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:08:24]wFMCommunicate OK [11:08:24]SAM_PROTO_GetFieldsCounters done [11:08:24]requested_item shift.num is exist - process it [11:08:24]requested_item shift.opened is exist - process it [11:08:24]req_shift_opened [11:08:24]FM_GetShiftState [11:08:24]SAM_PROTO_GetShiftState [11:08:24]wFMCommunicate request_size=4 [11:08:24]MH_SAM_APDU [11:08:24]CAPDU: 80 13 01 00 [11:08:24]Write to MH i2c: E2 08 00 30 03 80 13 01 00 00 00 00 00 B0 [11:08:24]Write i2c OK [11:08:24]MH_I2C_Read... [11:08:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:24]Read from MH i2c: E2 [11:08:24]MH_I2C_Read... [11:08:24]Read from MH i2c: E2 0E 00 [11:08:24]MH_I2C_Read... [11:08:24]Read from MH i2c: E2 0E 00 30 03 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 89 [11:08:24]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [11:08:24]wFMCommunicate OK [11:08:24]SAM_PROTO_GetShiftState done [11:08:24]FM_GetShiftState done [11:08:24]req_shift_opened done [11:08:24]requested_item shift.open_date is exist - process it [11:08:24]req_shift_open_date [11:08:24]req_shift_open_date done [11:08:24]produce_requested_data done [11:08:24]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165235,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [11:08:24]process_action_free close_receipt [11:08:24]json_value_free [11:08:24]json_value_free done [11:08:24]process_json_proto returns [11:08:24]Send response to host [11:08:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165235,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [11:08:24]free response buf [11:08:24]execute_script done [11:08:24]execute_script returns [11:08:24]free content buf [11:08:24]Sock 8.Close socket [11:08:24]Sock 8.Thread stoped [11:08:27]OFD Sender: No OFD packet to send [11:08:32]OFD Sender: No OFD packet to send [11:08:37]OFD Sender: No OFD packet to send [11:08:42]OFD Sender: No OFD packet to send [11:08:47]OFD Sender: No OFD packet to send [11:08:52]OFD Sender: No OFD packet to send [11:08:57]OFD Sender: No OFD packet to send [11:08:57]accept exits with 9 [11:08:57]New connection [11:08:57]New thread 3066711396 created [11:08:57]Thread 3066854756 joined [11:08:57]Waiting for new connection... [11:08:57] Sock 9.Parse request [11:08:57]Sock 9.Check first char [11:08:57]Sock 9.First char is OK [11:08:57]request: POST /json_proto HTTP/1.0 [11:08:57]Method: POST [11:08:57]URL: /json_proto [11:08:57]Method is POST - this is cgi request [11:08:57]url: /json_proto [11:08:57]query_string will be loaded in cgi processing [11:08:57]execute_cgi json_proto POST (null) [11:08:57]execute_cgi path=json_proto method=POST [11:08:57]POST find Content-Length [11:08:57]Host: 172.17.56.4:8080 [11:08:57]Content-Length: 790 [11:08:57]Content-Type: application/json [11:08:57] [11:08:57]POST finish read [11:08:57]Found Content-Length = 790 [11:08:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459342", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 4.600, "sum" : 300.01, "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:57]execute_script... [11:08:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459342", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 4.600, "sum" : 300.01, "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:57]POST & json_proto [11:08:57]process_json_proto [11:08:57]json parsed OK: [11:08:57]protocol is kg_v1.0 [11:08:57]action value=close_receipt [11:08:57]process_action close_receipt [11:08:57]cmd_close_receipt [11:08:57]MH_GetDate [11:08:57]Write to MH i2c: F0 00 00 31 03 23 [11:08:57]Write i2c OK [11:08:57]MH_I2C_Read... [11:08:57]Read from MH i2c: F0 [11:08:57]MH_I2C_Read... [11:08:57]Read from MH i2c: F0 09 00 [11:08:57]MH_I2C_Read... [11:08:57]Read from MH i2c: F0 09 00 31 03 00 4A 03 95 66 C9 DC B2 64 2F [11:08:57]GetLastDocTimeStamp 1721041700 [11:08:57]current date 1721041738 [11:08:57]FM_GetShiftState [11:08:57]SAM_PROTO_GetShiftState [11:08:57]wFMCommunicate request_size=4 [11:08:57]MH_SAM_APDU [11:08:57]CAPDU: 80 13 01 00 [11:08:57]Write to MH i2c: E2 08 00 32 03 80 13 01 00 00 00 00 00 B2 [11:08:57]Write i2c OK [11:08:57]MH_I2C_Read... [11:08:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:57]Read from MH i2c: E2 [11:08:57]MH_I2C_Read... [11:08:57]Read from MH i2c: E2 0E 00 [11:08:57]MH_I2C_Read... [11:08:57]Read from MH i2c: E2 0E 00 32 03 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 8B [11:08:57]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [11:08:57]wFMCommunicate OK [11:08:57]SAM_PROTO_GetShiftState done [11:08:57]FM_GetShiftState done [11:08:57]opened in 1721003876 [11:08:57]opened+sec_in_day 1721090276 [11:08:57]quantity*price = 30001 [11:08:57]sum+1 = 30002 [11:08:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.01 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 0.00 Безнал.: 300.01 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 109 15.07.2024 11:08 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 165236 ФПД: 103329756715004 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T110858&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165236&fm=103329756715004&tin=02508201610067®Number=0000000000090829&sum=30001 [11:08:59]StoreToDocumentArchive [11:08:59]shift 448 fd 165236 [11:08:59]save to /storage/0448/doc_00165236 [11:08:59]save last doc name /storage/0448/doc_00165236 to /storage/kkm_last_doc_name [11:08:59]save OK [11:08:59]Clear old archive folders... [11:08:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:08:59]tlvbuf is 018417E0 [11:08:59]SAM_PROTO_ClearQueue [11:08:59]wFMCommunicate request_size=4 [11:08:59]MH_SAM_APDU [11:08:59]CAPDU: 80 09 00 00 [11:08:59]Write to MH i2c: E2 08 00 3F 03 80 09 00 00 00 00 00 00 B4 [11:08:59]Write i2c OK [11:08:59]MH_I2C_Read... [11:08:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:08:59]Read from MH i2c: E2 [11:08:59]MH_I2C_Read... [11:08:59]Read from MH i2c: E2 03 00 [11:08:59]MH_I2C_Read... [11:08:59]Read from MH i2c: E2 03 00 3F 03 00 90 00 B6 [11:08:59]RAPDU: 90 00 [11:08:59]wFMCommunicate OK [11:08:59]SAM_PROTO_ClearQueue done [11:08:59]KKMCreateOFDPacket [11:08:59]OFDProtocolAddRootSTLVToBuf [11:08:59]FM_MakeSignedData [11:08:59]FM_MakeSignedData [11:08:59]SAM_PROTO_SignData [11:08:59]wFMCommunicate request_size=4 [11:08:59]MH_SAM_APDU [11:08:59]CAPDU: 80 0D 01 02 [11:08:59]Write to MH i2c: E2 08 00 40 03 80 0D 01 02 00 00 00 00 BC [11:08:59]Write i2c OK [11:08:59]MH_I2C_Read... [11:08:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:08:59]Read from MH i2c: E2 [11:08:59]MH_I2C_Read... [11:08:59]Read from MH i2c: E2 03 00 [11:08:59]MH_I2C_Read... [11:08:59]Read from MH i2c: E2 03 00 40 03 00 90 00 B7 [11:08:59]RAPDU: 90 00 [11:08:59]wFMCommunicate OK [11:08:59]wFMCommunicate request_size=255 [11:08:59]MH_SAM_APDU [11:08:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 31 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 4A 03 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 74 85 02 00 35 04 06 00 5D [11:08:59]Write to MH i2c: E2 02 01 41 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 31 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 4A 03 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 74 85 02 00 35 04 06 00 5D 00 00 B0 [11:08:59]Write i2c OK [11:08:59]MH_I2C_Read... [11:08:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:59]Read from MH i2c: E2 [11:08:59]MH_I2C_Read... [11:08:59]Read from MH i2c: E2 03 00 [11:08:59]MH_I2C_Read... [11:08:59]Read from MH i2c: E2 03 00 41 03 00 90 00 B8 [11:08:59]RAPDU: 90 00 [11:08:59]wFMCommunicate OK [11:08:59]wFMCommunicate request_size=10 [11:08:59]MH_SAM_APDU [11:08:59]CAPDU: 80 0D 02 02 05 FA 55 71 97 FC [11:08:59]Write to MH i2c: E2 0D 00 42 03 80 0D 02 02 05 00 FA 55 71 97 FC 00 00 1C [11:08:59]Write i2c OK [11:08:59]MH_I2C_Read... [11:08:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:59]Read from MH i2c: E2 [11:08:59]MH_I2C_Read... [11:08:59]Read from MH i2c: E2 03 00 [11:08:59]MH_I2C_Read... [11:08:59]Read from MH i2c: E2 03 00 42 03 00 90 00 B9 [11:08:59]RAPDU: 90 00 [11:08:59]wFMCommunicate OK [11:08:59]wFMCommunicate request_size=4 [11:08:59]MH_SAM_APDU [11:08:59]CAPDU: 80 0D 03 02 [11:08:59]Write to MH i2c: E2 08 00 43 03 80 0D 03 02 00 00 00 00 C1 [11:08:59]Write i2c OK [11:08:59]MH_I2C_Read... [11:08:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:08:59]Read from MH i2c: E2 [11:08:59]MH_I2C_Read... [11:08:59]Read from MH i2c: E2 0B 00 [11:08:59]MH_I2C_Read... [11:08:59]Read from MH i2c: E2 0B 00 43 03 00 8D F7 FC 29 2B D5 C1 FF 90 00 2B [11:08:59]RAPDU: 8D F7 FC 29 2B D5 C1 FF 90 00 [11:08:59]wFMCommunicate OK [11:08:59]SAM_PROTO_SignData done [11:08:59]FM_MakeSignedData done [11:08:59]CreateOFDProtocolMessage [11:08:59]wFMCommunicate request_size=4 [11:08:59]MH_SAM_APDU [11:08:59]CAPDU: 80 11 00 00 [11:08:59]Write to MH i2c: E2 08 00 44 03 80 11 00 00 00 00 00 00 C1 [11:08:59]Write i2c OK [11:08:59]MH_I2C_Read... [11:08:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:59]Read from MH i2c: E2 [11:08:59]MH_I2C_Read... [11:08:59]Read from MH i2c: E2 17 00 [11:08:59]MH_I2C_Read... [11:08:59]Read from MH i2c: E2 17 00 44 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 17 [11:08:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:08:59]wFMCommunicate OK [11:08:59]CreateOFDProtocolMessage done [11:08:59]OFDSenderStorePacket 165236 [11:08:59]StoreOFDPacket docnum=165236 [11:08:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 1D 36 07 01 0F 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 F8 11 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 31 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 4A 03 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 74 85 02 00 35 04 06 00 5D FA 55 71 97 FC 8D F7 FC 29 2B D5 C1 FF [11:08:59]CheckFolder [11:08:59]dirname=/storage/ofd_packets [11:08:59]CheckFolder done [11:08:59]ProducePacketName [11:08:59]name=ofd_packets/00165236 [11:08:59]NVStorageSaveData ofd_packets/00165236 [11:08:59]File name is /storage/ofd_packets/00165236 [11:08:59]Write 301 bytes [11:08:59]NVStorageSaveData done [11:08:59]OFDSenderStorePacket done [11:08:59]KKMCreateOFDPacket done [11:08:59]NVStorageSaveData kkm_last_timestamp [11:08:59]File name is /storage/kkm_last_timestamp [11:08:59]Write 4 bytes [11:08:59]NVStorageSaveData done [11:08:59]ExternCall_PrintAddStr [11:08:59]wPrintStart [11:08:59]Write to MH i2c: 01 00 00 45 03 48 [11:08:59]Write i2c OK [11:08:59]MH_I2C_Read... [11:08:59]Read from MH i2c: 01 [11:08:59]MH_I2C_Read... [11:08:59]Read from MH i2c: 01 07 00 [11:08:59]MH_I2C_Read... [11:08:59]Read from MH i2c: 01 07 00 45 03 00 00 00 00 00 FF 0F 5D [11:08:59]RasterBufferAndPrint [11:08:59]line Счет N : (1)459342 [11:08:59]line ИНН: 02508201610067 [11:08:59]line Контрольно-Кассовый Чек [11:08:59]line ПРОДАЖА [11:08:59]line ТРК (МРК, ГНК) : 22 [11:08:59]line Товар: 2710124130 [11:08:59]line Аи-92-К-5 [11:08:59]line 4.600 * 65.22 [11:08:59]line = 300.01 [11:08:59]line НДС 12% НСП 1% [11:08:59]line > о реализуемом товаре [11:08:59]line ИТОГО: 300.01 [11:08:59]line НСП 1% : 2.65 [11:08:59]line НДС 12% : 31.86 [11:08:59]line Наличными: 0.00 [11:08:59]line Безнал.: 300.01 [11:08:59]line Место: АЗС № 72 "Партнер Нефть" [11:08:59]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:08:59]line СНО: Общий режим [11:08:59]line Чек 109 15.07.2024 11:08 [11:08:59]line Смена: 448 ФФД: 1.0 [11:08:59]line ЗНМ: 0300000160 [11:08:59]line РНМ: 0000000000090829 [11:08:59]line Версия ККМ: 001 [11:08:59]line Платежная система: KICB Банк [11:08:59]line ФМ: 0000000000874718 [11:08:59]line ФД: 165236 [11:08:59]line ФПД: 103329756715004 [11:08:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T110858&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165236&fm=103329756715004&tin=02508201610067®Number=0000000000090829&sum=30001 [11:08:59]written 0, free lines is 4095 [11:08:59]OFD Sender: Processing packet 165236 [packets to send 106, broken 105] [11:08:59]ProducePacketName [11:08:59]name=ofd_packets/00165236 [11:08:59]OFD Sender: To server: pG, [11:08:59]CommunicateWithHost lk.salyk.kg:30040 [11:08:59]ConnectInit lk.salyk.kg [11:08:59]Connected sock=10 [11:08:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 1D 36 07 01 0F 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 F8 11 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 31 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 4A 03 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 74 85 02 00 35 04 06 00 5D FA 55 71 97 FC 8D F7 FC 29 2B D5 C1 FF [11:08:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 3D AB 47 00 41 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 74 85 02 00 F4 03 04 00 D4 A9 94 66 B6 04 01 00 00 CB B0 56 C9 E9 77 9D E5 [11:08:59]CommunicateWithHost err = 0 [11:08:59]CheckOFDResponse [11:08:59]1017 (14) - 77093643461234 [11:08:59]1041 (16) - 0000000000874718 [11:08:59]1040 (4) - 165236 [11:08:59]1012 (4) - 15.07.2024 04:47 [11:08:59]1206 (1) - 0 [11:08:59]OFD Sender: Remove packet 165236 [11:08:59]ProducePacketName [11:08:59]name=ofd_packets/00165236 [11:08:59]NVStorageDeleteData [11:09:00]Write to MH i2c: 01 00 00 6E 03 71 [11:09:00]Write i2c OK [11:09:00]MH_I2C_Read... [11:09:00]Read from MH i2c: 01 [11:09:00]MH_I2C_Read... [11:09:00]Read from MH i2c: 01 07 00 [11:09:00]MH_I2C_Read... [11:09:00]Read from MH i2c: 01 07 00 6E 03 00 00 00 00 00 08 0D 8D [11:09:00]RasterBufferAndPrint [11:09:00]line [11:09:00]line [11:09:00]line [11:09:00]line [11:09:00]line [11:09:00]written 0, free lines is 3342 [11:09:00]MH_Cut [11:09:00]Write to MH i2c: D1 01 00 75 03 01 4A [11:09:00]Write i2c OK [11:09:00]MH_I2C_Read... [11:09:00]Read from MH i2c: D1 [11:09:00]MH_I2C_Read... [11:09:00]Read from MH i2c: D1 01 00 [11:09:00]MH_I2C_Read... [11:09:00]Read from MH i2c: D1 01 00 75 03 00 49 [11:09:00]Write to MH i2c: 01 00 00 76 03 79 [11:09:00]Write i2c OK [11:09:00]MH_I2C_Read... [11:09:00]OFD Sender: No OFD packet to send [11:09:00]*** Cut start [11:09:00]*** Partial cut [11:09:00]*** CUTSNS_PIN = 1 [11:09:00]*** CUTSNS_PIN = 0 [11:09:00]*** Brake cut motor [11:09:01]Read from MH i2c: 01 [11:09:01]MH_I2C_Read... [11:09:01]*** Stop cut motor [11:09:01]*** Cut end [11:09:01]Read from MH i2c: 01 07 00 [11:09:01]MH_I2C_Read... [11:09:01]Read from MH i2c: 01 07 00 76 03 00 00 00 00 00 FF 0F 8E [11:09:01]process_action close_receipt done [11:09:01]requested_data is exist [11:09:01]produce_requested_data [11:09:01]requested_item fm.sn is exist - process it [11:09:01]wFMCommunicate request_size=4 [11:09:01]MH_SAM_APDU [11:09:01]CAPDU: 80 11 00 00 [11:09:01]Write to MH i2c: E2 08 00 77 03 80 11 00 00 00 00 00 00 F4 [11:09:01]Write i2c OK [11:09:01]MH_I2C_Read... [11:09:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:01]Read from MH i2c: E2 [11:09:01]MH_I2C_Read... [11:09:01]Read from MH i2c: E2 17 00 [11:09:01]MH_I2C_Read... [11:09:01]Read from MH i2c: E2 17 00 77 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4A [11:09:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:09:01]wFMCommunicate OK [11:09:01]requested_item fd.num is exist - process it [11:09:01]SAM_PROTO_GetFieldsCounters [11:09:01]wFMCommunicate request_size=4 [11:09:01]MH_SAM_APDU [11:09:01]CAPDU: 80 13 00 00 [11:09:01]Write to MH i2c: E2 08 00 78 03 80 13 00 00 00 00 00 00 F7 [11:09:01]Write i2c OK [11:09:01]MH_I2C_Read... [11:09:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:09:01]Read from MH i2c: E2 [11:09:01]MH_I2C_Read... [11:09:01]Read from MH i2c: E2 62 00 [11:09:01]MH_I2C_Read... [11:09:01]Read from MH i2c: E2 62 00 78 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 74 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [11:09:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 74 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:09:01]wFMCommunicate OK [11:09:01]SAM_PROTO_GetFieldsCounters done [11:09:01]requested_item shift.num is exist - process it [11:09:01]requested_item shift.opened is exist - process it [11:09:01]req_shift_opened [11:09:01]FM_GetShiftState [11:09:01]SAM_PROTO_GetShiftState [11:09:01]wFMCommunicate request_size=4 [11:09:01]MH_SAM_APDU [11:09:01]CAPDU: 80 13 01 00 [11:09:01]Write to MH i2c: E2 08 00 79 03 80 13 01 00 00 00 00 00 F9 [11:09:01]Write i2c OK [11:09:01]MH_I2C_Read... [11:09:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:01]Read from MH i2c: E2 [11:09:01]MH_I2C_Read... [11:09:01]Read from MH i2c: E2 0E 00 [11:09:01]MH_I2C_Read... [11:09:01]Read from MH i2c: E2 0E 00 79 03 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 D2 [11:09:01]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [11:09:01]wFMCommunicate OK [11:09:01]SAM_PROTO_GetShiftState done [11:09:01]FM_GetShiftState done [11:09:01]req_shift_opened done [11:09:01]requested_item shift.open_date is exist - process it [11:09:01]req_shift_open_date [11:09:01]req_shift_open_date done [11:09:01]produce_requested_data done [11:09:01]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165236,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [11:09:01]process_action_free close_receipt [11:09:01]json_value_free [11:09:01]json_value_free done [11:09:01]process_json_proto returns [11:09:01]Send response to host [11:09:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165236,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [11:09:01]free response buf [11:09:01]execute_script done [11:09:01]execute_script returns [11:09:01]free content buf [11:09:01]Sock 9.Close socket [11:09:01]Sock 9.Thread stoped [11:09:05]OFD Sender: No OFD packet to send [11:09:10]OFD Sender: No OFD packet to send [11:09:15]OFD Sender: No OFD packet to send [11:09:20]OFD Sender: No OFD packet to send [11:09:25]OFD Sender: No OFD packet to send [11:09:30]OFD Sender: No OFD packet to send [11:09:35]OFD Sender: No OFD packet to send [11:09:40]OFD Sender: No OFD packet to send [11:09:41]accept exits with 8 [11:09:41]New connection [11:09:41]New thread 3066854756 created [11:09:41]Thread 3066711396 joined [11:09:41]Waiting for new connection... [11:09:41] Sock 8.Parse request [11:09:41]Sock 8.Check first char [11:09:41]Sock 8.First char is OK [11:09:41]request: POST /json_proto HTTP/1.0 [11:09:41]Method: POST [11:09:41]URL: /json_proto [11:09:41]Method is POST - this is cgi request [11:09:41]url: /json_proto [11:09:41]query_string will be loaded in cgi processing [11:09:41]execute_cgi json_proto POST (null) [11:09:41]execute_cgi path=json_proto method=POST [11:09:41]POST find Content-Length [11:09:41]Host: 172.17.56.4:8080 [11:09:41]Content-Length: 679 [11:09:41]Content-Type: application/json [11:09:41] [11:09:41]POST finish read [11:09:41]Found Content-Length = 679 [11:09:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459343", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\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" ] } } [11:09:41]execute_script... [11:09: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)459343", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\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" ] } } [11:09:41]POST & json_proto [11:09:41]process_json_proto [11:09:41]json parsed OK: [11:09:41]protocol is kg_v1.0 [11:09:41]action value=close_receipt [11:09:41]process_action close_receipt [11:09:41]cmd_close_receipt [11:09:41]MH_GetDate [11:09:41]Write to MH i2c: F0 00 00 7A 03 6C [11:09:41]Write i2c OK [11:09:41]MH_I2C_Read... [11:09:41]Read from MH i2c: F0 [11:09:41]MH_I2C_Read... [11:09:41]Read from MH i2c: F0 09 00 [11:09:41]MH_I2C_Read... [11:09:41]Read from MH i2c: F0 09 00 7A 03 00 76 03 95 66 C9 DC B2 64 A4 [11:09:41]GetLastDocTimeStamp 1721041738 [11:09:41]current date 1721041782 [11:09:41]FM_GetShiftState [11:09:41]SAM_PROTO_GetShiftState [11:09:41]wFMCommunicate request_size=4 [11:09:41]MH_SAM_APDU [11:09:41]CAPDU: 80 13 01 00 [11:09:41]Write to MH i2c: E2 08 00 7B 03 80 13 01 00 00 00 00 00 FB [11:09:41]Write i2c OK [11:09:41]MH_I2C_Read... [11:09:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:41]Read from MH i2c: E2 [11:09:41]MH_I2C_Read... [11:09:41]Read from MH i2c: E2 0E 00 [11:09:41]MH_I2C_Read... [11:09:41]Read from MH i2c: E2 0E 00 7B 03 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 D4 [11:09:41]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [11:09:41]wFMCommunicate OK [11:09:41]SAM_PROTO_GetShiftState done [11:09:41]FM_GetShiftState done [11:09:41]opened in 1721003876 [11:09:41]opened+sec_in_day 1721090276 [11:09:41]quantity*price = 100012 [11:09:41]sum+1 = 100014 [11:09:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 110 15.07.2024 11:09 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165237 ФПД: 62397342185816 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T110942&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165237&fm=62397342185816&tin=02508201610067®Number=0000000000090829&sum=100000 [11:09:42]StoreToDocumentArchive [11:09:42]shift 448 fd 165237 [11:09:42]save to /storage/0448/doc_00165237 [11:09:42]save last doc name /storage/0448/doc_00165237 to /storage/kkm_last_doc_name [11:09:42]save OK [11:09:42]Clear old archive folders... [11:09:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:09:42]tlvbuf is 01813780 [11:09:42]SAM_PROTO_ClearQueue [11:09:42]wFMCommunicate request_size=4 [11:09:42]MH_SAM_APDU [11:09:42]CAPDU: 80 09 00 00 [11:09:42]Write to MH i2c: E2 08 00 88 03 80 09 00 00 00 00 00 00 FD [11:09:42]Write i2c OK [11:09:42]MH_I2C_Read... [11:09:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:09:42]Read from MH i2c: E2 [11:09:42]MH_I2C_Read... [11:09:42]Read from MH i2c: E2 03 00 [11:09:42]MH_I2C_Read... [11:09:42]Read from MH i2c: E2 03 00 88 03 00 90 00 FF [11:09:42]RAPDU: 90 00 [11:09:42]wFMCommunicate OK [11:09:42]SAM_PROTO_ClearQueue done [11:09:42]KKMCreateOFDPacket [11:09:42]OFDProtocolAddRootSTLVToBuf [11:09:42]FM_MakeSignedData [11:09:42]FM_MakeSignedData [11:09:42]SAM_PROTO_SignData [11:09:42]wFMCommunicate request_size=4 [11:09:42]MH_SAM_APDU [11:09:42]CAPDU: 80 0D 01 02 [11:09:42]Write to MH i2c: E2 08 00 89 03 80 0D 01 02 00 00 00 00 05 [11:09:42]Write i2c OK [11:09:42]MH_I2C_Read... [11:09:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:09:43]Read from MH i2c: E2 [11:09:43]MH_I2C_Read... [11:09:43]Read from MH i2c: E2 03 00 [11:09:43]MH_I2C_Read... [11:09:43]Read from MH i2c: E2 03 00 89 03 00 90 00 00 [11:09:43]RAPDU: 90 00 [11:09:43]wFMCommunicate OK [11:09:43]wFMCommunicate request_size=255 [11:09:43]MH_SAM_APDU [11:09:43]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 6E 00 00 00 F4 03 04 00 76 03 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 75 85 02 00 35 04 06 00 38 C0 03 6A [11:09:43]Write to MH i2c: E2 02 01 8A 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 6E 00 00 00 F4 03 04 00 76 03 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 75 85 02 00 35 04 06 00 38 C0 03 6A 00 00 CA [11:09:43]Write i2c OK [11:09:43]MH_I2C_Read... [11:09:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:43]Read from MH i2c: E2 [11:09:43]MH_I2C_Read... [11:09:43]Read from MH i2c: E2 03 00 [11:09:43]MH_I2C_Read... [11:09:43]Read from MH i2c: E2 03 00 8A 03 00 90 00 01 [11:09:43]RAPDU: 90 00 [11:09:43]wFMCommunicate OK [11:09:43]wFMCommunicate request_size=7 [11:09:43]MH_SAM_APDU [11:09:43]CAPDU: 80 0D 02 02 02 79 58 [11:09:43]Write to MH i2c: E2 0A 00 8B 03 80 0D 02 02 02 00 79 58 00 00 DD [11:09:43]Write i2c OK [11:09:43]MH_I2C_Read... [11:09:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:43]Read from MH i2c: E2 [11:09:43]MH_I2C_Read... [11:09:43]Read from MH i2c: E2 03 00 [11:09:43]MH_I2C_Read... [11:09:43]Read from MH i2c: E2 03 00 8B 03 00 90 00 02 [11:09:43]RAPDU: 90 00 [11:09:43]wFMCommunicate OK [11:09:43]wFMCommunicate request_size=4 [11:09:43]MH_SAM_APDU [11:09:43]CAPDU: 80 0D 03 02 [11:09:43]Write to MH i2c: E2 08 00 8C 03 80 0D 03 02 00 00 00 00 0A [11:09:43]Write i2c OK [11:09:43]MH_I2C_Read... [11:09:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:09:43]Read from MH i2c: E2 [11:09:43]MH_I2C_Read... [11:09:43]Read from MH i2c: E2 0B 00 [11:09:43]MH_I2C_Read... [11:09:43]Read from MH i2c: E2 0B 00 8C 03 00 9D 90 42 52 15 7E DE 26 90 00 63 [11:09:43]RAPDU: 9D 90 42 52 15 7E DE 26 90 00 [11:09:43]wFMCommunicate OK [11:09:43]SAM_PROTO_SignData done [11:09:43]FM_MakeSignedData done [11:09:43]CreateOFDProtocolMessage [11:09:43]wFMCommunicate request_size=4 [11:09:43]MH_SAM_APDU [11:09:43]CAPDU: 80 11 00 00 [11:09:43]Write to MH i2c: E2 08 00 8D 03 80 11 00 00 00 00 00 00 0A [11:09:43]Write i2c OK [11:09:43]MH_I2C_Read... [11:09:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:43]Read from MH i2c: E2 [11:09:43]MH_I2C_Read... [11:09:43]Read from MH i2c: E2 17 00 [11:09:43]MH_I2C_Read... [11:09:43]Read from MH i2c: E2 17 00 8D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 60 [11:09:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:09:43]wFMCommunicate OK [11:09:43]CreateOFDProtocolMessage done [11:09:43]OFDSenderStorePacket 165237 [11:09:43]StoreOFDPacket docnum=165237 [11:09:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 92 97 04 01 62 86 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 6E 00 00 00 F4 03 04 00 76 03 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 75 85 02 00 35 04 06 00 38 C0 03 6A 79 58 9D 90 42 52 15 7E DE 26 [11:09:43]CheckFolder [11:09:43]dirname=/storage/ofd_packets [11:09:43]CheckFolder done [11:09:43]ProducePacketName [11:09:43]name=ofd_packets/00165237 [11:09:43]NVStorageSaveData ofd_packets/00165237 [11:09:43]File name is /storage/ofd_packets/00165237 [11:09:43]Write 298 bytes [11:09:43]NVStorageSaveData done [11:09:43]OFDSenderStorePacket done [11:09:43]KKMCreateOFDPacket done [11:09:43]NVStorageSaveData kkm_last_timestamp [11:09:43]File name is /storage/kkm_last_timestamp [11:09:43]Write 4 bytes [11:09:43]NVStorageSaveData done [11:09:43]ExternCall_PrintAddStr [11:09:43]wPrintStart [11:09:43]Write to MH i2c: 01 00 00 8E 03 91 [11:09:43]Write i2c OK [11:09:43]MH_I2C_Read... [11:09:43]Read from MH i2c: 01 [11:09:43]MH_I2C_Read... [11:09:43]Read from MH i2c: 01 07 00 [11:09:43]MH_I2C_Read... [11:09:43]Read from MH i2c: 01 07 00 8E 03 00 00 00 00 00 FF 0F A6 [11:09:43]RasterBufferAndPrint [11:09:43]line Счет N : (1)459343 [11:09:43]line ИНН: 02508201610067 [11:09:43]line Контрольно-Кассовый Чек [11:09:43]line ПРОДАЖА [11:09:43]line ТРК (МРК, ГНК) : 11 [11:09:43]line Товар: 2710194210 [11:09:43]line ДТ-К-5 [11:09:43]line 13.910 * 71.90 [11:09:43]line = 1000.13 [11:09:43]line НДС 12% НСП 1% [11:09:43]line > о реализуемом товаре [11:09:43]line ОКРУГЛЕНИЕ: -0.13 [11:09:43]line ИТОГО: 1000.00 [11:09:43]line Внесено: 1000.00 [11:09:43]line СДАЧА: 0.00 [11:09:43]line НСП 1% : 8.85 [11:09:43]line НДС 12% : 106.21 [11:09:43]line Наличными: 1000.00 [11:09:43]line Безнал.: 0.00 [11:09:43]line Место: АЗС № 72 "Партнер Нефть" [11:09:43]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:09:43]line СНО: Общий режим [11:09:43]line Чек 110 15.07.2024 11:09 [11:09:43]line Смена: 448 ФФД: 1.0 [11:09:43]line ЗНМ: 0300000160 [11:09:43]line РНМ: 0000000000090829 [11:09:43]line Версия ККМ: 001 [11:09:43]line ФМ: 0000000000874718 [11:09:43]line ФД: 165237 [11:09:43]line ФПД: 62397342185816 [11:09:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T110942&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165237&fm=62397342185816&tin=02508201610067®Number=0000000000090829&sum=100000 [11:09:43]OFD Sender: Processing packet 165237 [packets to send 106, broken 105] [11:09:43]ProducePacketName [11:09:43]name=ofd_packets/00165237 [11:09:43]OFD Sender: To server: pG, [11:09:43]CommunicateWithHost lk.salyk.kg:30040 [11:09:43]ConnectInit lk.salyk.kg [11:09:43]written 0, free lines is 4095 [11:09:43]Connected sock=10 [11:09: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 37 31 38 0C 01 00 00 92 97 04 01 62 86 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 6E 00 00 00 F4 03 04 00 76 03 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 75 85 02 00 35 04 06 00 38 C0 03 6A 79 58 9D 90 42 52 15 7E DE 26 [11:09:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 B7 28 47 00 65 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 37 31 38 10 04 04 00 75 85 02 00 F4 03 04 00 00 AA 94 66 B6 04 01 00 00 4C 39 DF AE 70 DA B4 2C [11:09:44]CommunicateWithHost err = 0 [11:09:44]CheckOFDResponse [11:09:44]1017 (14) - 77093643461234 [11:09:44]1041 (16) - 0000000000874718 [11:09:44]1040 (4) - 165237 [11:09:44]1012 (4) - 15.07.2024 04:48 [11:09:44]1206 (1) - 0 [11:09:44]OFD Sender: Remove packet 165237 [11:09:44]ProducePacketName [11:09:44]name=ofd_packets/00165237 [11:09:44]NVStorageDeleteData [11:09:44]Write to MH i2c: 01 00 00 B8 03 BB [11:09:44]Write i2c OK [11:09:44]MH_I2C_Read... [11:09:44]Read from MH i2c: 01 [11:09:44]MH_I2C_Read... [11:09:44]Read from MH i2c: 01 07 00 [11:09:44]MH_I2C_Read... [11:09:44]Read from MH i2c: 01 07 00 B8 03 00 00 00 00 00 F6 0C C4 [11:09:44]RasterBufferAndPrint [11:09:44]line [11:09:44]line [11:09:44]line [11:09:44]line [11:09:44]line [11:09:44]written 0, free lines is 3325 [11:09:44]MH_Cut [11:09:44]Write to MH i2c: D1 01 00 BF 03 01 94 [11:09:44]Write i2c OK [11:09:44]MH_I2C_Read... [11:09:44]Read from MH i2c: D1 [11:09:44]MH_I2C_Read... [11:09:44]Read from MH i2c: D1 01 00 [11:09:44]MH_I2C_Read... [11:09:44]Read from MH i2c: D1 01 00 BF 03 00 93 [11:09:44]Write to MH i2c: 01 00 00 C0 03 C3 [11:09:44]Write i2c OK [11:09:44]MH_I2C_Read... [11:09:44]OFD Sender: No OFD packet to send [11:09:44]*** Cut start [11:09:44]*** Partial cut [11:09:44]*** CUTSNS_PIN = 1 [11:09:44]*** CUTSNS_PIN = 0 [11:09:45]*** Brake cut motor [11:09:45]Read from MH i2c: 01 [11:09:45]MH_I2C_Read... [11:09:45]*** Stop cut motor [11:09:45]*** Cut end [11:09:45]Read from MH i2c: 01 07 00 [11:09:45]MH_I2C_Read... [11:09:45]Read from MH i2c: 01 07 00 C0 03 00 00 00 00 00 FF 0F D8 [11:09:45]process_action close_receipt done [11:09:45]requested_data is exist [11:09:45]produce_requested_data [11:09:45]requested_item fm.sn is exist - process it [11:09:45]wFMCommunicate request_size=4 [11:09:45]MH_SAM_APDU [11:09:45]CAPDU: 80 11 00 00 [11:09:45]Write to MH i2c: E2 08 00 C1 03 80 11 00 00 00 00 00 00 3E [11:09:45]Write i2c OK [11:09:45]MH_I2C_Read... [11:09:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:45]Read from MH i2c: E2 [11:09:45]MH_I2C_Read... [11:09:45]Read from MH i2c: E2 17 00 [11:09:45]MH_I2C_Read... [11:09:45]Read from MH i2c: E2 17 00 C1 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 94 [11:09:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:09:45]wFMCommunicate OK [11:09:45]requested_item fd.num is exist - process it [11:09:45]SAM_PROTO_GetFieldsCounters [11:09:45]wFMCommunicate request_size=4 [11:09:45]MH_SAM_APDU [11:09:45]CAPDU: 80 13 00 00 [11:09:45]Write to MH i2c: E2 08 00 C2 03 80 13 00 00 00 00 00 00 41 [11:09:45]Write i2c OK [11:09:45]MH_I2C_Read... [11:09:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:09:45]Read from MH i2c: E2 [11:09:45]MH_I2C_Read... [11:09:45]Read from MH i2c: E2 62 00 [11:09:45]MH_I2C_Read... [11:09:45]Read from MH i2c: E2 62 00 C2 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 75 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [11:09: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 75 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:09:45]wFMCommunicate OK [11:09:45]SAM_PROTO_GetFieldsCounters done [11:09:45]requested_item shift.num is exist - process it [11:09:45]requested_item shift.opened is exist - process it [11:09:45]req_shift_opened [11:09:45]FM_GetShiftState [11:09:45]SAM_PROTO_GetShiftState [11:09:45]wFMCommunicate request_size=4 [11:09:45]MH_SAM_APDU [11:09:45]CAPDU: 80 13 01 00 [11:09:45]Write to MH i2c: E2 08 00 C3 03 80 13 01 00 00 00 00 00 43 [11:09:45]Write i2c OK [11:09:45]MH_I2C_Read... [11:09:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:45]Read from MH i2c: E2 [11:09:45]MH_I2C_Read... [11:09:45]Read from MH i2c: E2 0E 00 [11:09:45]MH_I2C_Read... [11:09:45]Read from MH i2c: E2 0E 00 C3 03 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 1C [11:09:45]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [11:09:45]wFMCommunicate OK [11:09:45]SAM_PROTO_GetShiftState done [11:09:45]FM_GetShiftState done [11:09:45]req_shift_opened done [11:09:45]requested_item shift.open_date is exist - process it [11:09:45]req_shift_open_date [11:09:45]req_shift_open_date done [11:09:45]produce_requested_data done [11:09:45]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165237,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [11:09:45]process_action_free close_receipt [11:09:45]json_value_free [11:09:45]json_value_free done [11:09:45]process_json_proto returns [11:09:45]Send response to host [11:09:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165237,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [11:09:45]free response buf [11:09:45]execute_script done [11:09:45]execute_script returns [11:09:45]free content buf [11:09:45]Sock 8.Close socket [11:09:45]Sock 8.Thread stoped [11:09:49]OFD Sender: No OFD packet to send [11:09:54]OFD Sender: No OFD packet to send [11:09:59]OFD Sender: No OFD packet to send [11:10:04]OFD Sender: No OFD packet to send [11:10:09]OFD Sender: No OFD packet to send [11:10:14]OFD Sender: No OFD packet to send [11:10:19]OFD Sender: No OFD packet to send [11:10:24]OFD Sender: No OFD packet to send [11:10:29]OFD Sender: No OFD packet to send [11:10:34]OFD Sender: No OFD packet to send [11:10:39]OFD Sender: No OFD packet to send [11:10:44]OFD Sender: No OFD packet to send [11:10:49]OFD Sender: No OFD packet to send [11:10:54]OFD Sender: No OFD packet to send [11:10:59]OFD Sender: No OFD packet to send [11:11:04]OFD Sender: No OFD packet to send [11:11:09]OFD Sender: No OFD packet to send [11:11:14]OFD Sender: No OFD packet to send [11:11:19]OFD Sender: No OFD packet to send [11:11:21]accept exits with 9 [11:11:21]New connection [11:11:21]New thread 3066711396 created [11:11:21]Thread 3066854756 joined [11:11:21]Waiting for new connection... [11:11:21] Sock 9.Parse request [11:11:21]Sock 9.Check first char [11:11:21]Sock 9.First char is OK [11:11:21]request: POST /json_proto HTTP/1.0 [11:11:21]Method: POST [11:11:21]URL: /json_proto [11:11:21]Method is POST - this is cgi request [11:11:21]url: /json_proto [11:11:21]query_string will be loaded in cgi processing [11:11:21]execute_cgi json_proto POST (null) [11:11:21]execute_cgi path=json_proto method=POST [11:11:21]POST find Content-Length [11:11:21]Host: 172.17.56.4:8080 [11:11:21]Content-Length: 679 [11:11:21]Content-Type: application/json [11:11:21] [11:11:21]POST finish read [11:11:21]Found Content-Length = 679 [11:11:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459344", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 18.090, "sum" : 1300.67, "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" ] } } [11:11:21]execute_script... [11:11:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459344", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 18.090, "sum" : 1300.67, "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" ] } } [11:11:21]POST & json_proto [11:11:21]process_json_proto [11:11:21]json parsed OK: [11:11:21]protocol is kg_v1.0 [11:11:21]action value=close_receipt [11:11:21]process_action close_receipt [11:11:21]cmd_close_receipt [11:11:21]MH_GetDate [11:11:21]Write to MH i2c: F0 00 00 C4 03 B6 [11:11:21]Write i2c OK [11:11:21]MH_I2C_Read... [11:11:21]Read from MH i2c: F0 [11:11:21]MH_I2C_Read... [11:11:21]Read from MH i2c: F0 09 00 [11:11:21]MH_I2C_Read... [11:11:21]Read from MH i2c: F0 09 00 C4 03 00 D9 03 95 66 C9 DC B2 64 51 [11:11:21]GetLastDocTimeStamp 1721041782 [11:11:21]current date 1721041881 [11:11:21]FM_GetShiftState [11:11:21]SAM_PROTO_GetShiftState [11:11:21]wFMCommunicate request_size=4 [11:11:21]MH_SAM_APDU [11:11:21]CAPDU: 80 13 01 00 [11:11:21]Write to MH i2c: E2 08 00 C5 03 80 13 01 00 00 00 00 00 45 [11:11:21]Write i2c OK [11:11:21]MH_I2C_Read... [11:11:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:21]Read from MH i2c: E2 [11:11:21]MH_I2C_Read... [11:11:21]Read from MH i2c: E2 0E 00 [11:11:21]MH_I2C_Read... [11:11:21]Read from MH i2c: E2 0E 00 C5 03 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 1E [11:11:21]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [11:11:21]wFMCommunicate OK [11:11:21]SAM_PROTO_GetShiftState done [11:11:21]FM_GetShiftState done [11:11:21]opened in 1721003876 [11:11:21]opened+sec_in_day 1721090276 [11:11:21]quantity*price = 130067 [11:11:21]sum+1 = 130068 [11:11:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.67 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.51 НДС 12% : 138.12 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 111 15.07.2024 11:11 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165238 ФПД: 199749038329708 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T111121&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165238&fm=199749038329708&tin=02508201610067®Number=0000000000090829&sum=130000 [11:11:22]StoreToDocumentArchive [11:11:22]shift 448 fd 165238 [11:11:22]save to /storage/0448/doc_00165238 [11:11:22]save last doc name /storage/0448/doc_00165238 to /storage/kkm_last_doc_name [11:11:22]save OK [11:11:22]Clear old archive folders... [11:11:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:11:22]tlvbuf is 01841120 [11:11:22]SAM_PROTO_ClearQueue [11:11:22]wFMCommunicate request_size=4 [11:11:22]MH_SAM_APDU [11:11:22]CAPDU: 80 09 00 00 [11:11:22]Write to MH i2c: E2 08 00 D2 03 80 09 00 00 00 00 00 00 47 [11:11:22]Write i2c OK [11:11:22]MH_I2C_Read... [11:11:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:11:22]Read from MH i2c: E2 [11:11:22]MH_I2C_Read... [11:11:22]Read from MH i2c: E2 03 00 [11:11:22]MH_I2C_Read... [11:11:22]Read from MH i2c: E2 03 00 D2 03 00 90 00 49 [11:11:22]RAPDU: 90 00 [11:11:22]wFMCommunicate OK [11:11:22]SAM_PROTO_ClearQueue done [11:11:22]KKMCreateOFDPacket [11:11:22]OFDProtocolAddRootSTLVToBuf [11:11:22]FM_MakeSignedData [11:11:22]FM_MakeSignedData [11:11:22]SAM_PROTO_SignData [11:11:22]wFMCommunicate request_size=4 [11:11:22]MH_SAM_APDU [11:11:22]CAPDU: 80 0D 01 02 [11:11:22]Write to MH i2c: E2 08 00 D3 03 80 0D 01 02 00 00 00 00 4F [11:11:22]Write i2c OK [11:11:22]MH_I2C_Read... [11:11:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:11:22]Read from MH i2c: E2 [11:11:22]MH_I2C_Read... [11:11:22]Read from MH i2c: E2 03 00 [11:11:22]MH_I2C_Read... [11:11:22]Read from MH i2c: E2 03 00 D3 03 00 90 00 4A [11:11:22]RAPDU: 90 00 [11:11:22]wFMCommunicate OK [11:11:22]wFMCommunicate request_size=255 [11:11:22]MH_SAM_APDU [11:11:22]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 46 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 13 FC 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 F4 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 6F 00 00 00 F4 03 04 00 D9 03 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 76 85 02 00 35 04 06 00 B5 AB B2 79 [11:11:22]Write to MH i2c: E2 02 01 D4 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 46 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 13 FC 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 F4 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 6F 00 00 00 F4 03 04 00 D9 03 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 76 85 02 00 35 04 06 00 B5 AB B2 79 00 00 B7 [11:11:22]Write i2c OK [11:11:22]MH_I2C_Read... [11:11:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:22]Read from MH i2c: E2 [11:11:22]MH_I2C_Read... [11:11:22]Read from MH i2c: E2 03 00 [11:11:22]MH_I2C_Read... [11:11:22]Read from MH i2c: E2 03 00 D4 03 00 90 00 4B [11:11:22]RAPDU: 90 00 [11:11:22]wFMCommunicate OK [11:11:22]wFMCommunicate request_size=7 [11:11:22]MH_SAM_APDU [11:11:22]CAPDU: 80 0D 02 02 02 4F 6C [11:11:22]Write to MH i2c: E2 0A 00 D5 03 80 0D 02 02 02 00 4F 6C 00 00 11 [11:11:22]Write i2c OK [11:11:22]MH_I2C_Read... [11:11:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:22]Read from MH i2c: E2 [11:11:22]MH_I2C_Read... [11:11:22]Read from MH i2c: E2 03 00 [11:11:22]MH_I2C_Read... [11:11:22]Read from MH i2c: E2 03 00 D5 03 00 90 00 4C [11:11:22]RAPDU: 90 00 [11:11:22]wFMCommunicate OK [11:11:22]wFMCommunicate request_size=4 [11:11:22]MH_SAM_APDU [11:11:22]CAPDU: 80 0D 03 02 [11:11:22]Write to MH i2c: E2 08 00 D6 03 80 0D 03 02 00 00 00 00 54 [11:11:22]Write i2c OK [11:11:22]MH_I2C_Read... [11:11:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:11:22]Read from MH i2c: E2 [11:11:22]MH_I2C_Read... [11:11:22]Read from MH i2c: E2 0B 00 [11:11:22]MH_I2C_Read... [11:11:22]Read from MH i2c: E2 0B 00 D6 03 00 F2 25 C0 55 8B 6C 98 B9 90 00 C9 [11:11:22]RAPDU: F2 25 C0 55 8B 6C 98 B9 90 00 [11:11:22]wFMCommunicate OK [11:11:22]SAM_PROTO_SignData done [11:11:22]FM_MakeSignedData done [11:11:22]CreateOFDProtocolMessage [11:11:22]wFMCommunicate request_size=4 [11:11:22]MH_SAM_APDU [11:11:22]CAPDU: 80 11 00 00 [11:11:22]Write to MH i2c: E2 08 00 D7 03 80 11 00 00 00 00 00 00 54 [11:11:22]Write i2c OK [11:11:22]MH_I2C_Read... [11:11:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:22]Read from MH i2c: E2 [11:11:22]MH_I2C_Read... [11:11:22]Read from MH i2c: E2 17 00 [11:11:22]MH_I2C_Read... [11:11:22]Read from MH i2c: E2 17 00 D7 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AA [11:11:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:11:22]wFMCommunicate OK [11:11:22]CreateOFDProtocolMessage done [11:11:22]OFDSenderStorePacket 165238 [11:11:22]StoreOFDPacket docnum=165238 [11:11:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 AC 96 04 01 04 05 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 46 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 13 FC 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 F4 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 6F 00 00 00 F4 03 04 00 D9 03 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 76 85 02 00 35 04 06 00 B5 AB B2 79 4F 6C F2 25 C0 55 8B 6C 98 B9 [11:11:22]CheckFolder [11:11:22]dirname=/storage/ofd_packets [11:11:22]CheckFolder done [11:11:22]ProducePacketName [11:11:22]name=ofd_packets/00165238 [11:11:22]NVStorageSaveData ofd_packets/00165238 [11:11:22]File name is /storage/ofd_packets/00165238 [11:11:22]Write 298 bytes [11:11:22]NVStorageSaveData done [11:11:22]OFDSenderStorePacket done [11:11:22]KKMCreateOFDPacket done [11:11:22]NVStorageSaveData kkm_last_timestamp [11:11:22]File name is /storage/kkm_last_timestamp [11:11:22]Write 4 bytes [11:11:22]NVStorageSaveData done [11:11:22]ExternCall_PrintAddStr [11:11:22]wPrintStart [11:11:22]Write to MH i2c: 01 00 00 D8 03 DB [11:11:22]Write i2c OK [11:11:22]MH_I2C_Read... [11:11:22]Read from MH i2c: 01 [11:11:22]MH_I2C_Read... [11:11:22]Read from MH i2c: 01 07 00 [11:11:22]MH_I2C_Read... [11:11:22]Read from MH i2c: 01 07 00 D8 03 00 00 00 00 00 FF 0F F0 [11:11:22]RasterBufferAndPrint [11:11:22]line Счет N : (1)459344 [11:11:22]line ИНН: 02508201610067 [11:11:22]line Контрольно-Кассовый Чек [11:11:22]line ПРОДАЖА [11:11:22]line ТРК (МРК, ГНК) : 21 [11:11:22]line Товар: 2710194210 [11:11:22]line ДТ-К-5 [11:11:22]line 18.090 * 71.90 [11:11:22]line = 1300.67 [11:11:22]line НДС 12% НСП 1% [11:11:22]line > о реализуемом товаре [11:11:22]line ОКРУГЛЕНИЕ: -0.67 [11:11:22]line ИТОГО: 1300.00 [11:11:22]line Внесено: 1300.00 [11:11:22]line СДАЧА: 0.00 [11:11:22]line НСП 1% : 11.51 [11:11:22]line НДС 12% : 138.12 [11:11:22]line Наличными: 1300.00 [11:11:22]line Безнал.: 0.00 [11:11:22]line Место: АЗС № 72 "Партнер Нефть" [11:11:22]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:11:22]line СНО: Общий режим [11:11:22]line Чек 111 15.07.2024 11:11 [11:11:22]line Смена: 448 ФФД: 1.0 [11:11:22]line ЗНМ: 0300000160 [11:11:22]line РНМ: 0000000000090829 [11:11:22]line Версия ККМ: 001 [11:11:22]line ФМ: 0000000000874718 [11:11:22]line ФД: 165238 [11:11:22]line ФПД: 199749038329708 [11:11:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T111121&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165238&fm=199749038329708&tin=02508201610067®Number=0000000000090829&sum=130000 [11:11:23]OFD Sender: Processing packet 165238 [packets to send 106, broken 105] [11:11:23]ProducePacketName [11:11:23]name=ofd_packets/00165238 [11:11:23]OFD Sender: To server: pG, [11:11:23]CommunicateWithHost lk.salyk.kg:30040 [11:11:23]ConnectInit lk.salyk.kg [11:11:23]written 0, free lines is 4095 [11:11:23]Connected sock=10 [11:11:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 AC 96 04 01 04 05 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 46 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 13 FC 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 F4 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 6F 00 00 00 F4 03 04 00 D9 03 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 76 85 02 00 35 04 06 00 B5 AB B2 79 4F 6C F2 25 C0 55 8B 6C 98 B9 [11:11:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 8A 9B 47 00 52 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 76 85 02 00 F4 03 04 00 64 AA 94 66 B6 04 01 00 00 41 98 DB 31 6D 7C FE 6F [11:11:23]CommunicateWithHost err = 0 [11:11:23]CheckOFDResponse [11:11:23]1017 (14) - 77093643461234 [11:11:23]1041 (16) - 0000000000874718 [11:11:23]1040 (4) - 165238 [11:11:23]1012 (4) - 15.07.2024 04:49 [11:11:23]1206 (1) - 0 [11:11:23]OFD Sender: Remove packet 165238 [11:11:23]ProducePacketName [11:11:23]name=ofd_packets/00165238 [11:11:23]NVStorageDeleteData [11:11:23]Write to MH i2c: 01 00 00 02 04 06 [11:11:23]Write i2c OK [11:11:23]MH_I2C_Read... [11:11:23]Read from MH i2c: 01 [11:11:23]MH_I2C_Read... [11:11:23]Read from MH i2c: 01 07 00 [11:11:23]MH_I2C_Read... [11:11:23]Read from MH i2c: 01 07 00 02 04 00 00 00 00 00 02 0D 1C [11:11:23]RasterBufferAndPrint [11:11:23]line [11:11:23]line [11:11:23]line [11:11:23]line [11:11:23]line [11:11:23]written 0, free lines is 3336 [11:11:23]MH_Cut [11:11:23]Write to MH i2c: D1 01 00 09 04 01 DF [11:11:23]Write i2c OK [11:11:23]MH_I2C_Read... [11:11:23]Read from MH i2c: D1 [11:11:23]MH_I2C_Read... [11:11:23]Read from MH i2c: D1 01 00 [11:11:23]MH_I2C_Read... [11:11:23]Read from MH i2c: D1 01 00 09 04 00 DE [11:11:23]Write to MH i2c: 01 00 00 0A 04 0E [11:11:23]Write i2c OK [11:11:23]MH_I2C_Read... [11:11:24]OFD Sender: No OFD packet to send [11:11:24]*** Cut start [11:11:24]*** Partial cut [11:11:24]*** CUTSNS_PIN = 1 [11:11:24]*** CUTSNS_PIN = 0 [11:11:24]*** Brake cut motor [11:11:25]Read from MH i2c: 01 [11:11:25]MH_I2C_Read... [11:11:25]*** Stop cut motor [11:11:25]*** Cut end [11:11:25]Read from MH i2c: 01 07 00 [11:11:25]MH_I2C_Read... [11:11:25]Read from MH i2c: 01 07 00 0A 04 00 00 00 00 00 FF 0F 23 [11:11:25]process_action close_receipt done [11:11:25]requested_data is exist [11:11:25]produce_requested_data [11:11:25]requested_item fm.sn is exist - process it [11:11:25]wFMCommunicate request_size=4 [11:11:25]MH_SAM_APDU [11:11:25]CAPDU: 80 11 00 00 [11:11:25]Write to MH i2c: E2 08 00 0B 04 80 11 00 00 00 00 00 00 89 [11:11:25]Write i2c OK [11:11:25]MH_I2C_Read... [11:11:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:25]Read from MH i2c: E2 [11:11:25]MH_I2C_Read... [11:11:25]Read from MH i2c: E2 17 00 [11:11:25]MH_I2C_Read... [11:11:25]Read from MH i2c: E2 17 00 0B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DF [11:11:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:11:25]wFMCommunicate OK [11:11:25]requested_item fd.num is exist - process it [11:11:25]SAM_PROTO_GetFieldsCounters [11:11:25]wFMCommunicate request_size=4 [11:11:25]MH_SAM_APDU [11:11:25]CAPDU: 80 13 00 00 [11:11:25]Write to MH i2c: E2 08 00 0C 04 80 13 00 00 00 00 00 00 8C [11:11:25]Write i2c OK [11:11:25]MH_I2C_Read... [11:11:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:11:25]Read from MH i2c: E2 [11:11:25]MH_I2C_Read... [11:11:25]Read from MH i2c: E2 62 00 [11:11:25]MH_I2C_Read... [11:11:25]Read from MH i2c: E2 62 00 0C 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 76 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 BE [11:11:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 76 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:11:25]wFMCommunicate OK [11:11:25]SAM_PROTO_GetFieldsCounters done [11:11:25]requested_item shift.num is exist - process it [11:11:25]requested_item shift.opened is exist - process it [11:11:25]req_shift_opened [11:11:25]FM_GetShiftState [11:11:25]SAM_PROTO_GetShiftState [11:11:25]wFMCommunicate request_size=4 [11:11:25]MH_SAM_APDU [11:11:25]CAPDU: 80 13 01 00 [11:11:25]Write to MH i2c: E2 08 00 0D 04 80 13 01 00 00 00 00 00 8E [11:11:25]Write i2c OK [11:11:25]MH_I2C_Read... [11:11:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:25]Read from MH i2c: E2 [11:11:25]MH_I2C_Read... [11:11:25]Read from MH i2c: E2 0E 00 [11:11:25]MH_I2C_Read... [11:11:25]Read from MH i2c: E2 0E 00 0D 04 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 67 [11:11:25]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [11:11:25]wFMCommunicate OK [11:11:25]SAM_PROTO_GetShiftState done [11:11:25]FM_GetShiftState done [11:11:25]req_shift_opened done [11:11:25]requested_item shift.open_date is exist - process it [11:11:25]req_shift_open_date [11:11:25]req_shift_open_date done [11:11:25]produce_requested_data done [11:11:25]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165238,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [11:11:25]process_action_free close_receipt [11:11:25]json_value_free [11:11:25]json_value_free done [11:11:25]process_json_proto returns [11:11:25]Send response to host [11:11:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165238,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [11:11:25]free response buf [11:11:25]execute_script done [11:11:25]execute_script returns [11:11:25]free content buf [11:11:25]Sock 9.Close socket [11:11:25]Sock 9.Thread stoped [11:11:29]OFD Sender: No OFD packet to send [11:11:34]OFD Sender: No OFD packet to send [11:11:39]OFD Sender: No OFD packet to send [11:11:44]OFD Sender: No OFD packet to send [11:11:49]OFD Sender: No OFD packet to send [11:11:54]OFD Sender: No OFD packet to send [11:11:59]OFD Sender: No OFD packet to send [11:12:04]OFD Sender: No OFD packet to send [11:12:09]OFD Sender: No OFD packet to send [11:12:14]OFD Sender: No OFD packet to send [11:12:19]OFD Sender: No OFD packet to send [11:12:24]OFD Sender: No OFD packet to send [11:12:29]OFD Sender: No OFD packet to send [11:12:34]OFD Sender: No OFD packet to send [11:12:39]OFD Sender: No OFD packet to send [11:12:44]OFD Sender: No OFD packet to send [11:12:49]OFD Sender: No OFD packet to send [11:12:54]OFD Sender: No OFD packet to send [11:12:59]OFD Sender: No OFD packet to send [11:13:04]OFD Sender: No OFD packet to send [11:13:09]OFD Sender: No OFD packet to send [11:13:14]OFD Sender: No OFD packet to send [11:13:19]OFD Sender: No OFD packet to send [11:13:24]OFD Sender: No OFD packet to send [11:13:29]OFD Sender: No OFD packet to send [11:13:34]OFD Sender: No OFD packet to send [11:13:39]OFD Sender: No OFD packet to send [11:13:44]OFD Sender: No OFD packet to send [11:13:49]OFD Sender: No OFD packet to send [11:13:54]OFD Sender: No OFD packet to send [11:13:59]OFD Sender: No OFD packet to send [11:14:04]OFD Sender: No OFD packet to send [11:14:09]OFD Sender: No OFD packet to send [11:14:14]OFD Sender: No OFD packet to send [11:14:19]OFD Sender: No OFD packet to send [11:14:24]OFD Sender: No OFD packet to send [11:14:29]OFD Sender: No OFD packet to send [11:14:34]OFD Sender: No OFD packet to send [11:14:39]OFD Sender: No OFD packet to send [11:14:44]OFD Sender: No OFD packet to send [11:14:49]OFD Sender: No OFD packet to send [11:14:54]accept exits with 8 [11:14:54]New connection [11:14:54]New thread 3066854756 created [11:14:54]Thread 3066711396 joined [11:14:54]Waiting for new connection... [11:14:54] Sock 8.Parse request [11:14:54]Sock 8.Check first char [11:14:54]Sock 8.First char is OK [11:14:54]request: POST /json_proto HTTP/1.0 [11:14:54]Method: POST [11:14:54]URL: /json_proto [11:14:54]Method is POST - this is cgi request [11:14:54]url: /json_proto [11:14:54]query_string will be loaded in cgi processing [11:14:54]execute_cgi json_proto POST (null) [11:14:54]execute_cgi path=json_proto method=POST [11:14:54]POST find Content-Length [11:14:54]Host: 172.17.56.4:8080 [11:14:54]Content-Length: 677 [11:14:54]Content-Type: application/json [11:14:54] [11:14:54]POST finish read [11:14:54]Found Content-Length = 677 [11:14:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459345", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:54]execute_script... [11:14:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459345", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:54]POST & json_proto [11:14:54]process_json_proto [11:14:54]json parsed OK: [11:14:54]protocol is kg_v1.0 [11:14:54]action value=close_receipt [11:14:54]process_action close_receipt [11:14:54]cmd_close_receipt [11:14:54]MH_GetDate [11:14:54]Write to MH i2c: F0 00 00 0E 04 01 [11:14:54]Write i2c OK [11:14:54]MH_I2C_Read... [11:14:54]Read from MH i2c: F0 [11:14:54]MH_I2C_Read... [11:14:54]Read from MH i2c: F0 09 00 [11:14:54]MH_I2C_Read... [11:14:54]Read from MH i2c: F0 09 00 0E 04 00 AE 04 95 66 C9 DC B2 64 72 [11:14:54]GetLastDocTimeStamp 1721041881 [11:14:54]current date 1721042094 [11:14:54]FM_GetShiftState [11:14:54]SAM_PROTO_GetShiftState [11:14:54]wFMCommunicate request_size=4 [11:14:54]MH_SAM_APDU [11:14:54]CAPDU: 80 13 01 00 [11:14:54]Write to MH i2c: E2 08 00 0F 04 80 13 01 00 00 00 00 00 90 [11:14:54]Write i2c OK [11:14:54]MH_I2C_Read... [11:14:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:54]Read from MH i2c: E2 [11:14:54]MH_I2C_Read... [11:14:54]Read from MH i2c: E2 0E 00 [11:14:54]MH_I2C_Read... [11:14:54]Read from MH i2c: E2 0E 00 0F 04 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 69 [11:14:54]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [11:14:54]wFMCommunicate OK [11:14:54]SAM_PROTO_GetShiftState done [11:14:54]FM_GetShiftState done [11:14:54]opened in 1721003876 [11:14:54]opened+sec_in_day 1721090276 [11:14:54]quantity*price = 20003 [11:14:54]sum+1 = 20004 [11:14:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 112 15.07.2024 11:14 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165239 ФПД: 17486923546696 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T111454&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165239&fm=17486923546696&tin=02508201610067®Number=0000000000090829&sum=20000 [11:14:55]StoreToDocumentArchive [11:14:55]shift 448 fd 165239 [11:14:55]save to /storage/0448/doc_00165239 [11:14:55]save last doc name /storage/0448/doc_00165239 to /storage/kkm_last_doc_name [11:14:55]save OK [11:14:55]Clear old archive folders... [11:14:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:14:55]tlvbuf is 01816500 [11:14:55]SAM_PROTO_ClearQueue [11:14:55]wFMCommunicate request_size=4 [11:14:55]MH_SAM_APDU [11:14:55]CAPDU: 80 09 00 00 [11:14:55]Write to MH i2c: E2 08 00 1C 04 80 09 00 00 00 00 00 00 92 [11:14:55]Write i2c OK [11:14:55]MH_I2C_Read... [11:14:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:14:55]Read from MH i2c: E2 [11:14:55]MH_I2C_Read... [11:14:55]Read from MH i2c: E2 03 00 [11:14:55]MH_I2C_Read... [11:14:55]Read from MH i2c: E2 03 00 1C 04 00 90 00 94 [11:14:55]RAPDU: 90 00 [11:14:55]wFMCommunicate OK [11:14:55]SAM_PROTO_ClearQueue done [11:14:55]KKMCreateOFDPacket [11:14:55]OFDProtocolAddRootSTLVToBuf [11:14:55]FM_MakeSignedData [11:14:55]FM_MakeSignedData [11:14:55]SAM_PROTO_SignData [11:14:55]wFMCommunicate request_size=4 [11:14:55]MH_SAM_APDU [11:14:55]CAPDU: 80 0D 01 02 [11:14:55]Write to MH i2c: E2 08 00 1D 04 80 0D 01 02 00 00 00 00 9A [11:14:55]Write i2c OK [11:14:55]MH_I2C_Read... [11:14:55]Read from MH i2c: E2 [11:14:55]MH_I2C_Read... [11:14:55]Read from MH i2c: E2 03 00 [11:14:55]MH_I2C_Read... [11:14:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:14:55]Read from MH i2c: E2 03 00 1D 04 00 90 00 95 [11:14:55]RAPDU: 90 00 [11:14:55]wFMCommunicate OK [11:14:55]wFMCommunicate request_size=255 [11:14:55]MH_SAM_APDU [11:14: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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 AE 04 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 77 85 02 00 35 04 06 00 0F [11:14:55]Write to MH i2c: E2 02 01 1E 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 AE 04 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 77 85 02 00 35 04 06 00 0F 00 00 9F [11:14:55]Write i2c OK [11:14:55]MH_I2C_Read... [11:14:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:55]Read from MH i2c: E2 [11:14:55]MH_I2C_Read... [11:14:55]Read from MH i2c: E2 03 00 [11:14:55]MH_I2C_Read... [11:14:55]Read from MH i2c: E2 03 00 1E 04 00 90 00 96 [11:14:55]RAPDU: 90 00 [11:14:55]wFMCommunicate OK [11:14:55]wFMCommunicate request_size=10 [11:14:55]MH_SAM_APDU [11:14:55]CAPDU: 80 0D 02 02 05 E7 7D DD C0 48 [11:14:55]Write to MH i2c: E2 0D 00 1F 04 80 0D 02 02 05 00 E7 7D DD C0 48 00 00 F0 [11:14:55]Write i2c OK [11:14:55]MH_I2C_Read... [11:14:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:55]Read from MH i2c: E2 [11:14:55]MH_I2C_Read... [11:14:55]Read from MH i2c: E2 03 00 [11:14:55]MH_I2C_Read... [11:14:55]Read from MH i2c: E2 03 00 1F 04 00 90 00 97 [11:14:55]RAPDU: 90 00 [11:14:55]wFMCommunicate OK [11:14:55]wFMCommunicate request_size=4 [11:14:55]MH_SAM_APDU [11:14:55]CAPDU: 80 0D 03 02 [11:14:55]Write to MH i2c: E2 08 00 20 04 80 0D 03 02 00 00 00 00 9F [11:14:55]Write i2c OK [11:14:55]MH_I2C_Read... [11:14:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:14:55]Read from MH i2c: E2 [11:14:55]MH_I2C_Read... [11:14:55]Read from MH i2c: E2 0B 00 [11:14:55]MH_I2C_Read... [11:14:55]Read from MH i2c: E2 0B 00 20 04 00 E3 54 F6 D9 96 F8 F5 B1 90 00 DA [11:14:55]RAPDU: E3 54 F6 D9 96 F8 F5 B1 90 00 [11:14:55]wFMCommunicate OK [11:14:55]SAM_PROTO_SignData done [11:14:55]FM_MakeSignedData done [11:14:55]CreateOFDProtocolMessage [11:14:55]wFMCommunicate request_size=4 [11:14:55]MH_SAM_APDU [11:14:55]CAPDU: 80 11 00 00 [11:14:55]Write to MH i2c: E2 08 00 21 04 80 11 00 00 00 00 00 00 9F [11:14:55]Write i2c OK [11:14:55]MH_I2C_Read... [11:14:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:55]Read from MH i2c: E2 [11:14:55]MH_I2C_Read... [11:14:55]Read from MH i2c: E2 17 00 [11:14:55]MH_I2C_Read... [11:14:55]Read from MH i2c: E2 17 00 21 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F5 [11:14:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:14:55]wFMCommunicate OK [11:14:55]CreateOFDProtocolMessage done [11:14:55]OFDSenderStorePacket 165239 [11:14:55]StoreOFDPacket docnum=165239 [11:14:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F5 CA 07 01 FD F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 AE 04 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 77 85 02 00 35 04 06 00 0F E7 7D DD C0 48 E3 54 F6 D9 96 F8 F5 B1 [11:14:55]CheckFolder [11:14:55]dirname=/storage/ofd_packets [11:14:55]CheckFolder done [11:14:55]ProducePacketName [11:14:55]name=ofd_packets/00165239 [11:14:55]NVStorageSaveData ofd_packets/00165239 [11:14:55]File name is /storage/ofd_packets/00165239 [11:14:55]Write 301 bytes [11:14:55]NVStorageSaveData done [11:14:55]OFDSenderStorePacket done [11:14:55]KKMCreateOFDPacket done [11:14:55]NVStorageSaveData kkm_last_timestamp [11:14:55]File name is /storage/kkm_last_timestamp [11:14:55]Write 4 bytes [11:14:55]NVStorageSaveData done [11:14:55]ExternCall_PrintAddStr [11:14:55]wPrintStart [11:14:55]Write to MH i2c: 01 00 00 22 04 26 [11:14:55]Write i2c OK [11:14:55]MH_I2C_Read... [11:14:55]Read from MH i2c: 01 [11:14:55]MH_I2C_Read... [11:14:55]Read from MH i2c: 01 07 00 [11:14:55]MH_I2C_Read... [11:14:55]Read from MH i2c: 01 07 00 22 04 00 00 00 00 00 FF 0F 3B [11:14:55]RasterBufferAndPrint [11:14:55]line Счет N : (1)459345 [11:14:55]line ИНН: 02508201610067 [11:14:55]line Контрольно-Кассовый Чек [11:14:55]line ПРОДАЖА [11:14:55]line ТРК (МРК, ГНК) : 12 [11:14:55]line Товар: 2710124130 [11:14:55]line Аи-92-К-5 [11:14:55]line 3.040 * 65.80 [11:14:55]line = 200.03 [11:14:55]line НДС 12% НСП 1% [11:14:55]line > о реализуемом товаре [11:14:55]line ОКРУГЛЕНИЕ: -0.03 [11:14:55]line ИТОГО: 200.00 [11:14:55]line Внесено: 200.00 [11:14:55]line СДАЧА: 0.00 [11:14:55]line НСП 1% : 1.77 [11:14:55]line НДС 12% : 21.24 [11:14:55]line Наличными: 200.00 [11:14:55]line Безнал.: 0.00 [11:14:55]line Место: АЗС № 72 "Партнер Нефть" [11:14:55]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:14:55]line СНО: Общий режим [11:14:55]line Чек 112 15.07.2024 11:14 [11:14:55]line Смена: 448 ФФД: 1.0 [11:14:55]line ЗНМ: 0300000160 [11:14:55]line РНМ: 0000000000090829 [11:14:55]line Версия ККМ: 001 [11:14:55]line ФМ: 0000000000874718 [11:14:55]line ФД: 165239 [11:14:56]line ФПД: 17486923546696 [11:14:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T111454&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165239&fm=17486923546696&tin=02508201610067®Number=0000000000090829&sum=20000 [11:14:56]OFD Sender: Processing packet 165239 [packets to send 106, broken 105] [11:14:56]ProducePacketName [11:14:56]name=ofd_packets/00165239 [11:14:56]OFD Sender: To server: pG, [11:14:56]CommunicateWithHost lk.salyk.kg:30040 [11:14:56]ConnectInit lk.salyk.kg [11:14:56]written 0, free lines is 4095 [11:14:56]Connected sock=10 [11:14: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 37 31 38 0F 01 00 00 F5 CA 07 01 FD F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 AE 04 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 77 85 02 00 35 04 06 00 0F E7 7D DD C0 48 E3 54 F6 D9 96 F8 F5 B1 [11:14:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 7B E8 47 00 3F 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 77 85 02 00 F4 03 04 00 39 AB 94 66 B6 04 01 00 00 D0 67 6F 22 66 13 7B DC [11:14:56]CommunicateWithHost err = 0 [11:14:56]CheckOFDResponse [11:14:56]1017 (14) - 77093643461234 [11:14:56]1041 (16) - 0000000000874718 [11:14:56]1040 (4) - 165239 [11:14:56]1012 (4) - 15.07.2024 04:53 [11:14:56]1206 (1) - 0 [11:14:56]OFD Sender: Remove packet 165239 [11:14:56]ProducePacketName [11:14:56]name=ofd_packets/00165239 [11:14:56]NVStorageDeleteData [11:14:56]Write to MH i2c: 01 00 00 4C 04 50 [11:14:56]Write i2c OK [11:14:56]MH_I2C_Read... [11:14:56]Read from MH i2c: 01 [11:14:56]MH_I2C_Read... [11:14:56]Read from MH i2c: 01 07 00 [11:14:56]MH_I2C_Read... [11:14:56]Read from MH i2c: 01 07 00 4C 04 00 00 00 00 00 F0 0C 53 [11:14:56]RasterBufferAndPrint [11:14:56]line [11:14:56]line [11:14:56]line [11:14:56]line [11:14:56]line [11:14:56]written 0, free lines is 3318 [11:14:56]MH_Cut [11:14:56]Write to MH i2c: D1 01 00 53 04 01 29 [11:14:56]Write i2c OK [11:14:56]MH_I2C_Read... [11:14:56]Read from MH i2c: D1 [11:14:56]MH_I2C_Read... [11:14:56]Read from MH i2c: D1 01 00 [11:14:56]MH_I2C_Read... [11:14:56]Read from MH i2c: D1 01 00 53 04 00 28 [11:14:56]Write to MH i2c: 01 00 00 54 04 58 [11:14:56]Write i2c OK [11:14:56]MH_I2C_Read... [11:14:57]OFD Sender: No OFD packet to send [11:14:57]*** Cut start [11:14:57]*** Partial cut [11:14:57]*** CUTSNS_PIN = 1 [11:14:57]*** CUTSNS_PIN = 0 [11:14:57]*** Brake cut motor [11:14:57]Read from MH i2c: 01 [11:14:57]MH_I2C_Read... [11:14:57]*** Stop cut motor [11:14:57]*** Cut end [11:14:57]Read from MH i2c: 01 07 00 [11:14:57]MH_I2C_Read... [11:14:57]Read from MH i2c: 01 07 00 54 04 00 00 00 00 00 FF 0F 6D [11:14:57]process_action close_receipt done [11:14:57]requested_data is exist [11:14:57]produce_requested_data [11:14:57]requested_item fm.sn is exist - process it [11:14:57]wFMCommunicate request_size=4 [11:14:57]MH_SAM_APDU [11:14:57]CAPDU: 80 11 00 00 [11:14:57]Write to MH i2c: E2 08 00 55 04 80 11 00 00 00 00 00 00 D3 [11:14:57]Write i2c OK [11:14:57]MH_I2C_Read... [11:14:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:57]Read from MH i2c: E2 [11:14:57]MH_I2C_Read... [11:14:57]Read from MH i2c: E2 17 00 [11:14:57]MH_I2C_Read... [11:14:57]Read from MH i2c: E2 17 00 55 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 29 [11:14:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:14:58]wFMCommunicate OK [11:14:58]requested_item fd.num is exist - process it [11:14:58]SAM_PROTO_GetFieldsCounters [11:14:58]wFMCommunicate request_size=4 [11:14:58]MH_SAM_APDU [11:14:58]CAPDU: 80 13 00 00 [11:14:58]Write to MH i2c: E2 08 00 56 04 80 13 00 00 00 00 00 00 D6 [11:14:58]Write i2c OK [11:14:58]MH_I2C_Read... [11:14:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:14:58]Read from MH i2c: E2 [11:14:58]MH_I2C_Read... [11:14:58]Read from MH i2c: E2 62 00 [11:14:58]MH_I2C_Read... [11:14:58]Read from MH i2c: E2 62 00 56 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 77 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [11:14: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 77 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:14:58]wFMCommunicate OK [11:14:58]SAM_PROTO_GetFieldsCounters done [11:14:58]requested_item shift.num is exist - process it [11:14:58]requested_item shift.opened is exist - process it [11:14:58]req_shift_opened [11:14:58]FM_GetShiftState [11:14:58]SAM_PROTO_GetShiftState [11:14:58]wFMCommunicate request_size=4 [11:14:58]MH_SAM_APDU [11:14:58]CAPDU: 80 13 01 00 [11:14:58]Write to MH i2c: E2 08 00 57 04 80 13 01 00 00 00 00 00 D8 [11:14:58]Write i2c OK [11:14:58]MH_I2C_Read... [11:14:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:58]Read from MH i2c: E2 [11:14:58]MH_I2C_Read... [11:14:58]Read from MH i2c: E2 0E 00 [11:14:58]MH_I2C_Read... [11:14:58]Read from MH i2c: E2 0E 00 57 04 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 B1 [11:14:58]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [11:14:58]wFMCommunicate OK [11:14:58]SAM_PROTO_GetShiftState done [11:14:58]FM_GetShiftState done [11:14:58]req_shift_opened done [11:14:58]requested_item shift.open_date is exist - process it [11:14:58]req_shift_open_date [11:14:58]req_shift_open_date done [11:14:58]produce_requested_data done [11:14:58]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165239,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [11:14:58]process_action_free close_receipt [11:14:58]json_value_free [11:14:58]json_value_free done [11:14:58]process_json_proto returns [11:14:58]Send response to host [11:14:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165239,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [11:14:58]free response buf [11:14:58]execute_script done [11:14:58]execute_script returns [11:14:58]free content buf [11:14:58]Sock 8.Close socket [11:14:58]Sock 8.Thread stoped [11:15:02]OFD Sender: No OFD packet to send [11:15:07]OFD Sender: No OFD packet to send [11:15:12]OFD Sender: No OFD packet to send [11:15:17]OFD Sender: No OFD packet to send [11:15:22]OFD Sender: No OFD packet to send [11:15:27]OFD Sender: No OFD packet to send [11:15:32]OFD Sender: No OFD packet to send [11:15:37]OFD Sender: No OFD packet to send [11:15:42]OFD Sender: No OFD packet to send [11:15:47]OFD Sender: No OFD packet to send [11:15:52]OFD Sender: No OFD packet to send [11:15:57]OFD Sender: No OFD packet to send [11:16:02]OFD Sender: No OFD packet to send [11:16:07]OFD Sender: No OFD packet to send [11:16:12]OFD Sender: No OFD packet to send [11:16:17]OFD Sender: No OFD packet to send [11:16:22]OFD Sender: No OFD packet to send [11:16:27]OFD Sender: No OFD packet to send [11:16:32]OFD Sender: No OFD packet to send [11:16:37]OFD Sender: No OFD packet to send [11:16:39]accept exits with 9 [11:16:39]New connection [11:16:39]New thread 3066711396 created [11:16:39]Thread 3066854756 joined [11:16:39]Waiting for new connection... [11:16:39] Sock 9.Parse request [11:16:39]Sock 9.Check first char [11:16:39]Sock 9.First char is OK [11:16:39]request: POST /json_proto HTTP/1.0 [11:16:39]Method: POST [11:16:39]URL: /json_proto [11:16:39]Method is POST - this is cgi request [11:16:39]url: /json_proto [11:16:39]query_string will be loaded in cgi processing [11:16:39]execute_cgi json_proto POST (null) [11:16:39]execute_cgi path=json_proto method=POST [11:16:39]POST find Content-Length [11:16:39]Host: 172.17.56.4:8080 [11:16:39]Content-Length: 639 [11:16:39]Content-Type: application/json [11:16:39] [11:16:39]POST finish read [11:16:39]Found Content-Length = 639 [11:16:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459346", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 30.000, "sum" : 2157.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 2157.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:39]execute_script... [11:16: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)459346", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 30.000, "sum" : 2157.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 2157.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:39]POST & json_proto [11:16:39]process_json_proto [11:16:39]json parsed OK: [11:16:39]protocol is kg_v1.0 [11:16:39]action value=close_receipt [11:16:39]process_action close_receipt [11:16:39]cmd_close_receipt [11:16:39]MH_GetDate [11:16:39]Write to MH i2c: F0 00 00 58 04 4B [11:16:39]Write i2c OK [11:16:39]MH_I2C_Read... [11:16:39]Read from MH i2c: F0 [11:16:39]MH_I2C_Read... [11:16:39]Read from MH i2c: F0 09 00 [11:16:39]MH_I2C_Read... [11:16:39]Read from MH i2c: F0 09 00 58 04 00 18 05 95 66 C9 DC B2 64 27 [11:16:39]GetLastDocTimeStamp 1721042094 [11:16:39]current date 1721042200 [11:16:39]FM_GetShiftState [11:16:39]SAM_PROTO_GetShiftState [11:16:39]wFMCommunicate request_size=4 [11:16:39]MH_SAM_APDU [11:16:39]CAPDU: 80 13 01 00 [11:16:39]Write to MH i2c: E2 08 00 59 04 80 13 01 00 00 00 00 00 DA [11:16:39]Write i2c OK [11:16:39]MH_I2C_Read... [11:16:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:39]Read from MH i2c: E2 [11:16:39]MH_I2C_Read... [11:16:39]Read from MH i2c: E2 0E 00 [11:16:39]MH_I2C_Read... [11:16:39]Read from MH i2c: E2 0E 00 59 04 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 B3 [11:16:39]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [11:16:39]wFMCommunicate OK [11:16:39]SAM_PROTO_GetShiftState done [11:16:39]FM_GetShiftState done [11:16:39]opened in 1721003876 [11:16:39]opened+sec_in_day 1721090276 [11:16:39]quantity*price = 215700 [11:16:39]sum+1 = 215701 [11:16:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2157.00 НСП 1% : 19.09 НДС 12% : 229.06 Наличными: 2157.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 113 15.07.2024 11:16 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165240 ФПД: 277102053965186 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T111640&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165240&fm=277102053965186&tin=02508201610067®Number=0000000000090829&sum=215700 [11:16:41]StoreToDocumentArchive [11:16:41]shift 448 fd 165240 [11:16:41]save to /storage/0448/doc_00165240 [11:16:41]save last doc name /storage/0448/doc_00165240 to /storage/kkm_last_doc_name [11:16:41]save OK [11:16:41]Clear old archive folders... [11:16:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:16:41]tlvbuf is 01857FC0 [11:16:41]SAM_PROTO_ClearQueue [11:16:41]wFMCommunicate request_size=4 [11:16:41]MH_SAM_APDU [11:16:41]CAPDU: 80 09 00 00 [11:16:41]Write to MH i2c: E2 08 00 66 04 80 09 00 00 00 00 00 00 DC [11:16:41]Write i2c OK [11:16:41]MH_I2C_Read... [11:16:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:16:41]Read from MH i2c: E2 [11:16:41]MH_I2C_Read... [11:16:41]Read from MH i2c: E2 03 00 [11:16:41]MH_I2C_Read... [11:16:41]Read from MH i2c: E2 03 00 66 04 00 90 00 DE [11:16:41]RAPDU: 90 00 [11:16:41]wFMCommunicate OK [11:16:41]SAM_PROTO_ClearQueue done [11:16:41]KKMCreateOFDPacket [11:16:41]OFDProtocolAddRootSTLVToBuf [11:16:41]FM_MakeSignedData [11:16:41]FM_MakeSignedData [11:16:41]SAM_PROTO_SignData [11:16:41]wFMCommunicate request_size=4 [11:16:41]MH_SAM_APDU [11:16:41]CAPDU: 80 0D 01 02 [11:16:41]Write to MH i2c: E2 08 00 67 04 80 0D 01 02 00 00 00 00 E4 [11:16:41]Write i2c OK [11:16:41]MH_I2C_Read... [11:16:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:16:41]Read from MH i2c: E2 [11:16:41]MH_I2C_Read... [11:16:41]Read from MH i2c: E2 03 00 [11:16:41]MH_I2C_Read... [11:16:41]Read from MH i2c: E2 03 00 67 04 00 90 00 DF [11:16:41]RAPDU: 90 00 [11:16:41]wFMCommunicate OK [11:16:41]wFMCommunicate request_size=255 [11:16:41]MH_SAM_APDU [11:16:41]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 94 4A 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 4A 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 59 00 00 00 00 07 04 06 00 94 4A 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 18 05 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 78 85 02 00 35 04 06 00 FC 05 D9 7E [11:16:41]Write to MH i2c: E2 02 01 68 04 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 94 4A 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 4A 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 59 00 00 00 00 07 04 06 00 94 4A 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 18 05 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 78 85 02 00 35 04 06 00 FC 05 D9 7E 00 00 B1 [11:16:41]Write i2c OK [11:16:41]MH_I2C_Read... [11:16:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:41]Read from MH i2c: E2 [11:16:41]MH_I2C_Read... [11:16:41]Read from MH i2c: E2 03 00 [11:16:41]MH_I2C_Read... [11:16:41]Read from MH i2c: E2 03 00 68 04 00 90 00 E0 [11:16:41]RAPDU: 90 00 [11:16:41]wFMCommunicate OK [11:16:41]wFMCommunicate request_size=7 [11:16:41]MH_SAM_APDU [11:16:41]CAPDU: 80 0D 02 02 02 3D 82 [11:16:41]Write to MH i2c: E2 0A 00 69 04 80 0D 02 02 02 00 3D 82 00 00 AA [11:16:41]Write i2c OK [11:16:41]MH_I2C_Read... [11:16:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:41]Read from MH i2c: E2 [11:16:41]MH_I2C_Read... [11:16:41]Read from MH i2c: E2 03 00 [11:16:41]MH_I2C_Read... [11:16:41]Read from MH i2c: E2 03 00 69 04 00 90 00 E1 [11:16:41]RAPDU: 90 00 [11:16:41]wFMCommunicate OK [11:16:41]wFMCommunicate request_size=4 [11:16:41]MH_SAM_APDU [11:16:41]CAPDU: 80 0D 03 02 [11:16:41]Write to MH i2c: E2 08 00 6A 04 80 0D 03 02 00 00 00 00 E9 [11:16:41]Write i2c OK [11:16:41]MH_I2C_Read... [11:16:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:16:41]Read from MH i2c: E2 [11:16:41]MH_I2C_Read... [11:16:41]Read from MH i2c: E2 0B 00 [11:16:41]MH_I2C_Read... [11:16:41]Read from MH i2c: E2 0B 00 6A 04 00 5E E1 4D 90 1B 52 7B D8 90 00 C6 [11:16:41]RAPDU: 5E E1 4D 90 1B 52 7B D8 90 00 [11:16:41]wFMCommunicate OK [11:16:41]SAM_PROTO_SignData done [11:16:41]FM_MakeSignedData done [11:16:41]CreateOFDProtocolMessage [11:16:41]wFMCommunicate request_size=4 [11:16:41]MH_SAM_APDU [11:16:41]CAPDU: 80 11 00 00 [11:16:41]Write to MH i2c: E2 08 00 6B 04 80 11 00 00 00 00 00 00 E9 [11:16:41]Write i2c OK [11:16:41]MH_I2C_Read... [11:16:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:41]Read from MH i2c: E2 [11:16:41]MH_I2C_Read... [11:16:41]Read from MH i2c: E2 17 00 [11:16:41]MH_I2C_Read... [11:16:41]Read from MH i2c: E2 17 00 6B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3F [11:16:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:16:41]wFMCommunicate OK [11:16:41]CreateOFDProtocolMessage done [11:16:41]OFDSenderStorePacket 165240 [11:16:41]StoreOFDPacket docnum=165240 [11:16:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 6E A2 04 01 BF 22 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 94 4A 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 4A 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 59 00 00 00 00 07 04 06 00 94 4A 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 18 05 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 78 85 02 00 35 04 06 00 FC 05 D9 7E 3D 82 5E E1 4D 90 1B 52 7B D8 [11:16:41]CheckFolder [11:16:41]dirname=/storage/ofd_packets [11:16:41]CheckFolder done [11:16:41]ProducePacketName [11:16:41]name=ofd_packets/00165240 [11:16:41]NVStorageSaveData ofd_packets/00165240 [11:16:41]File name is /storage/ofd_packets/00165240 [11:16:41]Write 298 bytes [11:16:41]NVStorageSaveData done [11:16:41]OFDSenderStorePacket done [11:16:41]KKMCreateOFDPacket done [11:16:41]NVStorageSaveData kkm_last_timestamp [11:16:41]File name is /storage/kkm_last_timestamp [11:16:41]Write 4 bytes [11:16:41]NVStorageSaveData done [11:16:41]ExternCall_PrintAddStr [11:16:41]wPrintStart [11:16:41]Write to MH i2c: 01 00 00 6C 04 70 [11:16:41]Write i2c OK [11:16:41]MH_I2C_Read... [11:16:41]Read from MH i2c: 01 [11:16:41]MH_I2C_Read... [11:16:41]Read from MH i2c: 01 07 00 [11:16:41]MH_I2C_Read... [11:16:41]Read from MH i2c: 01 07 00 6C 04 00 00 00 00 00 FF 0F 85 [11:16:41]RasterBufferAndPrint [11:16:41]line Счет N : (1)459346 [11:16:41]line ИНН: 02508201610067 [11:16:41]line Контрольно-Кассовый Чек [11:16:41]line ПРОДАЖА [11:16:41]line ТРК (МРК, ГНК) : 11 [11:16:41]line Товар: 2710194210 [11:16:41]line ДТ-К-5 [11:16:41]line 30.000 * 71.90 [11:16:41]line = 2157.00 [11:16:41]line НДС 12% НСП 1% [11:16:41]line > о реализуемом товаре [11:16:41]line ИТОГО: 2157.00 [11:16:41]line НСП 1% : 19.09 [11:16:41]line НДС 12% : 229.06 [11:16:41]line Наличными: 2157.00 [11:16:41]line Безнал.: 0.00 [11:16:41]line Место: АЗС № 72 "Партнер Нефть" [11:16:41]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:16:41]line СНО: Общий режим [11:16:41]line Чек 113 15.07.2024 11:16 [11:16:41]line Смена: 448 ФФД: 1.0 [11:16:41]line ЗНМ: 0300000160 [11:16:41]line РНМ: 0000000000090829 [11:16:41]line Версия ККМ: 001 [11:16:41]line ФМ: 0000000000874718 [11:16:41]line ФД: 165240 [11:16:41]line ФПД: 277102053965186 [11:16:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T111640&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165240&fm=277102053965186&tin=02508201610067®Number=0000000000090829&sum=215700 [11:16:41]OFD Sender: Processing packet 165240 [packets to send 106, broken 105] [11:16:41]ProducePacketName [11:16:41]name=ofd_packets/00165240 [11:16:41]OFD Sender: To server: pG, [11:16:41]CommunicateWithHost lk.salyk.kg:30040 [11:16:41]ConnectInit lk.salyk.kg [11:16:41]written 0, free lines is 4095 [11:16:41]Connected sock=10 [11:16: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 37 31 38 0C 01 00 00 6E A2 04 01 BF 22 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 94 4A 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 4A 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 59 00 00 00 00 07 04 06 00 94 4A 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 18 05 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 78 85 02 00 35 04 06 00 FC 05 D9 7E 3D 82 5E E1 4D 90 1B 52 7B D8 [11:16:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 39 CC 47 00 C8 B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 78 85 02 00 F4 03 04 00 A3 AB 94 66 B6 04 01 00 00 39 5A 77 44 BF 2A CC 24 [11:16:42]CommunicateWithHost err = 0 [11:16:42]CheckOFDResponse [11:16:42]1017 (14) - 77093643461234 [11:16:42]1041 (16) - 0000000000874718 [11:16:42]1040 (4) - 165240 [11:16:42]1012 (4) - 15.07.2024 04:54 [11:16:42]1206 (1) - 0 [11:16:42]OFD Sender: Remove packet 165240 [11:16:42]ProducePacketName [11:16:42]name=ofd_packets/00165240 [11:16:42]NVStorageDeleteData [11:16:42]Write to MH i2c: 01 00 00 93 04 97 [11:16:42]Write i2c OK [11:16:42]MH_I2C_Read... [11:16:42]Read from MH i2c: 01 [11:16:42]MH_I2C_Read... [11:16:42]Read from MH i2c: 01 07 00 [11:16:42]MH_I2C_Read... [11:16:42]Read from MH i2c: 01 07 00 93 04 00 00 00 00 00 1C 0D C7 [11:16:42]RasterBufferAndPrint [11:16:42]line [11:16:42]line [11:16:42]line [11:16:42]line [11:16:42]line [11:16:42]written 0, free lines is 3362 [11:16:42]MH_Cut [11:16:42]Write to MH i2c: D1 01 00 9A 04 01 70 [11:16:42]Write i2c OK [11:16:42]MH_I2C_Read... [11:16:42]Read from MH i2c: D1 [11:16:42]MH_I2C_Read... [11:16:42]Read from MH i2c: D1 01 00 [11:16:42]MH_I2C_Read... [11:16:42]Read from MH i2c: D1 01 00 9A 04 00 6F [11:16:42]Write to MH i2c: 01 00 00 9B 04 9F [11:16:42]Write i2c OK [11:16:42]MH_I2C_Read... [11:16:42]OFD Sender: No OFD packet to send [11:16:42]*** Cut start [11:16:42]*** Partial cut [11:16:42]*** CUTSNS_PIN = 1 [11:16:42]*** CUTSNS_PIN = 0 [11:16:43]*** Brake cut motor [11:16:43]Read from MH i2c: 01 [11:16:43]MH_I2C_Read... [11:16:43]*** Stop cut motor [11:16:43]*** Cut end [11:16:43]Read from MH i2c: 01 07 00 [11:16:43]MH_I2C_Read... [11:16:43]Read from MH i2c: 01 07 00 9B 04 00 00 00 00 00 FF 0F B4 [11:16:43]process_action close_receipt done [11:16:43]requested_data is exist [11:16:43]produce_requested_data [11:16:43]requested_item fm.sn is exist - process it [11:16:43]wFMCommunicate request_size=4 [11:16:43]MH_SAM_APDU [11:16:43]CAPDU: 80 11 00 00 [11:16:43]Write to MH i2c: E2 08 00 9C 04 80 11 00 00 00 00 00 00 1A [11:16:43]Write i2c OK [11:16:43]MH_I2C_Read... [11:16:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:43]Read from MH i2c: E2 [11:16:43]MH_I2C_Read... [11:16:43]Read from MH i2c: E2 17 00 [11:16:43]MH_I2C_Read... [11:16:43]Read from MH i2c: E2 17 00 9C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 70 [11:16:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:16:43]wFMCommunicate OK [11:16:43]requested_item fd.num is exist - process it [11:16:43]SAM_PROTO_GetFieldsCounters [11:16:43]wFMCommunicate request_size=4 [11:16:43]MH_SAM_APDU [11:16:43]CAPDU: 80 13 00 00 [11:16:43]Write to MH i2c: E2 08 00 9D 04 80 13 00 00 00 00 00 00 1D [11:16:43]Write i2c OK [11:16:43]MH_I2C_Read... [11:16:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:16:43]Read from MH i2c: E2 [11:16:43]MH_I2C_Read... [11:16:43]Read from MH i2c: E2 62 00 [11:16:43]MH_I2C_Read... [11:16:43]Read from MH i2c: E2 62 00 9D 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 78 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [11:16:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 78 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:16:43]wFMCommunicate OK [11:16:43]SAM_PROTO_GetFieldsCounters done [11:16:43]requested_item shift.num is exist - process it [11:16:43]requested_item shift.opened is exist - process it [11:16:43]req_shift_opened [11:16:43]FM_GetShiftState [11:16:43]SAM_PROTO_GetShiftState [11:16:43]wFMCommunicate request_size=4 [11:16:43]MH_SAM_APDU [11:16:43]CAPDU: 80 13 01 00 [11:16:43]Write to MH i2c: E2 08 00 9E 04 80 13 01 00 00 00 00 00 1F [11:16:43]Write i2c OK [11:16:43]MH_I2C_Read... [11:16:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:43]Read from MH i2c: E2 [11:16:43]MH_I2C_Read... [11:16:43]Read from MH i2c: E2 0E 00 [11:16:43]MH_I2C_Read... [11:16:43]Read from MH i2c: E2 0E 00 9E 04 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 F8 [11:16:43]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [11:16:43]wFMCommunicate OK [11:16:43]SAM_PROTO_GetShiftState done [11:16:43]FM_GetShiftState done [11:16:43]req_shift_opened done [11:16:43]requested_item shift.open_date is exist - process it [11:16:43]req_shift_open_date [11:16:43]req_shift_open_date done [11:16:43]produce_requested_data done [11:16:43]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165240,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [11:16:43]process_action_free close_receipt [11:16:43]json_value_free [11:16:43]json_value_free done [11:16:43]process_json_proto returns [11:16:43]Send response to host [11:16:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165240,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [11:16:43]free response buf [11:16:43]execute_script done [11:16:43]execute_script returns [11:16:43]free content buf [11:16:43]Sock 9.Close socket [11:16:43]Sock 9.Thread stoped [11:16:47]OFD Sender: No OFD packet to send [11:16:52]OFD Sender: No OFD packet to send [11:16:57]OFD Sender: No OFD packet to send [11:17:02]OFD Sender: No OFD packet to send [11:17:07]OFD Sender: No OFD packet to send [11:17:12]OFD Sender: No OFD packet to send [11:17:16]accept exits with 8 [11:17:16]New connection [11:17:16]New thread 3066854756 created [11:17:16]Thread 3066711396 joined [11:17:16]Waiting for new connection... [11:17:16] Sock 8.Parse request [11:17:16]Sock 8.Check first char [11:17:16]Sock 8.First char is OK [11:17:16]request: POST /json_proto HTTP/1.0 [11:17:16]Method: POST [11:17:16]URL: /json_proto [11:17:16]Method is POST - this is cgi request [11:17:16]url: /json_proto [11:17:16]query_string will be loaded in cgi processing [11:17:16]execute_cgi json_proto POST (null) [11:17:16]execute_cgi path=json_proto method=POST [11:17:16]POST find Content-Length [11:17:16]Host: 172.17.56.4:8080 [11:17:16]Content-Length: 1189 [11:17:16]Content-Type: application/json [11:17:16] [11:17:16]POST finish read [11:17:16]Found Content-Length = 1189 [11:17: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 72\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0434\u044B\u043A\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)459347\u000A15.07.2024 10:42\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 65.80\u000A\u0418\u0422\u041E\u0413: 1316.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\u000A24093\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:16]execute_script... [11:17: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 72\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0434\u044B\u043A\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)459347\u000A15.07.2024 10:42\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 65.80\u000A\u0418\u0422\u041E\u0413: 1316.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\u000A24093\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:16]POST & json_proto [11:17:16]process_json_proto [11:17:16]json parsed OK: [11:17:16]protocol is kg_v1.0 [11:17:16]action value=print_text [11:17:16]process_action print_text [11:17:16]cmd_print_text [11:17:16]ExternCall_PrintAddStr [11:17:16]wPrintStart [11:17:16]Write to MH i2c: 01 00 00 9F 04 A3 [11:17:16]Write i2c OK [11:17:16]MH_I2C_Read... [11:17:16]Read from MH i2c: 01 [11:17:16]MH_I2C_Read... [11:17:16]Read from MH i2c: 01 07 00 [11:17:16]MH_I2C_Read... [11:17:16]Read from MH i2c: 01 07 00 9F 04 00 00 00 00 00 FF 0F B8 [11:17:16]RasterBufferAndPrint [11:17:16]line *****ТОВАРНЫЙ ЧЕК***** [11:17:16]line АЗС 72 [11:17:16]line Партнер нефть [11:17:16]line 02508201610067 [11:17:16]line Кассир : Садыков Н. [11:17:16]line Счет N : (1)459347 [11:17:16]line 15.07.2024 10:42 [11:17:16]line ПРОДАЖА [11:17:16]line ТРК (МРК, ГНК): 22 [11:17:16]line Вид ГСМ : 2710124130 [11:17:16]line Аи-92-К-5 [11:17:16]line 20.000 x 65.80 [11:17:16]line ИТОГ: 1316.00 [11:17:16]line Тип оплаты: Талоны: Топливная Карта [11:17:16]line 24093 [11:17:16]line ______________________ [11:17:16]line (подпись) [11:17:16]written 0, free lines is 4095 [11:17:16]Write to MH i2c: 01 00 00 B3 04 B7 [11:17:16]Write i2c OK [11:17:16]MH_I2C_Read... [11:17:16]Read from MH i2c: 01 [11:17:16]MH_I2C_Read... [11:17:16]Read from MH i2c: 01 07 00 [11:17:16]MH_I2C_Read... [11:17:16]Read from MH i2c: 01 07 00 B3 04 00 00 00 00 00 0F 0E DB [11:17:16]RasterBufferAndPrint [11:17:16]line [11:17:16]line [11:17:16]line [11:17:16]line [11:17:16]line [11:17:16]written 0, free lines is 3600 [11:17:16]MH_Cut [11:17:16]Write to MH i2c: D1 01 00 BA 04 01 90 [11:17:16]Write i2c OK [11:17:16]MH_I2C_Read... [11:17:16]Read from MH i2c: D1 [11:17:16]MH_I2C_Read... [11:17:16]Read from MH i2c: D1 01 00 [11:17:16]MH_I2C_Read... [11:17:16]Read from MH i2c: D1 01 00 BA 04 00 8F [11:17:16]Write to MH i2c: 01 00 00 BB 04 BF [11:17:16]Write i2c OK [11:17:16]MH_I2C_Read... [11:17:16]*** Cut start [11:17:16]*** Partial cut [11:17:16]*** CUTSNS_PIN = 1 [11:17:16]*** CUTSNS_PIN = 0 [11:17:17]*** Brake cut motor [11:17:17]Read from MH i2c: 01 [11:17:17]MH_I2C_Read... [11:17:17]Read from MH i2c: 01 07 00 [11:17:17]MH_I2C_Read... [11:17:17]*** Stop cut motor [11:17:17]*** Cut end [11:17:17]Read from MH i2c: 01 07 00 BB 04 00 00 00 00 00 FF 0F D4 [11:17:17]process_action print_text done [11:17:17]requested_data is exist [11:17:17]produce_requested_data [11:17:17]requested_item fm.sn is exist - process it [11:17:17]wFMCommunicate request_size=4 [11:17:17]MH_SAM_APDU [11:17:17]CAPDU: 80 11 00 00 [11:17:17]Write to MH i2c: E2 08 00 BC 04 80 11 00 00 00 00 00 00 3A [11:17:17]Write i2c OK [11:17:17]MH_I2C_Read... [11:17:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:17]Read from MH i2c: E2 [11:17:17]MH_I2C_Read... [11:17:17]Read from MH i2c: E2 17 00 [11:17:17]MH_I2C_Read... [11:17:17]Read from MH i2c: E2 17 00 BC 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 90 [11:17:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:17:17]wFMCommunicate OK [11:17:17]requested_item fd.num is exist - process it [11:17:17]SAM_PROTO_GetFieldsCounters [11:17:17]wFMCommunicate request_size=4 [11:17:17]MH_SAM_APDU [11:17:17]CAPDU: 80 13 00 00 [11:17:17]Write to MH i2c: E2 08 00 BD 04 80 13 00 00 00 00 00 00 3D [11:17:17]Write i2c OK [11:17:17]MH_I2C_Read... [11:17:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:17:17]Read from MH i2c: E2 [11:17:17]MH_I2C_Read... [11:17:17]Read from MH i2c: E2 62 00 [11:17:17]MH_I2C_Read... [11:17:17]Read from MH i2c: E2 62 00 BD 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 78 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [11:17: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 78 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:17:17]wFMCommunicate OK [11:17:17]SAM_PROTO_GetFieldsCounters done [11:17:17]requested_item shift.num is exist - process it [11:17:17]requested_item shift.opened is exist - process it [11:17:17]req_shift_opened [11:17:17]FM_GetShiftState [11:17:17]SAM_PROTO_GetShiftState [11:17:17]wFMCommunicate request_size=4 [11:17:17]MH_SAM_APDU [11:17:17]CAPDU: 80 13 01 00 [11:17:17]Write to MH i2c: E2 08 00 BE 04 80 13 01 00 00 00 00 00 3F [11:17:17]Write i2c OK [11:17:17]MH_I2C_Read... [11:17:17]OFD Sender: No OFD packet to send [11:17:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:17]Read from MH i2c: E2 [11:17:17]MH_I2C_Read... [11:17:17]Read from MH i2c: E2 0E 00 [11:17:17]MH_I2C_Read... [11:17:17]Read from MH i2c: E2 0E 00 BE 04 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 18 [11:17:17]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [11:17:17]wFMCommunicate OK [11:17:17]SAM_PROTO_GetShiftState done [11:17:17]FM_GetShiftState done [11:17:17]req_shift_opened done [11:17:17]requested_item shift.open_date is exist - process it [11:17:17]req_shift_open_date [11:17:17]req_shift_open_date done [11:17:17]produce_requested_data done [11:17:17]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165240,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [11:17:17]process_action_free print_text [11:17:17]json_value_free [11:17:17]json_value_free done [11:17:17]process_json_proto returns [11:17:17]Send response to host [11:17:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165240,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [11:17:17]free response buf [11:17:17]execute_script done [11:17:17]execute_script returns [11:17:17]free content buf [11:17:17]Sock 8.Close socket [11:17:17]Sock 8.Thread stoped [11:17:22]OFD Sender: No OFD packet to send [11:17:27]OFD Sender: No OFD packet to send [11:17:32]OFD Sender: No OFD packet to send [11:17:37]OFD Sender: No OFD packet to send [11:17:42]OFD Sender: No OFD packet to send [11:17:47]OFD Sender: No OFD packet to send [11:17:52]OFD Sender: No OFD packet to send [11:17:57]OFD Sender: No OFD packet to send [11:18:02]OFD Sender: No OFD packet to send [11:18:07]OFD Sender: No OFD packet to send [11:18:12]OFD Sender: No OFD packet to send [11:18:17]OFD Sender: No OFD packet to send [11:18:22]OFD Sender: No OFD packet to send [11:18:27]OFD Sender: No OFD packet to send [11:18:32]OFD Sender: No OFD packet to send [11:18:37]OFD Sender: No OFD packet to send [11:18:42]OFD Sender: No OFD packet to send [11:18:47]OFD Sender: No OFD packet to send [11:18:52]OFD Sender: No OFD packet to send [11:18:57]OFD Sender: No OFD packet to send [11:19:02]OFD Sender: No OFD packet to send [11:19:07]OFD Sender: No OFD packet to send [11:19:12]OFD Sender: No OFD packet to send [11:19:17]OFD Sender: No OFD packet to send [11:19:22]OFD Sender: No OFD packet to send [11:19:27]OFD Sender: No OFD packet to send [11:19:32]OFD Sender: No OFD packet to send [11:19:37]OFD Sender: No OFD packet to send [11:19:42]OFD Sender: No OFD packet to send [11:19:45]accept exits with 9 [11:19:45]New connection [11:19:45]New thread 3066711396 created [11:19:45]Thread 3066854756 joined [11:19:45]Waiting for new connection... [11:19:45] Sock 9.Parse request [11:19:45]Sock 9.Check first char [11:19:45]Sock 9.First char is OK [11:19:45]request: POST /json_proto HTTP/1.0 [11:19:45]Method: POST [11:19:45]URL: /json_proto [11:19:45]Method is POST - this is cgi request [11:19:45]url: /json_proto [11:19:45]query_string will be loaded in cgi processing [11:19:45]execute_cgi json_proto POST (null) [11:19:45]execute_cgi path=json_proto method=POST [11:19:45]POST find Content-Length [11:19:45]Host: 172.17.56.4:8080 [11:19:45]Content-Length: 677 [11:19:45]Content-Type: application/json [11:19:45] [11:19:45]POST finish read [11:19:45]Found Content-Length = 677 [11:19:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459348", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:45]execute_script... [11:19:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459348", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:45]POST & json_proto [11:19:45]process_json_proto [11:19:45]json parsed OK: [11:19:45]protocol is kg_v1.0 [11:19:45]action value=close_receipt [11:19:45]process_action close_receipt [11:19:45]cmd_close_receipt [11:19:45]MH_GetDate [11:19:45]Write to MH i2c: F0 00 00 BF 04 B2 [11:19:45]Write i2c OK [11:19:45]MH_I2C_Read... [11:19:45]Read from MH i2c: F0 [11:19:45]MH_I2C_Read... [11:19:45]Read from MH i2c: F0 09 00 [11:19:45]MH_I2C_Read... [11:19:45]Read from MH i2c: F0 09 00 BF 04 00 D2 05 95 66 C9 DC B2 64 48 [11:19:45]GetLastDocTimeStamp 1721042200 [11:19:45]current date 1721042386 [11:19:45]FM_GetShiftState [11:19:45]SAM_PROTO_GetShiftState [11:19:45]wFMCommunicate request_size=4 [11:19:45]MH_SAM_APDU [11:19:45]CAPDU: 80 13 01 00 [11:19:45]Write to MH i2c: E2 08 00 C0 04 80 13 01 00 00 00 00 00 41 [11:19:45]Write i2c OK [11:19:45]MH_I2C_Read... [11:19:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:45]Read from MH i2c: E2 [11:19:45]MH_I2C_Read... [11:19:45]Read from MH i2c: E2 0E 00 [11:19:45]MH_I2C_Read... [11:19:45]Read from MH i2c: E2 0E 00 C0 04 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 1A [11:19:45]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [11:19:45]wFMCommunicate OK [11:19:45]SAM_PROTO_GetShiftState done [11:19:45]FM_GetShiftState done [11:19:45]opened in 1721003876 [11:19:45]opened+sec_in_day 1721090276 [11:19:45]quantity*price = 20003 [11:19:45]sum+1 = 20004 [11:19:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 114 15.07.2024 11:19 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165241 ФПД: 164308675238517 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T111946&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165241&fm=164308675238517&tin=02508201610067®Number=0000000000090829&sum=20000 [11:19:47]StoreToDocumentArchive [11:19:47]shift 448 fd 165241 [11:19:47]save to /storage/0448/doc_00165241 [11:19:47]save last doc name /storage/0448/doc_00165241 to /storage/kkm_last_doc_name [11:19:47]save OK [11:19:47]Clear old archive folders... [11:19:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:19:47]tlvbuf is B6D906C0 [11:19:47]SAM_PROTO_ClearQueue [11:19:47]wFMCommunicate request_size=4 [11:19:47]MH_SAM_APDU [11:19:47]CAPDU: 80 09 00 00 [11:19:47]Write to MH i2c: E2 08 00 CD 04 80 09 00 00 00 00 00 00 43 [11:19:47]Write i2c OK [11:19:47]MH_I2C_Read... [11:19:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:19:47]Read from MH i2c: E2 [11:19:47]MH_I2C_Read... [11:19:47]Read from MH i2c: E2 03 00 [11:19:47]MH_I2C_Read... [11:19:47]Read from MH i2c: E2 03 00 CD 04 00 90 00 45 [11:19:47]RAPDU: 90 00 [11:19:47]wFMCommunicate OK [11:19:47]SAM_PROTO_ClearQueue done [11:19:47]KKMCreateOFDPacket [11:19:47]OFDProtocolAddRootSTLVToBuf [11:19:47]FM_MakeSignedData [11:19:47]FM_MakeSignedData [11:19:47]SAM_PROTO_SignData [11:19:47]wFMCommunicate request_size=4 [11:19:47]MH_SAM_APDU [11:19:47]CAPDU: 80 0D 01 02 [11:19:47]Write to MH i2c: E2 08 00 CE 04 80 0D 01 02 00 00 00 00 4B [11:19:47]Write i2c OK [11:19:47]MH_I2C_Read... [11:19:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:19:47]Read from MH i2c: E2 [11:19:47]MH_I2C_Read... [11:19:47]Read from MH i2c: E2 03 00 [11:19:47]MH_I2C_Read... [11:19:47]Read from MH i2c: E2 03 00 CE 04 00 90 00 46 [11:19:47]RAPDU: 90 00 [11:19:47]wFMCommunicate OK [11:19:47]wFMCommunicate request_size=255 [11:19:47]MH_SAM_APDU [11:19: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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 D2 05 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 79 85 02 00 35 04 06 00 95 [11:19:47]Write to MH i2c: E2 02 01 CF 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 D2 05 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 79 85 02 00 35 04 06 00 95 00 00 FF [11:19:47]Write i2c OK [11:19:47]MH_I2C_Read... [11:19:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:47]Read from MH i2c: E2 [11:19:47]MH_I2C_Read... [11:19:47]Read from MH i2c: E2 03 00 [11:19:47]MH_I2C_Read... [11:19:47]Read from MH i2c: E2 03 00 CF 04 00 90 00 47 [11:19:47]RAPDU: 90 00 [11:19:47]wFMCommunicate OK [11:19:47]wFMCommunicate request_size=10 [11:19:47]MH_SAM_APDU [11:19:47]CAPDU: 80 0D 02 02 05 70 18 38 9A 75 [11:19:47]Write to MH i2c: E2 0D 00 D0 04 80 0D 02 02 05 00 70 18 38 9A 75 00 00 27 [11:19:47]Write i2c OK [11:19:47]MH_I2C_Read... [11:19:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:47]Read from MH i2c: E2 [11:19:47]MH_I2C_Read... [11:19:47]Read from MH i2c: E2 03 00 [11:19:47]MH_I2C_Read... [11:19:47]Read from MH i2c: E2 03 00 D0 04 00 90 00 48 [11:19:47]RAPDU: 90 00 [11:19:47]wFMCommunicate OK [11:19:47]wFMCommunicate request_size=4 [11:19:47]MH_SAM_APDU [11:19:47]CAPDU: 80 0D 03 02 [11:19:47]Write to MH i2c: E2 08 00 D1 04 80 0D 03 02 00 00 00 00 50 [11:19:47]Write i2c OK [11:19:47]MH_I2C_Read... [11:19:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:19:47]Read from MH i2c: E2 [11:19:47]MH_I2C_Read... [11:19:47]Read from MH i2c: E2 0B 00 [11:19:47]MH_I2C_Read... [11:19:47]Read from MH i2c: E2 0B 00 D1 04 00 4C A7 15 7E BA A0 9C 01 90 00 CE [11:19:47]RAPDU: 4C A7 15 7E BA A0 9C 01 90 00 [11:19:47]wFMCommunicate OK [11:19:47]SAM_PROTO_SignData done [11:19:47]FM_MakeSignedData done [11:19:47]CreateOFDProtocolMessage [11:19:47]wFMCommunicate request_size=4 [11:19:47]MH_SAM_APDU [11:19:47]CAPDU: 80 11 00 00 [11:19:47]Write to MH i2c: E2 08 00 D2 04 80 11 00 00 00 00 00 00 50 [11:19:47]Write i2c OK [11:19:47]MH_I2C_Read... [11:19:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:47]Read from MH i2c: E2 [11:19:47]MH_I2C_Read... [11:19:47]Read from MH i2c: E2 17 00 [11:19:47]MH_I2C_Read... [11:19:47]Read from MH i2c: E2 17 00 D2 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A6 [11:19:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:19:47]wFMCommunicate OK [11:19:47]CreateOFDProtocolMessage done [11:19:47]OFDSenderStorePacket 165241 [11:19:47]StoreOFDPacket docnum=165241 [11:19:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 7F C2 07 01 05 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 D2 05 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 79 85 02 00 35 04 06 00 95 70 18 38 9A 75 4C A7 15 7E BA A0 9C 01 [11:19:47]CheckFolder [11:19:47]dirname=/storage/ofd_packets [11:19:47]CheckFolder done [11:19:47]ProducePacketName [11:19:47]name=ofd_packets/00165241 [11:19:47]NVStorageSaveData ofd_packets/00165241 [11:19:47]File name is /storage/ofd_packets/00165241 [11:19:47]Write 301 bytes [11:19:47]NVStorageSaveData done [11:19:47]OFDSenderStorePacket done [11:19:47]KKMCreateOFDPacket done [11:19:47]NVStorageSaveData kkm_last_timestamp [11:19:47]File name is /storage/kkm_last_timestamp [11:19:47]Write 4 bytes [11:19:47]NVStorageSaveData done [11:19:47]ExternCall_PrintAddStr [11:19:47]wPrintStart [11:19:47]Write to MH i2c: 01 00 00 D3 04 D7 [11:19:47]Write i2c OK [11:19:47]MH_I2C_Read... [11:19:47]Read from MH i2c: 01 [11:19:47]MH_I2C_Read... [11:19:47]Read from MH i2c: 01 07 00 [11:19:47]MH_I2C_Read... [11:19:47]Read from MH i2c: 01 07 00 D3 04 00 00 00 00 00 FF 0F EC [11:19:47]RasterBufferAndPrint [11:19:47]line Счет N : (1)459348 [11:19:47]line ИНН: 02508201610067 [11:19:47]line Контрольно-Кассовый Чек [11:19:47]line ПРОДАЖА [11:19:47]line ТРК (МРК, ГНК) : 12 [11:19:47]line Товар: 2710124130 [11:19:47]line Аи-92-К-5 [11:19:47]line 3.040 * 65.80 [11:19:47]line = 200.03 [11:19:47]line НДС 12% НСП 1% [11:19:47]line > о реализуемом товаре [11:19:47]line ОКРУГЛЕНИЕ: -0.03 [11:19:47]line ИТОГО: 200.00 [11:19:47]line Внесено: 200.00 [11:19:47]line СДАЧА: 0.00 [11:19:47]line НСП 1% : 1.77 [11:19:47]line НДС 12% : 21.24 [11:19:47]line Наличными: 200.00 [11:19:47]line Безнал.: 0.00 [11:19:47]line Место: АЗС № 72 "Партнер Нефть" [11:19:47]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:19:47]line СНО: Общий режим [11:19:47]line Чек 114 15.07.2024 11:19 [11:19:47]line Смена: 448 ФФД: 1.0 [11:19:47]line ЗНМ: 0300000160 [11:19:47]line РНМ: 0000000000090829 [11:19:47]line Версия ККМ: 001 [11:19:47]line ФМ: 0000000000874718 [11:19:47]line ФД: 165241 [11:19:47]line ФПД: 164308675238517 [11:19:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T111946&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165241&fm=164308675238517&tin=02508201610067®Number=0000000000090829&sum=20000 [11:19:47]written 0, free lines is 4095 [11:19:47]OFD Sender: Processing packet 165241 [packets to send 106, broken 105] [11:19:47]ProducePacketName [11:19:47]name=ofd_packets/00165241 [11:19:47]OFD Sender: To server: pG, [11:19:47]CommunicateWithHost lk.salyk.kg:30040 [11:19:47]ConnectInit lk.salyk.kg [11:19:48]Connected sock=10 [11:19: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 37 31 38 0F 01 00 00 7F C2 07 01 05 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 D2 05 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 79 85 02 00 35 04 06 00 95 70 18 38 9A 75 4C A7 15 7E BA A0 9C 01 [11:19:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 1B DD 47 00 D1 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 37 31 38 10 04 04 00 79 85 02 00 F4 03 04 00 5D AC 94 66 B6 04 01 00 00 4B 38 9E 4C C3 DF C4 87 [11:19:48]CommunicateWithHost err = 0 [11:19:48]CheckOFDResponse [11:19:48]1017 (14) - 77093643461234 [11:19:48]1041 (16) - 0000000000874718 [11:19:48]1040 (4) - 165241 [11:19:48]1012 (4) - 15.07.2024 04:58 [11:19:48]1206 (1) - 0 [11:19:48]OFD Sender: Remove packet 165241 [11:19:48]ProducePacketName [11:19:48]name=ofd_packets/00165241 [11:19:48]NVStorageDeleteData [11:19:48]Write to MH i2c: 01 00 00 FD 04 01 [11:19:48]Write i2c OK [11:19:48]MH_I2C_Read... [11:19:48]Read from MH i2c: 01 [11:19:48]MH_I2C_Read... [11:19:48]Read from MH i2c: 01 07 00 [11:19:48]MH_I2C_Read... [11:19:48]Read from MH i2c: 01 07 00 FD 04 00 00 00 00 00 F0 0C 04 [11:19:48]RasterBufferAndPrint [11:19:48]line [11:19:48]line [11:19:48]line [11:19:48]line [11:19:48]line [11:19:48]written 0, free lines is 3318 [11:19:48]MH_Cut [11:19:48]Write to MH i2c: D1 01 00 04 05 01 DB [11:19:48]Write i2c OK [11:19:48]MH_I2C_Read... [11:19:48]Read from MH i2c: D1 [11:19:48]MH_I2C_Read... [11:19:48]Read from MH i2c: D1 01 00 [11:19:48]MH_I2C_Read... [11:19:48]Read from MH i2c: D1 01 00 04 05 00 DA [11:19:48]Write to MH i2c: 01 00 00 05 05 0A [11:19:48]Write i2c OK [11:19:48]MH_I2C_Read... [11:19:48]OFD Sender: No OFD packet to send [11:19:49]*** Cut start [11:19:49]*** Partial cut [11:19:49]*** CUTSNS_PIN = 1 [11:19:49]*** CUTSNS_PIN = 0 [11:19:49]*** Brake cut motor [11:19:49]Read from MH i2c: 01 [11:19:49]MH_I2C_Read... [11:19:49]*** Stop cut motor [11:19:49]*** Cut end [11:19:49]Read from MH i2c: 01 07 00 [11:19:49]MH_I2C_Read... [11:19:49]Read from MH i2c: 01 07 00 05 05 00 00 00 00 00 FF 0F 1F [11:19:49]process_action close_receipt done [11:19:49]requested_data is exist [11:19:49]produce_requested_data [11:19:49]requested_item fm.sn is exist - process it [11:19:49]wFMCommunicate request_size=4 [11:19:49]MH_SAM_APDU [11:19:49]CAPDU: 80 11 00 00 [11:19:49]Write to MH i2c: E2 08 00 06 05 80 11 00 00 00 00 00 00 85 [11:19:49]Write i2c OK [11:19:49]MH_I2C_Read... [11:19:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:49]Read from MH i2c: E2 [11:19:49]MH_I2C_Read... [11:19:49]Read from MH i2c: E2 17 00 [11:19:49]MH_I2C_Read... [11:19:49]Read from MH i2c: E2 17 00 06 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DB [11:19:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:19:49]wFMCommunicate OK [11:19:49]requested_item fd.num is exist - process it [11:19:49]SAM_PROTO_GetFieldsCounters [11:19:49]wFMCommunicate request_size=4 [11:19:49]MH_SAM_APDU [11:19:49]CAPDU: 80 13 00 00 [11:19:49]Write to MH i2c: E2 08 00 07 05 80 13 00 00 00 00 00 00 88 [11:19:49]Write i2c OK [11:19:49]MH_I2C_Read... [11:19:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:19:49]Read from MH i2c: E2 [11:19:49]MH_I2C_Read... [11:19:49]Read from MH i2c: E2 62 00 [11:19:49]MH_I2C_Read... [11:19:49]Read from MH i2c: E2 62 00 07 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 79 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [11:19:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 79 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:19:49]wFMCommunicate OK [11:19:49]SAM_PROTO_GetFieldsCounters done [11:19:49]requested_item shift.num is exist - process it [11:19:49]requested_item shift.opened is exist - process it [11:19:49]req_shift_opened [11:19:49]FM_GetShiftState [11:19:49]SAM_PROTO_GetShiftState [11:19:49]wFMCommunicate request_size=4 [11:19:49]MH_SAM_APDU [11:19:49]CAPDU: 80 13 01 00 [11:19:49]Write to MH i2c: E2 08 00 08 05 80 13 01 00 00 00 00 00 8A [11:19:49]Write i2c OK [11:19:49]MH_I2C_Read... [11:19:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:49]Read from MH i2c: E2 [11:19:49]MH_I2C_Read... [11:19:49]Read from MH i2c: E2 0E 00 [11:19:49]MH_I2C_Read... [11:19:49]Read from MH i2c: E2 0E 00 08 05 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 63 [11:19:49]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [11:19:49]wFMCommunicate OK [11:19:49]SAM_PROTO_GetShiftState done [11:19:49]FM_GetShiftState done [11:19:49]req_shift_opened done [11:19:49]requested_item shift.open_date is exist - process it [11:19:49]req_shift_open_date [11:19:49]req_shift_open_date done [11:19:49]produce_requested_data done [11:19:49]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165241,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [11:19:49]process_action_free close_receipt [11:19:49]json_value_free [11:19:49]json_value_free done [11:19:49]process_json_proto returns [11:19:49]Send response to host [11:19:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165241,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [11:19:49]free response buf [11:19:49]execute_script done [11:19:49]execute_script returns [11:19:49]free content buf [11:19:49]Sock 9.Close socket [11:19:49]Sock 9.Thread stoped [11:19:53]OFD Sender: No OFD packet to send [11:19:58]OFD Sender: No OFD packet to send [11:20:03]OFD Sender: No OFD packet to send [11:20:08]OFD Sender: No OFD packet to send [11:20:13]OFD Sender: No OFD packet to send [11:20:18]OFD Sender: No OFD packet to send [11:20:23]OFD Sender: No OFD packet to send [11:20:28]accept exits with 8 [11:20:28]New connection [11:20:28]New thread 3066854756 created [11:20:28]Thread 3066711396 joined [11:20:28]Waiting for new connection... [11:20:28] Sock 8.Parse request [11:20:28]Sock 8.Check first char [11:20:28]Sock 8.First char is OK [11:20:28]request: POST /json_proto HTTP/1.0 [11:20:28]Method: POST [11:20:28]URL: /json_proto [11:20:28]Method is POST - this is cgi request [11:20:28]url: /json_proto [11:20:28]query_string will be loaded in cgi processing [11:20:28]execute_cgi json_proto POST (null) [11:20:28]execute_cgi path=json_proto method=POST [11:20:28]POST find Content-Length [11:20:28]Host: 172.17.56.4:8080 [11:20:28]Content-Length: 675 [11:20:28]Content-Type: application/json [11:20:28] [11:20:28]POST finish read [11:20:28]Found Content-Length = 675 [11:20:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459349", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.080, "sum" : 940.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 940.00, "total" : 940.00, "payments": [ { "type": 0, "sum" : 940.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:28]execute_script... [11:20:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459349", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.080, "sum" : 940.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 940.00, "total" : 940.00, "payments": [ { "type": 0, "sum" : 940.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:28]POST & json_proto [11:20:28]process_json_proto [11:20:28]json parsed OK: [11:20:28]protocol is kg_v1.0 [11:20:28]action value=close_receipt [11:20:28]process_action close_receipt [11:20:28]cmd_close_receipt [11:20:28]MH_GetDate [11:20:28]Write to MH i2c: F0 00 00 09 05 FD [11:20:28]Write i2c OK [11:20:28]MH_I2C_Read... [11:20:28]Read from MH i2c: F0 [11:20:28]MH_I2C_Read... [11:20:28]Read from MH i2c: F0 09 00 [11:20:28]MH_I2C_Read... [11:20:28]Read from MH i2c: F0 09 00 09 05 00 FC 05 95 66 C9 DC B2 64 BD [11:20:28]GetLastDocTimeStamp 1721042386 [11:20:28]current date 1721042428 [11:20:28]FM_GetShiftState [11:20:28]SAM_PROTO_GetShiftState [11:20:28]wFMCommunicate request_size=4 [11:20:28]MH_SAM_APDU [11:20:28]CAPDU: 80 13 01 00 [11:20:28]Write to MH i2c: E2 08 00 0A 05 80 13 01 00 00 00 00 00 8C [11:20:28]Write i2c OK [11:20:28]MH_I2C_Read... [11:20:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:28]Read from MH i2c: E2 [11:20:28]MH_I2C_Read... [11:20:28]Read from MH i2c: E2 0E 00 [11:20:28]MH_I2C_Read... [11:20:28]Read from MH i2c: E2 0E 00 0A 05 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 65 [11:20:28]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [11:20:28]wFMCommunicate OK [11:20:28]SAM_PROTO_GetShiftState done [11:20:28]FM_GetShiftState done [11:20:28]opened in 1721003876 [11:20:28]opened+sec_in_day 1721090276 [11:20:28]quantity*price = 94045 [11:20:28]sum+1 = 94046 [11:20:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 940.00 Внесено: 940.00 СДАЧА: 0.00 НСП 1% : 8.32 НДС 12% : 99.87 Наличными: 940.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 115 15.07.2024 11:20 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165242 ФПД: 168950766621768 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T112028&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165242&fm=168950766621768&tin=02508201610067®Number=0000000000090829&sum=94000 [11:20:29]StoreToDocumentArchive [11:20:29]shift 448 fd 165242 [11:20:29]save to /storage/0448/doc_00165242 [11:20:29]save last doc name /storage/0448/doc_00165242 to /storage/kkm_last_doc_name [11:20:29]save OK [11:20:29]Clear old archive folders... [11:20:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:20:29]tlvbuf is 0181A920 [11:20:29]SAM_PROTO_ClearQueue [11:20:29]wFMCommunicate request_size=4 [11:20:29]MH_SAM_APDU [11:20:29]CAPDU: 80 09 00 00 [11:20:29]Write to MH i2c: E2 08 00 17 05 80 09 00 00 00 00 00 00 8E [11:20:29]Write i2c OK [11:20:29]MH_I2C_Read... [11:20:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:20:29]Read from MH i2c: E2 [11:20:29]MH_I2C_Read... [11:20:29]Read from MH i2c: E2 03 00 [11:20:29]MH_I2C_Read... [11:20:29]Read from MH i2c: E2 03 00 17 05 00 90 00 90 [11:20:29]RAPDU: 90 00 [11:20:29]wFMCommunicate OK [11:20:29]SAM_PROTO_ClearQueue done [11:20:29]KKMCreateOFDPacket [11:20:29]OFDProtocolAddRootSTLVToBuf [11:20:29]FM_MakeSignedData [11:20:29]FM_MakeSignedData [11:20:29]SAM_PROTO_SignData [11:20:29]wFMCommunicate request_size=4 [11:20:29]MH_SAM_APDU [11:20:29]CAPDU: 80 0D 01 02 [11:20:29]Write to MH i2c: E2 08 00 18 05 80 0D 01 02 00 00 00 00 96 [11:20:29]Write i2c OK [11:20:29]MH_I2C_Read... [11:20:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:20:29]Read from MH i2c: E2 [11:20:29]MH_I2C_Read... [11:20:29]Read from MH i2c: E2 03 00 [11:20:29]MH_I2C_Read... [11:20:29]Read from MH i2c: E2 03 00 18 05 00 90 00 91 [11:20:29]RAPDU: 90 00 [11:20:29]wFMCommunicate OK [11:20:29]wFMCommunicate request_size=255 [11:20:29]MH_SAM_APDU [11:20:29]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 33 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5D 6F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 6F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 27 00 00 00 00 07 04 06 00 30 6F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 FC 05 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7A 85 02 00 35 04 06 00 99 A8 EA 6D [11:20:29]Write to MH i2c: E2 02 01 19 05 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 33 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5D 6F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 6F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 27 00 00 00 00 07 04 06 00 30 6F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 FC 05 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7A 85 02 00 35 04 06 00 99 A8 EA 6D 00 00 B9 [11:20:29]Write i2c OK [11:20:29]MH_I2C_Read... [11:20:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:29]Read from MH i2c: E2 [11:20:29]MH_I2C_Read... [11:20:29]Read from MH i2c: E2 03 00 [11:20:29]MH_I2C_Read... [11:20:29]Read from MH i2c: E2 03 00 19 05 00 90 00 92 [11:20:29]RAPDU: 90 00 [11:20:29]wFMCommunicate OK [11:20:29]wFMCommunicate request_size=7 [11:20:29]MH_SAM_APDU [11:20:29]CAPDU: 80 0D 02 02 02 D4 48 [11:20:29]Write to MH i2c: E2 0A 00 1A 05 80 0D 02 02 02 00 D4 48 00 00 B9 [11:20:29]Write i2c OK [11:20:29]MH_I2C_Read... [11:20:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:29]Read from MH i2c: E2 [11:20:29]MH_I2C_Read... [11:20:29]Read from MH i2c: E2 03 00 [11:20:29]MH_I2C_Read... [11:20:29]Read from MH i2c: E2 03 00 1A 05 00 90 00 93 [11:20:29]RAPDU: 90 00 [11:20:29]wFMCommunicate OK [11:20:29]wFMCommunicate request_size=4 [11:20:29]MH_SAM_APDU [11:20:29]CAPDU: 80 0D 03 02 [11:20:29]Write to MH i2c: E2 08 00 1B 05 80 0D 03 02 00 00 00 00 9B [11:20:29]Write i2c OK [11:20:29]MH_I2C_Read... [11:20:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:20:29]Read from MH i2c: E2 [11:20:29]MH_I2C_Read... [11:20:29]Read from MH i2c: E2 0B 00 [11:20:29]MH_I2C_Read... [11:20:29]Read from MH i2c: E2 0B 00 1B 05 00 5E 0B 73 3F D5 78 9C 66 90 00 06 [11:20:29]RAPDU: 5E 0B 73 3F D5 78 9C 66 90 00 [11:20:29]wFMCommunicate OK [11:20:29]SAM_PROTO_SignData done [11:20:29]FM_MakeSignedData done [11:20:29]CreateOFDProtocolMessage [11:20:29]wFMCommunicate request_size=4 [11:20:29]MH_SAM_APDU [11:20:29]CAPDU: 80 11 00 00 [11:20:29]Write to MH i2c: E2 08 00 1C 05 80 11 00 00 00 00 00 00 9B [11:20:29]Write i2c OK [11:20:29]MH_I2C_Read... [11:20:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:29]Read from MH i2c: E2 [11:20:29]MH_I2C_Read... [11:20:29]Read from MH i2c: E2 17 00 [11:20:29]MH_I2C_Read... [11:20:29]Read from MH i2c: E2 17 00 1C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F1 [11:20:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:20:29]wFMCommunicate OK [11:20:29]CreateOFDProtocolMessage done [11:20:29]OFDSenderStorePacket 165242 [11:20:29]StoreOFDPacket docnum=165242 [11:20:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 29 4C 04 01 04 27 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 33 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5D 6F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 6F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 27 00 00 00 00 07 04 06 00 30 6F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 FC 05 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7A 85 02 00 35 04 06 00 99 A8 EA 6D D4 48 5E 0B 73 3F D5 78 9C 66 [11:20:29]CheckFolder [11:20:29]dirname=/storage/ofd_packets [11:20:29]CheckFolder done [11:20:29]ProducePacketName [11:20:29]name=ofd_packets/00165242 [11:20:29]NVStorageSaveData ofd_packets/00165242 [11:20:29]File name is /storage/ofd_packets/00165242 [11:20:29]Write 298 bytes [11:20:29]NVStorageSaveData done [11:20:29]OFDSenderStorePacket done [11:20:29]KKMCreateOFDPacket done [11:20:29]NVStorageSaveData kkm_last_timestamp [11:20:29]File name is /storage/kkm_last_timestamp [11:20:29]Write 4 bytes [11:20:29]NVStorageSaveData done [11:20:29]ExternCall_PrintAddStr [11:20:29]wPrintStart [11:20:29]Write to MH i2c: 01 00 00 1D 05 22 [11:20:29]Write i2c OK [11:20:29]MH_I2C_Read... [11:20:29]Read from MH i2c: 01 [11:20:29]MH_I2C_Read... [11:20:29]Read from MH i2c: 01 07 00 [11:20:29]MH_I2C_Read... [11:20:29]Read from MH i2c: 01 07 00 1D 05 00 00 00 00 00 FF 0F 37 [11:20:29]RasterBufferAndPrint [11:20:29]line Счет N : (1)459349 [11:20:29]line ИНН: 02508201610067 [11:20:29]line Контрольно-Кассовый Чек [11:20:29]line ПРОДАЖА [11:20:29]line ТРК (МРК, ГНК) : 21 [11:20:29]line Товар: 2710194210 [11:20:29]line ДТ-К-5 [11:20:29]line 13.080 * 71.90 [11:20:29]line = 940.45 [11:20:29]line НДС 12% НСП 1% [11:20:29]line > о реализуемом товаре [11:20:29]line ОКРУГЛЕНИЕ: -0.45 [11:20:29]line ИТОГО: 940.00 [11:20:29]line Внесено: 940.00 [11:20:29]line СДАЧА: 0.00 [11:20:29]line НСП 1% : 8.32 [11:20:29]line НДС 12% : 99.87 [11:20:29]line Наличными: 940.00 [11:20:29]line Безнал.: 0.00 [11:20:29]line Место: АЗС № 72 "Партнер Нефть" [11:20:29]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:20:29]line СНО: Общий режим [11:20:29]line Чек 115 15.07.2024 11:20 [11:20:29]line Смена: 448 ФФД: 1.0 [11:20:29]line ЗНМ: 0300000160 [11:20:29]line РНМ: 0000000000090829 [11:20:29]line Версия ККМ: 001 [11:20:29]line ФМ: 0000000000874718 [11:20:29]line ФД: 165242 [11:20:29]line ФПД: 168950766621768 [11:20:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T112028&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165242&fm=168950766621768&tin=02508201610067®Number=0000000000090829&sum=94000 [11:20:30]OFD Sender: Processing packet 165242 [packets to send 106, broken 105] [11:20:30]ProducePacketName [11:20:30]name=ofd_packets/00165242 [11:20:30]OFD Sender: To server: pG, [11:20:30]CommunicateWithHost lk.salyk.kg:30040 [11:20:30]ConnectInit lk.salyk.kg [11:20:30]written 0, free lines is 4095 [11:20:30]Connected sock=10 [11:20:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 29 4C 04 01 04 27 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 33 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5D 6F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 6F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 27 00 00 00 00 07 04 06 00 30 6F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 FC 05 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7A 85 02 00 35 04 06 00 99 A8 EA 6D D4 48 5E 0B 73 3F D5 78 9C 66 [11:20:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 04 9D 47 00 E6 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 7A 85 02 00 F4 03 04 00 87 AC 94 66 B6 04 01 00 00 F7 73 F8 4C 59 E0 F6 93 [11:20:30]CommunicateWithHost err = 0 [11:20:30]CheckOFDResponse [11:20:30]1017 (14) - 77093643461234 [11:20:30]1041 (16) - 0000000000874718 [11:20:30]1040 (4) - 165242 [11:20:30]1012 (4) - 15.07.2024 04:58 [11:20:30]1206 (1) - 0 [11:20:30]OFD Sender: Remove packet 165242 [11:20:30]ProducePacketName [11:20:30]name=ofd_packets/00165242 [11:20:30]NVStorageDeleteData [11:20:30]Write to MH i2c: 01 00 00 47 05 4C [11:20:30]Write i2c OK [11:20:30]MH_I2C_Read... [11:20:30]Read from MH i2c: 01 [11:20:30]MH_I2C_Read... [11:20:30]Read from MH i2c: 01 07 00 [11:20:30]MH_I2C_Read... [11:20:30]Read from MH i2c: 01 07 00 47 05 00 00 00 00 00 FD 0C 5C [11:20:30]RasterBufferAndPrint [11:20:30]line [11:20:30]line [11:20:30]line [11:20:30]line [11:20:30]line [11:20:30]written 0, free lines is 3331 [11:20:30]MH_Cut [11:20:30]Write to MH i2c: D1 01 00 4E 05 01 25 [11:20:30]Write i2c OK [11:20:30]MH_I2C_Read... [11:20:30]Read from MH i2c: D1 [11:20:30]MH_I2C_Read... [11:20:30]Read from MH i2c: D1 01 00 [11:20:30]MH_I2C_Read... [11:20:30]Read from MH i2c: D1 01 00 4E 05 00 24 [11:20:30]Write to MH i2c: 01 00 00 4F 05 54 [11:20:30]Write i2c OK [11:20:30]MH_I2C_Read... [11:20:30]OFD Sender: No OFD packet to send [11:20:31]*** Cut start [11:20:31]*** Partial cut [11:20:31]*** CUTSNS_PIN = 1 [11:20:31]*** CUTSNS_PIN = 0 [11:20:31]*** Brake cut motor [11:20:31]Read from MH i2c: 01 [11:20:31]MH_I2C_Read... [11:20:31]*** Stop cut motor [11:20:31]*** Cut end [11:20:31]Read from MH i2c: 01 07 00 [11:20:31]MH_I2C_Read... [11:20:31]Read from MH i2c: 01 07 00 4F 05 00 00 00 00 00 FF 0F 69 [11:20:31]process_action close_receipt done [11:20:31]requested_data is exist [11:20:31]produce_requested_data [11:20:31]requested_item fm.sn is exist - process it [11:20:31]wFMCommunicate request_size=4 [11:20:31]MH_SAM_APDU [11:20:31]CAPDU: 80 11 00 00 [11:20:31]Write to MH i2c: E2 08 00 50 05 80 11 00 00 00 00 00 00 CF [11:20:31]Write i2c OK [11:20:31]MH_I2C_Read... [11:20:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:31]Read from MH i2c: E2 [11:20:31]MH_I2C_Read... [11:20:31]Read from MH i2c: E2 17 00 [11:20:31]MH_I2C_Read... [11:20:31]Read from MH i2c: E2 17 00 50 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 25 [11:20:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:20:31]wFMCommunicate OK [11:20:31]requested_item fd.num is exist - process it [11:20:31]SAM_PROTO_GetFieldsCounters [11:20:31]wFMCommunicate request_size=4 [11:20:31]MH_SAM_APDU [11:20:31]CAPDU: 80 13 00 00 [11:20:31]Write to MH i2c: E2 08 00 51 05 80 13 00 00 00 00 00 00 D2 [11:20:31]Write i2c OK [11:20:31]MH_I2C_Read... [11:20:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:20:32]Read from MH i2c: E2 [11:20:32]MH_I2C_Read... [11:20:32]Read from MH i2c: E2 62 00 [11:20:32]MH_I2C_Read... [11:20:32]Read from MH i2c: E2 62 00 51 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7A 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [11:20:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7A 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:20:32]wFMCommunicate OK [11:20:32]SAM_PROTO_GetFieldsCounters done [11:20:32]requested_item shift.num is exist - process it [11:20:32]requested_item shift.opened is exist - process it [11:20:32]req_shift_opened [11:20:32]FM_GetShiftState [11:20:32]SAM_PROTO_GetShiftState [11:20:32]wFMCommunicate request_size=4 [11:20:32]MH_SAM_APDU [11:20:32]CAPDU: 80 13 01 00 [11:20:32]Write to MH i2c: E2 08 00 52 05 80 13 01 00 00 00 00 00 D4 [11:20:32]Write i2c OK [11:20:32]MH_I2C_Read... [11:20:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:32]Read from MH i2c: E2 [11:20:32]MH_I2C_Read... [11:20:32]Read from MH i2c: E2 0E 00 [11:20:32]MH_I2C_Read... [11:20:32]Read from MH i2c: E2 0E 00 52 05 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 AD [11:20:32]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [11:20:32]wFMCommunicate OK [11:20:32]SAM_PROTO_GetShiftState done [11:20:32]FM_GetShiftState done [11:20:32]req_shift_opened done [11:20:32]requested_item shift.open_date is exist - process it [11:20:32]req_shift_open_date [11:20:32]req_shift_open_date done [11:20:32]produce_requested_data done [11:20:32]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165242,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [11:20:32]process_action_free close_receipt [11:20:32]json_value_free [11:20:32]json_value_free done [11:20:32]process_json_proto returns [11:20:32]Send response to host [11:20:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165242,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [11:20:32]free response buf [11:20:32]execute_script done [11:20:32]execute_script returns [11:20:32]free content buf [11:20:32]Sock 8.Close socket [11:20:32]Sock 8.Thread stoped [11:20:35]OFD Sender: No OFD packet to send [11:20:40]OFD Sender: No OFD packet to send [11:20:45]OFD Sender: No OFD packet to send [11:20:50]OFD Sender: No OFD packet to send [11:20:55]OFD Sender: No OFD packet to send [11:21:00]OFD Sender: No OFD packet to send [11:21:05]OFD Sender: No OFD packet to send [11:21:10]OFD Sender: No OFD packet to send [11:21:15]OFD Sender: No OFD packet to send [11:21:19]accept exits with 9 [11:21:19]New connection [11:21:19]New thread 3066711396 created [11:21:19]Thread 3066854756 joined [11:21:19]Waiting for new connection... [11:21:19] Sock 9.Parse request [11:21:19]Sock 9.Check first char [11:21:19]Sock 9.First char is OK [11:21:19]request: POST /json_proto HTTP/1.0 [11:21:19]Method: POST [11:21:19]URL: /json_proto [11:21:19]Method is POST - this is cgi request [11:21:19]url: /json_proto [11:21:19]query_string will be loaded in cgi processing [11:21:19]execute_cgi json_proto POST (null) [11:21:19]execute_cgi path=json_proto method=POST [11:21:19]POST find Content-Length [11:21:19]Host: 172.17.56.4:8080 [11:21:19]Content-Length: 677 [11:21:19]Content-Type: application/json [11:21:19] [11:21:19]POST finish read [11:21:19]Found Content-Length = 677 [11:21:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459350", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:21:19]execute_script... [11:21: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)459350", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:21:19]POST & json_proto [11:21:19]process_json_proto [11:21:19]json parsed OK: [11:21:19]protocol is kg_v1.0 [11:21:19]action value=close_receipt [11:21:19]process_action close_receipt [11:21:19]cmd_close_receipt [11:21:19]MH_GetDate [11:21:19]Write to MH i2c: F0 00 00 53 05 47 [11:21:19]Write i2c OK [11:21:19]MH_I2C_Read... [11:21:19]Read from MH i2c: F0 [11:21:19]MH_I2C_Read... [11:21:19]Read from MH i2c: F0 09 00 [11:21:19]MH_I2C_Read... [11:21:19]Read from MH i2c: F0 09 00 53 05 00 2F 06 95 66 C9 DC B2 64 3B [11:21:19]GetLastDocTimeStamp 1721042428 [11:21:19]current date 1721042479 [11:21:19]FM_GetShiftState [11:21:19]SAM_PROTO_GetShiftState [11:21:19]wFMCommunicate request_size=4 [11:21:19]MH_SAM_APDU [11:21:19]CAPDU: 80 13 01 00 [11:21:19]Write to MH i2c: E2 08 00 54 05 80 13 01 00 00 00 00 00 D6 [11:21:19]Write i2c OK [11:21:19]MH_I2C_Read... [11:21:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:19]Read from MH i2c: E2 [11:21:19]MH_I2C_Read... [11:21:19]Read from MH i2c: E2 0E 00 [11:21:19]MH_I2C_Read... [11:21:19]Read from MH i2c: E2 0E 00 54 05 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 AF [11:21:19]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [11:21:19]wFMCommunicate OK [11:21:19]SAM_PROTO_GetShiftState done [11:21:19]FM_GetShiftState done [11:21:19]opened in 1721003876 [11:21:19]opened+sec_in_day 1721090276 [11:21:19]quantity*price = 50008 [11:21:19]sum+1 = 50009 [11:21:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 116 15.07.2024 11:21 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165243 ФПД: 68494338993882 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T112120&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165243&fm=68494338993882&tin=02508201610067®Number=0000000000090829&sum=50000 [11:21:20]StoreToDocumentArchive [11:21:20]shift 448 fd 165243 [11:21:20]save to /storage/0448/doc_00165243 [11:21:20]save last doc name /storage/0448/doc_00165243 to /storage/kkm_last_doc_name [11:21:20]save OK [11:21:20]Clear old archive folders... [11:21:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:21:20]tlvbuf is 017F7350 [11:21:20]SAM_PROTO_ClearQueue [11:21:20]wFMCommunicate request_size=4 [11:21:20]MH_SAM_APDU [11:21:20]CAPDU: 80 09 00 00 [11:21:20]Write to MH i2c: E2 08 00 61 05 80 09 00 00 00 00 00 00 D8 [11:21:20]Write i2c OK [11:21:20]MH_I2C_Read... [11:21:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:21:20]Read from MH i2c: E2 [11:21:20]MH_I2C_Read... [11:21:20]Read from MH i2c: E2 03 00 [11:21:20]MH_I2C_Read... [11:21:20]Read from MH i2c: E2 03 00 61 05 00 90 00 DA [11:21:20]RAPDU: 90 00 [11:21:20]wFMCommunicate OK [11:21:20]SAM_PROTO_ClearQueue done [11:21:20]KKMCreateOFDPacket [11:21:20]OFDProtocolAddRootSTLVToBuf [11:21:20]FM_MakeSignedData [11:21:20]FM_MakeSignedData [11:21:20]SAM_PROTO_SignData [11:21:20]wFMCommunicate request_size=4 [11:21:20]MH_SAM_APDU [11:21:20]CAPDU: 80 0D 01 02 [11:21:20]Write to MH i2c: E2 08 00 62 05 80 0D 01 02 00 00 00 00 E0 [11:21:20]Write i2c OK [11:21:20]MH_I2C_Read... [11:21:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:21:20]Read from MH i2c: E2 [11:21:20]MH_I2C_Read... [11:21:20]Read from MH i2c: E2 03 00 [11:21:20]MH_I2C_Read... [11:21:20]Read from MH i2c: E2 03 00 62 05 00 90 00 DB [11:21:20]RAPDU: 90 00 [11:21:20]wFMCommunicate OK [11:21:20]wFMCommunicate request_size=255 [11:21:20]MH_SAM_APDU [11:21:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 30 06 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7B 85 02 00 35 04 06 00 3E [11:21:20]Write to MH i2c: E2 02 01 63 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 30 06 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7B 85 02 00 35 04 06 00 3E 00 00 FF [11:21:20]Write i2c OK [11:21:20]MH_I2C_Read... [11:21:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:20]Read from MH i2c: E2 [11:21:20]MH_I2C_Read... [11:21:20]Read from MH i2c: E2 03 00 [11:21:20]MH_I2C_Read... [11:21:20]Read from MH i2c: E2 03 00 63 05 00 90 00 DC [11:21:20]RAPDU: 90 00 [11:21:20]wFMCommunicate OK [11:21:20]wFMCommunicate request_size=10 [11:21:20]MH_SAM_APDU [11:21:20]CAPDU: 80 0D 02 02 05 4B 94 BE AE DA [11:21:20]Write to MH i2c: E2 0D 00 64 05 80 0D 02 02 05 00 4B 94 BE AE DA 00 00 12 [11:21:20]Write i2c OK [11:21:20]MH_I2C_Read... [11:21:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:20]Read from MH i2c: E2 [11:21:20]MH_I2C_Read... [11:21:20]Read from MH i2c: E2 03 00 [11:21:20]MH_I2C_Read... [11:21:20]Read from MH i2c: E2 03 00 64 05 00 90 00 DD [11:21:20]RAPDU: 90 00 [11:21:20]wFMCommunicate OK [11:21:20]wFMCommunicate request_size=4 [11:21:20]MH_SAM_APDU [11:21:20]CAPDU: 80 0D 03 02 [11:21:20]Write to MH i2c: E2 08 00 65 05 80 0D 03 02 00 00 00 00 E5 [11:21:20]Write i2c OK [11:21:20]MH_I2C_Read... [11:21:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:21:20]Read from MH i2c: E2 [11:21:20]MH_I2C_Read... [11:21:20]Read from MH i2c: E2 0B 00 [11:21:20]MH_I2C_Read... [11:21:20]Read from MH i2c: E2 0B 00 65 05 00 0A D7 09 B1 28 B2 26 A8 90 00 29 [11:21:20]RAPDU: 0A D7 09 B1 28 B2 26 A8 90 00 [11:21:20]wFMCommunicate OK [11:21:20]SAM_PROTO_SignData done [11:21:20]FM_MakeSignedData done [11:21:20]CreateOFDProtocolMessage [11:21:20]wFMCommunicate request_size=4 [11:21:20]MH_SAM_APDU [11:21:20]CAPDU: 80 11 00 00 [11:21:20]Write to MH i2c: E2 08 00 66 05 80 11 00 00 00 00 00 00 E5 [11:21:20]Write i2c OK [11:21:20]MH_I2C_Read... [11:21:20]OFD Sender: No OFD packet to send [11:21:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:20]Read from MH i2c: E2 [11:21:20]MH_I2C_Read... [11:21:20]Read from MH i2c: E2 17 00 [11:21:20]MH_I2C_Read... [11:21:20]Read from MH i2c: E2 17 00 66 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3B [11:21:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:21:20]wFMCommunicate OK [11:21:20]CreateOFDProtocolMessage done [11:21:20]OFDSenderStorePacket 165243 [11:21:20]StoreOFDPacket docnum=165243 [11:21:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A5 24 07 01 46 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 30 06 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7B 85 02 00 35 04 06 00 3E 4B 94 BE AE DA 0A D7 09 B1 28 B2 26 A8 [11:21:20]CheckFolder [11:21:20]dirname=/storage/ofd_packets [11:21:20]CheckFolder done [11:21:20]ProducePacketName [11:21:20]name=ofd_packets/00165243 [11:21:20]NVStorageSaveData ofd_packets/00165243 [11:21:20]File name is /storage/ofd_packets/00165243 [11:21:20]Write 301 bytes [11:21:20]NVStorageSaveData done [11:21:20]OFDSenderStorePacket done [11:21:20]KKMCreateOFDPacket done [11:21:20]NVStorageSaveData kkm_last_timestamp [11:21:20]File name is /storage/kkm_last_timestamp [11:21:20]Write 4 bytes [11:21:20]NVStorageSaveData done [11:21:20]ExternCall_PrintAddStr [11:21:20]wPrintStart [11:21:20]Write to MH i2c: 01 00 00 67 05 6C [11:21:20]Write i2c OK [11:21:20]MH_I2C_Read... [11:21:20]Read from MH i2c: 01 [11:21:20]MH_I2C_Read... [11:21:20]Read from MH i2c: 01 07 00 [11:21:20]MH_I2C_Read... [11:21:20]Read from MH i2c: 01 07 00 67 05 00 00 00 00 00 FF 0F 81 [11:21:21]RasterBufferAndPrint [11:21:21]line Счет N : (1)459350 [11:21:21]line ИНН: 02508201610067 [11:21:21]line Контрольно-Кассовый Чек [11:21:21]line ПРОДАЖА [11:21:21]line ТРК (МРК, ГНК) : 12 [11:21:21]line Товар: 2710124130 [11:21:21]line Аи-92-К-5 [11:21:21]line 7.600 * 65.80 [11:21:21]line = 500.08 [11:21:21]line НДС 12% НСП 1% [11:21:21]line > о реализуемом товаре [11:21:21]line ОКРУГЛЕНИЕ: -0.08 [11:21:21]line ИТОГО: 500.00 [11:21:21]line Внесено: 500.00 [11:21:21]line СДАЧА: 0.00 [11:21:21]line НСП 1% : 4.42 [11:21:21]line НДС 12% : 53.11 [11:21:21]line Наличными: 500.00 [11:21:21]line Безнал.: 0.00 [11:21:21]line Место: АЗС № 72 "Партнер Нефть" [11:21:21]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:21:21]line СНО: Общий режим [11:21:21]line Чек 116 15.07.2024 11:21 [11:21:21]line Смена: 448 ФФД: 1.0 [11:21:21]line ЗНМ: 0300000160 [11:21:21]line РНМ: 0000000000090829 [11:21:21]line Версия ККМ: 001 [11:21:21]line ФМ: 0000000000874718 [11:21:21]line ФД: 165243 [11:21:21]line ФПД: 68494338993882 [11:21:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T112120&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165243&fm=68494338993882&tin=02508201610067®Number=0000000000090829&sum=50000 [11:21:21]OFD Sender: Processing packet 165243 [packets to send 106, broken 105] [11:21:21]ProducePacketName [11:21:21]name=ofd_packets/00165243 [11:21:21]OFD Sender: To server: pG, [11:21:21]CommunicateWithHost lk.salyk.kg:30040 [11:21:21]ConnectInit lk.salyk.kg [11:21:21]written 0, free lines is 4095 [11:21:21]Connected sock=10 [11:21: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 37 31 38 0F 01 00 00 A5 24 07 01 46 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 30 06 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7B 85 02 00 35 04 06 00 3E 4B 94 BE AE DA 0A D7 09 B1 28 B2 26 A8 [11:21:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 C3 FA 47 00 93 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7B 85 02 00 F4 03 04 00 BA AC 94 66 B6 04 01 00 00 36 D4 5A 3E 25 1D 5C DA [11:21:21]CommunicateWithHost err = 0 [11:21:21]CheckOFDResponse [11:21:21]1017 (14) - 77093643461234 [11:21:21]1041 (16) - 0000000000874718 [11:21:21]1040 (4) - 165243 [11:21:21]1012 (4) - 15.07.2024 04:59 [11:21:21]1206 (1) - 0 [11:21:21]OFD Sender: Remove packet 165243 [11:21:21]ProducePacketName [11:21:21]name=ofd_packets/00165243 [11:21:21]NVStorageDeleteData [11:21:21]Write to MH i2c: 01 00 00 91 05 96 [11:21:21]Write i2c OK [11:21:21]MH_I2C_Read... [11:21:21]Read from MH i2c: 01 [11:21:21]MH_I2C_Read... [11:21:21]Read from MH i2c: 01 07 00 [11:21:21]MH_I2C_Read... [11:21:21]Read from MH i2c: 01 07 00 91 05 00 00 00 00 00 F4 0C 9D [11:21:21]RasterBufferAndPrint [11:21:21]line [11:21:21]line [11:21:21]line [11:21:21]line [11:21:21]line [11:21:21]written 0, free lines is 3323 [11:21:21]MH_Cut [11:21:21]Write to MH i2c: D1 01 00 98 05 01 6F [11:21:21]Write i2c OK [11:21:21]MH_I2C_Read... [11:21:21]Read from MH i2c: D1 [11:21:21]MH_I2C_Read... [11:21:21]Read from MH i2c: D1 01 00 [11:21:21]MH_I2C_Read... [11:21:21]Read from MH i2c: D1 01 00 98 05 00 6E [11:21:21]Write to MH i2c: 01 00 00 99 05 9E [11:21:21]Write i2c OK [11:21:21]MH_I2C_Read... [11:21:22]OFD Sender: No OFD packet to send [11:21:22]*** Cut start [11:21:22]*** Partial cut [11:21:22]*** CUTSNS_PIN = 1 [11:21:22]*** CUTSNS_PIN = 0 [11:21:22]*** Brake cut motor [11:21:23]Read from MH i2c: 01 [11:21:23]MH_I2C_Read... [11:21:23]*** Stop cut motor [11:21:23]*** Cut end [11:21:23]Read from MH i2c: 01 07 00 [11:21:23]MH_I2C_Read... [11:21:23]Read from MH i2c: 01 07 00 99 05 00 00 00 00 00 FF 0F B3 [11:21:23]process_action close_receipt done [11:21:23]requested_data is exist [11:21:23]produce_requested_data [11:21:23]requested_item fm.sn is exist - process it [11:21:23]wFMCommunicate request_size=4 [11:21:23]MH_SAM_APDU [11:21:23]CAPDU: 80 11 00 00 [11:21:23]Write to MH i2c: E2 08 00 9A 05 80 11 00 00 00 00 00 00 19 [11:21:23]Write i2c OK [11:21:23]MH_I2C_Read... [11:21:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:23]Read from MH i2c: E2 [11:21:23]MH_I2C_Read... [11:21:23]Read from MH i2c: E2 17 00 [11:21:23]MH_I2C_Read... [11:21:23]Read from MH i2c: E2 17 00 9A 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6F [11:21:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:21:23]wFMCommunicate OK [11:21:23]requested_item fd.num is exist - process it [11:21:23]SAM_PROTO_GetFieldsCounters [11:21:23]wFMCommunicate request_size=4 [11:21:23]MH_SAM_APDU [11:21:23]CAPDU: 80 13 00 00 [11:21:23]Write to MH i2c: E2 08 00 9B 05 80 13 00 00 00 00 00 00 1C [11:21:23]Write i2c OK [11:21:23]MH_I2C_Read... [11:21:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:21:23]Read from MH i2c: E2 [11:21:23]MH_I2C_Read... [11:21:23]Read from MH i2c: E2 62 00 [11:21:23]MH_I2C_Read... [11:21:23]Read from MH i2c: E2 62 00 9B 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7B 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [11:21:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7B 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:21:23]wFMCommunicate OK [11:21:23]SAM_PROTO_GetFieldsCounters done [11:21:23]requested_item shift.num is exist - process it [11:21:23]requested_item shift.opened is exist - process it [11:21:23]req_shift_opened [11:21:23]FM_GetShiftState [11:21:23]SAM_PROTO_GetShiftState [11:21:23]wFMCommunicate request_size=4 [11:21:23]MH_SAM_APDU [11:21:23]CAPDU: 80 13 01 00 [11:21:23]Write to MH i2c: E2 08 00 9C 05 80 13 01 00 00 00 00 00 1E [11:21:23]Write i2c OK [11:21:23]MH_I2C_Read... [11:21:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:23]Read from MH i2c: E2 [11:21:23]MH_I2C_Read... [11:21:23]Read from MH i2c: E2 0E 00 [11:21:23]MH_I2C_Read... [11:21:23]Read from MH i2c: E2 0E 00 9C 05 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 F7 [11:21:23]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [11:21:23]wFMCommunicate OK [11:21:23]SAM_PROTO_GetShiftState done [11:21:23]FM_GetShiftState done [11:21:23]req_shift_opened done [11:21:23]requested_item shift.open_date is exist - process it [11:21:23]req_shift_open_date [11:21:23]req_shift_open_date done [11:21:23]produce_requested_data done [11:21:23]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165243,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [11:21:23]process_action_free close_receipt [11:21:23]json_value_free [11:21:23]json_value_free done [11:21:23]process_json_proto returns [11:21:23]Send response to host [11:21:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165243,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [11:21:23]free response buf [11:21:23]execute_script done [11:21:23]execute_script returns [11:21:23]free content buf [11:21:23]Sock 9.Close socket [11:21:23]Sock 9.Thread stoped [11:21:27]OFD Sender: No OFD packet to send [11:21:32]OFD Sender: No OFD packet to send [11:21:37]OFD Sender: No OFD packet to send [11:21:42]OFD Sender: No OFD packet to send [11:21:47]OFD Sender: No OFD packet to send [11:21:52]OFD Sender: No OFD packet to send [11:21:57]OFD Sender: No OFD packet to send [11:22:02]OFD Sender: No OFD packet to send [11:22:07]OFD Sender: No OFD packet to send [11:22:12]OFD Sender: No OFD packet to send [11:22:17]OFD Sender: No OFD packet to send [11:22:22]OFD Sender: No OFD packet to send [11:22:27]OFD Sender: No OFD packet to send [11:22:32]OFD Sender: No OFD packet to send [11:22:37]OFD Sender: No OFD packet to send [11:22:42]OFD Sender: No OFD packet to send [11:22:47]OFD Sender: No OFD packet to send [11:22:52]OFD Sender: No OFD packet to send [11:22:57]OFD Sender: No OFD packet to send [11:23:02]OFD Sender: No OFD packet to send [11:23:07]OFD Sender: No OFD packet to send [11:23:12]OFD Sender: No OFD packet to send [11:23:17]OFD Sender: No OFD packet to send [11:23:22]OFD Sender: No OFD packet to send [11:23:27]OFD Sender: No OFD packet to send [11:23:32]OFD Sender: No OFD packet to send [11:23:37]OFD Sender: No OFD packet to send [11:23:42]OFD Sender: No OFD packet to send [11:23:47]OFD Sender: No OFD packet to send [11:23:52]OFD Sender: No OFD packet to send [11:23:57]OFD Sender: No OFD packet to send [11:24:02]OFD Sender: No OFD packet to send [11:24:07]OFD Sender: No OFD packet to send [11:24:12]OFD Sender: No OFD packet to send [11:24:17]OFD Sender: No OFD packet to send [11:24:22]OFD Sender: No OFD packet to send [11:24:27]OFD Sender: No OFD packet to send [11:24:32]OFD Sender: No OFD packet to send [11:24:37]OFD Sender: No OFD packet to send [11:24:42]OFD Sender: No OFD packet to send [11:24:47]OFD Sender: No OFD packet to send [11:24:52]OFD Sender: No OFD packet to send [11:24:55]accept exits with 8 [11:24:55]New connection [11:24:55]New thread 3066854756 created [11:24:55]Thread 3066711396 joined [11:24:55]Waiting for new connection... [11:24:55] Sock 8.Parse request [11:24:55]Sock 8.Check first char [11:24:55]Sock 8.First char is OK [11:24:55]request: POST /json_proto HTTP/1.0 [11:24:55]Method: POST [11:24:55]URL: /json_proto [11:24:55]Method is POST - this is cgi request [11:24:55]url: /json_proto [11:24:55]query_string will be loaded in cgi processing [11:24:55]execute_cgi json_proto POST (null) [11:24:55]execute_cgi path=json_proto method=POST [11:24:55]POST find Content-Length [11:24:55]Host: 172.17.56.4:8080 [11:24:55]Content-Length: 677 [11:24:55]Content-Type: application/json [11:24:55] [11:24:55]POST finish read [11:24:55]Found Content-Length = 677 [11:24:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459351", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.880, "sum" : 650.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:55]execute_script... [11:24: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)459351", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.880, "sum" : 650.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:55]POST & json_proto [11:24:55]process_json_proto [11:24:55]json parsed OK: [11:24:55]protocol is kg_v1.0 [11:24:55]action value=close_receipt [11:24:55]process_action close_receipt [11:24:55]cmd_close_receipt [11:24:55]MH_GetDate [11:24:55]Write to MH i2c: F0 00 00 9D 05 91 [11:24:55]Write i2c OK [11:24:55]MH_I2C_Read... [11:24:55]Read from MH i2c: F0 [11:24:55]MH_I2C_Read... [11:24:55]Read from MH i2c: F0 09 00 [11:24:55]MH_I2C_Read... [11:24:55]Read from MH i2c: F0 09 00 9D 05 00 08 07 95 66 C9 DC B2 64 5F [11:24:55]GetLastDocTimeStamp 1721042480 [11:24:55]current date 1721042696 [11:24:55]FM_GetShiftState [11:24:55]SAM_PROTO_GetShiftState [11:24:55]wFMCommunicate request_size=4 [11:24:55]MH_SAM_APDU [11:24:55]CAPDU: 80 13 01 00 [11:24:55]Write to MH i2c: E2 08 00 9E 05 80 13 01 00 00 00 00 00 20 [11:24:55]Write i2c OK [11:24:55]MH_I2C_Read... [11:24:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:55]Read from MH i2c: E2 [11:24:55]MH_I2C_Read... [11:24:55]Read from MH i2c: E2 0E 00 [11:24:55]MH_I2C_Read... [11:24:55]Read from MH i2c: E2 0E 00 9E 05 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 F9 [11:24:55]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [11:24:55]wFMCommunicate OK [11:24:55]SAM_PROTO_GetShiftState done [11:24:55]FM_GetShiftState done [11:24:55]opened in 1721003876 [11:24:55]opened+sec_in_day 1721090276 [11:24:55]quantity*price = 65010 [11:24:55]sum+1 = 65011 [11:24:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.75 НДС 12% : 69.04 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 117 15.07.2024 11:24 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165244 ФПД: 165820033185288 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T112456&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165244&fm=165820033185288&tin=02508201610067®Number=0000000000090829&sum=65000 [11:24:56]StoreToDocumentArchive [11:24:56]shift 448 fd 165244 [11:24:56]save to /storage/0448/doc_00165244 [11:24:56]save last doc name /storage/0448/doc_00165244 to /storage/kkm_last_doc_name [11:24:56]save OK [11:24:56]Clear old archive folders... [11:24:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:24:56]tlvbuf is 017F6F30 [11:24:56]SAM_PROTO_ClearQueue [11:24:56]wFMCommunicate request_size=4 [11:24:56]MH_SAM_APDU [11:24:56]CAPDU: 80 09 00 00 [11:24:56]Write to MH i2c: E2 08 00 AB 05 80 09 00 00 00 00 00 00 22 [11:24:56]Write i2c OK [11:24:56]MH_I2C_Read... [11:24:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:24:56]Read from MH i2c: E2 [11:24:56]MH_I2C_Read... [11:24:56]Read from MH i2c: E2 03 00 [11:24:56]MH_I2C_Read... [11:24:56]Read from MH i2c: E2 03 00 AB 05 00 90 00 24 [11:24:56]RAPDU: 90 00 [11:24:56]wFMCommunicate OK [11:24:56]SAM_PROTO_ClearQueue done [11:24:56]KKMCreateOFDPacket [11:24:56]OFDProtocolAddRootSTLVToBuf [11:24:56]FM_MakeSignedData [11:24:56]FM_MakeSignedData [11:24:56]SAM_PROTO_SignData [11:24:56]wFMCommunicate request_size=4 [11:24:56]MH_SAM_APDU [11:24:56]CAPDU: 80 0D 01 02 [11:24:56]Write to MH i2c: E2 08 00 AC 05 80 0D 01 02 00 00 00 00 2A [11:24:56]Write i2c OK [11:24:56]MH_I2C_Read... [11:24:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:24:56]Read from MH i2c: E2 [11:24:56]MH_I2C_Read... [11:24:56]Read from MH i2c: E2 03 00 [11:24:56]MH_I2C_Read... [11:24:56]Read from MH i2c: E2 03 00 AC 05 00 90 00 25 [11:24:56]RAPDU: 90 00 [11:24:56]wFMCommunicate OK [11:24:56]wFMCommunicate request_size=255 [11:24:56]MH_SAM_APDU [11:24: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 98 26 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 F2 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 08 07 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7C 85 02 00 35 04 06 00 96 [11:24:56]Write to MH i2c: E2 02 01 AD 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 26 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 F2 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 08 07 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7C 85 02 00 35 04 06 00 96 00 00 AA [11:24:56]Write i2c OK [11:24:56]MH_I2C_Read... [11:24:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:57]Read from MH i2c: E2 [11:24:57]MH_I2C_Read... [11:24:57]Read from MH i2c: E2 03 00 [11:24:57]MH_I2C_Read... [11:24:57]Read from MH i2c: E2 03 00 AD 05 00 90 00 26 [11:24:57]RAPDU: 90 00 [11:24:57]wFMCommunicate OK [11:24:57]wFMCommunicate request_size=10 [11:24:57]MH_SAM_APDU [11:24:57]CAPDU: 80 0D 02 02 05 CF FC 2C B6 08 [11:24:57]Write to MH i2c: E2 0D 00 AE 05 80 0D 02 02 05 00 CF FC 2C B6 08 00 00 EC [11:24:57]Write i2c OK [11:24:57]MH_I2C_Read... [11:24:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:57]Read from MH i2c: E2 [11:24:57]MH_I2C_Read... [11:24:57]Read from MH i2c: E2 03 00 [11:24:57]MH_I2C_Read... [11:24:57]Read from MH i2c: E2 03 00 AE 05 00 90 00 27 [11:24:57]RAPDU: 90 00 [11:24:57]wFMCommunicate OK [11:24:57]wFMCommunicate request_size=4 [11:24:57]MH_SAM_APDU [11:24:57]CAPDU: 80 0D 03 02 [11:24:57]Write to MH i2c: E2 08 00 AF 05 80 0D 03 02 00 00 00 00 2F [11:24:57]Write i2c OK [11:24:57]MH_I2C_Read... [11:24:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:24:57]Read from MH i2c: E2 [11:24:57]MH_I2C_Read... [11:24:57]Read from MH i2c: E2 0B 00 [11:24:57]MH_I2C_Read... [11:24:57]Read from MH i2c: E2 0B 00 AF 05 00 A7 9C 7E 72 0E 34 9A CE 90 00 0D [11:24:57]RAPDU: A7 9C 7E 72 0E 34 9A CE 90 00 [11:24:57]wFMCommunicate OK [11:24:57]SAM_PROTO_SignData done [11:24:57]FM_MakeSignedData done [11:24:57]CreateOFDProtocolMessage [11:24:57]wFMCommunicate request_size=4 [11:24:57]MH_SAM_APDU [11:24:57]CAPDU: 80 11 00 00 [11:24:57]Write to MH i2c: E2 08 00 B0 05 80 11 00 00 00 00 00 00 2F [11:24:57]Write i2c OK [11:24:57]MH_I2C_Read... [11:24:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:57]Read from MH i2c: E2 [11:24:57]MH_I2C_Read... [11:24:57]Read from MH i2c: E2 17 00 [11:24:57]MH_I2C_Read... [11:24:57]Read from MH i2c: E2 17 00 B0 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 85 [11:24:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:24:57]wFMCommunicate OK [11:24:57]CreateOFDProtocolMessage done [11:24:57]OFDSenderStorePacket 165244 [11:24:57]StoreOFDPacket docnum=165244 [11:24:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 3C FC 07 01 1C 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 26 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 F2 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 08 07 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7C 85 02 00 35 04 06 00 96 CF FC 2C B6 08 A7 9C 7E 72 0E 34 9A CE [11:24:57]CheckFolder [11:24:57]dirname=/storage/ofd_packets [11:24:57]CheckFolder done [11:24:57]ProducePacketName [11:24:57]name=ofd_packets/00165244 [11:24:57]NVStorageSaveData ofd_packets/00165244 [11:24:57]File name is /storage/ofd_packets/00165244 [11:24:57]Write 301 bytes [11:24:57]NVStorageSaveData done [11:24:57]OFDSenderStorePacket done [11:24:57]KKMCreateOFDPacket done [11:24:57]NVStorageSaveData kkm_last_timestamp [11:24:57]File name is /storage/kkm_last_timestamp [11:24:57]Write 4 bytes [11:24:57]NVStorageSaveData done [11:24:57]ExternCall_PrintAddStr [11:24:57]wPrintStart [11:24:57]Write to MH i2c: 01 00 00 B1 05 B6 [11:24:57]Write i2c OK [11:24:57]MH_I2C_Read... [11:24:57]Read from MH i2c: 01 [11:24:57]MH_I2C_Read... [11:24:57]Read from MH i2c: 01 07 00 [11:24:57]MH_I2C_Read... [11:24:57]Read from MH i2c: 01 07 00 B1 05 00 00 00 00 00 FF 0F CB [11:24:57]RasterBufferAndPrint [11:24:57]line Счет N : (1)459351 [11:24:57]line ИНН: 02508201610067 [11:24:57]line Контрольно-Кассовый Чек [11:24:57]line ПРОДАЖА [11:24:57]line ТРК (МРК, ГНК) : 22 [11:24:57]line Товар: 2710124130 [11:24:57]line Аи-92-К-5 [11:24:57]line 9.880 * 65.80 [11:24:57]line = 650.10 [11:24:57]line НДС 12% НСП 1% [11:24:57]line > о реализуемом товаре [11:24:57]line ОКРУГЛЕНИЕ: -0.10 [11:24:57]line ИТОГО: 650.00 [11:24:57]line Внесено: 650.00 [11:24:57]line СДАЧА: 0.00 [11:24:57]line НСП 1% : 5.75 [11:24:57]line НДС 12% : 69.04 [11:24:57]line Наличными: 650.00 [11:24:57]line Безнал.: 0.00 [11:24:57]line Место: АЗС № 72 "Партнер Нефть" [11:24:57]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:24:57]line СНО: Общий режим [11:24:57]line Чек 117 15.07.2024 11:24 [11:24:57]line Смена: 448 ФФД: 1.0 [11:24:57]line ЗНМ: 0300000160 [11:24:57]line РНМ: 0000000000090829 [11:24:57]line Версия ККМ: 001 [11:24:57]line ФМ: 0000000000874718 [11:24:57]line ФД: 165244 [11:24:57]line ФПД: 165820033185288 [11:24:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T112456&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165244&fm=165820033185288&tin=02508201610067®Number=0000000000090829&sum=65000 [11:24:57]OFD Sender: Processing packet 165244 [packets to send 106, broken 105] [11:24:57]ProducePacketName [11:24:57]name=ofd_packets/00165244 [11:24:57]OFD Sender: To server: pG, [11:24:57]CommunicateWithHost lk.salyk.kg:30040 [11:24:57]ConnectInit lk.salyk.kg [11:24:57]written 0, free lines is 4095 [11:24:57]Connected sock=10 [11:24: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 37 31 38 0F 01 00 00 3C FC 07 01 1C 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 26 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 F2 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 08 07 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7C 85 02 00 35 04 06 00 96 CF FC 2C B6 08 A7 9C 7E 72 0E 34 9A CE [11:24:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 42 D2 47 00 C5 C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7C 85 02 00 F4 03 04 00 92 AD 94 66 B6 04 01 00 00 AF 7A D5 D3 F8 13 24 EE [11:24:57]CommunicateWithHost err = 0 [11:24:57]CheckOFDResponse [11:24:57]1017 (14) - 77093643461234 [11:24:57]1041 (16) - 0000000000874718 [11:24:57]1040 (4) - 165244 [11:24:57]1012 (4) - 15.07.2024 05:03 [11:24:57]1206 (1) - 0 [11:24:57]OFD Sender: Remove packet 165244 [11:24:57]ProducePacketName [11:24:57]name=ofd_packets/00165244 [11:24:57]NVStorageDeleteData [11:24:58]Write to MH i2c: 01 00 00 DB 05 E0 [11:24:58]Write i2c OK [11:24:58]MH_I2C_Read... [11:24:58]Read from MH i2c: 01 [11:24:58]MH_I2C_Read... [11:24:58]Read from MH i2c: 01 07 00 [11:24:58]MH_I2C_Read... [11:24:58]Read from MH i2c: 01 07 00 DB 05 00 00 00 00 00 FB 0C EE [11:24:58]RasterBufferAndPrint [11:24:58]line [11:24:58]line [11:24:58]line [11:24:58]line [11:24:58]line [11:24:58]written 0, free lines is 3329 [11:24:58]MH_Cut [11:24:58]Write to MH i2c: D1 01 00 E2 05 01 B9 [11:24:58]Write i2c OK [11:24:58]MH_I2C_Read... [11:24:58]Read from MH i2c: D1 [11:24:58]MH_I2C_Read... [11:24:58]Read from MH i2c: D1 01 00 [11:24:58]MH_I2C_Read... [11:24:58]Read from MH i2c: D1 01 00 E2 05 00 B8 [11:24:58]Write to MH i2c: 01 00 00 E3 05 E8 [11:24:58]Write i2c OK [11:24:58]MH_I2C_Read... [11:24:58]OFD Sender: No OFD packet to send [11:24:58]*** Cut start [11:24:58]*** Partial cut [11:24:58]*** CUTSNS_PIN = 1 [11:24:58]*** CUTSNS_PIN = 0 [11:24:58]*** Brake cut motor [11:24:59]Read from MH i2c: 01 [11:24:59]MH_I2C_Read... [11:24:59]*** Stop cut motor [11:24:59]*** Cut end [11:24:59]Read from MH i2c: 01 07 00 [11:24:59]MH_I2C_Read... [11:24:59]Read from MH i2c: 01 07 00 E3 05 00 00 00 00 00 FF 0F FD [11:24:59]process_action close_receipt done [11:24:59]requested_data is exist [11:24:59]produce_requested_data [11:24:59]requested_item fm.sn is exist - process it [11:24:59]wFMCommunicate request_size=4 [11:24:59]MH_SAM_APDU [11:24:59]CAPDU: 80 11 00 00 [11:24:59]Write to MH i2c: E2 08 00 E4 05 80 11 00 00 00 00 00 00 63 [11:24:59]Write i2c OK [11:24:59]MH_I2C_Read... [11:24:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:59]Read from MH i2c: E2 [11:24:59]MH_I2C_Read... [11:24:59]Read from MH i2c: E2 17 00 [11:24:59]MH_I2C_Read... [11:24:59]Read from MH i2c: E2 17 00 E4 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B9 [11:24:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:24:59]wFMCommunicate OK [11:24:59]requested_item fd.num is exist - process it [11:24:59]SAM_PROTO_GetFieldsCounters [11:24:59]wFMCommunicate request_size=4 [11:24:59]MH_SAM_APDU [11:24:59]CAPDU: 80 13 00 00 [11:24:59]Write to MH i2c: E2 08 00 E5 05 80 13 00 00 00 00 00 00 66 [11:24:59]Write i2c OK [11:24:59]MH_I2C_Read... [11:24:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:24:59]Read from MH i2c: E2 [11:24:59]MH_I2C_Read... [11:24:59]Read from MH i2c: E2 62 00 [11:24:59]MH_I2C_Read... [11:24:59]Read from MH i2c: E2 62 00 E5 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7C 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [11:24: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7C 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:24:59]wFMCommunicate OK [11:24:59]SAM_PROTO_GetFieldsCounters done [11:24:59]requested_item shift.num is exist - process it [11:24:59]requested_item shift.opened is exist - process it [11:24:59]req_shift_opened [11:24:59]FM_GetShiftState [11:24:59]SAM_PROTO_GetShiftState [11:24:59]wFMCommunicate request_size=4 [11:24:59]MH_SAM_APDU [11:24:59]CAPDU: 80 13 01 00 [11:24:59]Write to MH i2c: E2 08 00 E6 05 80 13 01 00 00 00 00 00 68 [11:24:59]Write i2c OK [11:24:59]MH_I2C_Read... [11:24:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:59]Read from MH i2c: E2 [11:24:59]MH_I2C_Read... [11:24:59]Read from MH i2c: E2 0E 00 [11:24:59]MH_I2C_Read... [11:24:59]Read from MH i2c: E2 0E 00 E6 05 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 41 [11:24:59]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [11:24:59]wFMCommunicate OK [11:24:59]SAM_PROTO_GetShiftState done [11:24:59]FM_GetShiftState done [11:24:59]req_shift_opened done [11:24:59]requested_item shift.open_date is exist - process it [11:24:59]req_shift_open_date [11:24:59]req_shift_open_date done [11:24:59]produce_requested_data done [11:24:59]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165244,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [11:24:59]process_action_free close_receipt [11:24:59]json_value_free [11:24:59]json_value_free done [11:24:59]process_json_proto returns [11:24:59]Send response to host [11:24:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165244,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [11:24:59]free response buf [11:24:59]execute_script done [11:24:59]execute_script returns [11:24:59]free content buf [11:24:59]Sock 8.Close socket [11:24:59]Sock 8.Thread stoped [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:02]accept exits with 9 [11:28:02]New connection [11:28:02]New thread 3066711396 created [11:28:02]Thread 3066854756 joined [11:28:02]Waiting for new connection... [11:28:02] Sock 9.Parse request [11:28:02]Sock 9.Check first char [11:28:02]Sock 9.First char is OK [11:28:02]request: POST /json_proto HTTP/1.0 [11:28:02]Method: POST [11:28:02]URL: /json_proto [11:28:02]Method is POST - this is cgi request [11:28:02]url: /json_proto [11:28:02]query_string will be loaded in cgi processing [11:28:02]execute_cgi json_proto POST (null) [11:28:02]execute_cgi path=json_proto method=POST [11:28:02]POST find Content-Length [11:28:02]Host: 172.17.56.4:8080 [11:28:02]Content-Length: 677 [11:28:02]Content-Type: application/json [11:28:02] [11:28:02]POST finish read [11:28:02]Found Content-Length = 677 [11:28:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459352", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:02]execute_script... [11:28:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459352", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:02]POST & json_proto [11:28:02]process_json_proto [11:28:02]json parsed OK: [11:28:02]protocol is kg_v1.0 [11:28:02]action value=close_receipt [11:28:02]process_action close_receipt [11:28:02]cmd_close_receipt [11:28:02]MH_GetDate [11:28:02]Write to MH i2c: F0 00 00 E7 05 DB [11:28:02]Write i2c OK [11:28:02]MH_I2C_Read... [11:28:02]Read from MH i2c: F0 [11:28:02]MH_I2C_Read... [11:28:02]Read from MH i2c: F0 09 00 [11:28:02]MH_I2C_Read... [11:28:02]Read from MH i2c: F0 09 00 E7 05 00 C2 07 95 66 C9 DC B2 64 63 [11:28:02]GetLastDocTimeStamp 1721042696 [11:28:02]current date 1721042882 [11:28:02]FM_GetShiftState [11:28:02]SAM_PROTO_GetShiftState [11:28:02]wFMCommunicate request_size=4 [11:28:02]MH_SAM_APDU [11:28:02]CAPDU: 80 13 01 00 [11:28:02]Write to MH i2c: E2 08 00 E8 05 80 13 01 00 00 00 00 00 6A [11:28:02]Write i2c OK [11:28:02]MH_I2C_Read... [11:28:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:02]Read from MH i2c: E2 [11:28:02]MH_I2C_Read... [11:28:02]Read from MH i2c: E2 0E 00 [11:28:02]MH_I2C_Read... [11:28:02]Read from MH i2c: E2 0E 00 E8 05 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 43 [11:28:02]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [11:28:02]wFMCommunicate OK [11:28:02]SAM_PROTO_GetShiftState done [11:28:02]FM_GetShiftState done [11:28:02]opened in 1721003876 [11:28:02]opened+sec_in_day 1721090276 [11:28:02]quantity*price = 20003 [11:28:02]sum+1 = 20004 [11:28:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 118 15.07.2024 11:28 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165245 ФПД: 178660252001382 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T112802&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165245&fm=178660252001382&tin=02508201610067®Number=0000000000090829&sum=20000 [11:28:03]StoreToDocumentArchive [11:28:03]shift 448 fd 165245 [11:28:03]save to /storage/0448/doc_00165245 [11:28:03]save last doc name /storage/0448/doc_00165245 to /storage/kkm_last_doc_name [11:28:03]save OK [11:28:03]Clear old archive folders... [11:28:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:28:03]tlvbuf is 018595C0 [11:28:03]SAM_PROTO_ClearQueue [11:28:03]wFMCommunicate request_size=4 [11:28:03]MH_SAM_APDU [11:28:03]CAPDU: 80 09 00 00 [11:28:03]Write to MH i2c: E2 08 00 F5 05 80 09 00 00 00 00 00 00 6C [11:28:03]Write i2c OK [11:28:03]MH_I2C_Read... [11:28:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:28:03]Read from MH i2c: E2 [11:28:03]MH_I2C_Read... [11:28:03]Read from MH i2c: E2 03 00 [11:28:03]MH_I2C_Read... [11:28:03]Read from MH i2c: E2 03 00 F5 05 00 90 00 6E [11:28:03]RAPDU: 90 00 [11:28:03]wFMCommunicate OK [11:28:03]SAM_PROTO_ClearQueue done [11:28:03]KKMCreateOFDPacket [11:28:03]OFDProtocolAddRootSTLVToBuf [11:28:03]FM_MakeSignedData [11:28:03]FM_MakeSignedData [11:28:03]SAM_PROTO_SignData [11:28:03]wFMCommunicate request_size=4 [11:28:03]MH_SAM_APDU [11:28:03]CAPDU: 80 0D 01 02 [11:28:03]Write to MH i2c: E2 08 00 F6 05 80 0D 01 02 00 00 00 00 74 [11:28:03]Write i2c OK [11:28:03]MH_I2C_Read... [11:28:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:28:03]Read from MH i2c: E2 [11:28:03]MH_I2C_Read... [11:28:03]Read from MH i2c: E2 03 00 [11:28:03]MH_I2C_Read... [11:28:03]Read from MH i2c: E2 03 00 F6 05 00 90 00 6F [11:28:03]RAPDU: 90 00 [11:28:03]wFMCommunicate OK [11:28:03]wFMCommunicate request_size=255 [11:28:03]MH_SAM_APDU [11:28:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 C2 07 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7D 85 02 00 35 04 06 00 A2 [11:28:03]Write to MH i2c: E2 02 01 F7 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 C2 07 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7D 85 02 00 35 04 06 00 A2 00 00 2F [11:28:03]Write i2c OK [11:28:03]MH_I2C_Read... [11:28:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:03]Read from MH i2c: E2 [11:28:03]MH_I2C_Read... [11:28:03]Read from MH i2c: E2 03 00 [11:28:03]MH_I2C_Read... [11:28:03]Read from MH i2c: E2 03 00 F7 05 00 90 00 70 [11:28:03]RAPDU: 90 00 [11:28:03]wFMCommunicate OK [11:28:03]wFMCommunicate request_size=10 [11:28:03]MH_SAM_APDU [11:28:03]CAPDU: 80 0D 02 02 05 7D 94 DB 24 66 [11:28:03]Write to MH i2c: E2 0D 00 F8 05 80 0D 02 02 05 00 7D 94 DB 24 66 00 00 F7 [11:28:03]Write i2c OK [11:28:03]MH_I2C_Read... [11:28:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:03]Read from MH i2c: E2 [11:28:03]MH_I2C_Read... [11:28:03]Read from MH i2c: E2 03 00 [11:28:03]MH_I2C_Read... [11:28:03]Read from MH i2c: E2 03 00 F8 05 00 90 00 71 [11:28:03]RAPDU: 90 00 [11:28:03]wFMCommunicate OK [11:28:03]wFMCommunicate request_size=4 [11:28:03]MH_SAM_APDU [11:28:03]CAPDU: 80 0D 03 02 [11:28:03]Write to MH i2c: E2 08 00 F9 05 80 0D 03 02 00 00 00 00 79 [11:28:03]Write i2c OK [11:28:03]MH_I2C_Read... [11:28:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:28:03]OFD Sender: No OFD packet to send [11:28:03]Read from MH i2c: E2 [11:28:03]MH_I2C_Read... [11:28:03]Read from MH i2c: E2 0B 00 [11:28:03]MH_I2C_Read... [11:28:03]Read from MH i2c: E2 0B 00 F9 05 00 54 02 75 6E 00 82 0F 87 90 00 CB [11:28:03]RAPDU: 54 02 75 6E 00 82 0F 87 90 00 [11:28:03]wFMCommunicate OK [11:28:03]SAM_PROTO_SignData done [11:28:03]FM_MakeSignedData done [11:28:03]CreateOFDProtocolMessage [11:28:03]wFMCommunicate request_size=4 [11:28:03]MH_SAM_APDU [11:28:03]CAPDU: 80 11 00 00 [11:28:03]Write to MH i2c: E2 08 00 FA 05 80 11 00 00 00 00 00 00 79 [11:28:03]Write i2c OK [11:28:03]MH_I2C_Read... [11:28:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:03]Read from MH i2c: E2 [11:28:03]MH_I2C_Read... [11:28:03]Read from MH i2c: E2 17 00 [11:28:03]MH_I2C_Read... [11:28:03]Read from MH i2c: E2 17 00 FA 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CF [11:28:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:28:03]wFMCommunicate OK [11:28:03]CreateOFDProtocolMessage done [11:28:03]OFDSenderStorePacket 165245 [11:28:03]StoreOFDPacket docnum=165245 [11:28:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 FC 9F 07 01 1F 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 C2 07 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7D 85 02 00 35 04 06 00 A2 7D 94 DB 24 66 54 02 75 6E 00 82 0F 87 [11:28:03]CheckFolder [11:28:03]dirname=/storage/ofd_packets [11:28:03]CheckFolder done [11:28:03]ProducePacketName [11:28:03]name=ofd_packets/00165245 [11:28:03]NVStorageSaveData ofd_packets/00165245 [11:28:03]File name is /storage/ofd_packets/00165245 [11:28:03]Write 301 bytes [11:28:03]NVStorageSaveData done [11:28:03]OFDSenderStorePacket done [11:28:03]KKMCreateOFDPacket done [11:28:03]NVStorageSaveData kkm_last_timestamp [11:28:03]File name is /storage/kkm_last_timestamp [11:28:03]Write 4 bytes [11:28:03]NVStorageSaveData done [11:28:03]ExternCall_PrintAddStr [11:28:03]wPrintStart [11:28:03]Write to MH i2c: 01 00 00 FB 05 00 [11:28:03]Write i2c OK [11:28:03]MH_I2C_Read... [11:28:03]Read from MH i2c: 01 [11:28:03]MH_I2C_Read... [11:28:03]Read from MH i2c: 01 07 00 [11:28:03]MH_I2C_Read... [11:28:03]Read from MH i2c: 01 07 00 FB 05 00 00 00 00 00 FF 0F 15 [11:28:03]RasterBufferAndPrint [11:28:03]line Счет N : (1)459352 [11:28:03]line ИНН: 02508201610067 [11:28:03]line Контрольно-Кассовый Чек [11:28:03]line ПРОДАЖА [11:28:03]line ТРК (МРК, ГНК) : 12 [11:28:03]line Товар: 2710124130 [11:28:03]line Аи-92-К-5 [11:28:03]line 3.040 * 65.80 [11:28:03]line = 200.03 [11:28:03]line НДС 12% НСП 1% [11:28:03]line > о реализуемом товаре [11:28:03]line ОКРУГЛЕНИЕ: -0.03 [11:28:03]line ИТОГО: 200.00 [11:28:03]line Внесено: 200.00 [11:28:03]line СДАЧА: 0.00 [11:28:03]line НСП 1% : 1.77 [11:28:03]line НДС 12% : 21.24 [11:28:03]line Наличными: 200.00 [11:28:03]line Безнал.: 0.00 [11:28:03]line Место: АЗС № 72 "Партнер Нефть" [11:28:03]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:28:03]line СНО: Общий режим [11:28:03]line Чек 118 15.07.2024 11:28 [11:28:03]line Смена: 448 ФФД: 1.0 [11:28:03]line ЗНМ: 0300000160 [11:28:03]line РНМ: 0000000000090829 [11:28:03]line Версия ККМ: 001 [11:28:03]line ФМ: 0000000000874718 [11:28:03]line ФД: 165245 [11:28:03]line ФПД: 178660252001382 [11:28:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T112802&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165245&fm=178660252001382&tin=02508201610067®Number=0000000000090829&sum=20000 [11:28:04]OFD Sender: Processing packet 165245 [packets to send 106, broken 105] [11:28:04]ProducePacketName [11:28:04]name=ofd_packets/00165245 [11:28:04]OFD Sender: To server: pG, [11:28:04]CommunicateWithHost lk.salyk.kg:30040 [11:28:04]ConnectInit lk.salyk.kg [11:28:04]written 0, free lines is 4095 [11:28:04]Connected sock=10 [11:28:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 FC 9F 07 01 1F 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 C2 07 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7D 85 02 00 35 04 06 00 A2 7D 94 DB 24 66 54 02 75 6E 00 82 0F 87 [11:28:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 EC 62 47 00 7C 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7D 85 02 00 F4 03 04 00 4D AE 94 66 B6 04 01 00 00 CE 82 34 ED DB F3 59 9C [11:28:04]CommunicateWithHost err = 0 [11:28:04]CheckOFDResponse [11:28:04]1017 (14) - 77093643461234 [11:28:04]1041 (16) - 0000000000874718 [11:28:04]1040 (4) - 165245 [11:28:04]1012 (4) - 15.07.2024 05:06 [11:28:04]1206 (1) - 0 [11:28:04]OFD Sender: Remove packet 165245 [11:28:04]ProducePacketName [11:28:04]name=ofd_packets/00165245 [11:28:04]NVStorageDeleteData [11:28:04]Write to MH i2c: 01 00 00 25 06 2B [11:28:04]Write i2c OK [11:28:04]MH_I2C_Read... [11:28:04]Read from MH i2c: 01 [11:28:04]MH_I2C_Read... [11:28:04]Read from MH i2c: 01 07 00 [11:28:04]MH_I2C_Read... [11:28:04]Read from MH i2c: 01 07 00 25 06 00 00 00 00 00 F3 0C 31 [11:28:04]RasterBufferAndPrint [11:28:04]line [11:28:04]line [11:28:04]line [11:28:04]line [11:28:04]line [11:28:04]written 0, free lines is 3322 [11:28:04]MH_Cut [11:28:04]Write to MH i2c: D1 01 00 2C 06 01 04 [11:28:04]Write i2c OK [11:28:04]MH_I2C_Read... [11:28:04]Read from MH i2c: D1 [11:28:04]MH_I2C_Read... [11:28:04]Read from MH i2c: D1 01 00 [11:28:04]MH_I2C_Read... [11:28:04]Read from MH i2c: D1 01 00 2C 06 00 03 [11:28:04]Write to MH i2c: 01 00 00 2D 06 33 [11:28:04]Write i2c OK [11:28:04]MH_I2C_Read... [11:28:04]OFD Sender: No OFD packet to send [11:28:05]*** Cut start [11:28:05]*** Partial cut [11:28:05]*** CUTSNS_PIN = 1 [11:28:05]*** CUTSNS_PIN = 0 [11:28:05]*** Brake cut motor [11:28:05]Read from MH i2c: 01 [11:28:05]MH_I2C_Read... [11:28:05]*** Stop cut motor [11:28:05]*** Cut end [11:28:05]Read from MH i2c: 01 07 00 [11:28:05]MH_I2C_Read... [11:28:05]Read from MH i2c: 01 07 00 2D 06 00 00 00 00 00 FF 0F 48 [11:28:05]process_action close_receipt done [11:28:05]requested_data is exist [11:28:05]produce_requested_data [11:28:05]requested_item fm.sn is exist - process it [11:28:05]wFMCommunicate request_size=4 [11:28:05]MH_SAM_APDU [11:28:05]CAPDU: 80 11 00 00 [11:28:05]Write to MH i2c: E2 08 00 2E 06 80 11 00 00 00 00 00 00 AE [11:28:05]Write i2c OK [11:28:05]MH_I2C_Read... [11:28:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:05]Read from MH i2c: E2 [11:28:05]MH_I2C_Read... [11:28:05]Read from MH i2c: E2 17 00 [11:28:05]MH_I2C_Read... [11:28:05]Read from MH i2c: E2 17 00 2E 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 04 [11:28:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:28:05]wFMCommunicate OK [11:28:05]requested_item fd.num is exist - process it [11:28:05]SAM_PROTO_GetFieldsCounters [11:28:05]wFMCommunicate request_size=4 [11:28:05]MH_SAM_APDU [11:28:05]CAPDU: 80 13 00 00 [11:28:05]Write to MH i2c: E2 08 00 2F 06 80 13 00 00 00 00 00 00 B1 [11:28:05]Write i2c OK [11:28:05]MH_I2C_Read... [11:28:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:28:06]Read from MH i2c: E2 [11:28:06]MH_I2C_Read... [11:28:06]Read from MH i2c: E2 62 00 [11:28:06]MH_I2C_Read... [11:28:06]Read from MH i2c: E2 62 00 2F 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7D 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [11:28:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7D 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:28:06]wFMCommunicate OK [11:28:06]SAM_PROTO_GetFieldsCounters done [11:28:06]requested_item shift.num is exist - process it [11:28:06]requested_item shift.opened is exist - process it [11:28:06]req_shift_opened [11:28:06]FM_GetShiftState [11:28:06]SAM_PROTO_GetShiftState [11:28:06]wFMCommunicate request_size=4 [11:28:06]MH_SAM_APDU [11:28:06]CAPDU: 80 13 01 00 [11:28:06]Write to MH i2c: E2 08 00 30 06 80 13 01 00 00 00 00 00 B3 [11:28:06]Write i2c OK [11:28:06]MH_I2C_Read... [11:28:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:06]Read from MH i2c: E2 [11:28:06]MH_I2C_Read... [11:28:06]Read from MH i2c: E2 0E 00 [11:28:06]MH_I2C_Read... [11:28:06]Read from MH i2c: E2 0E 00 30 06 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 8C [11:28:06]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [11:28:06]wFMCommunicate OK [11:28:06]SAM_PROTO_GetShiftState done [11:28:06]FM_GetShiftState done [11:28:06]req_shift_opened done [11:28:06]requested_item shift.open_date is exist - process it [11:28:06]req_shift_open_date [11:28:06]req_shift_open_date done [11:28:06]produce_requested_data done [11:28:06]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165245,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [11:28:06]process_action_free close_receipt [11:28:06]json_value_free [11:28:06]json_value_free done [11:28:06]process_json_proto returns [11:28:06]Send response to host [11:28:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165245,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [11:28:06]free response buf [11:28:06]execute_script done [11:28:06]execute_script returns [11:28:06]free content buf [11:28:06]Sock 9.Close socket [11:28:06]Sock 9.Thread stoped [11:28:09]OFD Sender: No OFD packet to send [11:28:14]OFD Sender: No OFD packet to send [11:28:19]OFD Sender: No OFD packet to send [11:28:24]OFD Sender: No OFD packet to send [11:28:29]OFD Sender: No OFD packet to send [11:28:34]OFD Sender: No OFD packet to send [11:28:39]OFD Sender: No OFD packet to send [11:28:44]OFD Sender: No OFD packet to send [11:28:49]OFD Sender: No OFD packet to send [11:28:54]OFD Sender: No OFD packet to send [11:29:00]OFD Sender: No OFD packet to send [11:29:05]OFD Sender: No OFD packet to send [11:29:10]OFD Sender: No OFD packet to send [11:29:15]OFD Sender: No OFD packet to send [11:29:20]OFD Sender: No OFD packet to send [11:29:25]OFD Sender: No OFD packet to send [11:29:30]OFD Sender: No OFD packet to send [11:29:35]OFD Sender: No OFD packet to send [11:29:40]OFD Sender: No OFD packet to send [11:29:45]OFD Sender: No OFD packet to send [11:29:50]OFD Sender: No OFD packet to send [11:29:55]OFD Sender: No OFD packet to send [11:29:58]accept exits with 8 [11:29:58]New connection [11:29:58]New thread 3066854756 created [11:29:58]Thread 3066711396 joined [11:29:58]Waiting for new connection... [11:29:58] Sock 8.Parse request [11:29:58]Sock 8.Check first char [11:29:58]Sock 8.First char is OK [11:29:58]request: POST /json_proto HTTP/1.0 [11:29:58]Method: POST [11:29:58]URL: /json_proto [11:29:58]Method is POST - this is cgi request [11:29:58]url: /json_proto [11:29:58]query_string will be loaded in cgi processing [11:29:58]execute_cgi json_proto POST (null) [11:29:58]execute_cgi path=json_proto method=POST [11:29:58]POST find Content-Length [11:29:58]Host: 172.17.56.4:8080 [11:29:58]Content-Length: 679 [11:29:58]Content-Type: application/json [11:29:58] [11:29:58]POST finish read [11:29:58]Found Content-Length = 679 [11:29:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459353", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "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" ] } } [11:29:58]execute_script... [11:29: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)459353", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "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" ] } } [11:29:58]POST & json_proto [11:29:58]process_json_proto [11:29:58]json parsed OK: [11:29:58]protocol is kg_v1.0 [11:29:58]action value=close_receipt [11:29:58]process_action close_receipt [11:29:58]cmd_close_receipt [11:29:58]MH_GetDate [11:29:58]Write to MH i2c: F0 00 00 31 06 26 [11:29:58]Write i2c OK [11:29:58]MH_I2C_Read... [11:29:58]Read from MH i2c: F0 [11:29:58]MH_I2C_Read... [11:29:58]Read from MH i2c: F0 09 00 [11:29:58]MH_I2C_Read... [11:29:58]Read from MH i2c: F0 09 00 31 06 00 37 08 95 66 C9 DC B2 64 24 [11:29:58]GetLastDocTimeStamp 1721042882 [11:29:58]current date 1721042999 [11:29:58]FM_GetShiftState [11:29:58]SAM_PROTO_GetShiftState [11:29:58]wFMCommunicate request_size=4 [11:29:58]MH_SAM_APDU [11:29:58]CAPDU: 80 13 01 00 [11:29:58]Write to MH i2c: E2 08 00 32 06 80 13 01 00 00 00 00 00 B5 [11:29:58]Write i2c OK [11:29:58]MH_I2C_Read... [11:29:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:58]Read from MH i2c: E2 [11:29:58]MH_I2C_Read... [11:29:58]Read from MH i2c: E2 0E 00 [11:29:58]MH_I2C_Read... [11:29:58]Read from MH i2c: E2 0E 00 32 06 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 8E [11:29:58]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [11:29:58]wFMCommunicate OK [11:29:58]SAM_PROTO_GetShiftState done [11:29:58]FM_GetShiftState done [11:29:58]opened in 1721003876 [11:29:58]opened+sec_in_day 1721090276 [11:29:58]quantity*price = 200025 [11:29:58]sum+1 = 200027 [11:29:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 119 15.07.2024 11:29 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165246 ФПД: 183007925825135 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T112959&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165246&fm=183007925825135&tin=02508201610067®Number=0000000000090829&sum=200000 [11:29:59]StoreToDocumentArchive [11:29:59]shift 448 fd 165246 [11:29:59]save to /storage/0448/doc_00165246 [11:29:59]save last doc name /storage/0448/doc_00165246 to /storage/kkm_last_doc_name [11:29:59]save OK [11:29:59]Clear old archive folders... [11:29:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:29:59]tlvbuf is 0185AF10 [11:29:59]SAM_PROTO_ClearQueue [11:29:59]wFMCommunicate request_size=4 [11:29:59]MH_SAM_APDU [11:29:59]CAPDU: 80 09 00 00 [11:29:59]Write to MH i2c: E2 08 00 3F 06 80 09 00 00 00 00 00 00 B7 [11:29:59]Write i2c OK [11:29:59]MH_I2C_Read... [11:29:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:29:59]Read from MH i2c: E2 [11:29:59]MH_I2C_Read... [11:29:59]Read from MH i2c: E2 03 00 [11:29:59]MH_I2C_Read... [11:29:59]Read from MH i2c: E2 03 00 3F 06 00 90 00 B9 [11:29:59]RAPDU: 90 00 [11:29:59]wFMCommunicate OK [11:29:59]SAM_PROTO_ClearQueue done [11:29:59]KKMCreateOFDPacket [11:29:59]OFDProtocolAddRootSTLVToBuf [11:29:59]FM_MakeSignedData [11:29:59]FM_MakeSignedData [11:29:59]SAM_PROTO_SignData [11:29:59]wFMCommunicate request_size=4 [11:29:59]MH_SAM_APDU [11:29:59]CAPDU: 80 0D 01 02 [11:29:59]Write to MH i2c: E2 08 00 40 06 80 0D 01 02 00 00 00 00 BF [11:29:59]Write i2c OK [11:29:59]MH_I2C_Read... [11:29:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:29:59]Read from MH i2c: E2 [11:29:59]MH_I2C_Read... [11:29:59]Read from MH i2c: E2 03 00 [11:29:59]MH_I2C_Read... [11:29:59]Read from MH i2c: E2 03 00 40 06 00 90 00 BA [11:29:59]RAPDU: 90 00 [11:29:59]wFMCommunicate OK [11:29:59]wFMCommunicate request_size=255 [11:29:59]MH_SAM_APDU [11:29:59]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 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 77 00 00 00 F4 03 04 00 37 08 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7E 85 02 00 35 04 06 00 A6 71 DA 68 [11:29:59]Write to MH i2c: E2 02 01 41 06 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 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 77 00 00 00 F4 03 04 00 37 08 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7E 85 02 00 35 04 06 00 A6 71 DA 68 00 00 82 [11:29:59]Write i2c OK [11:29:59]MH_I2C_Read... [11:29:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:59]Read from MH i2c: E2 [11:29:59]MH_I2C_Read... [11:29:59]Read from MH i2c: E2 03 00 [11:29:59]MH_I2C_Read... [11:29:59]Read from MH i2c: E2 03 00 41 06 00 90 00 BB [11:29:59]RAPDU: 90 00 [11:29:59]wFMCommunicate OK [11:29:59]wFMCommunicate request_size=7 [11:29:59]MH_SAM_APDU [11:29:59]CAPDU: 80 0D 02 02 02 EE 6F [11:29:59]Write to MH i2c: E2 0A 00 42 06 80 0D 02 02 02 00 EE 6F 00 00 23 [11:29:59]Write i2c OK [11:29:59]MH_I2C_Read... [11:29:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:59]Read from MH i2c: E2 [11:29:59]MH_I2C_Read... [11:29:59]Read from MH i2c: E2 03 00 [11:29:59]MH_I2C_Read... [11:29:59]Read from MH i2c: E2 03 00 42 06 00 90 00 BC [11:29:59]RAPDU: 90 00 [11:29:59]wFMCommunicate OK [11:29:59]wFMCommunicate request_size=4 [11:29:59]MH_SAM_APDU [11:29:59]CAPDU: 80 0D 03 02 [11:29:59]Write to MH i2c: E2 08 00 43 06 80 0D 03 02 00 00 00 00 C4 [11:29:59]Write i2c OK [11:29:59]MH_I2C_Read... [11:30:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:30:00]Read from MH i2c: E2 [11:30:00]MH_I2C_Read... [11:30:00]Read from MH i2c: E2 0B 00 [11:30:00]MH_I2C_Read... [11:30:00]Read from MH i2c: E2 0B 00 43 06 00 BD 4D 61 48 FF E4 4F 55 90 00 FF [11:30:00]RAPDU: BD 4D 61 48 FF E4 4F 55 90 00 [11:30:00]wFMCommunicate OK [11:30:00]SAM_PROTO_SignData done [11:30:00]FM_MakeSignedData done [11:30:00]CreateOFDProtocolMessage [11:30:00]wFMCommunicate request_size=4 [11:30:00]MH_SAM_APDU [11:30:00]CAPDU: 80 11 00 00 [11:30:00]Write to MH i2c: E2 08 00 44 06 80 11 00 00 00 00 00 00 C4 [11:30:00]Write i2c OK [11:30:00]MH_I2C_Read... [11:30:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:00]Read from MH i2c: E2 [11:30:00]MH_I2C_Read... [11:30:00]Read from MH i2c: E2 17 00 [11:30:00]MH_I2C_Read... [11:30:00]Read from MH i2c: E2 17 00 44 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1A [11:30:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:30:00]wFMCommunicate OK [11:30:00]CreateOFDProtocolMessage done [11:30:00]OFDSenderStorePacket 165246 [11:30:00]StoreOFDPacket docnum=165246 [11:30:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 C3 05 04 01 C0 3A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 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 77 00 00 00 F4 03 04 00 37 08 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7E 85 02 00 35 04 06 00 A6 71 DA 68 EE 6F BD 4D 61 48 FF E4 4F 55 [11:30:00]CheckFolder [11:30:00]dirname=/storage/ofd_packets [11:30:00]CheckFolder done [11:30:00]ProducePacketName [11:30:00]name=ofd_packets/00165246 [11:30:00]NVStorageSaveData ofd_packets/00165246 [11:30:00]File name is /storage/ofd_packets/00165246 [11:30:00]Write 298 bytes [11:30:00]NVStorageSaveData done [11:30:00]OFDSenderStorePacket done [11:30:00]KKMCreateOFDPacket done [11:30:00]NVStorageSaveData kkm_last_timestamp [11:30:00]File name is /storage/kkm_last_timestamp [11:30:00]Write 4 bytes [11:30:00]NVStorageSaveData done [11:30:00]ExternCall_PrintAddStr [11:30:00]wPrintStart [11:30:00]Write to MH i2c: 01 00 00 45 06 4B [11:30:00]Write i2c OK [11:30:00]MH_I2C_Read... [11:30:00]Read from MH i2c: 01 [11:30:00]MH_I2C_Read... [11:30:00]Read from MH i2c: 01 07 00 [11:30:00]MH_I2C_Read... [11:30:00]Read from MH i2c: 01 07 00 45 06 00 00 00 00 00 FF 0F 60 [11:30:00]RasterBufferAndPrint [11:30:00]line Счет N : (1)459353 [11:30:00]line ИНН: 02508201610067 [11:30:00]line Контрольно-Кассовый Чек [11:30:00]line ПРОДАЖА [11:30:00]line ТРК (МРК, ГНК) : 21 [11:30:00]line Товар: 2710194210 [11:30:00]line ДТ-К-5 [11:30:00]line 27.820 * 71.90 [11:30:00]line = 2000.26 [11:30:00]line НДС 12% НСП 1% [11:30:00]line > о реализуемом товаре [11:30:00]line ОКРУГЛЕНИЕ: -0.26 [11:30:00]line ИТОГО: 2000.00 [11:30:00]line Внесено: 2000.00 [11:30:00]line СДАЧА: 0.00 [11:30:00]line НСП 1% : 17.70 [11:30:00]line НДС 12% : 212.42 [11:30:00]line Наличными: 2000.00 [11:30:00]line Безнал.: 0.00 [11:30:00]line Место: АЗС № 72 "Партнер Нефть" [11:30:00]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:30:00]line СНО: Общий режим [11:30:00]line Чек 119 15.07.2024 11:29 [11:30:00]line Смена: 448 ФФД: 1.0 [11:30:00]line ЗНМ: 0300000160 [11:30:00]line РНМ: 0000000000090829 [11:30:00]line Версия ККМ: 001 [11:30:00]line ФМ: 0000000000874718 [11:30:00]line ФД: 165246 [11:30:00]line ФПД: 183007925825135 [11:30:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T112959&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165246&fm=183007925825135&tin=02508201610067®Number=0000000000090829&sum=200000 [11:30:00]OFD Sender: Processing packet 165246 [packets to send 106, broken 105] [11:30:00]ProducePacketName [11:30:00]name=ofd_packets/00165246 [11:30:00]OFD Sender: To server: pG, [11:30:00]CommunicateWithHost lk.salyk.kg:30040 [11:30:00]ConnectInit lk.salyk.kg [11:30:00]written 0, free lines is 4095 [11:30:00]Connected sock=10 [11:30: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 37 31 38 0C 01 00 00 C3 05 04 01 C0 3A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 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 77 00 00 00 F4 03 04 00 37 08 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7E 85 02 00 35 04 06 00 A6 71 DA 68 EE 6F BD 4D 61 48 FF E4 4F 55 [11:30:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 C2 E3 47 00 95 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7E 85 02 00 F4 03 04 00 C1 AE 94 66 B6 04 01 00 00 49 3B 37 90 AF EE 33 B1 [11:30:00]CommunicateWithHost err = 0 [11:30:00]CheckOFDResponse [11:30:00]1017 (14) - 77093643461234 [11:30:00]1041 (16) - 0000000000874718 [11:30:00]1040 (4) - 165246 [11:30:00]1012 (4) - 15.07.2024 05:08 [11:30:00]1206 (1) - 0 [11:30:00]OFD Sender: Remove packet 165246 [11:30:00]ProducePacketName [11:30:00]name=ofd_packets/00165246 [11:30:00]NVStorageDeleteData [11:30:00]Write to MH i2c: 01 00 00 6F 06 75 [11:30:00]Write i2c OK [11:30:00]MH_I2C_Read... [11:30:00]Read from MH i2c: 01 [11:30:00]MH_I2C_Read... [11:30:00]Read from MH i2c: 01 07 00 [11:30:00]MH_I2C_Read... [11:30:00]Read from MH i2c: 01 07 00 6F 06 00 00 00 00 00 F5 0C 7D [11:30:00]RasterBufferAndPrint [11:30:00]line [11:30:00]line [11:30:00]line [11:30:00]line [11:30:00]line [11:30:00]written 0, free lines is 3323 [11:30:00]MH_Cut [11:30:00]Write to MH i2c: D1 01 00 76 06 01 4E [11:30:00]Write i2c OK [11:30:00]MH_I2C_Read... [11:30:00]Read from MH i2c: D1 [11:30:00]MH_I2C_Read... [11:30:00]Read from MH i2c: D1 01 00 [11:30:00]MH_I2C_Read... [11:30:00]Read from MH i2c: D1 01 00 76 06 00 4D [11:30:00]Write to MH i2c: 01 00 00 77 06 7D [11:30:00]Write i2c OK [11:30:00]MH_I2C_Read... [11:30:01]OFD Sender: No OFD packet to send [11:30:01]*** Cut start [11:30:01]*** Partial cut [11:30:01]*** CUTSNS_PIN = 1 [11:30:01]*** CUTSNS_PIN = 0 [11:30:01]*** Brake cut motor [11:30:02]Read from MH i2c: 01 [11:30:02]MH_I2C_Read... [11:30:02]*** Stop cut motor [11:30:02]*** Cut end [11:30:02]Read from MH i2c: 01 07 00 [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: 01 07 00 77 06 00 00 00 00 00 FF 0F 92 [11:30:02]process_action close_receipt done [11:30:02]requested_data is exist [11:30:02]produce_requested_data [11:30:02]requested_item fm.sn is exist - process it [11:30:02]wFMCommunicate request_size=4 [11:30:02]MH_SAM_APDU [11:30:02]CAPDU: 80 11 00 00 [11:30:02]Write to MH i2c: E2 08 00 78 06 80 11 00 00 00 00 00 00 F8 [11:30:02]Write i2c OK [11:30:02]MH_I2C_Read... [11:30:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:02]Read from MH i2c: E2 [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: E2 17 00 [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: E2 17 00 78 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4E [11:30:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:30:02]wFMCommunicate OK [11:30:02]requested_item fd.num is exist - process it [11:30:02]SAM_PROTO_GetFieldsCounters [11:30:02]wFMCommunicate request_size=4 [11:30:02]MH_SAM_APDU [11:30:02]CAPDU: 80 13 00 00 [11:30:02]Write to MH i2c: E2 08 00 79 06 80 13 00 00 00 00 00 00 FB [11:30:02]Write i2c OK [11:30:02]MH_I2C_Read... [11:30:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:30:02]Read from MH i2c: E2 [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: E2 62 00 [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: E2 62 00 79 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7E 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [11:30:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7E 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:30:02]wFMCommunicate OK [11:30:02]SAM_PROTO_GetFieldsCounters done [11:30:02]requested_item shift.num is exist - process it [11:30:02]requested_item shift.opened is exist - process it [11:30:02]req_shift_opened [11:30:02]FM_GetShiftState [11:30:02]SAM_PROTO_GetShiftState [11:30:02]wFMCommunicate request_size=4 [11:30:02]MH_SAM_APDU [11:30:02]CAPDU: 80 13 01 00 [11:30:02]Write to MH i2c: E2 08 00 7A 06 80 13 01 00 00 00 00 00 FD [11:30:02]Write i2c OK [11:30:02]MH_I2C_Read... [11:30:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:02]Read from MH i2c: E2 [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: E2 0E 00 [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: E2 0E 00 7A 06 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 D6 [11:30:02]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [11:30:02]wFMCommunicate OK [11:30:02]SAM_PROTO_GetShiftState done [11:30:02]FM_GetShiftState done [11:30:02]req_shift_opened done [11:30:02]requested_item shift.open_date is exist - process it [11:30:02]req_shift_open_date [11:30:02]req_shift_open_date done [11:30:02]produce_requested_data done [11:30:02]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165246,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [11:30:02]process_action_free close_receipt [11:30:02]json_value_free [11:30:02]json_value_free done [11:30:02]process_json_proto returns [11:30:02]Send response to host [11:30:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165246,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [11:30:02]free response buf [11:30:02]execute_script done [11:30:02]execute_script returns [11:30:02]free content buf [11:30:02]Sock 8.Close socket [11:30:02]Sock 8.Thread stoped [11:30:06]OFD Sender: No OFD packet to send [11:30:11]OFD Sender: No OFD packet to send [11:30:16]OFD Sender: No OFD packet to send [11:30:21]OFD Sender: No OFD packet to send [11:30:26]OFD Sender: No OFD packet to send [11:30:29]accept exits with 9 [11:30:29]New connection [11:30:29]New thread 3066711396 created [11:30:29]Thread 3066854756 joined [11:30:29]Waiting for new connection... [11:30:29] Sock 9.Parse request [11:30:29]Sock 9.Check first char [11:30:29]Sock 9.First char is OK [11:30:29]request: POST /json_proto HTTP/1.0 [11:30:29]Method: POST [11:30:29]URL: /json_proto [11:30:29]Method is POST - this is cgi request [11:30:29]url: /json_proto [11:30:29]query_string will be loaded in cgi processing [11:30:29]execute_cgi json_proto POST (null) [11:30:29]execute_cgi path=json_proto method=POST [11:30:29]POST find Content-Length [11:30:29]Host: 172.17.56.4:8080 [11:30:29]Content-Length: 677 [11:30:29]Content-Type: application/json [11:30:29] [11:30:29]POST finish read [11:30:29]Found Content-Length = 677 [11:30:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459354", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:29]execute_script... [11:30: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)459354", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:29]POST & json_proto [11:30:29]process_json_proto [11:30:29]json parsed OK: [11:30:29]protocol is kg_v1.0 [11:30:29]action value=close_receipt [11:30:29]process_action close_receipt [11:30:29]cmd_close_receipt [11:30:29]MH_GetDate [11:30:29]Write to MH i2c: F0 00 00 7B 06 70 [11:30:29]Write i2c OK [11:30:29]MH_I2C_Read... [11:30:29]Read from MH i2c: F0 [11:30:29]MH_I2C_Read... [11:30:29]Read from MH i2c: F0 09 00 [11:30:29]MH_I2C_Read... [11:30:29]Read from MH i2c: F0 09 00 7B 06 00 55 08 95 66 C9 DC B2 64 8C [11:30:29]GetLastDocTimeStamp 1721042999 [11:30:29]current date 1721043029 [11:30:29]FM_GetShiftState [11:30:29]SAM_PROTO_GetShiftState [11:30:29]wFMCommunicate request_size=4 [11:30:29]MH_SAM_APDU [11:30:29]CAPDU: 80 13 01 00 [11:30:29]Write to MH i2c: E2 08 00 7C 06 80 13 01 00 00 00 00 00 FF [11:30:29]Write i2c OK [11:30:29]MH_I2C_Read... [11:30:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:29]Read from MH i2c: E2 [11:30:29]MH_I2C_Read... [11:30:29]Read from MH i2c: E2 0E 00 [11:30:29]MH_I2C_Read... [11:30:29]Read from MH i2c: E2 0E 00 7C 06 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 D8 [11:30:29]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [11:30:29]wFMCommunicate OK [11:30:29]SAM_PROTO_GetShiftState done [11:30:29]FM_GetShiftState done [11:30:29]opened in 1721003876 [11:30:29]opened+sec_in_day 1721090276 [11:30:29]quantity*price = 30004 [11:30:29]sum+1 = 30006 [11:30:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 120 15.07.2024 11:30 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165247 ФПД: 168019222229619 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T113029&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165247&fm=168019222229619&tin=02508201610067®Number=0000000000090829&sum=30000 [11:30:30]StoreToDocumentArchive [11:30:30]shift 448 fd 165247 [11:30:30]save to /storage/0448/doc_00165247 [11:30:30]save last doc name /storage/0448/doc_00165247 to /storage/kkm_last_doc_name [11:30:30]save OK [11:30:30]Clear old archive folders... [11:30:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:30:30]tlvbuf is 01840470 [11:30:30]SAM_PROTO_ClearQueue [11:30:30]wFMCommunicate request_size=4 [11:30:30]MH_SAM_APDU [11:30:30]CAPDU: 80 09 00 00 [11:30:30]Write to MH i2c: E2 08 00 89 06 80 09 00 00 00 00 00 00 01 [11:30:30]Write i2c OK [11:30:30]MH_I2C_Read... [11:30:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:30:30]Read from MH i2c: E2 [11:30:30]MH_I2C_Read... [11:30:30]Read from MH i2c: E2 03 00 [11:30:30]MH_I2C_Read... [11:30:30]Read from MH i2c: E2 03 00 89 06 00 90 00 03 [11:30:30]RAPDU: 90 00 [11:30:30]wFMCommunicate OK [11:30:30]SAM_PROTO_ClearQueue done [11:30:30]KKMCreateOFDPacket [11:30:30]OFDProtocolAddRootSTLVToBuf [11:30:30]FM_MakeSignedData [11:30:30]FM_MakeSignedData [11:30:30]SAM_PROTO_SignData [11:30:30]wFMCommunicate request_size=4 [11:30:30]MH_SAM_APDU [11:30:30]CAPDU: 80 0D 01 02 [11:30:30]Write to MH i2c: E2 08 00 8A 06 80 0D 01 02 00 00 00 00 09 [11:30:30]Write i2c OK [11:30:30]MH_I2C_Read... [11:30:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:30:30]Read from MH i2c: E2 [11:30:30]MH_I2C_Read... [11:30:30]Read from MH i2c: E2 03 00 [11:30:30]MH_I2C_Read... [11:30:30]Read from MH i2c: E2 03 00 8A 06 00 90 00 04 [11:30:30]RAPDU: 90 00 [11:30:30]wFMCommunicate OK [11:30:30]wFMCommunicate request_size=255 [11:30:30]MH_SAM_APDU [11:30: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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 55 08 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7F 85 02 00 35 04 06 00 98 [11:30:30]Write to MH i2c: E2 02 01 8B 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 55 08 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7F 85 02 00 35 04 06 00 98 00 00 72 [11:30:30]Write i2c OK [11:30:30]MH_I2C_Read... [11:30:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:30]Read from MH i2c: E2 [11:30:30]MH_I2C_Read... [11:30:30]Read from MH i2c: E2 03 00 [11:30:30]MH_I2C_Read... [11:30:30]Read from MH i2c: E2 03 00 8B 06 00 90 00 05 [11:30:30]RAPDU: 90 00 [11:30:30]wFMCommunicate OK [11:30:30]wFMCommunicate request_size=10 [11:30:30]MH_SAM_APDU [11:30:30]CAPDU: 80 0D 02 02 05 D0 06 0E 72 73 [11:30:30]Write to MH i2c: E2 0D 00 8C 06 80 0D 02 02 05 00 D0 06 0E 72 73 00 00 DF [11:30:30]Write i2c OK [11:30:30]MH_I2C_Read... [11:30:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:30]Read from MH i2c: E2 [11:30:30]MH_I2C_Read... [11:30:30]Read from MH i2c: E2 03 00 [11:30:30]MH_I2C_Read... [11:30:30]Read from MH i2c: E2 03 00 8C 06 00 90 00 06 [11:30:30]RAPDU: 90 00 [11:30:30]wFMCommunicate OK [11:30:30]wFMCommunicate request_size=4 [11:30:30]MH_SAM_APDU [11:30:30]CAPDU: 80 0D 03 02 [11:30:30]Write to MH i2c: E2 08 00 8D 06 80 0D 03 02 00 00 00 00 0E [11:30:30]Write i2c OK [11:30:30]MH_I2C_Read... [11:30:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:30:30]Read from MH i2c: E2 [11:30:30]MH_I2C_Read... [11:30:30]Read from MH i2c: E2 0B 00 [11:30:30]MH_I2C_Read... [11:30:30]Read from MH i2c: E2 0B 00 8D 06 00 31 61 69 B9 A0 4B 9E B2 90 00 FE [11:30:30]RAPDU: 31 61 69 B9 A0 4B 9E B2 90 00 [11:30:30]wFMCommunicate OK [11:30:30]SAM_PROTO_SignData done [11:30:30]FM_MakeSignedData done [11:30:30]CreateOFDProtocolMessage [11:30:30]wFMCommunicate request_size=4 [11:30:30]MH_SAM_APDU [11:30:30]CAPDU: 80 11 00 00 [11:30:30]Write to MH i2c: E2 08 00 8E 06 80 11 00 00 00 00 00 00 0E [11:30:30]Write i2c OK [11:30:30]MH_I2C_Read... [11:30:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:30]Read from MH i2c: E2 [11:30:30]MH_I2C_Read... [11:30:30]Read from MH i2c: E2 17 00 [11:30:30]MH_I2C_Read... [11:30:30]Read from MH i2c: E2 17 00 8E 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 64 [11:30:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:30:30]wFMCommunicate OK [11:30:30]CreateOFDProtocolMessage done [11:30:30]OFDSenderStorePacket 165247 [11:30:30]StoreOFDPacket docnum=165247 [11:30:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C6 1B 07 01 AC F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 55 08 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7F 85 02 00 35 04 06 00 98 D0 06 0E 72 73 31 61 69 B9 A0 4B 9E B2 [11:30:30]CheckFolder [11:30:30]dirname=/storage/ofd_packets [11:30:30]CheckFolder done [11:30:30]ProducePacketName [11:30:30]name=ofd_packets/00165247 [11:30:30]NVStorageSaveData ofd_packets/00165247 [11:30:30]File name is /storage/ofd_packets/00165247 [11:30:30]Write 301 bytes [11:30:30]NVStorageSaveData done [11:30:30]OFDSenderStorePacket done [11:30:30]KKMCreateOFDPacket done [11:30:30]NVStorageSaveData kkm_last_timestamp [11:30:30]File name is /storage/kkm_last_timestamp [11:30:30]Write 4 bytes [11:30:30]NVStorageSaveData done [11:30:30]ExternCall_PrintAddStr [11:30:30]wPrintStart [11:30:30]Write to MH i2c: 01 00 00 8F 06 95 [11:30:30]Write i2c OK [11:30:30]MH_I2C_Read... [11:30:30]Read from MH i2c: 01 [11:30:30]MH_I2C_Read... [11:30:30]Read from MH i2c: 01 07 00 [11:30:30]MH_I2C_Read... [11:30:30]Read from MH i2c: 01 07 00 8F 06 00 00 00 00 00 FF 0F AA [11:30:30]RasterBufferAndPrint [11:30:30]line Счет N : (1)459354 [11:30:30]line ИНН: 02508201610067 [11:30:30]line Контрольно-Кассовый Чек [11:30:30]line ПРОДАЖА [11:30:30]line ТРК (МРК, ГНК) : 12 [11:30:30]line Товар: 2710124130 [11:30:30]line Аи-92-К-5 [11:30:30]line 4.560 * 65.80 [11:30:30]line = 300.05 [11:30:30]line НДС 12% НСП 1% [11:30:30]line > о реализуемом товаре [11:30:30]line ОКРУГЛЕНИЕ: -0.05 [11:30:30]line ИТОГО: 300.00 [11:30:30]line Внесено: 300.00 [11:30:30]line СДАЧА: 0.00 [11:30:30]line НСП 1% : 2.65 [11:30:30]line НДС 12% : 31.86 [11:30:30]line Наличными: 300.00 [11:30:30]line Безнал.: 0.00 [11:30:30]line Место: АЗС № 72 "Партнер Нефть" [11:30:30]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:30:30]line СНО: Общий режим [11:30:30]line Чек 120 15.07.2024 11:30 [11:30:30]line Смена: 448 ФФД: 1.0 [11:30:30]line ЗНМ: 0300000160 [11:30:30]line РНМ: 0000000000090829 [11:30:30]line Версия ККМ: 001 [11:30:30]line ФМ: 0000000000874718 [11:30:30]line ФД: 165247 [11:30:30]line ФПД: 168019222229619 [11:30:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T113029&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165247&fm=168019222229619&tin=02508201610067®Number=0000000000090829&sum=30000 [11:30:31]OFD Sender: Processing packet 165247 [packets to send 106, broken 105] [11:30:31]ProducePacketName [11:30:31]name=ofd_packets/00165247 [11:30:31]OFD Sender: To server: pG, [11:30:31]CommunicateWithHost lk.salyk.kg:30040 [11:30:31]ConnectInit lk.salyk.kg [11:30:31]written 0, free lines is 4095 [11:30:31]Connected sock=10 [11:30: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 37 31 38 0F 01 00 00 C6 1B 07 01 AC F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 55 08 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7F 85 02 00 35 04 06 00 98 D0 06 0E 72 73 31 61 69 B9 A0 4B 9E B2 [11:30:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 B7 8D 47 00 11 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7F 85 02 00 F4 03 04 00 E0 AE 94 66 B6 04 01 00 00 A6 87 21 46 42 99 4A D4 [11:30:31]CommunicateWithHost err = 0 [11:30:31]CheckOFDResponse [11:30:31]1017 (14) - 77093643461234 [11:30:31]1041 (16) - 0000000000874718 [11:30:31]1040 (4) - 165247 [11:30:31]1012 (4) - 15.07.2024 05:08 [11:30:31]1206 (1) - 0 [11:30:31]OFD Sender: Remove packet 165247 [11:30:31]ProducePacketName [11:30:31]name=ofd_packets/00165247 [11:30:31]NVStorageDeleteData [11:30:31]Write to MH i2c: 01 00 00 B9 06 BF [11:30:31]Write i2c OK [11:30:31]MH_I2C_Read... [11:30:31]Read from MH i2c: 01 [11:30:31]MH_I2C_Read... [11:30:31]Read from MH i2c: 01 07 00 [11:30:31]MH_I2C_Read... [11:30:31]Read from MH i2c: 01 07 00 B9 06 00 00 00 00 00 F7 0C C9 [11:30:31]RasterBufferAndPrint [11:30:31]line [11:30:31]line [11:30:31]line [11:30:31]line [11:30:31]line [11:30:31]written 0, free lines is 3326 [11:30:31]MH_Cut [11:30:31]Write to MH i2c: D1 01 00 C0 06 01 98 [11:30:31]Write i2c OK [11:30:31]MH_I2C_Read... [11:30:31]Read from MH i2c: D1 [11:30:31]MH_I2C_Read... [11:30:31]Read from MH i2c: D1 01 00 [11:30:31]MH_I2C_Read... [11:30:31]Read from MH i2c: D1 01 00 C0 06 00 97 [11:30:31]Write to MH i2c: 01 00 00 C1 06 C7 [11:30:31]Write i2c OK [11:30:31]MH_I2C_Read... [11:30:32]OFD Sender: No OFD packet to send [11:30:32]*** Cut start [11:30:32]*** Partial cut [11:30:32]*** CUTSNS_PIN = 1 [11:30:32]*** CUTSNS_PIN = 0 [11:30:32]*** Brake cut motor [11:30:33]Read from MH i2c: 01 [11:30:33]MH_I2C_Read... [11:30:33]*** Stop cut motor [11:30:33]*** Cut end [11:30:33]Read from MH i2c: 01 07 00 [11:30:33]MH_I2C_Read... [11:30:33]Read from MH i2c: 01 07 00 C1 06 00 00 00 00 00 FF 0F DC [11:30:33]process_action close_receipt done [11:30:33]requested_data is exist [11:30:33]produce_requested_data [11:30:33]requested_item fm.sn is exist - process it [11:30:33]wFMCommunicate request_size=4 [11:30:33]MH_SAM_APDU [11:30:33]CAPDU: 80 11 00 00 [11:30:33]Write to MH i2c: E2 08 00 C2 06 80 11 00 00 00 00 00 00 42 [11:30:33]Write i2c OK [11:30:33]MH_I2C_Read... [11:30:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:33]Read from MH i2c: E2 [11:30:33]MH_I2C_Read... [11:30:33]Read from MH i2c: E2 17 00 [11:30:33]MH_I2C_Read... [11:30:33]Read from MH i2c: E2 17 00 C2 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 98 [11:30:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:30:33]wFMCommunicate OK [11:30:33]requested_item fd.num is exist - process it [11:30:33]SAM_PROTO_GetFieldsCounters [11:30:33]wFMCommunicate request_size=4 [11:30:33]MH_SAM_APDU [11:30:33]CAPDU: 80 13 00 00 [11:30:33]Write to MH i2c: E2 08 00 C3 06 80 13 00 00 00 00 00 00 45 [11:30:33]Write i2c OK [11:30:33]MH_I2C_Read... [11:30:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:30:33]Read from MH i2c: E2 [11:30:33]MH_I2C_Read... [11:30:33]Read from MH i2c: E2 62 00 [11:30:33]MH_I2C_Read... [11:30:33]Read from MH i2c: E2 62 00 C3 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7F 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [11:30:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7F 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:30:33]wFMCommunicate OK [11:30:33]SAM_PROTO_GetFieldsCounters done [11:30:33]requested_item shift.num is exist - process it [11:30:33]requested_item shift.opened is exist - process it [11:30:33]req_shift_opened [11:30:33]FM_GetShiftState [11:30:33]SAM_PROTO_GetShiftState [11:30:33]wFMCommunicate request_size=4 [11:30:33]MH_SAM_APDU [11:30:33]CAPDU: 80 13 01 00 [11:30:33]Write to MH i2c: E2 08 00 C4 06 80 13 01 00 00 00 00 00 47 [11:30:33]Write i2c OK [11:30:33]MH_I2C_Read... [11:30:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:33]Read from MH i2c: E2 [11:30:33]MH_I2C_Read... [11:30:33]Read from MH i2c: E2 0E 00 [11:30:33]MH_I2C_Read... [11:30:33]Read from MH i2c: E2 0E 00 C4 06 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 20 [11:30:33]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [11:30:33]wFMCommunicate OK [11:30:33]SAM_PROTO_GetShiftState done [11:30:33]FM_GetShiftState done [11:30:33]req_shift_opened done [11:30:33]requested_item shift.open_date is exist - process it [11:30:33]req_shift_open_date [11:30:33]req_shift_open_date done [11:30:33]produce_requested_data done [11:30:33]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165247,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [11:30:33]process_action_free close_receipt [11:30:33]json_value_free [11:30:33]json_value_free done [11:30:33]process_json_proto returns [11:30:33]Send response to host [11:30:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165247,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [11:30:33]free response buf [11:30:33]execute_script done [11:30:33]execute_script returns [11:30:33]free content buf [11:30:33]Sock 9.Close socket [11:30:33]Sock 9.Thread stoped [11:30:37]OFD Sender: No OFD packet to send [11:30:42]OFD Sender: No OFD packet to send [11:30:47]OFD Sender: No OFD packet to send [11:30:52]OFD Sender: No OFD packet to send [11:30:57]OFD Sender: No OFD packet to send [11:31:02]OFD Sender: No OFD packet to send [11:31:07]OFD Sender: No OFD packet to send [11:31:12]OFD Sender: No OFD packet to send [11:31:17]OFD Sender: No OFD packet to send [11:31:22]OFD Sender: No OFD packet to send [11:31:27]OFD Sender: No OFD packet to send [11:31:32]OFD Sender: No OFD packet to send [11:31:37]OFD Sender: No OFD packet to send [11:31:42]OFD Sender: No OFD packet to send [11:31:47]OFD Sender: No OFD packet to send [11:31:52]OFD Sender: No OFD packet to send [11:31:57]OFD Sender: No OFD packet to send [11:32:02]OFD Sender: No OFD packet to send [11:32:07]OFD Sender: No OFD packet to send [11:32:12]OFD Sender: No OFD packet to send [11:32:15]accept exits with 8 [11:32:15]New connection [11:32:15]New thread 3066854756 created [11:32:15]Thread 3066711396 joined [11:32:15]Waiting for new connection... [11:32:15] Sock 8.Parse request [11:32:15]Sock 8.Check first char [11:32:15]Sock 8.First char is OK [11:32:15]request: POST /json_proto HTTP/1.0 [11:32:15]Method: POST [11:32:15]URL: /json_proto [11:32:15]Method is POST - this is cgi request [11:32:15]url: /json_proto [11:32:15]query_string will be loaded in cgi processing [11:32:15]execute_cgi json_proto POST (null) [11:32:15]execute_cgi path=json_proto method=POST [11:32:15]POST find Content-Length [11:32:15]Host: 172.17.56.4:8080 [11:32:15]Content-Length: 677 [11:32:15]Content-Type: application/json [11:32:15] [11:32:15]POST finish read [11:32:15]Found Content-Length = 677 [11:32:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459355", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:32:15]execute_script... [11:32:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459355", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:32:15]POST & json_proto [11:32:15]process_json_proto [11:32:15]json parsed OK: [11:32:15]protocol is kg_v1.0 [11:32:15]action value=close_receipt [11:32:15]process_action close_receipt [11:32:15]cmd_close_receipt [11:32:15]MH_GetDate [11:32:15]Write to MH i2c: F0 00 00 C5 06 BA [11:32:15]Write i2c OK [11:32:15]MH_I2C_Read... [11:32:15]Read from MH i2c: F0 [11:32:15]MH_I2C_Read... [11:32:15]Read from MH i2c: F0 09 00 [11:32:15]MH_I2C_Read... [11:32:15]Read from MH i2c: F0 09 00 C5 06 00 C0 08 95 66 C9 DC B2 64 41 [11:32:15]GetLastDocTimeStamp 1721043029 [11:32:15]current date 1721043136 [11:32:15]FM_GetShiftState [11:32:15]SAM_PROTO_GetShiftState [11:32:15]wFMCommunicate request_size=4 [11:32:15]MH_SAM_APDU [11:32:15]CAPDU: 80 13 01 00 [11:32:15]Write to MH i2c: E2 08 00 C6 06 80 13 01 00 00 00 00 00 49 [11:32:15]Write i2c OK [11:32:15]MH_I2C_Read... [11:32:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:15]Read from MH i2c: E2 [11:32:15]MH_I2C_Read... [11:32:15]Read from MH i2c: E2 0E 00 [11:32:15]MH_I2C_Read... [11:32:15]Read from MH i2c: E2 0E 00 C6 06 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 22 [11:32:15]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [11:32:15]wFMCommunicate OK [11:32:15]SAM_PROTO_GetShiftState done [11:32:15]FM_GetShiftState done [11:32:15]opened in 1721003876 [11:32:15]opened+sec_in_day 1721090276 [11:32:15]quantity*price = 30004 [11:32:15]sum+1 = 30006 [11:32:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 121 15.07.2024 11:32 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165248 ФПД: 269037190961520 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T113216&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165248&fm=269037190961520&tin=02508201610067®Number=0000000000090829&sum=30000 [11:32:17]StoreToDocumentArchive [11:32:17]shift 448 fd 165248 [11:32:17]save to /storage/0448/doc_00165248 [11:32:17]save last doc name /storage/0448/doc_00165248 to /storage/kkm_last_doc_name [11:32:17]save OK [11:32:17]Clear old archive folders... [11:32:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:32:17]tlvbuf is 01859630 [11:32:17]SAM_PROTO_ClearQueue [11:32:17]wFMCommunicate request_size=4 [11:32:17]MH_SAM_APDU [11:32:17]CAPDU: 80 09 00 00 [11:32:17]Write to MH i2c: E2 08 00 D3 06 80 09 00 00 00 00 00 00 4B [11:32:17]Write i2c OK [11:32:17]MH_I2C_Read... [11:32:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:32:17]Read from MH i2c: E2 [11:32:17]MH_I2C_Read... [11:32:17]Read from MH i2c: E2 03 00 [11:32:17]MH_I2C_Read... [11:32:17]Read from MH i2c: E2 03 00 D3 06 00 90 00 4D [11:32:17]RAPDU: 90 00 [11:32:17]wFMCommunicate OK [11:32:17]SAM_PROTO_ClearQueue done [11:32:17]KKMCreateOFDPacket [11:32:17]OFDProtocolAddRootSTLVToBuf [11:32:17]FM_MakeSignedData [11:32:17]FM_MakeSignedData [11:32:17]SAM_PROTO_SignData [11:32:17]wFMCommunicate request_size=4 [11:32:17]MH_SAM_APDU [11:32:17]CAPDU: 80 0D 01 02 [11:32:17]Write to MH i2c: E2 08 00 D4 06 80 0D 01 02 00 00 00 00 53 [11:32:17]Write i2c OK [11:32:17]MH_I2C_Read... [11:32:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:32:17]Read from MH i2c: E2 [11:32:17]MH_I2C_Read... [11:32:17]Read from MH i2c: E2 03 00 [11:32:17]MH_I2C_Read... [11:32:17]Read from MH i2c: E2 03 00 D4 06 00 90 00 4E [11:32:17]RAPDU: 90 00 [11:32:17]wFMCommunicate OK [11:32:17]wFMCommunicate request_size=255 [11:32:17]MH_SAM_APDU [11:32: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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 C0 08 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 80 85 02 00 35 04 06 00 F4 [11:32:17]Write to MH i2c: E2 02 01 D5 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 C0 08 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 80 85 02 00 35 04 06 00 F4 00 00 85 [11:32:17]Write i2c OK [11:32:17]MH_I2C_Read... [11:32:17]OFD Sender: No OFD packet to send [11:32:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:32:17]Read from MH i2c: E2 [11:32:17]MH_I2C_Read... [11:32:17]Read from MH i2c: E2 03 00 [11:32:17]MH_I2C_Read... [11:32:17]Read from MH i2c: E2 03 00 D5 06 00 90 00 4F [11:32:17]RAPDU: 90 00 [11:32:17]wFMCommunicate OK [11:32:17]wFMCommunicate request_size=10 [11:32:17]MH_SAM_APDU [11:32:17]CAPDU: 80 0D 02 02 05 B0 1A 32 D9 70 [11:32:17]Write to MH i2c: E2 0D 00 D6 06 80 0D 02 02 05 00 B0 1A 32 D9 70 00 00 A5 [11:32:17]Write i2c OK [11:32:17]MH_I2C_Read... [11:32:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:32:17]Read from MH i2c: E2 [11:32:17]MH_I2C_Read... [11:32:17]Read from MH i2c: E2 03 00 [11:32:17]MH_I2C_Read... [11:32:17]Read from MH i2c: E2 03 00 D6 06 00 90 00 50 [11:32:17]RAPDU: 90 00 [11:32:17]wFMCommunicate OK [11:32:17]wFMCommunicate request_size=4 [11:32:17]MH_SAM_APDU [11:32:17]CAPDU: 80 0D 03 02 [11:32:17]Write to MH i2c: E2 08 00 D7 06 80 0D 03 02 00 00 00 00 58 [11:32:17]Write i2c OK [11:32:17]MH_I2C_Read... [11:32:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:32:17]Read from MH i2c: E2 [11:32:17]MH_I2C_Read... [11:32:17]Read from MH i2c: E2 0B 00 [11:32:17]MH_I2C_Read... [11:32:17]Read from MH i2c: E2 0B 00 D7 06 00 14 24 C5 B9 81 23 F2 60 90 00 05 [11:32:17]RAPDU: 14 24 C5 B9 81 23 F2 60 90 00 [11:32:17]wFMCommunicate OK [11:32:17]SAM_PROTO_SignData done [11:32:17]FM_MakeSignedData done [11:32:17]CreateOFDProtocolMessage [11:32:17]wFMCommunicate request_size=4 [11:32:17]MH_SAM_APDU [11:32:17]CAPDU: 80 11 00 00 [11:32:17]Write to MH i2c: E2 08 00 D8 06 80 11 00 00 00 00 00 00 58 [11:32:17]Write i2c OK [11:32:17]MH_I2C_Read... [11:32:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:17]Read from MH i2c: E2 [11:32:17]MH_I2C_Read... [11:32:17]Read from MH i2c: E2 17 00 [11:32:17]MH_I2C_Read... [11:32:17]Read from MH i2c: E2 17 00 D8 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AE [11:32:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:32:17]wFMCommunicate OK [11:32:17]CreateOFDProtocolMessage done [11:32:17]OFDSenderStorePacket 165248 [11:32:17]StoreOFDPacket docnum=165248 [11:32:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 55 53 07 01 7F 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 C0 08 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 80 85 02 00 35 04 06 00 F4 B0 1A 32 D9 70 14 24 C5 B9 81 23 F2 60 [11:32:17]CheckFolder [11:32:17]dirname=/storage/ofd_packets [11:32:17]CheckFolder done [11:32:17]ProducePacketName [11:32:17]name=ofd_packets/00165248 [11:32:17]NVStorageSaveData ofd_packets/00165248 [11:32:17]File name is /storage/ofd_packets/00165248 [11:32:17]Write 301 bytes [11:32:17]NVStorageSaveData done [11:32:17]OFDSenderStorePacket done [11:32:17]KKMCreateOFDPacket done [11:32:17]NVStorageSaveData kkm_last_timestamp [11:32:17]File name is /storage/kkm_last_timestamp [11:32:17]Write 4 bytes [11:32:17]NVStorageSaveData done [11:32:17]OFD Sender: Processing packet 165248 [packets to send 106, broken 105] [11:32:17]ProducePacketName [11:32:17]name=ofd_packets/00165248 [11:32:17]OFD Sender: To server: pG, [11:32:17]CommunicateWithHost lk.salyk.kg:30040 [11:32:17]ConnectInit lk.salyk.kg [11:32:17]ExternCall_PrintAddStr [11:32:17]wPrintStart [11:32:17]Write to MH i2c: 01 00 00 D9 06 DF [11:32:17]Write i2c OK [11:32:17]MH_I2C_Read... [11:32:17]Read from MH i2c: 01 [11:32:17]MH_I2C_Read... [11:32:17]Read from MH i2c: 01 07 00 [11:32:17]MH_I2C_Read... [11:32:17]Read from MH i2c: 01 07 00 D9 06 00 00 00 00 00 FF 0F F4 [11:32:17]RasterBufferAndPrint [11:32:17]line Счет N : (1)459355 [11:32:17]line ИНН: 02508201610067 [11:32:17]line Контрольно-Кассовый Чек [11:32:17]line ПРОДАЖА [11:32:17]line ТРК (МРК, ГНК) : 12 [11:32:17]line Товар: 2710124130 [11:32:17]line Аи-92-К-5 [11:32:17]line 4.560 * 65.80 [11:32:17]line = 300.05 [11:32:17]line НДС 12% НСП 1% [11:32:17]line > о реализуемом товаре [11:32:17]line ОКРУГЛЕНИЕ: -0.05 [11:32:17]line ИТОГО: 300.00 [11:32:17]line Внесено: 300.00 [11:32:17]line СДАЧА: 0.00 [11:32:17]line НСП 1% : 2.65 [11:32:17]line НДС 12% : 31.86 [11:32:17]line Наличными: 300.00 [11:32:17]line Безнал.: 0.00 [11:32:17]line Место: АЗС № 72 "Партнер Нефть" [11:32:17]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:32:17]line СНО: Общий режим [11:32:17]line Чек 121 15.07.2024 11:32 [11:32:17]line Смена: 448 ФФД: 1.0 [11:32:17]line ЗНМ: 0300000160 [11:32:17]line РНМ: 0000000000090829 [11:32:17]line Версия ККМ: 001 [11:32:17]line ФМ: 0000000000874718 [11:32:17]line ФД: 165248 [11:32:17]line ФПД: 269037190961520 [11:32:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T113216&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165248&fm=269037190961520&tin=02508201610067®Number=0000000000090829&sum=30000 [11:32:17]Connected sock=11 [11:32:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 55 53 07 01 7F 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 written 0, free lines is 4095 [11:32:17]0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 C0 08 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 80 85 02 00 35 04 06 00 F4 B0 1A 32 D9 70 14 24 C5 B9 81 23 F2 60 [11:32:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 9C 05 47 00 55 FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 80 85 02 00 F4 03 04 00 4B AF 94 66 B6 04 01 00 00 FA 0C 12 3A CB CA 03 BC [11:32:18]CommunicateWithHost err = 0 [11:32:18]CheckOFDResponse [11:32:18]1017 (14) - 77093643461234 [11:32:18]1041 (16) - 0000000000874718 [11:32:18]1040 (4) - 165248 [11:32:18]1012 (4) - 15.07.2024 05:10 [11:32:18]1206 (1) - 0 [11:32:18]OFD Sender: Remove packet 165248 [11:32:18]ProducePacketName [11:32:18]name=ofd_packets/00165248 [11:32:18]NVStorageDeleteData [11:32:18]Write to MH i2c: 01 00 00 03 07 0A [11:32:18]Write i2c OK [11:32:18]MH_I2C_Read... [11:32:18]Read from MH i2c: 01 [11:32:18]MH_I2C_Read... [11:32:18]Read from MH i2c: 01 07 00 [11:32:18]MH_I2C_Read... [11:32:18]Read from MH i2c: 01 07 00 03 07 00 00 00 00 00 F0 0C 0D [11:32:18]RasterBufferAndPrint [11:32:18]line [11:32:18]line [11:32:18]line [11:32:18]line [11:32:18]line [11:32:18]written 0, free lines is 3319 [11:32:18]MH_Cut [11:32:18]Write to MH i2c: D1 01 00 0A 07 01 E3 [11:32:18]Write i2c OK [11:32:18]MH_I2C_Read... [11:32:18]Read from MH i2c: D1 [11:32:18]MH_I2C_Read... [11:32:18]Read from MH i2c: D1 01 00 [11:32:18]MH_I2C_Read... [11:32:18]Read from MH i2c: D1 01 00 0A 07 00 E2 [11:32:18]Write to MH i2c: 01 00 00 0B 07 12 [11:32:18]Write i2c OK [11:32:18]MH_I2C_Read... [11:32:18]OFD Sender: No OFD packet to send [11:32:19]*** Cut start [11:32:19]*** Partial cut [11:32:19]*** CUTSNS_PIN = 1 [11:32:19]*** CUTSNS_PIN = 0 [11:32:19]*** Brake cut motor [11:32:19]Read from MH i2c: 01 [11:32:19]MH_I2C_Read... [11:32:19]*** Stop cut motor [11:32:19]*** Cut end [11:32:19]Read from MH i2c: 01 07 00 [11:32:19]MH_I2C_Read... [11:32:19]Read from MH i2c: 01 07 00 0B 07 00 00 00 00 00 FF 0F 27 [11:32:19]process_action close_receipt done [11:32:19]requested_data is exist [11:32:19]produce_requested_data [11:32:19]requested_item fm.sn is exist - process it [11:32:19]wFMCommunicate request_size=4 [11:32:19]MH_SAM_APDU [11:32:19]CAPDU: 80 11 00 00 [11:32:19]Write to MH i2c: E2 08 00 0C 07 80 11 00 00 00 00 00 00 8D [11:32:19]Write i2c OK [11:32:19]MH_I2C_Read... [11:32:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:19]Read from MH i2c: E2 [11:32:19]MH_I2C_Read... [11:32:19]Read from MH i2c: E2 17 00 [11:32:19]MH_I2C_Read... [11:32:19]Read from MH i2c: E2 17 00 0C 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E3 [11:32:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:32:19]wFMCommunicate OK [11:32:19]requested_item fd.num is exist - process it [11:32:19]SAM_PROTO_GetFieldsCounters [11:32:19]wFMCommunicate request_size=4 [11:32:19]MH_SAM_APDU [11:32:19]CAPDU: 80 13 00 00 [11:32:19]Write to MH i2c: E2 08 00 0D 07 80 13 00 00 00 00 00 00 90 [11:32:19]Write i2c OK [11:32:19]MH_I2C_Read... [11:32:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:32:19]Read from MH i2c: E2 [11:32:19]MH_I2C_Read... [11:32:19]Read from MH i2c: E2 62 00 [11:32:19]MH_I2C_Read... [11:32:19]Read from MH i2c: E2 62 00 0D 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 80 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [11:32:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 80 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:32:19]wFMCommunicate OK [11:32:19]SAM_PROTO_GetFieldsCounters done [11:32:19]requested_item shift.num is exist - process it [11:32:19]requested_item shift.opened is exist - process it [11:32:19]req_shift_opened [11:32:19]FM_GetShiftState [11:32:19]SAM_PROTO_GetShiftState [11:32:19]wFMCommunicate request_size=4 [11:32:19]MH_SAM_APDU [11:32:19]CAPDU: 80 13 01 00 [11:32:19]Write to MH i2c: E2 08 00 0E 07 80 13 01 00 00 00 00 00 92 [11:32:19]Write i2c OK [11:32:19]MH_I2C_Read... [11:32:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:19]Read from MH i2c: E2 [11:32:19]MH_I2C_Read... [11:32:19]Read from MH i2c: E2 0E 00 [11:32:19]MH_I2C_Read... [11:32:19]Read from MH i2c: E2 0E 00 0E 07 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 6B [11:32:19]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [11:32:19]wFMCommunicate OK [11:32:19]SAM_PROTO_GetShiftState done [11:32:19]FM_GetShiftState done [11:32:19]req_shift_opened done [11:32:19]requested_item shift.open_date is exist - process it [11:32:19]req_shift_open_date [11:32:19]req_shift_open_date done [11:32:19]produce_requested_data done [11:32:19]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165248,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [11:32:19]process_action_free close_receipt [11:32:19]json_value_free [11:32:19]json_value_free done [11:32:19]process_json_proto returns [11:32:19]Send response to host [11:32:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165248,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [11:32:19]free response buf [11:32:19]execute_script done [11:32:19]execute_script returns [11:32:19]free content buf [11:32:19]Sock 8.Close socket [11:32:19]Sock 8.Thread stoped [11:32:23]OFD Sender: No OFD packet to send [11:32:28]OFD Sender: No OFD packet to send [11:32:33]OFD Sender: No OFD packet to send [11:32:38]OFD Sender: No OFD packet to send [11:32:43]OFD Sender: No OFD packet to send [11:32:48]OFD Sender: No OFD packet to send [11:32:53]OFD Sender: No OFD packet to send [11:32:58]OFD Sender: No OFD packet to send [11:33:03]OFD Sender: No OFD packet to send [11:33:08]OFD Sender: No OFD packet to send [11:33:13]OFD Sender: No OFD packet to send [11:33:18]OFD Sender: No OFD packet to send [11:33:23]OFD Sender: No OFD packet to send [11:33:28]OFD Sender: No OFD packet to send [11:33:33]OFD Sender: No OFD packet to send [11:33:38]OFD Sender: No OFD packet to send [11:33:43]OFD Sender: No OFD packet to send [11:33:48]OFD Sender: No OFD packet to send [11:33:53]OFD Sender: No OFD packet to send [11:33:58]OFD Sender: No OFD packet to send [11:34:03]OFD Sender: No OFD packet to send [11:34:08]OFD Sender: No OFD packet to send [11:34:13]OFD Sender: No OFD packet to send [11:34:18]OFD Sender: No OFD packet to send [11:34:23]OFD Sender: No OFD packet to send [11:34:28]OFD Sender: No OFD packet to send [11:34:33]OFD Sender: No OFD packet to send [11:34:38]OFD Sender: No OFD packet to send [11:34:43]OFD Sender: No OFD packet to send [11:34:48]OFD Sender: No OFD packet to send [11:34:53]OFD Sender: No OFD packet to send [11:34:58]OFD Sender: No OFD packet to send [11:35:03]OFD Sender: No OFD packet to send [11:35:08]OFD Sender: No OFD packet to send [11:35:13]OFD Sender: No OFD packet to send [11:35:18]OFD Sender: No OFD packet to send [11:35:23]OFD Sender: No OFD packet to send [11:35:28]OFD Sender: No OFD packet to send [11:35:33]OFD Sender: No OFD packet to send [11:35:38]OFD Sender: No OFD packet to send [11:35:43]OFD Sender: No OFD packet to send [11:35:48]OFD Sender: No OFD packet to send [11:35:53]OFD Sender: No OFD packet to send [11:35:58]OFD Sender: No OFD packet to send [11:36:01]accept exits with 9 [11:36:01]New connection [11:36:01]New thread 3066711396 created [11:36:01]Thread 3066854756 joined [11:36:01]Waiting for new connection... [11:36:01] Sock 9.Parse request [11:36:01]Sock 9.Check first char [11:36:01]Sock 9.First char is OK [11:36:01]request: POST /json_proto HTTP/1.0 [11:36:01]Method: POST [11:36:01]URL: /json_proto [11:36:01]Method is POST - this is cgi request [11:36:01]url: /json_proto [11:36:01]query_string will be loaded in cgi processing [11:36:01]execute_cgi json_proto POST (null) [11:36:01]execute_cgi path=json_proto method=POST [11:36:01]POST find Content-Length [11:36:01]Host: 172.17.56.4:8080 [11:36:01]Content-Length: 677 [11:36:01]Content-Type: application/json [11:36:01] [11:36:01]POST finish read [11:36:01]Found Content-Length = 677 [11:36:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459356", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.350, "sum" : 220.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:36:01]execute_script... [11:36:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459356", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.350, "sum" : 220.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:36:01]POST & json_proto [11:36:01]process_json_proto [11:36:01]json parsed OK: [11:36:01]protocol is kg_v1.0 [11:36:01]action value=close_receipt [11:36:01]process_action close_receipt [11:36:01]cmd_close_receipt [11:36:01]MH_GetDate [11:36:01]Write to MH i2c: F0 00 00 0F 07 05 [11:36:01]Write i2c OK [11:36:01]MH_I2C_Read... [11:36:01]Read from MH i2c: F0 [11:36:01]MH_I2C_Read... [11:36:01]Read from MH i2c: F0 09 00 [11:36:01]MH_I2C_Read... [11:36:01]Read from MH i2c: F0 09 00 0F 07 00 A2 09 95 66 C9 DC B2 64 6F [11:36:01]GetLastDocTimeStamp 1721043136 [11:36:01]current date 1721043362 [11:36:01]FM_GetShiftState [11:36:01]SAM_PROTO_GetShiftState [11:36:01]wFMCommunicate request_size=4 [11:36:01]MH_SAM_APDU [11:36:01]CAPDU: 80 13 01 00 [11:36:01]Write to MH i2c: E2 08 00 10 07 80 13 01 00 00 00 00 00 94 [11:36:01]Write i2c OK [11:36:01]MH_I2C_Read... [11:36:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:01]Read from MH i2c: E2 [11:36:01]MH_I2C_Read... [11:36:01]Read from MH i2c: E2 0E 00 [11:36:01]MH_I2C_Read... [11:36:01]Read from MH i2c: E2 0E 00 10 07 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 6D [11:36:01]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [11:36:01]wFMCommunicate OK [11:36:01]SAM_PROTO_GetShiftState done [11:36:01]FM_GetShiftState done [11:36:01]opened in 1721003876 [11:36:01]opened+sec_in_day 1721090276 [11:36:01]quantity*price = 22043 [11:36:01]sum+1 = 22044 [11:36:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.41 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 122 15.07.2024 11:36 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165249 ФПД: 233105044670285 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T113602&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165249&fm=233105044670285&tin=02508201610067®Number=0000000000090829&sum=22000 [11:36:02]StoreToDocumentArchive [11:36:02]shift 448 fd 165249 [11:36:02]save to /storage/0448/doc_00165249 [11:36:02]save last doc name /storage/0448/doc_00165249 to /storage/kkm_last_doc_name [11:36:02]save OK [11:36:02]Clear old archive folders... [11:36:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:36:02]tlvbuf is 0185B120 [11:36:02]SAM_PROTO_ClearQueue [11:36:02]wFMCommunicate request_size=4 [11:36:02]MH_SAM_APDU [11:36:02]CAPDU: 80 09 00 00 [11:36:02]Write to MH i2c: E2 08 00 1D 07 80 09 00 00 00 00 00 00 96 [11:36:02]Write i2c OK [11:36:02]MH_I2C_Read... [11:36:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:36:02]Read from MH i2c: E2 [11:36:02]MH_I2C_Read... [11:36:02]Read from MH i2c: E2 03 00 [11:36:02]MH_I2C_Read... [11:36:02]Read from MH i2c: E2 03 00 1D 07 00 90 00 98 [11:36:02]RAPDU: 90 00 [11:36:02]wFMCommunicate OK [11:36:02]SAM_PROTO_ClearQueue done [11:36:02]KKMCreateOFDPacket [11:36:02]OFDProtocolAddRootSTLVToBuf [11:36:02]FM_MakeSignedData [11:36:02]FM_MakeSignedData [11:36:02]SAM_PROTO_SignData [11:36:02]wFMCommunicate request_size=4 [11:36:02]MH_SAM_APDU [11:36:02]CAPDU: 80 0D 01 02 [11:36:02]Write to MH i2c: E2 08 00 1E 07 80 0D 01 02 00 00 00 00 9E [11:36:02]Write i2c OK [11:36:02]MH_I2C_Read... [11:36:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:36:02]Read from MH i2c: E2 [11:36:02]MH_I2C_Read... [11:36:02]Read from MH i2c: E2 03 00 [11:36:02]MH_I2C_Read... [11:36:02]Read from MH i2c: E2 03 00 1E 07 00 90 00 99 [11:36:02]RAPDU: 90 00 [11:36:02]wFMCommunicate OK [11:36:02]wFMCommunicate request_size=255 [11:36:02]MH_SAM_APDU [11:36:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 16 0D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 1B 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 A2 09 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 81 85 02 00 35 04 06 00 D4 [11:36:02]Write to MH i2c: E2 02 01 1F 07 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 16 0D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 1B 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 A2 09 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 81 85 02 00 35 04 06 00 D4 00 00 47 [11:36:02]Write i2c OK [11:36:02]MH_I2C_Read... [11:36:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:03]Read from MH i2c: E2 [11:36:03]MH_I2C_Read... [11:36:03]Read from MH i2c: E2 03 00 [11:36:03]MH_I2C_Read... [11:36:03]Read from MH i2c: E2 03 00 1F 07 00 90 00 9A [11:36:03]RAPDU: 90 00 [11:36:03]wFMCommunicate OK [11:36:03]wFMCommunicate request_size=10 [11:36:03]MH_SAM_APDU [11:36:03]CAPDU: 80 0D 02 02 05 01 FF 62 07 4D [11:36:03]Write to MH i2c: E2 0D 00 20 07 80 0D 02 02 05 00 01 FF 62 07 4D 00 00 61 [11:36:03]Write i2c OK [11:36:03]MH_I2C_Read... [11:36:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:03]Read from MH i2c: E2 [11:36:03]MH_I2C_Read... [11:36:03]Read from MH i2c: E2 03 00 [11:36:03]MH_I2C_Read... [11:36:03]Read from MH i2c: E2 03 00 20 07 00 90 00 9B [11:36:03]RAPDU: 90 00 [11:36:03]wFMCommunicate OK [11:36:03]wFMCommunicate request_size=4 [11:36:03]MH_SAM_APDU [11:36:03]CAPDU: 80 0D 03 02 [11:36:03]Write to MH i2c: E2 08 00 21 07 80 0D 03 02 00 00 00 00 A3 [11:36:03]Write i2c OK [11:36:03]MH_I2C_Read... [11:36:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:36:03]Read from MH i2c: E2 [11:36:03]MH_I2C_Read... [11:36:03]Read from MH i2c: E2 0B 00 [11:36:03]MH_I2C_Read... [11:36:03]Read from MH i2c: E2 0B 00 21 07 00 4F EE 59 20 95 32 95 24 90 00 DA [11:36:03]RAPDU: 4F EE 59 20 95 32 95 24 90 00 [11:36:03]wFMCommunicate OK [11:36:03]SAM_PROTO_SignData done [11:36:03]FM_MakeSignedData done [11:36:03]CreateOFDProtocolMessage [11:36:03]wFMCommunicate request_size=4 [11:36:03]MH_SAM_APDU [11:36:03]CAPDU: 80 11 00 00 [11:36:03]Write to MH i2c: E2 08 00 22 07 80 11 00 00 00 00 00 00 A3 [11:36:03]Write i2c OK [11:36:03]MH_I2C_Read... [11:36:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:03]Read from MH i2c: E2 [11:36:03]MH_I2C_Read... [11:36:03]Read from MH i2c: E2 17 00 [11:36:03]MH_I2C_Read... [11:36:03]Read from MH i2c: E2 17 00 22 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F9 [11:36:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:36:03]wFMCommunicate OK [11:36:03]CreateOFDProtocolMessage done [11:36:03]OFDSenderStorePacket 165249 [11:36:03]StoreOFDPacket docnum=165249 [11:36:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D5 32 07 01 3F 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 16 0D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 1B 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 A2 09 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 81 85 02 00 35 04 06 00 D4 01 FF 62 07 4D 4F EE 59 20 95 32 95 24 [11:36:03]CheckFolder [11:36:03]dirname=/storage/ofd_packets [11:36:03]CheckFolder done [11:36:03]ProducePacketName [11:36:03]name=ofd_packets/00165249 [11:36:03]NVStorageSaveData ofd_packets/00165249 [11:36:03]File name is /storage/ofd_packets/00165249 [11:36:03]Write 301 bytes [11:36:03]NVStorageSaveData done [11:36:03]OFDSenderStorePacket done [11:36:03]KKMCreateOFDPacket done [11:36:03]NVStorageSaveData kkm_last_timestamp [11:36:03]File name is /storage/kkm_last_timestamp [11:36:03]Write 4 bytes [11:36:03]NVStorageSaveData done [11:36:03]ExternCall_PrintAddStr [11:36:03]wPrintStart [11:36:03]Write to MH i2c: 01 00 00 23 07 2A [11:36:03]Write i2c OK [11:36:03]MH_I2C_Read... [11:36:03]Read from MH i2c: 01 [11:36:03]MH_I2C_Read... [11:36:03]Read from MH i2c: 01 07 00 [11:36:03]MH_I2C_Read... [11:36:03]Read from MH i2c: 01 07 00 23 07 00 00 00 00 00 FF 0F 3F [11:36:03]RasterBufferAndPrint [11:36:03]line Счет N : (1)459356 [11:36:03]line ИНН: 02508201610067 [11:36:03]line Контрольно-Кассовый Чек [11:36:03]line ПРОДАЖА [11:36:03]line ТРК (МРК, ГНК) : 12 [11:36:03]line Товар: 2710124130 [11:36:03]line Аи-92-К-5 [11:36:03]line 3.350 * 65.80 [11:36:03]line = 220.43 [11:36:03]line НДС 12% НСП 1% [11:36:03]line > о реализуемом товаре [11:36:03]line ОКРУГЛЕНИЕ: -0.43 [11:36:03]line ИТОГО: 220.00 [11:36:03]line Внесено: 220.00 [11:36:03]line СДАЧА: 0.00 [11:36:03]line НСП 1% : 1.95 [11:36:03]line НДС 12% : 23.41 [11:36:03]line Наличными: 220.00 [11:36:03]line Безнал.: 0.00 [11:36:03]line Место: АЗС № 72 "Партнер Нефть" [11:36:03]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:36:03]line СНО: Общий режим [11:36:03]line Чек 122 15.07.2024 11:36 [11:36:03]line Смена: 448 ФФД: 1.0 [11:36:03]line ЗНМ: 0300000160 [11:36:03]line РНМ: 0000000000090829 [11:36:03]line Версия ККМ: 001 [11:36:03]line ФМ: 0000000000874718 [11:36:03]line ФД: 165249 [11:36:03]line ФПД: 233105044670285 [11:36:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T113602&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165249&fm=233105044670285&tin=02508201610067®Number=0000000000090829&sum=22000 [11:36:03]written 0, free lines is 4095 [11:36:03]OFD Sender: Processing packet 165249 [packets to send 106, broken 105] [11:36:03]ProducePacketName [11:36:03]name=ofd_packets/00165249 [11:36:03]OFD Sender: To server: pG, [11:36:03]CommunicateWithHost lk.salyk.kg:30040 [11:36:03]ConnectInit lk.salyk.kg [11:36:03]Connected sock=10 [11:36:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D5 32 07 01 3F 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 16 0D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 1B 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 A2 09 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 81 85 02 00 35 04 06 00 D4 01 FF 62 07 4D 4F EE 59 20 95 32 95 24 [11:36:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 7F 9B 47 00 DD C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 81 85 02 00 F4 03 04 00 2C B0 94 66 B6 04 01 00 00 4D 0C BC 09 76 AE 79 A5 [11:36:03]CommunicateWithHost err = 0 [11:36:03]CheckOFDResponse [11:36:03]1017 (14) - 77093643461234 [11:36:03]1041 (16) - 0000000000874718 [11:36:03]1040 (4) - 165249 [11:36:03]1012 (4) - 15.07.2024 05:14 [11:36:03]1206 (1) - 0 [11:36:03]OFD Sender: Remove packet 165249 [11:36:03]ProducePacketName [11:36:03]name=ofd_packets/00165249 [11:36:03]NVStorageDeleteData [11:36:03]Write to MH i2c: 01 00 00 4D 07 54 [11:36:03]Write i2c OK [11:36:03]MH_I2C_Read... [11:36:03]Read from MH i2c: 01 [11:36:03]MH_I2C_Read... [11:36:03]Read from MH i2c: 01 07 00 [11:36:03]MH_I2C_Read... [11:36:03]Read from MH i2c: 01 07 00 4D 07 00 00 00 00 00 F3 0C 5A [11:36:03]RasterBufferAndPrint [11:36:03]line [11:36:03]line [11:36:03]line [11:36:03]line [11:36:03]line [11:36:03]written 0, free lines is 3322 [11:36:03]MH_Cut [11:36:03]Write to MH i2c: D1 01 00 54 07 01 2D [11:36:03]Write i2c OK [11:36:03]MH_I2C_Read... [11:36:03]Read from MH i2c: D1 [11:36:03]MH_I2C_Read... [11:36:03]Read from MH i2c: D1 01 00 [11:36:03]MH_I2C_Read... [11:36:03]Read from MH i2c: D1 01 00 54 07 00 2C [11:36:03]Write to MH i2c: 01 00 00 55 07 5C [11:36:03]Write i2c OK [11:36:03]MH_I2C_Read... [11:36:04]OFD Sender: No OFD packet to send [11:36:04]*** Cut start [11:36:04]*** Partial cut [11:36:04]*** CUTSNS_PIN = 1 [11:36:04]*** CUTSNS_PIN = 0 [11:36:04]*** Brake cut motor [11:36:05]Read from MH i2c: 01 [11:36:05]MH_I2C_Read... [11:36:05]*** Stop cut motor [11:36:05]*** Cut end [11:36:05]Read from MH i2c: 01 07 00 [11:36:05]MH_I2C_Read... [11:36:05]Read from MH i2c: 01 07 00 55 07 00 00 00 00 00 FF 0F 71 [11:36:05]process_action close_receipt done [11:36:05]requested_data is exist [11:36:05]produce_requested_data [11:36:05]requested_item fm.sn is exist - process it [11:36:05]wFMCommunicate request_size=4 [11:36:05]MH_SAM_APDU [11:36:05]CAPDU: 80 11 00 00 [11:36:05]Write to MH i2c: E2 08 00 56 07 80 11 00 00 00 00 00 00 D7 [11:36:05]Write i2c OK [11:36:05]MH_I2C_Read... [11:36:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:05]Read from MH i2c: E2 [11:36:05]MH_I2C_Read... [11:36:05]Read from MH i2c: E2 17 00 [11:36:05]MH_I2C_Read... [11:36:05]Read from MH i2c: E2 17 00 56 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2D [11:36:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:36:05]wFMCommunicate OK [11:36:05]requested_item fd.num is exist - process it [11:36:05]SAM_PROTO_GetFieldsCounters [11:36:05]wFMCommunicate request_size=4 [11:36:05]MH_SAM_APDU [11:36:05]CAPDU: 80 13 00 00 [11:36:05]Write to MH i2c: E2 08 00 57 07 80 13 00 00 00 00 00 00 DA [11:36:05]Write i2c OK [11:36:05]MH_I2C_Read... [11:36:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:36:05]Read from MH i2c: E2 [11:36:05]MH_I2C_Read... [11:36:05]Read from MH i2c: E2 62 00 [11:36:05]MH_I2C_Read... [11:36:05]Read from MH i2c: E2 62 00 57 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 81 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [11:36:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 81 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:36:05]wFMCommunicate OK [11:36:05]SAM_PROTO_GetFieldsCounters done [11:36:05]requested_item shift.num is exist - process it [11:36:05]requested_item shift.opened is exist - process it [11:36:05]req_shift_opened [11:36:05]FM_GetShiftState [11:36:05]SAM_PROTO_GetShiftState [11:36:05]wFMCommunicate request_size=4 [11:36:05]MH_SAM_APDU [11:36:05]CAPDU: 80 13 01 00 [11:36:05]Write to MH i2c: E2 08 00 58 07 80 13 01 00 00 00 00 00 DC [11:36:05]Write i2c OK [11:36:05]MH_I2C_Read... [11:36:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:05]Read from MH i2c: E2 [11:36:05]MH_I2C_Read... [11:36:05]Read from MH i2c: E2 0E 00 [11:36:05]MH_I2C_Read... [11:36:05]Read from MH i2c: E2 0E 00 58 07 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 B5 [11:36:05]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [11:36:05]wFMCommunicate OK [11:36:05]SAM_PROTO_GetShiftState done [11:36:05]FM_GetShiftState done [11:36:05]req_shift_opened done [11:36:05]requested_item shift.open_date is exist - process it [11:36:05]req_shift_open_date [11:36:05]req_shift_open_date done [11:36:05]produce_requested_data done [11:36:05]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165249,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [11:36:05]process_action_free close_receipt [11:36:05]json_value_free [11:36:05]json_value_free done [11:36:05]process_json_proto returns [11:36:05]Send response to host [11:36:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165249,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [11:36:05]free response buf [11:36:05]execute_script done [11:36:05]execute_script returns [11:36:05]free content buf [11:36:05]Sock 9.Close socket [11:36:05]Sock 9.Thread stoped [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:29]OFD Sender: No OFD packet to send [11:43:34]OFD Sender: No OFD packet to send [11:43:39]OFD Sender: No OFD packet to send [11:43:44]OFD Sender: No OFD packet to send [11:43:49]OFD Sender: No OFD packet to send [11:43:54]OFD Sender: No OFD packet to send [11:43:59]OFD Sender: No OFD packet to send [11:44:04]OFD Sender: No OFD packet to send [11:44:09]OFD Sender: No OFD packet to send [11:44:14]OFD Sender: No OFD packet to send [11:44:19]OFD Sender: No OFD packet to send [11:44:24]OFD Sender: No OFD packet to send [11:44:29]OFD Sender: No OFD packet to send [11:44:34]OFD Sender: No OFD packet to send [11:44:39]OFD Sender: No OFD packet to send [11:44:44]OFD Sender: No OFD packet to send [11:44:49]OFD Sender: No OFD packet to send [11:44:54]OFD Sender: No OFD packet to send [11:44:59]OFD Sender: No OFD packet to send [11:45:04]OFD Sender: No OFD packet to send [11:45:09]OFD Sender: No OFD packet to send [11:45:14]OFD Sender: No OFD packet to send [11:45:19]OFD Sender: No OFD packet to send [11:45:24]OFD Sender: No OFD packet to send [11:45:29]OFD Sender: No OFD packet to send [11:45:34]OFD Sender: No OFD packet to send [11:45:39]OFD Sender: No OFD packet to send [11:45:44]OFD Sender: No OFD packet to send [11:45:49]OFD Sender: No OFD packet to send [11:45:54]OFD Sender: No OFD packet to send [11:45:59]OFD Sender: No OFD packet to send [11:46:04]OFD Sender: No OFD packet to send [11:46:10]OFD Sender: No OFD packet to send [11:46:15]OFD Sender: No OFD packet to send [11:46:20]OFD Sender: No OFD packet to send [11:46:25]OFD Sender: No OFD packet to send [11:46:30]OFD Sender: No OFD packet to send [11:46:35]OFD Sender: No OFD packet to send [11:46:40]OFD Sender: No OFD packet to send [11:46:45]OFD Sender: No OFD packet to send [11:46:50]OFD Sender: No OFD packet to send [11:46:55]OFD Sender: No OFD packet to send [11:47:00]OFD Sender: No OFD packet to send [11:47:05]OFD Sender: No OFD packet to send [11:47:10]OFD Sender: No OFD packet to send [11:47:15]OFD Sender: No OFD packet to send [11:47:20]OFD Sender: No OFD packet to send [11:47:25]OFD Sender: No OFD packet to send [11:47:30]OFD Sender: No OFD packet to send [11:47:35]OFD Sender: No OFD packet to send [11:47:40]OFD Sender: No OFD packet to send [11:47:45]OFD Sender: No OFD packet to send [11:47:50]OFD Sender: No OFD packet to send [11:47:55]OFD Sender: No OFD packet to send [11:47:56]accept exits with 8 [11:47:56]New connection [11:47:56]New thread 3066854756 created [11:47:56]Thread 3066711396 joined [11:47:56]Waiting for new connection... [11:47:56] Sock 8.Parse request [11:47:56]Sock 8.Check first char [11:47:56]Sock 8.First char is OK [11:47:56]request: POST /json_proto HTTP/1.0 [11:47:56]Method: POST [11:47:56]URL: /json_proto [11:47:56]Method is POST - this is cgi request [11:47:56]url: /json_proto [11:47:56]query_string will be loaded in cgi processing [11:47:56]execute_cgi json_proto POST (null) [11:47:56]execute_cgi path=json_proto method=POST [11:47:56]POST find Content-Length [11:47:56]Host: 172.17.56.4:8080 [11:47:56]Content-Length: 677 [11:47:56]Content-Type: application/json [11:47:56] [11:47:56]POST finish read [11:47:56]Found Content-Length = 677 [11:47:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459357", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:56]execute_script... [11:47: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)459357", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:56]POST & json_proto [11:47:56]process_json_proto [11:47:56]json parsed OK: [11:47:56]protocol is kg_v1.0 [11:47:56]action value=close_receipt [11:47:56]process_action close_receipt [11:47:56]cmd_close_receipt [11:47:56]MH_GetDate [11:47:56]Write to MH i2c: F0 00 00 59 07 4F [11:47:56]Write i2c OK [11:47:56]MH_I2C_Read... [11:47:56]Read from MH i2c: F0 [11:47:56]MH_I2C_Read... [11:47:56]Read from MH i2c: F0 09 00 [11:47:56]MH_I2C_Read... [11:47:56]Read from MH i2c: F0 09 00 59 07 00 6D 0C 95 66 C9 DC B2 64 87 [11:47:56]GetLastDocTimeStamp 1721043362 [11:47:56]current date 1721044077 [11:47:56]FM_GetShiftState [11:47:56]SAM_PROTO_GetShiftState [11:47:56]wFMCommunicate request_size=4 [11:47:56]MH_SAM_APDU [11:47:56]CAPDU: 80 13 01 00 [11:47:56]Write to MH i2c: E2 08 00 5A 07 80 13 01 00 00 00 00 00 DE [11:47:56]Write i2c OK [11:47:56]MH_I2C_Read... [11:47:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:56]Read from MH i2c: E2 [11:47:56]MH_I2C_Read... [11:47:56]Read from MH i2c: E2 0E 00 [11:47:56]MH_I2C_Read... [11:47:56]Read from MH i2c: E2 0E 00 5A 07 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 B7 [11:47:56]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [11:47:56]wFMCommunicate OK [11:47:56]SAM_PROTO_GetShiftState done [11:47:56]FM_GetShiftState done [11:47:56]opened in 1721003876 [11:47:56]opened+sec_in_day 1721090276 [11:47:56]quantity*price = 50008 [11:47:56]sum+1 = 50009 [11:47:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 123 15.07.2024 11:47 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165250 ФПД: 98556066115925 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T114757&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165250&fm=98556066115925&tin=02508201610067®Number=0000000000090829&sum=50000 [11:47:58]StoreToDocumentArchive [11:47:58]shift 448 fd 165250 [11:47:58]save to /storage/0448/doc_00165250 [11:47:58]save last doc name /storage/0448/doc_00165250 to /storage/kkm_last_doc_name [11:47:58]save OK [11:47:58]Clear old archive folders... [11:47:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:47:58]tlvbuf is 01840110 [11:47:58]SAM_PROTO_ClearQueue [11:47:58]wFMCommunicate request_size=4 [11:47:58]MH_SAM_APDU [11:47:58]CAPDU: 80 09 00 00 [11:47:58]Write to MH i2c: E2 08 00 67 07 80 09 00 00 00 00 00 00 E0 [11:47:58]Write i2c OK [11:47:58]MH_I2C_Read... [11:47:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:47:58]Read from MH i2c: E2 [11:47:58]MH_I2C_Read... [11:47:58]Read from MH i2c: E2 03 00 [11:47:58]MH_I2C_Read... [11:47:58]Read from MH i2c: E2 03 00 67 07 00 90 00 E2 [11:47:58]RAPDU: 90 00 [11:47:58]wFMCommunicate OK [11:47:58]SAM_PROTO_ClearQueue done [11:47:58]KKMCreateOFDPacket [11:47:58]OFDProtocolAddRootSTLVToBuf [11:47:58]FM_MakeSignedData [11:47:58]FM_MakeSignedData [11:47:58]SAM_PROTO_SignData [11:47:58]wFMCommunicate request_size=4 [11:47:58]MH_SAM_APDU [11:47:58]CAPDU: 80 0D 01 02 [11:47:58]Write to MH i2c: E2 08 00 68 07 80 0D 01 02 00 00 00 00 E8 [11:47:58]Write i2c OK [11:47:58]MH_I2C_Read... [11:47:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:47:58]Read from MH i2c: E2 [11:47:58]MH_I2C_Read... [11:47:58]Read from MH i2c: E2 03 00 [11:47:58]MH_I2C_Read... [11:47:58]Read from MH i2c: E2 03 00 68 07 00 90 00 E3 [11:47:58]RAPDU: 90 00 [11:47:58]wFMCommunicate OK [11:47:58]wFMCommunicate request_size=255 [11:47:58]MH_SAM_APDU [11:47:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 6D 0C 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 82 85 02 00 35 04 06 00 59 [11:47:58]Write to MH i2c: E2 02 01 69 07 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 6D 0C 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 82 85 02 00 35 04 06 00 59 00 00 73 [11:47:58]Write i2c OK [11:47:58]MH_I2C_Read... [11:47:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:58]Read from MH i2c: E2 [11:47:58]MH_I2C_Read... [11:47:58]Read from MH i2c: E2 03 00 [11:47:58]MH_I2C_Read... [11:47:58]Read from MH i2c: E2 03 00 69 07 00 90 00 E4 [11:47:58]RAPDU: 90 00 [11:47:58]wFMCommunicate OK [11:47:58]wFMCommunicate request_size=10 [11:47:58]MH_SAM_APDU [11:47:58]CAPDU: 80 0D 02 02 05 A2 DF 4F B1 55 [11:47:58]Write to MH i2c: E2 0D 00 6A 07 80 0D 02 02 05 00 A2 DF 4F B1 55 00 00 CB [11:47:58]Write i2c OK [11:47:58]MH_I2C_Read... [11:47:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:58]Read from MH i2c: E2 [11:47:58]MH_I2C_Read... [11:47:58]Read from MH i2c: E2 03 00 [11:47:58]MH_I2C_Read... [11:47:58]Read from MH i2c: E2 03 00 6A 07 00 90 00 E5 [11:47:58]RAPDU: 90 00 [11:47:58]wFMCommunicate OK [11:47:58]wFMCommunicate request_size=4 [11:47:58]MH_SAM_APDU [11:47:58]CAPDU: 80 0D 03 02 [11:47:58]Write to MH i2c: E2 08 00 6B 07 80 0D 03 02 00 00 00 00 ED [11:47:58]Write i2c OK [11:47:58]MH_I2C_Read... [11:47:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:47:58]Read from MH i2c: E2 [11:47:58]MH_I2C_Read... [11:47:58]Read from MH i2c: E2 0B 00 [11:47:58]MH_I2C_Read... [11:47:58]Read from MH i2c: E2 0B 00 6B 07 00 98 3A D4 63 8A D8 3E 0B 90 00 A2 [11:47:58]RAPDU: 98 3A D4 63 8A D8 3E 0B 90 00 [11:47:58]wFMCommunicate OK [11:47:58]SAM_PROTO_SignData done [11:47:58]FM_MakeSignedData done [11:47:58]CreateOFDProtocolMessage [11:47:58]wFMCommunicate request_size=4 [11:47:58]MH_SAM_APDU [11:47:58]CAPDU: 80 11 00 00 [11:47:58]Write to MH i2c: E2 08 00 6C 07 80 11 00 00 00 00 00 00 ED [11:47:58]Write i2c OK [11:47:58]MH_I2C_Read... [11:47:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:58]Read from MH i2c: E2 [11:47:58]MH_I2C_Read... [11:47:58]Read from MH i2c: E2 17 00 [11:47:58]MH_I2C_Read... [11:47:58]Read from MH i2c: E2 17 00 6C 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 43 [11:47:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:47:58]wFMCommunicate OK [11:47:58]CreateOFDProtocolMessage done [11:47:58]OFDSenderStorePacket 165250 [11:47:58]StoreOFDPacket docnum=165250 [11:47:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C4 1C 07 01 D6 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 6D 0C 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 82 85 02 00 35 04 06 00 59 A2 DF 4F B1 55 98 3A D4 63 8A D8 3E 0B [11:47:58]CheckFolder [11:47:58]dirname=/storage/ofd_packets [11:47:58]CheckFolder done [11:47:58]ProducePacketName [11:47:58]name=ofd_packets/00165250 [11:47:58]NVStorageSaveData ofd_packets/00165250 [11:47:58]File name is /storage/ofd_packets/00165250 [11:47:58]Write 301 bytes [11:47:58]NVStorageSaveData done [11:47:58]OFDSenderStorePacket done [11:47:58]KKMCreateOFDPacket done [11:47:58]NVStorageSaveData kkm_last_timestamp [11:47:58]File name is /storage/kkm_last_timestamp [11:47:58]Write 4 bytes [11:47:58]NVStorageSaveData done [11:47:58]ExternCall_PrintAddStr [11:47:58]wPrintStart [11:47:58]Write to MH i2c: 01 00 00 6D 07 74 [11:47:58]Write i2c OK [11:47:58]MH_I2C_Read... [11:47:58]Read from MH i2c: 01 [11:47:58]MH_I2C_Read... [11:47:58]Read from MH i2c: 01 07 00 [11:47:58]MH_I2C_Read... [11:47:58]Read from MH i2c: 01 07 00 6D 07 00 00 00 00 00 FF 0F 89 [11:47:58]RasterBufferAndPrint [11:47:58]line Счет N : (1)459357 [11:47:58]line ИНН: 02508201610067 [11:47:58]line Контрольно-Кассовый Чек [11:47:58]line ПРОДАЖА [11:47:58]line ТРК (МРК, ГНК) : 22 [11:47:58]line Товар: 2710124130 [11:47:58]line Аи-92-К-5 [11:47:58]line 7.600 * 65.80 [11:47:58]line = 500.08 [11:47:58]line НДС 12% НСП 1% [11:47:58]line > о реализуемом товаре [11:47:58]line ОКРУГЛЕНИЕ: -0.08 [11:47:58]line ИТОГО: 500.00 [11:47:58]line Внесено: 500.00 [11:47:58]line СДАЧА: 0.00 [11:47:58]line НСП 1% : 4.42 [11:47:58]line НДС 12% : 53.11 [11:47:58]line Наличными: 500.00 [11:47:58]line Безнал.: 0.00 [11:47:58]line Место: АЗС № 72 "Партнер Нефть" [11:47:58]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:47:58]line СНО: Общий режим [11:47:58]line Чек 123 15.07.2024 11:47 [11:47:58]line Смена: 448 ФФД: 1.0 [11:47:58]line ЗНМ: 0300000160 [11:47:58]line РНМ: 0000000000090829 [11:47:58]line Версия ККМ: 001 [11:47:58]line ФМ: 0000000000874718 [11:47:58]line ФД: 165250 [11:47:58]line ФПД: 98556066115925 [11:47:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T114757&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165250&fm=98556066115925&tin=02508201610067®Number=0000000000090829&sum=50000 [11:47:58]written 0, free lines is 4095 [11:47:58]OFD Sender: Processing packet 165250 [packets to send 106, broken 105] [11:47:58]ProducePacketName [11:47:58]name=ofd_packets/00165250 [11:47:58]OFD Sender: To server: pG, [11:47:58]CommunicateWithHost lk.salyk.kg:30040 [11:47:58]ConnectInit lk.salyk.kg [11:47:58]Connected sock=10 [11:47: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 37 31 38 0F 01 00 00 C4 1C 07 01 D6 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 6D 0C 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 82 85 02 00 35 04 06 00 59 A2 DF 4F B1 55 98 3A D4 63 8A D8 3E 0B [11:47:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 F2 C2 47 00 B5 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 82 85 02 00 F4 03 04 00 F8 B2 94 66 B6 04 01 00 00 CD F2 5F 92 91 F1 49 42 [11:47:59]CommunicateWithHost err = 0 [11:47:59]CheckOFDResponse [11:47:59]1017 (14) - 77093643461234 [11:47:59]1041 (16) - 0000000000874718 [11:47:59]1040 (4) - 165250 [11:47:59]1012 (4) - 15.07.2024 05:26 [11:47:59]1206 (1) - 0 [11:47:59]OFD Sender: Remove packet 165250 [11:47:59]ProducePacketName [11:47:59]name=ofd_packets/00165250 [11:47:59]NVStorageDeleteData [11:47:59]Write to MH i2c: 01 00 00 97 07 9E [11:47:59]Write i2c OK [11:47:59]MH_I2C_Read... [11:47:59]Read from MH i2c: 01 [11:47:59]MH_I2C_Read... [11:47:59]Read from MH i2c: 01 07 00 [11:47:59]MH_I2C_Read... [11:47:59]Read from MH i2c: 01 07 00 97 07 00 00 00 00 00 F4 0C A5 [11:47:59]RasterBufferAndPrint [11:47:59]line [11:47:59]line [11:47:59]line [11:47:59]line [11:47:59]line [11:47:59]written 0, free lines is 3323 [11:47:59]MH_Cut [11:47:59]Write to MH i2c: D1 01 00 9E 07 01 77 [11:47:59]Write i2c OK [11:47:59]MH_I2C_Read... [11:47:59]Read from MH i2c: D1 [11:47:59]MH_I2C_Read... [11:47:59]Read from MH i2c: D1 01 00 [11:47:59]MH_I2C_Read... [11:47:59]Read from MH i2c: D1 01 00 9E 07 00 76 [11:47:59]Write to MH i2c: 01 00 00 9F 07 A6 [11:47:59]Write i2c OK [11:47:59]MH_I2C_Read... [11:47:59]OFD Sender: No OFD packet to send [11:48:00]*** Cut start [11:48:00]*** Partial cut [11:48:00]*** CUTSNS_PIN = 1 [11:48:00]*** CUTSNS_PIN = 0 [11:48:00]*** Brake cut motor [11:48:00]Read from MH i2c: 01 [11:48:00]MH_I2C_Read... [11:48:00]*** Stop cut motor [11:48:00]*** Cut end [11:48:00]Read from MH i2c: 01 07 00 [11:48:00]MH_I2C_Read... [11:48:00]Read from MH i2c: 01 07 00 9F 07 00 00 00 00 00 FF 0F BB [11:48:00]process_action close_receipt done [11:48:00]requested_data is exist [11:48:00]produce_requested_data [11:48:00]requested_item fm.sn is exist - process it [11:48:00]wFMCommunicate request_size=4 [11:48:00]MH_SAM_APDU [11:48:00]CAPDU: 80 11 00 00 [11:48:00]Write to MH i2c: E2 08 00 A0 07 80 11 00 00 00 00 00 00 21 [11:48:00]Write i2c OK [11:48:00]MH_I2C_Read... [11:48:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:00]Read from MH i2c: E2 [11:48:00]MH_I2C_Read... [11:48:00]Read from MH i2c: E2 17 00 [11:48:00]MH_I2C_Read... [11:48:00]Read from MH i2c: E2 17 00 A0 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 77 [11:48:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:48:00]wFMCommunicate OK [11:48:00]requested_item fd.num is exist - process it [11:48:00]SAM_PROTO_GetFieldsCounters [11:48:00]wFMCommunicate request_size=4 [11:48:00]MH_SAM_APDU [11:48:00]CAPDU: 80 13 00 00 [11:48:00]Write to MH i2c: E2 08 00 A1 07 80 13 00 00 00 00 00 00 24 [11:48:00]Write i2c OK [11:48:00]MH_I2C_Read... [11:48:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:48:00]Read from MH i2c: E2 [11:48:00]MH_I2C_Read... [11:48:00]Read from MH i2c: E2 62 00 [11:48:00]MH_I2C_Read... [11:48:00]Read from MH i2c: E2 62 00 A1 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 82 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [11:48: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 82 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:48:00]wFMCommunicate OK [11:48:00]SAM_PROTO_GetFieldsCounters done [11:48:00]requested_item shift.num is exist - process it [11:48:00]requested_item shift.opened is exist - process it [11:48:00]req_shift_opened [11:48:00]FM_GetShiftState [11:48:00]SAM_PROTO_GetShiftState [11:48:00]wFMCommunicate request_size=4 [11:48:00]MH_SAM_APDU [11:48:00]CAPDU: 80 13 01 00 [11:48:00]Write to MH i2c: E2 08 00 A2 07 80 13 01 00 00 00 00 00 26 [11:48:00]Write i2c OK [11:48:00]MH_I2C_Read... [11:48:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:00]Read from MH i2c: E2 [11:48:00]MH_I2C_Read... [11:48:00]Read from MH i2c: E2 0E 00 [11:48:00]MH_I2C_Read... [11:48:00]Read from MH i2c: E2 0E 00 A2 07 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 FF [11:48:00]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [11:48:00]wFMCommunicate OK [11:48:00]SAM_PROTO_GetShiftState done [11:48:00]FM_GetShiftState done [11:48:00]req_shift_opened done [11:48:00]requested_item shift.open_date is exist - process it [11:48:00]req_shift_open_date [11:48:00]req_shift_open_date done [11:48:00]produce_requested_data done [11:48:00]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165250,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [11:48:00]process_action_free close_receipt [11:48:00]json_value_free [11:48:00]json_value_free done [11:48:00]process_json_proto returns [11:48:00]Send response to host [11:48:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165250,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [11:48:00]free response buf [11:48:00]execute_script done [11:48:00]execute_script returns [11:48:00]free content buf [11:48:00]Sock 8.Close socket [11:48:00]Sock 8.Thread stoped [11:48:04]OFD Sender: No OFD packet to send [11:48:09]OFD Sender: No OFD packet to send [11:48:14]OFD Sender: No OFD packet to send [11:48:17]accept exits with 9 [11:48:17]New connection [11:48:17]New thread 3066711396 created [11:48:17]Thread 3066854756 joined [11:48:17]Waiting for new connection... [11:48:17] Sock 9.Parse request [11:48:17]Sock 9.Check first char [11:48:17]Sock 9.First char is OK [11:48:17]request: POST /json_proto HTTP/1.0 [11:48:17]Method: POST [11:48:17]URL: /json_proto [11:48:17]Method is POST - this is cgi request [11:48:17]url: /json_proto [11:48:17]query_string will be loaded in cgi processing [11:48:17]execute_cgi json_proto POST (null) [11:48:17]execute_cgi path=json_proto method=POST [11:48:17]POST find Content-Length [11:48:17]Host: 172.17.56.4:8080 [11:48:17]Content-Length: 1178 [11:48:17]Content-Type: application/json [11:48:17] [11:48:17]POST finish read [11:48:17]Found Content-Length = 1178 [11:48:17]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 72\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0434\u044B\u043A\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)459358\u000A15.07.2024 11:13\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 65.80\u000A\u0418\u0422\u041E\u0413: 658.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\u000A4105630\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:17]execute_script... [11:48:17]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 72\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0434\u044B\u043A\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)459358\u000A15.07.2024 11:13\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 65.80\u000A\u0418\u0422\u041E\u0413: 658.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\u000A4105630\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:17]POST & json_proto [11:48:17]process_json_proto [11:48:17]json parsed OK: [11:48:17]protocol is kg_v1.0 [11:48:17]action value=print_text [11:48:17]process_action print_text [11:48:17]cmd_print_text [11:48:17]ExternCall_PrintAddStr [11:48:17]wPrintStart [11:48:17]Write to MH i2c: 01 00 00 A3 07 AA [11:48:17]Write i2c OK [11:48:17]MH_I2C_Read... [11:48:17]Read from MH i2c: 01 [11:48:17]MH_I2C_Read... [11:48:17]Read from MH i2c: 01 07 00 [11:48:17]MH_I2C_Read... [11:48:17]Read from MH i2c: 01 07 00 A3 07 00 00 00 00 00 FF 0F BF [11:48:17]RasterBufferAndPrint [11:48:17]line *****ТОВАРНЫЙ ЧЕК***** [11:48:17]line АЗС 72 [11:48:17]line Партнер нефть [11:48:17]line 02508201610067 [11:48:17]line Кассир : Садыков Н. [11:48:17]line Счет N : (1)459358 [11:48:17]line 15.07.2024 11:13 [11:48:17]line ПРОДАЖА [11:48:17]line ТРК (МРК, ГНК): 12 [11:48:17]line Вид ГСМ : 2710124130 [11:48:17]line Аи-92-К-5 [11:48:17]line 10.000 x 65.80 [11:48:17]line ИТОГ: 658.00 [11:48:17]line Тип оплаты: Талоны: Партнер нефть [11:48:17]line 4105630 [11:48:17]line ______________________ [11:48:17]line (подпись) [11:48:17]written 0, free lines is 4095 [11:48:17]Write to MH i2c: 01 00 00 B7 07 BE [11:48:17]Write i2c OK [11:48:17]MH_I2C_Read... [11:48:17]Read from MH i2c: 01 [11:48:17]MH_I2C_Read... [11:48:17]Read from MH i2c: 01 07 00 [11:48:17]MH_I2C_Read... [11:48:17]Read from MH i2c: 01 07 00 B7 07 00 00 00 00 00 0F 0E E2 [11:48:17]RasterBufferAndPrint [11:48:17]line [11:48:17]line [11:48:17]line [11:48:17]line [11:48:17]line [11:48:17]written 0, free lines is 3600 [11:48:17]MH_Cut [11:48:17]Write to MH i2c: D1 01 00 BE 07 01 97 [11:48:17]Write i2c OK [11:48:17]MH_I2C_Read... [11:48:17]Read from MH i2c: D1 [11:48:17]MH_I2C_Read... [11:48:17]Read from MH i2c: D1 01 00 [11:48:17]MH_I2C_Read... [11:48:17]Read from MH i2c: D1 01 00 BE 07 00 96 [11:48:17]Write to MH i2c: 01 00 00 BF 07 C6 [11:48:17]Write i2c OK [11:48:17]MH_I2C_Read... [11:48:17]*** Cut start [11:48:17]*** Partial cut [11:48:17]*** CUTSNS_PIN = 1 [11:48:17]*** CUTSNS_PIN = 0 [11:48:17]*** Brake cut motor [11:48:18]Read from MH i2c: 01 [11:48:18]MH_I2C_Read... [11:48:18]*** Stop cut motor [11:48:18]*** Cut end [11:48:18]Read from MH i2c: 01 07 00 [11:48:18]MH_I2C_Read... [11:48:18]Read from MH i2c: 01 07 00 BF 07 00 00 00 00 00 FF 0F DB [11:48:18]process_action print_text done [11:48:18]requested_data is exist [11:48:18]produce_requested_data [11:48:18]requested_item fm.sn is exist - process it [11:48:18]wFMCommunicate request_size=4 [11:48:18]MH_SAM_APDU [11:48:18]CAPDU: 80 11 00 00 [11:48:18]Write to MH i2c: E2 08 00 C0 07 80 11 00 00 00 00 00 00 41 [11:48:18]Write i2c OK [11:48:18]MH_I2C_Read... [11:48:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:18]Read from MH i2c: E2 [11:48:18]MH_I2C_Read... [11:48:18]Read from MH i2c: E2 17 00 [11:48:18]MH_I2C_Read... [11:48:18]Read from MH i2c: E2 17 00 C0 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 97 [11:48:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:48:18]wFMCommunicate OK [11:48:18]requested_item fd.num is exist - process it [11:48:18]SAM_PROTO_GetFieldsCounters [11:48:18]wFMCommunicate request_size=4 [11:48:18]MH_SAM_APDU [11:48:18]CAPDU: 80 13 00 00 [11:48:18]Write to MH i2c: E2 08 00 C1 07 80 13 00 00 00 00 00 00 44 [11:48:18]Write i2c OK [11:48:18]MH_I2C_Read... [11:48:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:48:18]Read from MH i2c: E2 [11:48:18]MH_I2C_Read... [11:48:18]Read from MH i2c: E2 62 00 [11:48:18]MH_I2C_Read... [11:48:18]Read from MH i2c: E2 62 00 C1 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 82 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [11:48: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 82 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:48:18]wFMCommunicate OK [11:48:18]SAM_PROTO_GetFieldsCounters done [11:48:18]requested_item shift.num is exist - process it [11:48:18]requested_item shift.opened is exist - process it [11:48:18]req_shift_opened [11:48:18]FM_GetShiftState [11:48:18]SAM_PROTO_GetShiftState [11:48:18]wFMCommunicate request_size=4 [11:48:18]MH_SAM_APDU [11:48:18]CAPDU: 80 13 01 00 [11:48:18]Write to MH i2c: E2 08 00 C2 07 80 13 01 00 00 00 00 00 46 [11:48:18]Write i2c OK [11:48:18]MH_I2C_Read... [11:48:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:18]Read from MH i2c: E2 [11:48:18]MH_I2C_Read... [11:48:18]Read from MH i2c: E2 0E 00 [11:48:18]MH_I2C_Read... [11:48:18]Read from MH i2c: E2 0E 00 C2 07 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 1F [11:48:18]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [11:48:18]wFMCommunicate OK [11:48:18]SAM_PROTO_GetShiftState done [11:48:18]FM_GetShiftState done [11:48:18]req_shift_opened done [11:48:18]requested_item shift.open_date is exist - process it [11:48:18]req_shift_open_date [11:48:18]req_shift_open_date done [11:48:18]produce_requested_data done [11:48:18]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165250,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [11:48:18]process_action_free print_text [11:48:18]json_value_free [11:48:18]json_value_free done [11:48:18]process_json_proto returns [11:48:18]Send response to host [11:48:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165250,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [11:48:18]free response buf [11:48:18]execute_script done [11:48:18]execute_script returns [11:48:18]free content buf [11:48:18]Sock 9.Close socket [11:48:18]Sock 9.Thread stoped [11:48:19]OFD Sender: No OFD packet to send [11:48:24]OFD Sender: No OFD packet to send [11:48:29]OFD Sender: No OFD packet to send [11:48:34]OFD Sender: No OFD packet to send [11:48:39]OFD Sender: No OFD packet to send [11:48:44]OFD Sender: No OFD packet to send [11:48:49]OFD Sender: No OFD packet to send [11:48:54]OFD Sender: No OFD packet to send [11:48:59]OFD Sender: No OFD packet to send [11:49:04]OFD Sender: No OFD packet to send [11:49:09]OFD Sender: No OFD packet to send [11:49:14]OFD Sender: No OFD packet to send [11:49:19]OFD Sender: No OFD packet to send [11:49:24]OFD Sender: No OFD packet to send [11:49:29]OFD Sender: No OFD packet to send [11:49:34]OFD Sender: No OFD packet to send [11:49:39]OFD Sender: No OFD packet to send [11:49:44]OFD Sender: No OFD packet to send [11:49:49]OFD Sender: No OFD packet to send [11:49:54]OFD Sender: No OFD packet to send [11:49:59]OFD Sender: No OFD packet to send [11:50:04]OFD Sender: No OFD packet to send [11:50:09]OFD Sender: No OFD packet to send [11:50:14]OFD Sender: No OFD packet to send [11:50:19]OFD Sender: No OFD packet to send [11:50:24]OFD Sender: No OFD packet to send [11:50:29]OFD Sender: No OFD packet to send [11:50:34]OFD Sender: No OFD packet to send [11:50:39]OFD Sender: No OFD packet to send [11:50:44]OFD Sender: No OFD packet to send [11:50:49]OFD Sender: No OFD packet to send [11:50:54]OFD Sender: No OFD packet to send [11:50:59]OFD Sender: No OFD packet to send [11:51:04]OFD Sender: No OFD packet to send [11:51:09]OFD Sender: No OFD packet to send [11:51:14]OFD Sender: No OFD packet to send [11:51:19]OFD Sender: No OFD packet to send [11:51:24]OFD Sender: No OFD packet to send [11:51:29]OFD Sender: No OFD packet to send [11:51:34]OFD Sender: No OFD packet to send [11:51:39]OFD Sender: No OFD packet to send [11:51:44]accept exits with 8 [11:51:44]New connection [11:51:44]New thread 3066854756 created [11:51:44]Thread 3066711396 joined [11:51:44]Waiting for new connection... [11:51:44] Sock 8.Parse request [11:51:44]Sock 8.Check first char [11:51:44]Sock 8.First char is OK [11:51:44]request: POST /json_proto HTTP/1.0 [11:51:44]Method: POST [11:51:44]URL: /json_proto [11:51:44]Method is POST - this is cgi request [11:51:44]url: /json_proto [11:51:44]query_string will be loaded in cgi processing [11:51:44]execute_cgi json_proto POST (null) [11:51:44]execute_cgi path=json_proto method=POST [11:51:44]POST find Content-Length [11:51:44]Host: 172.17.56.4:8080 [11:51:44]Content-Length: 791 [11:51:44]Content-Type: application/json [11:51:44] [11:51:44]POST finish read [11:51:44]Found Content-Length = 791 [11:51:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459359", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 10.000, "sum" : 652.20, "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 652.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:44]execute_script... [11:51:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459359", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 10.000, "sum" : 652.20, "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 652.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:44]POST & json_proto [11:51:44]process_json_proto [11:51:44]json parsed OK: [11:51:44]protocol is kg_v1.0 [11:51:44]action value=close_receipt [11:51:44]process_action close_receipt [11:51:44]cmd_close_receipt [11:51:44]MH_GetDate [11:51:44]Write to MH i2c: F0 00 00 C3 07 B9 [11:51:44]Write i2c OK [11:51:44]MH_I2C_Read... [11:51:44]Read from MH i2c: F0 [11:51:44]MH_I2C_Read... [11:51:44]Read from MH i2c: F0 09 00 [11:51:44]MH_I2C_Read... [11:51:44]Read from MH i2c: F0 09 00 C3 07 00 51 0D 95 66 C9 DC B2 64 D6 [11:51:44]GetLastDocTimeStamp 1721044077 [11:51:44]current date 1721044305 [11:51:44]FM_GetShiftState [11:51:44]SAM_PROTO_GetShiftState [11:51:44]wFMCommunicate request_size=4 [11:51:44]MH_SAM_APDU [11:51:44]CAPDU: 80 13 01 00 [11:51:44]Write to MH i2c: E2 08 00 C4 07 80 13 01 00 00 00 00 00 48 [11:51:44]Write i2c OK [11:51:44]MH_I2C_Read... [11:51:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:44]Read from MH i2c: E2 [11:51:44]MH_I2C_Read... [11:51:44]Read from MH i2c: E2 0E 00 [11:51:44]MH_I2C_Read... [11:51:44]Read from MH i2c: E2 0E 00 C4 07 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 21 [11:51:44]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [11:51:44]wFMCommunicate OK [11:51:44]SAM_PROTO_GetShiftState done [11:51:44]FM_GetShiftState done [11:51:44]opened in 1721003876 [11:51:44]opened+sec_in_day 1721090276 [11:51:44]quantity*price = 65220 [11:51:44]sum+1 = 65221 [11:51:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 652.20 НСП 1% : 5.77 НДС 12% : 69.26 Наличными: 0.00 Безнал.: 652.20 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 124 15.07.2024 11:51 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 165251 ФПД: 274181603419558 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T115145&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165251&fm=274181603419558&tin=02508201610067®Number=0000000000090829&sum=65220 [11:51:45]StoreToDocumentArchive [11:51:45]shift 448 fd 165251 [11:51:45]save to /storage/0448/doc_00165251 [11:51:45]save last doc name /storage/0448/doc_00165251 to /storage/kkm_last_doc_name [11:51:45]save OK [11:51:45]Clear old archive folders... [11:51:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:51:45]tlvbuf is 0181AAB0 [11:51:45]SAM_PROTO_ClearQueue [11:51:45]wFMCommunicate request_size=4 [11:51:45]MH_SAM_APDU [11:51:45]CAPDU: 80 09 00 00 [11:51:45]Write to MH i2c: E2 08 00 D1 07 80 09 00 00 00 00 00 00 4A [11:51:45]Write i2c OK [11:51:45]MH_I2C_Read... [11:51:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:51:45]Read from MH i2c: E2 [11:51:45]MH_I2C_Read... [11:51:45]Read from MH i2c: E2 03 00 [11:51:45]MH_I2C_Read... [11:51:45]Read from MH i2c: E2 03 00 D1 07 00 90 00 4C [11:51:45]RAPDU: 90 00 [11:51:45]wFMCommunicate OK [11:51:45]SAM_PROTO_ClearQueue done [11:51:45]KKMCreateOFDPacket [11:51:45]OFDProtocolAddRootSTLVToBuf [11:51:45]FM_MakeSignedData [11:51:45]FM_MakeSignedData [11:51:45]SAM_PROTO_SignData [11:51:45]wFMCommunicate request_size=4 [11:51:45]MH_SAM_APDU [11:51:45]CAPDU: 80 0D 01 02 [11:51:45]Write to MH i2c: E2 08 00 D2 07 80 0D 01 02 00 00 00 00 52 [11:51:45]Write i2c OK [11:51:45]MH_I2C_Read... [11:51:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:51:45]Read from MH i2c: E2 [11:51:45]MH_I2C_Read... [11:51:45]Read from MH i2c: E2 03 00 [11:51:45]MH_I2C_Read... [11:51:45]Read from MH i2c: E2 03 00 D2 07 00 90 00 4D [11:51:45]RAPDU: 90 00 [11:51:45]wFMCommunicate OK [11:51:45]wFMCommunicate request_size=255 [11:51:45]MH_SAM_APDU [11:51:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 51 0D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 83 85 02 00 35 04 06 00 F9 [11:51:45]Write to MH i2c: E2 02 01 D3 07 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 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 51 0D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 83 85 02 00 35 04 06 00 F9 00 00 77 [11:51:45]Write i2c OK [11:51:45]MH_I2C_Read... [11:51:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:45]Read from MH i2c: E2 [11:51:45]MH_I2C_Read... [11:51:45]Read from MH i2c: E2 03 00 [11:51:45]MH_I2C_Read... [11:51:45]Read from MH i2c: E2 03 00 D3 07 00 90 00 4E [11:51:45]RAPDU: 90 00 [11:51:45]wFMCommunicate OK [11:51:45]wFMCommunicate request_size=10 [11:51:45]MH_SAM_APDU [11:51:45]CAPDU: 80 0D 02 02 05 5D E1 13 65 A6 [11:51:45]Write to MH i2c: E2 0D 00 D4 07 80 0D 02 02 05 00 5D E1 13 65 A6 00 00 BB [11:51:45]Write i2c OK [11:51:45]MH_I2C_Read... [11:51:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:45]Read from MH i2c: E2 [11:51:45]MH_I2C_Read... [11:51:45]Read from MH i2c: E2 03 00 [11:51:45]MH_I2C_Read... [11:51:45]Read from MH i2c: E2 03 00 D4 07 00 90 00 4F [11:51:45]RAPDU: 90 00 [11:51:45]wFMCommunicate OK [11:51:45]wFMCommunicate request_size=4 [11:51:45]MH_SAM_APDU [11:51:45]CAPDU: 80 0D 03 02 [11:51:45]Write to MH i2c: E2 08 00 D5 07 80 0D 03 02 00 00 00 00 57 [11:51:45]Write i2c OK [11:51:45]MH_I2C_Read... [11:51:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:51:45]Read from MH i2c: E2 [11:51:45]MH_I2C_Read... [11:51:45]Read from MH i2c: E2 0B 00 [11:51:45]MH_I2C_Read... [11:51:45]Read from MH i2c: E2 0B 00 D5 07 00 2F 94 5A DC B8 E5 E0 5C 90 00 2A [11:51:45]RAPDU: 2F 94 5A DC B8 E5 E0 5C 90 00 [11:51:45]wFMCommunicate OK [11:51:45]SAM_PROTO_SignData done [11:51:45]FM_MakeSignedData done [11:51:45]CreateOFDProtocolMessage [11:51:45]wFMCommunicate request_size=4 [11:51:45]MH_SAM_APDU [11:51:45]CAPDU: 80 11 00 00 [11:51:45]Write to MH i2c: E2 08 00 D6 07 80 11 00 00 00 00 00 00 57 [11:51:45]Write i2c OK [11:51:45]MH_I2C_Read... [11:51:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:45]Read from MH i2c: E2 [11:51:45]MH_I2C_Read... [11:51:45]Read from MH i2c: E2 17 00 [11:51:45]MH_I2C_Read... [11:51:45]Read from MH i2c: E2 17 00 D6 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AD [11:51:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:51:45]wFMCommunicate OK [11:51:45]CreateOFDProtocolMessage done [11:51:45]OFDSenderStorePacket 165251 [11:51:45]StoreOFDPacket docnum=165251 [11:51:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C6 84 07 01 69 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 51 0D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 83 85 02 00 35 04 06 00 F9 5D E1 13 65 A6 2F 94 5A DC B8 E5 E0 5C [11:51:45]CheckFolder [11:51:45]dirname=/storage/ofd_packets [11:51:45]CheckFolder done [11:51:45]ProducePacketName [11:51:45]name=ofd_packets/00165251 [11:51:45]NVStorageSaveData ofd_packets/00165251 [11:51:45]File name is /storage/ofd_packets/00165251 [11:51:45]Write 301 bytes [11:51:45]NVStorageSaveData done [11:51:45]OFDSenderStorePacket done [11:51:45]KKMCreateOFDPacket done [11:51:45]NVStorageSaveData kkm_last_timestamp [11:51:45]File name is /storage/kkm_last_timestamp [11:51:45]Write 4 bytes [11:51:45]NVStorageSaveData done [11:51:45]ExternCall_PrintAddStr [11:51:45]wPrintStart [11:51:45]Write to MH i2c: 01 00 00 D7 07 DE [11:51:45]Write i2c OK [11:51:45]MH_I2C_Read... [11:51:45]Read from MH i2c: 01 [11:51:45]MH_I2C_Read... [11:51:45]Read from MH i2c: 01 07 00 [11:51:45]MH_I2C_Read... [11:51:45]Read from MH i2c: 01 07 00 D7 07 00 00 00 00 00 FF 0F F3 [11:51:45]RasterBufferAndPrint [11:51:45]line Счет N : (1)459359 [11:51:45]line ИНН: 02508201610067 [11:51:45]line Контрольно-Кассовый Чек [11:51:45]line ПРОДАЖА [11:51:45]line ТРК (МРК, ГНК) : 12 [11:51:45]line Товар: 2710124130 [11:51:45]line Аи-92-К-5 [11:51:45]line 10.000 * 65.22 [11:51:45]line = 652.20 [11:51:45]line НДС 12% НСП 1% [11:51:45]line > о реализуемом товаре [11:51:45]line ИТОГО: 652.20 [11:51:45]line НСП 1% : 5.77 [11:51:45]line НДС 12% : 69.26 [11:51:45]line Наличными: 0.00 [11:51:45]line Безнал.: 652.20 [11:51:45]line Место: АЗС № 72 "Партнер Нефть" [11:51:45]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:51:45]line СНО: Общий режим [11:51:45]line Чек 124 15.07.2024 11:51 [11:51:45]line Смена: 448 ФФД: 1.0 [11:51:45]line ЗНМ: 0300000160 [11:51:45]line РНМ: 0000000000090829 [11:51:45]line Версия ККМ: 001 [11:51:45]line Платежная система: KICB Банк [11:51:45]line ФМ: 0000000000874718 [11:51:45]line ФД: 165251 [11:51:45]line ФПД: 274181603419558 [11:51:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T115145&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165251&fm=274181603419558&tin=02508201610067®Number=0000000000090829&sum=65220 [11:51:46]OFD Sender: Processing packet 165251 [packets to send 106, broken 105] [11:51:46]ProducePacketName [11:51:46]name=ofd_packets/00165251 [11:51:46]OFD Sender: To server: pG, [11:51:46]CommunicateWithHost lk.salyk.kg:30040 [11:51:46]ConnectInit lk.salyk.kg [11:51:46]written 0, free lines is 4095 [11:51:46]Connected sock=10 [11:51:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C6 84 07 01 69 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 51 0D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 83 85 02 00 35 04 06 00 F9 5D E1 13 65 A6 2F 94 5A DC B8 E5 E0 5C [11:51:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 15 10 47 00 1A A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 83 85 02 00 F4 03 04 00 DB B3 94 66 B6 04 01 00 00 B5 B7 9D 53 A2 2F 07 B1 [11:51:46]CommunicateWithHost err = 0 [11:51:46]CheckOFDResponse [11:51:46]1017 (14) - 77093643461234 [11:51:46]1041 (16) - 0000000000874718 [11:51:46]1040 (4) - 165251 [11:51:46]1012 (4) - 15.07.2024 05:30 [11:51:46]1206 (1) - 0 [11:51:46]OFD Sender: Remove packet 165251 [11:51:46]ProducePacketName [11:51:46]name=ofd_packets/00165251 [11:51:46]NVStorageDeleteData [11:51:46]Write to MH i2c: 01 00 00 00 08 08 [11:51:46]Write i2c OK [11:51:46]MH_I2C_Read... [11:51:46]Read from MH i2c: 01 [11:51:46]MH_I2C_Read... [11:51:46]Read from MH i2c: 01 07 00 [11:51:46]MH_I2C_Read... [11:51:46]Read from MH i2c: 01 07 00 00 08 00 00 00 00 00 FB 0C 16 [11:51:46]RasterBufferAndPrint [11:51:46]line [11:51:46]line [11:51:46]line [11:51:46]line [11:51:46]line [11:51:46]written 0, free lines is 3329 [11:51:46]MH_Cut [11:51:46]Write to MH i2c: D1 01 00 07 08 01 E1 [11:51:46]Write i2c OK [11:51:46]MH_I2C_Read... [11:51:46]Read from MH i2c: D1 [11:51:46]MH_I2C_Read... [11:51:46]Read from MH i2c: D1 01 00 [11:51:46]MH_I2C_Read... [11:51:46]Read from MH i2c: D1 01 00 07 08 00 E0 [11:51:46]Write to MH i2c: 01 00 00 08 08 10 [11:51:46]Write i2c OK [11:51:46]MH_I2C_Read... [11:51:47]OFD Sender: No OFD packet to send [11:51:47]*** Cut start [11:51:47]*** Partial cut [11:51:47]*** CUTSNS_PIN = 1 [11:51:47]*** CUTSNS_PIN = 0 [11:51:47]*** Brake cut motor [11:51:47]Read from MH i2c: 01 [11:51:47]MH_I2C_Read... [11:51:47]*** Stop cut motor [11:51:47]*** Cut end [11:51:47]Read from MH i2c: 01 07 00 [11:51:47]MH_I2C_Read... [11:51:47]Read from MH i2c: 01 07 00 08 08 00 00 00 00 00 FF 0F 25 [11:51:47]process_action close_receipt done [11:51:47]requested_data is exist [11:51:47]produce_requested_data [11:51:47]requested_item fm.sn is exist - process it [11:51:47]wFMCommunicate request_size=4 [11:51:47]MH_SAM_APDU [11:51:47]CAPDU: 80 11 00 00 [11:51:47]Write to MH i2c: E2 08 00 09 08 80 11 00 00 00 00 00 00 8B [11:51:48]Write i2c OK [11:51:48]MH_I2C_Read... [11:51:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:48]Read from MH i2c: E2 [11:51:48]MH_I2C_Read... [11:51:48]Read from MH i2c: E2 17 00 [11:51:48]MH_I2C_Read... [11:51:48]Read from MH i2c: E2 17 00 09 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E1 [11:51:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:51:48]wFMCommunicate OK [11:51:48]requested_item fd.num is exist - process it [11:51:48]SAM_PROTO_GetFieldsCounters [11:51:48]wFMCommunicate request_size=4 [11:51:48]MH_SAM_APDU [11:51:48]CAPDU: 80 13 00 00 [11:51:48]Write to MH i2c: E2 08 00 0A 08 80 13 00 00 00 00 00 00 8E [11:51:48]Write i2c OK [11:51:48]MH_I2C_Read... [11:51:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:51:48]Read from MH i2c: E2 [11:51:48]MH_I2C_Read... [11:51:48]Read from MH i2c: E2 62 00 [11:51:48]MH_I2C_Read... [11:51:48]Read from MH i2c: E2 62 00 0A 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 83 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [11:51:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 83 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:51:48]wFMCommunicate OK [11:51:48]SAM_PROTO_GetFieldsCounters done [11:51:48]requested_item shift.num is exist - process it [11:51:48]requested_item shift.opened is exist - process it [11:51:48]req_shift_opened [11:51:48]FM_GetShiftState [11:51:48]SAM_PROTO_GetShiftState [11:51:48]wFMCommunicate request_size=4 [11:51:48]MH_SAM_APDU [11:51:48]CAPDU: 80 13 01 00 [11:51:48]Write to MH i2c: E2 08 00 0B 08 80 13 01 00 00 00 00 00 90 [11:51:48]Write i2c OK [11:51:48]MH_I2C_Read... [11:51:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:48]Read from MH i2c: E2 [11:51:48]MH_I2C_Read... [11:51:48]Read from MH i2c: E2 0E 00 [11:51:48]MH_I2C_Read... [11:51:48]Read from MH i2c: E2 0E 00 0B 08 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 69 [11:51:48]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [11:51:48]wFMCommunicate OK [11:51:48]SAM_PROTO_GetShiftState done [11:51:48]FM_GetShiftState done [11:51:48]req_shift_opened done [11:51:48]requested_item shift.open_date is exist - process it [11:51:48]req_shift_open_date [11:51:48]req_shift_open_date done [11:51:48]produce_requested_data done [11:51:48]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165251,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [11:51:48]process_action_free close_receipt [11:51:48]json_value_free [11:51:48]json_value_free done [11:51:48]process_json_proto returns [11:51:48]Send response to host [11:51:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165251,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [11:51:48]free response buf [11:51:48]execute_script done [11:51:48]execute_script returns [11:51:48]free content buf [11:51:48]Sock 8.Close socket [11:51:48]Sock 8.Thread stoped [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:18]accept exits with 9 [11:54:18]New connection [11:54:18]New thread 3066711396 created [11:54:18]Thread 3066854756 joined [11:54:18]Waiting for new connection... [11:54:18] Sock 9.Parse request [11:54:18]Sock 9.Check first char [11:54:18]Sock 9.First char is OK [11:54:18]request: POST /json_proto HTTP/1.0 [11:54:18]Method: POST [11:54:18]URL: /json_proto [11:54:18]Method is POST - this is cgi request [11:54:18]url: /json_proto [11:54:18]query_string will be loaded in cgi processing [11:54:18]execute_cgi json_proto POST (null) [11:54:18]execute_cgi path=json_proto method=POST [11:54:18]POST find Content-Length [11:54:18]Host: 172.17.56.4:8080 [11:54:18]Content-Length: 677 [11:54:18]Content-Type: application/json [11:54:18] [11:54:18]POST finish read [11:54:18]Found Content-Length = 677 [11:54:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459360", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.650, "sum" : 240.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:18]execute_script... [11:54: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)459360", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.650, "sum" : 240.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:18]POST & json_proto [11:54:18]process_json_proto [11:54:18]json parsed OK: [11:54:18]protocol is kg_v1.0 [11:54:18]action value=close_receipt [11:54:18]process_action close_receipt [11:54:18]cmd_close_receipt [11:54:18]MH_GetDate [11:54:18]Write to MH i2c: F0 00 00 0C 08 03 [11:54:18]Write i2c OK [11:54:18]MH_I2C_Read... [11:54:18]Read from MH i2c: F0 [11:54:18]MH_I2C_Read... [11:54:18]Read from MH i2c: F0 09 00 [11:54:18]MH_I2C_Read... [11:54:18]Read from MH i2c: F0 09 00 0C 08 00 EB 0D 95 66 C9 DC B2 64 BA [11:54:18]GetLastDocTimeStamp 1721044305 [11:54:18]current date 1721044459 [11:54:18]FM_GetShiftState [11:54:18]SAM_PROTO_GetShiftState [11:54:18]wFMCommunicate request_size=4 [11:54:18]MH_SAM_APDU [11:54:18]CAPDU: 80 13 01 00 [11:54:18]Write to MH i2c: E2 08 00 0D 08 80 13 01 00 00 00 00 00 92 [11:54:18]Write i2c OK [11:54:18]MH_I2C_Read... [11:54:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:18]Read from MH i2c: E2 [11:54:18]MH_I2C_Read... [11:54:18]Read from MH i2c: E2 0E 00 [11:54:18]MH_I2C_Read... [11:54:18]Read from MH i2c: E2 0E 00 0D 08 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 6B [11:54:18]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [11:54:18]wFMCommunicate OK [11:54:18]SAM_PROTO_GetShiftState done [11:54:18]FM_GetShiftState done [11:54:18]opened in 1721003876 [11:54:18]opened+sec_in_day 1721090276 [11:54:18]quantity*price = 24017 [11:54:18]sum+1 = 24018 [11:54:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 240.00 Внесено: 240.00 СДАЧА: 0.00 НСП 1% : 2.12 НДС 12% : 25.50 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 125 15.07.2024 11:54 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165252 ФПД: 187144644863948 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T115419&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165252&fm=187144644863948&tin=02508201610067®Number=0000000000090829&sum=24000 [11:54:19]StoreToDocumentArchive [11:54:19]shift 448 fd 165252 [11:54:19]save to /storage/0448/doc_00165252 [11:54:19]save last doc name /storage/0448/doc_00165252 to /storage/kkm_last_doc_name [11:54:19]save OK [11:54:19]Clear old archive folders... [11:54:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:54:19]tlvbuf is 0181A390 [11:54:19]SAM_PROTO_ClearQueue [11:54:19]wFMCommunicate request_size=4 [11:54:19]MH_SAM_APDU [11:54:19]CAPDU: 80 09 00 00 [11:54:19]Write to MH i2c: E2 08 00 1A 08 80 09 00 00 00 00 00 00 94 [11:54:19]Write i2c OK [11:54:19]MH_I2C_Read... [11:54:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:54:19]Read from MH i2c: E2 [11:54:19]MH_I2C_Read... [11:54:19]Read from MH i2c: E2 03 00 [11:54:19]MH_I2C_Read... [11:54:19]Read from MH i2c: E2 03 00 1A 08 00 90 00 96 [11:54:19]RAPDU: 90 00 [11:54:19]wFMCommunicate OK [11:54:19]SAM_PROTO_ClearQueue done [11:54:19]KKMCreateOFDPacket [11:54:19]OFDProtocolAddRootSTLVToBuf [11:54:19]FM_MakeSignedData [11:54:19]FM_MakeSignedData [11:54:19]SAM_PROTO_SignData [11:54:19]wFMCommunicate request_size=4 [11:54:19]MH_SAM_APDU [11:54:19]CAPDU: 80 0D 01 02 [11:54:19]Write to MH i2c: E2 08 00 1B 08 80 0D 01 02 00 00 00 00 9C [11:54:19]Write i2c OK [11:54:19]MH_I2C_Read... [11:54:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:54:19]Read from MH i2c: E2 [11:54:19]MH_I2C_Read... [11:54:19]Read from MH i2c: E2 03 00 [11:54:19]MH_I2C_Read... [11:54:19]Read from MH i2c: E2 03 00 1B 08 00 90 00 97 [11:54:19]RAPDU: 90 00 [11:54:19]wFMCommunicate OK [11:54:19]wFMCommunicate request_size=255 [11:54:19]MH_SAM_APDU [11:54: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 42 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 EB 0D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 84 85 02 00 35 04 06 00 AA [11:54:19]Write to MH i2c: E2 02 01 1C 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 EB 0D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 84 85 02 00 35 04 06 00 AA 00 00 EA [11:54:19]Write i2c OK [11:54:19]MH_I2C_Read... [11:54:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:19]Read from MH i2c: E2 [11:54:19]MH_I2C_Read... [11:54:19]Read from MH i2c: E2 03 00 [11:54:19]MH_I2C_Read... [11:54:19]Read from MH i2c: E2 03 00 1C 08 00 90 00 98 [11:54:19]RAPDU: 90 00 [11:54:19]wFMCommunicate OK [11:54:19]wFMCommunicate request_size=10 [11:54:19]MH_SAM_APDU [11:54:19]CAPDU: 80 0D 02 02 05 35 02 14 27 CC [11:54:19]Write to MH i2c: E2 0D 00 1D 08 80 0D 02 02 05 00 35 02 14 27 CC 00 00 E7 [11:54:19]Write i2c OK [11:54:19]MH_I2C_Read... [11:54:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:19]Read from MH i2c: E2 [11:54:19]MH_I2C_Read... [11:54:19]Read from MH i2c: E2 03 00 [11:54:19]MH_I2C_Read... [11:54:19]Read from MH i2c: E2 03 00 1D 08 00 90 00 99 [11:54:19]RAPDU: 90 00 [11:54:19]wFMCommunicate OK [11:54:19]wFMCommunicate request_size=4 [11:54:19]MH_SAM_APDU [11:54:19]CAPDU: 80 0D 03 02 [11:54:19]Write to MH i2c: E2 08 00 1E 08 80 0D 03 02 00 00 00 00 A1 [11:54:19]Write i2c OK [11:54:19]MH_I2C_Read... [11:54:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:54:20]Read from MH i2c: E2 [11:54:20]MH_I2C_Read... [11:54:20]Read from MH i2c: E2 0B 00 [11:54:20]MH_I2C_Read... [11:54:20]Read from MH i2c: E2 0B 00 1E 08 00 D6 B3 C8 50 4A C8 90 4F 90 00 34 [11:54:20]RAPDU: D6 B3 C8 50 4A C8 90 4F 90 00 [11:54:20]wFMCommunicate OK [11:54:20]SAM_PROTO_SignData done [11:54:20]FM_MakeSignedData done [11:54:20]CreateOFDProtocolMessage [11:54:20]wFMCommunicate request_size=4 [11:54:20]MH_SAM_APDU [11:54:20]CAPDU: 80 11 00 00 [11:54:20]Write to MH i2c: E2 08 00 1F 08 80 11 00 00 00 00 00 00 A1 [11:54:20]Write i2c OK [11:54:20]MH_I2C_Read... [11:54:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:20]Read from MH i2c: E2 [11:54:20]MH_I2C_Read... [11:54:20]Read from MH i2c: E2 17 00 [11:54:20]MH_I2C_Read... [11:54:20]Read from MH i2c: E2 17 00 1F 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F7 [11:54:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:54:20]wFMCommunicate OK [11:54:20]CreateOFDProtocolMessage done [11:54:20]OFDSenderStorePacket 165252 [11:54:20]StoreOFDPacket docnum=165252 [11:54:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 87 E4 07 01 C6 BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 EB 0D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 84 85 02 00 35 04 06 00 AA 35 02 14 27 CC D6 B3 C8 50 4A C8 90 4F [11:54:20]CheckFolder [11:54:20]dirname=/storage/ofd_packets [11:54:20]CheckFolder done [11:54:20]ProducePacketName [11:54:20]name=ofd_packets/00165252 [11:54:20]NVStorageSaveData ofd_packets/00165252 [11:54:20]File name is /storage/ofd_packets/00165252 [11:54:20]Write 301 bytes [11:54:20]NVStorageSaveData done [11:54:20]OFDSenderStorePacket done [11:54:20]KKMCreateOFDPacket done [11:54:20]NVStorageSaveData kkm_last_timestamp [11:54:20]File name is /storage/kkm_last_timestamp [11:54:20]Write 4 bytes [11:54:20]NVStorageSaveData done [11:54:20]ExternCall_PrintAddStr [11:54:20]wPrintStart [11:54:20]Write to MH i2c: 01 00 00 20 08 28 [11:54:20]Write i2c OK [11:54:20]MH_I2C_Read... [11:54:20]Read from MH i2c: 01 [11:54:20]MH_I2C_Read... [11:54:20]Read from MH i2c: 01 07 00 [11:54:20]MH_I2C_Read... [11:54:20]Read from MH i2c: 01 07 00 20 08 00 00 00 00 00 FF 0F 3D [11:54:20]RasterBufferAndPrint [11:54:20]line Счет N : (1)459360 [11:54:20]line ИНН: 02508201610067 [11:54:20]line Контрольно-Кассовый Чек [11:54:20]line ПРОДАЖА [11:54:20]line ТРК (МРК, ГНК) : 12 [11:54:20]line Товар: 2710124130 [11:54:20]line Аи-92-К-5 [11:54:20]line 3.650 * 65.80 [11:54:20]line = 240.17 [11:54:20]line НДС 12% НСП 1% [11:54:20]line > о реализуемом товаре [11:54:20]line ОКРУГЛЕНИЕ: -0.17 [11:54:20]line ИТОГО: 240.00 [11:54:20]line Внесено: 240.00 [11:54:20]line СДАЧА: 0.00 [11:54:20]line НСП 1% : 2.12 [11:54:20]line НДС 12% : 25.50 [11:54:20]line Наличными: 240.00 [11:54:20]line Безнал.: 0.00 [11:54:20]line Место: АЗС № 72 "Партнер Нефть" [11:54:20]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:54:20]line СНО: Общий режим [11:54:20]line Чек 125 15.07.2024 11:54 [11:54:20]line Смена: 448 ФФД: 1.0 [11:54:20]line ЗНМ: 0300000160 [11:54:20]line РНМ: 0000000000090829 [11:54:20]line Версия ККМ: 001 [11:54:20]line ФМ: 0000000000874718 [11:54:20]line ФД: 165252 [11:54:20]line ФПД: 187144644863948 [11:54:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T115419&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165252&fm=187144644863948&tin=02508201610067®Number=0000000000090829&sum=24000 [11:54:20]OFD Sender: Processing packet 165252 [packets to send 106, broken 105] [11:54:20]ProducePacketName [11:54:20]name=ofd_packets/00165252 [11:54:20]OFD Sender: To server: pG, [11:54:20]CommunicateWithHost lk.salyk.kg:30040 [11:54:20]ConnectInit lk.salyk.kg [11:54:20]written 0, free lines is 4095 [11:54:20]Connected sock=10 [11:54: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 37 31 38 0F 01 00 00 87 E4 07 01 C6 BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 EB 0D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 84 85 02 00 35 04 06 00 AA 35 02 14 27 CC D6 B3 C8 50 4A C8 90 4F [11:54:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 7E 81 47 00 69 B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 84 85 02 00 F4 03 04 00 75 B4 94 66 B6 04 01 00 00 1B 0F 66 E0 6D CF 5A E8 [11:54:20]CommunicateWithHost err = 0 [11:54:20]CheckOFDResponse [11:54:20]1017 (14) - 77093643461234 [11:54:20]1041 (16) - 0000000000874718 [11:54:20]1040 (4) - 165252 [11:54:20]1012 (4) - 15.07.2024 05:32 [11:54:20]1206 (1) - 0 [11:54:20]OFD Sender: Remove packet 165252 [11:54:20]ProducePacketName [11:54:20]name=ofd_packets/00165252 [11:54:20]NVStorageDeleteData [11:54:20]Write to MH i2c: 01 00 00 4A 08 52 [11:54:20]Write i2c OK [11:54:20]MH_I2C_Read... [11:54:20]Read from MH i2c: 01 [11:54:20]MH_I2C_Read... [11:54:20]Read from MH i2c: 01 07 00 [11:54:20]MH_I2C_Read... [11:54:20]Read from MH i2c: 01 07 00 4A 08 00 00 00 00 00 F2 0C 57 [11:54:20]RasterBufferAndPrint [11:54:20]line [11:54:20]line [11:54:20]line [11:54:20]line [11:54:20]line [11:54:20]written 0, free lines is 3322 [11:54:20]MH_Cut [11:54:20]Write to MH i2c: D1 01 00 51 08 01 2B [11:54:20]Write i2c OK [11:54:20]MH_I2C_Read... [11:54:20]Read from MH i2c: D1 [11:54:20]MH_I2C_Read... [11:54:20]Read from MH i2c: D1 01 00 [11:54:20]MH_I2C_Read... [11:54:20]Read from MH i2c: D1 01 00 51 08 00 2A [11:54:20]Write to MH i2c: 01 00 00 52 08 5A [11:54:20]Write i2c OK [11:54:20]MH_I2C_Read... [11:54:21]OFD Sender: No OFD packet to send [11:54:21]*** Cut start [11:54:21]*** Partial cut [11:54:21]*** CUTSNS_PIN = 1 [11:54:21]*** CUTSNS_PIN = 0 [11:54:21]*** Brake cut motor [11:54:22]Read from MH i2c: 01 [11:54:22]MH_I2C_Read... [11:54:22]*** Stop cut motor [11:54:22]*** Cut end [11:54:22]Read from MH i2c: 01 07 00 [11:54:22]MH_I2C_Read... [11:54:22]Read from MH i2c: 01 07 00 52 08 00 00 00 00 00 FF 0F 6F [11:54:22]process_action close_receipt done [11:54:22]requested_data is exist [11:54:22]produce_requested_data [11:54:22]requested_item fm.sn is exist - process it [11:54:22]wFMCommunicate request_size=4 [11:54:22]MH_SAM_APDU [11:54:22]CAPDU: 80 11 00 00 [11:54:22]Write to MH i2c: E2 08 00 53 08 80 11 00 00 00 00 00 00 D5 [11:54:22]Write i2c OK [11:54:22]MH_I2C_Read... [11:54:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:22]Read from MH i2c: E2 [11:54:22]MH_I2C_Read... [11:54:22]Read from MH i2c: E2 17 00 [11:54:22]MH_I2C_Read... [11:54:22]Read from MH i2c: E2 17 00 53 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2B [11:54:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:54:22]wFMCommunicate OK [11:54:22]requested_item fd.num is exist - process it [11:54:22]SAM_PROTO_GetFieldsCounters [11:54:22]wFMCommunicate request_size=4 [11:54:22]MH_SAM_APDU [11:54:22]CAPDU: 80 13 00 00 [11:54:22]Write to MH i2c: E2 08 00 54 08 80 13 00 00 00 00 00 00 D8 [11:54:22]Write i2c OK [11:54:22]MH_I2C_Read... [11:54:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:54:22]Read from MH i2c: E2 [11:54:22]MH_I2C_Read... [11:54:22]Read from MH i2c: E2 62 00 [11:54:22]MH_I2C_Read... [11:54:22]Read from MH i2c: E2 62 00 54 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 84 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [11:54: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 84 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:54:22]wFMCommunicate OK [11:54:22]SAM_PROTO_GetFieldsCounters done [11:54:22]requested_item shift.num is exist - process it [11:54:22]requested_item shift.opened is exist - process it [11:54:22]req_shift_opened [11:54:22]FM_GetShiftState [11:54:22]SAM_PROTO_GetShiftState [11:54:22]wFMCommunicate request_size=4 [11:54:22]MH_SAM_APDU [11:54:22]CAPDU: 80 13 01 00 [11:54:22]Write to MH i2c: E2 08 00 55 08 80 13 01 00 00 00 00 00 DA [11:54:22]Write i2c OK [11:54:22]MH_I2C_Read... [11:54:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:22]Read from MH i2c: E2 [11:54:22]MH_I2C_Read... [11:54:22]Read from MH i2c: E2 0E 00 [11:54:22]MH_I2C_Read... [11:54:22]Read from MH i2c: E2 0E 00 55 08 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 B3 [11:54:22]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [11:54:22]wFMCommunicate OK [11:54:22]SAM_PROTO_GetShiftState done [11:54:22]FM_GetShiftState done [11:54:22]req_shift_opened done [11:54:22]requested_item shift.open_date is exist - process it [11:54:22]req_shift_open_date [11:54:22]req_shift_open_date done [11:54:22]produce_requested_data done [11:54:22]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165252,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [11:54:22]process_action_free close_receipt [11:54:22]json_value_free [11:54:22]json_value_free done [11:54:22]process_json_proto returns [11:54:22]Send response to host [11:54:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165252,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [11:54:22]free response buf [11:54:22]execute_script done [11:54:22]execute_script returns [11:54:22]free content buf [11:54:22]Sock 9.Close socket [11:54:22]Sock 9.Thread stoped [11:54:26]OFD Sender: No OFD packet to send [11:54:31]OFD Sender: No OFD packet to send [11:54:36]OFD Sender: No OFD packet to send [11:54:41]OFD Sender: No OFD packet to send [11:54:46]OFD Sender: No OFD packet to send [11:54:51]OFD Sender: No OFD packet to send [11:54:56]OFD Sender: No OFD packet to send [11:55:01]OFD Sender: No OFD packet to send [11:55:06]OFD Sender: No OFD packet to send [11:55:11]OFD Sender: No OFD packet to send [11:55:16]OFD Sender: No OFD packet to send [11:55:21]OFD Sender: No OFD packet to send [11:55:26]OFD Sender: No OFD packet to send [11:55:31]OFD Sender: No OFD packet to send [11:55:36]OFD Sender: No OFD packet to send [11:55:41]OFD Sender: No OFD packet to send [11:55:46]OFD Sender: No OFD packet to send [11:55:51]OFD Sender: No OFD packet to send [11:55:56]OFD Sender: No OFD packet to send [11:56:01]OFD Sender: No OFD packet to send [11:56:06]OFD Sender: No OFD packet to send [11:56:11]OFD Sender: No OFD packet to send [11:56:16]OFD Sender: No OFD packet to send [11:56:21]OFD Sender: No OFD packet to send [11:56:26]OFD Sender: No OFD packet to send [11:56:31]OFD Sender: No OFD packet to send [11:56:36]OFD Sender: No OFD packet to send [11:56:41]OFD Sender: No OFD packet to send [11:56:46]OFD Sender: No OFD packet to send [11:56:51]OFD Sender: No OFD packet to send [11:56:56]OFD Sender: No OFD packet to send [11:57:01]OFD Sender: No OFD packet to send [11:57:06]OFD Sender: No OFD packet to send [11:57:11]OFD Sender: No OFD packet to send [11:57:16]OFD Sender: No OFD packet to send [11:57:21]OFD Sender: No OFD packet to send [11:57:26]OFD Sender: No OFD packet to send [11:57:31]OFD Sender: No OFD packet to send [11:57:36]OFD Sender: No OFD packet to send [11:57:41]OFD Sender: No OFD packet to send [11:57:46]OFD Sender: No OFD packet to send [11:57:51]OFD Sender: No OFD packet to send [11:57:56]OFD Sender: No OFD packet to send [11:58:01]OFD Sender: No OFD packet to send [11:58:06]OFD Sender: No OFD packet to send [11:58:07]accept exits with 8 [11:58:07]New connection [11:58:07]New thread 3066854756 created [11:58:07]Thread 3066711396 joined [11:58:07]Waiting for new connection... [11:58:07] Sock 8.Parse request [11:58:07]Sock 8.Check first char [11:58:07]Sock 8.First char is OK [11:58:07]request: POST /json_proto HTTP/1.0 [11:58:07]Method: POST [11:58:07]URL: /json_proto [11:58:07]Method is POST - this is cgi request [11:58:07]url: /json_proto [11:58:07]query_string will be loaded in cgi processing [11:58:07]execute_cgi json_proto POST (null) [11:58:07]execute_cgi path=json_proto method=POST [11:58:07]POST find Content-Length [11:58:07]Host: 172.17.56.4:8080 [11:58:07]Content-Length: 677 [11:58:07]Content-Type: application/json [11:58:07] [11:58:07]POST finish read [11:58:07]Found Content-Length = 677 [11:58:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459361", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:07]execute_script... [11:58: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)459361", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:07]POST & json_proto [11:58:07]process_json_proto [11:58:07]json parsed OK: [11:58:07]protocol is kg_v1.0 [11:58:07]action value=close_receipt [11:58:07]process_action close_receipt [11:58:07]cmd_close_receipt [11:58:07]MH_GetDate [11:58:07]Write to MH i2c: F0 00 00 56 08 4D [11:58:07]Write i2c OK [11:58:07]MH_I2C_Read... [11:58:07]Read from MH i2c: F0 [11:58:07]MH_I2C_Read... [11:58:07]Read from MH i2c: F0 09 00 [11:58:07]MH_I2C_Read... [11:58:07]Read from MH i2c: F0 09 00 56 08 00 D0 0E 95 66 C9 DC B2 64 EA [11:58:07]GetLastDocTimeStamp 1721044459 [11:58:07]current date 1721044688 [11:58:07]FM_GetShiftState [11:58:07]SAM_PROTO_GetShiftState [11:58:07]wFMCommunicate request_size=4 [11:58:07]MH_SAM_APDU [11:58:07]CAPDU: 80 13 01 00 [11:58:07]Write to MH i2c: E2 08 00 57 08 80 13 01 00 00 00 00 00 DC [11:58:07]Write i2c OK [11:58:07]MH_I2C_Read... [11:58:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:07]Read from MH i2c: E2 [11:58:07]MH_I2C_Read... [11:58:07]Read from MH i2c: E2 0E 00 [11:58:07]MH_I2C_Read... [11:58:07]Read from MH i2c: E2 0E 00 57 08 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 B5 [11:58:07]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [11:58:07]wFMCommunicate OK [11:58:07]SAM_PROTO_GetShiftState done [11:58:07]FM_GetShiftState done [11:58:07]opened in 1721003876 [11:58:07]opened+sec_in_day 1721090276 [11:58:07]quantity*price = 30004 [11:58:07]sum+1 = 30006 [11:58:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 126 15.07.2024 11:58 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165253 ФПД: 256991561023821 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T115808&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165253&fm=256991561023821&tin=02508201610067®Number=0000000000090829&sum=30000 [11:58:09]StoreToDocumentArchive [11:58:09]shift 448 fd 165253 [11:58:09]save to /storage/0448/doc_00165253 [11:58:09]save last doc name /storage/0448/doc_00165253 to /storage/kkm_last_doc_name [11:58:09]save OK [11:58:09]Clear old archive folders... [11:58:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:58:09]tlvbuf is 01810B70 [11:58:09]SAM_PROTO_ClearQueue [11:58:09]wFMCommunicate request_size=4 [11:58:09]MH_SAM_APDU [11:58:09]CAPDU: 80 09 00 00 [11:58:09]Write to MH i2c: E2 08 00 64 08 80 09 00 00 00 00 00 00 DE [11:58:09]Write i2c OK [11:58:09]MH_I2C_Read... [11:58:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:58:09]Read from MH i2c: E2 [11:58:09]MH_I2C_Read... [11:58:09]Read from MH i2c: E2 03 00 [11:58:09]MH_I2C_Read... [11:58:09]Read from MH i2c: E2 03 00 64 08 00 90 00 E0 [11:58:09]RAPDU: 90 00 [11:58:09]wFMCommunicate OK [11:58:09]SAM_PROTO_ClearQueue done [11:58:09]KKMCreateOFDPacket [11:58:09]OFDProtocolAddRootSTLVToBuf [11:58:09]FM_MakeSignedData [11:58:09]FM_MakeSignedData [11:58:09]SAM_PROTO_SignData [11:58:09]wFMCommunicate request_size=4 [11:58:09]MH_SAM_APDU [11:58:09]CAPDU: 80 0D 01 02 [11:58:09]Write to MH i2c: E2 08 00 65 08 80 0D 01 02 00 00 00 00 E6 [11:58:09]Write i2c OK [11:58:09]MH_I2C_Read... [11:58:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:58:09]Read from MH i2c: E2 [11:58:09]MH_I2C_Read... [11:58:09]Read from MH i2c: E2 03 00 [11:58:09]MH_I2C_Read... [11:58:09]Read from MH i2c: E2 03 00 65 08 00 90 00 E1 [11:58:09]RAPDU: 90 00 [11:58:09]wFMCommunicate OK [11:58:09]wFMCommunicate request_size=255 [11:58:09]MH_SAM_APDU [11: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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 D0 0E 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 85 85 02 00 35 04 06 00 E9 [11:58:09]Write to MH i2c: E2 02 01 66 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 D0 0E 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 85 85 02 00 35 04 06 00 E9 00 00 2D [11:58:09]Write i2c OK [11:58:09]MH_I2C_Read... [11:58:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:09]Read from MH i2c: E2 [11:58:09]MH_I2C_Read... [11:58:09]Read from MH i2c: E2 03 00 [11:58:09]MH_I2C_Read... [11:58:09]Read from MH i2c: E2 03 00 66 08 00 90 00 E2 [11:58:09]RAPDU: 90 00 [11:58:09]wFMCommunicate OK [11:58:09]wFMCommunicate request_size=10 [11:58:09]MH_SAM_APDU [11:58:09]CAPDU: 80 0D 02 02 05 BB 82 B4 81 4D [11:58:09]Write to MH i2c: E2 0D 00 67 08 80 0D 02 02 05 00 BB 82 B4 81 4D 00 00 B2 [11:58:09]Write i2c OK [11:58:09]MH_I2C_Read... [11:58:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:09]Read from MH i2c: E2 [11:58:09]MH_I2C_Read... [11:58:09]Read from MH i2c: E2 03 00 [11:58:09]MH_I2C_Read... [11:58:09]Read from MH i2c: E2 03 00 67 08 00 90 00 E3 [11:58:09]RAPDU: 90 00 [11:58:09]wFMCommunicate OK [11:58:09]wFMCommunicate request_size=4 [11:58:09]MH_SAM_APDU [11:58:09]CAPDU: 80 0D 03 02 [11:58:09]Write to MH i2c: E2 08 00 68 08 80 0D 03 02 00 00 00 00 EB [11:58:09]Write i2c OK [11:58:09]MH_I2C_Read... [11:58:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:58:09]Read from MH i2c: E2 [11:58:09]MH_I2C_Read... [11:58:09]Read from MH i2c: E2 0B 00 [11:58:09]MH_I2C_Read... [11:58:09]Read from MH i2c: E2 0B 00 68 08 00 3A 7B F9 8D B8 AB A8 30 90 00 62 [11:58:09]RAPDU: 3A 7B F9 8D B8 AB A8 30 90 00 [11:58:09]wFMCommunicate OK [11:58:09]SAM_PROTO_SignData done [11:58:09]FM_MakeSignedData done [11:58:09]CreateOFDProtocolMessage [11:58:09]wFMCommunicate request_size=4 [11:58:09]MH_SAM_APDU [11:58:09]CAPDU: 80 11 00 00 [11:58:09]Write to MH i2c: E2 08 00 69 08 80 11 00 00 00 00 00 00 EB [11:58:09]Write i2c OK [11:58:09]MH_I2C_Read... [11:58:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:09]Read from MH i2c: E2 [11:58:09]MH_I2C_Read... [11:58:09]Read from MH i2c: E2 17 00 [11:58:09]MH_I2C_Read... [11:58:09]Read from MH i2c: E2 17 00 69 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 41 [11:58:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:58:09]wFMCommunicate OK [11:58:09]CreateOFDProtocolMessage done [11:58:09]OFDSenderStorePacket 165253 [11:58:09]StoreOFDPacket docnum=165253 [11:58:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 07 57 07 01 73 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 D0 0E 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 85 85 02 00 35 04 06 00 E9 BB 82 B4 81 4D 3A 7B F9 8D B8 AB A8 30 [11:58:09]CheckFolder [11:58:09]dirname=/storage/ofd_packets [11:58:09]CheckFolder done [11:58:09]ProducePacketName [11:58:09]name=ofd_packets/00165253 [11:58:09]NVStorageSaveData ofd_packets/00165253 [11:58:09]File name is /storage/ofd_packets/00165253 [11:58:09]Write 301 bytes [11:58:09]NVStorageSaveData done [11:58:09]OFDSenderStorePacket done [11:58:09]KKMCreateOFDPacket done [11:58:09]NVStorageSaveData kkm_last_timestamp [11:58:09]File name is /storage/kkm_last_timestamp [11:58:09]Write 4 bytes [11:58:09]NVStorageSaveData done [11:58:09]ExternCall_PrintAddStr [11:58:09]wPrintStart [11:58:09]Write to MH i2c: 01 00 00 6A 08 72 [11:58:09]Write i2c OK [11:58:09]MH_I2C_Read... [11:58:09]Read from MH i2c: 01 [11:58:09]MH_I2C_Read... [11:58:09]Read from MH i2c: 01 07 00 [11:58:09]MH_I2C_Read... [11:58:09]Read from MH i2c: 01 07 00 6A 08 00 00 00 00 00 FF 0F 87 [11:58:09]RasterBufferAndPrint [11:58:09]line Счет N : (1)459361 [11:58:09]line ИНН: 02508201610067 [11:58:09]line Контрольно-Кассовый Чек [11:58:09]line ПРОДАЖА [11:58:09]line ТРК (МРК, ГНК) : 22 [11:58:09]line Товар: 2710124130 [11:58:09]line Аи-92-К-5 [11:58:09]line 4.560 * 65.80 [11:58:09]line = 300.05 [11:58:09]line НДС 12% НСП 1% [11:58:09]line > о реализуемом товаре [11:58:09]line ОКРУГЛЕНИЕ: -0.05 [11:58:09]line ИТОГО: 300.00 [11:58:09]line Внесено: 300.00 [11:58:09]line СДАЧА: 0.00 [11:58:09]line НСП 1% : 2.65 [11:58:09]line НДС 12% : 31.86 [11:58:09]line Наличными: 300.00 [11:58:09]line Безнал.: 0.00 [11:58:09]line Место: АЗС № 72 "Партнер Нефть" [11:58:09]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [11:58:09]line СНО: Общий режим [11:58:09]line Чек 126 15.07.2024 11:58 [11:58:09]line Смена: 448 ФФД: 1.0 [11:58:09]line ЗНМ: 0300000160 [11:58:09]line РНМ: 0000000000090829 [11:58:09]line Версия ККМ: 001 [11:58:09]line ФМ: 0000000000874718 [11:58:09]line ФД: 165253 [11:58:09]line ФПД: 256991561023821 [11:58:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T115808&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165253&fm=256991561023821&tin=02508201610067®Number=0000000000090829&sum=30000 [11:58:09]written 0, free lines is 4095 [11:58:09]OFD Sender: Processing packet 165253 [packets to send 106, broken 105] [11:58:09]ProducePacketName [11:58:09]name=ofd_packets/00165253 [11:58:09]OFD Sender: To server: pG, [11:58:09]CommunicateWithHost lk.salyk.kg:30040 [11:58:09]ConnectInit lk.salyk.kg [11:58:10]Connected sock=10 [11: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 37 31 38 0F 01 00 00 07 57 07 01 73 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 D0 0E 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 85 85 02 00 35 04 06 00 E9 BB 82 B4 81 4D 3A 7B F9 8D B8 AB A8 30 [11: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 37 31 38 4F 00 00 00 BB FC 47 00 4A 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 85 85 02 00 F4 03 04 00 5B B5 94 66 B6 04 01 00 00 79 B4 CE A1 0C A0 E0 CB [11:58:10]CommunicateWithHost err = 0 [11:58:10]CheckOFDResponse [11:58:10]1017 (14) - 77093643461234 [11:58:10]1041 (16) - 0000000000874718 [11:58:10]1040 (4) - 165253 [11:58:10]1012 (4) - 15.07.2024 05:36 [11:58:10]1206 (1) - 0 [11:58:10]OFD Sender: Remove packet 165253 [11:58:10]ProducePacketName [11:58:10]name=ofd_packets/00165253 [11:58:10]NVStorageDeleteData [11:58:10]Write to MH i2c: 01 00 00 94 08 9C [11:58:10]Write i2c OK [11:58:10]MH_I2C_Read... [11:58:10]Read from MH i2c: 01 [11:58:10]MH_I2C_Read... [11:58:10]Read from MH i2c: 01 07 00 [11:58:10]MH_I2C_Read... [11:58:10]Read from MH i2c: 01 07 00 94 08 00 00 00 00 00 F2 0C A1 [11:58:10]RasterBufferAndPrint [11:58:10]line [11:58:10]line [11:58:10]line [11:58:10]line [11:58:10]line [11:58:10]written 0, free lines is 3320 [11:58:10]MH_Cut [11:58:10]Write to MH i2c: D1 01 00 9B 08 01 75 [11:58:10]Write i2c OK [11:58:10]MH_I2C_Read... [11:58:10]Read from MH i2c: D1 [11:58:10]MH_I2C_Read... [11:58:10]Read from MH i2c: D1 01 00 [11:58:10]MH_I2C_Read... [11:58:10]Read from MH i2c: D1 01 00 9B 08 00 74 [11:58:10]Write to MH i2c: 01 00 00 9C 08 A4 [11:58:10]Write i2c OK [11:58:10]MH_I2C_Read... [11:58:10]OFD Sender: No OFD packet to send [11:58:11]*** Cut start [11:58:11]*** Partial cut [11:58:11]*** CUTSNS_PIN = 1 [11:58:11]*** CUTSNS_PIN = 0 [11:58:11]*** Brake cut motor [11:58:11]Read from MH i2c: 01 [11:58:11]MH_I2C_Read... [11:58:11]*** Stop cut motor [11:58:11]*** Cut end [11:58:11]Read from MH i2c: 01 07 00 [11:58:11]MH_I2C_Read... [11:58:11]Read from MH i2c: 01 07 00 9C 08 00 00 00 00 00 FF 0F B9 [11:58:11]process_action close_receipt done [11:58:11]requested_data is exist [11:58:11]produce_requested_data [11:58:11]requested_item fm.sn is exist - process it [11:58:11]wFMCommunicate request_size=4 [11:58:11]MH_SAM_APDU [11:58:11]CAPDU: 80 11 00 00 [11:58:11]Write to MH i2c: E2 08 00 9D 08 80 11 00 00 00 00 00 00 1F [11:58:11]Write i2c OK [11:58:11]MH_I2C_Read... [11:58:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:11]Read from MH i2c: E2 [11:58:11]MH_I2C_Read... [11:58:11]Read from MH i2c: E2 17 00 [11:58:11]MH_I2C_Read... [11:58:11]Read from MH i2c: E2 17 00 9D 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 75 [11:58:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [11:58:11]wFMCommunicate OK [11:58:11]requested_item fd.num is exist - process it [11:58:11]SAM_PROTO_GetFieldsCounters [11:58:11]wFMCommunicate request_size=4 [11:58:11]MH_SAM_APDU [11:58:11]CAPDU: 80 13 00 00 [11:58:11]Write to MH i2c: E2 08 00 9E 08 80 13 00 00 00 00 00 00 22 [11:58:11]Write i2c OK [11:58:11]MH_I2C_Read... [11:58:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:58:11]Read from MH i2c: E2 [11:58:11]MH_I2C_Read... [11:58:11]Read from MH i2c: E2 62 00 [11:58:11]MH_I2C_Read... [11:58:11]Read from MH i2c: E2 62 00 9E 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 85 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [11:58:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 85 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:58:11]wFMCommunicate OK [11:58:11]SAM_PROTO_GetFieldsCounters done [11:58:11]requested_item shift.num is exist - process it [11:58:11]requested_item shift.opened is exist - process it [11:58:11]req_shift_opened [11:58:11]FM_GetShiftState [11:58:11]SAM_PROTO_GetShiftState [11:58:11]wFMCommunicate request_size=4 [11:58:11]MH_SAM_APDU [11:58:11]CAPDU: 80 13 01 00 [11:58:11]Write to MH i2c: E2 08 00 9F 08 80 13 01 00 00 00 00 00 24 [11:58:11]Write i2c OK [11:58:11]MH_I2C_Read... [11:58:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:11]Read from MH i2c: E2 [11:58:11]MH_I2C_Read... [11:58:11]Read from MH i2c: E2 0E 00 [11:58:11]MH_I2C_Read... [11:58:11]Read from MH i2c: E2 0E 00 9F 08 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 FD [11:58:11]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [11:58:11]wFMCommunicate OK [11:58:11]SAM_PROTO_GetShiftState done [11:58:11]FM_GetShiftState done [11:58:11]req_shift_opened done [11:58:11]requested_item shift.open_date is exist - process it [11:58:11]req_shift_open_date [11:58:11]req_shift_open_date done [11:58:11]produce_requested_data done [11:58:11]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165253,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [11:58:11]process_action_free close_receipt [11:58:11]json_value_free [11:58:11]json_value_free done [11:58:11]process_json_proto returns [11:58:11]Send response to host [11:58:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165253,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [11:58:11]free response buf [11:58:11]execute_script done [11:58:11]execute_script returns [11:58:11]free content buf [11:58:11]Sock 8.Close socket [11:58:11]Sock 8.Thread stoped [11:58:15]OFD Sender: No OFD packet to send [11:58:20]OFD Sender: No OFD packet to send [11:58:25]OFD Sender: No OFD packet to send [11:58:30]OFD Sender: No OFD packet to send [11:58:35]OFD Sender: No OFD packet to send [11:58:40]OFD Sender: No OFD packet to send [11:58:45]OFD Sender: No OFD packet to send [11:58:50]OFD Sender: No OFD packet to send [11:58:55]OFD Sender: No OFD packet to send [11:59:00]OFD Sender: No OFD packet to send [11:59:05]OFD Sender: No OFD packet to send [11:59:10]OFD Sender: No OFD packet to send [11:59:15]OFD Sender: No OFD packet to send [11:59:20]OFD Sender: No OFD packet to send [11:59:25]OFD Sender: No OFD packet to send [11:59:30]OFD Sender: No OFD packet to send [11:59:35]OFD Sender: No OFD packet to send [11:59:40]OFD Sender: No OFD packet to send [11:59:45]OFD Sender: No OFD packet to send [11:59:50]OFD Sender: No OFD packet to send [11:59:55]OFD Sender: No OFD packet to send [12:00:00]OFD Sender: No OFD packet to send [12:00:05]OFD Sender: No OFD packet to send [12:00:10]OFD Sender: No OFD packet to send [12:00:15]OFD Sender: No OFD packet to send [12:00:20]OFD Sender: No OFD packet to send [12:00:25]OFD Sender: No OFD packet to send [12:00:30]OFD Sender: No OFD packet to send [12:00:35]OFD Sender: No OFD packet to send [12:00:40]OFD Sender: No OFD packet to send [12:00:45]OFD Sender: No OFD packet to send [12:00:50]OFD Sender: No OFD packet to send [12:00:55]OFD Sender: No OFD packet to send [12:00:58]accept exits with 9 [12:00:58]New connection [12:00:58]New thread 3066711396 created [12:00:58]Thread 3066854756 joined [12:00:58]Waiting for new connection... [12:00:58] Sock 9.Parse request [12:00:58]Sock 9.Check first char [12:00:58]Sock 9.First char is OK [12:00:58]request: POST /json_proto HTTP/1.0 [12:00:58]Method: POST [12:00:58]URL: /json_proto [12:00:58]Method is POST - this is cgi request [12:00:58]url: /json_proto [12:00:58]query_string will be loaded in cgi processing [12:00:58]execute_cgi json_proto POST (null) [12:00:58]execute_cgi path=json_proto method=POST [12:00:58]POST find Content-Length [12:00:58]Host: 172.17.56.4:8080 [12:00:58]Content-Length: 673 [12:00:58]Content-Type: application/json [12:00:58] [12:00:58]POST finish read [12:00:58]Found Content-Length = 673 [12:00:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459362", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.070, "sum" : 70.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 70.00, "total" : 70.00, "payments": [ { "type": 0, "sum" : 70.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:58]execute_script... [12:00: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)459362", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.070, "sum" : 70.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 70.00, "total" : 70.00, "payments": [ { "type": 0, "sum" : 70.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:58]POST & json_proto [12:00:58]process_json_proto [12:00:58]json parsed OK: [12:00:58]protocol is kg_v1.0 [12:00:58]action value=close_receipt [12:00:58]process_action close_receipt [12:00:58]cmd_close_receipt [12:00:58]MH_GetDate [12:00:58]Write to MH i2c: F0 00 00 A0 08 97 [12:00:58]Write i2c OK [12:00:58]MH_I2C_Read... [12:00:58]Read from MH i2c: F0 [12:00:58]MH_I2C_Read... [12:00:58]Read from MH i2c: F0 09 00 [12:00:58]MH_I2C_Read... [12:00:58]Read from MH i2c: F0 09 00 A0 08 00 7B 0F 95 66 C9 DC B2 64 E0 [12:00:58]GetLastDocTimeStamp 1721044688 [12:00:58]current date 1721044859 [12:00:58]FM_GetShiftState [12:00:58]SAM_PROTO_GetShiftState [12:00:58]wFMCommunicate request_size=4 [12:00:58]MH_SAM_APDU [12:00:58]CAPDU: 80 13 01 00 [12:00:58]Write to MH i2c: E2 08 00 A1 08 80 13 01 00 00 00 00 00 26 [12:00:58]Write i2c OK [12:00:58]MH_I2C_Read... [12:00:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:58]Read from MH i2c: E2 [12:00:58]MH_I2C_Read... [12:00:58]Read from MH i2c: E2 0E 00 [12:00:58]MH_I2C_Read... [12:00:58]Read from MH i2c: E2 0E 00 A1 08 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 FF [12:00:58]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:00:58]wFMCommunicate OK [12:00:58]SAM_PROTO_GetShiftState done [12:00:58]FM_GetShiftState done [12:00:58]opened in 1721003876 [12:00:58]opened+sec_in_day 1721090276 [12:00:58]quantity*price = 7040 [12:00:58]sum+1 = 7042 [12:00:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 70.00 Внесено: 70.00 СДАЧА: 0.00 НСП 1% : 0.62 НДС 12% : 7.48 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 127 15.07.2024 12:00 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165254 ФПД: 135786972716987 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T120059&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165254&fm=135786972716987&tin=02508201610067®Number=0000000000090829&sum=7000 [12:01:00]StoreToDocumentArchive [12:01:00]shift 448 fd 165254 [12:01:00]save to /storage/0448/doc_00165254 [12:01:00]save last doc name /storage/0448/doc_00165254 to /storage/kkm_last_doc_name [12:01:00]save OK [12:01:00]Clear old archive folders... [12:01:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:01:00]tlvbuf is 01852DE0 [12:01:00]SAM_PROTO_ClearQueue [12:01:00]wFMCommunicate request_size=4 [12:01:00]MH_SAM_APDU [12:01:00]CAPDU: 80 09 00 00 [12:01:00]Write to MH i2c: E2 08 00 AE 08 80 09 00 00 00 00 00 00 28 [12:01:00]Write i2c OK [12:01:00]MH_I2C_Read... [12:01:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:01:00]Read from MH i2c: E2 [12:01:00]MH_I2C_Read... [12:01:00]Read from MH i2c: E2 03 00 [12:01:00]MH_I2C_Read... [12:01:00]Read from MH i2c: E2 03 00 AE 08 00 90 00 2A [12:01:00]RAPDU: 90 00 [12:01:00]wFMCommunicate OK [12:01:00]SAM_PROTO_ClearQueue done [12:01:00]KKMCreateOFDPacket [12:01:00]OFDProtocolAddRootSTLVToBuf [12:01:00]FM_MakeSignedData [12:01:00]FM_MakeSignedData [12:01:00]SAM_PROTO_SignData [12:01:00]wFMCommunicate request_size=4 [12:01:00]MH_SAM_APDU [12:01:00]CAPDU: 80 0D 01 02 [12:01:00]Write to MH i2c: E2 08 00 AF 08 80 0D 01 02 00 00 00 00 30 [12:01:00]Write i2c OK [12:01:00]MH_I2C_Read... [12:01:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:01:00]Read from MH i2c: E2 [12:01:00]MH_I2C_Read... [12:01:00]Read from MH i2c: E2 03 00 [12:01:00]MH_I2C_Read... [12:01:00]Read from MH i2c: E2 03 00 AF 08 00 90 00 2B [12:01:00]RAPDU: 90 00 [12:01:00]wFMCommunicate OK [12:01:00]wFMCommunicate request_size=255 [12:01:00]MH_SAM_APDU [12:01: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 2E 04 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 81 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 7B 0F 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 86 85 02 00 35 04 06 00 7B [12:01:00]Write to MH i2c: E2 02 01 B0 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 04 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 81 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 7B 0F 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 86 85 02 00 35 04 06 00 7B 00 00 3A [12:01:00]Write i2c OK [12:01:00]MH_I2C_Read... [12:01:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:00]Read from MH i2c: E2 [12:01:00]MH_I2C_Read... [12:01:00]Read from MH i2c: E2 03 00 [12:01:00]MH_I2C_Read... [12:01:00]Read from MH i2c: E2 03 00 B0 08 00 90 00 2C [12:01:00]RAPDU: 90 00 [12:01:00]wFMCommunicate OK [12:01:00]wFMCommunicate request_size=10 [12:01:00]MH_SAM_APDU [12:01:00]CAPDU: 80 0D 02 02 05 7F 5E 46 1F BB [12:01:00]Write to MH i2c: E2 0D 00 B1 08 80 0D 02 02 05 00 7F 5E 46 1F BB 00 00 3A [12:01:00]Write i2c OK [12:01:00]MH_I2C_Read... [12:01:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:00]Read from MH i2c: E2 [12:01:00]MH_I2C_Read... [12:01:00]Read from MH i2c: E2 03 00 [12:01:00]MH_I2C_Read... [12:01:00]Read from MH i2c: E2 03 00 B1 08 00 90 00 2D [12:01:00]RAPDU: 90 00 [12:01:00]wFMCommunicate OK [12:01:00]wFMCommunicate request_size=4 [12:01:00]MH_SAM_APDU [12:01:00]CAPDU: 80 0D 03 02 [12:01:00]Write to MH i2c: E2 08 00 B2 08 80 0D 03 02 00 00 00 00 35 [12:01:00]Write i2c OK [12:01:00]MH_I2C_Read... [12:01:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:01:00]Read from MH i2c: E2 [12:01:00]MH_I2C_Read... [12:01:00]Read from MH i2c: E2 0B 00 [12:01:00]MH_I2C_Read... [12:01:00]Read from MH i2c: E2 0B 00 B2 08 00 B9 58 D6 34 29 33 93 02 90 00 42 [12:01:00]RAPDU: B9 58 D6 34 29 33 93 02 90 00 [12:01:00]wFMCommunicate OK [12:01:00]SAM_PROTO_SignData done [12:01:00]FM_MakeSignedData done [12:01:00]CreateOFDProtocolMessage [12:01:00]wFMCommunicate request_size=4 [12:01:00]MH_SAM_APDU [12:01:00]CAPDU: 80 11 00 00 [12:01:00]Write to MH i2c: E2 08 00 B3 08 80 11 00 00 00 00 00 00 35 [12:01:00]Write i2c OK [12:01:00]MH_I2C_Read... [12:01:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:00]Read from MH i2c: E2 [12:01:00]MH_I2C_Read... [12:01:00]Read from MH i2c: E2 17 00 [12:01:00]MH_I2C_Read... [12:01:00]Read from MH i2c: E2 17 00 B3 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8B [12:01:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:01:00]wFMCommunicate OK [12:01:00]CreateOFDProtocolMessage done [12:01:00]OFDSenderStorePacket 165254 [12:01:00]StoreOFDPacket docnum=165254 [12:01:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 8E 33 07 01 EC F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 2E 04 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 81 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 7B 0F 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 86 85 02 00 35 04 06 00 7B 7F 5E 46 1F BB B9 58 D6 34 29 33 93 02 [12:01:00]CheckFolder [12:01:00]dirname=/storage/ofd_packets [12:01:00]CheckFolder done [12:01:00]ProducePacketName [12:01:00]name=ofd_packets/00165254 [12:01:00]NVStorageSaveData ofd_packets/00165254 [12:01:00]File name is /storage/ofd_packets/00165254 [12:01:00]Write 301 bytes [12:01:00]NVStorageSaveData done [12:01:00]OFDSenderStorePacket done [12:01:00]KKMCreateOFDPacket done [12:01:00]NVStorageSaveData kkm_last_timestamp [12:01:00]File name is /storage/kkm_last_timestamp [12:01:00]Write 4 bytes [12:01:00]NVStorageSaveData done [12:01:00]OFD Sender: Processing packet 165254 [packets to send 106, broken 105] [12:01:00]ProducePacketName [12:01:00]name=ofd_packets/00165254 [12:01:00]OFD Sender: To server: pG, [12:01:00]CommunicateWithHost lk.salyk.kg:30040 [12:01:00]ConnectInit lk.salyk.kg [12:01:00]ExternCall_PrintAddStr [12:01:00]wPrintStart [12:01:00]Write to MH i2c: 01 00 00 B4 08 BC [12:01:00]Write i2c OK [12:01:00]MH_I2C_Read... [12:01:00]Read from MH i2c: 01 [12:01:00]MH_I2C_Read... [12:01:00]Read from MH i2c: 01 07 00 [12:01:00]MH_I2C_Read... [12:01:00]Read from MH i2c: 01 07 00 B4 08 00 00 00 00 00 FF 0F D1 [12:01:00]RasterBufferAndPrint [12:01:00]line Счет N : (1)459362 [12:01:00]line ИНН: 02508201610067 [12:01:00]line Контрольно-Кассовый Чек [12:01:00]line ПРОДАЖА [12:01:00]line ТРК (МРК, ГНК) : 22 [12:01:00]line Товар: 2710124130 [12:01:00]line Аи-92-К-5 [12:01:00]line 1.070 * 65.80 [12:01:00]line = 70.41 [12:01:00]line НДС 12% НСП 1% [12:01:00]line > о реализуемом товаре [12:01:00]line ОКРУГЛЕНИЕ: -0.41 [12:01:00]line ИТОГО: 70.00 [12:01:00]line Внесено: 70.00 [12:01:00]line СДАЧА: 0.00 [12:01:00]line НСП 1% : 0.62 [12:01:00]line НДС 12% : 7.48 [12:01:00]line Наличными: 70.00 [12:01:00]line Безнал.: 0.00 [12:01:00]line Место: АЗС № 72 "Партнер Нефть" [12:01:00]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:01:00]line СНО: Общий режим [12:01:00]line Чек 127 15.07.2024 12:00 [12:01:00]line Смена: 448 ФФД: 1.0 [12:01:00]line ЗНМ: 0300000160 [12:01:00]line РНМ: 0000000000090829 [12:01:00]line Версия ККМ: 001 [12:01:00]line ФМ: 0000000000874718 [12:01:00]line ФД: 165254 [12:01:00]line ФПД: 135786972716987 [12:01:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T120059&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165254&fm=135786972716987&tin=02508201610067®Number=0000000000090829&sum=7000 [12:01:00]Connected sock=11 [12:01: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 37 31 38 0F 01 00 00 8E 33 07 01 EC F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 2E 04 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 81 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 7B 0F 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 86 85 02 00 35 04 06 00 7B 7F 5E 46 1F BB B9 58 D6 34 29 33 93 02 [12:01:00]written 0, free lines is 4095 [12:01:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 A0 9F 47 00 4E 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 86 85 02 00 F4 03 04 00 06 B6 94 66 B6 04 01 00 00 5E 46 F8 8C 93 C9 33 D7 [12:01:01]CommunicateWithHost err = 0 [12:01:01]CheckOFDResponse [12:01:01]1017 (14) - 77093643461234 [12:01:01]1041 (16) - 0000000000874718 [12:01:01]1040 (4) - 165254 [12:01:01]1012 (4) - 15.07.2024 05:39 [12:01:01]1206 (1) - 0 [12:01:01]OFD Sender: Remove packet 165254 [12:01:01]ProducePacketName [12:01:01]name=ofd_packets/00165254 [12:01:01]NVStorageDeleteData [12:01:01]Write to MH i2c: 01 00 00 DE 08 E6 [12:01:01]Write i2c OK [12:01:01]MH_I2C_Read... [12:01:01]Read from MH i2c: 01 [12:01:01]MH_I2C_Read... [12:01:01]Read from MH i2c: 01 07 00 [12:01:01]MH_I2C_Read... [12:01:01]Read from MH i2c: 01 07 00 DE 08 00 00 00 00 00 ED 0C E6 [12:01:01]RasterBufferAndPrint [12:01:01]line [12:01:01]line [12:01:01]line [12:01:01]line [12:01:01]line [12:01:01]written 0, free lines is 3315 [12:01:01]MH_Cut [12:01:01]Write to MH i2c: D1 01 00 E5 08 01 BF [12:01:01]Write i2c OK [12:01:01]MH_I2C_Read... [12:01:01]Read from MH i2c: D1 [12:01:01]MH_I2C_Read... [12:01:01]Read from MH i2c: D1 01 00 [12:01:01]MH_I2C_Read... [12:01:01]Read from MH i2c: D1 01 00 E5 08 00 BE [12:01:01]Write to MH i2c: 01 00 00 E6 08 EE [12:01:01]Write i2c OK [12:01:01]MH_I2C_Read... [12:01:01]OFD Sender: No OFD packet to send [12:01:02]*** Cut start [12:01:02]*** Partial cut [12:01:02]*** CUTSNS_PIN = 1 [12:01:02]*** CUTSNS_PIN = 0 [12:01:02]*** Brake cut motor [12:01:02]Read from MH i2c: 01 [12:01:02]MH_I2C_Read... [12:01:02]*** Stop cut motor [12:01:02]*** Cut end [12:01:02]Read from MH i2c: 01 07 00 [12:01:02]MH_I2C_Read... [12:01:02]Read from MH i2c: 01 07 00 E6 08 00 00 00 00 00 FF 0F 03 [12:01:02]process_action close_receipt done [12:01:02]requested_data is exist [12:01:02]produce_requested_data [12:01:02]requested_item fm.sn is exist - process it [12:01:02]wFMCommunicate request_size=4 [12:01:02]MH_SAM_APDU [12:01:02]CAPDU: 80 11 00 00 [12:01:02]Write to MH i2c: E2 08 00 E7 08 80 11 00 00 00 00 00 00 69 [12:01:02]Write i2c OK [12:01:02]MH_I2C_Read... [12:01:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:02]Read from MH i2c: E2 [12:01:02]MH_I2C_Read... [12:01:02]Read from MH i2c: E2 17 00 [12:01:02]MH_I2C_Read... [12:01:02]Read from MH i2c: E2 17 00 E7 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 BF [12:01:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:01:02]wFMCommunicate OK [12:01:02]requested_item fd.num is exist - process it [12:01:02]SAM_PROTO_GetFieldsCounters [12:01:02]wFMCommunicate request_size=4 [12:01:02]MH_SAM_APDU [12:01:02]CAPDU: 80 13 00 00 [12:01:02]Write to MH i2c: E2 08 00 E8 08 80 13 00 00 00 00 00 00 6C [12:01:02]Write i2c OK [12:01:02]MH_I2C_Read... [12:01:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:01:02]Read from MH i2c: E2 [12:01:02]MH_I2C_Read... [12:01:02]Read from MH i2c: E2 62 00 [12:01:02]MH_I2C_Read... [12:01:02]Read from MH i2c: E2 62 00 E8 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 86 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [12:01:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 86 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:01:02]wFMCommunicate OK [12:01:02]SAM_PROTO_GetFieldsCounters done [12:01:02]requested_item shift.num is exist - process it [12:01:02]requested_item shift.opened is exist - process it [12:01:02]req_shift_opened [12:01:02]FM_GetShiftState [12:01:02]SAM_PROTO_GetShiftState [12:01:02]wFMCommunicate request_size=4 [12:01:02]MH_SAM_APDU [12:01:02]CAPDU: 80 13 01 00 [12:01:02]Write to MH i2c: E2 08 00 E9 08 80 13 01 00 00 00 00 00 6E [12:01:02]Write i2c OK [12:01:02]MH_I2C_Read... [12:01:02]Read from MH i2c: E2 [12:01:02]MH_I2C_Read... [12:01:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:02]Read from MH i2c: E2 0E 00 [12:01:02]MH_I2C_Read... [12:01:02]Read from MH i2c: E2 0E 00 E9 08 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 47 [12:01:02]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:01:02]wFMCommunicate OK [12:01:02]SAM_PROTO_GetShiftState done [12:01:02]FM_GetShiftState done [12:01:02]req_shift_opened done [12:01:02]requested_item shift.open_date is exist - process it [12:01:02]req_shift_open_date [12:01:02]req_shift_open_date done [12:01:02]produce_requested_data done [12:01:02]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165254,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [12:01:02]process_action_free close_receipt [12:01:02]json_value_free [12:01:02]json_value_free done [12:01:02]process_json_proto returns [12:01:02]Send response to host [12:01:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165254,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [12:01:02]free response buf [12:01:02]execute_script done [12:01:02]execute_script returns [12:01:02]free content buf [12:01:02]Sock 9.Close socket [12:01:02]Sock 9.Thread stoped [12:01:06]OFD Sender: No OFD packet to send [12:01:11]OFD Sender: No OFD packet to send [12:01:16]OFD Sender: No OFD packet to send [12:01:21]OFD Sender: No OFD packet to send [12:01:26]OFD Sender: No OFD packet to send [12:01:31]OFD Sender: No OFD packet to send [12:01:36]OFD Sender: No OFD packet to send [12:01:41]OFD Sender: No OFD packet to send [12:01:46]OFD Sender: No OFD packet to send [12:01:51]OFD Sender: No OFD packet to send [12:01:56]OFD Sender: No OFD packet to send [12:02:01]OFD Sender: No OFD packet to send [12:02:06]OFD Sender: No OFD packet to send [12:02:11]OFD Sender: No OFD packet to send [12:02:16]OFD Sender: No OFD packet to send [12:02:18]accept exits with 8 [12:02:18]New connection [12:02:18]New thread 3066854756 created [12:02:18]Thread 3066711396 joined [12:02:18]Waiting for new connection... [12:02:18] Sock 8.Parse request [12:02:18]Sock 8.Check first char [12:02:18]Sock 8.First char is OK [12:02:18]request: POST /json_proto HTTP/1.0 [12:02:18]Method: POST [12:02:18]URL: /json_proto [12:02:18]Method is POST - this is cgi request [12:02:18]url: /json_proto [12:02:18]query_string will be loaded in cgi processing [12:02:18]execute_cgi json_proto POST (null) [12:02:18]execute_cgi path=json_proto method=POST [12:02:18]POST find Content-Length [12:02:18]Host: 172.17.56.4:8080 [12:02:18]Content-Length: 677 [12:02:18]Content-Type: application/json [12:02:18] [12:02:18]POST finish read [12:02:18]Found Content-Length = 677 [12:02:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459363", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:18]execute_script... [12:02: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)459363", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:18]POST & json_proto [12:02:18]process_json_proto [12:02:18]json parsed OK: [12:02:18]protocol is kg_v1.0 [12:02:18]action value=close_receipt [12:02:18]process_action close_receipt [12:02:18]cmd_close_receipt [12:02:18]MH_GetDate [12:02:18]Write to MH i2c: F0 00 00 EA 08 E1 [12:02:18]Write i2c OK [12:02:18]MH_I2C_Read... [12:02:18]Read from MH i2c: F0 [12:02:18]MH_I2C_Read... [12:02:18]Read from MH i2c: F0 09 00 [12:02:18]MH_I2C_Read... [12:02:18]Read from MH i2c: F0 09 00 EA 08 00 CB 0F 95 66 C9 DC B2 64 7A [12:02:18]GetLastDocTimeStamp 1721044859 [12:02:18]current date 1721044939 [12:02:18]FM_GetShiftState [12:02:18]SAM_PROTO_GetShiftState [12:02:18]wFMCommunicate request_size=4 [12:02:18]MH_SAM_APDU [12:02:18]CAPDU: 80 13 01 00 [12:02:18]Write to MH i2c: E2 08 00 EB 08 80 13 01 00 00 00 00 00 70 [12:02:18]Write i2c OK [12:02:18]MH_I2C_Read... [12:02:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:18]Read from MH i2c: E2 [12:02:18]MH_I2C_Read... [12:02:18]Read from MH i2c: E2 0E 00 [12:02:18]MH_I2C_Read... [12:02:18]Read from MH i2c: E2 0E 00 EB 08 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 49 [12:02:18]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:02:18]wFMCommunicate OK [12:02:18]SAM_PROTO_GetShiftState done [12:02:18]FM_GetShiftState done [12:02:18]opened in 1721003876 [12:02:18]opened+sec_in_day 1721090276 [12:02:18]quantity*price = 30004 [12:02:18]sum+1 = 30006 [12:02:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 128 15.07.2024 12:02 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165255 ФПД: 51808031890679 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T120219&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165255&fm=51808031890679&tin=02508201610067®Number=0000000000090829&sum=30000 [12:02:20]StoreToDocumentArchive [12:02:20]shift 448 fd 165255 [12:02:20]save to /storage/0448/doc_00165255 [12:02:20]save last doc name /storage/0448/doc_00165255 to /storage/kkm_last_doc_name [12:02:20]save OK [12:02:20]Clear old archive folders... [12:02:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:02:20]tlvbuf is 018479B0 [12:02:20]SAM_PROTO_ClearQueue [12:02:20]wFMCommunicate request_size=4 [12:02:20]MH_SAM_APDU [12:02:20]CAPDU: 80 09 00 00 [12:02:20]Write to MH i2c: E2 08 00 F8 08 80 09 00 00 00 00 00 00 72 [12:02:20]Write i2c OK [12:02:20]MH_I2C_Read... [12:02:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:02:20]Read from MH i2c: E2 [12:02:20]MH_I2C_Read... [12:02:20]Read from MH i2c: E2 03 00 [12:02:20]MH_I2C_Read... [12:02:20]Read from MH i2c: E2 03 00 F8 08 00 90 00 74 [12:02:20]RAPDU: 90 00 [12:02:20]wFMCommunicate OK [12:02:20]SAM_PROTO_ClearQueue done [12:02:20]KKMCreateOFDPacket [12:02:20]OFDProtocolAddRootSTLVToBuf [12:02:20]FM_MakeSignedData [12:02:20]FM_MakeSignedData [12:02:20]SAM_PROTO_SignData [12:02:20]wFMCommunicate request_size=4 [12:02:20]MH_SAM_APDU [12:02:20]CAPDU: 80 0D 01 02 [12:02:20]Write to MH i2c: E2 08 00 F9 08 80 0D 01 02 00 00 00 00 7A [12:02:20]Write i2c OK [12:02:20]MH_I2C_Read... [12:02:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:02:20]Read from MH i2c: E2 [12:02:20]MH_I2C_Read... [12:02:20]Read from MH i2c: E2 03 00 [12:02:20]MH_I2C_Read... [12:02:20]Read from MH i2c: E2 03 00 F9 08 00 90 00 75 [12:02:20]RAPDU: 90 00 [12:02:20]wFMCommunicate OK [12:02:20]wFMCommunicate request_size=255 [12:02:20]MH_SAM_APDU [12:02:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 CB 0F 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 87 85 02 00 35 04 06 00 2F [12:02:20]Write to MH i2c: E2 02 01 FA 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 CB 0F 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 87 85 02 00 35 04 06 00 2F 00 00 07 [12:02:20]Write i2c OK [12:02:20]MH_I2C_Read... [12:02:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:20]Read from MH i2c: E2 [12:02:20]MH_I2C_Read... [12:02:20]Read from MH i2c: E2 03 00 [12:02:20]MH_I2C_Read... [12:02:20]Read from MH i2c: E2 03 00 FA 08 00 90 00 76 [12:02:20]RAPDU: 90 00 [12:02:20]wFMCommunicate OK [12:02:20]wFMCommunicate request_size=10 [12:02:20]MH_SAM_APDU [12:02:20]CAPDU: 80 0D 02 02 05 1E 7F 56 5C F7 [12:02:20]Write to MH i2c: E2 0D 00 FB 08 80 0D 02 02 05 00 1E 7F 56 5C F7 00 00 CD [12:02:20]Write i2c OK [12:02:20]MH_I2C_Read... [12:02:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:20]Read from MH i2c: E2 [12:02:20]MH_I2C_Read... [12:02:20]Read from MH i2c: E2 03 00 [12:02:20]MH_I2C_Read... [12:02:20]Read from MH i2c: E2 03 00 FB 08 00 90 00 77 [12:02:20]RAPDU: 90 00 [12:02:20]wFMCommunicate OK [12:02:20]wFMCommunicate request_size=4 [12:02:20]MH_SAM_APDU [12:02:20]CAPDU: 80 0D 03 02 [12:02:20]Write to MH i2c: E2 08 00 FC 08 80 0D 03 02 00 00 00 00 7F [12:02:20]Write i2c OK [12:02:20]MH_I2C_Read... [12:02:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:02:20]Read from MH i2c: E2 [12:02:20]MH_I2C_Read... [12:02:20]Read from MH i2c: E2 0B 00 [12:02:20]MH_I2C_Read... [12:02:20]Read from MH i2c: E2 0B 00 FC 08 00 AA 39 09 F8 FE F8 3A 99 90 00 2D [12:02:20]RAPDU: AA 39 09 F8 FE F8 3A 99 90 00 [12:02:20]wFMCommunicate OK [12:02:20]SAM_PROTO_SignData done [12:02:20]FM_MakeSignedData done [12:02:20]CreateOFDProtocolMessage [12:02:20]wFMCommunicate request_size=4 [12:02:20]MH_SAM_APDU [12:02:20]CAPDU: 80 11 00 00 [12:02:20]Write to MH i2c: E2 08 00 FD 08 80 11 00 00 00 00 00 00 7F [12:02:20]Write i2c OK [12:02:20]MH_I2C_Read... [12:02:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:20]Read from MH i2c: E2 [12:02:20]MH_I2C_Read... [12:02:20]Read from MH i2c: E2 17 00 [12:02:20]MH_I2C_Read... [12:02:20]Read from MH i2c: E2 17 00 FD 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D5 [12:02:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:02:20]wFMCommunicate OK [12:02:20]CreateOFDProtocolMessage done [12:02:20]OFDSenderStorePacket 165255 [12:02:20]StoreOFDPacket docnum=165255 [12:02:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 8D 95 07 01 D6 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 CB 0F 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 87 85 02 00 35 04 06 00 2F 1E 7F 56 5C F7 AA 39 09 F8 FE F8 3A 99 [12:02:20]CheckFolder [12:02:20]dirname=/storage/ofd_packets [12:02:20]CheckFolder done [12:02:20]ProducePacketName [12:02:20]name=ofd_packets/00165255 [12:02:20]NVStorageSaveData ofd_packets/00165255 [12:02:20]File name is /storage/ofd_packets/00165255 [12:02:20]Write 301 bytes [12:02:20]NVStorageSaveData done [12:02:20]OFDSenderStorePacket done [12:02:20]KKMCreateOFDPacket done [12:02:20]NVStorageSaveData kkm_last_timestamp [12:02:20]File name is /storage/kkm_last_timestamp [12:02:20]Write 4 bytes [12:02:20]NVStorageSaveData done [12:02:20]ExternCall_PrintAddStr [12:02:20]wPrintStart [12:02:20]Write to MH i2c: 01 00 00 FE 08 06 [12:02:20]Write i2c OK [12:02:20]MH_I2C_Read... [12:02:20]Read from MH i2c: 01 [12:02:20]MH_I2C_Read... [12:02:20]Read from MH i2c: 01 07 00 [12:02:20]MH_I2C_Read... [12:02:20]Read from MH i2c: 01 07 00 FE 08 00 00 00 00 00 FF 0F 1B [12:02:20]RasterBufferAndPrint [12:02:20]line Счет N : (1)459363 [12:02:20]line ИНН: 02508201610067 [12:02:20]line Контрольно-Кассовый Чек [12:02:20]line ПРОДАЖА [12:02:20]line ТРК (МРК, ГНК) : 12 [12:02:20]line Товар: 2710124130 [12:02:20]line Аи-92-К-5 [12:02:20]line 4.560 * 65.80 [12:02:20]line = 300.05 [12:02:20]line НДС 12% НСП 1% [12:02:20]line > о реализуемом товаре [12:02:20]line ОКРУГЛЕНИЕ: -0.05 [12:02:20]line ИТОГО: 300.00 [12:02:20]line Внесено: 300.00 [12:02:20]line СДАЧА: 0.00 [12:02:20]line НСП 1% : 2.65 [12:02:20]line НДС 12% : 31.86 [12:02:20]line Наличными: 300.00 [12:02:20]line Безнал.: 0.00 [12:02:20]line Место: АЗС № 72 "Партнер Нефть" [12:02:20]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:02:20]line СНО: Общий режим [12:02:20]line Чек 128 15.07.2024 12:02 [12:02:20]line Смена: 448 ФФД: 1.0 [12:02:20]line ЗНМ: 0300000160 [12:02:20]line РНМ: 0000000000090829 [12:02:20]line Версия ККМ: 001 [12:02:20]line ФМ: 0000000000874718 [12:02:20]line ФД: 165255 [12:02:20]line ФПД: 51808031890679 [12:02:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T120219&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165255&fm=51808031890679&tin=02508201610067®Number=0000000000090829&sum=30000 [12:02:20]written 0, free lines is 4095 [12:02:20]OFD Sender: Processing packet 165255 [packets to send 106, broken 105] [12:02:20]ProducePacketName [12:02:20]name=ofd_packets/00165255 [12:02:20]OFD Sender: To server: pG, [12:02:20]CommunicateWithHost lk.salyk.kg:30040 [12:02:20]ConnectInit lk.salyk.kg [12:02:20]Connected sock=10 [12:02: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 37 31 38 0F 01 00 00 8D 95 07 01 D6 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 CB 0F 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 87 85 02 00 35 04 06 00 2F 1E 7F 56 5C F7 AA 39 09 F8 FE F8 3A 99 [12:02:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 59 33 47 00 00 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 87 85 02 00 F4 03 04 00 56 B6 94 66 B6 04 01 00 00 E5 9E 85 E1 6C C2 5F 3B [12:02:21]CommunicateWithHost err = 0 [12:02:21]CheckOFDResponse [12:02:21]1017 (14) - 77093643461234 [12:02:21]1041 (16) - 0000000000874718 [12:02:21]1040 (4) - 165255 [12:02:21]1012 (4) - 15.07.2024 05:40 [12:02:21]1206 (1) - 0 [12:02:21]OFD Sender: Remove packet 165255 [12:02:21]ProducePacketName [12:02:21]name=ofd_packets/00165255 [12:02:21]NVStorageDeleteData [12:02:21]Write to MH i2c: 01 00 00 28 09 31 [12:02:21]Write i2c OK [12:02:21]MH_I2C_Read... [12:02:21]Read from MH i2c: 01 [12:02:21]MH_I2C_Read... [12:02:21]Read from MH i2c: 01 07 00 [12:02:21]MH_I2C_Read... [12:02:21]Read from MH i2c: 01 07 00 28 09 00 00 00 00 00 F5 0C 39 [12:02:21]RasterBufferAndPrint [12:02:21]line [12:02:21]line [12:02:21]line [12:02:21]line [12:02:21]line [12:02:21]written 0, free lines is 3324 [12:02:21]MH_Cut [12:02:21]Write to MH i2c: D1 01 00 2F 09 01 0A [12:02:21]Write i2c OK [12:02:21]MH_I2C_Read... [12:02:21]Read from MH i2c: D1 [12:02:21]MH_I2C_Read... [12:02:21]Read from MH i2c: D1 01 00 [12:02:21]MH_I2C_Read... [12:02:21]Read from MH i2c: D1 01 00 2F 09 00 09 [12:02:21]Write to MH i2c: 01 00 00 30 09 39 [12:02:21]Write i2c OK [12:02:21]MH_I2C_Read... [12:02:21]OFD Sender: No OFD packet to send [12:02:21]*** Cut start [12:02:21]*** Partial cut [12:02:21]*** CUTSNS_PIN = 1 [12:02:22]*** CUTSNS_PIN = 0 [12:02:22]*** Brake cut motor [12:02:22]Read from MH i2c: 01 [12:02:22]MH_I2C_Read... [12:02:22]*** Stop cut motor [12:02:22]*** Cut end [12:02:22]Read from MH i2c: 01 07 00 [12:02:22]MH_I2C_Read... [12:02:22]Read from MH i2c: 01 07 00 30 09 00 00 00 00 00 FF 0F 4E [12:02:22]process_action close_receipt done [12:02:22]requested_data is exist [12:02:22]produce_requested_data [12:02:22]requested_item fm.sn is exist - process it [12:02:22]wFMCommunicate request_size=4 [12:02:22]MH_SAM_APDU [12:02:22]CAPDU: 80 11 00 00 [12:02:22]Write to MH i2c: E2 08 00 31 09 80 11 00 00 00 00 00 00 B4 [12:02:22]Write i2c OK [12:02:22]MH_I2C_Read... [12:02:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:22]Read from MH i2c: E2 [12:02:22]MH_I2C_Read... [12:02:22]Read from MH i2c: E2 17 00 [12:02:22]MH_I2C_Read... [12:02:22]Read from MH i2c: E2 17 00 31 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0A [12:02:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:02:22]wFMCommunicate OK [12:02:22]requested_item fd.num is exist - process it [12:02:22]SAM_PROTO_GetFieldsCounters [12:02:22]wFMCommunicate request_size=4 [12:02:22]MH_SAM_APDU [12:02:22]CAPDU: 80 13 00 00 [12:02:22]Write to MH i2c: E2 08 00 32 09 80 13 00 00 00 00 00 00 B7 [12:02:22]Write i2c OK [12:02:22]MH_I2C_Read... [12:02:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:02:22]Read from MH i2c: E2 [12:02:22]MH_I2C_Read... [12:02:22]Read from MH i2c: E2 62 00 [12:02:22]MH_I2C_Read... [12:02:22]Read from MH i2c: E2 62 00 32 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 87 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [12:02: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 87 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:02:22]wFMCommunicate OK [12:02:22]SAM_PROTO_GetFieldsCounters done [12:02:22]requested_item shift.num is exist - process it [12:02:22]requested_item shift.opened is exist - process it [12:02:22]req_shift_opened [12:02:22]FM_GetShiftState [12:02:22]SAM_PROTO_GetShiftState [12:02:22]wFMCommunicate request_size=4 [12:02:22]MH_SAM_APDU [12:02:22]CAPDU: 80 13 01 00 [12:02:22]Write to MH i2c: E2 08 00 33 09 80 13 01 00 00 00 00 00 B9 [12:02:22]Write i2c OK [12:02:22]MH_I2C_Read... [12:02:22]Read from MH i2c: E2 [12:02:22]MH_I2C_Read... [12:02:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:22]Read from MH i2c: E2 0E 00 [12:02:22]MH_I2C_Read... [12:02:22]Read from MH i2c: E2 0E 00 33 09 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 92 [12:02:22]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:02:22]wFMCommunicate OK [12:02:22]SAM_PROTO_GetShiftState done [12:02:22]FM_GetShiftState done [12:02:22]req_shift_opened done [12:02:22]requested_item shift.open_date is exist - process it [12:02:22]req_shift_open_date [12:02:22]req_shift_open_date done [12:02:22]produce_requested_data done [12:02:22]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165255,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [12:02:22]process_action_free close_receipt [12:02:22]json_value_free [12:02:22]json_value_free done [12:02:22]process_json_proto returns [12:02:22]Send response to host [12:02:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165255,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [12:02:22]free response buf [12:02:22]execute_script done [12:02:22]execute_script returns [12:02:22]free content buf [12:02:22]Sock 8.Close socket [12:02:22]Sock 8.Thread stoped [12:02:26]OFD Sender: No OFD packet to send [12:02:31]OFD Sender: No OFD packet to send [12:02:36]OFD Sender: No OFD packet to send [12:02:41]OFD Sender: No OFD packet to send [12:02:46]OFD Sender: No OFD packet to send [12:02:51]OFD Sender: No OFD packet to send [12:02:56]OFD Sender: No OFD packet to send [12:03:01]OFD Sender: No OFD packet to send [12:03:06]OFD Sender: No OFD packet to send [12:03:11]OFD Sender: No OFD packet to send [12:03:16]OFD Sender: No OFD packet to send [12:03:21]OFD Sender: No OFD packet to send [12:03:26]OFD Sender: No OFD packet to send [12:03:31]OFD Sender: No OFD packet to send [12:03:36]accept exits with 9 [12:03:36]New connection [12:03:36]New thread 3066711396 created [12:03:36]Thread 3066854756 joined [12:03:36]Waiting for new connection... [12:03:36] Sock 9.Parse request [12:03:36]Sock 9.Check first char [12:03:36]Sock 9.First char is OK [12:03:36]request: POST /json_proto HTTP/1.0 [12:03:36]Method: POST [12:03:36]URL: /json_proto [12:03:36]Method is POST - this is cgi request [12:03:36]url: /json_proto [12:03:36]query_string will be loaded in cgi processing [12:03:36]execute_cgi json_proto POST (null) [12:03:36]execute_cgi path=json_proto method=POST [12:03:36]POST find Content-Length [12:03:36]Host: 172.17.56.4:8080 [12:03:36]Content-Length: 677 [12:03:36]Content-Type: application/json [12:03:36] [12:03:36]POST finish read [12:03:36]Found Content-Length = 677 [12:03:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459364", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:36]execute_script... [12:03: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)459364", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:36]POST & json_proto [12:03:36]process_json_proto [12:03:36]json parsed OK: [12:03:36]protocol is kg_v1.0 [12:03:36]action value=close_receipt [12:03:36]process_action close_receipt [12:03:36]cmd_close_receipt [12:03:36]MH_GetDate [12:03:36]Write to MH i2c: F0 00 00 34 09 2C [12:03:36]Write i2c OK [12:03:36]MH_I2C_Read... [12:03:36]Read from MH i2c: F0 [12:03:36]MH_I2C_Read... [12:03:36]Read from MH i2c: F0 09 00 [12:03:36]MH_I2C_Read... [12:03:36]Read from MH i2c: F0 09 00 34 09 00 18 10 95 66 C9 DC B2 64 13 [12:03:36]GetLastDocTimeStamp 1721044939 [12:03:36]current date 1721045016 [12:03:36]FM_GetShiftState [12:03:36]SAM_PROTO_GetShiftState [12:03:36]wFMCommunicate request_size=4 [12:03:36]MH_SAM_APDU [12:03:36]CAPDU: 80 13 01 00 [12:03:36]Write to MH i2c: E2 08 00 35 09 80 13 01 00 00 00 00 00 BB [12:03:36]Write i2c OK [12:03:36]MH_I2C_Read... [12:03:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:36]Read from MH i2c: E2 [12:03:36]MH_I2C_Read... [12:03:36]Read from MH i2c: E2 0E 00 [12:03:36]MH_I2C_Read... [12:03:36]Read from MH i2c: E2 0E 00 35 09 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 94 [12:03:36]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:03:36]wFMCommunicate OK [12:03:36]SAM_PROTO_GetShiftState done [12:03:36]FM_GetShiftState done [12:03:36]opened in 1721003876 [12:03:36]opened+sec_in_day 1721090276 [12:03:36]quantity*price = 50008 [12:03:36]sum+1 = 50009 [12:03:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 129 15.07.2024 12:03 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165256 ФПД: 175737109564850 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T120336&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165256&fm=175737109564850&tin=02508201610067®Number=0000000000090829&sum=50000 [12:03:37]StoreToDocumentArchive [12:03:37]shift 448 fd 165256 [12:03:37]save to /storage/0448/doc_00165256 [12:03:37]save last doc name /storage/0448/doc_00165256 to /storage/kkm_last_doc_name [12:03:37]save OK [12:03:37]Clear old archive folders... [12:03:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:03:37]tlvbuf is B6F40D50 [12:03:37]SAM_PROTO_ClearQueue [12:03:37]wFMCommunicate request_size=4 [12:03:37]MH_SAM_APDU [12:03:37]CAPDU: 80 09 00 00 [12:03:37]Write to MH i2c: E2 08 00 42 09 80 09 00 00 00 00 00 00 BD [12:03:37]Write i2c OK [12:03:37]MH_I2C_Read... [12:03:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:03:37]Read from MH i2c: E2 [12:03:37]MH_I2C_Read... [12:03:37]Read from MH i2c: E2 03 00 [12:03:37]MH_I2C_Read... [12:03:37]Read from MH i2c: E2 03 00 42 09 00 90 00 BF [12:03:37]RAPDU: 90 00 [12:03:37]wFMCommunicate OK [12:03:37]SAM_PROTO_ClearQueue done [12:03:37]KKMCreateOFDPacket [12:03:37]OFDProtocolAddRootSTLVToBuf [12:03:37]FM_MakeSignedData [12:03:37]FM_MakeSignedData [12:03:37]SAM_PROTO_SignData [12:03:37]wFMCommunicate request_size=4 [12:03:37]MH_SAM_APDU [12:03:37]CAPDU: 80 0D 01 02 [12:03:37]Write to MH i2c: E2 08 00 43 09 80 0D 01 02 00 00 00 00 C5 [12:03:37]Write i2c OK [12:03:37]MH_I2C_Read... [12:03:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:03:37]Read from MH i2c: E2 [12:03:37]MH_I2C_Read... [12:03:37]Read from MH i2c: E2 03 00 [12:03:37]MH_I2C_Read... [12:03:37]Read from MH i2c: E2 03 00 43 09 00 90 00 C0 [12:03:37]RAPDU: 90 00 [12:03:37]wFMCommunicate OK [12:03:37]wFMCommunicate request_size=255 [12:03:37]MH_SAM_APDU [12:03: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 18 10 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 88 85 02 00 35 04 06 00 9F [12:03:37]Write to MH i2c: E2 02 01 44 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 18 10 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 88 85 02 00 35 04 06 00 9F 00 00 51 [12:03:37]Write i2c OK [12:03:37]MH_I2C_Read... [12:03:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:37]Read from MH i2c: E2 [12:03:37]MH_I2C_Read... [12:03:37]Read from MH i2c: E2 03 00 [12:03:37]MH_I2C_Read... [12:03:37]Read from MH i2c: E2 03 00 44 09 00 90 00 C1 [12:03:37]RAPDU: 90 00 [12:03:37]wFMCommunicate OK [12:03:37]wFMCommunicate request_size=10 [12:03:37]MH_SAM_APDU [12:03:37]CAPDU: 80 0D 02 02 05 D4 FB FD 4D B2 [12:03:37]Write to MH i2c: E2 0D 00 45 09 80 0D 02 02 05 00 D4 FB FD 4D B2 00 00 9D [12:03:37]Write i2c OK [12:03:37]MH_I2C_Read... [12:03:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:37]Read from MH i2c: E2 [12:03:37]MH_I2C_Read... [12:03:37]Read from MH i2c: E2 03 00 [12:03:37]MH_I2C_Read... [12:03:37]Read from MH i2c: E2 03 00 45 09 00 90 00 C2 [12:03:37]RAPDU: 90 00 [12:03:37]wFMCommunicate OK [12:03:37]wFMCommunicate request_size=4 [12:03:37]MH_SAM_APDU [12:03:37]CAPDU: 80 0D 03 02 [12:03:37]Write to MH i2c: E2 08 00 46 09 80 0D 03 02 00 00 00 00 CA [12:03:37]Write i2c OK [12:03:37]MH_I2C_Read... [12:03:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:03:37]Read from MH i2c: E2 [12:03:37]MH_I2C_Read... [12:03:37]Read from MH i2c: E2 0B 00 [12:03:37]MH_I2C_Read... [12:03:37]Read from MH i2c: E2 0B 00 46 09 00 44 B1 4B 77 F0 1B 64 39 90 00 2A [12:03:37]RAPDU: 44 B1 4B 77 F0 1B 64 39 90 00 [12:03:37]wFMCommunicate OK [12:03:37]SAM_PROTO_SignData done [12:03:37]FM_MakeSignedData done [12:03:37]CreateOFDProtocolMessage [12:03:37]wFMCommunicate request_size=4 [12:03:37]MH_SAM_APDU [12:03:37]CAPDU: 80 11 00 00 [12:03:37]Write to MH i2c: E2 08 00 47 09 80 11 00 00 00 00 00 00 CA [12:03:37]Write i2c OK [12:03:37]MH_I2C_Read... [12:03:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:37]Read from MH i2c: E2 [12:03:37]MH_I2C_Read... [12:03:37]Read from MH i2c: E2 17 00 [12:03:37]MH_I2C_Read... [12:03:37]Read from MH i2c: E2 17 00 47 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 20 [12:03:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:03:37]wFMCommunicate OK [12:03:37]CreateOFDProtocolMessage done [12:03:37]OFDSenderStorePacket 165256 [12:03:37]StoreOFDPacket docnum=165256 [12:03:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 87 44 07 01 BC 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 18 10 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 88 85 02 00 35 04 06 00 9F D4 FB FD 4D B2 44 B1 4B 77 F0 1B 64 39 [12:03:37]CheckFolder [12:03:37]dirname=/storage/ofd_packets [12:03:37]CheckFolder done [12:03:37]ProducePacketName [12:03:37]name=ofd_packets/00165256 [12:03:37]NVStorageSaveData ofd_packets/00165256 [12:03:37]File name is /storage/ofd_packets/00165256 [12:03:37]Write 301 bytes [12:03:37]NVStorageSaveData done [12:03:37]OFDSenderStorePacket done [12:03:37]KKMCreateOFDPacket done [12:03:37]NVStorageSaveData kkm_last_timestamp [12:03:37]File name is /storage/kkm_last_timestamp [12:03:37]Write 4 bytes [12:03:37]NVStorageSaveData done [12:03:37]ExternCall_PrintAddStr [12:03:37]wPrintStart [12:03:37]Write to MH i2c: 01 00 00 48 09 51 [12:03:37]Write i2c OK [12:03:37]MH_I2C_Read... [12:03:37]Read from MH i2c: 01 [12:03:37]MH_I2C_Read... [12:03:37]Read from MH i2c: 01 07 00 [12:03:37]MH_I2C_Read... [12:03:37]Read from MH i2c: 01 07 00 48 09 00 00 00 00 00 FF 0F 66 [12:03:37]RasterBufferAndPrint [12:03:37]line Счет N : (1)459364 [12:03:37]line ИНН: 02508201610067 [12:03:37]line Контрольно-Кассовый Чек [12:03:37]line ПРОДАЖА [12:03:37]line ТРК (МРК, ГНК) : 22 [12:03:37]line Товар: 2710124130 [12:03:37]line Аи-92-К-5 [12:03:37]line 7.600 * 65.80 [12:03:37]line = 500.08 [12:03:37]line НДС 12% НСП 1% [12:03:37]line > о реализуемом товаре [12:03:37]line ОКРУГЛЕНИЕ: -0.08 [12:03:37]line ИТОГО: 500.00 [12:03:37]line Внесено: 500.00 [12:03:37]line СДАЧА: 0.00 [12:03:37]line НСП 1% : 4.42 [12:03:37]line НДС 12% : 53.11 [12:03:37]line Наличными: 500.00 [12:03:37]line Безнал.: 0.00 [12:03:37]line Место: АЗС № 72 "Партнер Нефть" [12:03:37]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:03:37]line СНО: Общий режим [12:03:37]line Чек 129 15.07.2024 12:03 [12:03:37]line Смена: 448 ФФД: 1.0 [12:03:37]line ЗНМ: 0300000160 [12:03:37]line РНМ: 0000000000090829 [12:03:37]line Версия ККМ: 001 [12:03:37]line ФМ: 0000000000874718 [12:03:37]line ФД: 165256 [12:03:37]line ФПД: 175737109564850 [12:03:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T120336&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165256&fm=175737109564850&tin=02508201610067®Number=0000000000090829&sum=50000 [12:03:38]OFD Sender: Processing packet 165256 [packets to send 106, broken 105] [12:03:38]ProducePacketName [12:03:38]name=ofd_packets/00165256 [12:03:38]OFD Sender: To server: pG, [12:03:38]CommunicateWithHost lk.salyk.kg:30040 [12:03:38]ConnectInit lk.salyk.kg [12:03:38]written 0, free lines is 4095 [12:03:38]Connected sock=10 [12:03: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 37 31 38 0F 01 00 00 87 44 07 01 BC 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 18 10 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 88 85 02 00 35 04 06 00 9F D4 FB FD 4D B2 44 B1 4B 77 F0 1B 64 39 [12:03:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 10 D3 47 00 91 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 88 85 02 00 F4 03 04 00 A3 B6 94 66 B6 04 01 00 00 3F B1 29 F0 BA 30 DD F8 [12:03:38]CommunicateWithHost err = 0 [12:03:38]CheckOFDResponse [12:03:38]1017 (14) - 77093643461234 [12:03:38]1041 (16) - 0000000000874718 [12:03:38]1040 (4) - 165256 [12:03:38]1012 (4) - 15.07.2024 05:41 [12:03:38]1206 (1) - 0 [12:03:38]OFD Sender: Remove packet 165256 [12:03:38]ProducePacketName [12:03:38]name=ofd_packets/00165256 [12:03:38]NVStorageDeleteData [12:03:38]Write to MH i2c: 01 00 00 72 09 7B [12:03:38]Write i2c OK [12:03:38]MH_I2C_Read... [12:03:38]Read from MH i2c: 01 [12:03:38]MH_I2C_Read... [12:03:38]Read from MH i2c: 01 07 00 [12:03:38]MH_I2C_Read... [12:03:38]Read from MH i2c: 01 07 00 72 09 00 00 00 00 00 F3 0C 81 [12:03:38]RasterBufferAndPrint [12:03:38]line [12:03:38]line [12:03:38]line [12:03:38]line [12:03:38]line [12:03:38]written 0, free lines is 3322 [12:03:38]MH_Cut [12:03:38]Write to MH i2c: D1 01 00 79 09 01 54 [12:03:38]Write i2c OK [12:03:38]MH_I2C_Read... [12:03:38]Read from MH i2c: D1 [12:03:38]MH_I2C_Read... [12:03:38]Read from MH i2c: D1 01 00 [12:03:38]MH_I2C_Read... [12:03:38]Read from MH i2c: D1 01 00 79 09 00 53 [12:03:38]Write to MH i2c: 01 00 00 7A 09 83 [12:03:38]Write i2c OK [12:03:38]MH_I2C_Read... [12:03:38]OFD Sender: No OFD packet to send [12:03:39]*** Cut start [12:03:39]*** Partial cut [12:03:39]*** CUTSNS_PIN = 1 [12:03:39]*** CUTSNS_PIN = 0 [12:03:39]*** Brake cut motor [12:03:39]Read from MH i2c: 01 [12:03:39]MH_I2C_Read... [12:03:39]*** Stop cut motor [12:03:39]*** Cut end [12:03:39]Read from MH i2c: 01 07 00 [12:03:39]MH_I2C_Read... [12:03:39]Read from MH i2c: 01 07 00 7A 09 00 00 00 00 00 FF 0F 98 [12:03:39]process_action close_receipt done [12:03:39]requested_data is exist [12:03:39]produce_requested_data [12:03:39]requested_item fm.sn is exist - process it [12:03:39]wFMCommunicate request_size=4 [12:03:39]MH_SAM_APDU [12:03:39]CAPDU: 80 11 00 00 [12:03:39]Write to MH i2c: E2 08 00 7B 09 80 11 00 00 00 00 00 00 FE [12:03:39]Write i2c OK [12:03:39]MH_I2C_Read... [12:03:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:39]Read from MH i2c: E2 [12:03:39]MH_I2C_Read... [12:03:39]Read from MH i2c: E2 17 00 [12:03:39]MH_I2C_Read... [12:03:39]Read from MH i2c: E2 17 00 7B 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 54 [12:03:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:03:39]wFMCommunicate OK [12:03:39]requested_item fd.num is exist - process it [12:03:39]SAM_PROTO_GetFieldsCounters [12:03:39]wFMCommunicate request_size=4 [12:03:39]MH_SAM_APDU [12:03:39]CAPDU: 80 13 00 00 [12:03:39]Write to MH i2c: E2 08 00 7C 09 80 13 00 00 00 00 00 00 01 [12:03:39]Write i2c OK [12:03:39]MH_I2C_Read... [12:03:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:03:40]Read from MH i2c: E2 [12:03:40]MH_I2C_Read... [12:03:40]Read from MH i2c: E2 62 00 [12:03:40]MH_I2C_Read... [12:03:40]Read from MH i2c: E2 62 00 7C 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 88 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [12:03: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 88 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:03:40]wFMCommunicate OK [12:03:40]SAM_PROTO_GetFieldsCounters done [12:03:40]requested_item shift.num is exist - process it [12:03:40]requested_item shift.opened is exist - process it [12:03:40]req_shift_opened [12:03:40]FM_GetShiftState [12:03:40]SAM_PROTO_GetShiftState [12:03:40]wFMCommunicate request_size=4 [12:03:40]MH_SAM_APDU [12:03:40]CAPDU: 80 13 01 00 [12:03:40]Write to MH i2c: E2 08 00 7D 09 80 13 01 00 00 00 00 00 03 [12:03:40]Write i2c OK [12:03:40]MH_I2C_Read... [12:03:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:40]Read from MH i2c: E2 [12:03:40]MH_I2C_Read... [12:03:40]Read from MH i2c: E2 0E 00 [12:03:40]MH_I2C_Read... [12:03:40]Read from MH i2c: E2 0E 00 7D 09 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 DC [12:03:40]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:03:40]wFMCommunicate OK [12:03:40]SAM_PROTO_GetShiftState done [12:03:40]FM_GetShiftState done [12:03:40]req_shift_opened done [12:03:40]requested_item shift.open_date is exist - process it [12:03:40]req_shift_open_date [12:03:40]req_shift_open_date done [12:03:40]produce_requested_data done [12:03:40]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165256,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [12:03:40]process_action_free close_receipt [12:03:40]json_value_free [12:03:40]json_value_free done [12:03:40]process_json_proto returns [12:03:40]Send response to host [12:03:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165256,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [12:03:40]free response buf [12:03:40]execute_script done [12:03:40]execute_script returns [12:03:40]free content buf [12:03:40]Sock 9.Close socket [12:03:40]Sock 9.Thread stoped [12:03:44]OFD Sender: No OFD packet to send [12:03:49]OFD Sender: No OFD packet to send [12:03:54]OFD Sender: No OFD packet to send [12:03:59]OFD Sender: No OFD packet to send [12:04:04]OFD Sender: No OFD packet to send [12:04:06]accept exits with 8 [12:04:06]New connection [12:04:06]New thread 3066854756 created [12:04:06]Thread 3066711396 joined [12:04:06]Waiting for new connection... [12:04:06] Sock 8.Parse request [12:04:06]Sock 8.Check first char [12:04:06]Sock 8.First char is OK [12:04:06]request: POST /json_proto HTTP/1.0 [12:04:06]Method: POST [12:04:06]URL: /json_proto [12:04:06]Method is POST - this is cgi request [12:04:06]url: /json_proto [12:04:06]query_string will be loaded in cgi processing [12:04:06]execute_cgi json_proto POST (null) [12:04:06]execute_cgi path=json_proto method=POST [12:04:06]POST find Content-Length [12:04:06]Host: 172.17.56.4:8080 [12:04:06]Content-Length: 677 [12:04:06]Content-Type: application/json [12:04:06] [12:04:06]POST finish read [12:04:06]Found Content-Length = 677 [12:04:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459365", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:06]execute_script... [12:04:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459365", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:06]POST & json_proto [12:04:06]process_json_proto [12:04:06]json parsed OK: [12:04:06]protocol is kg_v1.0 [12:04:06]action value=close_receipt [12:04:06]process_action close_receipt [12:04:06]cmd_close_receipt [12:04:06]MH_GetDate [12:04:06]Write to MH i2c: F0 00 00 7E 09 76 [12:04:06]Write i2c OK [12:04:06]MH_I2C_Read... [12:04:06]Read from MH i2c: F0 [12:04:06]MH_I2C_Read... [12:04:06]Read from MH i2c: F0 09 00 [12:04:06]MH_I2C_Read... [12:04:06]Read from MH i2c: F0 09 00 7E 09 00 36 10 95 66 C9 DC B2 64 7B [12:04:06]GetLastDocTimeStamp 1721045016 [12:04:06]current date 1721045046 [12:04:06]FM_GetShiftState [12:04:06]SAM_PROTO_GetShiftState [12:04:06]wFMCommunicate request_size=4 [12:04:06]MH_SAM_APDU [12:04:06]CAPDU: 80 13 01 00 [12:04:06]Write to MH i2c: E2 08 00 7F 09 80 13 01 00 00 00 00 00 05 [12:04:06]Write i2c OK [12:04:06]MH_I2C_Read... [12:04:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:06]Read from MH i2c: E2 [12:04:06]MH_I2C_Read... [12:04:06]Read from MH i2c: E2 0E 00 [12:04:06]MH_I2C_Read... [12:04:06]Read from MH i2c: E2 0E 00 7F 09 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 DE [12:04:06]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:04:06]wFMCommunicate OK [12:04:06]SAM_PROTO_GetShiftState done [12:04:06]FM_GetShiftState done [12:04:06]opened in 1721003876 [12:04:06]opened+sec_in_day 1721090276 [12:04:06]quantity*price = 50008 [12:04:06]sum+1 = 50009 [12:04:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 130 15.07.2024 12:04 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165257 ФПД: 114683824423574 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T120406&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165257&fm=114683824423574&tin=02508201610067®Number=0000000000090829&sum=50000 [12:04:07]StoreToDocumentArchive [12:04:07]shift 448 fd 165257 [12:04:07]save to /storage/0448/doc_00165257 [12:04:07]save last doc name /storage/0448/doc_00165257 to /storage/kkm_last_doc_name [12:04:07]save OK [12:04:07]Clear old archive folders... [12:04:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:04:07]tlvbuf is 0183AB70 [12:04:07]SAM_PROTO_ClearQueue [12:04:07]wFMCommunicate request_size=4 [12:04:07]MH_SAM_APDU [12:04:07]CAPDU: 80 09 00 00 [12:04:07]Write to MH i2c: E2 08 00 8C 09 80 09 00 00 00 00 00 00 07 [12:04:07]Write i2c OK [12:04:07]MH_I2C_Read... [12:04:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:04:07]Read from MH i2c: E2 [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: E2 03 00 [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: E2 03 00 8C 09 00 90 00 09 [12:04:07]RAPDU: 90 00 [12:04:07]wFMCommunicate OK [12:04:07]SAM_PROTO_ClearQueue done [12:04:07]KKMCreateOFDPacket [12:04:07]OFDProtocolAddRootSTLVToBuf [12:04:07]FM_MakeSignedData [12:04:07]FM_MakeSignedData [12:04:07]SAM_PROTO_SignData [12:04:07]wFMCommunicate request_size=4 [12:04:07]MH_SAM_APDU [12:04:07]CAPDU: 80 0D 01 02 [12:04:07]Write to MH i2c: E2 08 00 8D 09 80 0D 01 02 00 00 00 00 0F [12:04:07]Write i2c OK [12:04:07]MH_I2C_Read... [12:04:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:04:07]Read from MH i2c: E2 [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: E2 03 00 [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: E2 03 00 8D 09 00 90 00 0A [12:04:07]RAPDU: 90 00 [12:04:07]wFMCommunicate OK [12:04:07]wFMCommunicate request_size=255 [12:04:07]MH_SAM_APDU [12:04: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 36 10 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 89 85 02 00 35 04 06 00 68 [12:04:07]Write to MH i2c: E2 02 01 8E 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 36 10 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 89 85 02 00 35 04 06 00 68 00 00 84 [12:04:07]Write i2c OK [12:04:07]MH_I2C_Read... [12:04:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:07]Read from MH i2c: E2 [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: E2 03 00 [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: E2 03 00 8E 09 00 90 00 0B [12:04:07]RAPDU: 90 00 [12:04:07]wFMCommunicate OK [12:04:07]wFMCommunicate request_size=10 [12:04:07]MH_SAM_APDU [12:04:07]CAPDU: 80 0D 02 02 05 4D E8 9D C2 96 [12:04:07]Write to MH i2c: E2 0D 00 8F 09 80 0D 02 02 05 00 4D E8 9D C2 96 00 00 46 [12:04:07]Write i2c OK [12:04:07]MH_I2C_Read... [12:04:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:07]Read from MH i2c: E2 [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: E2 03 00 [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: E2 03 00 8F 09 00 90 00 0C [12:04:07]RAPDU: 90 00 [12:04:07]wFMCommunicate OK [12:04:07]wFMCommunicate request_size=4 [12:04:07]MH_SAM_APDU [12:04:07]CAPDU: 80 0D 03 02 [12:04:07]Write to MH i2c: E2 08 00 90 09 80 0D 03 02 00 00 00 00 14 [12:04:07]Write i2c OK [12:04:07]MH_I2C_Read... [12:04:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:04:07]Read from MH i2c: E2 [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: E2 0B 00 [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: E2 0B 00 90 09 00 41 93 28 C1 A5 A1 AA 93 90 00 55 [12:04:07]RAPDU: 41 93 28 C1 A5 A1 AA 93 90 00 [12:04:07]wFMCommunicate OK [12:04:07]SAM_PROTO_SignData done [12:04:07]FM_MakeSignedData done [12:04:07]CreateOFDProtocolMessage [12:04:07]wFMCommunicate request_size=4 [12:04:07]MH_SAM_APDU [12:04:07]CAPDU: 80 11 00 00 [12:04:07]Write to MH i2c: E2 08 00 91 09 80 11 00 00 00 00 00 00 14 [12:04:07]Write i2c OK [12:04:07]MH_I2C_Read... [12:04:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:07]Read from MH i2c: E2 [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: E2 17 00 [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: E2 17 00 91 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6A [12:04:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:04:07]wFMCommunicate OK [12:04:07]CreateOFDProtocolMessage done [12:04:07]OFDSenderStorePacket 165257 [12:04:07]StoreOFDPacket docnum=165257 [12:04:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C8 E3 07 01 A2 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 36 10 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 89 85 02 00 35 04 06 00 68 4D E8 9D C2 96 41 93 28 C1 A5 A1 AA 93 [12:04:07]CheckFolder [12:04:07]dirname=/storage/ofd_packets [12:04:07]CheckFolder done [12:04:07]ProducePacketName [12:04:07]name=ofd_packets/00165257 [12:04:07]NVStorageSaveData ofd_packets/00165257 [12:04:07]File name is /storage/ofd_packets/00165257 [12:04:07]Write 301 bytes [12:04:07]NVStorageSaveData done [12:04:07]OFDSenderStorePacket done [12:04:07]KKMCreateOFDPacket done [12:04:07]NVStorageSaveData kkm_last_timestamp [12:04:07]File name is /storage/kkm_last_timestamp [12:04:07]Write 4 bytes [12:04:07]NVStorageSaveData done [12:04:07]ExternCall_PrintAddStr [12:04:07]wPrintStart [12:04:07]Write to MH i2c: 01 00 00 92 09 9B [12:04:07]Write i2c OK [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: 01 [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: 01 07 00 [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: 01 07 00 92 09 00 00 00 00 00 FF 0F B0 [12:04:07]RasterBufferAndPrint [12:04:07]line Счет N : (1)459365 [12:04:07]line ИНН: 02508201610067 [12:04:07]line Контрольно-Кассовый Чек [12:04:07]line ПРОДАЖА [12:04:07]line ТРК (МРК, ГНК) : 22 [12:04:07]line Товар: 2710124130 [12:04:07]line Аи-92-К-5 [12:04:07]line 7.600 * 65.80 [12:04:07]line = 500.08 [12:04:07]line НДС 12% НСП 1% [12:04:07]line > о реализуемом товаре [12:04:07]line ОКРУГЛЕНИЕ: -0.08 [12:04:07]line ИТОГО: 500.00 [12:04:07]line Внесено: 500.00 [12:04:07]line СДАЧА: 0.00 [12:04:07]line НСП 1% : 4.42 [12:04:07]line НДС 12% : 53.11 [12:04:07]line Наличными: 500.00 [12:04:07]line Безнал.: 0.00 [12:04:07]line Место: АЗС № 72 "Партнер Нефть" [12:04:07]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:04:07]line СНО: Общий режим [12:04:07]line Чек 130 15.07.2024 12:04 [12:04:07]line Смена: 448 ФФД: 1.0 [12:04:07]line ЗНМ: 0300000160 [12:04:07]line РНМ: 0000000000090829 [12:04:07]line Версия ККМ: 001 [12:04:07]line ФМ: 0000000000874718 [12:04:07]line ФД: 165257 [12:04:07]line ФПД: 114683824423574 [12:04:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T120406&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165257&fm=114683824423574&tin=02508201610067®Number=0000000000090829&sum=50000 [12:04:08]OFD Sender: Processing packet 165257 [packets to send 106, broken 105] [12:04:08]ProducePacketName [12:04:08]name=ofd_packets/00165257 [12:04:08]OFD Sender: To server: pG, [12:04:08]CommunicateWithHost lk.salyk.kg:30040 [12:04:08]ConnectInit lk.salyk.kg [12:04:08]written 0, free lines is 4095 [12:04:08]Connected sock=10 [12:04: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 37 31 38 0F 01 00 00 C8 E3 07 01 A2 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 36 10 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 89 85 02 00 35 04 06 00 68 4D E8 9D C2 96 41 93 28 C1 A5 A1 AA 93 [12:04:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 5C 42 47 00 43 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 89 85 02 00 F4 03 04 00 C1 B6 94 66 B6 04 01 00 00 2F EA 58 D7 9E E7 10 55 [12:04:08]CommunicateWithHost err = 0 [12:04:08]CheckOFDResponse [12:04:08]1017 (14) - 77093643461234 [12:04:08]1041 (16) - 0000000000874718 [12:04:08]1040 (4) - 165257 [12:04:08]1012 (4) - 15.07.2024 05:42 [12:04:08]1206 (1) - 0 [12:04:08]OFD Sender: Remove packet 165257 [12:04:08]ProducePacketName [12:04:08]name=ofd_packets/00165257 [12:04:08]NVStorageDeleteData [12:04:08]Write to MH i2c: 01 00 00 BC 09 C5 [12:04:08]Write i2c OK [12:04:08]MH_I2C_Read... [12:04:08]Read from MH i2c: 01 [12:04:08]MH_I2C_Read... [12:04:08]Read from MH i2c: 01 07 00 [12:04:08]MH_I2C_Read... [12:04:08]Read from MH i2c: 01 07 00 BC 09 00 00 00 00 00 F0 0C C8 [12:04:08]RasterBufferAndPrint [12:04:08]line [12:04:08]line [12:04:08]line [12:04:08]line [12:04:08]line [12:04:08]written 0, free lines is 3319 [12:04:08]MH_Cut [12:04:08]Write to MH i2c: D1 01 00 C3 09 01 9E [12:04:08]Write i2c OK [12:04:08]MH_I2C_Read... [12:04:08]Read from MH i2c: D1 [12:04:08]MH_I2C_Read... [12:04:08]Read from MH i2c: D1 01 00 [12:04:08]MH_I2C_Read... [12:04:08]Read from MH i2c: D1 01 00 C3 09 00 9D [12:04:08]Write to MH i2c: 01 00 00 C4 09 CD [12:04:08]Write i2c OK [12:04:08]MH_I2C_Read... [12:04:08]OFD Sender: No OFD packet to send [12:04:09]*** Cut start [12:04:09]*** Partial cut [12:04:09]*** CUTSNS_PIN = 1 [12:04:09]*** CUTSNS_PIN = 0 [12:04:09]*** Brake cut motor [12:04:09]Read from MH i2c: 01 [12:04:09]MH_I2C_Read... [12:04:09]*** Stop cut motor [12:04:09]*** Cut end [12:04:09]Read from MH i2c: 01 07 00 [12:04:09]MH_I2C_Read... [12:04:09]Read from MH i2c: 01 07 00 C4 09 00 00 00 00 00 FF 0F E2 [12:04:09]process_action close_receipt done [12:04:09]requested_data is exist [12:04:09]produce_requested_data [12:04:09]requested_item fm.sn is exist - process it [12:04:09]wFMCommunicate request_size=4 [12:04:09]MH_SAM_APDU [12:04:09]CAPDU: 80 11 00 00 [12:04:09]Write to MH i2c: E2 08 00 C5 09 80 11 00 00 00 00 00 00 48 [12:04:09]Write i2c OK [12:04:09]MH_I2C_Read... [12:04:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:09]Read from MH i2c: E2 [12:04:09]MH_I2C_Read... [12:04:09]Read from MH i2c: E2 17 00 [12:04:09]MH_I2C_Read... [12:04:09]Read from MH i2c: E2 17 00 C5 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 9E [12:04:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:04:09]wFMCommunicate OK [12:04:09]requested_item fd.num is exist - process it [12:04:09]SAM_PROTO_GetFieldsCounters [12:04:09]wFMCommunicate request_size=4 [12:04:09]MH_SAM_APDU [12:04:09]CAPDU: 80 13 00 00 [12:04:09]Write to MH i2c: E2 08 00 C6 09 80 13 00 00 00 00 00 00 4B [12:04:09]Write i2c OK [12:04:09]MH_I2C_Read... [12:04:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:04:10]Read from MH i2c: E2 [12:04:10]MH_I2C_Read... [12:04:10]Read from MH i2c: E2 62 00 [12:04:10]MH_I2C_Read... [12:04:10]Read from MH i2c: E2 62 00 C6 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 89 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [12:04: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 89 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:04:10]wFMCommunicate OK [12:04:10]SAM_PROTO_GetFieldsCounters done [12:04:10]requested_item shift.num is exist - process it [12:04:10]requested_item shift.opened is exist - process it [12:04:10]req_shift_opened [12:04:10]FM_GetShiftState [12:04:10]SAM_PROTO_GetShiftState [12:04:10]wFMCommunicate request_size=4 [12:04:10]MH_SAM_APDU [12:04:10]CAPDU: 80 13 01 00 [12:04:10]Write to MH i2c: E2 08 00 C7 09 80 13 01 00 00 00 00 00 4D [12:04:10]Write i2c OK [12:04:10]MH_I2C_Read... [12:04:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:10]Read from MH i2c: E2 [12:04:10]MH_I2C_Read... [12:04:10]Read from MH i2c: E2 0E 00 [12:04:10]MH_I2C_Read... [12:04:10]Read from MH i2c: E2 0E 00 C7 09 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 26 [12:04:10]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:04:10]wFMCommunicate OK [12:04:10]SAM_PROTO_GetShiftState done [12:04:10]FM_GetShiftState done [12:04:10]req_shift_opened done [12:04:10]requested_item shift.open_date is exist - process it [12:04:10]req_shift_open_date [12:04:10]req_shift_open_date done [12:04:10]produce_requested_data done [12:04:10]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165257,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [12:04:10]process_action_free close_receipt [12:04:10]json_value_free [12:04:10]json_value_free done [12:04:10]process_json_proto returns [12:04:10]Send response to host [12:04:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165257,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [12:04:10]free response buf [12:04:10]execute_script done [12:04:10]execute_script returns [12:04:10]free content buf [12:04:10]Sock 8.Close socket [12:04:10]Sock 8.Thread stoped [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:29]OFD Sender: No OFD packet to send [12:04:34]OFD Sender: No OFD packet to send [12:04:39]OFD Sender: No OFD packet to send [12:04:44]OFD Sender: No OFD packet to send [12:04:49]OFD Sender: No OFD packet to send [12:04:54]OFD Sender: No OFD packet to send [12:04:59]OFD Sender: No OFD packet to send [12:05:04]OFD Sender: No OFD packet to send [12:05:09]OFD Sender: No OFD packet to send [12:05:14]OFD Sender: No OFD packet to send [12:05:19]OFD Sender: No OFD packet to send [12:05:24]OFD Sender: No OFD packet to send [12:05:29]OFD Sender: No OFD packet to send [12:05:34]OFD Sender: No OFD packet to send [12:05:39]OFD Sender: No OFD packet to send [12:05:44]OFD Sender: No OFD packet to send [12:05:49]OFD Sender: No OFD packet to send [12:05:54]OFD Sender: No OFD packet to send [12:05:59]OFD Sender: No OFD packet to send [12:06:04]OFD Sender: No OFD packet to send [12:06:09]OFD Sender: No OFD packet to send [12:06:14]OFD Sender: No OFD packet to send [12:06:19]OFD Sender: No OFD packet to send [12:06:24]OFD Sender: No OFD packet to send [12:06:29]OFD Sender: No OFD packet to send [12:06:34]OFD Sender: No OFD packet to send [12:06:39]OFD Sender: No OFD packet to send [12:06:44]OFD Sender: No OFD packet to send [12:06:49]OFD Sender: No OFD packet to send [12:06:54]OFD Sender: No OFD packet to send [12:06:59]OFD Sender: No OFD packet to send [12:07:04]OFD Sender: No OFD packet to send [12:07:09]OFD Sender: No OFD packet to send [12:07:14]OFD Sender: No OFD packet to send [12:07:19]OFD Sender: No OFD packet to send [12:07:24]OFD Sender: No OFD packet to send [12:07:29]OFD Sender: No OFD packet to send [12:07:34]OFD Sender: No OFD packet to send [12:07:39]OFD Sender: No OFD packet to send [12:07:44]OFD Sender: No OFD packet to send [12:07:49]OFD Sender: No OFD packet to send [12:07:54]OFD Sender: No OFD packet to send [12:07:59]OFD Sender: No OFD packet to send [12:08:04]OFD Sender: No OFD packet to send [12:08:09]OFD Sender: No OFD packet to send [12:08:14]OFD Sender: No OFD packet to send [12:08:19]OFD Sender: No OFD packet to send [12:08:24]OFD Sender: No OFD packet to send [12:08:29]OFD Sender: No OFD packet to send [12:08:34]OFD Sender: No OFD packet to send [12:08:39]OFD Sender: No OFD packet to send [12:08:44]OFD Sender: No OFD packet to send [12:08:49]OFD Sender: No OFD packet to send [12:08:54]OFD Sender: No OFD packet to send [12:08:55]accept exits with 9 [12:08:55]New connection [12:08:55]New thread 3066711396 created [12:08:55]Thread 3066854756 joined [12:08:55]Waiting for new connection... [12:08:55] Sock 9.Parse request [12:08:55]Sock 9.Check first char [12:08:55]Sock 9.First char is OK [12:08:55]request: POST /json_proto HTTP/1.0 [12:08:55]Method: POST [12:08:55]URL: /json_proto [12:08:55]Method is POST - this is cgi request [12:08:55]url: /json_proto [12:08:55]query_string will be loaded in cgi processing [12:08:55]execute_cgi json_proto POST (null) [12:08:55]execute_cgi path=json_proto method=POST [12:08:55]POST find Content-Length [12:08:55]Host: 172.17.56.4:8080 [12:08:55]Content-Length: 1195 [12:08:55]Content-Type: application/json [12:08:55] [12:08:55]POST finish read [12:08:55]Found Content-Length = 1195 [12:08:55]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 72\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0434\u044B\u043A\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)459366\u000A15.07.2024 11:34\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 65.80\u000A\u0418\u0422\u041E\u0413: 1974.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\u000A4114348;4114347;4114346\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:08:55]execute_script... [12:08:55]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 72\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0434\u044B\u043A\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)459366\u000A15.07.2024 11:34\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 65.80\u000A\u0418\u0422\u041E\u0413: 1974.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\u000A4114348;4114347;4114346\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:08:55]POST & json_proto [12:08:55]process_json_proto [12:08:55]json parsed OK: [12:08:55]protocol is kg_v1.0 [12:08:55]action value=print_text [12:08:55]process_action print_text [12:08:55]cmd_print_text [12:08:55]ExternCall_PrintAddStr [12:08:55]wPrintStart [12:08:55]Write to MH i2c: 01 00 00 C8 09 D1 [12:08:55]Write i2c OK [12:08:55]MH_I2C_Read... [12:08:55]Read from MH i2c: 01 [12:08:55]MH_I2C_Read... [12:08:55]Read from MH i2c: 01 07 00 [12:08:55]MH_I2C_Read... [12:08:55]Read from MH i2c: 01 07 00 C8 09 00 00 00 00 00 FF 0F E6 [12:08:55]RasterBufferAndPrint [12:08:55]line *****ТОВАРНЫЙ ЧЕК***** [12:08:55]line АЗС 72 [12:08:55]line Партнер нефть [12:08:55]line 02508201610067 [12:08:55]line Кассир : Садыков Н. [12:08:55]line Счет N : (1)459366 [12:08:55]line 15.07.2024 11:34 [12:08:55]line ПРОДАЖА [12:08:55]line ТРК (МРК, ГНК): 22 [12:08:55]line Вид ГСМ : 2710124130 [12:08:55]line Аи-92-К-5 [12:08:55]line 30.000 x 65.80 [12:08:55]line ИТОГ: 1974.00 [12:08:55]line Тип оплаты: Талоны: Партнер нефть [12:08:55]line 4114348;4114347;4114346 [12:08:55]line ______________________ [12:08:55]line (подпись) [12:08:55]written 0, free lines is 4095 [12:08:55]Write to MH i2c: 01 00 00 DC 09 E5 [12:08:55]Write i2c OK [12:08:55]MH_I2C_Read... [12:08:55]Read from MH i2c: 01 [12:08:55]MH_I2C_Read... [12:08:55]Read from MH i2c: 01 07 00 [12:08:55]MH_I2C_Read... [12:08:55]Read from MH i2c: 01 07 00 DC 09 00 00 00 00 00 17 0E 11 [12:08:55]RasterBufferAndPrint [12:08:55]line [12:08:55]line [12:08:55]line [12:08:55]line [12:08:55]line [12:08:55]written 0, free lines is 3609 [12:08:55]MH_Cut [12:08:55]Write to MH i2c: D1 01 00 E3 09 01 BE [12:08:55]Write i2c OK [12:08:55]MH_I2C_Read... [12:08:55]Read from MH i2c: D1 [12:08:55]MH_I2C_Read... [12:08:55]Read from MH i2c: D1 01 00 [12:08:55]MH_I2C_Read... [12:08:55]Read from MH i2c: D1 01 00 E3 09 00 BD [12:08:55]Write to MH i2c: 01 00 00 E4 09 ED [12:08:55]Write i2c OK [12:08:55]MH_I2C_Read... [12:08:56]*** Cut start [12:08:56]*** Partial cut [12:08:56]*** CUTSNS_PIN = 1 [12:08:56]*** CUTSNS_PIN = 0 [12:08:56]*** Brake cut motor [12:08:56]Read from MH i2c: 01 [12:08:56]MH_I2C_Read... [12:08:56]Read from MH i2c: 01 07 00 [12:08:57]MH_I2C_Read... [12:08:57]*** Stop cut motor [12:08:57]*** Cut end [12:08:57]Read from MH i2c: 01 07 00 E4 09 00 00 00 00 00 FF 0F 02 [12:08:57]process_action print_text done [12:08:57]requested_data is exist [12:08:57]produce_requested_data [12:08:57]requested_item fm.sn is exist - process it [12:08:57]wFMCommunicate request_size=4 [12:08:57]MH_SAM_APDU [12:08:57]CAPDU: 80 11 00 00 [12:08:57]Write to MH i2c: E2 08 00 E5 09 80 11 00 00 00 00 00 00 68 [12:08:57]Write i2c OK [12:08:57]MH_I2C_Read... [12:08:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:57]Read from MH i2c: E2 [12:08:57]MH_I2C_Read... [12:08:57]Read from MH i2c: E2 17 00 [12:08:57]MH_I2C_Read... [12:08:57]Read from MH i2c: E2 17 00 E5 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 BE [12:08:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:08:57]wFMCommunicate OK [12:08:57]requested_item fd.num is exist - process it [12:08:57]SAM_PROTO_GetFieldsCounters [12:08:57]wFMCommunicate request_size=4 [12:08:57]MH_SAM_APDU [12:08:57]CAPDU: 80 13 00 00 [12:08:57]Write to MH i2c: E2 08 00 E6 09 80 13 00 00 00 00 00 00 6B [12:08:57]Write i2c OK [12:08:57]MH_I2C_Read... [12:08:57]Read from MH i2c: E2 [12:08:57]MH_I2C_Read... [12:08:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:08:57]Read from MH i2c: E2 62 00 [12:08:57]MH_I2C_Read... [12:08:57]Read from MH i2c: E2 62 00 E6 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 89 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [12:08:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 89 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:08:57]wFMCommunicate OK [12:08:57]SAM_PROTO_GetFieldsCounters done [12:08:57]requested_item shift.num is exist - process it [12:08:57]requested_item shift.opened is exist - process it [12:08:57]req_shift_opened [12:08:57]FM_GetShiftState [12:08:57]SAM_PROTO_GetShiftState [12:08:57]wFMCommunicate request_size=4 [12:08:57]MH_SAM_APDU [12:08:57]CAPDU: 80 13 01 00 [12:08:57]Write to MH i2c: E2 08 00 E7 09 80 13 01 00 00 00 00 00 6D [12:08:57]Write i2c OK [12:08:57]MH_I2C_Read... [12:08:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:57]Read from MH i2c: E2 [12:08:57]MH_I2C_Read... [12:08:57]Read from MH i2c: E2 0E 00 [12:08:57]MH_I2C_Read... [12:08:57]Read from MH i2c: E2 0E 00 E7 09 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 46 [12:08:57]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:08:57]wFMCommunicate OK [12:08:57]SAM_PROTO_GetShiftState done [12:08:57]FM_GetShiftState done [12:08:57]req_shift_opened done [12:08:57]requested_item shift.open_date is exist - process it [12:08:57]req_shift_open_date [12:08:57]req_shift_open_date done [12:08:57]produce_requested_data done [12:08:57]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165257,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [12:08:57]process_action_free print_text [12:08:57]json_value_free [12:08:57]json_value_free done [12:08:57]process_json_proto returns [12:08:57]Send response to host [12:08:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165257,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [12:08:57]free response buf [12:08:57]execute_script done [12:08:57]execute_script returns [12:08:57]free content buf [12:08:57]Sock 9.Close socket [12:08:57]Sock 9.Thread stoped [12:08:59]OFD Sender: No OFD packet to send [12:09:04]OFD Sender: No OFD packet to send [12:09:09]OFD Sender: No OFD packet to send [12:09:14]OFD Sender: No OFD packet to send [12:09:19]OFD Sender: No OFD packet to send [12:09:24]OFD Sender: No OFD packet to send [12:09:26]accept exits with 8 [12:09:26]New connection [12:09:26]New thread 3066854756 created [12:09:26]Thread 3066711396 joined [12:09:26]Waiting for new connection... [12:09:26] Sock 8.Parse request [12:09:26]Sock 8.Check first char [12:09:26]Sock 8.First char is OK [12:09:26]request: POST /json_proto HTTP/1.0 [12:09:26]Method: POST [12:09:26]URL: /json_proto [12:09:26]Method is POST - this is cgi request [12:09:26]url: /json_proto [12:09:26]query_string will be loaded in cgi processing [12:09:26]execute_cgi json_proto POST (null) [12:09:26]execute_cgi path=json_proto method=POST [12:09:26]POST find Content-Length [12:09:26]Host: 172.17.56.4:8080 [12:09:26]Content-Length: 677 [12:09:26]Content-Type: application/json [12:09:26] [12:09:26]POST finish read [12:09:26]Found Content-Length = 677 [12:09:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459367", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:26]execute_script... [12:09:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459367", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:26]POST & json_proto [12:09:26]process_json_proto [12:09:26]json parsed OK: [12:09:26]protocol is kg_v1.0 [12:09:26]action value=close_receipt [12:09:26]process_action close_receipt [12:09:26]cmd_close_receipt [12:09:26]MH_GetDate [12:09:26]Write to MH i2c: F0 00 00 E8 09 E0 [12:09:26]Write i2c OK [12:09:26]MH_I2C_Read... [12:09:26]Read from MH i2c: F0 [12:09:26]MH_I2C_Read... [12:09:26]Read from MH i2c: F0 09 00 [12:09:26]MH_I2C_Read... [12:09:26]Read from MH i2c: F0 09 00 E8 09 00 77 11 95 66 C9 DC B2 64 27 [12:09:26]GetLastDocTimeStamp 1721045046 [12:09:26]current date 1721045367 [12:09:26]FM_GetShiftState [12:09:26]SAM_PROTO_GetShiftState [12:09:26]wFMCommunicate request_size=4 [12:09:26]MH_SAM_APDU [12:09:26]CAPDU: 80 13 01 00 [12:09:26]Write to MH i2c: E2 08 00 E9 09 80 13 01 00 00 00 00 00 6F [12:09:26]Write i2c OK [12:09:26]MH_I2C_Read... [12:09:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:26]Read from MH i2c: E2 [12:09:26]MH_I2C_Read... [12:09:26]Read from MH i2c: E2 0E 00 [12:09:26]MH_I2C_Read... [12:09:26]Read from MH i2c: E2 0E 00 E9 09 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 48 [12:09:26]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:09:26]wFMCommunicate OK [12:09:26]SAM_PROTO_GetShiftState done [12:09:26]FM_GetShiftState done [12:09:26]opened in 1721003876 [12:09:26]opened+sec_in_day 1721090276 [12:09:26]quantity*price = 40006 [12:09:26]sum+1 = 40007 [12:09:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 131 15.07.2024 12:09 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165258 ФПД: 161809029975137 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T120927&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165258&fm=161809029975137&tin=02508201610067®Number=0000000000090829&sum=40000 [12:09:27]StoreToDocumentArchive [12:09:27]shift 448 fd 165258 [12:09:27]save to /storage/0448/doc_00165258 [12:09:27]save last doc name /storage/0448/doc_00165258 to /storage/kkm_last_doc_name [12:09:27]save OK [12:09:27]Clear old archive folders... [12:09:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:09:27]tlvbuf is 018528F0 [12:09:27]SAM_PROTO_ClearQueue [12:09:27]wFMCommunicate request_size=4 [12:09:27]MH_SAM_APDU [12:09:27]CAPDU: 80 09 00 00 [12:09:27]Write to MH i2c: E2 08 00 F6 09 80 09 00 00 00 00 00 00 71 [12:09:27]Write i2c OK [12:09:27]MH_I2C_Read... [12:09:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:09:27]Read from MH i2c: E2 [12:09:27]MH_I2C_Read... [12:09:27]Read from MH i2c: E2 03 00 [12:09:27]MH_I2C_Read... [12:09:27]Read from MH i2c: E2 03 00 F6 09 00 90 00 73 [12:09:27]RAPDU: 90 00 [12:09:27]wFMCommunicate OK [12:09:27]SAM_PROTO_ClearQueue done [12:09:27]KKMCreateOFDPacket [12:09:27]OFDProtocolAddRootSTLVToBuf [12:09:27]FM_MakeSignedData [12:09:27]FM_MakeSignedData [12:09:27]SAM_PROTO_SignData [12:09:27]wFMCommunicate request_size=4 [12:09:27]MH_SAM_APDU [12:09:27]CAPDU: 80 0D 01 02 [12:09:27]Write to MH i2c: E2 08 00 F7 09 80 0D 01 02 00 00 00 00 79 [12:09:27]Write i2c OK [12:09:27]MH_I2C_Read... [12:09:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:09:28]Read from MH i2c: E2 [12:09:28]MH_I2C_Read... [12:09:28]Read from MH i2c: E2 03 00 [12:09:28]MH_I2C_Read... [12:09:28]Read from MH i2c: E2 03 00 F7 09 00 90 00 74 [12:09:28]RAPDU: 90 00 [12:09:28]wFMCommunicate OK [12:09:28]wFMCommunicate request_size=255 [12:09:28]MH_SAM_APDU [12:09:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 77 11 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8A 85 02 00 35 04 06 00 93 [12:09:28]Write to MH i2c: E2 02 01 F8 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 77 11 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8A 85 02 00 35 04 06 00 93 00 00 3D [12:09:28]Write i2c OK [12:09:28]MH_I2C_Read... [12:09:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:28]Read from MH i2c: E2 [12:09:28]MH_I2C_Read... [12:09:28]Read from MH i2c: E2 03 00 [12:09:28]MH_I2C_Read... [12:09:28]Read from MH i2c: E2 03 00 F8 09 00 90 00 75 [12:09:28]RAPDU: 90 00 [12:09:28]wFMCommunicate OK [12:09:28]wFMCommunicate request_size=10 [12:09:28]MH_SAM_APDU [12:09:28]CAPDU: 80 0D 02 02 05 2A 19 C0 CC 61 [12:09:28]Write to MH i2c: E2 0D 00 F9 09 80 0D 02 02 05 00 2A 19 C0 CC 61 00 00 B6 [12:09:28]Write i2c OK [12:09:28]MH_I2C_Read... [12:09:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:28]Read from MH i2c: E2 [12:09:28]MH_I2C_Read... [12:09:28]Read from MH i2c: E2 03 00 [12:09:28]MH_I2C_Read... [12:09:28]Read from MH i2c: E2 03 00 F9 09 00 90 00 76 [12:09:28]RAPDU: 90 00 [12:09:28]wFMCommunicate OK [12:09:28]wFMCommunicate request_size=4 [12:09:28]MH_SAM_APDU [12:09:28]CAPDU: 80 0D 03 02 [12:09:28]Write to MH i2c: E2 08 00 FA 09 80 0D 03 02 00 00 00 00 7E [12:09:28]Write i2c OK [12:09:28]MH_I2C_Read... [12:09:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:09:28]Read from MH i2c: E2 [12:09:28]MH_I2C_Read... [12:09:28]Read from MH i2c: E2 0B 00 [12:09:28]MH_I2C_Read... [12:09:28]Read from MH i2c: E2 0B 00 FA 09 00 BD 3A 78 CB 26 3B 04 B9 90 00 D7 [12:09:28]RAPDU: BD 3A 78 CB 26 3B 04 B9 90 00 [12:09:28]wFMCommunicate OK [12:09:28]SAM_PROTO_SignData done [12:09:28]FM_MakeSignedData done [12:09:28]CreateOFDProtocolMessage [12:09:28]wFMCommunicate request_size=4 [12:09:28]MH_SAM_APDU [12:09:28]CAPDU: 80 11 00 00 [12:09:28]Write to MH i2c: E2 08 00 FB 09 80 11 00 00 00 00 00 00 7E [12:09:28]Write i2c OK [12:09:28]MH_I2C_Read... [12:09:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:28]Read from MH i2c: E2 [12:09:28]MH_I2C_Read... [12:09:28]Read from MH i2c: E2 17 00 [12:09:28]MH_I2C_Read... [12:09:28]Read from MH i2c: E2 17 00 FB 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D4 [12:09:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:09:28]wFMCommunicate OK [12:09:28]CreateOFDProtocolMessage done [12:09:28]OFDSenderStorePacket 165258 [12:09:28]StoreOFDPacket docnum=165258 [12:09:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 CE 7A 07 01 24 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 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 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 77 11 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8A 85 02 00 35 04 06 00 93 2A 19 C0 CC 61 BD 3A 78 CB 26 3B 04 B9 [12:09:28]CheckFolder [12:09:28]dirname=/storage/ofd_packets [12:09:28]CheckFolder done [12:09:28]ProducePacketName [12:09:28]name=ofd_packets/00165258 [12:09:28]NVStorageSaveData ofd_packets/00165258 [12:09:28]File name is /storage/ofd_packets/00165258 [12:09:28]Write 301 bytes [12:09:28]NVStorageSaveData done [12:09:28]OFDSenderStorePacket done [12:09:28]KKMCreateOFDPacket done [12:09:28]NVStorageSaveData kkm_last_timestamp [12:09:28]File name is /storage/kkm_last_timestamp [12:09:28]Write 4 bytes [12:09:28]NVStorageSaveData done [12:09:28]ExternCall_PrintAddStr [12:09:28]wPrintStart [12:09:28]Write to MH i2c: 01 00 00 FC 09 05 [12:09:28]Write i2c OK [12:09:28]MH_I2C_Read... [12:09:28]Read from MH i2c: 01 [12:09:28]MH_I2C_Read... [12:09:28]Read from MH i2c: 01 07 00 [12:09:28]MH_I2C_Read... [12:09:28]Read from MH i2c: 01 07 00 FC 09 00 00 00 00 00 FF 0F 1A [12:09:28]RasterBufferAndPrint [12:09:28]line Счет N : (1)459367 [12:09:28]line ИНН: 02508201610067 [12:09:28]line Контрольно-Кассовый Чек [12:09:28]line ПРОДАЖА [12:09:28]line ТРК (МРК, ГНК) : 22 [12:09:28]line Товар: 2710124130 [12:09:28]line Аи-92-К-5 [12:09:28]line 6.080 * 65.80 [12:09:28]line = 400.06 [12:09:28]line НДС 12% НСП 1% [12:09:28]line > о реализуемом товаре [12:09:28]line ОКРУГЛЕНИЕ: -0.06 [12:09:28]line ИТОГО: 400.00 [12:09:28]line Внесено: 400.00 [12:09:28]line СДАЧА: 0.00 [12:09:28]line НСП 1% : 3.54 [12:09:28]line НДС 12% : 42.48 [12:09:28]line Наличными: 400.00 [12:09:28]line Безнал.: 0.00 [12:09:28]line Место: АЗС № 72 "Партнер Нефть" [12:09:28]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:09:28]line СНО: Общий режим [12:09:28]line Чек 131 15.07.2024 12:09 [12:09:28]line Смена: 448 ФФД: 1.0 [12:09:28]line ЗНМ: 0300000160 [12:09:28]line РНМ: 0000000000090829 [12:09:28]line Версия ККМ: 001 [12:09:28]line ФМ: 0000000000874718 [12:09:28]line ФД: 165258 [12:09:28]line ФПД: 161809029975137 [12:09:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T120927&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165258&fm=161809029975137&tin=02508201610067®Number=0000000000090829&sum=40000 [12:09:28]written 0, free lines is 4095 [12:09:28]OFD Sender: Processing packet 165258 [packets to send 106, broken 105] [12:09:28]ProducePacketName [12:09:28]name=ofd_packets/00165258 [12:09:28]OFD Sender: To server: pG, [12:09:28]CommunicateWithHost lk.salyk.kg:30040 [12:09:28]ConnectInit lk.salyk.kg [12:09:28]Connected sock=10 [12:09:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 CE 7A 07 01 24 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 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 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 77 11 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8A 85 02 00 35 04 06 00 93 2A 19 C0 CC 61 BD 3A 78 CB 26 3B 04 B9 [12:09:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 1F 89 47 00 E3 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 37 31 38 10 04 04 00 8A 85 02 00 F4 03 04 00 02 B8 94 66 B6 04 01 00 00 4C 7E 80 A7 95 5E 82 18 [12:09:29]CommunicateWithHost err = 0 [12:09:29]CheckOFDResponse [12:09:29]1017 (14) - 77093643461234 [12:09:29]1041 (16) - 0000000000874718 [12:09:29]1040 (4) - 165258 [12:09:29]1012 (4) - 15.07.2024 05:47 [12:09:29]1206 (1) - 0 [12:09:29]OFD Sender: Remove packet 165258 [12:09:29]ProducePacketName [12:09:29]name=ofd_packets/00165258 [12:09:29]NVStorageDeleteData [12:09:29]Write to MH i2c: 01 00 00 26 0A 30 [12:09:29]Write i2c OK [12:09:29]MH_I2C_Read... [12:09:29]Read from MH i2c: 01 [12:09:29]MH_I2C_Read... [12:09:29]Read from MH i2c: 01 07 00 [12:09:29]MH_I2C_Read... [12:09:29]Read from MH i2c: 01 07 00 26 0A 00 00 00 00 00 F6 0C 39 [12:09:29]RasterBufferAndPrint [12:09:29]line [12:09:29]line [12:09:29]line [12:09:29]line [12:09:29]line [12:09:29]written 0, free lines is 3324 [12:09:29]MH_Cut [12:09:29]Write to MH i2c: D1 01 00 2D 0A 01 09 [12:09:29]Write i2c OK [12:09:29]MH_I2C_Read... [12:09:29]Read from MH i2c: D1 [12:09:29]MH_I2C_Read... [12:09:29]Read from MH i2c: D1 01 00 [12:09:29]MH_I2C_Read... [12:09:29]Read from MH i2c: D1 01 00 2D 0A 00 08 [12:09:29]Write to MH i2c: 01 00 00 2E 0A 38 [12:09:29]Write i2c OK [12:09:29]MH_I2C_Read... [12:09:29]OFD Sender: No OFD packet to send [12:09:29]*** Cut start [12:09:29]*** Partial cut [12:09:29]*** CUTSNS_PIN = 1 [12:09:29]*** CUTSNS_PIN = 0 [12:09:30]*** Brake cut motor [12:09:30]Read from MH i2c: 01 [12:09:30]MH_I2C_Read... [12:09:30]*** Stop cut motor [12:09:30]*** Cut end [12:09:30]Read from MH i2c: 01 07 00 [12:09:30]MH_I2C_Read... [12:09:30]Read from MH i2c: 01 07 00 2E 0A 00 00 00 00 00 FF 0F 4D [12:09:30]process_action close_receipt done [12:09:30]requested_data is exist [12:09:30]produce_requested_data [12:09:30]requested_item fm.sn is exist - process it [12:09:30]wFMCommunicate request_size=4 [12:09:30]MH_SAM_APDU [12:09:30]CAPDU: 80 11 00 00 [12:09:30]Write to MH i2c: E2 08 00 2F 0A 80 11 00 00 00 00 00 00 B3 [12:09:30]Write i2c OK [12:09:30]MH_I2C_Read... [12:09:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:30]Read from MH i2c: E2 [12:09:30]MH_I2C_Read... [12:09:30]Read from MH i2c: E2 17 00 [12:09:30]MH_I2C_Read... [12:09:30]Read from MH i2c: E2 17 00 2F 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 09 [12:09:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:09:30]wFMCommunicate OK [12:09:30]requested_item fd.num is exist - process it [12:09:30]SAM_PROTO_GetFieldsCounters [12:09:30]wFMCommunicate request_size=4 [12:09:30]MH_SAM_APDU [12:09:30]CAPDU: 80 13 00 00 [12:09:30]Write to MH i2c: E2 08 00 30 0A 80 13 00 00 00 00 00 00 B6 [12:09:30]Write i2c OK [12:09:30]MH_I2C_Read... [12:09:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:09:30]Read from MH i2c: E2 [12:09:30]MH_I2C_Read... [12:09:30]Read from MH i2c: E2 62 00 [12:09:30]MH_I2C_Read... [12:09:30]Read from MH i2c: E2 62 00 30 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 8A 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [12:09: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 8A 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:09:30]wFMCommunicate OK [12:09:30]SAM_PROTO_GetFieldsCounters done [12:09:30]requested_item shift.num is exist - process it [12:09:30]requested_item shift.opened is exist - process it [12:09:30]req_shift_opened [12:09:30]FM_GetShiftState [12:09:30]SAM_PROTO_GetShiftState [12:09:30]wFMCommunicate request_size=4 [12:09:30]MH_SAM_APDU [12:09:30]CAPDU: 80 13 01 00 [12:09:30]Write to MH i2c: E2 08 00 31 0A 80 13 01 00 00 00 00 00 B8 [12:09:30]Write i2c OK [12:09:30]MH_I2C_Read... [12:09:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:30]Read from MH i2c: E2 [12:09:30]MH_I2C_Read... [12:09:30]Read from MH i2c: E2 0E 00 [12:09:30]MH_I2C_Read... [12:09:30]Read from MH i2c: E2 0E 00 31 0A 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 91 [12:09:30]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:09:30]wFMCommunicate OK [12:09:30]SAM_PROTO_GetShiftState done [12:09:30]FM_GetShiftState done [12:09:30]req_shift_opened done [12:09:30]requested_item shift.open_date is exist - process it [12:09:30]req_shift_open_date [12:09:30]req_shift_open_date done [12:09:30]produce_requested_data done [12:09:30]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165258,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [12:09:30]process_action_free close_receipt [12:09:30]json_value_free [12:09:30]json_value_free done [12:09:30]process_json_proto returns [12:09:30]Send response to host [12:09:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165258,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [12:09:30]free response buf [12:09:30]execute_script done [12:09:30]execute_script returns [12:09:30]free content buf [12:09:30]Sock 8.Close socket [12:09:30]Sock 8.Thread stoped [12:09:34]OFD Sender: No OFD packet to send [12:09:39]OFD Sender: No OFD packet to send [12:09:44]OFD Sender: No OFD packet to send [12:09:49]OFD Sender: No OFD packet to send [12:09:54]OFD Sender: No OFD packet to send [12:09:59]OFD Sender: No OFD packet to send [12:10:04]OFD Sender: No OFD packet to send [12:10:09]OFD Sender: No OFD packet to send [12:10:14]OFD Sender: No OFD packet to send [12:10:19]OFD Sender: No OFD packet to send [12:10:24]OFD Sender: No OFD packet to send [12:10:29]OFD Sender: No OFD packet to send [12:10:34]OFD Sender: No OFD packet to send [12:10:39]OFD Sender: No OFD packet to send [12:10:44]OFD Sender: No OFD packet to send [12:10:49]OFD Sender: No OFD packet to send [12:10:54]OFD Sender: No OFD packet to send [12:10:59]OFD Sender: No OFD packet to send [12:11:04]OFD Sender: No OFD packet to send [12:11:09]OFD Sender: No OFD packet to send [12:11:14]OFD Sender: No OFD packet to send [12:11:19]OFD Sender: No OFD packet to send [12:11:20]accept exits with 9 [12:11:20]New connection [12:11:20]New thread 3066711396 created [12:11:20]Thread 3066854756 joined [12:11:20]Waiting for new connection... [12:11:20] Sock 9.Parse request [12:11:20]Sock 9.Check first char [12:11:20]Sock 9.First char is OK [12:11:20]request: POST /json_proto HTTP/1.0 [12:11:20]Method: POST [12:11:20]URL: /json_proto [12:11:20]Method is POST - this is cgi request [12:11:20]url: /json_proto [12:11:20]query_string will be loaded in cgi processing [12:11:20]execute_cgi json_proto POST (null) [12:11:20]execute_cgi path=json_proto method=POST [12:11:20]POST find Content-Length [12:11:20]Host: 172.17.56.4:8080 [12:11:20]Content-Length: 637 [12:11:20]Content-Type: application/json [12:11:20] [12:11:20]POST finish read [12:11:20]Found Content-Length = 637 [12:11:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459368", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 10.000, "sum" : 719.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 719.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:20]execute_script... [12:11: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)459368", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 10.000, "sum" : 719.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 719.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:20]POST & json_proto [12:11:20]process_json_proto [12:11:20]json parsed OK: [12:11:20]protocol is kg_v1.0 [12:11:20]action value=close_receipt [12:11:20]process_action close_receipt [12:11:20]cmd_close_receipt [12:11:20]MH_GetDate [12:11:20]Write to MH i2c: F0 00 00 32 0A 2B [12:11:20]Write i2c OK [12:11:20]MH_I2C_Read... [12:11:20]Read from MH i2c: F0 [12:11:20]MH_I2C_Read... [12:11:20]Read from MH i2c: F0 09 00 [12:11:20]MH_I2C_Read... [12:11:20]Read from MH i2c: F0 09 00 32 0A 00 E8 11 95 66 C9 DC B2 64 E3 [12:11:20]GetLastDocTimeStamp 1721045367 [12:11:20]current date 1721045480 [12:11:20]FM_GetShiftState [12:11:20]SAM_PROTO_GetShiftState [12:11:20]wFMCommunicate request_size=4 [12:11:20]MH_SAM_APDU [12:11:20]CAPDU: 80 13 01 00 [12:11:20]Write to MH i2c: E2 08 00 33 0A 80 13 01 00 00 00 00 00 BA [12:11:20]Write i2c OK [12:11:20]MH_I2C_Read... [12:11:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:20]Read from MH i2c: E2 [12:11:20]MH_I2C_Read... [12:11:20]Read from MH i2c: E2 0E 00 [12:11:20]MH_I2C_Read... [12:11:20]Read from MH i2c: E2 0E 00 33 0A 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 93 [12:11:20]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:11:20]wFMCommunicate OK [12:11:20]SAM_PROTO_GetShiftState done [12:11:20]FM_GetShiftState done [12:11:20]opened in 1721003876 [12:11:20]opened+sec_in_day 1721090276 [12:11:20]quantity*price = 71900 [12:11:20]sum+1 = 71901 [12:11:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 719.00 НСП 1% : 6.36 НДС 12% : 76.35 Наличными: 719.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 132 15.07.2024 12:11 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165259 ФПД: 10780828799462 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T121121&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165259&fm=10780828799462&tin=02508201610067®Number=0000000000090829&sum=71900 [12:11:21]StoreToDocumentArchive [12:11:21]shift 448 fd 165259 [12:11:21]save to /storage/0448/doc_00165259 [12:11:21]save last doc name /storage/0448/doc_00165259 to /storage/kkm_last_doc_name [12:11:21]save OK [12:11:21]Clear old archive folders... [12:11:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:11:21]tlvbuf is 01840200 [12:11:21]SAM_PROTO_ClearQueue [12:11:21]wFMCommunicate request_size=4 [12:11:21]MH_SAM_APDU [12:11:21]CAPDU: 80 09 00 00 [12:11:21]Write to MH i2c: E2 08 00 40 0A 80 09 00 00 00 00 00 00 BC [12:11:21]Write i2c OK [12:11:21]MH_I2C_Read... [12:11:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:11:21]Read from MH i2c: E2 [12:11:21]MH_I2C_Read... [12:11:21]Read from MH i2c: E2 03 00 [12:11:21]MH_I2C_Read... [12:11:21]Read from MH i2c: E2 03 00 40 0A 00 90 00 BE [12:11:21]RAPDU: 90 00 [12:11:21]wFMCommunicate OK [12:11:21]SAM_PROTO_ClearQueue done [12:11:21]KKMCreateOFDPacket [12:11:21]OFDProtocolAddRootSTLVToBuf [12:11:21]FM_MakeSignedData [12:11:21]FM_MakeSignedData [12:11:21]SAM_PROTO_SignData [12:11:21]wFMCommunicate request_size=4 [12:11:21]MH_SAM_APDU [12:11:21]CAPDU: 80 0D 01 02 [12:11:21]Write to MH i2c: E2 08 00 41 0A 80 0D 01 02 00 00 00 00 C4 [12:11:21]Write i2c OK [12:11:21]MH_I2C_Read... [12:11:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:11:21]Read from MH i2c: E2 [12:11:21]MH_I2C_Read... [12:11:21]Read from MH i2c: E2 03 00 [12:11:21]MH_I2C_Read... [12:11:21]Read from MH i2c: E2 03 00 41 0A 00 90 00 BF [12:11:21]RAPDU: 90 00 [12:11:21]wFMCommunicate OK [12:11:21]wFMCommunicate request_size=255 [12:11:21]MH_SAM_APDU [12:11:21]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 DC 18 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 1D 00 00 00 00 07 04 06 00 DC 18 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 E9 11 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8B 85 02 00 35 04 06 00 09 CE 1B 78 [12:11:21]Write to MH i2c: E2 02 01 42 0A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 DC 18 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 1D 00 00 00 00 07 04 06 00 DC 18 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 E9 11 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8B 85 02 00 35 04 06 00 09 CE 1B 78 00 00 93 [12:11:21]Write i2c OK [12:11:21]MH_I2C_Read... [12:11:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:21]Read from MH i2c: E2 [12:11:21]MH_I2C_Read... [12:11:21]Read from MH i2c: E2 03 00 [12:11:21]MH_I2C_Read... [12:11:21]Read from MH i2c: E2 03 00 42 0A 00 90 00 C0 [12:11:21]RAPDU: 90 00 [12:11:21]wFMCommunicate OK [12:11:21]wFMCommunicate request_size=7 [12:11:21]MH_SAM_APDU [12:11:21]CAPDU: 80 0D 02 02 02 91 E6 [12:11:21]Write to MH i2c: E2 0A 00 43 0A 80 0D 02 02 02 00 91 E6 00 00 42 [12:11:21]Write i2c OK [12:11:21]MH_I2C_Read... [12:11:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:21]Read from MH i2c: E2 [12:11:21]MH_I2C_Read... [12:11:21]Read from MH i2c: E2 03 00 [12:11:21]MH_I2C_Read... [12:11:21]Read from MH i2c: E2 03 00 43 0A 00 90 00 C1 [12:11:21]RAPDU: 90 00 [12:11:21]wFMCommunicate OK [12:11:21]wFMCommunicate request_size=4 [12:11:21]MH_SAM_APDU [12:11:21]CAPDU: 80 0D 03 02 [12:11:21]Write to MH i2c: E2 08 00 44 0A 80 0D 03 02 00 00 00 00 C9 [12:11:21]Write i2c OK [12:11:21]MH_I2C_Read... [12:11:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:11:21]Read from MH i2c: E2 [12:11:21]MH_I2C_Read... [12:11:21]Read from MH i2c: E2 0B 00 [12:11:21]MH_I2C_Read... [12:11:21]Read from MH i2c: E2 0B 00 44 0A 00 A1 36 32 B9 32 9E D8 09 90 00 3D [12:11:21]RAPDU: A1 36 32 B9 32 9E D8 09 90 00 [12:11:21]wFMCommunicate OK [12:11:21]SAM_PROTO_SignData done [12:11:21]FM_MakeSignedData done [12:11:21]CreateOFDProtocolMessage [12:11:21]wFMCommunicate request_size=4 [12:11:21]MH_SAM_APDU [12:11:21]CAPDU: 80 11 00 00 [12:11:21]Write to MH i2c: E2 08 00 45 0A 80 11 00 00 00 00 00 00 C9 [12:11:21]Write i2c OK [12:11:21]MH_I2C_Read... [12:11:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:21]Read from MH i2c: E2 [12:11:21]MH_I2C_Read... [12:11:21]Read from MH i2c: E2 17 00 [12:11:21]MH_I2C_Read... [12:11:21]Read from MH i2c: E2 17 00 45 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1F [12:11:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:11:21]wFMCommunicate OK [12:11:21]CreateOFDProtocolMessage done [12:11:21]OFDSenderStorePacket 165259 [12:11:21]StoreOFDPacket docnum=165259 [12:11:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 59 E8 04 01 5C A3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 DC 18 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 1D 00 00 00 00 07 04 06 00 DC 18 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 E9 11 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8B 85 02 00 35 04 06 00 09 CE 1B 78 91 E6 A1 36 32 B9 32 9E D8 09 [12:11:21]CheckFolder [12:11:21]dirname=/storage/ofd_packets [12:11:21]CheckFolder done [12:11:21]ProducePacketName [12:11:21]name=ofd_packets/00165259 [12:11:21]NVStorageSaveData ofd_packets/00165259 [12:11:21]File name is /storage/ofd_packets/00165259 [12:11:21]Write 298 bytes [12:11:21]NVStorageSaveData done [12:11:21]OFDSenderStorePacket done [12:11:21]KKMCreateOFDPacket done [12:11:21]NVStorageSaveData kkm_last_timestamp [12:11:21]File name is /storage/kkm_last_timestamp [12:11:21]Write 4 bytes [12:11:21]NVStorageSaveData done [12:11:21]ExternCall_PrintAddStr [12:11:21]wPrintStart [12:11:21]Write to MH i2c: 01 00 00 46 0A 50 [12:11:21]Write i2c OK [12:11:21]MH_I2C_Read... [12:11:21]Read from MH i2c: 01 [12:11:21]MH_I2C_Read... [12:11:21]Read from MH i2c: 01 07 00 [12:11:21]MH_I2C_Read... [12:11:21]Read from MH i2c: 01 07 00 46 0A 00 00 00 00 00 FF 0F 65 [12:11:21]RasterBufferAndPrint [12:11:21]line Счет N : (1)459368 [12:11:21]line ИНН: 02508201610067 [12:11:21]line Контрольно-Кассовый Чек [12:11:21]line ПРОДАЖА [12:11:21]line ТРК (МРК, ГНК) : 11 [12:11:21]line Товар: 2710194210 [12:11:21]line ДТ-К-5 [12:11:21]line 10.000 * 71.90 [12:11:21]line = 719.00 [12:11:21]line НДС 12% НСП 1% [12:11:21]line > о реализуемом товаре [12:11:21]line ИТОГО: 719.00 [12:11:21]line НСП 1% : 6.36 [12:11:21]line НДС 12% : 76.35 [12:11:21]line Наличными: 719.00 [12:11:21]line Безнал.: 0.00 [12:11:21]line Место: АЗС № 72 "Партнер Нефть" [12:11:21]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:11:21]line СНО: Общий режим [12:11:21]line Чек 132 15.07.2024 12:11 [12:11:21]line Смена: 448 ФФД: 1.0 [12:11:21]line ЗНМ: 0300000160 [12:11:21]line РНМ: 0000000000090829 [12:11:21]line Версия ККМ: 001 [12:11:21]line ФМ: 0000000000874718 [12:11:21]line ФД: 165259 [12:11:22]line ФПД: 10780828799462 [12:11:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T121121&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165259&fm=10780828799462&tin=02508201610067®Number=0000000000090829&sum=71900 [12:11:22]OFD Sender: Processing packet 165259 [packets to send 106, broken 105] [12:11:22]ProducePacketName [12:11:22]name=ofd_packets/00165259 [12:11:22]OFD Sender: To server: pG, [12:11:22]CommunicateWithHost lk.salyk.kg:30040 [12:11:22]ConnectInit lk.salyk.kg [12:11:22]written 0, free lines is 4095 [12:11:22]Connected sock=10 [12:11: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 37 31 38 0C 01 00 00 59 E8 04 01 5C A3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 DC 18 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 1D 00 00 00 00 07 04 06 00 DC 18 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 E9 11 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8B 85 02 00 35 04 06 00 09 CE 1B 78 91 E6 A1 36 32 B9 32 9E D8 09 [12:11:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 4F 70 47 00 BE 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8B 85 02 00 F4 03 04 00 73 B8 94 66 B6 04 01 00 00 B9 67 9E A7 DE 7B D0 3D [12:11:22]CommunicateWithHost err = 0 [12:11:22]CheckOFDResponse [12:11:22]1017 (14) - 77093643461234 [12:11:22]1041 (16) - 0000000000874718 [12:11:22]1040 (4) - 165259 [12:11:22]1012 (4) - 15.07.2024 05:49 [12:11:22]1206 (1) - 0 [12:11:22]OFD Sender: Remove packet 165259 [12:11:22]ProducePacketName [12:11:22]name=ofd_packets/00165259 [12:11:22]NVStorageDeleteData [12:11:22]Write to MH i2c: 01 00 00 6D 0A 77 [12:11:22]Write i2c OK [12:11:22]MH_I2C_Read... [12:11:22]Read from MH i2c: 01 [12:11:22]MH_I2C_Read... [12:11:22]Read from MH i2c: 01 07 00 [12:11:22]MH_I2C_Read... [12:11:22]Read from MH i2c: 01 07 00 6D 0A 00 00 00 00 00 27 0D B2 [12:11:22]RasterBufferAndPrint [12:11:22]line [12:11:22]line [12:11:22]line [12:11:22]line [12:11:22]line [12:11:22]written 0, free lines is 3373 [12:11:22]MH_Cut [12:11:22]Write to MH i2c: D1 01 00 74 0A 01 50 [12:11:22]Write i2c OK [12:11:22]MH_I2C_Read... [12:11:22]Read from MH i2c: D1 [12:11:22]MH_I2C_Read... [12:11:22]Read from MH i2c: D1 01 00 [12:11:22]MH_I2C_Read... [12:11:22]Read from MH i2c: D1 01 00 74 0A 00 4F [12:11:22]Write to MH i2c: 01 00 00 75 0A 7F [12:11:22]Write i2c OK [12:11:22]MH_I2C_Read... [12:11:22]OFD Sender: No OFD packet to send [12:11:23]*** Cut start [12:11:23]*** Partial cut [12:11:23]*** CUTSNS_PIN = 1 [12:11:23]*** CUTSNS_PIN = 0 [12:11:23]*** Brake cut motor [12:11:23]Read from MH i2c: 01 [12:11:23]MH_I2C_Read... [12:11:23]*** Stop cut motor [12:11:23]*** Cut end [12:11:23]Read from MH i2c: 01 07 00 [12:11:23]MH_I2C_Read... [12:11:23]Read from MH i2c: 01 07 00 75 0A 00 00 00 00 00 FF 0F 94 [12:11:23]process_action close_receipt done [12:11:23]requested_data is exist [12:11:23]produce_requested_data [12:11:23]requested_item fm.sn is exist - process it [12:11:23]wFMCommunicate request_size=4 [12:11:23]MH_SAM_APDU [12:11:23]CAPDU: 80 11 00 00 [12:11:23]Write to MH i2c: E2 08 00 76 0A 80 11 00 00 00 00 00 00 FA [12:11:23]Write i2c OK [12:11:23]MH_I2C_Read... [12:11:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:23]Read from MH i2c: E2 [12:11:23]MH_I2C_Read... [12:11:23]Read from MH i2c: E2 17 00 [12:11:23]MH_I2C_Read... [12:11:23]Read from MH i2c: E2 17 00 76 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 50 [12:11:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:11:23]wFMCommunicate OK [12:11:23]requested_item fd.num is exist - process it [12:11:23]SAM_PROTO_GetFieldsCounters [12:11:23]wFMCommunicate request_size=4 [12:11:23]MH_SAM_APDU [12:11:23]CAPDU: 80 13 00 00 [12:11:23]Write to MH i2c: E2 08 00 77 0A 80 13 00 00 00 00 00 00 FD [12:11:23]Write i2c OK [12:11:23]MH_I2C_Read... [12:11:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:11:23]Read from MH i2c: E2 [12:11:23]MH_I2C_Read... [12:11:23]Read from MH i2c: E2 62 00 [12:11:23]MH_I2C_Read... [12:11:23]Read from MH i2c: E2 62 00 77 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 8B 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [12:11:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 8B 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:11:23]wFMCommunicate OK [12:11:23]SAM_PROTO_GetFieldsCounters done [12:11:23]requested_item shift.num is exist - process it [12:11:23]requested_item shift.opened is exist - process it [12:11:23]req_shift_opened [12:11:23]FM_GetShiftState [12:11:23]SAM_PROTO_GetShiftState [12:11:24]wFMCommunicate request_size=4 [12:11:24]MH_SAM_APDU [12:11:24]CAPDU: 80 13 01 00 [12:11:24]Write to MH i2c: E2 08 00 78 0A 80 13 01 00 00 00 00 00 FF [12:11:24]Write i2c OK [12:11:24]MH_I2C_Read... [12:11:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:24]Read from MH i2c: E2 [12:11:24]MH_I2C_Read... [12:11:24]Read from MH i2c: E2 0E 00 [12:11:24]MH_I2C_Read... [12:11:24]Read from MH i2c: E2 0E 00 78 0A 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 D8 [12:11:24]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:11:24]wFMCommunicate OK [12:11:24]SAM_PROTO_GetShiftState done [12:11:24]FM_GetShiftState done [12:11:24]req_shift_opened done [12:11:24]requested_item shift.open_date is exist - process it [12:11:24]req_shift_open_date [12:11:24]req_shift_open_date done [12:11:24]produce_requested_data done [12:11:24]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165259,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [12:11:24]process_action_free close_receipt [12:11:24]json_value_free [12:11:24]json_value_free done [12:11:24]process_json_proto returns [12:11:24]Send response to host [12:11:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165259,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [12:11:24]free response buf [12:11:24]execute_script done [12:11:24]execute_script returns [12:11:24]free content buf [12:11:24]Sock 9.Close socket [12:11:24]Sock 9.Thread stoped [12:11:27]OFD Sender: No OFD packet to send [12:11:32]OFD Sender: No OFD packet to send [12:11:37]OFD Sender: No OFD packet to send [12:11:42]OFD Sender: No OFD packet to send [12:11:47]OFD Sender: No OFD packet to send [12:11:52]OFD Sender: No OFD packet to send [12:11:55]accept exits with 8 [12:11:55]New connection [12:11:55]New thread 3066854756 created [12:11:55]Thread 3066711396 joined [12:11:55]Waiting for new connection... [12:11:55] Sock 8.Parse request [12:11:55]Sock 8.Check first char [12:11:55]Sock 8.First char is OK [12:11:55]request: POST /json_proto HTTP/1.0 [12:11:55]Method: POST [12:11:55]URL: /json_proto [12:11:55]Method is POST - this is cgi request [12:11:55]url: /json_proto [12:11:55]query_string will be loaded in cgi processing [12:11:55]execute_cgi json_proto POST (null) [12:11:55]execute_cgi path=json_proto method=POST [12:11:55]POST find Content-Length [12:11:55]Host: 172.17.56.4:8080 [12:11:55]Content-Length: 677 [12:11:55]Content-Type: application/json [12:11:55] [12:11:55]POST finish read [12:11:55]Found Content-Length = 677 [12:11:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459369", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:55]execute_script... [12:11: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)459369", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:55]POST & json_proto [12:11:55]process_json_proto [12:11:55]json parsed OK: [12:11:55]protocol is kg_v1.0 [12:11:55]action value=close_receipt [12:11:55]process_action close_receipt [12:11:55]cmd_close_receipt [12:11:55]MH_GetDate [12:11:55]Write to MH i2c: F0 00 00 79 0A 72 [12:11:55]Write i2c OK [12:11:55]MH_I2C_Read... [12:11:55]Read from MH i2c: F0 [12:11:55]MH_I2C_Read... [12:11:55]Read from MH i2c: F0 09 00 [12:11:55]MH_I2C_Read... [12:11:55]Read from MH i2c: F0 09 00 79 0A 00 0C 12 95 66 C9 DC B2 64 4F [12:11:55]GetLastDocTimeStamp 1721045481 [12:11:55]current date 1721045516 [12:11:55]FM_GetShiftState [12:11:55]SAM_PROTO_GetShiftState [12:11:55]wFMCommunicate request_size=4 [12:11:55]MH_SAM_APDU [12:11:55]CAPDU: 80 13 01 00 [12:11:55]Write to MH i2c: E2 08 00 7A 0A 80 13 01 00 00 00 00 00 01 [12:11:55]Write i2c OK [12:11:55]MH_I2C_Read... [12:11:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:55]Read from MH i2c: E2 [12:11:55]MH_I2C_Read... [12:11:55]Read from MH i2c: E2 0E 00 [12:11:55]MH_I2C_Read... [12:11:55]Read from MH i2c: E2 0E 00 7A 0A 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 DA [12:11:55]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:11:55]wFMCommunicate OK [12:11:55]SAM_PROTO_GetShiftState done [12:11:55]FM_GetShiftState done [12:11:55]opened in 1721003876 [12:11:55]opened+sec_in_day 1721090276 [12:11:55]quantity*price = 20003 [12:11:55]sum+1 = 20004 [12:11:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 133 15.07.2024 12:11 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165260 ФПД: 88390288656719 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T121156&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165260&fm=88390288656719&tin=02508201610067®Number=0000000000090829&sum=20000 [12:11:56]StoreToDocumentArchive [12:11:56]shift 448 fd 165260 [12:11:56]save to /storage/0448/doc_00165260 [12:11:56]save last doc name /storage/0448/doc_00165260 to /storage/kkm_last_doc_name [12:11:56]save OK [12:11:56]Clear old archive folders... [12:11:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:11:56]tlvbuf is 0183FC30 [12:11:56]SAM_PROTO_ClearQueue [12:11:56]wFMCommunicate request_size=4 [12:11:56]MH_SAM_APDU [12:11:56]CAPDU: 80 09 00 00 [12:11:56]Write to MH i2c: E2 08 00 87 0A 80 09 00 00 00 00 00 00 03 [12:11:56]Write i2c OK [12:11:56]MH_I2C_Read... [12:11:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:11:56]Read from MH i2c: E2 [12:11:56]MH_I2C_Read... [12:11:56]Read from MH i2c: E2 03 00 [12:11:56]MH_I2C_Read... [12:11:56]Read from MH i2c: E2 03 00 87 0A 00 90 00 05 [12:11:56]RAPDU: 90 00 [12:11:56]wFMCommunicate OK [12:11:56]SAM_PROTO_ClearQueue done [12:11:56]KKMCreateOFDPacket [12:11:56]OFDProtocolAddRootSTLVToBuf [12:11:56]FM_MakeSignedData [12:11:56]FM_MakeSignedData [12:11:56]SAM_PROTO_SignData [12:11:56]wFMCommunicate request_size=4 [12:11:56]MH_SAM_APDU [12:11:56]CAPDU: 80 0D 01 02 [12:11:56]Write to MH i2c: E2 08 00 88 0A 80 0D 01 02 00 00 00 00 0B [12:11:56]Write i2c OK [12:11:56]MH_I2C_Read... [12:11:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:11:56]Read from MH i2c: E2 [12:11:56]MH_I2C_Read... [12:11:56]Read from MH i2c: E2 03 00 [12:11:56]MH_I2C_Read... [12:11:56]Read from MH i2c: E2 03 00 88 0A 00 90 00 06 [12:11:56]RAPDU: 90 00 [12:11:56]wFMCommunicate OK [12:11:56]wFMCommunicate request_size=255 [12:11:56]MH_SAM_APDU [12:11: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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 0C 12 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8C 85 02 00 35 04 06 00 50 [12:11:56]Write to MH i2c: E2 02 01 89 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 0C 12 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8C 85 02 00 35 04 06 00 50 00 00 E7 [12:11:56]Write i2c OK [12:11:56]MH_I2C_Read... [12:11:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:56]Read from MH i2c: E2 [12:11:56]MH_I2C_Read... [12:11:56]Read from MH i2c: E2 03 00 [12:11:56]MH_I2C_Read... [12:11:56]Read from MH i2c: E2 03 00 89 0A 00 90 00 07 [12:11:56]RAPDU: 90 00 [12:11:56]wFMCommunicate OK [12:11:56]wFMCommunicate request_size=10 [12:11:56]MH_SAM_APDU [12:11:56]CAPDU: 80 0D 02 02 05 63 F7 C1 C9 4F [12:11:56]Write to MH i2c: E2 0D 00 8A 0A 80 0D 02 02 05 00 63 F7 C1 C9 4F 00 00 4B [12:11:57]Write i2c OK [12:11:57]MH_I2C_Read... [12:11:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:57]Read from MH i2c: E2 [12:11:57]MH_I2C_Read... [12:11:57]Read from MH i2c: E2 03 00 [12:11:57]MH_I2C_Read... [12:11:57]Read from MH i2c: E2 03 00 8A 0A 00 90 00 08 [12:11:57]RAPDU: 90 00 [12:11:57]wFMCommunicate OK [12:11:57]wFMCommunicate request_size=4 [12:11:57]MH_SAM_APDU [12:11:57]CAPDU: 80 0D 03 02 [12:11:57]Write to MH i2c: E2 08 00 8B 0A 80 0D 03 02 00 00 00 00 10 [12:11:57]Write i2c OK [12:11:57]MH_I2C_Read... [12:11:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:11:57]Read from MH i2c: E2 [12:11:57]MH_I2C_Read... [12:11:57]Read from MH i2c: E2 0B 00 [12:11:57]MH_I2C_Read... [12:11:57]Read from MH i2c: E2 0B 00 8B 0A 00 2D 24 C7 F6 05 22 E5 E3 90 00 0E [12:11:57]RAPDU: 2D 24 C7 F6 05 22 E5 E3 90 00 [12:11:57]wFMCommunicate OK [12:11:57]SAM_PROTO_SignData done [12:11:57]FM_MakeSignedData done [12:11:57]CreateOFDProtocolMessage [12:11:57]wFMCommunicate request_size=4 [12:11:57]MH_SAM_APDU [12:11:57]CAPDU: 80 11 00 00 [12:11:57]Write to MH i2c: E2 08 00 8C 0A 80 11 00 00 00 00 00 00 10 [12:11:57]Write i2c OK [12:11:57]MH_I2C_Read... [12:11:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:57]Read from MH i2c: E2 [12:11:57]MH_I2C_Read... [12:11:57]Read from MH i2c: E2 17 00 [12:11:57]MH_I2C_Read... [12:11:57]Read from MH i2c: E2 17 00 8C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 66 [12:11:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:11:57]wFMCommunicate OK [12:11:57]CreateOFDProtocolMessage done [12:11:57]OFDSenderStorePacket 165260 [12:11:57]StoreOFDPacket docnum=165260 [12:11:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D4 6F 07 01 6C 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 0C 12 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8C 85 02 00 35 04 06 00 50 63 F7 C1 C9 4F 2D 24 C7 F6 05 22 E5 E3 [12:11:57]CheckFolder [12:11:57]dirname=/storage/ofd_packets [12:11:57]CheckFolder done [12:11:57]ProducePacketName [12:11:57]name=ofd_packets/00165260 [12:11:57]NVStorageSaveData ofd_packets/00165260 [12:11:57]File name is /storage/ofd_packets/00165260 [12:11:57]Write 301 bytes [12:11:57]NVStorageSaveData done [12:11:57]OFDSenderStorePacket done [12:11:57]KKMCreateOFDPacket done [12:11:57]NVStorageSaveData kkm_last_timestamp [12:11:57]File name is /storage/kkm_last_timestamp [12:11:57]Write 4 bytes [12:11:57]NVStorageSaveData done [12:11:57]ExternCall_PrintAddStr [12:11:57]wPrintStart [12:11:57]Write to MH i2c: 01 00 00 8D 0A 97 [12:11:57]Write i2c OK [12:11:57]MH_I2C_Read... [12:11:57]Read from MH i2c: 01 [12:11:57]MH_I2C_Read... [12:11:57]Read from MH i2c: 01 07 00 [12:11:57]MH_I2C_Read... [12:11:57]Read from MH i2c: 01 07 00 8D 0A 00 00 00 00 00 FF 0F AC [12:11:57]RasterBufferAndPrint [12:11:57]line Счет N : (1)459369 [12:11:57]line ИНН: 02508201610067 [12:11:57]line Контрольно-Кассовый Чек [12:11:57]line ПРОДАЖА [12:11:57]line ТРК (МРК, ГНК) : 22 [12:11:57]line Товар: 2710124130 [12:11:57]line Аи-92-К-5 [12:11:57]line 3.040 * 65.80 [12:11:57]line = 200.03 [12:11:57]line НДС 12% НСП 1% [12:11:57]line > о реализуемом товаре [12:11:57]line ОКРУГЛЕНИЕ: -0.03 [12:11:57]line ИТОГО: 200.00 [12:11:57]line Внесено: 200.00 [12:11:57]line СДАЧА: 0.00 [12:11:57]line НСП 1% : 1.77 [12:11:57]line НДС 12% : 21.24 [12:11:57]line Наличными: 200.00 [12:11:57]line Безнал.: 0.00 [12:11:57]line Место: АЗС № 72 "Партнер Нефть" [12:11:57]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:11:57]line СНО: Общий режим [12:11:57]line Чек 133 15.07.2024 12:11 [12:11:57]line Смена: 448 ФФД: 1.0 [12:11:57]line ЗНМ: 0300000160 [12:11:57]line РНМ: 0000000000090829 [12:11:57]line Версия ККМ: 001 [12:11:57]line ФМ: 0000000000874718 [12:11:57]line ФД: 165260 [12:11:57]line ФПД: 88390288656719 [12:11:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T121156&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165260&fm=88390288656719&tin=02508201610067®Number=0000000000090829&sum=20000 [12:11:57]written 0, free lines is 4095 [12:11:57]OFD Sender: Processing packet 165260 [packets to send 106, broken 105] [12:11:57]ProducePacketName [12:11:57]name=ofd_packets/00165260 [12:11:57]OFD Sender: To server: pG, [12:11:57]CommunicateWithHost lk.salyk.kg:30040 [12:11:57]ConnectInit lk.salyk.kg [12:11:57]Connected sock=10 [12:11: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 37 31 38 0F 01 00 00 D4 6F 07 01 6C 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 0C 12 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8C 85 02 00 35 04 06 00 50 63 F7 C1 C9 4F 2D 24 C7 F6 05 22 E5 E3 [12:11:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 18 F5 47 00 0C 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 8C 85 02 00 F4 03 04 00 96 B8 94 66 B6 04 01 00 00 9C BF 55 B5 E6 7C 7F 89 [12:11:57]CommunicateWithHost err = 0 [12:11:57]CheckOFDResponse [12:11:57]1017 (14) - 77093643461234 [12:11:57]1041 (16) - 0000000000874718 [12:11:57]1040 (4) - 165260 [12:11:57]1012 (4) - 15.07.2024 05:50 [12:11:57]1206 (1) - 0 [12:11:57]OFD Sender: Remove packet 165260 [12:11:57]ProducePacketName [12:11:57]name=ofd_packets/00165260 [12:11:57]NVStorageDeleteData [12:11:57]Write to MH i2c: 01 00 00 B7 0A C1 [12:11:57]Write i2c OK [12:11:57]MH_I2C_Read... [12:11:57]Read from MH i2c: 01 [12:11:57]MH_I2C_Read... [12:11:57]Read from MH i2c: 01 07 00 [12:11:57]MH_I2C_Read... [12:11:57]Read from MH i2c: 01 07 00 B7 0A 00 00 00 00 00 F5 0C C9 [12:11:57]RasterBufferAndPrint [12:11:57]line [12:11:57]line [12:11:57]line [12:11:57]line [12:11:57]line [12:11:57]written 0, free lines is 3323 [12:11:57]MH_Cut [12:11:57]Write to MH i2c: D1 01 00 BE 0A 01 9A [12:11:57]Write i2c OK [12:11:57]MH_I2C_Read... [12:11:57]Read from MH i2c: D1 [12:11:57]MH_I2C_Read... [12:11:57]Read from MH i2c: D1 01 00 [12:11:57]MH_I2C_Read... [12:11:57]Read from MH i2c: D1 01 00 BE 0A 00 99 [12:11:57]Write to MH i2c: 01 00 00 BF 0A C9 [12:11:57]Write i2c OK [12:11:57]MH_I2C_Read... [12:11:58]OFD Sender: No OFD packet to send [12:11:58]*** Cut start [12:11:58]*** Partial cut [12:11:58]*** CUTSNS_PIN = 1 [12:11:58]*** CUTSNS_PIN = 0 [12:11:58]*** Brake cut motor [12:11:59]Read from MH i2c: 01 [12:11:59]MH_I2C_Read... [12:11:59]*** Stop cut motor [12:11:59]*** Cut end [12:11:59]Read from MH i2c: 01 07 00 [12:11:59]MH_I2C_Read... [12:11:59]Read from MH i2c: 01 07 00 BF 0A 00 00 00 00 00 FF 0F DE [12:11:59]process_action close_receipt done [12:11:59]requested_data is exist [12:11:59]produce_requested_data [12:11:59]requested_item fm.sn is exist - process it [12:11:59]wFMCommunicate request_size=4 [12:11:59]MH_SAM_APDU [12:11:59]CAPDU: 80 11 00 00 [12:11:59]Write to MH i2c: E2 08 00 C0 0A 80 11 00 00 00 00 00 00 44 [12:11:59]Write i2c OK [12:11:59]MH_I2C_Read... [12:11:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:59]Read from MH i2c: E2 [12:11:59]MH_I2C_Read... [12:11:59]Read from MH i2c: E2 17 00 [12:11:59]MH_I2C_Read... [12:11:59]Read from MH i2c: E2 17 00 C0 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 9A [12:11:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:11:59]wFMCommunicate OK [12:11:59]requested_item fd.num is exist - process it [12:11:59]SAM_PROTO_GetFieldsCounters [12:11:59]wFMCommunicate request_size=4 [12:11:59]MH_SAM_APDU [12:11:59]CAPDU: 80 13 00 00 [12:11:59]Write to MH i2c: E2 08 00 C1 0A 80 13 00 00 00 00 00 00 47 [12:11:59]Write i2c OK [12:11:59]MH_I2C_Read... [12:11:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:11:59]Read from MH i2c: E2 [12:11:59]MH_I2C_Read... [12:11:59]Read from MH i2c: E2 62 00 [12:11:59]MH_I2C_Read... [12:11:59]Read from MH i2c: E2 62 00 C1 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 8C 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [12:11: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 8C 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:11:59]wFMCommunicate OK [12:11:59]SAM_PROTO_GetFieldsCounters done [12:11:59]requested_item shift.num is exist - process it [12:11:59]requested_item shift.opened is exist - process it [12:11:59]req_shift_opened [12:11:59]FM_GetShiftState [12:11:59]SAM_PROTO_GetShiftState [12:11:59]wFMCommunicate request_size=4 [12:11:59]MH_SAM_APDU [12:11:59]CAPDU: 80 13 01 00 [12:11:59]Write to MH i2c: E2 08 00 C2 0A 80 13 01 00 00 00 00 00 49 [12:11:59]Write i2c OK [12:11:59]MH_I2C_Read... [12:11:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:59]Read from MH i2c: E2 [12:11:59]MH_I2C_Read... [12:11:59]Read from MH i2c: E2 0E 00 [12:11:59]MH_I2C_Read... [12:11:59]Read from MH i2c: E2 0E 00 C2 0A 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 22 [12:11:59]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:11:59]wFMCommunicate OK [12:11:59]SAM_PROTO_GetShiftState done [12:11:59]FM_GetShiftState done [12:11:59]req_shift_opened done [12:11:59]requested_item shift.open_date is exist - process it [12:11:59]req_shift_open_date [12:11:59]req_shift_open_date done [12:11:59]produce_requested_data done [12:11:59]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165260,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [12:11:59]process_action_free close_receipt [12:11:59]json_value_free [12:11:59]json_value_free done [12:11:59]process_json_proto returns [12:11:59]Send response to host [12:11:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165260,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [12:11:59]free response buf [12:11:59]execute_script done [12:11:59]execute_script returns [12:11:59]free content buf [12:11:59]Sock 8.Close socket [12:11:59]Sock 8.Thread stoped [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]OFD Sender: No OFD packet to send [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:24]accept exits with 9 [12:17:24]New connection [12:17:24]New thread 3066711396 created [12:17:24]Thread 3066854756 joined [12:17:24]Waiting for new connection... [12:17:24] Sock 9.Parse request [12:17:24]Sock 9.Check first char [12:17:24]Sock 9.First char is OK [12:17:24]request: POST /json_proto HTTP/1.0 [12:17:24]Method: POST [12:17:24]URL: /json_proto [12:17:24]Method is POST - this is cgi request [12:17:24]url: /json_proto [12:17:24]query_string will be loaded in cgi processing [12:17:24]execute_cgi json_proto POST (null) [12:17:24]execute_cgi path=json_proto method=POST [12:17:24]POST find Content-Length [12:17:24]Host: 172.17.56.4:8080 [12:17:24]Content-Length: 682 [12:17:24]Content-Type: application/json [12:17:24] [12:17:24]POST finish read [12:17:24]Found Content-Length = 682 [12:17:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459370", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:24]execute_script... [12:17:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459370", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:24]POST & json_proto [12:17:24]process_json_proto [12:17:24]json parsed OK: [12:17:24]protocol is kg_v1.0 [12:17:24]action value=close_receipt [12:17:24]process_action close_receipt [12:17:24]cmd_close_receipt [12:17:24]MH_GetDate [12:17:24]Write to MH i2c: F0 00 00 C3 0A BC [12:17:24]Write i2c OK [12:17:24]MH_I2C_Read... [12:17:24]Read from MH i2c: F0 [12:17:24]MH_I2C_Read... [12:17:24]Read from MH i2c: F0 09 00 [12:17:24]MH_I2C_Read... [12:17:24]Read from MH i2c: F0 09 00 C3 0A 00 55 13 95 66 C9 DC B2 64 E3 [12:17:24]GetLastDocTimeStamp 1721045516 [12:17:24]current date 1721045845 [12:17:24]FM_GetShiftState [12:17:24]SAM_PROTO_GetShiftState [12:17:24]wFMCommunicate request_size=4 [12:17:24]MH_SAM_APDU [12:17:24]CAPDU: 80 13 01 00 [12:17:24]Write to MH i2c: E2 08 00 C4 0A 80 13 01 00 00 00 00 00 4B [12:17:24]Write i2c OK [12:17:24]MH_I2C_Read... [12:17:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:24]Read from MH i2c: E2 [12:17:24]MH_I2C_Read... [12:17:24]Read from MH i2c: E2 0E 00 [12:17:24]MH_I2C_Read... [12:17:24]Read from MH i2c: E2 0E 00 C4 0A 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 24 [12:17:24]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:17:24]wFMCommunicate OK [12:17:24]SAM_PROTO_GetShiftState done [12:17:24]FM_GetShiftState done [12:17:24]opened in 1721003876 [12:17:24]opened+sec_in_day 1721090276 [12:17:24]quantity*price = 100016 [12:17:24]sum+1 = 100017 [12:17:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 134 15.07.2024 12:17 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165261 ФПД: 183838024050433 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T121725&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165261&fm=183838024050433&tin=02508201610067®Number=0000000000090829&sum=100000 [12:17:26]StoreToDocumentArchive [12:17:26]shift 448 fd 165261 [12:17:26]save to /storage/0448/doc_00165261 [12:17:26]save last doc name /storage/0448/doc_00165261 to /storage/kkm_last_doc_name [12:17:26]save OK [12:17:26]Clear old archive folders... [12:17:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:17:26]tlvbuf is 018587B0 [12:17:26]SAM_PROTO_ClearQueue [12:17:26]wFMCommunicate request_size=4 [12:17:26]MH_SAM_APDU [12:17:26]CAPDU: 80 09 00 00 [12:17:26]Write to MH i2c: E2 08 00 D1 0A 80 09 00 00 00 00 00 00 4D [12:17:26]Write i2c OK [12:17:26]MH_I2C_Read... [12:17:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:17:26]Read from MH i2c: E2 [12:17:26]MH_I2C_Read... [12:17:26]Read from MH i2c: E2 03 00 [12:17:26]MH_I2C_Read... [12:17:26]Read from MH i2c: E2 03 00 D1 0A 00 90 00 4F [12:17:26]RAPDU: 90 00 [12:17:26]wFMCommunicate OK [12:17:26]SAM_PROTO_ClearQueue done [12:17:26]KKMCreateOFDPacket [12:17:26]OFDProtocolAddRootSTLVToBuf [12:17:26]FM_MakeSignedData [12:17:26]FM_MakeSignedData [12:17:26]SAM_PROTO_SignData [12:17:26]wFMCommunicate request_size=4 [12:17:26]MH_SAM_APDU [12:17:26]CAPDU: 80 0D 01 02 [12:17:26]Write to MH i2c: E2 08 00 D2 0A 80 0D 01 02 00 00 00 00 55 [12:17:26]Write i2c OK [12:17:26]MH_I2C_Read... [12:17:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:17:26]Read from MH i2c: E2 [12:17:26]MH_I2C_Read... [12:17:26]Read from MH i2c: E2 03 00 [12:17:26]MH_I2C_Read... [12:17:26]Read from MH i2c: E2 03 00 D2 0A 00 90 00 50 [12:17:26]RAPDU: 90 00 [12:17:26]wFMCommunicate OK [12:17:26]wFMCommunicate request_size=255 [12:17:26]MH_SAM_APDU [12:17: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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 55 13 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8D 85 02 00 35 04 06 00 A7 [12:17:26]Write to MH i2c: E2 02 01 D3 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 55 13 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8D 85 02 00 35 04 06 00 A7 00 00 D5 [12:17:26]Write i2c OK [12:17:26]MH_I2C_Read... [12:17:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:26]Read from MH i2c: E2 [12:17:26]MH_I2C_Read... [12:17:26]Read from MH i2c: E2 03 00 [12:17:26]MH_I2C_Read... [12:17:26]Read from MH i2c: E2 03 00 D3 0A 00 90 00 51 [12:17:26]RAPDU: 90 00 [12:17:26]wFMCommunicate OK [12:17:26]wFMCommunicate request_size=10 [12:17:26]MH_SAM_APDU [12:17:26]CAPDU: 80 0D 02 02 05 33 20 1E A7 01 [12:17:26]Write to MH i2c: E2 0D 00 D4 0A 80 0D 02 02 05 00 33 20 1E A7 01 00 00 7B [12:17:26]Write i2c OK [12:17:26]MH_I2C_Read... [12:17:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:26]Read from MH i2c: E2 [12:17:26]MH_I2C_Read... [12:17:26]Read from MH i2c: E2 03 00 [12:17:26]MH_I2C_Read... [12:17:26]Read from MH i2c: E2 03 00 D4 0A 00 90 00 52 [12:17:26]RAPDU: 90 00 [12:17:26]wFMCommunicate OK [12:17:26]wFMCommunicate request_size=4 [12:17:26]MH_SAM_APDU [12:17:26]CAPDU: 80 0D 03 02 [12:17:26]Write to MH i2c: E2 08 00 D5 0A 80 0D 03 02 00 00 00 00 5A [12:17:26]Write i2c OK [12:17:26]MH_I2C_Read... [12:17:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:17:26]Read from MH i2c: E2 [12:17:26]MH_I2C_Read... [12:17:26]Read from MH i2c: E2 0B 00 [12:17:26]MH_I2C_Read... [12:17:26]Read from MH i2c: E2 0B 00 D5 0A 00 BC ED A0 71 DA BA FC 77 90 00 1C [12:17:26]RAPDU: BC ED A0 71 DA BA FC 77 90 00 [12:17:26]wFMCommunicate OK [12:17:26]SAM_PROTO_SignData done [12:17:26]FM_MakeSignedData done [12:17:26]CreateOFDProtocolMessage [12:17:26]wFMCommunicate request_size=4 [12:17:26]MH_SAM_APDU [12:17:26]CAPDU: 80 11 00 00 [12:17:26]Write to MH i2c: E2 08 00 D6 0A 80 11 00 00 00 00 00 00 5A [12:17:26]Write i2c OK [12:17:26]MH_I2C_Read... [12:17:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:26]Read from MH i2c: E2 [12:17:26]MH_I2C_Read... [12:17:26]Read from MH i2c: E2 17 00 [12:17:26]MH_I2C_Read... [12:17:26]Read from MH i2c: E2 17 00 D6 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B0 [12:17:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:17:26]wFMCommunicate OK [12:17:26]CreateOFDProtocolMessage done [12:17:26]OFDSenderStorePacket 165261 [12:17:26]StoreOFDPacket docnum=165261 [12:17:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 18 78 07 01 A5 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 55 13 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8D 85 02 00 35 04 06 00 A7 33 20 1E A7 01 BC ED A0 71 DA BA FC 77 [12:17:26]CheckFolder [12:17:26]dirname=/storage/ofd_packets [12:17:26]CheckFolder done [12:17:26]ProducePacketName [12:17:26]name=ofd_packets/00165261 [12:17:26]NVStorageSaveData ofd_packets/00165261 [12:17:26]File name is /storage/ofd_packets/00165261 [12:17:26]Write 301 bytes [12:17:26]NVStorageSaveData done [12:17:26]OFDSenderStorePacket done [12:17:26]KKMCreateOFDPacket done [12:17:26]NVStorageSaveData kkm_last_timestamp [12:17:26]File name is /storage/kkm_last_timestamp [12:17:26]Write 4 bytes [12:17:26]NVStorageSaveData done [12:17:26]OFD Sender: Processing packet 165261 [packets to send 106, broken 105] [12:17:26]ProducePacketName [12:17:26]name=ofd_packets/00165261 [12:17:26]OFD Sender: To server: pG, [12:17:26]CommunicateWithHost lk.salyk.kg:30040 [12:17:26]ConnectInit lk.salyk.kg [12:17:26]ExternCall_PrintAddStr [12:17:26]wPrintStart [12:17:26]Write to MH i2c: 01 00 00 D7 0A E1 [12:17:26]Write i2c OK [12:17:26]MH_I2C_Read... [12:17:26]Read from MH i2c: 01 [12:17:26]MH_I2C_Read... [12:17:26]Read from MH i2c: 01 07 00 [12:17:26]MH_I2C_Read... [12:17:26]Read from MH i2c: 01 07 00 D7 0A 00 00 00 00 00 FF 0F F6 [12:17:26]RasterBufferAndPrint [12:17:26]line Счет N : (1)459370 [12:17:26]line ИНН: 02508201610067 [12:17:26]line Контрольно-Кассовый Чек [12:17:26]line ПРОДАЖА [12:17:26]line ТРК (МРК, ГНК) : 22 [12:17:26]line Товар: 2710124130 [12:17:26]line Аи-92-К-5 [12:17:26]line 15.200 * 65.80 [12:17:26]line = 1000.16 [12:17:26]line НДС 12% НСП 1% [12:17:26]line > о реализуемом товаре [12:17:26]line ОКРУГЛЕНИЕ: -0.16 [12:17:26]line ИТОГО: 1000.00 [12:17:26]line Внесено: 1000.00 [12:17:26]line СДАЧА: 0.00 [12:17:26]line НСП 1% : 8.85 [12:17:26]line НДС 12% : 106.21 [12:17:26]line Наличными: 1000.00 [12:17:26]line Безнал.: 0.00 [12:17:26]line Место: АЗС № 72 "Партнер Нефть" [12:17:26]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:17:26]line СНО: Общий режим [12:17:26]line Чек 134 15.07.2024 12:17 [12:17:26]line Смена: 448 ФФД: 1.0 [12:17:26]line ЗНМ: 0300000160 [12:17:26]line РНМ: 0000000000090829 [12:17:26]line Версия ККМ: 001 [12:17:26]line ФМ: 0000000000874718 [12:17:26]line ФД: 165261 [12:17:26]line ФПД: 183838024050433 [12:17:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T121725&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165261&fm=183838024050433&tin=02508201610067®Number=0000000000090829&sum=100000 [12:17:26]Connected sock=11 [12:17:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 18 78 07 01 A5 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 55 13 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8D 85 02 00 35 04 06 00 A7 33 20 1E A7 01 BC ED A0 71 DA BA FC 77 [12:17:26]written 0, free lines is 4095 [12:17:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 97 08 47 00 E1 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8D 85 02 00 F4 03 04 00 E0 B9 94 66 B6 04 01 00 00 A4 CE 24 56 92 93 AE CD [12:17:27]CommunicateWithHost err = 0 [12:17:27]CheckOFDResponse [12:17:27]1017 (14) - 77093643461234 [12:17:27]1041 (16) - 0000000000874718 [12:17:27]1040 (4) - 165261 [12:17:27]1012 (4) - 15.07.2024 05:55 [12:17:27]1206 (1) - 0 [12:17:27]OFD Sender: Remove packet 165261 [12:17:27]ProducePacketName [12:17:27]name=ofd_packets/00165261 [12:17:27]NVStorageDeleteData [12:17:27]Write to MH i2c: 01 00 00 01 0B 0C [12:17:27]Write i2c OK [12:17:27]MH_I2C_Read... [12:17:27]Read from MH i2c: 01 [12:17:27]MH_I2C_Read... [12:17:27]Read from MH i2c: 01 07 00 [12:17:27]MH_I2C_Read... [12:17:27]Read from MH i2c: 01 07 00 01 0B 00 00 00 00 00 02 0D 22 [12:17:27]RasterBufferAndPrint [12:17:27]line [12:17:27]line [12:17:27]line [12:17:27]line [12:17:27]line [12:17:27]written 0, free lines is 3336 [12:17:27]MH_Cut [12:17:27]Write to MH i2c: D1 01 00 08 0B 01 E5 [12:17:27]Write i2c OK [12:17:27]MH_I2C_Read... [12:17:27]Read from MH i2c: D1 [12:17:27]MH_I2C_Read... [12:17:27]Read from MH i2c: D1 01 00 [12:17:27]MH_I2C_Read... [12:17:27]Read from MH i2c: D1 01 00 08 0B 00 E4 [12:17:27]Write to MH i2c: 01 00 00 09 0B 14 [12:17:27]Write i2c OK [12:17:27]MH_I2C_Read... [12:17:27]OFD Sender: No OFD packet to send [12:17:28]*** Cut start [12:17:28]*** Partial cut [12:17:28]*** CUTSNS_PIN = 1 [12:17:28]*** CUTSNS_PIN = 0 [12:17:28]*** Brake cut motor [12:17:28]Read from MH i2c: 01 [12:17:28]MH_I2C_Read... [12:17:28]*** Stop cut motor [12:17:28]*** Cut end [12:17:28]Read from MH i2c: 01 07 00 [12:17:28]MH_I2C_Read... [12:17:28]Read from MH i2c: 01 07 00 09 0B 00 00 00 00 00 FF 0F 29 [12:17:28]process_action close_receipt done [12:17:28]requested_data is exist [12:17:28]produce_requested_data [12:17:28]requested_item fm.sn is exist - process it [12:17:28]wFMCommunicate request_size=4 [12:17:28]MH_SAM_APDU [12:17:28]CAPDU: 80 11 00 00 [12:17:28]Write to MH i2c: E2 08 00 0A 0B 80 11 00 00 00 00 00 00 8F [12:17:28]Write i2c OK [12:17:28]MH_I2C_Read... [12:17:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:28]Read from MH i2c: E2 [12:17:28]MH_I2C_Read... [12:17:28]Read from MH i2c: E2 17 00 [12:17:28]MH_I2C_Read... [12:17:28]Read from MH i2c: E2 17 00 0A 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E5 [12:17:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:17:28]wFMCommunicate OK [12:17:28]requested_item fd.num is exist - process it [12:17:28]SAM_PROTO_GetFieldsCounters [12:17:28]wFMCommunicate request_size=4 [12:17:28]MH_SAM_APDU [12:17:28]CAPDU: 80 13 00 00 [12:17:28]Write to MH i2c: E2 08 00 0B 0B 80 13 00 00 00 00 00 00 92 [12:17:28]Write i2c OK [12:17:28]MH_I2C_Read... [12:17:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:17:28]Read from MH i2c: E2 [12:17:28]MH_I2C_Read... [12:17:28]Read from MH i2c: E2 62 00 [12:17:28]MH_I2C_Read... [12:17:28]Read from MH i2c: E2 62 00 0B 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 8D 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [12:17:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 8D 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:17:28]wFMCommunicate OK [12:17:28]SAM_PROTO_GetFieldsCounters done [12:17:28]requested_item shift.num is exist - process it [12:17:28]requested_item shift.opened is exist - process it [12:17:28]req_shift_opened [12:17:28]FM_GetShiftState [12:17:28]SAM_PROTO_GetShiftState [12:17:28]wFMCommunicate request_size=4 [12:17:28]MH_SAM_APDU [12:17:28]CAPDU: 80 13 01 00 [12:17:28]Write to MH i2c: E2 08 00 0C 0B 80 13 01 00 00 00 00 00 94 [12:17:28]Write i2c OK [12:17:28]MH_I2C_Read... [12:17:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:28]Read from MH i2c: E2 [12:17:28]MH_I2C_Read... [12:17:28]Read from MH i2c: E2 0E 00 [12:17:28]MH_I2C_Read... [12:17:28]Read from MH i2c: E2 0E 00 0C 0B 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 6D [12:17:28]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:17:28]wFMCommunicate OK [12:17:28]SAM_PROTO_GetShiftState done [12:17:28]FM_GetShiftState done [12:17:28]req_shift_opened done [12:17:28]requested_item shift.open_date is exist - process it [12:17:28]req_shift_open_date [12:17:28]req_shift_open_date done [12:17:28]produce_requested_data done [12:17:28]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165261,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [12:17:28]process_action_free close_receipt [12:17:28]json_value_free [12:17:28]json_value_free done [12:17:28]process_json_proto returns [12:17:28]Send response to host [12:17:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165261,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [12:17:28]free response buf [12:17:28]execute_script done [12:17:28]execute_script returns [12:17:28]free content buf [12:17:28]Sock 9.Close socket [12:17:28]Sock 9.Thread stoped [12:17:32]OFD Sender: No OFD packet to send [12:17:37]OFD Sender: No OFD packet to send [12:17:42]OFD Sender: No OFD packet to send [12:17:47]OFD Sender: No OFD packet to send [12:17:52]OFD Sender: No OFD packet to send [12:17:57]OFD Sender: No OFD packet to send [12:18:02]OFD Sender: No OFD packet to send [12:18:02]accept exits with 10 [12:18:02]New connection [12:18:02]New thread 3066854756 created [12:18:02]Thread 3066711396 joined [12:18:02]Waiting for new connection... [12:18:02] Sock 10.Parse request [12:18:02]Sock 10.Check first char [12:18:02]Sock 10.First char is OK [12:18:02]request: POST /json_proto HTTP/1.0 [12:18:02]Method: POST [12:18:02]URL: /json_proto [12:18:02]Method is POST - this is cgi request [12:18:02]url: /json_proto [12:18:02]query_string will be loaded in cgi processing [12:18:02]execute_cgi json_proto POST (null) [12:18:02]execute_cgi path=json_proto method=POST [12:18:02]POST find Content-Length [12:18:02]Host: 172.17.56.4:8080 [12:18:02]Content-Length: 1188 [12:18:02]Content-Type: application/json [12:18:02] [12:18:02]POST finish read [12:18:02]Found Content-Length = 1188 [12:18:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 72\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0434\u044B\u043A\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)459371\u000A15.07.2024 11:43\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.000 x 65.80\u000A\u0418\u0422\u041E\u0413: 987.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\u000A32769\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:02]execute_script... [12:18:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 72\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0434\u044B\u043A\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)459371\u000A15.07.2024 11:43\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.000 x 65.80\u000A\u0418\u0422\u041E\u0413: 987.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\u000A32769\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:02]POST & json_proto [12:18:02]process_json_proto [12:18:02]json parsed OK: [12:18:02]protocol is kg_v1.0 [12:18:02]action value=print_text [12:18:02]process_action print_text [12:18:02]cmd_print_text [12:18:02]ExternCall_PrintAddStr [12:18:02]wPrintStart [12:18:02]Write to MH i2c: 01 00 00 0D 0B 18 [12:18:02]Write i2c OK [12:18:02]MH_I2C_Read... [12:18:02]Read from MH i2c: 01 [12:18:02]MH_I2C_Read... [12:18:02]Read from MH i2c: 01 07 00 [12:18:02]MH_I2C_Read... [12:18:02]Read from MH i2c: 01 07 00 0D 0B 00 00 00 00 00 FF 0F 2D [12:18:02]RasterBufferAndPrint [12:18:02]line *****ТОВАРНЫЙ ЧЕК***** [12:18:02]line АЗС 72 [12:18:02]line Партнер нефть [12:18:02]line 02508201610067 [12:18:02]line Кассир : Садыков Н. [12:18:02]line Счет N : (1)459371 [12:18:02]line 15.07.2024 11:43 [12:18:02]line ПРОДАЖА [12:18:02]line ТРК (МРК, ГНК): 12 [12:18:02]line Вид ГСМ : 2710124130 [12:18:02]line Аи-92-К-5 [12:18:02]line 15.000 x 65.80 [12:18:02]line ИТОГ: 987.00 [12:18:02]line Тип оплаты: Талоны: Топливная Карта [12:18:02]line 32769 [12:18:02]line ______________________ [12:18:02]line (подпись) [12:18:02]written 0, free lines is 4095 [12:18:03]Write to MH i2c: 01 00 00 21 0B 2C [12:18:03]Write i2c OK [12:18:03]MH_I2C_Read... [12:18:03]Read from MH i2c: 01 [12:18:03]MH_I2C_Read... [12:18:03]Read from MH i2c: 01 07 00 [12:18:03]MH_I2C_Read... [12:18:03]Read from MH i2c: 01 07 00 21 0B 00 00 00 00 00 0E 0E 4F [12:18:03]RasterBufferAndPrint [12:18:03]line [12:18:03]line [12:18:03]line [12:18:03]line [12:18:03]line [12:18:03]written 0, free lines is 3599 [12:18:03]MH_Cut [12:18:03]Write to MH i2c: D1 01 00 28 0B 01 05 [12:18:03]Write i2c OK [12:18:03]MH_I2C_Read... [12:18:03]Read from MH i2c: D1 [12:18:03]MH_I2C_Read... [12:18:03]Read from MH i2c: D1 01 00 [12:18:03]MH_I2C_Read... [12:18:03]Read from MH i2c: D1 01 00 28 0B 00 04 [12:18:03]Write to MH i2c: 01 00 00 29 0B 34 [12:18:03]Write i2c OK [12:18:03]MH_I2C_Read... [12:18:03]*** Cut start [12:18:03]*** Partial cut [12:18:03]*** CUTSNS_PIN = 1 [12:18:03]*** CUTSNS_PIN = 0 [12:18:03]*** Brake cut motor [12:18:04]Read from MH i2c: 01 [12:18:04]MH_I2C_Read... [12:18:04]Read from MH i2c: 01 07 00 [12:18:04]MH_I2C_Read... [12:18:04]*** Stop cut motor [12:18:04]*** Cut end [12:18:04]Read from MH i2c: 01 07 00 29 0B 00 00 00 00 00 FF 0F 49 [12:18:04]process_action print_text done [12:18:04]requested_data is exist [12:18:04]produce_requested_data [12:18:04]requested_item fm.sn is exist - process it [12:18:04]wFMCommunicate request_size=4 [12:18:04]MH_SAM_APDU [12:18:04]CAPDU: 80 11 00 00 [12:18:04]Write to MH i2c: E2 08 00 2A 0B 80 11 00 00 00 00 00 00 AF [12:18:04]Write i2c OK [12:18:04]MH_I2C_Read... [12:18:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:04]Read from MH i2c: E2 [12:18:04]MH_I2C_Read... [12:18:04]Read from MH i2c: E2 17 00 [12:18:04]MH_I2C_Read... [12:18:04]Read from MH i2c: E2 17 00 2A 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 05 [12:18:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:18:04]wFMCommunicate OK [12:18:04]requested_item fd.num is exist - process it [12:18:04]SAM_PROTO_GetFieldsCounters [12:18:04]wFMCommunicate request_size=4 [12:18:04]MH_SAM_APDU [12:18:04]CAPDU: 80 13 00 00 [12:18:04]Write to MH i2c: E2 08 00 2B 0B 80 13 00 00 00 00 00 00 B2 [12:18:04]Write i2c OK [12:18:04]MH_I2C_Read... [12:18:04]Read from MH i2c: E2 [12:18:04]MH_I2C_Read... [12:18:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:18:04]Read from MH i2c: E2 62 00 [12:18:04]MH_I2C_Read... [12:18:04]Read from MH i2c: E2 62 00 2B 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 8D 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [12:18: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 8D 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:18:04]wFMCommunicate OK [12:18:04]SAM_PROTO_GetFieldsCounters done [12:18:04]requested_item shift.num is exist - process it [12:18:04]requested_item shift.opened is exist - process it [12:18:04]req_shift_opened [12:18:04]FM_GetShiftState [12:18:04]SAM_PROTO_GetShiftState [12:18:04]wFMCommunicate request_size=4 [12:18:04]MH_SAM_APDU [12:18:04]CAPDU: 80 13 01 00 [12:18:04]Write to MH i2c: E2 08 00 2C 0B 80 13 01 00 00 00 00 00 B4 [12:18:04]Write i2c OK [12:18:04]MH_I2C_Read... [12:18:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:04]Read from MH i2c: E2 [12:18:04]MH_I2C_Read... [12:18:04]Read from MH i2c: E2 0E 00 [12:18:04]MH_I2C_Read... [12:18:04]Read from MH i2c: E2 0E 00 2C 0B 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 8D [12:18:04]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:18:04]wFMCommunicate OK [12:18:04]SAM_PROTO_GetShiftState done [12:18:04]FM_GetShiftState done [12:18:04]req_shift_opened done [12:18:04]requested_item shift.open_date is exist - process it [12:18:04]req_shift_open_date [12:18:04]req_shift_open_date done [12:18:04]produce_requested_data done [12:18:04]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165261,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [12:18:04]process_action_free print_text [12:18:04]json_value_free [12:18:04]json_value_free done [12:18:04]process_json_proto returns [12:18:04]Send response to host [12:18:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165261,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [12:18:04]free response buf [12:18:04]execute_script done [12:18:04]execute_script returns [12:18:04]free content buf [12:18:04]Sock 10.Close socket [12:18:04]Sock 10.Thread stoped [12:18:07]OFD Sender: No OFD packet to send [12:18:12]OFD Sender: No OFD packet to send [12:18:15]accept exits with 8 [12:18:15]New connection [12:18:15]New thread 3066711396 created [12:18:15]Thread 3066854756 joined [12:18:15]Waiting for new connection... [12:18:15] Sock 8.Parse request [12:18:15]Sock 8.Check first char [12:18:15]Sock 8.First char is OK [12:18:15]request: POST /json_proto HTTP/1.0 [12:18:15]Method: POST [12:18:15]URL: /json_proto [12:18:15]Method is POST - this is cgi request [12:18:15]url: /json_proto [12:18:15]query_string will be loaded in cgi processing [12:18:15]execute_cgi json_proto POST (null) [12:18:15]execute_cgi path=json_proto method=POST [12:18:15]POST find Content-Length [12:18:15]Host: 172.17.56.4:8080 [12:18:15]Content-Length: 677 [12:18:15]Content-Type: application/json [12:18:15] [12:18:15]POST finish read [12:18:15]Found Content-Length = 677 [12:18:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459372", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.240, "sum" : 410.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 410.00, "total" : 410.00, "payments": [ { "type": 0, "sum" : 410.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:15]execute_script... [12:18:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459372", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.240, "sum" : 410.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 410.00, "total" : 410.00, "payments": [ { "type": 0, "sum" : 410.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:15]POST & json_proto [12:18:15]process_json_proto [12:18:15]json parsed OK: [12:18:15]protocol is kg_v1.0 [12:18:15]action value=close_receipt [12:18:15]process_action close_receipt [12:18:15]cmd_close_receipt [12:18:15]MH_GetDate [12:18:15]Write to MH i2c: F0 00 00 2D 0B 27 [12:18:15]Write i2c OK [12:18:15]MH_I2C_Read... [12:18:15]Read from MH i2c: F0 [12:18:15]MH_I2C_Read... [12:18:15]Read from MH i2c: F0 09 00 [12:18:15]MH_I2C_Read... [12:18:15]Read from MH i2c: F0 09 00 2D 0B 00 87 13 95 66 C9 DC B2 64 80 [12:18:15]GetLastDocTimeStamp 1721045845 [12:18:15]current date 1721045895 [12:18:15]FM_GetShiftState [12:18:15]SAM_PROTO_GetShiftState [12:18:15]wFMCommunicate request_size=4 [12:18:15]MH_SAM_APDU [12:18:15]CAPDU: 80 13 01 00 [12:18:15]Write to MH i2c: E2 08 00 2E 0B 80 13 01 00 00 00 00 00 B6 [12:18:15]Write i2c OK [12:18:15]MH_I2C_Read... [12:18:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:15]Read from MH i2c: E2 [12:18:15]MH_I2C_Read... [12:18:15]Read from MH i2c: E2 0E 00 [12:18:15]MH_I2C_Read... [12:18:15]Read from MH i2c: E2 0E 00 2E 0B 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 8F [12:18:15]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:18:15]wFMCommunicate OK [12:18:15]SAM_PROTO_GetShiftState done [12:18:15]FM_GetShiftState done [12:18:15]opened in 1721003876 [12:18:15]opened+sec_in_day 1721090276 [12:18:15]quantity*price = 41059 [12:18:15]sum+1 = 41060 [12:18:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 410.00 Внесено: 410.00 СДАЧА: 0.00 НСП 1% : 3.63 НДС 12% : 43.60 Наличными: 410.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 135 15.07.2024 12:18 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165262 ФПД: 67350200968411 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T121815&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165262&fm=67350200968411&tin=02508201610067®Number=0000000000090829&sum=41000 [12:18:16]StoreToDocumentArchive [12:18:16]shift 448 fd 165262 [12:18:16]save to /storage/0448/doc_00165262 [12:18:16]save last doc name /storage/0448/doc_00165262 to /storage/kkm_last_doc_name [12:18:16]save OK [12:18:16]Clear old archive folders... [12:18:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:18:16]tlvbuf is 017F77D0 [12:18:16]SAM_PROTO_ClearQueue [12:18:16]wFMCommunicate request_size=4 [12:18:16]MH_SAM_APDU [12:18:16]CAPDU: 80 09 00 00 [12:18:16]Write to MH i2c: E2 08 00 3B 0B 80 09 00 00 00 00 00 00 B8 [12:18:16]Write i2c OK [12:18:16]MH_I2C_Read... [12:18:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:18:16]Read from MH i2c: E2 [12:18:16]MH_I2C_Read... [12:18:16]Read from MH i2c: E2 03 00 [12:18:16]MH_I2C_Read... [12:18:16]Read from MH i2c: E2 03 00 3B 0B 00 90 00 BA [12:18:16]RAPDU: 90 00 [12:18:16]wFMCommunicate OK [12:18:16]SAM_PROTO_ClearQueue done [12:18:16]KKMCreateOFDPacket [12:18:16]OFDProtocolAddRootSTLVToBuf [12:18:16]FM_MakeSignedData [12:18:16]FM_MakeSignedData [12:18:16]SAM_PROTO_SignData [12:18:16]wFMCommunicate request_size=4 [12:18:16]MH_SAM_APDU [12:18:16]CAPDU: 80 0D 01 02 [12:18:16]Write to MH i2c: E2 08 00 3C 0B 80 0D 01 02 00 00 00 00 C0 [12:18:16]Write i2c OK [12:18:16]MH_I2C_Read... [12:18:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:18:16]Read from MH i2c: E2 [12:18:16]MH_I2C_Read... [12:18:16]Read from MH i2c: E2 03 00 [12:18:16]MH_I2C_Read... [12:18:16]Read from MH i2c: E2 03 00 3C 0B 00 90 00 BB [12:18:16]RAPDU: 90 00 [12:18:16]wFMCommunicate OK [12:18:16]wFMCommunicate request_size=255 [12:18:16]MH_SAM_APDU [12:18:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 63 A0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 11 00 00 00 00 07 04 06 00 28 A0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 87 13 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8E 85 02 00 35 04 06 00 3D [12:18:16]Write to MH i2c: E2 02 01 3D 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 63 A0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 11 00 00 00 00 07 04 06 00 28 A0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 87 13 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8E 85 02 00 35 04 06 00 3D 00 00 5C [12:18:16]Write i2c OK [12:18:16]MH_I2C_Read... [12:18:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:16]Read from MH i2c: E2 [12:18:16]MH_I2C_Read... [12:18:16]Read from MH i2c: E2 03 00 [12:18:16]MH_I2C_Read... [12:18:16]Read from MH i2c: E2 03 00 3D 0B 00 90 00 BC [12:18:16]RAPDU: 90 00 [12:18:16]wFMCommunicate OK [12:18:16]wFMCommunicate request_size=10 [12:18:16]MH_SAM_APDU [12:18:16]CAPDU: 80 0D 02 02 05 41 30 CD E4 DB [12:18:16]Write to MH i2c: E2 0D 00 3E 0B 80 0D 02 02 05 00 41 30 CD E4 DB 00 00 CA [12:18:16]Write i2c OK [12:18:16]MH_I2C_Read... [12:18:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:16]Read from MH i2c: E2 [12:18:16]MH_I2C_Read... [12:18:16]Read from MH i2c: E2 03 00 [12:18:16]MH_I2C_Read... [12:18:16]Read from MH i2c: E2 03 00 3E 0B 00 90 00 BD [12:18:16]RAPDU: 90 00 [12:18:16]wFMCommunicate OK [12:18:16]wFMCommunicate request_size=4 [12:18:16]MH_SAM_APDU [12:18:16]CAPDU: 80 0D 03 02 [12:18:16]Write to MH i2c: E2 08 00 3F 0B 80 0D 03 02 00 00 00 00 C5 [12:18:16]Write i2c OK [12:18:16]MH_I2C_Read... [12:18:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:18:16]Read from MH i2c: E2 [12:18:16]MH_I2C_Read... [12:18:16]Read from MH i2c: E2 0B 00 [12:18:16]MH_I2C_Read... [12:18:16]Read from MH i2c: E2 0B 00 3F 0B 00 79 96 40 2C 7E F0 B4 30 90 00 93 [12:18:16]RAPDU: 79 96 40 2C 7E F0 B4 30 90 00 [12:18:16]wFMCommunicate OK [12:18:16]SAM_PROTO_SignData done [12:18:16]FM_MakeSignedData done [12:18:16]CreateOFDProtocolMessage [12:18:16]wFMCommunicate request_size=4 [12:18:16]MH_SAM_APDU [12:18:16]CAPDU: 80 11 00 00 [12:18:16]Write to MH i2c: E2 08 00 40 0B 80 11 00 00 00 00 00 00 C5 [12:18:16]Write i2c OK [12:18:16]MH_I2C_Read... [12:18:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:16]Read from MH i2c: E2 [12:18:16]MH_I2C_Read... [12:18:16]Read from MH i2c: E2 17 00 [12:18:16]MH_I2C_Read... [12:18:16]Read from MH i2c: E2 17 00 40 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1B [12:18:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:18:16]wFMCommunicate OK [12:18:16]CreateOFDProtocolMessage done [12:18:16]OFDSenderStorePacket 165262 [12:18:16]StoreOFDPacket docnum=165262 [12:18:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F6 B1 07 01 FF 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 63 A0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 11 00 00 00 00 07 04 06 00 28 A0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 87 13 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8E 85 02 00 35 04 06 00 3D 41 30 CD E4 DB 79 96 40 2C 7E F0 B4 30 [12:18:16]CheckFolder [12:18:16]dirname=/storage/ofd_packets [12:18:16]CheckFolder done [12:18:16]ProducePacketName [12:18:16]name=ofd_packets/00165262 [12:18:16]NVStorageSaveData ofd_packets/00165262 [12:18:16]File name is /storage/ofd_packets/00165262 [12:18:16]Write 301 bytes [12:18:16]NVStorageSaveData done [12:18:16]OFDSenderStorePacket done [12:18:16]KKMCreateOFDPacket done [12:18:16]NVStorageSaveData kkm_last_timestamp [12:18:16]File name is /storage/kkm_last_timestamp [12:18:16]Write 4 bytes [12:18:16]NVStorageSaveData done [12:18:16]ExternCall_PrintAddStr [12:18:16]wPrintStart [12:18:16]Write to MH i2c: 01 00 00 41 0B 4C [12:18:16]Write i2c OK [12:18:16]MH_I2C_Read... [12:18:16]Read from MH i2c: 01 [12:18:16]MH_I2C_Read... [12:18:16]Read from MH i2c: 01 07 00 [12:18:16]MH_I2C_Read... [12:18:16]Read from MH i2c: 01 07 00 41 0B 00 00 00 00 00 FF 0F 61 [12:18:16]RasterBufferAndPrint [12:18:16]line Счет N : (1)459372 [12:18:16]line ИНН: 02508201610067 [12:18:16]line Контрольно-Кассовый Чек [12:18:16]line ПРОДАЖА [12:18:16]line ТРК (МРК, ГНК) : 22 [12:18:16]line Товар: 2710124130 [12:18:16]line Аи-92-К-5 [12:18:16]line 6.240 * 65.80 [12:18:16]line = 410.59 [12:18:16]line НДС 12% НСП 1% [12:18:16]line > о реализуемом товаре [12:18:16]line ОКРУГЛЕНИЕ: -0.59 [12:18:16]line ИТОГО: 410.00 [12:18:16]line Внесено: 410.00 [12:18:16]line СДАЧА: 0.00 [12:18:16]line НСП 1% : 3.63 [12:18:16]line НДС 12% : 43.60 [12:18:16]line Наличными: 410.00 [12:18:16]line Безнал.: 0.00 [12:18:16]line Место: АЗС № 72 "Партнер Нефть" [12:18:16]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:18:16]line СНО: Общий режим [12:18:16]line Чек 135 15.07.2024 12:18 [12:18:16]line Смена: 448 ФФД: 1.0 [12:18:16]line ЗНМ: 0300000160 [12:18:16]line РНМ: 0000000000090829 [12:18:16]line Версия ККМ: 001 [12:18:16]line ФМ: 0000000000874718 [12:18:16]line ФД: 165262 [12:18:16]line ФПД: 67350200968411 [12:18:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T121815&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165262&fm=67350200968411&tin=02508201610067®Number=0000000000090829&sum=41000 [12:18:16]written 0, free lines is 4095 [12:18:16]OFD Sender: Processing packet 165262 [packets to send 106, broken 105] [12:18:16]ProducePacketName [12:18:16]name=ofd_packets/00165262 [12:18:16]OFD Sender: To server: pG, [12:18:16]CommunicateWithHost lk.salyk.kg:30040 [12:18:16]ConnectInit lk.salyk.kg [12:18:16]Connected sock=10 [12:18: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 37 31 38 0F 01 00 00 F6 B1 07 01 FF 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 63 A0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 11 00 00 00 00 07 04 06 00 28 A0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 87 13 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8E 85 02 00 35 04 06 00 3D 41 30 CD E4 DB 79 96 40 2C 7E F0 B4 30 [12:18:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 04 0B 47 00 6F 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 8E 85 02 00 F4 03 04 00 12 BA 94 66 B6 04 01 00 00 F0 BB 0B D0 DE E0 2E 82 [12:18:17]CommunicateWithHost err = 0 [12:18:17]CheckOFDResponse [12:18:17]1017 (14) - 77093643461234 [12:18:17]1041 (16) - 0000000000874718 [12:18:17]1040 (4) - 165262 [12:18:17]1012 (4) - 15.07.2024 05:56 [12:18:17]1206 (1) - 0 [12:18:17]OFD Sender: Remove packet 165262 [12:18:17]ProducePacketName [12:18:17]name=ofd_packets/00165262 [12:18:17]NVStorageDeleteData [12:18:17]Write to MH i2c: 01 00 00 6B 0B 76 [12:18:17]Write i2c OK [12:18:17]MH_I2C_Read... [12:18:17]Read from MH i2c: 01 [12:18:17]MH_I2C_Read... [12:18:17]Read from MH i2c: 01 07 00 [12:18:17]MH_I2C_Read... [12:18:17]Read from MH i2c: 01 07 00 6B 0B 00 00 00 00 00 0F 0D 99 [12:18:17]RasterBufferAndPrint [12:18:17]line [12:18:17]line [12:18:17]line [12:18:17]line [12:18:17]line [12:18:17]written 0, free lines is 3349 [12:18:17]MH_Cut [12:18:17]Write to MH i2c: D1 01 00 72 0B 01 4F [12:18:17]Write i2c OK [12:18:17]MH_I2C_Read... [12:18:17]Read from MH i2c: D1 [12:18:17]MH_I2C_Read... [12:18:17]Read from MH i2c: D1 01 00 [12:18:17]MH_I2C_Read... [12:18:17]Read from MH i2c: D1 01 00 72 0B 00 4E [12:18:17]Write to MH i2c: 01 00 00 73 0B 7E [12:18:17]Write i2c OK [12:18:17]MH_I2C_Read... [12:18:17]OFD Sender: No OFD packet to send [12:18:17]*** Cut start [12:18:17]*** Partial cut [12:18:17]*** CUTSNS_PIN = 1 [12:18:17]*** CUTSNS_PIN = 0 [12:18:18]*** Brake cut motor [12:18:18]Read from MH i2c: 01 [12:18:18]MH_I2C_Read... [12:18:18]*** Stop cut motor [12:18:18]*** Cut end [12:18:18]Read from MH i2c: 01 07 00 [12:18:18]MH_I2C_Read... [12:18:18]Read from MH i2c: 01 07 00 73 0B 00 00 00 00 00 FF 0F 93 [12:18:18]process_action close_receipt done [12:18:18]requested_data is exist [12:18:18]produce_requested_data [12:18:18]requested_item fm.sn is exist - process it [12:18:18]wFMCommunicate request_size=4 [12:18:18]MH_SAM_APDU [12:18:18]CAPDU: 80 11 00 00 [12:18:18]Write to MH i2c: E2 08 00 74 0B 80 11 00 00 00 00 00 00 F9 [12:18:18]Write i2c OK [12:18:18]MH_I2C_Read... [12:18:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:18]Read from MH i2c: E2 [12:18:18]MH_I2C_Read... [12:18:18]Read from MH i2c: E2 17 00 [12:18:18]MH_I2C_Read... [12:18:18]Read from MH i2c: E2 17 00 74 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4F [12:18:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:18:18]wFMCommunicate OK [12:18:18]requested_item fd.num is exist - process it [12:18:18]SAM_PROTO_GetFieldsCounters [12:18:18]wFMCommunicate request_size=4 [12:18:18]MH_SAM_APDU [12:18:18]CAPDU: 80 13 00 00 [12:18:18]Write to MH i2c: E2 08 00 75 0B 80 13 00 00 00 00 00 00 FC [12:18:18]Write i2c OK [12:18:18]MH_I2C_Read... [12:18:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:18:18]Read from MH i2c: E2 [12:18:18]MH_I2C_Read... [12:18:18]Read from MH i2c: E2 62 00 [12:18:18]MH_I2C_Read... [12:18:18]Read from MH i2c: E2 62 00 75 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 8E 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [12:18: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 8E 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:18:18]wFMCommunicate OK [12:18:18]SAM_PROTO_GetFieldsCounters done [12:18:18]requested_item shift.num is exist - process it [12:18:18]requested_item shift.opened is exist - process it [12:18:18]req_shift_opened [12:18:18]FM_GetShiftState [12:18:18]SAM_PROTO_GetShiftState [12:18:18]wFMCommunicate request_size=4 [12:18:18]MH_SAM_APDU [12:18:18]CAPDU: 80 13 01 00 [12:18:18]Write to MH i2c: E2 08 00 76 0B 80 13 01 00 00 00 00 00 FE [12:18:18]Write i2c OK [12:18:18]MH_I2C_Read... [12:18:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:18]Read from MH i2c: E2 [12:18:18]MH_I2C_Read... [12:18:18]Read from MH i2c: E2 0E 00 [12:18:18]MH_I2C_Read... [12:18:18]Read from MH i2c: E2 0E 00 76 0B 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 D7 [12:18:18]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:18:18]wFMCommunicate OK [12:18:18]SAM_PROTO_GetShiftState done [12:18:18]FM_GetShiftState done [12:18:18]req_shift_opened done [12:18:18]requested_item shift.open_date is exist - process it [12:18:18]req_shift_open_date [12:18:18]req_shift_open_date done [12:18:18]produce_requested_data done [12:18:18]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165262,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [12:18:18]process_action_free close_receipt [12:18:18]json_value_free [12:18:18]json_value_free done [12:18:18]process_json_proto returns [12:18:18]Send response to host [12:18:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165262,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [12:18:18]free response buf [12:18:18]execute_script done [12:18:18]execute_script returns [12:18:18]free content buf [12:18:18]Sock 8.Close socket [12:18:18]Sock 8.Thread stoped [12:18:22]OFD Sender: No OFD packet to send [12:18:27]OFD Sender: No OFD packet to send [12:18:32]OFD Sender: No OFD packet to send [12:18:37]OFD Sender: No OFD packet to send [12:18:42]OFD Sender: No OFD packet to send [12:18:47]OFD Sender: No OFD packet to send [12:18:52]OFD Sender: No OFD packet to send [12:18:57]OFD Sender: No OFD packet to send [12:19:02]OFD Sender: No OFD packet to send [12:19:07]OFD Sender: No OFD packet to send [12:19:12]OFD Sender: No OFD packet to send [12:19:17]OFD Sender: No OFD packet to send [12:19:22]OFD Sender: No OFD packet to send [12:19:27]OFD Sender: No OFD packet to send [12:19:32]OFD Sender: No OFD packet to send [12:19:37]OFD Sender: No OFD packet to send [12:19:42]OFD Sender: No OFD packet to send [12:19:47]OFD Sender: No OFD packet to send [12:19:52]OFD Sender: No OFD packet to send [12:19:57]OFD Sender: No OFD packet to send [12:20:02]OFD Sender: No OFD packet to send [12:20:07]OFD Sender: No OFD packet to send [12:20:12]OFD Sender: No OFD packet to send [12:20:17]OFD Sender: No OFD packet to send [12:20:22]OFD Sender: No OFD packet to send [12:20:27]accept exits with 9 [12:20:27]New connection [12:20:27]New thread 3066854756 created [12:20:27] Sock 9.Parse request [12:20:27]Thread 3066711396 joined [12:20:27]Sock 9.Check first char [12:20:27]Waiting for new connection... [12:20:27]Sock 9.First char is OK [12:20:27]request: POST /json_proto HTTP/1.0 [12:20:27]Method: POST [12:20:27]URL: /json_proto [12:20:27]Method is POST - this is cgi request [12:20:27]url: /json_proto [12:20:27]query_string will be loaded in cgi processing [12:20:27]execute_cgi json_proto POST (null) [12:20:27]execute_cgi path=json_proto method=POST [12:20:27]POST find Content-Length [12:20:27]Host: 172.17.56.4:8080 [12:20:27]Content-Length: 790 [12:20:27]Content-Type: application/json [12:20:27] [12:20:27]POST finish read [12:20:27]Found Content-Length = 790 [12:20:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459373", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.670, "sum" : 500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:27]execute_script... [12:20:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459373", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.670, "sum" : 500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:27]POST & json_proto [12:20:27]process_json_proto [12:20:27]json parsed OK: [12:20:27]protocol is kg_v1.0 [12:20:27]action value=close_receipt [12:20:27]process_action close_receipt [12:20:27]cmd_close_receipt [12:20:27]MH_GetDate [12:20:27]Write to MH i2c: F0 00 00 77 0B 71 [12:20:27]Write i2c OK [12:20:27]MH_I2C_Read... [12:20:27]Read from MH i2c: F0 [12:20:27]MH_I2C_Read... [12:20:27]Read from MH i2c: F0 09 00 [12:20:27]MH_I2C_Read... [12:20:27]Read from MH i2c: F0 09 00 77 0B 00 0C 14 95 66 C9 DC B2 64 50 [12:20:27]GetLastDocTimeStamp 1721045895 [12:20:27]current date 1721046028 [12:20:27]FM_GetShiftState [12:20:27]SAM_PROTO_GetShiftState [12:20:27]wFMCommunicate request_size=4 [12:20:27]MH_SAM_APDU [12:20:27]CAPDU: 80 13 01 00 [12:20:27]Write to MH i2c: E2 08 00 78 0B 80 13 01 00 00 00 00 00 00 [12:20:27]Write i2c OK [12:20:27]MH_I2C_Read... [12:20:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:27]Read from MH i2c: E2 [12:20:27]MH_I2C_Read... [12:20:27]Read from MH i2c: E2 0E 00 [12:20:27]MH_I2C_Read... [12:20:27]Read from MH i2c: E2 0E 00 78 0B 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 D9 [12:20:27]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:20:27]wFMCommunicate OK [12:20:27]SAM_PROTO_GetShiftState done [12:20:27]FM_GetShiftState done [12:20:27]opened in 1721003876 [12:20:27]opened+sec_in_day 1721090276 [12:20:27]quantity*price = 50023 [12:20:27]sum+1 = 50025 [12:20:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.24 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.24 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 136 15.07.2024 12:20 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 165263 ФПД: 173446119119138 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T122028&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165263&fm=173446119119138&tin=02508201610067®Number=0000000000090829&sum=50024 [12:20:28]StoreToDocumentArchive [12:20:28]shift 448 fd 165263 [12:20:28]save to /storage/0448/doc_00165263 [12:20:28]save last doc name /storage/0448/doc_00165263 to /storage/kkm_last_doc_name [12:20:28]save OK [12:20:28]Clear old archive folders... [12:20:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:20:28]tlvbuf is 01858B00 [12:20:28]SAM_PROTO_ClearQueue [12:20:28]wFMCommunicate request_size=4 [12:20:28]MH_SAM_APDU [12:20:28]CAPDU: 80 09 00 00 [12:20:28]Write to MH i2c: E2 08 00 85 0B 80 09 00 00 00 00 00 00 02 [12:20:28]Write i2c OK [12:20:28]MH_I2C_Read... [12:20:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:20:28]Read from MH i2c: E2 [12:20:28]MH_I2C_Read... [12:20:28]Read from MH i2c: E2 03 00 [12:20:28]MH_I2C_Read... [12:20:28]Read from MH i2c: E2 03 00 85 0B 00 90 00 04 [12:20:28]RAPDU: 90 00 [12:20:28]wFMCommunicate OK [12:20:28]SAM_PROTO_ClearQueue done [12:20:28]KKMCreateOFDPacket [12:20:28]OFDProtocolAddRootSTLVToBuf [12:20:28]FM_MakeSignedData [12:20:28]FM_MakeSignedData [12:20:28]SAM_PROTO_SignData [12:20:28]wFMCommunicate request_size=4 [12:20:28]MH_SAM_APDU [12:20:28]CAPDU: 80 0D 01 02 [12:20:28]Write to MH i2c: E2 08 00 86 0B 80 0D 01 02 00 00 00 00 0A [12:20:28]Write i2c OK [12:20:28]MH_I2C_Read... [12:20:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:20:28]Read from MH i2c: E2 [12:20:28]MH_I2C_Read... [12:20:28]Read from MH i2c: E2 03 00 [12:20:28]MH_I2C_Read... [12:20:28]Read from MH i2c: E2 03 00 86 0B 00 90 00 05 [12:20:28]RAPDU: 90 00 [12:20:28]wFMCommunicate OK [12:20:28]wFMCommunicate request_size=255 [12:20:28]MH_SAM_APDU [12:20:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 0C 14 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8F 85 02 00 35 04 06 00 9D [12:20:28]Write to MH i2c: E2 02 01 87 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 0C 14 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8F 85 02 00 35 04 06 00 9D 00 00 E8 [12:20:28]Write i2c OK [12:20:28]MH_I2C_Read... [12:20:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:29]Read from MH i2c: E2 [12:20:29]MH_I2C_Read... [12:20:29]Read from MH i2c: E2 03 00 [12:20:29]MH_I2C_Read... [12:20:29]Read from MH i2c: E2 03 00 87 0B 00 90 00 06 [12:20:29]RAPDU: 90 00 [12:20:29]wFMCommunicate OK [12:20:29]wFMCommunicate request_size=10 [12:20:29]MH_SAM_APDU [12:20:29]CAPDU: 80 0D 02 02 05 BF 92 51 59 22 [12:20:29]Write to MH i2c: E2 0D 00 88 0B 80 0D 02 02 05 00 BF 92 51 59 22 00 00 34 [12:20:29]Write i2c OK [12:20:29]MH_I2C_Read... [12:20:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:29]Read from MH i2c: E2 [12:20:29]MH_I2C_Read... [12:20:29]Read from MH i2c: E2 03 00 [12:20:29]MH_I2C_Read... [12:20:29]Read from MH i2c: E2 03 00 88 0B 00 90 00 07 [12:20:29]RAPDU: 90 00 [12:20:29]wFMCommunicate OK [12:20:29]wFMCommunicate request_size=4 [12:20:29]MH_SAM_APDU [12:20:29]CAPDU: 80 0D 03 02 [12:20:29]Write to MH i2c: E2 08 00 89 0B 80 0D 03 02 00 00 00 00 0F [12:20:29]Write i2c OK [12:20:29]MH_I2C_Read... [12:20:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:20:29]Read from MH i2c: E2 [12:20:29]MH_I2C_Read... [12:20:29]Read from MH i2c: E2 0B 00 [12:20:29]MH_I2C_Read... [12:20:29]Read from MH i2c: E2 0B 00 89 0B 00 8B 3C 5F 09 7E C8 B7 AF 90 00 EB [12:20:29]RAPDU: 8B 3C 5F 09 7E C8 B7 AF 90 00 [12:20:29]wFMCommunicate OK [12:20:29]SAM_PROTO_SignData done [12:20:29]FM_MakeSignedData done [12:20:29]CreateOFDProtocolMessage [12:20:29]wFMCommunicate request_size=4 [12:20:29]MH_SAM_APDU [12:20:29]CAPDU: 80 11 00 00 [12:20:29]Write to MH i2c: E2 08 00 8A 0B 80 11 00 00 00 00 00 00 0F [12:20:29]Write i2c OK [12:20:29]MH_I2C_Read... [12:20:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:29]Read from MH i2c: E2 [12:20:29]MH_I2C_Read... [12:20:29]Read from MH i2c: E2 17 00 [12:20:29]MH_I2C_Read... [12:20:29]Read from MH i2c: E2 17 00 8A 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 65 [12:20:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:20:29]wFMCommunicate OK [12:20:29]CreateOFDProtocolMessage done [12:20:29]OFDSenderStorePacket 165263 [12:20:29]StoreOFDPacket docnum=165263 [12:20:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 10 01 07 01 02 D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 0C 14 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8F 85 02 00 35 04 06 00 9D BF 92 51 59 22 8B 3C 5F 09 7E C8 B7 AF [12:20:29]CheckFolder [12:20:29]dirname=/storage/ofd_packets [12:20:29]CheckFolder done [12:20:29]ProducePacketName [12:20:29]name=ofd_packets/00165263 [12:20:29]NVStorageSaveData ofd_packets/00165263 [12:20:29]File name is /storage/ofd_packets/00165263 [12:20:29]Write 301 bytes [12:20:29]NVStorageSaveData done [12:20:29]OFDSenderStorePacket done [12:20:29]KKMCreateOFDPacket done [12:20:29]NVStorageSaveData kkm_last_timestamp [12:20:29]File name is /storage/kkm_last_timestamp [12:20:29]Write 4 bytes [12:20:29]NVStorageSaveData done [12:20:29]ExternCall_PrintAddStr [12:20:29]wPrintStart [12:20:29]Write to MH i2c: 01 00 00 8B 0B 96 [12:20:29]Write i2c OK [12:20:29]MH_I2C_Read... [12:20:29]Read from MH i2c: 01 [12:20:29]MH_I2C_Read... [12:20:29]Read from MH i2c: 01 07 00 [12:20:29]MH_I2C_Read... [12:20:29]Read from MH i2c: 01 07 00 8B 0B 00 00 00 00 00 FF 0F AB [12:20:29]RasterBufferAndPrint [12:20:29]line Счет N : (1)459373 [12:20:29]line ИНН: 02508201610067 [12:20:29]line Контрольно-Кассовый Чек [12:20:29]line ПРОДАЖА [12:20:29]line ТРК (МРК, ГНК) : 22 [12:20:29]line Товар: 2710124130 [12:20:29]line Аи-92-К-5 [12:20:29]line 7.670 * 65.22 [12:20:29]line = 500.24 [12:20:29]line НДС 12% НСП 1% [12:20:29]line > о реализуемом товаре [12:20:29]line ИТОГО: 500.24 [12:20:29]line НСП 1% : 4.43 [12:20:29]line НДС 12% : 53.12 [12:20:29]line Наличными: 0.00 [12:20:29]line Безнал.: 500.24 [12:20:29]line Место: АЗС № 72 "Партнер Нефть" [12:20:29]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:20:29]line СНО: Общий режим [12:20:29]line Чек 136 15.07.2024 12:20 [12:20:29]line Смена: 448 ФФД: 1.0 [12:20:29]line ЗНМ: 0300000160 [12:20:29]line РНМ: 0000000000090829 [12:20:29]line Версия ККМ: 001 [12:20:29]line Платежная система: KICB Банк [12:20:29]line ФМ: 0000000000874718 [12:20:29]line ФД: 165263 [12:20:29]line ФПД: 173446119119138 [12:20:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T122028&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165263&fm=173446119119138&tin=02508201610067®Number=0000000000090829&sum=50024 [12:20:29]OFD Sender: Processing packet 165263 [packets to send 106, broken 105] [12:20:29]ProducePacketName [12:20:29]name=ofd_packets/00165263 [12:20:29]OFD Sender: To server: pG, [12:20:29]CommunicateWithHost lk.salyk.kg:30040 [12:20:29]ConnectInit lk.salyk.kg [12:20:29]written 0, free lines is 4095 [12:20:29]Connected sock=11 [12:20:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 10 01 07 01 02 D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 0C 14 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 8F 85 02 00 35 04 06 00 9D BF 92 51 59 22 8B 3C 5F 09 7E C8 B7 AF [12:20:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 E2 9C 47 00 0C 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 8F 85 02 00 F4 03 04 00 96 BA 94 66 B6 04 01 00 00 9D 42 82 98 7D 34 68 CA [12:20:29]CommunicateWithHost err = 0 [12:20:29]CheckOFDResponse [12:20:29]1017 (14) - 77093643461234 [12:20:29]1041 (16) - 0000000000874718 [12:20:29]1040 (4) - 165263 [12:20:29]1012 (4) - 15.07.2024 05:58 [12:20:29]1206 (1) - 0 [12:20:29]OFD Sender: Remove packet 165263 [12:20:29]ProducePacketName [12:20:29]name=ofd_packets/00165263 [12:20:29]NVStorageDeleteData [12:20:30]Write to MH i2c: 01 00 00 B4 0B BF [12:20:30]Write i2c OK [12:20:30]MH_I2C_Read... [12:20:30]Read from MH i2c: 01 [12:20:30]MH_I2C_Read... [12:20:30]Read from MH i2c: 01 07 00 [12:20:30]MH_I2C_Read... [12:20:30]Read from MH i2c: 01 07 00 B4 0B 00 00 00 00 00 1C 0D EF [12:20:30]RasterBufferAndPrint [12:20:30]line [12:20:30]line [12:20:30]line [12:20:30]line [12:20:30]line [12:20:30]written 0, free lines is 3362 [12:20:30]MH_Cut [12:20:30]Write to MH i2c: D1 01 00 BB 0B 01 98 [12:20:30]Write i2c OK [12:20:30]MH_I2C_Read... [12:20:30]Read from MH i2c: D1 [12:20:30]MH_I2C_Read... [12:20:30]Read from MH i2c: D1 01 00 [12:20:30]MH_I2C_Read... [12:20:30]Read from MH i2c: D1 01 00 BB 0B 00 97 [12:20:30]Write to MH i2c: 01 00 00 BC 0B C7 [12:20:30]Write i2c OK [12:20:30]MH_I2C_Read... [12:20:30]OFD Sender: No OFD packet to send [12:20:30]*** Cut start [12:20:30]*** Partial cut [12:20:30]*** CUTSNS_PIN = 1 [12:20:30]*** CUTSNS_PIN = 0 [12:20:30]*** Brake cut motor [12:20:31]Read from MH i2c: 01 [12:20:31]MH_I2C_Read... [12:20:31]*** Stop cut motor [12:20:31]*** Cut end [12:20:31]Read from MH i2c: 01 07 00 [12:20:31]MH_I2C_Read... [12:20:31]Read from MH i2c: 01 07 00 BC 0B 00 00 00 00 00 FF 0F DC [12:20:31]process_action close_receipt done [12:20:31]requested_data is exist [12:20:31]produce_requested_data [12:20:31]requested_item fm.sn is exist - process it [12:20:31]wFMCommunicate request_size=4 [12:20:31]MH_SAM_APDU [12:20:31]CAPDU: 80 11 00 00 [12:20:31]Write to MH i2c: E2 08 00 BD 0B 80 11 00 00 00 00 00 00 42 [12:20:31]Write i2c OK [12:20:31]MH_I2C_Read... [12:20:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:31]Read from MH i2c: E2 [12:20:31]MH_I2C_Read... [12:20:31]Read from MH i2c: E2 17 00 [12:20:31]MH_I2C_Read... [12:20:31]Read from MH i2c: E2 17 00 BD 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 98 [12:20:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:20:31]wFMCommunicate OK [12:20:31]requested_item fd.num is exist - process it [12:20:31]SAM_PROTO_GetFieldsCounters [12:20:31]wFMCommunicate request_size=4 [12:20:31]MH_SAM_APDU [12:20:31]CAPDU: 80 13 00 00 [12:20:31]Write to MH i2c: E2 08 00 BE 0B 80 13 00 00 00 00 00 00 45 [12:20:31]Write i2c OK [12:20:31]MH_I2C_Read... [12:20:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:20:31]Read from MH i2c: E2 [12:20:31]MH_I2C_Read... [12:20:31]Read from MH i2c: E2 62 00 [12:20:31]MH_I2C_Read... [12:20:31]Read from MH i2c: E2 62 00 BE 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 8F 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [12:20: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 8F 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:20:31]wFMCommunicate OK [12:20:31]SAM_PROTO_GetFieldsCounters done [12:20:31]requested_item shift.num is exist - process it [12:20:31]requested_item shift.opened is exist - process it [12:20:31]req_shift_opened [12:20:31]FM_GetShiftState [12:20:31]SAM_PROTO_GetShiftState [12:20:31]wFMCommunicate request_size=4 [12:20:31]MH_SAM_APDU [12:20:31]CAPDU: 80 13 01 00 [12:20:31]Write to MH i2c: E2 08 00 BF 0B 80 13 01 00 00 00 00 00 47 [12:20:31]Write i2c OK [12:20:31]MH_I2C_Read... [12:20:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:31]Read from MH i2c: E2 [12:20:31]MH_I2C_Read... [12:20:31]Read from MH i2c: E2 0E 00 [12:20:31]MH_I2C_Read... [12:20:31]Read from MH i2c: E2 0E 00 BF 0B 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 20 [12:20:31]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:20:31]wFMCommunicate OK [12:20:31]SAM_PROTO_GetShiftState done [12:20:31]FM_GetShiftState done [12:20:31]req_shift_opened done [12:20:31]requested_item shift.open_date is exist - process it [12:20:31]req_shift_open_date [12:20:31]req_shift_open_date done [12:20:31]produce_requested_data done [12:20:31]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165263,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [12:20:31]process_action_free close_receipt [12:20:31]json_value_free [12:20:31]json_value_free done [12:20:31]process_json_proto returns [12:20:31]Send response to host [12:20:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165263,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [12:20:31]free response buf [12:20:31]execute_script done [12:20:31]execute_script returns [12:20:31]free content buf [12:20:31]Sock 9.Close socket [12:20:31]Sock 9.Thread stoped [12:20:35]OFD Sender: No OFD packet to send [12:20:40]OFD Sender: No OFD packet to send [12:20:42]accept exits with 8 [12:20:42]New connection [12:20:42]New thread 3066711396 created [12:20:42]Thread 3066854756 joined [12:20:42]Waiting for new connection... [12:20:42] Sock 8.Parse request [12:20:42]Sock 8.Check first char [12:20:42]Sock 8.First char is OK [12:20:42]request: POST /json_proto HTTP/1.0 [12:20:42]Method: POST [12:20:42]URL: /json_proto [12:20:42]Method is POST - this is cgi request [12:20:42]url: /json_proto [12:20:42]query_string will be loaded in cgi processing [12:20:42]execute_cgi json_proto POST (null) [12:20:42]execute_cgi path=json_proto method=POST [12:20:42]POST find Content-Length [12:20:42]Host: 172.17.56.4:8080 [12:20:42]Content-Length: 677 [12:20:42]Content-Type: application/json [12:20:42] [12:20:42]POST finish read [12:20:42]Found Content-Length = 677 [12:20:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459374", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:42]execute_script... [12:20: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)459374", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:42]POST & json_proto [12:20:42]process_json_proto [12:20:42]json parsed OK: [12:20:42]protocol is kg_v1.0 [12:20:42]action value=close_receipt [12:20:42]process_action close_receipt [12:20:42]cmd_close_receipt [12:20:42]MH_GetDate [12:20:42]Write to MH i2c: F0 00 00 C0 0B BA [12:20:42]Write i2c OK [12:20:42]MH_I2C_Read... [12:20:42]Read from MH i2c: F0 [12:20:42]MH_I2C_Read... [12:20:42]Read from MH i2c: F0 09 00 [12:20:42]MH_I2C_Read... [12:20:42]Read from MH i2c: F0 09 00 C0 0B 00 1B 14 95 66 C9 DC B2 64 A8 [12:20:42]GetLastDocTimeStamp 1721046028 [12:20:42]current date 1721046043 [12:20:42]FM_GetShiftState [12:20:42]SAM_PROTO_GetShiftState [12:20:42]wFMCommunicate request_size=4 [12:20:42]MH_SAM_APDU [12:20:42]CAPDU: 80 13 01 00 [12:20:42]Write to MH i2c: E2 08 00 C1 0B 80 13 01 00 00 00 00 00 49 [12:20:42]Write i2c OK [12:20:42]MH_I2C_Read... [12:20:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:42]Read from MH i2c: E2 [12:20:42]MH_I2C_Read... [12:20:42]Read from MH i2c: E2 0E 00 [12:20:42]MH_I2C_Read... [12:20:42]Read from MH i2c: E2 0E 00 C1 0B 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 22 [12:20:42]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:20:42]wFMCommunicate OK [12:20:42]SAM_PROTO_GetShiftState done [12:20:42]FM_GetShiftState done [12:20:42]opened in 1721003876 [12:20:42]opened+sec_in_day 1721090276 [12:20:42]quantity*price = 40006 [12:20:42]sum+1 = 40007 [12:20:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 137 15.07.2024 12:20 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165264 ФПД: 44477113887557 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T122043&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165264&fm=44477113887557&tin=02508201610067®Number=0000000000090829&sum=40000 [12:20:43]StoreToDocumentArchive [12:20:43]shift 448 fd 165264 [12:20:43]save to /storage/0448/doc_00165264 [12:20:43]save last doc name /storage/0448/doc_00165264 to /storage/kkm_last_doc_name [12:20:43]save OK [12:20:43]Clear old archive folders... [12:20:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:20:43]tlvbuf is 01862200 [12:20:43]SAM_PROTO_ClearQueue [12:20:43]wFMCommunicate request_size=4 [12:20:43]MH_SAM_APDU [12:20:43]CAPDU: 80 09 00 00 [12:20:43]Write to MH i2c: E2 08 00 CE 0B 80 09 00 00 00 00 00 00 4B [12:20:43]Write i2c OK [12:20:43]MH_I2C_Read... [12:20:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:20:43]Read from MH i2c: E2 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 03 00 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 03 00 CE 0B 00 90 00 4D [12:20:43]RAPDU: 90 00 [12:20:43]wFMCommunicate OK [12:20:43]SAM_PROTO_ClearQueue done [12:20:43]KKMCreateOFDPacket [12:20:43]OFDProtocolAddRootSTLVToBuf [12:20:43]FM_MakeSignedData [12:20:43]FM_MakeSignedData [12:20:43]SAM_PROTO_SignData [12:20:43]wFMCommunicate request_size=4 [12:20:43]MH_SAM_APDU [12:20:43]CAPDU: 80 0D 01 02 [12:20:43]Write to MH i2c: E2 08 00 CF 0B 80 0D 01 02 00 00 00 00 53 [12:20:43]Write i2c OK [12:20:43]MH_I2C_Read... [12:20:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:20:43]Read from MH i2c: E2 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 03 00 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 03 00 CF 0B 00 90 00 4E [12:20:43]RAPDU: 90 00 [12:20:43]wFMCommunicate OK [12:20:43]wFMCommunicate request_size=255 [12:20:43]MH_SAM_APDU [12:20: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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 1B 14 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 90 85 02 00 35 04 06 00 28 [12:20:43]Write to MH i2c: E2 02 01 D0 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 1B 14 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 90 85 02 00 35 04 06 00 28 00 00 5F [12:20:43]Write i2c OK [12:20:43]MH_I2C_Read... [12:20:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:43]Read from MH i2c: E2 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 03 00 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 03 00 D0 0B 00 90 00 4F [12:20:43]RAPDU: 90 00 [12:20:43]wFMCommunicate OK [12:20:43]wFMCommunicate request_size=10 [12:20:43]MH_SAM_APDU [12:20:43]CAPDU: 80 0D 02 02 05 73 A2 92 EB 45 [12:20:43]Write to MH i2c: E2 0D 00 D1 0B 80 0D 02 02 05 00 73 A2 92 EB 45 00 00 37 [12:20:43]Write i2c OK [12:20:43]MH_I2C_Read... [12:20:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:43]Read from MH i2c: E2 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 03 00 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 03 00 D1 0B 00 90 00 50 [12:20:43]RAPDU: 90 00 [12:20:43]wFMCommunicate OK [12:20:43]wFMCommunicate request_size=4 [12:20:43]MH_SAM_APDU [12:20:43]CAPDU: 80 0D 03 02 [12:20:43]Write to MH i2c: E2 08 00 D2 0B 80 0D 03 02 00 00 00 00 58 [12:20:43]Write i2c OK [12:20:43]MH_I2C_Read... [12:20:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:20:43]Read from MH i2c: E2 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 0B 00 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 0B 00 D2 0B 00 0E E9 6F 50 F0 7A 0F 07 90 00 8F [12:20:43]RAPDU: 0E E9 6F 50 F0 7A 0F 07 90 00 [12:20:43]wFMCommunicate OK [12:20:43]SAM_PROTO_SignData done [12:20:43]FM_MakeSignedData done [12:20:43]CreateOFDProtocolMessage [12:20:43]wFMCommunicate request_size=4 [12:20:43]MH_SAM_APDU [12:20:43]CAPDU: 80 11 00 00 [12:20:43]Write to MH i2c: E2 08 00 D3 0B 80 11 00 00 00 00 00 00 58 [12:20:43]Write i2c OK [12:20:43]MH_I2C_Read... [12:20:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:43]Read from MH i2c: E2 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 17 00 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 17 00 D3 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AE [12:20:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:20:43]wFMCommunicate OK [12:20:43]CreateOFDProtocolMessage done [12:20:43]OFDSenderStorePacket 165264 [12:20:43]StoreOFDPacket docnum=165264 [12:20:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D4 C5 07 01 7E 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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 1B 14 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 90 85 02 00 35 04 06 00 28 73 A2 92 EB 45 0E E9 6F 50 F0 7A 0F 07 [12:20:43]CheckFolder [12:20:43]dirname=/storage/ofd_packets [12:20:43]CheckFolder done [12:20:43]ProducePacketName [12:20:43]name=ofd_packets/00165264 [12:20:43]NVStorageSaveData ofd_packets/00165264 [12:20:43]File name is /storage/ofd_packets/00165264 [12:20:43]Write 301 bytes [12:20:43]NVStorageSaveData done [12:20:43]OFDSenderStorePacket done [12:20:43]KKMCreateOFDPacket done [12:20:43]NVStorageSaveData kkm_last_timestamp [12:20:43]File name is /storage/kkm_last_timestamp [12:20:43]Write 4 bytes [12:20:43]NVStorageSaveData done [12:20:43]ExternCall_PrintAddStr [12:20:43]wPrintStart [12:20:43]Write to MH i2c: 01 00 00 D4 0B DF [12:20:43]Write i2c OK [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: 01 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: 01 07 00 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: 01 07 00 D4 0B 00 00 00 00 00 FF 0F F4 [12:20:43]RasterBufferAndPrint [12:20:43]line Счет N : (1)459374 [12:20:43]line ИНН: 02508201610067 [12:20:43]line Контрольно-Кассовый Чек [12:20:43]line ПРОДАЖА [12:20:43]line ТРК (МРК, ГНК) : 12 [12:20:43]line Товар: 2710124130 [12:20:43]line Аи-92-К-5 [12:20:43]line 6.080 * 65.80 [12:20:43]line = 400.06 [12:20:43]line НДС 12% НСП 1% [12:20:43]line > о реализуемом товаре [12:20:43]line ОКРУГЛЕНИЕ: -0.06 [12:20:43]line ИТОГО: 400.00 [12:20:43]line Внесено: 400.00 [12:20:43]line СДАЧА: 0.00 [12:20:43]line НСП 1% : 3.54 [12:20:43]line НДС 12% : 42.48 [12:20:43]line Наличными: 400.00 [12:20:43]line Безнал.: 0.00 [12:20:43]line Место: АЗС № 72 "Партнер Нефть" [12:20:43]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:20:43]line СНО: Общий режим [12:20:43]line Чек 137 15.07.2024 12:20 [12:20:43]line Смена: 448 ФФД: 1.0 [12:20:43]line ЗНМ: 0300000160 [12:20:43]line РНМ: 0000000000090829 [12:20:43]line Версия ККМ: 001 [12:20:43]line ФМ: 0000000000874718 [12:20:43]line ФД: 165264 [12:20:43]line ФПД: 44477113887557 [12:20:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T122043&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165264&fm=44477113887557&tin=02508201610067®Number=0000000000090829&sum=40000 [12:20:44]OFD Sender: Processing packet 165264 [packets to send 106, broken 105] [12:20:44]ProducePacketName [12:20:44]name=ofd_packets/00165264 [12:20:44]OFD Sender: To server: pG, [12:20:44]CommunicateWithHost lk.salyk.kg:30040 [12:20:44]ConnectInit lk.salyk.kg [12:20:44]written 0, free lines is 4095 [12:20:44]Connected sock=10 [12:20: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 37 31 38 0F 01 00 00 D4 C5 07 01 7E 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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 1B 14 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 90 85 02 00 35 04 06 00 28 73 A2 92 EB 45 0E E9 6F 50 F0 7A 0F 07 [12:20:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 0D B6 47 00 50 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 90 85 02 00 F4 03 04 00 A5 BA 94 66 B6 04 01 00 00 A2 58 04 60 C5 EC 30 51 [12:20:44]CommunicateWithHost err = 0 [12:20:44]CheckOFDResponse [12:20:44]1017 (14) - 77093643461234 [12:20:44]1041 (16) - 0000000000874718 [12:20:44]1040 (4) - 165264 [12:20:44]1012 (4) - 15.07.2024 05:59 [12:20:44]1206 (1) - 0 [12:20:44]OFD Sender: Remove packet 165264 [12:20:44]ProducePacketName [12:20:44]name=ofd_packets/00165264 [12:20:44]NVStorageDeleteData [12:20:44]Write to MH i2c: 01 00 00 FE 0B 09 [12:20:44]Write i2c OK [12:20:44]MH_I2C_Read... [12:20:44]Read from MH i2c: 01 [12:20:44]MH_I2C_Read... [12:20:44]Read from MH i2c: 01 07 00 [12:20:44]MH_I2C_Read... [12:20:44]Read from MH i2c: 01 07 00 FE 0B 00 00 00 00 00 F6 0C 12 [12:20:44]RasterBufferAndPrint [12:20:44]line [12:20:44]line [12:20:44]line [12:20:44]line [12:20:44]line [12:20:44]written 0, free lines is 3324 [12:20:44]MH_Cut [12:20:44]Write to MH i2c: D1 01 00 05 0C 01 E3 [12:20:44]Write i2c OK [12:20:44]MH_I2C_Read... [12:20:44]Read from MH i2c: D1 [12:20:44]MH_I2C_Read... [12:20:44]Read from MH i2c: D1 01 00 [12:20:44]MH_I2C_Read... [12:20:44]Read from MH i2c: D1 01 00 05 0C 00 E2 [12:20:44]Write to MH i2c: 01 00 00 06 0C 12 [12:20:44]Write i2c OK [12:20:44]MH_I2C_Read... [12:20:45]OFD Sender: No OFD packet to send [12:20:45]*** Cut start [12:20:45]*** Partial cut [12:20:45]*** CUTSNS_PIN = 1 [12:20:45]*** CUTSNS_PIN = 0 [12:20:45]*** Brake cut motor [12:20:46]Read from MH i2c: 01 [12:20:46]MH_I2C_Read... [12:20:46]*** Stop cut motor [12:20:46]*** Cut end [12:20:46]Read from MH i2c: 01 07 00 [12:20:46]MH_I2C_Read... [12:20:46]Read from MH i2c: 01 07 00 06 0C 00 00 00 00 00 FF 0F 27 [12:20:46]process_action close_receipt done [12:20:46]requested_data is exist [12:20:46]produce_requested_data [12:20:46]requested_item fm.sn is exist - process it [12:20:46]wFMCommunicate request_size=4 [12:20:46]MH_SAM_APDU [12:20:46]CAPDU: 80 11 00 00 [12:20:46]Write to MH i2c: E2 08 00 07 0C 80 11 00 00 00 00 00 00 8D [12:20:46]Write i2c OK [12:20:46]MH_I2C_Read... [12:20:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:46]Read from MH i2c: E2 [12:20:46]MH_I2C_Read... [12:20:46]Read from MH i2c: E2 17 00 [12:20:46]MH_I2C_Read... [12:20:46]Read from MH i2c: E2 17 00 07 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E3 [12:20:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:20:46]wFMCommunicate OK [12:20:46]requested_item fd.num is exist - process it [12:20:46]SAM_PROTO_GetFieldsCounters [12:20:46]wFMCommunicate request_size=4 [12:20:46]MH_SAM_APDU [12:20:46]CAPDU: 80 13 00 00 [12:20:46]Write to MH i2c: E2 08 00 08 0C 80 13 00 00 00 00 00 00 90 [12:20:46]Write i2c OK [12:20:46]MH_I2C_Read... [12:20:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:20:46]Read from MH i2c: E2 [12:20:46]MH_I2C_Read... [12:20:46]Read from MH i2c: E2 62 00 [12:20:46]MH_I2C_Read... [12:20:46]Read from MH i2c: E2 62 00 08 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 90 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [12:20: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 90 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:20:46]wFMCommunicate OK [12:20:46]SAM_PROTO_GetFieldsCounters done [12:20:46]requested_item shift.num is exist - process it [12:20:46]requested_item shift.opened is exist - process it [12:20:46]req_shift_opened [12:20:46]FM_GetShiftState [12:20:46]SAM_PROTO_GetShiftState [12:20:46]wFMCommunicate request_size=4 [12:20:46]MH_SAM_APDU [12:20:46]CAPDU: 80 13 01 00 [12:20:46]Write to MH i2c: E2 08 00 09 0C 80 13 01 00 00 00 00 00 92 [12:20:46]Write i2c OK [12:20:46]MH_I2C_Read... [12:20:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:46]Read from MH i2c: E2 [12:20:46]MH_I2C_Read... [12:20:46]Read from MH i2c: E2 0E 00 [12:20:46]MH_I2C_Read... [12:20:46]Read from MH i2c: E2 0E 00 09 0C 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 6B [12:20:46]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:20:46]wFMCommunicate OK [12:20:46]SAM_PROTO_GetShiftState done [12:20:46]FM_GetShiftState done [12:20:46]req_shift_opened done [12:20:46]requested_item shift.open_date is exist - process it [12:20:46]req_shift_open_date [12:20:46]req_shift_open_date done [12:20:46]produce_requested_data done [12:20:46]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165264,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [12:20:46]process_action_free close_receipt [12:20:46]json_value_free [12:20:46]json_value_free done [12:20:46]process_json_proto returns [12:20:46]Send response to host [12:20:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165264,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [12:20:46]free response buf [12:20:46]execute_script done [12:20:46]execute_script returns [12:20:46]free content buf [12:20:46]Sock 8.Close socket [12:20:46]Sock 8.Thread stoped [12:20:50]OFD Sender: No OFD packet to send [12:20:55]OFD Sender: No OFD packet to send [12:21:00]OFD Sender: No OFD packet to send [12:21:05]OFD Sender: No OFD packet to send [12:21:10]OFD Sender: No OFD packet to send [12:21:15]OFD Sender: No OFD packet to send [12:21:20]OFD Sender: No OFD packet to send [12:21:25]OFD Sender: No OFD packet to send [12:21:30]OFD Sender: No OFD packet to send [12:21:35]OFD Sender: No OFD packet to send [12:21:40]OFD Sender: No OFD packet to send [12:21:45]OFD Sender: No OFD packet to send [12:21:50]OFD Sender: No OFD packet to send [12:21:55]OFD Sender: No OFD packet to send [12:22:00]OFD Sender: No OFD packet to send [12:22:03]accept exits with 9 [12:22:03]New connection [12:22:03]New thread 3066854756 created [12:22:03]Thread 3066711396 joined [12:22:03]Waiting for new connection... [12:22:03] Sock 9.Parse request [12:22:03]Sock 9.Check first char [12:22:03]Sock 9.First char is OK [12:22:03]request: POST /json_proto HTTP/1.0 [12:22:03]Method: POST [12:22:03]URL: /json_proto [12:22:03]Method is POST - this is cgi request [12:22:03]url: /json_proto [12:22:03]query_string will be loaded in cgi processing [12:22:03]execute_cgi json_proto POST (null) [12:22:03]execute_cgi path=json_proto method=POST [12:22:03]POST find Content-Length [12:22:03]Host: 172.17.56.4:8080 [12:22:03]Content-Length: 790 [12:22:03]Content-Type: application/json [12:22:03] [12:22:03]POST finish read [12:22:03]Found Content-Length = 790 [12:22:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459375", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 4.600, "sum" : 300.01, "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:22:03]execute_script... [12:22: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)459375", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 4.600, "sum" : 300.01, "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:22:03]POST & json_proto [12:22:03]process_json_proto [12:22:03]json parsed OK: [12:22:03]protocol is kg_v1.0 [12:22:03]action value=close_receipt [12:22:03]process_action close_receipt [12:22:03]cmd_close_receipt [12:22:03]MH_GetDate [12:22:03]Write to MH i2c: F0 00 00 0A 0C 05 [12:22:03]Write i2c OK [12:22:03]MH_I2C_Read... [12:22:03]Read from MH i2c: F0 [12:22:03]MH_I2C_Read... [12:22:03]Read from MH i2c: F0 09 00 [12:22:03]MH_I2C_Read... [12:22:03]Read from MH i2c: F0 09 00 0A 0C 00 6C 14 95 66 C9 DC B2 64 44 [12:22:03]GetLastDocTimeStamp 1721046043 [12:22:03]current date 1721046124 [12:22:03]FM_GetShiftState [12:22:03]SAM_PROTO_GetShiftState [12:22:03]wFMCommunicate request_size=4 [12:22:03]MH_SAM_APDU [12:22:03]CAPDU: 80 13 01 00 [12:22:03]Write to MH i2c: E2 08 00 0B 0C 80 13 01 00 00 00 00 00 94 [12:22:03]Write i2c OK [12:22:03]MH_I2C_Read... [12:22:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:03]Read from MH i2c: E2 [12:22:03]MH_I2C_Read... [12:22:03]Read from MH i2c: E2 0E 00 [12:22:03]MH_I2C_Read... [12:22:03]Read from MH i2c: E2 0E 00 0B 0C 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 6D [12:22:03]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:22:03]wFMCommunicate OK [12:22:03]SAM_PROTO_GetShiftState done [12:22:03]FM_GetShiftState done [12:22:03]opened in 1721003876 [12:22:03]opened+sec_in_day 1721090276 [12:22:03]quantity*price = 30001 [12:22:03]sum+1 = 30002 [12:22:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.01 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 0.00 Безнал.: 300.01 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 138 15.07.2024 12:22 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 165265 ФПД: 136622133901922 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T122204&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165265&fm=136622133901922&tin=02508201610067®Number=0000000000090829&sum=30001 [12:22:04]StoreToDocumentArchive [12:22:04]shift 448 fd 165265 [12:22:04]save to /storage/0448/doc_00165265 [12:22:04]save last doc name /storage/0448/doc_00165265 to /storage/kkm_last_doc_name [12:22:04]save OK [12:22:04]Clear old archive folders... [12:22:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:22:04]tlvbuf is 0181A530 [12:22:04]SAM_PROTO_ClearQueue [12:22:04]wFMCommunicate request_size=4 [12:22:04]MH_SAM_APDU [12:22:04]CAPDU: 80 09 00 00 [12:22:04]Write to MH i2c: E2 08 00 18 0C 80 09 00 00 00 00 00 00 96 [12:22:04]Write i2c OK [12:22:04]MH_I2C_Read... [12:22:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:22:04]Read from MH i2c: E2 [12:22:04]MH_I2C_Read... [12:22:04]Read from MH i2c: E2 03 00 [12:22:04]MH_I2C_Read... [12:22:04]Read from MH i2c: E2 03 00 18 0C 00 90 00 98 [12:22:04]RAPDU: 90 00 [12:22:04]wFMCommunicate OK [12:22:04]SAM_PROTO_ClearQueue done [12:22:04]KKMCreateOFDPacket [12:22:04]OFDProtocolAddRootSTLVToBuf [12:22:04]FM_MakeSignedData [12:22:04]FM_MakeSignedData [12:22:04]SAM_PROTO_SignData [12:22:04]wFMCommunicate request_size=4 [12:22:04]MH_SAM_APDU [12:22:04]CAPDU: 80 0D 01 02 [12:22:04]Write to MH i2c: E2 08 00 19 0C 80 0D 01 02 00 00 00 00 9E [12:22:04]Write i2c OK [12:22:04]MH_I2C_Read... [12:22:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:22:04]Read from MH i2c: E2 [12:22:04]MH_I2C_Read... [12:22:04]Read from MH i2c: E2 03 00 [12:22:04]MH_I2C_Read... [12:22:04]Read from MH i2c: E2 03 00 19 0C 00 90 00 99 [12:22:04]RAPDU: 90 00 [12:22:04]wFMCommunicate OK [12:22:04]wFMCommunicate request_size=255 [12:22:04]MH_SAM_APDU [12:22: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 F8 11 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 31 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 6C 14 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 91 85 02 00 35 04 06 00 7C [12:22:04]Write to MH i2c: E2 02 01 1A 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 31 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 6C 14 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 91 85 02 00 35 04 06 00 7C 00 00 1E [12:22:04]Write i2c OK [12:22:04]MH_I2C_Read... [12:22:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:05]Read from MH i2c: E2 [12:22:05]MH_I2C_Read... [12:22:05]Read from MH i2c: E2 03 00 [12:22:05]MH_I2C_Read... [12:22:05]Read from MH i2c: E2 03 00 1A 0C 00 90 00 9A [12:22:05]RAPDU: 90 00 [12:22:05]wFMCommunicate OK [12:22:05]wFMCommunicate request_size=10 [12:22:05]MH_SAM_APDU [12:22:05]CAPDU: 80 0D 02 02 05 41 D1 C2 7A 62 [12:22:05]Write to MH i2c: E2 0D 00 1B 0C 80 0D 02 02 05 00 41 D1 C2 7A 62 00 00 5B [12:22:05]Write i2c OK [12:22:05]MH_I2C_Read... [12:22:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:05]Read from MH i2c: E2 [12:22:05]MH_I2C_Read... [12:22:05]Read from MH i2c: E2 03 00 [12:22:05]MH_I2C_Read... [12:22:05]Read from MH i2c: E2 03 00 1B 0C 00 90 00 9B [12:22:05]RAPDU: 90 00 [12:22:05]wFMCommunicate OK [12:22:05]wFMCommunicate request_size=4 [12:22:05]MH_SAM_APDU [12:22:05]CAPDU: 80 0D 03 02 [12:22:05]Write to MH i2c: E2 08 00 1C 0C 80 0D 03 02 00 00 00 00 A3 [12:22:05]Write i2c OK [12:22:05]MH_I2C_Read... [12:22:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:22:05]Read from MH i2c: E2 [12:22:05]MH_I2C_Read... [12:22:05]Read from MH i2c: E2 0B 00 [12:22:05]MH_I2C_Read... [12:22:05]Read from MH i2c: E2 0B 00 1C 0C 00 35 7E A5 F5 CB AF 9D 5A 90 00 62 [12:22:05]RAPDU: 35 7E A5 F5 CB AF 9D 5A 90 00 [12:22:05]wFMCommunicate OK [12:22:05]SAM_PROTO_SignData done [12:22:05]FM_MakeSignedData done [12:22:05]CreateOFDProtocolMessage [12:22:05]wFMCommunicate request_size=4 [12:22:05]MH_SAM_APDU [12:22:05]CAPDU: 80 11 00 00 [12:22:05]Write to MH i2c: E2 08 00 1D 0C 80 11 00 00 00 00 00 00 A3 [12:22:05]Write i2c OK [12:22:05]MH_I2C_Read... [12:22:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:05]Read from MH i2c: E2 [12:22:05]MH_I2C_Read... [12:22:05]Read from MH i2c: E2 17 00 [12:22:05]MH_I2C_Read... [12:22:05]Read from MH i2c: E2 17 00 1D 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F9 [12:22:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:22:05]wFMCommunicate OK [12:22:05]CreateOFDProtocolMessage done [12:22:05]OFDSenderStorePacket 165265 [12:22:05]StoreOFDPacket docnum=165265 [12:22:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D6 F8 07 01 99 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 F8 11 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 31 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 6C 14 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 91 85 02 00 35 04 06 00 7C 41 D1 C2 7A 62 35 7E A5 F5 CB AF 9D 5A [12:22:05]CheckFolder [12:22:05]dirname=/storage/ofd_packets [12:22:05]CheckFolder done [12:22:05]ProducePacketName [12:22:05]name=ofd_packets/00165265 [12:22:05]NVStorageSaveData ofd_packets/00165265 [12:22:05]File name is /storage/ofd_packets/00165265 [12:22:05]Write 301 bytes [12:22:05]NVStorageSaveData done [12:22:05]OFDSenderStorePacket done [12:22:05]KKMCreateOFDPacket done [12:22:05]NVStorageSaveData kkm_last_timestamp [12:22:05]File name is /storage/kkm_last_timestamp [12:22:05]Write 4 bytes [12:22:05]NVStorageSaveData done [12:22:05]ExternCall_PrintAddStr [12:22:05]wPrintStart [12:22:05]Write to MH i2c: 01 00 00 1E 0C 2A [12:22:05]Write i2c OK [12:22:05]MH_I2C_Read... [12:22:05]Read from MH i2c: 01 [12:22:05]MH_I2C_Read... [12:22:05]Read from MH i2c: 01 07 00 [12:22:05]MH_I2C_Read... [12:22:05]Read from MH i2c: 01 07 00 1E 0C 00 00 00 00 00 FF 0F 3F [12:22:05]RasterBufferAndPrint [12:22:05]line Счет N : (1)459375 [12:22:05]line ИНН: 02508201610067 [12:22:05]line Контрольно-Кассовый Чек [12:22:05]line ПРОДАЖА [12:22:05]line ТРК (МРК, ГНК) : 12 [12:22:05]line Товар: 2710124130 [12:22:05]line Аи-92-К-5 [12:22:05]line 4.600 * 65.22 [12:22:05]line = 300.01 [12:22:05]line НДС 12% НСП 1% [12:22:05]line > о реализуемом товаре [12:22:05]line ИТОГО: 300.01 [12:22:05]line НСП 1% : 2.65 [12:22:05]line НДС 12% : 31.86 [12:22:05]line Наличными: 0.00 [12:22:05]line Безнал.: 300.01 [12:22:05]line Место: АЗС № 72 "Партнер Нефть" [12:22:05]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:22:05]line СНО: Общий режим [12:22:05]line Чек 138 15.07.2024 12:22 [12:22:05]line Смена: 448 ФФД: 1.0 [12:22:05]line ЗНМ: 0300000160 [12:22:05]line РНМ: 0000000000090829 [12:22:05]line Версия ККМ: 001 [12:22:05]line Платежная система: KICB Банк [12:22:05]line ФМ: 0000000000874718 [12:22:05]line ФД: 165265 [12:22:05]line ФПД: 136622133901922 [12:22:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T122204&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165265&fm=136622133901922&tin=02508201610067®Number=0000000000090829&sum=30001 [12:22:05]OFD Sender: Processing packet 165265 [packets to send 106, broken 105] [12:22:05]ProducePacketName [12:22:05]name=ofd_packets/00165265 [12:22:05]OFD Sender: To server: pG, [12:22:05]CommunicateWithHost lk.salyk.kg:30040 [12:22:05]ConnectInit lk.salyk.kg [12:22:05]written 0, free lines is 4095 [12:22:05]Connected sock=10 [12:22: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 37 31 38 0F 01 00 00 D6 F8 07 01 99 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 F8 11 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 31 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 6C 14 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 91 85 02 00 35 04 06 00 7C 41 D1 C2 7A 62 35 7E A5 F5 CB AF 9D 5A [12:22:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 20 CE 47 00 C6 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 91 85 02 00 F4 03 04 00 F6 BA 94 66 B6 04 01 00 00 1D 4D D5 67 0F 93 B1 E7 [12:22:05]CommunicateWithHost err = 0 [12:22:05]CheckOFDResponse [12:22:05]1017 (14) - 77093643461234 [12:22:05]1041 (16) - 0000000000874718 [12:22:05]1040 (4) - 165265 [12:22:05]1012 (4) - 15.07.2024 06:00 [12:22:05]1206 (1) - 0 [12:22:05]OFD Sender: Remove packet 165265 [12:22:05]ProducePacketName [12:22:05]name=ofd_packets/00165265 [12:22:05]NVStorageDeleteData [12:22:05]Write to MH i2c: 01 00 00 47 0C 53 [12:22:05]Write i2c OK [12:22:05]MH_I2C_Read... [12:22:05]Read from MH i2c: 01 [12:22:05]MH_I2C_Read... [12:22:05]Read from MH i2c: 01 07 00 [12:22:05]MH_I2C_Read... [12:22:05]Read from MH i2c: 01 07 00 47 0C 00 00 00 00 00 01 0D 68 [12:22:05]RasterBufferAndPrint [12:22:05]line [12:22:05]line [12:22:05]line [12:22:05]line [12:22:05]line [12:22:05]written 0, free lines is 3335 [12:22:06]MH_Cut [12:22:06]Write to MH i2c: D1 01 00 4E 0C 01 2C [12:22:06]Write i2c OK [12:22:06]MH_I2C_Read... [12:22:06]Read from MH i2c: D1 [12:22:06]MH_I2C_Read... [12:22:06]Read from MH i2c: D1 01 00 [12:22:06]MH_I2C_Read... [12:22:06]Read from MH i2c: D1 01 00 4E 0C 00 2B [12:22:06]Write to MH i2c: 01 00 00 4F 0C 5B [12:22:06]Write i2c OK [12:22:06]MH_I2C_Read... [12:22:06]OFD Sender: No OFD packet to send [12:22:06]*** Cut start [12:22:06]*** Partial cut [12:22:06]*** CUTSNS_PIN = 1 [12:22:06]*** CUTSNS_PIN = 0 [12:22:06]*** Brake cut motor [12:22:07]Read from MH i2c: 01 [12:22:07]MH_I2C_Read... [12:22:07]*** Stop cut motor [12:22:07]*** Cut end [12:22:07]Read from MH i2c: 01 07 00 [12:22:07]MH_I2C_Read... [12:22:07]Read from MH i2c: 01 07 00 4F 0C 00 00 00 00 00 FF 0F 70 [12:22:07]process_action close_receipt done [12:22:07]requested_data is exist [12:22:07]produce_requested_data [12:22:07]requested_item fm.sn is exist - process it [12:22:07]wFMCommunicate request_size=4 [12:22:07]MH_SAM_APDU [12:22:07]CAPDU: 80 11 00 00 [12:22:07]Write to MH i2c: E2 08 00 50 0C 80 11 00 00 00 00 00 00 D6 [12:22:07]Write i2c OK [12:22:07]MH_I2C_Read... [12:22:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:07]Read from MH i2c: E2 [12:22:07]MH_I2C_Read... [12:22:07]Read from MH i2c: E2 17 00 [12:22:07]MH_I2C_Read... [12:22:07]Read from MH i2c: E2 17 00 50 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2C [12:22:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:22:07]wFMCommunicate OK [12:22:07]requested_item fd.num is exist - process it [12:22:07]SAM_PROTO_GetFieldsCounters [12:22:07]wFMCommunicate request_size=4 [12:22:07]MH_SAM_APDU [12:22:07]CAPDU: 80 13 00 00 [12:22:07]Write to MH i2c: E2 08 00 51 0C 80 13 00 00 00 00 00 00 D9 [12:22:07]Write i2c OK [12:22:07]MH_I2C_Read... [12:22:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:22:07]Read from MH i2c: E2 [12:22:07]MH_I2C_Read... [12:22:07]Read from MH i2c: E2 62 00 [12:22:07]MH_I2C_Read... [12:22:07]Read from MH i2c: E2 62 00 51 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 91 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [12:22:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 91 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:22:07]wFMCommunicate OK [12:22:07]SAM_PROTO_GetFieldsCounters done [12:22:07]requested_item shift.num is exist - process it [12:22:07]requested_item shift.opened is exist - process it [12:22:07]req_shift_opened [12:22:07]FM_GetShiftState [12:22:07]SAM_PROTO_GetShiftState [12:22:07]wFMCommunicate request_size=4 [12:22:07]MH_SAM_APDU [12:22:07]CAPDU: 80 13 01 00 [12:22:07]Write to MH i2c: E2 08 00 52 0C 80 13 01 00 00 00 00 00 DB [12:22:07]Write i2c OK [12:22:07]MH_I2C_Read... [12:22:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:07]Read from MH i2c: E2 [12:22:07]MH_I2C_Read... [12:22:07]Read from MH i2c: E2 0E 00 [12:22:07]MH_I2C_Read... [12:22:07]Read from MH i2c: E2 0E 00 52 0C 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 B4 [12:22:07]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:22:07]wFMCommunicate OK [12:22:07]SAM_PROTO_GetShiftState done [12:22:07]FM_GetShiftState done [12:22:07]req_shift_opened done [12:22:07]requested_item shift.open_date is exist - process it [12:22:07]req_shift_open_date [12:22:07]req_shift_open_date done [12:22:07]produce_requested_data done [12:22:07]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165265,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [12:22:07]process_action_free close_receipt [12:22:07]json_value_free [12:22:07]json_value_free done [12:22:07]process_json_proto returns [12:22:07]Send response to host [12:22:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165265,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [12:22:07]free response buf [12:22:07]execute_script done [12:22:07]execute_script returns [12:22:07]free content buf [12:22:07]Sock 9.Close socket [12:22:07]Sock 9.Thread stoped [12:22:11]OFD Sender: No OFD packet to send [12:22:16]OFD Sender: No OFD packet to send [12:22:21]OFD Sender: No OFD packet to send [12:22:26]OFD Sender: No OFD packet to send [12:22:31]OFD Sender: No OFD packet to send [12:22:36]OFD Sender: No OFD packet to send [12:22:37]accept exits with 8 [12:22:37]New connection [12:22:37]New thread 3066711396 created [12:22:37]Thread 3066854756 joined [12:22:37]Waiting for new connection... [12:22:37] Sock 8.Parse request [12:22:37]Sock 8.Check first char [12:22:37]Sock 8.First char is OK [12:22:37]request: POST /json_proto HTTP/1.0 [12:22:37]Method: POST [12:22:37]URL: /json_proto [12:22:37]Method is POST - this is cgi request [12:22:37]url: /json_proto [12:22:37]query_string will be loaded in cgi processing [12:22:37]execute_cgi json_proto POST (null) [12:22:37]execute_cgi path=json_proto method=POST [12:22:37]POST find Content-Length [12:22:37]Host: 172.17.56.4:8080 [12:22:37]Content-Length: 678 [12:22:37]Content-Type: application/json [12:22:37] [12:22:37]POST finish read [12:22:37]Found Content-Length = 678 [12:22:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459376", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.340, "sum" : 680.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 680.00, "total" : 680.00, "payments": [ { "type": 0, "sum" : 680.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:22:37]execute_script... [12:22:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459376", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.340, "sum" : 680.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 680.00, "total" : 680.00, "payments": [ { "type": 0, "sum" : 680.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:22:37]POST & json_proto [12:22:37]process_json_proto [12:22:37]json parsed OK: [12:22:37]protocol is kg_v1.0 [12:22:37]action value=close_receipt [12:22:37]process_action close_receipt [12:22:37]cmd_close_receipt [12:22:37]MH_GetDate [12:22:37]Write to MH i2c: F0 00 00 53 0C 4E [12:22:37]Write i2c OK [12:22:37]MH_I2C_Read... [12:22:37]Read from MH i2c: F0 [12:22:37]MH_I2C_Read... [12:22:37]Read from MH i2c: F0 09 00 [12:22:37]MH_I2C_Read... [12:22:37]Read from MH i2c: F0 09 00 53 0C 00 8E 14 95 66 C9 DC B2 64 AF [12:22:37]GetLastDocTimeStamp 1721046124 [12:22:37]current date 1721046158 [12:22:37]FM_GetShiftState [12:22:37]SAM_PROTO_GetShiftState [12:22:37]wFMCommunicate request_size=4 [12:22:37]MH_SAM_APDU [12:22:37]CAPDU: 80 13 01 00 [12:22:37]Write to MH i2c: E2 08 00 54 0C 80 13 01 00 00 00 00 00 DD [12:22:37]Write i2c OK [12:22:37]MH_I2C_Read... [12:22:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:37]Read from MH i2c: E2 [12:22:37]MH_I2C_Read... [12:22:37]Read from MH i2c: E2 0E 00 [12:22:37]MH_I2C_Read... [12:22:37]Read from MH i2c: E2 0E 00 54 0C 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 B6 [12:22:37]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:22:37]wFMCommunicate OK [12:22:37]SAM_PROTO_GetShiftState done [12:22:37]FM_GetShiftState done [12:22:37]opened in 1721003876 [12:22:37]opened+sec_in_day 1721090276 [12:22:37]quantity*price = 68037 [12:22:37]sum+1 = 68038 [12:22:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 680.00 Внесено: 680.00 СДАЧА: 0.00 НСП 1% : 6.02 НДС 12% : 72.25 Наличными: 680.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 139 15.07.2024 12:22 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165266 ФПД: 84875342863588 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T122238&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165266&fm=84875342863588&tin=02508201610067®Number=0000000000090829&sum=68000 [12:22:38]StoreToDocumentArchive [12:22:38]shift 448 fd 165266 [12:22:38]save to /storage/0448/doc_00165266 [12:22:38]save last doc name /storage/0448/doc_00165266 to /storage/kkm_last_doc_name [12:22:38]save OK [12:22:38]Clear old archive folders... [12:22:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:22:38]tlvbuf is 01858A30 [12:22:38]SAM_PROTO_ClearQueue [12:22:38]wFMCommunicate request_size=4 [12:22:38]MH_SAM_APDU [12:22:38]CAPDU: 80 09 00 00 [12:22:38]Write to MH i2c: E2 08 00 61 0C 80 09 00 00 00 00 00 00 DF [12:22:38]Write i2c OK [12:22:38]MH_I2C_Read... [12:22:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:22:38]Read from MH i2c: E2 [12:22:38]MH_I2C_Read... [12:22:38]Read from MH i2c: E2 03 00 [12:22:38]MH_I2C_Read... [12:22:38]Read from MH i2c: E2 03 00 61 0C 00 90 00 E1 [12:22:38]RAPDU: 90 00 [12:22:38]wFMCommunicate OK [12:22:38]SAM_PROTO_ClearQueue done [12:22:38]KKMCreateOFDPacket [12:22:38]OFDProtocolAddRootSTLVToBuf [12:22:38]FM_MakeSignedData [12:22:38]FM_MakeSignedData [12:22:38]SAM_PROTO_SignData [12:22:38]wFMCommunicate request_size=4 [12:22:38]MH_SAM_APDU [12:22:38]CAPDU: 80 0D 01 02 [12:22:38]Write to MH i2c: E2 08 00 62 0C 80 0D 01 02 00 00 00 00 E7 [12:22:38]Write i2c OK [12:22:38]MH_I2C_Read... [12:22:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:22:39]Read from MH i2c: E2 [12:22:39]MH_I2C_Read... [12:22:39]Read from MH i2c: E2 03 00 [12:22:39]MH_I2C_Read... [12:22:39]Read from MH i2c: E2 03 00 62 0C 00 90 00 E2 [12:22:39]RAPDU: 90 00 [12:22:39]wFMCommunicate OK [12:22:39]wFMCommunicate request_size=255 [12:22:39]MH_SAM_APDU [12:22:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 28 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 C5 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 8E 14 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 92 85 02 00 35 04 06 00 4D [12:22:39]Write to MH i2c: E2 02 01 63 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 28 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 C5 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 8E 14 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 92 85 02 00 35 04 06 00 4D 00 00 73 [12:22:39]Write i2c OK [12:22:39]MH_I2C_Read... [12:22:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:39]Read from MH i2c: E2 [12:22:39]MH_I2C_Read... [12:22:39]Read from MH i2c: E2 03 00 [12:22:39]MH_I2C_Read... [12:22:39]Read from MH i2c: E2 03 00 63 0C 00 90 00 E3 [12:22:39]RAPDU: 90 00 [12:22:39]wFMCommunicate OK [12:22:39]wFMCommunicate request_size=10 [12:22:39]MH_SAM_APDU [12:22:39]CAPDU: 80 0D 02 02 05 31 94 A9 5C E4 [12:22:39]Write to MH i2c: E2 0D 00 64 0C 80 0D 02 02 05 00 31 94 A9 5C E4 00 00 A2 [12:22:39]Write i2c OK [12:22:39]MH_I2C_Read... [12:22:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:39]Read from MH i2c: E2 [12:22:39]MH_I2C_Read... [12:22:39]Read from MH i2c: E2 03 00 [12:22:39]MH_I2C_Read... [12:22:39]Read from MH i2c: E2 03 00 64 0C 00 90 00 E4 [12:22:39]RAPDU: 90 00 [12:22:39]wFMCommunicate OK [12:22:39]wFMCommunicate request_size=4 [12:22:39]MH_SAM_APDU [12:22:39]CAPDU: 80 0D 03 02 [12:22:39]Write to MH i2c: E2 08 00 65 0C 80 0D 03 02 00 00 00 00 EC [12:22:39]Write i2c OK [12:22:39]MH_I2C_Read... [12:22:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:22:39]Read from MH i2c: E2 [12:22:39]MH_I2C_Read... [12:22:39]Read from MH i2c: E2 0B 00 [12:22:39]MH_I2C_Read... [12:22:39]Read from MH i2c: E2 0B 00 65 0C 00 1A 11 CC 66 B8 96 B2 1D 90 00 67 [12:22:39]RAPDU: 1A 11 CC 66 B8 96 B2 1D 90 00 [12:22:39]wFMCommunicate OK [12:22:39]SAM_PROTO_SignData done [12:22:39]FM_MakeSignedData done [12:22:39]CreateOFDProtocolMessage [12:22:39]wFMCommunicate request_size=4 [12:22:39]MH_SAM_APDU [12:22:39]CAPDU: 80 11 00 00 [12:22:39]Write to MH i2c: E2 08 00 66 0C 80 11 00 00 00 00 00 00 EC [12:22:39]Write i2c OK [12:22:39]MH_I2C_Read... [12:22:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:39]Read from MH i2c: E2 [12:22:39]MH_I2C_Read... [12:22:39]Read from MH i2c: E2 17 00 [12:22:39]MH_I2C_Read... [12:22:39]Read from MH i2c: E2 17 00 66 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 42 [12:22:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:22:39]wFMCommunicate OK [12:22:39]CreateOFDProtocolMessage done [12:22:39]OFDSenderStorePacket 165266 [12:22:39]StoreOFDPacket docnum=165266 [12:22:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A9 ED 07 01 FB 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 64 28 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 C5 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 8E 14 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 92 85 02 00 35 04 06 00 4D 31 94 A9 5C E4 1A 11 CC 66 B8 96 B2 1D [12:22:39]CheckFolder [12:22:39]dirname=/storage/ofd_packets [12:22:39]CheckFolder done [12:22:39]ProducePacketName [12:22:39]name=ofd_packets/00165266 [12:22:39]NVStorageSaveData ofd_packets/00165266 [12:22:39]File name is /storage/ofd_packets/00165266 [12:22:39]Write 301 bytes [12:22:39]NVStorageSaveData done [12:22:39]OFDSenderStorePacket done [12:22:39]KKMCreateOFDPacket done [12:22:39]NVStorageSaveData kkm_last_timestamp [12:22:39]File name is /storage/kkm_last_timestamp [12:22:39]Write 4 bytes [12:22:39]NVStorageSaveData done [12:22:39]OFD Sender: Processing packet 165266 [packets to send 106, broken 105] [12:22:39]ProducePacketName [12:22:39]name=ofd_packets/00165266 [12:22:39]OFD Sender: To server: pG, [12:22:39]CommunicateWithHost lk.salyk.kg:30040 [12:22:39]ConnectInit lk.salyk.kg [12:22:39]ExternCall_PrintAddStr [12:22:39]wPrintStart [12:22:39]Write to MH i2c: 01 00 00 67 0C 73 [12:22:39]Write i2c OK [12:22:39]MH_I2C_Read... [12:22:39]Read from MH i2c: 01 [12:22:39]MH_I2C_Read... [12:22:39]Read from MH i2c: 01 07 00 [12:22:39]MH_I2C_Read... [12:22:39]Read from MH i2c: 01 07 00 67 0C 00 00 00 00 00 FF 0F 88 [12:22:39]RasterBufferAndPrint [12:22:39]line Счет N : (1)459376 [12:22:39]line ИНН: 02508201610067 [12:22:39]line Контрольно-Кассовый Чек [12:22:39]line ПРОДАЖА [12:22:39]line ТРК (МРК, ГНК) : 22 [12:22:39]line Товар: 2710124130 [12:22:39]line Аи-92-К-5 [12:22:39]line 10.340 * 65.80 [12:22:39]line = 680.37 [12:22:39]line НДС 12% НСП 1% [12:22:39]line > о реализуемом товаре [12:22:39]line ОКРУГЛЕНИЕ: -0.37 [12:22:39]line ИТОГО: 680.00 [12:22:39]line Внесено: 680.00 [12:22:39]line СДАЧА: 0.00 [12:22:39]line НСП 1% : 6.02 [12:22:39]line НДС 12% : 72.25 [12:22:39]line Наличными: 680.00 [12:22:39]line Безнал.: 0.00 [12:22:39]line Место: АЗС № 72 "Партнер Нефть" [12:22:39]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:22:39]line СНО: Общий режим [12:22:39]line Чек 139 15.07.2024 12:22 [12:22:39]line Смена: 448 ФФД: 1.0 [12:22:39]line ЗНМ: 0300000160 [12:22:39]line РНМ: 0000000000090829 [12:22:39]line Версия ККМ: 001 [12:22:39]line ФМ: 0000000000874718 [12:22:39]line ФД: 165266 [12:22:39]line ФПД: 84875342863588 [12:22:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T122238&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165266&fm=84875342863588&tin=02508201610067®Number=0000000000090829&sum=68000 [12:22:39]Connected sock=11 [12:22:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A9 ED 07 01 FB 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 64 28 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 C5 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 8E 14 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 92 85 02 00 35 04 06 00 4D 31 94 A9 5C E4 1A 11 CC 66 B8 96 B2 1D [12:22:39]written 0, free lines is 4095 [12:22:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 FA B4 47 00 BF 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 92 85 02 00 F4 03 04 00 18 BB 94 66 B6 04 01 00 00 9B 9E 8E 42 59 3E 39 DA [12:22:39]CommunicateWithHost err = 0 [12:22:39]CheckOFDResponse [12:22:39]1017 (14) - 77093643461234 [12:22:39]1041 (16) - 0000000000874718 [12:22:39]1040 (4) - 165266 [12:22:39]1012 (4) - 15.07.2024 06:00 [12:22:39]1206 (1) - 0 [12:22:39]OFD Sender: Remove packet 165266 [12:22:39]ProducePacketName [12:22:39]name=ofd_packets/00165266 [12:22:39]NVStorageDeleteData [12:22:40]Write to MH i2c: 01 00 00 91 0C 9D [12:22:40]Write i2c OK [12:22:40]MH_I2C_Read... [12:22:40]Read from MH i2c: 01 [12:22:40]MH_I2C_Read... [12:22:40]Read from MH i2c: 01 07 00 [12:22:40]MH_I2C_Read... [12:22:40]Read from MH i2c: 01 07 00 91 0C 00 00 00 00 00 04 0D B5 [12:22:40]RasterBufferAndPrint [12:22:40]line [12:22:40]line [12:22:40]line [12:22:40]line [12:22:40]line [12:22:40]written 0, free lines is 3338 [12:22:40]MH_Cut [12:22:40]Write to MH i2c: D1 01 00 98 0C 01 76 [12:22:40]Write i2c OK [12:22:40]MH_I2C_Read... [12:22:40]Read from MH i2c: D1 [12:22:40]MH_I2C_Read... [12:22:40]Read from MH i2c: D1 01 00 [12:22:40]MH_I2C_Read... [12:22:40]Read from MH i2c: D1 01 00 98 0C 00 75 [12:22:40]Write to MH i2c: 01 00 00 99 0C A5 [12:22:40]Write i2c OK [12:22:40]MH_I2C_Read... [12:22:40]OFD Sender: No OFD packet to send [12:22:40]*** Cut start [12:22:40]*** Partial cut [12:22:40]*** CUTSNS_PIN = 1 [12:22:40]*** CUTSNS_PIN = 0 [12:22:41]*** Brake cut motor [12:22:41]Read from MH i2c: 01 [12:22:41]MH_I2C_Read... [12:22:41]*** Stop cut motor [12:22:41]*** Cut end [12:22:41]Read from MH i2c: 01 07 00 [12:22:41]MH_I2C_Read... [12:22:41]Read from MH i2c: 01 07 00 99 0C 00 00 00 00 00 FF 0F BA [12:22:41]process_action close_receipt done [12:22:41]requested_data is exist [12:22:41]produce_requested_data [12:22:41]requested_item fm.sn is exist - process it [12:22:41]wFMCommunicate request_size=4 [12:22:41]MH_SAM_APDU [12:22:41]CAPDU: 80 11 00 00 [12:22:41]Write to MH i2c: E2 08 00 9A 0C 80 11 00 00 00 00 00 00 20 [12:22:41]Write i2c OK [12:22:41]MH_I2C_Read... [12:22:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:41]Read from MH i2c: E2 [12:22:41]MH_I2C_Read... [12:22:41]Read from MH i2c: E2 17 00 [12:22:41]MH_I2C_Read... [12:22:41]Read from MH i2c: E2 17 00 9A 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 76 [12:22:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:22:41]wFMCommunicate OK [12:22:41]requested_item fd.num is exist - process it [12:22:41]SAM_PROTO_GetFieldsCounters [12:22:41]wFMCommunicate request_size=4 [12:22:41]MH_SAM_APDU [12:22:41]CAPDU: 80 13 00 00 [12:22:41]Write to MH i2c: E2 08 00 9B 0C 80 13 00 00 00 00 00 00 23 [12:22:41]Write i2c OK [12:22:41]MH_I2C_Read... [12:22:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:22:41]Read from MH i2c: E2 [12:22:41]MH_I2C_Read... [12:22:41]Read from MH i2c: E2 62 00 [12:22:41]MH_I2C_Read... [12:22:41]Read from MH i2c: E2 62 00 9B 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 92 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [12:22: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 92 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:22:41]wFMCommunicate OK [12:22:41]SAM_PROTO_GetFieldsCounters done [12:22:41]requested_item shift.num is exist - process it [12:22:41]requested_item shift.opened is exist - process it [12:22:41]req_shift_opened [12:22:41]FM_GetShiftState [12:22:41]SAM_PROTO_GetShiftState [12:22:41]wFMCommunicate request_size=4 [12:22:41]MH_SAM_APDU [12:22:41]CAPDU: 80 13 01 00 [12:22:41]Write to MH i2c: E2 08 00 9C 0C 80 13 01 00 00 00 00 00 25 [12:22:41]Write i2c OK [12:22:41]MH_I2C_Read... [12:22:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:41]Read from MH i2c: E2 [12:22:41]MH_I2C_Read... [12:22:41]Read from MH i2c: E2 0E 00 [12:22:41]MH_I2C_Read... [12:22:41]Read from MH i2c: E2 0E 00 9C 0C 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 FE [12:22:41]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:22:41]wFMCommunicate OK [12:22:41]SAM_PROTO_GetShiftState done [12:22:41]FM_GetShiftState done [12:22:41]req_shift_opened done [12:22:41]requested_item shift.open_date is exist - process it [12:22:41]req_shift_open_date [12:22:41]req_shift_open_date done [12:22:41]produce_requested_data done [12:22:41]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165266,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [12:22:41]process_action_free close_receipt [12:22:41]json_value_free [12:22:41]json_value_free done [12:22:41]process_json_proto returns [12:22:41]Send response to host [12:22:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165266,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [12:22:41]free response buf [12:22:41]execute_script done [12:22:41]execute_script returns [12:22:41]free content buf [12:22:41]Sock 8.Close socket [12:22:41]Sock 8.Thread stoped [12:22:45]OFD Sender: No OFD packet to send [12:22:50]OFD Sender: No OFD packet to send [12:22:55]OFD Sender: No OFD packet to send [12:23:00]OFD Sender: No OFD packet to send [12:23:05]OFD Sender: No OFD packet to send [12:23:10]OFD Sender: No OFD packet to send [12:23:15]OFD Sender: No OFD packet to send [12:23:20]OFD Sender: No OFD packet to send [12:23:25]OFD Sender: No OFD packet to send [12:23:30]accept exits with 9 [12:23:30]New connection [12:23:30]New thread 3066854756 created [12:23:30]Thread 3066711396 joined [12:23:30]Waiting for new connection... [12:23:30] Sock 9.Parse request [12:23:30]Sock 9.Check first char [12:23:30]Sock 9.First char is OK [12:23:30]request: POST /json_proto HTTP/1.0 [12:23:30]Method: POST [12:23:30]URL: /json_proto [12:23:30]Method is POST - this is cgi request [12:23:30]url: /json_proto [12:23:30]query_string will be loaded in cgi processing [12:23:30]execute_cgi json_proto POST (null) [12:23:30]execute_cgi path=json_proto method=POST [12:23:30]POST find Content-Length [12:23:30]Host: 172.17.56.4:8080 [12:23:30]Content-Length: 840 [12:23:30]Content-Type: application/json [12:23:30] [12:23:30]POST finish read [12:23:30]Found Content-Length = 840 [12:23:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459377", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.670, "sum" : 500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:23:30]execute_script... [12:23:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459377", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.670, "sum" : 500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:23:30]POST & json_proto [12:23:30]process_json_proto [12:23:30]json parsed OK: [12:23:30]protocol is kg_v1.0 [12:23:30]action value=close_receipt [12:23:30]process_action close_receipt [12:23:30]cmd_close_receipt [12:23:30]MH_GetDate [12:23:30]Write to MH i2c: F0 00 00 9D 0C 98 [12:23:30]Write i2c OK [12:23:30]MH_I2C_Read... [12:23:30]Read from MH i2c: F0 [12:23:30]MH_I2C_Read... [12:23:30]Read from MH i2c: F0 09 00 [12:23:30]MH_I2C_Read... [12:23:30]Read from MH i2c: F0 09 00 9D 0C 00 C2 14 95 66 C9 DC B2 64 2D [12:23:30]GetLastDocTimeStamp 1721046158 [12:23:30]current date 1721046210 [12:23:30]FM_GetShiftState [12:23:30]SAM_PROTO_GetShiftState [12:23:30]wFMCommunicate request_size=4 [12:23:30]MH_SAM_APDU [12:23:30]CAPDU: 80 13 01 00 [12:23:30]Write to MH i2c: E2 08 00 9E 0C 80 13 01 00 00 00 00 00 27 [12:23:30]Write i2c OK [12:23:30]MH_I2C_Read... [12:23:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:30]Read from MH i2c: E2 [12:23:30]MH_I2C_Read... [12:23:30]Read from MH i2c: E2 0E 00 [12:23:30]MH_I2C_Read... [12:23:30]Read from MH i2c: E2 0E 00 9E 0C 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 00 [12:23:30]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:23:30]wFMCommunicate OK [12:23:30]SAM_PROTO_GetShiftState done [12:23:30]FM_GetShiftState done [12:23:30]opened in 1721003876 [12:23:30]opened+sec_in_day 1721090276 [12:23:30]quantity*price = 50023 [12:23:30]sum+1 = 50025 [12:23:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.24 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.24 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 140 15.07.2024 12:23 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874718 ФД: 165267 ФПД: 268321561315276 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T122330&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165267&fm=268321561315276&tin=02508201610067®Number=0000000000090829&sum=50024 [12:23:31]StoreToDocumentArchive [12:23:31]shift 448 fd 165267 [12:23:31]save to /storage/0448/doc_00165267 [12:23:31]save last doc name /storage/0448/doc_00165267 to /storage/kkm_last_doc_name [12:23:31]save OK [12:23:31]Clear old archive folders... [12:23:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:23:31]tlvbuf is 0183B0F0 [12:23:31]SAM_PROTO_ClearQueue [12:23:31]wFMCommunicate request_size=4 [12:23:31]MH_SAM_APDU [12:23:31]CAPDU: 80 09 00 00 [12:23:31]Write to MH i2c: E2 08 00 AB 0C 80 09 00 00 00 00 00 00 29 [12:23:31]Write i2c OK [12:23:31]MH_I2C_Read... [12:23:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:23:31]Read from MH i2c: E2 [12:23:31]MH_I2C_Read... [12:23:31]Read from MH i2c: E2 03 00 [12:23:31]MH_I2C_Read... [12:23:31]Read from MH i2c: E2 03 00 AB 0C 00 90 00 2B [12:23:31]RAPDU: 90 00 [12:23:31]wFMCommunicate OK [12:23:31]SAM_PROTO_ClearQueue done [12:23:31]KKMCreateOFDPacket [12:23:31]OFDProtocolAddRootSTLVToBuf [12:23:31]FM_MakeSignedData [12:23:31]FM_MakeSignedData [12:23:31]SAM_PROTO_SignData [12:23:31]wFMCommunicate request_size=4 [12:23:31]MH_SAM_APDU [12:23:31]CAPDU: 80 0D 01 02 [12:23:31]Write to MH i2c: E2 08 00 AC 0C 80 0D 01 02 00 00 00 00 31 [12:23:31]Write i2c OK [12:23:31]MH_I2C_Read... [12:23:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:23:31]Read from MH i2c: E2 [12:23:31]MH_I2C_Read... [12:23:31]Read from MH i2c: E2 03 00 [12:23:31]MH_I2C_Read... [12:23:31]Read from MH i2c: E2 03 00 AC 0C 00 90 00 2C [12:23:31]RAPDU: 90 00 [12:23:31]wFMCommunicate OK [12:23:31]wFMCommunicate request_size=255 [12:23:31]MH_SAM_APDU [12:23:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 C2 14 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 93 85 02 00 35 04 06 00 F4 [12:23:31]Write to MH i2c: E2 02 01 AD 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 C2 14 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 93 85 02 00 35 04 06 00 F4 00 00 24 [12:23:31]Write i2c OK [12:23:31]MH_I2C_Read... [12:23:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:31]Read from MH i2c: E2 [12:23:31]MH_I2C_Read... [12:23:31]Read from MH i2c: E2 03 00 [12:23:31]MH_I2C_Read... [12:23:31]Read from MH i2c: E2 03 00 AD 0C 00 90 00 2D [12:23:31]RAPDU: 90 00 [12:23:31]wFMCommunicate OK [12:23:31]wFMCommunicate request_size=10 [12:23:31]MH_SAM_APDU [12:23:31]CAPDU: 80 0D 02 02 05 09 7B 59 07 CC [12:23:31]Write to MH i2c: E2 0D 00 AE 0C 80 0D 02 02 05 00 09 7B 59 07 CC 00 00 EE [12:23:31]Write i2c OK [12:23:31]MH_I2C_Read... [12:23:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:31]Read from MH i2c: E2 [12:23:31]MH_I2C_Read... [12:23:31]Read from MH i2c: E2 03 00 [12:23:31]MH_I2C_Read... [12:23:31]Read from MH i2c: E2 03 00 AE 0C 00 90 00 2E [12:23:31]RAPDU: 90 00 [12:23:31]wFMCommunicate OK [12:23:31]wFMCommunicate request_size=4 [12:23:31]MH_SAM_APDU [12:23:31]CAPDU: 80 0D 03 02 [12:23:31]Write to MH i2c: E2 08 00 AF 0C 80 0D 03 02 00 00 00 00 36 [12:23:31]Write i2c OK [12:23:31]MH_I2C_Read... [12:23:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:23:31]Read from MH i2c: E2 [12:23:31]MH_I2C_Read... [12:23:31]Read from MH i2c: E2 0B 00 [12:23:31]MH_I2C_Read... [12:23:31]Read from MH i2c: E2 0B 00 AF 0C 00 2D F4 27 1A 13 92 D9 99 90 00 B0 [12:23:31]RAPDU: 2D F4 27 1A 13 92 D9 99 90 00 [12:23:31]wFMCommunicate OK [12:23:31]SAM_PROTO_SignData done [12:23:31]FM_MakeSignedData done [12:23:31]CreateOFDProtocolMessage [12:23:31]wFMCommunicate request_size=4 [12:23:31]MH_SAM_APDU [12:23:31]CAPDU: 80 11 00 00 [12:23:31]Write to MH i2c: E2 08 00 B0 0C 80 11 00 00 00 00 00 00 36 [12:23:31]Write i2c OK [12:23:31]MH_I2C_Read... [12:23:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:31]Read from MH i2c: E2 [12:23:31]MH_I2C_Read... [12:23:31]Read from MH i2c: E2 17 00 [12:23:31]MH_I2C_Read... [12:23:31]Read from MH i2c: E2 17 00 B0 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8C [12:23:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:23:31]wFMCommunicate OK [12:23:31]CreateOFDProtocolMessage done [12:23:31]OFDSenderStorePacket 165267 [12:23:31]StoreOFDPacket docnum=165267 [12:23:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 87 3F 07 01 45 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 C2 14 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 93 85 02 00 35 04 06 00 F4 09 7B 59 07 CC 2D F4 27 1A 13 92 D9 99 [12:23:31]CheckFolder [12:23:31]dirname=/storage/ofd_packets [12:23:31]CheckFolder done [12:23:31]ProducePacketName [12:23:31]name=ofd_packets/00165267 [12:23:31]NVStorageSaveData ofd_packets/00165267 [12:23:31]File name is /storage/ofd_packets/00165267 [12:23:31]Write 301 bytes [12:23:31]NVStorageSaveData done [12:23:31]OFDSenderStorePacket done [12:23:31]KKMCreateOFDPacket done [12:23:31]NVStorageSaveData kkm_last_timestamp [12:23:31]File name is /storage/kkm_last_timestamp [12:23:31]Write 4 bytes [12:23:31]NVStorageSaveData done [12:23:31]ExternCall_PrintAddStr [12:23:31]wPrintStart [12:23:31]Write to MH i2c: 01 00 00 B1 0C BD [12:23:31]Write i2c OK [12:23:31]MH_I2C_Read... [12:23:31]Read from MH i2c: 01 [12:23:31]MH_I2C_Read... [12:23:31]Read from MH i2c: 01 07 00 [12:23:31]MH_I2C_Read... [12:23:31]Read from MH i2c: 01 07 00 B1 0C 00 00 00 00 00 FF 0F D2 [12:23:31]RasterBufferAndPrint [12:23:31]line Счет N : (1)459377 [12:23:31]line ИНН: 02508201610067 [12:23:31]line Контрольно-Кассовый Чек [12:23:31]line ПРОДАЖА [12:23:31]line ТРК (МРК, ГНК) : 22 [12:23:31]line Товар: 2710124130 [12:23:31]line Аи-92-К-5 [12:23:31]line 7.670 * 65.22 [12:23:31]line = 500.24 [12:23:31]line НДС 12% НСП 1% [12:23:31]line > о реализуемом товаре [12:23:31]line ИТОГО: 500.24 [12:23:31]line НСП 1% : 4.43 [12:23:31]line НДС 12% : 53.12 [12:23:31]line Наличными: 0.00 [12:23:31]line Безнал.: 500.24 [12:23:31]line Место: АЗС № 72 "Партнер Нефть" [12:23:31]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:23:31]line СНО: Общий режим [12:23:31]line Чек 140 15.07.2024 12:23 [12:23:31]line Смена: 448 ФФД: 1.0 [12:23:31]line ЗНМ: 0300000160 [12:23:31]line РНМ: 0000000000090829 [12:23:31]line Версия ККМ: 001 [12:23:31]line Платежная система: АКБ Кыргызстан [12:23:31]line ФМ: 0000000000874718 [12:23:31]line ФД: 165267 [12:23:31]line ФПД: 268321561315276 [12:23:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T122330&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165267&fm=268321561315276&tin=02508201610067®Number=0000000000090829&sum=50024 [12:23:31]written 0, free lines is 4095 [12:23:31]OFD Sender: Processing packet 165267 [packets to send 106, broken 105] [12:23:31]ProducePacketName [12:23:31]name=ofd_packets/00165267 [12:23:32]OFD Sender: To server: pG, [12:23:32]CommunicateWithHost lk.salyk.kg:30040 [12:23:32]ConnectInit lk.salyk.kg [12:23:32]Connected sock=10 [12:23:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 87 3F 07 01 45 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 C2 14 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 93 85 02 00 35 04 06 00 F4 09 7B 59 07 CC 2D F4 27 1A 13 92 D9 99 [12:23:32]Write to MH i2c: 01 00 00 DA 0C E6 [12:23:32]Write i2c OK [12:23:32]MH_I2C_Read... [12:23:32]Read from MH i2c: 01 [12:23:32]MH_I2C_Read... [12:23:32]Read from MH i2c: 01 07 00 [12:23:32]MH_I2C_Read... [12:23:32]Read from MH i2c: 01 07 00 DA 0C 00 00 00 00 00 0F 0D 09 [12:23:32]RasterBufferAndPrint [12:23:32]line [12:23:32]line [12:23:32]line [12:23:32]line [12:23:32]line [12:23:32]written 0, free lines is 3349 [12:23:32]MH_Cut [12:23:32]Write to MH i2c: D1 01 00 E1 0C 01 BF [12:23:32]Write i2c OK [12:23:32]MH_I2C_Read... [12:23:32]Read from MH i2c: D1 [12:23:32]MH_I2C_Read... [12:23:32]Read from MH i2c: D1 01 00 [12:23:32]MH_I2C_Read... [12:23:32]Read from MH i2c: D1 01 00 E1 0C 00 BE [12:23:32]Write to MH i2c: 01 00 00 E2 0C EE [12:23:32]Write i2c OK [12:23:32]MH_I2C_Read... [12:23:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 19 8F 47 00 05 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 93 85 02 00 F4 03 04 00 4D BB 94 66 B6 04 01 00 00 FF 31 68 57 5B 6B 65 9C [12:23:32]CommunicateWithHost err = 0 [12:23:32]CheckOFDResponse [12:23:32]1017 (14) - 77093643461234 [12:23:32]1041 (16) - 0000000000874718 [12:23:32]1040 (4) - 165267 [12:23:32]1012 (4) - 15.07.2024 06:01 [12:23:32]1206 (1) - 0 [12:23:32]OFD Sender: Remove packet 165267 [12:23:32]ProducePacketName [12:23:32]name=ofd_packets/00165267 [12:23:32]NVStorageDeleteData [12:23:32]*** Cut start [12:23:32]*** Partial cut [12:23:32]*** CUTSNS_PIN = 1 [12:23:32]*** CUTSNS_PIN = 0 [12:23:32]OFD Sender: No OFD packet to send [12:23:33]*** Brake cut motor [12:23:33]Read from MH i2c: 01 [12:23:33]MH_I2C_Read... [12:23:33]*** Stop cut motor [12:23:33]*** Cut end [12:23:33]Read from MH i2c: 01 07 00 [12:23:33]MH_I2C_Read... [12:23:33]Read from MH i2c: 01 07 00 E2 0C 00 00 00 00 00 FF 0F 03 [12:23:33]process_action close_receipt done [12:23:33]requested_data is exist [12:23:33]produce_requested_data [12:23:33]requested_item fm.sn is exist - process it [12:23:33]wFMCommunicate request_size=4 [12:23:33]MH_SAM_APDU [12:23:33]CAPDU: 80 11 00 00 [12:23:33]Write to MH i2c: E2 08 00 E3 0C 80 11 00 00 00 00 00 00 69 [12:23:33]Write i2c OK [12:23:33]MH_I2C_Read... [12:23:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:33]Read from MH i2c: E2 [12:23:33]MH_I2C_Read... [12:23:33]Read from MH i2c: E2 17 00 [12:23:33]MH_I2C_Read... [12:23:33]Read from MH i2c: E2 17 00 E3 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 BF [12:23:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:23:33]wFMCommunicate OK [12:23:33]requested_item fd.num is exist - process it [12:23:33]SAM_PROTO_GetFieldsCounters [12:23:33]wFMCommunicate request_size=4 [12:23:33]MH_SAM_APDU [12:23:33]CAPDU: 80 13 00 00 [12:23:33]Write to MH i2c: E2 08 00 E4 0C 80 13 00 00 00 00 00 00 6C [12:23:33]Write i2c OK [12:23:33]MH_I2C_Read... [12:23:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:23:33]Read from MH i2c: E2 [12:23:33]MH_I2C_Read... [12:23:33]Read from MH i2c: E2 62 00 [12:23:33]MH_I2C_Read... [12:23:33]Read from MH i2c: E2 62 00 E4 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 93 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [12:23:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 93 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:23:33]wFMCommunicate OK [12:23:33]SAM_PROTO_GetFieldsCounters done [12:23:33]requested_item shift.num is exist - process it [12:23:33]requested_item shift.opened is exist - process it [12:23:33]req_shift_opened [12:23:33]FM_GetShiftState [12:23:33]SAM_PROTO_GetShiftState [12:23:33]wFMCommunicate request_size=4 [12:23:33]MH_SAM_APDU [12:23:33]CAPDU: 80 13 01 00 [12:23:33]Write to MH i2c: E2 08 00 E5 0C 80 13 01 00 00 00 00 00 6E [12:23:33]Write i2c OK [12:23:33]MH_I2C_Read... [12:23:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:33]Read from MH i2c: E2 [12:23:33]MH_I2C_Read... [12:23:33]Read from MH i2c: E2 0E 00 [12:23:33]MH_I2C_Read... [12:23:33]Read from MH i2c: E2 0E 00 E5 0C 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 47 [12:23:33]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:23:33]wFMCommunicate OK [12:23:33]SAM_PROTO_GetShiftState done [12:23:33]FM_GetShiftState done [12:23:33]req_shift_opened done [12:23:33]requested_item shift.open_date is exist - process it [12:23:33]req_shift_open_date [12:23:33]req_shift_open_date done [12:23:33]produce_requested_data done [12:23:33]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165267,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [12:23:33]process_action_free close_receipt [12:23:33]json_value_free [12:23:33]json_value_free done [12:23:33]process_json_proto returns [12:23:33]Send response to host [12:23:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165267,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [12:23:33]free response buf [12:23:33]execute_script done [12:23:33]execute_script returns [12:23:33]free content buf [12:23:33]Sock 9.Close socket [12:23:33]Sock 9.Thread stoped [12:23:37]OFD Sender: No OFD packet to send [12:23:42]OFD Sender: No OFD packet to send [12:23:47]OFD Sender: No OFD packet to send [12:23:52]OFD Sender: No OFD packet to send [12:23:57]OFD Sender: No OFD packet to send [12:24:02]OFD Sender: No OFD packet to send [12:24:07]OFD Sender: No OFD packet to send [12:24:12]OFD Sender: No OFD packet to send [12:24:17]OFD Sender: No OFD packet to send [12:24:22]OFD Sender: No OFD packet to send [12:24:28]OFD Sender: No OFD packet to send [12:24:33]OFD Sender: No OFD packet to send [12:24:38]OFD Sender: No OFD packet to send [12:24:43]OFD Sender: No OFD packet to send [12:24:48]OFD Sender: No OFD packet to send [12:24:53]OFD Sender: No OFD packet to send [12:24:58]OFD Sender: No OFD packet to send [12:25:03]OFD Sender: No OFD packet to send [12:25:08]OFD Sender: No OFD packet to send [12:25:13]OFD Sender: No OFD packet to send [12:25:18]OFD Sender: No OFD packet to send [12:25:23]OFD Sender: No OFD packet to send [12:25:28]OFD Sender: No OFD packet to send [12:25:33]OFD Sender: No OFD packet to send [12:25:38]OFD Sender: No OFD packet to send [12:25:43]OFD Sender: No OFD packet to send [12:25:48]OFD Sender: No OFD packet to send [12:25:53]OFD Sender: No OFD packet to send [12:25:58]OFD Sender: No OFD packet to send [12:26:03]OFD Sender: No OFD packet to send [12:26:08]OFD Sender: No OFD packet to send [12:26:13]OFD Sender: No OFD packet to send [12:26:18]OFD Sender: No OFD packet to send [12:26:23]OFD Sender: No OFD packet to send [12:26:28]OFD Sender: No OFD packet to send [12:26:33]OFD Sender: No OFD packet to send [12:26:38]OFD Sender: No OFD packet to send [12:26:43]OFD Sender: No OFD packet to send [12:26:48]OFD Sender: No OFD packet to send [12:26:53]OFD Sender: No OFD packet to send [12:26:58]OFD Sender: No OFD packet to send [12:27:03]OFD Sender: No OFD packet to send [12:27:08]OFD Sender: No OFD packet to send [12:27:13]OFD Sender: No OFD packet to send [12:27:17]accept exits with 8 [12:27:17]New connection [12:27:17]New thread 3066711396 created [12:27:17]Thread 3066854756 joined [12:27:17]Waiting for new connection... [12:27:17] Sock 8.Parse request [12:27:17]Sock 8.Check first char [12:27:17]Sock 8.First char is OK [12:27:17]request: POST /json_proto HTTP/1.0 [12:27:17]Method: POST [12:27:17]URL: /json_proto [12:27:17]Method is POST - this is cgi request [12:27:17]url: /json_proto [12:27:17]query_string will be loaded in cgi processing [12:27:17]execute_cgi json_proto POST (null) [12:27:17]execute_cgi path=json_proto method=POST [12:27:17]POST find Content-Length [12:27:17]Host: 172.17.56.4:8080 [12:27:17]Content-Length: 679 [12:27:17]Content-Type: application/json [12:27:17] [12:27:17]POST finish read [12:27:17]Found Content-Length = 679 [12:27:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459378", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 18.000, "sum" : 1294.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1294.00, "total" : 1294.00, "payments": [ { "type": 0, "sum" : 1294.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:17]execute_script... [12:27:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459378", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 18.000, "sum" : 1294.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1294.00, "total" : 1294.00, "payments": [ { "type": 0, "sum" : 1294.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:17]POST & json_proto [12:27:17]process_json_proto [12:27:17]json parsed OK: [12:27:17]protocol is kg_v1.0 [12:27:17]action value=close_receipt [12:27:17]process_action close_receipt [12:27:17]cmd_close_receipt [12:27:17]MH_GetDate [12:27:17]Write to MH i2c: F0 00 00 E6 0C E1 [12:27:17]Write i2c OK [12:27:17]MH_I2C_Read... [12:27:17]Read from MH i2c: F0 [12:27:17]MH_I2C_Read... [12:27:17]Read from MH i2c: F0 09 00 [12:27:17]MH_I2C_Read... [12:27:17]Read from MH i2c: F0 09 00 E6 0C 00 A5 15 95 66 C9 DC B2 64 5A [12:27:17]GetLastDocTimeStamp 1721046210 [12:27:17]current date 1721046437 [12:27:17]FM_GetShiftState [12:27:17]SAM_PROTO_GetShiftState [12:27:17]wFMCommunicate request_size=4 [12:27:17]MH_SAM_APDU [12:27:17]CAPDU: 80 13 01 00 [12:27:17]Write to MH i2c: E2 08 00 E7 0C 80 13 01 00 00 00 00 00 70 [12:27:17]Write i2c OK [12:27:17]MH_I2C_Read... [12:27:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:17]Read from MH i2c: E2 [12:27:17]MH_I2C_Read... [12:27:17]Read from MH i2c: E2 0E 00 [12:27:17]MH_I2C_Read... [12:27:17]Read from MH i2c: E2 0E 00 E7 0C 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 49 [12:27:17]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:27:17]wFMCommunicate OK [12:27:17]SAM_PROTO_GetShiftState done [12:27:17]FM_GetShiftState done [12:27:17]opened in 1721003876 [12:27:17]opened+sec_in_day 1721090276 [12:27:17]quantity*price = 129420 [12:27:17]sum+1 = 129421 [12:27:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 1294.00 Внесено: 1294.00 СДАЧА: 0.00 НСП 1% : 11.45 НДС 12% : 137.44 Наличными: 1294.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 141 15.07.2024 12:27 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165268 ФПД: 279197663455144 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T122717&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165268&fm=279197663455144&tin=02508201610067®Number=0000000000090829&sum=129400 [12:27:18]StoreToDocumentArchive [12:27:18]shift 448 fd 165268 [12:27:18]save to /storage/0448/doc_00165268 [12:27:18]save last doc name /storage/0448/doc_00165268 to /storage/kkm_last_doc_name [12:27:18]save OK [12:27:18]Clear old archive folders... [12:27:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:27:18]tlvbuf is 017F6E00 [12:27:18]SAM_PROTO_ClearQueue [12:27:18]wFMCommunicate request_size=4 [12:27:18]MH_SAM_APDU [12:27:18]CAPDU: 80 09 00 00 [12:27:18]Write to MH i2c: E2 08 00 F4 0C 80 09 00 00 00 00 00 00 72 [12:27:18]Write i2c OK [12:27:18]MH_I2C_Read... [12:27:18]OFD Sender: No OFD packet to send [12:27:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:27:18]Read from MH i2c: E2 [12:27:18]MH_I2C_Read... [12:27:18]Read from MH i2c: E2 03 00 [12:27:18]MH_I2C_Read... [12:27:18]Read from MH i2c: E2 03 00 F4 0C 00 90 00 74 [12:27:18]RAPDU: 90 00 [12:27:18]wFMCommunicate OK [12:27:18]SAM_PROTO_ClearQueue done [12:27:18]KKMCreateOFDPacket [12:27:18]OFDProtocolAddRootSTLVToBuf [12:27:18]FM_MakeSignedData [12:27:18]FM_MakeSignedData [12:27:18]SAM_PROTO_SignData [12:27:18]wFMCommunicate request_size=4 [12:27:18]MH_SAM_APDU [12:27:18]CAPDU: 80 0D 01 02 [12:27:18]Write to MH i2c: E2 08 00 F5 0C 80 0D 01 02 00 00 00 00 7A [12:27:18]Write i2c OK [12:27:18]MH_I2C_Read... [12:27:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:27:18]Read from MH i2c: E2 [12:27:18]MH_I2C_Read... [12:27:18]Read from MH i2c: E2 03 00 [12:27:18]MH_I2C_Read... [12:27:18]Read from MH i2c: E2 03 00 F5 0C 00 90 00 75 [12:27:18]RAPDU: 90 00 [12:27:18]wFMCommunicate OK [12:27:18]wFMCommunicate request_size=255 [12:27:18]MH_SAM_APDU [12:27:18]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 46 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8C F9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 F9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 35 00 00 00 00 07 04 06 00 78 F9 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 A5 15 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 94 85 02 00 35 04 06 00 FD ED C5 8D [12:27:18]Write to MH i2c: E2 02 01 F6 0C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 46 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8C F9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 F9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 35 00 00 00 00 07 04 06 00 78 F9 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 A5 15 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 94 85 02 00 35 04 06 00 FD ED C5 8D 00 00 CB [12:27:18]Write i2c OK [12:27:18]MH_I2C_Read... [12:27:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:18]Read from MH i2c: E2 [12:27:18]MH_I2C_Read... [12:27:18]Read from MH i2c: E2 03 00 [12:27:18]MH_I2C_Read... [12:27:18]Read from MH i2c: E2 03 00 F6 0C 00 90 00 76 [12:27:18]RAPDU: 90 00 [12:27:18]wFMCommunicate OK [12:27:18]wFMCommunicate request_size=7 [12:27:18]MH_SAM_APDU [12:27:18]CAPDU: 80 0D 02 02 02 67 A8 [12:27:18]Write to MH i2c: E2 0A 00 F7 0C 80 0D 02 02 02 00 67 A8 00 00 90 [12:27:18]Write i2c OK [12:27:18]MH_I2C_Read... [12:27:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:18]Read from MH i2c: E2 [12:27:18]MH_I2C_Read... [12:27:18]Read from MH i2c: E2 03 00 [12:27:18]MH_I2C_Read... [12:27:18]Read from MH i2c: E2 03 00 F7 0C 00 90 00 77 [12:27:18]RAPDU: 90 00 [12:27:18]wFMCommunicate OK [12:27:18]wFMCommunicate request_size=4 [12:27:18]MH_SAM_APDU [12:27:18]CAPDU: 80 0D 03 02 [12:27:18]Write to MH i2c: E2 08 00 F8 0C 80 0D 03 02 00 00 00 00 7F [12:27:18]Write i2c OK [12:27:18]MH_I2C_Read... [12:27:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:27:18]Read from MH i2c: E2 [12:27:18]MH_I2C_Read... [12:27:18]Read from MH i2c: E2 0B 00 [12:27:18]MH_I2C_Read... [12:27:18]Read from MH i2c: E2 0B 00 F8 0C 00 F3 DB 74 AB A9 2F DD 68 90 00 8A [12:27:18]RAPDU: F3 DB 74 AB A9 2F DD 68 90 00 [12:27:18]wFMCommunicate OK [12:27:18]SAM_PROTO_SignData done [12:27:18]FM_MakeSignedData done [12:27:18]CreateOFDProtocolMessage [12:27:18]wFMCommunicate request_size=4 [12:27:18]MH_SAM_APDU [12:27:18]CAPDU: 80 11 00 00 [12:27:18]Write to MH i2c: E2 08 00 F9 0C 80 11 00 00 00 00 00 00 7F [12:27:18]Write i2c OK [12:27:18]MH_I2C_Read... [12:27:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:18]Read from MH i2c: E2 [12:27:18]MH_I2C_Read... [12:27:18]Read from MH i2c: E2 17 00 [12:27:18]MH_I2C_Read... [12:27:18]Read from MH i2c: E2 17 00 F9 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D5 [12:27:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:27:18]wFMCommunicate OK [12:27:18]CreateOFDProtocolMessage done [12:27:18]OFDSenderStorePacket 165268 [12:27:18]StoreOFDPacket docnum=165268 [12:27:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 5F 6C 04 01 87 3B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 46 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8C F9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 F9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 35 00 00 00 00 07 04 06 00 78 F9 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 A5 15 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 94 85 02 00 35 04 06 00 FD ED C5 8D 67 A8 F3 DB 74 AB A9 2F DD 68 [12:27:18]CheckFolder [12:27:18]dirname=/storage/ofd_packets [12:27:18]CheckFolder done [12:27:18]ProducePacketName [12:27:18]name=ofd_packets/00165268 [12:27:18]NVStorageSaveData ofd_packets/00165268 [12:27:18]File name is /storage/ofd_packets/00165268 [12:27:18]Write 298 bytes [12:27:18]NVStorageSaveData done [12:27:18]OFDSenderStorePacket done [12:27:18]KKMCreateOFDPacket done [12:27:18]NVStorageSaveData kkm_last_timestamp [12:27:18]File name is /storage/kkm_last_timestamp [12:27:18]Write 4 bytes [12:27:18]NVStorageSaveData done [12:27:18]ExternCall_PrintAddStr [12:27:18]wPrintStart [12:27:18]Write to MH i2c: 01 00 00 FA 0C 06 [12:27:18]Write i2c OK [12:27:18]MH_I2C_Read... [12:27:18]Read from MH i2c: 01 [12:27:18]MH_I2C_Read... [12:27:18]Read from MH i2c: 01 07 00 [12:27:18]MH_I2C_Read... [12:27:18]Read from MH i2c: 01 07 00 FA 0C 00 00 00 00 00 FF 0F 1B [12:27:18]RasterBufferAndPrint [12:27:18]line Счет N : (1)459378 [12:27:18]line ИНН: 02508201610067 [12:27:18]line Контрольно-Кассовый Чек [12:27:18]line ПРОДАЖА [12:27:18]line ТРК (МРК, ГНК) : 11 [12:27:18]line Товар: 2710194210 [12:27:18]line ДТ-К-5 [12:27:18]line 18.000 * 71.90 [12:27:18]line = 1294.20 [12:27:18]line НДС 12% НСП 1% [12:27:18]line > о реализуемом товаре [12:27:18]line ОКРУГЛЕНИЕ: -0.20 [12:27:18]line ИТОГО: 1294.00 [12:27:18]line Внесено: 1294.00 [12:27:18]line СДАЧА: 0.00 [12:27:18]line НСП 1% : 11.45 [12:27:18]line НДС 12% : 137.44 [12:27:18]line Наличными: 1294.00 [12:27:18]line Безнал.: 0.00 [12:27:18]line Место: АЗС № 72 "Партнер Нефть" [12:27:18]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:27:18]line СНО: Общий режим [12:27:18]line Чек 141 15.07.2024 12:27 [12:27:18]line Смена: 448 ФФД: 1.0 [12:27:18]line ЗНМ: 0300000160 [12:27:18]line РНМ: 0000000000090829 [12:27:18]line Версия ККМ: 001 [12:27:18]line ФМ: 0000000000874718 [12:27:18]line ФД: 165268 [12:27:19]line ФПД: 279197663455144 [12:27:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T122717&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165268&fm=279197663455144&tin=02508201610067®Number=0000000000090829&sum=129400 [12:27:19]OFD Sender: Processing packet 165268 [packets to send 106, broken 105] [12:27:19]ProducePacketName [12:27:19]name=ofd_packets/00165268 [12:27:19]OFD Sender: To server: pG, [12:27:19]CommunicateWithHost lk.salyk.kg:30040 [12:27:19]ConnectInit lk.salyk.kg [12:27:19]written 0, free lines is 4095 [12:27:19]Connected sock=10 [12:27:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 5F 6C 04 01 87 3B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 46 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8C F9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 F9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 35 00 00 00 00 07 04 06 00 78 F9 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 A5 15 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 94 85 02 00 35 04 06 00 FD ED C5 8D 67 A8 F3 DB 74 AB A9 2F DD 68 [12:27:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 2E CA 47 00 99 CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 94 85 02 00 F4 03 04 00 30 BC 94 66 B6 04 01 00 00 E3 B9 2E F9 80 5C 01 A1 [12:27:19]CommunicateWithHost err = 0 [12:27:19]CheckOFDResponse [12:27:19]1017 (14) - 77093643461234 [12:27:19]1041 (16) - 0000000000874718 [12:27:19]1040 (4) - 165268 [12:27:19]1012 (4) - 15.07.2024 06:05 [12:27:19]1206 (1) - 0 [12:27:19]OFD Sender: Remove packet 165268 [12:27:19]ProducePacketName [12:27:19]name=ofd_packets/00165268 [12:27:19]NVStorageDeleteData [12:27:19]Write to MH i2c: 01 00 00 24 0D 31 [12:27:19]Write i2c OK [12:27:19]MH_I2C_Read... [12:27:19]Read from MH i2c: 01 [12:27:19]MH_I2C_Read... [12:27:19]Read from MH i2c: 01 07 00 [12:27:19]MH_I2C_Read... [12:27:19]Read from MH i2c: 01 07 00 24 0D 00 00 00 00 00 FC 0C 40 [12:27:19]RasterBufferAndPrint [12:27:19]line [12:27:19]line [12:27:19]line [12:27:19]line [12:27:19]line [12:27:19]written 0, free lines is 3330 [12:27:19]MH_Cut [12:27:19]Write to MH i2c: D1 01 00 2B 0D 01 0A [12:27:19]Write i2c OK [12:27:19]MH_I2C_Read... [12:27:19]Read from MH i2c: D1 [12:27:19]MH_I2C_Read... [12:27:19]Read from MH i2c: D1 01 00 [12:27:19]MH_I2C_Read... [12:27:19]Read from MH i2c: D1 01 00 2B 0D 00 09 [12:27:19]Write to MH i2c: 01 00 00 2C 0D 39 [12:27:19]Write i2c OK [12:27:19]MH_I2C_Read... [12:27:19]OFD Sender: No OFD packet to send [12:27:20]*** Cut start [12:27:20]*** Partial cut [12:27:20]*** CUTSNS_PIN = 1 [12:27:20]*** CUTSNS_PIN = 0 [12:27:20]*** Brake cut motor [12:27:20]Read from MH i2c: 01 [12:27:20]MH_I2C_Read... [12:27:20]*** Stop cut motor [12:27:20]*** Cut end [12:27:20]Read from MH i2c: 01 07 00 [12:27:20]MH_I2C_Read... [12:27:20]Read from MH i2c: 01 07 00 2C 0D 00 00 00 00 00 FF 0F 4E [12:27:20]process_action close_receipt done [12:27:20]requested_data is exist [12:27:20]produce_requested_data [12:27:20]requested_item fm.sn is exist - process it [12:27:20]wFMCommunicate request_size=4 [12:27:20]MH_SAM_APDU [12:27:20]CAPDU: 80 11 00 00 [12:27:20]Write to MH i2c: E2 08 00 2D 0D 80 11 00 00 00 00 00 00 B4 [12:27:20]Write i2c OK [12:27:20]MH_I2C_Read... [12:27:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:20]Read from MH i2c: E2 [12:27:20]MH_I2C_Read... [12:27:20]Read from MH i2c: E2 17 00 [12:27:20]MH_I2C_Read... [12:27:20]Read from MH i2c: E2 17 00 2D 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0A [12:27:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:27:20]wFMCommunicate OK [12:27:20]requested_item fd.num is exist - process it [12:27:20]SAM_PROTO_GetFieldsCounters [12:27:20]wFMCommunicate request_size=4 [12:27:20]MH_SAM_APDU [12:27:20]CAPDU: 80 13 00 00 [12:27:20]Write to MH i2c: E2 08 00 2E 0D 80 13 00 00 00 00 00 00 B7 [12:27:20]Write i2c OK [12:27:20]MH_I2C_Read... [12:27:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:27:20]Read from MH i2c: E2 [12:27:20]MH_I2C_Read... [12:27:20]Read from MH i2c: E2 62 00 [12:27:20]MH_I2C_Read... [12:27:20]Read from MH i2c: E2 62 00 2E 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 94 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [12:27: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 94 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:27:20]wFMCommunicate OK [12:27:20]SAM_PROTO_GetFieldsCounters done [12:27:20]requested_item shift.num is exist - process it [12:27:20]requested_item shift.opened is exist - process it [12:27:20]req_shift_opened [12:27:20]FM_GetShiftState [12:27:20]SAM_PROTO_GetShiftState [12:27:20]wFMCommunicate request_size=4 [12:27:20]MH_SAM_APDU [12:27:20]CAPDU: 80 13 01 00 [12:27:20]Write to MH i2c: E2 08 00 2F 0D 80 13 01 00 00 00 00 00 B9 [12:27:20]Write i2c OK [12:27:20]MH_I2C_Read... [12:27:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:21]Read from MH i2c: E2 [12:27:21]MH_I2C_Read... [12:27:21]Read from MH i2c: E2 0E 00 [12:27:21]MH_I2C_Read... [12:27:21]Read from MH i2c: E2 0E 00 2F 0D 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 92 [12:27:21]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:27:21]wFMCommunicate OK [12:27:21]SAM_PROTO_GetShiftState done [12:27:21]FM_GetShiftState done [12:27:21]req_shift_opened done [12:27:21]requested_item shift.open_date is exist - process it [12:27:21]req_shift_open_date [12:27:21]req_shift_open_date done [12:27:21]produce_requested_data done [12:27:21]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165268,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [12:27:21]process_action_free close_receipt [12:27:21]json_value_free [12:27:21]json_value_free done [12:27:21]process_json_proto returns [12:27:21]Send response to host [12:27:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165268,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [12:27:21]free response buf [12:27:21]execute_script done [12:27:21]execute_script returns [12:27:21]free content buf [12:27:21]Sock 8.Close socket [12:27:21]Sock 8.Thread stoped [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:20]OFD Sender: No OFD packet to send [12:29:25]OFD Sender: No OFD packet to send [12:29:27]accept exits with 9 [12:29:27]New connection [12:29:27]New thread 3066854756 created [12:29:27]Thread 3066711396 joined [12:29:27]Waiting for new connection... [12:29:27] Sock 9.Parse request [12:29:27]Sock 9.Check first char [12:29:27]Sock 9.First char is OK [12:29:27]request: POST /json_proto HTTP/1.0 [12:29:27]Method: POST [12:29:27]URL: /json_proto [12:29:27]Method is POST - this is cgi request [12:29:27]url: /json_proto [12:29:27]query_string will be loaded in cgi processing [12:29:27]execute_cgi json_proto POST (null) [12:29:27]execute_cgi path=json_proto method=POST [12:29:27]POST find Content-Length [12:29:27]Host: 172.17.56.4:8080 [12:29:27]Content-Length: 677 [12:29:27]Content-Type: application/json [12:29:27] [12:29:27]POST finish read [12:29:27]Found Content-Length = 677 [12:29:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459379", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.520, "sum" : 100.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:27]execute_script... [12:29:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459379", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.520, "sum" : 100.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:27]POST & json_proto [12:29:27]process_json_proto [12:29:27]json parsed OK: [12:29:27]protocol is kg_v1.0 [12:29:27]action value=close_receipt [12:29:27]process_action close_receipt [12:29:27]cmd_close_receipt [12:29:27]MH_GetDate [12:29:27]Write to MH i2c: F0 00 00 30 0D 2C [12:29:27]Write i2c OK [12:29:27]MH_I2C_Read... [12:29:27]Read from MH i2c: F0 [12:29:27]MH_I2C_Read... [12:29:27]Read from MH i2c: F0 09 00 [12:29:27]MH_I2C_Read... [12:29:27]Read from MH i2c: F0 09 00 30 0D 00 28 16 95 66 C9 DC B2 64 29 [12:29:27]GetLastDocTimeStamp 1721046437 [12:29:27]current date 1721046568 [12:29:27]FM_GetShiftState [12:29:27]SAM_PROTO_GetShiftState [12:29:27]wFMCommunicate request_size=4 [12:29:27]MH_SAM_APDU [12:29:27]CAPDU: 80 13 01 00 [12:29:27]Write to MH i2c: E2 08 00 31 0D 80 13 01 00 00 00 00 00 BB [12:29:27]Write i2c OK [12:29:27]MH_I2C_Read... [12:29:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:27]Read from MH i2c: E2 [12:29:27]MH_I2C_Read... [12:29:27]Read from MH i2c: E2 0E 00 [12:29:27]MH_I2C_Read... [12:29:27]Read from MH i2c: E2 0E 00 31 0D 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 94 [12:29:27]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:29:27]wFMCommunicate OK [12:29:27]SAM_PROTO_GetShiftState done [12:29:27]FM_GetShiftState done [12:29:27]opened in 1721003876 [12:29:27]opened+sec_in_day 1721090276 [12:29:27]quantity*price = 10001 [12:29:27]sum+1 = 10003 [12:29:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 142 15.07.2024 12:29 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165269 ФПД: 136098220091408 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T122928&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165269&fm=136098220091408&tin=02508201610067®Number=0000000000090829&sum=10000 [12:29:29]StoreToDocumentArchive [12:29:29]shift 448 fd 165269 [12:29:29]save to /storage/0448/doc_00165269 [12:29:29]save last doc name /storage/0448/doc_00165269 to /storage/kkm_last_doc_name [12:29:29]save OK [12:29:29]Clear old archive folders... [12:29:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:29:29]tlvbuf is 0183F770 [12:29:29]SAM_PROTO_ClearQueue [12:29:29]wFMCommunicate request_size=4 [12:29:29]MH_SAM_APDU [12:29:29]CAPDU: 80 09 00 00 [12:29:29]Write to MH i2c: E2 08 00 3E 0D 80 09 00 00 00 00 00 00 BD [12:29:29]Write i2c OK [12:29:29]MH_I2C_Read... [12:29:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:29:29]Read from MH i2c: E2 [12:29:29]MH_I2C_Read... [12:29:29]Read from MH i2c: E2 03 00 [12:29:29]MH_I2C_Read... [12:29:29]Read from MH i2c: E2 03 00 3E 0D 00 90 00 BF [12:29:29]RAPDU: 90 00 [12:29:29]wFMCommunicate OK [12:29:29]SAM_PROTO_ClearQueue done [12:29:29]KKMCreateOFDPacket [12:29:29]OFDProtocolAddRootSTLVToBuf [12:29:29]FM_MakeSignedData [12:29:29]FM_MakeSignedData [12:29:29]SAM_PROTO_SignData [12:29:29]wFMCommunicate request_size=4 [12:29:29]MH_SAM_APDU [12:29:29]CAPDU: 80 0D 01 02 [12:29:29]Write to MH i2c: E2 08 00 3F 0D 80 0D 01 02 00 00 00 00 C5 [12:29:29]Write i2c OK [12:29:29]MH_I2C_Read... [12:29:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:29:29]Read from MH i2c: E2 [12:29:29]MH_I2C_Read... [12:29:29]Read from MH i2c: E2 03 00 [12:29:29]MH_I2C_Read... [12:29:29]Read from MH i2c: E2 03 00 3F 0D 00 90 00 C0 [12:29:29]RAPDU: 90 00 [12:29:29]wFMCommunicate OK [12:29:29]wFMCommunicate request_size=255 [12:29:29]MH_SAM_APDU [12:29:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 05 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 12 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 28 16 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 95 85 02 00 35 04 06 00 7B [12:29:29]Write to MH i2c: E2 02 01 40 0D 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 F0 05 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 12 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 28 16 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 95 85 02 00 35 04 06 00 7B 00 00 DF [12:29:29]Write i2c OK [12:29:29]MH_I2C_Read... [12:29:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:29]Read from MH i2c: E2 [12:29:29]MH_I2C_Read... [12:29:29]Read from MH i2c: E2 03 00 [12:29:29]MH_I2C_Read... [12:29:29]Read from MH i2c: E2 03 00 40 0D 00 90 00 C1 [12:29:29]RAPDU: 90 00 [12:29:29]wFMCommunicate OK [12:29:29]wFMCommunicate request_size=10 [12:29:29]MH_SAM_APDU [12:29:29]CAPDU: 80 0D 02 02 05 C7 D6 10 28 10 [12:29:29]Write to MH i2c: E2 0D 00 41 0D 80 0D 02 02 05 00 C7 D6 10 28 10 00 00 B7 [12:29:29]Write i2c OK [12:29:29]MH_I2C_Read... [12:29:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:29]Read from MH i2c: E2 [12:29:29]MH_I2C_Read... [12:29:29]Read from MH i2c: E2 03 00 [12:29:29]MH_I2C_Read... [12:29:29]Read from MH i2c: E2 03 00 41 0D 00 90 00 C2 [12:29:29]RAPDU: 90 00 [12:29:29]wFMCommunicate OK [12:29:29]wFMCommunicate request_size=4 [12:29:29]MH_SAM_APDU [12:29:29]CAPDU: 80 0D 03 02 [12:29:29]Write to MH i2c: E2 08 00 42 0D 80 0D 03 02 00 00 00 00 CA [12:29:29]Write i2c OK [12:29:29]MH_I2C_Read... [12:29:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:29:29]Read from MH i2c: E2 [12:29:29]MH_I2C_Read... [12:29:29]Read from MH i2c: E2 0B 00 [12:29:29]MH_I2C_Read... [12:29:29]Read from MH i2c: E2 0B 00 42 0D 00 47 5D 13 3C 1A A7 53 5C 90 00 2E [12:29:29]RAPDU: 47 5D 13 3C 1A A7 53 5C 90 00 [12:29:29]wFMCommunicate OK [12:29:29]SAM_PROTO_SignData done [12:29:29]FM_MakeSignedData done [12:29:29]CreateOFDProtocolMessage [12:29:29]wFMCommunicate request_size=4 [12:29:29]MH_SAM_APDU [12:29:29]CAPDU: 80 11 00 00 [12:29:29]Write to MH i2c: E2 08 00 43 0D 80 11 00 00 00 00 00 00 CA [12:29:29]Write i2c OK [12:29:29]MH_I2C_Read... [12:29:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:29]Read from MH i2c: E2 [12:29:29]MH_I2C_Read... [12:29:29]Read from MH i2c: E2 17 00 [12:29:29]MH_I2C_Read... [12:29:29]Read from MH i2c: E2 17 00 43 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 20 [12:29:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:29:29]wFMCommunicate OK [12:29:29]CreateOFDProtocolMessage done [12:29:29]OFDSenderStorePacket 165269 [12:29:29]StoreOFDPacket docnum=165269 [12:29:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 8B 74 07 01 B7 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 F0 05 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 12 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 28 16 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 95 85 02 00 35 04 06 00 7B C7 D6 10 28 10 47 5D 13 3C 1A A7 53 5C [12:29:29]CheckFolder [12:29:29]dirname=/storage/ofd_packets [12:29:29]CheckFolder done [12:29:29]ProducePacketName [12:29:29]name=ofd_packets/00165269 [12:29:29]NVStorageSaveData ofd_packets/00165269 [12:29:29]File name is /storage/ofd_packets/00165269 [12:29:29]Write 301 bytes [12:29:29]NVStorageSaveData done [12:29:29]OFDSenderStorePacket done [12:29:29]KKMCreateOFDPacket done [12:29:29]NVStorageSaveData kkm_last_timestamp [12:29:29]File name is /storage/kkm_last_timestamp [12:29:29]Write 4 bytes [12:29:29]NVStorageSaveData done [12:29:29]ExternCall_PrintAddStr [12:29:29]wPrintStart [12:29:29]Write to MH i2c: 01 00 00 44 0D 51 [12:29:29]Write i2c OK [12:29:29]MH_I2C_Read... [12:29:29]Read from MH i2c: 01 [12:29:29]MH_I2C_Read... [12:29:29]Read from MH i2c: 01 07 00 [12:29:29]MH_I2C_Read... [12:29:29]Read from MH i2c: 01 07 00 44 0D 00 00 00 00 00 FF 0F 66 [12:29:29]RasterBufferAndPrint [12:29:29]line Счет N : (1)459379 [12:29:29]line ИНН: 02508201610067 [12:29:29]line Контрольно-Кассовый Чек [12:29:29]line ПРОДАЖА [12:29:29]line ТРК (МРК, ГНК) : 12 [12:29:29]line Товар: 2710124130 [12:29:29]line Аи-92-К-5 [12:29:29]line 1.520 * 65.80 [12:29:29]line = 100.02 [12:29:29]line НДС 12% НСП 1% [12:29:29]line > о реализуемом товаре [12:29:29]line ОКРУГЛЕНИЕ: -0.02 [12:29:29]line ИТОГО: 100.00 [12:29:29]line Внесено: 100.00 [12:29:29]line СДАЧА: 0.00 [12:29:29]line НСП 1% : 0.88 [12:29:29]line НДС 12% : 10.62 [12:29:29]line Наличными: 100.00 [12:29:29]line Безнал.: 0.00 [12:29:29]line Место: АЗС № 72 "Партнер Нефть" [12:29:29]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:29:29]line СНО: Общий режим [12:29:29]line Чек 142 15.07.2024 12:29 [12:29:29]line Смена: 448 ФФД: 1.0 [12:29:29]line ЗНМ: 0300000160 [12:29:29]line РНМ: 0000000000090829 [12:29:29]line Версия ККМ: 001 [12:29:29]line ФМ: 0000000000874718 [12:29:29]line ФД: 165269 [12:29:29]line ФПД: 136098220091408 [12:29:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T122928&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165269&fm=136098220091408&tin=02508201610067®Number=0000000000090829&sum=10000 [12:29:29]written 0, free lines is 4095 [12:29:29]OFD Sender: Processing packet 165269 [packets to send 106, broken 105] [12:29:29]ProducePacketName [12:29:29]name=ofd_packets/00165269 [12:29:29]OFD Sender: To server: pG, [12:29:29]CommunicateWithHost lk.salyk.kg:30040 [12:29:29]ConnectInit lk.salyk.kg [12:29:30]Connected sock=10 [12:29:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 8B 74 07 01 B7 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 F0 05 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 12 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 28 16 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 95 85 02 00 35 04 06 00 7B C7 D6 10 28 10 47 5D 13 3C 1A A7 53 5C [12:29:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 28 AC 47 00 A7 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 95 85 02 00 F4 03 04 00 B3 BC 94 66 B6 04 01 00 00 E8 26 C3 DB B9 46 D4 2B [12:29:30]CommunicateWithHost err = 0 [12:29:30]CheckOFDResponse [12:29:30]1017 (14) - 77093643461234 [12:29:30]1041 (16) - 0000000000874718 [12:29:30]1040 (4) - 165269 [12:29:30]1012 (4) - 15.07.2024 06:07 [12:29:30]1206 (1) - 0 [12:29:30]OFD Sender: Remove packet 165269 [12:29:30]ProducePacketName [12:29:30]name=ofd_packets/00165269 [12:29:30]NVStorageDeleteData [12:29:30]Write to MH i2c: 01 00 00 6E 0D 7B [12:29:30]Write i2c OK [12:29:30]MH_I2C_Read... [12:29:30]Read from MH i2c: 01 [12:29:30]MH_I2C_Read... [12:29:30]Read from MH i2c: 01 07 00 [12:29:30]MH_I2C_Read... [12:29:30]Read from MH i2c: 01 07 00 6E 0D 00 00 00 00 00 F2 0C 80 [12:29:30]RasterBufferAndPrint [12:29:30]line [12:29:30]line [12:29:30]line [12:29:30]line [12:29:30]line [12:29:30]written 0, free lines is 3320 [12:29:30]MH_Cut [12:29:30]Write to MH i2c: D1 01 00 75 0D 01 54 [12:29:30]Write i2c OK [12:29:30]MH_I2C_Read... [12:29:30]Read from MH i2c: D1 [12:29:30]MH_I2C_Read... [12:29:30]Read from MH i2c: D1 01 00 [12:29:30]MH_I2C_Read... [12:29:30]Read from MH i2c: D1 01 00 75 0D 00 53 [12:29:30]Write to MH i2c: 01 00 00 76 0D 83 [12:29:30]Write i2c OK [12:29:30]MH_I2C_Read... [12:29:30]OFD Sender: No OFD packet to send [12:29:31]*** Cut start [12:29:31]*** Partial cut [12:29:31]*** CUTSNS_PIN = 1 [12:29:31]*** CUTSNS_PIN = 0 [12:29:31]*** Brake cut motor [12:29:31]Read from MH i2c: 01 [12:29:31]MH_I2C_Read... [12:29:31]*** Stop cut motor [12:29:31]*** Cut end [12:29:31]Read from MH i2c: 01 07 00 [12:29:31]MH_I2C_Read... [12:29:31]Read from MH i2c: 01 07 00 76 0D 00 00 00 00 00 FF 0F 98 [12:29:31]process_action close_receipt done [12:29:31]requested_data is exist [12:29:31]produce_requested_data [12:29:31]requested_item fm.sn is exist - process it [12:29:31]wFMCommunicate request_size=4 [12:29:31]MH_SAM_APDU [12:29:31]CAPDU: 80 11 00 00 [12:29:31]Write to MH i2c: E2 08 00 77 0D 80 11 00 00 00 00 00 00 FE [12:29:31]Write i2c OK [12:29:31]MH_I2C_Read... [12:29:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:31]Read from MH i2c: E2 [12:29:31]MH_I2C_Read... [12:29:31]Read from MH i2c: E2 17 00 [12:29:31]MH_I2C_Read... [12:29:31]Read from MH i2c: E2 17 00 77 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 54 [12:29:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:29:31]wFMCommunicate OK [12:29:31]requested_item fd.num is exist - process it [12:29:31]SAM_PROTO_GetFieldsCounters [12:29:31]wFMCommunicate request_size=4 [12:29:31]MH_SAM_APDU [12:29:31]CAPDU: 80 13 00 00 [12:29:31]Write to MH i2c: E2 08 00 78 0D 80 13 00 00 00 00 00 00 01 [12:29:31]Write i2c OK [12:29:31]MH_I2C_Read... [12:29:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:29:31]Read from MH i2c: E2 [12:29:31]MH_I2C_Read... [12:29:31]Read from MH i2c: E2 62 00 [12:29:31]MH_I2C_Read... [12:29:31]Read from MH i2c: E2 62 00 78 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 95 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [12:29: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 95 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:29:31]wFMCommunicate OK [12:29:31]SAM_PROTO_GetFieldsCounters done [12:29:31]requested_item shift.num is exist - process it [12:29:31]requested_item shift.opened is exist - process it [12:29:31]req_shift_opened [12:29:31]FM_GetShiftState [12:29:31]SAM_PROTO_GetShiftState [12:29:31]wFMCommunicate request_size=4 [12:29:31]MH_SAM_APDU [12:29:31]CAPDU: 80 13 01 00 [12:29:31]Write to MH i2c: E2 08 00 79 0D 80 13 01 00 00 00 00 00 03 [12:29:31]Write i2c OK [12:29:31]MH_I2C_Read... [12:29:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:31]Read from MH i2c: E2 [12:29:31]MH_I2C_Read... [12:29:31]Read from MH i2c: E2 0E 00 [12:29:31]MH_I2C_Read... [12:29:31]Read from MH i2c: E2 0E 00 79 0D 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 DC [12:29:31]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:29:31]wFMCommunicate OK [12:29:31]SAM_PROTO_GetShiftState done [12:29:31]FM_GetShiftState done [12:29:31]req_shift_opened done [12:29:31]requested_item shift.open_date is exist - process it [12:29:31]req_shift_open_date [12:29:31]req_shift_open_date done [12:29:31]produce_requested_data done [12:29:31]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165269,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [12:29:31]process_action_free close_receipt [12:29:31]json_value_free [12:29:31]json_value_free done [12:29:31]process_json_proto returns [12:29:31]Send response to host [12:29:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165269,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [12:29:31]free response buf [12:29:31]execute_script done [12:29:31]execute_script returns [12:29:31]free content buf [12:29:31]Sock 9.Close socket [12:29:31]Sock 9.Thread stoped [12:29:35]OFD Sender: No OFD packet to send [12:29:40]OFD Sender: No OFD packet to send [12:29:45]OFD Sender: No OFD packet to send [12:29:50]OFD Sender: No OFD packet to send [12:29:55]OFD Sender: No OFD packet to send [12:30:00]OFD Sender: No OFD packet to send [12:30:05]OFD Sender: No OFD packet to send [12:30:10]OFD Sender: No OFD packet to send [12:30:15]OFD Sender: No OFD packet to send [12:30:20]OFD Sender: No OFD packet to send [12:30:25]OFD Sender: No OFD packet to send [12:30:30]OFD Sender: No OFD packet to send [12:30:35]OFD Sender: No OFD packet to send [12:30:40]OFD Sender: No OFD packet to send [12:30:45]OFD Sender: No OFD packet to send [12:30:50]OFD Sender: No OFD packet to send [12:30:55]OFD Sender: No OFD packet to send [12:31:00]OFD Sender: No OFD packet to send [12:31:05]OFD Sender: No OFD packet to send [12:31:10]OFD Sender: No OFD packet to send [12:31:15]OFD Sender: No OFD packet to send [12:31:20]OFD Sender: No OFD packet to send [12:31:25]OFD Sender: No OFD packet to send [12:31:30]OFD Sender: No OFD packet to send [12:31:35]OFD Sender: No OFD packet to send [12:31:40]OFD Sender: No OFD packet to send [12:31:45]OFD Sender: No OFD packet to send [12:31:50]OFD Sender: No OFD packet to send [12:31:55]OFD Sender: No OFD packet to send [12:32:00]OFD Sender: No OFD packet to send [12:32:05]OFD Sender: No OFD packet to send [12:32:10]OFD Sender: No OFD packet to send [12:32:15]accept exits with 8 [12:32:15]New connection [12:32:15]New thread 3066711396 created [12:32:15]Thread 3066854756 joined [12:32:15]Waiting for new connection... [12:32:15] Sock 8.Parse request [12:32:15]Sock 8.Check first char [12:32:15]Sock 8.First char is OK [12:32:15]request: POST /json_proto HTTP/1.0 [12:32:15]Method: POST [12:32:15]URL: /json_proto [12:32:15]Method is POST - this is cgi request [12:32:15]url: /json_proto [12:32:15]query_string will be loaded in cgi processing [12:32:15]execute_cgi json_proto POST (null) [12:32:15]execute_cgi path=json_proto method=POST [12:32:15]POST find Content-Length [12:32:15]Host: 172.17.56.4:8080 [12:32:15]Content-Length: 677 [12:32:15]Content-Type: application/json [12:32:15] [12:32:15]POST finish read [12:32:15]Found Content-Length = 677 [12:32:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459380", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:15]execute_script... [12:32:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459380", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:15]POST & json_proto [12:32:15]process_json_proto [12:32:15]json parsed OK: [12:32:15]protocol is kg_v1.0 [12:32:15]action value=close_receipt [12:32:15]process_action close_receipt [12:32:15]cmd_close_receipt [12:32:15]MH_GetDate [12:32:15]Write to MH i2c: F0 00 00 7A 0D 76 [12:32:15]Write i2c OK [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: F0 [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: F0 09 00 [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: F0 09 00 7A 0D 00 D0 16 95 66 C9 DC B2 64 1B [12:32:15]GetLastDocTimeStamp 1721046568 [12:32:15]current date 1721046736 [12:32:15]FM_GetShiftState [12:32:15]SAM_PROTO_GetShiftState [12:32:15]wFMCommunicate request_size=4 [12:32:15]MH_SAM_APDU [12:32:15]CAPDU: 80 13 01 00 [12:32:15]Write to MH i2c: E2 08 00 7B 0D 80 13 01 00 00 00 00 00 05 [12:32:15]Write i2c OK [12:32:15]MH_I2C_Read... [12:32:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:15]Read from MH i2c: E2 [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: E2 0E 00 [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: E2 0E 00 7B 0D 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 DE [12:32:15]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:32:15]wFMCommunicate OK [12:32:15]SAM_PROTO_GetShiftState done [12:32:15]FM_GetShiftState done [12:32:15]opened in 1721003876 [12:32:15]opened+sec_in_day 1721090276 [12:32:15]quantity*price = 60009 [12:32:15]sum+1 = 60011 [12:32:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 143 15.07.2024 12:32 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165270 ФПД: 143820706689195 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T123216&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165270&fm=143820706689195&tin=02508201610067®Number=0000000000090829&sum=60000 [12:32:16]StoreToDocumentArchive [12:32:16]shift 448 fd 165270 [12:32:16]save to /storage/0448/doc_00165270 [12:32:16]save last doc name /storage/0448/doc_00165270 to /storage/kkm_last_doc_name [12:32:16]save OK [12:32:16]Clear old archive folders... [12:32:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:32:16]tlvbuf is 01811E50 [12:32:16]SAM_PROTO_ClearQueue [12:32:16]wFMCommunicate request_size=4 [12:32:16]MH_SAM_APDU [12:32:16]CAPDU: 80 09 00 00 [12:32:16]Write to MH i2c: E2 08 00 88 0D 80 09 00 00 00 00 00 00 07 [12:32:16]Write i2c OK [12:32:16]MH_I2C_Read... [12:32:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:32:16]Read from MH i2c: E2 [12:32:16]MH_I2C_Read... [12:32:16]Read from MH i2c: E2 03 00 [12:32:16]MH_I2C_Read... [12:32:16]Read from MH i2c: E2 03 00 88 0D 00 90 00 09 [12:32:16]RAPDU: 90 00 [12:32:16]wFMCommunicate OK [12:32:16]SAM_PROTO_ClearQueue done [12:32:16]KKMCreateOFDPacket [12:32:16]OFDProtocolAddRootSTLVToBuf [12:32:16]FM_MakeSignedData [12:32:16]FM_MakeSignedData [12:32:16]SAM_PROTO_SignData [12:32:16]wFMCommunicate request_size=4 [12:32:16]MH_SAM_APDU [12:32:16]CAPDU: 80 0D 01 02 [12:32:16]Write to MH i2c: E2 08 00 89 0D 80 0D 01 02 00 00 00 00 0F [12:32:16]Write i2c OK [12:32:16]MH_I2C_Read... [12:32:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:32:16]Read from MH i2c: E2 [12:32:16]MH_I2C_Read... [12:32:16]Read from MH i2c: E2 03 00 [12:32:16]MH_I2C_Read... [12:32:16]Read from MH i2c: E2 03 00 89 0D 00 90 00 0A [12:32:16]RAPDU: 90 00 [12:32:16]wFMCommunicate OK [12:32:16]wFMCommunicate request_size=255 [12:32:16]MH_SAM_APDU [12:32:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 D0 16 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 96 85 02 00 35 04 06 00 82 [12:32:16]Write to MH i2c: E2 02 01 8A 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 D0 16 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 96 85 02 00 35 04 06 00 82 00 00 79 [12:32:16]Write i2c OK [12:32:16]MH_I2C_Read... [12:32:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:16]Read from MH i2c: E2 [12:32:16]MH_I2C_Read... [12:32:16]Read from MH i2c: E2 03 00 [12:32:16]MH_I2C_Read... [12:32:16]Read from MH i2c: E2 03 00 8A 0D 00 90 00 0B [12:32:16]RAPDU: 90 00 [12:32:16]wFMCommunicate OK [12:32:16]wFMCommunicate request_size=10 [12:32:16]MH_SAM_APDU [12:32:16]CAPDU: 80 0D 02 02 05 CD DE 22 30 AB [12:32:16]Write to MH i2c: E2 0D 00 8B 0D 80 0D 02 02 05 00 CD DE 22 30 AB 00 00 C4 [12:32:16]Write i2c OK [12:32:16]MH_I2C_Read... [12:32:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:17]Read from MH i2c: E2 [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: E2 03 00 [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: E2 03 00 8B 0D 00 90 00 0C [12:32:17]RAPDU: 90 00 [12:32:17]wFMCommunicate OK [12:32:17]wFMCommunicate request_size=4 [12:32:17]MH_SAM_APDU [12:32:17]CAPDU: 80 0D 03 02 [12:32:17]Write to MH i2c: E2 08 00 8C 0D 80 0D 03 02 00 00 00 00 14 [12:32:17]Write i2c OK [12:32:17]MH_I2C_Read... [12:32:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:32:17]Read from MH i2c: E2 [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: E2 0B 00 [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: E2 0B 00 8C 0D 00 ED C4 53 81 B3 F0 E9 C5 90 00 EB [12:32:17]RAPDU: ED C4 53 81 B3 F0 E9 C5 90 00 [12:32:17]wFMCommunicate OK [12:32:17]SAM_PROTO_SignData done [12:32:17]FM_MakeSignedData done [12:32:17]CreateOFDProtocolMessage [12:32:17]wFMCommunicate request_size=4 [12:32:17]MH_SAM_APDU [12:32:17]CAPDU: 80 11 00 00 [12:32:17]Write to MH i2c: E2 08 00 8D 0D 80 11 00 00 00 00 00 00 14 [12:32:17]Write i2c OK [12:32:17]MH_I2C_Read... [12:32:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:17]Read from MH i2c: E2 [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: E2 17 00 [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: E2 17 00 8D 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6A [12:32:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:32:17]wFMCommunicate OK [12:32:17]CreateOFDProtocolMessage done [12:32:17]OFDSenderStorePacket 165270 [12:32:17]StoreOFDPacket docnum=165270 [12:32:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 35 53 07 01 56 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 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 D0 16 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 96 85 02 00 35 04 06 00 82 CD DE 22 30 AB ED C4 53 81 B3 F0 E9 C5 [12:32:17]CheckFolder [12:32:17]dirname=/storage/ofd_packets [12:32:17]CheckFolder done [12:32:17]ProducePacketName [12:32:17]name=ofd_packets/00165270 [12:32:17]NVStorageSaveData ofd_packets/00165270 [12:32:17]File name is /storage/ofd_packets/00165270 [12:32:17]Write 301 bytes [12:32:17]NVStorageSaveData done [12:32:17]OFDSenderStorePacket done [12:32:17]KKMCreateOFDPacket done [12:32:17]NVStorageSaveData kkm_last_timestamp [12:32:17]File name is /storage/kkm_last_timestamp [12:32:17]Write 4 bytes [12:32:17]NVStorageSaveData done [12:32:17]ExternCall_PrintAddStr [12:32:17]wPrintStart [12:32:17]Write to MH i2c: 01 00 00 8E 0D 9B [12:32:17]Write i2c OK [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: 01 [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: 01 07 00 [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: 01 07 00 8E 0D 00 00 00 00 00 FF 0F B0 [12:32:17]RasterBufferAndPrint [12:32:17]line Счет N : (1)459380 [12:32:17]line ИНН: 02508201610067 [12:32:17]line Контрольно-Кассовый Чек [12:32:17]line ПРОДАЖА [12:32:17]line ТРК (МРК, ГНК) : 12 [12:32:17]line Товар: 2710124130 [12:32:17]line Аи-92-К-5 [12:32:17]line 9.120 * 65.80 [12:32:17]line = 600.10 [12:32:17]line НДС 12% НСП 1% [12:32:17]line > о реализуемом товаре [12:32:17]line ОКРУГЛЕНИЕ: -0.10 [12:32:17]line ИТОГО: 600.00 [12:32:17]line Внесено: 600.00 [12:32:17]line СДАЧА: 0.00 [12:32:17]line НСП 1% : 5.31 [12:32:17]line НДС 12% : 63.73 [12:32:17]line Наличными: 600.00 [12:32:17]line Безнал.: 0.00 [12:32:17]line Место: АЗС № 72 "Партнер Нефть" [12:32:17]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:32:17]line СНО: Общий режим [12:32:17]line Чек 143 15.07.2024 12:32 [12:32:17]line Смена: 448 ФФД: 1.0 [12:32:17]line ЗНМ: 0300000160 [12:32:17]line РНМ: 0000000000090829 [12:32:17]line Версия ККМ: 001 [12:32:17]line ФМ: 0000000000874718 [12:32:17]line ФД: 165270 [12:32:17]line ФПД: 143820706689195 [12:32:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T123216&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165270&fm=143820706689195&tin=02508201610067®Number=0000000000090829&sum=60000 [12:32:17]written 0, free lines is 4095 [12:32:17]OFD Sender: Processing packet 165270 [packets to send 106, broken 105] [12:32:17]ProducePacketName [12:32:17]name=ofd_packets/00165270 [12:32:17]OFD Sender: To server: pG, [12:32:17]CommunicateWithHost lk.salyk.kg:30040 [12:32:17]ConnectInit lk.salyk.kg [12:32:17]Connected sock=10 [12:32:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 35 53 07 01 56 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 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 D0 16 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 96 85 02 00 35 04 06 00 82 CD DE 22 30 AB ED C4 53 81 B3 F0 E9 C5 [12:32:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 41 6F 47 00 46 BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 96 85 02 00 F4 03 04 00 5A BD 94 66 B6 04 01 00 00 93 F3 79 FF 72 F7 BF F1 [12:32:17]CommunicateWithHost err = 0 [12:32:17]CheckOFDResponse [12:32:17]1017 (14) - 77093643461234 [12:32:17]1041 (16) - 0000000000874718 [12:32:17]1040 (4) - 165270 [12:32:17]1012 (4) - 15.07.2024 06:10 [12:32:17]1206 (1) - 0 [12:32:17]OFD Sender: Remove packet 165270 [12:32:17]ProducePacketName [12:32:17]name=ofd_packets/00165270 [12:32:17]NVStorageDeleteData [12:32:17]Write to MH i2c: 01 00 00 B8 0D C5 [12:32:17]Write i2c OK [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: 01 [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: 01 07 00 [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: 01 07 00 B8 0D 00 00 00 00 00 02 0D DB [12:32:17]RasterBufferAndPrint [12:32:17]line [12:32:17]line [12:32:17]line [12:32:17]line [12:32:17]line [12:32:17]written 0, free lines is 3336 [12:32:17]MH_Cut [12:32:17]Write to MH i2c: D1 01 00 BF 0D 01 9E [12:32:17]Write i2c OK [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: D1 [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: D1 01 00 [12:32:17]MH_I2C_Read... [12:32:17]Read from MH i2c: D1 01 00 BF 0D 00 9D [12:32:17]Write to MH i2c: 01 00 00 C0 0D CD [12:32:17]Write i2c OK [12:32:17]MH_I2C_Read... [12:32:17]OFD Sender: No OFD packet to send [12:32:18]*** Cut start [12:32:18]*** Partial cut [12:32:18]*** CUTSNS_PIN = 1 [12:32:18]*** CUTSNS_PIN = 0 [12:32:18]*** Brake cut motor [12:32:18]Read from MH i2c: 01 [12:32:18]MH_I2C_Read... [12:32:18]*** Stop cut motor [12:32:18]*** Cut end [12:32:18]Read from MH i2c: 01 07 00 [12:32:18]MH_I2C_Read... [12:32:18]Read from MH i2c: 01 07 00 C0 0D 00 00 00 00 00 FF 0F E2 [12:32:18]process_action close_receipt done [12:32:18]requested_data is exist [12:32:18]produce_requested_data [12:32:18]requested_item fm.sn is exist - process it [12:32:18]wFMCommunicate request_size=4 [12:32:18]MH_SAM_APDU [12:32:18]CAPDU: 80 11 00 00 [12:32:18]Write to MH i2c: E2 08 00 C1 0D 80 11 00 00 00 00 00 00 48 [12:32:18]Write i2c OK [12:32:18]MH_I2C_Read... [12:32:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:18]Read from MH i2c: E2 [12:32:18]MH_I2C_Read... [12:32:18]Read from MH i2c: E2 17 00 [12:32:18]MH_I2C_Read... [12:32:18]Read from MH i2c: E2 17 00 C1 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 9E [12:32:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:32:18]wFMCommunicate OK [12:32:18]requested_item fd.num is exist - process it [12:32:18]SAM_PROTO_GetFieldsCounters [12:32:18]wFMCommunicate request_size=4 [12:32:18]MH_SAM_APDU [12:32:18]CAPDU: 80 13 00 00 [12:32:18]Write to MH i2c: E2 08 00 C2 0D 80 13 00 00 00 00 00 00 4B [12:32:18]Write i2c OK [12:32:18]MH_I2C_Read... [12:32:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:32:19]Read from MH i2c: E2 [12:32:19]MH_I2C_Read... [12:32:19]Read from MH i2c: E2 62 00 [12:32:19]MH_I2C_Read... [12:32:19]Read from MH i2c: E2 62 00 C2 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 96 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [12:32:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 96 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:32:19]wFMCommunicate OK [12:32:19]SAM_PROTO_GetFieldsCounters done [12:32:19]requested_item shift.num is exist - process it [12:32:19]requested_item shift.opened is exist - process it [12:32:19]req_shift_opened [12:32:19]FM_GetShiftState [12:32:19]SAM_PROTO_GetShiftState [12:32:19]wFMCommunicate request_size=4 [12:32:19]MH_SAM_APDU [12:32:19]CAPDU: 80 13 01 00 [12:32:19]Write to MH i2c: E2 08 00 C3 0D 80 13 01 00 00 00 00 00 4D [12:32:19]Write i2c OK [12:32:19]MH_I2C_Read... [12:32:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:19]Read from MH i2c: E2 [12:32:19]MH_I2C_Read... [12:32:19]Read from MH i2c: E2 0E 00 [12:32:19]MH_I2C_Read... [12:32:19]Read from MH i2c: E2 0E 00 C3 0D 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 26 [12:32:19]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:32:19]wFMCommunicate OK [12:32:19]SAM_PROTO_GetShiftState done [12:32:19]FM_GetShiftState done [12:32:19]req_shift_opened done [12:32:19]requested_item shift.open_date is exist - process it [12:32:19]req_shift_open_date [12:32:19]req_shift_open_date done [12:32:19]produce_requested_data done [12:32:19]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165270,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [12:32:19]process_action_free close_receipt [12:32:19]json_value_free [12:32:19]json_value_free done [12:32:19]process_json_proto returns [12:32:19]Send response to host [12:32:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165270,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [12:32:19]free response buf [12:32:19]execute_script done [12:32:19]execute_script returns [12:32:19]free content buf [12:32:19]Sock 8.Close socket [12:32:19]Sock 8.Thread stoped [12:32:19]accept exits with 9 [12:32:19]New connection [12:32:19]New thread 3066854756 created [12:32:19]Thread 3066711396 joined [12:32:19]Waiting for new connection... [12:32:19] Sock 9.Parse request [12:32:19]Sock 9.Check first char [12:32:19]Sock 9.First char is OK [12:32:19]request: POST /json_proto HTTP/1.0 [12:32:19]Method: POST [12:32:19]URL: /json_proto [12:32:19]Method is POST - this is cgi request [12:32:19]url: /json_proto [12:32:19]query_string will be loaded in cgi processing [12:32:19]execute_cgi json_proto POST (null) [12:32:19]execute_cgi path=json_proto method=POST [12:32:19]POST find Content-Length [12:32:19]Host: 172.17.56.4:8080 [12:32:19]Content-Length: 639 [12:32:19]Content-Type: application/json [12:32:19] [12:32:19]POST finish read [12:32:19]Found Content-Length = 639 [12:32:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459381", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.000, "sum" : 329.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 329.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:19]execute_script... [12:32: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)459381", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.000, "sum" : 329.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 329.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:19]POST & json_proto [12:32:19]process_json_proto [12:32:19]json parsed OK: [12:32:19]protocol is kg_v1.0 [12:32:19]action value=close_receipt [12:32:19]process_action close_receipt [12:32:19]cmd_close_receipt [12:32:19]MH_GetDate [12:32:19]Write to MH i2c: F0 00 00 C4 0D C0 [12:32:19]Write i2c OK [12:32:19]MH_I2C_Read... [12:32:19]Read from MH i2c: F0 [12:32:19]MH_I2C_Read... [12:32:19]Read from MH i2c: F0 09 00 [12:32:19]MH_I2C_Read... [12:32:19]Read from MH i2c: F0 09 00 C4 0D 00 D4 16 95 66 C9 DC B2 64 69 [12:32:19]GetLastDocTimeStamp 1721046736 [12:32:19]current date 1721046740 [12:32:19]FM_GetShiftState [12:32:19]SAM_PROTO_GetShiftState [12:32:19]wFMCommunicate request_size=4 [12:32:19]MH_SAM_APDU [12:32:19]CAPDU: 80 13 01 00 [12:32:19]Write to MH i2c: E2 08 00 C5 0D 80 13 01 00 00 00 00 00 4F [12:32:19]Write i2c OK [12:32:19]MH_I2C_Read... [12:32:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:19]Read from MH i2c: E2 [12:32:19]MH_I2C_Read... [12:32:19]Read from MH i2c: E2 0E 00 [12:32:19]MH_I2C_Read... [12:32:19]Read from MH i2c: E2 0E 00 C5 0D 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 28 [12:32:19]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:32:19]wFMCommunicate OK [12:32:19]SAM_PROTO_GetShiftState done [12:32:19]FM_GetShiftState done [12:32:19]opened in 1721003876 [12:32:19]opened+sec_in_day 1721090276 [12:32:19]quantity*price = 32900 [12:32:19]sum+1 = 32901 [12:32:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 329.00 НСП 1% : 2.91 НДС 12% : 34.94 Наличными: 329.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 144 15.07.2024 12:32 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165271 ФПД: 199520282407215 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T123220&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165271&fm=199520282407215&tin=02508201610067®Number=0000000000090829&sum=32900 [12:32:20]StoreToDocumentArchive [12:32:20]shift 448 fd 165271 [12:32:20]save to /storage/0448/doc_00165271 [12:32:20]save last doc name /storage/0448/doc_00165271 to /storage/kkm_last_doc_name [12:32:20]save OK [12:32:20]Clear old archive folders... [12:32:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:32:20]tlvbuf is 01886120 [12:32:20]SAM_PROTO_ClearQueue [12:32:20]wFMCommunicate request_size=4 [12:32:20]MH_SAM_APDU [12:32:20]CAPDU: 80 09 00 00 [12:32:20]Write to MH i2c: E2 08 00 D2 0D 80 09 00 00 00 00 00 00 51 [12:32:20]Write i2c OK [12:32:20]MH_I2C_Read... [12:32:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:32:20]Read from MH i2c: E2 [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: E2 03 00 [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: E2 03 00 D2 0D 00 90 00 53 [12:32:20]RAPDU: 90 00 [12:32:20]wFMCommunicate OK [12:32:20]SAM_PROTO_ClearQueue done [12:32:20]KKMCreateOFDPacket [12:32:20]OFDProtocolAddRootSTLVToBuf [12:32:20]FM_MakeSignedData [12:32:20]FM_MakeSignedData [12:32:20]SAM_PROTO_SignData [12:32:20]wFMCommunicate request_size=4 [12:32:20]MH_SAM_APDU [12:32:20]CAPDU: 80 0D 01 02 [12:32:20]Write to MH i2c: E2 08 00 D3 0D 80 0D 01 02 00 00 00 00 59 [12:32:20]Write i2c OK [12:32:20]MH_I2C_Read... [12:32:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:32:21]Read from MH i2c: E2 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: E2 03 00 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: E2 03 00 D3 0D 00 90 00 54 [12:32:21]RAPDU: 90 00 [12:32:21]wFMCommunicate OK [12:32:21]wFMCommunicate request_size=255 [12:32:21]MH_SAM_APDU [12:32:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 84 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 84 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 D4 16 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 97 85 02 00 35 04 06 00 B5 [12:32:21]Write to MH i2c: E2 02 01 D4 0D 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 88 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 84 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 84 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 D4 16 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 97 85 02 00 35 04 06 00 B5 00 00 BD [12:32:21]Write i2c OK [12:32:21]MH_I2C_Read... [12:32:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:21]Read from MH i2c: E2 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: E2 03 00 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: E2 03 00 D4 0D 00 90 00 55 [12:32:21]RAPDU: 90 00 [12:32:21]wFMCommunicate OK [12:32:21]wFMCommunicate request_size=10 [12:32:21]MH_SAM_APDU [12:32:21]CAPDU: 80 0D 02 02 05 76 6F 8E F1 2F [12:32:21]Write to MH i2c: E2 0D 00 D5 0D 80 0D 02 02 05 00 76 6F 8E F1 2F 00 00 F9 [12:32:21]Write i2c OK [12:32:21]MH_I2C_Read... [12:32:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:21]Read from MH i2c: E2 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: E2 03 00 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: E2 03 00 D5 0D 00 90 00 56 [12:32:21]RAPDU: 90 00 [12:32:21]wFMCommunicate OK [12:32:21]wFMCommunicate request_size=4 [12:32:21]MH_SAM_APDU [12:32:21]CAPDU: 80 0D 03 02 [12:32:21]Write to MH i2c: E2 08 00 D6 0D 80 0D 03 02 00 00 00 00 5E [12:32:21]Write i2c OK [12:32:21]MH_I2C_Read... [12:32:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:32:21]Read from MH i2c: E2 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: E2 0B 00 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: E2 0B 00 D6 0D 00 FD 70 66 A5 14 0F 07 5B 90 00 5C [12:32:21]RAPDU: FD 70 66 A5 14 0F 07 5B 90 00 [12:32:21]wFMCommunicate OK [12:32:21]SAM_PROTO_SignData done [12:32:21]FM_MakeSignedData done [12:32:21]CreateOFDProtocolMessage [12:32:21]wFMCommunicate request_size=4 [12:32:21]MH_SAM_APDU [12:32:21]CAPDU: 80 11 00 00 [12:32:21]Write to MH i2c: E2 08 00 D7 0D 80 11 00 00 00 00 00 00 5E [12:32:21]Write i2c OK [12:32:21]MH_I2C_Read... [12:32:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:21]Read from MH i2c: E2 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: E2 17 00 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: E2 17 00 D7 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B4 [12:32:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:32:21]wFMCommunicate OK [12:32:21]CreateOFDProtocolMessage done [12:32:21]OFDSenderStorePacket 165271 [12:32:21]StoreOFDPacket docnum=165271 [12:32:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 DD 5A 07 01 46 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 88 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 84 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 84 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 D4 16 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 97 85 02 00 35 04 06 00 B5 76 6F 8E F1 2F FD 70 66 A5 14 0F 07 5B [12:32:21]CheckFolder [12:32:21]dirname=/storage/ofd_packets [12:32:21]CheckFolder done [12:32:21]ProducePacketName [12:32:21]name=ofd_packets/00165271 [12:32:21]NVStorageSaveData ofd_packets/00165271 [12:32:21]File name is /storage/ofd_packets/00165271 [12:32:21]Write 301 bytes [12:32:21]NVStorageSaveData done [12:32:21]OFDSenderStorePacket done [12:32:21]KKMCreateOFDPacket done [12:32:21]NVStorageSaveData kkm_last_timestamp [12:32:21]File name is /storage/kkm_last_timestamp [12:32:21]Write 4 bytes [12:32:21]NVStorageSaveData done [12:32:21]ExternCall_PrintAddStr [12:32:21]wPrintStart [12:32:21]Write to MH i2c: 01 00 00 D8 0D E5 [12:32:21]Write i2c OK [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: 01 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: 01 07 00 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: 01 07 00 D8 0D 00 00 00 00 00 FF 0F FA [12:32:21]RasterBufferAndPrint [12:32:21]line Счет N : (1)459381 [12:32:21]line ИНН: 02508201610067 [12:32:21]line Контрольно-Кассовый Чек [12:32:21]line ПРОДАЖА [12:32:21]line ТРК (МРК, ГНК) : 22 [12:32:21]line Товар: 2710124130 [12:32:21]line Аи-92-К-5 [12:32:21]line 5.000 * 65.80 [12:32:21]line = 329.00 [12:32:21]line НДС 12% НСП 1% [12:32:21]line > о реализуемом товаре [12:32:21]line ИТОГО: 329.00 [12:32:21]line НСП 1% : 2.91 [12:32:21]line НДС 12% : 34.94 [12:32:21]line Наличными: 329.00 [12:32:21]line Безнал.: 0.00 [12:32:21]line Место: АЗС № 72 "Партнер Нефть" [12:32:21]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:32:21]line СНО: Общий режим [12:32:21]line Чек 144 15.07.2024 12:32 [12:32:21]line Смена: 448 ФФД: 1.0 [12:32:21]line ЗНМ: 0300000160 [12:32:21]line РНМ: 0000000000090829 [12:32:21]line Версия ККМ: 001 [12:32:21]line ФМ: 0000000000874718 [12:32:21]line ФД: 165271 [12:32:21]line ФПД: 199520282407215 [12:32:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T123220&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165271&fm=199520282407215&tin=02508201610067®Number=0000000000090829&sum=32900 [12:32:21]written 0, free lines is 4095 [12:32:21]OFD Sender: Processing packet 165271 [packets to send 106, broken 105] [12:32:21]ProducePacketName [12:32:21]name=ofd_packets/00165271 [12:32:21]OFD Sender: To server: pG, [12:32:21]CommunicateWithHost lk.salyk.kg:30040 [12:32:21]ConnectInit lk.salyk.kg [12:32:21]Connected sock=11 [12:32: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 37 31 38 0F 01 00 00 DD 5A 07 01 46 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 88 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 84 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 84 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 D4 16 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 97 85 02 00 35 04 06 00 B5 76 6F 8E F1 2F FD 70 66 A5 14 0F 07 5B [12:32:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 25 52 47 00 16 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 97 85 02 00 F4 03 04 00 5E BD 94 66 B6 04 01 00 00 1E 75 10 FA D2 BA 7B 59 [12:32:21]CommunicateWithHost err = 0 [12:32:21]CheckOFDResponse [12:32:21]1017 (14) - 77093643461234 [12:32:21]1041 (16) - 0000000000874718 [12:32:21]1040 (4) - 165271 [12:32:21]1012 (4) - 15.07.2024 06:10 [12:32:21]1206 (1) - 0 [12:32:21]OFD Sender: Remove packet 165271 [12:32:21]ProducePacketName [12:32:21]name=ofd_packets/00165271 [12:32:21]NVStorageDeleteData [12:32:21]Write to MH i2c: 01 00 00 FF 0D 0C [12:32:21]Write i2c OK [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: 01 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: 01 07 00 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: 01 07 00 FF 0D 00 00 00 00 00 2A 0D 4A [12:32:21]RasterBufferAndPrint [12:32:21]line [12:32:21]line [12:32:21]line [12:32:21]line [12:32:21]line [12:32:21]written 0, free lines is 3379 [12:32:21]MH_Cut [12:32:21]Write to MH i2c: D1 01 00 06 0E 01 E6 [12:32:21]Write i2c OK [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: D1 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: D1 01 00 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: D1 01 00 06 0E 00 E5 [12:32:21]Write to MH i2c: 01 00 00 07 0E 15 [12:32:21]Write i2c OK [12:32:21]MH_I2C_Read... [12:32:22]OFD Sender: No OFD packet to send [12:32:22]*** Cut start [12:32:22]*** Partial cut [12:32:22]*** CUTSNS_PIN = 1 [12:32:22]*** CUTSNS_PIN = 0 [12:32:22]*** Brake cut motor [12:32:23]Read from MH i2c: 01 [12:32:23]MH_I2C_Read... [12:32:23]*** Stop cut motor [12:32:23]*** Cut end [12:32:23]Read from MH i2c: 01 07 00 [12:32:23]MH_I2C_Read... [12:32:23]Read from MH i2c: 01 07 00 07 0E 00 00 00 00 00 FF 0F 2A [12:32:23]process_action close_receipt done [12:32:23]requested_data is exist [12:32:23]produce_requested_data [12:32:23]requested_item fm.sn is exist - process it [12:32:23]wFMCommunicate request_size=4 [12:32:23]MH_SAM_APDU [12:32:23]CAPDU: 80 11 00 00 [12:32:23]Write to MH i2c: E2 08 00 08 0E 80 11 00 00 00 00 00 00 90 [12:32:23]Write i2c OK [12:32:23]MH_I2C_Read... [12:32:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:23]Read from MH i2c: E2 [12:32:23]MH_I2C_Read... [12:32:23]Read from MH i2c: E2 17 00 [12:32:23]MH_I2C_Read... [12:32:23]Read from MH i2c: E2 17 00 08 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E6 [12:32:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:32:23]wFMCommunicate OK [12:32:23]requested_item fd.num is exist - process it [12:32:23]SAM_PROTO_GetFieldsCounters [12:32:23]wFMCommunicate request_size=4 [12:32:23]MH_SAM_APDU [12:32:23]CAPDU: 80 13 00 00 [12:32:23]Write to MH i2c: E2 08 00 09 0E 80 13 00 00 00 00 00 00 93 [12:32:23]Write i2c OK [12:32:23]MH_I2C_Read... [12:32:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:32:23]Read from MH i2c: E2 [12:32:23]MH_I2C_Read... [12:32:23]Read from MH i2c: E2 62 00 [12:32:23]MH_I2C_Read... [12:32:23]Read from MH i2c: E2 62 00 09 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 97 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [12:32:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 97 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:32:23]wFMCommunicate OK [12:32:23]SAM_PROTO_GetFieldsCounters done [12:32:23]requested_item shift.num is exist - process it [12:32:23]requested_item shift.opened is exist - process it [12:32:23]req_shift_opened [12:32:23]FM_GetShiftState [12:32:23]SAM_PROTO_GetShiftState [12:32:23]wFMCommunicate request_size=4 [12:32:23]MH_SAM_APDU [12:32:23]CAPDU: 80 13 01 00 [12:32:23]Write to MH i2c: E2 08 00 0A 0E 80 13 01 00 00 00 00 00 95 [12:32:23]Write i2c OK [12:32:23]MH_I2C_Read... [12:32:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:23]Read from MH i2c: E2 [12:32:23]MH_I2C_Read... [12:32:23]Read from MH i2c: E2 0E 00 [12:32:23]MH_I2C_Read... [12:32:23]Read from MH i2c: E2 0E 00 0A 0E 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 6E [12:32:23]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:32:23]wFMCommunicate OK [12:32:23]SAM_PROTO_GetShiftState done [12:32:23]FM_GetShiftState done [12:32:23]req_shift_opened done [12:32:23]requested_item shift.open_date is exist - process it [12:32:23]req_shift_open_date [12:32:23]req_shift_open_date done [12:32:23]produce_requested_data done [12:32:23]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165271,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [12:32:23]process_action_free close_receipt [12:32:23]json_value_free [12:32:23]json_value_free done [12:32:23]process_json_proto returns [12:32:23]Send response to host [12:32:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165271,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [12:32:23]free response buf [12:32:23]execute_script done [12:32:23]execute_script returns [12:32:23]free content buf [12:32:23]Sock 9.Close socket [12:32:23]Sock 9.Thread stoped [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:23]accept exits with 8 [12:33:23]New connection [12:33:23]New thread 3066711396 created [12:33:23]Thread 3066854756 joined [12:33:23]Waiting for new connection... [12:33:23] Sock 8.Parse request [12:33:23]Sock 8.Check first char [12:33:23]Sock 8.First char is OK [12:33:23]request: POST /json_proto HTTP/1.0 [12:33:23]Method: POST [12:33:23]URL: /json_proto [12:33:23]Method is POST - this is cgi request [12:33:23]url: /json_proto [12:33:23]query_string will be loaded in cgi processing [12:33:23]execute_cgi json_proto POST (null) [12:33:23]execute_cgi path=json_proto method=POST [12:33:23]POST find Content-Length [12:33:23]Host: 172.17.56.4:8080 [12:33:23]Content-Length: 679 [12:33:23]Content-Type: application/json [12:33:23] [12:33:23]POST finish read [12:33:23]Found Content-Length = 679 [12:33:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459382", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 22.260, "sum" : 1600.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:23]execute_script... [12:33:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459382", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 22.260, "sum" : 1600.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:23]POST & json_proto [12:33:23]process_json_proto [12:33:23]json parsed OK: [12:33:23]protocol is kg_v1.0 [12:33:23]action value=close_receipt [12:33:23]process_action close_receipt [12:33:23]cmd_close_receipt [12:33:23]MH_GetDate [12:33:23]Write to MH i2c: F0 00 00 0B 0E 08 [12:33:23]Write i2c OK [12:33:23]MH_I2C_Read... [12:33:23]Read from MH i2c: F0 [12:33:23]MH_I2C_Read... [12:33:23]Read from MH i2c: F0 09 00 [12:33:23]MH_I2C_Read... [12:33:23]Read from MH i2c: F0 09 00 0B 0E 00 14 17 95 66 C9 DC B2 64 F2 [12:33:23]GetLastDocTimeStamp 1721046740 [12:33:23]current date 1721046804 [12:33:23]FM_GetShiftState [12:33:23]SAM_PROTO_GetShiftState [12:33:23]wFMCommunicate request_size=4 [12:33:23]MH_SAM_APDU [12:33:23]CAPDU: 80 13 01 00 [12:33:23]Write to MH i2c: E2 08 00 0C 0E 80 13 01 00 00 00 00 00 97 [12:33:23]Write i2c OK [12:33:23]MH_I2C_Read... [12:33:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:23]Read from MH i2c: E2 [12:33:23]MH_I2C_Read... [12:33:23]Read from MH i2c: E2 0E 00 [12:33:23]MH_I2C_Read... [12:33:23]Read from MH i2c: E2 0E 00 0C 0E 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 70 [12:33:23]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:33:23]wFMCommunicate OK [12:33:23]SAM_PROTO_GetShiftState done [12:33:23]FM_GetShiftState done [12:33:23]opened in 1721003876 [12:33:23]opened+sec_in_day 1721090276 [12:33:23]quantity*price = 160049 [12:33:23]sum+1 = 160050 [12:33:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.96 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 145 15.07.2024 12:33 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165272 ФПД: 80889894946722 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T123324&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165272&fm=80889894946722&tin=02508201610067®Number=0000000000090829&sum=160000 [12:33:24]StoreToDocumentArchive [12:33:24]shift 448 fd 165272 [12:33:24]save to /storage/0448/doc_00165272 [12:33:24]save last doc name /storage/0448/doc_00165272 to /storage/kkm_last_doc_name [12:33:24]save OK [12:33:24]Clear old archive folders... [12:33:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:33:24]tlvbuf is 017F78D0 [12:33:24]SAM_PROTO_ClearQueue [12:33:24]wFMCommunicate request_size=4 [12:33:24]MH_SAM_APDU [12:33:24]CAPDU: 80 09 00 00 [12:33:24]Write to MH i2c: E2 08 00 19 0E 80 09 00 00 00 00 00 00 99 [12:33:24]Write i2c OK [12:33:24]MH_I2C_Read... [12:33:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:33:24]Read from MH i2c: E2 [12:33:24]MH_I2C_Read... [12:33:24]Read from MH i2c: E2 03 00 [12:33:24]MH_I2C_Read... [12:33:24]Read from MH i2c: E2 03 00 19 0E 00 90 00 9B [12:33:24]RAPDU: 90 00 [12:33:24]wFMCommunicate OK [12:33:24]SAM_PROTO_ClearQueue done [12:33:24]KKMCreateOFDPacket [12:33:24]OFDProtocolAddRootSTLVToBuf [12:33:24]FM_MakeSignedData [12:33:24]FM_MakeSignedData [12:33:24]SAM_PROTO_SignData [12:33:24]wFMCommunicate request_size=4 [12:33:24]MH_SAM_APDU [12:33:24]CAPDU: 80 0D 01 02 [12:33:24]Write to MH i2c: E2 08 00 1A 0E 80 0D 01 02 00 00 00 00 A1 [12:33:24]Write i2c OK [12:33:24]MH_I2C_Read... [12:33:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:33:24]Read from MH i2c: E2 [12:33:24]MH_I2C_Read... [12:33:24]Read from MH i2c: E2 03 00 [12:33:24]MH_I2C_Read... [12:33:24]Read from MH i2c: E2 03 00 1A 0E 00 90 00 9C [12:33:24]RAPDU: 90 00 [12:33:24]wFMCommunicate OK [12:33:24]wFMCommunicate request_size=255 [12:33:24]MH_SAM_APDU [12:33:24]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 56 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 31 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 14 17 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 98 85 02 00 35 04 06 00 49 91 A5 74 [12:33:24]Write to MH i2c: E2 02 01 1B 0E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 56 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 31 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 14 17 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 98 85 02 00 35 04 06 00 49 91 A5 74 00 00 C7 [12:33:24]Write i2c OK [12:33:24]MH_I2C_Read... [12:33:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:24]Read from MH i2c: E2 [12:33:24]MH_I2C_Read... [12:33:24]Read from MH i2c: E2 03 00 [12:33:24]MH_I2C_Read... [12:33:24]Read from MH i2c: E2 03 00 1B 0E 00 90 00 9D [12:33:24]RAPDU: 90 00 [12:33:24]wFMCommunicate OK [12:33:24]wFMCommunicate request_size=7 [12:33:24]MH_SAM_APDU [12:33:24]CAPDU: 80 0D 02 02 02 47 A2 [12:33:24]Write to MH i2c: E2 0A 00 1C 0E 80 0D 02 02 02 00 47 A2 00 00 91 [12:33:24]Write i2c OK [12:33:24]MH_I2C_Read... [12:33:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:24]Read from MH i2c: E2 [12:33:24]MH_I2C_Read... [12:33:24]Read from MH i2c: E2 03 00 [12:33:24]MH_I2C_Read... [12:33:24]Read from MH i2c: E2 03 00 1C 0E 00 90 00 9E [12:33:24]RAPDU: 90 00 [12:33:24]wFMCommunicate OK [12:33:24]wFMCommunicate request_size=4 [12:33:24]MH_SAM_APDU [12:33:24]CAPDU: 80 0D 03 02 [12:33:24]Write to MH i2c: E2 08 00 1D 0E 80 0D 03 02 00 00 00 00 A6 [12:33:24]Write i2c OK [12:33:24]MH_I2C_Read... [12:33:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:33:24]Read from MH i2c: E2 [12:33:24]MH_I2C_Read... [12:33:24]Read from MH i2c: E2 0B 00 [12:33:24]MH_I2C_Read... [12:33:24]Read from MH i2c: E2 0B 00 1D 0E 00 EB 38 B9 22 99 0D 3F DB 90 00 65 [12:33:24]RAPDU: EB 38 B9 22 99 0D 3F DB 90 00 [12:33:24]wFMCommunicate OK [12:33:24]SAM_PROTO_SignData done [12:33:24]FM_MakeSignedData done [12:33:24]CreateOFDProtocolMessage [12:33:24]wFMCommunicate request_size=4 [12:33:24]MH_SAM_APDU [12:33:24]CAPDU: 80 11 00 00 [12:33:24]Write to MH i2c: E2 08 00 1E 0E 80 11 00 00 00 00 00 00 A6 [12:33:24]Write i2c OK [12:33:24]MH_I2C_Read... [12:33:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:24]Read from MH i2c: E2 [12:33:24]MH_I2C_Read... [12:33:24]Read from MH i2c: E2 17 00 [12:33:24]MH_I2C_Read... [12:33:24]Read from MH i2c: E2 17 00 1E 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FC [12:33:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:33:24]wFMCommunicate OK [12:33:24]CreateOFDProtocolMessage done [12:33:24]OFDSenderStorePacket 165272 [12:33:24]StoreOFDPacket docnum=165272 [12:33:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 EA 46 04 01 D0 D1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 56 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 31 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 14 17 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 98 85 02 00 35 04 06 00 49 91 A5 74 47 A2 EB 38 B9 22 99 0D 3F DB [12:33:24]CheckFolder [12:33:24]dirname=/storage/ofd_packets [12:33:24]CheckFolder done [12:33:24]ProducePacketName [12:33:24]name=ofd_packets/00165272 [12:33:24]NVStorageSaveData ofd_packets/00165272 [12:33:24]File name is /storage/ofd_packets/00165272 [12:33:24]Write 298 bytes [12:33:24]NVStorageSaveData done [12:33:24]OFDSenderStorePacket done [12:33:24]KKMCreateOFDPacket done [12:33:24]NVStorageSaveData kkm_last_timestamp [12:33:24]File name is /storage/kkm_last_timestamp [12:33:24]Write 4 bytes [12:33:24]NVStorageSaveData done [12:33:24]ExternCall_PrintAddStr [12:33:24]wPrintStart [12:33:24]Write to MH i2c: 01 00 00 1F 0E 2D [12:33:24]Write i2c OK [12:33:24]MH_I2C_Read... [12:33:24]Read from MH i2c: 01 [12:33:24]MH_I2C_Read... [12:33:24]Read from MH i2c: 01 07 00 [12:33:24]MH_I2C_Read... [12:33:24]Read from MH i2c: 01 07 00 1F 0E 00 00 00 00 00 FF 0F 42 [12:33:24]RasterBufferAndPrint [12:33:24]line Счет N : (1)459382 [12:33:24]line ИНН: 02508201610067 [12:33:24]line Контрольно-Кассовый Чек [12:33:24]line ПРОДАЖА [12:33:24]line ТРК (МРК, ГНК) : 11 [12:33:24]line Товар: 2710194210 [12:33:24]line ДТ-К-5 [12:33:24]line 22.260 * 71.90 [12:33:24]line = 1600.49 [12:33:24]line НДС 12% НСП 1% [12:33:24]line > о реализуемом товаре [12:33:24]line ОКРУГЛЕНИЕ: -0.49 [12:33:24]line ИТОГО: 1600.00 [12:33:24]line Внесено: 1600.00 [12:33:24]line СДАЧА: 0.00 [12:33:24]line НСП 1% : 14.16 [12:33:24]line НДС 12% : 169.96 [12:33:24]line Наличными: 1600.00 [12:33:24]line Безнал.: 0.00 [12:33:24]line Место: АЗС № 72 "Партнер Нефть" [12:33:24]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:33:24]line СНО: Общий режим [12:33:24]line Чек 145 15.07.2024 12:33 [12:33:24]line Смена: 448 ФФД: 1.0 [12:33:24]line ЗНМ: 0300000160 [12:33:24]line РНМ: 0000000000090829 [12:33:24]line Версия ККМ: 001 [12:33:24]line ФМ: 0000000000874718 [12:33:24]line ФД: 165272 [12:33:24]line ФПД: 80889894946722 [12:33:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T123324&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165272&fm=80889894946722&tin=02508201610067®Number=0000000000090829&sum=160000 [12:33:25]OFD Sender: Processing packet 165272 [packets to send 106, broken 105] [12:33:25]ProducePacketName [12:33:25]name=ofd_packets/00165272 [12:33:25]OFD Sender: To server: pG, [12:33:25]CommunicateWithHost lk.salyk.kg:30040 [12:33:25]ConnectInit lk.salyk.kg [12:33:25]written 0, free lines is 4095 [12:33:25]Connected sock=10 [12:33:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 EA 46 04 01 D0 D1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 56 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 31 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 14 17 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 98 85 02 00 35 04 06 00 49 91 A5 74 47 A2 EB 38 B9 22 99 0D 3F DB [12:33:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 3F 99 47 00 6E 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 98 85 02 00 F4 03 04 00 9E BD 94 66 B6 04 01 00 00 EB CE B1 6C 33 9E BC 74 [12:33:25]CommunicateWithHost err = 0 [12:33:25]CheckOFDResponse [12:33:25]1017 (14) - 77093643461234 [12:33:25]1041 (16) - 0000000000874718 [12:33:25]1040 (4) - 165272 [12:33:25]1012 (4) - 15.07.2024 06:11 [12:33:25]1206 (1) - 0 [12:33:25]OFD Sender: Remove packet 165272 [12:33:25]ProducePacketName [12:33:25]name=ofd_packets/00165272 [12:33:25]NVStorageDeleteData [12:33:25]Write to MH i2c: 01 00 00 49 0E 57 [12:33:25]Write i2c OK [12:33:25]MH_I2C_Read... [12:33:25]Read from MH i2c: 01 [12:33:25]MH_I2C_Read... [12:33:25]Read from MH i2c: 01 07 00 [12:33:25]MH_I2C_Read... [12:33:25]Read from MH i2c: 01 07 00 49 0E 00 00 00 00 00 F2 0C 5C [12:33:25]RasterBufferAndPrint [12:33:25]line [12:33:25]line [12:33:25]line [12:33:25]line [12:33:25]line [12:33:25]written 0, free lines is 3322 [12:33:25]MH_Cut [12:33:25]Write to MH i2c: D1 01 00 50 0E 01 30 [12:33:25]Write i2c OK [12:33:25]MH_I2C_Read... [12:33:25]Read from MH i2c: D1 [12:33:25]MH_I2C_Read... [12:33:25]Read from MH i2c: D1 01 00 [12:33:25]MH_I2C_Read... [12:33:25]Read from MH i2c: D1 01 00 50 0E 00 2F [12:33:25]Write to MH i2c: 01 00 00 51 0E 5F [12:33:25]Write i2c OK [12:33:25]MH_I2C_Read... [12:33:26]OFD Sender: No OFD packet to send [12:33:26]*** Cut start [12:33:26]*** Partial cut [12:33:26]*** CUTSNS_PIN = 1 [12:33:26]*** CUTSNS_PIN = 0 [12:33:26]*** Brake cut motor [12:33:26]Read from MH i2c: 01 [12:33:26]MH_I2C_Read... [12:33:26]*** Stop cut motor [12:33:27]*** Cut end [12:33:27]Read from MH i2c: 01 07 00 [12:33:27]MH_I2C_Read... [12:33:27]Read from MH i2c: 01 07 00 51 0E 00 00 00 00 00 FF 0F 74 [12:33:27]process_action close_receipt done [12:33:27]requested_data is exist [12:33:27]produce_requested_data [12:33:27]requested_item fm.sn is exist - process it [12:33:27]wFMCommunicate request_size=4 [12:33:27]MH_SAM_APDU [12:33:27]CAPDU: 80 11 00 00 [12:33:27]Write to MH i2c: E2 08 00 52 0E 80 11 00 00 00 00 00 00 DA [12:33:27]Write i2c OK [12:33:27]MH_I2C_Read... [12:33:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:27]Read from MH i2c: E2 [12:33:27]MH_I2C_Read... [12:33:27]Read from MH i2c: E2 17 00 [12:33:27]MH_I2C_Read... [12:33:27]Read from MH i2c: E2 17 00 52 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 30 [12:33:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:33:27]wFMCommunicate OK [12:33:27]requested_item fd.num is exist - process it [12:33:27]SAM_PROTO_GetFieldsCounters [12:33:27]wFMCommunicate request_size=4 [12:33:27]MH_SAM_APDU [12:33:27]CAPDU: 80 13 00 00 [12:33:27]Write to MH i2c: E2 08 00 53 0E 80 13 00 00 00 00 00 00 DD [12:33:27]Write i2c OK [12:33:27]MH_I2C_Read... [12:33:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:33:27]Read from MH i2c: E2 [12:33:27]MH_I2C_Read... [12:33:27]Read from MH i2c: E2 62 00 [12:33:27]MH_I2C_Read... [12:33:27]Read from MH i2c: E2 62 00 53 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 98 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [12:33:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 98 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:33:27]wFMCommunicate OK [12:33:27]SAM_PROTO_GetFieldsCounters done [12:33:27]requested_item shift.num is exist - process it [12:33:27]requested_item shift.opened is exist - process it [12:33:27]req_shift_opened [12:33:27]FM_GetShiftState [12:33:27]SAM_PROTO_GetShiftState [12:33:27]wFMCommunicate request_size=4 [12:33:27]MH_SAM_APDU [12:33:27]CAPDU: 80 13 01 00 [12:33:27]Write to MH i2c: E2 08 00 54 0E 80 13 01 00 00 00 00 00 DF [12:33:27]Write i2c OK [12:33:27]MH_I2C_Read... [12:33:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:27]Read from MH i2c: E2 [12:33:27]MH_I2C_Read... [12:33:27]Read from MH i2c: E2 0E 00 [12:33:27]MH_I2C_Read... [12:33:27]Read from MH i2c: E2 0E 00 54 0E 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 B8 [12:33:27]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:33:27]wFMCommunicate OK [12:33:27]SAM_PROTO_GetShiftState done [12:33:27]FM_GetShiftState done [12:33:27]req_shift_opened done [12:33:27]requested_item shift.open_date is exist - process it [12:33:27]req_shift_open_date [12:33:27]req_shift_open_date done [12:33:27]produce_requested_data done [12:33:27]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165272,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [12:33:27]process_action_free close_receipt [12:33:27]json_value_free [12:33:27]json_value_free done [12:33:27]process_json_proto returns [12:33:27]Send response to host [12:33:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165272,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [12:33:27]free response buf [12:33:27]execute_script done [12:33:27]execute_script returns [12:33:27]free content buf [12:33:27]Sock 8.Close socket [12:33:27]Sock 8.Thread stoped [12:33:31]OFD Sender: No OFD packet to send [12:33:36]OFD Sender: No OFD packet to send [12:33:41]OFD Sender: No OFD packet to send [12:33:46]OFD Sender: No OFD packet to send [12:33:51]OFD Sender: No OFD packet to send [12:33:56]OFD Sender: No OFD packet to send [12:34:01]OFD Sender: No OFD packet to send [12:34:06]OFD Sender: No OFD packet to send [12:34:11]OFD Sender: No OFD packet to send [12:34:16]OFD Sender: No OFD packet to send [12:34:21]OFD Sender: No OFD packet to send [12:34:26]OFD Sender: No OFD packet to send [12:34:31]OFD Sender: No OFD packet to send [12:34:36]OFD Sender: No OFD packet to send [12:34:41]OFD Sender: No OFD packet to send [12:34:46]OFD Sender: No OFD packet to send [12:34:51]OFD Sender: No OFD packet to send [12:34:56]OFD Sender: No OFD packet to send [12:34:56]accept exits with 9 [12:34:56]New connection [12:34:56]New thread 3066854756 created [12:34:56]Thread 3066711396 joined [12:34:56]Waiting for new connection... [12:34:56] Sock 9.Parse request [12:34:56]Sock 9.Check first char [12:34:56]Sock 9.First char is OK [12:34:56]request: POST /json_proto HTTP/1.0 [12:34:56]Method: POST [12:34:56]URL: /json_proto [12:34:56]Method is POST - this is cgi request [12:34:56]url: /json_proto [12:34:56]query_string will be loaded in cgi processing [12:34:56]execute_cgi json_proto POST (null) [12:34:56]execute_cgi path=json_proto method=POST [12:34:56]POST find Content-Length [12:34:56]Host: 172.17.56.4:8080 [12:34:56]Content-Length: 677 [12:34:56]Content-Type: application/json [12:34:56] [12:34:56]POST finish read [12:34:56]Found Content-Length = 677 [12:34:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459383", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:56]execute_script... [12:34: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)459383", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:56]POST & json_proto [12:34:56]process_json_proto [12:34:56]json parsed OK: [12:34:56]protocol is kg_v1.0 [12:34:56]action value=close_receipt [12:34:56]process_action close_receipt [12:34:56]cmd_close_receipt [12:34:56]MH_GetDate [12:34:56]Write to MH i2c: F0 00 00 55 0E 52 [12:34:56]Write i2c OK [12:34:56]MH_I2C_Read... [12:34:56]Read from MH i2c: F0 [12:34:56]MH_I2C_Read... [12:34:56]Read from MH i2c: F0 09 00 [12:34:56]MH_I2C_Read... [12:34:56]Read from MH i2c: F0 09 00 55 0E 00 71 17 95 66 C9 DC B2 64 99 [12:34:56]GetLastDocTimeStamp 1721046804 [12:34:56]current date 1721046897 [12:34:56]FM_GetShiftState [12:34:56]SAM_PROTO_GetShiftState [12:34:56]wFMCommunicate request_size=4 [12:34:56]MH_SAM_APDU [12:34:56]CAPDU: 80 13 01 00 [12:34:56]Write to MH i2c: E2 08 00 56 0E 80 13 01 00 00 00 00 00 E1 [12:34:56]Write i2c OK [12:34:56]MH_I2C_Read... [12:34:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:56]Read from MH i2c: E2 [12:34:56]MH_I2C_Read... [12:34:56]Read from MH i2c: E2 0E 00 [12:34:56]MH_I2C_Read... [12:34:56]Read from MH i2c: E2 0E 00 56 0E 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 BA [12:34:56]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:34:56]wFMCommunicate OK [12:34:56]SAM_PROTO_GetShiftState done [12:34:56]FM_GetShiftState done [12:34:56]opened in 1721003876 [12:34:56]opened+sec_in_day 1721090276 [12:34:56]quantity*price = 40006 [12:34:56]sum+1 = 40007 [12:34:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 146 15.07.2024 12:34 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165273 ФПД: 209080581001959 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T123457&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165273&fm=209080581001959&tin=02508201610067®Number=0000000000090829&sum=40000 [12:34:58]StoreToDocumentArchive [12:34:58]shift 448 fd 165273 [12:34:58]save to /storage/0448/doc_00165273 [12:34:58]save last doc name /storage/0448/doc_00165273 to /storage/kkm_last_doc_name [12:34:58]save OK [12:34:58]Clear old archive folders... [12:34:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:34:58]tlvbuf is 01847980 [12:34:58]SAM_PROTO_ClearQueue [12:34:58]wFMCommunicate request_size=4 [12:34:58]MH_SAM_APDU [12:34:58]CAPDU: 80 09 00 00 [12:34:58]Write to MH i2c: E2 08 00 63 0E 80 09 00 00 00 00 00 00 E3 [12:34:58]Write i2c OK [12:34:58]MH_I2C_Read... [12:34:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:34:58]Read from MH i2c: E2 [12:34:58]MH_I2C_Read... [12:34:58]Read from MH i2c: E2 03 00 [12:34:58]MH_I2C_Read... [12:34:58]Read from MH i2c: E2 03 00 63 0E 00 90 00 E5 [12:34:58]RAPDU: 90 00 [12:34:58]wFMCommunicate OK [12:34:58]SAM_PROTO_ClearQueue done [12:34:58]KKMCreateOFDPacket [12:34:58]OFDProtocolAddRootSTLVToBuf [12:34:58]FM_MakeSignedData [12:34:58]FM_MakeSignedData [12:34:58]SAM_PROTO_SignData [12:34:58]wFMCommunicate request_size=4 [12:34:58]MH_SAM_APDU [12:34:58]CAPDU: 80 0D 01 02 [12:34:58]Write to MH i2c: E2 08 00 64 0E 80 0D 01 02 00 00 00 00 EB [12:34:58]Write i2c OK [12:34:58]MH_I2C_Read... [12:34:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:34:58]Read from MH i2c: E2 [12:34:58]MH_I2C_Read... [12:34:58]Read from MH i2c: E2 03 00 [12:34:58]MH_I2C_Read... [12:34:58]Read from MH i2c: E2 03 00 64 0E 00 90 00 E6 [12:34:58]RAPDU: 90 00 [12:34:58]wFMCommunicate OK [12:34:58]wFMCommunicate request_size=255 [12:34:58]MH_SAM_APDU [12:34:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 71 17 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 99 85 02 00 35 04 06 00 BE [12:34:58]Write to MH i2c: E2 02 01 65 0E 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 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 71 17 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 99 85 02 00 35 04 06 00 BE 00 00 F8 [12:34:58]Write i2c OK [12:34:58]MH_I2C_Read... [12:34:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:58]Read from MH i2c: E2 [12:34:58]MH_I2C_Read... [12:34:58]Read from MH i2c: E2 03 00 [12:34:58]MH_I2C_Read... [12:34:58]Read from MH i2c: E2 03 00 65 0E 00 90 00 E7 [12:34:58]RAPDU: 90 00 [12:34:58]wFMCommunicate OK [12:34:58]wFMCommunicate request_size=10 [12:34:58]MH_SAM_APDU [12:34:58]CAPDU: 80 0D 02 02 05 28 5D C2 92 E7 [12:34:58]Write to MH i2c: E2 0D 00 66 0E 80 0D 02 02 05 00 28 5D C2 92 E7 00 00 B8 [12:34:58]Write i2c OK [12:34:58]MH_I2C_Read... [12:34:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:58]Read from MH i2c: E2 [12:34:58]MH_I2C_Read... [12:34:58]Read from MH i2c: E2 03 00 [12:34:58]MH_I2C_Read... [12:34:58]Read from MH i2c: E2 03 00 66 0E 00 90 00 E8 [12:34:58]RAPDU: 90 00 [12:34:58]wFMCommunicate OK [12:34:58]wFMCommunicate request_size=4 [12:34:58]MH_SAM_APDU [12:34:58]CAPDU: 80 0D 03 02 [12:34:58]Write to MH i2c: E2 08 00 67 0E 80 0D 03 02 00 00 00 00 F0 [12:34:58]Write i2c OK [12:34:58]MH_I2C_Read... [12:34:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:34:58]Read from MH i2c: E2 [12:34:58]MH_I2C_Read... [12:34:58]Read from MH i2c: E2 0B 00 [12:34:58]MH_I2C_Read... [12:34:58]Read from MH i2c: E2 0B 00 67 0E 00 49 42 54 4F 55 7B D0 2B 90 00 EA [12:34:58]RAPDU: 49 42 54 4F 55 7B D0 2B 90 00 [12:34:58]wFMCommunicate OK [12:34:58]SAM_PROTO_SignData done [12:34:58]FM_MakeSignedData done [12:34:58]CreateOFDProtocolMessage [12:34:58]wFMCommunicate request_size=4 [12:34:58]MH_SAM_APDU [12:34:58]CAPDU: 80 11 00 00 [12:34:58]Write to MH i2c: E2 08 00 68 0E 80 11 00 00 00 00 00 00 F0 [12:34:58]Write i2c OK [12:34:58]MH_I2C_Read... [12:34:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:58]Read from MH i2c: E2 [12:34:58]MH_I2C_Read... [12:34:58]Read from MH i2c: E2 17 00 [12:34:58]MH_I2C_Read... [12:34:58]Read from MH i2c: E2 17 00 68 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 46 [12:34:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:34:58]wFMCommunicate OK [12:34:58]CreateOFDProtocolMessage done [12:34:58]OFDSenderStorePacket 165273 [12:34:58]StoreOFDPacket docnum=165273 [12:34:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 CF 18 07 01 4F 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 71 17 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 99 85 02 00 35 04 06 00 BE 28 5D C2 92 E7 49 42 54 4F 55 7B D0 2B [12:34:58]CheckFolder [12:34:58]dirname=/storage/ofd_packets [12:34:58]CheckFolder done [12:34:58]ProducePacketName [12:34:58]name=ofd_packets/00165273 [12:34:58]NVStorageSaveData ofd_packets/00165273 [12:34:58]File name is /storage/ofd_packets/00165273 [12:34:58]Write 301 bytes [12:34:58]NVStorageSaveData done [12:34:58]OFDSenderStorePacket done [12:34:58]KKMCreateOFDPacket done [12:34:58]NVStorageSaveData kkm_last_timestamp [12:34:58]File name is /storage/kkm_last_timestamp [12:34:58]Write 4 bytes [12:34:58]NVStorageSaveData done [12:34:58]ExternCall_PrintAddStr [12:34:58]wPrintStart [12:34:58]Write to MH i2c: 01 00 00 69 0E 77 [12:34:58]Write i2c OK [12:34:58]MH_I2C_Read... [12:34:58]Read from MH i2c: 01 [12:34:58]MH_I2C_Read... [12:34:58]Read from MH i2c: 01 07 00 [12:34:58]MH_I2C_Read... [12:34:58]Read from MH i2c: 01 07 00 69 0E 00 00 00 00 00 FF 0F 8C [12:34:58]RasterBufferAndPrint [12:34:58]line Счет N : (1)459383 [12:34:58]line ИНН: 02508201610067 [12:34:58]line Контрольно-Кассовый Чек [12:34:58]line ПРОДАЖА [12:34:58]line ТРК (МРК, ГНК) : 12 [12:34:58]line Товар: 2710124130 [12:34:58]line Аи-92-К-5 [12:34:58]line 6.080 * 65.80 [12:34:58]line = 400.06 [12:34:58]line НДС 12% НСП 1% [12:34:58]line > о реализуемом товаре [12:34:58]line ОКРУГЛЕНИЕ: -0.06 [12:34:58]line ИТОГО: 400.00 [12:34:58]line Внесено: 400.00 [12:34:58]line СДАЧА: 0.00 [12:34:58]line НСП 1% : 3.54 [12:34:58]line НДС 12% : 42.48 [12:34:58]line Наличными: 400.00 [12:34:58]line Безнал.: 0.00 [12:34:58]line Место: АЗС № 72 "Партнер Нефть" [12:34:58]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:34:58]line СНО: Общий режим [12:34:58]line Чек 146 15.07.2024 12:34 [12:34:58]line Смена: 448 ФФД: 1.0 [12:34:58]line ЗНМ: 0300000160 [12:34:58]line РНМ: 0000000000090829 [12:34:58]line Версия ККМ: 001 [12:34:58]line ФМ: 0000000000874718 [12:34:58]line ФД: 165273 [12:34:58]line ФПД: 209080581001959 [12:34:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T123457&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165273&fm=209080581001959&tin=02508201610067®Number=0000000000090829&sum=40000 [12:34:58]written 0, free lines is 4095 [12:34:58]OFD Sender: Processing packet 165273 [packets to send 106, broken 105] [12:34:58]ProducePacketName [12:34:58]name=ofd_packets/00165273 [12:34:58]OFD Sender: To server: pG, [12:34:58]CommunicateWithHost lk.salyk.kg:30040 [12:34:58]ConnectInit lk.salyk.kg [12:34:59]Connected sock=10 [12:34:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 CF 18 07 01 4F 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 71 17 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 99 85 02 00 35 04 06 00 BE 28 5D C2 92 E7 49 42 54 4F 55 7B D0 2B [12:34:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 1B B2 47 00 E6 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 37 31 38 10 04 04 00 99 85 02 00 F4 03 04 00 FC BD 94 66 B6 04 01 00 00 03 50 97 5E D7 72 3E 10 [12:34:59]CommunicateWithHost err = 0 [12:34:59]CheckOFDResponse [12:34:59]1017 (14) - 77093643461234 [12:34:59]1041 (16) - 0000000000874718 [12:34:59]1040 (4) - 165273 [12:34:59]1012 (4) - 15.07.2024 06:13 [12:34:59]1206 (1) - 0 [12:34:59]OFD Sender: Remove packet 165273 [12:34:59]ProducePacketName [12:34:59]name=ofd_packets/00165273 [12:34:59]NVStorageDeleteData [12:34:59]Write to MH i2c: 01 00 00 93 0E A1 [12:34:59]Write i2c OK [12:34:59]MH_I2C_Read... [12:34:59]Read from MH i2c: 01 [12:34:59]MH_I2C_Read... [12:34:59]Read from MH i2c: 01 07 00 [12:34:59]MH_I2C_Read... [12:34:59]Read from MH i2c: 01 07 00 93 0E 00 00 00 00 00 F7 0C AB [12:34:59]RasterBufferAndPrint [12:34:59]line [12:34:59]line [12:34:59]line [12:34:59]line [12:34:59]line [12:34:59]written 0, free lines is 3326 [12:34:59]MH_Cut [12:34:59]Write to MH i2c: D1 01 00 9A 0E 01 7A [12:34:59]Write i2c OK [12:34:59]MH_I2C_Read... [12:34:59]Read from MH i2c: D1 [12:34:59]MH_I2C_Read... [12:34:59]Read from MH i2c: D1 01 00 [12:34:59]MH_I2C_Read... [12:34:59]Read from MH i2c: D1 01 00 9A 0E 00 79 [12:34:59]Write to MH i2c: 01 00 00 9B 0E A9 [12:34:59]Write i2c OK [12:34:59]MH_I2C_Read... [12:34:59]OFD Sender: No OFD packet to send [12:35:00]*** Cut start [12:35:00]*** Partial cut [12:35:00]*** CUTSNS_PIN = 1 [12:35:00]*** CUTSNS_PIN = 0 [12:35:00]*** Brake cut motor [12:35:00]Read from MH i2c: 01 [12:35:00]MH_I2C_Read... [12:35:00]*** Stop cut motor [12:35:00]*** Cut end [12:35:00]Read from MH i2c: 01 07 00 [12:35:00]MH_I2C_Read... [12:35:00]Read from MH i2c: 01 07 00 9B 0E 00 00 00 00 00 FF 0F BE [12:35:00]process_action close_receipt done [12:35:00]requested_data is exist [12:35:00]produce_requested_data [12:35:00]requested_item fm.sn is exist - process it [12:35:00]wFMCommunicate request_size=4 [12:35:00]MH_SAM_APDU [12:35:00]CAPDU: 80 11 00 00 [12:35:00]Write to MH i2c: E2 08 00 9C 0E 80 11 00 00 00 00 00 00 24 [12:35:00]Write i2c OK [12:35:00]MH_I2C_Read... [12:35:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:00]Read from MH i2c: E2 [12:35:00]MH_I2C_Read... [12:35:00]Read from MH i2c: E2 17 00 [12:35:00]MH_I2C_Read... [12:35:00]Read from MH i2c: E2 17 00 9C 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7A [12:35:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:35:00]wFMCommunicate OK [12:35:00]requested_item fd.num is exist - process it [12:35:00]SAM_PROTO_GetFieldsCounters [12:35:00]wFMCommunicate request_size=4 [12:35:00]MH_SAM_APDU [12:35:00]CAPDU: 80 13 00 00 [12:35:00]Write to MH i2c: E2 08 00 9D 0E 80 13 00 00 00 00 00 00 27 [12:35:00]Write i2c OK [12:35:00]MH_I2C_Read... [12:35:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:35:00]Read from MH i2c: E2 [12:35:00]MH_I2C_Read... [12:35:00]Read from MH i2c: E2 62 00 [12:35:00]MH_I2C_Read... [12:35:00]Read from MH i2c: E2 62 00 9D 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 99 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 E5 [12:35: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 99 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:35:00]wFMCommunicate OK [12:35:00]SAM_PROTO_GetFieldsCounters done [12:35:00]requested_item shift.num is exist - process it [12:35:00]requested_item shift.opened is exist - process it [12:35:00]req_shift_opened [12:35:00]FM_GetShiftState [12:35:00]SAM_PROTO_GetShiftState [12:35:00]wFMCommunicate request_size=4 [12:35:00]MH_SAM_APDU [12:35:00]CAPDU: 80 13 01 00 [12:35:00]Write to MH i2c: E2 08 00 9E 0E 80 13 01 00 00 00 00 00 29 [12:35:00]Write i2c OK [12:35:00]MH_I2C_Read... [12:35:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:00]Read from MH i2c: E2 [12:35:00]MH_I2C_Read... [12:35:00]Read from MH i2c: E2 0E 00 [12:35:00]MH_I2C_Read... [12:35:00]Read from MH i2c: E2 0E 00 9E 0E 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 02 [12:35:00]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:35:00]wFMCommunicate OK [12:35:00]SAM_PROTO_GetShiftState done [12:35:00]FM_GetShiftState done [12:35:00]req_shift_opened done [12:35:00]requested_item shift.open_date is exist - process it [12:35:00]req_shift_open_date [12:35:00]req_shift_open_date done [12:35:00]produce_requested_data done [12:35:00]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165273,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [12:35:00]process_action_free close_receipt [12:35:00]json_value_free [12:35:00]json_value_free done [12:35:00]process_json_proto returns [12:35:00]Send response to host [12:35:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165273,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [12:35:00]free response buf [12:35:00]execute_script done [12:35:00]execute_script returns [12:35:00]free content buf [12:35:00]Sock 9.Close socket [12:35:00]Sock 9.Thread stoped [12:35:04]OFD Sender: No OFD packet to send [12:35:09]OFD Sender: No OFD packet to send [12:35:14]OFD Sender: No OFD packet to send [12:35:19]OFD Sender: No OFD packet to send [12:35:24]OFD Sender: No OFD packet to send [12:35:29]OFD Sender: No OFD packet to send [12:35:34]OFD Sender: No OFD packet to send [12:35:39]OFD Sender: No OFD packet to send [12:35:44]OFD Sender: No OFD packet to send [12:35:49]OFD Sender: No OFD packet to send [12:35:54]OFD Sender: No OFD packet to send [12:35:59]OFD Sender: No OFD packet to send [12:36:04]OFD Sender: No OFD packet to send [12:36:09]OFD Sender: No OFD packet to send [12:36:14]OFD Sender: No OFD packet to send [12:36:19]OFD Sender: No OFD packet to send [12:36:23]accept exits with 8 [12:36:23]New connection [12:36:23]New thread 3066711396 created [12:36:23]Thread 3066854756 joined [12:36:23]Waiting for new connection... [12:36:23] Sock 8.Parse request [12:36:23]Sock 8.Check first char [12:36:23]Sock 8.First char is OK [12:36:23]request: POST /json_proto HTTP/1.0 [12:36:23]Method: POST [12:36:23]URL: /json_proto [12:36:23]Method is POST - this is cgi request [12:36:23]url: /json_proto [12:36:23]query_string will be loaded in cgi processing [12:36:23]execute_cgi json_proto POST (null) [12:36:23]execute_cgi path=json_proto method=POST [12:36:23]POST find Content-Length [12:36:23]Host: 172.17.56.4:8080 [12:36:23]Content-Length: 677 [12:36:23]Content-Type: application/json [12:36:23] [12:36:23]POST finish read [12:36:23]Found Content-Length = 677 [12:36:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459384", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:36:23]execute_script... [12:36:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459384", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:36:23]POST & json_proto [12:36:23]process_json_proto [12:36:23]json parsed OK: [12:36:23]protocol is kg_v1.0 [12:36:23]action value=close_receipt [12:36:23]process_action close_receipt [12:36:23]cmd_close_receipt [12:36:23]MH_GetDate [12:36:23]Write to MH i2c: F0 00 00 9F 0E 9C [12:36:23]Write i2c OK [12:36:23]MH_I2C_Read... [12:36:23]Read from MH i2c: F0 [12:36:23]MH_I2C_Read... [12:36:23]Read from MH i2c: F0 09 00 [12:36:23]MH_I2C_Read... [12:36:23]Read from MH i2c: F0 09 00 9F 0E 00 C8 17 95 66 C9 DC B2 64 3A [12:36:23]GetLastDocTimeStamp 1721046897 [12:36:23]current date 1721046984 [12:36:23]FM_GetShiftState [12:36:23]SAM_PROTO_GetShiftState [12:36:23]wFMCommunicate request_size=4 [12:36:23]MH_SAM_APDU [12:36:23]CAPDU: 80 13 01 00 [12:36:23]Write to MH i2c: E2 08 00 A0 0E 80 13 01 00 00 00 00 00 2B [12:36:23]Write i2c OK [12:36:23]MH_I2C_Read... [12:36:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:23]Read from MH i2c: E2 [12:36:23]MH_I2C_Read... [12:36:23]Read from MH i2c: E2 0E 00 [12:36:23]MH_I2C_Read... [12:36:23]Read from MH i2c: E2 0E 00 A0 0E 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 04 [12:36:23]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:36:23]wFMCommunicate OK [12:36:23]SAM_PROTO_GetShiftState done [12:36:23]FM_GetShiftState done [12:36:23]opened in 1721003876 [12:36:23]opened+sec_in_day 1721090276 [12:36:23]quantity*price = 20003 [12:36:23]sum+1 = 20004 [12:36:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 147 15.07.2024 12:36 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165274 ФПД: 272220484765733 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T123624&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165274&fm=272220484765733&tin=02508201610067®Number=0000000000090829&sum=20000 [12:36:24]StoreToDocumentArchive [12:36:24]shift 448 fd 165274 [12:36:24]save to /storage/0448/doc_00165274 [12:36:24]save last doc name /storage/0448/doc_00165274 to /storage/kkm_last_doc_name [12:36:25]save OK [12:36:25]Clear old archive folders... [12:36:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:36:25]tlvbuf is 01861BB0 [12:36:25]SAM_PROTO_ClearQueue [12:36:25]wFMCommunicate request_size=4 [12:36:25]MH_SAM_APDU [12:36:25]CAPDU: 80 09 00 00 [12:36:25]Write to MH i2c: E2 08 00 AD 0E 80 09 00 00 00 00 00 00 2D [12:36:25]Write i2c OK [12:36:25]MH_I2C_Read... [12:36:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:36:25]Read from MH i2c: E2 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: E2 03 00 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: E2 03 00 AD 0E 00 90 00 2F [12:36:25]RAPDU: 90 00 [12:36:25]wFMCommunicate OK [12:36:25]SAM_PROTO_ClearQueue done [12:36:25]KKMCreateOFDPacket [12:36:25]OFDProtocolAddRootSTLVToBuf [12:36:25]FM_MakeSignedData [12:36:25]FM_MakeSignedData [12:36:25]SAM_PROTO_SignData [12:36:25]wFMCommunicate request_size=4 [12:36:25]MH_SAM_APDU [12:36:25]CAPDU: 80 0D 01 02 [12:36:25]Write to MH i2c: E2 08 00 AE 0E 80 0D 01 02 00 00 00 00 35 [12:36:25]Write i2c OK [12:36:25]MH_I2C_Read... [12:36:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:36:25]Read from MH i2c: E2 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: E2 03 00 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: E2 03 00 AE 0E 00 90 00 30 [12:36:25]RAPDU: 90 00 [12:36:25]wFMCommunicate OK [12:36:25]wFMCommunicate request_size=255 [12:36:25]MH_SAM_APDU [12:36:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 C8 17 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9A 85 02 00 35 04 06 00 F7 [12:36:25]Write to MH i2c: E2 02 01 AF 0E 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 C8 17 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9A 85 02 00 35 04 06 00 F7 00 00 95 [12:36:25]Write i2c OK [12:36:25]MH_I2C_Read... [12:36:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:25]Read from MH i2c: E2 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: E2 03 00 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: E2 03 00 AF 0E 00 90 00 31 [12:36:25]RAPDU: 90 00 [12:36:25]wFMCommunicate OK [12:36:25]wFMCommunicate request_size=10 [12:36:25]MH_SAM_APDU [12:36:25]CAPDU: 80 0D 02 02 05 95 45 4B 88 25 [12:36:25]Write to MH i2c: E2 0D 00 B0 0E 80 0D 02 02 05 00 95 45 4B 88 25 00 00 14 [12:36:25]Write i2c OK [12:36:25]MH_I2C_Read... [12:36:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:25]Read from MH i2c: E2 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: E2 03 00 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: E2 03 00 B0 0E 00 90 00 32 [12:36:25]RAPDU: 90 00 [12:36:25]wFMCommunicate OK [12:36:25]wFMCommunicate request_size=4 [12:36:25]MH_SAM_APDU [12:36:25]CAPDU: 80 0D 03 02 [12:36:25]Write to MH i2c: E2 08 00 B1 0E 80 0D 03 02 00 00 00 00 3A [12:36:25]Write i2c OK [12:36:25]MH_I2C_Read... [12:36:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:36:25]Read from MH i2c: E2 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: E2 0B 00 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: E2 0B 00 B1 0E 00 BC 26 25 77 41 D7 98 C9 90 00 32 [12:36:25]RAPDU: BC 26 25 77 41 D7 98 C9 90 00 [12:36:25]wFMCommunicate OK [12:36:25]SAM_PROTO_SignData done [12:36:25]FM_MakeSignedData done [12:36:25]CreateOFDProtocolMessage [12:36:25]wFMCommunicate request_size=4 [12:36:25]MH_SAM_APDU [12:36:25]CAPDU: 80 11 00 00 [12:36:25]Write to MH i2c: E2 08 00 B2 0E 80 11 00 00 00 00 00 00 3A [12:36:25]Write i2c OK [12:36:25]MH_I2C_Read... [12:36:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:25]Read from MH i2c: E2 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: E2 17 00 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: E2 17 00 B2 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 90 [12:36:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:36:25]wFMCommunicate OK [12:36:25]CreateOFDProtocolMessage done [12:36:25]OFDSenderStorePacket 165274 [12:36:25]StoreOFDPacket docnum=165274 [12:36:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 2F 6D 07 01 DA CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 C8 17 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9A 85 02 00 35 04 06 00 F7 95 45 4B 88 25 BC 26 25 77 41 D7 98 C9 [12:36:25]CheckFolder [12:36:25]dirname=/storage/ofd_packets [12:36:25]CheckFolder done [12:36:25]ProducePacketName [12:36:25]name=ofd_packets/00165274 [12:36:25]NVStorageSaveData ofd_packets/00165274 [12:36:25]File name is /storage/ofd_packets/00165274 [12:36:25]Write 301 bytes [12:36:25]NVStorageSaveData done [12:36:25]OFDSenderStorePacket done [12:36:25]KKMCreateOFDPacket done [12:36:25]NVStorageSaveData kkm_last_timestamp [12:36:25]File name is /storage/kkm_last_timestamp [12:36:25]Write 4 bytes [12:36:25]NVStorageSaveData done [12:36:25]ExternCall_PrintAddStr [12:36:25]wPrintStart [12:36:25]Write to MH i2c: 01 00 00 B3 0E C1 [12:36:25]Write i2c OK [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: 01 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: 01 07 00 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: 01 07 00 B3 0E 00 00 00 00 00 FF 0F D6 [12:36:25]RasterBufferAndPrint [12:36:25]line Счет N : (1)459384 [12:36:25]line ИНН: 02508201610067 [12:36:25]line Контрольно-Кассовый Чек [12:36:25]line ПРОДАЖА [12:36:25]line ТРК (МРК, ГНК) : 22 [12:36:25]line Товар: 2710124130 [12:36:25]line Аи-92-К-5 [12:36:25]line 3.040 * 65.80 [12:36:25]line = 200.03 [12:36:25]line НДС 12% НСП 1% [12:36:25]line > о реализуемом товаре [12:36:25]line ОКРУГЛЕНИЕ: -0.03 [12:36:25]line ИТОГО: 200.00 [12:36:25]line Внесено: 200.00 [12:36:25]line СДАЧА: 0.00 [12:36:25]line НСП 1% : 1.77 [12:36:25]line НДС 12% : 21.24 [12:36:25]line Наличными: 200.00 [12:36:25]line Безнал.: 0.00 [12:36:25]line Место: АЗС № 72 "Партнер Нефть" [12:36:25]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:36:25]line СНО: Общий режим [12:36:25]line Чек 147 15.07.2024 12:36 [12:36:25]line Смена: 448 ФФД: 1.0 [12:36:25]line ЗНМ: 0300000160 [12:36:25]line РНМ: 0000000000090829 [12:36:25]line Версия ККМ: 001 [12:36:25]line ФМ: 0000000000874718 [12:36:25]line ФД: 165274 [12:36:25]line ФПД: 272220484765733 [12:36:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T123624&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165274&fm=272220484765733&tin=02508201610067®Number=0000000000090829&sum=20000 [12:36:25]written 0, free lines is 4095 [12:36:25]OFD Sender: Processing packet 165274 [packets to send 106, broken 105] [12:36:25]ProducePacketName [12:36:25]name=ofd_packets/00165274 [12:36:25]OFD Sender: To server: pG, [12:36:25]CommunicateWithHost lk.salyk.kg:30040 [12:36:25]ConnectInit lk.salyk.kg [12:36:25]Connected sock=9 [12:36:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 2F 6D 07 01 DA CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 C8 17 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9A 85 02 00 35 04 06 00 F7 95 45 4B 88 25 BC 26 25 77 41 D7 98 C9 [12:36:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 8E F3 47 00 17 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9A 85 02 00 F4 03 04 00 53 BE 94 66 B6 04 01 00 00 64 46 5F 02 7A 51 EC 30 [12:36:26]CommunicateWithHost err = 0 [12:36:26]CheckOFDResponse [12:36:26]1017 (14) - 77093643461234 [12:36:26]1041 (16) - 0000000000874718 [12:36:26]1040 (4) - 165274 [12:36:26]1012 (4) - 15.07.2024 06:14 [12:36:26]1206 (1) - 0 [12:36:26]OFD Sender: Remove packet 165274 [12:36:26]ProducePacketName [12:36:26]name=ofd_packets/00165274 [12:36:26]NVStorageDeleteData [12:36:26]Write to MH i2c: 01 00 00 DD 0E EB [12:36:26]Write i2c OK [12:36:26]MH_I2C_Read... [12:36:26]Read from MH i2c: 01 [12:36:26]MH_I2C_Read... [12:36:26]Read from MH i2c: 01 07 00 [12:36:26]MH_I2C_Read... [12:36:26]Read from MH i2c: 01 07 00 DD 0E 00 00 00 00 00 EE 0C EC [12:36:26]RasterBufferAndPrint [12:36:26]line [12:36:26]line [12:36:26]line [12:36:26]line [12:36:26]line [12:36:26]written 0, free lines is 3316 [12:36:26]MH_Cut [12:36:26]Write to MH i2c: D1 01 00 E4 0E 01 C4 [12:36:26]Write i2c OK [12:36:26]MH_I2C_Read... [12:36:26]Read from MH i2c: D1 [12:36:26]MH_I2C_Read... [12:36:26]Read from MH i2c: D1 01 00 [12:36:26]MH_I2C_Read... [12:36:26]Read from MH i2c: D1 01 00 E4 0E 00 C3 [12:36:26]Write to MH i2c: 01 00 00 E5 0E F3 [12:36:26]Write i2c OK [12:36:26]MH_I2C_Read... [12:36:26]OFD Sender: No OFD packet to send [12:36:26]*** Cut start [12:36:26]*** Partial cut [12:36:26]*** CUTSNS_PIN = 1 [12:36:27]*** CUTSNS_PIN = 0 [12:36:27]*** Brake cut motor [12:36:27]Read from MH i2c: 01 [12:36:27]MH_I2C_Read... [12:36:27]*** Stop cut motor [12:36:27]*** Cut end [12:36:27]Read from MH i2c: 01 07 00 [12:36:27]MH_I2C_Read... [12:36:27]Read from MH i2c: 01 07 00 E5 0E 00 00 00 00 00 FF 0F 08 [12:36:27]process_action close_receipt done [12:36:27]requested_data is exist [12:36:27]produce_requested_data [12:36:27]requested_item fm.sn is exist - process it [12:36:27]wFMCommunicate request_size=4 [12:36:27]MH_SAM_APDU [12:36:27]CAPDU: 80 11 00 00 [12:36:27]Write to MH i2c: E2 08 00 E6 0E 80 11 00 00 00 00 00 00 6E [12:36:27]Write i2c OK [12:36:27]MH_I2C_Read... [12:36:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:27]Read from MH i2c: E2 [12:36:27]MH_I2C_Read... [12:36:27]Read from MH i2c: E2 17 00 [12:36:27]MH_I2C_Read... [12:36:27]Read from MH i2c: E2 17 00 E6 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C4 [12:36:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:36:27]wFMCommunicate OK [12:36:27]requested_item fd.num is exist - process it [12:36:27]SAM_PROTO_GetFieldsCounters [12:36:27]wFMCommunicate request_size=4 [12:36:27]MH_SAM_APDU [12:36:27]CAPDU: 80 13 00 00 [12:36:27]Write to MH i2c: E2 08 00 E7 0E 80 13 00 00 00 00 00 00 71 [12:36:27]Write i2c OK [12:36:27]MH_I2C_Read... [12:36:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:36:27]Read from MH i2c: E2 [12:36:27]MH_I2C_Read... [12:36:27]Read from MH i2c: E2 62 00 [12:36:27]MH_I2C_Read... [12:36:27]Read from MH i2c: E2 62 00 E7 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 9A 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 33 [12:36:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 9A 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:36:27]wFMCommunicate OK [12:36:27]SAM_PROTO_GetFieldsCounters done [12:36:27]requested_item shift.num is exist - process it [12:36:27]requested_item shift.opened is exist - process it [12:36:27]req_shift_opened [12:36:27]FM_GetShiftState [12:36:27]SAM_PROTO_GetShiftState [12:36:27]wFMCommunicate request_size=4 [12:36:27]MH_SAM_APDU [12:36:27]CAPDU: 80 13 01 00 [12:36:27]Write to MH i2c: E2 08 00 E8 0E 80 13 01 00 00 00 00 00 73 [12:36:27]Write i2c OK [12:36:27]MH_I2C_Read... [12:36:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:27]Read from MH i2c: E2 [12:36:27]MH_I2C_Read... [12:36:27]Read from MH i2c: E2 0E 00 [12:36:27]MH_I2C_Read... [12:36:27]Read from MH i2c: E2 0E 00 E8 0E 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 4C [12:36:27]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:36:27]wFMCommunicate OK [12:36:27]SAM_PROTO_GetShiftState done [12:36:27]FM_GetShiftState done [12:36:27]req_shift_opened done [12:36:27]requested_item shift.open_date is exist - process it [12:36:27]req_shift_open_date [12:36:27]req_shift_open_date done [12:36:27]produce_requested_data done [12:36:27]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165274,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [12:36:27]process_action_free close_receipt [12:36:27]json_value_free [12:36:27]json_value_free done [12:36:27]process_json_proto returns [12:36:27]Send response to host [12:36:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165274,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [12:36:27]free response buf [12:36:27]execute_script done [12:36:27]execute_script returns [12:36:27]free content buf [12:36:27]Sock 8.Close socket [12:36:27]Sock 8.Thread stoped [12:36:31]OFD Sender: No OFD packet to send [12:36:36]OFD Sender: No OFD packet to send [12:36:41]OFD Sender: No OFD packet to send [12:36:46]OFD Sender: No OFD packet to send [12:36:51]OFD Sender: No OFD packet to send [12:36:56]OFD Sender: No OFD packet to send [12:37:01]OFD Sender: No OFD packet to send [12:37:06]OFD Sender: No OFD packet to send [12:37:11]OFD Sender: No OFD packet to send [12:37:16]OFD Sender: No OFD packet to send [12:37:21]OFD Sender: No OFD packet to send [12:37:26]OFD Sender: No OFD packet to send [12:37:31]OFD Sender: No OFD packet to send [12:37:36]OFD Sender: No OFD packet to send [12:37:41]OFD Sender: No OFD packet to send [12:37:46]OFD Sender: No OFD packet to send [12:37:51]OFD Sender: No OFD packet to send [12:37:56]OFD Sender: No OFD packet to send [12:38:01]OFD Sender: No OFD packet to send [12:38:06]OFD Sender: No OFD packet to send [12:38:11]OFD Sender: No OFD packet to send [12:38:16]OFD Sender: No OFD packet to send [12:38:21]OFD Sender: No OFD packet to send [12:38:26]OFD Sender: No OFD packet to send [12:38:31]OFD Sender: No OFD packet to send [12:38:36]OFD Sender: No OFD packet to send [12:38:41]OFD Sender: No OFD packet to send [12:38:46]OFD Sender: No OFD packet to send [12:38:51]OFD Sender: No OFD packet to send [12:38:56]OFD Sender: No OFD packet to send [12:39:01]OFD Sender: No OFD packet to send [12:39:06]OFD Sender: No OFD packet to send [12:39:11]OFD Sender: No OFD packet to send [12:39:16]OFD Sender: No OFD packet to send [12:39:21]OFD Sender: No OFD packet to send [12:39:26]OFD Sender: No OFD packet to send [12:39:31]OFD Sender: No OFD packet to send [12:39:36]OFD Sender: No OFD packet to send [12:39:41]OFD Sender: No OFD packet to send [12:39:46]OFD Sender: No OFD packet to send [12:39:51]OFD Sender: No OFD packet to send [12:39:56]OFD Sender: No OFD packet to send [12:40:01]OFD Sender: No OFD packet to send [12:40:06]OFD Sender: No OFD packet to send [12:40:11]OFD Sender: No OFD packet to send [12:40:16]OFD Sender: No OFD packet to send [12:40:21]OFD Sender: No OFD packet to send [12:40:26]OFD Sender: No OFD packet to send [12:40:31]OFD Sender: No OFD packet to send [12:40:36]OFD Sender: No OFD packet to send [12:40:41]OFD Sender: No OFD packet to send [12:40:46]OFD Sender: No OFD packet to send [12:40:51]OFD Sender: No OFD packet to send [12:40:56]OFD Sender: No OFD packet to send [12:41: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:45]accept exits with 10 [12:42:45]New connection [12:42:45]New thread 3066854756 created [12:42:45]Thread 3066711396 joined [12:42:45]Waiting for new connection... [12:42:45] Sock 10.Parse request [12:42:45]Sock 10.Check first char [12:42:45]Sock 10.First char is OK [12:42:45]request: POST /json_proto HTTP/1.0 [12:42:45]Method: POST [12:42:45]URL: /json_proto [12:42:45]Method is POST - this is cgi request [12:42:45]url: /json_proto [12:42:45]query_string will be loaded in cgi processing [12:42:45]execute_cgi json_proto POST (null) [12:42:45]execute_cgi path=json_proto method=POST [12:42:45]POST find Content-Length [12:42:45]Host: 172.17.56.4:8080 [12:42:45]Content-Length: 678 [12:42:45]Content-Type: application/json [12:42:45] [12:42:45]POST finish read [12:42:45]Found Content-Length = 678 [12:42:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459385", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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:42:45]execute_script... [12:42:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459385", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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:42:45]POST & json_proto [12:42:45]process_json_proto [12:42:45]json parsed OK: [12:42:45]protocol is kg_v1.0 [12:42:45]action value=close_receipt [12:42:45]process_action close_receipt [12:42:45]cmd_close_receipt [12:42:45]MH_GetDate [12:42:45]Write to MH i2c: F0 00 00 E9 0E E6 [12:42:45]Write i2c OK [12:42:45]MH_I2C_Read... [12:42:45]Read from MH i2c: F0 [12:42:45]MH_I2C_Read... [12:42:45]Read from MH i2c: F0 09 00 [12:42:45]MH_I2C_Read... [12:42:45]Read from MH i2c: F0 09 00 E9 0E 00 46 19 95 66 C9 DC B2 64 04 [12:42:45]GetLastDocTimeStamp 1721046984 [12:42:45]current date 1721047366 [12:42:45]FM_GetShiftState [12:42:45]SAM_PROTO_GetShiftState [12:42:45]wFMCommunicate request_size=4 [12:42:45]MH_SAM_APDU [12:42:45]CAPDU: 80 13 01 00 [12:42:45]Write to MH i2c: E2 08 00 EA 0E 80 13 01 00 00 00 00 00 75 [12:42:45]Write i2c OK [12:42:45]MH_I2C_Read... [12:42:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:45]Read from MH i2c: E2 [12:42:45]MH_I2C_Read... [12:42:45]Read from MH i2c: E2 0E 00 [12:42:45]MH_I2C_Read... [12:42:45]Read from MH i2c: E2 0E 00 EA 0E 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 4E [12:42:45]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:42:45]wFMCommunicate OK [12:42:45]SAM_PROTO_GetShiftState done [12:42:45]FM_GetShiftState done [12:42:45]opened in 1721003876 [12:42:45]opened+sec_in_day 1721090276 [12:42:45]quantity*price = 70011 [12:42:45]sum+1 = 70012 [12:42:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 148 15.07.2024 12:42 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165275 ФПД: 185781509593957 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T124246&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165275&fm=185781509593957&tin=02508201610067®Number=0000000000090829&sum=70000 [12:42:46]StoreToDocumentArchive [12:42:46]shift 448 fd 165275 [12:42:46]save to /storage/0448/doc_00165275 [12:42:46]save last doc name /storage/0448/doc_00165275 to /storage/kkm_last_doc_name [12:42:46]save OK [12:42:46]Clear old archive folders... [12:42:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:42:46]tlvbuf is 01862210 [12:42:46]SAM_PROTO_ClearQueue [12:42:46]wFMCommunicate request_size=4 [12:42:46]MH_SAM_APDU [12:42:46]CAPDU: 80 09 00 00 [12:42:46]Write to MH i2c: E2 08 00 F7 0E 80 09 00 00 00 00 00 00 77 [12:42:46]Write i2c OK [12:42:46]MH_I2C_Read... [12:42:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:42:46]Read from MH i2c: E2 [12:42:46]MH_I2C_Read... [12:42:46]Read from MH i2c: E2 03 00 [12:42:46]MH_I2C_Read... [12:42:46]Read from MH i2c: E2 03 00 F7 0E 00 90 00 79 [12:42:46]RAPDU: 90 00 [12:42:46]wFMCommunicate OK [12:42:46]SAM_PROTO_ClearQueue done [12:42:46]KKMCreateOFDPacket [12:42:46]OFDProtocolAddRootSTLVToBuf [12:42:46]FM_MakeSignedData [12:42:46]FM_MakeSignedData [12:42:46]SAM_PROTO_SignData [12:42:46]wFMCommunicate request_size=4 [12:42:46]MH_SAM_APDU [12:42:46]CAPDU: 80 0D 01 02 [12:42:46]Write to MH i2c: E2 08 00 F8 0E 80 0D 01 02 00 00 00 00 7F [12:42:46]Write i2c OK [12:42:46]MH_I2C_Read... [12:42:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:42:46]Read from MH i2c: E2 [12:42:46]MH_I2C_Read... [12:42:46]Read from MH i2c: E2 03 00 [12:42:46]MH_I2C_Read... [12:42:46]Read from MH i2c: E2 03 00 F8 0E 00 90 00 7A [12:42:46]RAPDU: 90 00 [12:42:46]wFMCommunicate OK [12:42:46]wFMCommunicate request_size=255 [12:42:46]MH_SAM_APDU [12:42: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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 94 00 00 00 F4 03 04 00 46 19 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9B 85 02 00 35 04 06 00 A8 [12:42:46]Write to MH i2c: E2 02 01 F9 0E 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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 94 00 00 00 F4 03 04 00 46 19 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9B 85 02 00 35 04 06 00 A8 00 00 B5 [12:42:46]Write i2c OK [12:42:46]MH_I2C_Read... [12:42:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:46]Read from MH i2c: E2 [12:42:46]MH_I2C_Read... [12:42:46]Read from MH i2c: E2 03 00 [12:42:46]MH_I2C_Read... [12:42:46]Read from MH i2c: E2 03 00 F9 0E 00 90 00 7B [12:42:46]RAPDU: 90 00 [12:42:46]wFMCommunicate OK [12:42:46]wFMCommunicate request_size=10 [12:42:46]MH_SAM_APDU [12:42:46]CAPDU: 80 0D 02 02 05 F7 A0 E2 9B 65 [12:42:46]Write to MH i2c: E2 0D 00 FA 0E 80 0D 02 02 05 00 F7 A0 E2 9B 65 00 00 05 [12:42:46]Write i2c OK [12:42:46]MH_I2C_Read... [12:42:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:46]Read from MH i2c: E2 [12:42:46]MH_I2C_Read... [12:42:46]Read from MH i2c: E2 03 00 [12:42:46]MH_I2C_Read... [12:42:46]Read from MH i2c: E2 03 00 FA 0E 00 90 00 7C [12:42:46]RAPDU: 90 00 [12:42:46]wFMCommunicate OK [12:42:46]wFMCommunicate request_size=4 [12:42:46]MH_SAM_APDU [12:42:46]CAPDU: 80 0D 03 02 [12:42:46]Write to MH i2c: E2 08 00 FB 0E 80 0D 03 02 00 00 00 00 84 [12:42:46]Write i2c OK [12:42:46]MH_I2C_Read... [12:42:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:42:47]Read from MH i2c: E2 [12:42:47]MH_I2C_Read... [12:42:47]Read from MH i2c: E2 0B 00 [12:42:47]MH_I2C_Read... [12:42:47]Read from MH i2c: E2 0B 00 FB 0E 00 AB 82 67 CC 66 E0 C9 66 90 00 5A [12:42:47]RAPDU: AB 82 67 CC 66 E0 C9 66 90 00 [12:42:47]wFMCommunicate OK [12:42:47]SAM_PROTO_SignData done [12:42:47]FM_MakeSignedData done [12:42:47]CreateOFDProtocolMessage [12:42:47]wFMCommunicate request_size=4 [12:42:47]MH_SAM_APDU [12:42:47]CAPDU: 80 11 00 00 [12:42:47]Write to MH i2c: E2 08 00 FC 0E 80 11 00 00 00 00 00 00 84 [12:42:47]Write i2c OK [12:42:47]MH_I2C_Read... [12:42:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:47]Read from MH i2c: E2 [12:42:47]MH_I2C_Read... [12:42:47]Read from MH i2c: E2 17 00 [12:42:47]MH_I2C_Read... [12:42:47]Read from MH i2c: E2 17 00 FC 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DA [12:42:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:42:47]wFMCommunicate OK [12:42:47]CreateOFDProtocolMessage done [12:42:47]OFDSenderStorePacket 165275 [12:42:47]StoreOFDPacket docnum=165275 [12:42:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E9 9B 07 01 8C E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 94 00 00 00 F4 03 04 00 46 19 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9B 85 02 00 35 04 06 00 A8 F7 A0 E2 9B 65 AB 82 67 CC 66 E0 C9 66 [12:42:47]CheckFolder [12:42:47]dirname=/storage/ofd_packets [12:42:47]CheckFolder done [12:42:47]ProducePacketName [12:42:47]name=ofd_packets/00165275 [12:42:47]NVStorageSaveData ofd_packets/00165275 [12:42:47]File name is /storage/ofd_packets/00165275 [12:42:47]Write 301 bytes [12:42:47]NVStorageSaveData done [12:42:47]OFDSenderStorePacket done [12:42:47]KKMCreateOFDPacket done [12:42:47]NVStorageSaveData kkm_last_timestamp [12:42:47]File name is /storage/kkm_last_timestamp [12:42:47]Write 4 bytes [12:42:47]NVStorageSaveData done [12:42:47]OFD Sender: Processing packet 165275 [packets to send 106, broken 105] [12:42:47]ProducePacketName [12:42:47]name=ofd_packets/00165275 [12:42:47]OFD Sender: To server: pG, [12:42:47]CommunicateWithHost lk.salyk.kg:30040 [12:42:47]ConnectInit lk.salyk.kg [12:42:47]ExternCall_PrintAddStr [12:42:47]wPrintStart [12:42:47]Write to MH i2c: 01 00 00 FD 0E 0B [12:42:47]Write i2c OK [12:42:47]MH_I2C_Read... [12:42:47]Read from MH i2c: 01 [12:42:47]MH_I2C_Read... [12:42:47]Read from MH i2c: 01 07 00 [12:42:47]MH_I2C_Read... [12:42:47]Read from MH i2c: 01 07 00 FD 0E 00 00 00 00 00 FF 0F 20 [12:42:47]RasterBufferAndPrint [12:42:47]line Счет N : (1)459385 [12:42:47]line ИНН: 02508201610067 [12:42:47]line Контрольно-Кассовый Чек [12:42:47]line ПРОДАЖА [12:42:47]line ТРК (МРК, ГНК) : 22 [12:42:47]line Товар: 2710124130 [12:42:47]line Аи-92-К-5 [12:42:47]line 10.640 * 65.80 [12:42:47]line = 700.11 [12:42:47]line НДС 12% НСП 1% [12:42:47]line > о реализуемом товаре [12:42:47]line ОКРУГЛЕНИЕ: -0.11 [12:42:47]line ИТОГО: 700.00 [12:42:47]line Внесено: 700.00 [12:42:47]line СДАЧА: 0.00 [12:42:47]line НСП 1% : 6.20 [12:42:47]line НДС 12% : 74.35 [12:42:47]line Наличными: 700.00 [12:42:47]line Безнал.: 0.00 [12:42:47]line Место: АЗС № 72 "Партнер Нефть" [12:42:47]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:42:47]line СНО: Общий режим [12:42:47]line Чек 148 15.07.2024 12:42 [12:42:47]line Смена: 448 ФФД: 1.0 [12:42:47]line ЗНМ: 0300000160 [12:42:47]line РНМ: 0000000000090829 [12:42:47]line Версия ККМ: 001 [12:42:47]line ФМ: 0000000000874718 [12:42:47]line ФД: 165275 [12:42:47]line ФПД: 185781509593957 [12:42:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T124246&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165275&fm=185781509593957&tin=02508201610067®Number=0000000000090829&sum=70000 [12:42:47]Connected sock=11 [12:42: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 37 31 38 0F 01 00 00 E9 9B 07 01 8C E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 94 00 00 00 F4 03 04 00 46 19 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9B 85 02 00 35 04 06 00 A8 F7 A0 E2 9B 65 AB 82 67 CC 66 E0 C9 66 [12:42:47]written 0, free lines is 4095 [12:42:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 AD 61 47 00 9A 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9B 85 02 00 F4 03 04 00 D0 BF 94 66 B6 04 01 00 00 48 85 1B 64 6A D4 E4 EA [12:42:47]CommunicateWithHost err = 0 [12:42:47]CheckOFDResponse [12:42:47]1017 (14) - 77093643461234 [12:42:47]1041 (16) - 0000000000874718 [12:42:47]1040 (4) - 165275 [12:42:47]1012 (4) - 15.07.2024 06:21 [12:42:47]1206 (1) - 0 [12:42:47]OFD Sender: Remove packet 165275 [12:42:47]ProducePacketName [12:42:47]name=ofd_packets/00165275 [12:42:47]NVStorageDeleteData [12:42:47]Write to MH i2c: 01 00 00 27 0F 36 [12:42:47]Write i2c OK [12:42:47]MH_I2C_Read... [12:42:47]Read from MH i2c: 01 [12:42:47]MH_I2C_Read... [12:42:47]Read from MH i2c: 01 07 00 [12:42:47]MH_I2C_Read... [12:42:47]Read from MH i2c: 01 07 00 27 0F 00 00 00 00 00 F2 0C 3B [12:42:47]RasterBufferAndPrint [12:42:47]line [12:42:47]line [12:42:47]line [12:42:47]line [12:42:47]line [12:42:47]written 0, free lines is 3320 [12:42:47]MH_Cut [12:42:47]Write to MH i2c: D1 01 00 2E 0F 01 0F [12:42:47]Write i2c OK [12:42:47]MH_I2C_Read... [12:42:47]Read from MH i2c: D1 [12:42:47]MH_I2C_Read... [12:42:47]Read from MH i2c: D1 01 00 [12:42:47]MH_I2C_Read... [12:42:47]Read from MH i2c: D1 01 00 2E 0F 00 0E [12:42:47]Write to MH i2c: 01 00 00 2F 0F 3E [12:42:47]Write i2c OK [12:42:47]MH_I2C_Read... [12:42:48]OFD Sender: No OFD packet to send [12:42:48]*** Cut start [12:42:48]*** Partial cut [12:42:48]*** CUTSNS_PIN = 1 [12:42:48]*** CUTSNS_PIN = 0 [12:42:48]*** Brake cut motor [12:42:49]Read from MH i2c: 01 [12:42:49]MH_I2C_Read... [12:42:49]*** Stop cut motor [12:42:49]*** Cut end [12:42:49]Read from MH i2c: 01 07 00 [12:42:49]MH_I2C_Read... [12:42:49]Read from MH i2c: 01 07 00 2F 0F 00 00 00 00 00 FF 0F 53 [12:42:49]process_action close_receipt done [12:42:49]requested_data is exist [12:42:49]produce_requested_data [12:42:49]requested_item fm.sn is exist - process it [12:42:49]wFMCommunicate request_size=4 [12:42:49]MH_SAM_APDU [12:42:49]CAPDU: 80 11 00 00 [12:42:49]Write to MH i2c: E2 08 00 30 0F 80 11 00 00 00 00 00 00 B9 [12:42:49]Write i2c OK [12:42:49]MH_I2C_Read... [12:42:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:49]Read from MH i2c: E2 [12:42:49]MH_I2C_Read... [12:42:49]Read from MH i2c: E2 17 00 [12:42:49]MH_I2C_Read... [12:42:49]Read from MH i2c: E2 17 00 30 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0F [12:42:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:42:49]wFMCommunicate OK [12:42:49]requested_item fd.num is exist - process it [12:42:49]SAM_PROTO_GetFieldsCounters [12:42:49]wFMCommunicate request_size=4 [12:42:49]MH_SAM_APDU [12:42:49]CAPDU: 80 13 00 00 [12:42:49]Write to MH i2c: E2 08 00 31 0F 80 13 00 00 00 00 00 00 BC [12:42:49]Write i2c OK [12:42:49]MH_I2C_Read... [12:42:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:42:49]Read from MH i2c: E2 [12:42:49]MH_I2C_Read... [12:42:49]Read from MH i2c: E2 62 00 [12:42:49]MH_I2C_Read... [12:42:49]Read from MH i2c: E2 62 00 31 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 9B 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 82 [12:42:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 9B 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:42:49]wFMCommunicate OK [12:42:49]SAM_PROTO_GetFieldsCounters done [12:42:49]requested_item shift.num is exist - process it [12:42:49]requested_item shift.opened is exist - process it [12:42:49]req_shift_opened [12:42:49]FM_GetShiftState [12:42:49]SAM_PROTO_GetShiftState [12:42:49]wFMCommunicate request_size=4 [12:42:49]MH_SAM_APDU [12:42:49]CAPDU: 80 13 01 00 [12:42:49]Write to MH i2c: E2 08 00 32 0F 80 13 01 00 00 00 00 00 BE [12:42:49]Write i2c OK [12:42:49]MH_I2C_Read... [12:42:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:49]Read from MH i2c: E2 [12:42:49]MH_I2C_Read... [12:42:49]Read from MH i2c: E2 0E 00 [12:42:49]MH_I2C_Read... [12:42:49]Read from MH i2c: E2 0E 00 32 0F 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 97 [12:42:49]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:42:49]wFMCommunicate OK [12:42:49]SAM_PROTO_GetShiftState done [12:42:49]FM_GetShiftState done [12:42:49]req_shift_opened done [12:42:49]requested_item shift.open_date is exist - process it [12:42:49]req_shift_open_date [12:42:49]req_shift_open_date done [12:42:49]produce_requested_data done [12:42:49]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165275,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [12:42:49]process_action_free close_receipt [12:42:49]json_value_free [12:42:49]json_value_free done [12:42:49]process_json_proto returns [12:42:49]Send response to host [12:42:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165275,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [12:42:49]free response buf [12:42:49]execute_script done [12:42:49]execute_script returns [12:42:49]free content buf [12:42:49]Sock 10.Close socket [12:42:49]Sock 10.Thread stoped [12:42:53]OFD Sender: No OFD packet to send [12:42:58]OFD Sender: No OFD packet to send [12:43:03]OFD Sender: No OFD packet to send [12:43:08]OFD Sender: No OFD packet to send [12:43:13]OFD Sender: No OFD packet to send [12:43:18]OFD Sender: No OFD packet to send [12:43:23]OFD Sender: No OFD packet to send [12:43:28]OFD Sender: No OFD packet to send [12:43:33]OFD Sender: No OFD packet to send [12:43:38]OFD Sender: No OFD packet to send [12:43:43]OFD Sender: No OFD packet to send [12:43:48]OFD Sender: No OFD packet to send [12:43:53]OFD Sender: No OFD packet to send [12:43:58]OFD Sender: No OFD packet to send [12:44:03]OFD Sender: No OFD packet to send [12:44:08]OFD Sender: No OFD packet to send [12:44:13]OFD Sender: No OFD packet to send [12:44:18]OFD Sender: No OFD packet to send [12:44:23]OFD Sender: No OFD packet to send [12:44:28]OFD Sender: No OFD packet to send [12:44:29]accept exits with 8 [12:44:29]New connection [12:44:29]New thread 3066711396 created [12:44:29]Thread 3066854756 joined [12:44:29]Waiting for new connection... [12:44:29] Sock 8.Parse request [12:44:29]Sock 8.Check first char [12:44:29]Sock 8.First char is OK [12:44:29]request: POST /json_proto HTTP/1.0 [12:44:29]Method: POST [12:44:29]URL: /json_proto [12:44:29]Method is POST - this is cgi request [12:44:29]url: /json_proto [12:44:29]query_string will be loaded in cgi processing [12:44:29]execute_cgi json_proto POST (null) [12:44:29]execute_cgi path=json_proto method=POST [12:44:29]POST find Content-Length [12:44:29]Host: 172.17.56.4:8080 [12:44:29]Content-Length: 791 [12:44:29]Content-Type: application/json [12:44:29] [12:44:29]POST finish read [12:44:29]Found Content-Length = 791 [12:44:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459386", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 10.000, "sum" : 652.20, "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 652.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:44:29]execute_script... [12:44: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)459386", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 10.000, "sum" : 652.20, "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 652.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:44:29]POST & json_proto [12:44:29]process_json_proto [12:44:29]json parsed OK: [12:44:29]protocol is kg_v1.0 [12:44:29]action value=close_receipt [12:44:29]process_action close_receipt [12:44:29]cmd_close_receipt [12:44:29]MH_GetDate [12:44:29]Write to MH i2c: F0 00 00 33 0F 31 [12:44:29]Write i2c OK [12:44:29]MH_I2C_Read... [12:44:29]Read from MH i2c: F0 [12:44:29]MH_I2C_Read... [12:44:29]Read from MH i2c: F0 09 00 [12:44:29]MH_I2C_Read... [12:44:29]Read from MH i2c: F0 09 00 33 0F 00 AE 19 95 66 C9 DC B2 64 B7 [12:44:29]GetLastDocTimeStamp 1721047366 [12:44:29]current date 1721047470 [12:44:29]FM_GetShiftState [12:44:29]SAM_PROTO_GetShiftState [12:44:29]wFMCommunicate request_size=4 [12:44:29]MH_SAM_APDU [12:44:29]CAPDU: 80 13 01 00 [12:44:29]Write to MH i2c: E2 08 00 34 0F 80 13 01 00 00 00 00 00 C0 [12:44:29]Write i2c OK [12:44:29]MH_I2C_Read... [12:44:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:44:29]Read from MH i2c: E2 [12:44:29]MH_I2C_Read... [12:44:29]Read from MH i2c: E2 0E 00 [12:44:29]MH_I2C_Read... [12:44:29]Read from MH i2c: E2 0E 00 34 0F 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 99 [12:44:29]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:44:29]wFMCommunicate OK [12:44:29]SAM_PROTO_GetShiftState done [12:44:29]FM_GetShiftState done [12:44:29]opened in 1721003876 [12:44:29]opened+sec_in_day 1721090276 [12:44:29]quantity*price = 65220 [12:44:29]sum+1 = 65221 [12:44:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 652.20 НСП 1% : 5.77 НДС 12% : 69.26 Наличными: 0.00 Безнал.: 652.20 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 149 15.07.2024 12:44 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 165276 ФПД: 41861535946304 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T124430&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165276&fm=41861535946304&tin=02508201610067®Number=0000000000090829&sum=65220 [12:44:30]StoreToDocumentArchive [12:44:30]shift 448 fd 165276 [12:44:30]save to /storage/0448/doc_00165276 [12:44:30]save last doc name /storage/0448/doc_00165276 to /storage/kkm_last_doc_name [12:44:30]save OK [12:44:30]Clear old archive folders... [12:44:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:44:30]tlvbuf is 01855B60 [12:44:30]SAM_PROTO_ClearQueue [12:44:30]wFMCommunicate request_size=4 [12:44:30]MH_SAM_APDU [12:44:30]CAPDU: 80 09 00 00 [12:44:30]Write to MH i2c: E2 08 00 41 0F 80 09 00 00 00 00 00 00 C2 [12:44:30]Write i2c OK [12:44:30]MH_I2C_Read... [12:44:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:44:30]Read from MH i2c: E2 [12:44:30]MH_I2C_Read... [12:44:30]Read from MH i2c: E2 03 00 [12:44:30]MH_I2C_Read... [12:44:30]Read from MH i2c: E2 03 00 41 0F 00 90 00 C4 [12:44:30]RAPDU: 90 00 [12:44:30]wFMCommunicate OK [12:44:30]SAM_PROTO_ClearQueue done [12:44:30]KKMCreateOFDPacket [12:44:30]OFDProtocolAddRootSTLVToBuf [12:44:30]FM_MakeSignedData [12:44:30]FM_MakeSignedData [12:44:30]SAM_PROTO_SignData [12:44:30]wFMCommunicate request_size=4 [12:44:30]MH_SAM_APDU [12:44:30]CAPDU: 80 0D 01 02 [12:44:30]Write to MH i2c: E2 08 00 42 0F 80 0D 01 02 00 00 00 00 CA [12:44:30]Write i2c OK [12:44:30]MH_I2C_Read... [12:44:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:44:30]Read from MH i2c: E2 [12:44:30]MH_I2C_Read... [12:44:30]Read from MH i2c: E2 03 00 [12:44:30]MH_I2C_Read... [12:44:30]Read from MH i2c: E2 03 00 42 0F 00 90 00 C5 [12:44:30]RAPDU: 90 00 [12:44:30]wFMCommunicate OK [12:44:30]wFMCommunicate request_size=255 [12:44:30]MH_SAM_APDU [12:44: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 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 AE 19 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9C 85 02 00 35 04 06 00 26 [12:44:30]Write to MH i2c: E2 02 01 43 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 AE 19 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9C 85 02 00 35 04 06 00 26 00 00 B7 [12:44:30]Write i2c OK [12:44:30]MH_I2C_Read... [12:44:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:44:30]Read from MH i2c: E2 [12:44:30]MH_I2C_Read... [12:44:30]Read from MH i2c: E2 03 00 [12:44:30]MH_I2C_Read... [12:44:30]Read from MH i2c: E2 03 00 43 0F 00 90 00 C6 [12:44:30]RAPDU: 90 00 [12:44:30]wFMCommunicate OK [12:44:30]wFMCommunicate request_size=10 [12:44:30]MH_SAM_APDU [12:44:30]CAPDU: 80 0D 02 02 05 12 A5 FA D6 40 [12:44:30]Write to MH i2c: E2 0D 00 44 0F 80 0D 02 02 05 00 12 A5 FA D6 40 00 00 9E [12:44:30]Write i2c OK [12:44:30]MH_I2C_Read... [12:44:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:44:30]Read from MH i2c: E2 [12:44:30]MH_I2C_Read... [12:44:30]Read from MH i2c: E2 03 00 [12:44:30]MH_I2C_Read... [12:44:30]Read from MH i2c: E2 03 00 44 0F 00 90 00 C7 [12:44:30]RAPDU: 90 00 [12:44:30]wFMCommunicate OK [12:44:30]wFMCommunicate request_size=4 [12:44:30]MH_SAM_APDU [12:44:30]CAPDU: 80 0D 03 02 [12:44:30]Write to MH i2c: E2 08 00 45 0F 80 0D 03 02 00 00 00 00 CF [12:44:30]Write i2c OK [12:44:30]MH_I2C_Read... [12:44:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:44:30]Read from MH i2c: E2 [12:44:30]MH_I2C_Read... [12:44:30]Read from MH i2c: E2 0B 00 [12:44:30]MH_I2C_Read... [12:44:30]Read from MH i2c: E2 0B 00 45 0F 00 49 9A 21 34 D2 F7 49 D6 90 00 F0 [12:44:30]RAPDU: 49 9A 21 34 D2 F7 49 D6 90 00 [12:44:30]wFMCommunicate OK [12:44:30]SAM_PROTO_SignData done [12:44:30]FM_MakeSignedData done [12:44:30]CreateOFDProtocolMessage [12:44:30]wFMCommunicate request_size=4 [12:44:30]MH_SAM_APDU [12:44:30]CAPDU: 80 11 00 00 [12:44:30]Write to MH i2c: E2 08 00 46 0F 80 11 00 00 00 00 00 00 CF [12:44:30]Write i2c OK [12:44:30]MH_I2C_Read... [12:44:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:30]Read from MH i2c: E2 [12:44:30]MH_I2C_Read... [12:44:30]Read from MH i2c: E2 17 00 [12:44:30]MH_I2C_Read... [12:44:30]Read from MH i2c: E2 17 00 46 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 25 [12:44:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:44:30]wFMCommunicate OK [12:44:30]CreateOFDProtocolMessage done [12:44:30]OFDSenderStorePacket 165276 [12:44:30]StoreOFDPacket docnum=165276 [12:44:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 54 64 07 01 0B AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 AE 19 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9C 85 02 00 35 04 06 00 26 12 A5 FA D6 40 49 9A 21 34 D2 F7 49 D6 [12:44:30]CheckFolder [12:44:30]dirname=/storage/ofd_packets [12:44:30]CheckFolder done [12:44:30]ProducePacketName [12:44:30]name=ofd_packets/00165276 [12:44:30]NVStorageSaveData ofd_packets/00165276 [12:44:30]File name is /storage/ofd_packets/00165276 [12:44:30]Write 301 bytes [12:44:30]NVStorageSaveData done [12:44:30]OFDSenderStorePacket done [12:44:30]KKMCreateOFDPacket done [12:44:30]NVStorageSaveData kkm_last_timestamp [12:44:30]File name is /storage/kkm_last_timestamp [12:44:30]Write 4 bytes [12:44:30]NVStorageSaveData done [12:44:30]ExternCall_PrintAddStr [12:44:30]wPrintStart [12:44:30]Write to MH i2c: 01 00 00 47 0F 56 [12:44:30]Write i2c OK [12:44:30]MH_I2C_Read... [12:44:30]Read from MH i2c: 01 [12:44:30]MH_I2C_Read... [12:44:30]Read from MH i2c: 01 07 00 [12:44:30]MH_I2C_Read... [12:44:30]Read from MH i2c: 01 07 00 47 0F 00 00 00 00 00 FF 0F 6B [12:44:30]RasterBufferAndPrint [12:44:30]line Счет N : (1)459386 [12:44:30]line ИНН: 02508201610067 [12:44:30]line Контрольно-Кассовый Чек [12:44:30]line ПРОДАЖА [12:44:30]line ТРК (МРК, ГНК) : 12 [12:44:30]line Товар: 2710124130 [12:44:30]line Аи-92-К-5 [12:44:30]line 10.000 * 65.22 [12:44:30]line = 652.20 [12:44:30]line НДС 12% НСП 1% [12:44:30]line > о реализуемом товаре [12:44:30]line ИТОГО: 652.20 [12:44:30]line НСП 1% : 5.77 [12:44:30]line НДС 12% : 69.26 [12:44:30]line Наличными: 0.00 [12:44:30]line Безнал.: 652.20 [12:44:30]line Место: АЗС № 72 "Партнер Нефть" [12:44:30]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:44:30]line СНО: Общий режим [12:44:30]line Чек 149 15.07.2024 12:44 [12:44:30]line Смена: 448 ФФД: 1.0 [12:44:30]line ЗНМ: 0300000160 [12:44:30]line РНМ: 0000000000090829 [12:44:30]line Версия ККМ: 001 [12:44:30]line Платежная система: KICB Банк [12:44:30]line ФМ: 0000000000874718 [12:44:30]line ФД: 165276 [12:44:30]line ФПД: 41861535946304 [12:44:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T124430&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165276&fm=41861535946304&tin=02508201610067®Number=0000000000090829&sum=65220 [12:44:30]written 0, free lines is 4095 [12:44:30]OFD Sender: Processing packet 165276 [packets to send 106, broken 105] [12:44:30]ProducePacketName [12:44:30]name=ofd_packets/00165276 [12:44:30]OFD Sender: To server: pG, [12:44:31]CommunicateWithHost lk.salyk.kg:30040 [12:44:31]ConnectInit lk.salyk.kg [12:44:31]Connected sock=10 [12:44: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 37 31 38 0F 01 00 00 54 64 07 01 0B AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 AE 19 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9C 85 02 00 35 04 06 00 26 12 A5 FA D6 40 49 9A 21 34 D2 F7 49 D6 [12:44:31]Write to MH i2c: 01 00 00 70 0F 7F [12:44:31]Write i2c OK [12:44:31]MH_I2C_Read... [12:44:31]Read from MH i2c: 01 [12:44:31]MH_I2C_Read... [12:44:31]Read from MH i2c: 01 07 00 [12:44:31]MH_I2C_Read... [12:44:31]Read from MH i2c: 01 07 00 70 0F 00 00 00 00 00 0A 0D 9D [12:44:31]RasterBufferAndPrint [12:44:31]line [12:44:31]line [12:44:31]line [12:44:31]line [12:44:31]line [12:44:31]written 0, free lines is 3344 [12:44:31]MH_Cut [12:44:31]Write to MH i2c: D1 01 00 77 0F 01 58 [12:44:31]Write i2c OK [12:44:31]MH_I2C_Read... [12:44:31]Read from MH i2c: D1 [12:44:31]MH_I2C_Read... [12:44:31]Read from MH i2c: D1 01 00 [12:44:31]MH_I2C_Read... [12:44:31]Read from MH i2c: D1 01 00 77 0F 00 57 [12:44:31]Write to MH i2c: 01 00 00 78 0F 87 [12:44:31]Write i2c OK [12:44:31]MH_I2C_Read... [12:44:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 15 7F 47 00 48 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 9C 85 02 00 F4 03 04 00 38 C0 94 66 B6 04 01 00 00 0C 46 E3 E8 BD 1B 62 55 [12:44:31]CommunicateWithHost err = 0 [12:44:31]CheckOFDResponse [12:44:31]1017 (14) - 77093643461234 [12:44:31]1041 (16) - 0000000000874718 [12:44:31]1040 (4) - 165276 [12:44:31]1012 (4) - 15.07.2024 06:22 [12:44:31]1206 (1) - 0 [12:44:31]OFD Sender: Remove packet 165276 [12:44:31]ProducePacketName [12:44:31]name=ofd_packets/00165276 [12:44:31]NVStorageDeleteData [12:44:31]*** Cut start [12:44:31]*** Partial cut [12:44:31]*** CUTSNS_PIN = 1 [12:44:31]*** CUTSNS_PIN = 0 [12:44:31]OFD Sender: No OFD packet to send [12:44:32]*** Brake cut motor [12:44:32]Read from MH i2c: 01 [12:44:32]MH_I2C_Read... [12:44:32]*** Stop cut motor [12:44:32]*** Cut end [12:44:32]Read from MH i2c: 01 07 00 [12:44:32]MH_I2C_Read... [12:44:32]Read from MH i2c: 01 07 00 78 0F 00 00 00 00 00 FF 0F 9C [12:44:32]process_action close_receipt done [12:44:32]requested_data is exist [12:44:32]produce_requested_data [12:44:32]requested_item fm.sn is exist - process it [12:44:32]wFMCommunicate request_size=4 [12:44:32]MH_SAM_APDU [12:44:32]CAPDU: 80 11 00 00 [12:44:32]Write to MH i2c: E2 08 00 79 0F 80 11 00 00 00 00 00 00 02 [12:44:32]Write i2c OK [12:44:32]MH_I2C_Read... [12:44:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:32]Read from MH i2c: E2 [12:44:32]MH_I2C_Read... [12:44:32]Read from MH i2c: E2 17 00 [12:44:32]MH_I2C_Read... [12:44:32]Read from MH i2c: E2 17 00 79 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 58 [12:44:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:44:32]wFMCommunicate OK [12:44:32]requested_item fd.num is exist - process it [12:44:32]SAM_PROTO_GetFieldsCounters [12:44:32]wFMCommunicate request_size=4 [12:44:32]MH_SAM_APDU [12:44:32]CAPDU: 80 13 00 00 [12:44:32]Write to MH i2c: E2 08 00 7A 0F 80 13 00 00 00 00 00 00 05 [12:44:32]Write i2c OK [12:44:32]MH_I2C_Read... [12:44:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:44:32]Read from MH i2c: E2 [12:44:32]MH_I2C_Read... [12:44:32]Read from MH i2c: E2 62 00 [12:44:32]MH_I2C_Read... [12:44:32]Read from MH i2c: E2 62 00 7A 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 9C 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [12:44:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 9C 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:44:32]wFMCommunicate OK [12:44:32]SAM_PROTO_GetFieldsCounters done [12:44:32]requested_item shift.num is exist - process it [12:44:32]requested_item shift.opened is exist - process it [12:44:32]req_shift_opened [12:44:32]FM_GetShiftState [12:44:32]SAM_PROTO_GetShiftState [12:44:32]wFMCommunicate request_size=4 [12:44:32]MH_SAM_APDU [12:44:32]CAPDU: 80 13 01 00 [12:44:32]Write to MH i2c: E2 08 00 7B 0F 80 13 01 00 00 00 00 00 07 [12:44:32]Write i2c OK [12:44:32]MH_I2C_Read... [12:44:32]Read from MH i2c: E2 [12:44:32]MH_I2C_Read... [12:44:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:44:32]Read from MH i2c: E2 0E 00 [12:44:32]MH_I2C_Read... [12:44:32]Read from MH i2c: E2 0E 00 7B 0F 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 E0 [12:44:32]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:44:32]wFMCommunicate OK [12:44:32]SAM_PROTO_GetShiftState done [12:44:32]FM_GetShiftState done [12:44:32]req_shift_opened done [12:44:32]requested_item shift.open_date is exist - process it [12:44:32]req_shift_open_date [12:44:32]req_shift_open_date done [12:44:32]produce_requested_data done [12:44:32]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165276,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [12:44:32]process_action_free close_receipt [12:44:32]json_value_free [12:44:32]json_value_free done [12:44:32]process_json_proto returns [12:44:32]Send response to host [12:44:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165276,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [12:44:32]free response buf [12:44:32]execute_script done [12:44:32]execute_script returns [12:44:32]free content buf [12:44:32]Sock 8.Close socket [12:44:32]Sock 8.Thread stoped [12:44:36]OFD Sender: No OFD packet to send [12:44:41]OFD Sender: No OFD packet to send [12:44:46]OFD Sender: No OFD packet to send [12:44: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:34]accept exits with 9 [12:46:34]New connection [12:46:34]New thread 3066854756 created [12:46:34]Thread 3066711396 joined [12:46:34]Waiting for new connection... [12:46:34] Sock 9.Parse request [12:46:34]Sock 9.Check first char [12:46:34]Sock 9.First char is OK [12:46:34]request: POST /json_proto HTTP/1.0 [12:46:34]Method: POST [12:46:34]URL: /json_proto [12:46:34]Method is POST - this is cgi request [12:46:34]url: /json_proto [12:46:34]query_string will be loaded in cgi processing [12:46:34]execute_cgi json_proto POST (null) [12:46:34]execute_cgi path=json_proto method=POST [12:46:34]POST find Content-Length [12:46:34]Host: 172.17.56.4:8080 [12:46:34]Content-Length: 677 [12:46:34]Content-Type: application/json [12:46:34] [12:46:34]POST finish read [12:46:34]Found Content-Length = 677 [12:46:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459387", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:34]execute_script... [12: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)459387", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:34]POST & json_proto [12:46:34]process_json_proto [12:46:34]json parsed OK: [12:46:34]protocol is kg_v1.0 [12:46:34]action value=close_receipt [12:46:34]process_action close_receipt [12:46:34]cmd_close_receipt [12:46:34]MH_GetDate [12:46:34]Write to MH i2c: F0 00 00 7C 0F 7A [12:46:34]Write i2c OK [12:46:34]MH_I2C_Read... [12:46:34]Read from MH i2c: F0 [12:46:34]MH_I2C_Read... [12:46:34]Read from MH i2c: F0 09 00 [12:46:34]MH_I2C_Read... [12:46:34]Read from MH i2c: F0 09 00 7C 0F 00 2B 1A 95 66 C9 DC B2 64 7E [12:46:34]GetLastDocTimeStamp 1721047470 [12:46:34]current date 1721047595 [12:46:34]FM_GetShiftState [12:46:34]SAM_PROTO_GetShiftState [12:46:34]wFMCommunicate request_size=4 [12:46:34]MH_SAM_APDU [12:46:34]CAPDU: 80 13 01 00 [12:46:34]Write to MH i2c: E2 08 00 7D 0F 80 13 01 00 00 00 00 00 09 [12:46:34]Write i2c OK [12:46:34]MH_I2C_Read... [12:46:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:34]Read from MH i2c: E2 [12:46:34]MH_I2C_Read... [12:46:34]Read from MH i2c: E2 0E 00 [12:46:34]MH_I2C_Read... [12:46:34]Read from MH i2c: E2 0E 00 7D 0F 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 E2 [12:46:34]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:46:34]wFMCommunicate OK [12:46:34]SAM_PROTO_GetShiftState done [12:46:34]FM_GetShiftState done [12:46:34]opened in 1721003876 [12:46:34]opened+sec_in_day 1721090276 [12:46:34]quantity*price = 20003 [12:46:34]sum+1 = 20004 [12:46:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 150 15.07.2024 12:46 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165277 ФПД: 67309206616144 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T124635&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165277&fm=67309206616144&tin=02508201610067®Number=0000000000090829&sum=20000 [12:46:35]StoreToDocumentArchive [12:46:35]shift 448 fd 165277 [12:46:35]save to /storage/0448/doc_00165277 [12:46:35]save last doc name /storage/0448/doc_00165277 to /storage/kkm_last_doc_name [12:46:35]save OK [12:46:35]Clear old archive folders... [12:46:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:46:35]tlvbuf is 018613A0 [12:46:35]SAM_PROTO_ClearQueue [12:46:35]wFMCommunicate request_size=4 [12:46:35]MH_SAM_APDU [12:46:35]CAPDU: 80 09 00 00 [12:46:35]Write to MH i2c: E2 08 00 8A 0F 80 09 00 00 00 00 00 00 0B [12:46:35]Write i2c OK [12:46:35]MH_I2C_Read... [12:46:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:46:35]Read from MH i2c: E2 [12:46:35]MH_I2C_Read... [12:46:35]Read from MH i2c: E2 03 00 [12:46:35]MH_I2C_Read... [12:46:35]Read from MH i2c: E2 03 00 8A 0F 00 90 00 0D [12:46:35]RAPDU: 90 00 [12:46:35]wFMCommunicate OK [12:46:35]SAM_PROTO_ClearQueue done [12:46:35]KKMCreateOFDPacket [12:46:35]OFDProtocolAddRootSTLVToBuf [12:46:35]FM_MakeSignedData [12:46:35]FM_MakeSignedData [12:46:35]SAM_PROTO_SignData [12:46:35]wFMCommunicate request_size=4 [12:46:35]MH_SAM_APDU [12:46:35]CAPDU: 80 0D 01 02 [12:46:35]Write to MH i2c: E2 08 00 8B 0F 80 0D 01 02 00 00 00 00 13 [12:46:35]Write i2c OK [12:46:35]MH_I2C_Read... [12:46:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:46:35]Read from MH i2c: E2 [12:46:35]MH_I2C_Read... [12:46:35]Read from MH i2c: E2 03 00 [12:46:35]MH_I2C_Read... [12:46:35]Read from MH i2c: E2 03 00 8B 0F 00 90 00 0E [12:46:35]RAPDU: 90 00 [12:46:35]wFMCommunicate OK [12:46:35]wFMCommunicate request_size=255 [12:46:35]MH_SAM_APDU [12: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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 2B 1A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9D 85 02 00 35 04 06 00 3D [12:46:35]Write to MH i2c: E2 02 01 8C 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 2B 1A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9D 85 02 00 35 04 06 00 3D 00 00 25 [12:46:35]Write i2c OK [12:46:35]MH_I2C_Read... [12:46:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:36]Read from MH i2c: E2 [12:46:36]MH_I2C_Read... [12:46:36]Read from MH i2c: E2 03 00 [12:46:36]MH_I2C_Read... [12:46:36]Read from MH i2c: E2 03 00 8C 0F 00 90 00 0F [12:46:36]RAPDU: 90 00 [12:46:36]wFMCommunicate OK [12:46:36]wFMCommunicate request_size=10 [12:46:36]MH_SAM_APDU [12:46:36]CAPDU: 80 0D 02 02 05 37 A5 59 B8 50 [12:46:36]Write to MH i2c: E2 0D 00 8D 0F 80 0D 02 02 05 00 37 A5 59 B8 50 00 00 5D [12:46:36]Write i2c OK [12:46:36]MH_I2C_Read... [12:46:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:36]Read from MH i2c: E2 [12:46:36]MH_I2C_Read... [12:46:36]Read from MH i2c: E2 03 00 [12:46:36]MH_I2C_Read... [12:46:36]Read from MH i2c: E2 03 00 8D 0F 00 90 00 10 [12:46:36]RAPDU: 90 00 [12:46:36]wFMCommunicate OK [12:46:36]wFMCommunicate request_size=4 [12:46:36]MH_SAM_APDU [12:46:36]CAPDU: 80 0D 03 02 [12:46:36]Write to MH i2c: E2 08 00 8E 0F 80 0D 03 02 00 00 00 00 18 [12:46:36]Write i2c OK [12:46:36]MH_I2C_Read... [12:46:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:46:36]Read from MH i2c: E2 [12:46:36]MH_I2C_Read... [12:46:36]Read from MH i2c: E2 0B 00 [12:46:36]MH_I2C_Read... [12:46:36]Read from MH i2c: E2 0B 00 8E 0F 00 52 90 A2 B9 C3 28 54 29 90 00 BE [12:46:36]RAPDU: 52 90 A2 B9 C3 28 54 29 90 00 [12:46:36]wFMCommunicate OK [12:46:36]SAM_PROTO_SignData done [12:46:36]FM_MakeSignedData done [12:46:36]CreateOFDProtocolMessage [12:46:36]wFMCommunicate request_size=4 [12:46:36]MH_SAM_APDU [12:46:36]CAPDU: 80 11 00 00 [12:46:36]Write to MH i2c: E2 08 00 8F 0F 80 11 00 00 00 00 00 00 18 [12:46:36]Write i2c OK [12:46:36]MH_I2C_Read... [12:46:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:36]Read from MH i2c: E2 [12:46:36]MH_I2C_Read... [12:46:36]Read from MH i2c: E2 17 00 [12:46:36]MH_I2C_Read... [12:46:36]Read from MH i2c: E2 17 00 8F 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6E [12:46:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:46:36]wFMCommunicate OK [12:46:36]CreateOFDProtocolMessage done [12:46:36]OFDSenderStorePacket 165277 [12:46:36]StoreOFDPacket docnum=165277 [12:46:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 75 3E 07 01 10 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 2B 1A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9D 85 02 00 35 04 06 00 3D 37 A5 59 B8 50 52 90 A2 B9 C3 28 54 29 [12:46:36]CheckFolder [12:46:36]dirname=/storage/ofd_packets [12:46:36]CheckFolder done [12:46:36]ProducePacketName [12:46:36]name=ofd_packets/00165277 [12:46:36]NVStorageSaveData ofd_packets/00165277 [12:46:36]File name is /storage/ofd_packets/00165277 [12:46:36]Write 301 bytes [12:46:36]NVStorageSaveData done [12:46:36]OFDSenderStorePacket done [12:46:36]KKMCreateOFDPacket done [12:46:36]NVStorageSaveData kkm_last_timestamp [12:46:36]File name is /storage/kkm_last_timestamp [12:46:36]Write 4 bytes [12:46:36]NVStorageSaveData done [12:46:36]ExternCall_PrintAddStr [12:46:36]wPrintStart [12:46:36]Write to MH i2c: 01 00 00 90 0F 9F [12:46:36]Write i2c OK [12:46:36]MH_I2C_Read... [12:46:36]Read from MH i2c: 01 [12:46:36]MH_I2C_Read... [12:46:36]Read from MH i2c: 01 07 00 [12:46:36]MH_I2C_Read... [12:46:36]Read from MH i2c: 01 07 00 90 0F 00 00 00 00 00 FF 0F B4 [12:46:36]RasterBufferAndPrint [12:46:36]line Счет N : (1)459387 [12:46:36]line ИНН: 02508201610067 [12:46:36]line Контрольно-Кассовый Чек [12:46:36]line ПРОДАЖА [12:46:36]line ТРК (МРК, ГНК) : 12 [12:46:36]line Товар: 2710124130 [12:46:36]line Аи-92-К-5 [12:46:36]line 3.040 * 65.80 [12:46:36]line = 200.03 [12:46:36]line НДС 12% НСП 1% [12:46:36]line > о реализуемом товаре [12:46:36]line ОКРУГЛЕНИЕ: -0.03 [12:46:36]line ИТОГО: 200.00 [12:46:36]line Внесено: 200.00 [12:46:36]line СДАЧА: 0.00 [12:46:36]line НСП 1% : 1.77 [12:46:36]line НДС 12% : 21.24 [12:46:36]line Наличными: 200.00 [12:46:36]line Безнал.: 0.00 [12:46:36]line Место: АЗС № 72 "Партнер Нефть" [12:46:36]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:46:36]line СНО: Общий режим [12:46:36]line Чек 150 15.07.2024 12:46 [12:46:36]line Смена: 448 ФФД: 1.0 [12:46:36]line ЗНМ: 0300000160 [12:46:36]line РНМ: 0000000000090829 [12:46:36]line Версия ККМ: 001 [12:46:36]line ФМ: 0000000000874718 [12:46:36]line ФД: 165277 [12:46:36]line ФПД: 67309206616144 [12:46:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T124635&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165277&fm=67309206616144&tin=02508201610067®Number=0000000000090829&sum=20000 [12:46:36]written 0, free lines is 4095 [12:46:36]OFD Sender: Processing packet 165277 [packets to send 106, broken 105] [12:46:36]ProducePacketName [12:46:36]name=ofd_packets/00165277 [12:46:36]OFD Sender: To server: pG, [12:46:36]CommunicateWithHost lk.salyk.kg:30040 [12:46:36]ConnectInit lk.salyk.kg [12:46:36]Connected sock=10 [12: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 37 31 38 0F 01 00 00 75 3E 07 01 10 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 2B 1A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9D 85 02 00 35 04 06 00 3D 37 A5 59 B8 50 52 90 A2 B9 C3 28 54 29 [12: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 37 31 38 4F 00 00 00 1B 82 47 00 8A 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9D 85 02 00 F4 03 04 00 B5 C0 94 66 B6 04 01 00 00 8E B6 6A 80 DA A2 33 25 [12:46:36]CommunicateWithHost err = 0 [12:46:36]CheckOFDResponse [12:46:36]1017 (14) - 77093643461234 [12:46:36]1041 (16) - 0000000000874718 [12:46:36]1040 (4) - 165277 [12:46:36]1012 (4) - 15.07.2024 06:24 [12:46:36]1206 (1) - 0 [12:46:36]OFD Sender: Remove packet 165277 [12:46:36]ProducePacketName [12:46:36]name=ofd_packets/00165277 [12:46:36]NVStorageDeleteData [12:46:36]Write to MH i2c: 01 00 00 BA 0F C9 [12:46:36]Write i2c OK [12:46:36]MH_I2C_Read... [12:46:36]Read from MH i2c: 01 [12:46:36]MH_I2C_Read... [12:46:36]Read from MH i2c: 01 07 00 [12:46:36]MH_I2C_Read... [12:46:36]Read from MH i2c: 01 07 00 BA 0F 00 00 00 00 00 F0 0C CC [12:46:36]RasterBufferAndPrint [12:46:36]line [12:46:36]line [12:46:36]line [12:46:36]line [12:46:36]line [12:46:36]written 0, free lines is 3318 [12:46:36]MH_Cut [12:46:36]Write to MH i2c: D1 01 00 C1 0F 01 A2 [12:46:36]Write i2c OK [12:46:36]MH_I2C_Read... [12:46:36]Read from MH i2c: D1 [12:46:36]MH_I2C_Read... [12:46:36]Read from MH i2c: D1 01 00 [12:46:36]MH_I2C_Read... [12:46:36]Read from MH i2c: D1 01 00 C1 0F 00 A1 [12:46:36]Write to MH i2c: 01 00 00 C2 0F D1 [12:46:36]Write i2c OK [12:46:36]MH_I2C_Read... [12:46:37]OFD Sender: No OFD packet to send [12:46:37]*** Cut start [12:46:37]*** Partial cut [12:46:37]*** CUTSNS_PIN = 1 [12:46:37]*** CUTSNS_PIN = 0 [12:46:37]*** Brake cut motor [12:46:38]Read from MH i2c: 01 [12:46:38]MH_I2C_Read... [12:46:38]*** Stop cut motor [12:46:38]*** Cut end [12:46:38]Read from MH i2c: 01 07 00 [12:46:38]MH_I2C_Read... [12:46:38]Read from MH i2c: 01 07 00 C2 0F 00 00 00 00 00 FF 0F E6 [12:46:38]process_action close_receipt done [12:46:38]requested_data is exist [12:46:38]produce_requested_data [12:46:38]requested_item fm.sn is exist - process it [12:46:38]wFMCommunicate request_size=4 [12:46:38]MH_SAM_APDU [12:46:38]CAPDU: 80 11 00 00 [12:46:38]Write to MH i2c: E2 08 00 C3 0F 80 11 00 00 00 00 00 00 4C [12:46:38]Write i2c OK [12:46:38]MH_I2C_Read... [12:46:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:38]Read from MH i2c: E2 [12:46:38]MH_I2C_Read... [12:46:38]Read from MH i2c: E2 17 00 [12:46:38]MH_I2C_Read... [12:46:38]Read from MH i2c: E2 17 00 C3 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A2 [12:46:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:46:38]wFMCommunicate OK [12:46:38]requested_item fd.num is exist - process it [12:46:38]SAM_PROTO_GetFieldsCounters [12:46:38]wFMCommunicate request_size=4 [12:46:38]MH_SAM_APDU [12:46:38]CAPDU: 80 13 00 00 [12:46:38]Write to MH i2c: E2 08 00 C4 0F 80 13 00 00 00 00 00 00 4F [12:46:38]Write i2c OK [12:46:38]MH_I2C_Read... [12:46:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:46:38]Read from MH i2c: E2 [12:46:38]MH_I2C_Read... [12:46:38]Read from MH i2c: E2 62 00 [12:46:38]MH_I2C_Read... [12:46:38]Read from MH i2c: E2 62 00 C4 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 9D 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [12:46: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 9D 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:46:38]wFMCommunicate OK [12:46:38]SAM_PROTO_GetFieldsCounters done [12:46:38]requested_item shift.num is exist - process it [12:46:38]requested_item shift.opened is exist - process it [12:46:38]req_shift_opened [12:46:38]FM_GetShiftState [12:46:38]SAM_PROTO_GetShiftState [12:46:38]wFMCommunicate request_size=4 [12:46:38]MH_SAM_APDU [12:46:38]CAPDU: 80 13 01 00 [12:46:38]Write to MH i2c: E2 08 00 C5 0F 80 13 01 00 00 00 00 00 51 [12:46:38]Write i2c OK [12:46:38]MH_I2C_Read... [12:46:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:38]Read from MH i2c: E2 [12:46:38]MH_I2C_Read... [12:46:38]Read from MH i2c: E2 0E 00 [12:46:38]MH_I2C_Read... [12:46:38]Read from MH i2c: E2 0E 00 C5 0F 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 2A [12:46:38]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:46:38]wFMCommunicate OK [12:46:38]SAM_PROTO_GetShiftState done [12:46:38]FM_GetShiftState done [12:46:38]req_shift_opened done [12:46:38]requested_item shift.open_date is exist - process it [12:46:38]req_shift_open_date [12:46:38]req_shift_open_date done [12:46:38]produce_requested_data done [12:46:38]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165277,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [12:46:38]process_action_free close_receipt [12:46:38]json_value_free [12:46:38]json_value_free done [12:46:38]process_json_proto returns [12:46:38]Send response to host [12:46:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165277,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [12:46:38]free response buf [12:46:38]execute_script done [12:46:38]execute_script returns [12:46:38]free content buf [12:46:38]Sock 9.Close socket [12:46:38]Sock 9.Thread stoped [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:47]OFD Sender: No OFD packet to send [12:47:52]OFD Sender: No OFD packet to send [12:47:57]OFD Sender: No OFD packet to send [12:48:02]OFD Sender: No OFD packet to send [12:48:07]OFD Sender: No OFD packet to send [12:48:12]OFD Sender: No OFD packet to send [12:48:17]OFD Sender: No OFD packet to send [12:48:22]OFD Sender: No OFD packet to send [12:48:27]OFD Sender: No OFD packet to send [12:48:32]OFD Sender: No OFD packet to send [12:48:33]accept exits with 8 [12:48:33]New connection [12:48:33]New thread 3066711396 created [12:48:33]Thread 3066854756 joined [12:48:33]Waiting for new connection... [12:48:33] Sock 8.Parse request [12:48:33]Sock 8.Check first char [12:48:33]Sock 8.First char is OK [12:48:33]request: POST /json_proto HTTP/1.0 [12:48:33]Method: POST [12:48:33]URL: /json_proto [12:48:33]Method is POST - this is cgi request [12:48:33]url: /json_proto [12:48:33]query_string will be loaded in cgi processing [12:48:33]execute_cgi json_proto POST (null) [12:48:33]execute_cgi path=json_proto method=POST [12:48:33]POST find Content-Length [12:48:33]Host: 172.17.56.4:8080 [12:48:33]Content-Length: 677 [12:48:33]Content-Type: application/json [12:48:33] [12:48:33]POST finish read [12:48:33]Found Content-Length = 677 [12:48:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459388", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.980, "sum" : 130.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 130.00, "total" : 130.00, "payments": [ { "type": 0, "sum" : 130.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:33]execute_script... [12: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)459388", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.980, "sum" : 130.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 130.00, "total" : 130.00, "payments": [ { "type": 0, "sum" : 130.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:33]POST & json_proto [12:48:33]process_json_proto [12:48:33]json parsed OK: [12:48:33]protocol is kg_v1.0 [12:48:33]action value=close_receipt [12:48:33]process_action close_receipt [12:48:33]cmd_close_receipt [12:48:33]MH_GetDate [12:48:33]Write to MH i2c: F0 00 00 C6 0F C4 [12:48:33]Write i2c OK [12:48:33]MH_I2C_Read... [12:48:33]Read from MH i2c: F0 [12:48:33]MH_I2C_Read... [12:48:33]Read from MH i2c: F0 09 00 [12:48:33]MH_I2C_Read... [12:48:33]Read from MH i2c: F0 09 00 C6 0F 00 A2 1A 95 66 C9 DC B2 64 3F [12:48:33]GetLastDocTimeStamp 1721047595 [12:48:33]current date 1721047714 [12:48:33]FM_GetShiftState [12:48:33]SAM_PROTO_GetShiftState [12:48:33]wFMCommunicate request_size=4 [12:48:33]MH_SAM_APDU [12:48:33]CAPDU: 80 13 01 00 [12:48:33]Write to MH i2c: E2 08 00 C7 0F 80 13 01 00 00 00 00 00 53 [12:48:33]Write i2c OK [12:48:33]MH_I2C_Read... [12:48:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:33]Read from MH i2c: E2 [12:48:33]MH_I2C_Read... [12:48:33]Read from MH i2c: E2 0E 00 [12:48:33]MH_I2C_Read... [12:48:33]Read from MH i2c: E2 0E 00 C7 0F 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 2C [12:48:33]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:48:33]wFMCommunicate OK [12:48:33]SAM_PROTO_GetShiftState done [12:48:33]FM_GetShiftState done [12:48:33]opened in 1721003876 [12:48:33]opened+sec_in_day 1721090276 [12:48:33]quantity*price = 13028 [12:48:33]sum+1 = 13029 [12:48:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 130.00 Внесено: 130.00 СДАЧА: 0.00 НСП 1% : 1.15 НДС 12% : 13.83 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 151 15.07.2024 12:48 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165278 ФПД: 28420386651929 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T124834&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165278&fm=28420386651929&tin=02508201610067®Number=0000000000090829&sum=13000 [12:48:35]StoreToDocumentArchive [12:48:35]shift 448 fd 165278 [12:48:35]save to /storage/0448/doc_00165278 [12:48:35]save last doc name /storage/0448/doc_00165278 to /storage/kkm_last_doc_name [12:48:35]save OK [12:48:35]Clear old archive folders... [12:48:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:48:35]tlvbuf is 0183F8A0 [12:48:35]SAM_PROTO_ClearQueue [12:48:35]wFMCommunicate request_size=4 [12:48:35]MH_SAM_APDU [12:48:35]CAPDU: 80 09 00 00 [12:48:35]Write to MH i2c: E2 08 00 D4 0F 80 09 00 00 00 00 00 00 55 [12:48:35]Write i2c OK [12:48:35]MH_I2C_Read... [12:48:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:48:35]Read from MH i2c: E2 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: E2 03 00 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: E2 03 00 D4 0F 00 90 00 57 [12:48:35]RAPDU: 90 00 [12:48:35]wFMCommunicate OK [12:48:35]SAM_PROTO_ClearQueue done [12:48:35]KKMCreateOFDPacket [12:48:35]OFDProtocolAddRootSTLVToBuf [12:48:35]FM_MakeSignedData [12:48:35]FM_MakeSignedData [12:48:35]SAM_PROTO_SignData [12:48:35]wFMCommunicate request_size=4 [12:48:35]MH_SAM_APDU [12:48:35]CAPDU: 80 0D 01 02 [12:48:35]Write to MH i2c: E2 08 00 D5 0F 80 0D 01 02 00 00 00 00 5D [12:48:35]Write i2c OK [12:48:35]MH_I2C_Read... [12:48:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:48:35]Read from MH i2c: E2 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: E2 03 00 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: E2 03 00 D5 0F 00 90 00 58 [12:48:35]RAPDU: 90 00 [12:48:35]wFMCommunicate OK [12:48:35]wFMCommunicate request_size=255 [12:48:35]MH_SAM_APDU [12:48: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 BC 07 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E4 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 A2 1A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9E 85 02 00 35 04 06 00 19 [12:48:35]Write to MH i2c: E2 02 01 D6 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BC 07 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E4 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 A2 1A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9E 85 02 00 35 04 06 00 19 00 00 33 [12:48:35]Write i2c OK [12:48:35]MH_I2C_Read... [12:48:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:35]Read from MH i2c: E2 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: E2 03 00 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: E2 03 00 D6 0F 00 90 00 59 [12:48:35]RAPDU: 90 00 [12:48:35]wFMCommunicate OK [12:48:35]wFMCommunicate request_size=10 [12:48:35]MH_SAM_APDU [12:48:35]CAPDU: 80 0D 02 02 05 D9 23 0C FF 19 [12:48:35]Write to MH i2c: E2 0D 00 D7 0F 80 0D 02 02 05 00 D9 23 0C FF 19 00 00 8A [12:48:35]Write i2c OK [12:48:35]MH_I2C_Read... [12:48:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:35]Read from MH i2c: E2 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: E2 03 00 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: E2 03 00 D7 0F 00 90 00 5A [12:48:35]RAPDU: 90 00 [12:48:35]wFMCommunicate OK [12:48:35]wFMCommunicate request_size=4 [12:48:35]MH_SAM_APDU [12:48:35]CAPDU: 80 0D 03 02 [12:48:35]Write to MH i2c: E2 08 00 D8 0F 80 0D 03 02 00 00 00 00 62 [12:48:35]Write i2c OK [12:48:35]MH_I2C_Read... [12:48:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:48:35]Read from MH i2c: E2 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: E2 0B 00 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: E2 0B 00 D8 0F 00 66 3E 76 C6 DC 94 58 11 90 00 1C [12:48:35]RAPDU: 66 3E 76 C6 DC 94 58 11 90 00 [12:48:35]wFMCommunicate OK [12:48:35]SAM_PROTO_SignData done [12:48:35]FM_MakeSignedData done [12:48:35]CreateOFDProtocolMessage [12:48:35]wFMCommunicate request_size=4 [12:48:35]MH_SAM_APDU [12:48:35]CAPDU: 80 11 00 00 [12:48:35]Write to MH i2c: E2 08 00 D9 0F 80 11 00 00 00 00 00 00 62 [12:48:35]Write i2c OK [12:48:35]MH_I2C_Read... [12:48:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:35]Read from MH i2c: E2 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: E2 17 00 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: E2 17 00 D9 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B8 [12:48:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:48:35]wFMCommunicate OK [12:48:35]CreateOFDProtocolMessage done [12:48:35]OFDSenderStorePacket 165278 [12:48:35]StoreOFDPacket docnum=165278 [12:48:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D1 09 07 01 1C 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 BC 07 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E4 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 A2 1A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9E 85 02 00 35 04 06 00 19 D9 23 0C FF 19 66 3E 76 C6 DC 94 58 11 [12:48:35]CheckFolder [12:48:35]dirname=/storage/ofd_packets [12:48:35]CheckFolder done [12:48:35]ProducePacketName [12:48:35]name=ofd_packets/00165278 [12:48:35]NVStorageSaveData ofd_packets/00165278 [12:48:35]File name is /storage/ofd_packets/00165278 [12:48:35]Write 301 bytes [12:48:35]NVStorageSaveData done [12:48:35]OFDSenderStorePacket done [12:48:35]KKMCreateOFDPacket done [12:48:35]NVStorageSaveData kkm_last_timestamp [12:48:35]File name is /storage/kkm_last_timestamp [12:48:35]Write 4 bytes [12:48:35]NVStorageSaveData done [12:48:35]ExternCall_PrintAddStr [12:48:35]wPrintStart [12:48:35]Write to MH i2c: 01 00 00 DA 0F E9 [12:48:35]Write i2c OK [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: 01 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: 01 07 00 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: 01 07 00 DA 0F 00 00 00 00 00 FF 0F FE [12:48:35]RasterBufferAndPrint [12:48:35]line Счет N : (1)459388 [12:48:35]line ИНН: 02508201610067 [12:48:35]line Контрольно-Кассовый Чек [12:48:35]line ПРОДАЖА [12:48:35]line ТРК (МРК, ГНК) : 12 [12:48:35]line Товар: 2710124130 [12:48:35]line Аи-92-К-5 [12:48:35]line 1.980 * 65.80 [12:48:35]line = 130.28 [12:48:35]line НДС 12% НСП 1% [12:48:35]line > о реализуемом товаре [12:48:35]line ОКРУГЛЕНИЕ: -0.28 [12:48:35]line ИТОГО: 130.00 [12:48:35]line Внесено: 130.00 [12:48:35]line СДАЧА: 0.00 [12:48:35]line НСП 1% : 1.15 [12:48:35]line НДС 12% : 13.83 [12:48:35]line Наличными: 130.00 [12:48:35]line Безнал.: 0.00 [12:48:35]line Место: АЗС № 72 "Партнер Нефть" [12:48:35]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:48:35]line СНО: Общий режим [12:48:35]line Чек 151 15.07.2024 12:48 [12:48:35]line Смена: 448 ФФД: 1.0 [12:48:35]line ЗНМ: 0300000160 [12:48:35]line РНМ: 0000000000090829 [12:48:35]line Версия ККМ: 001 [12:48:35]line ФМ: 0000000000874718 [12:48:35]line ФД: 165278 [12:48:35]line ФПД: 28420386651929 [12:48:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T124834&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165278&fm=28420386651929&tin=02508201610067®Number=0000000000090829&sum=13000 [12:48:35]written 0, free lines is 4095 [12:48:35]OFD Sender: Processing packet 165278 [packets to send 106, broken 105] [12:48:35]ProducePacketName [12:48:35]name=ofd_packets/00165278 [12:48:35]OFD Sender: To server: pG, [12:48:35]CommunicateWithHost lk.salyk.kg:30040 [12:48:35]ConnectInit lk.salyk.kg [12:48:36]Connected sock=10 [12:48: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 37 31 38 0F 01 00 00 D1 09 07 01 1C 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 BC 07 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E4 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 A2 1A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9E 85 02 00 35 04 06 00 19 D9 23 0C FF 19 66 3E 76 C6 DC 94 58 11 [12:48:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 F6 F9 47 00 B0 F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 9E 85 02 00 F4 03 04 00 2D C1 94 66 B6 04 01 00 00 1F 37 13 EE CF CC 4C 61 [12:48:36]CommunicateWithHost err = 0 [12:48:36]CheckOFDResponse [12:48:36]1017 (14) - 77093643461234 [12:48:36]1041 (16) - 0000000000874718 [12:48:36]1040 (4) - 165278 [12:48:36]1012 (4) - 15.07.2024 06:26 [12:48:36]1206 (1) - 0 [12:48:36]OFD Sender: Remove packet 165278 [12:48:36]ProducePacketName [12:48:36]name=ofd_packets/00165278 [12:48:36]NVStorageDeleteData [12:48:36]Write to MH i2c: 01 00 00 04 10 14 [12:48:36]Write i2c OK [12:48:36]MH_I2C_Read... [12:48:36]Read from MH i2c: 01 [12:48:36]MH_I2C_Read... [12:48:36]Read from MH i2c: 01 07 00 [12:48:36]MH_I2C_Read... [12:48:36]Read from MH i2c: 01 07 00 04 10 00 00 00 00 00 F3 0C 1A [12:48:36]RasterBufferAndPrint [12:48:36]line [12:48:36]line [12:48:36]line [12:48:36]line [12:48:36]line [12:48:36]written 0, free lines is 3321 [12:48:36]MH_Cut [12:48:36]Write to MH i2c: D1 01 00 0B 10 01 ED [12:48:36]Write i2c OK [12:48:36]MH_I2C_Read... [12:48:36]Read from MH i2c: D1 [12:48:36]MH_I2C_Read... [12:48:36]Read from MH i2c: D1 01 00 [12:48:36]MH_I2C_Read... [12:48:36]Read from MH i2c: D1 01 00 0B 10 00 EC [12:48:36]Write to MH i2c: 01 00 00 0C 10 1C [12:48:36]Write i2c OK [12:48:36]MH_I2C_Read... [12:48:36]OFD Sender: No OFD packet to send [12:48:37]*** Cut start [12:48:37]*** Partial cut [12:48:37]*** CUTSNS_PIN = 1 [12:48:37]*** CUTSNS_PIN = 0 [12:48:37]*** Brake cut motor [12:48:37]Read from MH i2c: 01 [12:48:37]MH_I2C_Read... [12:48:37]*** Stop cut motor [12:48:37]*** Cut end [12:48:37]Read from MH i2c: 01 07 00 [12:48:37]MH_I2C_Read... [12:48:37]Read from MH i2c: 01 07 00 0C 10 00 00 00 00 00 FF 0F 31 [12:48:37]process_action close_receipt done [12:48:37]requested_data is exist [12:48:37]produce_requested_data [12:48:37]requested_item fm.sn is exist - process it [12:48:37]wFMCommunicate request_size=4 [12:48:37]MH_SAM_APDU [12:48:37]CAPDU: 80 11 00 00 [12:48:37]Write to MH i2c: E2 08 00 0D 10 80 11 00 00 00 00 00 00 97 [12:48:37]Write i2c OK [12:48:37]MH_I2C_Read... [12:48:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:37]Read from MH i2c: E2 [12:48:37]MH_I2C_Read... [12:48:37]Read from MH i2c: E2 17 00 [12:48:37]MH_I2C_Read... [12:48:37]Read from MH i2c: E2 17 00 0D 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 ED [12:48:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:48:37]wFMCommunicate OK [12:48:37]requested_item fd.num is exist - process it [12:48:37]SAM_PROTO_GetFieldsCounters [12:48:37]wFMCommunicate request_size=4 [12:48:37]MH_SAM_APDU [12:48:37]CAPDU: 80 13 00 00 [12:48:37]Write to MH i2c: E2 08 00 0E 10 80 13 00 00 00 00 00 00 9A [12:48:37]Write i2c OK [12:48:37]MH_I2C_Read... [12:48:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:48:37]Read from MH i2c: E2 [12:48:37]MH_I2C_Read... [12:48:37]Read from MH i2c: E2 62 00 [12:48:37]MH_I2C_Read... [12:48:37]Read from MH i2c: E2 62 00 0E 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 9E 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [12:48:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 9E 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:48:37]wFMCommunicate OK [12:48:37]SAM_PROTO_GetFieldsCounters done [12:48:37]requested_item shift.num is exist - process it [12:48:37]requested_item shift.opened is exist - process it [12:48:37]req_shift_opened [12:48:37]FM_GetShiftState [12:48:37]SAM_PROTO_GetShiftState [12:48:37]wFMCommunicate request_size=4 [12:48:37]MH_SAM_APDU [12:48:37]CAPDU: 80 13 01 00 [12:48:37]Write to MH i2c: E2 08 00 0F 10 80 13 01 00 00 00 00 00 9C [12:48:37]Write i2c OK [12:48:37]MH_I2C_Read... [12:48:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:37]Read from MH i2c: E2 [12:48:37]MH_I2C_Read... [12:48:37]Read from MH i2c: E2 0E 00 [12:48:37]MH_I2C_Read... [12:48:37]Read from MH i2c: E2 0E 00 0F 10 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 75 [12:48:37]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:48:37]wFMCommunicate OK [12:48:37]SAM_PROTO_GetShiftState done [12:48:37]FM_GetShiftState done [12:48:37]req_shift_opened done [12:48:37]requested_item shift.open_date is exist - process it [12:48:37]req_shift_open_date [12:48:37]req_shift_open_date done [12:48:37]produce_requested_data done [12:48:37]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165278,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [12:48:37]process_action_free close_receipt [12:48:37]json_value_free [12:48:37]json_value_free done [12:48:37]process_json_proto returns [12:48:37]Send response to host [12:48:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165278,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [12:48:37]free response buf [12:48:37]execute_script done [12:48:37]execute_script returns [12:48:37]free content buf [12:48:37]Sock 8.Close socket [12:48:37]Sock 8.Thread stoped [12:48:41]OFD Sender: No OFD packet to send [12:48:46]OFD Sender: No OFD packet to send [12:48:51]OFD Sender: No OFD packet to send [12:48:56]OFD Sender: No OFD packet to send [12:49:01]OFD Sender: No OFD packet to send [12:49:06]OFD Sender: No OFD packet to send [12:49:11]accept exits with 9 [12:49:11]New connection [12:49:11]New thread 3066854756 created [12:49:11]Thread 3066711396 joined [12:49:11]Waiting for new connection... [12:49:11] Sock 9.Parse request [12:49:11]Sock 9.Check first char [12:49:11]Sock 9.First char is OK [12:49:11]request: POST /json_proto HTTP/1.0 [12:49:11]Method: POST [12:49:11]URL: /json_proto [12:49:11]Method is POST - this is cgi request [12:49:11]url: /json_proto [12:49:11]query_string will be loaded in cgi processing [12:49:11]execute_cgi json_proto POST (null) [12:49:11]execute_cgi path=json_proto method=POST [12:49:11]POST find Content-Length [12:49:11]Host: 172.17.56.4:8080 [12:49:11]Content-Length: 639 [12:49:11]Content-Type: application/json [12:49:11] [12:49:11]POST finish read [12:49:11]Found Content-Length = 639 [12:49:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459389", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 20.000, "sum" : 1438.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1438.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:11]execute_script... [12:49:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459389", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 20.000, "sum" : 1438.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1438.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:11]POST & json_proto [12:49:11]process_json_proto [12:49:11]json parsed OK: [12:49:11]protocol is kg_v1.0 [12:49:11]action value=close_receipt [12:49:11]process_action close_receipt [12:49:11]cmd_close_receipt [12:49:11]MH_GetDate [12:49:11]Write to MH i2c: F0 00 00 10 10 0F [12:49:11]Write i2c OK [12:49:11]MH_I2C_Read... [12:49:11]Read from MH i2c: F0 [12:49:11]MH_I2C_Read... [12:49:11]Read from MH i2c: F0 09 00 [12:49:11]MH_I2C_Read... [12:49:11]Read from MH i2c: F0 09 00 10 10 00 C8 1A 95 66 C9 DC B2 64 B0 [12:49:11]GetLastDocTimeStamp 1721047714 [12:49:11]current date 1721047752 [12:49:11]FM_GetShiftState [12:49:11]SAM_PROTO_GetShiftState [12:49:11]wFMCommunicate request_size=4 [12:49:11]MH_SAM_APDU [12:49:11]CAPDU: 80 13 01 00 [12:49:11]Write to MH i2c: E2 08 00 11 10 80 13 01 00 00 00 00 00 9E [12:49:11]Write i2c OK [12:49:11]MH_I2C_Read... [12:49:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:11]Read from MH i2c: E2 [12:49:11]MH_I2C_Read... [12:49:11]Read from MH i2c: E2 0E 00 [12:49:11]MH_I2C_Read... [12:49:11]Read from MH i2c: E2 0E 00 11 10 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 77 [12:49:11]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:49:11]wFMCommunicate OK [12:49:11]SAM_PROTO_GetShiftState done [12:49:11]FM_GetShiftState done [12:49:11]opened in 1721003876 [12:49:11]opened+sec_in_day 1721090276 [12:49:11]quantity*price = 143800 [12:49:11]sum+1 = 143801 [12:49:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1438.00 НСП 1% : 12.73 НДС 12% : 152.71 Наличными: 1438.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 152 15.07.2024 12:49 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165279 ФПД: 266048024698387 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T124912&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165279&fm=266048024698387&tin=02508201610067®Number=0000000000090829&sum=143800 [12:49:12]StoreToDocumentArchive [12:49:12]shift 448 fd 165279 [12:49:12]save to /storage/0448/doc_00165279 [12:49:12]save last doc name /storage/0448/doc_00165279 to /storage/kkm_last_doc_name [12:49:12]save OK [12:49:12]Clear old archive folders... [12:49:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:49:12]tlvbuf is 0181D640 [12:49:12]SAM_PROTO_ClearQueue [12:49:12]wFMCommunicate request_size=4 [12:49:12]MH_SAM_APDU [12:49:12]CAPDU: 80 09 00 00 [12:49:12]Write to MH i2c: E2 08 00 1E 10 80 09 00 00 00 00 00 00 A0 [12:49:12]Write i2c OK [12:49:12]MH_I2C_Read... [12:49:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:49:12]Read from MH i2c: E2 [12:49:12]MH_I2C_Read... [12:49:12]Read from MH i2c: E2 03 00 [12:49:12]MH_I2C_Read... [12:49:12]Read from MH i2c: E2 03 00 1E 10 00 90 00 A2 [12:49:12]RAPDU: 90 00 [12:49:12]wFMCommunicate OK [12:49:12]SAM_PROTO_ClearQueue done [12:49:12]KKMCreateOFDPacket [12:49:12]OFDProtocolAddRootSTLVToBuf [12:49:12]FM_MakeSignedData [12:49:12]FM_MakeSignedData [12:49:12]SAM_PROTO_SignData [12:49:12]wFMCommunicate request_size=4 [12:49:12]MH_SAM_APDU [12:49:12]CAPDU: 80 0D 01 02 [12:49:12]Write to MH i2c: E2 08 00 1F 10 80 0D 01 02 00 00 00 00 A8 [12:49:12]Write i2c OK [12:49:12]MH_I2C_Read... [12:49:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:49:12]Read from MH i2c: E2 [12:49:12]MH_I2C_Read... [12:49:12]Read from MH i2c: E2 03 00 [12:49:12]MH_I2C_Read... [12:49:12]Read from MH i2c: E2 03 00 1F 10 00 90 00 A3 [12:49:12]RAPDU: 90 00 [12:49:12]wFMCommunicate OK [12:49:12]wFMCommunicate request_size=255 [12:49:12]MH_SAM_APDU [12:49:12]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B8 31 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 31 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 3B 00 00 00 00 07 04 06 00 B8 31 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 C8 1A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9F 85 02 00 35 04 06 00 F1 F8 22 01 [12:49:12]Write to MH i2c: E2 02 01 20 10 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B8 31 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 31 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 3B 00 00 00 00 07 04 06 00 B8 31 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 C8 1A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9F 85 02 00 35 04 06 00 F1 F8 22 01 00 00 B3 [12:49:12]Write i2c OK [12:49:12]MH_I2C_Read... [12:49:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:12]Read from MH i2c: E2 [12:49:12]MH_I2C_Read... [12:49:12]Read from MH i2c: E2 03 00 [12:49:12]MH_I2C_Read... [12:49:12]Read from MH i2c: E2 03 00 20 10 00 90 00 A4 [12:49:12]RAPDU: 90 00 [12:49:12]wFMCommunicate OK [12:49:12]wFMCommunicate request_size=7 [12:49:12]MH_SAM_APDU [12:49:12]CAPDU: 80 0D 02 02 02 5E 13 [12:49:12]Write to MH i2c: E2 0A 00 21 10 80 0D 02 02 02 00 5E 13 00 00 20 [12:49:12]Write i2c OK [12:49:12]MH_I2C_Read... [12:49:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:12]Read from MH i2c: E2 [12:49:12]MH_I2C_Read... [12:49:12]Read from MH i2c: E2 03 00 [12:49:12]MH_I2C_Read... [12:49:12]Read from MH i2c: E2 03 00 21 10 00 90 00 A5 [12:49:12]RAPDU: 90 00 [12:49:12]wFMCommunicate OK [12:49:12]wFMCommunicate request_size=4 [12:49:12]MH_SAM_APDU [12:49:12]CAPDU: 80 0D 03 02 [12:49:12]Write to MH i2c: E2 08 00 22 10 80 0D 03 02 00 00 00 00 AD [12:49:12]Write i2c OK [12:49:12]MH_I2C_Read... [12:49:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:49:12]Read from MH i2c: E2 [12:49:12]MH_I2C_Read... [12:49:12]Read from MH i2c: E2 0B 00 [12:49:12]MH_I2C_Read... [12:49:12]Read from MH i2c: E2 0B 00 22 10 00 75 E9 C1 20 F4 10 D5 8B 90 00 51 [12:49:12]RAPDU: 75 E9 C1 20 F4 10 D5 8B 90 00 [12:49:12]wFMCommunicate OK [12:49:12]SAM_PROTO_SignData done [12:49:12]FM_MakeSignedData done [12:49:12]CreateOFDProtocolMessage [12:49:12]wFMCommunicate request_size=4 [12:49:12]MH_SAM_APDU [12:49:12]CAPDU: 80 11 00 00 [12:49:12]Write to MH i2c: E2 08 00 23 10 80 11 00 00 00 00 00 00 AD [12:49:12]Write i2c OK [12:49:12]MH_I2C_Read... [12:49:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:12]Read from MH i2c: E2 [12:49:12]MH_I2C_Read... [12:49:12]Read from MH i2c: E2 17 00 [12:49:13]MH_I2C_Read... [12:49:13]Read from MH i2c: E2 17 00 23 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 03 [12:49:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:49:13]wFMCommunicate OK [12:49:13]CreateOFDProtocolMessage done [12:49:13]OFDSenderStorePacket 165279 [12:49:13]StoreOFDPacket docnum=165279 [12:49:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 F0 BE 04 01 D6 D5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B8 31 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 31 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 3B 00 00 00 00 07 04 06 00 B8 31 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 C8 1A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9F 85 02 00 35 04 06 00 F1 F8 22 01 5E 13 75 E9 C1 20 F4 10 D5 8B [12:49:13]CheckFolder [12:49:13]dirname=/storage/ofd_packets [12:49:13]CheckFolder done [12:49:13]ProducePacketName [12:49:13]name=ofd_packets/00165279 [12:49:13]NVStorageSaveData ofd_packets/00165279 [12:49:13]File name is /storage/ofd_packets/00165279 [12:49:13]Write 298 bytes [12:49:13]NVStorageSaveData done [12:49:13]OFDSenderStorePacket done [12:49:13]KKMCreateOFDPacket done [12:49:13]NVStorageSaveData kkm_last_timestamp [12:49:13]File name is /storage/kkm_last_timestamp [12:49:13]Write 4 bytes [12:49:13]NVStorageSaveData done [12:49:13]ExternCall_PrintAddStr [12:49:13]wPrintStart [12:49:13]Write to MH i2c: 01 00 00 24 10 34 [12:49:13]Write i2c OK [12:49:13]MH_I2C_Read... [12:49:13]Read from MH i2c: 01 [12:49:13]MH_I2C_Read... [12:49:13]Read from MH i2c: 01 07 00 [12:49:13]MH_I2C_Read... [12:49:13]Read from MH i2c: 01 07 00 24 10 00 00 00 00 00 FF 0F 49 [12:49:13]RasterBufferAndPrint [12:49:13]line Счет N : (1)459389 [12:49:13]line ИНН: 02508201610067 [12:49:13]line Контрольно-Кассовый Чек [12:49:13]line ПРОДАЖА [12:49:13]line ТРК (МРК, ГНК) : 21 [12:49:13]line Товар: 2710194210 [12:49:13]line ДТ-К-5 [12:49:13]line 20.000 * 71.90 [12:49:13]line = 1438.00 [12:49:13]line НДС 12% НСП 1% [12:49:13]line > о реализуемом товаре [12:49:13]line ИТОГО: 1438.00 [12:49:13]line НСП 1% : 12.73 [12:49:13]line НДС 12% : 152.71 [12:49:13]line Наличными: 1438.00 [12:49:13]line Безнал.: 0.00 [12:49:13]line Место: АЗС № 72 "Партнер Нефть" [12:49:13]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:49:13]line СНО: Общий режим [12:49:13]line Чек 152 15.07.2024 12:49 [12:49:13]line Смена: 448 ФФД: 1.0 [12:49:13]line ЗНМ: 0300000160 [12:49:13]line РНМ: 0000000000090829 [12:49:13]line Версия ККМ: 001 [12:49:13]line ФМ: 0000000000874718 [12:49:13]line ФД: 165279 [12:49:13]line ФПД: 266048024698387 [12:49:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T124912&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165279&fm=266048024698387&tin=02508201610067®Number=0000000000090829&sum=143800 [12:49:13]OFD Sender: Processing packet 165279 [packets to send 106, broken 105] [12:49:13]ProducePacketName [12:49:13]name=ofd_packets/00165279 [12:49:13]OFD Sender: To server: pG, [12:49:13]CommunicateWithHost lk.salyk.kg:30040 [12:49:13]ConnectInit lk.salyk.kg [12:49:13]written 0, free lines is 4095 [12:49:13]Connected sock=10 [12:49: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 37 31 38 0C 01 00 00 F0 BE 04 01 D6 D5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B8 31 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 31 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 3B 00 00 00 00 07 04 06 00 B8 31 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 C8 1A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 9F 85 02 00 35 04 06 00 F1 F8 22 01 5E 13 75 E9 C1 20 F4 10 D5 8B [12:49:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 42 C6 47 00 CB 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 37 31 38 10 04 04 00 9F 85 02 00 F4 03 04 00 52 C1 94 66 B6 04 01 00 00 C1 82 29 20 6E 1C 9B 68 [12:49:13]CommunicateWithHost err = 0 [12:49:13]CheckOFDResponse [12:49:13]1017 (14) - 77093643461234 [12:49:13]1041 (16) - 0000000000874718 [12:49:13]1040 (4) - 165279 [12:49:13]1012 (4) - 15.07.2024 06:27 [12:49:13]1206 (1) - 0 [12:49:13]OFD Sender: Remove packet 165279 [12:49:13]ProducePacketName [12:49:13]name=ofd_packets/00165279 [12:49:13]NVStorageDeleteData [12:49:13]Write to MH i2c: 01 00 00 4B 10 5B [12:49:13]Write i2c OK [12:49:13]MH_I2C_Read... [12:49:13]Read from MH i2c: 01 [12:49:13]MH_I2C_Read... [12:49:13]Read from MH i2c: 01 07 00 [12:49:13]MH_I2C_Read... [12:49:13]Read from MH i2c: 01 07 00 4B 10 00 00 00 00 00 2D 0D 9C [12:49:13]RasterBufferAndPrint [12:49:13]line [12:49:13]line [12:49:13]line [12:49:13]line [12:49:13]line [12:49:13]written 0, free lines is 3380 [12:49:13]MH_Cut [12:49:13]Write to MH i2c: D1 01 00 52 10 01 34 [12:49:13]Write i2c OK [12:49:13]MH_I2C_Read... [12:49:13]Read from MH i2c: D1 [12:49:13]MH_I2C_Read... [12:49:13]Read from MH i2c: D1 01 00 [12:49:13]MH_I2C_Read... [12:49:13]Read from MH i2c: D1 01 00 52 10 00 33 [12:49:13]Write to MH i2c: 01 00 00 53 10 63 [12:49:13]Write i2c OK [12:49:13]MH_I2C_Read... [12:49:14]OFD Sender: No OFD packet to send [12:49:14]*** Cut start [12:49:14]*** Partial cut [12:49:14]*** CUTSNS_PIN = 1 [12:49:14]*** CUTSNS_PIN = 0 [12:49:14]*** Brake cut motor [12:49:14]Read from MH i2c: 01 [12:49:14]MH_I2C_Read... [12:49:14]*** Stop cut motor [12:49:14]*** Cut end [12:49:14]Read from MH i2c: 01 07 00 [12:49:14]MH_I2C_Read... [12:49:14]Read from MH i2c: 01 07 00 53 10 00 00 00 00 00 FF 0F 78 [12:49:14]process_action close_receipt done [12:49:14]requested_data is exist [12:49:14]produce_requested_data [12:49:14]requested_item fm.sn is exist - process it [12:49:14]wFMCommunicate request_size=4 [12:49:14]MH_SAM_APDU [12:49:14]CAPDU: 80 11 00 00 [12:49:14]Write to MH i2c: E2 08 00 54 10 80 11 00 00 00 00 00 00 DE [12:49:14]Write i2c OK [12:49:14]MH_I2C_Read... [12:49:15]Read from MH i2c: E2 [12:49:15]MH_I2C_Read... [12:49:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:15]Read from MH i2c: E2 17 00 [12:49:15]MH_I2C_Read... [12:49:15]Read from MH i2c: E2 17 00 54 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 34 [12:49:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:49:15]wFMCommunicate OK [12:49:15]requested_item fd.num is exist - process it [12:49:15]SAM_PROTO_GetFieldsCounters [12:49:15]wFMCommunicate request_size=4 [12:49:15]MH_SAM_APDU [12:49:15]CAPDU: 80 13 00 00 [12:49:15]Write to MH i2c: E2 08 00 55 10 80 13 00 00 00 00 00 00 E1 [12:49:15]Write i2c OK [12:49:15]MH_I2C_Read... [12:49:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:49:15]Read from MH i2c: E2 [12:49:15]MH_I2C_Read... [12:49:15]Read from MH i2c: E2 62 00 [12:49:15]MH_I2C_Read... [12:49:15]Read from MH i2c: E2 62 00 55 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 9F 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [12:49: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 9F 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:49:15]wFMCommunicate OK [12:49:15]SAM_PROTO_GetFieldsCounters done [12:49:15]requested_item shift.num is exist - process it [12:49:15]requested_item shift.opened is exist - process it [12:49:15]req_shift_opened [12:49:15]FM_GetShiftState [12:49:15]SAM_PROTO_GetShiftState [12:49:15]wFMCommunicate request_size=4 [12:49:15]MH_SAM_APDU [12:49:15]CAPDU: 80 13 01 00 [12:49:15]Write to MH i2c: E2 08 00 56 10 80 13 01 00 00 00 00 00 E3 [12:49:15]Write i2c OK [12:49:15]MH_I2C_Read... [12:49:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:15]Read from MH i2c: E2 [12:49:15]MH_I2C_Read... [12:49:15]Read from MH i2c: E2 0E 00 [12:49:15]MH_I2C_Read... [12:49:15]Read from MH i2c: E2 0E 00 56 10 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 BC [12:49:15]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:49:15]wFMCommunicate OK [12:49:15]SAM_PROTO_GetShiftState done [12:49:15]FM_GetShiftState done [12:49:15]req_shift_opened done [12:49:15]requested_item shift.open_date is exist - process it [12:49:15]req_shift_open_date [12:49:15]req_shift_open_date done [12:49:15]produce_requested_data done [12:49:15]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165279,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [12:49:15]process_action_free close_receipt [12:49:15]json_value_free [12:49:15]json_value_free done [12:49:15]process_json_proto returns [12:49:15]Send response to host [12:49:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165279,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [12:49:15]free response buf [12:49:15]execute_script done [12:49:15]execute_script returns [12:49:15]free content buf [12:49:15]Sock 9.Close socket [12:49:15]Sock 9.Thread stoped [12:49:19]OFD Sender: No OFD packet to send [12:49:24]OFD Sender: No OFD packet to send [12:49:29]OFD Sender: No OFD packet to send [12:49:34]OFD Sender: No OFD packet to send [12:49:39]OFD Sender: No OFD packet to send [12:49:44]OFD Sender: No OFD packet to send [12:49:49]OFD Sender: No OFD packet to send [12:49:54]OFD Sender: No OFD packet to send [12:49:59]OFD Sender: No OFD packet to send [12:50:04]OFD Sender: No OFD packet to send [12:50:09]OFD Sender: No OFD packet to send [12:50:14]OFD Sender: No OFD packet to send [12:50:19]OFD Sender: No OFD packet to send [12:50:24]OFD Sender: No OFD packet to send [12:50:24]accept exits with 8 [12:50:24]New connection [12:50:24]New thread 3066711396 created [12:50:24]Thread 3066854756 joined [12:50:24]Waiting for new connection... [12:50:24] Sock 8.Parse request [12:50:24]Sock 8.Check first char [12:50:24]Sock 8.First char is OK [12:50:24]request: POST /json_proto HTTP/1.0 [12:50:24]Method: POST [12:50:24]URL: /json_proto [12:50:24]Method is POST - this is cgi request [12:50:24]url: /json_proto [12:50:24]query_string will be loaded in cgi processing [12:50:24]execute_cgi json_proto POST (null) [12:50:24]execute_cgi path=json_proto method=POST [12:50:24]POST find Content-Length [12:50:24]Host: 172.17.56.4:8080 [12:50:24]Content-Length: 790 [12:50:24]Content-Type: application/json [12:50:24] [12:50:24]POST finish read [12:50:24]Found Content-Length = 790 [12:50:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459390", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.670, "sum" : 500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:50:24]execute_script... [12:50:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459390", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.670, "sum" : 500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:50:24]POST & json_proto [12:50:24]process_json_proto [12:50:24]json parsed OK: [12:50:24]protocol is kg_v1.0 [12:50:24]action value=close_receipt [12:50:24]process_action close_receipt [12:50:24]cmd_close_receipt [12:50:24]MH_GetDate [12:50:24]Write to MH i2c: F0 00 00 57 10 56 [12:50:24]Write i2c OK [12:50:24]MH_I2C_Read... [12:50:24]Read from MH i2c: F0 [12:50:24]MH_I2C_Read... [12:50:24]Read from MH i2c: F0 09 00 [12:50:24]MH_I2C_Read... [12:50:24]Read from MH i2c: F0 09 00 57 10 00 11 1B 95 66 C9 DC B2 64 41 [12:50:24]GetLastDocTimeStamp 1721047752 [12:50:24]current date 1721047825 [12:50:24]FM_GetShiftState [12:50:24]SAM_PROTO_GetShiftState [12:50:24]wFMCommunicate request_size=4 [12:50:24]MH_SAM_APDU [12:50:24]CAPDU: 80 13 01 00 [12:50:24]Write to MH i2c: E2 08 00 58 10 80 13 01 00 00 00 00 00 E5 [12:50:24]Write i2c OK [12:50:24]MH_I2C_Read... [12:50:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:24]Read from MH i2c: E2 [12:50:24]MH_I2C_Read... [12:50:24]Read from MH i2c: E2 0E 00 [12:50:24]MH_I2C_Read... [12:50:24]Read from MH i2c: E2 0E 00 58 10 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 BE [12:50:24]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:50:24]wFMCommunicate OK [12:50:24]SAM_PROTO_GetShiftState done [12:50:24]FM_GetShiftState done [12:50:24]opened in 1721003876 [12:50:24]opened+sec_in_day 1721090276 [12:50:24]quantity*price = 50023 [12:50:24]sum+1 = 50025 [12:50:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.24 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.24 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 153 15.07.2024 12:50 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 165280 ФПД: 205358154045349 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T125025&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165280&fm=205358154045349&tin=02508201610067®Number=0000000000090829&sum=50024 [12:50:25]StoreToDocumentArchive [12:50:25]shift 448 fd 165280 [12:50:25]save to /storage/0448/doc_00165280 [12:50:25]save last doc name /storage/0448/doc_00165280 to /storage/kkm_last_doc_name [12:50:25]save OK [12:50:25]Clear old archive folders... [12:50:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:50:25]tlvbuf is 017F7780 [12:50:25]SAM_PROTO_ClearQueue [12:50:25]wFMCommunicate request_size=4 [12:50:25]MH_SAM_APDU [12:50:25]CAPDU: 80 09 00 00 [12:50:25]Write to MH i2c: E2 08 00 65 10 80 09 00 00 00 00 00 00 E7 [12:50:25]Write i2c OK [12:50:25]MH_I2C_Read... [12:50:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:50:25]Read from MH i2c: E2 [12:50:25]MH_I2C_Read... [12:50:25]Read from MH i2c: E2 03 00 [12:50:25]MH_I2C_Read... [12:50:25]Read from MH i2c: E2 03 00 65 10 00 90 00 E9 [12:50:25]RAPDU: 90 00 [12:50:25]wFMCommunicate OK [12:50:25]SAM_PROTO_ClearQueue done [12:50:25]KKMCreateOFDPacket [12:50:25]OFDProtocolAddRootSTLVToBuf [12:50:25]FM_MakeSignedData [12:50:25]FM_MakeSignedData [12:50:25]SAM_PROTO_SignData [12:50:25]wFMCommunicate request_size=4 [12:50:25]MH_SAM_APDU [12:50:25]CAPDU: 80 0D 01 02 [12:50:25]Write to MH i2c: E2 08 00 66 10 80 0D 01 02 00 00 00 00 EF [12:50:25]Write i2c OK [12:50:25]MH_I2C_Read... [12:50:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:50:25]Read from MH i2c: E2 [12:50:25]MH_I2C_Read... [12:50:25]Read from MH i2c: E2 03 00 [12:50:25]MH_I2C_Read... [12:50:25]Read from MH i2c: E2 03 00 66 10 00 90 00 EA [12:50:25]RAPDU: 90 00 [12:50:25]wFMCommunicate OK [12:50:25]wFMCommunicate request_size=255 [12:50:25]MH_SAM_APDU [12:50:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 11 1B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A0 85 02 00 35 04 06 00 BA [12:50:25]Write to MH i2c: E2 02 01 67 10 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 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 11 1B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A0 85 02 00 35 04 06 00 BA 00 00 18 [12:50:25]Write i2c OK [12:50:25]MH_I2C_Read... [12:50:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:26]Read from MH i2c: E2 [12:50:26]MH_I2C_Read... [12:50:26]Read from MH i2c: E2 03 00 [12:50:26]MH_I2C_Read... [12:50:26]Read from MH i2c: E2 03 00 67 10 00 90 00 EB [12:50:26]RAPDU: 90 00 [12:50:26]wFMCommunicate OK [12:50:26]wFMCommunicate request_size=10 [12:50:26]MH_SAM_APDU [12:50:26]CAPDU: 80 0D 02 02 05 C5 AB D2 D7 A5 [12:50:26]Write to MH i2c: E2 0D 00 68 10 80 0D 02 02 05 00 C5 AB D2 D7 A5 00 00 BA [12:50:26]Write i2c OK [12:50:26]MH_I2C_Read... [12:50:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:26]Read from MH i2c: E2 [12:50:26]MH_I2C_Read... [12:50:26]Read from MH i2c: E2 03 00 [12:50:26]MH_I2C_Read... [12:50:26]Read from MH i2c: E2 03 00 68 10 00 90 00 EC [12:50:26]RAPDU: 90 00 [12:50:26]wFMCommunicate OK [12:50:26]wFMCommunicate request_size=4 [12:50:26]MH_SAM_APDU [12:50:26]CAPDU: 80 0D 03 02 [12:50:26]Write to MH i2c: E2 08 00 69 10 80 0D 03 02 00 00 00 00 F4 [12:50:26]Write i2c OK [12:50:26]MH_I2C_Read... [12:50:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:50:26]Read from MH i2c: E2 [12:50:26]MH_I2C_Read... [12:50:26]Read from MH i2c: E2 0B 00 [12:50:26]MH_I2C_Read... [12:50:26]Read from MH i2c: E2 0B 00 69 10 00 EF CC 3C CC 44 9D DC AF 90 00 24 [12:50:26]RAPDU: EF CC 3C CC 44 9D DC AF 90 00 [12:50:26]wFMCommunicate OK [12:50:26]SAM_PROTO_SignData done [12:50:26]FM_MakeSignedData done [12:50:26]CreateOFDProtocolMessage [12:50:26]wFMCommunicate request_size=4 [12:50:26]MH_SAM_APDU [12:50:26]CAPDU: 80 11 00 00 [12:50:26]Write to MH i2c: E2 08 00 6A 10 80 11 00 00 00 00 00 00 F4 [12:50:26]Write i2c OK [12:50:26]MH_I2C_Read... [12:50:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:26]Read from MH i2c: E2 [12:50:26]MH_I2C_Read... [12:50:26]Read from MH i2c: E2 17 00 [12:50:26]MH_I2C_Read... [12:50:26]Read from MH i2c: E2 17 00 6A 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4A [12:50:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:50:26]wFMCommunicate OK [12:50:26]CreateOFDProtocolMessage done [12:50:26]OFDSenderStorePacket 165280 [12:50:26]StoreOFDPacket docnum=165280 [12:50:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 3A 50 07 01 4D 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 11 1B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A0 85 02 00 35 04 06 00 BA C5 AB D2 D7 A5 EF CC 3C CC 44 9D DC AF [12:50:26]CheckFolder [12:50:26]dirname=/storage/ofd_packets [12:50:26]CheckFolder done [12:50:26]ProducePacketName [12:50:26]name=ofd_packets/00165280 [12:50:26]NVStorageSaveData ofd_packets/00165280 [12:50:26]File name is /storage/ofd_packets/00165280 [12:50:26]Write 301 bytes [12:50:26]NVStorageSaveData done [12:50:26]OFDSenderStorePacket done [12:50:26]KKMCreateOFDPacket done [12:50:26]NVStorageSaveData kkm_last_timestamp [12:50:26]File name is /storage/kkm_last_timestamp [12:50:26]Write 4 bytes [12:50:26]NVStorageSaveData done [12:50:26]ExternCall_PrintAddStr [12:50:26]wPrintStart [12:50:26]Write to MH i2c: 01 00 00 6B 10 7B [12:50:26]Write i2c OK [12:50:26]MH_I2C_Read... [12:50:26]Read from MH i2c: 01 [12:50:26]MH_I2C_Read... [12:50:26]Read from MH i2c: 01 07 00 [12:50:26]MH_I2C_Read... [12:50:26]Read from MH i2c: 01 07 00 6B 10 00 00 00 00 00 FF 0F 90 [12:50:26]RasterBufferAndPrint [12:50:26]line Счет N : (1)459390 [12:50:26]line ИНН: 02508201610067 [12:50:26]line Контрольно-Кассовый Чек [12:50:26]line ПРОДАЖА [12:50:26]line ТРК (МРК, ГНК) : 22 [12:50:26]line Товар: 2710124130 [12:50:26]line Аи-92-К-5 [12:50:26]line 7.670 * 65.22 [12:50:26]line = 500.24 [12:50:26]line НДС 12% НСП 1% [12:50:26]line > о реализуемом товаре [12:50:26]line ИТОГО: 500.24 [12:50:26]line НСП 1% : 4.43 [12:50:26]line НДС 12% : 53.12 [12:50:26]line Наличными: 0.00 [12:50:26]line Безнал.: 500.24 [12:50:26]line Место: АЗС № 72 "Партнер Нефть" [12:50:26]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:50:26]line СНО: Общий режим [12:50:26]line Чек 153 15.07.2024 12:50 [12:50:26]line Смена: 448 ФФД: 1.0 [12:50:26]line ЗНМ: 0300000160 [12:50:26]line РНМ: 0000000000090829 [12:50:26]line Версия ККМ: 001 [12:50:26]line Платежная система: KICB Банк [12:50:26]line ФМ: 0000000000874718 [12:50:26]line ФД: 165280 [12:50:26]line ФПД: 205358154045349 [12:50:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T125025&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165280&fm=205358154045349&tin=02508201610067®Number=0000000000090829&sum=50024 [12:50:26]written 0, free lines is 4095 [12:50:26]OFD Sender: Processing packet 165280 [packets to send 106, broken 105] [12:50:26]ProducePacketName [12:50:26]name=ofd_packets/00165280 [12:50:26]OFD Sender: To server: pG, [12:50:26]CommunicateWithHost lk.salyk.kg:30040 [12:50:26]ConnectInit lk.salyk.kg [12:50:26]Connected sock=10 [12:50:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 3A 50 07 01 4D 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 11 1B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A0 85 02 00 35 04 06 00 BA C5 AB D2 D7 A5 EF CC 3C CC 44 9D DC AF [12:50:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 C2 94 47 00 B7 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A0 85 02 00 F4 03 04 00 9B C1 94 66 B6 04 01 00 00 BB AF CB 48 70 B4 14 48 [12:50:26]CommunicateWithHost err = 0 [12:50:26]CheckOFDResponse [12:50:26]1017 (14) - 77093643461234 [12:50:26]1041 (16) - 0000000000874718 [12:50:26]1040 (4) - 165280 [12:50:26]1012 (4) - 15.07.2024 06:28 [12:50:26]1206 (1) - 0 [12:50:26]OFD Sender: Remove packet 165280 [12:50:26]ProducePacketName [12:50:26]name=ofd_packets/00165280 [12:50:26]NVStorageDeleteData [12:50:26]Write to MH i2c: 01 00 00 94 10 A4 [12:50:26]Write i2c OK [12:50:26]MH_I2C_Read... [12:50:26]Read from MH i2c: 01 [12:50:26]MH_I2C_Read... [12:50:26]Read from MH i2c: 01 07 00 [12:50:26]MH_I2C_Read... [12:50:26]Read from MH i2c: 01 07 00 94 10 00 00 00 00 00 11 0D C9 [12:50:26]RasterBufferAndPrint [12:50:26]line [12:50:26]line [12:50:26]line [12:50:26]line [12:50:26]line [12:50:26]written 0, free lines is 3351 [12:50:26]MH_Cut [12:50:26]Write to MH i2c: D1 01 00 9B 10 01 7D [12:50:26]Write i2c OK [12:50:26]MH_I2C_Read... [12:50:26]Read from MH i2c: D1 [12:50:26]MH_I2C_Read... [12:50:26]Read from MH i2c: D1 01 00 [12:50:26]MH_I2C_Read... [12:50:26]Read from MH i2c: D1 01 00 9B 10 00 7C [12:50:26]Write to MH i2c: 01 00 00 9C 10 AC [12:50:26]Write i2c OK [12:50:26]MH_I2C_Read... [12:50:27]OFD Sender: No OFD packet to send [12:50:27]*** Cut start [12:50:27]*** Partial cut [12:50:27]*** CUTSNS_PIN = 1 [12:50:27]*** CUTSNS_PIN = 0 [12:50:27]*** Brake cut motor [12:50:28]Read from MH i2c: 01 [12:50:28]MH_I2C_Read... [12:50:28]*** Stop cut motor [12:50:28]*** Cut end [12:50:28]Read from MH i2c: 01 07 00 [12:50:28]MH_I2C_Read... [12:50:28]Read from MH i2c: 01 07 00 9C 10 00 00 00 00 00 FF 0F C1 [12:50:28]process_action close_receipt done [12:50:28]requested_data is exist [12:50:28]produce_requested_data [12:50:28]requested_item fm.sn is exist - process it [12:50:28]wFMCommunicate request_size=4 [12:50:28]MH_SAM_APDU [12:50:28]CAPDU: 80 11 00 00 [12:50:28]Write to MH i2c: E2 08 00 9D 10 80 11 00 00 00 00 00 00 27 [12:50:28]Write i2c OK [12:50:28]MH_I2C_Read... [12:50:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:28]Read from MH i2c: E2 [12:50:28]MH_I2C_Read... [12:50:28]Read from MH i2c: E2 17 00 [12:50:28]MH_I2C_Read... [12:50:28]Read from MH i2c: E2 17 00 9D 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7D [12:50:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:50:28]wFMCommunicate OK [12:50:28]requested_item fd.num is exist - process it [12:50:28]SAM_PROTO_GetFieldsCounters [12:50:28]wFMCommunicate request_size=4 [12:50:28]MH_SAM_APDU [12:50:28]CAPDU: 80 13 00 00 [12:50:28]Write to MH i2c: E2 08 00 9E 10 80 13 00 00 00 00 00 00 2A [12:50:28]Write i2c OK [12:50:28]MH_I2C_Read... [12:50:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:50:28]Read from MH i2c: E2 [12:50:28]MH_I2C_Read... [12:50:28]Read from MH i2c: E2 62 00 [12:50:28]MH_I2C_Read... [12:50:28]Read from MH i2c: E2 62 00 9E 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A0 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [12:50:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A0 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:50:28]wFMCommunicate OK [12:50:28]SAM_PROTO_GetFieldsCounters done [12:50:28]requested_item shift.num is exist - process it [12:50:28]requested_item shift.opened is exist - process it [12:50:28]req_shift_opened [12:50:28]FM_GetShiftState [12:50:28]SAM_PROTO_GetShiftState [12:50:28]wFMCommunicate request_size=4 [12:50:28]MH_SAM_APDU [12:50:28]CAPDU: 80 13 01 00 [12:50:28]Write to MH i2c: E2 08 00 9F 10 80 13 01 00 00 00 00 00 2C [12:50:28]Write i2c OK [12:50:28]MH_I2C_Read... [12:50:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:28]Read from MH i2c: E2 [12:50:28]MH_I2C_Read... [12:50:28]Read from MH i2c: E2 0E 00 [12:50:28]MH_I2C_Read... [12:50:28]Read from MH i2c: E2 0E 00 9F 10 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 05 [12:50:28]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:50:28]wFMCommunicate OK [12:50:28]SAM_PROTO_GetShiftState done [12:50:28]FM_GetShiftState done [12:50:28]req_shift_opened done [12:50:28]requested_item shift.open_date is exist - process it [12:50:28]req_shift_open_date [12:50:28]req_shift_open_date done [12:50:28]produce_requested_data done [12:50:28]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165280,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [12:50:28]process_action_free close_receipt [12:50:28]json_value_free [12:50:28]json_value_free done [12:50:28]process_json_proto returns [12:50:28]Send response to host [12:50:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165280,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [12:50:28]free response buf [12:50:28]execute_script done [12:50:28]execute_script returns [12:50:28]free content buf [12:50:28]Sock 8.Close socket [12:50:28]Sock 8.Thread stoped [12:50:32]OFD Sender: No OFD packet to send [12:50:37]OFD Sender: No OFD packet to send [12:50:42]OFD Sender: No OFD packet to send [12:50:46]accept exits with 9 [12:50:46]New connection [12:50:46]New thread 3066854756 created [12:50:46]Thread 3066711396 joined [12:50:46]Waiting for new connection... [12:50:46] Sock 9.Parse request [12:50:46]Sock 9.Check first char [12:50:46]Sock 9.First char is OK [12:50:46]request: POST /json_proto HTTP/1.0 [12:50:46]Method: POST [12:50:46]URL: /json_proto [12:50:46]Method is POST - this is cgi request [12:50:46]url: /json_proto [12:50:46]query_string will be loaded in cgi processing [12:50:46]execute_cgi json_proto POST (null) [12:50:46]execute_cgi path=json_proto method=POST [12:50:46]POST find Content-Length [12:50:46]Host: 172.17.56.4:8080 [12:50:46]Content-Length: 675 [12:50:46]Content-Type: application/json [12:50:46] [12:50:46]POST finish read [12:50:46]Found Content-Length = 675 [12:50:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459392", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 10.020, "sum" : 720.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 720.00, "total" : 720.00, "payments": [ { "type": 0, "sum" : 720.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:50:46]execute_script... [12:50: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)459392", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 10.020, "sum" : 720.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 720.00, "total" : 720.00, "payments": [ { "type": 0, "sum" : 720.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:50:46]POST & json_proto [12:50:46]process_json_proto [12:50:46]json parsed OK: [12:50:46]protocol is kg_v1.0 [12:50:46]action value=close_receipt [12:50:46]process_action close_receipt [12:50:46]cmd_close_receipt [12:50:46]MH_GetDate [12:50:46]Write to MH i2c: F0 00 00 A0 10 9F [12:50:46]Write i2c OK [12:50:46]MH_I2C_Read... [12:50:46]Read from MH i2c: F0 [12:50:46]MH_I2C_Read... [12:50:46]Read from MH i2c: F0 09 00 [12:50:46]MH_I2C_Read... [12:50:46]Read from MH i2c: F0 09 00 A0 10 00 27 1B 95 66 C9 DC B2 64 A0 [12:50:46]GetLastDocTimeStamp 1721047825 [12:50:46]current date 1721047847 [12:50:46]FM_GetShiftState [12:50:46]SAM_PROTO_GetShiftState [12:50:46]wFMCommunicate request_size=4 [12:50:46]MH_SAM_APDU [12:50:46]CAPDU: 80 13 01 00 [12:50:46]Write to MH i2c: E2 08 00 A1 10 80 13 01 00 00 00 00 00 2E [12:50:46]Write i2c OK [12:50:46]MH_I2C_Read... [12:50:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:46]Read from MH i2c: E2 [12:50:46]MH_I2C_Read... [12:50:46]Read from MH i2c: E2 0E 00 [12:50:46]MH_I2C_Read... [12:50:46]Read from MH i2c: E2 0E 00 A1 10 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 07 [12:50:46]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:50:46]wFMCommunicate OK [12:50:46]SAM_PROTO_GetShiftState done [12:50:46]FM_GetShiftState done [12:50:46]opened in 1721003876 [12:50:46]opened+sec_in_day 1721090276 [12:50:46]quantity*price = 72043 [12:50:46]sum+1 = 72045 [12:50:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 720.00 Внесено: 720.00 СДАЧА: 0.00 НСП 1% : 6.38 НДС 12% : 76.51 Наличными: 720.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 154 15.07.2024 12:50 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165281 ФПД: 255025141152379 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T125047&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165281&fm=255025141152379&tin=02508201610067®Number=0000000000090829&sum=72000 [12:50:47]StoreToDocumentArchive [12:50:47]shift 448 fd 165281 [12:50:47]save to /storage/0448/doc_00165281 [12:50:47]save last doc name /storage/0448/doc_00165281 to /storage/kkm_last_doc_name [12:50:47]save OK [12:50:47]Clear old archive folders... [12:50:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:50:47]tlvbuf is 018560C0 [12:50:47]SAM_PROTO_ClearQueue [12:50:47]wFMCommunicate request_size=4 [12:50:47]MH_SAM_APDU [12:50:47]CAPDU: 80 09 00 00 [12:50:47]Write to MH i2c: E2 08 00 AE 10 80 09 00 00 00 00 00 00 30 [12:50:47]Write i2c OK [12:50:47]MH_I2C_Read... [12:50:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:50:47]Read from MH i2c: E2 [12:50:47]MH_I2C_Read... [12:50:47]Read from MH i2c: E2 03 00 [12:50:47]MH_I2C_Read... [12:50:47]Read from MH i2c: E2 03 00 AE 10 00 90 00 32 [12:50:47]RAPDU: 90 00 [12:50:47]wFMCommunicate OK [12:50:47]SAM_PROTO_ClearQueue done [12:50:47]KKMCreateOFDPacket [12:50:47]OFDProtocolAddRootSTLVToBuf [12:50:47]FM_MakeSignedData [12:50:47]FM_MakeSignedData [12:50:47]SAM_PROTO_SignData [12:50:47]wFMCommunicate request_size=4 [12:50:47]MH_SAM_APDU [12:50:47]CAPDU: 80 0D 01 02 [12:50:47]Write to MH i2c: E2 08 00 AF 10 80 0D 01 02 00 00 00 00 38 [12:50:47]Write i2c OK [12:50:47]MH_I2C_Read... [12:50:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:50:47]Read from MH i2c: E2 [12:50:47]MH_I2C_Read... [12:50:47]Read from MH i2c: E2 03 00 [12:50:47]MH_I2C_Read... [12:50:47]Read from MH i2c: E2 03 00 AF 10 00 90 00 33 [12:50:47]RAPDU: 90 00 [12:50:47]wFMCommunicate OK [12:50:47]wFMCommunicate request_size=255 [12:50:47]MH_SAM_APDU [12:50:47]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 6C 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 27 1B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A1 85 02 00 35 04 06 00 E7 F1 AA F2 [12:50:47]Write to MH i2c: E2 02 01 B0 10 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 6C 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 27 1B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A1 85 02 00 35 04 06 00 E7 F1 AA F2 00 00 06 [12:50:47]Write i2c OK [12:50:47]MH_I2C_Read... [12:50:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:47]Read from MH i2c: E2 [12:50:47]MH_I2C_Read... [12:50:47]Read from MH i2c: E2 03 00 [12:50:47]MH_I2C_Read... [12:50:47]Read from MH i2c: E2 03 00 B0 10 00 90 00 34 [12:50:47]RAPDU: 90 00 [12:50:47]wFMCommunicate OK [12:50:47]wFMCommunicate request_size=7 [12:50:47]MH_SAM_APDU [12:50:47]CAPDU: 80 0D 02 02 02 7A 7B [12:50:47]Write to MH i2c: E2 0A 00 B1 10 80 0D 02 02 02 00 7A 7B 00 00 34 [12:50:47]Write i2c OK [12:50:47]MH_I2C_Read... [12:50:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:48]Read from MH i2c: E2 [12:50:48]MH_I2C_Read... [12:50:48]Read from MH i2c: E2 03 00 [12:50:48]MH_I2C_Read... [12:50:48]Read from MH i2c: E2 03 00 B1 10 00 90 00 35 [12:50:48]RAPDU: 90 00 [12:50:48]wFMCommunicate OK [12:50:48]wFMCommunicate request_size=4 [12:50:48]MH_SAM_APDU [12:50:48]CAPDU: 80 0D 03 02 [12:50:48]Write to MH i2c: E2 08 00 B2 10 80 0D 03 02 00 00 00 00 3D [12:50:48]Write i2c OK [12:50:48]MH_I2C_Read... [12:50:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:50:48]Read from MH i2c: E2 [12:50:48]MH_I2C_Read... [12:50:48]Read from MH i2c: E2 0B 00 [12:50:48]MH_I2C_Read... [12:50:48]Read from MH i2c: E2 0B 00 B2 10 00 BB 9F AE 01 1F EB 17 F4 90 00 5C [12:50:48]RAPDU: BB 9F AE 01 1F EB 17 F4 90 00 [12:50:48]wFMCommunicate OK [12:50:48]SAM_PROTO_SignData done [12:50:48]FM_MakeSignedData done [12:50:48]CreateOFDProtocolMessage [12:50:48]wFMCommunicate request_size=4 [12:50:48]MH_SAM_APDU [12:50:48]CAPDU: 80 11 00 00 [12:50:48]Write to MH i2c: E2 08 00 B3 10 80 11 00 00 00 00 00 00 3D [12:50:48]Write i2c OK [12:50:48]MH_I2C_Read... [12:50:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:48]Read from MH i2c: E2 [12:50:48]MH_I2C_Read... [12:50:48]Read from MH i2c: E2 17 00 [12:50:48]MH_I2C_Read... [12:50:48]Read from MH i2c: E2 17 00 B3 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 93 [12:50:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:50:48]wFMCommunicate OK [12:50:48]CreateOFDProtocolMessage done [12:50:48]OFDSenderStorePacket 165281 [12:50:48]StoreOFDPacket docnum=165281 [12:50:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 7E 71 04 01 80 E2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 6C 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 27 1B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A1 85 02 00 35 04 06 00 E7 F1 AA F2 7A 7B BB 9F AE 01 1F EB 17 F4 [12:50:48]CheckFolder [12:50:48]dirname=/storage/ofd_packets [12:50:48]CheckFolder done [12:50:48]ProducePacketName [12:50:48]name=ofd_packets/00165281 [12:50:48]NVStorageSaveData ofd_packets/00165281 [12:50:48]File name is /storage/ofd_packets/00165281 [12:50:48]Write 298 bytes [12:50:48]NVStorageSaveData done [12:50:48]OFDSenderStorePacket done [12:50:48]KKMCreateOFDPacket done [12:50:48]NVStorageSaveData kkm_last_timestamp [12:50:48]File name is /storage/kkm_last_timestamp [12:50:48]Write 4 bytes [12:50:48]NVStorageSaveData done [12:50:48]ExternCall_PrintAddStr [12:50:48]wPrintStart [12:50:48]Write to MH i2c: 01 00 00 B4 10 C4 [12:50:48]Write i2c OK [12:50:48]MH_I2C_Read... [12:50:48]Read from MH i2c: 01 [12:50:48]MH_I2C_Read... [12:50:48]Read from MH i2c: 01 07 00 [12:50:48]MH_I2C_Read... [12:50:48]Read from MH i2c: 01 07 00 B4 10 00 00 00 00 00 FF 0F D9 [12:50:48]RasterBufferAndPrint [12:50:48]line Счет N : (1)459392 [12:50:48]line ИНН: 02508201610067 [12:50:48]line Контрольно-Кассовый Чек [12:50:48]line ПРОДАЖА [12:50:48]line ТРК (МРК, ГНК) : 11 [12:50:48]line Товар: 2710194210 [12:50:48]line ДТ-К-5 [12:50:48]line 10.020 * 71.90 [12:50:48]line = 720.44 [12:50:48]line НДС 12% НСП 1% [12:50:48]line > о реализуемом товаре [12:50:48]line ОКРУГЛЕНИЕ: -0.44 [12:50:48]line ИТОГО: 720.00 [12:50:48]line Внесено: 720.00 [12:50:48]line СДАЧА: 0.00 [12:50:48]line НСП 1% : 6.38 [12:50:48]line НДС 12% : 76.51 [12:50:48]line Наличными: 720.00 [12:50:48]line Безнал.: 0.00 [12:50:48]line Место: АЗС № 72 "Партнер Нефть" [12:50:48]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:50:48]line СНО: Общий режим [12:50:48]line Чек 154 15.07.2024 12:50 [12:50:48]line Смена: 448 ФФД: 1.0 [12:50:48]line ЗНМ: 0300000160 [12:50:48]line РНМ: 0000000000090829 [12:50:48]line Версия ККМ: 001 [12:50:48]line ФМ: 0000000000874718 [12:50:48]line ФД: 165281 [12:50:48]line ФПД: 255025141152379 [12:50:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T125047&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165281&fm=255025141152379&tin=02508201610067®Number=0000000000090829&sum=72000 [12:50:48]OFD Sender: Processing packet 165281 [packets to send 106, broken 105] [12:50:48]ProducePacketName [12:50:48]name=ofd_packets/00165281 [12:50:48]OFD Sender: To server: pG, [12:50:48]CommunicateWithHost lk.salyk.kg:30040 [12:50:48]ConnectInit lk.salyk.kg [12:50:48]written 0, free lines is 4095 [12:50:48]Connected sock=10 [12:50: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 37 31 38 0C 01 00 00 7E 71 04 01 80 E2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 6C 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 27 1B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A1 85 02 00 35 04 06 00 E7 F1 AA F2 7A 7B BB 9F AE 01 1F EB 17 F4 [12:50:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 8E A0 47 00 32 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A1 85 02 00 F4 03 04 00 B1 C1 94 66 B6 04 01 00 00 A2 3F F6 BB C9 C6 4A 01 [12:50:48]CommunicateWithHost err = 0 [12:50:48]CheckOFDResponse [12:50:48]1017 (14) - 77093643461234 [12:50:48]1041 (16) - 0000000000874718 [12:50:48]1040 (4) - 165281 [12:50:48]1012 (4) - 15.07.2024 06:29 [12:50:48]1206 (1) - 0 [12:50:48]OFD Sender: Remove packet 165281 [12:50:48]ProducePacketName [12:50:48]name=ofd_packets/00165281 [12:50:48]NVStorageDeleteData [12:50:48]Write to MH i2c: 01 00 00 DE 10 EE [12:50:48]Write i2c OK [12:50:48]MH_I2C_Read... [12:50:48]Read from MH i2c: 01 [12:50:48]MH_I2C_Read... [12:50:48]Read from MH i2c: 01 07 00 [12:50:48]MH_I2C_Read... [12:50:48]Read from MH i2c: 01 07 00 DE 10 00 00 00 00 00 EF 0C F0 [12:50:48]RasterBufferAndPrint [12:50:48]line [12:50:48]line [12:50:48]line [12:50:48]line [12:50:48]line [12:50:48]written 0, free lines is 3318 [12:50:48]MH_Cut [12:50:48]Write to MH i2c: D1 01 00 E5 10 01 C7 [12:50:48]Write i2c OK [12:50:48]MH_I2C_Read... [12:50:48]Read from MH i2c: D1 [12:50:48]MH_I2C_Read... [12:50:48]Read from MH i2c: D1 01 00 [12:50:48]MH_I2C_Read... [12:50:48]Read from MH i2c: D1 01 00 E5 10 00 C6 [12:50:48]Write to MH i2c: 01 00 00 E6 10 F6 [12:50:48]Write i2c OK [12:50:48]MH_I2C_Read... [12:50:49]OFD Sender: No OFD packet to send [12:50:49]*** Cut start [12:50:49]*** Partial cut [12:50:49]*** CUTSNS_PIN = 1 [12:50:49]*** CUTSNS_PIN = 0 [12:50:49]*** Brake cut motor [12:50:50]Read from MH i2c: 01 [12:50:50]MH_I2C_Read... [12:50:50]*** Stop cut motor [12:50:50]*** Cut end [12:50:50]Read from MH i2c: 01 07 00 [12:50:50]MH_I2C_Read... [12:50:50]Read from MH i2c: 01 07 00 E6 10 00 00 00 00 00 FF 0F 0B [12:50:50]process_action close_receipt done [12:50:50]requested_data is exist [12:50:50]produce_requested_data [12:50:50]requested_item fm.sn is exist - process it [12:50:50]wFMCommunicate request_size=4 [12:50:50]MH_SAM_APDU [12:50:50]CAPDU: 80 11 00 00 [12:50:50]Write to MH i2c: E2 08 00 E7 10 80 11 00 00 00 00 00 00 71 [12:50:50]Write i2c OK [12:50:50]MH_I2C_Read... [12:50:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:50]Read from MH i2c: E2 [12:50:50]MH_I2C_Read... [12:50:50]Read from MH i2c: E2 17 00 [12:50:50]MH_I2C_Read... [12:50:50]Read from MH i2c: E2 17 00 E7 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C7 [12:50:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:50:50]wFMCommunicate OK [12:50:50]requested_item fd.num is exist - process it [12:50:50]SAM_PROTO_GetFieldsCounters [12:50:50]wFMCommunicate request_size=4 [12:50:50]MH_SAM_APDU [12:50:50]CAPDU: 80 13 00 00 [12:50:50]Write to MH i2c: E2 08 00 E8 10 80 13 00 00 00 00 00 00 74 [12:50:50]Write i2c OK [12:50:50]MH_I2C_Read... [12:50:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:50:50]Read from MH i2c: E2 [12:50:50]MH_I2C_Read... [12:50:50]Read from MH i2c: E2 62 00 [12:50:50]MH_I2C_Read... [12:50:50]Read from MH i2c: E2 62 00 E8 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A1 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [12:50: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A1 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:50:50]wFMCommunicate OK [12:50:50]SAM_PROTO_GetFieldsCounters done [12:50:50]requested_item shift.num is exist - process it [12:50:50]requested_item shift.opened is exist - process it [12:50:50]req_shift_opened [12:50:50]FM_GetShiftState [12:50:50]SAM_PROTO_GetShiftState [12:50:50]wFMCommunicate request_size=4 [12:50:50]MH_SAM_APDU [12:50:50]CAPDU: 80 13 01 00 [12:50:50]Write to MH i2c: E2 08 00 E9 10 80 13 01 00 00 00 00 00 76 [12:50:50]Write i2c OK [12:50:50]MH_I2C_Read... [12:50:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:50]Read from MH i2c: E2 [12:50:50]MH_I2C_Read... [12:50:50]Read from MH i2c: E2 0E 00 [12:50:50]MH_I2C_Read... [12:50:50]Read from MH i2c: E2 0E 00 E9 10 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 4F [12:50:50]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:50:50]wFMCommunicate OK [12:50:50]SAM_PROTO_GetShiftState done [12:50:50]FM_GetShiftState done [12:50:50]req_shift_opened done [12:50:50]requested_item shift.open_date is exist - process it [12:50:50]req_shift_open_date [12:50:50]req_shift_open_date done [12:50:50]produce_requested_data done [12:50:50]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165281,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [12:50:50]process_action_free close_receipt [12:50:50]json_value_free [12:50:50]json_value_free done [12:50:50]process_json_proto returns [12:50:50]Send response to host [12:50:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165281,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [12:50:50]free response buf [12:50:50]execute_script done [12:50:50]execute_script returns [12:50:50]free content buf [12:50:50]Sock 9.Close socket [12:50:50]Sock 9.Thread stoped [12:50:54]OFD Sender: No OFD packet to send [12:50:59]OFD Sender: No OFD packet to send [12:51:04]OFD Sender: No OFD packet to send [12:51:09]OFD Sender: No OFD packet to send [12:51:14]OFD Sender: No OFD packet to send [12:51:19]OFD Sender: No OFD packet to send [12:51:24]OFD Sender: No OFD packet to send [12:51:29]OFD Sender: No OFD packet to send [12:51:34]OFD Sender: No OFD packet to send [12:51:39]OFD Sender: No OFD packet to send [12:51:44]OFD Sender: No OFD packet to send [12:51:49]OFD Sender: No OFD packet to send [12:51:54]OFD Sender: No OFD packet to send [12:51:59]OFD Sender: No OFD packet to send [12:52:04]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:13]accept exits with 8 [12:54:13]New connection [12:54:13]New thread 3066711396 created [12:54:13]Thread 3066854756 joined [12:54:13]Waiting for new connection... [12:54:13] Sock 8.Parse request [12:54:13]Sock 8.Check first char [12:54:13]Sock 8.First char is OK [12:54:13]request: POST /json_proto HTTP/1.0 [12:54:13]Method: POST [12:54:13]URL: /json_proto [12:54:13]Method is POST - this is cgi request [12:54:13]url: /json_proto [12:54:13]query_string will be loaded in cgi processing [12:54:13]execute_cgi json_proto POST (null) [12:54:13]execute_cgi path=json_proto method=POST [12:54:13]POST find Content-Length [12:54:13]Host: 172.17.56.4:8080 [12:54:13]Content-Length: 679 [12:54:13]Content-Type: application/json [12:54:13] [12:54:13]POST finish read [12:54:13]Found Content-Length = 679 [12:54:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459393", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "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" ] } } [12:54:13]execute_script... [12:54:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459393", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "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" ] } } [12:54:13]POST & json_proto [12:54:13]process_json_proto [12:54:13]json parsed OK: [12:54:13]protocol is kg_v1.0 [12:54:13]action value=close_receipt [12:54:13]process_action close_receipt [12:54:13]cmd_close_receipt [12:54:13]MH_GetDate [12:54:13]Write to MH i2c: F0 00 00 EA 10 E9 [12:54:13]Write i2c OK [12:54:13]MH_I2C_Read... [12:54:13]Read from MH i2c: F0 [12:54:13]MH_I2C_Read... [12:54:13]Read from MH i2c: F0 09 00 [12:54:13]MH_I2C_Read... [12:54:13]Read from MH i2c: F0 09 00 EA 10 00 F6 1B 95 66 C9 DC B2 64 B9 [12:54:13]GetLastDocTimeStamp 1721047847 [12:54:13]current date 1721048054 [12:54:13]FM_GetShiftState [12:54:13]SAM_PROTO_GetShiftState [12:54:13]wFMCommunicate request_size=4 [12:54:13]MH_SAM_APDU [12:54:13]CAPDU: 80 13 01 00 [12:54:13]Write to MH i2c: E2 08 00 EB 10 80 13 01 00 00 00 00 00 78 [12:54:13]Write i2c OK [12:54:13]MH_I2C_Read... [12:54:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:13]Read from MH i2c: E2 [12:54:13]MH_I2C_Read... [12:54:13]Read from MH i2c: E2 0E 00 [12:54:13]MH_I2C_Read... [12:54:13]Read from MH i2c: E2 0E 00 EB 10 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 51 [12:54:13]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:54:13]wFMCommunicate OK [12:54:13]SAM_PROTO_GetShiftState done [12:54:13]FM_GetShiftState done [12:54:13]opened in 1721003876 [12:54:13]opened+sec_in_day 1721090276 [12:54:13]quantity*price = 200025 [12:54:13]sum+1 = 200027 [12:54:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 155 15.07.2024 12:54 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165282 ФПД: 138841626729304 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T125414&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165282&fm=138841626729304&tin=02508201610067®Number=0000000000090829&sum=200000 [12:54:15]StoreToDocumentArchive [12:54:15]shift 448 fd 165282 [12:54:15]save to /storage/0448/doc_00165282 [12:54:15]save last doc name /storage/0448/doc_00165282 to /storage/kkm_last_doc_name [12:54:15]save OK [12:54:15]Clear old archive folders... [12:54:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:54:15]tlvbuf is B6D90B90 [12:54:15]SAM_PROTO_ClearQueue [12:54:15]wFMCommunicate request_size=4 [12:54:15]MH_SAM_APDU [12:54:15]CAPDU: 80 09 00 00 [12:54:15]Write to MH i2c: E2 08 00 F8 10 80 09 00 00 00 00 00 00 7A [12:54:15]Write i2c OK [12:54:15]MH_I2C_Read... [12:54:15]Read from MH i2c: E2 [12:54:15]MH_I2C_Read... [12:54:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:54:15]Read from MH i2c: E2 03 00 [12:54:15]MH_I2C_Read... [12:54:15]Read from MH i2c: E2 03 00 F8 10 00 90 00 7C [12:54:15]RAPDU: 90 00 [12:54:15]wFMCommunicate OK [12:54:15]SAM_PROTO_ClearQueue done [12:54:15]KKMCreateOFDPacket [12:54:15]OFDProtocolAddRootSTLVToBuf [12:54:15]FM_MakeSignedData [12:54:15]FM_MakeSignedData [12:54:15]SAM_PROTO_SignData [12:54:15]wFMCommunicate request_size=4 [12:54:15]MH_SAM_APDU [12:54:15]CAPDU: 80 0D 01 02 [12:54:15]Write to MH i2c: E2 08 00 F9 10 80 0D 01 02 00 00 00 00 82 [12:54:15]Write i2c OK [12:54:15]MH_I2C_Read... [12:54:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:54:15]Read from MH i2c: E2 [12:54:15]MH_I2C_Read... [12:54:15]Read from MH i2c: E2 03 00 [12:54:15]MH_I2C_Read... [12:54:15]Read from MH i2c: E2 03 00 F9 10 00 90 00 7D [12:54:15]RAPDU: 90 00 [12:54:15]wFMCommunicate OK [12:54:15]wFMCommunicate request_size=255 [12:54:15]MH_SAM_APDU [12:54:15]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 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 9B 00 00 00 F4 03 04 00 F6 1B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A2 85 02 00 35 04 06 00 7E 46 95 D7 [12:54:15]Write to MH i2c: E2 02 01 FA 10 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 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 9B 00 00 00 F4 03 04 00 F6 1B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A2 85 02 00 35 04 06 00 7E 46 95 D7 00 00 36 [12:54:15]Write i2c OK [12:54:15]MH_I2C_Read... [12:54:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:15]Read from MH i2c: E2 [12:54:15]MH_I2C_Read... [12:54:15]Read from MH i2c: E2 03 00 [12:54:15]MH_I2C_Read... [12:54:15]Read from MH i2c: E2 03 00 FA 10 00 90 00 7E [12:54:15]RAPDU: 90 00 [12:54:15]wFMCommunicate OK [12:54:15]wFMCommunicate request_size=7 [12:54:15]MH_SAM_APDU [12:54:15]CAPDU: 80 0D 02 02 02 5B 58 [12:54:15]Write to MH i2c: E2 0A 00 FB 10 80 0D 02 02 02 00 5B 58 00 00 3C [12:54:15]Write i2c OK [12:54:15]MH_I2C_Read... [12:54:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:15]Read from MH i2c: E2 [12:54:15]MH_I2C_Read... [12:54:15]Read from MH i2c: E2 03 00 [12:54:15]MH_I2C_Read... [12:54:15]Read from MH i2c: E2 03 00 FB 10 00 90 00 7F [12:54:15]RAPDU: 90 00 [12:54:15]wFMCommunicate OK [12:54:15]wFMCommunicate request_size=4 [12:54:15]MH_SAM_APDU [12:54:15]CAPDU: 80 0D 03 02 [12:54:15]Write to MH i2c: E2 08 00 FC 10 80 0D 03 02 00 00 00 00 87 [12:54:15]Write i2c OK [12:54:15]MH_I2C_Read... [12:54:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:54:15]Read from MH i2c: E2 [12:54:15]MH_I2C_Read... [12:54:15]Read from MH i2c: E2 0B 00 [12:54:15]MH_I2C_Read... [12:54:15]Read from MH i2c: E2 0B 00 FC 10 00 C5 10 54 30 05 90 B0 81 90 00 A7 [12:54:15]RAPDU: C5 10 54 30 05 90 B0 81 90 00 [12:54:15]wFMCommunicate OK [12:54:15]SAM_PROTO_SignData done [12:54:15]FM_MakeSignedData done [12:54:15]CreateOFDProtocolMessage [12:54:15]wFMCommunicate request_size=4 [12:54:15]MH_SAM_APDU [12:54:15]CAPDU: 80 11 00 00 [12:54:15]Write to MH i2c: E2 08 00 FD 10 80 11 00 00 00 00 00 00 87 [12:54:15]Write i2c OK [12:54:15]MH_I2C_Read... [12:54:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:15]Read from MH i2c: E2 [12:54:15]MH_I2C_Read... [12:54:15]Read from MH i2c: E2 17 00 [12:54:15]MH_I2C_Read... [12:54:15]Read from MH i2c: E2 17 00 FD 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DD [12:54:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:54:15]wFMCommunicate OK [12:54:15]CreateOFDProtocolMessage done [12:54:15]OFDSenderStorePacket 165282 [12:54:15]StoreOFDPacket docnum=165282 [12:54:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 3F D8 04 01 11 63 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 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 9B 00 00 00 F4 03 04 00 F6 1B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A2 85 02 00 35 04 06 00 7E 46 95 D7 5B 58 C5 10 54 30 05 90 B0 81 [12:54:15]CheckFolder [12:54:15]dirname=/storage/ofd_packets [12:54:15]CheckFolder done [12:54:15]ProducePacketName [12:54:15]name=ofd_packets/00165282 [12:54:15]NVStorageSaveData ofd_packets/00165282 [12:54:15]File name is /storage/ofd_packets/00165282 [12:54:15]Write 298 bytes [12:54:15]NVStorageSaveData done [12:54:15]OFDSenderStorePacket done [12:54:15]KKMCreateOFDPacket done [12:54:15]NVStorageSaveData kkm_last_timestamp [12:54:15]File name is /storage/kkm_last_timestamp [12:54:15]Write 4 bytes [12:54:15]NVStorageSaveData done [12:54:15]ExternCall_PrintAddStr [12:54:15]wPrintStart [12:54:15]Write to MH i2c: 01 00 00 FE 10 0E [12:54:15]Write i2c OK [12:54:15]MH_I2C_Read... [12:54:15]Read from MH i2c: 01 [12:54:15]MH_I2C_Read... [12:54:15]Read from MH i2c: 01 07 00 [12:54:15]MH_I2C_Read... [12:54:15]Read from MH i2c: 01 07 00 FE 10 00 00 00 00 00 FF 0F 23 [12:54:15]RasterBufferAndPrint [12:54:15]line Счет N : (1)459393 [12:54:15]line ИНН: 02508201610067 [12:54:15]line Контрольно-Кассовый Чек [12:54:15]line ПРОДАЖА [12:54:15]line ТРК (МРК, ГНК) : 11 [12:54:15]line Товар: 2710194210 [12:54:15]line ДТ-К-5 [12:54:15]line 27.820 * 71.90 [12:54:15]line = 2000.26 [12:54:15]line НДС 12% НСП 1% [12:54:15]line > о реализуемом товаре [12:54:15]line ОКРУГЛЕНИЕ: -0.26 [12:54:15]line ИТОГО: 2000.00 [12:54:15]line Внесено: 2000.00 [12:54:15]line СДАЧА: 0.00 [12:54:15]line НСП 1% : 17.70 [12:54:15]line НДС 12% : 212.42 [12:54:15]line Наличными: 2000.00 [12:54:15]line Безнал.: 0.00 [12:54:15]line Место: АЗС № 72 "Партнер Нефть" [12:54:15]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:54:15]line СНО: Общий режим [12:54:15]line Чек 155 15.07.2024 12:54 [12:54:15]line Смена: 448 ФФД: 1.0 [12:54:15]line ЗНМ: 0300000160 [12:54:15]line РНМ: 0000000000090829 [12:54:15]line Версия ККМ: 001 [12:54:15]line ФМ: 0000000000874718 [12:54:15]line ФД: 165282 [12:54:15]line ФПД: 138841626729304 [12:54:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T125414&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165282&fm=138841626729304&tin=02508201610067®Number=0000000000090829&sum=200000 [12:54:15]OFD Sender: Processing packet 165282 [packets to send 106, broken 105] [12:54:15]ProducePacketName [12:54:15]name=ofd_packets/00165282 [12:54:15]OFD Sender: To server: pG, [12:54:15]CommunicateWithHost lk.salyk.kg:30040 [12:54:15]ConnectInit lk.salyk.kg [12:54:15]written 0, free lines is 4095 [12:54:15]Connected sock=10 [12:54:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 3F D8 04 01 11 63 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 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 9B 00 00 00 F4 03 04 00 F6 1B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A2 85 02 00 35 04 06 00 7E 46 95 D7 5B 58 C5 10 54 30 05 90 B0 81 [12:54:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 C5 AC 47 00 C1 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A2 85 02 00 F4 03 04 00 81 C2 94 66 B6 04 01 00 00 D7 DD 72 E3 0B BA F1 F1 [12:54:16]CommunicateWithHost err = 0 [12:54:16]CheckOFDResponse [12:54:16]1017 (14) - 77093643461234 [12:54:16]1041 (16) - 0000000000874718 [12:54:16]1040 (4) - 165282 [12:54:16]1012 (4) - 15.07.2024 06:32 [12:54:16]1206 (1) - 0 [12:54:16]OFD Sender: Remove packet 165282 [12:54:16]ProducePacketName [12:54:16]name=ofd_packets/00165282 [12:54:16]NVStorageDeleteData [12:54:16]Write to MH i2c: 01 00 00 28 11 39 [12:54:16]Write i2c OK [12:54:16]MH_I2C_Read... [12:54:16]Read from MH i2c: 01 [12:54:16]MH_I2C_Read... [12:54:16]Read from MH i2c: 01 07 00 [12:54:16]MH_I2C_Read... [12:54:16]Read from MH i2c: 01 07 00 28 11 00 00 00 00 00 F8 0C 44 [12:54:16]RasterBufferAndPrint [12:54:16]line [12:54:16]line [12:54:16]line [12:54:16]line [12:54:16]line [12:54:16]written 0, free lines is 3327 [12:54:16]MH_Cut [12:54:16]Write to MH i2c: D1 01 00 2F 11 01 12 [12:54:16]Write i2c OK [12:54:16]MH_I2C_Read... [12:54:16]Read from MH i2c: D1 [12:54:16]MH_I2C_Read... [12:54:16]Read from MH i2c: D1 01 00 [12:54:16]MH_I2C_Read... [12:54:16]Read from MH i2c: D1 01 00 2F 11 00 11 [12:54:16]Write to MH i2c: 01 00 00 30 11 41 [12:54:16]Write i2c OK [12:54:16]MH_I2C_Read... [12:54:16]OFD Sender: No OFD packet to send [12:54:17]*** Cut start [12:54:17]*** Partial cut [12:54:17]*** CUTSNS_PIN = 1 [12:54:17]*** CUTSNS_PIN = 0 [12:54:17]*** Brake cut motor [12:54:17]Read from MH i2c: 01 [12:54:17]MH_I2C_Read... [12:54:17]*** Stop cut motor [12:54:17]*** Cut end [12:54:17]Read from MH i2c: 01 07 00 [12:54:17]MH_I2C_Read... [12:54:17]Read from MH i2c: 01 07 00 30 11 00 00 00 00 00 FF 0F 56 [12:54:17]process_action close_receipt done [12:54:17]requested_data is exist [12:54:17]produce_requested_data [12:54:17]requested_item fm.sn is exist - process it [12:54:17]wFMCommunicate request_size=4 [12:54:17]MH_SAM_APDU [12:54:17]CAPDU: 80 11 00 00 [12:54:17]Write to MH i2c: E2 08 00 31 11 80 11 00 00 00 00 00 00 BC [12:54:17]Write i2c OK [12:54:17]MH_I2C_Read... [12:54:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:17]Read from MH i2c: E2 [12:54:17]MH_I2C_Read... [12:54:17]Read from MH i2c: E2 17 00 [12:54:17]MH_I2C_Read... [12:54:17]Read from MH i2c: E2 17 00 31 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 12 [12:54:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:54:17]wFMCommunicate OK [12:54:17]requested_item fd.num is exist - process it [12:54:17]SAM_PROTO_GetFieldsCounters [12:54:17]wFMCommunicate request_size=4 [12:54:17]MH_SAM_APDU [12:54:17]CAPDU: 80 13 00 00 [12:54:17]Write to MH i2c: E2 08 00 32 11 80 13 00 00 00 00 00 00 BF [12:54:17]Write i2c OK [12:54:17]MH_I2C_Read... [12:54:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:54:17]Read from MH i2c: E2 [12:54:17]MH_I2C_Read... [12:54:17]Read from MH i2c: E2 62 00 [12:54:17]MH_I2C_Read... [12:54:17]Read from MH i2c: E2 62 00 32 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A2 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 A1 [12:54: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A2 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:54:17]wFMCommunicate OK [12:54:17]SAM_PROTO_GetFieldsCounters done [12:54:17]requested_item shift.num is exist - process it [12:54:17]requested_item shift.opened is exist - process it [12:54:17]req_shift_opened [12:54:17]FM_GetShiftState [12:54:17]SAM_PROTO_GetShiftState [12:54:17]wFMCommunicate request_size=4 [12:54:17]MH_SAM_APDU [12:54:17]CAPDU: 80 13 01 00 [12:54:17]Write to MH i2c: E2 08 00 33 11 80 13 01 00 00 00 00 00 C1 [12:54:17]Write i2c OK [12:54:17]MH_I2C_Read... [12:54:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:17]Read from MH i2c: E2 [12:54:17]MH_I2C_Read... [12:54:17]Read from MH i2c: E2 0E 00 [12:54:17]MH_I2C_Read... [12:54:17]Read from MH i2c: E2 0E 00 33 11 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 9A [12:54:17]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:54:17]wFMCommunicate OK [12:54:17]SAM_PROTO_GetShiftState done [12:54:17]FM_GetShiftState done [12:54:17]req_shift_opened done [12:54:17]requested_item shift.open_date is exist - process it [12:54:17]req_shift_open_date [12:54:17]req_shift_open_date done [12:54:17]produce_requested_data done [12:54:17]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165282,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [12:54:17]process_action_free close_receipt [12:54:17]json_value_free [12:54:17]json_value_free done [12:54:17]process_json_proto returns [12:54:17]Send response to host [12:54:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165282,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [12:54:17]free response buf [12:54:17]execute_script done [12:54:17]execute_script returns [12:54:17]free content buf [12:54:17]Sock 8.Close socket [12:54:17]Sock 8.Thread stoped [12:54:21]OFD Sender: No OFD packet to send [12:54:26]OFD Sender: No OFD packet to send [12:54:31]OFD Sender: No OFD packet to send [12:54:36]OFD Sender: No OFD packet to send [12:54:41]OFD Sender: No OFD packet to send [12:54:46]OFD Sender: No OFD packet to send [12:54:51]OFD Sender: No OFD packet to send [12:54:56]OFD Sender: No OFD packet to send [12:55:01]OFD Sender: No OFD packet to send [12:55:06]OFD Sender: No OFD packet to send [12:55:11]OFD Sender: No OFD packet to send [12:55:16]accept exits with 9 [12:55:16]New connection [12:55:16]New thread 3066854756 created [12:55:16]Thread 3066711396 joined [12:55:16]Waiting for new connection... [12:55:16] Sock 9.Parse request [12:55:16]Sock 9.Check first char [12:55:16]Sock 9.First char is OK [12:55:16]request: POST /json_proto HTTP/1.0 [12:55:16]Method: POST [12:55:16]URL: /json_proto [12:55:16]Method is POST - this is cgi request [12:55:16]url: /json_proto [12:55:16]query_string will be loaded in cgi processing [12:55:16]execute_cgi json_proto POST (null) [12:55:16]execute_cgi path=json_proto method=POST [12:55:16]POST find Content-Length [12:55:16]Host: 172.17.56.4:8080 [12:55:16]Content-Length: 677 [12:55:16]Content-Type: application/json [12:55:16] [12:55:16]POST finish read [12:55:16]Found Content-Length = 677 [12:55:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459395", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:55:16]execute_script... [12:55:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459395", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:55:16]POST & json_proto [12:55:16]process_json_proto [12:55:16]json parsed OK: [12:55:16]protocol is kg_v1.0 [12:55:16]action value=close_receipt [12:55:16]process_action close_receipt [12:55:16]cmd_close_receipt [12:55:16]MH_GetDate [12:55:16]Write to MH i2c: F0 00 00 34 11 34 [12:55:16]Write i2c OK [12:55:16]MH_I2C_Read... [12:55:16]Read from MH i2c: F0 [12:55:16]MH_I2C_Read... [12:55:16]Read from MH i2c: F0 09 00 [12:55:16]MH_I2C_Read... [12:55:16]Read from MH i2c: F0 09 00 34 11 00 35 1C 95 66 C9 DC B2 64 44 [12:55:16]GetLastDocTimeStamp 1721048054 [12:55:16]current date 1721048117 [12:55:16]FM_GetShiftState [12:55:16]SAM_PROTO_GetShiftState [12:55:16]wFMCommunicate request_size=4 [12:55:16]MH_SAM_APDU [12:55:16]CAPDU: 80 13 01 00 [12:55:16]Write to MH i2c: E2 08 00 35 11 80 13 01 00 00 00 00 00 C3 [12:55:16]Write i2c OK [12:55:16]MH_I2C_Read... [12:55:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:16]Read from MH i2c: E2 [12:55:16]MH_I2C_Read... [12:55:16]Read from MH i2c: E2 0E 00 [12:55:16]MH_I2C_Read... [12:55:16]Read from MH i2c: E2 0E 00 35 11 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 9C [12:55:16]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:55:16]wFMCommunicate OK [12:55:16]SAM_PROTO_GetShiftState done [12:55:16]FM_GetShiftState done [12:55:16]opened in 1721003876 [12:55:16]opened+sec_in_day 1721090276 [12:55:16]quantity*price = 30004 [12:55:16]sum+1 = 30006 [12:55:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 156 15.07.2024 12:55 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165283 ФПД: 91466106145350 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T125517&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165283&fm=91466106145350&tin=02508201610067®Number=0000000000090829&sum=30000 [12:55:17]StoreToDocumentArchive [12:55:17]shift 448 fd 165283 [12:55:17]save to /storage/0448/doc_00165283 [12:55:17]save last doc name /storage/0448/doc_00165283 to /storage/kkm_last_doc_name [12:55:17]save OK [12:55:17]Clear old archive folders... [12:55:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:55:17]tlvbuf is 01855680 [12:55:17]SAM_PROTO_ClearQueue [12:55:17]wFMCommunicate request_size=4 [12:55:17]MH_SAM_APDU [12:55:17]CAPDU: 80 09 00 00 [12:55:17]Write to MH i2c: E2 08 00 42 11 80 09 00 00 00 00 00 00 C5 [12:55:17]Write i2c OK [12:55:17]MH_I2C_Read... [12:55:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:55:17]Read from MH i2c: E2 [12:55:17]MH_I2C_Read... [12:55:17]Read from MH i2c: E2 03 00 [12:55:17]MH_I2C_Read... [12:55:17]Read from MH i2c: E2 03 00 42 11 00 90 00 C7 [12:55:17]RAPDU: 90 00 [12:55:17]wFMCommunicate OK [12:55:17]SAM_PROTO_ClearQueue done [12:55:17]KKMCreateOFDPacket [12:55:17]OFDProtocolAddRootSTLVToBuf [12:55:17]FM_MakeSignedData [12:55:17]FM_MakeSignedData [12:55:17]SAM_PROTO_SignData [12:55:17]wFMCommunicate request_size=4 [12:55:17]MH_SAM_APDU [12:55:17]CAPDU: 80 0D 01 02 [12:55:17]Write to MH i2c: E2 08 00 43 11 80 0D 01 02 00 00 00 00 CD [12:55:17]Write i2c OK [12:55:17]MH_I2C_Read... [12:55:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:55:17]Read from MH i2c: E2 [12:55:17]MH_I2C_Read... [12:55:17]Read from MH i2c: E2 03 00 [12:55:17]MH_I2C_Read... [12:55:17]Read from MH i2c: E2 03 00 43 11 00 90 00 C8 [12:55:17]RAPDU: 90 00 [12:55:17]wFMCommunicate OK [12:55:17]wFMCommunicate request_size=255 [12:55:17]MH_SAM_APDU [12:55:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 35 1C 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A3 85 02 00 35 04 06 00 53 [12:55:17]Write to MH i2c: E2 02 01 44 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 35 1C 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A3 85 02 00 35 04 06 00 53 00 00 2D [12:55:17]Write i2c OK [12:55:17]MH_I2C_Read... [12:55:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:18]Read from MH i2c: E2 [12:55:18]MH_I2C_Read... [12:55:18]Read from MH i2c: E2 03 00 [12:55:18]MH_I2C_Read... [12:55:18]Read from MH i2c: E2 03 00 44 11 00 90 00 C9 [12:55:18]RAPDU: 90 00 [12:55:18]wFMCommunicate OK [12:55:18]wFMCommunicate request_size=10 [12:55:18]MH_SAM_APDU [12:55:18]CAPDU: 80 0D 02 02 05 30 1C C4 0A 46 [12:55:18]Write to MH i2c: E2 0D 00 45 11 80 0D 02 02 05 00 30 1C C4 0A 46 00 00 3A [12:55:18]Write i2c OK [12:55:18]MH_I2C_Read... [12:55:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:18]Read from MH i2c: E2 [12:55:18]MH_I2C_Read... [12:55:18]Read from MH i2c: E2 03 00 [12:55:18]MH_I2C_Read... [12:55:18]Read from MH i2c: E2 03 00 45 11 00 90 00 CA [12:55:18]RAPDU: 90 00 [12:55:18]wFMCommunicate OK [12:55:18]wFMCommunicate request_size=4 [12:55:18]MH_SAM_APDU [12:55:18]CAPDU: 80 0D 03 02 [12:55:18]Write to MH i2c: E2 08 00 46 11 80 0D 03 02 00 00 00 00 D2 [12:55:18]Write i2c OK [12:55:18]MH_I2C_Read... [12:55:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:55:18]Read from MH i2c: E2 [12:55:18]MH_I2C_Read... [12:55:18]Read from MH i2c: E2 0B 00 [12:55:18]MH_I2C_Read... [12:55:18]Read from MH i2c: E2 0B 00 46 11 00 8F B1 5D D7 A6 F7 E7 8D 90 00 58 [12:55:18]RAPDU: 8F B1 5D D7 A6 F7 E7 8D 90 00 [12:55:18]wFMCommunicate OK [12:55:18]SAM_PROTO_SignData done [12:55:18]FM_MakeSignedData done [12:55:18]CreateOFDProtocolMessage [12:55:18]wFMCommunicate request_size=4 [12:55:18]MH_SAM_APDU [12:55:18]CAPDU: 80 11 00 00 [12:55:18]Write to MH i2c: E2 08 00 47 11 80 11 00 00 00 00 00 00 D2 [12:55:18]Write i2c OK [12:55:18]MH_I2C_Read... [12:55:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:18]Read from MH i2c: E2 [12:55:18]MH_I2C_Read... [12:55:18]Read from MH i2c: E2 17 00 [12:55:18]MH_I2C_Read... [12:55:18]Read from MH i2c: E2 17 00 47 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 28 [12:55:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:55:18]wFMCommunicate OK [12:55:18]CreateOFDProtocolMessage done [12:55:18]OFDSenderStorePacket 165283 [12:55:18]StoreOFDPacket docnum=165283 [12:55:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D2 6F 07 01 94 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 35 1C 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A3 85 02 00 35 04 06 00 53 30 1C C4 0A 46 8F B1 5D D7 A6 F7 E7 8D [12:55:18]CheckFolder [12:55:18]dirname=/storage/ofd_packets [12:55:18]CheckFolder done [12:55:18]ProducePacketName [12:55:18]name=ofd_packets/00165283 [12:55:18]NVStorageSaveData ofd_packets/00165283 [12:55:18]File name is /storage/ofd_packets/00165283 [12:55:18]Write 301 bytes [12:55:18]NVStorageSaveData done [12:55:18]OFDSenderStorePacket done [12:55:18]KKMCreateOFDPacket done [12:55:18]NVStorageSaveData kkm_last_timestamp [12:55:18]File name is /storage/kkm_last_timestamp [12:55:18]Write 4 bytes [12:55:18]NVStorageSaveData done [12:55:18]ExternCall_PrintAddStr [12:55:18]wPrintStart [12:55:18]Write to MH i2c: 01 00 00 48 11 59 [12:55:18]Write i2c OK [12:55:18]MH_I2C_Read... [12:55:18]Read from MH i2c: 01 [12:55:18]MH_I2C_Read... [12:55:18]Read from MH i2c: 01 07 00 [12:55:18]MH_I2C_Read... [12:55:18]Read from MH i2c: 01 07 00 48 11 00 00 00 00 00 FF 0F 6E [12:55:18]RasterBufferAndPrint [12:55:18]line Счет N : (1)459395 [12:55:18]line ИНН: 02508201610067 [12:55:18]line Контрольно-Кассовый Чек [12:55:18]line ПРОДАЖА [12:55:18]line ТРК (МРК, ГНК) : 22 [12:55:18]line Товар: 2710124130 [12:55:18]line Аи-92-К-5 [12:55:18]line 4.560 * 65.80 [12:55:18]line = 300.05 [12:55:18]line НДС 12% НСП 1% [12:55:18]line > о реализуемом товаре [12:55:18]line ОКРУГЛЕНИЕ: -0.05 [12:55:18]line ИТОГО: 300.00 [12:55:18]line Внесено: 300.00 [12:55:18]line СДАЧА: 0.00 [12:55:18]line НСП 1% : 2.65 [12:55:18]line НДС 12% : 31.86 [12:55:18]line Наличными: 300.00 [12:55:18]line Безнал.: 0.00 [12:55:18]line Место: АЗС № 72 "Партнер Нефть" [12:55:18]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:55:18]line СНО: Общий режим [12:55:18]line Чек 156 15.07.2024 12:55 [12:55:18]line Смена: 448 ФФД: 1.0 [12:55:18]line ЗНМ: 0300000160 [12:55:18]line РНМ: 0000000000090829 [12:55:18]line Версия ККМ: 001 [12:55:18]line ФМ: 0000000000874718 [12:55:18]line ФД: 165283 [12:55:18]line ФПД: 91466106145350 [12:55:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T125517&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165283&fm=91466106145350&tin=02508201610067®Number=0000000000090829&sum=30000 [12:55:18]OFD Sender: Processing packet 165283 [packets to send 106, broken 105] [12:55:18]ProducePacketName [12:55:18]name=ofd_packets/00165283 [12:55:18]OFD Sender: To server: pG, [12:55:18]CommunicateWithHost lk.salyk.kg:30040 [12:55:18]ConnectInit lk.salyk.kg [12:55:18]written 0, free lines is 4095 [12:55:18]Connected sock=10 [12:55: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 37 31 38 0F 01 00 00 D2 6F 07 01 94 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 35 1C 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A3 85 02 00 35 04 06 00 53 30 1C C4 0A 46 8F B1 5D D7 A6 F7 E7 8D [12:55:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 AF 99 47 00 B0 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A3 85 02 00 F4 03 04 00 BF C2 94 66 B6 04 01 00 00 22 7C E3 57 DD 1C 64 D0 [12:55:18]CommunicateWithHost err = 0 [12:55:18]CheckOFDResponse [12:55:18]1017 (14) - 77093643461234 [12:55:18]1041 (16) - 0000000000874718 [12:55:18]1040 (4) - 165283 [12:55:18]1012 (4) - 15.07.2024 06:33 [12:55:18]1206 (1) - 0 [12:55:18]OFD Sender: Remove packet 165283 [12:55:18]ProducePacketName [12:55:18]name=ofd_packets/00165283 [12:55:18]NVStorageDeleteData [12:55:19]Write to MH i2c: 01 00 00 72 11 83 [12:55:19]Write i2c OK [12:55:19]MH_I2C_Read... [12:55:19]Read from MH i2c: 01 [12:55:19]MH_I2C_Read... [12:55:19]Read from MH i2c: 01 07 00 [12:55:19]MH_I2C_Read... [12:55:19]Read from MH i2c: 01 07 00 72 11 00 00 00 00 00 FB 0C 91 [12:55:19]RasterBufferAndPrint [12:55:19]line [12:55:19]line [12:55:19]line [12:55:19]line [12:55:19]line [12:55:19]written 0, free lines is 3329 [12:55:19]MH_Cut [12:55:19]Write to MH i2c: D1 01 00 79 11 01 5C [12:55:19]Write i2c OK [12:55:19]MH_I2C_Read... [12:55:19]Read from MH i2c: D1 [12:55:19]MH_I2C_Read... [12:55:19]Read from MH i2c: D1 01 00 [12:55:19]MH_I2C_Read... [12:55:19]Read from MH i2c: D1 01 00 79 11 00 5B [12:55:19]Write to MH i2c: 01 00 00 7A 11 8B [12:55:19]Write i2c OK [12:55:19]MH_I2C_Read... [12:55:19]OFD Sender: No OFD packet to send [12:55:19]*** Cut start [12:55:19]*** Partial cut [12:55:19]*** CUTSNS_PIN = 1 [12:55:19]*** CUTSNS_PIN = 0 [12:55:19]*** Brake cut motor [12:55:20]Read from MH i2c: 01 [12:55:20]MH_I2C_Read... [12:55:20]*** Stop cut motor [12:55:20]*** Cut end [12:55:20]Read from MH i2c: 01 07 00 [12:55:20]MH_I2C_Read... [12:55:20]Read from MH i2c: 01 07 00 7A 11 00 00 00 00 00 FF 0F A0 [12:55:20]process_action close_receipt done [12:55:20]requested_data is exist [12:55:20]produce_requested_data [12:55:20]requested_item fm.sn is exist - process it [12:55:20]wFMCommunicate request_size=4 [12:55:20]MH_SAM_APDU [12:55:20]CAPDU: 80 11 00 00 [12:55:20]Write to MH i2c: E2 08 00 7B 11 80 11 00 00 00 00 00 00 06 [12:55:20]Write i2c OK [12:55:20]MH_I2C_Read... [12:55:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:20]Read from MH i2c: E2 [12:55:20]MH_I2C_Read... [12:55:20]Read from MH i2c: E2 17 00 [12:55:20]MH_I2C_Read... [12:55:20]Read from MH i2c: E2 17 00 7B 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5C [12:55:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:55:20]wFMCommunicate OK [12:55:20]requested_item fd.num is exist - process it [12:55:20]SAM_PROTO_GetFieldsCounters [12:55:20]wFMCommunicate request_size=4 [12:55:20]MH_SAM_APDU [12:55:20]CAPDU: 80 13 00 00 [12:55:20]Write to MH i2c: E2 08 00 7C 11 80 13 00 00 00 00 00 00 09 [12:55:20]Write i2c OK [12:55:20]MH_I2C_Read... [12:55:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:55:20]Read from MH i2c: E2 [12:55:20]MH_I2C_Read... [12:55:20]Read from MH i2c: E2 62 00 [12:55:20]MH_I2C_Read... [12:55:20]Read from MH i2c: E2 62 00 7C 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A3 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [12:55:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A3 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:55:20]wFMCommunicate OK [12:55:20]SAM_PROTO_GetFieldsCounters done [12:55:20]requested_item shift.num is exist - process it [12:55:20]requested_item shift.opened is exist - process it [12:55:20]req_shift_opened [12:55:20]FM_GetShiftState [12:55:20]SAM_PROTO_GetShiftState [12:55:20]wFMCommunicate request_size=4 [12:55:20]MH_SAM_APDU [12:55:20]CAPDU: 80 13 01 00 [12:55:20]Write to MH i2c: E2 08 00 7D 11 80 13 01 00 00 00 00 00 0B [12:55:20]Write i2c OK [12:55:20]MH_I2C_Read... [12:55:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:20]Read from MH i2c: E2 [12:55:20]MH_I2C_Read... [12:55:20]Read from MH i2c: E2 0E 00 [12:55:20]MH_I2C_Read... [12:55:20]Read from MH i2c: E2 0E 00 7D 11 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 E4 [12:55:20]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:55:20]wFMCommunicate OK [12:55:20]SAM_PROTO_GetShiftState done [12:55:20]FM_GetShiftState done [12:55:20]req_shift_opened done [12:55:20]requested_item shift.open_date is exist - process it [12:55:20]req_shift_open_date [12:55:20]req_shift_open_date done [12:55:20]produce_requested_data done [12:55:20]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165283,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [12:55:20]process_action_free close_receipt [12:55:20]json_value_free [12:55:20]json_value_free done [12:55:20]process_json_proto returns [12:55:20]Send response to host [12:55:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165283,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [12:55:20]free response buf [12:55:20]execute_script done [12:55:20]execute_script returns [12:55:20]free content buf [12:55:20]Sock 9.Close socket [12:55:20]Sock 9.Thread stoped [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:21]accept exits with 8 [12:56:21]New connection [12:56:21]New thread 3066711396 created [12:56:21]Thread 3066854756 joined [12:56:21]Waiting for new connection... [12:56:21] Sock 8.Parse request [12:56:21]Sock 8.Check first char [12:56:21]Sock 8.First char is OK [12:56:21]request: POST /json_proto HTTP/1.0 [12:56:21]Method: POST [12:56:21]URL: /json_proto [12:56:21]Method is POST - this is cgi request [12:56:21]url: /json_proto [12:56:21]query_string will be loaded in cgi processing [12:56:21]execute_cgi json_proto POST (null) [12:56:21]execute_cgi path=json_proto method=POST [12:56:21]POST find Content-Length [12:56:21]Host: 172.17.56.4:8080 [12:56:21]Content-Length: 790 [12:56:21]Content-Type: application/json [12:56:21] [12:56:21]POST finish read [12:56:21]Found Content-Length = 790 [12:56:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459394", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 50.000, "sum" : 3563.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 3563.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:56:21]execute_script... [12:56:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459394", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 50.000, "sum" : 3563.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 3563.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:56:21]POST & json_proto [12:56:21]process_json_proto [12:56:21]json parsed OK: [12:56:21]protocol is kg_v1.0 [12:56:21]action value=close_receipt [12:56:21]process_action close_receipt [12:56:21]cmd_close_receipt [12:56:21]MH_GetDate [12:56:21]Write to MH i2c: F0 00 00 7E 11 7E [12:56:21]Write i2c OK [12:56:21]MH_I2C_Read... [12:56:21]Read from MH i2c: F0 [12:56:21]MH_I2C_Read... [12:56:21]Read from MH i2c: F0 09 00 [12:56:21]MH_I2C_Read... [12:56:21]Read from MH i2c: F0 09 00 7E 11 00 76 1C 95 66 C9 DC B2 64 CF [12:56:21]GetLastDocTimeStamp 1721048117 [12:56:21]current date 1721048182 [12:56:21]FM_GetShiftState [12:56:21]SAM_PROTO_GetShiftState [12:56:21]wFMCommunicate request_size=4 [12:56:21]MH_SAM_APDU [12:56:21]CAPDU: 80 13 01 00 [12:56:21]Write to MH i2c: E2 08 00 7F 11 80 13 01 00 00 00 00 00 0D [12:56:21]Write i2c OK [12:56:21]MH_I2C_Read... [12:56:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:21]Read from MH i2c: E2 [12:56:21]MH_I2C_Read... [12:56:21]Read from MH i2c: E2 0E 00 [12:56:21]MH_I2C_Read... [12:56:21]Read from MH i2c: E2 0E 00 7F 11 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 E6 [12:56:21]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:56:21]wFMCommunicate OK [12:56:21]SAM_PROTO_GetShiftState done [12:56:21]FM_GetShiftState done [12:56:21]opened in 1721003876 [12:56:21]opened+sec_in_day 1721090276 [12:56:21]quantity*price = 356300 [12:56:21]sum+1 = 356301 [12:56:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3563.00 НСП 1% : 31.53 НДС 12% : 378.37 Наличными: 0.00 Безнал.: 3563.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 157 15.07.2024 12:56 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 165284 ФПД: 81030776659437 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T125622&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165284&fm=81030776659437&tin=02508201610067®Number=0000000000090829&sum=356300 [12:56:22]StoreToDocumentArchive [12:56:22]shift 448 fd 165284 [12:56:22]save to /storage/0448/doc_00165284 [12:56:22]save last doc name /storage/0448/doc_00165284 to /storage/kkm_last_doc_name [12:56:22]save OK [12:56:22]Clear old archive folders... [12:56:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:56:22]tlvbuf is 01855510 [12:56:22]SAM_PROTO_ClearQueue [12:56:22]wFMCommunicate request_size=4 [12:56:22]MH_SAM_APDU [12:56:22]CAPDU: 80 09 00 00 [12:56:22]Write to MH i2c: E2 08 00 8C 11 80 09 00 00 00 00 00 00 0F [12:56:22]Write i2c OK [12:56:22]MH_I2C_Read... [12:56:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:56:22]Read from MH i2c: E2 [12:56:22]MH_I2C_Read... [12:56:22]Read from MH i2c: E2 03 00 [12:56:22]MH_I2C_Read... [12:56:22]Read from MH i2c: E2 03 00 8C 11 00 90 00 11 [12:56:22]RAPDU: 90 00 [12:56:22]wFMCommunicate OK [12:56:22]SAM_PROTO_ClearQueue done [12:56:22]KKMCreateOFDPacket [12:56:22]OFDProtocolAddRootSTLVToBuf [12:56:22]FM_MakeSignedData [12:56:22]FM_MakeSignedData [12:56:22]SAM_PROTO_SignData [12:56:22]wFMCommunicate request_size=4 [12:56:22]MH_SAM_APDU [12:56:22]CAPDU: 80 0D 01 02 [12:56:22]Write to MH i2c: E2 08 00 8D 11 80 0D 01 02 00 00 00 00 17 [12:56:22]Write i2c OK [12:56:22]MH_I2C_Read... [12:56:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:56:22]Read from MH i2c: E2 [12:56:22]MH_I2C_Read... [12:56:22]Read from MH i2c: E2 03 00 [12:56:22]MH_I2C_Read... [12:56:22]Read from MH i2c: E2 03 00 8D 11 00 90 00 12 [12:56:22]RAPDU: 90 00 [12:56:22]wFMCommunicate OK [12:56:22]wFMCommunicate request_size=255 [12:56:22]MH_SAM_APDU [12:56:22]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 CC 6F 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 6F 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 93 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC 6F 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 76 1C 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A4 85 02 00 35 04 06 00 49 B2 72 A8 [12:56:22]Write to MH i2c: E2 02 01 8E 11 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 CC 6F 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 6F 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 93 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC 6F 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 76 1C 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A4 85 02 00 35 04 06 00 49 B2 72 A8 00 00 26 [12:56:22]Write i2c OK [12:56:22]MH_I2C_Read... [12:56:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:23]Read from MH i2c: E2 [12:56:23]MH_I2C_Read... [12:56:23]Read from MH i2c: E2 03 00 [12:56:23]MH_I2C_Read... [12:56:23]Read from MH i2c: E2 03 00 8E 11 00 90 00 13 [12:56:23]RAPDU: 90 00 [12:56:23]wFMCommunicate OK [12:56:23]wFMCommunicate request_size=7 [12:56:23]MH_SAM_APDU [12:56:23]CAPDU: 80 0D 02 02 02 9D ED [12:56:23]Write to MH i2c: E2 0A 00 8F 11 80 0D 02 02 02 00 9D ED 00 00 A8 [12:56:23]Write i2c OK [12:56:23]MH_I2C_Read... [12:56:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:23]Read from MH i2c: E2 [12:56:23]MH_I2C_Read... [12:56:23]Read from MH i2c: E2 03 00 [12:56:23]MH_I2C_Read... [12:56:23]Read from MH i2c: E2 03 00 8F 11 00 90 00 14 [12:56:23]RAPDU: 90 00 [12:56:23]wFMCommunicate OK [12:56:23]wFMCommunicate request_size=4 [12:56:23]MH_SAM_APDU [12:56:23]CAPDU: 80 0D 03 02 [12:56:23]Write to MH i2c: E2 08 00 90 11 80 0D 03 02 00 00 00 00 1C [12:56:23]Write i2c OK [12:56:23]MH_I2C_Read... [12:56:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:56:23]Read from MH i2c: E2 [12:56:23]MH_I2C_Read... [12:56:23]Read from MH i2c: E2 0B 00 [12:56:23]MH_I2C_Read... [12:56:23]Read from MH i2c: E2 0B 00 90 11 00 73 E6 B9 9B 0B 2F BD A8 90 00 69 [12:56:23]RAPDU: 73 E6 B9 9B 0B 2F BD A8 90 00 [12:56:23]wFMCommunicate OK [12:56:23]SAM_PROTO_SignData done [12:56:23]FM_MakeSignedData done [12:56:23]CreateOFDProtocolMessage [12:56:23]wFMCommunicate request_size=4 [12:56:23]MH_SAM_APDU [12:56:23]CAPDU: 80 11 00 00 [12:56:23]Write to MH i2c: E2 08 00 91 11 80 11 00 00 00 00 00 00 1C [12:56:23]Write i2c OK [12:56:23]MH_I2C_Read... [12:56:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:23]Read from MH i2c: E2 [12:56:23]MH_I2C_Read... [12:56:23]Read from MH i2c: E2 17 00 [12:56:23]MH_I2C_Read... [12:56:23]Read from MH i2c: E2 17 00 91 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 72 [12:56:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:56:23]wFMCommunicate OK [12:56:23]CreateOFDProtocolMessage done [12:56:23]OFDSenderStorePacket 165284 [12:56:23]StoreOFDPacket docnum=165284 [12:56:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 B8 8B 04 01 53 0F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 CC 6F 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 6F 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 93 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC 6F 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 76 1C 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A4 85 02 00 35 04 06 00 49 B2 72 A8 9D ED 73 E6 B9 9B 0B 2F BD A8 [12:56:23]CheckFolder [12:56:23]dirname=/storage/ofd_packets [12:56:23]CheckFolder done [12:56:23]ProducePacketName [12:56:23]name=ofd_packets/00165284 [12:56:23]NVStorageSaveData ofd_packets/00165284 [12:56:23]File name is /storage/ofd_packets/00165284 [12:56:23]Write 298 bytes [12:56:23]NVStorageSaveData done [12:56:23]OFDSenderStorePacket done [12:56:23]KKMCreateOFDPacket done [12:56:23]NVStorageSaveData kkm_last_timestamp [12:56:23]File name is /storage/kkm_last_timestamp [12:56:23]Write 4 bytes [12:56:23]NVStorageSaveData done [12:56:23]ExternCall_PrintAddStr [12:56:23]wPrintStart [12:56:23]Write to MH i2c: 01 00 00 92 11 A3 [12:56:23]Write i2c OK [12:56:23]MH_I2C_Read... [12:56:23]Read from MH i2c: 01 [12:56:23]MH_I2C_Read... [12:56:23]Read from MH i2c: 01 07 00 [12:56:23]MH_I2C_Read... [12:56:23]Read from MH i2c: 01 07 00 92 11 00 00 00 00 00 FF 0F B8 [12:56:23]RasterBufferAndPrint [12:56:23]line Счет N : (1)459394 [12:56:23]line ИНН: 02508201610067 [12:56:23]line Контрольно-Кассовый Чек [12:56:23]line ПРОДАЖА [12:56:23]line ТРК (МРК, ГНК) : 21 [12:56:23]line Товар: 2710194210 [12:56:23]line ДТ-К-5 [12:56:23]line 50.000 * 71.26 [12:56:23]line = 3563.00 [12:56:23]line НДС 12% НСП 1% [12:56:23]line > о реализуемом товаре [12:56:23]line ИТОГО: 3563.00 [12:56:23]line НСП 1% : 31.53 [12:56:23]line НДС 12% : 378.37 [12:56:23]line Наличными: 0.00 [12:56:23]line Безнал.: 3563.00 [12:56:23]line Место: АЗС № 72 "Партнер Нефть" [12:56:23]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:56:23]line СНО: Общий режим [12:56:23]line Чек 157 15.07.2024 12:56 [12:56:23]line Смена: 448 ФФД: 1.0 [12:56:23]line ЗНМ: 0300000160 [12:56:23]line РНМ: 0000000000090829 [12:56:23]line Версия ККМ: 001 [12:56:23]line Платежная система: KICB Банк [12:56:23]line ФМ: 0000000000874718 [12:56:23]line ФД: 165284 [12:56:23]line ФПД: 81030776659437 [12:56:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T125622&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165284&fm=81030776659437&tin=02508201610067®Number=0000000000090829&sum=356300 [12:56:23]OFD Sender: Processing packet 165284 [packets to send 106, broken 105] [12:56:23]ProducePacketName [12:56:23]name=ofd_packets/00165284 [12:56:23]OFD Sender: To server: pG, [12:56:23]CommunicateWithHost lk.salyk.kg:30040 [12:56:23]ConnectInit lk.salyk.kg [12:56:23]written 0, free lines is 4095 [12:56:23]Connected sock=10 [12:56:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 B8 8B 04 01 53 0F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 CC 6F 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 6F 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 93 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC 6F 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 76 1C 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A4 85 02 00 35 04 06 00 49 B2 72 A8 9D ED 73 E6 B9 9B 0B 2F BD A8 [12:56:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 4C 64 47 00 52 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 A4 85 02 00 F4 03 04 00 00 C3 94 66 B6 04 01 00 00 CD E6 51 0A 6D C2 4E F6 [12:56:23]CommunicateWithHost err = 0 [12:56:23]CheckOFDResponse [12:56:23]1017 (14) - 77093643461234 [12:56:23]1041 (16) - 0000000000874718 [12:56:23]1040 (4) - 165284 [12:56:23]1012 (4) - 15.07.2024 06:34 [12:56:23]1206 (1) - 0 [12:56:23]OFD Sender: Remove packet 165284 [12:56:23]ProducePacketName [12:56:23]name=ofd_packets/00165284 [12:56:23]NVStorageDeleteData [12:56:24]Write to MH i2c: 01 00 00 BB 11 CC [12:56:24]Write i2c OK [12:56:24]MH_I2C_Read... [12:56:24]Read from MH i2c: 01 [12:56:24]MH_I2C_Read... [12:56:24]Read from MH i2c: 01 07 00 [12:56:24]MH_I2C_Read... [12:56:24]Read from MH i2c: 01 07 00 BB 11 00 00 00 00 00 1C 0D FC [12:56:24]RasterBufferAndPrint [12:56:24]line [12:56:24]line [12:56:24]line [12:56:24]line [12:56:24]line [12:56:24]written 0, free lines is 3365 [12:56:24]MH_Cut [12:56:24]Write to MH i2c: D1 01 00 C2 11 01 A5 [12:56:24]Write i2c OK [12:56:24]MH_I2C_Read... [12:56:24]Read from MH i2c: D1 [12:56:24]MH_I2C_Read... [12:56:24]Read from MH i2c: D1 01 00 [12:56:24]MH_I2C_Read... [12:56:24]Read from MH i2c: D1 01 00 C2 11 00 A4 [12:56:24]Write to MH i2c: 01 00 00 C3 11 D4 [12:56:24]Write i2c OK [12:56:24]MH_I2C_Read... [12:56:24]OFD Sender: No OFD packet to send [12:56:24]*** Cut start [12:56:24]*** Partial cut [12:56:24]*** CUTSNS_PIN = 1 [12:56:24]*** CUTSNS_PIN = 0 [12:56:24]*** Brake cut motor [12:56:25]Read from MH i2c: 01 [12:56:25]MH_I2C_Read... [12:56:25]*** Stop cut motor [12:56:25]*** Cut end [12:56:25]Read from MH i2c: 01 07 00 [12:56:25]MH_I2C_Read... [12:56:25]Read from MH i2c: 01 07 00 C3 11 00 00 00 00 00 FF 0F E9 [12:56:25]process_action close_receipt done [12:56:25]requested_data is exist [12:56:25]produce_requested_data [12:56:25]requested_item fm.sn is exist - process it [12:56:25]wFMCommunicate request_size=4 [12:56:25]MH_SAM_APDU [12:56:25]CAPDU: 80 11 00 00 [12:56:25]Write to MH i2c: E2 08 00 C4 11 80 11 00 00 00 00 00 00 4F [12:56:25]Write i2c OK [12:56:25]MH_I2C_Read... [12:56:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:25]Read from MH i2c: E2 [12:56:25]MH_I2C_Read... [12:56:25]Read from MH i2c: E2 17 00 [12:56:25]MH_I2C_Read... [12:56:25]Read from MH i2c: E2 17 00 C4 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A5 [12:56:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:56:25]wFMCommunicate OK [12:56:25]requested_item fd.num is exist - process it [12:56:25]SAM_PROTO_GetFieldsCounters [12:56:25]wFMCommunicate request_size=4 [12:56:25]MH_SAM_APDU [12:56:25]CAPDU: 80 13 00 00 [12:56:25]Write to MH i2c: E2 08 00 C5 11 80 13 00 00 00 00 00 00 52 [12:56:25]Write i2c OK [12:56:25]MH_I2C_Read... [12:56:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:56:25]Read from MH i2c: E2 [12:56:25]MH_I2C_Read... [12:56:25]Read from MH i2c: E2 62 00 [12:56:25]MH_I2C_Read... [12:56:25]Read from MH i2c: E2 62 00 C5 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A4 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 3C [12:56:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A4 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:56:25]wFMCommunicate OK [12:56:25]SAM_PROTO_GetFieldsCounters done [12:56:25]requested_item shift.num is exist - process it [12:56:25]requested_item shift.opened is exist - process it [12:56:25]req_shift_opened [12:56:25]FM_GetShiftState [12:56:25]SAM_PROTO_GetShiftState [12:56:25]wFMCommunicate request_size=4 [12:56:25]MH_SAM_APDU [12:56:25]CAPDU: 80 13 01 00 [12:56:25]Write to MH i2c: E2 08 00 C6 11 80 13 01 00 00 00 00 00 54 [12:56:25]Write i2c OK [12:56:25]MH_I2C_Read... [12:56:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:25]Read from MH i2c: E2 [12:56:25]MH_I2C_Read... [12:56:25]Read from MH i2c: E2 0E 00 [12:56:25]MH_I2C_Read... [12:56:25]Read from MH i2c: E2 0E 00 C6 11 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 2D [12:56:25]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:56:25]wFMCommunicate OK [12:56:25]SAM_PROTO_GetShiftState done [12:56:25]FM_GetShiftState done [12:56:25]req_shift_opened done [12:56:25]requested_item shift.open_date is exist - process it [12:56:25]req_shift_open_date [12:56:25]req_shift_open_date done [12:56:25]produce_requested_data done [12:56:25]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165284,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [12:56:25]process_action_free close_receipt [12:56:25]json_value_free [12:56:25]json_value_free done [12:56:25]process_json_proto returns [12:56:25]Send response to host [12:56:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165284,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [12:56:25]free response buf [12:56:25]execute_script done [12:56:25]execute_script returns [12:56:25]free content buf [12:56:25]Sock 8.Close socket [12:56:25]Sock 8.Thread stoped [12:56:29]OFD Sender: No OFD packet to send [12:56:29]accept exits with 9 [12:56:29]New connection [12:56:29]New thread 3066854756 created [12:56:29]Thread 3066711396 joined [12:56:29]Waiting for new connection... [12:56:29] Sock 9.Parse request [12:56:29]Sock 9.Check first char [12:56:29]Sock 9.First char is OK [12:56:29]request: POST /json_proto HTTP/1.0 [12:56:29]Method: POST [12:56:29]URL: /json_proto [12:56:29]Method is POST - this is cgi request [12:56:29]url: /json_proto [12:56:29]query_string will be loaded in cgi processing [12:56:29]execute_cgi json_proto POST (null) [12:56:29]execute_cgi path=json_proto method=POST [12:56:29]POST find Content-Length [12:56:29]Host: 172.17.56.4:8080 [12:56:29]Content-Length: 677 [12:56:29]Content-Type: application/json [12:56:29] [12:56:29]POST finish read [12:56:29]Found Content-Length = 677 [12:56:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459396", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:56:29]execute_script... [12:56: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)459396", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:56:29]POST & json_proto [12:56:29]process_json_proto [12:56:29]json parsed OK: [12:56:29]protocol is kg_v1.0 [12:56:29]action value=close_receipt [12:56:29]process_action close_receipt [12:56:29]cmd_close_receipt [12:56:29]MH_GetDate [12:56:29]Write to MH i2c: F0 00 00 C7 11 C7 [12:56:29]Write i2c OK [12:56:29]MH_I2C_Read... [12:56:29]Read from MH i2c: F0 [12:56:29]MH_I2C_Read... [12:56:29]Read from MH i2c: F0 09 00 [12:56:29]MH_I2C_Read... [12:56:29]Read from MH i2c: F0 09 00 C7 11 00 7E 1C 95 66 C9 DC B2 64 20 [12:56:29]GetLastDocTimeStamp 1721048182 [12:56:29]current date 1721048190 [12:56:29]FM_GetShiftState [12:56:29]SAM_PROTO_GetShiftState [12:56:29]wFMCommunicate request_size=4 [12:56:29]MH_SAM_APDU [12:56:29]CAPDU: 80 13 01 00 [12:56:29]Write to MH i2c: E2 08 00 C8 11 80 13 01 00 00 00 00 00 56 [12:56:29]Write i2c OK [12:56:29]MH_I2C_Read... [12:56:29]Read from MH i2c: E2 [12:56:29]MH_I2C_Read... [12:56:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:29]Read from MH i2c: E2 0E 00 [12:56:29]MH_I2C_Read... [12:56:29]Read from MH i2c: E2 0E 00 C8 11 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 2F [12:56:29]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:56:29]wFMCommunicate OK [12:56:29]SAM_PROTO_GetShiftState done [12:56:29]FM_GetShiftState done [12:56:29]opened in 1721003876 [12:56:29]opened+sec_in_day 1721090276 [12:56:29]quantity*price = 20003 [12:56:29]sum+1 = 20004 [12:56:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 158 15.07.2024 12:56 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165285 ФПД: 92756121783173 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T125630&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165285&fm=92756121783173&tin=02508201610067®Number=0000000000090829&sum=20000 [12:56:30]StoreToDocumentArchive [12:56:30]shift 448 fd 165285 [12:56:30]save to /storage/0448/doc_00165285 [12:56:30]save last doc name /storage/0448/doc_00165285 to /storage/kkm_last_doc_name [12:56:30]save OK [12:56:30]Clear old archive folders... [12:56:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:56:30]tlvbuf is 0189A8D0 [12:56:30]SAM_PROTO_ClearQueue [12:56:30]wFMCommunicate request_size=4 [12:56:30]MH_SAM_APDU [12:56:30]CAPDU: 80 09 00 00 [12:56:30]Write to MH i2c: E2 08 00 D5 11 80 09 00 00 00 00 00 00 58 [12:56:30]Write i2c OK [12:56:30]MH_I2C_Read... [12:56:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:56:30]Read from MH i2c: E2 [12:56:30]MH_I2C_Read... [12:56:30]Read from MH i2c: E2 03 00 [12:56:30]MH_I2C_Read... [12:56:30]Read from MH i2c: E2 03 00 D5 11 00 90 00 5A [12:56:30]RAPDU: 90 00 [12:56:30]wFMCommunicate OK [12:56:30]SAM_PROTO_ClearQueue done [12:56:30]KKMCreateOFDPacket [12:56:30]OFDProtocolAddRootSTLVToBuf [12:56:30]FM_MakeSignedData [12:56:30]FM_MakeSignedData [12:56:30]SAM_PROTO_SignData [12:56:30]wFMCommunicate request_size=4 [12:56:30]MH_SAM_APDU [12:56:30]CAPDU: 80 0D 01 02 [12:56:30]Write to MH i2c: E2 08 00 D6 11 80 0D 01 02 00 00 00 00 60 [12:56:30]Write i2c OK [12:56:30]MH_I2C_Read... [12:56:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:56:30]Read from MH i2c: E2 [12:56:30]MH_I2C_Read... [12:56:30]Read from MH i2c: E2 03 00 [12:56:30]MH_I2C_Read... [12:56:30]Read from MH i2c: E2 03 00 D6 11 00 90 00 5B [12:56:30]RAPDU: 90 00 [12:56:30]wFMCommunicate OK [12:56:30]wFMCommunicate request_size=255 [12:56:30]MH_SAM_APDU [12:56: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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 7E 1C 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A5 85 02 00 35 04 06 00 54 [12:56:30]Write to MH i2c: E2 02 01 D7 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 7E 1C 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A5 85 02 00 35 04 06 00 54 00 00 EE [12:56:30]Write i2c OK [12:56:30]MH_I2C_Read... [12:56:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:31]Read from MH i2c: E2 [12:56:31]MH_I2C_Read... [12:56:31]Read from MH i2c: E2 03 00 [12:56:31]MH_I2C_Read... [12:56:31]Read from MH i2c: E2 03 00 D7 11 00 90 00 5C [12:56:31]RAPDU: 90 00 [12:56:31]wFMCommunicate OK [12:56:31]wFMCommunicate request_size=10 [12:56:31]MH_SAM_APDU [12:56:31]CAPDU: 80 0D 02 02 05 5C 77 B0 8B 85 [12:56:31]Write to MH i2c: E2 0D 00 D8 11 80 0D 02 02 05 00 5C 77 B0 8B 85 00 00 00 [12:56:31]Write i2c OK [12:56:31]MH_I2C_Read... [12:56:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:31]Read from MH i2c: E2 [12:56:31]MH_I2C_Read... [12:56:31]Read from MH i2c: E2 03 00 [12:56:31]MH_I2C_Read... [12:56:31]Read from MH i2c: E2 03 00 D8 11 00 90 00 5D [12:56:31]RAPDU: 90 00 [12:56:31]wFMCommunicate OK [12:56:31]wFMCommunicate request_size=4 [12:56:31]MH_SAM_APDU [12:56:31]CAPDU: 80 0D 03 02 [12:56:31]Write to MH i2c: E2 08 00 D9 11 80 0D 03 02 00 00 00 00 65 [12:56:31]Write i2c OK [12:56:31]MH_I2C_Read... [12:56:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:56:31]Read from MH i2c: E2 [12:56:31]MH_I2C_Read... [12:56:31]Read from MH i2c: E2 0B 00 [12:56:31]MH_I2C_Read... [12:56:31]Read from MH i2c: E2 0B 00 D9 11 00 FC 3A 33 56 B8 A7 D6 B5 90 00 0F [12:56:31]RAPDU: FC 3A 33 56 B8 A7 D6 B5 90 00 [12:56:31]wFMCommunicate OK [12:56:31]SAM_PROTO_SignData done [12:56:31]FM_MakeSignedData done [12:56:31]CreateOFDProtocolMessage [12:56:31]wFMCommunicate request_size=4 [12:56:31]MH_SAM_APDU [12:56:31]CAPDU: 80 11 00 00 [12:56:31]Write to MH i2c: E2 08 00 DA 11 80 11 00 00 00 00 00 00 65 [12:56:31]Write i2c OK [12:56:31]MH_I2C_Read... [12:56:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:31]Read from MH i2c: E2 [12:56:31]MH_I2C_Read... [12:56:31]Read from MH i2c: E2 17 00 [12:56:31]MH_I2C_Read... [12:56:31]Read from MH i2c: E2 17 00 DA 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 BB [12:56:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:56:31]wFMCommunicate OK [12:56:31]CreateOFDProtocolMessage done [12:56:31]OFDSenderStorePacket 165285 [12:56:31]StoreOFDPacket docnum=165285 [12:56:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 FD D3 07 01 15 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 7E 1C 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A5 85 02 00 35 04 06 00 54 5C 77 B0 8B 85 FC 3A 33 56 B8 A7 D6 B5 [12:56:31]CheckFolder [12:56:31]dirname=/storage/ofd_packets [12:56:31]CheckFolder done [12:56:31]ProducePacketName [12:56:31]name=ofd_packets/00165285 [12:56:31]NVStorageSaveData ofd_packets/00165285 [12:56:31]File name is /storage/ofd_packets/00165285 [12:56:31]Write 301 bytes [12:56:31]NVStorageSaveData done [12:56:31]OFDSenderStorePacket done [12:56:31]KKMCreateOFDPacket done [12:56:31]NVStorageSaveData kkm_last_timestamp [12:56:31]File name is /storage/kkm_last_timestamp [12:56:31]Write 4 bytes [12:56:31]NVStorageSaveData done [12:56:31]ExternCall_PrintAddStr [12:56:31]wPrintStart [12:56:31]Write to MH i2c: 01 00 00 DB 11 EC [12:56:31]Write i2c OK [12:56:31]MH_I2C_Read... [12:56:31]Read from MH i2c: 01 [12:56:31]MH_I2C_Read... [12:56:31]Read from MH i2c: 01 07 00 [12:56:31]MH_I2C_Read... [12:56:31]Read from MH i2c: 01 07 00 DB 11 00 00 00 00 00 FF 0F 01 [12:56:31]RasterBufferAndPrint [12:56:31]line Счет N : (1)459396 [12:56:31]line ИНН: 02508201610067 [12:56:31]line Контрольно-Кассовый Чек [12:56:31]line ПРОДАЖА [12:56:31]line ТРК (МРК, ГНК) : 12 [12:56:31]line Товар: 2710124130 [12:56:31]line Аи-92-К-5 [12:56:31]line 3.040 * 65.80 [12:56:31]line = 200.03 [12:56:31]line НДС 12% НСП 1% [12:56:31]line > о реализуемом товаре [12:56:31]line ОКРУГЛЕНИЕ: -0.03 [12:56:31]line ИТОГО: 200.00 [12:56:31]line Внесено: 200.00 [12:56:31]line СДАЧА: 0.00 [12:56:31]line НСП 1% : 1.77 [12:56:31]line НДС 12% : 21.24 [12:56:31]line Наличными: 200.00 [12:56:31]line Безнал.: 0.00 [12:56:31]line Место: АЗС № 72 "Партнер Нефть" [12:56:31]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [12:56:31]line СНО: Общий режим [12:56:31]line Чек 158 15.07.2024 12:56 [12:56:31]line Смена: 448 ФФД: 1.0 [12:56:31]line ЗНМ: 0300000160 [12:56:31]line РНМ: 0000000000090829 [12:56:31]line Версия ККМ: 001 [12:56:31]line ФМ: 0000000000874718 [12:56:31]line ФД: 165285 [12:56:31]line ФПД: 92756121783173 [12:56:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T125630&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165285&fm=92756121783173&tin=02508201610067®Number=0000000000090829&sum=20000 [12:56:31]written 0, free lines is 4095 [12:56:31]OFD Sender: Processing packet 165285 [packets to send 106, broken 105] [12:56:31]ProducePacketName [12:56:31]name=ofd_packets/00165285 [12:56:31]OFD Sender: To server: pG, [12:56:31]CommunicateWithHost lk.salyk.kg:30040 [12:56:31]ConnectInit lk.salyk.kg [12:56:31]Connected sock=10 [12:56: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 37 31 38 0F 01 00 00 FD D3 07 01 15 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 7E 1C 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A5 85 02 00 35 04 06 00 54 5C 77 B0 8B 85 FC 3A 33 56 B8 A7 D6 B5 [12:56:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 0B 2A 47 00 07 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A5 85 02 00 F4 03 04 00 08 C3 94 66 B6 04 01 00 00 8D C5 38 20 C9 72 D8 7E [12:56:31]CommunicateWithHost err = 0 [12:56:31]CheckOFDResponse [12:56:31]1017 (14) - 77093643461234 [12:56:31]1041 (16) - 0000000000874718 [12:56:31]1040 (4) - 165285 [12:56:31]1012 (4) - 15.07.2024 06:34 [12:56:31]1206 (1) - 0 [12:56:31]OFD Sender: Remove packet 165285 [12:56:31]ProducePacketName [12:56:31]name=ofd_packets/00165285 [12:56:31]NVStorageDeleteData [12:56:31]Write to MH i2c: 01 00 00 05 12 17 [12:56:31]Write i2c OK [12:56:31]MH_I2C_Read... [12:56:31]Read from MH i2c: 01 [12:56:31]MH_I2C_Read... [12:56:31]Read from MH i2c: 01 07 00 [12:56:31]MH_I2C_Read... [12:56:31]Read from MH i2c: 01 07 00 05 12 00 00 00 00 00 01 0D 2C [12:56:31]RasterBufferAndPrint [12:56:31]line [12:56:31]line [12:56:31]line [12:56:31]line [12:56:31]line [12:56:31]written 0, free lines is 3338 [12:56:31]MH_Cut [12:56:31]Write to MH i2c: D1 01 00 0C 12 01 F0 [12:56:31]Write i2c OK [12:56:31]MH_I2C_Read... [12:56:31]Read from MH i2c: D1 [12:56:31]MH_I2C_Read... [12:56:31]Read from MH i2c: D1 01 00 [12:56:31]MH_I2C_Read... [12:56:31]Read from MH i2c: D1 01 00 0C 12 00 EF [12:56:31]Write to MH i2c: 01 00 00 0D 12 1F [12:56:31]Write i2c OK [12:56:31]MH_I2C_Read... [12:56:32]OFD Sender: No OFD packet to send [12:56:32]*** Cut start [12:56:32]*** Partial cut [12:56:32]*** CUTSNS_PIN = 1 [12:56:32]*** CUTSNS_PIN = 0 [12:56:32]*** Brake cut motor [12:56:33]Read from MH i2c: 01 [12:56:33]MH_I2C_Read... [12:56:33]*** Stop cut motor [12:56:33]*** Cut end [12:56:33]Read from MH i2c: 01 07 00 [12:56:33]MH_I2C_Read... [12:56:33]Read from MH i2c: 01 07 00 0D 12 00 00 00 00 00 FF 0F 34 [12:56:33]process_action close_receipt done [12:56:33]requested_data is exist [12:56:33]produce_requested_data [12:56:33]requested_item fm.sn is exist - process it [12:56:33]wFMCommunicate request_size=4 [12:56:33]MH_SAM_APDU [12:56:33]CAPDU: 80 11 00 00 [12:56:33]Write to MH i2c: E2 08 00 0E 12 80 11 00 00 00 00 00 00 9A [12:56:33]Write i2c OK [12:56:33]MH_I2C_Read... [12:56:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:33]Read from MH i2c: E2 [12:56:33]MH_I2C_Read... [12:56:33]Read from MH i2c: E2 17 00 [12:56:33]MH_I2C_Read... [12:56:33]Read from MH i2c: E2 17 00 0E 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F0 [12:56:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [12:56:33]wFMCommunicate OK [12:56:33]requested_item fd.num is exist - process it [12:56:33]SAM_PROTO_GetFieldsCounters [12:56:33]wFMCommunicate request_size=4 [12:56:33]MH_SAM_APDU [12:56:33]CAPDU: 80 13 00 00 [12:56:33]Write to MH i2c: E2 08 00 0F 12 80 13 00 00 00 00 00 00 9D [12:56:33]Write i2c OK [12:56:33]MH_I2C_Read... [12:56:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:56:33]Read from MH i2c: E2 [12:56:33]MH_I2C_Read... [12:56:33]Read from MH i2c: E2 62 00 [12:56:33]MH_I2C_Read... [12:56:33]Read from MH i2c: E2 62 00 0F 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A5 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [12:56: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A5 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:56:33]wFMCommunicate OK [12:56:33]SAM_PROTO_GetFieldsCounters done [12:56:33]requested_item shift.num is exist - process it [12:56:33]requested_item shift.opened is exist - process it [12:56:33]req_shift_opened [12:56:33]FM_GetShiftState [12:56:33]SAM_PROTO_GetShiftState [12:56:33]wFMCommunicate request_size=4 [12:56:33]MH_SAM_APDU [12:56:33]CAPDU: 80 13 01 00 [12:56:33]Write to MH i2c: E2 08 00 10 12 80 13 01 00 00 00 00 00 9F [12:56:33]Write i2c OK [12:56:33]MH_I2C_Read... [12:56:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:33]Read from MH i2c: E2 [12:56:33]MH_I2C_Read... [12:56:33]Read from MH i2c: E2 0E 00 [12:56:33]MH_I2C_Read... [12:56:33]Read from MH i2c: E2 0E 00 10 12 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 78 [12:56:33]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [12:56:33]wFMCommunicate OK [12:56:33]SAM_PROTO_GetShiftState done [12:56:33]FM_GetShiftState done [12:56:33]req_shift_opened done [12:56:33]requested_item shift.open_date is exist - process it [12:56:33]req_shift_open_date [12:56:33]req_shift_open_date done [12:56:33]produce_requested_data done [12:56:33]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165285,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [12:56:33]process_action_free close_receipt [12:56:33]json_value_free [12:56:33]json_value_free done [12:56:33]process_json_proto returns [12:56:33]Send response to host [12:56:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165285,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [12:56:33]free response buf [12:56:33]execute_script done [12:56:33]execute_script returns [12:56:33]free content buf [12:56:33]Sock 9.Close socket [12:56:33]Sock 9.Thread stoped [12:56:37]OFD Sender: No OFD packet to send [12:56:42]OFD Sender: No OFD packet to send [12:56:47]OFD Sender: No OFD packet to send [12:56:52]OFD Sender: No OFD packet to send [12:56:57]OFD Sender: No OFD packet to send [12:57:02]OFD Sender: No OFD packet to send [12:57:07]OFD Sender: No OFD packet to send [12:57:12]OFD Sender: No OFD packet to send [12:57:17]OFD Sender: No OFD packet to send [12:57:22]OFD Sender: No OFD packet to send [12:57:27]OFD Sender: No OFD packet to send [12:57:32]OFD Sender: No OFD packet to send [12:57:37]OFD Sender: No OFD packet to send [12:57:42]OFD Sender: No OFD packet to send [12:57:47]OFD Sender: No OFD packet to send [12:57:52]OFD Sender: No OFD packet to send [12:57:57]OFD Sender: No OFD packet to send [12:58:02]OFD Sender: No OFD packet to send [12:58:07]OFD Sender: No OFD packet to send [12:58:12]OFD Sender: No OFD packet to send [12:58:17]OFD Sender: No OFD packet to send [12:58:22]OFD Sender: No OFD packet to send [12:58:27]OFD Sender: No OFD packet to send [12:58:32]OFD Sender: No OFD packet to send [12:58:37]OFD Sender: No OFD packet to send [12:58:42]OFD Sender: No OFD packet to send [12:58:47]OFD Sender: No OFD packet to send [12:58:52]OFD Sender: No OFD packet to send [12:58:57]OFD Sender: No OFD packet to send [12:59:02]OFD Sender: No OFD packet to send [12:59:07]OFD Sender: No OFD packet to send [12:59:12]OFD Sender: No OFD packet to send [12:59:17]OFD Sender: No OFD packet to send [12:59:22]OFD Sender: No OFD packet to send [12:59:27]OFD Sender: No OFD packet to send [12:59:32]OFD Sender: No OFD packet to send [12:59:37]OFD Sender: No OFD packet to send [12:59:42]OFD Sender: No OFD packet to send [12:59:47]OFD Sender: No OFD packet to send [12:59:52]OFD Sender: No OFD packet to send [12:59:57]OFD Sender: No OFD packet to send [13:00:02]OFD Sender: No OFD packet to send [13:00:07]OFD Sender: No OFD packet to send [13:00:12]OFD Sender: No OFD packet to send [13:00:17]OFD Sender: No OFD packet to send [13:00:22]OFD Sender: No OFD packet to send [13:00:24]accept exits with 8 [13:00:24]New connection [13:00:24]New thread 3066711396 created [13:00:24]Thread 3066854756 joined [13:00:24]Waiting for new connection... [13:00:24] Sock 8.Parse request [13:00:24]Sock 8.Check first char [13:00:24]Sock 8.First char is OK [13:00:24]request: POST /json_proto HTTP/1.0 [13:00:24]Method: POST [13:00:24]URL: /json_proto [13:00:24]Method is POST - this is cgi request [13:00:24]url: /json_proto [13:00:24]query_string will be loaded in cgi processing [13:00:24]execute_cgi json_proto POST (null) [13:00:24]execute_cgi path=json_proto method=POST [13:00:24]POST find Content-Length [13:00:24]Host: 172.17.56.4:8080 [13:00:24]Content-Length: 640 [13:00:24]Content-Type: application/json [13:00:24] [13:00:24]POST finish read [13:00:24]Found Content-Length = 640 [13:00:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459397", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.000, "sum" : 658.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 658.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:00:24]execute_script... [13:00:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459397", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.000, "sum" : 658.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 658.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:00:24]POST & json_proto [13:00:24]process_json_proto [13:00:24]json parsed OK: [13:00:24]protocol is kg_v1.0 [13:00:24]action value=close_receipt [13:00:24]process_action close_receipt [13:00:24]cmd_close_receipt [13:00:24]MH_GetDate [13:00:24]Write to MH i2c: F0 00 00 11 12 12 [13:00:24]Write i2c OK [13:00:24]MH_I2C_Read... [13:00:24]Read from MH i2c: F0 [13:00:24]MH_I2C_Read... [13:00:24]Read from MH i2c: F0 09 00 [13:00:24]MH_I2C_Read... [13:00:24]Read from MH i2c: F0 09 00 11 12 00 69 1D 95 66 C9 DC B2 64 57 [13:00:24]GetLastDocTimeStamp 1721048190 [13:00:24]current date 1721048425 [13:00:24]FM_GetShiftState [13:00:24]SAM_PROTO_GetShiftState [13:00:24]wFMCommunicate request_size=4 [13:00:24]MH_SAM_APDU [13:00:24]CAPDU: 80 13 01 00 [13:00:24]Write to MH i2c: E2 08 00 12 12 80 13 01 00 00 00 00 00 A1 [13:00:24]Write i2c OK [13:00:24]MH_I2C_Read... [13:00:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:24]Read from MH i2c: E2 [13:00:24]MH_I2C_Read... [13:00:24]Read from MH i2c: E2 0E 00 [13:00:24]MH_I2C_Read... [13:00:24]Read from MH i2c: E2 0E 00 12 12 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 7A [13:00:24]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [13:00:24]wFMCommunicate OK [13:00:24]SAM_PROTO_GetShiftState done [13:00:24]FM_GetShiftState done [13:00:24]opened in 1721003876 [13:00:24]opened+sec_in_day 1721090276 [13:00:24]quantity*price = 65800 [13:00:24]sum+1 = 65801 [13:00:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 658.00 НСП 1% : 5.82 НДС 12% : 69.88 Наличными: 658.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 159 15.07.2024 13:00 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165286 ФПД: 54285865841979 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T130025&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165286&fm=54285865841979&tin=02508201610067®Number=0000000000090829&sum=65800 [13:00:26]StoreToDocumentArchive [13:00:26]shift 448 fd 165286 [13:00:26]save to /storage/0448/doc_00165286 [13:00:26]save last doc name /storage/0448/doc_00165286 to /storage/kkm_last_doc_name [13:00:26]save OK [13:00:26]Clear old archive folders... [13:00:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:00:26]tlvbuf is 018559C0 [13:00:26]SAM_PROTO_ClearQueue [13:00:26]wFMCommunicate request_size=4 [13:00:26]MH_SAM_APDU [13:00:26]CAPDU: 80 09 00 00 [13:00:26]Write to MH i2c: E2 08 00 1F 12 80 09 00 00 00 00 00 00 A3 [13:00:26]Write i2c OK [13:00:26]MH_I2C_Read... [13:00:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:00:26]Read from MH i2c: E2 [13:00:26]MH_I2C_Read... [13:00:26]Read from MH i2c: E2 03 00 [13:00:26]MH_I2C_Read... [13:00:26]Read from MH i2c: E2 03 00 1F 12 00 90 00 A5 [13:00:26]RAPDU: 90 00 [13:00:26]wFMCommunicate OK [13:00:26]SAM_PROTO_ClearQueue done [13:00:26]KKMCreateOFDPacket [13:00:26]OFDProtocolAddRootSTLVToBuf [13:00:26]FM_MakeSignedData [13:00:26]FM_MakeSignedData [13:00:26]SAM_PROTO_SignData [13:00:26]wFMCommunicate request_size=4 [13:00:26]MH_SAM_APDU [13:00:26]CAPDU: 80 0D 01 02 [13:00:26]Write to MH i2c: E2 08 00 20 12 80 0D 01 02 00 00 00 00 AB [13:00:26]Write i2c OK [13:00:26]MH_I2C_Read... [13:00:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:00:26]Read from MH i2c: E2 [13:00:26]MH_I2C_Read... [13:00:26]Read from MH i2c: E2 03 00 [13:00:26]MH_I2C_Read... [13:00:26]Read from MH i2c: E2 03 00 20 12 00 90 00 A6 [13:00:26]RAPDU: 90 00 [13:00:26]wFMCommunicate OK [13:00:26]wFMCommunicate request_size=255 [13:00:26]MH_SAM_APDU [13:00: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 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 69 1D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A6 85 02 00 35 04 06 00 31 [13:00:26]Write to MH i2c: E2 02 01 21 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 69 1D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A6 85 02 00 35 04 06 00 31 00 00 CB [13:00:26]Write i2c OK [13:00:26]MH_I2C_Read... [13:00:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:26]Read from MH i2c: E2 [13:00:26]MH_I2C_Read... [13:00:26]Read from MH i2c: E2 03 00 [13:00:26]MH_I2C_Read... [13:00:26]Read from MH i2c: E2 03 00 21 12 00 90 00 A7 [13:00:26]RAPDU: 90 00 [13:00:26]wFMCommunicate OK [13:00:26]wFMCommunicate request_size=10 [13:00:26]MH_SAM_APDU [13:00:26]CAPDU: 80 0D 02 02 05 5F 69 BF F5 3B [13:00:26]Write to MH i2c: E2 0D 00 22 12 80 0D 02 02 05 00 5F 69 BF F5 3B 00 00 6F [13:00:26]Write i2c OK [13:00:26]MH_I2C_Read... [13:00:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:26]Read from MH i2c: E2 [13:00:26]MH_I2C_Read... [13:00:26]Read from MH i2c: E2 03 00 [13:00:26]MH_I2C_Read... [13:00:26]Read from MH i2c: E2 03 00 22 12 00 90 00 A8 [13:00:26]RAPDU: 90 00 [13:00:26]wFMCommunicate OK [13:00:26]wFMCommunicate request_size=4 [13:00:26]MH_SAM_APDU [13:00:26]CAPDU: 80 0D 03 02 [13:00:26]Write to MH i2c: E2 08 00 23 12 80 0D 03 02 00 00 00 00 B0 [13:00:26]Write i2c OK [13:00:26]MH_I2C_Read... [13:00:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:00:26]Read from MH i2c: E2 [13:00:26]MH_I2C_Read... [13:00:26]Read from MH i2c: E2 0B 00 [13:00:26]MH_I2C_Read... [13:00:26]Read from MH i2c: E2 0B 00 23 12 00 A0 68 03 71 B7 D8 AA C0 90 00 26 [13:00:26]RAPDU: A0 68 03 71 B7 D8 AA C0 90 00 [13:00:26]wFMCommunicate OK [13:00:26]SAM_PROTO_SignData done [13:00:26]FM_MakeSignedData done [13:00:26]CreateOFDProtocolMessage [13:00:26]wFMCommunicate request_size=4 [13:00:26]MH_SAM_APDU [13:00:26]CAPDU: 80 11 00 00 [13:00:26]Write to MH i2c: E2 08 00 24 12 80 11 00 00 00 00 00 00 B0 [13:00:26]Write i2c OK [13:00:26]MH_I2C_Read... [13:00:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:26]Read from MH i2c: E2 [13:00:26]MH_I2C_Read... [13:00:26]Read from MH i2c: E2 17 00 [13:00:26]MH_I2C_Read... [13:00:26]Read from MH i2c: E2 17 00 24 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 06 [13:00:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:00:26]wFMCommunicate OK [13:00:26]CreateOFDProtocolMessage done [13:00:26]OFDSenderStorePacket 165286 [13:00:26]StoreOFDPacket docnum=165286 [13:00:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 1D 30 07 01 B4 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 69 1D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A6 85 02 00 35 04 06 00 31 5F 69 BF F5 3B A0 68 03 71 B7 D8 AA C0 [13:00:26]CheckFolder [13:00:26]dirname=/storage/ofd_packets [13:00:26]CheckFolder done [13:00:26]ProducePacketName [13:00:26]name=ofd_packets/00165286 [13:00:26]NVStorageSaveData ofd_packets/00165286 [13:00:26]File name is /storage/ofd_packets/00165286 [13:00:26]Write 301 bytes [13:00:26]NVStorageSaveData done [13:00:26]OFDSenderStorePacket done [13:00:26]KKMCreateOFDPacket done [13:00:26]NVStorageSaveData kkm_last_timestamp [13:00:26]File name is /storage/kkm_last_timestamp [13:00:26]Write 4 bytes [13:00:26]NVStorageSaveData done [13:00:26]ExternCall_PrintAddStr [13:00:26]wPrintStart [13:00:26]Write to MH i2c: 01 00 00 25 12 37 [13:00:26]OFD Sender: Processing packet 165286 [packets to send 106, broken 105] [13:00:26]ProducePacketName [13:00:26]name=ofd_packets/00165286 [13:00:26]OFD Sender: To server: pG, [13:00:26]CommunicateWithHost lk.salyk.kg:30040 [13:00:26]ConnectInit lk.salyk.kg [13:00:26]Write i2c OK [13:00:26]MH_I2C_Read... [13:00:26]Read from MH i2c: 01 [13:00:26]MH_I2C_Read... [13:00:26]Read from MH i2c: 01 07 00 [13:00:26]MH_I2C_Read... [13:00:26]Read from MH i2c: 01 07 00 25 12 00 00 00 00 00 FF 0F 4C [13:00:26]RasterBufferAndPrint [13:00:26]line Счет N : (1)459397 [13:00:26]line ИНН: 02508201610067 [13:00:26]line Контрольно-Кассовый Чек [13:00:26]line ПРОДАЖА [13:00:26]line ТРК (МРК, ГНК) : 12 [13:00:26]line Товар: 2710124130 [13:00:26]line Аи-92-К-5 [13:00:26]line 10.000 * 65.80 [13:00:26]line = 658.00 [13:00:26]line НДС 12% НСП 1% [13:00:26]line > о реализуемом товаре [13:00:26]line ИТОГО: 658.00 [13:00:26]line НСП 1% : 5.82 [13:00:26]line НДС 12% : 69.88 [13:00:26]line Наличными: 658.00 [13:00:26]line Безнал.: 0.00 [13:00:26]line Место: АЗС № 72 "Партнер Нефть" [13:00:26]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:00:26]line СНО: Общий режим [13:00:26]line Чек 159 15.07.2024 13:00 [13:00:26]line Смена: 448 ФФД: 1.0 [13:00:26]line ЗНМ: 0300000160 [13:00:26]line РНМ: 0000000000090829 [13:00:26]line Версия ККМ: 001 [13:00:26]line ФМ: 0000000000874718 [13:00:26]line ФД: 165286 [13:00:26]line ФПД: 54285865841979 [13:00:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T130025&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165286&fm=54285865841979&tin=02508201610067®Number=0000000000090829&sum=65800 [13:00:26]written 0, free lines is 4095 [13:00:26]Connected sock=10 [13:00:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 1D 30 07 01 B4 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 69 1D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A6 85 02 00 35 04 06 00 31 5F 69 BF F5 3B A0 68 03 71 B7 D8 AA C0 [13:00:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 3B FD 47 00 55 C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A6 85 02 00 F4 03 04 00 F4 C3 94 66 B6 04 01 00 00 91 75 9F E8 7C 22 DF CA [13:00:26]CommunicateWithHost err = 0 [13:00:26]CheckOFDResponse [13:00:26]1017 (14) - 77093643461234 [13:00:26]1041 (16) - 0000000000874718 [13:00:26]1040 (4) - 165286 [13:00:26]1012 (4) - 15.07.2024 06:38 [13:00:26]1206 (1) - 0 [13:00:26]OFD Sender: Remove packet 165286 [13:00:26]ProducePacketName [13:00:26]name=ofd_packets/00165286 [13:00:26]NVStorageDeleteData [13:00:27]Write to MH i2c: 01 00 00 4C 12 5E [13:00:27]Write i2c OK [13:00:27]MH_I2C_Read... [13:00:27]Read from MH i2c: 01 [13:00:27]MH_I2C_Read... [13:00:27]Read from MH i2c: 01 07 00 [13:00:27]MH_I2C_Read... [13:00:27]Read from MH i2c: 01 07 00 4C 12 00 00 00 00 00 33 0D A5 [13:00:27]RasterBufferAndPrint [13:00:27]line [13:00:27]line [13:00:27]line [13:00:27]line [13:00:27]line [13:00:27]written 0, free lines is 3387 [13:00:27]MH_Cut [13:00:27]Write to MH i2c: D1 01 00 53 12 01 37 [13:00:27]Write i2c OK [13:00:27]MH_I2C_Read... [13:00:27]Read from MH i2c: D1 [13:00:27]MH_I2C_Read... [13:00:27]Read from MH i2c: D1 01 00 [13:00:27]MH_I2C_Read... [13:00:27]Read from MH i2c: D1 01 00 53 12 00 36 [13:00:27]Write to MH i2c: 01 00 00 54 12 66 [13:00:27]Write i2c OK [13:00:27]MH_I2C_Read... [13:00:27]OFD Sender: No OFD packet to send [13:00:27]*** Cut start [13:00:27]*** Partial cut [13:00:27]*** CUTSNS_PIN = 1 [13:00:27]*** CUTSNS_PIN = 0 [13:00:27]*** Brake cut motor [13:00:28]Read from MH i2c: 01 [13:00:28]MH_I2C_Read... [13:00:28]*** Stop cut motor [13:00:28]*** Cut end [13:00:28]Read from MH i2c: 01 07 00 [13:00:28]MH_I2C_Read... [13:00:28]Read from MH i2c: 01 07 00 54 12 00 00 00 00 00 FF 0F 7B [13:00:28]process_action close_receipt done [13:00:28]requested_data is exist [13:00:28]produce_requested_data [13:00:28]requested_item fm.sn is exist - process it [13:00:28]wFMCommunicate request_size=4 [13:00:28]MH_SAM_APDU [13:00:28]CAPDU: 80 11 00 00 [13:00:28]Write to MH i2c: E2 08 00 55 12 80 11 00 00 00 00 00 00 E1 [13:00:28]Write i2c OK [13:00:28]MH_I2C_Read... [13:00:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:28]Read from MH i2c: E2 [13:00:28]MH_I2C_Read... [13:00:28]Read from MH i2c: E2 17 00 [13:00:28]MH_I2C_Read... [13:00:28]Read from MH i2c: E2 17 00 55 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 37 [13:00:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:00:28]wFMCommunicate OK [13:00:28]requested_item fd.num is exist - process it [13:00:28]SAM_PROTO_GetFieldsCounters [13:00:28]wFMCommunicate request_size=4 [13:00:28]MH_SAM_APDU [13:00:28]CAPDU: 80 13 00 00 [13:00:28]Write to MH i2c: E2 08 00 56 12 80 13 00 00 00 00 00 00 E4 [13:00:28]Write i2c OK [13:00:28]MH_I2C_Read... [13:00:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:00:28]Read from MH i2c: E2 [13:00:28]MH_I2C_Read... [13:00:28]Read from MH i2c: E2 62 00 [13:00:28]MH_I2C_Read... [13:00:28]Read from MH i2c: E2 62 00 56 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A6 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [13:00:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A6 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:00:28]wFMCommunicate OK [13:00:28]SAM_PROTO_GetFieldsCounters done [13:00:28]requested_item shift.num is exist - process it [13:00:28]requested_item shift.opened is exist - process it [13:00:28]req_shift_opened [13:00:28]FM_GetShiftState [13:00:28]SAM_PROTO_GetShiftState [13:00:28]wFMCommunicate request_size=4 [13:00:28]MH_SAM_APDU [13:00:28]CAPDU: 80 13 01 00 [13:00:28]Write to MH i2c: E2 08 00 57 12 80 13 01 00 00 00 00 00 E6 [13:00:28]Write i2c OK [13:00:28]MH_I2C_Read... [13:00:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:28]Read from MH i2c: E2 [13:00:28]MH_I2C_Read... [13:00:28]Read from MH i2c: E2 0E 00 [13:00:28]MH_I2C_Read... [13:00:28]Read from MH i2c: E2 0E 00 57 12 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 BF [13:00:28]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [13:00:28]wFMCommunicate OK [13:00:28]SAM_PROTO_GetShiftState done [13:00:28]FM_GetShiftState done [13:00:28]req_shift_opened done [13:00:28]requested_item shift.open_date is exist - process it [13:00:28]req_shift_open_date [13:00:28]req_shift_open_date done [13:00:28]produce_requested_data done [13:00:28]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165286,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [13:00:28]process_action_free close_receipt [13:00:28]json_value_free [13:00:28]json_value_free done [13:00:28]process_json_proto returns [13:00:28]Send response to host [13:00:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165286,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [13:00:28]free response buf [13:00:28]execute_script done [13:00:28]execute_script returns [13:00:28]free content buf [13:00:28]Sock 8.Close socket [13:00:28]Sock 8.Thread stoped [13:00:32]OFD Sender: No OFD packet to send [13:00:37]OFD Sender: No OFD packet to send [13:00:42]OFD Sender: No OFD packet to send [13:00:47]OFD Sender: No OFD packet to send [13:00:52]OFD Sender: No OFD packet to send [13:00:57]OFD Sender: No OFD packet to send [13:01:02]OFD Sender: No OFD packet to send [13:01:07]OFD Sender: No OFD packet to send [13:01:12]OFD Sender: No OFD packet to send [13:01:17]OFD Sender: No OFD packet to send [13:01:22]OFD Sender: No OFD packet to send [13:01:27]OFD Sender: No OFD packet to send [13:01:32]OFD Sender: No OFD packet to send [13:01:37]OFD Sender: No OFD packet to send [13:01:42]OFD Sender: No OFD packet to send [13:01:47]OFD Sender: No OFD packet to send [13:01:52]OFD Sender: No OFD packet to send [13:01:57]OFD Sender: No OFD packet to send [13:02:02]OFD Sender: No OFD packet to send [13:02:07]OFD Sender: No OFD packet to send [13:02:12]OFD Sender: No OFD packet to send [13:02:17]OFD Sender: No OFD packet to send [13:02:22]OFD Sender: No OFD packet to send [13:02:27]OFD Sender: No OFD packet to send [13:02:32]OFD Sender: No OFD packet to send [13:02:37]OFD Sender: No OFD packet to send [13:02:42]OFD Sender: No OFD packet to send [13:02:47]OFD Sender: No OFD packet to send [13:02:52]OFD Sender: No OFD packet to send [13:02:57]OFD Sender: No OFD packet to send [13:03:02]OFD Sender: No OFD packet to send [13:03:07]OFD Sender: No OFD packet to send [13:03:12]OFD Sender: No OFD packet to send [13:03:17]OFD Sender: No OFD packet to send [13:03:22]OFD Sender: No OFD packet to send [13:03:27]OFD Sender: No OFD packet to send [13:03:32]OFD Sender: No OFD packet to send [13:03:37]OFD Sender: No OFD packet to send [13:03:42]OFD Sender: No OFD packet to send [13:03:47]OFD Sender: No OFD packet to send [13:03:52]OFD Sender: No OFD packet to send [13:03:57]OFD Sender: No OFD packet to send [13:04:02]OFD Sender: No OFD packet to send [13:04:07]OFD Sender: No OFD packet to send [13:04:12]OFD Sender: No OFD packet to send [13:04:17]OFD Sender: No OFD packet to send [13:04:22]OFD Sender: No OFD packet to send [13:04:27]OFD Sender: No OFD packet to send [13:04:32]OFD Sender: No OFD packet to send [13:04:37]OFD Sender: No OFD packet to send [13:04:42]OFD Sender: No OFD packet to send [13:04:47]OFD Sender: No OFD packet to send [13:04:52]OFD Sender: No OFD packet to send [13:04:57]OFD Sender: No OFD packet to send [13:05:02]OFD Sender: No OFD packet to send [13:05:07]OFD Sender: No OFD packet to send [13:05:12]OFD Sender: No OFD packet to send [13:05:17]OFD Sender: No OFD packet to send [13:05:22]OFD Sender: No OFD packet to send [13:05:27]OFD Sender: No OFD packet to send [13:05:32]OFD Sender: No OFD packet to send [13:05:37]OFD Sender: No OFD packet to send [13:05:42]OFD Sender: No OFD packet to send [13:05:47]OFD Sender: No OFD packet to send [13:05:52]OFD Sender: No OFD packet to send [13:05:57]OFD Sender: No OFD packet to send [13:06:02]OFD Sender: No OFD packet to send [13:06:07]OFD Sender: No OFD packet to send [13:06:12]OFD Sender: No OFD packet to send [13:06:17]OFD Sender: No OFD packet to send [13:06:22]OFD Sender: No OFD packet to send [13:06:27]OFD Sender: No OFD packet to send [13:06:32]OFD Sender: No OFD packet to send [13:06:37]OFD Sender: No OFD packet to send [13:06:42]OFD Sender: No OFD packet to send [13:06:47]OFD Sender: No OFD packet to send [13:06:52]OFD Sender: No OFD packet to send [13:06:57]OFD Sender: No OFD packet to send [13:07:02]OFD Sender: No OFD packet to send [13:07:07]OFD Sender: No OFD packet to send [13:07:12]OFD Sender: No OFD packet to send [13:07:17]OFD Sender: No OFD packet to send [13:07:22]OFD Sender: No OFD packet to send [13:07:27]OFD Sender: No OFD packet to send [13:07:32]OFD Sender: No OFD packet to send [13:07:37]OFD Sender: No OFD packet to send [13:07:42]OFD Sender: No OFD packet to send [13:07:47]OFD Sender: No OFD packet to send [13:07:52]OFD Sender: No OFD packet to send [13:07:57]OFD Sender: No OFD packet to send [13:08:02]OFD Sender: No OFD packet to send [13:08:07]OFD Sender: No OFD packet to send [13:08:13]OFD Sender: No OFD packet to send [13:08:18]OFD Sender: No OFD packet to send [13:08:23]OFD Sender: No OFD packet to send [13:08:28]OFD Sender: No OFD packet to send [13:08:33]OFD Sender: No OFD packet to send [13:08:38]OFD Sender: No OFD packet to send [13:08:43]OFD Sender: No OFD packet to send [13:08:48]OFD Sender: No OFD packet to send [13:08:53]OFD Sender: No OFD packet to send [13:08:58]OFD Sender: No OFD packet to send [13:09:03]OFD Sender: No OFD packet to send [13:09:08]OFD Sender: No OFD packet to send [13:09:13]OFD Sender: No OFD packet to send [13:09:18]OFD Sender: No OFD packet to send [13:09:23]OFD Sender: No OFD packet to send [13:09:28]OFD Sender: No OFD packet to send [13:09:33]OFD Sender: No OFD packet to send [13:09:38]OFD Sender: No OFD packet to send [13:09:43]OFD Sender: No OFD packet to send [13:09:48]OFD Sender: No OFD packet to send [13:09:53]OFD Sender: No OFD packet to send [13:09:58]OFD Sender: No OFD packet to send [13:10:03]OFD Sender: No OFD packet to send [13:10:08]OFD Sender: No OFD packet to send [13:10:13]OFD Sender: No OFD packet to send [13:10:18]OFD Sender: No OFD packet to send [13:10:23]OFD Sender: No OFD packet to send [13:10:28]OFD Sender: No OFD packet to send [13:10:33]OFD Sender: No OFD packet to send [13:10:38]OFD Sender: No OFD packet to send [13:10:43]OFD Sender: No OFD packet to send [13:10:48]OFD Sender: No OFD packet to send [13:10:53]OFD Sender: No OFD packet to send [13:10:58]OFD Sender: No OFD packet to send [13:11:03]OFD Sender: No OFD packet to send [13:11:08]OFD Sender: No OFD packet to send [13:11:13]OFD Sender: No OFD packet to send [13:11:18]OFD Sender: No OFD packet to send [13:11:23]OFD Sender: No OFD packet to send [13:11:28]OFD Sender: No OFD packet to send [13:11:33]OFD Sender: No OFD packet to send [13:11:34]accept exits with 9 [13:11:34]New connection [13:11:34]New thread 3066854756 created [13:11:34]Thread 3066711396 joined [13:11:34]Waiting for new connection... [13:11:34] Sock 9.Parse request [13:11:34]Sock 9.Check first char [13:11:34]Sock 9.First char is OK [13:11:34]request: POST /json_proto HTTP/1.0 [13:11:34]Method: POST [13:11:34]URL: /json_proto [13:11:34]Method is POST - this is cgi request [13:11:34]url: /json_proto [13:11:34]query_string will be loaded in cgi processing [13:11:34]execute_cgi json_proto POST (null) [13:11:34]execute_cgi path=json_proto method=POST [13:11:34]POST find Content-Length [13:11:34]Host: 172.17.56.4:8080 [13:11:34]Content-Length: 677 [13:11:34]Content-Type: application/json [13:11:34] [13:11:34]POST finish read [13:11:34]Found Content-Length = 677 [13:11:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459398", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.500, "sum" : 493.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 493.00, "total" : 493.00, "payments": [ { "type": 0, "sum" : 493.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:34]execute_script... [13:11: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)459398", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.500, "sum" : 493.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 493.00, "total" : 493.00, "payments": [ { "type": 0, "sum" : 493.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:34]POST & json_proto [13:11:34]process_json_proto [13:11:34]json parsed OK: [13:11:34]protocol is kg_v1.0 [13:11:34]action value=close_receipt [13:11:34]process_action close_receipt [13:11:34]cmd_close_receipt [13:11:34]MH_GetDate [13:11:34]Write to MH i2c: F0 00 00 58 12 59 [13:11:34]Write i2c OK [13:11:34]MH_I2C_Read... [13:11:34]Read from MH i2c: F0 [13:11:34]MH_I2C_Read... [13:11:34]Read from MH i2c: F0 09 00 [13:11:34]MH_I2C_Read... [13:11:34]Read from MH i2c: F0 09 00 58 12 00 07 20 95 66 C9 DC B2 64 3F [13:11:34]GetLastDocTimeStamp 1721048425 [13:11:34]current date 1721049095 [13:11:34]FM_GetShiftState [13:11:34]SAM_PROTO_GetShiftState [13:11:34]wFMCommunicate request_size=4 [13:11:34]MH_SAM_APDU [13:11:34]CAPDU: 80 13 01 00 [13:11:34]Write to MH i2c: E2 08 00 59 12 80 13 01 00 00 00 00 00 E8 [13:11:34]Write i2c OK [13:11:34]MH_I2C_Read... [13:11:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:34]Read from MH i2c: E2 [13:11:34]MH_I2C_Read... [13:11:34]Read from MH i2c: E2 0E 00 [13:11:34]MH_I2C_Read... [13:11:34]Read from MH i2c: E2 0E 00 59 12 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 C1 [13:11:34]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [13:11:34]wFMCommunicate OK [13:11:34]SAM_PROTO_GetShiftState done [13:11:34]FM_GetShiftState done [13:11:34]opened in 1721003876 [13:11:34]opened+sec_in_day 1721090276 [13:11:34]quantity*price = 49350 [13:11:34]sum+1 = 49351 [13:11:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 493.00 Внесено: 493.00 СДАЧА: 0.00 НСП 1% : 4.37 НДС 12% : 52.41 Наличными: 493.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 160 15.07.2024 13:11 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165287 ФПД: 93045448159468 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T131135&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165287&fm=93045448159468&tin=02508201610067®Number=0000000000090829&sum=49300 [13:11:35]StoreToDocumentArchive [13:11:35]shift 448 fd 165287 [13:11:35]save to /storage/0448/doc_00165287 [13:11:35]save last doc name /storage/0448/doc_00165287 to /storage/kkm_last_doc_name [13:11:35]save OK [13:11:35]Clear old archive folders... [13:11:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:11:35]tlvbuf is 0181D7A0 [13:11:35]SAM_PROTO_ClearQueue [13:11:35]wFMCommunicate request_size=4 [13:11:35]MH_SAM_APDU [13:11:35]CAPDU: 80 09 00 00 [13:11:35]Write to MH i2c: E2 08 00 66 12 80 09 00 00 00 00 00 00 EA [13:11:35]Write i2c OK [13:11:35]MH_I2C_Read... [13:11:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:11:35]Read from MH i2c: E2 [13:11:35]MH_I2C_Read... [13:11:35]Read from MH i2c: E2 03 00 [13:11:35]MH_I2C_Read... [13:11:35]Read from MH i2c: E2 03 00 66 12 00 90 00 EC [13:11:35]RAPDU: 90 00 [13:11:35]wFMCommunicate OK [13:11:35]SAM_PROTO_ClearQueue done [13:11:35]KKMCreateOFDPacket [13:11:35]OFDProtocolAddRootSTLVToBuf [13:11:35]FM_MakeSignedData [13:11:35]FM_MakeSignedData [13:11:35]SAM_PROTO_SignData [13:11:35]wFMCommunicate request_size=4 [13:11:35]MH_SAM_APDU [13:11:35]CAPDU: 80 0D 01 02 [13:11:35]Write to MH i2c: E2 08 00 67 12 80 0D 01 02 00 00 00 00 F2 [13:11:35]Write i2c OK [13:11:35]MH_I2C_Read... [13:11:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:11:35]Read from MH i2c: E2 [13:11:35]MH_I2C_Read... [13:11:35]Read from MH i2c: E2 03 00 [13:11:35]MH_I2C_Read... [13:11:35]Read from MH i2c: E2 03 00 67 12 00 90 00 ED [13:11:35]RAPDU: 90 00 [13:11:35]wFMCommunicate OK [13:11:35]wFMCommunicate request_size=255 [13:11:35]MH_SAM_APDU [13:11: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 4C 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 C6 C0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 C0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 14 00 00 00 00 07 04 06 00 94 C0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 07 20 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A7 85 02 00 35 04 06 00 54 [13:11:35]Write to MH i2c: E2 02 01 68 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 C6 C0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 C0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 14 00 00 00 00 07 04 06 00 94 C0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 07 20 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A7 85 02 00 35 04 06 00 54 00 00 AE [13:11:35]Write i2c OK [13:11:35]MH_I2C_Read... [13:11:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:35]Read from MH i2c: E2 [13:11:35]MH_I2C_Read... [13:11:35]Read from MH i2c: E2 03 00 [13:11:35]MH_I2C_Read... [13:11:35]Read from MH i2c: E2 03 00 68 12 00 90 00 EE [13:11:35]RAPDU: 90 00 [13:11:35]wFMCommunicate OK [13:11:35]wFMCommunicate request_size=10 [13:11:35]MH_SAM_APDU [13:11:35]CAPDU: 80 0D 02 02 05 9F D4 E2 B0 EC [13:11:35]Write to MH i2c: E2 0D 00 69 12 80 0D 02 02 05 00 9F D4 E2 B0 EC 00 00 F0 [13:11:35]Write i2c OK [13:11:35]MH_I2C_Read... [13:11:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:35]Read from MH i2c: E2 [13:11:35]MH_I2C_Read... [13:11:35]Read from MH i2c: E2 03 00 [13:11:35]MH_I2C_Read... [13:11:35]Read from MH i2c: E2 03 00 69 12 00 90 00 EF [13:11:35]RAPDU: 90 00 [13:11:35]wFMCommunicate OK [13:11:35]wFMCommunicate request_size=4 [13:11:35]MH_SAM_APDU [13:11:35]CAPDU: 80 0D 03 02 [13:11:35]Write to MH i2c: E2 08 00 6A 12 80 0D 03 02 00 00 00 00 F7 [13:11:35]Write i2c OK [13:11:35]MH_I2C_Read... [13:11:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:11:35]Read from MH i2c: E2 [13:11:35]MH_I2C_Read... [13:11:35]Read from MH i2c: E2 0B 00 [13:11:35]MH_I2C_Read... [13:11:35]Read from MH i2c: E2 0B 00 6A 12 00 A5 C1 0C C6 48 5B EC CB 90 00 8A [13:11:35]RAPDU: A5 C1 0C C6 48 5B EC CB 90 00 [13:11:35]wFMCommunicate OK [13:11:35]SAM_PROTO_SignData done [13:11:35]FM_MakeSignedData done [13:11:35]CreateOFDProtocolMessage [13:11:35]wFMCommunicate request_size=4 [13:11:35]MH_SAM_APDU [13:11:35]CAPDU: 80 11 00 00 [13:11:35]Write to MH i2c: E2 08 00 6B 12 80 11 00 00 00 00 00 00 F7 [13:11:35]Write i2c OK [13:11:35]MH_I2C_Read... [13:11:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:36]Read from MH i2c: E2 [13:11:36]MH_I2C_Read... [13:11:36]Read from MH i2c: E2 17 00 [13:11:36]MH_I2C_Read... [13:11:36]Read from MH i2c: E2 17 00 6B 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4D [13:11:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:11:36]wFMCommunicate OK [13:11:36]CreateOFDProtocolMessage done [13:11:36]OFDSenderStorePacket 165287 [13:11:36]StoreOFDPacket docnum=165287 [13:11:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 EB DE 07 01 0B D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 C6 C0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 C0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 14 00 00 00 00 07 04 06 00 94 C0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 07 20 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A7 85 02 00 35 04 06 00 54 9F D4 E2 B0 EC A5 C1 0C C6 48 5B EC CB [13:11:36]CheckFolder [13:11:36]dirname=/storage/ofd_packets [13:11:36]CheckFolder done [13:11:36]ProducePacketName [13:11:36]name=ofd_packets/00165287 [13:11:36]NVStorageSaveData ofd_packets/00165287 [13:11:36]File name is /storage/ofd_packets/00165287 [13:11:36]Write 301 bytes [13:11:36]NVStorageSaveData done [13:11:36]OFDSenderStorePacket done [13:11:36]KKMCreateOFDPacket done [13:11:36]NVStorageSaveData kkm_last_timestamp [13:11:36]File name is /storage/kkm_last_timestamp [13:11:36]Write 4 bytes [13:11:36]NVStorageSaveData done [13:11:36]ExternCall_PrintAddStr [13:11:36]wPrintStart [13:11:36]Write to MH i2c: 01 00 00 6C 12 7E [13:11:36]Write i2c OK [13:11:36]MH_I2C_Read... [13:11:36]Read from MH i2c: 01 [13:11:36]MH_I2C_Read... [13:11:36]Read from MH i2c: 01 07 00 [13:11:36]MH_I2C_Read... [13:11:36]Read from MH i2c: 01 07 00 6C 12 00 00 00 00 00 FF 0F 93 [13:11:36]RasterBufferAndPrint [13:11:36]line Счет N : (1)459398 [13:11:36]line ИНН: 02508201610067 [13:11:36]line Контрольно-Кассовый Чек [13:11:36]line ПРОДАЖА [13:11:36]line ТРК (МРК, ГНК) : 22 [13:11:36]line Товар: 2710124130 [13:11:36]line Аи-92-К-5 [13:11:36]line 7.500 * 65.80 [13:11:36]line = 493.50 [13:11:36]line НДС 12% НСП 1% [13:11:36]line > о реализуемом товаре [13:11:36]line ОКРУГЛЕНИЕ: -0.50 [13:11:36]line ИТОГО: 493.00 [13:11:36]line Внесено: 493.00 [13:11:36]line СДАЧА: 0.00 [13:11:36]line НСП 1% : 4.37 [13:11:36]line НДС 12% : 52.41 [13:11:36]line Наличными: 493.00 [13:11:36]line Безнал.: 0.00 [13:11:36]line Место: АЗС № 72 "Партнер Нефть" [13:11:36]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:11:36]line СНО: Общий режим [13:11:36]line Чек 160 15.07.2024 13:11 [13:11:36]line Смена: 448 ФФД: 1.0 [13:11:36]line ЗНМ: 0300000160 [13:11:36]line РНМ: 0000000000090829 [13:11:36]line Версия ККМ: 001 [13:11:36]line ФМ: 0000000000874718 [13:11:36]line ФД: 165287 [13:11:36]line ФПД: 93045448159468 [13:11:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T131135&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165287&fm=93045448159468&tin=02508201610067®Number=0000000000090829&sum=49300 [13:11:36]OFD Sender: Processing packet 165287 [packets to send 106, broken 105] [13:11:36]ProducePacketName [13:11:36]name=ofd_packets/00165287 [13:11:36]OFD Sender: To server: pG, [13:11:36]CommunicateWithHost lk.salyk.kg:30040 [13:11:36]ConnectInit lk.salyk.kg [13:11:36]written 0, free lines is 4095 [13:11:36]Connected sock=10 [13:11: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 37 31 38 0F 01 00 00 EB DE 07 01 0B D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4C 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 C6 C0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 C0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 14 00 00 00 00 07 04 06 00 94 C0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 07 20 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A7 85 02 00 35 04 06 00 54 9F D4 E2 B0 EC A5 C1 0C C6 48 5B EC CB [13:11:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 D3 62 47 00 17 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A7 85 02 00 F4 03 04 00 91 C6 94 66 B6 04 01 00 00 48 89 A7 AF 88 D7 76 1E [13:11:36]CommunicateWithHost err = 0 [13:11:36]CheckOFDResponse [13:11:36]1017 (14) - 77093643461234 [13:11:36]1041 (16) - 0000000000874718 [13:11:36]1040 (4) - 165287 [13:11:36]1012 (4) - 15.07.2024 06:49 [13:11:36]1206 (1) - 0 [13:11:36]OFD Sender: Remove packet 165287 [13:11:36]ProducePacketName [13:11:36]name=ofd_packets/00165287 [13:11:36]NVStorageDeleteData [13:11:36]Write to MH i2c: 01 00 00 96 12 A8 [13:11:36]Write i2c OK [13:11:36]MH_I2C_Read... [13:11:36]Read from MH i2c: 01 [13:11:36]MH_I2C_Read... [13:11:36]Read from MH i2c: 01 07 00 [13:11:36]MH_I2C_Read... [13:11:36]Read from MH i2c: 01 07 00 96 12 00 00 00 00 00 F3 0C AE [13:11:36]RasterBufferAndPrint [13:11:36]line [13:11:36]line [13:11:36]line [13:11:36]line [13:11:36]line [13:11:36]written 0, free lines is 3321 [13:11:36]MH_Cut [13:11:36]Write to MH i2c: D1 01 00 9D 12 01 81 [13:11:36]Write i2c OK [13:11:36]MH_I2C_Read... [13:11:36]Read from MH i2c: D1 [13:11:36]MH_I2C_Read... [13:11:36]Read from MH i2c: D1 01 00 [13:11:36]MH_I2C_Read... [13:11:36]Read from MH i2c: D1 01 00 9D 12 00 80 [13:11:36]Write to MH i2c: 01 00 00 9E 12 B0 [13:11:36]Write i2c OK [13:11:36]MH_I2C_Read... [13:11:37]OFD Sender: No OFD packet to send [13:11:37]*** Cut start [13:11:37]*** Partial cut [13:11:37]*** CUTSNS_PIN = 1 [13:11:37]*** CUTSNS_PIN = 0 [13:11:37]*** Brake cut motor [13:11:38]Read from MH i2c: 01 [13:11:38]MH_I2C_Read... [13:11:38]*** Stop cut motor [13:11:38]*** Cut end [13:11:38]Read from MH i2c: 01 07 00 [13:11:38]MH_I2C_Read... [13:11:38]Read from MH i2c: 01 07 00 9E 12 00 00 00 00 00 FF 0F C5 [13:11:38]process_action close_receipt done [13:11:38]requested_data is exist [13:11:38]produce_requested_data [13:11:38]requested_item fm.sn is exist - process it [13:11:38]wFMCommunicate request_size=4 [13:11:38]MH_SAM_APDU [13:11:38]CAPDU: 80 11 00 00 [13:11:38]Write to MH i2c: E2 08 00 9F 12 80 11 00 00 00 00 00 00 2B [13:11:38]Write i2c OK [13:11:38]MH_I2C_Read... [13:11:38]Read from MH i2c: E2 [13:11:38]MH_I2C_Read... [13:11:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:38]Read from MH i2c: E2 17 00 [13:11:38]MH_I2C_Read... [13:11:38]Read from MH i2c: E2 17 00 9F 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 81 [13:11:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:11:38]wFMCommunicate OK [13:11:38]requested_item fd.num is exist - process it [13:11:38]SAM_PROTO_GetFieldsCounters [13:11:38]wFMCommunicate request_size=4 [13:11:38]MH_SAM_APDU [13:11:38]CAPDU: 80 13 00 00 [13:11:38]Write to MH i2c: E2 08 00 A0 12 80 13 00 00 00 00 00 00 2E [13:11:38]Write i2c OK [13:11:38]MH_I2C_Read... [13:11:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:11:38]Read from MH i2c: E2 [13:11:38]MH_I2C_Read... [13:11:38]Read from MH i2c: E2 62 00 [13:11:38]MH_I2C_Read... [13:11:38]Read from MH i2c: E2 62 00 A0 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A7 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [13:11: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A7 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:11:38]wFMCommunicate OK [13:11:38]SAM_PROTO_GetFieldsCounters done [13:11:38]requested_item shift.num is exist - process it [13:11:38]requested_item shift.opened is exist - process it [13:11:38]req_shift_opened [13:11:38]FM_GetShiftState [13:11:38]SAM_PROTO_GetShiftState [13:11:38]wFMCommunicate request_size=4 [13:11:38]MH_SAM_APDU [13:11:38]CAPDU: 80 13 01 00 [13:11:38]Write to MH i2c: E2 08 00 A1 12 80 13 01 00 00 00 00 00 30 [13:11:38]Write i2c OK [13:11:38]MH_I2C_Read... [13:11:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:38]Read from MH i2c: E2 [13:11:38]MH_I2C_Read... [13:11:38]Read from MH i2c: E2 0E 00 [13:11:38]MH_I2C_Read... [13:11:38]Read from MH i2c: E2 0E 00 A1 12 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 09 [13:11:38]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [13:11:38]wFMCommunicate OK [13:11:38]SAM_PROTO_GetShiftState done [13:11:38]FM_GetShiftState done [13:11:38]req_shift_opened done [13:11:38]requested_item shift.open_date is exist - process it [13:11:38]req_shift_open_date [13:11:38]req_shift_open_date done [13:11:38]produce_requested_data done [13:11:38]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165287,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [13:11:38]process_action_free close_receipt [13:11:38]json_value_free [13:11:38]json_value_free done [13:11:38]process_json_proto returns [13:11:38]Send response to host [13:11:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165287,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [13:11:38]free response buf [13:11:38]execute_script done [13:11:38]execute_script returns [13:11:38]free content buf [13:11:38]Sock 9.Close socket [13:11:38]Sock 9.Thread stoped [13:11:42]OFD Sender: No OFD packet to send [13:11:47]OFD Sender: No OFD packet to send [13:11:52]OFD Sender: No OFD packet to send [13:11:57]OFD Sender: No OFD packet to send [13:12:02]OFD Sender: No OFD packet to send [13:12:07]OFD Sender: No OFD packet to send [13:12:12]OFD Sender: No OFD packet to send [13:12:17]OFD Sender: No OFD packet to send [13:12:22]OFD Sender: No OFD packet to send [13:12:27]OFD Sender: No OFD packet to send [13:12:32]OFD Sender: No OFD packet to send [13:12:37]OFD Sender: No OFD packet to send [13:12:42]OFD Sender: No OFD packet to send [13:12:47]OFD Sender: No OFD packet to send [13:12:52]OFD Sender: No OFD packet to send [13:12:57]OFD Sender: No OFD packet to send [13:13:02]OFD Sender: No OFD packet to send [13:13:07]OFD Sender: No OFD packet to send [13:13:12]OFD Sender: No OFD packet to send [13:13:17]OFD Sender: No OFD packet to send [13:13:22]OFD Sender: No OFD packet to send [13:13:27]OFD Sender: No OFD packet to send [13:13:31]accept exits with 8 [13:13:31]New connection [13:13:31]New thread 3066711396 created [13:13:31]Thread 3066854756 joined [13:13:31]Waiting for new connection... [13:13:31] Sock 8.Parse request [13:13:31]Sock 8.Check first char [13:13:31]Sock 8.First char is OK [13:13:31]request: POST /json_proto HTTP/1.0 [13:13:31]Method: POST [13:13:31]URL: /json_proto [13:13:31]Method is POST - this is cgi request [13:13:31]url: /json_proto [13:13:31]query_string will be loaded in cgi processing [13:13:31]execute_cgi json_proto POST (null) [13:13:31]execute_cgi path=json_proto method=POST [13:13:31]POST find Content-Length [13:13:31]Host: 172.17.56.4:8080 [13:13:31]Content-Length: 677 [13:13:31]Content-Type: application/json [13:13:31] [13:13:31]POST finish read [13:13:31]Found Content-Length = 677 [13:13:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459399", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:31]execute_script... [13:13: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)459399", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:31]POST & json_proto [13:13:31]process_json_proto [13:13:31]json parsed OK: [13:13:31]protocol is kg_v1.0 [13:13:31]action value=close_receipt [13:13:31]process_action close_receipt [13:13:31]cmd_close_receipt [13:13:31]MH_GetDate [13:13:31]Write to MH i2c: F0 00 00 A2 12 A3 [13:13:31]Write i2c OK [13:13:31]MH_I2C_Read... [13:13:31]Read from MH i2c: F0 [13:13:31]MH_I2C_Read... [13:13:31]Read from MH i2c: F0 09 00 [13:13:31]MH_I2C_Read... [13:13:31]Read from MH i2c: F0 09 00 A2 12 00 7C 20 95 66 C9 DC B2 64 FE [13:13:31]GetLastDocTimeStamp 1721049095 [13:13:31]current date 1721049212 [13:13:31]FM_GetShiftState [13:13:31]SAM_PROTO_GetShiftState [13:13:31]wFMCommunicate request_size=4 [13:13:31]MH_SAM_APDU [13:13:31]CAPDU: 80 13 01 00 [13:13:31]Write to MH i2c: E2 08 00 A3 12 80 13 01 00 00 00 00 00 32 [13:13:31]Write i2c OK [13:13:31]MH_I2C_Read... [13:13:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:31]Read from MH i2c: E2 [13:13:31]MH_I2C_Read... [13:13:31]Read from MH i2c: E2 0E 00 [13:13:31]MH_I2C_Read... [13:13:31]Read from MH i2c: E2 0E 00 A3 12 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 0B [13:13:31]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [13:13:31]wFMCommunicate OK [13:13:31]SAM_PROTO_GetShiftState done [13:13:31]FM_GetShiftState done [13:13:31]opened in 1721003876 [13:13:31]opened+sec_in_day 1721090276 [13:13:31]quantity*price = 50008 [13:13:31]sum+1 = 50009 [13:13:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 161 15.07.2024 13:13 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165288 ФПД: 180627955600172 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T131332&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165288&fm=180627955600172&tin=02508201610067®Number=0000000000090829&sum=50000 [13:13:32]StoreToDocumentArchive [13:13:32]shift 448 fd 165288 [13:13:32]save to /storage/0448/doc_00165288 [13:13:32]save last doc name /storage/0448/doc_00165288 to /storage/kkm_last_doc_name [13:13:32]save OK [13:13:32]Clear old archive folders... [13:13:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:13:32]tlvbuf is 0181A1A0 [13:13:32]SAM_PROTO_ClearQueue [13:13:32]wFMCommunicate request_size=4 [13:13:32]MH_SAM_APDU [13:13:32]CAPDU: 80 09 00 00 [13:13:32]Write to MH i2c: E2 08 00 B0 12 80 09 00 00 00 00 00 00 34 [13:13:32]Write i2c OK [13:13:32]MH_I2C_Read... [13:13:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:13:32]Read from MH i2c: E2 [13:13:32]MH_I2C_Read... [13:13:32]Read from MH i2c: E2 03 00 [13:13:32]MH_I2C_Read... [13:13:32]Read from MH i2c: E2 03 00 B0 12 00 90 00 36 [13:13:32]RAPDU: 90 00 [13:13:32]wFMCommunicate OK [13:13:32]SAM_PROTO_ClearQueue done [13:13:32]KKMCreateOFDPacket [13:13:32]OFDProtocolAddRootSTLVToBuf [13:13:32]FM_MakeSignedData [13:13:32]FM_MakeSignedData [13:13:32]SAM_PROTO_SignData [13:13:32]wFMCommunicate request_size=4 [13:13:32]MH_SAM_APDU [13:13:32]CAPDU: 80 0D 01 02 [13:13:32]Write to MH i2c: E2 08 00 B1 12 80 0D 01 02 00 00 00 00 3C [13:13:32]Write i2c OK [13:13:32]MH_I2C_Read... [13:13:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:13:32]Read from MH i2c: E2 [13:13:32]MH_I2C_Read... [13:13:32]Read from MH i2c: E2 03 00 [13:13:32]MH_I2C_Read... [13:13:32]Read from MH i2c: E2 03 00 B1 12 00 90 00 37 [13:13:32]RAPDU: 90 00 [13:13:32]wFMCommunicate OK [13:13:32]wFMCommunicate request_size=255 [13:13:32]MH_SAM_APDU [13:13: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 7C 20 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A8 85 02 00 35 04 06 00 A4 [13:13:32]Write to MH i2c: E2 02 01 B2 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 7C 20 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A8 85 02 00 35 04 06 00 A4 00 00 81 [13:13:32]Write i2c OK [13:13:32]MH_I2C_Read... [13:13:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:33]Read from MH i2c: E2 [13:13:33]MH_I2C_Read... [13:13:33]Read from MH i2c: E2 03 00 [13:13:33]MH_I2C_Read... [13:13:33]Read from MH i2c: E2 03 00 B2 12 00 90 00 38 [13:13:33]RAPDU: 90 00 [13:13:33]wFMCommunicate OK [13:13:33]wFMCommunicate request_size=10 [13:13:33]MH_SAM_APDU [13:13:33]CAPDU: 80 0D 02 02 05 47 B9 21 4B 2C [13:13:33]Write to MH i2c: E2 0D 00 B3 12 80 0D 02 02 05 00 47 B9 21 4B 2C 00 00 E1 [13:13:33]Write i2c OK [13:13:33]MH_I2C_Read... [13:13:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:33]Read from MH i2c: E2 [13:13:33]MH_I2C_Read... [13:13:33]Read from MH i2c: E2 03 00 [13:13:33]MH_I2C_Read... [13:13:33]Read from MH i2c: E2 03 00 B3 12 00 90 00 39 [13:13:33]RAPDU: 90 00 [13:13:33]wFMCommunicate OK [13:13:33]wFMCommunicate request_size=4 [13:13:33]MH_SAM_APDU [13:13:33]CAPDU: 80 0D 03 02 [13:13:33]Write to MH i2c: E2 08 00 B4 12 80 0D 03 02 00 00 00 00 41 [13:13:33]Write i2c OK [13:13:33]MH_I2C_Read... [13:13:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:13:33]Read from MH i2c: E2 [13:13:33]MH_I2C_Read... [13:13:33]Read from MH i2c: E2 0B 00 [13:13:33]MH_I2C_Read... [13:13:33]Read from MH i2c: E2 0B 00 B4 12 00 C9 E2 9F 4D 7F 59 49 3E 90 00 38 [13:13:33]RAPDU: C9 E2 9F 4D 7F 59 49 3E 90 00 [13:13:33]wFMCommunicate OK [13:13:33]SAM_PROTO_SignData done [13:13:33]FM_MakeSignedData done [13:13:33]CreateOFDProtocolMessage [13:13:33]wFMCommunicate request_size=4 [13:13:33]MH_SAM_APDU [13:13:33]CAPDU: 80 11 00 00 [13:13:33]Write to MH i2c: E2 08 00 B5 12 80 11 00 00 00 00 00 00 41 [13:13:33]Write i2c OK [13:13:33]MH_I2C_Read... [13:13:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:33]Read from MH i2c: E2 [13:13:33]MH_I2C_Read... [13:13:33]Read from MH i2c: E2 17 00 [13:13:33]MH_I2C_Read... [13:13:33]Read from MH i2c: E2 17 00 B5 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 97 [13:13:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:13:33]wFMCommunicate OK [13:13:33]CreateOFDProtocolMessage done [13:13:33]OFDSenderStorePacket 165288 [13:13:33]StoreOFDPacket docnum=165288 [13:13:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 7B 24 07 01 1E 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 7C 20 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A8 85 02 00 35 04 06 00 A4 47 B9 21 4B 2C C9 E2 9F 4D 7F 59 49 3E [13:13:33]CheckFolder [13:13:33]dirname=/storage/ofd_packets [13:13:33]CheckFolder done [13:13:33]ProducePacketName [13:13:33]name=ofd_packets/00165288 [13:13:33]NVStorageSaveData ofd_packets/00165288 [13:13:33]File name is /storage/ofd_packets/00165288 [13:13:33]Write 301 bytes [13:13:33]NVStorageSaveData done [13:13:33]OFDSenderStorePacket done [13:13:33]KKMCreateOFDPacket done [13:13:33]NVStorageSaveData kkm_last_timestamp [13:13:33]File name is /storage/kkm_last_timestamp [13:13:33]Write 4 bytes [13:13:33]NVStorageSaveData done [13:13:33]ExternCall_PrintAddStr [13:13:33]wPrintStart [13:13:33]Write to MH i2c: 01 00 00 B6 12 C8 [13:13:33]Write i2c OK [13:13:33]MH_I2C_Read... [13:13:33]Read from MH i2c: 01 [13:13:33]MH_I2C_Read... [13:13:33]Read from MH i2c: 01 07 00 [13:13:33]MH_I2C_Read... [13:13:33]Read from MH i2c: 01 07 00 B6 12 00 00 00 00 00 FF 0F DD [13:13:33]RasterBufferAndPrint [13:13:33]line Счет N : (1)459399 [13:13:33]line ИНН: 02508201610067 [13:13:33]line Контрольно-Кассовый Чек [13:13:33]line ПРОДАЖА [13:13:33]line ТРК (МРК, ГНК) : 12 [13:13:33]line Товар: 2710124130 [13:13:33]line Аи-92-К-5 [13:13:33]line 7.600 * 65.80 [13:13:33]line = 500.08 [13:13:33]line НДС 12% НСП 1% [13:13:33]line > о реализуемом товаре [13:13:33]line ОКРУГЛЕНИЕ: -0.08 [13:13:33]line ИТОГО: 500.00 [13:13:33]line Внесено: 500.00 [13:13:33]line СДАЧА: 0.00 [13:13:33]line НСП 1% : 4.42 [13:13:33]line НДС 12% : 53.11 [13:13:33]line Наличными: 500.00 [13:13:33]line Безнал.: 0.00 [13:13:33]line Место: АЗС № 72 "Партнер Нефть" [13:13:33]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:13:33]line СНО: Общий режим [13:13:33]line Чек 161 15.07.2024 13:13 [13:13:33]line Смена: 448 ФФД: 1.0 [13:13:33]line ЗНМ: 0300000160 [13:13:33]line РНМ: 0000000000090829 [13:13:33]line Версия ККМ: 001 [13:13:33]line ФМ: 0000000000874718 [13:13:33]line ФД: 165288 [13:13:33]line ФПД: 180627955600172 [13:13:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T131332&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165288&fm=180627955600172&tin=02508201610067®Number=0000000000090829&sum=50000 [13:13:33]OFD Sender: Processing packet 165288 [packets to send 106, broken 105] [13:13:33]ProducePacketName [13:13:33]name=ofd_packets/00165288 [13:13:33]OFD Sender: To server: pG, [13:13:33]CommunicateWithHost lk.salyk.kg:30040 [13:13:33]ConnectInit lk.salyk.kg [13:13:33]written 0, free lines is 4095 [13:13:33]Connected sock=10 [13:13: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 37 31 38 0F 01 00 00 7B 24 07 01 1E 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 7C 20 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A8 85 02 00 35 04 06 00 A4 47 B9 21 4B 2C C9 E2 9F 4D 7F 59 49 3E [13:13:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 37 B3 47 00 CB 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 A8 85 02 00 F4 03 04 00 06 C7 94 66 B6 04 01 00 00 BB B5 56 EF 02 C6 3E AA [13:13:33]CommunicateWithHost err = 0 [13:13:33]CheckOFDResponse [13:13:33]1017 (14) - 77093643461234 [13:13:33]1041 (16) - 0000000000874718 [13:13:33]1040 (4) - 165288 [13:13:33]1012 (4) - 15.07.2024 06:51 [13:13:33]1206 (1) - 0 [13:13:33]OFD Sender: Remove packet 165288 [13:13:33]ProducePacketName [13:13:33]name=ofd_packets/00165288 [13:13:33]NVStorageDeleteData [13:13:33]Write to MH i2c: 01 00 00 E0 12 F2 [13:13:33]Write i2c OK [13:13:33]MH_I2C_Read... [13:13:33]Read from MH i2c: 01 [13:13:33]MH_I2C_Read... [13:13:33]Read from MH i2c: 01 07 00 [13:13:33]MH_I2C_Read... [13:13:33]Read from MH i2c: 01 07 00 E0 12 00 00 00 00 00 F3 0C F8 [13:13:33]RasterBufferAndPrint [13:13:33]line [13:13:33]line [13:13:33]line [13:13:33]line [13:13:33]line [13:13:33]written 0, free lines is 3322 [13:13:34]MH_Cut [13:13:34]Write to MH i2c: D1 01 00 E7 12 01 CB [13:13:34]Write i2c OK [13:13:34]MH_I2C_Read... [13:13:34]Read from MH i2c: D1 [13:13:34]MH_I2C_Read... [13:13:34]Read from MH i2c: D1 01 00 [13:13:34]MH_I2C_Read... [13:13:34]Read from MH i2c: D1 01 00 E7 12 00 CA [13:13:34]Write to MH i2c: 01 00 00 E8 12 FA [13:13:34]Write i2c OK [13:13:34]MH_I2C_Read... [13:13:34]OFD Sender: No OFD packet to send [13:13:34]*** Cut start [13:13:34]*** Partial cut [13:13:34]*** CUTSNS_PIN = 1 [13:13:34]*** CUTSNS_PIN = 0 [13:13:34]*** Brake cut motor [13:13:35]Read from MH i2c: 01 [13:13:35]MH_I2C_Read... [13:13:35]*** Stop cut motor [13:13:35]*** Cut end [13:13:35]Read from MH i2c: 01 07 00 [13:13:35]MH_I2C_Read... [13:13:35]Read from MH i2c: 01 07 00 E8 12 00 00 00 00 00 FF 0F 0F [13:13:35]process_action close_receipt done [13:13:35]requested_data is exist [13:13:35]produce_requested_data [13:13:35]requested_item fm.sn is exist - process it [13:13:35]wFMCommunicate request_size=4 [13:13:35]MH_SAM_APDU [13:13:35]CAPDU: 80 11 00 00 [13:13:35]Write to MH i2c: E2 08 00 E9 12 80 11 00 00 00 00 00 00 75 [13:13:35]Write i2c OK [13:13:35]MH_I2C_Read... [13:13:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:35]Read from MH i2c: E2 [13:13:35]MH_I2C_Read... [13:13:35]Read from MH i2c: E2 17 00 [13:13:35]MH_I2C_Read... [13:13:35]Read from MH i2c: E2 17 00 E9 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CB [13:13:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:13:35]wFMCommunicate OK [13:13:35]requested_item fd.num is exist - process it [13:13:35]SAM_PROTO_GetFieldsCounters [13:13:35]wFMCommunicate request_size=4 [13:13:35]MH_SAM_APDU [13:13:35]CAPDU: 80 13 00 00 [13:13:35]Write to MH i2c: E2 08 00 EA 12 80 13 00 00 00 00 00 00 78 [13:13:35]Write i2c OK [13:13:35]MH_I2C_Read... [13:13:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:13:35]Read from MH i2c: E2 [13:13:35]MH_I2C_Read... [13:13:35]Read from MH i2c: E2 62 00 [13:13:35]MH_I2C_Read... [13:13:35]Read from MH i2c: E2 62 00 EA 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A8 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [13:13:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A8 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:13:35]wFMCommunicate OK [13:13:35]SAM_PROTO_GetFieldsCounters done [13:13:35]requested_item shift.num is exist - process it [13:13:35]requested_item shift.opened is exist - process it [13:13:35]req_shift_opened [13:13:35]FM_GetShiftState [13:13:35]SAM_PROTO_GetShiftState [13:13:35]wFMCommunicate request_size=4 [13:13:35]MH_SAM_APDU [13:13:35]CAPDU: 80 13 01 00 [13:13:35]Write to MH i2c: E2 08 00 EB 12 80 13 01 00 00 00 00 00 7A [13:13:35]Write i2c OK [13:13:35]MH_I2C_Read... [13:13:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:35]Read from MH i2c: E2 [13:13:35]MH_I2C_Read... [13:13:35]Read from MH i2c: E2 0E 00 [13:13:35]MH_I2C_Read... [13:13:35]Read from MH i2c: E2 0E 00 EB 12 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 53 [13:13:35]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [13:13:35]wFMCommunicate OK [13:13:35]SAM_PROTO_GetShiftState done [13:13:35]FM_GetShiftState done [13:13:35]req_shift_opened done [13:13:35]requested_item shift.open_date is exist - process it [13:13:35]req_shift_open_date [13:13:35]req_shift_open_date done [13:13:35]produce_requested_data done [13:13:35]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165288,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [13:13:35]process_action_free close_receipt [13:13:35]json_value_free [13:13:35]json_value_free done [13:13:35]process_json_proto returns [13:13:35]Send response to host [13:13:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165288,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [13:13:35]free response buf [13:13:35]execute_script done [13:13:35]execute_script returns [13:13:35]free content buf [13:13:35]Sock 8.Close socket [13:13:35]Sock 8.Thread stoped [13:13:39]OFD Sender: No OFD packet to send [13:13:44]OFD Sender: No OFD packet to send [13:13:49]OFD Sender: No OFD packet to send [13:13:54]OFD Sender: No OFD packet to send [13:13:59]OFD Sender: No OFD packet to send [13:14:04]OFD Sender: No OFD packet to send [13:14:09]OFD Sender: No OFD packet to send [13:14:14]OFD Sender: No OFD packet to send [13:14:19]OFD Sender: No OFD packet to send [13:14:24]OFD Sender: No OFD packet to send [13:14:29]OFD Sender: No OFD packet to send [13:14:34]OFD Sender: No OFD packet to send [13:14:39]OFD Sender: No OFD packet to send [13:14:44]OFD Sender: No OFD packet to send [13:14:49]OFD Sender: No OFD packet to send [13:14:54]OFD Sender: No OFD packet to send [13:14:59]OFD Sender: No OFD packet to send [13:15:04]OFD Sender: No OFD packet to send [13:15:09]OFD Sender: No OFD packet to send [13:15:14]OFD Sender: No OFD packet to send [13:15:19]OFD Sender: No OFD packet to send [13:15:24]OFD Sender: No OFD packet to send [13:15:29]OFD Sender: No OFD packet to send [13:15:33]accept exits with 9 [13:15:33]New connection [13:15:33]New thread 3066854756 created [13:15:33]Thread 3066711396 joined [13:15:33]Waiting for new connection... [13:15:33] Sock 9.Parse request [13:15:33]Sock 9.Check first char [13:15:33]Sock 9.First char is OK [13:15:33]request: POST /json_proto HTTP/1.0 [13:15:33]Method: POST [13:15:33]URL: /json_proto [13:15:33]Method is POST - this is cgi request [13:15:33]url: /json_proto [13:15:33]query_string will be loaded in cgi processing [13:15:33]execute_cgi json_proto POST (null) [13:15:33]execute_cgi path=json_proto method=POST [13:15:33]POST find Content-Length [13:15:33]Host: 172.17.56.4:8080 [13:15:33]Content-Length: 674 [13:15:33]Content-Type: application/json [13:15:33] [13:15:33]POST finish read [13:15:33]Found Content-Length = 674 [13:15:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459400", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 9.740, "sum" : 700.31, "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" ] } } [13:15:33]execute_script... [13:15: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)459400", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 9.740, "sum" : 700.31, "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" ] } } [13:15:33]POST & json_proto [13:15:33]process_json_proto [13:15:33]json parsed OK: [13:15:33]protocol is kg_v1.0 [13:15:33]action value=close_receipt [13:15:33]process_action close_receipt [13:15:33]cmd_close_receipt [13:15:33]MH_GetDate [13:15:33]Write to MH i2c: F0 00 00 EC 12 ED [13:15:33]Write i2c OK [13:15:33]MH_I2C_Read... [13:15:33]Read from MH i2c: F0 [13:15:33]MH_I2C_Read... [13:15:33]Read from MH i2c: F0 09 00 [13:15:33]MH_I2C_Read... [13:15:33]Read from MH i2c: F0 09 00 EC 12 00 F6 20 95 66 C9 DC B2 64 C2 [13:15:33]GetLastDocTimeStamp 1721049212 [13:15:33]current date 1721049334 [13:15:33]FM_GetShiftState [13:15:33]SAM_PROTO_GetShiftState [13:15:33]wFMCommunicate request_size=4 [13:15:33]MH_SAM_APDU [13:15:33]CAPDU: 80 13 01 00 [13:15:33]Write to MH i2c: E2 08 00 ED 12 80 13 01 00 00 00 00 00 7C [13:15:33]Write i2c OK [13:15:33]MH_I2C_Read... [13:15:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:33]Read from MH i2c: E2 [13:15:33]MH_I2C_Read... [13:15:33]Read from MH i2c: E2 0E 00 [13:15:33]MH_I2C_Read... [13:15:33]Read from MH i2c: E2 0E 00 ED 12 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 55 [13:15:33]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [13:15:33]wFMCommunicate OK [13:15:33]SAM_PROTO_GetShiftState done [13:15:33]FM_GetShiftState done [13:15:33]opened in 1721003876 [13:15:33]opened+sec_in_day 1721090276 [13:15:33]quantity*price = 70030 [13:15:33]sum+1 = 70032 [13:15:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 162 15.07.2024 13:15 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165289 ФПД: 265699080857579 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T131534&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165289&fm=265699080857579&tin=02508201610067®Number=0000000000090829&sum=70000 [13:15:34]StoreToDocumentArchive [13:15:34]shift 448 fd 165289 [13:15:34]save to /storage/0448/doc_00165289 [13:15:34]save last doc name /storage/0448/doc_00165289 to /storage/kkm_last_doc_name [13:15:34]save OK [13:15:34]Clear old archive folders... [13:15:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:15:34]tlvbuf is 018119C0 [13:15:34]SAM_PROTO_ClearQueue [13:15:34]wFMCommunicate request_size=4 [13:15:34]MH_SAM_APDU [13:15:34]CAPDU: 80 09 00 00 [13:15:34]Write to MH i2c: E2 08 00 FA 12 80 09 00 00 00 00 00 00 7E [13:15:34]Write i2c OK [13:15:34]MH_I2C_Read... [13:15:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:15:34]Read from MH i2c: E2 [13:15:34]MH_I2C_Read... [13:15:34]Read from MH i2c: E2 03 00 [13:15:34]MH_I2C_Read... [13:15:34]Read from MH i2c: E2 03 00 FA 12 00 90 00 80 [13:15:34]RAPDU: 90 00 [13:15:34]wFMCommunicate OK [13:15:34]SAM_PROTO_ClearQueue done [13:15:34]KKMCreateOFDPacket [13:15:34]OFDProtocolAddRootSTLVToBuf [13:15:34]FM_MakeSignedData [13:15:34]FM_MakeSignedData [13:15:34]SAM_PROTO_SignData [13:15:34]wFMCommunicate request_size=4 [13:15:34]MH_SAM_APDU [13:15:34]CAPDU: 80 0D 01 02 [13:15:34]Write to MH i2c: E2 08 00 FB 12 80 0D 01 02 00 00 00 00 86 [13:15:34]Write i2c OK [13:15:34]MH_I2C_Read... [13:15:34]OFD Sender: No OFD packet to send [13:15:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:15:34]Read from MH i2c: E2 [13:15:34]MH_I2C_Read... [13:15:34]Read from MH i2c: E2 03 00 [13:15:34]MH_I2C_Read... [13:15:34]Read from MH i2c: E2 03 00 FB 12 00 90 00 81 [13:15:34]RAPDU: 90 00 [13:15:34]wFMCommunicate OK [13:15:34]wFMCommunicate request_size=255 [13:15:34]MH_SAM_APDU [13:15:34]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 26 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8F 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 0D 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 A2 00 00 00 F4 03 04 00 F6 20 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A9 85 02 00 35 04 06 00 F1 A6 E3 54 [13:15:34]Write to MH i2c: E2 02 01 FC 12 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 26 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8F 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 0D 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 A2 00 00 00 F4 03 04 00 F6 20 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A9 85 02 00 35 04 06 00 F1 A6 E3 54 00 00 FC [13:15:34]Write i2c OK [13:15:34]MH_I2C_Read... [13:15:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:34]Read from MH i2c: E2 [13:15:34]MH_I2C_Read... [13:15:34]Read from MH i2c: E2 03 00 [13:15:34]MH_I2C_Read... [13:15:34]Read from MH i2c: E2 03 00 FC 12 00 90 00 82 [13:15:34]RAPDU: 90 00 [13:15:34]wFMCommunicate OK [13:15:34]wFMCommunicate request_size=7 [13:15:34]MH_SAM_APDU [13:15:34]CAPDU: 80 0D 02 02 02 E7 EB [13:15:34]Write to MH i2c: E2 0A 00 FD 12 80 0D 02 02 02 00 E7 EB 00 00 5F [13:15:34]Write i2c OK [13:15:34]MH_I2C_Read... [13:15:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:34]Read from MH i2c: E2 [13:15:34]MH_I2C_Read... [13:15:34]Read from MH i2c: E2 03 00 [13:15:34]MH_I2C_Read... [13:15:34]Read from MH i2c: E2 03 00 FD 12 00 90 00 83 [13:15:34]RAPDU: 90 00 [13:15:34]wFMCommunicate OK [13:15:34]wFMCommunicate request_size=4 [13:15:34]MH_SAM_APDU [13:15:34]CAPDU: 80 0D 03 02 [13:15:34]Write to MH i2c: E2 08 00 FE 12 80 0D 03 02 00 00 00 00 8B [13:15:34]Write i2c OK [13:15:34]MH_I2C_Read... [13:15:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:15:34]Read from MH i2c: E2 [13:15:34]MH_I2C_Read... [13:15:34]Read from MH i2c: E2 0B 00 [13:15:34]MH_I2C_Read... [13:15:34]Read from MH i2c: E2 0B 00 FE 12 00 B3 C9 C1 32 F3 FE 6C 1F 90 00 77 [13:15:34]RAPDU: B3 C9 C1 32 F3 FE 6C 1F 90 00 [13:15:34]wFMCommunicate OK [13:15:34]SAM_PROTO_SignData done [13:15:34]FM_MakeSignedData done [13:15:34]CreateOFDProtocolMessage [13:15:34]wFMCommunicate request_size=4 [13:15:34]MH_SAM_APDU [13:15:34]CAPDU: 80 11 00 00 [13:15:34]Write to MH i2c: E2 08 00 FF 12 80 11 00 00 00 00 00 00 8B [13:15:34]Write i2c OK [13:15:34]MH_I2C_Read... [13:15:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:34]Read from MH i2c: E2 [13:15:34]MH_I2C_Read... [13:15:34]Read from MH i2c: E2 17 00 [13:15:34]MH_I2C_Read... [13:15:34]Read from MH i2c: E2 17 00 FF 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E1 [13:15:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:15:34]wFMCommunicate OK [13:15:34]CreateOFDProtocolMessage done [13:15:34]OFDSenderStorePacket 165289 [13:15:34]StoreOFDPacket docnum=165289 [13:15:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 36 AF 04 01 B2 24 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 26 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8F 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 0D 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 A2 00 00 00 F4 03 04 00 F6 20 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A9 85 02 00 35 04 06 00 F1 A6 E3 54 E7 EB B3 C9 C1 32 F3 FE 6C 1F [13:15:34]CheckFolder [13:15:34]dirname=/storage/ofd_packets [13:15:34]CheckFolder done [13:15:34]ProducePacketName [13:15:34]name=ofd_packets/00165289 [13:15:34]NVStorageSaveData ofd_packets/00165289 [13:15:34]File name is /storage/ofd_packets/00165289 [13:15:34]Write 298 bytes [13:15:34]NVStorageSaveData done [13:15:34]OFDSenderStorePacket done [13:15:34]KKMCreateOFDPacket done [13:15:34]NVStorageSaveData kkm_last_timestamp [13:15:34]File name is /storage/kkm_last_timestamp [13:15:34]Write 4 bytes [13:15:34]NVStorageSaveData done [13:15:34]ExternCall_PrintAddStr [13:15:34]wPrintStart [13:15:34]Write to MH i2c: 01 00 00 00 13 13 [13:15:34]Write i2c OK [13:15:34]MH_I2C_Read... [13:15:34]Read from MH i2c: 01 [13:15:34]MH_I2C_Read... [13:15:34]Read from MH i2c: 01 07 00 [13:15:34]MH_I2C_Read... [13:15:34]Read from MH i2c: 01 07 00 00 13 00 00 00 00 00 FF 0F 28 [13:15:34]RasterBufferAndPrint [13:15:34]line Счет N : (1)459400 [13:15:34]line ИНН: 02508201610067 [13:15:34]line Контрольно-Кассовый Чек [13:15:34]line ПРОДАЖА [13:15:34]line ТРК (МРК, ГНК) : 21 [13:15:34]line Товар: 2710194210 [13:15:34]line ДТ-К-5 [13:15:34]line 9.740 * 71.90 [13:15:34]line = 700.31 [13:15:34]line НДС 12% НСП 1% [13:15:34]line > о реализуемом товаре [13:15:34]line ОКРУГЛЕНИЕ: -0.31 [13:15:34]line ИТОГО: 700.00 [13:15:34]line Внесено: 700.00 [13:15:34]line СДАЧА: 0.00 [13:15:34]line НСП 1% : 6.20 [13:15:34]line НДС 12% : 74.37 [13:15:34]line Наличными: 700.00 [13:15:34]line Безнал.: 0.00 [13:15:34]line Место: АЗС № 72 "Партнер Нефть" [13:15:34]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:15:34]line СНО: Общий режим [13:15:34]line Чек 162 15.07.2024 13:15 [13:15:34]line Смена: 448 ФФД: 1.0 [13:15:34]line ЗНМ: 0300000160 [13:15:34]line РНМ: 0000000000090829 [13:15:34]line Версия ККМ: 001 [13:15:34]line ФМ: 0000000000874718 [13:15:34]line ФД: 165289 [13:15:35]line ФПД: 265699080857579 [13:15:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T131534&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165289&fm=265699080857579&tin=02508201610067®Number=0000000000090829&sum=70000 [13:15:35]OFD Sender: Processing packet 165289 [packets to send 106, broken 105] [13:15:35]ProducePacketName [13:15:35]name=ofd_packets/00165289 [13:15:35]OFD Sender: To server: pG, [13:15:35]CommunicateWithHost lk.salyk.kg:30040 [13:15:35]ConnectInit lk.salyk.kg [13:15:35]written 0, free lines is 4095 [13:15:35]Connected sock=10 [13:15: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 37 31 38 0C 01 00 00 36 AF 04 01 B2 24 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 26 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8F 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 0D 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 A2 00 00 00 F4 03 04 00 F6 20 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A9 85 02 00 35 04 06 00 F1 A6 E3 54 E7 EB B3 C9 C1 32 F3 FE 6C 1F [13:15:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 45 1F 47 00 16 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 A9 85 02 00 F4 03 04 00 80 C7 94 66 B6 04 01 00 00 B6 6E 1C F0 3D 29 5E BF [13:15:35]CommunicateWithHost err = 0 [13:15:35]CheckOFDResponse [13:15:35]1017 (14) - 77093643461234 [13:15:35]1041 (16) - 0000000000874718 [13:15:35]1040 (4) - 165289 [13:15:35]1012 (4) - 15.07.2024 06:53 [13:15:35]1206 (1) - 0 [13:15:35]OFD Sender: Remove packet 165289 [13:15:35]ProducePacketName [13:15:35]name=ofd_packets/00165289 [13:15:35]NVStorageDeleteData [13:15:35]Write to MH i2c: 01 00 00 2A 13 3D [13:15:35]Write i2c OK [13:15:35]MH_I2C_Read... [13:15:35]Read from MH i2c: 01 [13:15:35]MH_I2C_Read... [13:15:35]Read from MH i2c: 01 07 00 [13:15:35]MH_I2C_Read... [13:15:35]Read from MH i2c: 01 07 00 2A 13 00 00 00 00 00 EE 0C 3E [13:15:35]RasterBufferAndPrint [13:15:35]line [13:15:35]line [13:15:35]line [13:15:35]line [13:15:35]line [13:15:35]written 0, free lines is 3316 [13:15:35]MH_Cut [13:15:35]Write to MH i2c: D1 01 00 31 13 01 16 [13:15:35]Write i2c OK [13:15:35]MH_I2C_Read... [13:15:35]Read from MH i2c: D1 [13:15:35]MH_I2C_Read... [13:15:35]Read from MH i2c: D1 01 00 [13:15:35]MH_I2C_Read... [13:15:35]Read from MH i2c: D1 01 00 31 13 00 15 [13:15:35]Write to MH i2c: 01 00 00 32 13 45 [13:15:35]Write i2c OK [13:15:35]MH_I2C_Read... [13:15:36]OFD Sender: No OFD packet to send [13:15:36]*** Cut start [13:15:36]*** Partial cut [13:15:36]*** CUTSNS_PIN = 1 [13:15:36]*** CUTSNS_PIN = 0 [13:15:36]*** Brake cut motor [13:15:36]Read from MH i2c: 01 [13:15:36]MH_I2C_Read... [13:15:36]*** Stop cut motor [13:15:36]Read from MH i2c: 01 07 00 [13:15:36]MH_I2C_Read... [13:15:36]*** Cut end [13:15:36]Read from MH i2c: 01 07 00 32 13 00 00 00 00 00 FF 0F 5A [13:15:36]process_action close_receipt done [13:15:36]requested_data is exist [13:15:36]produce_requested_data [13:15:36]requested_item fm.sn is exist - process it [13:15:36]wFMCommunicate request_size=4 [13:15:36]MH_SAM_APDU [13:15:36]CAPDU: 80 11 00 00 [13:15:36]Write to MH i2c: E2 08 00 33 13 80 11 00 00 00 00 00 00 C0 [13:15:36]Write i2c OK [13:15:36]MH_I2C_Read... [13:15:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:37]Read from MH i2c: E2 [13:15:37]MH_I2C_Read... [13:15:37]Read from MH i2c: E2 17 00 [13:15:37]MH_I2C_Read... [13:15:37]Read from MH i2c: E2 17 00 33 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 16 [13:15:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:15:37]wFMCommunicate OK [13:15:37]requested_item fd.num is exist - process it [13:15:37]SAM_PROTO_GetFieldsCounters [13:15:37]wFMCommunicate request_size=4 [13:15:37]MH_SAM_APDU [13:15:37]CAPDU: 80 13 00 00 [13:15:37]Write to MH i2c: E2 08 00 34 13 80 13 00 00 00 00 00 00 C3 [13:15:37]Write i2c OK [13:15:37]MH_I2C_Read... [13:15:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:15:37]Read from MH i2c: E2 [13:15:37]MH_I2C_Read... [13:15:37]Read from MH i2c: E2 62 00 [13:15:37]MH_I2C_Read... [13:15:37]Read from MH i2c: E2 62 00 34 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A9 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 C1 [13:15:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 A9 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:15:37]wFMCommunicate OK [13:15:37]SAM_PROTO_GetFieldsCounters done [13:15:37]requested_item shift.num is exist - process it [13:15:37]requested_item shift.opened is exist - process it [13:15:37]req_shift_opened [13:15:37]FM_GetShiftState [13:15:37]SAM_PROTO_GetShiftState [13:15:37]wFMCommunicate request_size=4 [13:15:37]MH_SAM_APDU [13:15:37]CAPDU: 80 13 01 00 [13:15:37]Write to MH i2c: E2 08 00 35 13 80 13 01 00 00 00 00 00 C5 [13:15:37]Write i2c OK [13:15:37]MH_I2C_Read... [13:15:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:37]Read from MH i2c: E2 [13:15:37]MH_I2C_Read... [13:15:37]Read from MH i2c: E2 0E 00 [13:15:37]MH_I2C_Read... [13:15:37]Read from MH i2c: E2 0E 00 35 13 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 9E [13:15:37]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [13:15:37]wFMCommunicate OK [13:15:37]SAM_PROTO_GetShiftState done [13:15:37]FM_GetShiftState done [13:15:37]req_shift_opened done [13:15:37]requested_item shift.open_date is exist - process it [13:15:37]req_shift_open_date [13:15:37]req_shift_open_date done [13:15:37]produce_requested_data done [13:15:37]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165289,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [13:15:37]process_action_free close_receipt [13:15:37]json_value_free [13:15:37]json_value_free done [13:15:37]process_json_proto returns [13:15:37]Send response to host [13:15:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165289,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [13:15:37]free response buf [13:15:37]execute_script done [13:15:37]execute_script returns [13:15:37]free content buf [13:15:37]Sock 9.Close socket [13:15:37]Sock 9.Thread stoped [13:15:41]OFD Sender: No OFD packet to send [13:15:46]OFD Sender: No OFD packet to send [13:15:51]OFD Sender: No OFD packet to send [13:15:56]OFD Sender: No OFD packet to send [13:16:01]OFD Sender: No OFD packet to send [13:16:06]OFD Sender: No OFD packet to send [13:16:11]OFD Sender: No OFD packet to send [13:16:16]OFD Sender: No OFD packet to send [13:16:21]OFD Sender: No OFD packet to send [13:16:26]OFD Sender: No OFD packet to send [13:16:31]OFD Sender: No OFD packet to send [13:16:36]OFD Sender: No OFD packet to send [13:16:41]OFD Sender: No OFD packet to send [13:16:46]OFD Sender: No OFD packet to send [13:16:51]OFD Sender: No OFD packet to send [13:16:56]OFD Sender: No OFD packet to send [13:17:01]OFD Sender: No OFD packet to send [13:17:06]OFD Sender: No OFD packet to send [13:17:11]OFD Sender: No OFD packet to send [13:17:16]OFD Sender: No OFD packet to send [13:17:21]OFD Sender: No OFD packet to send [13:17:26]OFD Sender: No OFD packet to send [13:17:31]OFD Sender: No OFD packet to send [13:17:36]OFD Sender: No OFD packet to send [13:17:41]OFD Sender: No OFD packet to send [13:17:46]OFD Sender: No OFD packet to send [13:17:51]OFD Sender: No OFD packet to send [13:17:56]OFD Sender: No OFD packet to send [13:18:01]OFD Sender: No OFD packet to send [13:18:06]OFD Sender: No OFD packet to send [13:18:11]OFD Sender: No OFD packet to send [13:18:16]OFD Sender: No OFD packet to send [13:18:21]OFD Sender: No OFD packet to send [13:18:26]OFD Sender: No OFD packet to send [13:18:31]OFD Sender: No OFD packet to send [13:18:36]OFD Sender: No OFD packet to send [13:18:41]OFD Sender: No OFD packet to send [13:18:46]OFD Sender: No OFD packet to send [13:18:51]OFD Sender: No OFD packet to send [13:18:56]OFD Sender: No OFD packet to send [13:19:01]OFD Sender: No OFD packet to send [13:19:06]OFD Sender: No OFD packet to send [13:19:11]OFD Sender: No OFD packet to send [13:19:16]OFD Sender: No OFD packet to send [13:19:21]OFD Sender: No OFD packet to send [13:19:26]OFD Sender: No OFD packet to send [13:19:31]OFD Sender: No OFD packet to send [13:19:36]OFD Sender: No OFD packet to send [13:19:41]OFD Sender: No OFD packet to send [13:19:46]OFD Sender: No OFD packet to send [13:19:51]OFD Sender: No OFD packet to send [13:19:56]OFD Sender: No OFD packet to send [13:20:01]OFD Sender: No OFD packet to send [13:20:06]OFD Sender: No OFD packet to send [13:20:11]OFD Sender: No OFD packet to send [13:20:16]OFD Sender: No OFD packet to send [13:20:21]OFD Sender: No OFD packet to send [13:20:26]OFD Sender: No OFD packet to send [13:20:31]OFD Sender: No OFD packet to send [13:20:36]OFD Sender: No OFD packet to send [13:20:41]OFD Sender: No OFD packet to send [13:20:46]OFD Sender: No OFD packet to send [13:20:51]OFD Sender: No OFD packet to send [13:20:56]OFD Sender: No OFD packet to send [13:21:01]OFD Sender: No OFD packet to send [13:21:06]OFD Sender: No OFD packet to send [13:21:11]OFD Sender: No OFD packet to send [13:21:16]OFD Sender: No OFD packet to send [13:21:21]OFD Sender: No OFD packet to send [13:21:26]OFD Sender: No OFD packet to send [13:21:31]OFD Sender: No OFD packet to send [13:21:36]OFD Sender: No OFD packet to send [13:21:41]OFD Sender: No OFD packet to send [13:21:46]OFD Sender: No OFD packet to send [13:21:51]OFD Sender: No OFD packet to send [13:21:56]OFD Sender: No OFD packet to send [13:22:01]OFD Sender: No OFD packet to send [13:22:06]OFD Sender: No OFD packet to send [13:22:11]OFD Sender: No OFD packet to send [13:22:16]OFD Sender: No OFD packet to send [13:22:21]OFD Sender: No OFD packet to send [13:22:26]OFD Sender: No OFD packet to send [13:22:31]OFD Sender: No OFD packet to send [13:22:36]OFD Sender: No OFD packet to send [13:22:41]OFD Sender: No OFD packet to send [13:22:46]OFD Sender: No OFD packet to send [13:22:51]OFD Sender: No OFD packet to send [13:22:56]OFD Sender: No OFD packet to send [13:23:01]OFD Sender: No OFD packet to send [13:23:06]OFD Sender: No OFD packet to send [13:23:11]OFD Sender: No OFD packet to send [13:23:16]OFD Sender: No OFD packet to send [13:23:21]OFD Sender: No OFD packet to send [13:23:26]OFD Sender: No OFD packet to send [13:23:31]OFD Sender: No OFD packet to send [13:23:36]OFD Sender: No OFD packet to send [13:23:41]OFD Sender: No OFD packet to send [13:23:46]OFD Sender: No OFD packet to send [13:23:51]OFD Sender: No OFD packet to send [13:23:56]OFD Sender: No OFD packet to send [13:24:01]OFD Sender: No OFD packet to send [13:24:06]OFD Sender: No OFD packet to send [13:24:11]OFD Sender: No OFD packet to send [13:24:16]OFD Sender: No OFD packet to send [13:24:21]OFD Sender: No OFD packet to send [13:24:26]OFD Sender: No OFD packet to send [13:24:31]OFD Sender: No OFD packet to send [13:24:36]OFD Sender: No OFD packet to send [13:24:41]OFD Sender: No OFD packet to send [13:24:46]OFD Sender: No OFD packet to send [13:24:51]OFD Sender: No OFD packet to send [13:24:56]OFD Sender: No OFD packet to send [13:25:01]OFD Sender: No OFD packet to send [13:25:02]accept exits with 8 [13:25:02]New connection [13:25:02]New thread 3066711396 created [13:25:02]Thread 3066854756 joined [13:25:02]Waiting for new connection... [13:25:02] Sock 8.Parse request [13:25:02]Sock 8.Check first char [13:25:02]Sock 8.First char is OK [13:25:02]request: POST /json_proto HTTP/1.0 [13:25:02]Method: POST [13:25:02]URL: /json_proto [13:25:02]Method is POST - this is cgi request [13:25:02]url: /json_proto [13:25:02]query_string will be loaded in cgi processing [13:25:02]execute_cgi json_proto POST (null) [13:25:02]execute_cgi path=json_proto method=POST [13:25:02]POST find Content-Length [13:25:02]Host: 172.17.56.4:8080 [13:25:02]Content-Length: 677 [13:25:02]Content-Type: application/json [13:25:02] [13:25:02]POST finish read [13:25:02]Found Content-Length = 677 [13:25:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459401", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.130, "sum" : 140.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 140.00, "total" : 140.00, "payments": [ { "type": 0, "sum" : 140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:25:02]execute_script... [13:25:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459401", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.130, "sum" : 140.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 140.00, "total" : 140.00, "payments": [ { "type": 0, "sum" : 140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:25:02]POST & json_proto [13:25:02]process_json_proto [13:25:02]json parsed OK: [13:25:02]protocol is kg_v1.0 [13:25:02]action value=close_receipt [13:25:02]process_action close_receipt [13:25:02]cmd_close_receipt [13:25:02]MH_GetDate [13:25:02]Write to MH i2c: F0 00 00 36 13 38 [13:25:02]Write i2c OK [13:25:02]MH_I2C_Read... [13:25:02]Read from MH i2c: F0 [13:25:02]MH_I2C_Read... [13:25:02]Read from MH i2c: F0 09 00 [13:25:02]MH_I2C_Read... [13:25:02]Read from MH i2c: F0 09 00 36 13 00 2F 23 95 66 C9 DC B2 64 49 [13:25:02]GetLastDocTimeStamp 1721049334 [13:25:02]current date 1721049903 [13:25:02]FM_GetShiftState [13:25:02]SAM_PROTO_GetShiftState [13:25:02]wFMCommunicate request_size=4 [13:25:02]MH_SAM_APDU [13:25:02]CAPDU: 80 13 01 00 [13:25:02]Write to MH i2c: E2 08 00 37 13 80 13 01 00 00 00 00 00 C7 [13:25:02]Write i2c OK [13:25:02]MH_I2C_Read... [13:25:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:02]Read from MH i2c: E2 [13:25:02]MH_I2C_Read... [13:25:02]Read from MH i2c: E2 0E 00 [13:25:02]MH_I2C_Read... [13:25:02]Read from MH i2c: E2 0E 00 37 13 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 A0 [13:25:02]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [13:25:02]wFMCommunicate OK [13:25:02]SAM_PROTO_GetShiftState done [13:25:02]FM_GetShiftState done [13:25:02]opened in 1721003876 [13:25:02]opened+sec_in_day 1721090276 [13:25:02]quantity*price = 14015 [13:25:02]sum+1 = 14016 [13:25:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 140.00 Внесено: 140.00 СДАЧА: 0.00 НСП 1% : 1.24 НДС 12% : 14.88 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 163 15.07.2024 13:25 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165290 ФПД: 136669227706626 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T132503&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165290&fm=136669227706626&tin=02508201610067®Number=0000000000090829&sum=14000 [13:25:03]StoreToDocumentArchive [13:25:03]shift 448 fd 165290 [13:25:03]save to /storage/0448/doc_00165290 [13:25:03]save last doc name /storage/0448/doc_00165290 to /storage/kkm_last_doc_name [13:25:03]save OK [13:25:03]Clear old archive folders... [13:25:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:25:03]tlvbuf is B6EA91B0 [13:25:03]SAM_PROTO_ClearQueue [13:25:03]wFMCommunicate request_size=4 [13:25:03]MH_SAM_APDU [13:25:03]CAPDU: 80 09 00 00 [13:25:03]Write to MH i2c: E2 08 00 44 13 80 09 00 00 00 00 00 00 C9 [13:25:03]Write i2c OK [13:25:03]MH_I2C_Read... [13:25:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:25:03]Read from MH i2c: E2 [13:25:03]MH_I2C_Read... [13:25:03]Read from MH i2c: E2 03 00 [13:25:03]MH_I2C_Read... [13:25:03]Read from MH i2c: E2 03 00 44 13 00 90 00 CB [13:25:03]RAPDU: 90 00 [13:25:03]wFMCommunicate OK [13:25:03]SAM_PROTO_ClearQueue done [13:25:03]KKMCreateOFDPacket [13:25:03]OFDProtocolAddRootSTLVToBuf [13:25:03]FM_MakeSignedData [13:25:03]FM_MakeSignedData [13:25:03]SAM_PROTO_SignData [13:25:03]wFMCommunicate request_size=4 [13:25:03]MH_SAM_APDU [13:25:03]CAPDU: 80 0D 01 02 [13:25:03]Write to MH i2c: E2 08 00 45 13 80 0D 01 02 00 00 00 00 D1 [13:25:03]Write i2c OK [13:25:03]MH_I2C_Read... [13:25:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:25:04]Read from MH i2c: E2 [13:25:04]MH_I2C_Read... [13:25:04]Read from MH i2c: E2 03 00 [13:25:04]MH_I2C_Read... [13:25:04]Read from MH i2c: E2 03 00 45 13 00 90 00 CC [13:25:04]RAPDU: 90 00 [13:25:04]wFMCommunicate OK [13:25:04]wFMCommunicate request_size=255 [13:25:04]MH_SAM_APDU [13:25: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 52 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BF 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 2F 23 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AA 85 02 00 35 04 06 00 7C [13:25:04]Write to MH i2c: E2 02 01 46 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 52 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BF 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 2F 23 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AA 85 02 00 35 04 06 00 7C 00 00 78 [13:25:04]Write i2c OK [13:25:04]MH_I2C_Read... [13:25:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:04]Read from MH i2c: E2 [13:25:04]MH_I2C_Read... [13:25:04]Read from MH i2c: E2 03 00 [13:25:04]MH_I2C_Read... [13:25:04]Read from MH i2c: E2 03 00 46 13 00 90 00 CD [13:25:04]RAPDU: 90 00 [13:25:04]wFMCommunicate OK [13:25:04]wFMCommunicate request_size=10 [13:25:04]MH_SAM_APDU [13:25:04]CAPDU: 80 0D 02 02 05 4C C8 C4 E9 02 [13:25:04]Write to MH i2c: E2 0D 00 47 13 80 0D 02 02 05 00 4C C8 C4 E9 02 00 00 A1 [13:25:04]Write i2c OK [13:25:04]MH_I2C_Read... [13:25:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:04]Read from MH i2c: E2 [13:25:04]MH_I2C_Read... [13:25:04]Read from MH i2c: E2 03 00 [13:25:04]MH_I2C_Read... [13:25:04]Read from MH i2c: E2 03 00 47 13 00 90 00 CE [13:25:04]RAPDU: 90 00 [13:25:04]wFMCommunicate OK [13:25:04]wFMCommunicate request_size=4 [13:25:04]MH_SAM_APDU [13:25:04]CAPDU: 80 0D 03 02 [13:25:04]Write to MH i2c: E2 08 00 48 13 80 0D 03 02 00 00 00 00 D6 [13:25:04]Write i2c OK [13:25:04]MH_I2C_Read... [13:25:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:25:04]Read from MH i2c: E2 [13:25:04]MH_I2C_Read... [13:25:04]Read from MH i2c: E2 0B 00 [13:25:04]MH_I2C_Read... [13:25:04]Read from MH i2c: E2 0B 00 48 13 00 C3 A8 B8 1F 8F 4F 4A A2 90 00 E3 [13:25:04]RAPDU: C3 A8 B8 1F 8F 4F 4A A2 90 00 [13:25:04]wFMCommunicate OK [13:25:04]SAM_PROTO_SignData done [13:25:04]FM_MakeSignedData done [13:25:04]CreateOFDProtocolMessage [13:25:04]wFMCommunicate request_size=4 [13:25:04]MH_SAM_APDU [13:25:04]CAPDU: 80 11 00 00 [13:25:04]Write to MH i2c: E2 08 00 49 13 80 11 00 00 00 00 00 00 D6 [13:25:04]Write i2c OK [13:25:04]MH_I2C_Read... [13:25:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:04]Read from MH i2c: E2 [13:25:04]MH_I2C_Read... [13:25:04]Read from MH i2c: E2 17 00 [13:25:04]MH_I2C_Read... [13:25:04]Read from MH i2c: E2 17 00 49 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2C [13:25:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:25:04]wFMCommunicate OK [13:25:04]CreateOFDProtocolMessage done [13:25:04]OFDSenderStorePacket 165290 [13:25:04]StoreOFDPacket docnum=165290 [13:25:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 51 23 07 01 D7 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 52 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BF 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 2F 23 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AA 85 02 00 35 04 06 00 7C 4C C8 C4 E9 02 C3 A8 B8 1F 8F 4F 4A A2 [13:25:04]CheckFolder [13:25:04]dirname=/storage/ofd_packets [13:25:04]CheckFolder done [13:25:04]ProducePacketName [13:25:04]name=ofd_packets/00165290 [13:25:04]NVStorageSaveData ofd_packets/00165290 [13:25:04]File name is /storage/ofd_packets/00165290 [13:25:04]Write 301 bytes [13:25:04]NVStorageSaveData done [13:25:04]OFDSenderStorePacket done [13:25:04]KKMCreateOFDPacket done [13:25:04]NVStorageSaveData kkm_last_timestamp [13:25:04]File name is /storage/kkm_last_timestamp [13:25:04]Write 4 bytes [13:25:04]NVStorageSaveData done [13:25:04]ExternCall_PrintAddStr [13:25:04]wPrintStart [13:25:04]Write to MH i2c: 01 00 00 4A 13 5D [13:25:04]Write i2c OK [13:25:04]MH_I2C_Read... [13:25:04]Read from MH i2c: 01 [13:25:04]MH_I2C_Read... [13:25:04]Read from MH i2c: 01 07 00 [13:25:04]MH_I2C_Read... [13:25:04]Read from MH i2c: 01 07 00 4A 13 00 00 00 00 00 FF 0F 72 [13:25:04]RasterBufferAndPrint [13:25:04]line Счет N : (1)459401 [13:25:04]line ИНН: 02508201610067 [13:25:04]line Контрольно-Кассовый Чек [13:25:04]line ПРОДАЖА [13:25:04]line ТРК (МРК, ГНК) : 12 [13:25:04]line Товар: 2710124130 [13:25:04]line Аи-92-К-5 [13:25:04]line 2.130 * 65.80 [13:25:04]line = 140.15 [13:25:04]line НДС 12% НСП 1% [13:25:04]line > о реализуемом товаре [13:25:04]line ОКРУГЛЕНИЕ: -0.15 [13:25:04]line ИТОГО: 140.00 [13:25:04]line Внесено: 140.00 [13:25:04]line СДАЧА: 0.00 [13:25:04]line НСП 1% : 1.24 [13:25:04]line НДС 12% : 14.88 [13:25:04]line Наличными: 140.00 [13:25:04]line Безнал.: 0.00 [13:25:04]line Место: АЗС № 72 "Партнер Нефть" [13:25:04]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:25:04]line СНО: Общий режим [13:25:04]line Чек 163 15.07.2024 13:25 [13:25:04]line Смена: 448 ФФД: 1.0 [13:25:04]line ЗНМ: 0300000160 [13:25:04]line РНМ: 0000000000090829 [13:25:04]line Версия ККМ: 001 [13:25:04]line ФМ: 0000000000874718 [13:25:04]line ФД: 165290 [13:25:04]line ФПД: 136669227706626 [13:25:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T132503&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165290&fm=136669227706626&tin=02508201610067®Number=0000000000090829&sum=14000 [13:25:04]written 0, free lines is 4095 [13:25:04]OFD Sender: Processing packet 165290 [packets to send 106, broken 105] [13:25:04]ProducePacketName [13:25:04]name=ofd_packets/00165290 [13:25:04]OFD Sender: To server: pG, [13:25:04]CommunicateWithHost lk.salyk.kg:30040 [13:25:04]ConnectInit lk.salyk.kg [13:25:04]Connected sock=10 [13:25:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 51 23 07 01 D7 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 52 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 BF 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 2F 23 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AA 85 02 00 35 04 06 00 7C 4C C8 C4 E9 02 C3 A8 B8 1F 8F 4F 4A A2 [13:25:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 F2 07 47 00 7C BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AA 85 02 00 F4 03 04 00 BA C9 94 66 B6 04 01 00 00 C3 F8 9A A1 8B 99 B4 57 [13:25:05]CommunicateWithHost err = 0 [13:25:05]CheckOFDResponse [13:25:05]1017 (14) - 77093643461234 [13:25:05]1041 (16) - 0000000000874718 [13:25:05]1040 (4) - 165290 [13:25:05]1012 (4) - 15.07.2024 07:03 [13:25:05]1206 (1) - 0 [13:25:05]OFD Sender: Remove packet 165290 [13:25:05]ProducePacketName [13:25:05]name=ofd_packets/00165290 [13:25:05]NVStorageDeleteData [13:25:05]Write to MH i2c: 01 00 00 74 13 87 [13:25:05]Write i2c OK [13:25:05]MH_I2C_Read... [13:25:05]Read from MH i2c: 01 [13:25:05]MH_I2C_Read... [13:25:05]Read from MH i2c: 01 07 00 [13:25:05]MH_I2C_Read... [13:25:05]Read from MH i2c: 01 07 00 74 13 00 00 00 00 00 F4 0C 8E [13:25:05]RasterBufferAndPrint [13:25:05]line [13:25:05]line [13:25:05]line [13:25:05]line [13:25:05]line [13:25:05]written 0, free lines is 3323 [13:25:05]MH_Cut [13:25:05]Write to MH i2c: D1 01 00 7B 13 01 60 [13:25:05]Write i2c OK [13:25:05]MH_I2C_Read... [13:25:05]Read from MH i2c: D1 [13:25:05]MH_I2C_Read... [13:25:05]Read from MH i2c: D1 01 00 [13:25:05]MH_I2C_Read... [13:25:05]Read from MH i2c: D1 01 00 7B 13 00 5F [13:25:05]Write to MH i2c: 01 00 00 7C 13 8F [13:25:05]Write i2c OK [13:25:05]MH_I2C_Read... [13:25:05]OFD Sender: No OFD packet to send [13:25:05]*** Cut start [13:25:05]*** Partial cut [13:25:05]*** CUTSNS_PIN = 1 [13:25:05]*** CUTSNS_PIN = 0 [13:25:06]*** Brake cut motor [13:25:06]Read from MH i2c: 01 [13:25:06]MH_I2C_Read... [13:25:06]*** Stop cut motor [13:25:06]*** Cut end [13:25:06]Read from MH i2c: 01 07 00 [13:25:06]MH_I2C_Read... [13:25:06]Read from MH i2c: 01 07 00 7C 13 00 00 00 00 00 FF 0F A4 [13:25:06]process_action close_receipt done [13:25:06]requested_data is exist [13:25:06]produce_requested_data [13:25:06]requested_item fm.sn is exist - process it [13:25:06]wFMCommunicate request_size=4 [13:25:06]MH_SAM_APDU [13:25:06]CAPDU: 80 11 00 00 [13:25:06]Write to MH i2c: E2 08 00 7D 13 80 11 00 00 00 00 00 00 0A [13:25:06]Write i2c OK [13:25:06]MH_I2C_Read... [13:25:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:06]Read from MH i2c: E2 [13:25:06]MH_I2C_Read... [13:25:06]Read from MH i2c: E2 17 00 [13:25:06]MH_I2C_Read... [13:25:06]Read from MH i2c: E2 17 00 7D 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 60 [13:25:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:25:06]wFMCommunicate OK [13:25:06]requested_item fd.num is exist - process it [13:25:06]SAM_PROTO_GetFieldsCounters [13:25:06]wFMCommunicate request_size=4 [13:25:06]MH_SAM_APDU [13:25:06]CAPDU: 80 13 00 00 [13:25:06]Write to MH i2c: E2 08 00 7E 13 80 13 00 00 00 00 00 00 0D [13:25:06]Write i2c OK [13:25:06]MH_I2C_Read... [13:25:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:25:06]Read from MH i2c: E2 [13:25:06]MH_I2C_Read... [13:25:06]Read from MH i2c: E2 62 00 [13:25:06]MH_I2C_Read... [13:25:06]Read from MH i2c: E2 62 00 7E 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AA 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [13:25:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AA 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:25:06]wFMCommunicate OK [13:25:06]SAM_PROTO_GetFieldsCounters done [13:25:06]requested_item shift.num is exist - process it [13:25:06]requested_item shift.opened is exist - process it [13:25:06]req_shift_opened [13:25:06]FM_GetShiftState [13:25:06]SAM_PROTO_GetShiftState [13:25:06]wFMCommunicate request_size=4 [13:25:06]MH_SAM_APDU [13:25:06]CAPDU: 80 13 01 00 [13:25:06]Write to MH i2c: E2 08 00 7F 13 80 13 01 00 00 00 00 00 0F [13:25:06]Write i2c OK [13:25:06]MH_I2C_Read... [13:25:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:06]Read from MH i2c: E2 [13:25:06]MH_I2C_Read... [13:25:06]Read from MH i2c: E2 0E 00 [13:25:06]MH_I2C_Read... [13:25:06]Read from MH i2c: E2 0E 00 7F 13 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 E8 [13:25:06]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [13:25:06]wFMCommunicate OK [13:25:06]SAM_PROTO_GetShiftState done [13:25:06]FM_GetShiftState done [13:25:06]req_shift_opened done [13:25:06]requested_item shift.open_date is exist - process it [13:25:06]req_shift_open_date [13:25:06]req_shift_open_date done [13:25:06]produce_requested_data done [13:25:06]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165290,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [13:25:06]process_action_free close_receipt [13:25:06]json_value_free [13:25:06]json_value_free done [13:25:06]process_json_proto returns [13:25:06]Send response to host [13:25:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165290,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [13:25:06]free response buf [13:25:06]execute_script done [13:25:06]execute_script returns [13:25:06]free content buf [13:25:06]Sock 8.Close socket [13:25:06]Sock 8.Thread stoped [13:25:10]OFD Sender: No OFD packet to send [13:25:15]OFD Sender: No OFD packet to send [13:25:20]OFD Sender: No OFD packet to send [13:25:25]OFD Sender: No OFD packet to send [13:25:30]OFD Sender: No OFD packet to send [13:25:35]OFD Sender: No OFD packet to send [13:25:40]OFD Sender: No OFD packet to send [13:25:45]OFD Sender: No OFD packet to send [13:25:50]OFD Sender: No OFD packet to send [13:25:55]OFD Sender: No OFD packet to send [13:26:00]OFD Sender: No OFD packet to send [13:26:05]OFD Sender: No OFD packet to send [13:26:10]OFD Sender: No OFD packet to send [13:26:15]OFD Sender: No OFD packet to send [13:26:20]OFD Sender: No OFD packet to send [13:26:25]OFD Sender: No OFD packet to send [13:26:30]OFD Sender: No OFD packet to send [13:26:35]OFD Sender: No OFD packet to send [13:26:40]OFD Sender: No OFD packet to send [13:26:45]OFD Sender: No OFD packet to send [13:26:50]OFD Sender: No OFD packet to send [13:26:55]OFD Sender: No OFD packet to send [13:27:00]OFD Sender: No OFD packet to send [13:27:05]OFD Sender: No OFD packet to send [13:27:10]OFD Sender: No OFD packet to send [13:27:15]OFD Sender: No OFD packet to send [13:27:20]OFD Sender: No OFD packet to send [13:27:25]OFD Sender: No OFD packet to send [13:27:30]OFD Sender: No OFD packet to send [13:27:35]OFD Sender: No OFD packet to send [13:27:40]OFD Sender: No OFD packet to send [13:27:45]OFD Sender: No OFD packet to send [13:27:50]OFD Sender: No OFD packet to send [13:27:55]OFD Sender: No OFD packet to send [13:28:00]OFD Sender: No OFD packet to send [13:28:05]OFD Sender: No OFD packet to send [13:28:10]OFD Sender: No OFD packet to send [13:28:15]OFD Sender: No OFD packet to send [13:28:20]OFD Sender: No OFD packet to send [13:28:25]OFD Sender: No OFD packet to send [13:28:30]OFD Sender: No OFD packet to send [13:28:35]OFD Sender: No OFD packet to send [13:28:40]OFD Sender: No OFD packet to send [13:28:45]OFD Sender: No OFD packet to send [13:28:45]accept exits with 9 [13:28:45]New connection [13:28:45]New thread 3066854756 created [13:28:45]Thread 3066711396 joined [13:28:45]Waiting for new connection... [13:28:45] Sock 9.Parse request [13:28:45]Sock 9.Check first char [13:28:45]Sock 9.First char is OK [13:28:45]request: POST /json_proto HTTP/1.0 [13:28:45]Method: POST [13:28:45]URL: /json_proto [13:28:45]Method is POST - this is cgi request [13:28:45]url: /json_proto [13:28:45]query_string will be loaded in cgi processing [13:28:45]execute_cgi json_proto POST (null) [13:28:45]execute_cgi path=json_proto method=POST [13:28:45]POST find Content-Length [13:28:45]Host: 172.17.56.4:8080 [13:28:45]Content-Length: 677 [13:28:45]Content-Type: application/json [13:28:45] [13:28:45]POST finish read [13:28:45]Found Content-Length = 677 [13:28:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459402", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.020, "sum" : 330.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 330.00, "total" : 330.00, "payments": [ { "type": 0, "sum" : 330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:28:45]execute_script... [13:28: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)459402", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.020, "sum" : 330.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 330.00, "total" : 330.00, "payments": [ { "type": 0, "sum" : 330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:28:45]POST & json_proto [13:28:45]process_json_proto [13:28:45]json parsed OK: [13:28:45]protocol is kg_v1.0 [13:28:45]action value=close_receipt [13:28:45]process_action close_receipt [13:28:45]cmd_close_receipt [13:28:45]MH_GetDate [13:28:45]Write to MH i2c: F0 00 00 80 13 82 [13:28:45]Write i2c OK [13:28:45]MH_I2C_Read... [13:28:45]Read from MH i2c: F0 [13:28:45]MH_I2C_Read... [13:28:45]Read from MH i2c: F0 09 00 [13:28:45]MH_I2C_Read... [13:28:45]Read from MH i2c: F0 09 00 80 13 00 0F 24 95 66 C9 DC B2 64 74 [13:28:45]GetLastDocTimeStamp 1721049903 [13:28:45]current date 1721050127 [13:28:45]FM_GetShiftState [13:28:45]SAM_PROTO_GetShiftState [13:28:45]wFMCommunicate request_size=4 [13:28:45]MH_SAM_APDU [13:28:45]CAPDU: 80 13 01 00 [13:28:45]Write to MH i2c: E2 08 00 81 13 80 13 01 00 00 00 00 00 11 [13:28:45]Write i2c OK [13:28:45]MH_I2C_Read... [13:28:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:28:46]Read from MH i2c: E2 [13:28:46]MH_I2C_Read... [13:28:46]Read from MH i2c: E2 0E 00 [13:28:46]MH_I2C_Read... [13:28:46]Read from MH i2c: E2 0E 00 81 13 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 EA [13:28:46]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [13:28:46]wFMCommunicate OK [13:28:46]SAM_PROTO_GetShiftState done [13:28:46]FM_GetShiftState done [13:28:46]opened in 1721003876 [13:28:46]opened+sec_in_day 1721090276 [13:28:46]quantity*price = 33031 [13:28:46]sum+1 = 33033 [13:28:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 330.00 Внесено: 330.00 СДАЧА: 0.00 НСП 1% : 2.92 НДС 12% : 35.08 Наличными: 330.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 164 15.07.2024 13:28 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165291 ФПД: 124089036890270 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T132847&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165291&fm=124089036890270&tin=02508201610067®Number=0000000000090829&sum=33000 [13:28:47]StoreToDocumentArchive [13:28:47]shift 448 fd 165291 [13:28:47]save to /storage/0448/doc_00165291 [13:28:47]save last doc name /storage/0448/doc_00165291 to /storage/kkm_last_doc_name [13:28:47]save OK [13:28:47]Clear old archive folders... [13:28:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:28:47]tlvbuf is 01855FE0 [13:28:47]SAM_PROTO_ClearQueue [13:28:47]wFMCommunicate request_size=4 [13:28:47]MH_SAM_APDU [13:28:47]CAPDU: 80 09 00 00 [13:28:47]Write to MH i2c: E2 08 00 8E 13 80 09 00 00 00 00 00 00 13 [13:28:47]Write i2c OK [13:28:47]MH_I2C_Read... [13:28:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:28:47]Read from MH i2c: E2 [13:28:47]MH_I2C_Read... [13:28:47]Read from MH i2c: E2 03 00 [13:28:47]MH_I2C_Read... [13:28:47]Read from MH i2c: E2 03 00 8E 13 00 90 00 15 [13:28:47]RAPDU: 90 00 [13:28:47]wFMCommunicate OK [13:28:47]SAM_PROTO_ClearQueue done [13:28:47]KKMCreateOFDPacket [13:28:47]OFDProtocolAddRootSTLVToBuf [13:28:47]FM_MakeSignedData [13:28:47]FM_MakeSignedData [13:28:47]SAM_PROTO_SignData [13:28:47]wFMCommunicate request_size=4 [13:28:47]MH_SAM_APDU [13:28:47]CAPDU: 80 0D 01 02 [13:28:47]Write to MH i2c: E2 08 00 8F 13 80 0D 01 02 00 00 00 00 1B [13:28:47]Write i2c OK [13:28:47]MH_I2C_Read... [13:28:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:28:47]Read from MH i2c: E2 [13:28:47]MH_I2C_Read... [13:28:47]Read from MH i2c: E2 03 00 [13:28:47]MH_I2C_Read... [13:28:47]Read from MH i2c: E2 03 00 8F 13 00 90 00 16 [13:28:47]RAPDU: 90 00 [13:28:47]wFMCommunicate OK [13:28:47]wFMCommunicate request_size=255 [13:28:47]MH_SAM_APDU [13:28: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 9C 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 0F 24 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AB 85 02 00 35 04 06 00 70 [13:28:47]Write to MH i2c: E2 02 01 90 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 0F 24 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AB 85 02 00 35 04 06 00 70 00 00 1B [13:28:47]Write i2c OK [13:28:47]MH_I2C_Read... [13:28:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:28:47]Read from MH i2c: E2 [13:28:47]MH_I2C_Read... [13:28:47]Read from MH i2c: E2 03 00 [13:28:47]MH_I2C_Read... [13:28:47]Read from MH i2c: E2 03 00 90 13 00 90 00 17 [13:28:47]RAPDU: 90 00 [13:28:47]wFMCommunicate OK [13:28:47]wFMCommunicate request_size=10 [13:28:47]MH_SAM_APDU [13:28:47]CAPDU: 80 0D 02 02 05 DB BA F6 E0 9E [13:28:47]Write to MH i2c: E2 0D 00 91 13 80 0D 02 02 05 00 DB BA F6 E0 9E 00 00 31 [13:28:47]Write i2c OK [13:28:47]MH_I2C_Read... [13:28:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:28:47]Read from MH i2c: E2 [13:28:47]MH_I2C_Read... [13:28:47]Read from MH i2c: E2 03 00 [13:28:47]MH_I2C_Read... [13:28:47]Read from MH i2c: E2 03 00 91 13 00 90 00 18 [13:28:47]RAPDU: 90 00 [13:28:47]wFMCommunicate OK [13:28:47]wFMCommunicate request_size=4 [13:28:47]MH_SAM_APDU [13:28:47]CAPDU: 80 0D 03 02 [13:28:47]Write to MH i2c: E2 08 00 92 13 80 0D 03 02 00 00 00 00 20 [13:28:47]Write i2c OK [13:28:47]MH_I2C_Read... [13:28:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:28:47]Read from MH i2c: E2 [13:28:47]MH_I2C_Read... [13:28:47]Read from MH i2c: E2 0B 00 [13:28:47]MH_I2C_Read... [13:28:47]Read from MH i2c: E2 0B 00 92 13 00 DB 0F B0 E8 7E 9F ED CC 90 00 79 [13:28:47]RAPDU: DB 0F B0 E8 7E 9F ED CC 90 00 [13:28:47]wFMCommunicate OK [13:28:47]SAM_PROTO_SignData done [13:28:47]FM_MakeSignedData done [13:28:47]CreateOFDProtocolMessage [13:28:47]wFMCommunicate request_size=4 [13:28:47]MH_SAM_APDU [13:28:47]CAPDU: 80 11 00 00 [13:28:47]Write to MH i2c: E2 08 00 93 13 80 11 00 00 00 00 00 00 20 [13:28:47]Write i2c OK [13:28:47]MH_I2C_Read... [13:28:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:28:47]Read from MH i2c: E2 [13:28:47]MH_I2C_Read... [13:28:47]Read from MH i2c: E2 17 00 [13:28:47]MH_I2C_Read... [13:28:47]Read from MH i2c: E2 17 00 93 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 76 [13:28:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:28:47]wFMCommunicate OK [13:28:47]CreateOFDProtocolMessage done [13:28:47]OFDSenderStorePacket 165291 [13:28:47]StoreOFDPacket docnum=165291 [13:28:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 CA 1B 07 01 52 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 9C 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 0F 24 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AB 85 02 00 35 04 06 00 70 DB BA F6 E0 9E DB 0F B0 E8 7E 9F ED CC [13:28:47]CheckFolder [13:28:47]dirname=/storage/ofd_packets [13:28:47]CheckFolder done [13:28:47]ProducePacketName [13:28:47]name=ofd_packets/00165291 [13:28:47]NVStorageSaveData ofd_packets/00165291 [13:28:47]File name is /storage/ofd_packets/00165291 [13:28:47]Write 301 bytes [13:28:47]NVStorageSaveData done [13:28:47]OFDSenderStorePacket done [13:28:47]KKMCreateOFDPacket done [13:28:47]NVStorageSaveData kkm_last_timestamp [13:28:47]File name is /storage/kkm_last_timestamp [13:28:47]Write 4 bytes [13:28:47]NVStorageSaveData done [13:28:47]ExternCall_PrintAddStr [13:28:47]wPrintStart [13:28:47]Write to MH i2c: 01 00 00 94 13 A7 [13:28:47]Write i2c OK [13:28:47]MH_I2C_Read... [13:28:47]Read from MH i2c: 01 [13:28:47]MH_I2C_Read... [13:28:47]Read from MH i2c: 01 07 00 [13:28:47]MH_I2C_Read... [13:28:47]Read from MH i2c: 01 07 00 94 13 00 00 00 00 00 FF 0F BC [13:28:47]RasterBufferAndPrint [13:28:47]line Счет N : (1)459402 [13:28:47]line ИНН: 02508201610067 [13:28:47]line Контрольно-Кассовый Чек [13:28:47]line ПРОДАЖА [13:28:47]line ТРК (МРК, ГНК) : 22 [13:28:47]line Товар: 2710124130 [13:28:47]line Аи-92-К-5 [13:28:47]line 5.020 * 65.80 [13:28:47]line = 330.32 [13:28:47]line НДС 12% НСП 1% [13:28:47]line > о реализуемом товаре [13:28:47]line ОКРУГЛЕНИЕ: -0.32 [13:28:47]line ИТОГО: 330.00 [13:28:47]line Внесено: 330.00 [13:28:47]line СДАЧА: 0.00 [13:28:47]line НСП 1% : 2.92 [13:28:47]line НДС 12% : 35.08 [13:28:47]line Наличными: 330.00 [13:28:47]line Безнал.: 0.00 [13:28:47]line Место: АЗС № 72 "Партнер Нефть" [13:28:47]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:28:47]line СНО: Общий режим [13:28:47]line Чек 164 15.07.2024 13:28 [13:28:47]line Смена: 448 ФФД: 1.0 [13:28:47]line ЗНМ: 0300000160 [13:28:47]line РНМ: 0000000000090829 [13:28:47]line Версия ККМ: 001 [13:28:47]line ФМ: 0000000000874718 [13:28:47]line ФД: 165291 [13:28:47]line ФПД: 124089036890270 [13:28:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T132847&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165291&fm=124089036890270&tin=02508201610067®Number=0000000000090829&sum=33000 [13:28:48]written 0, free lines is 4095 [13:28:48]OFD Sender: Processing packet 165291 [packets to send 106, broken 105] [13:28:48]ProducePacketName [13:28:48]name=ofd_packets/00165291 [13:28:48]OFD Sender: To server: pG, [13:28:48]CommunicateWithHost lk.salyk.kg:30040 [13:28:48]ConnectInit lk.salyk.kg [13:28:48]Connected sock=10 [13:28: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 37 31 38 0F 01 00 00 CA 1B 07 01 52 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 9C 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 0F 24 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AB 85 02 00 35 04 06 00 70 DB BA F6 E0 9E DB 0F B0 E8 7E 9F ED CC [13:28:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 17 42 47 00 AB F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AB 85 02 00 F4 03 04 00 99 CA 94 66 B6 04 01 00 00 13 6D AF C8 81 70 E8 A6 [13:28:48]CommunicateWithHost err = 0 [13:28:48]CheckOFDResponse [13:28:48]1017 (14) - 77093643461234 [13:28:48]1041 (16) - 0000000000874718 [13:28:48]1040 (4) - 165291 [13:28:48]1012 (4) - 15.07.2024 07:07 [13:28:48]1206 (1) - 0 [13:28:48]OFD Sender: Remove packet 165291 [13:28:48]ProducePacketName [13:28:48]name=ofd_packets/00165291 [13:28:48]NVStorageDeleteData [13:28:48]Write to MH i2c: 01 00 00 BE 13 D1 [13:28:48]Write i2c OK [13:28:48]MH_I2C_Read... [13:28:48]Read from MH i2c: 01 [13:28:48]MH_I2C_Read... [13:28:48]Read from MH i2c: 01 07 00 [13:28:48]MH_I2C_Read... [13:28:48]Read from MH i2c: 01 07 00 BE 13 00 00 00 00 00 FC 0C E0 [13:28:48]RasterBufferAndPrint [13:28:48]line [13:28:48]line [13:28:48]line [13:28:48]line [13:28:48]line [13:28:48]written 0, free lines is 3330 [13:28:48]MH_Cut [13:28:48]Write to MH i2c: D1 01 00 C5 13 01 AA [13:28:48]Write i2c OK [13:28:48]MH_I2C_Read... [13:28:48]Read from MH i2c: D1 [13:28:48]MH_I2C_Read... [13:28:48]Read from MH i2c: D1 01 00 [13:28:48]MH_I2C_Read... [13:28:48]Read from MH i2c: D1 01 00 C5 13 00 A9 [13:28:48]Write to MH i2c: 01 00 00 C6 13 D9 [13:28:48]Write i2c OK [13:28:48]MH_I2C_Read... [13:28:48]OFD Sender: No OFD packet to send [13:28:49]*** Cut start [13:28:49]*** Partial cut [13:28:49]*** CUTSNS_PIN = 1 [13:28:49]*** CUTSNS_PIN = 0 [13:28:49]*** Brake cut motor [13:28:49]Read from MH i2c: 01 [13:28:49]MH_I2C_Read... [13:28:49]*** Stop cut motor [13:28:49]*** Cut end [13:28:49]Read from MH i2c: 01 07 00 [13:28:49]MH_I2C_Read... [13:28:49]Read from MH i2c: 01 07 00 C6 13 00 00 00 00 00 FF 0F EE [13:28:49]process_action close_receipt done [13:28:49]requested_data is exist [13:28:49]produce_requested_data [13:28:49]requested_item fm.sn is exist - process it [13:28:49]wFMCommunicate request_size=4 [13:28:49]MH_SAM_APDU [13:28:49]CAPDU: 80 11 00 00 [13:28:49]Write to MH i2c: E2 08 00 C7 13 80 11 00 00 00 00 00 00 54 [13:28:49]Write i2c OK [13:28:49]MH_I2C_Read... [13:28:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:28:49]Read from MH i2c: E2 [13:28:49]MH_I2C_Read... [13:28:49]Read from MH i2c: E2 17 00 [13:28:49]MH_I2C_Read... [13:28:49]Read from MH i2c: E2 17 00 C7 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AA [13:28:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:28:49]wFMCommunicate OK [13:28:49]requested_item fd.num is exist - process it [13:28:49]SAM_PROTO_GetFieldsCounters [13:28:49]wFMCommunicate request_size=4 [13:28:49]MH_SAM_APDU [13:28:49]CAPDU: 80 13 00 00 [13:28:49]Write to MH i2c: E2 08 00 C8 13 80 13 00 00 00 00 00 00 57 [13:28:49]Write i2c OK [13:28:49]MH_I2C_Read... [13:28:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:28:49]Read from MH i2c: E2 [13:28:49]MH_I2C_Read... [13:28:49]Read from MH i2c: E2 62 00 [13:28:49]MH_I2C_Read... [13:28:49]Read from MH i2c: E2 62 00 C8 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AB 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 5D [13:28: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AB 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:28:49]wFMCommunicate OK [13:28:49]SAM_PROTO_GetFieldsCounters done [13:28:49]requested_item shift.num is exist - process it [13:28:49]requested_item shift.opened is exist - process it [13:28:49]req_shift_opened [13:28:49]FM_GetShiftState [13:28:49]SAM_PROTO_GetShiftState [13:28:49]wFMCommunicate request_size=4 [13:28:49]MH_SAM_APDU [13:28:49]CAPDU: 80 13 01 00 [13:28:49]Write to MH i2c: E2 08 00 C9 13 80 13 01 00 00 00 00 00 59 [13:28:49]Write i2c OK [13:28:49]MH_I2C_Read... [13:28:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:28:49]Read from MH i2c: E2 [13:28:49]MH_I2C_Read... [13:28:49]Read from MH i2c: E2 0E 00 [13:28:49]MH_I2C_Read... [13:28:49]Read from MH i2c: E2 0E 00 C9 13 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 32 [13:28:49]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [13:28:49]wFMCommunicate OK [13:28:49]SAM_PROTO_GetShiftState done [13:28:49]FM_GetShiftState done [13:28:49]req_shift_opened done [13:28:49]requested_item shift.open_date is exist - process it [13:28:49]req_shift_open_date [13:28:49]req_shift_open_date done [13:28:49]produce_requested_data done [13:28:49]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165291,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [13:28:49]process_action_free close_receipt [13:28:49]json_value_free [13:28:49]json_value_free done [13:28:49]process_json_proto returns [13:28:49]Send response to host [13:28:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165291,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [13:28:49]free response buf [13:28:49]execute_script done [13:28:49]execute_script returns [13:28:49]free content buf [13:28:49]Sock 9.Close socket [13:28:49]Sock 9.Thread stoped [13:28:53]OFD Sender: No OFD packet to send [13:28:58]OFD Sender: No OFD packet to send [13:29:03]OFD Sender: No OFD packet to send [13:29:08]OFD Sender: No OFD packet to send [13:29:13]OFD Sender: No OFD packet to send [13:29:18]OFD Sender: No OFD packet to send [13:29:23]OFD Sender: No OFD packet to send [13:29:28]OFD Sender: No OFD packet to send [13:29:33]OFD Sender: No OFD packet to send [13:29:38]OFD Sender: No OFD packet to send [13:29:43]OFD Sender: No OFD packet to send [13:29:48]OFD Sender: No OFD packet to send [13:29:53]OFD Sender: No OFD packet to send [13:29:58]OFD Sender: No OFD packet to send [13:30:03]OFD Sender: No OFD packet to send [13:30:08]OFD Sender: No OFD packet to send [13:30:13]OFD Sender: No OFD packet to send [13:30:18]OFD Sender: No OFD packet to send [13:30:23]OFD Sender: No OFD packet to send [13:30:28]OFD Sender: No OFD packet to send [13:30:33]OFD Sender: No OFD packet to send [13:30:38]OFD Sender: No OFD packet to send [13:30:43]OFD Sender: No OFD packet to send [13:30:48]OFD Sender: No OFD packet to send [13:30:53]OFD Sender: No OFD packet to send [13:30:58]OFD Sender: No OFD packet to send [13:31:03]OFD Sender: No OFD packet to send [13:31:07]accept exits with 8 [13:31:07]New connection [13:31:07]New thread 3066711396 created [13:31:07]Thread 3066854756 joined [13:31:07]Waiting for new connection... [13:31:07] Sock 8.Parse request [13:31:07]Sock 8.Check first char [13:31:07]Sock 8.First char is OK [13:31:07]request: POST /json_proto HTTP/1.0 [13:31:07]Method: POST [13:31:07]URL: /json_proto [13:31:07]Method is POST - this is cgi request [13:31:07]url: /json_proto [13:31:07]query_string will be loaded in cgi processing [13:31:07]execute_cgi json_proto POST (null) [13:31:07]execute_cgi path=json_proto method=POST [13:31:07]POST find Content-Length [13:31:07]Host: 172.17.56.4:8080 [13:31:07]Content-Length: 677 [13:31:07]Content-Type: application/json [13:31:07] [13:31:07]POST finish read [13:31:07]Found Content-Length = 677 [13:31:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459403", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:31:07]execute_script... [13:31: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)459403", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:31:07]POST & json_proto [13:31:07]process_json_proto [13:31:07]json parsed OK: [13:31:07]protocol is kg_v1.0 [13:31:07]action value=close_receipt [13:31:07]process_action close_receipt [13:31:07]cmd_close_receipt [13:31:07]MH_GetDate [13:31:07]Write to MH i2c: F0 00 00 CA 13 CC [13:31:07]Write i2c OK [13:31:07]MH_I2C_Read... [13:31:07]Read from MH i2c: F0 [13:31:07]MH_I2C_Read... [13:31:07]Read from MH i2c: F0 09 00 [13:31:07]MH_I2C_Read... [13:31:07]Read from MH i2c: F0 09 00 CA 13 00 9D 24 95 66 C9 DC B2 64 4C [13:31:07]GetLastDocTimeStamp 1721050127 [13:31:07]current date 1721050269 [13:31:07]FM_GetShiftState [13:31:07]SAM_PROTO_GetShiftState [13:31:07]wFMCommunicate request_size=4 [13:31:07]MH_SAM_APDU [13:31:07]CAPDU: 80 13 01 00 [13:31:07]Write to MH i2c: E2 08 00 CB 13 80 13 01 00 00 00 00 00 5B [13:31:07]Write i2c OK [13:31:07]MH_I2C_Read... [13:31:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:31:07]Read from MH i2c: E2 [13:31:07]MH_I2C_Read... [13:31:07]Read from MH i2c: E2 0E 00 [13:31:07]MH_I2C_Read... [13:31:07]Read from MH i2c: E2 0E 00 CB 13 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 34 [13:31:07]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [13:31:07]wFMCommunicate OK [13:31:07]SAM_PROTO_GetShiftState done [13:31:07]FM_GetShiftState done [13:31:07]opened in 1721003876 [13:31:07]opened+sec_in_day 1721090276 [13:31:07]quantity*price = 20003 [13:31:07]sum+1 = 20004 [13:31:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 165 15.07.2024 13:31 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165292 ФПД: 144254461871807 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T133109&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165292&fm=144254461871807&tin=02508201610067®Number=0000000000090829&sum=20000 [13:31:09]StoreToDocumentArchive [13:31:09]shift 448 fd 165292 [13:31:09]save to /storage/0448/doc_00165292 [13:31:09]save last doc name /storage/0448/doc_00165292 to /storage/kkm_last_doc_name [13:31:09]save OK [13:31:09]Clear old archive folders... [13:31:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:31:09]tlvbuf is 0181D5F0 [13:31:09]SAM_PROTO_ClearQueue [13:31:09]wFMCommunicate request_size=4 [13:31:09]MH_SAM_APDU [13:31:09]CAPDU: 80 09 00 00 [13:31:09]Write to MH i2c: E2 08 00 D8 13 80 09 00 00 00 00 00 00 5D [13:31:09]Write i2c OK [13:31:09]MH_I2C_Read... [13:31:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:31:09]Read from MH i2c: E2 [13:31:09]MH_I2C_Read... [13:31:09]Read from MH i2c: E2 03 00 [13:31:09]MH_I2C_Read... [13:31:09]Read from MH i2c: E2 03 00 D8 13 00 90 00 5F [13:31:09]RAPDU: 90 00 [13:31:09]wFMCommunicate OK [13:31:09]SAM_PROTO_ClearQueue done [13:31:09]KKMCreateOFDPacket [13:31:09]OFDProtocolAddRootSTLVToBuf [13:31:09]FM_MakeSignedData [13:31:09]FM_MakeSignedData [13:31:09]SAM_PROTO_SignData [13:31:09]wFMCommunicate request_size=4 [13:31:09]MH_SAM_APDU [13:31:09]CAPDU: 80 0D 01 02 [13:31:09]Write to MH i2c: E2 08 00 D9 13 80 0D 01 02 00 00 00 00 65 [13:31:09]Write i2c OK [13:31:09]MH_I2C_Read... [13:31:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:31:09]Read from MH i2c: E2 [13:31:09]MH_I2C_Read... [13:31:09]Read from MH i2c: E2 03 00 [13:31:09]MH_I2C_Read... [13:31:09]Read from MH i2c: E2 03 00 D9 13 00 90 00 60 [13:31:09]RAPDU: 90 00 [13:31:09]wFMCommunicate OK [13:31:09]wFMCommunicate request_size=255 [13:31:09]MH_SAM_APDU [13:31: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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 9D 24 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AC 85 02 00 35 04 06 00 83 [13:31:09]Write to MH i2c: E2 02 01 DA 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 9D 24 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AC 85 02 00 35 04 06 00 83 00 00 57 [13:31:09]Write i2c OK [13:31:09]MH_I2C_Read... [13:31:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:31:09]Read from MH i2c: E2 [13:31:09]MH_I2C_Read... [13:31:09]Read from MH i2c: E2 03 00 [13:31:09]MH_I2C_Read... [13:31:09]Read from MH i2c: E2 03 00 DA 13 00 90 00 61 [13:31:09]RAPDU: 90 00 [13:31:09]wFMCommunicate OK [13:31:09]wFMCommunicate request_size=10 [13:31:09]MH_SAM_APDU [13:31:09]CAPDU: 80 0D 02 02 05 32 DB F5 06 BF [13:31:09]Write to MH i2c: E2 0D 00 DB 13 80 0D 02 02 05 00 32 DB F5 06 BF 00 00 39 [13:31:09]Write i2c OK [13:31:09]MH_I2C_Read... [13:31:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:31:09]Read from MH i2c: E2 [13:31:09]MH_I2C_Read... [13:31:09]Read from MH i2c: E2 03 00 [13:31:09]MH_I2C_Read... [13:31:09]Read from MH i2c: E2 03 00 DB 13 00 90 00 62 [13:31:09]RAPDU: 90 00 [13:31:09]wFMCommunicate OK [13:31:09]wFMCommunicate request_size=4 [13:31:09]MH_SAM_APDU [13:31:09]CAPDU: 80 0D 03 02 [13:31:09]Write to MH i2c: E2 08 00 DC 13 80 0D 03 02 00 00 00 00 6A [13:31:09]Write i2c OK [13:31:09]MH_I2C_Read... [13:31:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:31:09]Read from MH i2c: E2 [13:31:09]MH_I2C_Read... [13:31:09]Read from MH i2c: E2 0B 00 [13:31:09]MH_I2C_Read... [13:31:09]Read from MH i2c: E2 0B 00 DC 13 00 7F 4B 7D FF F4 ED 15 64 90 00 0B [13:31:09]RAPDU: 7F 4B 7D FF F4 ED 15 64 90 00 [13:31:09]wFMCommunicate OK [13:31:09]SAM_PROTO_SignData done [13:31:09]FM_MakeSignedData done [13:31:09]CreateOFDProtocolMessage [13:31:09]wFMCommunicate request_size=4 [13:31:09]MH_SAM_APDU [13:31:09]CAPDU: 80 11 00 00 [13:31:09]Write to MH i2c: E2 08 00 DD 13 80 11 00 00 00 00 00 00 6A [13:31:09]Write i2c OK [13:31:09]MH_I2C_Read... [13:31:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:31:09]Read from MH i2c: E2 [13:31:09]MH_I2C_Read... [13:31:09]Read from MH i2c: E2 17 00 [13:31:09]MH_I2C_Read... [13:31:09]Read from MH i2c: E2 17 00 DD 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C0 [13:31:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:31:09]wFMCommunicate OK [13:31:09]CreateOFDProtocolMessage done [13:31:09]OFDSenderStorePacket 165292 [13:31:09]StoreOFDPacket docnum=165292 [13:31:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 0A 87 07 01 5C D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 9D 24 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AC 85 02 00 35 04 06 00 83 32 DB F5 06 BF 7F 4B 7D FF F4 ED 15 64 [13:31:09]CheckFolder [13:31:09]dirname=/storage/ofd_packets [13:31:09]CheckFolder done [13:31:09]ProducePacketName [13:31:09]name=ofd_packets/00165292 [13:31:09]NVStorageSaveData ofd_packets/00165292 [13:31:09]File name is /storage/ofd_packets/00165292 [13:31:09]Write 301 bytes [13:31:09]NVStorageSaveData done [13:31:09]OFDSenderStorePacket done [13:31:09]KKMCreateOFDPacket done [13:31:09]NVStorageSaveData kkm_last_timestamp [13:31:09]File name is /storage/kkm_last_timestamp [13:31:09]Write 4 bytes [13:31:09]NVStorageSaveData done [13:31:09]ExternCall_PrintAddStr [13:31:09]wPrintStart [13:31:09]Write to MH i2c: 01 00 00 DE 13 F1 [13:31:09]Write i2c OK [13:31:09]MH_I2C_Read... [13:31:09]Read from MH i2c: 01 [13:31:09]MH_I2C_Read... [13:31:09]Read from MH i2c: 01 07 00 [13:31:09]MH_I2C_Read... [13:31:09]Read from MH i2c: 01 07 00 DE 13 00 00 00 00 00 FF 0F 06 [13:31:09]RasterBufferAndPrint [13:31:09]line Счет N : (1)459403 [13:31:09]line ИНН: 02508201610067 [13:31:09]line Контрольно-Кассовый Чек [13:31:09]line ПРОДАЖА [13:31:09]line ТРК (МРК, ГНК) : 22 [13:31:09]line Товар: 2710124130 [13:31:09]line Аи-92-К-5 [13:31:09]line 3.040 * 65.80 [13:31:09]line = 200.03 [13:31:09]line НДС 12% НСП 1% [13:31:09]line > о реализуемом товаре [13:31:09]line ОКРУГЛЕНИЕ: -0.03 [13:31:09]line ИТОГО: 200.00 [13:31:09]line Внесено: 200.00 [13:31:09]line СДАЧА: 0.00 [13:31:09]line НСП 1% : 1.77 [13:31:09]line НДС 12% : 21.24 [13:31:09]line Наличными: 200.00 [13:31:09]line Безнал.: 0.00 [13:31:09]line Место: АЗС № 72 "Партнер Нефть" [13:31:09]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:31:09]line СНО: Общий режим [13:31:09]line Чек 165 15.07.2024 13:31 [13:31:09]line Смена: 448 ФФД: 1.0 [13:31:09]line ЗНМ: 0300000160 [13:31:09]line РНМ: 0000000000090829 [13:31:09]line Версия ККМ: 001 [13:31:09]line ФМ: 0000000000874718 [13:31:09]line ФД: 165292 [13:31:09]line ФПД: 144254461871807 [13:31:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T133109&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165292&fm=144254461871807&tin=02508201610067®Number=0000000000090829&sum=20000 [13:31:09]written 0, free lines is 4095 [13:31:09]OFD Sender: Processing packet 165292 [packets to send 106, broken 105] [13:31:09]ProducePacketName [13:31:09]name=ofd_packets/00165292 [13:31:09]OFD Sender: To server: pG, [13:31:09]CommunicateWithHost lk.salyk.kg:30040 [13:31:09]ConnectInit lk.salyk.kg [13:31:09]Connected sock=10 [13:31: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 37 31 38 0F 01 00 00 0A 87 07 01 5C D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 9D 24 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AC 85 02 00 35 04 06 00 83 32 DB F5 06 BF 7F 4B 7D FF F4 ED 15 64 [13:31:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 6F ED 47 00 78 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 AC 85 02 00 F4 03 04 00 27 CB 94 66 B6 04 01 00 00 53 8F F5 B8 54 0E 2B 09 [13:31:10]CommunicateWithHost err = 0 [13:31:10]CheckOFDResponse [13:31:10]1017 (14) - 77093643461234 [13:31:10]1041 (16) - 0000000000874718 [13:31:10]1040 (4) - 165292 [13:31:10]1012 (4) - 15.07.2024 07:09 [13:31:10]1206 (1) - 0 [13:31:10]OFD Sender: Remove packet 165292 [13:31:10]ProducePacketName [13:31:10]name=ofd_packets/00165292 [13:31:10]NVStorageDeleteData [13:31:10]Write to MH i2c: 01 00 00 08 14 1C [13:31:10]Write i2c OK [13:31:10]MH_I2C_Read... [13:31:10]Read from MH i2c: 01 [13:31:10]MH_I2C_Read... [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 08 14 00 00 00 00 00 FF 0C 2E [13:31:10]RasterBufferAndPrint [13:31:10]line [13:31:10]line [13:31:10]line [13:31:10]line [13:31:10]line [13:31:10]written 0, free lines is 3333 [13:31:10]MH_Cut [13:31:10]Write to MH i2c: D1 01 00 0F 14 01 F5 [13:31:10]Write i2c OK [13:31:10]MH_I2C_Read... [13:31:10]Read from MH i2c: D1 [13:31:10]MH_I2C_Read... [13:31:10]Read from MH i2c: D1 01 00 [13:31:10]MH_I2C_Read... [13:31:10]Read from MH i2c: D1 01 00 0F 14 00 F4 [13:31:10]Write to MH i2c: 01 00 00 10 14 24 [13:31:10]Write i2c OK [13:31:10]MH_I2C_Read... [13:31:10]OFD Sender: No OFD packet to send [13:31:10]*** Cut start [13:31:10]*** Partial cut [13:31:10]*** CUTSNS_PIN = 1 [13:31:10]*** CUTSNS_PIN = 0 [13:31:11]*** Brake cut motor [13:31:11]Read from MH i2c: 01 [13:31:11]MH_I2C_Read... [13:31:11]*** Stop cut motor [13:31:11]*** Cut end [13:31:11]Read from MH i2c: 01 07 00 [13:31:11]MH_I2C_Read... [13:31:11]Read from MH i2c: 01 07 00 10 14 00 00 00 00 00 FF 0F 39 [13:31:11]process_action close_receipt done [13:31:11]requested_data is exist [13:31:11]produce_requested_data [13:31:11]requested_item fm.sn is exist - process it [13:31:11]wFMCommunicate request_size=4 [13:31:11]MH_SAM_APDU [13:31:11]CAPDU: 80 11 00 00 [13:31:11]Write to MH i2c: E2 08 00 11 14 80 11 00 00 00 00 00 00 9F [13:31:11]Write i2c OK [13:31:11]MH_I2C_Read... [13:31:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:31:11]Read from MH i2c: E2 [13:31:11]MH_I2C_Read... [13:31:11]Read from MH i2c: E2 17 00 [13:31:11]MH_I2C_Read... [13:31:11]Read from MH i2c: E2 17 00 11 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F5 [13:31:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:31:11]wFMCommunicate OK [13:31:11]requested_item fd.num is exist - process it [13:31:11]SAM_PROTO_GetFieldsCounters [13:31:11]wFMCommunicate request_size=4 [13:31:11]MH_SAM_APDU [13:31:11]CAPDU: 80 13 00 00 [13:31:11]Write to MH i2c: E2 08 00 12 14 80 13 00 00 00 00 00 00 A2 [13:31:11]Write i2c OK [13:31:11]MH_I2C_Read... [13:31:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:31:11]Read from MH i2c: E2 [13:31:11]MH_I2C_Read... [13:31:11]Read from MH i2c: E2 62 00 [13:31:11]MH_I2C_Read... [13:31:11]Read from MH i2c: E2 62 00 12 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AC 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [13:31: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AC 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:31:11]wFMCommunicate OK [13:31:11]SAM_PROTO_GetFieldsCounters done [13:31:11]requested_item shift.num is exist - process it [13:31:11]requested_item shift.opened is exist - process it [13:31:11]req_shift_opened [13:31:11]FM_GetShiftState [13:31:11]SAM_PROTO_GetShiftState [13:31:11]wFMCommunicate request_size=4 [13:31:11]MH_SAM_APDU [13:31:11]CAPDU: 80 13 01 00 [13:31:11]Write to MH i2c: E2 08 00 13 14 80 13 01 00 00 00 00 00 A4 [13:31:11]Write i2c OK [13:31:11]MH_I2C_Read... [13:31:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:31:11]Read from MH i2c: E2 [13:31:11]MH_I2C_Read... [13:31:11]Read from MH i2c: E2 0E 00 [13:31:11]MH_I2C_Read... [13:31:11]Read from MH i2c: E2 0E 00 13 14 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 7D [13:31:11]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [13:31:11]wFMCommunicate OK [13:31:11]SAM_PROTO_GetShiftState done [13:31:11]FM_GetShiftState done [13:31:11]req_shift_opened done [13:31:11]requested_item shift.open_date is exist - process it [13:31:11]req_shift_open_date [13:31:11]req_shift_open_date done [13:31:11]produce_requested_data done [13:31:11]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165292,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [13:31:11]process_action_free close_receipt [13:31:11]json_value_free [13:31:11]json_value_free done [13:31:11]process_json_proto returns [13:31:11]Send response to host [13:31:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165292,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [13:31:11]free response buf [13:31:11]execute_script done [13:31:11]execute_script returns [13:31:11]free content buf [13:31:11]Sock 8.Close socket [13:31:11]Sock 8.Thread stoped [13:31:15]OFD Sender: No OFD packet to send [13:31:20]OFD Sender: No OFD packet to send [13:31:25]OFD Sender: No OFD packet to send [13:31:30]OFD Sender: No OFD packet to send [13:31:35]OFD Sender: No OFD packet to send [13:31:40]OFD Sender: No OFD packet to send [13:31:45]OFD Sender: No OFD packet to send [13:31:50]OFD Sender: No OFD packet to send [13:31:55]OFD Sender: No OFD packet to send [13:32:00]OFD Sender: No OFD packet to send [13:32:05]OFD Sender: No OFD packet to send [13:32:10]OFD Sender: No OFD packet to send [13:32:15]OFD Sender: No OFD packet to send [13:32:20]OFD Sender: No OFD packet to send [13:32:25]OFD Sender: No OFD packet to send [13:32:30]OFD Sender: No OFD packet to send [13:32:35]OFD Sender: No OFD packet to send [13:32:40]OFD Sender: No OFD packet to send [13:32:45]OFD Sender: No OFD packet to send [13:32:50]OFD Sender: No OFD packet to send [13:32:55]OFD Sender: No OFD packet to send [13:33:00]accept exits with 9 [13:33:00]New connection [13:33:00]New thread 3066854756 created [13:33:00]Thread 3066711396 joined [13:33:00]Waiting for new connection... [13:33:00] Sock 9.Parse request [13:33:00]Sock 9.Check first char [13:33:00]Sock 9.First char is OK [13:33:00]request: POST /json_proto HTTP/1.0 [13:33:00]Method: POST [13:33:00]URL: /json_proto [13:33:00]Method is POST - this is cgi request [13:33:00]url: /json_proto [13:33:00]query_string will be loaded in cgi processing [13:33:00]execute_cgi json_proto POST (null) [13:33:00]execute_cgi path=json_proto method=POST [13:33:00]POST find Content-Length [13:33:00]Host: 172.17.56.4:8080 [13:33:00]Content-Length: 639 [13:33:00]Content-Type: application/json [13:33:00] [13:33:00]POST finish read [13:33:00]Found Content-Length = 639 [13:33:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459404", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.000, "sum" : 329.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 329.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:33:00]execute_script... [13:33:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459404", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.000, "sum" : 329.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 329.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:33:00]POST & json_proto [13:33:00]process_json_proto [13:33:00]json parsed OK: [13:33:00]protocol is kg_v1.0 [13:33:00]action value=close_receipt [13:33:00]process_action close_receipt [13:33:00]cmd_close_receipt [13:33:00]MH_GetDate [13:33:00]Write to MH i2c: F0 00 00 14 14 17 [13:33:00]Write i2c OK [13:33:00]MH_I2C_Read... [13:33:00]Read from MH i2c: F0 [13:33:00]MH_I2C_Read... [13:33:00]Read from MH i2c: F0 09 00 [13:33:00]MH_I2C_Read... [13:33:00]Read from MH i2c: F0 09 00 14 14 00 0D 25 95 66 C9 DC B2 64 08 [13:33:00]GetLastDocTimeStamp 1721050269 [13:33:00]current date 1721050381 [13:33:00]FM_GetShiftState [13:33:00]SAM_PROTO_GetShiftState [13:33:00]wFMCommunicate request_size=4 [13:33:00]MH_SAM_APDU [13:33:00]CAPDU: 80 13 01 00 [13:33:00]Write to MH i2c: E2 08 00 15 14 80 13 01 00 00 00 00 00 A6 [13:33:00]Write i2c OK [13:33:00]MH_I2C_Read... [13:33:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:00]Read from MH i2c: E2 [13:33:00]MH_I2C_Read... [13:33:00]Read from MH i2c: E2 0E 00 [13:33:00]MH_I2C_Read... [13:33:00]Read from MH i2c: E2 0E 00 15 14 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 7F [13:33:00]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [13:33:00]wFMCommunicate OK [13:33:00]SAM_PROTO_GetShiftState done [13:33:00]FM_GetShiftState done [13:33:00]opened in 1721003876 [13:33:00]opened+sec_in_day 1721090276 [13:33:00]quantity*price = 32900 [13:33:00]sum+1 = 32901 [13:33:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 329.00 НСП 1% : 2.91 НДС 12% : 34.94 Наличными: 329.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 166 15.07.2024 13:33 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165293 ФПД: 184124082651251 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T133301&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165293&fm=184124082651251&tin=02508201610067®Number=0000000000090829&sum=32900 [13:33:01]StoreToDocumentArchive [13:33:01]shift 448 fd 165293 [13:33:01]save to /storage/0448/doc_00165293 [13:33:01]save last doc name /storage/0448/doc_00165293 to /storage/kkm_last_doc_name [13:33:01]save OK [13:33:01]Clear old archive folders... [13:33:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:33:01]tlvbuf is B6F3D010 [13:33:01]SAM_PROTO_ClearQueue [13:33:01]wFMCommunicate request_size=4 [13:33:01]MH_SAM_APDU [13:33:01]CAPDU: 80 09 00 00 [13:33:01]Write to MH i2c: E2 08 00 22 14 80 09 00 00 00 00 00 00 A8 [13:33:01]Write i2c OK [13:33:01]MH_I2C_Read... [13:33:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:33:01]Read from MH i2c: E2 [13:33:01]MH_I2C_Read... [13:33:01]Read from MH i2c: E2 03 00 [13:33:01]MH_I2C_Read... [13:33:01]Read from MH i2c: E2 03 00 22 14 00 90 00 AA [13:33:01]RAPDU: 90 00 [13:33:01]wFMCommunicate OK [13:33:01]SAM_PROTO_ClearQueue done [13:33:01]KKMCreateOFDPacket [13:33:01]OFDProtocolAddRootSTLVToBuf [13:33:01]FM_MakeSignedData [13:33:01]FM_MakeSignedData [13:33:01]SAM_PROTO_SignData [13:33:01]wFMCommunicate request_size=4 [13:33:01]MH_SAM_APDU [13:33:01]CAPDU: 80 0D 01 02 [13:33:01]Write to MH i2c: E2 08 00 23 14 80 0D 01 02 00 00 00 00 B0 [13:33:01]Write i2c OK [13:33:01]MH_I2C_Read... [13:33:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:33:01]Read from MH i2c: E2 [13:33:01]MH_I2C_Read... [13:33:01]Read from MH i2c: E2 03 00 [13:33:01]MH_I2C_Read... [13:33:01]Read from MH i2c: E2 03 00 23 14 00 90 00 AB [13:33:01]RAPDU: 90 00 [13:33:01]wFMCommunicate OK [13:33:01]wFMCommunicate request_size=255 [13:33:01]MH_SAM_APDU [13:33: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 84 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 84 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 0D 25 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AD 85 02 00 35 04 06 00 A7 [13:33:01]Write to MH i2c: E2 02 01 24 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 84 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 84 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 0D 25 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AD 85 02 00 35 04 06 00 A7 00 00 7A [13:33:01]Write i2c OK [13:33:01]MH_I2C_Read... [13:33:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:02]Read from MH i2c: E2 [13:33:02]MH_I2C_Read... [13:33:02]Read from MH i2c: E2 03 00 [13:33:02]MH_I2C_Read... [13:33:02]Read from MH i2c: E2 03 00 24 14 00 90 00 AC [13:33:02]RAPDU: 90 00 [13:33:02]wFMCommunicate OK [13:33:02]wFMCommunicate request_size=10 [13:33:02]MH_SAM_APDU [13:33:02]CAPDU: 80 0D 02 02 05 75 BA 8A 80 73 [13:33:02]Write to MH i2c: E2 0D 00 25 14 80 0D 02 02 05 00 75 BA 8A 80 73 00 00 69 [13:33:02]Write i2c OK [13:33:02]MH_I2C_Read... [13:33:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:02]Read from MH i2c: E2 [13:33:02]MH_I2C_Read... [13:33:02]Read from MH i2c: E2 03 00 [13:33:02]MH_I2C_Read... [13:33:02]Read from MH i2c: E2 03 00 25 14 00 90 00 AD [13:33:02]RAPDU: 90 00 [13:33:02]wFMCommunicate OK [13:33:02]wFMCommunicate request_size=4 [13:33:02]MH_SAM_APDU [13:33:02]CAPDU: 80 0D 03 02 [13:33:02]Write to MH i2c: E2 08 00 26 14 80 0D 03 02 00 00 00 00 B5 [13:33:02]Write i2c OK [13:33:02]MH_I2C_Read... [13:33:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:33:02]Read from MH i2c: E2 [13:33:02]MH_I2C_Read... [13:33:02]Read from MH i2c: E2 0B 00 [13:33:02]MH_I2C_Read... [13:33:02]Read from MH i2c: E2 0B 00 26 14 00 05 AA D4 64 BC 60 F7 5E 90 00 0E [13:33:02]RAPDU: 05 AA D4 64 BC 60 F7 5E 90 00 [13:33:02]wFMCommunicate OK [13:33:02]SAM_PROTO_SignData done [13:33:02]FM_MakeSignedData done [13:33:02]CreateOFDProtocolMessage [13:33:02]wFMCommunicate request_size=4 [13:33:02]MH_SAM_APDU [13:33:02]CAPDU: 80 11 00 00 [13:33:02]Write to MH i2c: E2 08 00 27 14 80 11 00 00 00 00 00 00 B5 [13:33:02]Write i2c OK [13:33:02]MH_I2C_Read... [13:33:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:02]Read from MH i2c: E2 [13:33:02]MH_I2C_Read... [13:33:02]Read from MH i2c: E2 17 00 [13:33:02]MH_I2C_Read... [13:33:02]Read from MH i2c: E2 17 00 27 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0B [13:33:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:33:02]wFMCommunicate OK [13:33:02]CreateOFDProtocolMessage done [13:33:02]OFDSenderStorePacket 165293 [13:33:02]StoreOFDPacket docnum=165293 [13:33:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 FD FE 07 01 ED 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 88 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 84 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 84 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 0D 25 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AD 85 02 00 35 04 06 00 A7 75 BA 8A 80 73 05 AA D4 64 BC 60 F7 5E [13:33:02]CheckFolder [13:33:02]dirname=/storage/ofd_packets [13:33:02]CheckFolder done [13:33:02]ProducePacketName [13:33:02]name=ofd_packets/00165293 [13:33:02]NVStorageSaveData ofd_packets/00165293 [13:33:02]File name is /storage/ofd_packets/00165293 [13:33:02]Write 301 bytes [13:33:02]NVStorageSaveData done [13:33:02]OFDSenderStorePacket done [13:33:02]KKMCreateOFDPacket done [13:33:02]NVStorageSaveData kkm_last_timestamp [13:33:02]File name is /storage/kkm_last_timestamp [13:33:02]Write 4 bytes [13:33:02]NVStorageSaveData done [13:33:02]OFD Sender: Processing packet 165293 [packets to send 106, broken 105] [13:33:02]ProducePacketName [13:33:02]name=ofd_packets/00165293 [13:33:02]OFD Sender: To server: pG, [13:33:02]CommunicateWithHost lk.salyk.kg:30040 [13:33:02]ConnectInit lk.salyk.kg [13:33:02]ExternCall_PrintAddStr [13:33:02]wPrintStart [13:33:02]Write to MH i2c: 01 00 00 28 14 3C [13:33:02]Write i2c OK [13:33:02]MH_I2C_Read... [13:33:02]Read from MH i2c: 01 [13:33:02]MH_I2C_Read... [13:33:02]Read from MH i2c: 01 07 00 [13:33:02]MH_I2C_Read... [13:33:02]Read from MH i2c: 01 07 00 28 14 00 00 00 00 00 FF 0F 51 [13:33:02]RasterBufferAndPrint [13:33:02]line Счет N : (1)459404 [13:33:02]line ИНН: 02508201610067 [13:33:02]line Контрольно-Кассовый Чек [13:33:02]line ПРОДАЖА [13:33:02]line ТРК (МРК, ГНК) : 12 [13:33:02]line Товар: 2710124130 [13:33:02]line Аи-92-К-5 [13:33:02]line 5.000 * 65.80 [13:33:02]line = 329.00 [13:33:02]line НДС 12% НСП 1% [13:33:02]line > о реализуемом товаре [13:33:02]line ИТОГО: 329.00 [13:33:02]line НСП 1% : 2.91 [13:33:02]line НДС 12% : 34.94 [13:33:02]line Наличными: 329.00 [13:33:02]line Безнал.: 0.00 [13:33:02]line Место: АЗС № 72 "Партнер Нефть" [13:33:02]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:33:02]line СНО: Общий режим [13:33:02]line Чек 166 15.07.2024 13:33 [13:33:02]line Смена: 448 ФФД: 1.0 [13:33:02]line ЗНМ: 0300000160 [13:33:02]line РНМ: 0000000000090829 [13:33:02]line Версия ККМ: 001 [13:33:02]line ФМ: 0000000000874718 [13:33:02]line ФД: 165293 [13:33:02]line ФПД: 184124082651251 [13:33:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T133301&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165293&fm=184124082651251&tin=02508201610067®Number=0000000000090829&sum=32900 [13:33:02]Connected sock=11 [13:33:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 FD FE 07 01 ED 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 88 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 84 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 84 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 0D 25 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AD 85 02 00 35 04 06 00 A7 75 BA 8A 80 73 05 AA D4 64 BC 60 F7 5E [13:33:02]written 0, free lines is 4095 [13:33:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 D7 06 47 00 49 D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 AD 85 02 00 F4 03 04 00 97 CB 94 66 B6 04 01 00 00 A7 CA 9C 6B 07 79 34 73 [13:33:02]CommunicateWithHost err = 0 [13:33:02]CheckOFDResponse [13:33:02]1017 (14) - 77093643461234 [13:33:02]1041 (16) - 0000000000874718 [13:33:02]1040 (4) - 165293 [13:33:02]1012 (4) - 15.07.2024 07:11 [13:33:02]1206 (1) - 0 [13:33:02]OFD Sender: Remove packet 165293 [13:33:02]ProducePacketName [13:33:02]name=ofd_packets/00165293 [13:33:02]NVStorageDeleteData [13:33:02]Write to MH i2c: 01 00 00 4F 14 63 [13:33:02]Write i2c OK [13:33:02]MH_I2C_Read... [13:33:02]Read from MH i2c: 01 [13:33:02]MH_I2C_Read... [13:33:02]Read from MH i2c: 01 07 00 [13:33:02]MH_I2C_Read... [13:33:02]Read from MH i2c: 01 07 00 4F 14 00 00 00 00 00 26 0D 9D [13:33:02]RasterBufferAndPrint [13:33:02]line [13:33:02]line [13:33:02]line [13:33:02]line [13:33:02]line [13:33:02]written 0, free lines is 3372 [13:33:02]MH_Cut [13:33:02]Write to MH i2c: D1 01 00 56 14 01 3C [13:33:02]Write i2c OK [13:33:02]MH_I2C_Read... [13:33:02]Read from MH i2c: D1 [13:33:02]MH_I2C_Read... [13:33:02]Read from MH i2c: D1 01 00 [13:33:02]MH_I2C_Read... [13:33:02]Read from MH i2c: D1 01 00 56 14 00 3B [13:33:02]Write to MH i2c: 01 00 00 57 14 6B [13:33:02]Write i2c OK [13:33:02]MH_I2C_Read... [13:33:03]OFD Sender: No OFD packet to send [13:33:03]*** Cut start [13:33:03]*** Partial cut [13:33:03]*** CUTSNS_PIN = 1 [13:33:03]*** CUTSNS_PIN = 0 [13:33:03]*** Brake cut motor [13:33:04]Read from MH i2c: 01 [13:33:04]MH_I2C_Read... [13:33:04]*** Stop cut motor [13:33:04]*** Cut end [13:33:04]Read from MH i2c: 01 07 00 [13:33:04]MH_I2C_Read... [13:33:04]Read from MH i2c: 01 07 00 57 14 00 00 00 00 00 FF 0F 80 [13:33:04]process_action close_receipt done [13:33:04]requested_data is exist [13:33:04]produce_requested_data [13:33:04]requested_item fm.sn is exist - process it [13:33:04]wFMCommunicate request_size=4 [13:33:04]MH_SAM_APDU [13:33:04]CAPDU: 80 11 00 00 [13:33:04]Write to MH i2c: E2 08 00 58 14 80 11 00 00 00 00 00 00 E6 [13:33:04]Write i2c OK [13:33:04]MH_I2C_Read... [13:33:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:04]Read from MH i2c: E2 [13:33:04]MH_I2C_Read... [13:33:04]Read from MH i2c: E2 17 00 [13:33:04]MH_I2C_Read... [13:33:04]Read from MH i2c: E2 17 00 58 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3C [13:33:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:33:04]wFMCommunicate OK [13:33:04]requested_item fd.num is exist - process it [13:33:04]SAM_PROTO_GetFieldsCounters [13:33:04]wFMCommunicate request_size=4 [13:33:04]MH_SAM_APDU [13:33:04]CAPDU: 80 13 00 00 [13:33:04]Write to MH i2c: E2 08 00 59 14 80 13 00 00 00 00 00 00 E9 [13:33:04]Write i2c OK [13:33:04]MH_I2C_Read... [13:33:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:33:04]Read from MH i2c: E2 [13:33:04]MH_I2C_Read... [13:33:04]Read from MH i2c: E2 62 00 [13:33:04]MH_I2C_Read... [13:33:04]Read from MH i2c: E2 62 00 59 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AD 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [13:33:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AD 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:33:04]wFMCommunicate OK [13:33:04]SAM_PROTO_GetFieldsCounters done [13:33:04]requested_item shift.num is exist - process it [13:33:04]requested_item shift.opened is exist - process it [13:33:04]req_shift_opened [13:33:04]FM_GetShiftState [13:33:04]SAM_PROTO_GetShiftState [13:33:04]wFMCommunicate request_size=4 [13:33:04]MH_SAM_APDU [13:33:04]CAPDU: 80 13 01 00 [13:33:04]Write to MH i2c: E2 08 00 5A 14 80 13 01 00 00 00 00 00 EB [13:33:04]Write i2c OK [13:33:04]MH_I2C_Read... [13:33:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:04]Read from MH i2c: E2 [13:33:04]MH_I2C_Read... [13:33:04]Read from MH i2c: E2 0E 00 [13:33:04]MH_I2C_Read... [13:33:04]Read from MH i2c: E2 0E 00 5A 14 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 C4 [13:33:04]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [13:33:04]wFMCommunicate OK [13:33:04]SAM_PROTO_GetShiftState done [13:33:04]FM_GetShiftState done [13:33:04]req_shift_opened done [13:33:04]requested_item shift.open_date is exist - process it [13:33:04]req_shift_open_date [13:33:04]req_shift_open_date done [13:33:04]produce_requested_data done [13:33:04]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165293,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [13:33:04]process_action_free close_receipt [13:33:04]json_value_free [13:33:04]json_value_free done [13:33:04]process_json_proto returns [13:33:04]Send response to host [13:33:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165293,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [13:33:04]free response buf [13:33:04]execute_script done [13:33:04]execute_script returns [13:33:04]free content buf [13:33:04]Sock 9.Close socket [13:33:04]Sock 9.Thread stoped [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:33]OFD Sender: No OFD packet to send [13:34:38]OFD Sender: No OFD packet to send [13:34:43]OFD Sender: No OFD packet to send [13:34:48]OFD Sender: No OFD packet to send [13:34:53]OFD Sender: No OFD packet to send [13:34:58]OFD Sender: No OFD packet to send [13:35:03]OFD Sender: No OFD packet to send [13:35:08]OFD Sender: No OFD packet to send [13:35:13]OFD Sender: No OFD packet to send [13:35:18]OFD Sender: No OFD packet to send [13:35:23]OFD Sender: No OFD packet to send [13:35:28]OFD Sender: No OFD packet to send [13:35:33]OFD Sender: No OFD packet to send [13:35:38]OFD Sender: No OFD packet to send [13:35:43]OFD Sender: No OFD packet to send [13:35:48]OFD Sender: No OFD packet to send [13:35:53]OFD Sender: No OFD packet to send [13:35:58]OFD Sender: No OFD packet to send [13:36:03]OFD Sender: No OFD packet to send [13:36:08]OFD Sender: No OFD packet to send [13:36:13]OFD Sender: No OFD packet to send [13:36:18]OFD Sender: No OFD packet to send [13:36:23]OFD Sender: No OFD packet to send [13:36:28]OFD Sender: No OFD packet to send [13:36:33]OFD Sender: No OFD packet to send [13:36:38]OFD Sender: No OFD packet to send [13:36:43]OFD Sender: No OFD packet to send [13:36:48]OFD Sender: No OFD packet to send [13:36:53]OFD Sender: No OFD packet to send [13:36:58]OFD Sender: No OFD packet to send [13:37:03]OFD Sender: No OFD packet to send [13:37:08]OFD Sender: No OFD packet to send [13:37:13]OFD Sender: No OFD packet to send [13:37:18]OFD Sender: No OFD packet to send [13:37:23]OFD Sender: No OFD packet to send [13:37:28]OFD Sender: No OFD packet to send [13:37:33]OFD Sender: No OFD packet to send [13:37:38]OFD Sender: No OFD packet to send [13:37:43]OFD Sender: No OFD packet to send [13:37:48]OFD Sender: No OFD packet to send [13:37:53]OFD Sender: No OFD packet to send [13:37:58]accept exits with 8 [13:37:58]New connection [13:37:58]New thread 3066711396 created [13:37:58]Thread 3066854756 joined [13:37:58]Waiting for new connection... [13:37:58] Sock 8.Parse request [13:37:58]Sock 8.Check first char [13:37:58]Sock 8.First char is OK [13:37:58]request: POST /json_proto HTTP/1.0 [13:37:58]Method: POST [13:37:58]URL: /json_proto [13:37:58]Method is POST - this is cgi request [13:37:58]url: /json_proto [13:37:58]query_string will be loaded in cgi processing [13:37:58]execute_cgi json_proto POST (null) [13:37:58]execute_cgi path=json_proto method=POST [13:37:58]POST find Content-Length [13:37:58]Host: 172.17.56.4:8080 [13:37:58]Content-Length: 677 [13:37:58]Content-Type: application/json [13:37:58] [13:37:58]POST finish read [13:37:58]Found Content-Length = 677 [13:37:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459405", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:37:58]execute_script... [13:37:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459405", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:37:58]POST & json_proto [13:37:58]process_json_proto [13:37:58]json parsed OK: [13:37:58]protocol is kg_v1.0 [13:37:58]action value=close_receipt [13:37:58]process_action close_receipt [13:37:58]cmd_close_receipt [13:37:58]MH_GetDate [13:37:58]Write to MH i2c: F0 00 00 5B 14 5E [13:37:58]Write i2c OK [13:37:58]MH_I2C_Read... [13:37:58]Read from MH i2c: F0 [13:37:58]MH_I2C_Read... [13:37:58]Read from MH i2c: F0 09 00 [13:37:58]MH_I2C_Read... [13:37:58]Read from MH i2c: F0 09 00 5B 14 00 37 26 95 66 C9 DC B2 64 7A [13:37:58]GetLastDocTimeStamp 1721050381 [13:37:58]current date 1721050679 [13:37:58]FM_GetShiftState [13:37:58]SAM_PROTO_GetShiftState [13:37:58]wFMCommunicate request_size=4 [13:37:58]MH_SAM_APDU [13:37:58]CAPDU: 80 13 01 00 [13:37:58]Write to MH i2c: E2 08 00 5C 14 80 13 01 00 00 00 00 00 ED [13:37:58]Write i2c OK [13:37:58]MH_I2C_Read... [13:37:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:58]Read from MH i2c: E2 [13:37:58]MH_I2C_Read... [13:37:58]Read from MH i2c: E2 0E 00 [13:37:58]MH_I2C_Read... [13:37:58]Read from MH i2c: E2 0E 00 5C 14 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 C6 [13:37:58]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [13:37:58]wFMCommunicate OK [13:37:58]SAM_PROTO_GetShiftState done [13:37:58]FM_GetShiftState done [13:37:58]opened in 1721003876 [13:37:58]opened+sec_in_day 1721090276 [13:37:58]quantity*price = 30004 [13:37:58]sum+1 = 30006 [13:37:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 167 15.07.2024 13:37 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165294 ФПД: 141173822472961 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T133759&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165294&fm=141173822472961&tin=02508201610067®Number=0000000000090829&sum=30000 [13:37:59]StoreToDocumentArchive [13:37:59]shift 448 fd 165294 [13:37:59]save to /storage/0448/doc_00165294 [13:37:59]save last doc name /storage/0448/doc_00165294 to /storage/kkm_last_doc_name [13:37:59]save OK [13:37:59]Clear old archive folders... [13:37:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:37:59]tlvbuf is B6EA9AB0 [13:37:59]SAM_PROTO_ClearQueue [13:37:59]wFMCommunicate request_size=4 [13:37:59]MH_SAM_APDU [13:37:59]CAPDU: 80 09 00 00 [13:37:59]Write to MH i2c: E2 08 00 69 14 80 09 00 00 00 00 00 00 EF [13:37:59]Write i2c OK [13:37:59]MH_I2C_Read... [13:37:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:37:59]Read from MH i2c: E2 [13:37:59]MH_I2C_Read... [13:37:59]Read from MH i2c: E2 03 00 [13:37:59]MH_I2C_Read... [13:37:59]Read from MH i2c: E2 03 00 69 14 00 90 00 F1 [13:37:59]RAPDU: 90 00 [13:37:59]wFMCommunicate OK [13:37:59]SAM_PROTO_ClearQueue done [13:37:59]KKMCreateOFDPacket [13:37:59]OFDProtocolAddRootSTLVToBuf [13:37:59]FM_MakeSignedData [13:37:59]FM_MakeSignedData [13:37:59]SAM_PROTO_SignData [13:37:59]wFMCommunicate request_size=4 [13:37:59]MH_SAM_APDU [13:37:59]CAPDU: 80 0D 01 02 [13:37:59]Write to MH i2c: E2 08 00 6A 14 80 0D 01 02 00 00 00 00 F7 [13:37:59]Write i2c OK [13:37:59]MH_I2C_Read... [13:37:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:37:59]Read from MH i2c: E2 [13:37:59]MH_I2C_Read... [13:37:59]Read from MH i2c: E2 03 00 [13:37:59]MH_I2C_Read... [13:37:59]Read from MH i2c: E2 03 00 6A 14 00 90 00 F2 [13:37:59]RAPDU: 90 00 [13:37:59]wFMCommunicate OK [13:37:59]wFMCommunicate request_size=255 [13:37:59]MH_SAM_APDU [13:37:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 37 26 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AE 85 02 00 35 04 06 00 80 [13:37:59]Write to MH i2c: E2 02 01 6B 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 37 26 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AE 85 02 00 35 04 06 00 80 00 00 A6 [13:37:59]Write i2c OK [13:37:59]MH_I2C_Read... [13:37:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:59]Read from MH i2c: E2 [13:37:59]MH_I2C_Read... [13:37:59]Read from MH i2c: E2 03 00 [13:37:59]MH_I2C_Read... [13:37:59]Read from MH i2c: E2 03 00 6B 14 00 90 00 F3 [13:37:59]RAPDU: 90 00 [13:37:59]wFMCommunicate OK [13:37:59]wFMCommunicate request_size=10 [13:37:59]MH_SAM_APDU [13:37:59]CAPDU: 80 0D 02 02 05 65 97 8A 43 01 [13:37:59]Write to MH i2c: E2 0D 00 6C 14 80 0D 02 02 05 00 65 97 8A 43 01 00 00 CE [13:37:59]Write i2c OK [13:37:59]MH_I2C_Read... [13:38:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:00]Read from MH i2c: E2 [13:38:00]MH_I2C_Read... [13:38:00]Read from MH i2c: E2 03 00 [13:38:00]MH_I2C_Read... [13:38:00]Read from MH i2c: E2 03 00 6C 14 00 90 00 F4 [13:38:00]RAPDU: 90 00 [13:38:00]wFMCommunicate OK [13:38:00]wFMCommunicate request_size=4 [13:38:00]MH_SAM_APDU [13:38:00]CAPDU: 80 0D 03 02 [13:38:00]Write to MH i2c: E2 08 00 6D 14 80 0D 03 02 00 00 00 00 FC [13:38:00]Write i2c OK [13:38:00]MH_I2C_Read... [13:38:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:38:00]Read from MH i2c: E2 [13:38:00]MH_I2C_Read... [13:38:00]Read from MH i2c: E2 0B 00 [13:38:00]MH_I2C_Read... [13:38:00]Read from MH i2c: E2 0B 00 6D 14 00 FC 19 B5 42 10 82 9F 47 90 00 81 [13:38:00]RAPDU: FC 19 B5 42 10 82 9F 47 90 00 [13:38:00]wFMCommunicate OK [13:38:00]SAM_PROTO_SignData done [13:38:00]FM_MakeSignedData done [13:38:00]CreateOFDProtocolMessage [13:38:00]wFMCommunicate request_size=4 [13:38:00]MH_SAM_APDU [13:38:00]CAPDU: 80 11 00 00 [13:38:00]Write to MH i2c: E2 08 00 6E 14 80 11 00 00 00 00 00 00 FC [13:38:00]Write i2c OK [13:38:00]MH_I2C_Read... [13:38:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:00]Read from MH i2c: E2 [13:38:00]MH_I2C_Read... [13:38:00]Read from MH i2c: E2 17 00 [13:38:00]MH_I2C_Read... [13:38:00]Read from MH i2c: E2 17 00 6E 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 52 [13:38:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:38:00]wFMCommunicate OK [13:38:00]CreateOFDProtocolMessage done [13:38:00]OFDSenderStorePacket 165294 [13:38:00]StoreOFDPacket docnum=165294 [13:38:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F8 0E 07 01 A9 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 37 26 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AE 85 02 00 35 04 06 00 80 65 97 8A 43 01 FC 19 B5 42 10 82 9F 47 [13:38:00]CheckFolder [13:38:00]dirname=/storage/ofd_packets [13:38:00]CheckFolder done [13:38:00]ProducePacketName [13:38:00]name=ofd_packets/00165294 [13:38:00]NVStorageSaveData ofd_packets/00165294 [13:38:00]File name is /storage/ofd_packets/00165294 [13:38:00]Write 301 bytes [13:38:00]NVStorageSaveData done [13:38:00]OFDSenderStorePacket done [13:38:00]KKMCreateOFDPacket done [13:38:00]NVStorageSaveData kkm_last_timestamp [13:38:00]File name is /storage/kkm_last_timestamp [13:38:00]Write 4 bytes [13:38:00]NVStorageSaveData done [13:38:00]ExternCall_PrintAddStr [13:38:00]wPrintStart [13:38:00]Write to MH i2c: 01 00 00 6F 14 83 [13:38:00]Write i2c OK [13:38:00]MH_I2C_Read... [13:38:00]Read from MH i2c: 01 [13:38:00]MH_I2C_Read... [13:38:00]Read from MH i2c: 01 07 00 [13:38:00]MH_I2C_Read... [13:38:00]Read from MH i2c: 01 07 00 6F 14 00 00 00 00 00 FF 0F 98 [13:38:00]RasterBufferAndPrint [13:38:00]line Счет N : (1)459405 [13:38:00]line ИНН: 02508201610067 [13:38:00]line Контрольно-Кассовый Чек [13:38:00]line ПРОДАЖА [13:38:00]line ТРК (МРК, ГНК) : 22 [13:38:00]line Товар: 2710124130 [13:38:00]line Аи-92-К-5 [13:38:00]line 4.560 * 65.80 [13:38:00]line = 300.05 [13:38:00]line НДС 12% НСП 1% [13:38:00]line > о реализуемом товаре [13:38:00]line ОКРУГЛЕНИЕ: -0.05 [13:38:00]line ИТОГО: 300.00 [13:38:00]line Внесено: 300.00 [13:38:00]line СДАЧА: 0.00 [13:38:00]line НСП 1% : 2.65 [13:38:00]line НДС 12% : 31.86 [13:38:00]line Наличными: 300.00 [13:38:00]line Безнал.: 0.00 [13:38:00]line Место: АЗС № 72 "Партнер Нефть" [13:38:00]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:38:00]line СНО: Общий режим [13:38:00]line Чек 167 15.07.2024 13:37 [13:38:00]line Смена: 448 ФФД: 1.0 [13:38:00]line ЗНМ: 0300000160 [13:38:00]line РНМ: 0000000000090829 [13:38:00]line Версия ККМ: 001 [13:38:00]line ФМ: 0000000000874718 [13:38:00]line ФД: 165294 [13:38:00]line ФПД: 141173822472961 [13:38:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T133759&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165294&fm=141173822472961&tin=02508201610067®Number=0000000000090829&sum=30000 [13:38:00]OFD Sender: Processing packet 165294 [packets to send 106, broken 105] [13:38:00]ProducePacketName [13:38:00]name=ofd_packets/00165294 [13:38:00]OFD Sender: To server: pG, [13:38:00]CommunicateWithHost lk.salyk.kg:30040 [13:38:00]ConnectInit lk.salyk.kg [13:38:00]written 0, free lines is 4095 [13:38:00]Connected sock=10 [13:38:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F8 0E 07 01 A9 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 37 26 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AE 85 02 00 35 04 06 00 80 65 97 8A 43 01 FC 19 B5 42 10 82 9F 47 [13:38:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 19 15 47 00 F2 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 37 31 38 10 04 04 00 AE 85 02 00 F4 03 04 00 C1 CC 94 66 B6 04 01 00 00 2E E8 9F E2 68 A2 31 3B [13:38:00]CommunicateWithHost err = 0 [13:38:00]CheckOFDResponse [13:38:00]1017 (14) - 77093643461234 [13:38:00]1041 (16) - 0000000000874718 [13:38:00]1040 (4) - 165294 [13:38:00]1012 (4) - 15.07.2024 07:16 [13:38:00]1206 (1) - 0 [13:38:00]OFD Sender: Remove packet 165294 [13:38:00]ProducePacketName [13:38:00]name=ofd_packets/00165294 [13:38:00]NVStorageDeleteData [13:38:00]Write to MH i2c: 01 00 00 99 14 AD [13:38:00]Write i2c OK [13:38:00]MH_I2C_Read... [13:38:00]Read from MH i2c: 01 [13:38:00]MH_I2C_Read... [13:38:00]Read from MH i2c: 01 07 00 [13:38:00]MH_I2C_Read... [13:38:00]Read from MH i2c: 01 07 00 99 14 00 00 00 00 00 F7 0C B7 [13:38:00]RasterBufferAndPrint [13:38:00]line [13:38:00]line [13:38:00]line [13:38:00]line [13:38:00]line [13:38:00]written 0, free lines is 3330 [13:38:00]MH_Cut [13:38:00]Write to MH i2c: D1 01 00 A0 14 01 86 [13:38:00]Write i2c OK [13:38:00]MH_I2C_Read... [13:38:00]Read from MH i2c: D1 [13:38:00]MH_I2C_Read... [13:38:00]Read from MH i2c: D1 01 00 [13:38:00]MH_I2C_Read... [13:38:00]Read from MH i2c: D1 01 00 A0 14 00 85 [13:38:00]Write to MH i2c: 01 00 00 A1 14 B5 [13:38:00]Write i2c OK [13:38:00]MH_I2C_Read... [13:38:01]OFD Sender: No OFD packet to send [13:38:01]*** Cut start [13:38:01]*** Partial cut [13:38:01]*** CUTSNS_PIN = 1 [13:38:01]*** CUTSNS_PIN = 0 [13:38:01]*** Brake cut motor [13:38:02]Read from MH i2c: 01 [13:38:02]MH_I2C_Read... [13:38:02]*** Stop cut motor [13:38:02]*** Cut end [13:38:02]Read from MH i2c: 01 07 00 [13:38:02]MH_I2C_Read... [13:38:02]Read from MH i2c: 01 07 00 A1 14 00 00 00 00 00 FF 0F CA [13:38:02]process_action close_receipt done [13:38:02]requested_data is exist [13:38:02]produce_requested_data [13:38:02]requested_item fm.sn is exist - process it [13:38:02]wFMCommunicate request_size=4 [13:38:02]MH_SAM_APDU [13:38:02]CAPDU: 80 11 00 00 [13:38:02]Write to MH i2c: E2 08 00 A2 14 80 11 00 00 00 00 00 00 30 [13:38:02]Write i2c OK [13:38:02]MH_I2C_Read... [13:38:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:02]Read from MH i2c: E2 [13:38:02]MH_I2C_Read... [13:38:02]Read from MH i2c: E2 17 00 [13:38:02]MH_I2C_Read... [13:38:02]Read from MH i2c: E2 17 00 A2 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 86 [13:38:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:38:02]wFMCommunicate OK [13:38:02]requested_item fd.num is exist - process it [13:38:02]SAM_PROTO_GetFieldsCounters [13:38:02]wFMCommunicate request_size=4 [13:38:02]MH_SAM_APDU [13:38:02]CAPDU: 80 13 00 00 [13:38:02]Write to MH i2c: E2 08 00 A3 14 80 13 00 00 00 00 00 00 33 [13:38:02]Write i2c OK [13:38:02]MH_I2C_Read... [13:38:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:38:02]Read from MH i2c: E2 [13:38:02]MH_I2C_Read... [13:38:02]Read from MH i2c: E2 62 00 [13:38:02]MH_I2C_Read... [13:38:02]Read from MH i2c: E2 62 00 A3 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AE 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [13:38:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AE 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:38:02]wFMCommunicate OK [13:38:02]SAM_PROTO_GetFieldsCounters done [13:38:02]requested_item shift.num is exist - process it [13:38:02]requested_item shift.opened is exist - process it [13:38:02]req_shift_opened [13:38:02]FM_GetShiftState [13:38:02]SAM_PROTO_GetShiftState [13:38:02]wFMCommunicate request_size=4 [13:38:02]MH_SAM_APDU [13:38:02]CAPDU: 80 13 01 00 [13:38:02]Write to MH i2c: E2 08 00 A4 14 80 13 01 00 00 00 00 00 35 [13:38:02]Write i2c OK [13:38:02]MH_I2C_Read... [13:38:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:02]Read from MH i2c: E2 [13:38:02]MH_I2C_Read... [13:38:02]Read from MH i2c: E2 0E 00 [13:38:02]MH_I2C_Read... [13:38:02]Read from MH i2c: E2 0E 00 A4 14 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 0E [13:38:02]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [13:38:02]wFMCommunicate OK [13:38:02]SAM_PROTO_GetShiftState done [13:38:02]FM_GetShiftState done [13:38:02]req_shift_opened done [13:38:02]requested_item shift.open_date is exist - process it [13:38:02]req_shift_open_date [13:38:02]req_shift_open_date done [13:38:02]produce_requested_data done [13:38:02]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165294,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [13:38:02]process_action_free close_receipt [13:38:02]json_value_free [13:38:02]json_value_free done [13:38:02]process_json_proto returns [13:38:02]Send response to host [13:38:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165294,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [13:38:02]free response buf [13:38:02]execute_script done [13:38:02]execute_script returns [13:38:02]free content buf [13:38:02]Sock 8.Close socket [13:38:02]Sock 8.Thread stoped [13:38:06]OFD Sender: No OFD packet to send [13:38:11]OFD Sender: No OFD packet to send [13:38:16]OFD Sender: No OFD packet to send [13:38:21]OFD Sender: No OFD packet to send [13:38:26]OFD Sender: No OFD packet to send [13:38:31]OFD Sender: No OFD packet to send [13:38:36]OFD Sender: No OFD packet to send [13:38:41]OFD Sender: No OFD packet to send [13:38:46]OFD Sender: No OFD packet to send [13:38:51]OFD Sender: No OFD packet to send [13:38:56]OFD Sender: No OFD packet to send [13:39:01]OFD Sender: No OFD packet to send [13:39:06]OFD Sender: No OFD packet to send [13:39:11]OFD Sender: No OFD packet to send [13:39:16]OFD Sender: No OFD packet to send [13:39:21]OFD Sender: No OFD packet to send [13:39:26]OFD Sender: No OFD packet to send [13:39:31]OFD Sender: No OFD packet to send [13:39:36]OFD Sender: No OFD packet to send [13:39:41]OFD Sender: No OFD packet to send [13:39:46]OFD Sender: No OFD packet to send [13:39:51]OFD Sender: No OFD packet to send [13:39:56]OFD Sender: No OFD packet to send [13:40:01]OFD Sender: No OFD packet to send [13:40:06]OFD Sender: No OFD packet to send [13:40:11]OFD Sender: No OFD packet to send [13:40:16]OFD Sender: No OFD packet to send [13:40:21]OFD Sender: No OFD packet to send [13:40:26]OFD Sender: No OFD packet to send [13:40:31]OFD Sender: No OFD packet to send [13:40:34]accept exits with 9 [13:40:34]New connection [13:40:34]New thread 3066854756 created [13:40:34]Thread 3066711396 joined [13:40:34]Waiting for new connection... [13:40:34] Sock 9.Parse request [13:40:34]Sock 9.Check first char [13:40:34]Sock 9.First char is OK [13:40:34]request: POST /json_proto HTTP/1.0 [13:40:34]Method: POST [13:40:34]URL: /json_proto [13:40:34]Method is POST - this is cgi request [13:40:34]url: /json_proto [13:40:34]query_string will be loaded in cgi processing [13:40:34]execute_cgi json_proto POST (null) [13:40:34]execute_cgi path=json_proto method=POST [13:40:34]POST find Content-Length [13:40:34]Host: 172.17.56.4:8080 [13:40:34]Content-Length: 677 [13:40:34]Content-Type: application/json [13:40:34] [13:40:34]POST finish read [13:40:34]Found Content-Length = 677 [13:40:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459406", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.020, "sum" : 330.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 330.00, "total" : 330.00, "payments": [ { "type": 0, "sum" : 330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:40:34]execute_script... [13:40: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)459406", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.020, "sum" : 330.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 330.00, "total" : 330.00, "payments": [ { "type": 0, "sum" : 330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:40:34]POST & json_proto [13:40:34]process_json_proto [13:40:34]json parsed OK: [13:40:34]protocol is kg_v1.0 [13:40:34]action value=close_receipt [13:40:34]process_action close_receipt [13:40:34]cmd_close_receipt [13:40:34]MH_GetDate [13:40:34]Write to MH i2c: F0 00 00 A5 14 A8 [13:40:34]Write i2c OK [13:40:34]MH_I2C_Read... [13:40:34]Read from MH i2c: F0 [13:40:34]MH_I2C_Read... [13:40:34]Read from MH i2c: F0 09 00 [13:40:34]MH_I2C_Read... [13:40:34]Read from MH i2c: F0 09 00 A5 14 00 D4 26 95 66 C9 DC B2 64 61 [13:40:34]GetLastDocTimeStamp 1721050679 [13:40:34]current date 1721050836 [13:40:34]FM_GetShiftState [13:40:34]SAM_PROTO_GetShiftState [13:40:34]wFMCommunicate request_size=4 [13:40:34]MH_SAM_APDU [13:40:34]CAPDU: 80 13 01 00 [13:40:34]Write to MH i2c: E2 08 00 A6 14 80 13 01 00 00 00 00 00 37 [13:40:34]Write i2c OK [13:40:34]MH_I2C_Read... [13:40:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:34]Read from MH i2c: E2 [13:40:34]MH_I2C_Read... [13:40:34]Read from MH i2c: E2 0E 00 [13:40:34]MH_I2C_Read... [13:40:34]Read from MH i2c: E2 0E 00 A6 14 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 10 [13:40:34]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [13:40:34]wFMCommunicate OK [13:40:34]SAM_PROTO_GetShiftState done [13:40:34]FM_GetShiftState done [13:40:34]opened in 1721003876 [13:40:34]opened+sec_in_day 1721090276 [13:40:34]quantity*price = 33031 [13:40:34]sum+1 = 33033 [13:40:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 330.00 Внесено: 330.00 СДАЧА: 0.00 НСП 1% : 2.92 НДС 12% : 35.08 Наличными: 330.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 168 15.07.2024 13:40 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165295 ФПД: 74749181159205 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T134036&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165295&fm=74749181159205&tin=02508201610067®Number=0000000000090829&sum=33000 [13:40:36]StoreToDocumentArchive [13:40:36]shift 448 fd 165295 [13:40:36]save to /storage/0448/doc_00165295 [13:40:36]save last doc name /storage/0448/doc_00165295 to /storage/kkm_last_doc_name [13:40:36]save OK [13:40:36]Clear old archive folders... [13:40:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:40:36]tlvbuf is 0181AAC0 [13:40:36]SAM_PROTO_ClearQueue [13:40:36]wFMCommunicate request_size=4 [13:40:36]MH_SAM_APDU [13:40:36]CAPDU: 80 09 00 00 [13:40:36]Write to MH i2c: E2 08 00 B3 14 80 09 00 00 00 00 00 00 39 [13:40:36]Write i2c OK [13:40:36]MH_I2C_Read... [13:40:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:40:36]Read from MH i2c: E2 [13:40:36]MH_I2C_Read... [13:40:36]Read from MH i2c: E2 03 00 [13:40:36]MH_I2C_Read... [13:40:36]Read from MH i2c: E2 03 00 B3 14 00 90 00 3B [13:40:36]RAPDU: 90 00 [13:40:36]wFMCommunicate OK [13:40:36]SAM_PROTO_ClearQueue done [13:40:36]KKMCreateOFDPacket [13:40:36]OFDProtocolAddRootSTLVToBuf [13:40:36]FM_MakeSignedData [13:40:36]FM_MakeSignedData [13:40:36]SAM_PROTO_SignData [13:40:36]wFMCommunicate request_size=4 [13:40:36]MH_SAM_APDU [13:40:36]CAPDU: 80 0D 01 02 [13:40:36]Write to MH i2c: E2 08 00 B4 14 80 0D 01 02 00 00 00 00 41 [13:40:36]Write i2c OK [13:40:36]MH_I2C_Read... [13:40:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:40:36]Read from MH i2c: E2 [13:40:36]MH_I2C_Read... [13:40:36]Read from MH i2c: E2 03 00 [13:40:36]MH_I2C_Read... [13:40:36]Read from MH i2c: E2 03 00 B4 14 00 90 00 3C [13:40:36]RAPDU: 90 00 [13:40:36]wFMCommunicate OK [13:40:36]wFMCommunicate request_size=255 [13:40:36]MH_SAM_APDU [13:40:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 D4 26 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AF 85 02 00 35 04 06 00 43 [13:40:36]Write to MH i2c: E2 02 01 B5 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 D4 26 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AF 85 02 00 35 04 06 00 43 00 00 E3 [13:40:36]Write i2c OK [13:40:36]MH_I2C_Read... [13:40:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:36]Read from MH i2c: E2 [13:40:36]MH_I2C_Read... [13:40:36]Read from MH i2c: E2 03 00 [13:40:36]MH_I2C_Read... [13:40:36]Read from MH i2c: E2 03 00 B5 14 00 90 00 3D [13:40:36]RAPDU: 90 00 [13:40:36]wFMCommunicate OK [13:40:36]wFMCommunicate request_size=10 [13:40:36]MH_SAM_APDU [13:40:36]CAPDU: 80 0D 02 02 05 FB E6 63 E7 25 [13:40:36]Write to MH i2c: E2 0D 00 B6 14 80 0D 02 02 05 00 FB E6 63 E7 25 00 00 9E [13:40:36]Write i2c OK [13:40:36]MH_I2C_Read... [13:40:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:36]Read from MH i2c: E2 [13:40:36]MH_I2C_Read... [13:40:36]Read from MH i2c: E2 03 00 [13:40:36]MH_I2C_Read... [13:40:36]Read from MH i2c: E2 03 00 B6 14 00 90 00 3E [13:40:36]RAPDU: 90 00 [13:40:36]wFMCommunicate OK [13:40:36]wFMCommunicate request_size=4 [13:40:36]MH_SAM_APDU [13:40:36]CAPDU: 80 0D 03 02 [13:40:36]Write to MH i2c: E2 08 00 B7 14 80 0D 03 02 00 00 00 00 46 [13:40:36]Write i2c OK [13:40:36]MH_I2C_Read... [13:40:36]OFD Sender: No OFD packet to send [13:40:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:40:36]Read from MH i2c: E2 [13:40:36]MH_I2C_Read... [13:40:36]Read from MH i2c: E2 0B 00 [13:40:36]MH_I2C_Read... [13:40:36]Read from MH i2c: E2 0B 00 B7 14 00 61 A6 3B 88 93 32 0E B5 90 00 99 [13:40:36]RAPDU: 61 A6 3B 88 93 32 0E B5 90 00 [13:40:36]wFMCommunicate OK [13:40:36]SAM_PROTO_SignData done [13:40:36]FM_MakeSignedData done [13:40:36]CreateOFDProtocolMessage [13:40:36]wFMCommunicate request_size=4 [13:40:36]MH_SAM_APDU [13:40:36]CAPDU: 80 11 00 00 [13:40:36]Write to MH i2c: E2 08 00 B8 14 80 11 00 00 00 00 00 00 46 [13:40:36]Write i2c OK [13:40:36]MH_I2C_Read... [13:40:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:36]Read from MH i2c: E2 [13:40:36]MH_I2C_Read... [13:40:36]Read from MH i2c: E2 17 00 [13:40:36]MH_I2C_Read... [13:40:36]Read from MH i2c: E2 17 00 B8 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 9C [13:40:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:40:36]wFMCommunicate OK [13:40:36]CreateOFDProtocolMessage done [13:40:36]OFDSenderStorePacket 165295 [13:40:36]StoreOFDPacket docnum=165295 [13:40:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 1B EE 07 01 6A 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 9C 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 D4 26 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AF 85 02 00 35 04 06 00 43 FB E6 63 E7 25 61 A6 3B 88 93 32 0E B5 [13:40:36]CheckFolder [13:40:36]dirname=/storage/ofd_packets [13:40:36]CheckFolder done [13:40:36]ProducePacketName [13:40:36]name=ofd_packets/00165295 [13:40:36]NVStorageSaveData ofd_packets/00165295 [13:40:36]File name is /storage/ofd_packets/00165295 [13:40:36]Write 301 bytes [13:40:36]NVStorageSaveData done [13:40:36]OFDSenderStorePacket done [13:40:36]KKMCreateOFDPacket done [13:40:36]NVStorageSaveData kkm_last_timestamp [13:40:36]File name is /storage/kkm_last_timestamp [13:40:36]Write 4 bytes [13:40:36]NVStorageSaveData done [13:40:36]ExternCall_PrintAddStr [13:40:36]wPrintStart [13:40:36]Write to MH i2c: 01 00 00 B9 14 CD [13:40:36]Write i2c OK [13:40:36]MH_I2C_Read... [13:40:36]Read from MH i2c: 01 [13:40:36]MH_I2C_Read... [13:40:36]Read from MH i2c: 01 07 00 [13:40:36]MH_I2C_Read... [13:40:36]Read from MH i2c: 01 07 00 B9 14 00 00 00 00 00 FF 0F E2 [13:40:36]RasterBufferAndPrint [13:40:36]line Счет N : (1)459406 [13:40:36]line ИНН: 02508201610067 [13:40:36]line Контрольно-Кассовый Чек [13:40:36]line ПРОДАЖА [13:40:36]line ТРК (МРК, ГНК) : 22 [13:40:36]line Товар: 2710124130 [13:40:36]line Аи-92-К-5 [13:40:36]line 5.020 * 65.80 [13:40:36]line = 330.32 [13:40:36]line НДС 12% НСП 1% [13:40:36]line > о реализуемом товаре [13:40:36]line ОКРУГЛЕНИЕ: -0.32 [13:40:36]line ИТОГО: 330.00 [13:40:36]line Внесено: 330.00 [13:40:36]line СДАЧА: 0.00 [13:40:36]line НСП 1% : 2.92 [13:40:36]line НДС 12% : 35.08 [13:40:36]line Наличными: 330.00 [13:40:36]line Безнал.: 0.00 [13:40:36]line Место: АЗС № 72 "Партнер Нефть" [13:40:36]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:40:36]line СНО: Общий режим [13:40:36]line Чек 168 15.07.2024 13:40 [13:40:36]line Смена: 448 ФФД: 1.0 [13:40:36]line ЗНМ: 0300000160 [13:40:36]line РНМ: 0000000000090829 [13:40:36]line Версия ККМ: 001 [13:40:36]line ФМ: 0000000000874718 [13:40:36]line ФД: 165295 [13:40:36]line ФПД: 74749181159205 [13:40:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T134036&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165295&fm=74749181159205&tin=02508201610067®Number=0000000000090829&sum=33000 [13:40:36]OFD Sender: Processing packet 165295 [packets to send 106, broken 105] [13:40:36]ProducePacketName [13:40:36]name=ofd_packets/00165295 [13:40:36]OFD Sender: To server: pG, [13:40:36]CommunicateWithHost lk.salyk.kg:30040 [13:40:36]ConnectInit lk.salyk.kg [13:40:36]written 0, free lines is 4095 [13:40:37]Connected sock=10 [13:40: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 37 31 38 0F 01 00 00 1B EE 07 01 6A 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 9C 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 D4 26 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AF 85 02 00 35 04 06 00 43 FB E6 63 E7 25 61 A6 3B 88 93 32 0E B5 [13:40:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 D9 98 47 00 E1 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 AF 85 02 00 F4 03 04 00 5E CD 94 66 B6 04 01 00 00 E2 98 1F F3 4D 50 86 65 [13:40:37]CommunicateWithHost err = 0 [13:40:37]CheckOFDResponse [13:40:37]1017 (14) - 77093643461234 [13:40:37]1041 (16) - 0000000000874718 [13:40:37]1040 (4) - 165295 [13:40:37]1012 (4) - 15.07.2024 07:18 [13:40:37]1206 (1) - 0 [13:40:37]OFD Sender: Remove packet 165295 [13:40:37]ProducePacketName [13:40:37]name=ofd_packets/00165295 [13:40:37]NVStorageDeleteData [13:40:37]Write to MH i2c: 01 00 00 E3 14 F7 [13:40:37]Write i2c OK [13:40:37]MH_I2C_Read... [13:40:37]Read from MH i2c: 01 [13:40:37]MH_I2C_Read... [13:40:37]Read from MH i2c: 01 07 00 [13:40:37]MH_I2C_Read... [13:40:37]Read from MH i2c: 01 07 00 E3 14 00 00 00 00 00 F4 0C FE [13:40:37]RasterBufferAndPrint [13:40:37]line [13:40:37]line [13:40:37]line [13:40:37]line [13:40:37]line [13:40:37]written 0, free lines is 3323 [13:40:37]MH_Cut [13:40:37]Write to MH i2c: D1 01 00 EA 14 01 D0 [13:40:37]Write i2c OK [13:40:37]MH_I2C_Read... [13:40:37]Read from MH i2c: D1 [13:40:37]MH_I2C_Read... [13:40:37]Read from MH i2c: D1 01 00 [13:40:37]MH_I2C_Read... [13:40:37]Read from MH i2c: D1 01 00 EA 14 00 CF [13:40:37]Write to MH i2c: 01 00 00 EB 14 FF [13:40:37]Write i2c OK [13:40:37]MH_I2C_Read... [13:40:37]OFD Sender: No OFD packet to send [13:40:38]*** Cut start [13:40:38]*** Partial cut [13:40:38]*** CUTSNS_PIN = 1 [13:40:38]*** CUTSNS_PIN = 0 [13:40:38]*** Brake cut motor [13:40:38]Read from MH i2c: 01 [13:40:38]MH_I2C_Read... [13:40:38]*** Stop cut motor [13:40:38]*** Cut end [13:40:38]Read from MH i2c: 01 07 00 [13:40:38]MH_I2C_Read... [13:40:38]Read from MH i2c: 01 07 00 EB 14 00 00 00 00 00 FF 0F 14 [13:40:38]process_action close_receipt done [13:40:38]requested_data is exist [13:40:38]produce_requested_data [13:40:38]requested_item fm.sn is exist - process it [13:40:38]wFMCommunicate request_size=4 [13:40:38]MH_SAM_APDU [13:40:38]CAPDU: 80 11 00 00 [13:40:38]Write to MH i2c: E2 08 00 EC 14 80 11 00 00 00 00 00 00 7A [13:40:38]Write i2c OK [13:40:38]MH_I2C_Read... [13:40:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:38]Read from MH i2c: E2 [13:40:38]MH_I2C_Read... [13:40:38]Read from MH i2c: E2 17 00 [13:40:38]MH_I2C_Read... [13:40:38]Read from MH i2c: E2 17 00 EC 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D0 [13:40:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:40:38]wFMCommunicate OK [13:40:38]requested_item fd.num is exist - process it [13:40:38]SAM_PROTO_GetFieldsCounters [13:40:38]wFMCommunicate request_size=4 [13:40:38]MH_SAM_APDU [13:40:38]CAPDU: 80 13 00 00 [13:40:38]Write to MH i2c: E2 08 00 ED 14 80 13 00 00 00 00 00 00 7D [13:40:38]Write i2c OK [13:40:38]MH_I2C_Read... [13:40:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:40:38]Read from MH i2c: E2 [13:40:38]MH_I2C_Read... [13:40:38]Read from MH i2c: E2 62 00 [13:40:38]MH_I2C_Read... [13:40:38]Read from MH i2c: E2 62 00 ED 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AF 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [13:40: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 AF 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:40:38]wFMCommunicate OK [13:40:38]SAM_PROTO_GetFieldsCounters done [13:40:38]requested_item shift.num is exist - process it [13:40:38]requested_item shift.opened is exist - process it [13:40:38]req_shift_opened [13:40:38]FM_GetShiftState [13:40:38]SAM_PROTO_GetShiftState [13:40:38]wFMCommunicate request_size=4 [13:40:38]MH_SAM_APDU [13:40:38]CAPDU: 80 13 01 00 [13:40:38]Write to MH i2c: E2 08 00 EE 14 80 13 01 00 00 00 00 00 7F [13:40:38]Write i2c OK [13:40:38]MH_I2C_Read... [13:40:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:38]Read from MH i2c: E2 [13:40:38]MH_I2C_Read... [13:40:38]Read from MH i2c: E2 0E 00 [13:40:38]MH_I2C_Read... [13:40:38]Read from MH i2c: E2 0E 00 EE 14 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 58 [13:40:38]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [13:40:38]wFMCommunicate OK [13:40:38]SAM_PROTO_GetShiftState done [13:40:38]FM_GetShiftState done [13:40:38]req_shift_opened done [13:40:38]requested_item shift.open_date is exist - process it [13:40:38]req_shift_open_date [13:40:38]req_shift_open_date done [13:40:38]produce_requested_data done [13:40:38]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165295,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [13:40:38]process_action_free close_receipt [13:40:38]json_value_free [13:40:38]json_value_free done [13:40:38]process_json_proto returns [13:40:38]Send response to host [13:40:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165295,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [13:40:38]free response buf [13:40:38]execute_script done [13:40:38]execute_script returns [13:40:38]free content buf [13:40:38]Sock 9.Close socket [13:40:38]Sock 9.Thread stoped [13:40:42]OFD Sender: No OFD packet to send [13:40:47]OFD Sender: No OFD packet to send [13:40:52]OFD Sender: No OFD packet to send [13:40:57]OFD Sender: No OFD packet to send [13:40:58]accept exits with 8 [13:40:58]New connection [13:40:58]New thread 3066711396 created [13:40:58]Thread 3066854756 joined [13:40:58]Waiting for new connection... [13:40:58] Sock 8.Parse request [13:40:58]Sock 8.Check first char [13:40:58]Sock 8.First char is OK [13:40:58]request: POST /json_proto HTTP/1.0 [13:40:58]Method: POST [13:40:58]URL: /json_proto [13:40:58]Method is POST - this is cgi request [13:40:58]url: /json_proto [13:40:58]query_string will be loaded in cgi processing [13:40:58]execute_cgi json_proto POST (null) [13:40:58]execute_cgi path=json_proto method=POST [13:40:58]POST find Content-Length [13:40:58]Host: 172.17.56.4:8080 [13:40:58]Content-Length: 678 [13:40:58]Content-Type: application/json [13:40:58] [13:40:58]POST finish read [13:40:58]Found Content-Length = 678 [13:40:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459407", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.040, "sum" : 660.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:40:58]execute_script... [13:40:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459407", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.040, "sum" : 660.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:40:58]POST & json_proto [13:40:58]process_json_proto [13:40:58]json parsed OK: [13:40:58]protocol is kg_v1.0 [13:40:58]action value=close_receipt [13:40:58]process_action close_receipt [13:40:58]cmd_close_receipt [13:40:58]MH_GetDate [13:40:58]Write to MH i2c: F0 00 00 EF 14 F2 [13:40:58]Write i2c OK [13:40:58]MH_I2C_Read... [13:40:58]Read from MH i2c: F0 [13:40:58]MH_I2C_Read... [13:40:58]Read from MH i2c: F0 09 00 [13:40:58]MH_I2C_Read... [13:40:58]Read from MH i2c: F0 09 00 EF 14 00 EB 26 95 66 C9 DC B2 64 C2 [13:40:58]GetLastDocTimeStamp 1721050836 [13:40:58]current date 1721050859 [13:40:58]FM_GetShiftState [13:40:58]SAM_PROTO_GetShiftState [13:40:58]wFMCommunicate request_size=4 [13:40:58]MH_SAM_APDU [13:40:58]CAPDU: 80 13 01 00 [13:40:58]Write to MH i2c: E2 08 00 F0 14 80 13 01 00 00 00 00 00 81 [13:40:58]Write i2c OK [13:40:58]MH_I2C_Read... [13:40:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:58]Read from MH i2c: E2 [13:40:58]MH_I2C_Read... [13:40:58]Read from MH i2c: E2 0E 00 [13:40:58]MH_I2C_Read... [13:40:58]Read from MH i2c: E2 0E 00 F0 14 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 5A [13:40:58]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [13:40:58]wFMCommunicate OK [13:40:58]SAM_PROTO_GetShiftState done [13:40:58]FM_GetShiftState done [13:40:58]opened in 1721003876 [13:40:58]opened+sec_in_day 1721090276 [13:40:58]quantity*price = 66063 [13:40:58]sum+1 = 66064 [13:40:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 660.00 Внесено: 660.00 СДАЧА: 0.00 НСП 1% : 5.85 НДС 12% : 70.15 Наличными: 660.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 169 15.07.2024 13:40 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165296 ФПД: 211828395280400 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T134059&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165296&fm=211828395280400&tin=02508201610067®Number=0000000000090829&sum=66000 [13:40:59]StoreToDocumentArchive [13:40:59]shift 448 fd 165296 [13:40:59]save to /storage/0448/doc_00165296 [13:40:59]save last doc name /storage/0448/doc_00165296 to /storage/kkm_last_doc_name [13:40:59]save OK [13:40:59]Clear old archive folders... [13:40:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:40:59]tlvbuf is 018C5F90 [13:40:59]SAM_PROTO_ClearQueue [13:40:59]wFMCommunicate request_size=4 [13:40:59]MH_SAM_APDU [13:40:59]CAPDU: 80 09 00 00 [13:40:59]Write to MH i2c: E2 08 00 FD 14 80 09 00 00 00 00 00 00 83 [13:40:59]Write i2c OK [13:40:59]MH_I2C_Read... [13:40:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:40:59]Read from MH i2c: E2 [13:40:59]MH_I2C_Read... [13:40:59]Read from MH i2c: E2 03 00 [13:40:59]MH_I2C_Read... [13:40:59]Read from MH i2c: E2 03 00 FD 14 00 90 00 85 [13:40:59]RAPDU: 90 00 [13:40:59]wFMCommunicate OK [13:40:59]SAM_PROTO_ClearQueue done [13:40:59]KKMCreateOFDPacket [13:40:59]OFDProtocolAddRootSTLVToBuf [13:40:59]FM_MakeSignedData [13:40:59]FM_MakeSignedData [13:40:59]SAM_PROTO_SignData [13:40:59]wFMCommunicate request_size=4 [13:40:59]MH_SAM_APDU [13:40:59]CAPDU: 80 0D 01 02 [13:40:59]Write to MH i2c: E2 08 00 FE 14 80 0D 01 02 00 00 00 00 8B [13:40:59]Write i2c OK [13:40:59]MH_I2C_Read... [13:40:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:40:59]Read from MH i2c: E2 [13:40:59]MH_I2C_Read... [13:40:59]Read from MH i2c: E2 03 00 [13:40:59]MH_I2C_Read... [13:40:59]Read from MH i2c: E2 03 00 FE 14 00 90 00 86 [13:40:59]RAPDU: 90 00 [13:40:59]wFMCommunicate OK [13:40:59]wFMCommunicate request_size=255 [13:40:59]MH_SAM_APDU [13:40:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 EB 26 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B0 85 02 00 35 04 06 00 C0 [13:40:59]Write to MH i2c: E2 02 01 FF 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 EB 26 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B0 85 02 00 35 04 06 00 C0 00 00 B7 [13:40:59]Write i2c OK [13:40:59]MH_I2C_Read... [13:41:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:00]Read from MH i2c: E2 [13:41:00]MH_I2C_Read... [13:41:00]Read from MH i2c: E2 03 00 [13:41:00]MH_I2C_Read... [13:41:00]Read from MH i2c: E2 03 00 FF 14 00 90 00 87 [13:41:00]RAPDU: 90 00 [13:41:00]wFMCommunicate OK [13:41:00]wFMCommunicate request_size=10 [13:41:00]MH_SAM_APDU [13:41:00]CAPDU: 80 0D 02 02 05 A8 24 41 08 10 [13:41:00]Write to MH i2c: E2 0D 00 00 15 80 0D 02 02 05 00 A8 24 41 08 10 00 00 BE [13:41:00]Write i2c OK [13:41:00]MH_I2C_Read... [13:41:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:00]Read from MH i2c: E2 [13:41:00]MH_I2C_Read... [13:41:00]Read from MH i2c: E2 03 00 [13:41:00]MH_I2C_Read... [13:41:00]Read from MH i2c: E2 03 00 00 15 00 90 00 89 [13:41:00]RAPDU: 90 00 [13:41:00]wFMCommunicate OK [13:41:00]wFMCommunicate request_size=4 [13:41:00]MH_SAM_APDU [13:41:00]CAPDU: 80 0D 03 02 [13:41:00]Write to MH i2c: E2 08 00 01 15 80 0D 03 02 00 00 00 00 91 [13:41:00]Write i2c OK [13:41:00]MH_I2C_Read... [13:41:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:41:00]Read from MH i2c: E2 [13:41:00]MH_I2C_Read... [13:41:00]Read from MH i2c: E2 0B 00 [13:41:00]MH_I2C_Read... [13:41:00]Read from MH i2c: E2 0B 00 01 15 00 C2 00 E6 D4 6E C7 B1 13 90 00 07 [13:41:00]RAPDU: C2 00 E6 D4 6E C7 B1 13 90 00 [13:41:00]wFMCommunicate OK [13:41:00]SAM_PROTO_SignData done [13:41:00]FM_MakeSignedData done [13:41:00]CreateOFDProtocolMessage [13:41:00]wFMCommunicate request_size=4 [13:41:00]MH_SAM_APDU [13:41:00]CAPDU: 80 11 00 00 [13:41:00]Write to MH i2c: E2 08 00 02 15 80 11 00 00 00 00 00 00 91 [13:41:00]Write i2c OK [13:41:00]MH_I2C_Read... [13:41:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:00]Read from MH i2c: E2 [13:41:00]MH_I2C_Read... [13:41:00]Read from MH i2c: E2 17 00 [13:41:00]MH_I2C_Read... [13:41:00]Read from MH i2c: E2 17 00 02 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E7 [13:41:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:41:00]wFMCommunicate OK [13:41:00]CreateOFDProtocolMessage done [13:41:00]OFDSenderStorePacket 165296 [13:41:00]StoreOFDPacket docnum=165296 [13:41:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D6 C1 07 01 9D 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 EB 26 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B0 85 02 00 35 04 06 00 C0 A8 24 41 08 10 C2 00 E6 D4 6E C7 B1 13 [13:41:00]CheckFolder [13:41:00]dirname=/storage/ofd_packets [13:41:00]CheckFolder done [13:41:00]ProducePacketName [13:41:00]name=ofd_packets/00165296 [13:41:00]NVStorageSaveData ofd_packets/00165296 [13:41:00]File name is /storage/ofd_packets/00165296 [13:41:00]Write 301 bytes [13:41:00]NVStorageSaveData done [13:41:00]OFDSenderStorePacket done [13:41:00]KKMCreateOFDPacket done [13:41:00]NVStorageSaveData kkm_last_timestamp [13:41:00]File name is /storage/kkm_last_timestamp [13:41:00]Write 4 bytes [13:41:00]NVStorageSaveData done [13:41:00]ExternCall_PrintAddStr [13:41:00]wPrintStart [13:41:00]Write to MH i2c: 01 00 00 03 15 18 [13:41:00]Write i2c OK [13:41:00]MH_I2C_Read... [13:41:00]Read from MH i2c: 01 [13:41:00]MH_I2C_Read... [13:41:00]Read from MH i2c: 01 07 00 [13:41:00]MH_I2C_Read... [13:41:00]Read from MH i2c: 01 07 00 03 15 00 00 00 00 00 FF 0F 2D [13:41:00]RasterBufferAndPrint [13:41:00]line Счет N : (1)459407 [13:41:00]line ИНН: 02508201610067 [13:41:00]line Контрольно-Кассовый Чек [13:41:00]line ПРОДАЖА [13:41:00]line ТРК (МРК, ГНК) : 12 [13:41:00]line Товар: 2710124130 [13:41:00]line Аи-92-К-5 [13:41:00]line 10.040 * 65.80 [13:41:00]line = 660.63 [13:41:00]line НДС 12% НСП 1% [13:41:00]line > о реализуемом товаре [13:41:00]line ОКРУГЛЕНИЕ: -0.63 [13:41:00]line ИТОГО: 660.00 [13:41:00]line Внесено: 660.00 [13:41:00]line СДАЧА: 0.00 [13:41:00]line НСП 1% : 5.85 [13:41:00]line НДС 12% : 70.15 [13:41:00]line Наличными: 660.00 [13:41:00]line Безнал.: 0.00 [13:41:00]line Место: АЗС № 72 "Партнер Нефть" [13:41:00]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:41:00]line СНО: Общий режим [13:41:00]line Чек 169 15.07.2024 13:40 [13:41:00]line Смена: 448 ФФД: 1.0 [13:41:00]line ЗНМ: 0300000160 [13:41:00]line РНМ: 0000000000090829 [13:41:00]line Версия ККМ: 001 [13:41:00]line ФМ: 0000000000874718 [13:41:00]line ФД: 165296 [13:41:00]line ФПД: 211828395280400 [13:41:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T134059&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165296&fm=211828395280400&tin=02508201610067®Number=0000000000090829&sum=66000 [13:41:00]written 0, free lines is 4095 [13:41:00]OFD Sender: Processing packet 165296 [packets to send 106, broken 105] [13:41:00]ProducePacketName [13:41:00]name=ofd_packets/00165296 [13:41:00]OFD Sender: To server: pG, [13:41:00]CommunicateWithHost lk.salyk.kg:30040 [13:41:00]ConnectInit lk.salyk.kg [13:41:00]Connected sock=10 [13:41:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D6 C1 07 01 9D 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 EB 26 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B0 85 02 00 35 04 06 00 C0 A8 24 41 08 10 C2 00 E6 D4 6E C7 B1 13 [13:41:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 F8 68 47 00 B1 F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 B0 85 02 00 F4 03 04 00 76 CD 94 66 B6 04 01 00 00 BB 59 DB F7 A4 A2 D1 21 [13:41:00]CommunicateWithHost err = 0 [13:41:00]CheckOFDResponse [13:41:00]1017 (14) - 77093643461234 [13:41:00]1041 (16) - 0000000000874718 [13:41:00]1040 (4) - 165296 [13:41:00]1012 (4) - 15.07.2024 07:19 [13:41:00]1206 (1) - 0 [13:41:00]OFD Sender: Remove packet 165296 [13:41:00]ProducePacketName [13:41:00]name=ofd_packets/00165296 [13:41:00]NVStorageDeleteData [13:41:01]Write to MH i2c: 01 00 00 2D 15 42 [13:41:01]Write i2c OK [13:41:01]MH_I2C_Read... [13:41:01]Read from MH i2c: 01 [13:41:01]MH_I2C_Read... [13:41:01]Read from MH i2c: 01 07 00 [13:41:01]MH_I2C_Read... [13:41:01]Read from MH i2c: 01 07 00 2D 15 00 00 00 00 00 FD 0C 52 [13:41:01]RasterBufferAndPrint [13:41:01]line [13:41:01]line [13:41:01]line [13:41:01]line [13:41:01]line [13:41:01]written 0, free lines is 3331 [13:41:01]MH_Cut [13:41:01]Write to MH i2c: D1 01 00 34 15 01 1B [13:41:01]Write i2c OK [13:41:01]MH_I2C_Read... [13:41:01]Read from MH i2c: D1 [13:41:01]MH_I2C_Read... [13:41:01]Read from MH i2c: D1 01 00 [13:41:01]MH_I2C_Read... [13:41:01]Read from MH i2c: D1 01 00 34 15 00 1A [13:41:01]Write to MH i2c: 01 00 00 35 15 4A [13:41:01]Write i2c OK [13:41:01]MH_I2C_Read... [13:41:01]OFD Sender: No OFD packet to send [13:41:01]*** Cut start [13:41:01]*** Partial cut [13:41:01]*** CUTSNS_PIN = 1 [13:41:01]*** CUTSNS_PIN = 0 [13:41:02]*** Brake cut motor [13:41:02]Read from MH i2c: 01 [13:41:02]MH_I2C_Read... [13:41:02]*** Stop cut motor [13:41:02]*** Cut end [13:41:02]Read from MH i2c: 01 07 00 [13:41:02]MH_I2C_Read... [13:41:02]Read from MH i2c: 01 07 00 35 15 00 00 00 00 00 FF 0F 5F [13:41:02]process_action close_receipt done [13:41:02]requested_data is exist [13:41:02]produce_requested_data [13:41:02]requested_item fm.sn is exist - process it [13:41:02]wFMCommunicate request_size=4 [13:41:02]MH_SAM_APDU [13:41:02]CAPDU: 80 11 00 00 [13:41:02]Write to MH i2c: E2 08 00 36 15 80 11 00 00 00 00 00 00 C5 [13:41:02]Write i2c OK [13:41:02]MH_I2C_Read... [13:41:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:02]Read from MH i2c: E2 [13:41:02]MH_I2C_Read... [13:41:02]Read from MH i2c: E2 17 00 [13:41:02]MH_I2C_Read... [13:41:02]Read from MH i2c: E2 17 00 36 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1B [13:41:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:41:02]wFMCommunicate OK [13:41:02]requested_item fd.num is exist - process it [13:41:02]SAM_PROTO_GetFieldsCounters [13:41:02]wFMCommunicate request_size=4 [13:41:02]MH_SAM_APDU [13:41:02]CAPDU: 80 13 00 00 [13:41:02]Write to MH i2c: E2 08 00 37 15 80 13 00 00 00 00 00 00 C8 [13:41:02]Write i2c OK [13:41:02]MH_I2C_Read... [13:41:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:41:02]Read from MH i2c: E2 [13:41:02]MH_I2C_Read... [13:41:02]Read from MH i2c: E2 62 00 [13:41:02]MH_I2C_Read... [13:41:02]Read from MH i2c: E2 62 00 37 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B0 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [13:41:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B0 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:41:02]wFMCommunicate OK [13:41:02]SAM_PROTO_GetFieldsCounters done [13:41:02]requested_item shift.num is exist - process it [13:41:02]requested_item shift.opened is exist - process it [13:41:02]req_shift_opened [13:41:02]FM_GetShiftState [13:41:02]SAM_PROTO_GetShiftState [13:41:02]wFMCommunicate request_size=4 [13:41:02]MH_SAM_APDU [13:41:02]CAPDU: 80 13 01 00 [13:41:02]Write to MH i2c: E2 08 00 38 15 80 13 01 00 00 00 00 00 CA [13:41:02]Write i2c OK [13:41:02]MH_I2C_Read... [13:41:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:02]Read from MH i2c: E2 [13:41:02]MH_I2C_Read... [13:41:02]Read from MH i2c: E2 0E 00 [13:41:02]MH_I2C_Read... [13:41:02]Read from MH i2c: E2 0E 00 38 15 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 A3 [13:41:02]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [13:41:02]wFMCommunicate OK [13:41:02]SAM_PROTO_GetShiftState done [13:41:02]FM_GetShiftState done [13:41:02]req_shift_opened done [13:41:02]requested_item shift.open_date is exist - process it [13:41:02]req_shift_open_date [13:41:02]req_shift_open_date done [13:41:02]produce_requested_data done [13:41:02]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165296,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [13:41:02]process_action_free close_receipt [13:41:02]json_value_free [13:41:02]json_value_free done [13:41:02]process_json_proto returns [13:41:02]Send response to host [13:41:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165296,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [13:41:02]free response buf [13:41:02]execute_script done [13:41:02]execute_script returns [13:41:02]free content buf [13:41:02]Sock 8.Close socket [13:41:02]Sock 8.Thread stoped [13:41:06]OFD Sender: No OFD packet to send [13:41:11]OFD Sender: No OFD packet to send [13:41:16]OFD Sender: No OFD packet to send [13:41:21]OFD Sender: No OFD packet to send [13:41:24]accept exits with 9 [13:41:24]New connection [13:41:24]New thread 3066854756 created [13:41:24]Thread 3066711396 joined [13:41:24]Waiting for new connection... [13:41:24] Sock 9.Parse request [13:41:24]Sock 9.Check first char [13:41:24]Sock 9.First char is OK [13:41:24]request: POST /json_proto HTTP/1.0 [13:41:24]Method: POST [13:41:24]URL: /json_proto [13:41:24]Method is POST - this is cgi request [13:41:24]url: /json_proto [13:41:24]query_string will be loaded in cgi processing [13:41:24]execute_cgi json_proto POST (null) [13:41:24]execute_cgi path=json_proto method=POST [13:41:24]POST find Content-Length [13:41:24]Host: 172.17.56.4:8080 [13:41:24]Content-Length: 682 [13:41:24]Content-Type: application/json [13:41:24] [13:41:24]POST finish read [13:41:24]Found Content-Length = 682 [13:41:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459408", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:24]execute_script... [13:41:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459408", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:24]POST & json_proto [13:41:24]process_json_proto [13:41:24]json parsed OK: [13:41:24]protocol is kg_v1.0 [13:41:24]action value=close_receipt [13:41:24]process_action close_receipt [13:41:24]cmd_close_receipt [13:41:24]MH_GetDate [13:41:24]Write to MH i2c: F0 00 00 39 15 3D [13:41:24]Write i2c OK [13:41:24]MH_I2C_Read... [13:41:24]Read from MH i2c: F0 [13:41:24]MH_I2C_Read... [13:41:24]Read from MH i2c: F0 09 00 [13:41:24]MH_I2C_Read... [13:41:24]Read from MH i2c: F0 09 00 39 15 00 06 27 95 66 C9 DC B2 64 29 [13:41:24]GetLastDocTimeStamp 1721050859 [13:41:24]current date 1721050886 [13:41:24]FM_GetShiftState [13:41:24]SAM_PROTO_GetShiftState [13:41:24]wFMCommunicate request_size=4 [13:41:24]MH_SAM_APDU [13:41:24]CAPDU: 80 13 01 00 [13:41:24]Write to MH i2c: E2 08 00 3A 15 80 13 01 00 00 00 00 00 CC [13:41:24]Write i2c OK [13:41:24]MH_I2C_Read... [13:41:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:24]Read from MH i2c: E2 [13:41:24]MH_I2C_Read... [13:41:24]Read from MH i2c: E2 0E 00 [13:41:24]MH_I2C_Read... [13:41:24]Read from MH i2c: E2 0E 00 3A 15 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 A5 [13:41:24]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [13:41:24]wFMCommunicate OK [13:41:24]SAM_PROTO_GetShiftState done [13:41:24]FM_GetShiftState done [13:41:24]opened in 1721003876 [13:41:24]opened+sec_in_day 1721090276 [13:41:24]quantity*price = 100016 [13:41:24]sum+1 = 100017 [13:41:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 170 15.07.2024 13:41 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165297 ФПД: 225814447352622 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T134126&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165297&fm=225814447352622&tin=02508201610067®Number=0000000000090829&sum=100000 [13:41:26]StoreToDocumentArchive [13:41:26]shift 448 fd 165297 [13:41:26]save to /storage/0448/doc_00165297 [13:41:26]save last doc name /storage/0448/doc_00165297 to /storage/kkm_last_doc_name [13:41:26]save OK [13:41:26]Clear old archive folders... [13:41:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:41:26]tlvbuf is B6EA9CC0 [13:41:26]SAM_PROTO_ClearQueue [13:41:26]wFMCommunicate request_size=4 [13:41:26]MH_SAM_APDU [13:41:26]CAPDU: 80 09 00 00 [13:41:26]Write to MH i2c: E2 08 00 47 15 80 09 00 00 00 00 00 00 CE [13:41:26]Write i2c OK [13:41:26]MH_I2C_Read... [13:41:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:41:26]Read from MH i2c: E2 [13:41:26]MH_I2C_Read... [13:41:26]Read from MH i2c: E2 03 00 [13:41:26]MH_I2C_Read... [13:41:26]Read from MH i2c: E2 03 00 47 15 00 90 00 D0 [13:41:26]RAPDU: 90 00 [13:41:26]wFMCommunicate OK [13:41:26]SAM_PROTO_ClearQueue done [13:41:26]KKMCreateOFDPacket [13:41:26]OFDProtocolAddRootSTLVToBuf [13:41:26]FM_MakeSignedData [13:41:26]FM_MakeSignedData [13:41:26]SAM_PROTO_SignData [13:41:26]wFMCommunicate request_size=4 [13:41:26]MH_SAM_APDU [13:41:26]CAPDU: 80 0D 01 02 [13:41:26]Write to MH i2c: E2 08 00 48 15 80 0D 01 02 00 00 00 00 D6 [13:41:26]Write i2c OK [13:41:26]MH_I2C_Read... [13:41:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:41:26]Read from MH i2c: E2 [13:41:26]MH_I2C_Read... [13:41:26]Read from MH i2c: E2 03 00 [13:41:26]MH_I2C_Read... [13:41:26]Read from MH i2c: E2 03 00 48 15 00 90 00 D1 [13:41:26]RAPDU: 90 00 [13:41:26]wFMCommunicate OK [13:41:26]wFMCommunicate request_size=255 [13:41:26]MH_SAM_APDU [13:41: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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 06 27 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B1 85 02 00 35 04 06 00 CD [13:41:26]Write to MH i2c: E2 02 01 49 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 06 27 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B1 85 02 00 35 04 06 00 CD 00 00 89 [13:41:26]Write i2c OK [13:41:26]MH_I2C_Read... [13:41:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:26]Read from MH i2c: E2 [13:41:26]MH_I2C_Read... [13:41:26]Read from MH i2c: E2 03 00 [13:41:26]MH_I2C_Read... [13:41:26]Read from MH i2c: E2 03 00 49 15 00 90 00 D2 [13:41:26]RAPDU: 90 00 [13:41:26]wFMCommunicate OK [13:41:26]wFMCommunicate request_size=10 [13:41:26]MH_SAM_APDU [13:41:26]CAPDU: 80 0D 02 02 05 60 85 EB 6B 2E [13:41:26]Write to MH i2c: E2 0D 00 4A 15 80 0D 02 02 05 00 60 85 EB 6B 2E 00 00 4C [13:41:26]Write i2c OK [13:41:26]MH_I2C_Read... [13:41:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:26]Read from MH i2c: E2 [13:41:26]MH_I2C_Read... [13:41:26]Read from MH i2c: E2 03 00 [13:41:26]MH_I2C_Read... [13:41:26]Read from MH i2c: E2 03 00 4A 15 00 90 00 D3 [13:41:26]RAPDU: 90 00 [13:41:26]wFMCommunicate OK [13:41:26]wFMCommunicate request_size=4 [13:41:26]MH_SAM_APDU [13:41:26]CAPDU: 80 0D 03 02 [13:41:26]Write to MH i2c: E2 08 00 4B 15 80 0D 03 02 00 00 00 00 DB [13:41:26]Write i2c OK [13:41:26]MH_I2C_Read... [13:41:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:41:26]OFD Sender: No OFD packet to send [13:41:26]Read from MH i2c: E2 [13:41:26]MH_I2C_Read... [13:41:26]Read from MH i2c: E2 0B 00 [13:41:26]MH_I2C_Read... [13:41:26]Read from MH i2c: E2 0B 00 4B 15 00 82 29 15 81 52 4F 8D 44 90 00 8F [13:41:26]RAPDU: 82 29 15 81 52 4F 8D 44 90 00 [13:41:26]wFMCommunicate OK [13:41:26]SAM_PROTO_SignData done [13:41:26]FM_MakeSignedData done [13:41:26]CreateOFDProtocolMessage [13:41:26]wFMCommunicate request_size=4 [13:41:26]MH_SAM_APDU [13:41:26]CAPDU: 80 11 00 00 [13:41:26]Write to MH i2c: E2 08 00 4C 15 80 11 00 00 00 00 00 00 DB [13:41:26]Write i2c OK [13:41:26]MH_I2C_Read... [13:41:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:26]Read from MH i2c: E2 [13:41:26]MH_I2C_Read... [13:41:26]Read from MH i2c: E2 17 00 [13:41:26]MH_I2C_Read... [13:41:26]Read from MH i2c: E2 17 00 4C 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 31 [13:41:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:41:26]wFMCommunicate OK [13:41:26]CreateOFDProtocolMessage done [13:41:26]OFDSenderStorePacket 165297 [13:41:26]StoreOFDPacket docnum=165297 [13:41:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 10 58 07 01 49 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 06 27 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B1 85 02 00 35 04 06 00 CD 60 85 EB 6B 2E 82 29 15 81 52 4F 8D 44 [13:41:26]CheckFolder [13:41:26]dirname=/storage/ofd_packets [13:41:26]CheckFolder done [13:41:26]ProducePacketName [13:41:26]name=ofd_packets/00165297 [13:41:26]NVStorageSaveData ofd_packets/00165297 [13:41:26]File name is /storage/ofd_packets/00165297 [13:41:26]Write 301 bytes [13:41:26]NVStorageSaveData done [13:41:26]OFDSenderStorePacket done [13:41:26]KKMCreateOFDPacket done [13:41:26]NVStorageSaveData kkm_last_timestamp [13:41:26]File name is /storage/kkm_last_timestamp [13:41:26]Write 4 bytes [13:41:26]NVStorageSaveData done [13:41:26]ExternCall_PrintAddStr [13:41:26]wPrintStart [13:41:26]Write to MH i2c: 01 00 00 4D 15 62 [13:41:26]Write i2c OK [13:41:26]MH_I2C_Read... [13:41:26]Read from MH i2c: 01 [13:41:26]MH_I2C_Read... [13:41:26]Read from MH i2c: 01 07 00 [13:41:26]MH_I2C_Read... [13:41:26]Read from MH i2c: 01 07 00 4D 15 00 00 00 00 00 FF 0F 77 [13:41:26]RasterBufferAndPrint [13:41:26]line Счет N : (1)459408 [13:41:26]line ИНН: 02508201610067 [13:41:26]line Контрольно-Кассовый Чек [13:41:26]line ПРОДАЖА [13:41:26]line ТРК (МРК, ГНК) : 22 [13:41:26]line Товар: 2710124130 [13:41:26]line Аи-92-К-5 [13:41:26]line 15.200 * 65.80 [13:41:26]line = 1000.16 [13:41:26]line НДС 12% НСП 1% [13:41:26]line > о реализуемом товаре [13:41:26]line ОКРУГЛЕНИЕ: -0.16 [13:41:26]line ИТОГО: 1000.00 [13:41:26]line Внесено: 1000.00 [13:41:26]line СДАЧА: 0.00 [13:41:26]line НСП 1% : 8.85 [13:41:26]line НДС 12% : 106.21 [13:41:26]line Наличными: 1000.00 [13:41:26]line Безнал.: 0.00 [13:41:26]line Место: АЗС № 72 "Партнер Нефть" [13:41:26]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:41:26]line СНО: Общий режим [13:41:26]line Чек 170 15.07.2024 13:41 [13:41:26]line Смена: 448 ФФД: 1.0 [13:41:26]line ЗНМ: 0300000160 [13:41:26]line РНМ: 0000000000090829 [13:41:26]line Версия ККМ: 001 [13:41:26]line ФМ: 0000000000874718 [13:41:26]line ФД: 165297 [13:41:26]line ФПД: 225814447352622 [13:41:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T134126&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165297&fm=225814447352622&tin=02508201610067®Number=0000000000090829&sum=100000 [13:41:26]OFD Sender: Processing packet 165297 [packets to send 106, broken 105] [13:41:26]ProducePacketName [13:41:26]name=ofd_packets/00165297 [13:41:26]OFD Sender: To server: pG, [13:41:26]CommunicateWithHost lk.salyk.kg:30040 [13:41:26]ConnectInit lk.salyk.kg [13:41:26]written 0, free lines is 4095 [13:41:27]Connected sock=7 [13:41: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 37 31 38 0F 01 00 00 10 58 07 01 49 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 06 27 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B1 85 02 00 35 04 06 00 CD 60 85 EB 6B 2E 82 29 15 81 52 4F 8D 44 [13:41:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 E4 6F 47 00 6C 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 B1 85 02 00 F4 03 04 00 90 CD 94 66 B6 04 01 00 00 16 4E B5 A0 EB 4B DF 1B [13:41:27]CommunicateWithHost err = 0 [13:41:27]CheckOFDResponse [13:41:27]1017 (14) - 77093643461234 [13:41:27]1041 (16) - 0000000000874718 [13:41:27]1040 (4) - 165297 [13:41:27]1012 (4) - 15.07.2024 07:19 [13:41:27]1206 (1) - 0 [13:41:27]OFD Sender: Remove packet 165297 [13:41:27]ProducePacketName [13:41:27]name=ofd_packets/00165297 [13:41:27]NVStorageDeleteData [13:41:27]Write to MH i2c: 01 00 00 77 15 8C [13:41:27]Write i2c OK [13:41:27]MH_I2C_Read... [13:41:27]Read from MH i2c: 01 [13:41:27]MH_I2C_Read... [13:41:27]Read from MH i2c: 01 07 00 [13:41:27]MH_I2C_Read... [13:41:27]Read from MH i2c: 01 07 00 77 15 00 00 00 00 00 F6 0C 95 [13:41:27]RasterBufferAndPrint [13:41:27]line [13:41:27]line [13:41:27]line [13:41:27]line [13:41:27]line [13:41:27]written 0, free lines is 3324 [13:41:27]MH_Cut [13:41:27]Write to MH i2c: D1 01 00 7E 15 01 65 [13:41:27]Write i2c OK [13:41:27]MH_I2C_Read... [13:41:27]Read from MH i2c: D1 [13:41:27]MH_I2C_Read... [13:41:27]Read from MH i2c: D1 01 00 [13:41:27]MH_I2C_Read... [13:41:27]Read from MH i2c: D1 01 00 7E 15 00 64 [13:41:27]Write to MH i2c: 01 00 00 7F 15 94 [13:41:27]Write i2c OK [13:41:27]MH_I2C_Read... [13:41:27]OFD Sender: No OFD packet to send [13:41:28]*** Cut start [13:41:28]*** Partial cut [13:41:28]*** CUTSNS_PIN = 1 [13:41:28]*** CUTSNS_PIN = 0 [13:41:28]*** Brake cut motor [13:41:28]Read from MH i2c: 01 [13:41:28]MH_I2C_Read... [13:41:28]*** Stop cut motor [13:41:28]*** Cut end [13:41:28]Read from MH i2c: 01 07 00 [13:41:28]MH_I2C_Read... [13:41:28]Read from MH i2c: 01 07 00 7F 15 00 00 00 00 00 FF 0F A9 [13:41:28]process_action close_receipt done [13:41:28]requested_data is exist [13:41:28]produce_requested_data [13:41:28]requested_item fm.sn is exist - process it [13:41:28]wFMCommunicate request_size=4 [13:41:28]MH_SAM_APDU [13:41:28]CAPDU: 80 11 00 00 [13:41:28]Write to MH i2c: E2 08 00 80 15 80 11 00 00 00 00 00 00 0F [13:41:28]Write i2c OK [13:41:28]MH_I2C_Read... [13:41:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:28]Read from MH i2c: E2 [13:41:28]MH_I2C_Read... [13:41:28]Read from MH i2c: E2 17 00 [13:41:28]MH_I2C_Read... [13:41:28]Read from MH i2c: E2 17 00 80 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 65 [13:41:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:41:28]wFMCommunicate OK [13:41:28]requested_item fd.num is exist - process it [13:41:28]SAM_PROTO_GetFieldsCounters [13:41:28]wFMCommunicate request_size=4 [13:41:28]MH_SAM_APDU [13:41:28]CAPDU: 80 13 00 00 [13:41:28]Write to MH i2c: E2 08 00 81 15 80 13 00 00 00 00 00 00 12 [13:41:28]Write i2c OK [13:41:28]MH_I2C_Read... [13:41:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:41:28]Read from MH i2c: E2 [13:41:28]MH_I2C_Read... [13:41:28]Read from MH i2c: E2 62 00 [13:41:28]MH_I2C_Read... [13:41:28]Read from MH i2c: E2 62 00 81 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B1 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [13:41:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B1 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:41:28]wFMCommunicate OK [13:41:28]SAM_PROTO_GetFieldsCounters done [13:41:28]requested_item shift.num is exist - process it [13:41:28]requested_item shift.opened is exist - process it [13:41:28]req_shift_opened [13:41:28]FM_GetShiftState [13:41:28]SAM_PROTO_GetShiftState [13:41:28]wFMCommunicate request_size=4 [13:41:28]MH_SAM_APDU [13:41:28]CAPDU: 80 13 01 00 [13:41:28]Write to MH i2c: E2 08 00 82 15 80 13 01 00 00 00 00 00 14 [13:41:28]Write i2c OK [13:41:28]MH_I2C_Read... [13:41:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:28]Read from MH i2c: E2 [13:41:28]MH_I2C_Read... [13:41:28]Read from MH i2c: E2 0E 00 [13:41:28]MH_I2C_Read... [13:41:28]Read from MH i2c: E2 0E 00 82 15 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 ED [13:41:28]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [13:41:28]wFMCommunicate OK [13:41:28]SAM_PROTO_GetShiftState done [13:41:28]FM_GetShiftState done [13:41:28]req_shift_opened done [13:41:28]requested_item shift.open_date is exist - process it [13:41:28]req_shift_open_date [13:41:28]req_shift_open_date done [13:41:28]produce_requested_data done [13:41:28]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165297,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [13:41:28]process_action_free close_receipt [13:41:28]json_value_free [13:41:28]json_value_free done [13:41:28]process_json_proto returns [13:41:28]Send response to host [13:41:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165297,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [13:41:28]free response buf [13:41:28]execute_script done [13:41:28]execute_script returns [13:41:28]free content buf [13:41:28]Sock 9.Close socket [13:41:28]Sock 9.Thread stoped [13:41:32]OFD Sender: No OFD packet to send [13:41:37]OFD Sender: No OFD packet to send [13:41:42]OFD Sender: No OFD packet to send [13:41:47]OFD Sender: No OFD packet to send [13:41:52]OFD Sender: No OFD packet to send [13:41:57]OFD Sender: No OFD packet to send [13:42:02]OFD Sender: No OFD packet to send [13:42:07]OFD Sender: No OFD packet to send [13:42:12]OFD Sender: No OFD packet to send [13:42:17]OFD Sender: No OFD packet to send [13:42:22]OFD Sender: No OFD packet to send [13:42:27]OFD Sender: No OFD packet to send [13:42:32]OFD Sender: No OFD packet to send [13:42:37]OFD Sender: No OFD packet to send [13:42:42]OFD Sender: No OFD packet to send [13:42:45]accept exits with 8 [13:42:45]New connection [13:42:45]New thread 3066711396 created [13:42:45]Thread 3066854756 joined [13:42:45]Waiting for new connection... [13:42:45] Sock 8.Parse request [13:42:45]Sock 8.Check first char [13:42:45]Sock 8.First char is OK [13:42:45]request: POST /json_proto HTTP/1.0 [13:42:45]Method: POST [13:42:45]URL: /json_proto [13:42:45]Method is POST - this is cgi request [13:42:45]url: /json_proto [13:42:45]query_string will be loaded in cgi processing [13:42:45]execute_cgi json_proto POST (null) [13:42:45]execute_cgi path=json_proto method=POST [13:42:45]POST find Content-Length [13:42:45]Host: 172.17.56.4:8080 [13:42:45]Content-Length: 790 [13:42:45]Content-Type: application/json [13:42:45] [13:42:45]POST finish read [13:42:45]Found Content-Length = 790 [13:42:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459409", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 3.810, "sum" : 248.49, "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 248.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:42:45]execute_script... [13:42:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459409", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 3.810, "sum" : 248.49, "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 248.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:42:45]POST & json_proto [13:42:45]process_json_proto [13:42:45]json parsed OK: [13:42:45]protocol is kg_v1.0 [13:42:45]action value=close_receipt [13:42:45]process_action close_receipt [13:42:45]cmd_close_receipt [13:42:45]MH_GetDate [13:42:45]Write to MH i2c: F0 00 00 83 15 87 [13:42:45]Write i2c OK [13:42:45]MH_I2C_Read... [13:42:45]Read from MH i2c: F0 [13:42:45]MH_I2C_Read... [13:42:45]Read from MH i2c: F0 09 00 [13:42:45]MH_I2C_Read... [13:42:45]Read from MH i2c: F0 09 00 83 15 00 56 27 95 66 C9 DC B2 64 C3 [13:42:45]GetLastDocTimeStamp 1721050886 [13:42:45]current date 1721050966 [13:42:45]FM_GetShiftState [13:42:45]SAM_PROTO_GetShiftState [13:42:45]wFMCommunicate request_size=4 [13:42:45]MH_SAM_APDU [13:42:45]CAPDU: 80 13 01 00 [13:42:45]Write to MH i2c: E2 08 00 84 15 80 13 01 00 00 00 00 00 16 [13:42:45]Write i2c OK [13:42:45]MH_I2C_Read... [13:42:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:42:45]Read from MH i2c: E2 [13:42:45]MH_I2C_Read... [13:42:45]Read from MH i2c: E2 0E 00 [13:42:45]MH_I2C_Read... [13:42:45]Read from MH i2c: E2 0E 00 84 15 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 EF [13:42:45]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [13:42:45]wFMCommunicate OK [13:42:45]SAM_PROTO_GetShiftState done [13:42:45]FM_GetShiftState done [13:42:45]opened in 1721003876 [13:42:45]opened+sec_in_day 1721090276 [13:42:45]quantity*price = 24848 [13:42:45]sum+1 = 24850 [13:42:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 248.49 НСП 1% : 2.20 НДС 12% : 26.39 Наличными: 0.00 Безнал.: 248.49 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 171 15.07.2024 13:42 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 165298 ФПД: 44026366190319 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T134246&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165298&fm=44026366190319&tin=02508201610067®Number=0000000000090829&sum=24849 [13:42:46]StoreToDocumentArchive [13:42:46]shift 448 fd 165298 [13:42:46]save to /storage/0448/doc_00165298 [13:42:46]save last doc name /storage/0448/doc_00165298 to /storage/kkm_last_doc_name [13:42:46]save OK [13:42:46]Clear old archive folders... [13:42:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:42:46]tlvbuf is 01855A70 [13:42:46]SAM_PROTO_ClearQueue [13:42:46]wFMCommunicate request_size=4 [13:42:46]MH_SAM_APDU [13:42:46]CAPDU: 80 09 00 00 [13:42:46]Write to MH i2c: E2 08 00 91 15 80 09 00 00 00 00 00 00 18 [13:42:46]Write i2c OK [13:42:46]MH_I2C_Read... [13:42:46]Read from MH i2c: E2 [13:42:46]MH_I2C_Read... [13:42:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:42:46]Read from MH i2c: E2 03 00 [13:42:46]MH_I2C_Read... [13:42:46]Read from MH i2c: E2 03 00 91 15 00 90 00 1A [13:42:46]RAPDU: 90 00 [13:42:46]wFMCommunicate OK [13:42:46]SAM_PROTO_ClearQueue done [13:42:46]KKMCreateOFDPacket [13:42:46]OFDProtocolAddRootSTLVToBuf [13:42:46]FM_MakeSignedData [13:42:46]FM_MakeSignedData [13:42:46]SAM_PROTO_SignData [13:42:46]wFMCommunicate request_size=4 [13:42:46]MH_SAM_APDU [13:42:46]CAPDU: 80 0D 01 02 [13:42:46]Write to MH i2c: E2 08 00 92 15 80 0D 01 02 00 00 00 00 20 [13:42:46]Write i2c OK [13:42:46]MH_I2C_Read... [13:42:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:42:46]Read from MH i2c: E2 [13:42:46]MH_I2C_Read... [13:42:46]Read from MH i2c: E2 03 00 [13:42:46]MH_I2C_Read... [13:42:46]Read from MH i2c: E2 03 00 92 15 00 90 00 1B [13:42:46]RAPDU: 90 00 [13:42:46]wFMCommunicate OK [13:42:46]wFMCommunicate request_size=255 [13:42:46]MH_SAM_APDU [13:42: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 E2 0E 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 11 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 11 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 56 27 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B2 85 02 00 35 04 06 00 28 [13:42:46]Write to MH i2c: E2 02 01 93 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 0E 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 11 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 11 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 56 27 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B2 85 02 00 35 04 06 00 28 00 00 83 [13:42:46]Write i2c OK [13:42:46]MH_I2C_Read... [13:42:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:42:46]Read from MH i2c: E2 [13:42:46]MH_I2C_Read... [13:42:46]Read from MH i2c: E2 03 00 [13:42:46]MH_I2C_Read... [13:42:46]Read from MH i2c: E2 03 00 93 15 00 90 00 1C [13:42:46]RAPDU: 90 00 [13:42:46]wFMCommunicate OK [13:42:46]wFMCommunicate request_size=10 [13:42:46]MH_SAM_APDU [13:42:46]CAPDU: 80 0D 02 02 05 0A AF EA E2 EF [13:42:46]Write to MH i2c: E2 0D 00 94 15 80 0D 02 02 05 00 0A AF EA E2 EF 00 00 A1 [13:42:46]Write i2c OK [13:42:46]MH_I2C_Read... [13:42:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:42:46]Read from MH i2c: E2 [13:42:46]MH_I2C_Read... [13:42:46]Read from MH i2c: E2 03 00 [13:42:46]MH_I2C_Read... [13:42:46]Read from MH i2c: E2 03 00 94 15 00 90 00 1D [13:42:46]RAPDU: 90 00 [13:42:46]wFMCommunicate OK [13:42:46]wFMCommunicate request_size=4 [13:42:46]MH_SAM_APDU [13:42:46]CAPDU: 80 0D 03 02 [13:42:46]Write to MH i2c: E2 08 00 95 15 80 0D 03 02 00 00 00 00 25 [13:42:46]Write i2c OK [13:42:46]MH_I2C_Read... [13:42:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:42:46]Read from MH i2c: E2 [13:42:46]MH_I2C_Read... [13:42:46]Read from MH i2c: E2 0B 00 [13:42:46]MH_I2C_Read... [13:42:46]Read from MH i2c: E2 0B 00 95 15 00 FA F1 DF 12 E0 49 B2 0B 90 00 E8 [13:42:46]RAPDU: FA F1 DF 12 E0 49 B2 0B 90 00 [13:42:46]wFMCommunicate OK [13:42:46]SAM_PROTO_SignData done [13:42:46]FM_MakeSignedData done [13:42:46]CreateOFDProtocolMessage [13:42:46]wFMCommunicate request_size=4 [13:42:46]MH_SAM_APDU [13:42:46]CAPDU: 80 11 00 00 [13:42:46]Write to MH i2c: E2 08 00 96 15 80 11 00 00 00 00 00 00 25 [13:42:46]Write i2c OK [13:42:46]MH_I2C_Read... [13:42:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:42:46]Read from MH i2c: E2 [13:42:46]MH_I2C_Read... [13:42:46]Read from MH i2c: E2 17 00 [13:42:46]MH_I2C_Read... [13:42:46]Read from MH i2c: E2 17 00 96 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7B [13:42:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:42:46]wFMCommunicate OK [13:42:46]CreateOFDProtocolMessage done [13:42:46]OFDSenderStorePacket 165298 [13:42:46]StoreOFDPacket docnum=165298 [13:42:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 61 CB 07 01 79 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 E2 0E 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 11 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 11 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 56 27 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B2 85 02 00 35 04 06 00 28 0A AF EA E2 EF FA F1 DF 12 E0 49 B2 0B [13:42:46]CheckFolder [13:42:46]dirname=/storage/ofd_packets [13:42:46]CheckFolder done [13:42:46]ProducePacketName [13:42:46]name=ofd_packets/00165298 [13:42:46]NVStorageSaveData ofd_packets/00165298 [13:42:46]File name is /storage/ofd_packets/00165298 [13:42:46]Write 301 bytes [13:42:46]NVStorageSaveData done [13:42:46]OFDSenderStorePacket done [13:42:46]KKMCreateOFDPacket done [13:42:46]NVStorageSaveData kkm_last_timestamp [13:42:46]File name is /storage/kkm_last_timestamp [13:42:46]Write 4 bytes [13:42:46]NVStorageSaveData done [13:42:46]ExternCall_PrintAddStr [13:42:46]wPrintStart [13:42:46]Write to MH i2c: 01 00 00 97 15 AC [13:42:46]Write i2c OK [13:42:46]MH_I2C_Read... [13:42:46]Read from MH i2c: 01 [13:42:46]MH_I2C_Read... [13:42:46]Read from MH i2c: 01 07 00 [13:42:46]MH_I2C_Read... [13:42:46]Read from MH i2c: 01 07 00 97 15 00 00 00 00 00 FF 0F C1 [13:42:46]RasterBufferAndPrint [13:42:46]line Счет N : (1)459409 [13:42:46]line ИНН: 02508201610067 [13:42:46]line Контрольно-Кассовый Чек [13:42:46]line ПРОДАЖА [13:42:46]line ТРК (МРК, ГНК) : 12 [13:42:46]line Товар: 2710124130 [13:42:46]line Аи-92-К-5 [13:42:46]line 3.810 * 65.22 [13:42:46]line = 248.49 [13:42:46]line НДС 12% НСП 1% [13:42:46]line > о реализуемом товаре [13:42:46]line ИТОГО: 248.49 [13:42:46]line НСП 1% : 2.20 [13:42:46]line НДС 12% : 26.39 [13:42:46]line Наличными: 0.00 [13:42:46]line Безнал.: 248.49 [13:42:46]line Место: АЗС № 72 "Партнер Нефть" [13:42:46]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:42:46]line СНО: Общий режим [13:42:46]line Чек 171 15.07.2024 13:42 [13:42:46]line Смена: 448 ФФД: 1.0 [13:42:46]line ЗНМ: 0300000160 [13:42:46]line РНМ: 0000000000090829 [13:42:46]line Версия ККМ: 001 [13:42:46]line Платежная система: KICB Банк [13:42:46]line ФМ: 0000000000874718 [13:42:46]line ФД: 165298 [13:42:46]line ФПД: 44026366190319 [13:42:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T134246&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165298&fm=44026366190319&tin=02508201610067®Number=0000000000090829&sum=24849 [13:42:47]OFD Sender: Processing packet 165298 [packets to send 106, broken 105] [13:42:47]ProducePacketName [13:42:47]name=ofd_packets/00165298 [13:42:47]OFD Sender: To server: pG, [13:42:47]CommunicateWithHost lk.salyk.kg:30040 [13:42:47]ConnectInit lk.salyk.kg [13:42:47]written 0, free lines is 4095 [13:42:47]Connected sock=10 [13:42: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 37 31 38 0F 01 00 00 61 CB 07 01 79 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 E2 0E 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 11 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 11 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 56 27 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B2 85 02 00 35 04 06 00 28 0A AF EA E2 EF FA F1 DF 12 E0 49 B2 0B [13:42:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 6B F2 47 00 1F 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B2 85 02 00 F4 03 04 00 E0 CD 94 66 B6 04 01 00 00 E5 BB 0A F4 B7 6B C8 27 [13:42:47]CommunicateWithHost err = 0 [13:42:47]CheckOFDResponse [13:42:47]1017 (14) - 77093643461234 [13:42:47]1041 (16) - 0000000000874718 [13:42:47]1040 (4) - 165298 [13:42:47]1012 (4) - 15.07.2024 07:21 [13:42:47]1206 (1) - 0 [13:42:47]OFD Sender: Remove packet 165298 [13:42:47]ProducePacketName [13:42:47]name=ofd_packets/00165298 [13:42:47]NVStorageDeleteData [13:42:47]Write to MH i2c: 01 00 00 C0 15 D5 [13:42:47]Write i2c OK [13:42:47]MH_I2C_Read... [13:42:47]Read from MH i2c: 01 [13:42:47]MH_I2C_Read... [13:42:47]Read from MH i2c: 01 07 00 [13:42:47]MH_I2C_Read... [13:42:47]Read from MH i2c: 01 07 00 C0 15 00 00 00 00 00 0F 0D F8 [13:42:47]RasterBufferAndPrint [13:42:47]line [13:42:47]line [13:42:47]line [13:42:47]line [13:42:47]line [13:42:47]written 0, free lines is 3349 [13:42:47]MH_Cut [13:42:47]Write to MH i2c: D1 01 00 C7 15 01 AE [13:42:47]Write i2c OK [13:42:47]MH_I2C_Read... [13:42:47]Read from MH i2c: D1 [13:42:47]MH_I2C_Read... [13:42:47]Read from MH i2c: D1 01 00 [13:42:47]MH_I2C_Read... [13:42:47]Read from MH i2c: D1 01 00 C7 15 00 AD [13:42:47]Write to MH i2c: 01 00 00 C8 15 DD [13:42:47]Write i2c OK [13:42:47]MH_I2C_Read... [13:42:47]OFD Sender: No OFD packet to send [13:42:48]*** Cut start [13:42:48]*** Partial cut [13:42:48]*** CUTSNS_PIN = 1 [13:42:48]*** CUTSNS_PIN = 0 [13:42:48]*** Brake cut motor [13:42:48]Read from MH i2c: 01 [13:42:48]MH_I2C_Read... [13:42:48]*** Stop cut motor [13:42:48]*** Cut end [13:42:48]Read from MH i2c: 01 07 00 [13:42:48]MH_I2C_Read... [13:42:48]Read from MH i2c: 01 07 00 C8 15 00 00 00 00 00 FF 0F F2 [13:42:48]process_action close_receipt done [13:42:48]requested_data is exist [13:42:48]produce_requested_data [13:42:48]requested_item fm.sn is exist - process it [13:42:48]wFMCommunicate request_size=4 [13:42:48]MH_SAM_APDU [13:42:48]CAPDU: 80 11 00 00 [13:42:48]Write to MH i2c: E2 08 00 C9 15 80 11 00 00 00 00 00 00 58 [13:42:48]Write i2c OK [13:42:48]MH_I2C_Read... [13:42:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:42:48]Read from MH i2c: E2 [13:42:48]MH_I2C_Read... [13:42:48]Read from MH i2c: E2 17 00 [13:42:48]MH_I2C_Read... [13:42:48]Read from MH i2c: E2 17 00 C9 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AE [13:42:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:42:48]wFMCommunicate OK [13:42:48]requested_item fd.num is exist - process it [13:42:48]SAM_PROTO_GetFieldsCounters [13:42:48]wFMCommunicate request_size=4 [13:42:48]MH_SAM_APDU [13:42:48]CAPDU: 80 13 00 00 [13:42:48]Write to MH i2c: E2 08 00 CA 15 80 13 00 00 00 00 00 00 5B [13:42:48]Write i2c OK [13:42:48]MH_I2C_Read... [13:42:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:42:48]Read from MH i2c: E2 [13:42:48]MH_I2C_Read... [13:42:48]Read from MH i2c: E2 62 00 [13:42:48]MH_I2C_Read... [13:42:48]Read from MH i2c: E2 62 00 CA 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B2 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 7D [13:42:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B2 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:42:48]wFMCommunicate OK [13:42:48]SAM_PROTO_GetFieldsCounters done [13:42:48]requested_item shift.num is exist - process it [13:42:48]requested_item shift.opened is exist - process it [13:42:48]req_shift_opened [13:42:48]FM_GetShiftState [13:42:48]SAM_PROTO_GetShiftState [13:42:48]wFMCommunicate request_size=4 [13:42:48]MH_SAM_APDU [13:42:48]CAPDU: 80 13 01 00 [13:42:48]Write to MH i2c: E2 08 00 CB 15 80 13 01 00 00 00 00 00 5D [13:42:48]Write i2c OK [13:42:48]MH_I2C_Read... [13:42:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:42:49]Read from MH i2c: E2 [13:42:49]MH_I2C_Read... [13:42:49]Read from MH i2c: E2 0E 00 [13:42:49]MH_I2C_Read... [13:42:49]Read from MH i2c: E2 0E 00 CB 15 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 36 [13:42:49]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [13:42:49]wFMCommunicate OK [13:42:49]SAM_PROTO_GetShiftState done [13:42:49]FM_GetShiftState done [13:42:49]req_shift_opened done [13:42:49]requested_item shift.open_date is exist - process it [13:42:49]req_shift_open_date [13:42:49]req_shift_open_date done [13:42:49]produce_requested_data done [13:42:49]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165298,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [13:42:49]process_action_free close_receipt [13:42:49]json_value_free [13:42:49]json_value_free done [13:42:49]process_json_proto returns [13:42:49]Send response to host [13:42:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165298,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [13:42:49]free response buf [13:42:49]execute_script done [13:42:49]execute_script returns [13:42:49]free content buf [13:42:49]Sock 8.Close socket [13:42:49]Sock 8.Thread stoped [13:42:52]OFD Sender: No OFD packet to send [13:42:57]OFD Sender: No OFD packet to send [13:43:02]OFD Sender: No OFD packet to send [13:43:07]OFD Sender: No OFD packet to send [13:43:12]OFD Sender: No OFD packet to send [13:43:17]OFD Sender: No OFD packet to send [13:43:22]OFD Sender: No OFD packet to send [13:43:27]OFD Sender: No OFD packet to send [13:43:32]OFD Sender: No OFD packet to send [13:43:37]OFD Sender: No OFD packet to send [13:43:42]OFD Sender: No OFD packet to send [13:43:43]accept exits with 9 [13:43:43]New connection [13:43:43]New thread 3066854756 created [13:43:43]Thread 3066711396 joined [13:43:43]Waiting for new connection... [13:43:43] Sock 9.Parse request [13:43:43]Sock 9.Check first char [13:43:43]Sock 9.First char is OK [13:43:43]request: POST /json_proto HTTP/1.0 [13:43:43]Method: POST [13:43:43]URL: /json_proto [13:43:43]Method is POST - this is cgi request [13:43:43]url: /json_proto [13:43:43]query_string will be loaded in cgi processing [13:43:43]execute_cgi json_proto POST (null) [13:43:43]execute_cgi path=json_proto method=POST [13:43:43]POST find Content-Length [13:43:43]Host: 172.17.56.4:8080 [13:43:43]Content-Length: 677 [13:43:43]Content-Type: application/json [13:43:43] [13:43:43]POST finish read [13:43:43]Found Content-Length = 677 [13:43:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459410", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:43:43]execute_script... [13:43:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459410", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:43:43]POST & json_proto [13:43:43]process_json_proto [13:43:43]json parsed OK: [13:43:43]protocol is kg_v1.0 [13:43:43]action value=close_receipt [13:43:43]process_action close_receipt [13:43:43]cmd_close_receipt [13:43:43]MH_GetDate [13:43:43]Write to MH i2c: F0 00 00 CC 15 D0 [13:43:43]Write i2c OK [13:43:43]MH_I2C_Read... [13:43:43]Read from MH i2c: F0 [13:43:43]MH_I2C_Read... [13:43:43]Read from MH i2c: F0 09 00 [13:43:43]MH_I2C_Read... [13:43:43]Read from MH i2c: F0 09 00 CC 15 00 91 27 95 66 C9 DC B2 64 47 [13:43:43]GetLastDocTimeStamp 1721050966 [13:43:43]current date 1721051025 [13:43:43]FM_GetShiftState [13:43:43]SAM_PROTO_GetShiftState [13:43:43]wFMCommunicate request_size=4 [13:43:43]MH_SAM_APDU [13:43:43]CAPDU: 80 13 01 00 [13:43:43]Write to MH i2c: E2 08 00 CD 15 80 13 01 00 00 00 00 00 5F [13:43:43]Write i2c OK [13:43:43]MH_I2C_Read... [13:43:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:43]Read from MH i2c: E2 [13:43:43]MH_I2C_Read... [13:43:43]Read from MH i2c: E2 0E 00 [13:43:43]MH_I2C_Read... [13:43:43]Read from MH i2c: E2 0E 00 CD 15 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 38 [13:43:43]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [13:43:43]wFMCommunicate OK [13:43:43]SAM_PROTO_GetShiftState done [13:43:43]FM_GetShiftState done [13:43:43]opened in 1721003876 [13:43:43]opened+sec_in_day 1721090276 [13:43:43]quantity*price = 30004 [13:43:43]sum+1 = 30006 [13:43:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 172 15.07.2024 13:43 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165299 ФПД: 78373766942633 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T134345&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165299&fm=78373766942633&tin=02508201610067®Number=0000000000090829&sum=30000 [13:43:45]StoreToDocumentArchive [13:43:45]shift 448 fd 165299 [13:43:45]save to /storage/0448/doc_00165299 [13:43:45]save last doc name /storage/0448/doc_00165299 to /storage/kkm_last_doc_name [13:43:45]save OK [13:43:45]Clear old archive folders... [13:43:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:43:45]tlvbuf is 01811B30 [13:43:45]SAM_PROTO_ClearQueue [13:43:45]wFMCommunicate request_size=4 [13:43:45]MH_SAM_APDU [13:43:45]CAPDU: 80 09 00 00 [13:43:45]Write to MH i2c: E2 08 00 DA 15 80 09 00 00 00 00 00 00 61 [13:43:45]Write i2c OK [13:43:45]MH_I2C_Read... [13:43:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:43:45]Read from MH i2c: E2 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: E2 03 00 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: E2 03 00 DA 15 00 90 00 63 [13:43:45]RAPDU: 90 00 [13:43:45]wFMCommunicate OK [13:43:45]SAM_PROTO_ClearQueue done [13:43:45]KKMCreateOFDPacket [13:43:45]OFDProtocolAddRootSTLVToBuf [13:43:45]FM_MakeSignedData [13:43:45]FM_MakeSignedData [13:43:45]SAM_PROTO_SignData [13:43:45]wFMCommunicate request_size=4 [13:43:45]MH_SAM_APDU [13:43:45]CAPDU: 80 0D 01 02 [13:43:45]Write to MH i2c: E2 08 00 DB 15 80 0D 01 02 00 00 00 00 69 [13:43:45]Write i2c OK [13:43:45]MH_I2C_Read... [13:43:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:43:45]Read from MH i2c: E2 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: E2 03 00 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: E2 03 00 DB 15 00 90 00 64 [13:43:45]RAPDU: 90 00 [13:43:45]wFMCommunicate OK [13:43:45]wFMCommunicate request_size=255 [13:43:45]MH_SAM_APDU [13:43:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 91 27 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B3 85 02 00 35 04 06 00 47 [13:43:45]Write to MH i2c: E2 02 01 DC 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 91 27 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B3 85 02 00 35 04 06 00 47 00 00 44 [13:43:45]Write i2c OK [13:43:45]MH_I2C_Read... [13:43:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:45]Read from MH i2c: E2 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: E2 03 00 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: E2 03 00 DC 15 00 90 00 65 [13:43:45]RAPDU: 90 00 [13:43:45]wFMCommunicate OK [13:43:45]wFMCommunicate request_size=10 [13:43:45]MH_SAM_APDU [13:43:45]CAPDU: 80 0D 02 02 05 47 D0 89 CF A9 [13:43:45]Write to MH i2c: E2 0D 00 DD 15 80 0D 02 02 05 00 47 D0 89 CF A9 00 00 8E [13:43:45]Write i2c OK [13:43:45]MH_I2C_Read... [13:43:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:45]Read from MH i2c: E2 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: E2 03 00 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: E2 03 00 DD 15 00 90 00 66 [13:43:45]RAPDU: 90 00 [13:43:45]wFMCommunicate OK [13:43:45]wFMCommunicate request_size=4 [13:43:45]MH_SAM_APDU [13:43:45]CAPDU: 80 0D 03 02 [13:43:45]Write to MH i2c: E2 08 00 DE 15 80 0D 03 02 00 00 00 00 6E [13:43:45]Write i2c OK [13:43:45]MH_I2C_Read... [13:43:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:43:45]Read from MH i2c: E2 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: E2 0B 00 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: E2 0B 00 DE 15 00 42 C0 C1 F8 81 FC 79 A8 90 00 C8 [13:43:45]RAPDU: 42 C0 C1 F8 81 FC 79 A8 90 00 [13:43:45]wFMCommunicate OK [13:43:45]SAM_PROTO_SignData done [13:43:45]FM_MakeSignedData done [13:43:45]CreateOFDProtocolMessage [13:43:45]wFMCommunicate request_size=4 [13:43:45]MH_SAM_APDU [13:43:45]CAPDU: 80 11 00 00 [13:43:45]Write to MH i2c: E2 08 00 DF 15 80 11 00 00 00 00 00 00 6E [13:43:45]Write i2c OK [13:43:45]MH_I2C_Read... [13:43:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:45]Read from MH i2c: E2 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: E2 17 00 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: E2 17 00 DF 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C4 [13:43:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:43:45]wFMCommunicate OK [13:43:45]CreateOFDProtocolMessage done [13:43:45]OFDSenderStorePacket 165299 [13:43:45]StoreOFDPacket docnum=165299 [13:43:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 5D 1F 07 01 88 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 91 27 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B3 85 02 00 35 04 06 00 47 47 D0 89 CF A9 42 C0 C1 F8 81 FC 79 A8 [13:43:45]CheckFolder [13:43:45]dirname=/storage/ofd_packets [13:43:45]CheckFolder done [13:43:45]ProducePacketName [13:43:45]name=ofd_packets/00165299 [13:43:45]NVStorageSaveData ofd_packets/00165299 [13:43:45]File name is /storage/ofd_packets/00165299 [13:43:45]Write 301 bytes [13:43:45]NVStorageSaveData done [13:43:45]OFDSenderStorePacket done [13:43:45]KKMCreateOFDPacket done [13:43:45]NVStorageSaveData kkm_last_timestamp [13:43:45]File name is /storage/kkm_last_timestamp [13:43:45]Write 4 bytes [13:43:45]NVStorageSaveData done [13:43:45]ExternCall_PrintAddStr [13:43:45]wPrintStart [13:43:45]Write to MH i2c: 01 00 00 E0 15 F5 [13:43:45]Write i2c OK [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: 01 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: 01 07 00 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: 01 07 00 E0 15 00 00 00 00 00 FF 0F 0A [13:43:45]RasterBufferAndPrint [13:43:45]line Счет N : (1)459410 [13:43:45]line ИНН: 02508201610067 [13:43:45]line Контрольно-Кассовый Чек [13:43:45]line ПРОДАЖА [13:43:45]line ТРК (МРК, ГНК) : 22 [13:43:45]line Товар: 2710124130 [13:43:45]line Аи-92-К-5 [13:43:45]line 4.560 * 65.80 [13:43:45]line = 300.05 [13:43:45]line НДС 12% НСП 1% [13:43:45]line > о реализуемом товаре [13:43:45]line ОКРУГЛЕНИЕ: -0.05 [13:43:45]line ИТОГО: 300.00 [13:43:45]line Внесено: 300.00 [13:43:45]line СДАЧА: 0.00 [13:43:45]line НСП 1% : 2.65 [13:43:45]line НДС 12% : 31.86 [13:43:45]line Наличными: 300.00 [13:43:45]line Безнал.: 0.00 [13:43:45]line Место: АЗС № 72 "Партнер Нефть" [13:43:45]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:43:45]line СНО: Общий режим [13:43:45]line Чек 172 15.07.2024 13:43 [13:43:45]line Смена: 448 ФФД: 1.0 [13:43:45]line ЗНМ: 0300000160 [13:43:45]line РНМ: 0000000000090829 [13:43:45]line Версия ККМ: 001 [13:43:45]line ФМ: 0000000000874718 [13:43:45]line ФД: 165299 [13:43:45]line ФПД: 78373766942633 [13:43:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T134345&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165299&fm=78373766942633&tin=02508201610067®Number=0000000000090829&sum=30000 [13:43:45]OFD Sender: Processing packet 165299 [packets to send 106, broken 105] [13:43:45]ProducePacketName [13:43:45]name=ofd_packets/00165299 [13:43:45]OFD Sender: To server: pG, [13:43:45]CommunicateWithHost lk.salyk.kg:30040 [13:43:45]ConnectInit lk.salyk.kg [13:43:45]written 0, free lines is 4095 [13:43:45]Connected sock=10 [13:43:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 5D 1F 07 01 88 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 91 27 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B3 85 02 00 35 04 06 00 47 47 D0 89 CF A9 42 C0 C1 F8 81 FC 79 A8 [13:43:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 C1 E3 47 00 77 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B3 85 02 00 F4 03 04 00 1B CE 94 66 B6 04 01 00 00 B6 C6 6F BB 82 73 42 A8 [13:43:46]CommunicateWithHost err = 0 [13:43:46]CheckOFDResponse [13:43:46]1017 (14) - 77093643461234 [13:43:46]1041 (16) - 0000000000874718 [13:43:46]1040 (4) - 165299 [13:43:46]1012 (4) - 15.07.2024 07:22 [13:43:46]1206 (1) - 0 [13:43:46]OFD Sender: Remove packet 165299 [13:43:46]ProducePacketName [13:43:46]name=ofd_packets/00165299 [13:43:46]NVStorageDeleteData [13:43:46]Write to MH i2c: 01 00 00 0A 16 20 [13:43:46]Write i2c OK [13:43:46]MH_I2C_Read... [13:43:46]Read from MH i2c: 01 [13:43:46]MH_I2C_Read... [13:43:46]Read from MH i2c: 01 07 00 [13:43:46]MH_I2C_Read... [13:43:46]Read from MH i2c: 01 07 00 0A 16 00 00 00 00 00 04 0D 38 [13:43:46]RasterBufferAndPrint [13:43:46]line [13:43:46]line [13:43:46]line [13:43:46]line [13:43:46]line [13:43:46]written 0, free lines is 3338 [13:43:46]MH_Cut [13:43:46]Write to MH i2c: D1 01 00 11 16 01 F9 [13:43:46]Write i2c OK [13:43:46]MH_I2C_Read... [13:43:46]Read from MH i2c: D1 [13:43:46]MH_I2C_Read... [13:43:46]Read from MH i2c: D1 01 00 [13:43:46]MH_I2C_Read... [13:43:46]Read from MH i2c: D1 01 00 11 16 00 F8 [13:43:46]Write to MH i2c: 01 00 00 12 16 28 [13:43:46]Write i2c OK [13:43:46]MH_I2C_Read... [13:43:46]OFD Sender: No OFD packet to send [13:43:46]*** Cut start [13:43:46]*** Partial cut [13:43:46]*** CUTSNS_PIN = 1 [13:43:47]*** CUTSNS_PIN = 0 [13:43:47]*** Brake cut motor [13:43:47]Read from MH i2c: 01 [13:43:47]MH_I2C_Read... [13:43:47]*** Stop cut motor [13:43:47]*** Cut end [13:43:47]Read from MH i2c: 01 07 00 [13:43:47]MH_I2C_Read... [13:43:47]Read from MH i2c: 01 07 00 12 16 00 00 00 00 00 FF 0F 3D [13:43:47]process_action close_receipt done [13:43:47]requested_data is exist [13:43:47]produce_requested_data [13:43:47]requested_item fm.sn is exist - process it [13:43:47]wFMCommunicate request_size=4 [13:43:47]MH_SAM_APDU [13:43:47]CAPDU: 80 11 00 00 [13:43:47]Write to MH i2c: E2 08 00 13 16 80 11 00 00 00 00 00 00 A3 [13:43:47]Write i2c OK [13:43:47]MH_I2C_Read... [13:43:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:47]Read from MH i2c: E2 [13:43:47]MH_I2C_Read... [13:43:47]Read from MH i2c: E2 17 00 [13:43:47]MH_I2C_Read... [13:43:47]Read from MH i2c: E2 17 00 13 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F9 [13:43:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:43:47]wFMCommunicate OK [13:43:47]requested_item fd.num is exist - process it [13:43:47]SAM_PROTO_GetFieldsCounters [13:43:47]wFMCommunicate request_size=4 [13:43:47]MH_SAM_APDU [13:43:47]CAPDU: 80 13 00 00 [13:43:47]Write to MH i2c: E2 08 00 14 16 80 13 00 00 00 00 00 00 A6 [13:43:47]Write i2c OK [13:43:47]MH_I2C_Read... [13:43:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:43:47]Read from MH i2c: E2 [13:43:47]MH_I2C_Read... [13:43:47]Read from MH i2c: E2 62 00 [13:43:47]MH_I2C_Read... [13:43:47]Read from MH i2c: E2 62 00 14 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B3 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 CC [13:43: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B3 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:43:47]wFMCommunicate OK [13:43:47]SAM_PROTO_GetFieldsCounters done [13:43:47]requested_item shift.num is exist - process it [13:43:47]requested_item shift.opened is exist - process it [13:43:47]req_shift_opened [13:43:47]FM_GetShiftState [13:43:47]SAM_PROTO_GetShiftState [13:43:47]wFMCommunicate request_size=4 [13:43:47]MH_SAM_APDU [13:43:47]CAPDU: 80 13 01 00 [13:43:47]Write to MH i2c: E2 08 00 15 16 80 13 01 00 00 00 00 00 A8 [13:43:47]Write i2c OK [13:43:47]MH_I2C_Read... [13:43:47]Read from MH i2c: E2 [13:43:47]MH_I2C_Read... [13:43:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:47]Read from MH i2c: E2 0E 00 [13:43:47]MH_I2C_Read... [13:43:47]Read from MH i2c: E2 0E 00 15 16 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 81 [13:43:47]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [13:43:47]wFMCommunicate OK [13:43:47]SAM_PROTO_GetShiftState done [13:43:47]FM_GetShiftState done [13:43:47]req_shift_opened done [13:43:47]requested_item shift.open_date is exist - process it [13:43:47]req_shift_open_date [13:43:47]req_shift_open_date done [13:43:47]produce_requested_data done [13:43:47]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165299,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [13:43:47]process_action_free close_receipt [13:43:47]json_value_free [13:43:47]json_value_free done [13:43:47]process_json_proto returns [13:43:47]Send response to host [13:43:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165299,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [13:43:47]free response buf [13:43:47]execute_script done [13:43:47]execute_script returns [13:43:47]free content buf [13:43:47]Sock 9.Close socket [13:43:47]Sock 9.Thread stoped [13:43:51]OFD Sender: No OFD packet to send [13:43:56]OFD Sender: No OFD packet to send [13:44:01]OFD Sender: No OFD packet to send [13:44:06]OFD Sender: No OFD packet to send [13:44:11]OFD Sender: No OFD packet to send [13:44:16]OFD Sender: No OFD packet to send [13:44:21]OFD Sender: No OFD packet to send [13:44:26]OFD Sender: No OFD packet to send [13:44:31]OFD Sender: No OFD packet to send [13:44:36]OFD Sender: No OFD packet to send [13:44:41]OFD Sender: No OFD packet to send [13:44:46]OFD Sender: No OFD packet to send [13:44:51]OFD Sender: No OFD packet to send [13:44:56]OFD Sender: No OFD packet to send [13:45:01]OFD Sender: No OFD packet to send [13:45:06]OFD Sender: No OFD packet to send [13:45:11]OFD Sender: No OFD packet to send [13:45:16]OFD Sender: No OFD packet to send [13:45:21]OFD Sender: No OFD packet to send [13:45:26]OFD Sender: No OFD packet to send [13:45:31]OFD Sender: No OFD packet to send [13:45:36]OFD Sender: No OFD packet to send [13:45:41]OFD Sender: No OFD packet to send [13:45:46]OFD Sender: No OFD packet to send [13:45:51]OFD Sender: No OFD packet to send [13:45:56]OFD Sender: No OFD packet to send [13:45:57]accept exits with 8 [13:45:57]New connection [13:45:57]New thread 3066711396 created [13:45:57]Thread 3066854756 joined [13:45:57]Waiting for new connection... [13:45:57] Sock 8.Parse request [13:45:57]Sock 8.Check first char [13:45:57]Sock 8.First char is OK [13:45:57]request: POST /json_proto HTTP/1.0 [13:45:57]Method: POST [13:45:57]URL: /json_proto [13:45:57]Method is POST - this is cgi request [13:45:57]url: /json_proto [13:45:57]query_string will be loaded in cgi processing [13:45:57]execute_cgi json_proto POST (null) [13:45:57]execute_cgi path=json_proto method=POST [13:45:57]POST find Content-Length [13:45:57]Host: 172.17.56.4:8080 [13:45:57]Content-Length: 674 [13:45:57]Content-Type: application/json [13:45:57] [13:45:57]POST finish read [13:45:57]Found Content-Length = 674 [13:45:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459411", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 9.050, "sum" : 650.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:57]execute_script... [13:45:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459411", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 9.050, "sum" : 650.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:57]POST & json_proto [13:45:57]process_json_proto [13:45:57]json parsed OK: [13:45:57]protocol is kg_v1.0 [13:45:57]action value=close_receipt [13:45:57]process_action close_receipt [13:45:57]cmd_close_receipt [13:45:57]MH_GetDate [13:45:57]Write to MH i2c: F0 00 00 16 16 1B [13:45:57]Write i2c OK [13:45:57]MH_I2C_Read... [13:45:57]Read from MH i2c: F0 [13:45:57]MH_I2C_Read... [13:45:57]Read from MH i2c: F0 09 00 [13:45:57]MH_I2C_Read... [13:45:57]Read from MH i2c: F0 09 00 16 16 00 16 28 95 66 C9 DC B2 64 18 [13:45:57]GetLastDocTimeStamp 1721051025 [13:45:57]current date 1721051158 [13:45:57]FM_GetShiftState [13:45:57]SAM_PROTO_GetShiftState [13:45:57]wFMCommunicate request_size=4 [13:45:57]MH_SAM_APDU [13:45:57]CAPDU: 80 13 01 00 [13:45:57]Write to MH i2c: E2 08 00 17 16 80 13 01 00 00 00 00 00 AA [13:45:57]Write i2c OK [13:45:57]MH_I2C_Read... [13:45:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:57]Read from MH i2c: E2 [13:45:57]MH_I2C_Read... [13:45:57]Read from MH i2c: E2 0E 00 [13:45:57]MH_I2C_Read... [13:45:57]Read from MH i2c: E2 0E 00 17 16 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 83 [13:45:57]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [13:45:57]wFMCommunicate OK [13:45:57]SAM_PROTO_GetShiftState done [13:45:57]FM_GetShiftState done [13:45:57]opened in 1721003876 [13:45:57]opened+sec_in_day 1721090276 [13:45:57]quantity*price = 65069 [13:45:57]sum+1 = 65071 [13:45:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.70 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.76 НДС 12% : 69.10 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 173 15.07.2024 13:45 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165300 ФПД: 37680268247857 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T134558&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165300&fm=37680268247857&tin=02508201610067®Number=0000000000090829&sum=65000 [13:45:58]StoreToDocumentArchive [13:45:58]shift 448 fd 165300 [13:45:58]save to /storage/0448/doc_00165300 [13:45:58]save last doc name /storage/0448/doc_00165300 to /storage/kkm_last_doc_name [13:45:58]save OK [13:45:58]Clear old archive folders... [13:45:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:45:58]tlvbuf is 018113A0 [13:45:58]SAM_PROTO_ClearQueue [13:45:58]wFMCommunicate request_size=4 [13:45:58]MH_SAM_APDU [13:45:58]CAPDU: 80 09 00 00 [13:45:58]Write to MH i2c: E2 08 00 24 16 80 09 00 00 00 00 00 00 AC [13:45:58]Write i2c OK [13:45:58]MH_I2C_Read... [13:45:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:45:58]Read from MH i2c: E2 [13:45:58]MH_I2C_Read... [13:45:58]Read from MH i2c: E2 03 00 [13:45:58]MH_I2C_Read... [13:45:58]Read from MH i2c: E2 03 00 24 16 00 90 00 AE [13:45:58]RAPDU: 90 00 [13:45:58]wFMCommunicate OK [13:45:58]SAM_PROTO_ClearQueue done [13:45:58]KKMCreateOFDPacket [13:45:58]OFDProtocolAddRootSTLVToBuf [13:45:58]FM_MakeSignedData [13:45:58]FM_MakeSignedData [13:45:58]SAM_PROTO_SignData [13:45:58]wFMCommunicate request_size=4 [13:45:58]MH_SAM_APDU [13:45:58]CAPDU: 80 0D 01 02 [13:45:58]Write to MH i2c: E2 08 00 25 16 80 0D 01 02 00 00 00 00 B4 [13:45:58]Write i2c OK [13:45:58]MH_I2C_Read... [13:45:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:45:58]Read from MH i2c: E2 [13:45:58]MH_I2C_Read... [13:45:58]Read from MH i2c: E2 03 00 [13:45:58]MH_I2C_Read... [13:45:58]Read from MH i2c: E2 03 00 25 16 00 90 00 AF [13:45:58]RAPDU: 90 00 [13:45:58]wFMCommunicate OK [13:45:58]wFMCommunicate request_size=255 [13:45:58]MH_SAM_APDU [13:45:58]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5A 23 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 2E FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 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 FE 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 16 28 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B4 85 02 00 35 04 06 00 22 45 1F 01 [13:45:58]Write to MH i2c: E2 02 01 26 16 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5A 23 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 2E FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 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 FE 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 16 28 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B4 85 02 00 35 04 06 00 22 45 1F 01 00 00 7F [13:45:58]Write i2c OK [13:45:58]MH_I2C_Read... [13:45:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:59]Read from MH i2c: E2 [13:45:59]MH_I2C_Read... [13:45:59]Read from MH i2c: E2 03 00 [13:45:59]MH_I2C_Read... [13:45:59]Read from MH i2c: E2 03 00 26 16 00 90 00 B0 [13:45:59]RAPDU: 90 00 [13:45:59]wFMCommunicate OK [13:45:59]wFMCommunicate request_size=7 [13:45:59]MH_SAM_APDU [13:45:59]CAPDU: 80 0D 02 02 02 03 31 [13:45:59]Write to MH i2c: E2 0A 00 27 16 80 0D 02 02 02 00 03 31 00 00 EF [13:45:59]Write i2c OK [13:45:59]MH_I2C_Read... [13:45:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:59]Read from MH i2c: E2 [13:45:59]MH_I2C_Read... [13:45:59]Read from MH i2c: E2 03 00 [13:45:59]MH_I2C_Read... [13:45:59]Read from MH i2c: E2 03 00 27 16 00 90 00 B1 [13:45:59]RAPDU: 90 00 [13:45:59]wFMCommunicate OK [13:45:59]wFMCommunicate request_size=4 [13:45:59]MH_SAM_APDU [13:45:59]CAPDU: 80 0D 03 02 [13:45:59]Write to MH i2c: E2 08 00 28 16 80 0D 03 02 00 00 00 00 B9 [13:45:59]Write i2c OK [13:45:59]MH_I2C_Read... [13:45:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:45:59]Read from MH i2c: E2 [13:45:59]MH_I2C_Read... [13:45:59]Read from MH i2c: E2 0B 00 [13:45:59]MH_I2C_Read... [13:45:59]Read from MH i2c: E2 0B 00 28 16 00 18 C5 66 B8 6A B2 44 5C 90 00 71 [13:45:59]RAPDU: 18 C5 66 B8 6A B2 44 5C 90 00 [13:45:59]wFMCommunicate OK [13:45:59]SAM_PROTO_SignData done [13:45:59]FM_MakeSignedData done [13:45:59]CreateOFDProtocolMessage [13:45:59]wFMCommunicate request_size=4 [13:45:59]MH_SAM_APDU [13:45:59]CAPDU: 80 11 00 00 [13:45:59]Write to MH i2c: E2 08 00 29 16 80 11 00 00 00 00 00 00 B9 [13:45:59]Write i2c OK [13:45:59]MH_I2C_Read... [13:45:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:59]Read from MH i2c: E2 [13:45:59]MH_I2C_Read... [13:45:59]Read from MH i2c: E2 17 00 [13:45:59]MH_I2C_Read... [13:45:59]Read from MH i2c: E2 17 00 29 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0F [13:45:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:45:59]wFMCommunicate OK [13:45:59]CreateOFDProtocolMessage done [13:45:59]OFDSenderStorePacket 165300 [13:45:59]StoreOFDPacket docnum=165300 [13:45:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 AB 85 04 01 54 0C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5A 23 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 2E FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 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 FE 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 16 28 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B4 85 02 00 35 04 06 00 22 45 1F 01 03 31 18 C5 66 B8 6A B2 44 5C [13:45:59]CheckFolder [13:45:59]dirname=/storage/ofd_packets [13:45:59]CheckFolder done [13:45:59]ProducePacketName [13:45:59]name=ofd_packets/00165300 [13:45:59]NVStorageSaveData ofd_packets/00165300 [13:45:59]File name is /storage/ofd_packets/00165300 [13:45:59]Write 298 bytes [13:45:59]NVStorageSaveData done [13:45:59]OFDSenderStorePacket done [13:45:59]KKMCreateOFDPacket done [13:45:59]NVStorageSaveData kkm_last_timestamp [13:45:59]File name is /storage/kkm_last_timestamp [13:45:59]Write 4 bytes [13:45:59]NVStorageSaveData done [13:45:59]ExternCall_PrintAddStr [13:45:59]wPrintStart [13:45:59]Write to MH i2c: 01 00 00 2A 16 40 [13:45:59]Write i2c OK [13:45:59]MH_I2C_Read... [13:45:59]Read from MH i2c: 01 [13:45:59]MH_I2C_Read... [13:45:59]Read from MH i2c: 01 07 00 [13:45:59]MH_I2C_Read... [13:45:59]Read from MH i2c: 01 07 00 2A 16 00 00 00 00 00 FF 0F 55 [13:45:59]RasterBufferAndPrint [13:45:59]line Счет N : (1)459411 [13:45:59]line ИНН: 02508201610067 [13:45:59]line Контрольно-Кассовый Чек [13:45:59]line ПРОДАЖА [13:45:59]line ТРК (МРК, ГНК) : 11 [13:45:59]line Товар: 2710194210 [13:45:59]line ДТ-К-5 [13:45:59]line 9.050 * 71.90 [13:45:59]line = 650.70 [13:45:59]line НДС 12% НСП 1% [13:45:59]line > о реализуемом товаре [13:45:59]line ОКРУГЛЕНИЕ: -0.70 [13:45:59]line ИТОГО: 650.00 [13:45:59]line Внесено: 650.00 [13:45:59]line СДАЧА: 0.00 [13:45:59]line НСП 1% : 5.76 [13:45:59]line НДС 12% : 69.10 [13:45:59]line Наличными: 650.00 [13:45:59]line Безнал.: 0.00 [13:45:59]line Место: АЗС № 72 "Партнер Нефть" [13:45:59]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:45:59]line СНО: Общий режим [13:45:59]line Чек 173 15.07.2024 13:45 [13:45:59]line Смена: 448 ФФД: 1.0 [13:45:59]line ЗНМ: 0300000160 [13:45:59]line РНМ: 0000000000090829 [13:45:59]line Версия ККМ: 001 [13:45:59]line ФМ: 0000000000874718 [13:45:59]line ФД: 165300 [13:45:59]line ФПД: 37680268247857 [13:45:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T134558&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165300&fm=37680268247857&tin=02508201610067®Number=0000000000090829&sum=65000 [13:45:59]OFD Sender: Processing packet 165300 [packets to send 106, broken 105] [13:45:59]ProducePacketName [13:45:59]name=ofd_packets/00165300 [13:45:59]OFD Sender: To server: pG, [13:45:59]CommunicateWithHost lk.salyk.kg:30040 [13:45:59]ConnectInit lk.salyk.kg [13:45:59]written 0, free lines is 4095 [13:45:59]Connected sock=10 [13:45:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 AB 85 04 01 54 0C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5A 23 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 2E FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 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 FE 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 16 28 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B4 85 02 00 35 04 06 00 22 45 1F 01 03 31 18 C5 66 B8 6A B2 44 5C [13:45:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 60 87 47 00 66 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B4 85 02 00 F4 03 04 00 A1 CE 94 66 B6 04 01 00 00 0F C5 1B 11 B2 8B FD 2B [13:45:59]CommunicateWithHost err = 0 [13:45:59]CheckOFDResponse [13:45:59]1017 (14) - 77093643461234 [13:45:59]1041 (16) - 0000000000874718 [13:45:59]1040 (4) - 165300 [13:45:59]1012 (4) - 15.07.2024 07:24 [13:45:59]1206 (1) - 0 [13:45:59]OFD Sender: Remove packet 165300 [13:45:59]ProducePacketName [13:45:59]name=ofd_packets/00165300 [13:45:59]NVStorageDeleteData [13:46:00]Write to MH i2c: 01 00 00 54 16 6A [13:46:00]Write i2c OK [13:46:00]MH_I2C_Read... [13:46:00]Read from MH i2c: 01 [13:46:00]MH_I2C_Read... [13:46:00]Read from MH i2c: 01 07 00 [13:46:00]MH_I2C_Read... [13:46:00]Read from MH i2c: 01 07 00 54 16 00 00 00 00 00 F7 0C 74 [13:46:00]RasterBufferAndPrint [13:46:00]line [13:46:00]line [13:46:00]line [13:46:00]line [13:46:00]line [13:46:00]written 0, free lines is 3330 [13:46:00]MH_Cut [13:46:00]Write to MH i2c: D1 01 00 5B 16 01 43 [13:46:00]Write i2c OK [13:46:00]MH_I2C_Read... [13:46:00]Read from MH i2c: D1 [13:46:00]MH_I2C_Read... [13:46:00]Read from MH i2c: D1 01 00 [13:46:00]MH_I2C_Read... [13:46:00]Read from MH i2c: D1 01 00 5B 16 00 42 [13:46:00]Write to MH i2c: 01 00 00 5C 16 72 [13:46:00]Write i2c OK [13:46:00]MH_I2C_Read... [13:46:00]OFD Sender: No OFD packet to send [13:46:00]*** Cut start [13:46:00]*** Partial cut [13:46:00]*** CUTSNS_PIN = 1 [13:46:00]*** CUTSNS_PIN = 0 [13:46:00]*** Brake cut motor [13:46:01]Read from MH i2c: 01 [13:46:01]MH_I2C_Read... [13:46:01]*** Stop cut motor [13:46:01]*** Cut end [13:46:01]Read from MH i2c: 01 07 00 [13:46:01]MH_I2C_Read... [13:46:01]Read from MH i2c: 01 07 00 5C 16 00 00 00 00 00 FF 0F 87 [13:46:01]process_action close_receipt done [13:46:01]requested_data is exist [13:46:01]produce_requested_data [13:46:01]requested_item fm.sn is exist - process it [13:46:01]wFMCommunicate request_size=4 [13:46:01]MH_SAM_APDU [13:46:01]CAPDU: 80 11 00 00 [13:46:01]Write to MH i2c: E2 08 00 5D 16 80 11 00 00 00 00 00 00 ED [13:46:01]Write i2c OK [13:46:01]MH_I2C_Read... [13:46:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:46:01]Read from MH i2c: E2 [13:46:01]MH_I2C_Read... [13:46:01]Read from MH i2c: E2 17 00 [13:46:01]MH_I2C_Read... [13:46:01]Read from MH i2c: E2 17 00 5D 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 43 [13:46:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:46:01]wFMCommunicate OK [13:46:01]requested_item fd.num is exist - process it [13:46:01]SAM_PROTO_GetFieldsCounters [13:46:01]wFMCommunicate request_size=4 [13:46:01]MH_SAM_APDU [13:46:01]CAPDU: 80 13 00 00 [13:46:01]Write to MH i2c: E2 08 00 5E 16 80 13 00 00 00 00 00 00 F0 [13:46:01]Write i2c OK [13:46:01]MH_I2C_Read... [13:46:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:46:01]Read from MH i2c: E2 [13:46:01]MH_I2C_Read... [13:46:01]Read from MH i2c: E2 62 00 [13:46:01]MH_I2C_Read... [13:46:01]Read from MH i2c: E2 62 00 5E 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B4 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [13:46:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B4 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:46:01]wFMCommunicate OK [13:46:01]SAM_PROTO_GetFieldsCounters done [13:46:01]requested_item shift.num is exist - process it [13:46:01]requested_item shift.opened is exist - process it [13:46:01]req_shift_opened [13:46:01]FM_GetShiftState [13:46:01]SAM_PROTO_GetShiftState [13:46:01]wFMCommunicate request_size=4 [13:46:01]MH_SAM_APDU [13:46:01]CAPDU: 80 13 01 00 [13:46:01]Write to MH i2c: E2 08 00 5F 16 80 13 01 00 00 00 00 00 F2 [13:46:01]Write i2c OK [13:46:01]MH_I2C_Read... [13:46:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:46:01]Read from MH i2c: E2 [13:46:01]MH_I2C_Read... [13:46:01]Read from MH i2c: E2 0E 00 [13:46:01]MH_I2C_Read... [13:46:01]Read from MH i2c: E2 0E 00 5F 16 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 CB [13:46:01]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [13:46:01]wFMCommunicate OK [13:46:01]SAM_PROTO_GetShiftState done [13:46:01]FM_GetShiftState done [13:46:01]req_shift_opened done [13:46:01]requested_item shift.open_date is exist - process it [13:46:01]req_shift_open_date [13:46:01]req_shift_open_date done [13:46:01]produce_requested_data done [13:46:01]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165300,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [13:46:01]process_action_free close_receipt [13:46:01]json_value_free [13:46:01]json_value_free done [13:46:01]process_json_proto returns [13:46:01]Send response to host [13:46:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165300,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [13:46:01]free response buf [13:46:01]execute_script done [13:46:01]execute_script returns [13:46:01]free content buf [13:46:01]Sock 8.Close socket [13:46:01]Sock 8.Thread stoped [13:46:05]OFD Sender: No OFD packet to send [13:46:10]OFD Sender: No OFD packet to send [13:46:15]OFD Sender: No OFD packet to send [13:46:20]OFD Sender: No OFD packet to send [13:46:25]OFD Sender: No OFD packet to send [13:46:30]OFD Sender: No OFD packet to send [13:46:35]OFD Sender: No OFD packet to send [13:46:40]OFD Sender: No OFD packet to send [13:46:45]OFD Sender: No OFD packet to send [13:46:50]OFD Sender: No OFD packet to send [13:46:55]OFD Sender: No OFD packet to send [13:47:00]OFD Sender: No OFD packet to send [13:47:05]OFD Sender: No OFD packet to send [13:47:10]OFD Sender: No OFD packet to send [13:47:15]OFD Sender: No OFD packet to send [13:47:20]OFD Sender: No OFD packet to send [13:47:25]OFD Sender: No OFD packet to send [13:47:30]OFD Sender: No OFD packet to send [13:47:35]OFD Sender: No OFD packet to send [13:47:40]OFD Sender: No OFD packet to send [13:47:45]OFD Sender: No OFD packet to send [13:47:48]accept exits with 9 [13:47:48]New connection [13:47:48]New thread 3066854756 created [13:47:48]Thread 3066711396 joined [13:47:48]Waiting for new connection... [13:47:48] Sock 9.Parse request [13:47:48]Sock 9.Check first char [13:47:48]Sock 9.First char is OK [13:47:48]request: POST /json_proto HTTP/1.0 [13:47:48]Method: POST [13:47:48]URL: /json_proto [13:47:48]Method is POST - this is cgi request [13:47:48]url: /json_proto [13:47:48]query_string will be loaded in cgi processing [13:47:48]execute_cgi json_proto POST (null) [13:47:48]execute_cgi path=json_proto method=POST [13:47:48]POST find Content-Length [13:47:48]Host: 172.17.56.4:8080 [13:47:48]Content-Length: 840 [13:47:48]Content-Type: application/json [13:47:48] [13:47:48]POST finish read [13:47:48]Found Content-Length = 840 [13:47:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459412", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 6.140, "sum" : 400.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 400.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:47:48]execute_script... [13:47:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459412", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 6.140, "sum" : 400.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 400.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:47:48]POST & json_proto [13:47:48]process_json_proto [13:47:48]json parsed OK: [13:47:48]protocol is kg_v1.0 [13:47:48]action value=close_receipt [13:47:48]process_action close_receipt [13:47:48]cmd_close_receipt [13:47:48]MH_GetDate [13:47:48]Write to MH i2c: F0 00 00 60 16 65 [13:47:48]Write i2c OK [13:47:48]MH_I2C_Read... [13:47:48]Read from MH i2c: F0 [13:47:48]MH_I2C_Read... [13:47:48]Read from MH i2c: F0 09 00 [13:47:48]MH_I2C_Read... [13:47:48]Read from MH i2c: F0 09 00 60 16 00 85 28 95 66 C9 DC B2 64 D1 [13:47:48]GetLastDocTimeStamp 1721051158 [13:47:48]current date 1721051269 [13:47:48]FM_GetShiftState [13:47:48]SAM_PROTO_GetShiftState [13:47:48]wFMCommunicate request_size=4 [13:47:48]MH_SAM_APDU [13:47:48]CAPDU: 80 13 01 00 [13:47:48]Write to MH i2c: E2 08 00 61 16 80 13 01 00 00 00 00 00 F4 [13:47:48]Write i2c OK [13:47:48]MH_I2C_Read... [13:47:48]*** 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 61 16 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 CD [13:47:48]RAPDU: 09 00 01 64 6F 94 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 1721003876 [13:47:48]opened+sec_in_day 1721090276 [13:47:48]quantity*price = 40045 [13:47:48]sum+1 = 40046 [13:47:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.45 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 0.00 Безнал.: 400.45 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 174 15.07.2024 13:47 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874718 ФД: 165301 ФПД: 172430893253055 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T134749&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165301&fm=172430893253055&tin=02508201610067®Number=0000000000090829&sum=40045 [13:47:49]StoreToDocumentArchive [13:47:49]shift 448 fd 165301 [13:47:49]save to /storage/0448/doc_00165301 [13:47:49]save last doc name /storage/0448/doc_00165301 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 018C5CA0 [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 6E 16 80 09 00 00 00 00 00 00 F6 [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 6E 16 00 90 00 F8 [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 6F 16 80 0D 01 02 00 00 00 00 FE [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 6F 16 00 90 00 F9 [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 FC 17 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6D 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 00 00 00 00 00 00 39 04 06 00 6D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 85 28 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B5 85 02 00 35 04 06 00 9C [13:47:49]Write to MH i2c: E2 02 01 70 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 17 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6D 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 00 00 00 00 00 00 39 04 06 00 6D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 85 28 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B5 85 02 00 35 04 06 00 9C 00 00 CE [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 70 16 00 90 00 FA [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 D3 32 24 01 BF [13:47:49]Write to MH i2c: E2 0D 00 71 16 80 0D 02 02 05 00 D3 32 24 01 BF 00 00 F4 [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 71 16 00 90 00 FB [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 72 16 80 0D 03 02 00 00 00 00 03 [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 72 16 00 E1 B1 C6 99 AB 2C A4 C8 90 00 38 [13:47:49]RAPDU: E1 B1 C6 99 AB 2C A4 C8 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 73 16 80 11 00 00 00 00 00 00 03 [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 73 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 59 [13:47:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:47:49]wFMCommunicate OK [13:47:49]CreateOFDProtocolMessage done [13:47:49]OFDSenderStorePacket 165301 [13:47:49]StoreOFDPacket docnum=165301 [13:47:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 65 A6 07 01 DC 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 FC 17 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6D 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 00 00 00 00 00 00 39 04 06 00 6D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 85 28 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B5 85 02 00 35 04 06 00 9C D3 32 24 01 BF E1 B1 C6 99 AB 2C A4 C8 [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/00165301 [13:47:49]NVStorageSaveData ofd_packets/00165301 [13:47:49]File name is /storage/ofd_packets/00165301 [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:50]ExternCall_PrintAddStr [13:47:50]wPrintStart [13:47:50]Write to MH i2c: 01 00 00 74 16 8A [13:47:50]OFD Sender: Processing packet 165301 [packets to send 106, broken 105] [13:47:50]ProducePacketName [13:47:50]name=ofd_packets/00165301 [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]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 74 16 00 00 00 00 00 FF 0F 9F [13:47:50]RasterBufferAndPrint [13:47:50]line Счет N : (1)459412 [13:47:50]line ИНН: 02508201610067 [13:47:50]line Контрольно-Кассовый Чек [13:47:50]line ПРОДАЖА [13:47:50]line ТРК (МРК, ГНК) : 12 [13:47:50]line Товар: 2710124130 [13:47:50]line Аи-92-К-5 [13:47:50]line 6.140 * 65.22 [13:47:50]line = 400.45 [13:47:50]line НДС 12% НСП 1% [13:47:50]line > о реализуемом товаре [13:47:50]line ИТОГО: 400.45 [13:47:50]line НСП 1% : 3.54 [13:47:50]line НДС 12% : 42.53 [13:47:50]line Наличными: 0.00 [13:47:50]line Безнал.: 400.45 [13:47:50]line Место: АЗС № 72 "Партнер Нефть" [13:47:50]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:47:50]line СНО: Общий режим [13:47:50]line Чек 174 15.07.2024 13:47 [13:47:50]line Смена: 448 ФФД: 1.0 [13:47:50]line ЗНМ: 0300000160 [13:47:50]line РНМ: 0000000000090829 [13:47:50]line Версия ККМ: 001 [13:47:50]line Платежная система: АКБ Кыргызстан [13:47:50]line ФМ: 0000000000874718 [13:47:50]line ФД: 165301 [13:47:50]line ФПД: 172430893253055 [13:47:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T134749&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165301&fm=172430893253055&tin=02508201610067®Number=0000000000090829&sum=40045 [13:47:50]Connected sock=10 [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 37 31 38 0F 01 00 00 65 A6 07 written 0, free lines is 4095 [13:47:50]01 DC 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 FC 17 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6D 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 00 00 00 00 00 00 39 04 06 00 6D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 85 28 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B5 85 02 00 35 04 06 00 9C D3 32 24 01 BF E1 B1 C6 99 AB 2C A4 C8 [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 37 31 38 4F 00 00 00 7C 8C 47 00 E6 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B5 85 02 00 F4 03 04 00 0F CF 94 66 B6 04 01 00 00 4D E7 9B F9 BD 64 F0 78 [13:47:50]CommunicateWithHost err = 0 [13:47:50]CheckOFDResponse [13:47:50]1017 (14) - 77093643461234 [13:47:50]1041 (16) - 0000000000874718 [13:47:50]1040 (4) - 165301 [13:47:50]1012 (4) - 15.07.2024 07:26 [13:47:50]1206 (1) - 0 [13:47:50]OFD Sender: Remove packet 165301 [13:47:50]ProducePacketName [13:47:50]name=ofd_packets/00165301 [13:47:50]NVStorageDeleteData [13:47:50]Write to MH i2c: 01 00 00 9D 16 B3 [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 9D 16 00 00 00 00 00 06 0D CD [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 3340 [13:47:50]MH_Cut [13:47:50]Write to MH i2c: D1 01 00 A4 16 01 8C [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 A4 16 00 8B [13:47:50]Write to MH i2c: 01 00 00 A5 16 BB [13:47:50]Write i2c OK [13:47:50]MH_I2C_Read... [13:47:51]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 A5 16 00 00 00 00 00 FF 0F D0 [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 A6 16 80 11 00 00 00 00 00 00 36 [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 A6 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8C [13:47:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 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 A7 16 80 13 00 00 00 00 00 00 39 [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 A7 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B5 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B5 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 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 A8 16 80 13 01 00 00 00 00 00 3B [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 A8 16 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 14 [13:47:52]RAPDU: 09 00 01 64 6F 94 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":"0000000000874718","fd.num":165301,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [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":"0000000000874718","fd.num":165301,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [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 9.Close socket [13:47:52]Sock 9.Thread stoped [13:47:56]OFD Sender: No OFD packet to send [13:48:01]OFD Sender: No OFD packet to send [13:48:06]OFD Sender: No OFD packet to send [13:48:11]OFD Sender: No OFD packet to send [13:48:16]OFD Sender: No OFD packet to send [13:48:21]OFD Sender: No OFD packet to send [13:48:26]OFD Sender: No OFD packet to send [13:48:31]OFD Sender: No OFD packet to send [13:48:36]OFD Sender: No OFD packet to send [13:48:41]OFD Sender: No OFD packet to send [13:48:46]OFD Sender: No OFD packet to send [13:48:51]OFD Sender: No OFD packet to send [13:48:56]OFD Sender: No OFD packet to send [13:49:01]OFD Sender: No OFD packet to send [13:49:06]OFD Sender: No OFD packet to send [13:49:11]OFD Sender: No OFD packet to send [13:49:16]OFD Sender: No OFD packet to send [13:49:21]OFD Sender: No OFD packet to send [13:49:26]OFD Sender: No OFD packet to send [13:49:31]OFD Sender: No OFD packet to send [13:49:36]OFD Sender: No OFD packet to send [13:49:41]OFD Sender: No OFD packet to send [13:49:46]OFD Sender: No OFD packet to send [13:49:51]OFD Sender: No OFD packet to send [13:49:56]OFD Sender: No OFD packet to send [13:50:01]OFD Sender: No OFD packet to send [13:50:06]OFD Sender: No OFD packet to send [13:50:11]OFD Sender: No OFD packet to send [13:50:16]OFD Sender: No OFD packet to send [13:50:21]OFD Sender: No OFD packet to send [13:50:26]OFD Sender: No OFD packet to send [13:50:31]OFD Sender: No OFD packet to send [13:50:36]OFD Sender: No OFD packet to send [13:50:41]OFD Sender: No OFD packet to send [13:50:46]OFD Sender: No OFD packet to send [13:50:51]OFD Sender: No OFD packet to send [13:50:56]OFD Sender: No OFD packet to send [13:51:01]OFD Sender: No OFD packet to send [13:51:06]OFD Sender: No OFD packet to send [13:51:11]OFD Sender: No OFD packet to send [13:51:16]OFD Sender: No OFD packet to send [13:51:21]OFD Sender: No OFD packet to send [13:51:26]OFD Sender: No OFD packet to send [13:51:31]OFD Sender: No OFD packet to send [13:51:36]OFD Sender: No OFD packet to send [13:51:41]OFD Sender: No OFD packet to send [13:51:46]OFD Sender: No OFD packet to send [13:51:49]accept exits with 8 [13:51:49]New connection [13:51:49]New thread 3066711396 created [13:51:49]Thread 3066854756 joined [13:51:49]Waiting for new connection... [13:51:49] Sock 8.Parse request [13:51:49]Sock 8.Check first char [13:51:49]Sock 8.First char is OK [13:51:49]request: POST /json_proto HTTP/1.0 [13:51:49]Method: POST [13:51:49]URL: /json_proto [13:51:49]Method is POST - this is cgi request [13:51:49]url: /json_proto [13:51:49]query_string will be loaded in cgi processing [13:51:49]execute_cgi json_proto POST (null) [13:51:49]execute_cgi path=json_proto method=POST [13:51:49]POST find Content-Length [13:51:49]Host: 172.17.56.4:8080 [13:51:49]Content-Length: 677 [13:51:49]Content-Type: application/json [13:51:49] [13:51:49]POST finish read [13:51:49]Found Content-Length = 677 [13:51:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459413", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "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:51:49]execute_script... [13:51:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459413", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "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:51:49]POST & json_proto [13:51:49]process_json_proto [13:51:49]json parsed OK: [13:51:49]protocol is kg_v1.0 [13:51:49]action value=close_receipt [13:51:49]process_action close_receipt [13:51:49]cmd_close_receipt [13:51:49]MH_GetDate [13:51:49]Write to MH i2c: F0 00 00 A9 16 AE [13:51:49]Write i2c OK [13:51:49]MH_I2C_Read... [13:51:49]Read from MH i2c: F0 [13:51:49]MH_I2C_Read... [13:51:49]Read from MH i2c: F0 09 00 [13:51:49]MH_I2C_Read... [13:51:49]Read from MH i2c: F0 09 00 A9 16 00 76 29 95 66 C9 DC B2 64 0C [13:51:49]GetLastDocTimeStamp 1721051269 [13:51:49]current date 1721051510 [13:51:49]FM_GetShiftState [13:51:49]SAM_PROTO_GetShiftState [13:51:49]wFMCommunicate request_size=4 [13:51:49]MH_SAM_APDU [13:51:49]CAPDU: 80 13 01 00 [13:51:49]Write to MH i2c: E2 08 00 AA 16 80 13 01 00 00 00 00 00 3D [13:51:49]Write i2c OK [13:51:49]MH_I2C_Read... [13:51:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:49]Read from MH i2c: E2 [13:51:49]MH_I2C_Read... [13:51:49]Read from MH i2c: E2 0E 00 [13:51:49]MH_I2C_Read... [13:51:49]Read from MH i2c: E2 0E 00 AA 16 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 16 [13:51:49]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [13:51:49]wFMCommunicate OK [13:51:49]SAM_PROTO_GetShiftState done [13:51:49]FM_GetShiftState done [13:51:49]opened in 1721003876 [13:51:49]opened+sec_in_day 1721090276 [13:51:49]quantity*price = 60009 [13:51:49]sum+1 = 60011 [13:51:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 175 15.07.2024 13:51 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165302 ФПД: 101566129000620 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T135151&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165302&fm=101566129000620&tin=02508201610067®Number=0000000000090829&sum=60000 [13:51:50]StoreToDocumentArchive [13:51:50]shift 448 fd 165302 [13:51:50]save to /storage/0448/doc_00165302 [13:51:50]save last doc name /storage/0448/doc_00165302 to /storage/kkm_last_doc_name [13:51:50]save OK [13:51:50]Clear old archive folders... [13:51:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:51:50]tlvbuf is 0181D9E0 [13:51:50]SAM_PROTO_ClearQueue [13:51:50]wFMCommunicate request_size=4 [13:51:50]MH_SAM_APDU [13:51:50]CAPDU: 80 09 00 00 [13:51:50]Write to MH i2c: E2 08 00 B7 16 80 09 00 00 00 00 00 00 3F [13:51:50]Write i2c OK [13:51:50]MH_I2C_Read... [13:51:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:51:50]Read from MH i2c: E2 [13:51:50]MH_I2C_Read... [13:51:50]Read from MH i2c: E2 03 00 [13:51:50]MH_I2C_Read... [13:51:50]Read from MH i2c: E2 03 00 B7 16 00 90 00 41 [13:51:50]RAPDU: 90 00 [13:51:50]wFMCommunicate OK [13:51:50]SAM_PROTO_ClearQueue done [13:51:50]KKMCreateOFDPacket [13:51:50]OFDProtocolAddRootSTLVToBuf [13:51:50]FM_MakeSignedData [13:51:50]FM_MakeSignedData [13:51:50]SAM_PROTO_SignData [13:51:50]wFMCommunicate request_size=4 [13:51:50]MH_SAM_APDU [13:51:50]CAPDU: 80 0D 01 02 [13:51:50]Write to MH i2c: E2 08 00 B8 16 80 0D 01 02 00 00 00 00 47 [13:51:50]Write i2c OK [13:51:50]MH_I2C_Read... [13:51:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:51:51]Read from MH i2c: E2 [13:51:51]MH_I2C_Read... [13:51:51]Read from MH i2c: E2 03 00 [13:51:51]MH_I2C_Read... [13:51:51]Read from MH i2c: E2 03 00 B8 16 00 90 00 42 [13:51:51]RAPDU: 90 00 [13:51:51]wFMCommunicate OK [13:51:51]wFMCommunicate request_size=255 [13:51:51]MH_SAM_APDU [13:51:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 77 29 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B6 85 02 00 35 04 06 00 5C [13:51:51]Write to MH i2c: E2 02 01 B9 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 77 29 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B6 85 02 00 35 04 06 00 5C 00 00 85 [13:51:51]Write i2c OK [13:51:51]MH_I2C_Read... [13:51:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:51]Read from MH i2c: E2 [13:51:51]MH_I2C_Read... [13:51:51]Read from MH i2c: E2 03 00 [13:51:51]MH_I2C_Read... [13:51:51]Read from MH i2c: E2 03 00 B9 16 00 90 00 43 [13:51:51]RAPDU: 90 00 [13:51:51]wFMCommunicate OK [13:51:51]wFMCommunicate request_size=10 [13:51:51]MH_SAM_APDU [13:51:51]CAPDU: 80 0D 02 02 05 5F B5 0A 50 AC [13:51:51]Write to MH i2c: E2 0D 00 BA 16 80 0D 02 02 05 00 5F B5 0A 50 AC 00 00 6E [13:51:51]Write i2c OK [13:51:51]MH_I2C_Read... [13:51:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:51]Read from MH i2c: E2 [13:51:51]MH_I2C_Read... [13:51:51]Read from MH i2c: E2 03 00 [13:51:51]MH_I2C_Read... [13:51:51]Read from MH i2c: E2 03 00 BA 16 00 90 00 44 [13:51:51]RAPDU: 90 00 [13:51:51]wFMCommunicate OK [13:51:51]wFMCommunicate request_size=4 [13:51:51]MH_SAM_APDU [13:51:51]CAPDU: 80 0D 03 02 [13:51:51]Write to MH i2c: E2 08 00 BB 16 80 0D 03 02 00 00 00 00 4C [13:51:51]Write i2c OK [13:51:51]MH_I2C_Read... [13:51:51]OFD Sender: No OFD packet to send [13:51:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:51:51]Read from MH i2c: E2 [13:51:51]MH_I2C_Read... [13:51:51]Read from MH i2c: E2 0B 00 [13:51:51]MH_I2C_Read... [13:51:51]Read from MH i2c: E2 0B 00 BB 16 00 94 35 4B 1D 36 9A 53 AC 90 00 4D [13:51:51]RAPDU: 94 35 4B 1D 36 9A 53 AC 90 00 [13:51:51]wFMCommunicate OK [13:51:51]SAM_PROTO_SignData done [13:51:51]FM_MakeSignedData done [13:51:51]CreateOFDProtocolMessage [13:51:51]wFMCommunicate request_size=4 [13:51:51]MH_SAM_APDU [13:51:51]CAPDU: 80 11 00 00 [13:51:51]Write to MH i2c: E2 08 00 BC 16 80 11 00 00 00 00 00 00 4C [13:51:51]Write i2c OK [13:51:51]MH_I2C_Read... [13:51:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:51]Read from MH i2c: E2 [13:51:51]MH_I2C_Read... [13:51:51]Read from MH i2c: E2 17 00 [13:51:51]MH_I2C_Read... [13:51:51]Read from MH i2c: E2 17 00 BC 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A2 [13:51:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:51:51]wFMCommunicate OK [13:51:51]CreateOFDProtocolMessage done [13:51:51]OFDSenderStorePacket 165302 [13:51:51]StoreOFDPacket docnum=165302 [13:51:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D8 2D 07 01 6F 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 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 77 29 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B6 85 02 00 35 04 06 00 5C 5F B5 0A 50 AC 94 35 4B 1D 36 9A 53 AC [13:51:51]CheckFolder [13:51:51]dirname=/storage/ofd_packets [13:51:51]CheckFolder done [13:51:51]ProducePacketName [13:51:51]name=ofd_packets/00165302 [13:51:51]NVStorageSaveData ofd_packets/00165302 [13:51:51]File name is /storage/ofd_packets/00165302 [13:51:51]Write 301 bytes [13:51:51]NVStorageSaveData done [13:51:51]OFDSenderStorePacket done [13:51:51]KKMCreateOFDPacket done [13:51:51]NVStorageSaveData kkm_last_timestamp [13:51:51]File name is /storage/kkm_last_timestamp [13:51:51]Write 4 bytes [13:51:51]NVStorageSaveData done [13:51:51]ExternCall_PrintAddStr [13:51:51]wPrintStart [13:51:51]Write to MH i2c: 01 00 00 BD 16 D3 [13:51:51]Write i2c OK [13:51:51]MH_I2C_Read... [13:51:51]Read from MH i2c: 01 [13:51:51]MH_I2C_Read... [13:51:51]Read from MH i2c: 01 07 00 [13:51:51]MH_I2C_Read... [13:51:51]Read from MH i2c: 01 07 00 BD 16 00 00 00 00 00 FF 0F E8 [13:51:51]RasterBufferAndPrint [13:51:51]line Счет N : (1)459413 [13:51:51]line ИНН: 02508201610067 [13:51:51]line Контрольно-Кассовый Чек [13:51:51]line ПРОДАЖА [13:51:51]line ТРК (МРК, ГНК) : 12 [13:51:51]line Товар: 2710124130 [13:51:51]line Аи-92-К-5 [13:51:51]line 9.120 * 65.80 [13:51:51]line = 600.10 [13:51:51]line НДС 12% НСП 1% [13:51:51]line > о реализуемом товаре [13:51:51]line ОКРУГЛЕНИЕ: -0.10 [13:51:51]line ИТОГО: 600.00 [13:51:51]line Внесено: 600.00 [13:51:51]line СДАЧА: 0.00 [13:51:51]line НСП 1% : 5.31 [13:51:51]line НДС 12% : 63.73 [13:51:51]line Наличными: 600.00 [13:51:51]line Безнал.: 0.00 [13:51:51]line Место: АЗС № 72 "Партнер Нефть" [13:51:51]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:51:51]line СНО: Общий режим [13:51:51]line Чек 175 15.07.2024 13:51 [13:51:51]line Смена: 448 ФФД: 1.0 [13:51:51]line ЗНМ: 0300000160 [13:51:51]line РНМ: 0000000000090829 [13:51:51]line Версия ККМ: 001 [13:51:51]line ФМ: 0000000000874718 [13:51:51]line ФД: 165302 [13:51:51]line ФПД: 101566129000620 [13:51:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T135151&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165302&fm=101566129000620&tin=02508201610067®Number=0000000000090829&sum=60000 [13:51:51]OFD Sender: Processing packet 165302 [packets to send 106, broken 105] [13:51:51]ProducePacketName [13:51:51]name=ofd_packets/00165302 [13:51:51]OFD Sender: To server: pG, [13:51:51]CommunicateWithHost lk.salyk.kg:30040 [13:51:51]ConnectInit lk.salyk.kg [13:51:51]written 0, free lines is 4095 [13:51:51]Connected sock=10 [13:51:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D8 2D 07 01 6F 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 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 77 29 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B6 85 02 00 35 04 06 00 5C 5F B5 0A 50 AC 94 35 4B 1D 36 9A 53 AC [13:51:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 DB 0C 47 00 4E 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B6 85 02 00 F4 03 04 00 01 D0 94 66 B6 04 01 00 00 ED 05 59 D6 28 30 FE A2 [13:51:52]CommunicateWithHost err = 0 [13:51:52]CheckOFDResponse [13:51:52]1017 (14) - 77093643461234 [13:51:52]1041 (16) - 0000000000874718 [13:51:52]1040 (4) - 165302 [13:51:52]1012 (4) - 15.07.2024 07:30 [13:51:52]1206 (1) - 0 [13:51:52]OFD Sender: Remove packet 165302 [13:51:52]ProducePacketName [13:51:52]name=ofd_packets/00165302 [13:51:52]NVStorageDeleteData [13:51:52]Write to MH i2c: 01 00 00 E7 16 FD [13:51:52]Write i2c OK [13:51:52]MH_I2C_Read... [13:51:52]Read from MH i2c: 01 [13:51:52]MH_I2C_Read... [13:51:52]Read from MH i2c: 01 07 00 [13:51:52]MH_I2C_Read... [13:51:52]Read from MH i2c: 01 07 00 E7 16 00 00 00 00 00 F6 0C 06 [13:51:52]RasterBufferAndPrint [13:51:52]line [13:51:52]line [13:51:52]line [13:51:52]line [13:51:52]line [13:51:52]written 0, free lines is 3328 [13:51:52]MH_Cut [13:51:52]Write to MH i2c: D1 01 00 EE 16 01 D6 [13:51:52]Write i2c OK [13:51:52]MH_I2C_Read... [13:51:52]Read from MH i2c: D1 [13:51:52]MH_I2C_Read... [13:51:52]Read from MH i2c: D1 01 00 [13:51:52]MH_I2C_Read... [13:51:52]Read from MH i2c: D1 01 00 EE 16 00 D5 [13:51:52]Write to MH i2c: 01 00 00 EF 16 05 [13:51:52]Write i2c OK [13:51:52]MH_I2C_Read... [13:51:52]OFD Sender: No OFD packet to send [13:51:52]*** Cut start [13:51:52]*** Partial cut [13:51:52]*** CUTSNS_PIN = 1 [13:51:52]*** CUTSNS_PIN = 0 [13:51:53]*** Brake cut motor [13:51:53]Read from MH i2c: 01 [13:51:53]MH_I2C_Read... [13:51:53]*** Stop cut motor [13:51:53]*** Cut end [13:51:53]Read from MH i2c: 01 07 00 [13:51:53]MH_I2C_Read... [13:51:53]Read from MH i2c: 01 07 00 EF 16 00 00 00 00 00 FF 0F 1A [13:51:53]process_action close_receipt done [13:51:53]requested_data is exist [13:51:53]produce_requested_data [13:51:53]requested_item fm.sn is exist - process it [13:51:53]wFMCommunicate request_size=4 [13:51:53]MH_SAM_APDU [13:51:53]CAPDU: 80 11 00 00 [13:51:53]Write to MH i2c: E2 08 00 F0 16 80 11 00 00 00 00 00 00 80 [13:51:53]Write i2c OK [13:51:53]MH_I2C_Read... [13:51:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:53]Read from MH i2c: E2 [13:51:53]MH_I2C_Read... [13:51:53]Read from MH i2c: E2 17 00 [13:51:53]MH_I2C_Read... [13:51:53]Read from MH i2c: E2 17 00 F0 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D6 [13:51:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:51:53]wFMCommunicate OK [13:51:53]requested_item fd.num is exist - process it [13:51:53]SAM_PROTO_GetFieldsCounters [13:51:53]wFMCommunicate request_size=4 [13:51:53]MH_SAM_APDU [13:51:53]CAPDU: 80 13 00 00 [13:51:53]Write to MH i2c: E2 08 00 F1 16 80 13 00 00 00 00 00 00 83 [13:51:53]Write i2c OK [13:51:53]MH_I2C_Read... [13:51:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:51:53]Read from MH i2c: E2 [13:51:53]MH_I2C_Read... [13:51:53]Read from MH i2c: E2 62 00 [13:51:53]MH_I2C_Read... [13:51:53]Read from MH i2c: E2 62 00 F1 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B6 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [13:51: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B6 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:51:53]wFMCommunicate OK [13:51:53]SAM_PROTO_GetFieldsCounters done [13:51:53]requested_item shift.num is exist - process it [13:51:53]requested_item shift.opened is exist - process it [13:51:53]req_shift_opened [13:51:53]FM_GetShiftState [13:51:53]SAM_PROTO_GetShiftState [13:51:53]wFMCommunicate request_size=4 [13:51:53]MH_SAM_APDU [13:51:53]CAPDU: 80 13 01 00 [13:51:53]Write to MH i2c: E2 08 00 F2 16 80 13 01 00 00 00 00 00 85 [13:51:53]Write i2c OK [13:51:53]MH_I2C_Read... [13:51:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:53]Read from MH i2c: E2 [13:51:53]MH_I2C_Read... [13:51:53]Read from MH i2c: E2 0E 00 [13:51:53]MH_I2C_Read... [13:51:53]Read from MH i2c: E2 0E 00 F2 16 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 5E [13:51:53]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [13:51:53]wFMCommunicate OK [13:51:53]SAM_PROTO_GetShiftState done [13:51:53]FM_GetShiftState done [13:51:53]req_shift_opened done [13:51:53]requested_item shift.open_date is exist - process it [13:51:53]req_shift_open_date [13:51:53]req_shift_open_date done [13:51:53]produce_requested_data done [13:51:53]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165302,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [13:51:53]process_action_free close_receipt [13:51:53]json_value_free [13:51:53]json_value_free done [13:51:53]process_json_proto returns [13:51:53]Send response to host [13:51:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165302,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [13:51:53]free response buf [13:51:53]execute_script done [13:51:53]execute_script returns [13:51:53]free content buf [13:51:53]Sock 8.Close socket [13:51:53]Sock 8.Thread stoped [13:51:57]OFD Sender: No OFD packet to send [13:52:02]OFD Sender: No OFD packet to send [13:52:07]OFD Sender: No OFD packet to send [13:52:12]OFD Sender: No OFD packet to send [13:52:17]OFD Sender: No OFD packet to send [13:52:22]OFD Sender: No OFD packet to send [13:52:27]OFD Sender: No OFD packet to send [13:52:32]OFD Sender: No OFD packet to send [13:52:37]OFD Sender: No OFD packet to send [13:52:42]OFD Sender: No OFD packet to send [13:52:47]OFD Sender: No OFD packet to send [13:52:52]OFD Sender: No OFD packet to send [13:52:57]OFD Sender: No OFD packet to send [13:53:02]OFD Sender: No OFD packet to send [13:53:07]OFD Sender: No OFD packet to send [13:53:12]OFD Sender: No OFD packet to send [13:53:17]OFD Sender: No OFD packet to send [13:53:22]OFD Sender: No OFD packet to send [13:53:27]OFD Sender: No OFD packet to send [13:53:32]OFD Sender: No OFD packet to send [13:53:37]OFD Sender: No OFD packet to send [13:53:42]OFD Sender: No OFD packet to send [13:53:47]OFD Sender: No OFD packet to send [13:53:52]OFD Sender: No OFD packet to send [13:53:57]OFD Sender: No OFD packet to send [13:54:02]OFD Sender: No OFD packet to send [13:54:07]OFD Sender: No OFD packet to send [13:54:12]OFD Sender: No OFD packet to send [13:54:17]OFD Sender: No OFD packet to send [13:54:22]OFD Sender: No OFD packet to send [13:54:27]OFD Sender: No OFD packet to send [13:54:32]OFD Sender: No OFD packet to send [13:54:37]OFD Sender: No OFD packet to send [13:54:42]OFD Sender: No OFD packet to send [13:54:47]OFD Sender: No OFD packet to send [13:54:52]OFD Sender: No OFD packet to send [13:54:57]OFD Sender: No OFD packet to send [13:55:02]OFD Sender: No OFD packet to send [13:55:07]OFD Sender: No OFD packet to send [13:55:12]OFD Sender: No OFD packet to send [13:55:17]OFD Sender: No OFD packet to send [13:55:22]OFD Sender: No OFD packet to send [13:55:27]OFD Sender: No OFD packet to send [13:55:32]OFD Sender: No OFD packet to send [13:55:37]OFD Sender: No OFD packet to send [13:55:42]OFD Sender: No OFD packet to send [13:55:47]OFD Sender: No OFD packet to send [13:55:52]OFD Sender: No OFD packet to send [13:55:53]accept exits with 9 [13:55:53]New connection [13:55:53]New thread 3066854756 created [13:55:53]Thread 3066711396 joined [13:55:53]Waiting for new connection... [13:55:53] Sock 9.Parse request [13:55:53]Sock 9.Check first char [13:55:53]Sock 9.First char is OK [13:55:53]request: POST /json_proto HTTP/1.0 [13:55:53]Method: POST [13:55:53]URL: /json_proto [13:55:53]Method is POST - this is cgi request [13:55:53]url: /json_proto [13:55:53]query_string will be loaded in cgi processing [13:55:53]execute_cgi json_proto POST (null) [13:55:53]execute_cgi path=json_proto method=POST [13:55:53]POST find Content-Length [13:55:53]Host: 172.17.56.4:8080 [13:55:53]Content-Length: 677 [13:55:53]Content-Type: application/json [13:55:53] [13:55:53]POST finish read [13:55:53]Found Content-Length = 677 [13:55:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459414", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:53]execute_script... [13:55:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459414", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:53]POST & json_proto [13:55:53]process_json_proto [13:55:53]json parsed OK: [13:55:53]protocol is kg_v1.0 [13:55:53]action value=close_receipt [13:55:53]process_action close_receipt [13:55:53]cmd_close_receipt [13:55:53]MH_GetDate [13:55:53]Write to MH i2c: F0 00 00 F3 16 F8 [13:55:53]Write i2c OK [13:55:53]MH_I2C_Read... [13:55:53]Read from MH i2c: F0 [13:55:53]MH_I2C_Read... [13:55:53]Read from MH i2c: F0 09 00 [13:55:53]MH_I2C_Read... [13:55:53]Read from MH i2c: F0 09 00 F3 16 00 6A 2A 95 66 C9 DC B2 64 4B [13:55:53]GetLastDocTimeStamp 1721051511 [13:55:53]current date 1721051754 [13:55:53]FM_GetShiftState [13:55:53]SAM_PROTO_GetShiftState [13:55:53]wFMCommunicate request_size=4 [13:55:53]MH_SAM_APDU [13:55:53]CAPDU: 80 13 01 00 [13:55:53]Write to MH i2c: E2 08 00 F4 16 80 13 01 00 00 00 00 00 87 [13:55:53]Write i2c OK [13:55:53]MH_I2C_Read... [13:55:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:53]Read from MH i2c: E2 [13:55:53]MH_I2C_Read... [13:55:53]Read from MH i2c: E2 0E 00 [13:55:53]MH_I2C_Read... [13:55:53]Read from MH i2c: E2 0E 00 F4 16 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 60 [13:55:53]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [13:55:53]wFMCommunicate OK [13:55:53]SAM_PROTO_GetShiftState done [13:55:53]FM_GetShiftState done [13:55:53]opened in 1721003876 [13:55:53]opened+sec_in_day 1721090276 [13:55:53]quantity*price = 50008 [13:55:53]sum+1 = 50009 [13:55:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 176 15.07.2024 13:55 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165303 ФПД: 232436044973533 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T135555&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165303&fm=232436044973533&tin=02508201610067®Number=0000000000090829&sum=50000 [13:55:54]StoreToDocumentArchive [13:55:54]shift 448 fd 165303 [13:55:54]save to /storage/0448/doc_00165303 [13:55:54]save last doc name /storage/0448/doc_00165303 to /storage/kkm_last_doc_name [13:55:54]save OK [13:55:54]Clear old archive folders... [13:55:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:55:54]tlvbuf is 01855CD0 [13:55:54]SAM_PROTO_ClearQueue [13:55:54]wFMCommunicate request_size=4 [13:55:54]MH_SAM_APDU [13:55:54]CAPDU: 80 09 00 00 [13:55:54]Write to MH i2c: E2 08 00 01 17 80 09 00 00 00 00 00 00 8A [13:55:54]Write i2c OK [13:55:54]MH_I2C_Read... [13:55:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:55:54]Read from MH i2c: E2 [13:55:54]MH_I2C_Read... [13:55:54]Read from MH i2c: E2 03 00 [13:55:54]MH_I2C_Read... [13:55:54]Read from MH i2c: E2 03 00 01 17 00 90 00 8C [13:55:54]RAPDU: 90 00 [13:55:54]wFMCommunicate OK [13:55:54]SAM_PROTO_ClearQueue done [13:55:54]KKMCreateOFDPacket [13:55:54]OFDProtocolAddRootSTLVToBuf [13:55:54]FM_MakeSignedData [13:55:54]FM_MakeSignedData [13:55:54]SAM_PROTO_SignData [13:55:54]wFMCommunicate request_size=4 [13:55:54]MH_SAM_APDU [13:55:54]CAPDU: 80 0D 01 02 [13:55:54]Write to MH i2c: E2 08 00 02 17 80 0D 01 02 00 00 00 00 92 [13:55:54]Write i2c OK [13:55:54]MH_I2C_Read... [13:55:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:55:55]Read from MH i2c: E2 [13:55:55]MH_I2C_Read... [13:55:55]Read from MH i2c: E2 03 00 [13:55:55]MH_I2C_Read... [13:55:55]Read from MH i2c: E2 03 00 02 17 00 90 00 8D [13:55:55]RAPDU: 90 00 [13:55:55]wFMCommunicate OK [13:55:55]wFMCommunicate request_size=255 [13:55:55]MH_SAM_APDU [13:55: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 6B 2A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B7 85 02 00 35 04 06 00 D3 [13:55:55]Write to MH i2c: E2 02 01 03 17 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 6B 2A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B7 85 02 00 35 04 06 00 D3 00 00 1D [13:55:55]Write i2c OK [13:55:55]MH_I2C_Read... [13:55:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:55]Read from MH i2c: E2 [13:55:55]MH_I2C_Read... [13:55:55]Read from MH i2c: E2 03 00 [13:55:55]MH_I2C_Read... [13:55:55]Read from MH i2c: E2 03 00 03 17 00 90 00 8E [13:55:55]RAPDU: 90 00 [13:55:55]wFMCommunicate OK [13:55:55]wFMCommunicate request_size=10 [13:55:55]MH_SAM_APDU [13:55:55]CAPDU: 80 0D 02 02 05 66 3B E4 C5 DD [13:55:55]Write to MH i2c: E2 0D 00 04 17 80 0D 02 02 05 00 66 3B E4 C5 DD 00 00 C6 [13:55:55]Write i2c OK [13:55:55]MH_I2C_Read... [13:55:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:55]Read from MH i2c: E2 [13:55:55]MH_I2C_Read... [13:55:55]Read from MH i2c: E2 03 00 [13:55:55]MH_I2C_Read... [13:55:55]Read from MH i2c: E2 03 00 04 17 00 90 00 8F [13:55:55]RAPDU: 90 00 [13:55:55]wFMCommunicate OK [13:55:55]wFMCommunicate request_size=4 [13:55:55]MH_SAM_APDU [13:55:55]CAPDU: 80 0D 03 02 [13:55:55]Write to MH i2c: E2 08 00 05 17 80 0D 03 02 00 00 00 00 97 [13:55:55]Write i2c OK [13:55:55]MH_I2C_Read... [13:55:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:55:55]Read from MH i2c: E2 [13:55:55]MH_I2C_Read... [13:55:55]Read from MH i2c: E2 0B 00 [13:55:55]MH_I2C_Read... [13:55:55]Read from MH i2c: E2 0B 00 05 17 00 9C C1 44 C2 1F E9 04 11 90 00 18 [13:55:55]RAPDU: 9C C1 44 C2 1F E9 04 11 90 00 [13:55:55]wFMCommunicate OK [13:55:55]SAM_PROTO_SignData done [13:55:55]FM_MakeSignedData done [13:55:55]CreateOFDProtocolMessage [13:55:55]wFMCommunicate request_size=4 [13:55:55]MH_SAM_APDU [13:55:55]CAPDU: 80 11 00 00 [13:55:55]Write to MH i2c: E2 08 00 06 17 80 11 00 00 00 00 00 00 97 [13:55:55]Write i2c OK [13:55:55]MH_I2C_Read... [13:55:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:55]Read from MH i2c: E2 [13:55:55]MH_I2C_Read... [13:55:55]Read from MH i2c: E2 17 00 [13:55:55]MH_I2C_Read... [13:55:55]Read from MH i2c: E2 17 00 06 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 ED [13:55:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:55:55]wFMCommunicate OK [13:55:55]CreateOFDProtocolMessage done [13:55:55]OFDSenderStorePacket 165303 [13:55:55]StoreOFDPacket docnum=165303 [13:55:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 40 EF 07 01 3E 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 6B 2A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B7 85 02 00 35 04 06 00 D3 66 3B E4 C5 DD 9C C1 44 C2 1F E9 04 11 [13:55:55]CheckFolder [13:55:55]dirname=/storage/ofd_packets [13:55:55]CheckFolder done [13:55:55]ProducePacketName [13:55:55]name=ofd_packets/00165303 [13:55:55]NVStorageSaveData ofd_packets/00165303 [13:55:55]File name is /storage/ofd_packets/00165303 [13:55:55]Write 301 bytes [13:55:55]NVStorageSaveData done [13:55:55]OFDSenderStorePacket done [13:55:55]KKMCreateOFDPacket done [13:55:55]NVStorageSaveData kkm_last_timestamp [13:55:55]File name is /storage/kkm_last_timestamp [13:55:55]Write 4 bytes [13:55:55]NVStorageSaveData done [13:55:55]ExternCall_PrintAddStr [13:55:55]wPrintStart [13:55:55]Write to MH i2c: 01 00 00 07 17 1E [13:55:55]Write i2c OK [13:55:55]MH_I2C_Read... [13:55:55]Read from MH i2c: 01 [13:55:55]MH_I2C_Read... [13:55:55]Read from MH i2c: 01 07 00 [13:55:55]MH_I2C_Read... [13:55:55]Read from MH i2c: 01 07 00 07 17 00 00 00 00 00 FF 0F 33 [13:55:55]RasterBufferAndPrint [13:55:55]line Счет N : (1)459414 [13:55:55]line ИНН: 02508201610067 [13:55:55]line Контрольно-Кассовый Чек [13:55:55]line ПРОДАЖА [13:55:55]line ТРК (МРК, ГНК) : 12 [13:55:55]line Товар: 2710124130 [13:55:55]line Аи-92-К-5 [13:55:55]line 7.600 * 65.80 [13:55:55]line = 500.08 [13:55:55]line НДС 12% НСП 1% [13:55:55]line > о реализуемом товаре [13:55:55]line ОКРУГЛЕНИЕ: -0.08 [13:55:55]line ИТОГО: 500.00 [13:55:55]line Внесено: 500.00 [13:55:55]line СДАЧА: 0.00 [13:55:55]line НСП 1% : 4.42 [13:55:55]line НДС 12% : 53.11 [13:55:55]line Наличными: 500.00 [13:55:55]line Безнал.: 0.00 [13:55:55]line Место: АЗС № 72 "Партнер Нефть" [13:55:55]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:55:55]line СНО: Общий режим [13:55:55]line Чек 176 15.07.2024 13:55 [13:55:55]line Смена: 448 ФФД: 1.0 [13:55:55]line ЗНМ: 0300000160 [13:55:55]line РНМ: 0000000000090829 [13:55:55]line Версия ККМ: 001 [13:55:55]line ФМ: 0000000000874718 [13:55:55]line ФД: 165303 [13:55:55]line ФПД: 232436044973533 [13:55:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T135555&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165303&fm=232436044973533&tin=02508201610067®Number=0000000000090829&sum=50000 [13:55:55]OFD Sender: Processing packet 165303 [packets to send 106, broken 105] [13:55:55]ProducePacketName [13:55:55]name=ofd_packets/00165303 [13:55:55]OFD Sender: To server: pG, [13:55:55]CommunicateWithHost lk.salyk.kg:30040 [13:55:55]ConnectInit lk.salyk.kg [13:55:55]written 0, free lines is 4095 [13:55:55]Connected sock=10 [13:55:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 40 EF 07 01 3E 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 6B 2A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B7 85 02 00 35 04 06 00 D3 66 3B E4 C5 DD 9C C1 44 C2 1F E9 04 11 [13:55:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 D0 E3 47 00 C0 DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B7 85 02 00 F4 03 04 00 F5 D0 94 66 B6 04 01 00 00 81 B6 1D 83 E2 E7 4B A1 [13:55:56]CommunicateWithHost err = 0 [13:55:56]CheckOFDResponse [13:55:56]1017 (14) - 77093643461234 [13:55:56]1041 (16) - 0000000000874718 [13:55:56]1040 (4) - 165303 [13:55:56]1012 (4) - 15.07.2024 07:34 [13:55:56]1206 (1) - 0 [13:55:56]OFD Sender: Remove packet 165303 [13:55:56]ProducePacketName [13:55:56]name=ofd_packets/00165303 [13:55:56]NVStorageDeleteData [13:55:56]Write to MH i2c: 01 00 00 31 17 48 [13:55:56]Write i2c OK [13:55:56]MH_I2C_Read... [13:55:56]Read from MH i2c: 01 [13:55:56]MH_I2C_Read... [13:55:56]Read from MH i2c: 01 07 00 [13:55:56]MH_I2C_Read... [13:55:56]Read from MH i2c: 01 07 00 31 17 00 00 00 00 00 F4 0C 4F [13:55:56]RasterBufferAndPrint [13:55:56]line [13:55:56]line [13:55:56]line [13:55:56]line [13:55:56]line [13:55:56]written 0, free lines is 3323 [13:55:56]MH_Cut [13:55:56]Write to MH i2c: D1 01 00 38 17 01 21 [13:55:56]Write i2c OK [13:55:56]MH_I2C_Read... [13:55:56]Read from MH i2c: D1 [13:55:56]MH_I2C_Read... [13:55:56]Read from MH i2c: D1 01 00 [13:55:56]MH_I2C_Read... [13:55:56]Read from MH i2c: D1 01 00 38 17 00 20 [13:55:56]Write to MH i2c: 01 00 00 39 17 50 [13:55:56]Write i2c OK [13:55:56]MH_I2C_Read... [13:55:56]OFD Sender: No OFD packet to send [13:55:56]*** Cut start [13:55:56]*** Partial cut [13:55:56]*** CUTSNS_PIN = 1 [13:55:56]*** CUTSNS_PIN = 0 [13:55:57]*** Brake cut motor [13:55:57]Read from MH i2c: 01 [13:55:57]MH_I2C_Read... [13:55:57]*** Stop cut motor [13:55:57]*** Cut end [13:55:57]Read from MH i2c: 01 07 00 [13:55:57]MH_I2C_Read... [13:55:57]Read from MH i2c: 01 07 00 39 17 00 00 00 00 00 FF 0F 65 [13:55:57]process_action close_receipt done [13:55:57]requested_data is exist [13:55:57]produce_requested_data [13:55:57]requested_item fm.sn is exist - process it [13:55:57]wFMCommunicate request_size=4 [13:55:57]MH_SAM_APDU [13:55:57]CAPDU: 80 11 00 00 [13:55:57]Write to MH i2c: E2 08 00 3A 17 80 11 00 00 00 00 00 00 CB [13:55:57]Write i2c OK [13:55:57]MH_I2C_Read... [13:55:57]Read from MH i2c: E2 [13:55:57]MH_I2C_Read... [13:55:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:57]Read from MH i2c: E2 17 00 [13:55:57]MH_I2C_Read... [13:55:57]Read from MH i2c: E2 17 00 3A 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 21 [13:55:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:55:57]wFMCommunicate OK [13:55:57]requested_item fd.num is exist - process it [13:55:57]SAM_PROTO_GetFieldsCounters [13:55:57]wFMCommunicate request_size=4 [13:55:57]MH_SAM_APDU [13:55:57]CAPDU: 80 13 00 00 [13:55:57]Write to MH i2c: E2 08 00 3B 17 80 13 00 00 00 00 00 00 CE [13:55:57]Write i2c OK [13:55:57]MH_I2C_Read... [13:55:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:55:57]Read from MH i2c: E2 [13:55:57]MH_I2C_Read... [13:55:57]Read from MH i2c: E2 62 00 [13:55:57]MH_I2C_Read... [13:55:57]Read from MH i2c: E2 62 00 3B 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B7 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [13:55:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B7 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:55:57]wFMCommunicate OK [13:55:57]SAM_PROTO_GetFieldsCounters done [13:55:57]requested_item shift.num is exist - process it [13:55:57]requested_item shift.opened is exist - process it [13:55:57]req_shift_opened [13:55:57]FM_GetShiftState [13:55:57]SAM_PROTO_GetShiftState [13:55:57]wFMCommunicate request_size=4 [13:55:57]MH_SAM_APDU [13:55:57]CAPDU: 80 13 01 00 [13:55:57]Write to MH i2c: E2 08 00 3C 17 80 13 01 00 00 00 00 00 D0 [13:55:57]Write i2c OK [13:55:57]MH_I2C_Read... [13:55:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:57]Read from MH i2c: E2 [13:55:57]MH_I2C_Read... [13:55:57]Read from MH i2c: E2 0E 00 [13:55:57]MH_I2C_Read... [13:55:57]Read from MH i2c: E2 0E 00 3C 17 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 A9 [13:55:57]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [13:55:57]wFMCommunicate OK [13:55:57]SAM_PROTO_GetShiftState done [13:55:57]FM_GetShiftState done [13:55:57]req_shift_opened done [13:55:57]requested_item shift.open_date is exist - process it [13:55:57]req_shift_open_date [13:55:57]req_shift_open_date done [13:55:57]produce_requested_data done [13:55:57]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165303,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [13:55:57]process_action_free close_receipt [13:55:57]json_value_free [13:55:57]json_value_free done [13:55:57]process_json_proto returns [13:55:57]Send response to host [13:55:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165303,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [13:55:57]free response buf [13:55:57]execute_script done [13:55:57]execute_script returns [13:55:57]free content buf [13:55:57]Sock 9.Close socket [13:55:57]Sock 9.Thread stoped [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:36]OFD Sender: No OFD packet to send [13:57:41]OFD Sender: No OFD packet to send [13:57:46]OFD Sender: No OFD packet to send [13:57:51]OFD Sender: No OFD packet to send [13:57:56]OFD Sender: No OFD packet to send [13:58:01]OFD Sender: No OFD packet to send [13:58:06]OFD Sender: No OFD packet to send [13:58:11]OFD Sender: No OFD packet to send [13:58:16]OFD Sender: No OFD packet to send [13:58:21]OFD Sender: No OFD packet to send [13:58:22]accept exits with 8 [13:58:22]New connection [13:58:22]New thread 3066711396 created [13:58:22]Thread 3066854756 joined [13:58:22]Waiting for new connection... [13:58:22] Sock 8.Parse request [13:58:22]Sock 8.Check first char [13:58:22]Sock 8.First char is OK [13:58:22]request: POST /json_proto HTTP/1.0 [13:58:22]Method: POST [13:58:22]URL: /json_proto [13:58:22]Method is POST - this is cgi request [13:58:22]url: /json_proto [13:58:22]query_string will be loaded in cgi processing [13:58:22]execute_cgi json_proto POST (null) [13:58:22]execute_cgi path=json_proto method=POST [13:58:22]POST find Content-Length [13:58:22]Host: 172.17.56.4:8080 [13:58:22]Content-Length: 793 [13:58:22]Content-Type: application/json [13:58:22] [13:58:22]POST finish read [13:58:22]Found Content-Length = 793 [13:58:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459415", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 17.940, "sum" : 1170.05, "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1170.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:22]execute_script... [13:58:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459415", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 17.940, "sum" : 1170.05, "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1170.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:22]POST & json_proto [13:58:22]process_json_proto [13:58:22]json parsed OK: [13:58:22]protocol is kg_v1.0 [13:58:22]action value=close_receipt [13:58:22]process_action close_receipt [13:58:22]cmd_close_receipt [13:58:22]MH_GetDate [13:58:22]Write to MH i2c: F0 00 00 3D 17 43 [13:58:22]Write i2c OK [13:58:22]MH_I2C_Read... [13:58:22]Read from MH i2c: F0 [13:58:22]MH_I2C_Read... [13:58:22]Read from MH i2c: F0 09 00 [13:58:22]MH_I2C_Read... [13:58:22]Read from MH i2c: F0 09 00 3D 17 00 FF 2A 95 66 C9 DC B2 64 2B [13:58:22]GetLastDocTimeStamp 1721051755 [13:58:22]current date 1721051903 [13:58:22]FM_GetShiftState [13:58:22]SAM_PROTO_GetShiftState [13:58:22]wFMCommunicate request_size=4 [13:58:22]MH_SAM_APDU [13:58:22]CAPDU: 80 13 01 00 [13:58:22]Write to MH i2c: E2 08 00 3E 17 80 13 01 00 00 00 00 00 D2 [13:58:22]Write i2c OK [13:58:22]MH_I2C_Read... [13:58:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:22]Read from MH i2c: E2 [13:58:22]MH_I2C_Read... [13:58:22]Read from MH i2c: E2 0E 00 [13:58:22]MH_I2C_Read... [13:58:22]Read from MH i2c: E2 0E 00 3E 17 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 AB [13:58:22]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [13:58:22]wFMCommunicate OK [13:58:22]SAM_PROTO_GetShiftState done [13:58:22]FM_GetShiftState done [13:58:22]opened in 1721003876 [13:58:22]opened+sec_in_day 1721090276 [13:58:22]quantity*price = 117004 [13:58:22]sum+1 = 117006 [13:58:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1170.05 НСП 1% : 10.35 НДС 12% : 124.25 Наличными: 0.00 Безнал.: 1170.05 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 177 15.07.2024 13:58 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 165304 ФПД: 154063481370872 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T135823&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165304&fm=154063481370872&tin=02508201610067®Number=0000000000090829&sum=117005 [13:58:23]StoreToDocumentArchive [13:58:23]shift 448 fd 165304 [13:58:23]save to /storage/0448/doc_00165304 [13:58:23]save last doc name /storage/0448/doc_00165304 to /storage/kkm_last_doc_name [13:58:23]save OK [13:58:23]Clear old archive folders... [13:58:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:58:23]tlvbuf is 0189DA30 [13:58:23]SAM_PROTO_ClearQueue [13:58:23]wFMCommunicate request_size=4 [13:58:23]MH_SAM_APDU [13:58:23]CAPDU: 80 09 00 00 [13:58:23]Write to MH i2c: E2 08 00 4B 17 80 09 00 00 00 00 00 00 D4 [13:58:23]Write i2c OK [13:58:23]MH_I2C_Read... [13:58:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:58:23]Read from MH i2c: E2 [13:58:23]MH_I2C_Read... [13:58:23]Read from MH i2c: E2 03 00 [13:58:23]MH_I2C_Read... [13:58:23]Read from MH i2c: E2 03 00 4B 17 00 90 00 D6 [13:58:23]RAPDU: 90 00 [13:58:23]wFMCommunicate OK [13:58:23]SAM_PROTO_ClearQueue done [13:58:23]KKMCreateOFDPacket [13:58:23]OFDProtocolAddRootSTLVToBuf [13:58:23]FM_MakeSignedData [13:58:23]FM_MakeSignedData [13:58:23]SAM_PROTO_SignData [13:58:23]wFMCommunicate request_size=4 [13:58:23]MH_SAM_APDU [13:58:23]CAPDU: 80 0D 01 02 [13:58:23]Write to MH i2c: E2 08 00 4C 17 80 0D 01 02 00 00 00 00 DC [13:58:23]Write i2c OK [13:58:23]MH_I2C_Read... [13:58:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:58:23]Read from MH i2c: E2 [13:58:23]MH_I2C_Read... [13:58:23]Read from MH i2c: E2 03 00 [13:58:23]MH_I2C_Read... [13:58:23]Read from MH i2c: E2 03 00 4C 17 00 90 00 D7 [13:58:23]RAPDU: 90 00 [13:58:23]wFMCommunicate OK [13:58:23]wFMCommunicate request_size=255 [13:58:23]MH_SAM_APDU [13:58:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 0D C9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0D C9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 30 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0D C9 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 FF 2A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B8 85 02 00 35 04 06 00 8C [13:58:23]Write to MH i2c: E2 02 01 4D 17 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 14 46 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 0D C9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0D C9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 30 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0D C9 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 FF 2A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B8 85 02 00 35 04 06 00 8C 00 00 87 [13:58:23]Write i2c OK [13:58:23]MH_I2C_Read... [13:58:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:24]Read from MH i2c: E2 [13:58:24]MH_I2C_Read... [13:58:24]Read from MH i2c: E2 03 00 [13:58:24]MH_I2C_Read... [13:58:24]Read from MH i2c: E2 03 00 4D 17 00 90 00 D8 [13:58:24]RAPDU: 90 00 [13:58:24]wFMCommunicate OK [13:58:24]wFMCommunicate request_size=10 [13:58:24]MH_SAM_APDU [13:58:24]CAPDU: 80 0D 02 02 05 1E B3 14 78 F8 [13:58:24]Write to MH i2c: E2 0D 00 4E 17 80 0D 02 02 05 00 1E B3 14 78 F8 00 00 3E [13:58:24]Write i2c OK [13:58:24]MH_I2C_Read... [13:58:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:24]Read from MH i2c: E2 [13:58:24]MH_I2C_Read... [13:58:24]Read from MH i2c: E2 03 00 [13:58:24]MH_I2C_Read... [13:58:24]Read from MH i2c: E2 03 00 4E 17 00 90 00 D9 [13:58:24]RAPDU: 90 00 [13:58:24]wFMCommunicate OK [13:58:24]wFMCommunicate request_size=4 [13:58:24]MH_SAM_APDU [13:58:24]CAPDU: 80 0D 03 02 [13:58:24]Write to MH i2c: E2 08 00 4F 17 80 0D 03 02 00 00 00 00 E1 [13:58:24]Write i2c OK [13:58:24]MH_I2C_Read... [13:58:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:58:24]Read from MH i2c: E2 [13:58:24]MH_I2C_Read... [13:58:24]Read from MH i2c: E2 0B 00 [13:58:24]MH_I2C_Read... [13:58:24]Read from MH i2c: E2 0B 00 4F 17 00 DB 05 A2 8D A7 98 10 40 90 00 80 [13:58:24]RAPDU: DB 05 A2 8D A7 98 10 40 90 00 [13:58:24]wFMCommunicate OK [13:58:24]SAM_PROTO_SignData done [13:58:24]FM_MakeSignedData done [13:58:24]CreateOFDProtocolMessage [13:58:24]wFMCommunicate request_size=4 [13:58:24]MH_SAM_APDU [13:58:24]CAPDU: 80 11 00 00 [13:58:24]Write to MH i2c: E2 08 00 50 17 80 11 00 00 00 00 00 00 E1 [13:58:24]Write i2c OK [13:58:24]MH_I2C_Read... [13:58:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:24]Read from MH i2c: E2 [13:58:24]MH_I2C_Read... [13:58:24]Read from MH i2c: E2 17 00 [13:58:24]MH_I2C_Read... [13:58:24]Read from MH i2c: E2 17 00 50 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 37 [13:58:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:58:24]wFMCommunicate OK [13:58:24]CreateOFDProtocolMessage done [13:58:24]OFDSenderStorePacket 165304 [13:58:24]StoreOFDPacket docnum=165304 [13:58:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 AE 29 07 01 A9 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 0D C9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0D C9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 30 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0D C9 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 FF 2A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B8 85 02 00 35 04 06 00 8C 1E B3 14 78 F8 DB 05 A2 8D A7 98 10 40 [13:58:24]CheckFolder [13:58:24]dirname=/storage/ofd_packets [13:58:24]CheckFolder done [13:58:24]ProducePacketName [13:58:24]name=ofd_packets/00165304 [13:58:24]NVStorageSaveData ofd_packets/00165304 [13:58:24]File name is /storage/ofd_packets/00165304 [13:58:24]Write 301 bytes [13:58:24]NVStorageSaveData done [13:58:24]OFDSenderStorePacket done [13:58:24]KKMCreateOFDPacket done [13:58:24]NVStorageSaveData kkm_last_timestamp [13:58:24]File name is /storage/kkm_last_timestamp [13:58:24]Write 4 bytes [13:58:24]NVStorageSaveData done [13:58:24]ExternCall_PrintAddStr [13:58:24]wPrintStart [13:58:24]Write to MH i2c: 01 00 00 51 17 68 [13:58:24]Write i2c OK [13:58:24]MH_I2C_Read... [13:58:24]Read from MH i2c: 01 [13:58:24]MH_I2C_Read... [13:58:24]Read from MH i2c: 01 07 00 [13:58:24]MH_I2C_Read... [13:58:24]Read from MH i2c: 01 07 00 51 17 00 00 00 00 00 FF 0F 7D [13:58:24]RasterBufferAndPrint [13:58:24]line Счет N : (1)459415 [13:58:24]line ИНН: 02508201610067 [13:58:24]line Контрольно-Кассовый Чек [13:58:24]line ПРОДАЖА [13:58:24]line ТРК (МРК, ГНК) : 22 [13:58:24]line Товар: 2710124130 [13:58:24]line Аи-92-К-5 [13:58:24]line 17.940 * 65.22 [13:58:24]line = 1170.05 [13:58:24]line НДС 12% НСП 1% [13:58:24]line > о реализуемом товаре [13:58:24]line ИТОГО: 1170.05 [13:58:24]line НСП 1% : 10.35 [13:58:24]line НДС 12% : 124.25 [13:58:24]line Наличными: 0.00 [13:58:24]line Безнал.: 1170.05 [13:58:24]line Место: АЗС № 72 "Партнер Нефть" [13:58:24]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:58:24]line СНО: Общий режим [13:58:24]line Чек 177 15.07.2024 13:58 [13:58:24]line Смена: 448 ФФД: 1.0 [13:58:24]line ЗНМ: 0300000160 [13:58:24]line РНМ: 0000000000090829 [13:58:24]line Версия ККМ: 001 [13:58:24]line Платежная система: KICB Банк [13:58:24]line ФМ: 0000000000874718 [13:58:24]line ФД: 165304 [13:58:24]line ФПД: 154063481370872 [13:58:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T135823&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165304&fm=154063481370872&tin=02508201610067®Number=0000000000090829&sum=117005 [13:58:24]written 0, free lines is 4095 [13:58:24]OFD Sender: Processing packet 165304 [packets to send 106, broken 105] [13:58:24]ProducePacketName [13:58:24]name=ofd_packets/00165304 [13:58:24]OFD Sender: To server: pG, [13:58:24]CommunicateWithHost lk.salyk.kg:30040 [13:58:24]ConnectInit lk.salyk.kg [13:58:24]Connected sock=10 [13:58:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 AE 29 07 01 A9 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 0D C9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0D C9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 30 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0D C9 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 FF 2A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B8 85 02 00 35 04 06 00 8C 1E B3 14 78 F8 DB 05 A2 8D A7 98 10 40 [13:58:24]Write to MH i2c: 01 00 00 7A 17 91 [13:58:24]Write i2c OK [13:58:24]MH_I2C_Read... [13:58:24]Read from MH i2c: 01 [13:58:24]MH_I2C_Read... [13:58:24]Read from MH i2c: 01 07 00 [13:58:24]MH_I2C_Read... [13:58:24]Read from MH i2c: 01 07 00 7A 17 00 00 00 00 00 0A 0D AF [13:58:24]RasterBufferAndPrint [13:58:24]line [13:58:24]line [13:58:24]line [13:58:24]line [13:58:24]line [13:58:24]written 0, free lines is 3344 [13:58:24]MH_Cut [13:58:24]Write to MH i2c: D1 01 00 81 17 01 6A [13:58:24]Write i2c OK [13:58:24]MH_I2C_Read... [13:58:24]Read from MH i2c: D1 [13:58:24]MH_I2C_Read... [13:58:24]Read from MH i2c: D1 01 00 [13:58:24]MH_I2C_Read... [13:58:24]Read from MH i2c: D1 01 00 81 17 00 69 [13:58:24]Write to MH i2c: 01 00 00 82 17 99 [13:58:24]Write i2c OK [13:58:24]MH_I2C_Read... [13:58:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 1A 61 47 00 C6 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B8 85 02 00 F4 03 04 00 8A D1 94 66 B6 04 01 00 00 B5 B2 48 22 E2 4E D0 D9 [13:58:24]CommunicateWithHost err = 0 [13:58:24]CheckOFDResponse [13:58:24]1017 (14) - 77093643461234 [13:58:24]1041 (16) - 0000000000874718 [13:58:24]1040 (4) - 165304 [13:58:24]1012 (4) - 15.07.2024 07:36 [13:58:24]1206 (1) - 0 [13:58:24]OFD Sender: Remove packet 165304 [13:58:24]ProducePacketName [13:58:24]name=ofd_packets/00165304 [13:58:24]NVStorageDeleteData [13:58:25]*** Cut start [13:58:25]*** Partial cut [13:58:25]*** CUTSNS_PIN = 1 [13:58:25]OFD Sender: No OFD packet to send [13:58:25]*** CUTSNS_PIN = 0 [13:58:25]*** Brake cut motor [13:58:26]Read from MH i2c: 01 [13:58:26]MH_I2C_Read... [13:58:26]*** Stop cut motor [13:58:26]*** Cut end [13:58:26]Read from MH i2c: 01 07 00 [13:58:26]MH_I2C_Read... [13:58:26]Read from MH i2c: 01 07 00 82 17 00 00 00 00 00 FF 0F AE [13:58:26]process_action close_receipt done [13:58:26]requested_data is exist [13:58:26]produce_requested_data [13:58:26]requested_item fm.sn is exist - process it [13:58:26]wFMCommunicate request_size=4 [13:58:26]MH_SAM_APDU [13:58:26]CAPDU: 80 11 00 00 [13:58:26]Write to MH i2c: E2 08 00 83 17 80 11 00 00 00 00 00 00 14 [13:58:26]Write i2c OK [13:58:26]MH_I2C_Read... [13:58:26]Read from MH i2c: E2 [13:58:26]MH_I2C_Read... [13:58:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:26]Read from MH i2c: E2 17 00 [13:58:26]MH_I2C_Read... [13:58:26]Read from MH i2c: E2 17 00 83 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6A [13:58:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:58:26]wFMCommunicate OK [13:58:26]requested_item fd.num is exist - process it [13:58:26]SAM_PROTO_GetFieldsCounters [13:58:26]wFMCommunicate request_size=4 [13:58:26]MH_SAM_APDU [13:58:26]CAPDU: 80 13 00 00 [13:58:26]Write to MH i2c: E2 08 00 84 17 80 13 00 00 00 00 00 00 17 [13:58:26]Write i2c OK [13:58:26]MH_I2C_Read... [13:58:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:58:26]Read from MH i2c: E2 [13:58:26]MH_I2C_Read... [13:58:26]Read from MH i2c: E2 62 00 [13:58:26]MH_I2C_Read... [13:58:26]Read from MH i2c: E2 62 00 84 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B8 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [13:58:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B8 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:58:26]wFMCommunicate OK [13:58:26]SAM_PROTO_GetFieldsCounters done [13:58:26]requested_item shift.num is exist - process it [13:58:26]requested_item shift.opened is exist - process it [13:58:26]req_shift_opened [13:58:26]FM_GetShiftState [13:58:26]SAM_PROTO_GetShiftState [13:58:26]wFMCommunicate request_size=4 [13:58:26]MH_SAM_APDU [13:58:26]CAPDU: 80 13 01 00 [13:58:26]Write to MH i2c: E2 08 00 85 17 80 13 01 00 00 00 00 00 19 [13:58:26]Write i2c OK [13:58:26]MH_I2C_Read... [13:58:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:26]Read from MH i2c: E2 [13:58:26]MH_I2C_Read... [13:58:26]Read from MH i2c: E2 0E 00 [13:58:26]MH_I2C_Read... [13:58:26]Read from MH i2c: E2 0E 00 85 17 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 F2 [13:58:26]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [13:58:26]wFMCommunicate OK [13:58:26]SAM_PROTO_GetShiftState done [13:58:26]FM_GetShiftState done [13:58:26]req_shift_opened done [13:58:26]requested_item shift.open_date is exist - process it [13:58:26]req_shift_open_date [13:58:26]req_shift_open_date done [13:58:26]produce_requested_data done [13:58:26]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165304,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [13:58:26]process_action_free close_receipt [13:58:26]json_value_free [13:58:26]json_value_free done [13:58:26]process_json_proto returns [13:58:26]Send response to host [13:58:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165304,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [13:58:26]free response buf [13:58:26]execute_script done [13:58:26]execute_script returns [13:58:26]free content buf [13:58:26]Sock 8.Close socket [13:58:26]Sock 8.Thread stoped [13:58:30]OFD Sender: No OFD packet to send [13:58:35]OFD Sender: No OFD packet to send [13:58:36]accept exits with 9 [13:58:36]New connection [13:58:36]New thread 3066854756 created [13:58:36]Thread 3066711396 joined [13:58:36]Waiting for new connection... [13:58:36] Sock 9.Parse request [13:58:36]Sock 9.Check first char [13:58:36]Sock 9.First char is OK [13:58:36]request: POST /json_proto HTTP/1.0 [13:58:36]Method: POST [13:58:36]URL: /json_proto [13:58:36]Method is POST - this is cgi request [13:58:36]url: /json_proto [13:58:36]query_string will be loaded in cgi processing [13:58:36]execute_cgi json_proto POST (null) [13:58:36]execute_cgi path=json_proto method=POST [13:58:36]POST find Content-Length [13:58:36]Host: 172.17.56.4:8080 [13:58:36]Content-Length: 677 [13:58:36]Content-Type: application/json [13:58:36] [13:58:36]POST finish read [13:58:36]Found Content-Length = 677 [13:58:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459416", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.280, "sum" : 150.02, "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" ] } } [13:58:36]execute_script... [13:58: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)459416", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.280, "sum" : 150.02, "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" ] } } [13:58:36]POST & json_proto [13:58:36]process_json_proto [13:58:36]json parsed OK: [13:58:36]protocol is kg_v1.0 [13:58:36]action value=close_receipt [13:58:36]process_action close_receipt [13:58:36]cmd_close_receipt [13:58:36]MH_GetDate [13:58:36]Write to MH i2c: F0 00 00 86 17 8C [13:58:36]Write i2c OK [13:58:36]MH_I2C_Read... [13:58:36]Read from MH i2c: F0 [13:58:36]MH_I2C_Read... [13:58:36]Read from MH i2c: F0 09 00 [13:58:36]MH_I2C_Read... [13:58:36]Read from MH i2c: F0 09 00 86 17 00 0D 2B 95 66 C9 DC B2 64 83 [13:58:36]GetLastDocTimeStamp 1721051903 [13:58:36]current date 1721051917 [13:58:36]FM_GetShiftState [13:58:36]SAM_PROTO_GetShiftState [13:58:36]wFMCommunicate request_size=4 [13:58:36]MH_SAM_APDU [13:58:36]CAPDU: 80 13 01 00 [13:58:36]Write to MH i2c: E2 08 00 87 17 80 13 01 00 00 00 00 00 1B [13:58:36]Write i2c OK [13:58:36]MH_I2C_Read... [13:58:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:36]Read from MH i2c: E2 [13:58:36]MH_I2C_Read... [13:58:36]Read from MH i2c: E2 0E 00 [13:58:36]MH_I2C_Read... [13:58:36]Read from MH i2c: E2 0E 00 87 17 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 F4 [13:58:36]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [13:58:36]wFMCommunicate OK [13:58:36]SAM_PROTO_GetShiftState done [13:58:36]FM_GetShiftState done [13:58:36]opened in 1721003876 [13:58:36]opened+sec_in_day 1721090276 [13:58:36]quantity*price = 15002 [13:58:36]sum+1 = 15003 [13:58:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 178 15.07.2024 13:58 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165305 ФПД: 223103056799562 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T135837&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165305&fm=223103056799562&tin=02508201610067®Number=0000000000090829&sum=15000 [13:58:37]StoreToDocumentArchive [13:58:37]shift 448 fd 165305 [13:58:37]save to /storage/0448/doc_00165305 [13:58:37]save last doc name /storage/0448/doc_00165305 to /storage/kkm_last_doc_name [13:58:37]save OK [13:58:37]Clear old archive folders... [13:58:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:58:37]tlvbuf is 018117A0 [13:58:37]SAM_PROTO_ClearQueue [13:58:37]wFMCommunicate request_size=4 [13:58:37]MH_SAM_APDU [13:58:37]CAPDU: 80 09 00 00 [13:58:37]Write to MH i2c: E2 08 00 94 17 80 09 00 00 00 00 00 00 1D [13:58:37]Write i2c OK [13:58:37]MH_I2C_Read... [13:58:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:58:37]Read from MH i2c: E2 [13:58:37]MH_I2C_Read... [13:58:37]Read from MH i2c: E2 03 00 [13:58:37]MH_I2C_Read... [13:58:37]Read from MH i2c: E2 03 00 94 17 00 90 00 1F [13:58:37]RAPDU: 90 00 [13:58:37]wFMCommunicate OK [13:58:37]SAM_PROTO_ClearQueue done [13:58:37]KKMCreateOFDPacket [13:58:37]OFDProtocolAddRootSTLVToBuf [13:58:37]FM_MakeSignedData [13:58:37]FM_MakeSignedData [13:58:37]SAM_PROTO_SignData [13:58:37]wFMCommunicate request_size=4 [13:58:37]MH_SAM_APDU [13:58:37]CAPDU: 80 0D 01 02 [13:58:37]Write to MH i2c: E2 08 00 95 17 80 0D 01 02 00 00 00 00 25 [13:58:37]Write i2c OK [13:58:37]MH_I2C_Read... [13:58:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:58:37]Read from MH i2c: E2 [13:58:37]MH_I2C_Read... [13:58:37]Read from MH i2c: E2 03 00 [13:58:37]MH_I2C_Read... [13:58:37]Read from MH i2c: E2 03 00 95 17 00 90 00 20 [13:58:37]RAPDU: 90 00 [13:58:37]wFMCommunicate OK [13:58:37]wFMCommunicate request_size=255 [13:58:37]MH_SAM_APDU [13:58: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 E8 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 9A 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 0D 2B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B9 85 02 00 35 04 06 00 CA [13:58:37]Write to MH i2c: E2 02 01 96 17 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 E8 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 9A 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 0D 2B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B9 85 02 00 35 04 06 00 CA 00 00 DE [13:58:37]Write i2c OK [13:58:37]MH_I2C_Read... [13:58:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:37]Read from MH i2c: E2 [13:58:37]MH_I2C_Read... [13:58:37]Read from MH i2c: E2 03 00 [13:58:37]MH_I2C_Read... [13:58:37]Read from MH i2c: E2 03 00 96 17 00 90 00 21 [13:58:37]RAPDU: 90 00 [13:58:37]wFMCommunicate OK [13:58:37]wFMCommunicate request_size=10 [13:58:37]MH_SAM_APDU [13:58:37]CAPDU: 80 0D 02 02 05 E9 3A 72 E7 4A [13:58:37]Write to MH i2c: E2 0D 00 97 17 80 0D 02 02 05 00 E9 3A 72 E7 4A 00 00 F8 [13:58:37]Write i2c OK [13:58:37]MH_I2C_Read... [13:58:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:37]Read from MH i2c: E2 [13:58:37]MH_I2C_Read... [13:58:37]Read from MH i2c: E2 03 00 [13:58:37]MH_I2C_Read... [13:58:37]Read from MH i2c: E2 03 00 97 17 00 90 00 22 [13:58:37]RAPDU: 90 00 [13:58:37]wFMCommunicate OK [13:58:37]wFMCommunicate request_size=4 [13:58:37]MH_SAM_APDU [13:58:37]CAPDU: 80 0D 03 02 [13:58:37]Write to MH i2c: E2 08 00 98 17 80 0D 03 02 00 00 00 00 2A [13:58:37]Write i2c OK [13:58:37]MH_I2C_Read... [13:58:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:58:37]Read from MH i2c: E2 [13:58:37]MH_I2C_Read... [13:58:37]Read from MH i2c: E2 0B 00 [13:58:37]MH_I2C_Read... [13:58:37]Read from MH i2c: E2 0B 00 98 17 00 C7 F3 22 A2 76 69 E7 5A 90 00 C9 [13:58:37]RAPDU: C7 F3 22 A2 76 69 E7 5A 90 00 [13:58:37]wFMCommunicate OK [13:58:37]SAM_PROTO_SignData done [13:58:37]FM_MakeSignedData done [13:58:37]CreateOFDProtocolMessage [13:58:37]wFMCommunicate request_size=4 [13:58:37]MH_SAM_APDU [13:58:37]CAPDU: 80 11 00 00 [13:58:37]Write to MH i2c: E2 08 00 99 17 80 11 00 00 00 00 00 00 2A [13:58:37]Write i2c OK [13:58:37]MH_I2C_Read... [13:58:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:37]Read from MH i2c: E2 [13:58:37]MH_I2C_Read... [13:58:37]Read from MH i2c: E2 17 00 [13:58:37]MH_I2C_Read... [13:58:37]Read from MH i2c: E2 17 00 99 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 80 [13:58:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:58:37]wFMCommunicate OK [13:58:37]CreateOFDProtocolMessage done [13:58:37]OFDSenderStorePacket 165305 [13:58:37]StoreOFDPacket docnum=165305 [13:58:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B8 1B 07 01 8F 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 9A 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 0D 2B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B9 85 02 00 35 04 06 00 CA E9 3A 72 E7 4A C7 F3 22 A2 76 69 E7 5A [13:58:37]CheckFolder [13:58:37]dirname=/storage/ofd_packets [13:58:37]CheckFolder done [13:58:37]ProducePacketName [13:58:37]name=ofd_packets/00165305 [13:58:37]NVStorageSaveData ofd_packets/00165305 [13:58:37]File name is /storage/ofd_packets/00165305 [13:58:37]Write 301 bytes [13:58:37]NVStorageSaveData done [13:58:37]OFDSenderStorePacket done [13:58:37]KKMCreateOFDPacket done [13:58:37]NVStorageSaveData kkm_last_timestamp [13:58:37]File name is /storage/kkm_last_timestamp [13:58:37]Write 4 bytes [13:58:37]NVStorageSaveData done [13:58:37]ExternCall_PrintAddStr [13:58:37]wPrintStart [13:58:37]Write to MH i2c: 01 00 00 9A 17 B1 [13:58:37]Write i2c OK [13:58:37]MH_I2C_Read... [13:58:37]Read from MH i2c: 01 [13:58:37]MH_I2C_Read... [13:58:37]Read from MH i2c: 01 07 00 [13:58:37]MH_I2C_Read... [13:58:37]Read from MH i2c: 01 07 00 9A 17 00 00 00 00 00 FF 0F C6 [13:58:37]RasterBufferAndPrint [13:58:37]line Счет N : (1)459416 [13:58:37]line ИНН: 02508201610067 [13:58:37]line Контрольно-Кассовый Чек [13:58:37]line ПРОДАЖА [13:58:37]line ТРК (МРК, ГНК) : 22 [13:58:37]line Товар: 2710124130 [13:58:37]line Аи-92-К-5 [13:58:37]line 2.280 * 65.80 [13:58:37]line = 150.02 [13:58:37]line НДС 12% НСП 1% [13:58:37]line > о реализуемом товаре [13:58:37]line ОКРУГЛЕНИЕ: -0.02 [13:58:37]line ИТОГО: 150.00 [13:58:37]line Внесено: 150.00 [13:58:37]line СДАЧА: 0.00 [13:58:37]line НСП 1% : 1.33 [13:58:37]line НДС 12% : 15.93 [13:58:37]line Наличными: 150.00 [13:58:37]line Безнал.: 0.00 [13:58:37]line Место: АЗС № 72 "Партнер Нефть" [13:58:37]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [13:58:37]line СНО: Общий режим [13:58:37]line Чек 178 15.07.2024 13:58 [13:58:37]line Смена: 448 ФФД: 1.0 [13:58:37]line ЗНМ: 0300000160 [13:58:37]line РНМ: 0000000000090829 [13:58:37]line Версия ККМ: 001 [13:58:37]line ФМ: 0000000000874718 [13:58:37]line ФД: 165305 [13:58:37]line ФПД: 223103056799562 [13:58:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T135837&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165305&fm=223103056799562&tin=02508201610067®Number=0000000000090829&sum=15000 [13:58:38]written 0, free lines is 4095 [13:58:38]OFD Sender: Processing packet 165305 [packets to send 106, broken 105] [13:58:38]ProducePacketName [13:58:38]name=ofd_packets/00165305 [13:58:38]OFD Sender: To server: pG, [13:58:38]CommunicateWithHost lk.salyk.kg:30040 [13:58:38]ConnectInit lk.salyk.kg [13:58:38]Connected sock=10 [13:58: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 37 31 38 0F 01 00 00 B8 1B 07 01 8F 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 9A 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 0D 2B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B9 85 02 00 35 04 06 00 CA E9 3A 72 E7 4A C7 F3 22 A2 76 69 E7 5A [13:58:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 76 BC 47 00 53 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 B9 85 02 00 F4 03 04 00 97 D1 94 66 B6 04 01 00 00 ED 9D AA 26 E6 FD C5 2B [13:58:38]CommunicateWithHost err = 0 [13:58:38]CheckOFDResponse [13:58:38]1017 (14) - 77093643461234 [13:58:38]1041 (16) - 0000000000874718 [13:58:38]1040 (4) - 165305 [13:58:38]1012 (4) - 15.07.2024 07:36 [13:58:38]1206 (1) - 0 [13:58:38]OFD Sender: Remove packet 165305 [13:58:38]ProducePacketName [13:58:38]name=ofd_packets/00165305 [13:58:38]NVStorageDeleteData [13:58:38]Write to MH i2c: 01 00 00 C4 17 DB [13:58:38]Write i2c OK [13:58:38]MH_I2C_Read... [13:58:38]Read from MH i2c: 01 [13:58:38]MH_I2C_Read... [13:58:38]Read from MH i2c: 01 07 00 [13:58:38]MH_I2C_Read... [13:58:38]Read from MH i2c: 01 07 00 C4 17 00 00 00 00 00 F4 0C E2 [13:58:38]RasterBufferAndPrint [13:58:38]line [13:58:38]line [13:58:38]line [13:58:38]line [13:58:38]line [13:58:38]written 0, free lines is 3323 [13:58:38]MH_Cut [13:58:38]Write to MH i2c: D1 01 00 CB 17 01 B4 [13:58:38]Write i2c OK [13:58:38]MH_I2C_Read... [13:58:38]Read from MH i2c: D1 [13:58:38]MH_I2C_Read... [13:58:38]Read from MH i2c: D1 01 00 [13:58:38]MH_I2C_Read... [13:58:38]Read from MH i2c: D1 01 00 CB 17 00 B3 [13:58:38]Write to MH i2c: 01 00 00 CC 17 E3 [13:58:38]Write i2c OK [13:58:38]MH_I2C_Read... [13:58:38]OFD Sender: No OFD packet to send [13:58:39]*** Cut start [13:58:39]*** Partial cut [13:58:39]*** CUTSNS_PIN = 1 [13:58:39]*** CUTSNS_PIN = 0 [13:58:39]*** Brake cut motor [13:58:39]Read from MH i2c: 01 [13:58:39]MH_I2C_Read... [13:58:39]*** Stop cut motor [13:58:39]*** Cut end [13:58:39]Read from MH i2c: 01 07 00 [13:58:39]MH_I2C_Read... [13:58:39]Read from MH i2c: 01 07 00 CC 17 00 00 00 00 00 FF 0F F8 [13:58:39]process_action close_receipt done [13:58:39]requested_data is exist [13:58:39]produce_requested_data [13:58:39]requested_item fm.sn is exist - process it [13:58:39]wFMCommunicate request_size=4 [13:58:39]MH_SAM_APDU [13:58:39]CAPDU: 80 11 00 00 [13:58:39]Write to MH i2c: E2 08 00 CD 17 80 11 00 00 00 00 00 00 5E [13:58:39]Write i2c OK [13:58:39]MH_I2C_Read... [13:58:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:39]Read from MH i2c: E2 [13:58:39]MH_I2C_Read... [13:58:39]Read from MH i2c: E2 17 00 [13:58:39]MH_I2C_Read... [13:58:39]Read from MH i2c: E2 17 00 CD 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B4 [13:58:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [13:58:39]wFMCommunicate OK [13:58:39]requested_item fd.num is exist - process it [13:58:39]SAM_PROTO_GetFieldsCounters [13:58:39]wFMCommunicate request_size=4 [13:58:39]MH_SAM_APDU [13:58:39]CAPDU: 80 13 00 00 [13:58:39]Write to MH i2c: E2 08 00 CE 17 80 13 00 00 00 00 00 00 61 [13:58:39]Write i2c OK [13:58:39]MH_I2C_Read... [13:58:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:58:40]Read from MH i2c: E2 [13:58:40]MH_I2C_Read... [13:58:40]Read from MH i2c: E2 62 00 [13:58:40]MH_I2C_Read... [13:58:40]Read from MH i2c: E2 62 00 CE 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B9 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [13:58: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 B9 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:58:40]wFMCommunicate OK [13:58:40]SAM_PROTO_GetFieldsCounters done [13:58:40]requested_item shift.num is exist - process it [13:58:40]requested_item shift.opened is exist - process it [13:58:40]req_shift_opened [13:58:40]FM_GetShiftState [13:58:40]SAM_PROTO_GetShiftState [13:58:40]wFMCommunicate request_size=4 [13:58:40]MH_SAM_APDU [13:58:40]CAPDU: 80 13 01 00 [13:58:40]Write to MH i2c: E2 08 00 CF 17 80 13 01 00 00 00 00 00 63 [13:58:40]Write i2c OK [13:58:40]MH_I2C_Read... [13:58:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:40]Read from MH i2c: E2 [13:58:40]MH_I2C_Read... [13:58:40]Read from MH i2c: E2 0E 00 [13:58:40]MH_I2C_Read... [13:58:40]Read from MH i2c: E2 0E 00 CF 17 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 3C [13:58:40]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [13:58:40]wFMCommunicate OK [13:58:40]SAM_PROTO_GetShiftState done [13:58:40]FM_GetShiftState done [13:58:40]req_shift_opened done [13:58:40]requested_item shift.open_date is exist - process it [13:58:40]req_shift_open_date [13:58:40]req_shift_open_date done [13:58:40]produce_requested_data done [13:58:40]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165305,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [13:58:40]process_action_free close_receipt [13:58:40]json_value_free [13:58:40]json_value_free done [13:58:40]process_json_proto returns [13:58:40]Send response to host [13:58:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165305,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [13:58:40]free response buf [13:58:40]execute_script done [13:58:40]execute_script returns [13:58:40]free content buf [13:58:40]Sock 9.Close socket [13:58:40]Sock 9.Thread stoped [13:58:43]OFD Sender: No OFD packet to send [13:58:48]OFD Sender: No OFD packet to send [13:58:53]OFD Sender: No OFD packet to send [13:58:58]OFD Sender: No OFD packet to send [13:59:03]OFD Sender: No OFD packet to send [13:59:08]OFD Sender: No OFD packet to send [13:59:13]OFD Sender: No OFD packet to send [13:59:18]OFD Sender: No OFD packet to send [13:59:23]OFD Sender: No OFD packet to send [13:59:29]OFD Sender: No OFD packet to send [13:59:34]OFD Sender: No OFD packet to send [13:59:39]OFD Sender: No OFD packet to send [13:59:44]OFD Sender: No OFD packet to send [13:59:49]OFD Sender: No OFD packet to send [13:59:54]OFD Sender: No OFD packet to send [13:59:59]OFD Sender: No OFD packet to send [14:00:04]OFD Sender: No OFD packet to send [14:00:09]OFD Sender: No OFD packet to send [14:00:14]OFD Sender: No OFD packet to send [14:00:19]OFD Sender: No OFD packet to send [14:00:24]OFD Sender: No OFD packet to send [14:00:29]OFD Sender: No OFD packet to send [14:00:34]OFD Sender: No OFD packet to send [14:00:39]OFD Sender: No OFD packet to send [14:00:44]OFD Sender: No OFD packet to send [14:00:49]OFD Sender: No OFD packet to send [14:00:54]OFD Sender: No OFD packet to send [14:00:59]OFD Sender: No OFD packet to send [14:01:04]OFD Sender: No OFD packet to send [14:01:09]OFD Sender: No OFD packet to send [14:01:14]OFD Sender: No OFD packet to send [14:01:19]OFD Sender: No OFD packet to send [14:01:24]OFD Sender: No OFD packet to send [14:01:29]OFD Sender: No OFD packet to send [14:01:34]OFD Sender: No OFD packet to send [14:01:39]OFD Sender: No OFD packet to send [14:01:44]OFD Sender: No OFD packet to send [14:01:49]OFD Sender: No OFD packet to send [14:01:54]OFD Sender: No OFD packet to send [14:01:59]OFD Sender: No OFD packet to send [14:02:03]accept exits with 8 [14:02:03]New connection [14:02:03]New thread 3066711396 created [14:02:03]Thread 3066854756 joined [14:02:03]Waiting for new connection... [14:02:03] Sock 8.Parse request [14:02:03]Sock 8.Check first char [14:02:03]Sock 8.First char is OK [14:02:03]request: POST /json_proto HTTP/1.0 [14:02:03]Method: POST [14:02:03]URL: /json_proto [14:02:03]Method is POST - this is cgi request [14:02:03]url: /json_proto [14:02:03]query_string will be loaded in cgi processing [14:02:03]execute_cgi json_proto POST (null) [14:02:03]execute_cgi path=json_proto method=POST [14:02:03]POST find Content-Length [14:02:03]Host: 172.17.56.4:8080 [14:02:03]Content-Length: 843 [14:02:03]Content-Type: application/json [14:02:03] [14:02:03]POST finish read [14:02:03]Found Content-Length = 843 [14:02:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459417", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 23.000, "sum" : 1500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1500.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:03]execute_script... [14:02: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)459417", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 23.000, "sum" : 1500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1500.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:03]POST & json_proto [14:02:03]process_json_proto [14:02:03]json parsed OK: [14:02:03]protocol is kg_v1.0 [14:02:03]action value=close_receipt [14:02:03]process_action close_receipt [14:02:03]cmd_close_receipt [14:02:03]MH_GetDate [14:02:03]Write to MH i2c: F0 00 00 D0 17 D6 [14:02:03]Write i2c OK [14:02:03]MH_I2C_Read... [14:02:03]Read from MH i2c: F0 [14:02:03]MH_I2C_Read... [14:02:03]Read from MH i2c: F0 09 00 [14:02:03]MH_I2C_Read... [14:02:03]Read from MH i2c: F0 09 00 D0 17 00 DD 2B 95 66 C9 DC B2 64 9D [14:02:03]GetLastDocTimeStamp 1721051917 [14:02:03]current date 1721052125 [14:02:03]FM_GetShiftState [14:02:03]SAM_PROTO_GetShiftState [14:02:03]wFMCommunicate request_size=4 [14:02:03]MH_SAM_APDU [14:02:03]CAPDU: 80 13 01 00 [14:02:03]Write to MH i2c: E2 08 00 D1 17 80 13 01 00 00 00 00 00 65 [14:02:03]Write i2c OK [14:02:03]MH_I2C_Read... [14:02:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:04]Read from MH i2c: E2 [14:02:04]MH_I2C_Read... [14:02:04]Read from MH i2c: E2 0E 00 [14:02:04]MH_I2C_Read... [14:02:04]Read from MH i2c: E2 0E 00 D1 17 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 3E [14:02:04]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [14:02:04]wFMCommunicate OK [14:02:04]SAM_PROTO_GetShiftState done [14:02:04]FM_GetShiftState done [14:02:04]opened in 1721003876 [14:02:04]opened+sec_in_day 1721090276 [14:02:04]quantity*price = 150006 [14:02:04]sum+1 = 150007 [14:02:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.06 НСП 1% : 13.27 НДС 12% : 159.30 Наличными: 0.00 Безнал.: 1500.06 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 179 15.07.2024 14:02 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874718 ФД: 165306 ФПД: 185879203211260 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T140205&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165306&fm=185879203211260&tin=02508201610067®Number=0000000000090829&sum=150006 [14:02:05]StoreToDocumentArchive [14:02:05]shift 448 fd 165306 [14:02:05]save to /storage/0448/doc_00165306 [14:02:05]save last doc name /storage/0448/doc_00165306 to /storage/kkm_last_doc_name [14:02:05]save OK [14:02:05]Clear old archive folders... [14:02:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:02:05]tlvbuf is 0181A5C0 [14:02:05]SAM_PROTO_ClearQueue [14:02:05]wFMCommunicate request_size=4 [14:02:05]MH_SAM_APDU [14:02:05]CAPDU: 80 09 00 00 [14:02:05]Write to MH i2c: E2 08 00 DE 17 80 09 00 00 00 00 00 00 67 [14:02:05]Write i2c OK [14:02:05]MH_I2C_Read... [14:02:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:02:05]Read from MH i2c: E2 [14:02:05]MH_I2C_Read... [14:02:05]Read from MH i2c: E2 03 00 [14:02:05]MH_I2C_Read... [14:02:05]Read from MH i2c: E2 03 00 DE 17 00 90 00 69 [14:02:05]RAPDU: 90 00 [14:02:05]wFMCommunicate OK [14:02:05]SAM_PROTO_ClearQueue done [14:02:05]KKMCreateOFDPacket [14:02:05]OFDProtocolAddRootSTLVToBuf [14:02:05]FM_MakeSignedData [14:02:05]FM_MakeSignedData [14:02:05]SAM_PROTO_SignData [14:02:05]wFMCommunicate request_size=4 [14:02:05]MH_SAM_APDU [14:02:05]CAPDU: 80 0D 01 02 [14:02:05]Write to MH i2c: E2 08 00 DF 17 80 0D 01 02 00 00 00 00 6F [14:02:05]Write i2c OK [14:02:05]MH_I2C_Read... [14:02:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:02:05]Read from MH i2c: E2 [14:02:05]MH_I2C_Read... [14:02:05]Read from MH i2c: E2 03 00 [14:02:05]MH_I2C_Read... [14:02:05]Read from MH i2c: E2 03 00 DF 17 00 90 00 6A [14:02:05]RAPDU: 90 00 [14:02:05]wFMCommunicate OK [14:02:05]wFMCommunicate request_size=255 [14:02:05]MH_SAM_APDU [14:02:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 59 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 F6 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F6 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 00 00 00 00 00 00 39 04 06 00 F6 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 DD 2B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BA 85 02 00 35 04 06 00 A9 [14:02:05]Write to MH i2c: E2 02 01 E0 17 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 D8 59 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 F6 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F6 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 00 00 00 00 00 00 39 04 06 00 F6 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 DD 2B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BA 85 02 00 35 04 06 00 A9 00 00 13 [14:02:05]Write i2c OK [14:02:05]MH_I2C_Read... [14:02:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:05]Read from MH i2c: E2 [14:02:05]MH_I2C_Read... [14:02:05]Read from MH i2c: E2 03 00 [14:02:05]MH_I2C_Read... [14:02:05]Read from MH i2c: E2 03 00 E0 17 00 90 00 6B [14:02:05]RAPDU: 90 00 [14:02:05]wFMCommunicate OK [14:02:05]wFMCommunicate request_size=10 [14:02:05]MH_SAM_APDU [14:02:05]CAPDU: 80 0D 02 02 05 0E 5F E0 E7 FC [14:02:05]Write to MH i2c: E2 0D 00 E1 17 80 0D 02 02 05 00 0E 5F E0 E7 FC 00 00 AC [14:02:05]Write i2c OK [14:02:05]MH_I2C_Read... [14:02:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:05]Read from MH i2c: E2 [14:02:05]MH_I2C_Read... [14:02:05]Read from MH i2c: E2 03 00 [14:02:05]MH_I2C_Read... [14:02:05]Read from MH i2c: E2 03 00 E1 17 00 90 00 6C [14:02:05]RAPDU: 90 00 [14:02:05]wFMCommunicate OK [14:02:05]wFMCommunicate request_size=4 [14:02:05]MH_SAM_APDU [14:02:05]CAPDU: 80 0D 03 02 [14:02:05]Write to MH i2c: E2 08 00 E2 17 80 0D 03 02 00 00 00 00 74 [14:02:05]Write i2c OK [14:02:05]MH_I2C_Read... [14:02:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:02:05]Read from MH i2c: E2 [14:02:05]MH_I2C_Read... [14:02:05]Read from MH i2c: E2 0B 00 [14:02:05]MH_I2C_Read... [14:02:05]Read from MH i2c: E2 0B 00 E2 17 00 57 DC CD AA F5 AB 48 A0 90 00 A7 [14:02:05]RAPDU: 57 DC CD AA F5 AB 48 A0 90 00 [14:02:05]wFMCommunicate OK [14:02:05]SAM_PROTO_SignData done [14:02:05]FM_MakeSignedData done [14:02:05]CreateOFDProtocolMessage [14:02:05]wFMCommunicate request_size=4 [14:02:05]MH_SAM_APDU [14:02:05]CAPDU: 80 11 00 00 [14:02:05]Write to MH i2c: E2 08 00 E3 17 80 11 00 00 00 00 00 00 74 [14:02:05]Write i2c OK [14:02:05]MH_I2C_Read... [14:02:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:05]Read from MH i2c: E2 [14:02:05]MH_I2C_Read... [14:02:05]Read from MH i2c: E2 17 00 [14:02:05]MH_I2C_Read... [14:02:05]Read from MH i2c: E2 17 00 E3 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CA [14:02:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:02:05]wFMCommunicate OK [14:02:05]CreateOFDProtocolMessage done [14:02:05]OFDSenderStorePacket 165306 [14:02:05]StoreOFDPacket docnum=165306 [14:02:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B9 38 07 01 80 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 59 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 F6 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F6 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 00 00 00 00 00 00 39 04 06 00 F6 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 DD 2B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BA 85 02 00 35 04 06 00 A9 0E 5F E0 E7 FC 57 DC CD AA F5 AB 48 A0 [14:02:05]CheckFolder [14:02:05]dirname=/storage/ofd_packets [14:02:05]CheckFolder done [14:02:05]ProducePacketName [14:02:05]name=ofd_packets/00165306 [14:02:05]NVStorageSaveData ofd_packets/00165306 [14:02:05]File name is /storage/ofd_packets/00165306 [14:02:05]Write 301 bytes [14:02:05]NVStorageSaveData done [14:02:05]OFDSenderStorePacket done [14:02:05]KKMCreateOFDPacket done [14:02:05]NVStorageSaveData kkm_last_timestamp [14:02:05]File name is /storage/kkm_last_timestamp [14:02:05]Write 4 bytes [14:02:05]NVStorageSaveData done [14:02:05]ExternCall_PrintAddStr [14:02:05]wPrintStart [14:02:05]Write to MH i2c: 01 00 00 E4 17 FB [14:02:05]Write i2c OK [14:02:05]MH_I2C_Read... [14:02:05]Read from MH i2c: 01 [14:02:05]MH_I2C_Read... [14:02:05]Read from MH i2c: 01 07 00 [14:02:05]MH_I2C_Read... [14:02:05]Read from MH i2c: 01 07 00 E4 17 00 00 00 00 00 FF 0F 10 [14:02:05]RasterBufferAndPrint [14:02:05]line Счет N : (1)459417 [14:02:05]line ИНН: 02508201610067 [14:02:05]line Контрольно-Кассовый Чек [14:02:05]line ПРОДАЖА [14:02:05]line ТРК (МРК, ГНК) : 22 [14:02:05]line Товар: 2710124130 [14:02:05]line Аи-92-К-5 [14:02:05]line 23.000 * 65.22 [14:02:05]line = 1500.06 [14:02:05]line НДС 12% НСП 1% [14:02:05]line > о реализуемом товаре [14:02:05]line ИТОГО: 1500.06 [14:02:05]line НСП 1% : 13.27 [14:02:05]line НДС 12% : 159.30 [14:02:05]line Наличными: 0.00 [14:02:05]line Безнал.: 1500.06 [14:02:05]line Место: АЗС № 72 "Партнер Нефть" [14:02:05]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:02:05]line СНО: Общий режим [14:02:05]line Чек 179 15.07.2024 14:02 [14:02:05]line Смена: 448 ФФД: 1.0 [14:02:05]line ЗНМ: 0300000160 [14:02:05]line РНМ: 0000000000090829 [14:02:05]line Версия ККМ: 001 [14:02:05]line Платежная система: АКБ Кыргызстан [14:02:05]line ФМ: 0000000000874718 [14:02:05]line ФД: 165306 [14:02:05]line ФПД: 185879203211260 [14:02:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T140205&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165306&fm=185879203211260&tin=02508201610067®Number=0000000000090829&sum=150006 [14:02:05]written 0, free lines is 4095 [14:02:05]OFD Sender: Processing packet 165306 [packets to send 106, broken 105] [14:02:05]ProducePacketName [14:02:05]name=ofd_packets/00165306 [14:02:06]OFD Sender: To server: pG, [14:02:06]CommunicateWithHost lk.salyk.kg:30040 [14:02:06]ConnectInit lk.salyk.kg [14:02:06]Connected sock=10 [14:02: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 37 31 38 0F 01 00 00 B9 38 07 01 80 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 59 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 F6 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F6 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 00 00 00 00 00 00 39 04 06 00 F6 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 DD 2B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BA 85 02 00 35 04 06 00 A9 0E 5F E0 E7 FC 57 DC CD AA F5 AB 48 A0 [14:02:06]Write to MH i2c: 01 00 00 0D 18 25 [14:02:06]Write i2c OK [14:02:06]MH_I2C_Read... [14:02:06]Read from MH i2c: 01 [14:02:06]MH_I2C_Read... [14:02:06]Read from MH i2c: 01 07 00 [14:02:06]MH_I2C_Read... [14:02:06]Read from MH i2c: 01 07 00 0D 18 00 00 00 00 00 14 0D 4D [14:02:06]RasterBufferAndPrint [14:02:06]line [14:02:06]line [14:02:06]line [14:02:06]line [14:02:06]line [14:02:06]written 0, free lines is 3357 [14:02:06]MH_Cut [14:02:06]Write to MH i2c: D1 01 00 14 18 01 FE [14:02:06]Write i2c OK [14:02:06]MH_I2C_Read... [14:02:06]Read from MH i2c: D1 [14:02:06]MH_I2C_Read... [14:02:06]Read from MH i2c: D1 01 00 [14:02:06]MH_I2C_Read... [14:02:06]Read from MH i2c: D1 01 00 14 18 00 FD [14:02:06]Write to MH i2c: 01 00 00 15 18 2D [14:02:06]Write i2c OK [14:02:06]MH_I2C_Read... [14:02:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 0E CD 47 00 A8 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BA 85 02 00 F4 03 04 00 67 D2 94 66 B6 04 01 00 00 92 29 BA 11 E5 34 9B 26 [14:02:06]CommunicateWithHost err = 0 [14:02:06]CheckOFDResponse [14:02:06]1017 (14) - 77093643461234 [14:02:06]1041 (16) - 0000000000874718 [14:02:06]1040 (4) - 165306 [14:02:06]1012 (4) - 15.07.2024 07:40 [14:02:06]1206 (1) - 0 [14:02:06]OFD Sender: Remove packet 165306 [14:02:06]ProducePacketName [14:02:06]name=ofd_packets/00165306 [14:02:06]NVStorageDeleteData [14:02:06]*** Cut start [14:02:06]*** Partial cut [14:02:06]*** CUTSNS_PIN = 1 [14:02:06]*** CUTSNS_PIN = 0 [14:02:06]OFD Sender: No OFD packet to send [14:02:07]*** Brake cut motor [14:02:07]Read from MH i2c: 01 [14:02:07]MH_I2C_Read... [14:02:07]*** Stop cut motor [14:02:07]*** Cut end [14:02:07]Read from MH i2c: 01 07 00 [14:02:07]MH_I2C_Read... [14:02:07]Read from MH i2c: 01 07 00 15 18 00 00 00 00 00 FF 0F 42 [14:02:07]process_action close_receipt done [14:02:07]requested_data is exist [14:02:07]produce_requested_data [14:02:07]requested_item fm.sn is exist - process it [14:02:07]wFMCommunicate request_size=4 [14:02:07]MH_SAM_APDU [14:02:07]CAPDU: 80 11 00 00 [14:02:07]Write to MH i2c: E2 08 00 16 18 80 11 00 00 00 00 00 00 A8 [14:02:07]Write i2c OK [14:02:07]MH_I2C_Read... [14:02:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:07]Read from MH i2c: E2 [14:02:07]MH_I2C_Read... [14:02:07]Read from MH i2c: E2 17 00 [14:02:07]MH_I2C_Read... [14:02:07]Read from MH i2c: E2 17 00 16 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FE [14:02:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:02:07]wFMCommunicate OK [14:02:07]requested_item fd.num is exist - process it [14:02:07]SAM_PROTO_GetFieldsCounters [14:02:07]wFMCommunicate request_size=4 [14:02:07]MH_SAM_APDU [14:02:07]CAPDU: 80 13 00 00 [14:02:07]Write to MH i2c: E2 08 00 17 18 80 13 00 00 00 00 00 00 AB [14:02:07]Write i2c OK [14:02:07]MH_I2C_Read... [14:02:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:02:07]Read from MH i2c: E2 [14:02:07]MH_I2C_Read... [14:02:07]Read from MH i2c: E2 62 00 [14:02:07]MH_I2C_Read... [14:02:07]Read from MH i2c: E2 62 00 17 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 BA 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [14:02:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 BA 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:02:07]wFMCommunicate OK [14:02:07]SAM_PROTO_GetFieldsCounters done [14:02:07]requested_item shift.num is exist - process it [14:02:07]requested_item shift.opened is exist - process it [14:02:07]req_shift_opened [14:02:07]FM_GetShiftState [14:02:07]SAM_PROTO_GetShiftState [14:02:07]wFMCommunicate request_size=4 [14:02:07]MH_SAM_APDU [14:02:07]CAPDU: 80 13 01 00 [14:02:07]Write to MH i2c: E2 08 00 18 18 80 13 01 00 00 00 00 00 AD [14:02:07]Write i2c OK [14:02:07]MH_I2C_Read... [14:02:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:07]Read from MH i2c: E2 [14:02:07]MH_I2C_Read... [14:02:07]Read from MH i2c: E2 0E 00 [14:02:07]MH_I2C_Read... [14:02:07]Read from MH i2c: E2 0E 00 18 18 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 86 [14:02:07]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [14:02:07]wFMCommunicate OK [14:02:07]SAM_PROTO_GetShiftState done [14:02:07]FM_GetShiftState done [14:02:07]req_shift_opened done [14:02:07]requested_item shift.open_date is exist - process it [14:02:07]req_shift_open_date [14:02:07]req_shift_open_date done [14:02:07]produce_requested_data done [14:02:07]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165306,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [14:02:07]process_action_free close_receipt [14:02:07]json_value_free [14:02:07]json_value_free done [14:02:07]process_json_proto returns [14:02:07]Send response to host [14:02:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165306,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [14:02:07]free response buf [14:02:07]execute_script done [14:02:07]execute_script returns [14:02:07]free content buf [14:02:07]Sock 8.Close socket [14:02:07]Sock 8.Thread stoped [14:02:11]OFD Sender: No OFD packet to send [14:02:12]accept exits with 9 [14:02:12]New connection [14:02:12]New thread 3066854756 created [14:02:12]Thread 3066711396 joined [14:02:12]Waiting for new connection... [14:02:12] Sock 9.Parse request [14:02:12]Sock 9.Check first char [14:02:12]Sock 9.First char is OK [14:02:12]request: POST /json_proto HTTP/1.0 [14:02:12]Method: POST [14:02:12]URL: /json_proto [14:02:12]Method is POST - this is cgi request [14:02:12]url: /json_proto [14:02:12]query_string will be loaded in cgi processing [14:02:12]execute_cgi json_proto POST (null) [14:02:12]execute_cgi path=json_proto method=POST [14:02:12]POST find Content-Length [14:02:12]Host: 172.17.56.4:8080 [14:02:12]Content-Length: 790 [14:02:12]Content-Type: application/json [14:02:12] [14:02:12]POST finish read [14:02:12]Found Content-Length = 790 [14:02:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459418", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 14.040, "sum" : 1000.49, "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:12]execute_script... [14:02:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459418", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 14.040, "sum" : 1000.49, "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:12]POST & json_proto [14:02:12]process_json_proto [14:02:12]json parsed OK: [14:02:12]protocol is kg_v1.0 [14:02:12]action value=close_receipt [14:02:12]process_action close_receipt [14:02:12]cmd_close_receipt [14:02:12]MH_GetDate [14:02:12]Write to MH i2c: F0 00 00 19 18 20 [14:02:12]Write i2c OK [14:02:12]MH_I2C_Read... [14:02:12]Read from MH i2c: F0 [14:02:12]MH_I2C_Read... [14:02:12]Read from MH i2c: F0 09 00 [14:02:12]MH_I2C_Read... [14:02:12]Read from MH i2c: F0 09 00 19 18 00 E5 2B 95 66 C9 DC B2 64 EF [14:02:12]GetLastDocTimeStamp 1721052125 [14:02:12]current date 1721052133 [14:02:12]FM_GetShiftState [14:02:12]SAM_PROTO_GetShiftState [14:02:12]wFMCommunicate request_size=4 [14:02:12]MH_SAM_APDU [14:02:12]CAPDU: 80 13 01 00 [14:02:12]Write to MH i2c: E2 08 00 1A 18 80 13 01 00 00 00 00 00 AF [14:02:12]Write i2c OK [14:02:12]MH_I2C_Read... [14:02:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:12]Read from MH i2c: E2 [14:02:12]MH_I2C_Read... [14:02:12]Read from MH i2c: E2 0E 00 [14:02:12]MH_I2C_Read... [14:02:12]Read from MH i2c: E2 0E 00 1A 18 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 88 [14:02:12]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [14:02:12]wFMCommunicate OK [14:02:12]SAM_PROTO_GetShiftState done [14:02:12]FM_GetShiftState done [14:02:12]opened in 1721003876 [14:02:12]opened+sec_in_day 1721090276 [14:02:12]quantity*price = 100049 [14:02:12]sum+1 = 100050 [14:02:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.49 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.49 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 180 15.07.2024 14:02 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 165307 ФПД: 116781119219580 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T140213&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165307&fm=116781119219580&tin=02508201610067®Number=0000000000090829&sum=100049 [14:02:13]StoreToDocumentArchive [14:02:13]shift 448 fd 165307 [14:02:13]save to /storage/0448/doc_00165307 [14:02:13]save last doc name /storage/0448/doc_00165307 to /storage/kkm_last_doc_name [14:02:13]save OK [14:02:13]Clear old archive folders... [14:02:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:02:13]tlvbuf is 017F7100 [14:02:13]SAM_PROTO_ClearQueue [14:02:13]wFMCommunicate request_size=4 [14:02:13]MH_SAM_APDU [14:02:13]CAPDU: 80 09 00 00 [14:02:13]Write to MH i2c: E2 08 00 27 18 80 09 00 00 00 00 00 00 B1 [14:02:13]Write i2c OK [14:02:13]MH_I2C_Read... [14:02:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:02:13]Read from MH i2c: E2 [14:02:13]MH_I2C_Read... [14:02:13]Read from MH i2c: E2 03 00 [14:02:13]MH_I2C_Read... [14:02:13]Read from MH i2c: E2 03 00 27 18 00 90 00 B3 [14:02:13]RAPDU: 90 00 [14:02:13]wFMCommunicate OK [14:02:13]SAM_PROTO_ClearQueue done [14:02:13]KKMCreateOFDPacket [14:02:13]OFDProtocolAddRootSTLVToBuf [14:02:13]FM_MakeSignedData [14:02:13]FM_MakeSignedData [14:02:13]SAM_PROTO_SignData [14:02:13]wFMCommunicate request_size=4 [14:02:13]MH_SAM_APDU [14:02:13]CAPDU: 80 0D 01 02 [14:02:13]Write to MH i2c: E2 08 00 28 18 80 0D 01 02 00 00 00 00 B9 [14:02:13]Write i2c OK [14:02:13]MH_I2C_Read... [14:02:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:02:13]Read from MH i2c: E2 [14:02:13]MH_I2C_Read... [14:02:13]Read from MH i2c: E2 03 00 [14:02:13]MH_I2C_Read... [14:02:13]Read from MH i2c: E2 03 00 28 18 00 90 00 B4 [14:02:13]RAPDU: 90 00 [14:02:13]wFMCommunicate OK [14:02:13]wFMCommunicate request_size=255 [14:02:13]MH_SAM_APDU [14:02:13]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D8 36 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 D1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D1 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 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 E5 2B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BB 85 02 00 35 04 06 00 6A 36 39 20 [14:02:13]Write to MH i2c: E2 02 01 29 18 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D8 36 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 D1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D1 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 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 E5 2B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BB 85 02 00 35 04 06 00 6A 36 39 20 00 00 00 [14:02:13]Write i2c OK [14:02:13]MH_I2C_Read... [14:02:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:13]Read from MH i2c: E2 [14:02:13]MH_I2C_Read... [14:02:13]Read from MH i2c: E2 03 00 [14:02:13]MH_I2C_Read... [14:02:13]Read from MH i2c: E2 03 00 29 18 00 90 00 B5 [14:02:13]RAPDU: 90 00 [14:02:13]wFMCommunicate OK [14:02:13]wFMCommunicate request_size=7 [14:02:13]MH_SAM_APDU [14:02:13]CAPDU: 80 0D 02 02 02 A7 7C [14:02:13]Write to MH i2c: E2 0A 00 2A 18 80 0D 02 02 02 00 A7 7C 00 00 E3 [14:02:13]Write i2c OK [14:02:13]MH_I2C_Read... [14:02:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:13]Read from MH i2c: E2 [14:02:13]MH_I2C_Read... [14:02:13]Read from MH i2c: E2 03 00 [14:02:13]MH_I2C_Read... [14:02:13]Read from MH i2c: E2 03 00 2A 18 00 90 00 B6 [14:02:13]RAPDU: 90 00 [14:02:13]wFMCommunicate OK [14:02:13]wFMCommunicate request_size=4 [14:02:13]MH_SAM_APDU [14:02:13]CAPDU: 80 0D 03 02 [14:02:13]Write to MH i2c: E2 08 00 2B 18 80 0D 03 02 00 00 00 00 BE [14:02:13]Write i2c OK [14:02:13]MH_I2C_Read... [14:02:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:02:13]Read from MH i2c: E2 [14:02:13]MH_I2C_Read... [14:02:13]Read from MH i2c: E2 0B 00 [14:02:13]MH_I2C_Read... [14:02:13]Read from MH i2c: E2 0B 00 2B 18 00 DC 85 A4 10 B5 0D E8 A4 90 00 22 [14:02:13]RAPDU: DC 85 A4 10 B5 0D E8 A4 90 00 [14:02:13]wFMCommunicate OK [14:02:13]SAM_PROTO_SignData done [14:02:13]FM_MakeSignedData done [14:02:13]CreateOFDProtocolMessage [14:02:13]wFMCommunicate request_size=4 [14:02:13]MH_SAM_APDU [14:02:13]CAPDU: 80 11 00 00 [14:02:13]Write to MH i2c: E2 08 00 2C 18 80 11 00 00 00 00 00 00 BE [14:02:13]Write i2c OK [14:02:13]MH_I2C_Read... [14:02:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:13]Read from MH i2c: E2 [14:02:13]MH_I2C_Read... [14:02:13]Read from MH i2c: E2 17 00 [14:02:13]MH_I2C_Read... [14:02:13]Read from MH i2c: E2 17 00 2C 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 14 [14:02:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:02:13]wFMCommunicate OK [14:02:13]CreateOFDProtocolMessage done [14:02:13]OFDSenderStorePacket 165307 [14:02:13]StoreOFDPacket docnum=165307 [14:02:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 20 43 04 01 EB EA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D8 36 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 D1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D1 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 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 E5 2B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BB 85 02 00 35 04 06 00 6A 36 39 20 A7 7C DC 85 A4 10 B5 0D E8 A4 [14:02:13]CheckFolder [14:02:13]dirname=/storage/ofd_packets [14:02:13]CheckFolder done [14:02:13]ProducePacketName [14:02:13]name=ofd_packets/00165307 [14:02:13]NVStorageSaveData ofd_packets/00165307 [14:02:13]File name is /storage/ofd_packets/00165307 [14:02:13]Write 298 bytes [14:02:13]NVStorageSaveData done [14:02:13]OFDSenderStorePacket done [14:02:13]KKMCreateOFDPacket done [14:02:13]NVStorageSaveData kkm_last_timestamp [14:02:13]File name is /storage/kkm_last_timestamp [14:02:13]Write 4 bytes [14:02:13]NVStorageSaveData done [14:02:13]ExternCall_PrintAddStr [14:02:13]wPrintStart [14:02:13]Write to MH i2c: 01 00 00 2D 18 45 [14:02:13]Write i2c OK [14:02:13]MH_I2C_Read... [14:02:13]Read from MH i2c: 01 [14:02:13]MH_I2C_Read... [14:02:13]Read from MH i2c: 01 07 00 [14:02:13]MH_I2C_Read... [14:02:13]Read from MH i2c: 01 07 00 2D 18 00 00 00 00 00 FF 0F 5A [14:02:13]RasterBufferAndPrint [14:02:13]line Счет N : (1)459418 [14:02:13]line ИНН: 02508201610067 [14:02:13]line Контрольно-Кассовый Чек [14:02:13]line ПРОДАЖА [14:02:13]line ТРК (МРК, ГНК) : 11 [14:02:13]line Товар: 2710194210 [14:02:13]line ДТ-К-5 [14:02:13]line 14.040 * 71.26 [14:02:13]line = 1000.49 [14:02:13]line НДС 12% НСП 1% [14:02:13]line > о реализуемом товаре [14:02:13]line ИТОГО: 1000.49 [14:02:13]line НСП 1% : 8.85 [14:02:13]line НДС 12% : 106.25 [14:02:13]line Наличными: 0.00 [14:02:13]line Безнал.: 1000.49 [14:02:13]line Место: АЗС № 72 "Партнер Нефть" [14:02:13]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:02:13]line СНО: Общий режим [14:02:13]line Чек 180 15.07.2024 14:02 [14:02:13]line Смена: 448 ФФД: 1.0 [14:02:13]line ЗНМ: 0300000160 [14:02:13]line РНМ: 0000000000090829 [14:02:13]line Версия ККМ: 001 [14:02:13]line Платежная система: KICB Банк [14:02:13]line ФМ: 0000000000874718 [14:02:13]line ФД: 165307 [14:02:13]line ФПД: 116781119219580 [14:02:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T140213&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165307&fm=116781119219580&tin=02508201610067®Number=0000000000090829&sum=100049 [14:02:13]written 0, free lines is 4095 [14:02:13]OFD Sender: Processing packet 165307 [packets to send 106, broken 105] [14:02:13]ProducePacketName [14:02:13]name=ofd_packets/00165307 [14:02:13]OFD Sender: To server: pG, [14:02:13]CommunicateWithHost lk.salyk.kg:30040 [14:02:13]ConnectInit lk.salyk.kg [14:02:14]Connected sock=10 [14:02:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 20 43 04 01 EB EA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D8 36 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 D1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D1 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 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 E5 2B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BB 85 02 00 35 04 06 00 6A 36 39 20 A7 7C DC 85 A4 10 B5 0D E8 A4 [14:02:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 B3 CE 47 00 9F 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 37 31 38 10 04 04 00 BB 85 02 00 F4 03 04 00 6F D2 94 66 B6 04 01 00 00 AB 22 F5 A9 9D 1D 62 D8 [14:02:14]CommunicateWithHost err = 0 [14:02:14]CheckOFDResponse [14:02:14]1017 (14) - 77093643461234 [14:02:14]1041 (16) - 0000000000874718 [14:02:14]1040 (4) - 165307 [14:02:14]1012 (4) - 15.07.2024 07:40 [14:02:14]1206 (1) - 0 [14:02:14]OFD Sender: Remove packet 165307 [14:02:14]ProducePacketName [14:02:14]name=ofd_packets/00165307 [14:02:14]NVStorageDeleteData [14:02:14]Write to MH i2c: 01 00 00 56 18 6E [14:02:14]Write i2c OK [14:02:14]MH_I2C_Read... [14:02:14]Read from MH i2c: 01 [14:02:14]MH_I2C_Read... [14:02:14]Read from MH i2c: 01 07 00 [14:02:14]MH_I2C_Read... [14:02:14]Read from MH i2c: 01 07 00 56 18 00 00 00 00 00 FA 0C 7B [14:02:14]RasterBufferAndPrint [14:02:14]line [14:02:14]line [14:02:14]line [14:02:14]line [14:02:14]line [14:02:14]written 0, free lines is 3334 [14:02:14]MH_Cut [14:02:14]Write to MH i2c: D1 01 00 5D 18 01 47 [14:02:14]Write i2c OK [14:02:14]MH_I2C_Read... [14:02:14]Read from MH i2c: D1 [14:02:14]MH_I2C_Read... [14:02:14]Read from MH i2c: D1 01 00 [14:02:14]MH_I2C_Read... [14:02:14]Read from MH i2c: D1 01 00 5D 18 00 46 [14:02:14]Write to MH i2c: 01 00 00 5E 18 76 [14:02:14]Write i2c OK [14:02:14]MH_I2C_Read... [14:02:14]OFD Sender: No OFD packet to send [14:02:14]*** Cut start [14:02:14]*** Partial cut [14:02:14]*** CUTSNS_PIN = 1 [14:02:15]*** CUTSNS_PIN = 0 [14:02:15]*** Brake cut motor [14:02:15]Read from MH i2c: 01 [14:02:15]MH_I2C_Read... [14:02:15]*** Stop cut motor [14:02:15]*** Cut end [14:02:15]Read from MH i2c: 01 07 00 [14:02:15]MH_I2C_Read... [14:02:15]Read from MH i2c: 01 07 00 5E 18 00 00 00 00 00 FF 0F 8B [14:02:15]process_action close_receipt done [14:02:15]requested_data is exist [14:02:15]produce_requested_data [14:02:15]requested_item fm.sn is exist - process it [14:02:15]wFMCommunicate request_size=4 [14:02:15]MH_SAM_APDU [14:02:15]CAPDU: 80 11 00 00 [14:02:15]Write to MH i2c: E2 08 00 5F 18 80 11 00 00 00 00 00 00 F1 [14:02:15]Write i2c OK [14:02:15]MH_I2C_Read... [14:02:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:15]Read from MH i2c: E2 [14:02:15]MH_I2C_Read... [14:02:15]Read from MH i2c: E2 17 00 [14:02:15]MH_I2C_Read... [14:02:15]Read from MH i2c: E2 17 00 5F 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 47 [14:02:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:02:15]wFMCommunicate OK [14:02:15]requested_item fd.num is exist - process it [14:02:15]SAM_PROTO_GetFieldsCounters [14:02:15]wFMCommunicate request_size=4 [14:02:15]MH_SAM_APDU [14:02:15]CAPDU: 80 13 00 00 [14:02:15]Write to MH i2c: E2 08 00 60 18 80 13 00 00 00 00 00 00 F4 [14:02:15]Write i2c OK [14:02:15]MH_I2C_Read... [14:02:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:02:15]Read from MH i2c: E2 [14:02:15]MH_I2C_Read... [14:02:15]Read from MH i2c: E2 62 00 [14:02:15]MH_I2C_Read... [14:02:15]Read from MH i2c: E2 62 00 60 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 BB 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [14:02: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 BB 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:02:15]wFMCommunicate OK [14:02:15]SAM_PROTO_GetFieldsCounters done [14:02:15]requested_item shift.num is exist - process it [14:02:15]requested_item shift.opened is exist - process it [14:02:15]req_shift_opened [14:02:15]FM_GetShiftState [14:02:15]SAM_PROTO_GetShiftState [14:02:15]wFMCommunicate request_size=4 [14:02:15]MH_SAM_APDU [14:02:15]CAPDU: 80 13 01 00 [14:02:15]Write to MH i2c: E2 08 00 61 18 80 13 01 00 00 00 00 00 F6 [14:02:15]Write i2c OK [14:02:15]MH_I2C_Read... [14:02:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:15]Read from MH i2c: E2 [14:02:15]MH_I2C_Read... [14:02:15]Read from MH i2c: E2 0E 00 [14:02:15]MH_I2C_Read... [14:02:15]Read from MH i2c: E2 0E 00 61 18 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 CF [14:02:15]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [14:02:15]wFMCommunicate OK [14:02:15]SAM_PROTO_GetShiftState done [14:02:15]FM_GetShiftState done [14:02:15]req_shift_opened done [14:02:15]requested_item shift.open_date is exist - process it [14:02:15]req_shift_open_date [14:02:15]req_shift_open_date done [14:02:15]produce_requested_data done [14:02:15]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165307,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [14:02:15]process_action_free close_receipt [14:02:15]json_value_free [14:02:15]json_value_free done [14:02:15]process_json_proto returns [14:02:15]Send response to host [14:02:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165307,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [14:02:15]free response buf [14:02:15]execute_script done [14:02:15]execute_script returns [14:02:15]free content buf [14:02:15]Sock 9.Close socket [14:02:15]Sock 9.Thread stoped [14:02:19]OFD Sender: No OFD packet to send [14:02:24]OFD Sender: No OFD packet to send [14:02:29]OFD Sender: No OFD packet to send [14:02:34]OFD Sender: No OFD packet to send [14:02:39]OFD Sender: No OFD packet to send [14:02:44]OFD Sender: No OFD packet to send [14:02:49]OFD Sender: No OFD packet to send [14:02:54]OFD Sender: No OFD packet to send [14:02:59]OFD Sender: No OFD packet to send [14:03:04]OFD Sender: No OFD packet to send [14:03:09]OFD Sender: No OFD packet to send [14:03:14]OFD Sender: No OFD packet to send [14:03:19]OFD Sender: No OFD packet to send [14:03:24]OFD Sender: No OFD packet to send [14:03:29]OFD Sender: No OFD packet to send [14:03:34]OFD Sender: No OFD packet to send [14:03:39]OFD Sender: No OFD packet to send [14:03:44]OFD Sender: No OFD packet to send [14:03:49]OFD Sender: No OFD packet to send [14:03:54]OFD Sender: No OFD packet to send [14:03:59]OFD Sender: No OFD packet to send [14:04:04]OFD Sender: No OFD packet to send [14:04:09]OFD Sender: No OFD packet to send [14:04:14]OFD Sender: No OFD packet to send [14:04:19]OFD Sender: No OFD packet to send [14:04:24]OFD Sender: No OFD packet to send [14:04:29]OFD Sender: No OFD packet to send [14:04:34]OFD Sender: No OFD packet to send [14:04:39]OFD Sender: No OFD packet to send [14:04:44]OFD Sender: No OFD packet to send [14:04:49]OFD Sender: No OFD packet to send [14:04:54]OFD Sender: No OFD packet to send [14:04:59]OFD Sender: No OFD packet to send [14:05:02]accept exits with 8 [14:05:02]New connection [14:05:02]New thread 3066711396 created [14:05:02]Thread 3066854756 joined [14:05:02]Waiting for new connection... [14:05:02] Sock 8.Parse request [14:05:02]Sock 8.Check first char [14:05:02]Sock 8.First char is OK [14:05:02]request: POST /json_proto HTTP/1.0 [14:05:02]Method: POST [14:05:02]URL: /json_proto [14:05:02]Method is POST - this is cgi request [14:05:02]url: /json_proto [14:05:02]query_string will be loaded in cgi processing [14:05:02]execute_cgi json_proto POST (null) [14:05:02]execute_cgi path=json_proto method=POST [14:05:02]POST find Content-Length [14:05:02]Host: 172.17.56.4:8080 [14:05:02]Content-Length: 677 [14:05:02]Content-Type: application/json [14:05:02] [14:05:02]POST finish read [14:05:02]Found Content-Length = 677 [14:05:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459419", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.520, "sum" : 100.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:02]execute_script... [14:05:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459419", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.520, "sum" : 100.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:02]POST & json_proto [14:05:02]process_json_proto [14:05:02]json parsed OK: [14:05:02]protocol is kg_v1.0 [14:05:02]action value=close_receipt [14:05:02]process_action close_receipt [14:05:02]cmd_close_receipt [14:05:02]MH_GetDate [14:05:02]Write to MH i2c: F0 00 00 62 18 69 [14:05:02]Write i2c OK [14:05:02]MH_I2C_Read... [14:05:02]Read from MH i2c: F0 [14:05:02]MH_I2C_Read... [14:05:02]Read from MH i2c: F0 09 00 [14:05:02]MH_I2C_Read... [14:05:02]Read from MH i2c: F0 09 00 62 18 00 90 2C 95 66 C9 DC B2 64 E4 [14:05:02]GetLastDocTimeStamp 1721052133 [14:05:02]current date 1721052304 [14:05:02]FM_GetShiftState [14:05:02]SAM_PROTO_GetShiftState [14:05:02]wFMCommunicate request_size=4 [14:05:02]MH_SAM_APDU [14:05:02]CAPDU: 80 13 01 00 [14:05:02]Write to MH i2c: E2 08 00 63 18 80 13 01 00 00 00 00 00 F8 [14:05:02]Write i2c OK [14:05:02]MH_I2C_Read... [14:05:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:02]Read from MH i2c: E2 [14:05:02]MH_I2C_Read... [14:05:02]Read from MH i2c: E2 0E 00 [14:05:02]MH_I2C_Read... [14:05:02]Read from MH i2c: E2 0E 00 63 18 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 D1 [14:05:02]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [14:05:02]wFMCommunicate OK [14:05:02]SAM_PROTO_GetShiftState done [14:05:02]FM_GetShiftState done [14:05:02]opened in 1721003876 [14:05:02]opened+sec_in_day 1721090276 [14:05:02]quantity*price = 10001 [14:05:02]sum+1 = 10003 [14:05:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 181 15.07.2024 14:05 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165308 ФПД: 20623657230809 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T140504&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165308&fm=20623657230809&tin=02508201610067®Number=0000000000090829&sum=10000 [14:05:04]StoreToDocumentArchive [14:05:04]shift 448 fd 165308 [14:05:04]save to /storage/0448/doc_00165308 [14:05:04]save last doc name /storage/0448/doc_00165308 to /storage/kkm_last_doc_name [14:05:04]save OK [14:05:04]Clear old archive folders... [14:05:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:05:04]tlvbuf is 0181AB80 [14:05:04]SAM_PROTO_ClearQueue [14:05:04]wFMCommunicate request_size=4 [14:05:04]MH_SAM_APDU [14:05:04]CAPDU: 80 09 00 00 [14:05:04]Write to MH i2c: E2 08 00 70 18 80 09 00 00 00 00 00 00 FA [14:05:04]Write i2c OK [14:05:04]MH_I2C_Read... [14:05:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:05:04]Read from MH i2c: E2 [14:05:04]MH_I2C_Read... [14:05:04]Read from MH i2c: E2 03 00 [14:05:04]MH_I2C_Read... [14:05:04]Read from MH i2c: E2 03 00 70 18 00 90 00 FC [14:05:04]RAPDU: 90 00 [14:05:04]wFMCommunicate OK [14:05:04]SAM_PROTO_ClearQueue done [14:05:04]KKMCreateOFDPacket [14:05:04]OFDProtocolAddRootSTLVToBuf [14:05:04]FM_MakeSignedData [14:05:04]FM_MakeSignedData [14:05:04]SAM_PROTO_SignData [14:05:04]wFMCommunicate request_size=4 [14:05:04]MH_SAM_APDU [14:05:04]CAPDU: 80 0D 01 02 [14:05:04]Write to MH i2c: E2 08 00 71 18 80 0D 01 02 00 00 00 00 02 [14:05:04]Write i2c OK [14:05:04]MH_I2C_Read... [14:05:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:05:04]Read from MH i2c: E2 [14:05:04]MH_I2C_Read... [14:05:04]Read from MH i2c: E2 03 00 [14:05:04]MH_I2C_Read... [14:05:04]Read from MH i2c: E2 03 00 71 18 00 90 00 FD [14:05:04]RAPDU: 90 00 [14:05:04]wFMCommunicate OK [14:05:04]wFMCommunicate request_size=255 [14:05:04]MH_SAM_APDU [14:05: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 F0 05 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 12 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 90 2C 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BC 85 02 00 35 04 06 00 12 [14:05:04]Write to MH i2c: E2 02 01 72 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 05 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 12 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 90 2C 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BC 85 02 00 35 04 06 00 12 00 00 7F [14:05:04]Write i2c OK [14:05:04]MH_I2C_Read... [14:05:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:04]Read from MH i2c: E2 [14:05:04]MH_I2C_Read... [14:05:04]Read from MH i2c: E2 03 00 [14:05:04]MH_I2C_Read... [14:05:04]Read from MH i2c: E2 03 00 72 18 00 90 00 FE [14:05:04]RAPDU: 90 00 [14:05:04]wFMCommunicate OK [14:05:04]wFMCommunicate request_size=10 [14:05:04]MH_SAM_APDU [14:05:04]CAPDU: 80 0D 02 02 05 C1 D1 C3 61 D9 [14:05:04]Write to MH i2c: E2 0D 00 73 18 80 0D 02 02 05 00 C1 D1 C3 61 D9 00 00 9E [14:05:04]Write i2c OK [14:05:04]MH_I2C_Read... [14:05:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:04]Read from MH i2c: E2 [14:05:04]MH_I2C_Read... [14:05:04]Read from MH i2c: E2 03 00 [14:05:04]MH_I2C_Read... [14:05:04]Read from MH i2c: E2 03 00 73 18 00 90 00 FF [14:05:04]RAPDU: 90 00 [14:05:04]wFMCommunicate OK [14:05:04]wFMCommunicate request_size=4 [14:05:04]MH_SAM_APDU [14:05:04]CAPDU: 80 0D 03 02 [14:05:04]Write to MH i2c: E2 08 00 74 18 80 0D 03 02 00 00 00 00 07 [14:05:04]Write i2c OK [14:05:04]MH_I2C_Read... [14:05:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:05:04]Read from MH i2c: E2 [14:05:04]MH_I2C_Read... [14:05:04]Read from MH i2c: E2 0B 00 [14:05:04]MH_I2C_Read... [14:05:04]Read from MH i2c: E2 0B 00 74 18 00 10 4E 85 BD DC A3 1C A4 90 00 E7 [14:05:04]RAPDU: 10 4E 85 BD DC A3 1C A4 90 00 [14:05:04]wFMCommunicate OK [14:05:04]SAM_PROTO_SignData done [14:05:04]FM_MakeSignedData done [14:05:04]CreateOFDProtocolMessage [14:05:04]wFMCommunicate request_size=4 [14:05:04]MH_SAM_APDU [14:05:04]CAPDU: 80 11 00 00 [14:05:04]Write to MH i2c: E2 08 00 75 18 80 11 00 00 00 00 00 00 07 [14:05:04]Write i2c OK [14:05:04]MH_I2C_Read... [14:05:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:04]Read from MH i2c: E2 [14:05:04]MH_I2C_Read... [14:05:04]Read from MH i2c: E2 17 00 [14:05:04]MH_I2C_Read... [14:05:04]Read from MH i2c: E2 17 00 75 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5D [14:05:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:05:04]wFMCommunicate OK [14:05:04]CreateOFDProtocolMessage done [14:05:04]OFDSenderStorePacket 165308 [14:05:04]StoreOFDPacket docnum=165308 [14:05:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 08 5B 07 01 22 D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 05 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 12 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 90 2C 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BC 85 02 00 35 04 06 00 12 C1 D1 C3 61 D9 10 4E 85 BD DC A3 1C A4 [14:05:04]CheckFolder [14:05:04]dirname=/storage/ofd_packets [14:05:04]CheckFolder done [14:05:04]ProducePacketName [14:05:04]name=ofd_packets/00165308 [14:05:04]NVStorageSaveData ofd_packets/00165308 [14:05:04]File name is /storage/ofd_packets/00165308 [14:05:04]Write 301 bytes [14:05:04]NVStorageSaveData done [14:05:04]OFDSenderStorePacket done [14:05:04]KKMCreateOFDPacket done [14:05:04]NVStorageSaveData kkm_last_timestamp [14:05:04]File name is /storage/kkm_last_timestamp [14:05:04]Write 4 bytes [14:05:04]NVStorageSaveData done [14:05:04]ExternCall_PrintAddStr [14:05:04]wPrintStart [14:05:04]Write to MH i2c: 01 00 00 76 18 8E [14:05:04]Write i2c OK [14:05:04]MH_I2C_Read... [14:05:04]Read from MH i2c: 01 [14:05:04]MH_I2C_Read... [14:05:04]Read from MH i2c: 01 07 00 [14:05:04]MH_I2C_Read... [14:05:04]Read from MH i2c: 01 07 00 76 18 00 00 00 00 00 FF 0F A3 [14:05:04]RasterBufferAndPrint [14:05:04]line Счет N : (1)459419 [14:05:04]line ИНН: 02508201610067 [14:05:04]line Контрольно-Кассовый Чек [14:05:04]line ПРОДАЖА [14:05:04]line ТРК (МРК, ГНК) : 22 [14:05:04]line Товар: 2710124130 [14:05:04]line Аи-92-К-5 [14:05:04]line 1.520 * 65.80 [14:05:04]line = 100.02 [14:05:04]line НДС 12% НСП 1% [14:05:04]line > о реализуемом товаре [14:05:04]line ОКРУГЛЕНИЕ: -0.02 [14:05:04]line ИТОГО: 100.00 [14:05:04]line Внесено: 100.00 [14:05:04]line СДАЧА: 0.00 [14:05:04]line НСП 1% : 0.88 [14:05:04]line НДС 12% : 10.62 [14:05:04]line Наличными: 100.00 [14:05:04]line Безнал.: 0.00 [14:05:04]line Место: АЗС № 72 "Партнер Нефть" [14:05:04]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:05:04]line СНО: Общий режим [14:05:04]line Чек 181 15.07.2024 14:05 [14:05:04]line Смена: 448 ФФД: 1.0 [14:05:04]line ЗНМ: 0300000160 [14:05:04]line РНМ: 0000000000090829 [14:05:04]line Версия ККМ: 001 [14:05:04]line ФМ: 0000000000874718 [14:05:04]line ФД: 165308 [14:05:04]line ФПД: 20623657230809 [14:05:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T140504&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165308&fm=20623657230809&tin=02508201610067®Number=0000000000090829&sum=10000 [14:05:04]written 0, free lines is 4095 [14:05:04]OFD Sender: Processing packet 165308 [packets to send 106, broken 105] [14:05:04]ProducePacketName [14:05:04]name=ofd_packets/00165308 [14:05:04]OFD Sender: To server: pG, [14:05:04]CommunicateWithHost lk.salyk.kg:30040 [14:05:04]ConnectInit lk.salyk.kg [14:05:05]Connected sock=10 [14:05: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 37 31 38 0F 01 00 00 08 5B 07 01 22 D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 05 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 12 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 90 2C 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BC 85 02 00 35 04 06 00 12 C1 D1 C3 61 D9 10 4E 85 BD DC A3 1C A4 [14:05:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 8B 3F 47 00 35 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BC 85 02 00 F4 03 04 00 1A D3 94 66 B6 04 01 00 00 5B 82 3E B0 D1 ED 4F A1 [14:05:05]CommunicateWithHost err = 0 [14:05:05]CheckOFDResponse [14:05:05]1017 (14) - 77093643461234 [14:05:05]1041 (16) - 0000000000874718 [14:05:05]1040 (4) - 165308 [14:05:05]1012 (4) - 15.07.2024 07:43 [14:05:05]1206 (1) - 0 [14:05:05]OFD Sender: Remove packet 165308 [14:05:05]ProducePacketName [14:05:05]name=ofd_packets/00165308 [14:05:05]NVStorageDeleteData [14:05:05]Write to MH i2c: 01 00 00 A0 18 B8 [14:05:05]Write i2c OK [14:05:05]MH_I2C_Read... [14:05:05]Read from MH i2c: 01 [14:05:05]MH_I2C_Read... [14:05:05]Read from MH i2c: 01 07 00 [14:05:05]MH_I2C_Read... [14:05:05]Read from MH i2c: 01 07 00 A0 18 00 00 00 00 00 F3 0C BE [14:05:05]RasterBufferAndPrint [14:05:05]line [14:05:05]line [14:05:05]line [14:05:05]line [14:05:05]line [14:05:05]written 0, free lines is 3321 [14:05:05]MH_Cut [14:05:05]Write to MH i2c: D1 01 00 A7 18 01 91 [14:05:05]Write i2c OK [14:05:05]MH_I2C_Read... [14:05:05]Read from MH i2c: D1 [14:05:05]MH_I2C_Read... [14:05:05]Read from MH i2c: D1 01 00 [14:05:05]MH_I2C_Read... [14:05:05]Read from MH i2c: D1 01 00 A7 18 00 90 [14:05:05]Write to MH i2c: 01 00 00 A8 18 C0 [14:05:05]Write i2c OK [14:05:05]MH_I2C_Read... [14:05:05]OFD Sender: No OFD packet to send [14:05:06]*** Cut start [14:05:06]*** Partial cut [14:05:06]*** CUTSNS_PIN = 1 [14:05:06]*** CUTSNS_PIN = 0 [14:05:06]*** Brake cut motor [14:05:06]Read from MH i2c: 01 [14:05:06]MH_I2C_Read... [14:05:06]*** Stop cut motor [14:05:06]*** Cut end [14:05:06]Read from MH i2c: 01 07 00 [14:05:06]MH_I2C_Read... [14:05:06]Read from MH i2c: 01 07 00 A8 18 00 00 00 00 00 FF 0F D5 [14:05:06]process_action close_receipt done [14:05:06]requested_data is exist [14:05:06]produce_requested_data [14:05:06]requested_item fm.sn is exist - process it [14:05:06]wFMCommunicate request_size=4 [14:05:06]MH_SAM_APDU [14:05:06]CAPDU: 80 11 00 00 [14:05:06]Write to MH i2c: E2 08 00 A9 18 80 11 00 00 00 00 00 00 3B [14:05:06]Write i2c OK [14:05:06]MH_I2C_Read... [14:05:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:06]Read from MH i2c: E2 [14:05:06]MH_I2C_Read... [14:05:06]Read from MH i2c: E2 17 00 [14:05:06]MH_I2C_Read... [14:05:06]Read from MH i2c: E2 17 00 A9 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 91 [14:05:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:05:06]wFMCommunicate OK [14:05:06]requested_item fd.num is exist - process it [14:05:06]SAM_PROTO_GetFieldsCounters [14:05:06]wFMCommunicate request_size=4 [14:05:06]MH_SAM_APDU [14:05:06]CAPDU: 80 13 00 00 [14:05:06]Write to MH i2c: E2 08 00 AA 18 80 13 00 00 00 00 00 00 3E [14:05:06]Write i2c OK [14:05:06]MH_I2C_Read... [14:05:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:05:06]Read from MH i2c: E2 [14:05:06]MH_I2C_Read... [14:05:06]Read from MH i2c: E2 62 00 [14:05:06]MH_I2C_Read... [14:05:06]Read from MH i2c: E2 62 00 AA 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 BC 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [14:05:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 BC 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:05:06]wFMCommunicate OK [14:05:06]SAM_PROTO_GetFieldsCounters done [14:05:06]requested_item shift.num is exist - process it [14:05:06]requested_item shift.opened is exist - process it [14:05:06]req_shift_opened [14:05:06]FM_GetShiftState [14:05:06]SAM_PROTO_GetShiftState [14:05:06]wFMCommunicate request_size=4 [14:05:06]MH_SAM_APDU [14:05:06]CAPDU: 80 13 01 00 [14:05:06]Write to MH i2c: E2 08 00 AB 18 80 13 01 00 00 00 00 00 40 [14:05:06]Write i2c OK [14:05:06]MH_I2C_Read... [14:05:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:06]Read from MH i2c: E2 [14:05:06]MH_I2C_Read... [14:05:06]Read from MH i2c: E2 0E 00 [14:05:06]MH_I2C_Read... [14:05:06]Read from MH i2c: E2 0E 00 AB 18 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 19 [14:05:06]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [14:05:06]wFMCommunicate OK [14:05:06]SAM_PROTO_GetShiftState done [14:05:06]FM_GetShiftState done [14:05:06]req_shift_opened done [14:05:06]requested_item shift.open_date is exist - process it [14:05:06]req_shift_open_date [14:05:06]req_shift_open_date done [14:05:06]produce_requested_data done [14:05:06]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165308,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [14:05:06]process_action_free close_receipt [14:05:06]json_value_free [14:05:06]json_value_free done [14:05:06]process_json_proto returns [14:05:06]Send response to host [14:05:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165308,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [14:05:06]free response buf [14:05:06]execute_script done [14:05:06]execute_script returns [14:05:06]free content buf [14:05:06]Sock 8.Close socket [14:05:06]Sock 8.Thread stoped [14:05:10]OFD Sender: No OFD packet to send [14:05:15]OFD Sender: No OFD packet to send [14:05:20]OFD Sender: No OFD packet to send [14:05:25]OFD Sender: No OFD packet to send [14:05:30]OFD Sender: No OFD packet to send [14:05:35]OFD Sender: No OFD packet to send [14:05:40]OFD Sender: No OFD packet to send [14:05:45]OFD Sender: No OFD packet to send [14:05:50]OFD Sender: No OFD packet to send [14:05:55]OFD Sender: No OFD packet to send [14:06:00]OFD Sender: No OFD packet to send [14:06:05]OFD Sender: No OFD packet to send [14:06:10]OFD Sender: No OFD packet to send [14:06:15]OFD Sender: No OFD packet to send [14:06:20]OFD Sender: No OFD packet to send [14:06:25]OFD Sender: No OFD packet to send [14:06:30]OFD Sender: No OFD packet to send [14:06:35]OFD Sender: No OFD packet to send [14:06:40]OFD Sender: No OFD packet to send [14:06:45]OFD Sender: No OFD packet to send [14:06:50]OFD Sender: No OFD packet to send [14:06:55]OFD Sender: No OFD packet to send [14:07:00]OFD Sender: No OFD packet to send [14:07:05]OFD Sender: No OFD packet to send [14:07:10]OFD Sender: No OFD packet to send [14:07:15]OFD Sender: No OFD packet to send [14:07:20]OFD Sender: No OFD packet to send [14:07:25]OFD Sender: No OFD packet to send [14:07:30]OFD Sender: No OFD packet to send [14:07:35]OFD Sender: No OFD packet to send [14:07:40]OFD Sender: No OFD packet to send [14:07:45]OFD Sender: No OFD packet to send [14:07:50]OFD Sender: No OFD packet to send [14:07:55]OFD Sender: No OFD packet to send [14:08:00]OFD Sender: No OFD packet to send [14:08:05]OFD Sender: No OFD packet to send [14:08:10]OFD Sender: No OFD packet to send [14:08:15]OFD Sender: No OFD packet to send [14:08:20]OFD Sender: No OFD packet to send [14:08:25]OFD Sender: No OFD packet to send [14:08:30]OFD Sender: No OFD packet to send [14:08:35]OFD Sender: No OFD packet to send [14:08:40]OFD Sender: No OFD packet to send [14:08:45]OFD Sender: No OFD packet to send [14:08:50]OFD Sender: No OFD packet to send [14:08:56]OFD Sender: No OFD packet to send [14:09:01]OFD Sender: No OFD packet to send [14:09:06]OFD Sender: No OFD packet to send [14:09:11]OFD Sender: No OFD packet to send [14:09:16]OFD Sender: No OFD packet to send [14:09:21]OFD Sender: No OFD packet to send [14:09:26]OFD Sender: No OFD packet to send [14:09:31]OFD Sender: No OFD packet to send [14:09:36]OFD Sender: No OFD packet to send [14:09:41]OFD Sender: No OFD packet to send [14:09:46]OFD Sender: No OFD packet to send [14:09:51]OFD Sender: No OFD packet to send [14:09:55]accept exits with 9 [14:09:55]New connection [14:09:55]New thread 3066854756 created [14:09:55]Thread 3066711396 joined [14:09:55]Waiting for new connection... [14:09:55] Sock 9.Parse request [14:09:55]Sock 9.Check first char [14:09:55]Sock 9.First char is OK [14:09:55]request: POST /json_proto HTTP/1.0 [14:09:55]Method: POST [14:09:55]URL: /json_proto [14:09:55]Method is POST - this is cgi request [14:09:55]url: /json_proto [14:09:55]query_string will be loaded in cgi processing [14:09:55]execute_cgi json_proto POST (null) [14:09:55]execute_cgi path=json_proto method=POST [14:09:55]POST find Content-Length [14:09:55]Host: 172.17.56.4:8080 [14:09:55]Content-Length: 678 [14:09:55]Content-Type: application/json [14:09:55] [14:09:55]POST finish read [14:09:55]Found Content-Length = 678 [14:09:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459421", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 13.680, "sum" : 900.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:09:55]execute_script... [14:09: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)459421", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 13.680, "sum" : 900.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:09:55]POST & json_proto [14:09:55]process_json_proto [14:09:55]json parsed OK: [14:09:55]protocol is kg_v1.0 [14:09:55]action value=close_receipt [14:09:55]process_action close_receipt [14:09:55]cmd_close_receipt [14:09:55]MH_GetDate [14:09:55]Write to MH i2c: F0 00 00 AC 18 B3 [14:09:55]Write i2c OK [14:09:55]MH_I2C_Read... [14:09:55]Read from MH i2c: F0 [14:09:55]MH_I2C_Read... [14:09:55]Read from MH i2c: F0 09 00 [14:09:55]MH_I2C_Read... [14:09:55]Read from MH i2c: F0 09 00 AC 18 00 B5 2D 95 66 C9 DC B2 64 54 [14:09:55]GetLastDocTimeStamp 1721052304 [14:09:55]current date 1721052597 [14:09:55]FM_GetShiftState [14:09:55]SAM_PROTO_GetShiftState [14:09:55]wFMCommunicate request_size=4 [14:09:55]MH_SAM_APDU [14:09:55]CAPDU: 80 13 01 00 [14:09:55]Write to MH i2c: E2 08 00 AD 18 80 13 01 00 00 00 00 00 42 [14:09:55]Write i2c OK [14:09:55]MH_I2C_Read... [14:09:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:09:55]Read from MH i2c: E2 [14:09:55]MH_I2C_Read... [14:09:55]Read from MH i2c: E2 0E 00 [14:09:55]MH_I2C_Read... [14:09:55]Read from MH i2c: E2 0E 00 AD 18 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 1B [14:09:55]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [14:09:55]wFMCommunicate OK [14:09:55]SAM_PROTO_GetShiftState done [14:09:55]FM_GetShiftState done [14:09:55]opened in 1721003876 [14:09:55]opened+sec_in_day 1721090276 [14:09:55]quantity*price = 90014 [14:09:55]sum+1 = 90015 [14:09:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.59 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 182 15.07.2024 14:09 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165309 ФПД: 605139101939 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T140957&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165309&fm=605139101939&tin=02508201610067®Number=0000000000090829&sum=90000 [14:09:56]StoreToDocumentArchive [14:09:56]shift 448 fd 165309 [14:09:56]save to /storage/0448/doc_00165309 [14:09:56]save last doc name /storage/0448/doc_00165309 to /storage/kkm_last_doc_name [14:09:56]save OK [14:09:56]Clear old archive folders... [14:09:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:09:57]tlvbuf is 0185D3E0 [14:09:57]SAM_PROTO_ClearQueue [14:09:57]wFMCommunicate request_size=4 [14:09:57]MH_SAM_APDU [14:09:57]CAPDU: 80 09 00 00 [14:09:57]Write to MH i2c: E2 08 00 BA 18 80 09 00 00 00 00 00 00 44 [14:09:57]Write i2c OK [14:09:57]MH_I2C_Read... [14:09:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:09:57]Read from MH i2c: E2 [14:09:57]MH_I2C_Read... [14:09:57]Read from MH i2c: E2 03 00 [14:09:57]MH_I2C_Read... [14:09:57]Read from MH i2c: E2 03 00 BA 18 00 90 00 46 [14:09:57]RAPDU: 90 00 [14:09:57]wFMCommunicate OK [14:09:57]SAM_PROTO_ClearQueue done [14:09:57]KKMCreateOFDPacket [14:09:57]OFDProtocolAddRootSTLVToBuf [14:09:57]FM_MakeSignedData [14:09:57]FM_MakeSignedData [14:09:57]SAM_PROTO_SignData [14:09:57]wFMCommunicate request_size=4 [14:09:57]MH_SAM_APDU [14:09:57]CAPDU: 80 0D 01 02 [14:09:57]Write to MH i2c: E2 08 00 BB 18 80 0D 01 02 00 00 00 00 4C [14:09:57]Write i2c OK [14:09:57]MH_I2C_Read... [14:09:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:09:57]Read from MH i2c: E2 [14:09:57]MH_I2C_Read... [14:09:57]Read from MH i2c: E2 03 00 [14:09:57]MH_I2C_Read... [14:09:57]Read from MH i2c: E2 03 00 BB 18 00 90 00 47 [14:09:57]RAPDU: 90 00 [14:09:57]wFMCommunicate OK [14:09:57]wFMCommunicate request_size=255 [14:09:57]MH_SAM_APDU [14:09: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 70 35 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 9E 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 B5 2D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BD 85 02 00 35 04 06 00 00 [14:09:57]Write to MH i2c: E2 02 01 BC 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 35 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 9E 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 B5 2D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BD 85 02 00 35 04 06 00 00 00 00 E0 [14:09:57]Write i2c OK [14:09:57]MH_I2C_Read... [14:09:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:09:57]Read from MH i2c: E2 [14:09:57]MH_I2C_Read... [14:09:57]Read from MH i2c: E2 03 00 [14:09:57]MH_I2C_Read... [14:09:57]Read from MH i2c: E2 03 00 BC 18 00 90 00 48 [14:09:57]RAPDU: 90 00 [14:09:57]wFMCommunicate OK [14:09:57]wFMCommunicate request_size=10 [14:09:57]MH_SAM_APDU [14:09:57]CAPDU: 80 0D 02 02 05 8C E5 19 E8 F3 [14:09:57]Write to MH i2c: E2 0D 00 BD 18 80 0D 02 02 05 00 8C E5 19 E8 F3 00 00 BE [14:09:57]Write i2c OK [14:09:57]MH_I2C_Read... [14:09:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:09:57]Read from MH i2c: E2 [14:09:57]MH_I2C_Read... [14:09:57]Read from MH i2c: E2 03 00 [14:09:57]MH_I2C_Read... [14:09:57]Read from MH i2c: E2 03 00 BD 18 00 90 00 49 [14:09:57]RAPDU: 90 00 [14:09:57]wFMCommunicate OK [14:09:57]wFMCommunicate request_size=4 [14:09:57]MH_SAM_APDU [14:09:57]CAPDU: 80 0D 03 02 [14:09:57]Write to MH i2c: E2 08 00 BE 18 80 0D 03 02 00 00 00 00 51 [14:09:57]Write i2c OK [14:09:57]MH_I2C_Read... [14:09:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:09:57]Read from MH i2c: E2 [14:09:57]MH_I2C_Read... [14:09:57]Read from MH i2c: E2 0B 00 [14:09:57]MH_I2C_Read... [14:09:57]Read from MH i2c: E2 0B 00 BE 18 00 5F F4 21 54 92 A8 EF 8A 90 00 CD [14:09:57]RAPDU: 5F F4 21 54 92 A8 EF 8A 90 00 [14:09:57]wFMCommunicate OK [14:09:57]SAM_PROTO_SignData done [14:09:57]FM_MakeSignedData done [14:09:57]CreateOFDProtocolMessage [14:09:57]wFMCommunicate request_size=4 [14:09:57]MH_SAM_APDU [14:09:57]CAPDU: 80 11 00 00 [14:09:57]Write to MH i2c: E2 08 00 BF 18 80 11 00 00 00 00 00 00 51 [14:09:57]Write i2c OK [14:09:57]MH_I2C_Read... [14:09:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:57]Read from MH i2c: E2 [14:09:57]MH_I2C_Read... [14:09:57]Read from MH i2c: E2 17 00 [14:09:57]MH_I2C_Read... [14:09:57]Read from MH i2c: E2 17 00 BF 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A7 [14:09:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:09:57]wFMCommunicate OK [14:09:57]CreateOFDProtocolMessage done [14:09:57]OFDSenderStorePacket 165309 [14:09:57]StoreOFDPacket docnum=165309 [14:09:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 3E 40 07 01 2D F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 35 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 9E 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 B5 2D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BD 85 02 00 35 04 06 00 00 8C E5 19 E8 F3 5F F4 21 54 92 A8 EF 8A [14:09:57]CheckFolder [14:09:57]dirname=/storage/ofd_packets [14:09:57]CheckFolder done [14:09:57]ProducePacketName [14:09:57]name=ofd_packets/00165309 [14:09:57]NVStorageSaveData ofd_packets/00165309 [14:09:57]File name is /storage/ofd_packets/00165309 [14:09:57]Write 301 bytes [14:09:57]NVStorageSaveData done [14:09:57]OFDSenderStorePacket done [14:09:57]KKMCreateOFDPacket done [14:09:57]NVStorageSaveData kkm_last_timestamp [14:09:57]File name is /storage/kkm_last_timestamp [14:09:57]Write 4 bytes [14:09:57]NVStorageSaveData done [14:09:57]ExternCall_PrintAddStr [14:09:57]wPrintStart [14:09:57]Write to MH i2c: 01 00 00 C0 18 D8 [14:09:57]Write i2c OK [14:09:57]MH_I2C_Read... [14:09:57]Read from MH i2c: 01 [14:09:57]MH_I2C_Read... [14:09:57]Read from MH i2c: 01 07 00 [14:09:57]MH_I2C_Read... [14:09:57]Read from MH i2c: 01 07 00 C0 18 00 00 00 00 00 FF 0F ED [14:09:57]RasterBufferAndPrint [14:09:57]line Счет N : (1)459421 [14:09:57]line ИНН: 02508201610067 [14:09:57]line Контрольно-Кассовый Чек [14:09:57]line ПРОДАЖА [14:09:57]line ТРК (МРК, ГНК) : 12 [14:09:57]line Товар: 2710124130 [14:09:57]line Аи-92-К-5 [14:09:57]line 13.680 * 65.80 [14:09:57]line = 900.14 [14:09:57]line НДС 12% НСП 1% [14:09:57]line > о реализуемом товаре [14:09:57]line ОКРУГЛЕНИЕ: -0.14 [14:09:57]line ИТОГО: 900.00 [14:09:57]line Внесено: 900.00 [14:09:57]line СДАЧА: 0.00 [14:09:57]line НСП 1% : 7.97 [14:09:57]line НДС 12% : 95.59 [14:09:57]line Наличными: 900.00 [14:09:57]line Безнал.: 0.00 [14:09:57]line Место: АЗС № 72 "Партнер Нефть" [14:09:57]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:09:57]line СНО: Общий режим [14:09:57]line Чек 182 15.07.2024 14:09 [14:09:57]line Смена: 448 ФФД: 1.0 [14:09:57]line ЗНМ: 0300000160 [14:09:57]line РНМ: 0000000000090829 [14:09:57]line Версия ККМ: 001 [14:09:57]line ФМ: 0000000000874718 [14:09:57]line ФД: 165309 [14:09:57]line ФПД: 605139101939 [14:09:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T140957&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165309&fm=605139101939&tin=02508201610067®Number=0000000000090829&sum=90000 [14:09:57]OFD Sender: Processing packet 165309 [packets to send 106, broken 105] [14:09:57]ProducePacketName [14:09:57]name=ofd_packets/00165309 [14:09:57]OFD Sender: To server: pG, [14:09:57]CommunicateWithHost lk.salyk.kg:30040 [14:09:57]ConnectInit lk.salyk.kg [14:09:57]written 0, free lines is 4095 [14:09:57]Connected sock=10 [14:09: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 37 31 38 0F 01 00 00 3E 40 07 01 2D F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 35 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 9E 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 B5 2D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BD 85 02 00 35 04 06 00 00 8C E5 19 E8 F3 5F F4 21 54 92 A8 EF 8A [14:09:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 7E E2 47 00 66 EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BD 85 02 00 F4 03 04 00 3F D4 94 66 B6 04 01 00 00 A6 30 19 11 9E 67 D6 21 [14:09:58]CommunicateWithHost err = 0 [14:09:58]CheckOFDResponse [14:09:58]1017 (14) - 77093643461234 [14:09:58]1041 (16) - 0000000000874718 [14:09:58]1040 (4) - 165309 [14:09:58]1012 (4) - 15.07.2024 07:48 [14:09:58]1206 (1) - 0 [14:09:58]OFD Sender: Remove packet 165309 [14:09:58]ProducePacketName [14:09:58]name=ofd_packets/00165309 [14:09:58]NVStorageDeleteData [14:09:58]Write to MH i2c: 01 00 00 EA 18 02 [14:09:58]Write i2c OK [14:09:58]MH_I2C_Read... [14:09:58]Read from MH i2c: 01 [14:09:58]MH_I2C_Read... [14:09:58]Read from MH i2c: 01 07 00 [14:09:58]MH_I2C_Read... [14:09:58]Read from MH i2c: 01 07 00 EA 18 00 00 00 00 00 ED 0C 02 [14:09:58]RasterBufferAndPrint [14:09:58]line [14:09:58]line [14:09:58]line [14:09:58]line [14:09:58]line [14:09:58]written 0, free lines is 3318 [14:09:58]MH_Cut [14:09:58]Write to MH i2c: D1 01 00 F1 18 01 DB [14:09:58]Write i2c OK [14:09:58]MH_I2C_Read... [14:09:58]Read from MH i2c: D1 [14:09:58]MH_I2C_Read... [14:09:58]Read from MH i2c: D1 01 00 [14:09:58]MH_I2C_Read... [14:09:58]Read from MH i2c: D1 01 00 F1 18 00 DA [14:09:58]Write to MH i2c: 01 00 00 F2 18 0A [14:09:58]Write i2c OK [14:09:58]MH_I2C_Read... [14:09:58]OFD Sender: No OFD packet to send [14:09:58]*** Cut start [14:09:58]*** Partial cut [14:09:58]*** CUTSNS_PIN = 1 [14:09:59]*** CUTSNS_PIN = 0 [14:09:59]*** Brake cut motor [14:09:59]Read from MH i2c: 01 [14:09:59]MH_I2C_Read... [14:09:59]*** Stop cut motor [14:09:59]*** Cut end [14:09:59]Read from MH i2c: 01 07 00 [14:09:59]MH_I2C_Read... [14:09:59]Read from MH i2c: 01 07 00 F2 18 00 00 00 00 00 FF 0F 1F [14:09:59]process_action close_receipt done [14:09:59]requested_data is exist [14:09:59]produce_requested_data [14:09:59]requested_item fm.sn is exist - process it [14:09:59]wFMCommunicate request_size=4 [14:09:59]MH_SAM_APDU [14:09:59]CAPDU: 80 11 00 00 [14:09:59]Write to MH i2c: E2 08 00 F3 18 80 11 00 00 00 00 00 00 85 [14:09:59]Write i2c OK [14:09:59]MH_I2C_Read... [14:09:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:59]Read from MH i2c: E2 [14:09:59]MH_I2C_Read... [14:09:59]Read from MH i2c: E2 17 00 [14:09:59]MH_I2C_Read... [14:09:59]Read from MH i2c: E2 17 00 F3 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DB [14:09:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:09:59]wFMCommunicate OK [14:09:59]requested_item fd.num is exist - process it [14:09:59]SAM_PROTO_GetFieldsCounters [14:09:59]wFMCommunicate request_size=4 [14:09:59]MH_SAM_APDU [14:09:59]CAPDU: 80 13 00 00 [14:09:59]Write to MH i2c: E2 08 00 F4 18 80 13 00 00 00 00 00 00 88 [14:09:59]Write i2c OK [14:09:59]MH_I2C_Read... [14:09:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:09:59]Read from MH i2c: E2 [14:09:59]MH_I2C_Read... [14:09:59]Read from MH i2c: E2 62 00 [14:09:59]MH_I2C_Read... [14:09:59]Read from MH i2c: E2 62 00 F4 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 BD 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [14:09: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 BD 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:09:59]wFMCommunicate OK [14:09:59]SAM_PROTO_GetFieldsCounters done [14:09:59]requested_item shift.num is exist - process it [14:09:59]requested_item shift.opened is exist - process it [14:09:59]req_shift_opened [14:09:59]FM_GetShiftState [14:09:59]SAM_PROTO_GetShiftState [14:09:59]wFMCommunicate request_size=4 [14:09:59]MH_SAM_APDU [14:09:59]CAPDU: 80 13 01 00 [14:09:59]Write to MH i2c: E2 08 00 F5 18 80 13 01 00 00 00 00 00 8A [14:09:59]Write i2c OK [14:09:59]MH_I2C_Read... [14:09:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:09:59]Read from MH i2c: E2 [14:09:59]MH_I2C_Read... [14:09:59]Read from MH i2c: E2 0E 00 [14:09:59]MH_I2C_Read... [14:09:59]Read from MH i2c: E2 0E 00 F5 18 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 63 [14:09:59]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [14:09:59]wFMCommunicate OK [14:09:59]SAM_PROTO_GetShiftState done [14:09:59]FM_GetShiftState done [14:09:59]req_shift_opened done [14:09:59]requested_item shift.open_date is exist - process it [14:09:59]req_shift_open_date [14:09:59]req_shift_open_date done [14:09:59]produce_requested_data done [14:09:59]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165309,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [14:09:59]process_action_free close_receipt [14:09:59]json_value_free [14:09:59]json_value_free done [14:09:59]process_json_proto returns [14:09:59]Send response to host [14:09:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165309,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [14:09:59]free response buf [14:09:59]execute_script done [14:09:59]execute_script returns [14:09:59]free content buf [14:09:59]Sock 9.Close socket [14:09:59]Sock 9.Thread stoped [14:10:01]accept exits with 8 [14:10:01]New connection [14:10:01]New thread 3066711396 created [14:10:01]Thread 3066854756 joined [14:10:01]Waiting for new connection... [14:10:01] Sock 8.Parse request [14:10:01]Sock 8.Check first char [14:10:01]Sock 8.First char is OK [14:10:01]request: POST /json_proto HTTP/1.0 [14:10:01]Method: POST [14:10:01]URL: /json_proto [14:10:01]Method is POST - this is cgi request [14:10:01]url: /json_proto [14:10:01]query_string will be loaded in cgi processing [14:10:01]execute_cgi json_proto POST (null) [14:10:01]execute_cgi path=json_proto method=POST [14:10:01]POST find Content-Length [14:10:01]Host: 172.17.56.4:8080 [14:10:01]Content-Length: 790 [14:10:01]Content-Type: application/json [14:10:01] [14:10:01]POST finish read [14:10:01]Found Content-Length = 790 [14:10:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459420", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 28.070, "sum" : 2000.27, "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.27 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:10:01]execute_script... [14:10:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459420", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 28.070, "sum" : 2000.27, "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.27 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:10:01]POST & json_proto [14:10:01]process_json_proto [14:10:01]json parsed OK: [14:10:01]protocol is kg_v1.0 [14:10:01]action value=close_receipt [14:10:01]process_action close_receipt [14:10:01]cmd_close_receipt [14:10:01]MH_GetDate [14:10:01]Write to MH i2c: F0 00 00 F6 18 FD [14:10:01]Write i2c OK [14:10:01]MH_I2C_Read... [14:10:01]Read from MH i2c: F0 [14:10:01]MH_I2C_Read... [14:10:01]Read from MH i2c: F0 09 00 [14:10:01]MH_I2C_Read... [14:10:01]Read from MH i2c: F0 09 00 F6 18 00 BB 2D 95 66 C9 DC B2 64 A4 [14:10:01]GetLastDocTimeStamp 1721052597 [14:10:01]current date 1721052603 [14:10:01]FM_GetShiftState [14:10:01]SAM_PROTO_GetShiftState [14:10:01]wFMCommunicate request_size=4 [14:10:01]MH_SAM_APDU [14:10:01]CAPDU: 80 13 01 00 [14:10:01]Write to MH i2c: E2 08 00 F7 18 80 13 01 00 00 00 00 00 8C [14:10:01]Write i2c OK [14:10:01]MH_I2C_Read... [14:10:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:01]Read from MH i2c: E2 [14:10:01]MH_I2C_Read... [14:10:01]Read from MH i2c: E2 0E 00 [14:10:01]MH_I2C_Read... [14:10:01]Read from MH i2c: E2 0E 00 F7 18 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 65 [14:10:01]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [14:10:01]wFMCommunicate OK [14:10:01]SAM_PROTO_GetShiftState done [14:10:01]FM_GetShiftState done [14:10:01]opened in 1721003876 [14:10:01]opened+sec_in_day 1721090276 [14:10:01]quantity*price = 200026 [14:10:01]sum+1 = 200028 [14:10:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.27 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.27 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 183 15.07.2024 14:10 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 165310 ФПД: 223214206976854 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T141003&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165310&fm=223214206976854&tin=02508201610067®Number=0000000000090829&sum=200027 [14:10:03]StoreToDocumentArchive [14:10:03]shift 448 fd 165310 [14:10:03]save to /storage/0448/doc_00165310 [14:10:03]save last doc name /storage/0448/doc_00165310 to /storage/kkm_last_doc_name [14:10:03]save OK [14:10:03]Clear old archive folders... [14:10:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:10:03]tlvbuf is 018DB820 [14:10:03]SAM_PROTO_ClearQueue [14:10:03]wFMCommunicate request_size=4 [14:10:03]MH_SAM_APDU [14:10:03]CAPDU: 80 09 00 00 [14:10:03]Write to MH i2c: E2 08 00 04 19 80 09 00 00 00 00 00 00 8F [14:10:03]Write i2c OK [14:10:03]MH_I2C_Read... [14:10:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:10:03]Read from MH i2c: E2 [14:10:03]MH_I2C_Read... [14:10:03]Read from MH i2c: E2 03 00 [14:10:03]MH_I2C_Read... [14:10:03]Read from MH i2c: E2 03 00 04 19 00 90 00 91 [14:10:03]RAPDU: 90 00 [14:10:03]wFMCommunicate OK [14:10:03]SAM_PROTO_ClearQueue done [14:10:03]KKMCreateOFDPacket [14:10:03]OFDProtocolAddRootSTLVToBuf [14:10:03]FM_MakeSignedData [14:10:03]FM_MakeSignedData [14:10:03]SAM_PROTO_SignData [14:10:03]wFMCommunicate request_size=4 [14:10:03]MH_SAM_APDU [14:10:03]CAPDU: 80 0D 01 02 [14:10:03]Write to MH i2c: E2 08 00 05 19 80 0D 01 02 00 00 00 00 97 [14:10:03]Write i2c OK [14:10:03]MH_I2C_Read... [14:10:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:10:03]Read from MH i2c: E2 [14:10:03]MH_I2C_Read... [14:10:03]Read from MH i2c: E2 03 00 [14:10:03]MH_I2C_Read... [14:10:03]Read from MH i2c: E2 03 00 05 19 00 90 00 92 [14:10:03]RAPDU: 90 00 [14:10:03]wFMCommunicate OK [14:10:03]wFMCommunicate request_size=255 [14:10:03]MH_SAM_APDU [14:10:03]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A6 6D 00 00 00 00 00 37 04 06 00 D6 1B 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 5B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 BB 2D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BE 85 02 00 35 04 06 00 CB 03 1B 84 [14:10:03]Write to MH i2c: E2 02 01 06 19 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A6 6D 00 00 00 00 00 37 04 06 00 D6 1B 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 5B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 BB 2D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BE 85 02 00 35 04 06 00 CB 03 1B 84 00 00 88 [14:10:03]Write i2c OK [14:10:03]MH_I2C_Read... [14:10:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:10:03]Read from MH i2c: E2 [14:10:03]MH_I2C_Read... [14:10:03]Read from MH i2c: E2 03 00 [14:10:03]MH_I2C_Read... [14:10:03]Read from MH i2c: E2 03 00 06 19 00 90 00 93 [14:10:03]RAPDU: 90 00 [14:10:03]wFMCommunicate OK [14:10:03]wFMCommunicate request_size=7 [14:10:03]MH_SAM_APDU [14:10:03]CAPDU: 80 0D 02 02 02 03 56 [14:10:03]Write to MH i2c: E2 0A 00 07 19 80 0D 02 02 02 00 03 56 00 00 F7 [14:10:03]Write i2c OK [14:10:03]MH_I2C_Read... [14:10:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:10:03]Read from MH i2c: E2 [14:10:03]MH_I2C_Read... [14:10:03]Read from MH i2c: E2 03 00 [14:10:03]MH_I2C_Read... [14:10:03]Read from MH i2c: E2 03 00 07 19 00 90 00 94 [14:10:03]RAPDU: 90 00 [14:10:03]wFMCommunicate OK [14:10:03]wFMCommunicate request_size=4 [14:10:03]MH_SAM_APDU [14:10:03]CAPDU: 80 0D 03 02 [14:10:03]Write to MH i2c: E2 08 00 08 19 80 0D 03 02 00 00 00 00 9C [14:10:03]Write i2c OK [14:10:03]MH_I2C_Read... [14:10:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:10:03]Read from MH i2c: E2 [14:10:03]MH_I2C_Read... [14:10:03]Read from MH i2c: E2 0B 00 [14:10:03]MH_I2C_Read... [14:10:03]Read from MH i2c: E2 0B 00 08 19 00 E8 16 23 37 D5 38 91 38 90 00 CB [14:10:03]RAPDU: E8 16 23 37 D5 38 91 38 90 00 [14:10:03]wFMCommunicate OK [14:10:03]SAM_PROTO_SignData done [14:10:03]FM_MakeSignedData done [14:10:03]CreateOFDProtocolMessage [14:10:03]wFMCommunicate request_size=4 [14:10:03]MH_SAM_APDU [14:10:03]CAPDU: 80 11 00 00 [14:10:03]Write to MH i2c: E2 08 00 09 19 80 11 00 00 00 00 00 00 9C [14:10:03]Write i2c OK [14:10:03]MH_I2C_Read... [14:10:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:03]Read from MH i2c: E2 [14:10:03]MH_I2C_Read... [14:10:03]Read from MH i2c: E2 17 00 [14:10:03]MH_I2C_Read... [14:10:03]Read from MH i2c: E2 17 00 09 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F2 [14:10:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:10:03]wFMCommunicate OK [14:10:03]CreateOFDProtocolMessage done [14:10:03]OFDSenderStorePacket 165310 [14:10:03]StoreOFDPacket docnum=165310 [14:10:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 3C 42 04 01 7E 04 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A6 6D 00 00 00 00 00 37 04 06 00 D6 1B 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 5B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 BB 2D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BE 85 02 00 35 04 06 00 CB 03 1B 84 03 56 E8 16 23 37 D5 38 91 38 [14:10:03]CheckFolder [14:10:03]dirname=/storage/ofd_packets [14:10:03]CheckFolder done [14:10:03]ProducePacketName [14:10:03]name=ofd_packets/00165310 [14:10:03]NVStorageSaveData ofd_packets/00165310 [14:10:03]File name is /storage/ofd_packets/00165310 [14:10:03]Write 298 bytes [14:10:03]NVStorageSaveData done [14:10:03]OFDSenderStorePacket done [14:10:03]KKMCreateOFDPacket done [14:10:03]NVStorageSaveData kkm_last_timestamp [14:10:03]File name is /storage/kkm_last_timestamp [14:10:03]Write 4 bytes [14:10:03]NVStorageSaveData done [14:10:03]OFD Sender: No OFD packet to send [14:10:03]ExternCall_PrintAddStr [14:10:03]wPrintStart [14:10:03]Write to MH i2c: 01 00 00 0A 19 23 [14:10:03]Write i2c OK [14:10:03]MH_I2C_Read... [14:10:03]Read from MH i2c: 01 [14:10:03]MH_I2C_Read... [14:10:03]Read from MH i2c: 01 07 00 [14:10:03]MH_I2C_Read... [14:10:03]Read from MH i2c: 01 07 00 0A 19 00 00 00 00 00 FF 0F 38 [14:10:03]RasterBufferAndPrint [14:10:03]line Счет N : (1)459420 [14:10:03]line ИНН: 02508201610067 [14:10:03]line Контрольно-Кассовый Чек [14:10:03]line ПРОДАЖА [14:10:03]line ТРК (МРК, ГНК) : 11 [14:10:03]line Товар: 2710194210 [14:10:03]line ДТ-К-5 [14:10:03]line 28.070 * 71.26 [14:10:03]line = 2000.27 [14:10:03]line НДС 12% НСП 1% [14:10:03]line > о реализуемом товаре [14:10:03]line ИТОГО: 2000.27 [14:10:03]line НСП 1% : 17.70 [14:10:03]line НДС 12% : 212.42 [14:10:03]line Наличными: 0.00 [14:10:03]line Безнал.: 2000.27 [14:10:03]line Место: АЗС № 72 "Партнер Нефть" [14:10:03]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:10:03]line СНО: Общий режим [14:10:03]line Чек 183 15.07.2024 14:10 [14:10:03]line Смена: 448 ФФД: 1.0 [14:10:03]line ЗНМ: 0300000160 [14:10:03]line РНМ: 0000000000090829 [14:10:03]line Версия ККМ: 001 [14:10:03]line Платежная система: KICB Банк [14:10:03]line ФМ: 0000000000874718 [14:10:03]line ФД: 165310 [14:10:03]line ФПД: 223214206976854 [14:10:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T141003&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165310&fm=223214206976854&tin=02508201610067®Number=0000000000090829&sum=200027 [14:10:03]written 0, free lines is 4095 [14:10:03]OFD Sender: Processing packet 165310 [packets to send 106, broken 105] [14:10:03]ProducePacketName [14:10:03]name=ofd_packets/00165310 [14:10:03]OFD Sender: To server: pG, [14:10:03]CommunicateWithHost lk.salyk.kg:30040 [14:10:03]ConnectInit lk.salyk.kg [14:10:03]Connected sock=10 [14:10:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 3C 42 04 01 7E 04 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A6 6D 00 00 00 00 00 37 04 06 00 D6 1B 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 5B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 BB 2D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BE 85 02 00 35 04 06 00 CB 03 1B 84 03 56 E8 16 23 37 D5 38 91 38 [14:10:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 AA DB 47 00 6B 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 BE 85 02 00 F4 03 04 00 45 D4 94 66 B6 04 01 00 00 72 C7 EF 74 B4 E8 B9 7E [14:10:04]CommunicateWithHost err = 0 [14:10:04]CheckOFDResponse [14:10:04]1017 (14) - 77093643461234 [14:10:04]1041 (16) - 0000000000874718 [14:10:04]1040 (4) - 165310 [14:10:04]1012 (4) - 15.07.2024 07:48 [14:10:04]1206 (1) - 0 [14:10:04]OFD Sender: Remove packet 165310 [14:10:04]ProducePacketName [14:10:04]name=ofd_packets/00165310 [14:10:04]NVStorageDeleteData [14:10:04]Write to MH i2c: 01 00 00 33 19 4C [14:10:04]Write i2c OK [14:10:04]MH_I2C_Read... [14:10:04]Read from MH i2c: 01 [14:10:04]MH_I2C_Read... [14:10:04]Read from MH i2c: 01 07 00 [14:10:04]MH_I2C_Read... [14:10:04]Read from MH i2c: 01 07 00 33 19 00 00 00 00 00 0E 0D 6E [14:10:04]RasterBufferAndPrint [14:10:04]line [14:10:04]line [14:10:04]line [14:10:04]line [14:10:04]line [14:10:04]written 0, free lines is 3358 [14:10:04]MH_Cut [14:10:04]Write to MH i2c: D1 01 00 3A 19 01 25 [14:10:04]Write i2c OK [14:10:04]MH_I2C_Read... [14:10:04]Read from MH i2c: D1 [14:10:04]MH_I2C_Read... [14:10:04]Read from MH i2c: D1 01 00 [14:10:04]MH_I2C_Read... [14:10:04]Read from MH i2c: D1 01 00 3A 19 00 24 [14:10:04]Write to MH i2c: 01 00 00 3B 19 54 [14:10:04]Write i2c OK [14:10:04]MH_I2C_Read... [14:10:04]OFD Sender: No OFD packet to send [14:10:04]*** Cut start [14:10:04]*** Partial cut [14:10:04]*** CUTSNS_PIN = 1 [14:10:04]*** CUTSNS_PIN = 0 [14:10:05]*** Brake cut motor [14:10:05]Read from MH i2c: 01 [14:10:05]MH_I2C_Read... [14:10:05]*** Stop cut motor [14:10:05]*** Cut end [14:10:05]Read from MH i2c: 01 07 00 [14:10:05]MH_I2C_Read... [14:10:05]Read from MH i2c: 01 07 00 3B 19 00 00 00 00 00 FF 0F 69 [14:10:05]process_action close_receipt done [14:10:05]requested_data is exist [14:10:05]produce_requested_data [14:10:05]requested_item fm.sn is exist - process it [14:10:05]wFMCommunicate request_size=4 [14:10:05]MH_SAM_APDU [14:10:05]CAPDU: 80 11 00 00 [14:10:05]Write to MH i2c: E2 08 00 3C 19 80 11 00 00 00 00 00 00 CF [14:10:05]Write i2c OK [14:10:05]MH_I2C_Read... [14:10:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:05]Read from MH i2c: E2 [14:10:05]MH_I2C_Read... [14:10:05]Read from MH i2c: E2 17 00 [14:10:05]MH_I2C_Read... [14:10:05]Read from MH i2c: E2 17 00 3C 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 25 [14:10:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:10:05]wFMCommunicate OK [14:10:05]requested_item fd.num is exist - process it [14:10:05]SAM_PROTO_GetFieldsCounters [14:10:05]wFMCommunicate request_size=4 [14:10:05]MH_SAM_APDU [14:10:05]CAPDU: 80 13 00 00 [14:10:05]Write to MH i2c: E2 08 00 3D 19 80 13 00 00 00 00 00 00 D2 [14:10:05]Write i2c OK [14:10:05]MH_I2C_Read... [14:10:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:10:05]Read from MH i2c: E2 [14:10:05]MH_I2C_Read... [14:10:05]Read from MH i2c: E2 62 00 [14:10:05]MH_I2C_Read... [14:10:05]Read from MH i2c: E2 62 00 3D 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 BE 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [14:10:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 BE 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:10:05]wFMCommunicate OK [14:10:05]SAM_PROTO_GetFieldsCounters done [14:10:05]requested_item shift.num is exist - process it [14:10:05]requested_item shift.opened is exist - process it [14:10:05]req_shift_opened [14:10:05]FM_GetShiftState [14:10:05]SAM_PROTO_GetShiftState [14:10:05]wFMCommunicate request_size=4 [14:10:05]MH_SAM_APDU [14:10:05]CAPDU: 80 13 01 00 [14:10:05]Write to MH i2c: E2 08 00 3E 19 80 13 01 00 00 00 00 00 D4 [14:10:05]Write i2c OK [14:10:05]MH_I2C_Read... [14:10:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:05]Read from MH i2c: E2 [14:10:05]MH_I2C_Read... [14:10:05]Read from MH i2c: E2 0E 00 [14:10:05]MH_I2C_Read... [14:10:05]Read from MH i2c: E2 0E 00 3E 19 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 AD [14:10:05]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [14:10:05]wFMCommunicate OK [14:10:05]SAM_PROTO_GetShiftState done [14:10:05]FM_GetShiftState done [14:10:05]req_shift_opened done [14:10:05]requested_item shift.open_date is exist - process it [14:10:05]req_shift_open_date [14:10:05]req_shift_open_date done [14:10:05]produce_requested_data done [14:10:05]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165310,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [14:10:05]process_action_free close_receipt [14:10:05]json_value_free [14:10:05]json_value_free done [14:10:05]process_json_proto returns [14:10:05]Send response to host [14:10:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165310,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [14:10:05]free response buf [14:10:05]execute_script done [14:10:05]execute_script returns [14:10:05]free content buf [14:10:05]Sock 8.Close socket [14:10:05]Sock 8.Thread stoped [14:10:09]OFD Sender: No OFD packet to send [14:10:14]OFD Sender: No OFD packet to send [14:10:19]OFD Sender: No OFD packet to send [14:10:24]OFD Sender: No OFD packet to send [14:10:29]OFD Sender: No OFD packet to send [14:10:34]OFD Sender: No OFD packet to send [14:10:39]OFD Sender: No OFD packet to send [14:10:44]OFD Sender: No OFD packet to send [14:10:49]OFD Sender: No OFD packet to send [14:10:54]OFD Sender: No OFD packet to send [14:10:59]OFD Sender: No OFD packet to send [14:11:04]OFD Sender: No OFD packet to send [14:11:09]OFD Sender: No OFD packet to send [14:11:14]OFD Sender: No OFD packet to send [14:11:19]OFD Sender: No OFD packet to send [14:11:24]OFD Sender: No OFD packet to send [14:11:29]OFD Sender: No OFD packet to send [14:11:34]OFD Sender: No OFD packet to send [14:11:39]OFD Sender: No OFD packet to send [14:11:44]OFD Sender: No OFD packet to send [14:11:49]OFD Sender: No OFD packet to send [14:11:54]OFD Sender: No OFD packet to send [14:11:59]OFD Sender: No OFD packet to send [14:12:04]OFD Sender: No OFD packet to send [14:12:09]OFD Sender: No OFD packet to send [14:12:14]OFD Sender: No OFD packet to send [14:12:19]OFD Sender: No OFD packet to send [14:12:20]accept exits with 9 [14:12:20]New connection [14:12:20]New thread 3066854756 created [14:12:20]Thread 3066711396 joined [14:12:20]Waiting for new connection... [14:12:20] Sock 9.Parse request [14:12:20]Sock 9.Check first char [14:12:20]Sock 9.First char is OK [14:12:20]request: POST /json_proto HTTP/1.0 [14:12:20]Method: POST [14:12:20]URL: /json_proto [14:12:20]Method is POST - this is cgi request [14:12:20]url: /json_proto [14:12:20]query_string will be loaded in cgi processing [14:12:20]execute_cgi json_proto POST (null) [14:12:20]execute_cgi path=json_proto method=POST [14:12:20]POST find Content-Length [14:12:20]Host: 172.17.56.4:8080 [14:12:20]Content-Length: 677 [14:12:20]Content-Type: application/json [14:12:20] [14:12:20]POST finish read [14:12:20]Found Content-Length = 677 [14:12:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459422", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:12:20]execute_script... [14:12: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)459422", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:12:20]POST & json_proto [14:12:20]process_json_proto [14:12:20]json parsed OK: [14:12:20]protocol is kg_v1.0 [14:12:20]action value=close_receipt [14:12:20]process_action close_receipt [14:12:20]cmd_close_receipt [14:12:20]MH_GetDate [14:12:20]Write to MH i2c: F0 00 00 3F 19 47 [14:12:20]Write i2c OK [14:12:20]MH_I2C_Read... [14:12:20]Read from MH i2c: F0 [14:12:20]MH_I2C_Read... [14:12:20]Read from MH i2c: F0 09 00 [14:12:20]MH_I2C_Read... [14:12:20]Read from MH i2c: F0 09 00 3F 19 00 45 2E 95 66 C9 DC B2 64 79 [14:12:20]GetLastDocTimeStamp 1721052603 [14:12:20]current date 1721052741 [14:12:20]FM_GetShiftState [14:12:20]SAM_PROTO_GetShiftState [14:12:20]wFMCommunicate request_size=4 [14:12:20]MH_SAM_APDU [14:12:20]CAPDU: 80 13 01 00 [14:12:20]Write to MH i2c: E2 08 00 40 19 80 13 01 00 00 00 00 00 D6 [14:12:20]Write i2c OK [14:12:20]MH_I2C_Read... [14:12:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:20]Read from MH i2c: E2 [14:12:20]MH_I2C_Read... [14:12:20]Read from MH i2c: E2 0E 00 [14:12:20]MH_I2C_Read... [14:12:20]Read from MH i2c: E2 0E 00 40 19 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 AF [14:12:20]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [14:12:20]wFMCommunicate OK [14:12:20]SAM_PROTO_GetShiftState done [14:12:20]FM_GetShiftState done [14:12:20]opened in 1721003876 [14:12:20]opened+sec_in_day 1721090276 [14:12:20]quantity*price = 40006 [14:12:20]sum+1 = 40007 [14:12:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 184 15.07.2024 14:12 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165311 ФПД: 151427941289950 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T141221&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165311&fm=151427941289950&tin=02508201610067®Number=0000000000090829&sum=40000 [14:12:21]StoreToDocumentArchive [14:12:21]shift 448 fd 165311 [14:12:21]save to /storage/0448/doc_00165311 [14:12:21]save last doc name /storage/0448/doc_00165311 to /storage/kkm_last_doc_name [14:12:21]save OK [14:12:21]Clear old archive folders... [14:12:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:12:21]tlvbuf is B6E90510 [14:12:21]SAM_PROTO_ClearQueue [14:12:21]wFMCommunicate request_size=4 [14:12:21]MH_SAM_APDU [14:12:21]CAPDU: 80 09 00 00 [14:12:21]Write to MH i2c: E2 08 00 4D 19 80 09 00 00 00 00 00 00 D8 [14:12:21]Write i2c OK [14:12:21]MH_I2C_Read... [14:12:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:12:21]Read from MH i2c: E2 [14:12:21]MH_I2C_Read... [14:12:21]Read from MH i2c: E2 03 00 [14:12:21]MH_I2C_Read... [14:12:21]Read from MH i2c: E2 03 00 4D 19 00 90 00 DA [14:12:21]RAPDU: 90 00 [14:12:21]wFMCommunicate OK [14:12:21]SAM_PROTO_ClearQueue done [14:12:21]KKMCreateOFDPacket [14:12:21]OFDProtocolAddRootSTLVToBuf [14:12:21]FM_MakeSignedData [14:12:21]FM_MakeSignedData [14:12:21]SAM_PROTO_SignData [14:12:21]wFMCommunicate request_size=4 [14:12:21]MH_SAM_APDU [14:12:21]CAPDU: 80 0D 01 02 [14:12:21]Write to MH i2c: E2 08 00 4E 19 80 0D 01 02 00 00 00 00 E0 [14:12:21]Write i2c OK [14:12:21]MH_I2C_Read... [14:12:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:12:21]Read from MH i2c: E2 [14:12:21]MH_I2C_Read... [14:12:21]Read from MH i2c: E2 03 00 [14:12:21]MH_I2C_Read... [14:12:21]Read from MH i2c: E2 03 00 4E 19 00 90 00 DB [14:12:21]RAPDU: 90 00 [14:12:21]wFMCommunicate OK [14:12:21]wFMCommunicate request_size=255 [14:12:21]MH_SAM_APDU [14:12:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 45 2E 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BF 85 02 00 35 04 06 00 89 [14:12:21]Write to MH i2c: E2 02 01 4F 19 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 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 45 2E 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BF 85 02 00 35 04 06 00 89 00 00 EF [14:12:21]Write i2c OK [14:12:21]MH_I2C_Read... [14:12:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:21]Read from MH i2c: E2 [14:12:21]MH_I2C_Read... [14:12:21]Read from MH i2c: E2 03 00 [14:12:21]MH_I2C_Read... [14:12:21]Read from MH i2c: E2 03 00 4F 19 00 90 00 DC [14:12:21]RAPDU: 90 00 [14:12:21]wFMCommunicate OK [14:12:21]wFMCommunicate request_size=10 [14:12:21]MH_SAM_APDU [14:12:21]CAPDU: 80 0D 02 02 05 B9 10 A6 4F DE [14:12:21]Write to MH i2c: E2 0D 00 50 19 80 0D 02 02 05 00 B9 10 A6 4F DE 00 00 89 [14:12:21]Write i2c OK [14:12:21]MH_I2C_Read... [14:12:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:21]Read from MH i2c: E2 [14:12:21]MH_I2C_Read... [14:12:21]Read from MH i2c: E2 03 00 [14:12:21]MH_I2C_Read... [14:12:21]Read from MH i2c: E2 03 00 50 19 00 90 00 DD [14:12:21]RAPDU: 90 00 [14:12:21]wFMCommunicate OK [14:12:21]wFMCommunicate request_size=4 [14:12:21]MH_SAM_APDU [14:12:21]CAPDU: 80 0D 03 02 [14:12:21]Write to MH i2c: E2 08 00 51 19 80 0D 03 02 00 00 00 00 E5 [14:12:21]Write i2c OK [14:12:21]MH_I2C_Read... [14:12:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:12:21]Read from MH i2c: E2 [14:12:21]MH_I2C_Read... [14:12:21]Read from MH i2c: E2 0B 00 [14:12:21]MH_I2C_Read... [14:12:21]Read from MH i2c: E2 0B 00 51 19 00 6D 4D 8A 2B 2F 95 B3 EF 90 00 BB [14:12:21]RAPDU: 6D 4D 8A 2B 2F 95 B3 EF 90 00 [14:12:21]wFMCommunicate OK [14:12:21]SAM_PROTO_SignData done [14:12:21]FM_MakeSignedData done [14:12:21]CreateOFDProtocolMessage [14:12:21]wFMCommunicate request_size=4 [14:12:21]MH_SAM_APDU [14:12:21]CAPDU: 80 11 00 00 [14:12:21]Write to MH i2c: E2 08 00 52 19 80 11 00 00 00 00 00 00 E5 [14:12:21]Write i2c OK [14:12:21]MH_I2C_Read... [14:12:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:21]Read from MH i2c: E2 [14:12:21]MH_I2C_Read... [14:12:21]Read from MH i2c: E2 17 00 [14:12:21]MH_I2C_Read... [14:12:21]Read from MH i2c: E2 17 00 52 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3B [14:12:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:12:21]wFMCommunicate OK [14:12:21]CreateOFDProtocolMessage done [14:12:21]OFDSenderStorePacket 165311 [14:12:21]StoreOFDPacket docnum=165311 [14:12:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 85 D6 07 01 EC 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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 45 2E 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BF 85 02 00 35 04 06 00 89 B9 10 A6 4F DE 6D 4D 8A 2B 2F 95 B3 EF [14:12:21]CheckFolder [14:12:21]dirname=/storage/ofd_packets [14:12:21]CheckFolder done [14:12:21]ProducePacketName [14:12:21]name=ofd_packets/00165311 [14:12:21]NVStorageSaveData ofd_packets/00165311 [14:12:21]File name is /storage/ofd_packets/00165311 [14:12:21]Write 301 bytes [14:12:21]NVStorageSaveData done [14:12:21]OFDSenderStorePacket done [14:12:21]KKMCreateOFDPacket done [14:12:21]NVStorageSaveData kkm_last_timestamp [14:12:21]File name is /storage/kkm_last_timestamp [14:12:21]Write 4 bytes [14:12:21]NVStorageSaveData done [14:12:21]ExternCall_PrintAddStr [14:12:21]wPrintStart [14:12:21]Write to MH i2c: 01 00 00 53 19 6C [14:12:21]Write i2c OK [14:12:21]MH_I2C_Read... [14:12:21]Read from MH i2c: 01 [14:12:21]MH_I2C_Read... [14:12:21]Read from MH i2c: 01 07 00 [14:12:21]MH_I2C_Read... [14:12:21]Read from MH i2c: 01 07 00 53 19 00 00 00 00 00 FF 0F 81 [14:12:21]RasterBufferAndPrint [14:12:21]line Счет N : (1)459422 [14:12:21]line ИНН: 02508201610067 [14:12:21]line Контрольно-Кассовый Чек [14:12:21]line ПРОДАЖА [14:12:21]line ТРК (МРК, ГНК) : 22 [14:12:21]line Товар: 2710124130 [14:12:21]line Аи-92-К-5 [14:12:21]line 6.080 * 65.80 [14:12:21]line = 400.06 [14:12:21]line НДС 12% НСП 1% [14:12:21]line > о реализуемом товаре [14:12:21]line ОКРУГЛЕНИЕ: -0.06 [14:12:21]line ИТОГО: 400.00 [14:12:21]line Внесено: 400.00 [14:12:21]line СДАЧА: 0.00 [14:12:21]line НСП 1% : 3.54 [14:12:21]line НДС 12% : 42.48 [14:12:21]line Наличными: 400.00 [14:12:21]line Безнал.: 0.00 [14:12:21]line Место: АЗС № 72 "Партнер Нефть" [14:12:21]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:12:21]line СНО: Общий режим [14:12:21]line Чек 184 15.07.2024 14:12 [14:12:21]line Смена: 448 ФФД: 1.0 [14:12:21]line ЗНМ: 0300000160 [14:12:21]line РНМ: 0000000000090829 [14:12:21]line Версия ККМ: 001 [14:12:21]line ФМ: 0000000000874718 [14:12:21]line ФД: 165311 [14:12:21]line ФПД: 151427941289950 [14:12:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T141221&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165311&fm=151427941289950&tin=02508201610067®Number=0000000000090829&sum=40000 [14:12:22]written 0, free lines is 4095 [14:12:22]OFD Sender: Processing packet 165311 [packets to send 106, broken 105] [14:12:22]ProducePacketName [14:12:22]name=ofd_packets/00165311 [14:12:22]OFD Sender: To server: pG, [14:12:22]CommunicateWithHost lk.salyk.kg:30040 [14:12:22]ConnectInit lk.salyk.kg [14:12:22]Connected sock=10 [14:12: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 37 31 38 0F 01 00 00 85 D6 07 01 EC 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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 45 2E 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 BF 85 02 00 35 04 06 00 89 B9 10 A6 4F DE 6D 4D 8A 2B 2F 95 B3 EF [14:12:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 2B 5A 47 00 52 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 37 31 38 10 04 04 00 BF 85 02 00 F4 03 04 00 CF D4 94 66 B6 04 01 00 00 13 80 84 B9 9A D0 1D 3A [14:12:22]CommunicateWithHost err = 0 [14:12:22]CheckOFDResponse [14:12:22]1017 (14) - 77093643461234 [14:12:22]1041 (16) - 0000000000874718 [14:12:22]1040 (4) - 165311 [14:12:22]1012 (4) - 15.07.2024 07:50 [14:12:22]1206 (1) - 0 [14:12:22]OFD Sender: Remove packet 165311 [14:12:22]ProducePacketName [14:12:22]name=ofd_packets/00165311 [14:12:22]NVStorageDeleteData [14:12:22]Write to MH i2c: 01 00 00 7D 19 96 [14:12:22]Write i2c OK [14:12:22]MH_I2C_Read... [14:12:22]Read from MH i2c: 01 [14:12:22]MH_I2C_Read... [14:12:22]Read from MH i2c: 01 07 00 [14:12:22]MH_I2C_Read... [14:12:22]Read from MH i2c: 01 07 00 7D 19 00 00 00 00 00 EF 0C 98 [14:12:22]RasterBufferAndPrint [14:12:22]line [14:12:22]line [14:12:22]line [14:12:22]line [14:12:22]line [14:12:22]written 0, free lines is 3318 [14:12:22]MH_Cut [14:12:22]Write to MH i2c: D1 01 00 84 19 01 6F [14:12:22]Write i2c OK [14:12:22]MH_I2C_Read... [14:12:22]Read from MH i2c: D1 [14:12:22]MH_I2C_Read... [14:12:22]Read from MH i2c: D1 01 00 [14:12:22]MH_I2C_Read... [14:12:22]Read from MH i2c: D1 01 00 84 19 00 6E [14:12:22]Write to MH i2c: 01 00 00 85 19 9E [14:12:22]Write i2c OK [14:12:22]MH_I2C_Read... [14:12:22]OFD Sender: No OFD packet to send [14:12:23]*** Cut start [14:12:23]*** Partial cut [14:12:23]*** CUTSNS_PIN = 1 [14:12:23]*** CUTSNS_PIN = 0 [14:12:23]*** Brake cut motor [14:12:23]Read from MH i2c: 01 [14:12:23]MH_I2C_Read... [14:12:23]*** Stop cut motor [14:12:23]*** Cut end [14:12:23]Read from MH i2c: 01 07 00 [14:12:23]MH_I2C_Read... [14:12:23]Read from MH i2c: 01 07 00 85 19 00 00 00 00 00 FF 0F B3 [14:12:23]process_action close_receipt done [14:12:23]requested_data is exist [14:12:23]produce_requested_data [14:12:23]requested_item fm.sn is exist - process it [14:12:23]wFMCommunicate request_size=4 [14:12:23]MH_SAM_APDU [14:12:23]CAPDU: 80 11 00 00 [14:12:23]Write to MH i2c: E2 08 00 86 19 80 11 00 00 00 00 00 00 19 [14:12:23]Write i2c OK [14:12:23]MH_I2C_Read... [14:12:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:23]Read from MH i2c: E2 [14:12:23]MH_I2C_Read... [14:12:23]Read from MH i2c: E2 17 00 [14:12:23]MH_I2C_Read... [14:12:23]Read from MH i2c: E2 17 00 86 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6F [14:12:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:12:23]wFMCommunicate OK [14:12:23]requested_item fd.num is exist - process it [14:12:23]SAM_PROTO_GetFieldsCounters [14:12:23]wFMCommunicate request_size=4 [14:12:23]MH_SAM_APDU [14:12:23]CAPDU: 80 13 00 00 [14:12:23]Write to MH i2c: E2 08 00 87 19 80 13 00 00 00 00 00 00 1C [14:12:23]Write i2c OK [14:12:23]MH_I2C_Read... [14:12:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:12:24]Read from MH i2c: E2 [14:12:24]MH_I2C_Read... [14:12:24]Read from MH i2c: E2 62 00 [14:12:24]MH_I2C_Read... [14:12:24]Read from MH i2c: E2 62 00 87 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 BF 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [14:12: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 BF 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:12:24]wFMCommunicate OK [14:12:24]SAM_PROTO_GetFieldsCounters done [14:12:24]requested_item shift.num is exist - process it [14:12:24]requested_item shift.opened is exist - process it [14:12:24]req_shift_opened [14:12:24]FM_GetShiftState [14:12:24]SAM_PROTO_GetShiftState [14:12:24]wFMCommunicate request_size=4 [14:12:24]MH_SAM_APDU [14:12:24]CAPDU: 80 13 01 00 [14:12:24]Write to MH i2c: E2 08 00 88 19 80 13 01 00 00 00 00 00 1E [14:12:24]Write i2c OK [14:12:24]MH_I2C_Read... [14:12:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:24]Read from MH i2c: E2 [14:12:24]MH_I2C_Read... [14:12:24]Read from MH i2c: E2 0E 00 [14:12:24]MH_I2C_Read... [14:12:24]Read from MH i2c: E2 0E 00 88 19 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 F7 [14:12:24]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [14:12:24]wFMCommunicate OK [14:12:24]SAM_PROTO_GetShiftState done [14:12:24]FM_GetShiftState done [14:12:24]req_shift_opened done [14:12:24]requested_item shift.open_date is exist - process it [14:12:24]req_shift_open_date [14:12:24]req_shift_open_date done [14:12:24]produce_requested_data done [14:12:24]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165311,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [14:12:24]process_action_free close_receipt [14:12:24]json_value_free [14:12:24]json_value_free done [14:12:24]process_json_proto returns [14:12:24]Send response to host [14:12:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165311,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [14:12:24]free response buf [14:12:24]execute_script done [14:12:24]execute_script returns [14:12:24]free content buf [14:12:24]Sock 9.Close socket [14:12:24]Sock 9.Thread stoped [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:23]OFD Sender: No OFD packet to send [14:13:28]OFD Sender: No OFD packet to send [14:13:33]OFD Sender: No OFD packet to send [14:13:38]OFD Sender: No OFD packet to send [14:13:43]OFD Sender: No OFD packet to send [14:13:48]OFD Sender: No OFD packet to send [14:13:53]OFD Sender: No OFD packet to send [14:13:58]OFD Sender: No OFD packet to send [14:14:03]OFD Sender: No OFD packet to send [14:14:08]OFD Sender: No OFD packet to send [14:14:13]OFD Sender: No OFD packet to send [14:14:18]OFD Sender: No OFD packet to send [14:14:23]OFD Sender: No OFD packet to send [14:14:28]OFD Sender: No OFD packet to send [14:14:33]OFD Sender: No OFD packet to send [14:14:38]OFD Sender: No OFD packet to send [14:14:43]OFD Sender: No OFD packet to send [14:14:48]OFD Sender: No OFD packet to send [14:14:53]OFD Sender: No OFD packet to send [14:14:58]OFD Sender: No OFD packet to send [14:15:03]OFD Sender: No OFD packet to send [14:15:08]OFD Sender: No OFD packet to send [14:15:13]OFD Sender: No OFD packet to send [14:15:18]OFD Sender: No OFD packet to send [14:15:23]OFD Sender: No OFD packet to send [14:15:28]OFD Sender: No OFD packet to send [14:15:33]OFD Sender: No OFD packet to send [14:15:38]OFD Sender: No OFD packet to send [14:15:43]OFD Sender: No OFD packet to send [14:15:48]OFD Sender: No OFD packet to send [14:15:53]OFD Sender: No OFD packet to send [14:15:58]OFD Sender: No OFD packet to send [14:16:03]OFD Sender: No OFD packet to send [14:16:08]OFD Sender: No OFD packet to send [14:16:13]OFD Sender: No OFD packet to send [14:16:18]OFD Sender: No OFD packet to send [14:16:23]OFD Sender: No OFD packet to send [14:16:28]OFD Sender: No OFD packet to send [14:16:33]OFD Sender: No OFD packet to send [14:16:38]OFD Sender: No OFD packet to send [14:16:43]OFD Sender: No OFD packet to send [14:16:48]OFD Sender: No OFD packet to send [14:16:53]OFD Sender: No OFD packet to send [14:16:58]OFD Sender: No OFD packet to send [14:17:03]OFD Sender: No OFD packet to send [14:17:08]OFD Sender: No OFD packet to send [14:17:13]OFD Sender: No OFD packet to send [14:17:18]OFD Sender: No OFD packet to send [14:17:23]OFD Sender: No OFD packet to send [14:17:28]OFD Sender: No OFD packet to send [14:17:33]OFD Sender: No OFD packet to send [14:17:38]OFD Sender: No OFD packet to send [14:17:43]OFD Sender: No OFD packet to send [14:17:48]OFD Sender: No OFD packet to send [14:17:53]OFD Sender: No OFD packet to send [14:17:58]OFD Sender: No OFD packet to send [14:18:03]OFD Sender: No OFD packet to send [14:18:08]OFD Sender: No OFD packet to send [14:18:13]OFD Sender: No OFD packet to send [14:18:18]OFD Sender: No OFD packet to send [14:18:23]OFD Sender: No OFD packet to send [14:18:28]OFD Sender: No OFD packet to send [14:18:33]OFD Sender: No OFD packet to send [14:18:38]OFD Sender: No OFD packet to send [14:18:43]OFD Sender: No OFD packet to send [14:18:48]OFD Sender: No OFD packet to send [14:18:48]accept exits with 8 [14:18:48]New connection [14:18:48]New thread 3066711396 created [14:18:48]Thread 3066854756 joined [14:18:48]Waiting for new connection... [14:18:48] Sock 8.Parse request [14:18:48]Sock 8.Check first char [14:18:48]Sock 8.First char is OK [14:18:48]request: POST /json_proto HTTP/1.0 [14:18:48]Method: POST [14:18:48]URL: /json_proto [14:18:48]Method is POST - this is cgi request [14:18:48]url: /json_proto [14:18:48]query_string will be loaded in cgi processing [14:18:48]execute_cgi json_proto POST (null) [14:18:48]execute_cgi path=json_proto method=POST [14:18:48]POST find Content-Length [14:18:48]Host: 172.17.56.4:8080 [14:18:48]Content-Length: 677 [14:18:48]Content-Type: application/json [14:18:48] [14:18:48]POST finish read [14:18:48]Found Content-Length = 677 [14:18:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459423", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:48]execute_script... [14:18:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459423", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:48]POST & json_proto [14:18:48]process_json_proto [14:18:48]json parsed OK: [14:18:48]protocol is kg_v1.0 [14:18:48]action value=close_receipt [14:18:48]process_action close_receipt [14:18:48]cmd_close_receipt [14:18:48]MH_GetDate [14:18:48]Write to MH i2c: F0 00 00 89 19 91 [14:18:48]Write i2c OK [14:18:48]MH_I2C_Read... [14:18:48]Read from MH i2c: F0 [14:18:48]MH_I2C_Read... [14:18:48]Read from MH i2c: F0 09 00 [14:18:48]MH_I2C_Read... [14:18:48]Read from MH i2c: F0 09 00 89 19 00 CA 2F 95 66 C9 DC B2 64 49 [14:18:48]GetLastDocTimeStamp 1721052741 [14:18:48]current date 1721053130 [14:18:48]FM_GetShiftState [14:18:48]SAM_PROTO_GetShiftState [14:18:48]wFMCommunicate request_size=4 [14:18:48]MH_SAM_APDU [14:18:48]CAPDU: 80 13 01 00 [14:18:48]Write to MH i2c: E2 08 00 8A 19 80 13 01 00 00 00 00 00 20 [14:18:48]Write i2c OK [14:18:48]MH_I2C_Read... [14:18:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:48]Read from MH i2c: E2 [14:18:48]MH_I2C_Read... [14:18:48]Read from MH i2c: E2 0E 00 [14:18:48]MH_I2C_Read... [14:18:48]Read from MH i2c: E2 0E 00 8A 19 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 F9 [14:18:48]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [14:18:48]wFMCommunicate OK [14:18:48]SAM_PROTO_GetShiftState done [14:18:48]FM_GetShiftState done [14:18:48]opened in 1721003876 [14:18:48]opened+sec_in_day 1721090276 [14:18:48]quantity*price = 50008 [14:18:48]sum+1 = 50009 [14:18:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 185 15.07.2024 14:18 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165312 ФПД: 273009947731609 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T141850&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165312&fm=273009947731609&tin=02508201610067®Number=0000000000090829&sum=50000 [14:18:49]StoreToDocumentArchive [14:18:49]shift 448 fd 165312 [14:18:49]save to /storage/0448/doc_00165312 [14:18:49]save last doc name /storage/0448/doc_00165312 to /storage/kkm_last_doc_name [14:18:49]save OK [14:18:49]Clear old archive folders... [14:18:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:18:49]tlvbuf is 01855510 [14:18:49]SAM_PROTO_ClearQueue [14:18:49]wFMCommunicate request_size=4 [14:18:49]MH_SAM_APDU [14:18:49]CAPDU: 80 09 00 00 [14:18:49]Write to MH i2c: E2 08 00 97 19 80 09 00 00 00 00 00 00 22 [14:18:49]Write i2c OK [14:18:49]MH_I2C_Read... [14:18:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:18:49]Read from MH i2c: E2 [14:18:49]MH_I2C_Read... [14:18:49]Read from MH i2c: E2 03 00 [14:18:49]MH_I2C_Read... [14:18:49]Read from MH i2c: E2 03 00 97 19 00 90 00 24 [14:18:49]RAPDU: 90 00 [14:18:49]wFMCommunicate OK [14:18:49]SAM_PROTO_ClearQueue done [14:18:49]KKMCreateOFDPacket [14:18:49]OFDProtocolAddRootSTLVToBuf [14:18:49]FM_MakeSignedData [14:18:49]FM_MakeSignedData [14:18:49]SAM_PROTO_SignData [14:18:49]wFMCommunicate request_size=4 [14:18:49]MH_SAM_APDU [14:18:49]CAPDU: 80 0D 01 02 [14:18:49]Write to MH i2c: E2 08 00 98 19 80 0D 01 02 00 00 00 00 2A [14:18:49]Write i2c OK [14:18:49]MH_I2C_Read... [14:18:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:18:49]Read from MH i2c: E2 [14:18:49]MH_I2C_Read... [14:18:49]Read from MH i2c: E2 03 00 [14:18:49]MH_I2C_Read... [14:18:49]Read from MH i2c: E2 03 00 98 19 00 90 00 25 [14:18:49]RAPDU: 90 00 [14:18:49]wFMCommunicate OK [14:18:49]wFMCommunicate request_size=255 [14:18:49]MH_SAM_APDU [14:18: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 CA 2F 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C0 85 02 00 35 04 06 00 F8 [14:18:49]Write to MH i2c: E2 02 01 99 19 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 CA 2F 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C0 85 02 00 35 04 06 00 F8 00 00 50 [14:18:50]Write i2c OK [14:18:50]MH_I2C_Read... [14:18:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:50]Read from MH i2c: E2 [14:18:50]MH_I2C_Read... [14:18:50]Read from MH i2c: E2 03 00 [14:18:50]MH_I2C_Read... [14:18:50]Read from MH i2c: E2 03 00 99 19 00 90 00 26 [14:18:50]RAPDU: 90 00 [14:18:50]wFMCommunicate OK [14:18:50]wFMCommunicate request_size=10 [14:18:50]MH_SAM_APDU [14:18:50]CAPDU: 80 0D 02 02 05 4D 14 F4 66 99 [14:18:50]Write to MH i2c: E2 0D 00 9A 19 80 0D 02 02 05 00 4D 14 F4 66 99 00 00 8B [14:18:50]Write i2c OK [14:18:50]MH_I2C_Read... [14:18:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:50]Read from MH i2c: E2 [14:18:50]MH_I2C_Read... [14:18:50]Read from MH i2c: E2 03 00 [14:18:50]MH_I2C_Read... [14:18:50]Read from MH i2c: E2 03 00 9A 19 00 90 00 27 [14:18:50]RAPDU: 90 00 [14:18:50]wFMCommunicate OK [14:18:50]wFMCommunicate request_size=4 [14:18:50]MH_SAM_APDU [14:18:50]CAPDU: 80 0D 03 02 [14:18:50]Write to MH i2c: E2 08 00 9B 19 80 0D 03 02 00 00 00 00 2F [14:18:50]Write i2c OK [14:18:50]MH_I2C_Read... [14:18:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:18:50]Read from MH i2c: E2 [14:18:50]MH_I2C_Read... [14:18:50]Read from MH i2c: E2 0B 00 [14:18:50]MH_I2C_Read... [14:18:50]Read from MH i2c: E2 0B 00 9B 19 00 77 89 E0 E5 F6 57 41 65 90 00 E8 [14:18:50]RAPDU: 77 89 E0 E5 F6 57 41 65 90 00 [14:18:50]wFMCommunicate OK [14:18:50]SAM_PROTO_SignData done [14:18:50]FM_MakeSignedData done [14:18:50]CreateOFDProtocolMessage [14:18:50]wFMCommunicate request_size=4 [14:18:50]MH_SAM_APDU [14:18:50]CAPDU: 80 11 00 00 [14:18:50]Write to MH i2c: E2 08 00 9C 19 80 11 00 00 00 00 00 00 2F [14:18:50]Write i2c OK [14:18:50]MH_I2C_Read... [14:18:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:50]Read from MH i2c: E2 [14:18:50]MH_I2C_Read... [14:18:50]Read from MH i2c: E2 17 00 [14:18:50]MH_I2C_Read... [14:18:50]Read from MH i2c: E2 17 00 9C 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 85 [14:18:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:18:50]wFMCommunicate OK [14:18:50]CreateOFDProtocolMessage done [14:18:50]OFDSenderStorePacket 165312 [14:18:50]StoreOFDPacket docnum=165312 [14:18:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 88 B2 07 01 45 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 CA 2F 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C0 85 02 00 35 04 06 00 F8 4D 14 F4 66 99 77 89 E0 E5 F6 57 41 65 [14:18:50]CheckFolder [14:18:50]dirname=/storage/ofd_packets [14:18:50]CheckFolder done [14:18:50]ProducePacketName [14:18:50]name=ofd_packets/00165312 [14:18:50]NVStorageSaveData ofd_packets/00165312 [14:18:50]File name is /storage/ofd_packets/00165312 [14:18:50]Write 301 bytes [14:18:50]NVStorageSaveData done [14:18:50]OFDSenderStorePacket done [14:18:50]KKMCreateOFDPacket done [14:18:50]NVStorageSaveData kkm_last_timestamp [14:18:50]File name is /storage/kkm_last_timestamp [14:18:50]Write 4 bytes [14:18:50]NVStorageSaveData done [14:18:50]ExternCall_PrintAddStr [14:18:50]wPrintStart [14:18:50]Write to MH i2c: 01 00 00 9D 19 B6 [14:18:50]Write i2c OK [14:18:50]MH_I2C_Read... [14:18:50]Read from MH i2c: 01 [14:18:50]MH_I2C_Read... [14:18:50]Read from MH i2c: 01 07 00 [14:18:50]MH_I2C_Read... [14:18:50]Read from MH i2c: 01 07 00 9D 19 00 00 00 00 00 FF 0F CB [14:18:50]RasterBufferAndPrint [14:18:50]line Счет N : (1)459423 [14:18:50]line ИНН: 02508201610067 [14:18:50]line Контрольно-Кассовый Чек [14:18:50]line ПРОДАЖА [14:18:50]line ТРК (МРК, ГНК) : 22 [14:18:50]line Товар: 2710124130 [14:18:50]line Аи-92-К-5 [14:18:50]line 7.600 * 65.80 [14:18:50]line = 500.08 [14:18:50]line НДС 12% НСП 1% [14:18:50]line > о реализуемом товаре [14:18:50]line ОКРУГЛЕНИЕ: -0.08 [14:18:50]line ИТОГО: 500.00 [14:18:50]line Внесено: 500.00 [14:18:50]line СДАЧА: 0.00 [14:18:50]line НСП 1% : 4.42 [14:18:50]line НДС 12% : 53.11 [14:18:50]line Наличными: 500.00 [14:18:50]line Безнал.: 0.00 [14:18:50]line Место: АЗС № 72 "Партнер Нефть" [14:18:50]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:18:50]line СНО: Общий режим [14:18:50]line Чек 185 15.07.2024 14:18 [14:18:50]line Смена: 448 ФФД: 1.0 [14:18:50]line ЗНМ: 0300000160 [14:18:50]line РНМ: 0000000000090829 [14:18:50]line Версия ККМ: 001 [14:18:50]line ФМ: 0000000000874718 [14:18:50]line ФД: 165312 [14:18:50]line ФПД: 273009947731609 [14:18:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T141850&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165312&fm=273009947731609&tin=02508201610067®Number=0000000000090829&sum=50000 [14:18:50]OFD Sender: Processing packet 165312 [packets to send 106, broken 105] [14:18:50]ProducePacketName [14:18:50]name=ofd_packets/00165312 [14:18:50]OFD Sender: To server: pG, [14:18:50]CommunicateWithHost lk.salyk.kg:30040 [14:18:50]ConnectInit lk.salyk.kg [14:18:50]written 0, free lines is 4095 [14:18:50]Connected sock=10 [14:18: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 37 31 38 0F 01 00 00 88 B2 07 01 45 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 CA 2F 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C0 85 02 00 35 04 06 00 F8 4D 14 F4 66 99 77 89 E0 E5 F6 57 41 65 [14:18:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 BD 24 47 00 C2 B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C0 85 02 00 F4 03 04 00 54 D6 94 66 B6 04 01 00 00 AF D8 00 BF 69 B1 34 A6 [14:18:51]CommunicateWithHost err = 0 [14:18:51]CheckOFDResponse [14:18:51]1017 (14) - 77093643461234 [14:18:51]1041 (16) - 0000000000874718 [14:18:51]1040 (4) - 165312 [14:18:51]1012 (4) - 15.07.2024 07:57 [14:18:51]1206 (1) - 0 [14:18:51]OFD Sender: Remove packet 165312 [14:18:51]ProducePacketName [14:18:51]name=ofd_packets/00165312 [14:18:51]NVStorageDeleteData [14:18:51]Write to MH i2c: 01 00 00 C7 19 E0 [14:18:51]Write i2c OK [14:18:51]MH_I2C_Read... [14:18:51]Read from MH i2c: 01 [14:18:51]MH_I2C_Read... [14:18:51]Read from MH i2c: 01 07 00 [14:18:51]MH_I2C_Read... [14:18:51]Read from MH i2c: 01 07 00 C7 19 00 00 00 00 00 F0 0C E3 [14:18:51]RasterBufferAndPrint [14:18:51]line [14:18:51]line [14:18:51]line [14:18:51]line [14:18:51]line [14:18:51]written 0, free lines is 3318 [14:18:51]MH_Cut [14:18:51]Write to MH i2c: D1 01 00 CE 19 01 B9 [14:18:51]Write i2c OK [14:18:51]MH_I2C_Read... [14:18:51]Read from MH i2c: D1 [14:18:51]MH_I2C_Read... [14:18:51]Read from MH i2c: D1 01 00 [14:18:51]MH_I2C_Read... [14:18:51]Read from MH i2c: D1 01 00 CE 19 00 B8 [14:18:51]Write to MH i2c: 01 00 00 CF 19 E8 [14:18:51]Write i2c OK [14:18:51]MH_I2C_Read... [14:18:51]OFD Sender: No OFD packet to send [14:18:51]*** Cut start [14:18:51]*** Partial cut [14:18:51]*** CUTSNS_PIN = 1 [14:18:51]*** CUTSNS_PIN = 0 [14:18:52]*** Brake cut motor [14:18:52]Read from MH i2c: 01 [14:18:52]MH_I2C_Read... [14:18:52]*** Stop cut motor [14:18:52]*** Cut end [14:18:52]Read from MH i2c: 01 07 00 [14:18:52]MH_I2C_Read... [14:18:52]Read from MH i2c: 01 07 00 CF 19 00 00 00 00 00 FF 0F FD [14:18:52]process_action close_receipt done [14:18:52]requested_data is exist [14:18:52]produce_requested_data [14:18:52]requested_item fm.sn is exist - process it [14:18:52]wFMCommunicate request_size=4 [14:18:52]MH_SAM_APDU [14:18:52]CAPDU: 80 11 00 00 [14:18:52]Write to MH i2c: E2 08 00 D0 19 80 11 00 00 00 00 00 00 63 [14:18:52]Write i2c OK [14:18:52]MH_I2C_Read... [14:18:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:52]Read from MH i2c: E2 [14:18:52]MH_I2C_Read... [14:18:52]Read from MH i2c: E2 17 00 [14:18:52]MH_I2C_Read... [14:18:52]Read from MH i2c: E2 17 00 D0 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B9 [14:18:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:18:52]wFMCommunicate OK [14:18:52]requested_item fd.num is exist - process it [14:18:52]SAM_PROTO_GetFieldsCounters [14:18:52]wFMCommunicate request_size=4 [14:18:52]MH_SAM_APDU [14:18:52]CAPDU: 80 13 00 00 [14:18:52]Write to MH i2c: E2 08 00 D1 19 80 13 00 00 00 00 00 00 66 [14:18:52]Write i2c OK [14:18:52]MH_I2C_Read... [14:18:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:18:52]Read from MH i2c: E2 [14:18:52]MH_I2C_Read... [14:18:52]Read from MH i2c: E2 62 00 [14:18:52]MH_I2C_Read... [14:18:52]Read from MH i2c: E2 62 00 D1 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C0 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [14:18: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C0 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:18:52]wFMCommunicate OK [14:18:52]SAM_PROTO_GetFieldsCounters done [14:18:52]requested_item shift.num is exist - process it [14:18:52]requested_item shift.opened is exist - process it [14:18:52]req_shift_opened [14:18:52]FM_GetShiftState [14:18:52]SAM_PROTO_GetShiftState [14:18:52]wFMCommunicate request_size=4 [14:18:52]MH_SAM_APDU [14:18:52]CAPDU: 80 13 01 00 [14:18:52]Write to MH i2c: E2 08 00 D2 19 80 13 01 00 00 00 00 00 68 [14:18:52]Write i2c OK [14:18:52]MH_I2C_Read... [14:18:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:52]Read from MH i2c: E2 [14:18:52]MH_I2C_Read... [14:18:52]Read from MH i2c: E2 0E 00 [14:18:52]MH_I2C_Read... [14:18:52]Read from MH i2c: E2 0E 00 D2 19 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 41 [14:18:52]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [14:18:52]wFMCommunicate OK [14:18:52]SAM_PROTO_GetShiftState done [14:18:52]FM_GetShiftState done [14:18:52]req_shift_opened done [14:18:52]requested_item shift.open_date is exist - process it [14:18:52]req_shift_open_date [14:18:52]req_shift_open_date done [14:18:52]produce_requested_data done [14:18:52]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165312,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [14:18:52]process_action_free close_receipt [14:18:52]json_value_free [14:18:52]json_value_free done [14:18:52]process_json_proto returns [14:18:52]Send response to host [14:18:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165312,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [14:18:52]free response buf [14:18:52]execute_script done [14:18:52]execute_script returns [14:18:52]free content buf [14:18:52]Sock 8.Close socket [14:18:52]Sock 8.Thread stoped [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]accept exits with 9 [14:20:41]New connection [14:20:41]New thread 3066854756 created [14:20:41]Thread 3066711396 joined [14:20:41]Waiting for new connection... [14:20:41] Sock 9.Parse request [14:20:41]Sock 9.Check first char [14:20:41]Sock 9.First char is OK [14:20:41]request: POST /json_proto HTTP/1.0 [14:20:41]Method: POST [14:20:41]URL: /json_proto [14:20:41]Method is POST - this is cgi request [14:20:41]url: /json_proto [14:20:41]query_string will be loaded in cgi processing [14:20:41]execute_cgi json_proto POST (null) [14:20:41]execute_cgi path=json_proto method=POST [14:20:41]POST find Content-Length [14:20:41]Host: 172.17.56.4:8080 [14:20:41]Content-Length: 677 [14:20:41]Content-Type: application/json [14:20:41] [14:20:41]POST finish read [14:20:41]Found Content-Length = 677 [14:20:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459424", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:20:41]execute_script... [14:20: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)459424", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:20:41]POST & json_proto [14:20:41]process_json_proto [14:20:41]json parsed OK: [14:20:41]protocol is kg_v1.0 [14:20:41]action value=close_receipt [14:20:41]process_action close_receipt [14:20:41]cmd_close_receipt [14:20:41]MH_GetDate [14:20:41]Write to MH i2c: F0 00 00 D3 19 DB [14:20:41]Write i2c OK [14:20:41]MH_I2C_Read... [14:20:41]Read from MH i2c: F0 [14:20:41]MH_I2C_Read... [14:20:41]Read from MH i2c: F0 09 00 [14:20:41]MH_I2C_Read... [14:20:41]Read from MH i2c: F0 09 00 D3 19 00 3A 30 95 66 C9 DC B2 64 04 [14:20:41]GetLastDocTimeStamp 1721053130 [14:20:41]current date 1721053242 [14:20:41]FM_GetShiftState [14:20:41]SAM_PROTO_GetShiftState [14:20:41]wFMCommunicate request_size=4 [14:20:41]MH_SAM_APDU [14:20:41]CAPDU: 80 13 01 00 [14:20:41]Write to MH i2c: E2 08 00 D4 19 80 13 01 00 00 00 00 00 6A [14:20:41]Write i2c OK [14:20:41]MH_I2C_Read... [14:20:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:41]Read from MH i2c: E2 [14:20:41]MH_I2C_Read... [14:20:41]Read from MH i2c: E2 0E 00 [14:20:41]MH_I2C_Read... [14:20:41]Read from MH i2c: E2 0E 00 D4 19 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 43 [14:20:41]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [14:20:41]wFMCommunicate OK [14:20:41]SAM_PROTO_GetShiftState done [14:20:41]FM_GetShiftState done [14:20:41]opened in 1721003876 [14:20:41]opened+sec_in_day 1721090276 [14:20:41]quantity*price = 30004 [14:20:41]sum+1 = 30006 [14:20:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 186 15.07.2024 14:20 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165313 ФПД: 161950957173468 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T142042&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165313&fm=161950957173468&tin=02508201610067®Number=0000000000090829&sum=30000 [14:20:42]StoreToDocumentArchive [14:20:42]shift 448 fd 165313 [14:20:42]save to /storage/0448/doc_00165313 [14:20:42]save last doc name /storage/0448/doc_00165313 to /storage/kkm_last_doc_name [14:20:42]save OK [14:20:42]Clear old archive folders... [14:20:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:20:42]tlvbuf is 0181A3A0 [14:20:42]SAM_PROTO_ClearQueue [14:20:42]wFMCommunicate request_size=4 [14:20:42]MH_SAM_APDU [14:20:42]CAPDU: 80 09 00 00 [14:20:42]Write to MH i2c: E2 08 00 E1 19 80 09 00 00 00 00 00 00 6C [14:20:42]Write i2c OK [14:20:42]MH_I2C_Read... [14:20:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:20:42]Read from MH i2c: E2 [14:20:42]MH_I2C_Read... [14:20:42]Read from MH i2c: E2 03 00 [14:20:42]MH_I2C_Read... [14:20:42]Read from MH i2c: E2 03 00 E1 19 00 90 00 6E [14:20:42]RAPDU: 90 00 [14:20:42]wFMCommunicate OK [14:20:42]SAM_PROTO_ClearQueue done [14:20:42]KKMCreateOFDPacket [14:20:42]OFDProtocolAddRootSTLVToBuf [14:20:42]FM_MakeSignedData [14:20:42]FM_MakeSignedData [14:20:42]SAM_PROTO_SignData [14:20:42]wFMCommunicate request_size=4 [14:20:42]MH_SAM_APDU [14:20:42]CAPDU: 80 0D 01 02 [14:20:42]Write to MH i2c: E2 08 00 E2 19 80 0D 01 02 00 00 00 00 74 [14:20:42]Write i2c OK [14:20:42]MH_I2C_Read... [14:20:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:20:42]Read from MH i2c: E2 [14:20:42]MH_I2C_Read... [14:20:42]Read from MH i2c: E2 03 00 [14:20:42]MH_I2C_Read... [14:20:42]Read from MH i2c: E2 03 00 E2 19 00 90 00 6F [14:20:42]RAPDU: 90 00 [14:20:42]wFMCommunicate OK [14:20:42]wFMCommunicate request_size=255 [14:20:42]MH_SAM_APDU [14:20: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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 3A 30 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C1 85 02 00 35 04 06 00 93 [14:20:42]Write to MH i2c: E2 02 01 E3 19 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 3A 30 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C1 85 02 00 35 04 06 00 93 00 00 69 [14:20:42]Write i2c OK [14:20:42]MH_I2C_Read... [14:20:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:43]Read from MH i2c: E2 [14:20:43]MH_I2C_Read... [14:20:43]Read from MH i2c: E2 03 00 [14:20:43]MH_I2C_Read... [14:20:43]Read from MH i2c: E2 03 00 E3 19 00 90 00 70 [14:20:43]RAPDU: 90 00 [14:20:43]wFMCommunicate OK [14:20:43]wFMCommunicate request_size=10 [14:20:43]MH_SAM_APDU [14:20:43]CAPDU: 80 0D 02 02 05 4B 25 45 FA DC [14:20:43]Write to MH i2c: E2 0D 00 E4 19 80 0D 02 02 05 00 4B 25 45 FA DC 00 00 0C [14:20:43]Write i2c OK [14:20:43]MH_I2C_Read... [14:20:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:43]Read from MH i2c: E2 [14:20:43]MH_I2C_Read... [14:20:43]Read from MH i2c: E2 03 00 [14:20:43]MH_I2C_Read... [14:20:43]Read from MH i2c: E2 03 00 E4 19 00 90 00 71 [14:20:43]RAPDU: 90 00 [14:20:43]wFMCommunicate OK [14:20:43]wFMCommunicate request_size=4 [14:20:43]MH_SAM_APDU [14:20:43]CAPDU: 80 0D 03 02 [14:20:43]Write to MH i2c: E2 08 00 E5 19 80 0D 03 02 00 00 00 00 79 [14:20:43]Write i2c OK [14:20:43]MH_I2C_Read... [14:20:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:20:43]Read from MH i2c: E2 [14:20:43]MH_I2C_Read... [14:20:43]Read from MH i2c: E2 0B 00 [14:20:43]MH_I2C_Read... [14:20:43]Read from MH i2c: E2 0B 00 E5 19 00 EF D3 CE 46 BC 94 28 37 90 00 FF [14:20:43]RAPDU: EF D3 CE 46 BC 94 28 37 90 00 [14:20:43]wFMCommunicate OK [14:20:43]SAM_PROTO_SignData done [14:20:43]FM_MakeSignedData done [14:20:43]CreateOFDProtocolMessage [14:20:43]wFMCommunicate request_size=4 [14:20:43]MH_SAM_APDU [14:20:43]CAPDU: 80 11 00 00 [14:20:43]Write to MH i2c: E2 08 00 E6 19 80 11 00 00 00 00 00 00 79 [14:20:43]Write i2c OK [14:20:43]MH_I2C_Read... [14:20:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:43]Read from MH i2c: E2 [14:20:43]MH_I2C_Read... [14:20:43]Read from MH i2c: E2 17 00 [14:20:43]MH_I2C_Read... [14:20:43]Read from MH i2c: E2 17 00 E6 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CF [14:20:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:20:43]wFMCommunicate OK [14:20:43]CreateOFDProtocolMessage done [14:20:43]OFDSenderStorePacket 165313 [14:20:43]StoreOFDPacket docnum=165313 [14:20:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D2 11 07 01 4F CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 3A 30 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C1 85 02 00 35 04 06 00 93 4B 25 45 FA DC EF D3 CE 46 BC 94 28 37 [14:20:43]CheckFolder [14:20:43]dirname=/storage/ofd_packets [14:20:43]CheckFolder done [14:20:43]ProducePacketName [14:20:43]name=ofd_packets/00165313 [14:20:43]NVStorageSaveData ofd_packets/00165313 [14:20:43]File name is /storage/ofd_packets/00165313 [14:20:43]Write 301 bytes [14:20:43]NVStorageSaveData done [14:20:43]OFDSenderStorePacket done [14:20:43]KKMCreateOFDPacket done [14:20:43]NVStorageSaveData kkm_last_timestamp [14:20:43]File name is /storage/kkm_last_timestamp [14:20:43]Write 4 bytes [14:20:43]NVStorageSaveData done [14:20:43]ExternCall_PrintAddStr [14:20:43]wPrintStart [14:20:43]Write to MH i2c: 01 00 00 E7 19 00 [14:20:43]Write i2c OK [14:20:43]MH_I2C_Read... [14:20:43]Read from MH i2c: 01 [14:20:43]MH_I2C_Read... [14:20:43]Read from MH i2c: 01 07 00 [14:20:43]MH_I2C_Read... [14:20:43]Read from MH i2c: 01 07 00 E7 19 00 00 00 00 00 FF 0F 15 [14:20:43]RasterBufferAndPrint [14:20:43]line Счет N : (1)459424 [14:20:43]line ИНН: 02508201610067 [14:20:43]line Контрольно-Кассовый Чек [14:20:43]line ПРОДАЖА [14:20:43]line ТРК (МРК, ГНК) : 12 [14:20:43]line Товар: 2710124130 [14:20:43]line Аи-92-К-5 [14:20:43]line 4.560 * 65.80 [14:20:43]line = 300.05 [14:20:43]line НДС 12% НСП 1% [14:20:43]line > о реализуемом товаре [14:20:43]line ОКРУГЛЕНИЕ: -0.05 [14:20:43]line ИТОГО: 300.00 [14:20:43]line Внесено: 300.00 [14:20:43]line СДАЧА: 0.00 [14:20:43]line НСП 1% : 2.65 [14:20:43]line НДС 12% : 31.86 [14:20:43]line Наличными: 300.00 [14:20:43]line Безнал.: 0.00 [14:20:43]line Место: АЗС № 72 "Партнер Нефть" [14:20:43]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:20:43]line СНО: Общий режим [14:20:43]line Чек 186 15.07.2024 14:20 [14:20:43]line Смена: 448 ФФД: 1.0 [14:20:43]line ЗНМ: 0300000160 [14:20:43]line РНМ: 0000000000090829 [14:20:43]line Версия ККМ: 001 [14:20:43]line ФМ: 0000000000874718 [14:20:43]line ФД: 165313 [14:20:43]line ФПД: 161950957173468 [14:20:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T142042&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165313&fm=161950957173468&tin=02508201610067®Number=0000000000090829&sum=30000 [14:20:43]written 0, free lines is 4095 [14:20:43]OFD Sender: Processing packet 165313 [packets to send 106, broken 105] [14:20:43]ProducePacketName [14:20:43]name=ofd_packets/00165313 [14:20:43]OFD Sender: To server: pG, [14:20:43]CommunicateWithHost lk.salyk.kg:30040 [14:20:43]ConnectInit lk.salyk.kg [14:20:43]Connected sock=10 [14:20: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 37 31 38 0F 01 00 00 D2 11 07 01 4F CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 3A 30 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C1 85 02 00 35 04 06 00 93 4B 25 45 FA DC EF D3 CE 46 BC 94 28 37 [14:20:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 0A 18 47 00 E9 DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 C1 85 02 00 F4 03 04 00 C5 D6 94 66 B6 04 01 00 00 E3 2F E3 19 6E C5 F8 CA [14:20:43]CommunicateWithHost err = 0 [14:20:43]CheckOFDResponse [14:20:43]1017 (14) - 77093643461234 [14:20:43]1041 (16) - 0000000000874718 [14:20:43]1040 (4) - 165313 [14:20:43]1012 (4) - 15.07.2024 07:59 [14:20:43]1206 (1) - 0 [14:20:43]OFD Sender: Remove packet 165313 [14:20:43]ProducePacketName [14:20:43]name=ofd_packets/00165313 [14:20:43]NVStorageDeleteData [14:20:43]Write to MH i2c: 01 00 00 11 1A 2B [14:20:43]Write i2c OK [14:20:43]MH_I2C_Read... [14:20:43]Read from MH i2c: 01 [14:20:43]MH_I2C_Read... [14:20:43]Read from MH i2c: 01 07 00 [14:20:43]MH_I2C_Read... [14:20:43]Read from MH i2c: 01 07 00 11 1A 00 00 00 00 00 F6 0C 34 [14:20:43]RasterBufferAndPrint [14:20:43]line [14:20:43]line [14:20:43]line [14:20:43]line [14:20:43]line [14:20:43]written 0, free lines is 3324 [14:20:43]MH_Cut [14:20:43]Write to MH i2c: D1 01 00 18 1A 01 04 [14:20:44]Write i2c OK [14:20:44]MH_I2C_Read... [14:20:44]Read from MH i2c: D1 [14:20:44]MH_I2C_Read... [14:20:44]Read from MH i2c: D1 01 00 [14:20:44]MH_I2C_Read... [14:20:44]Read from MH i2c: D1 01 00 18 1A 00 03 [14:20:44]Write to MH i2c: 01 00 00 19 1A 33 [14:20:44]Write i2c OK [14:20:44]MH_I2C_Read... [14:20:44]OFD Sender: No OFD packet to send [14:20:44]*** Cut start [14:20:44]*** Partial cut [14:20:44]*** CUTSNS_PIN = 1 [14:20:44]*** CUTSNS_PIN = 0 [14:20:44]*** Brake cut motor [14:20:45]Read from MH i2c: 01 [14:20:45]MH_I2C_Read... [14:20:45]*** Stop cut motor [14:20:45]*** Cut end [14:20:45]Read from MH i2c: 01 07 00 [14:20:45]MH_I2C_Read... [14:20:45]Read from MH i2c: 01 07 00 19 1A 00 00 00 00 00 FF 0F 48 [14:20:45]process_action close_receipt done [14:20:45]requested_data is exist [14:20:45]produce_requested_data [14:20:45]requested_item fm.sn is exist - process it [14:20:45]wFMCommunicate request_size=4 [14:20:45]MH_SAM_APDU [14:20:45]CAPDU: 80 11 00 00 [14:20:45]Write to MH i2c: E2 08 00 1A 1A 80 11 00 00 00 00 00 00 AE [14:20:45]Write i2c OK [14:20:45]MH_I2C_Read... [14:20:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:45]Read from MH i2c: E2 [14:20:45]MH_I2C_Read... [14:20:45]Read from MH i2c: E2 17 00 [14:20:45]MH_I2C_Read... [14:20:45]Read from MH i2c: E2 17 00 1A 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 04 [14:20:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:20:45]wFMCommunicate OK [14:20:45]requested_item fd.num is exist - process it [14:20:45]SAM_PROTO_GetFieldsCounters [14:20:45]wFMCommunicate request_size=4 [14:20:45]MH_SAM_APDU [14:20:45]CAPDU: 80 13 00 00 [14:20:45]Write to MH i2c: E2 08 00 1B 1A 80 13 00 00 00 00 00 00 B1 [14:20:45]Write i2c OK [14:20:45]MH_I2C_Read... [14:20:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:20:45]Read from MH i2c: E2 [14:20:45]MH_I2C_Read... [14:20:45]Read from MH i2c: E2 62 00 [14:20:45]MH_I2C_Read... [14:20:45]Read from MH i2c: E2 62 00 1B 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C1 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [14:20: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C1 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:20:45]wFMCommunicate OK [14:20:45]SAM_PROTO_GetFieldsCounters done [14:20:45]requested_item shift.num is exist - process it [14:20:45]requested_item shift.opened is exist - process it [14:20:45]req_shift_opened [14:20:45]FM_GetShiftState [14:20:45]SAM_PROTO_GetShiftState [14:20:45]wFMCommunicate request_size=4 [14:20:45]MH_SAM_APDU [14:20:45]CAPDU: 80 13 01 00 [14:20:45]Write to MH i2c: E2 08 00 1C 1A 80 13 01 00 00 00 00 00 B3 [14:20:45]Write i2c OK [14:20:45]MH_I2C_Read... [14:20:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:45]Read from MH i2c: E2 [14:20:45]MH_I2C_Read... [14:20:45]Read from MH i2c: E2 0E 00 [14:20:45]MH_I2C_Read... [14:20:45]Read from MH i2c: E2 0E 00 1C 1A 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 8C [14:20:45]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [14:20:45]wFMCommunicate OK [14:20:45]SAM_PROTO_GetShiftState done [14:20:45]FM_GetShiftState done [14:20:45]req_shift_opened done [14:20:45]requested_item shift.open_date is exist - process it [14:20:45]req_shift_open_date [14:20:45]req_shift_open_date done [14:20:45]produce_requested_data done [14:20:45]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165313,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [14:20:45]process_action_free close_receipt [14:20:45]json_value_free [14:20:45]json_value_free done [14:20:45]process_json_proto returns [14:20:45]Send response to host [14:20:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165313,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [14:20:45]free response buf [14:20:45]execute_script done [14:20:45]execute_script returns [14:20:45]free content buf [14:20:45]Sock 9.Close socket [14:20:45]Sock 9.Thread stoped [14:20:49]OFD Sender: No OFD packet to send [14:20:54]OFD Sender: No OFD packet to send [14:20:59]OFD Sender: No OFD packet to send [14:21:04]OFD Sender: No OFD packet to send [14:21:09]OFD Sender: No OFD packet to send [14:21:14]OFD Sender: No OFD packet to send [14:21:19]OFD Sender: No OFD packet to send [14:21:24]OFD Sender: No OFD packet to send [14:21:29]OFD Sender: No OFD packet to send [14:21:34]OFD Sender: No OFD packet to send [14:21:39]OFD Sender: No OFD packet to send [14:21:44]OFD Sender: No OFD packet to send [14:21:49]OFD Sender: No OFD packet to send [14:21:54]OFD Sender: No OFD packet to send [14:21:59]OFD Sender: No OFD packet to send [14:22:00]accept exits with 8 [14:22:00]New connection [14:22:00]New thread 3066711396 created [14:22:00]Thread 3066854756 joined [14:22:00]Waiting for new connection... [14:22:00] Sock 8.Parse request [14:22:00]Sock 8.Check first char [14:22:00]Sock 8.First char is OK [14:22:00]request: POST /json_proto HTTP/1.0 [14:22:00]Method: POST [14:22:00]URL: /json_proto [14:22:00]Method is POST - this is cgi request [14:22:00]url: /json_proto [14:22:00]query_string will be loaded in cgi processing [14:22:00]execute_cgi json_proto POST (null) [14:22:00]execute_cgi path=json_proto method=POST [14:22:00]POST find Content-Length [14:22:00]Host: 172.17.56.4:8080 [14:22:00]Content-Length: 682 [14:22:00]Content-Type: application/json [14:22:00] [14:22:00]POST finish read [14:22:00]Found Content-Length = 682 [14:22:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459425", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:22:00]execute_script... [14:22: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)459425", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:22:00]POST & json_proto [14:22:00]process_json_proto [14:22:00]json parsed OK: [14:22:00]protocol is kg_v1.0 [14:22:00]action value=close_receipt [14:22:00]process_action close_receipt [14:22:00]cmd_close_receipt [14:22:00]MH_GetDate [14:22:00]Write to MH i2c: F0 00 00 1D 1A 26 [14:22:00]Write i2c OK [14:22:00]MH_I2C_Read... [14:22:00]Read from MH i2c: F0 [14:22:00]MH_I2C_Read... [14:22:00]Read from MH i2c: F0 09 00 [14:22:00]MH_I2C_Read... [14:22:00]Read from MH i2c: F0 09 00 1D 1A 00 8A 30 95 66 C9 DC B2 64 9F [14:22:00]GetLastDocTimeStamp 1721053242 [14:22:00]current date 1721053322 [14:22:00]FM_GetShiftState [14:22:00]SAM_PROTO_GetShiftState [14:22:00]wFMCommunicate request_size=4 [14:22:00]MH_SAM_APDU [14:22:00]CAPDU: 80 13 01 00 [14:22:00]Write to MH i2c: E2 08 00 1E 1A 80 13 01 00 00 00 00 00 B5 [14:22:00]Write i2c OK [14:22:00]MH_I2C_Read... [14:22:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:00]Read from MH i2c: E2 [14:22:00]MH_I2C_Read... [14:22:00]Read from MH i2c: E2 0E 00 [14:22:00]MH_I2C_Read... [14:22:00]Read from MH i2c: E2 0E 00 1E 1A 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 8E [14:22:00]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [14:22:00]wFMCommunicate OK [14:22:00]SAM_PROTO_GetShiftState done [14:22:00]FM_GetShiftState done [14:22:00]opened in 1721003876 [14:22:00]opened+sec_in_day 1721090276 [14:22:00]quantity*price = 100016 [14:22:00]sum+1 = 100017 [14:22:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 187 15.07.2024 14:22 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165314 ФПД: 230746191041829 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T142202&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165314&fm=230746191041829&tin=02508201610067®Number=0000000000090829&sum=100000 [14:22:02]StoreToDocumentArchive [14:22:02]shift 448 fd 165314 [14:22:02]save to /storage/0448/doc_00165314 [14:22:02]save last doc name /storage/0448/doc_00165314 to /storage/kkm_last_doc_name [14:22:02]save OK [14:22:02]Clear old archive folders... [14:22:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:22:02]tlvbuf is 0181ADD0 [14:22:02]SAM_PROTO_ClearQueue [14:22:02]wFMCommunicate request_size=4 [14:22:02]MH_SAM_APDU [14:22:02]CAPDU: 80 09 00 00 [14:22:02]Write to MH i2c: E2 08 00 2B 1A 80 09 00 00 00 00 00 00 B7 [14:22:02]Write i2c OK [14:22:02]MH_I2C_Read... [14:22:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:22:02]Read from MH i2c: E2 [14:22:02]MH_I2C_Read... [14:22:02]Read from MH i2c: E2 03 00 [14:22:02]MH_I2C_Read... [14:22:02]Read from MH i2c: E2 03 00 2B 1A 00 90 00 B9 [14:22:02]RAPDU: 90 00 [14:22:02]wFMCommunicate OK [14:22:02]SAM_PROTO_ClearQueue done [14:22:02]KKMCreateOFDPacket [14:22:02]OFDProtocolAddRootSTLVToBuf [14:22:02]FM_MakeSignedData [14:22:02]FM_MakeSignedData [14:22:02]SAM_PROTO_SignData [14:22:02]wFMCommunicate request_size=4 [14:22:02]MH_SAM_APDU [14:22:02]CAPDU: 80 0D 01 02 [14:22:02]Write to MH i2c: E2 08 00 2C 1A 80 0D 01 02 00 00 00 00 BF [14:22:02]Write i2c OK [14:22:02]MH_I2C_Read... [14:22:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:22:02]Read from MH i2c: E2 [14:22:02]MH_I2C_Read... [14:22:02]Read from MH i2c: E2 03 00 [14:22:02]MH_I2C_Read... [14:22:02]Read from MH i2c: E2 03 00 2C 1A 00 90 00 BA [14:22:02]RAPDU: 90 00 [14:22:02]wFMCommunicate OK [14:22:02]wFMCommunicate request_size=255 [14:22:02]MH_SAM_APDU [14:22:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 8A 30 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C2 85 02 00 35 04 06 00 D1 [14:22:02]Write to MH i2c: E2 02 01 2D 1A 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 8A 30 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C2 85 02 00 35 04 06 00 D1 00 00 25 [14:22:02]Write i2c OK [14:22:02]MH_I2C_Read... [14:22:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:02]Read from MH i2c: E2 [14:22:02]MH_I2C_Read... [14:22:02]Read from MH i2c: E2 03 00 [14:22:02]MH_I2C_Read... [14:22:02]Read from MH i2c: E2 03 00 2D 1A 00 90 00 BB [14:22:02]RAPDU: 90 00 [14:22:02]wFMCommunicate OK [14:22:02]wFMCommunicate request_size=10 [14:22:02]MH_SAM_APDU [14:22:02]CAPDU: 80 0D 02 02 05 DC C8 C0 15 25 [14:22:02]Write to MH i2c: E2 0D 00 2E 1A 80 0D 02 02 05 00 DC C8 C0 15 25 00 00 6A [14:22:02]Write i2c OK [14:22:02]MH_I2C_Read... [14:22:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:02]Read from MH i2c: E2 [14:22:02]MH_I2C_Read... [14:22:02]Read from MH i2c: E2 03 00 [14:22:02]MH_I2C_Read... [14:22:02]Read from MH i2c: E2 03 00 2E 1A 00 90 00 BC [14:22:02]RAPDU: 90 00 [14:22:02]wFMCommunicate OK [14:22:02]wFMCommunicate request_size=4 [14:22:02]MH_SAM_APDU [14:22:02]CAPDU: 80 0D 03 02 [14:22:02]Write to MH i2c: E2 08 00 2F 1A 80 0D 03 02 00 00 00 00 C4 [14:22:02]Write i2c OK [14:22:02]MH_I2C_Read... [14:22:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:22:02]Read from MH i2c: E2 [14:22:02]MH_I2C_Read... [14:22:02]Read from MH i2c: E2 0B 00 [14:22:02]MH_I2C_Read... [14:22:02]Read from MH i2c: E2 0B 00 2F 1A 00 F5 F5 03 02 3B F4 B1 6B 90 00 FF [14:22:02]RAPDU: F5 F5 03 02 3B F4 B1 6B 90 00 [14:22:02]wFMCommunicate OK [14:22:02]SAM_PROTO_SignData done [14:22:02]FM_MakeSignedData done [14:22:02]CreateOFDProtocolMessage [14:22:02]wFMCommunicate request_size=4 [14:22:02]MH_SAM_APDU [14:22:02]CAPDU: 80 11 00 00 [14:22:02]Write to MH i2c: E2 08 00 30 1A 80 11 00 00 00 00 00 00 C4 [14:22:02]Write i2c OK [14:22:02]MH_I2C_Read... [14:22:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:02]Read from MH i2c: E2 [14:22:02]MH_I2C_Read... [14:22:02]Read from MH i2c: E2 17 00 [14:22:02]MH_I2C_Read... [14:22:02]Read from MH i2c: E2 17 00 30 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1A [14:22:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:22:02]wFMCommunicate OK [14:22:02]CreateOFDProtocolMessage done [14:22:02]OFDSenderStorePacket 165314 [14:22:02]StoreOFDPacket docnum=165314 [14:22:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C6 09 07 01 6C 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 8A 30 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C2 85 02 00 35 04 06 00 D1 DC C8 C0 15 25 F5 F5 03 02 3B F4 B1 6B [14:22:02]CheckFolder [14:22:02]dirname=/storage/ofd_packets [14:22:02]CheckFolder done [14:22:02]ProducePacketName [14:22:02]name=ofd_packets/00165314 [14:22:02]NVStorageSaveData ofd_packets/00165314 [14:22:02]File name is /storage/ofd_packets/00165314 [14:22:02]Write 301 bytes [14:22:02]NVStorageSaveData done [14:22:02]OFDSenderStorePacket done [14:22:02]KKMCreateOFDPacket done [14:22:02]NVStorageSaveData kkm_last_timestamp [14:22:02]File name is /storage/kkm_last_timestamp [14:22:02]Write 4 bytes [14:22:02]NVStorageSaveData done [14:22:02]ExternCall_PrintAddStr [14:22:02]wPrintStart [14:22:02]Write to MH i2c: 01 00 00 31 1A 4B [14:22:02]Write i2c OK [14:22:02]MH_I2C_Read... [14:22:02]Read from MH i2c: 01 [14:22:02]MH_I2C_Read... [14:22:02]Read from MH i2c: 01 07 00 [14:22:02]MH_I2C_Read... [14:22:02]Read from MH i2c: 01 07 00 31 1A 00 00 00 00 00 FF 0F 60 [14:22:02]RasterBufferAndPrint [14:22:02]line Счет N : (1)459425 [14:22:02]line ИНН: 02508201610067 [14:22:02]line Контрольно-Кассовый Чек [14:22:02]line ПРОДАЖА [14:22:02]line ТРК (МРК, ГНК) : 22 [14:22:02]line Товар: 2710124130 [14:22:02]line Аи-92-К-5 [14:22:02]line 15.200 * 65.80 [14:22:02]line = 1000.16 [14:22:02]line НДС 12% НСП 1% [14:22:02]line > о реализуемом товаре [14:22:02]line ОКРУГЛЕНИЕ: -0.16 [14:22:02]line ИТОГО: 1000.00 [14:22:02]line Внесено: 1000.00 [14:22:02]line СДАЧА: 0.00 [14:22:02]line НСП 1% : 8.85 [14:22:02]line НДС 12% : 106.21 [14:22:02]line Наличными: 1000.00 [14:22:02]line Безнал.: 0.00 [14:22:02]line Место: АЗС № 72 "Партнер Нефть" [14:22:02]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:22:02]line СНО: Общий режим [14:22:02]line Чек 187 15.07.2024 14:22 [14:22:02]line Смена: 448 ФФД: 1.0 [14:22:02]line ЗНМ: 0300000160 [14:22:02]line РНМ: 0000000000090829 [14:22:02]line Версия ККМ: 001 [14:22:02]line ФМ: 0000000000874718 [14:22:02]line ФД: 165314 [14:22:02]line ФПД: 230746191041829 [14:22:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T142202&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165314&fm=230746191041829&tin=02508201610067®Number=0000000000090829&sum=100000 [14:22:02]written 0, free lines is 4095 [14:22:02]OFD Sender: Processing packet 165314 [packets to send 106, broken 105] [14:22:02]ProducePacketName [14:22:02]name=ofd_packets/00165314 [14:22:02]OFD Sender: To server: pG, [14:22:02]CommunicateWithHost lk.salyk.kg:30040 [14:22:02]ConnectInit lk.salyk.kg [14:22:02]Connected sock=10 [14:22: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 37 31 38 0F 01 00 00 C6 09 07 01 6C 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 8A 30 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C2 85 02 00 35 04 06 00 D1 DC C8 C0 15 25 F5 F5 03 02 3B F4 B1 6B [14:22:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 FC 9A 47 00 03 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C2 85 02 00 F4 03 04 00 14 D7 94 66 B6 04 01 00 00 4C 69 16 50 A4 BB 21 2B [14:22:03]CommunicateWithHost err = 0 [14:22:03]CheckOFDResponse [14:22:03]1017 (14) - 77093643461234 [14:22:03]1041 (16) - 0000000000874718 [14:22:03]1040 (4) - 165314 [14:22:03]1012 (4) - 15.07.2024 08:00 [14:22:03]1206 (1) - 0 [14:22:03]OFD Sender: Remove packet 165314 [14:22:03]ProducePacketName [14:22:03]name=ofd_packets/00165314 [14:22:03]NVStorageDeleteData [14:22:03]Write to MH i2c: 01 00 00 5B 1A 75 [14:22:03]Write i2c OK [14:22:03]MH_I2C_Read... [14:22:03]Read from MH i2c: 01 [14:22:03]MH_I2C_Read... [14:22:03]Read from MH i2c: 01 07 00 [14:22:03]MH_I2C_Read... [14:22:03]Read from MH i2c: 01 07 00 5B 1A 00 00 00 00 00 F7 0C 7F [14:22:03]RasterBufferAndPrint [14:22:03]line [14:22:03]line [14:22:03]line [14:22:03]line [14:22:03]line [14:22:03]written 0, free lines is 3326 [14:22:03]MH_Cut [14:22:03]Write to MH i2c: D1 01 00 62 1A 01 4E [14:22:03]Write i2c OK [14:22:03]MH_I2C_Read... [14:22:03]Read from MH i2c: D1 [14:22:03]MH_I2C_Read... [14:22:03]Read from MH i2c: D1 01 00 [14:22:03]MH_I2C_Read... [14:22:03]Read from MH i2c: D1 01 00 62 1A 00 4D [14:22:03]Write to MH i2c: 01 00 00 63 1A 7D [14:22:03]Write i2c OK [14:22:03]MH_I2C_Read... [14:22:03]OFD Sender: No OFD packet to send [14:22:04]*** Cut start [14:22:04]*** Partial cut [14:22:04]*** CUTSNS_PIN = 1 [14:22:04]*** CUTSNS_PIN = 0 [14:22:04]*** Brake cut motor [14:22:04]Read from MH i2c: 01 [14:22:04]MH_I2C_Read... [14:22:04]*** Stop cut motor [14:22:04]*** Cut end [14:22:04]Read from MH i2c: 01 07 00 [14:22:04]MH_I2C_Read... [14:22:04]Read from MH i2c: 01 07 00 63 1A 00 00 00 00 00 FF 0F 92 [14:22:04]process_action close_receipt done [14:22:04]requested_data is exist [14:22:04]produce_requested_data [14:22:04]requested_item fm.sn is exist - process it [14:22:04]wFMCommunicate request_size=4 [14:22:04]MH_SAM_APDU [14:22:04]CAPDU: 80 11 00 00 [14:22:04]Write to MH i2c: E2 08 00 64 1A 80 11 00 00 00 00 00 00 F8 [14:22:04]Write i2c OK [14:22:04]MH_I2C_Read... [14:22:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:04]Read from MH i2c: E2 [14:22:04]MH_I2C_Read... [14:22:04]Read from MH i2c: E2 17 00 [14:22:04]MH_I2C_Read... [14:22:04]Read from MH i2c: E2 17 00 64 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4E [14:22:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:22:04]wFMCommunicate OK [14:22:04]requested_item fd.num is exist - process it [14:22:04]SAM_PROTO_GetFieldsCounters [14:22:04]wFMCommunicate request_size=4 [14:22:04]MH_SAM_APDU [14:22:04]CAPDU: 80 13 00 00 [14:22:04]Write to MH i2c: E2 08 00 65 1A 80 13 00 00 00 00 00 00 FB [14:22:04]Write i2c OK [14:22:04]MH_I2C_Read... [14:22:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:22:04]Read from MH i2c: E2 [14:22:04]MH_I2C_Read... [14:22:04]Read from MH i2c: E2 62 00 [14:22:04]MH_I2C_Read... [14:22:04]Read from MH i2c: E2 62 00 65 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C2 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 5D [14:22: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C2 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:22:04]wFMCommunicate OK [14:22:04]SAM_PROTO_GetFieldsCounters done [14:22:04]requested_item shift.num is exist - process it [14:22:04]requested_item shift.opened is exist - process it [14:22:04]req_shift_opened [14:22:04]FM_GetShiftState [14:22:04]SAM_PROTO_GetShiftState [14:22:04]wFMCommunicate request_size=4 [14:22:04]MH_SAM_APDU [14:22:04]CAPDU: 80 13 01 00 [14:22:04]Write to MH i2c: E2 08 00 66 1A 80 13 01 00 00 00 00 00 FD [14:22:04]Write i2c OK [14:22:04]MH_I2C_Read... [14:22:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:04]Read from MH i2c: E2 [14:22:04]MH_I2C_Read... [14:22:04]Read from MH i2c: E2 0E 00 [14:22:04]MH_I2C_Read... [14:22:04]Read from MH i2c: E2 0E 00 66 1A 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 D6 [14:22:04]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [14:22:04]wFMCommunicate OK [14:22:04]SAM_PROTO_GetShiftState done [14:22:04]FM_GetShiftState done [14:22:04]req_shift_opened done [14:22:04]requested_item shift.open_date is exist - process it [14:22:04]req_shift_open_date [14:22:04]req_shift_open_date done [14:22:04]produce_requested_data done [14:22:04]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165314,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [14:22:04]process_action_free close_receipt [14:22:04]json_value_free [14:22:04]json_value_free done [14:22:04]process_json_proto returns [14:22:04]Send response to host [14:22:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165314,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [14:22:04]free response buf [14:22:04]execute_script done [14:22:04]execute_script returns [14:22:04]free content buf [14:22:04]Sock 8.Close socket [14:22:04]Sock 8.Thread stoped [14:22:08]OFD Sender: No OFD packet to send [14:22:13]OFD Sender: No OFD packet to send [14:22:18]OFD Sender: No OFD packet to send [14:22:23]OFD Sender: No OFD packet to send [14:22:28]OFD Sender: No OFD packet to send [14:22:33]OFD Sender: No OFD packet to send [14:22:38]OFD Sender: No OFD packet to send [14:22:43]OFD Sender: No OFD packet to send [14:22:48]OFD Sender: No OFD packet to send [14:22:53]OFD Sender: No OFD packet to send [14:22:55]accept exits with 9 [14:22:55]New connection [14:22:55]New thread 3066854756 created [14:22:55]Thread 3066711396 joined [14:22:55]Waiting for new connection... [14:22:55] Sock 9.Parse request [14:22:55]Sock 9.Check first char [14:22:55]Sock 9.First char is OK [14:22:55]request: POST /json_proto HTTP/1.0 [14:22:55]Method: POST [14:22:55]URL: /json_proto [14:22:55]Method is POST - this is cgi request [14:22:55]url: /json_proto [14:22:55]query_string will be loaded in cgi processing [14:22:55]execute_cgi json_proto POST (null) [14:22:55]execute_cgi path=json_proto method=POST [14:22:55]POST find Content-Length [14:22:55]Host: 172.17.56.4:8080 [14:22:55]Content-Length: 677 [14:22:55]Content-Type: application/json [14:22:55] [14:22:55]POST finish read [14:22:55]Found Content-Length = 677 [14:22:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459426", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:22:55]execute_script... [14:22: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)459426", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:22:55]POST & json_proto [14:22:55]process_json_proto [14:22:55]json parsed OK: [14:22:55]protocol is kg_v1.0 [14:22:55]action value=close_receipt [14:22:55]process_action close_receipt [14:22:55]cmd_close_receipt [14:22:55]MH_GetDate [14:22:55]Write to MH i2c: F0 00 00 67 1A 70 [14:22:55]Write i2c OK [14:22:55]MH_I2C_Read... [14:22:55]Read from MH i2c: F0 [14:22:55]MH_I2C_Read... [14:22:55]Read from MH i2c: F0 09 00 [14:22:55]MH_I2C_Read... [14:22:55]Read from MH i2c: F0 09 00 67 1A 00 C0 30 95 66 C9 DC B2 64 1F [14:22:55]GetLastDocTimeStamp 1721053322 [14:22:55]current date 1721053376 [14:22:55]FM_GetShiftState [14:22:55]SAM_PROTO_GetShiftState [14:22:55]wFMCommunicate request_size=4 [14:22:55]MH_SAM_APDU [14:22:55]CAPDU: 80 13 01 00 [14:22:55]Write to MH i2c: E2 08 00 68 1A 80 13 01 00 00 00 00 00 FF [14:22:55]Write i2c OK [14:22:55]MH_I2C_Read... [14:22:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:55]Read from MH i2c: E2 [14:22:55]MH_I2C_Read... [14:22:55]Read from MH i2c: E2 0E 00 [14:22:55]MH_I2C_Read... [14:22:55]Read from MH i2c: E2 0E 00 68 1A 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 D8 [14:22:55]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [14:22:55]wFMCommunicate OK [14:22:55]SAM_PROTO_GetShiftState done [14:22:55]FM_GetShiftState done [14:22:55]opened in 1721003876 [14:22:55]opened+sec_in_day 1721090276 [14:22:55]quantity*price = 20003 [14:22:55]sum+1 = 20004 [14:22:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 188 15.07.2024 14:22 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165315 ФПД: 71454095918606 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T142256&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165315&fm=71454095918606&tin=02508201610067®Number=0000000000090829&sum=20000 [14:22:56]StoreToDocumentArchive [14:22:56]shift 448 fd 165315 [14:22:56]save to /storage/0448/doc_00165315 [14:22:56]save last doc name /storage/0448/doc_00165315 to /storage/kkm_last_doc_name [14:22:56]save OK [14:22:56]Clear old archive folders... [14:22:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:22:56]tlvbuf is 01850070 [14:22:56]SAM_PROTO_ClearQueue [14:22:56]wFMCommunicate request_size=4 [14:22:56]MH_SAM_APDU [14:22:56]CAPDU: 80 09 00 00 [14:22:56]Write to MH i2c: E2 08 00 75 1A 80 09 00 00 00 00 00 00 01 [14:22:56]Write i2c OK [14:22:56]MH_I2C_Read... [14:22:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:22:56]Read from MH i2c: E2 [14:22:56]MH_I2C_Read... [14:22:56]Read from MH i2c: E2 03 00 [14:22:56]MH_I2C_Read... [14:22:56]Read from MH i2c: E2 03 00 75 1A 00 90 00 03 [14:22:56]RAPDU: 90 00 [14:22:56]wFMCommunicate OK [14:22:56]SAM_PROTO_ClearQueue done [14:22:56]KKMCreateOFDPacket [14:22:56]OFDProtocolAddRootSTLVToBuf [14:22:56]FM_MakeSignedData [14:22:56]FM_MakeSignedData [14:22:56]SAM_PROTO_SignData [14:22:56]wFMCommunicate request_size=4 [14:22:56]MH_SAM_APDU [14:22:56]CAPDU: 80 0D 01 02 [14:22:56]Write to MH i2c: E2 08 00 76 1A 80 0D 01 02 00 00 00 00 09 [14:22:56]Write i2c OK [14:22:56]MH_I2C_Read... [14:22:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:22:56]Read from MH i2c: E2 [14:22:56]MH_I2C_Read... [14:22:56]Read from MH i2c: E2 03 00 [14:22:56]MH_I2C_Read... [14:22:56]Read from MH i2c: E2 03 00 76 1A 00 90 00 04 [14:22:56]RAPDU: 90 00 [14:22:56]wFMCommunicate OK [14:22:56]wFMCommunicate request_size=255 [14:22:56]MH_SAM_APDU [14:22: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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 C0 30 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C3 85 02 00 35 04 06 00 40 [14:22:56]Write to MH i2c: E2 02 01 77 1A 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 C0 30 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C3 85 02 00 35 04 06 00 40 00 00 15 [14:22:56]Write i2c OK [14:22:56]MH_I2C_Read... [14:22:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:56]Read from MH i2c: E2 [14:22:56]MH_I2C_Read... [14:22:56]Read from MH i2c: E2 03 00 [14:22:56]MH_I2C_Read... [14:22:56]Read from MH i2c: E2 03 00 77 1A 00 90 00 05 [14:22:56]RAPDU: 90 00 [14:22:56]wFMCommunicate OK [14:22:56]wFMCommunicate request_size=10 [14:22:56]MH_SAM_APDU [14:22:56]CAPDU: 80 0D 02 02 05 FC B4 01 46 0E [14:22:56]Write to MH i2c: E2 0D 00 78 1A 80 0D 02 02 05 00 FC B4 01 46 0E 00 00 1B [14:22:56]Write i2c OK [14:22:56]MH_I2C_Read... [14:22:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:56]Read from MH i2c: E2 [14:22:56]MH_I2C_Read... [14:22:56]Read from MH i2c: E2 03 00 [14:22:56]MH_I2C_Read... [14:22:56]Read from MH i2c: E2 03 00 78 1A 00 90 00 06 [14:22:56]RAPDU: 90 00 [14:22:56]wFMCommunicate OK [14:22:56]wFMCommunicate request_size=4 [14:22:56]MH_SAM_APDU [14:22:56]CAPDU: 80 0D 03 02 [14:22:56]Write to MH i2c: E2 08 00 79 1A 80 0D 03 02 00 00 00 00 0E [14:22:56]Write i2c OK [14:22:56]MH_I2C_Read... [14:22:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:22:56]Read from MH i2c: E2 [14:22:56]MH_I2C_Read... [14:22:56]Read from MH i2c: E2 0B 00 [14:22:56]MH_I2C_Read... [14:22:56]Read from MH i2c: E2 0B 00 79 1A 00 24 83 1C 23 14 DB 72 80 90 00 D6 [14:22:56]RAPDU: 24 83 1C 23 14 DB 72 80 90 00 [14:22:56]wFMCommunicate OK [14:22:56]SAM_PROTO_SignData done [14:22:56]FM_MakeSignedData done [14:22:56]CreateOFDProtocolMessage [14:22:56]wFMCommunicate request_size=4 [14:22:56]MH_SAM_APDU [14:22:56]CAPDU: 80 11 00 00 [14:22:56]Write to MH i2c: E2 08 00 7A 1A 80 11 00 00 00 00 00 00 0E [14:22:56]Write i2c OK [14:22:56]MH_I2C_Read... [14:22:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:56]Read from MH i2c: E2 [14:22:56]MH_I2C_Read... [14:22:56]Read from MH i2c: E2 17 00 [14:22:56]MH_I2C_Read... [14:22:56]Read from MH i2c: E2 17 00 7A 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 64 [14:22:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:22:56]wFMCommunicate OK [14:22:56]CreateOFDProtocolMessage done [14:22:56]OFDSenderStorePacket 165315 [14:22:56]StoreOFDPacket docnum=165315 [14:22:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C1 2C 07 01 A7 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 C0 30 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C3 85 02 00 35 04 06 00 40 FC B4 01 46 0E 24 83 1C 23 14 DB 72 80 [14:22:56]CheckFolder [14:22:56]dirname=/storage/ofd_packets [14:22:56]CheckFolder done [14:22:56]ProducePacketName [14:22:56]name=ofd_packets/00165315 [14:22:56]NVStorageSaveData ofd_packets/00165315 [14:22:56]File name is /storage/ofd_packets/00165315 [14:22:56]Write 301 bytes [14:22:56]NVStorageSaveData done [14:22:56]OFDSenderStorePacket done [14:22:56]KKMCreateOFDPacket done [14:22:56]NVStorageSaveData kkm_last_timestamp [14:22:56]File name is /storage/kkm_last_timestamp [14:22:56]Write 4 bytes [14:22:56]NVStorageSaveData done [14:22:56]ExternCall_PrintAddStr [14:22:56]wPrintStart [14:22:56]Write to MH i2c: 01 00 00 7B 1A 95 [14:22:56]Write i2c OK [14:22:56]MH_I2C_Read... [14:22:56]Read from MH i2c: 01 [14:22:56]MH_I2C_Read... [14:22:56]Read from MH i2c: 01 07 00 [14:22:56]MH_I2C_Read... [14:22:56]Read from MH i2c: 01 07 00 7B 1A 00 00 00 00 00 FF 0F AA [14:22:56]RasterBufferAndPrint [14:22:56]line Счет N : (1)459426 [14:22:56]line ИНН: 02508201610067 [14:22:56]line Контрольно-Кассовый Чек [14:22:56]line ПРОДАЖА [14:22:56]line ТРК (МРК, ГНК) : 12 [14:22:56]line Товар: 2710124130 [14:22:56]line Аи-92-К-5 [14:22:56]line 3.040 * 65.80 [14:22:56]line = 200.03 [14:22:56]line НДС 12% НСП 1% [14:22:56]line > о реализуемом товаре [14:22:56]line ОКРУГЛЕНИЕ: -0.03 [14:22:56]line ИТОГО: 200.00 [14:22:56]line Внесено: 200.00 [14:22:56]line СДАЧА: 0.00 [14:22:56]line НСП 1% : 1.77 [14:22:56]line НДС 12% : 21.24 [14:22:56]line Наличными: 200.00 [14:22:56]line Безнал.: 0.00 [14:22:56]line Место: АЗС № 72 "Партнер Нефть" [14:22:56]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:22:56]line СНО: Общий режим [14:22:56]line Чек 188 15.07.2024 14:22 [14:22:56]line Смена: 448 ФФД: 1.0 [14:22:56]line ЗНМ: 0300000160 [14:22:56]line РНМ: 0000000000090829 [14:22:56]line Версия ККМ: 001 [14:22:56]line ФМ: 0000000000874718 [14:22:56]line ФД: 165315 [14:22:57]line ФПД: 71454095918606 [14:22:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T142256&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165315&fm=71454095918606&tin=02508201610067®Number=0000000000090829&sum=20000 [14:22:57]OFD Sender: Processing packet 165315 [packets to send 106, broken 105] [14:22:57]ProducePacketName [14:22:57]name=ofd_packets/00165315 [14:22:57]OFD Sender: To server: pG, [14:22:57]CommunicateWithHost lk.salyk.kg:30040 [14:22:57]ConnectInit lk.salyk.kg [14:22:57]written 0, free lines is 4095 [14:22:57]Connected sock=10 [14:22: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 37 31 38 0F 01 00 00 C1 2C 07 01 A7 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 C0 30 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C3 85 02 00 35 04 06 00 40 FC B4 01 46 0E 24 83 1C 23 14 DB 72 80 [14:22:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 7C 15 47 00 A3 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C3 85 02 00 F4 03 04 00 4A D7 94 66 B6 04 01 00 00 65 53 9D 03 1E 8B 87 ED [14:22:57]CommunicateWithHost err = 0 [14:22:57]CheckOFDResponse [14:22:57]1017 (14) - 77093643461234 [14:22:57]1041 (16) - 0000000000874718 [14:22:57]1040 (4) - 165315 [14:22:57]1012 (4) - 15.07.2024 08:01 [14:22:57]1206 (1) - 0 [14:22:57]OFD Sender: Remove packet 165315 [14:22:57]ProducePacketName [14:22:57]name=ofd_packets/00165315 [14:22:57]NVStorageDeleteData [14:22:57]Write to MH i2c: 01 00 00 A5 1A BF [14:22:57]Write i2c OK [14:22:57]MH_I2C_Read... [14:22:57]Read from MH i2c: 01 [14:22:57]MH_I2C_Read... [14:22:57]Read from MH i2c: 01 07 00 [14:22:57]MH_I2C_Read... [14:22:57]Read from MH i2c: 01 07 00 A5 1A 00 00 00 00 00 FB 0C CD [14:22:57]RasterBufferAndPrint [14:22:57]line [14:22:57]line [14:22:57]line [14:22:57]line [14:22:57]line [14:22:57]written 0, free lines is 3329 [14:22:57]MH_Cut [14:22:57]Write to MH i2c: D1 01 00 AC 1A 01 98 [14:22:57]Write i2c OK [14:22:57]MH_I2C_Read... [14:22:57]Read from MH i2c: D1 [14:22:57]MH_I2C_Read... [14:22:57]Read from MH i2c: D1 01 00 [14:22:57]MH_I2C_Read... [14:22:57]Read from MH i2c: D1 01 00 AC 1A 00 97 [14:22:57]Write to MH i2c: 01 00 00 AD 1A C7 [14:22:57]Write i2c OK [14:22:57]MH_I2C_Read... [14:22:58]OFD Sender: No OFD packet to send [14:22:58]*** Cut start [14:22:58]*** Partial cut [14:22:58]*** CUTSNS_PIN = 1 [14:22:58]*** CUTSNS_PIN = 0 [14:22:58]*** Brake cut motor [14:22:58]Read from MH i2c: 01 [14:22:58]MH_I2C_Read... [14:22:58]*** Stop cut motor [14:22:58]*** Cut end [14:22:58]Read from MH i2c: 01 07 00 [14:22:58]MH_I2C_Read... [14:22:58]Read from MH i2c: 01 07 00 AD 1A 00 00 00 00 00 FF 0F DC [14:22:58]process_action close_receipt done [14:22:58]requested_data is exist [14:22:58]produce_requested_data [14:22:58]requested_item fm.sn is exist - process it [14:22:58]wFMCommunicate request_size=4 [14:22:58]MH_SAM_APDU [14:22:58]CAPDU: 80 11 00 00 [14:22:58]Write to MH i2c: E2 08 00 AE 1A 80 11 00 00 00 00 00 00 42 [14:22:58]Write i2c OK [14:22:58]MH_I2C_Read... [14:22:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:59]Read from MH i2c: E2 [14:22:59]MH_I2C_Read... [14:22:59]Read from MH i2c: E2 17 00 [14:22:59]MH_I2C_Read... [14:22:59]Read from MH i2c: E2 17 00 AE 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 98 [14:22:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:22:59]wFMCommunicate OK [14:22:59]requested_item fd.num is exist - process it [14:22:59]SAM_PROTO_GetFieldsCounters [14:22:59]wFMCommunicate request_size=4 [14:22:59]MH_SAM_APDU [14:22:59]CAPDU: 80 13 00 00 [14:22:59]Write to MH i2c: E2 08 00 AF 1A 80 13 00 00 00 00 00 00 45 [14:22:59]Write i2c OK [14:22:59]MH_I2C_Read... [14:22:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:22:59]Read from MH i2c: E2 [14:22:59]MH_I2C_Read... [14:22:59]Read from MH i2c: E2 62 00 [14:22:59]MH_I2C_Read... [14:22:59]Read from MH i2c: E2 62 00 AF 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C3 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [14:22: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C3 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:22:59]wFMCommunicate OK [14:22:59]SAM_PROTO_GetFieldsCounters done [14:22:59]requested_item shift.num is exist - process it [14:22:59]requested_item shift.opened is exist - process it [14:22:59]req_shift_opened [14:22:59]FM_GetShiftState [14:22:59]SAM_PROTO_GetShiftState [14:22:59]wFMCommunicate request_size=4 [14:22:59]MH_SAM_APDU [14:22:59]CAPDU: 80 13 01 00 [14:22:59]Write to MH i2c: E2 08 00 B0 1A 80 13 01 00 00 00 00 00 47 [14:22:59]Write i2c OK [14:22:59]MH_I2C_Read... [14:22:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:59]Read from MH i2c: E2 [14:22:59]MH_I2C_Read... [14:22:59]Read from MH i2c: E2 0E 00 [14:22:59]MH_I2C_Read... [14:22:59]Read from MH i2c: E2 0E 00 B0 1A 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 20 [14:22:59]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [14:22:59]wFMCommunicate OK [14:22:59]SAM_PROTO_GetShiftState done [14:22:59]FM_GetShiftState done [14:22:59]req_shift_opened done [14:22:59]requested_item shift.open_date is exist - process it [14:22:59]req_shift_open_date [14:22:59]req_shift_open_date done [14:22:59]produce_requested_data done [14:22:59]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165315,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [14:22:59]process_action_free close_receipt [14:22:59]json_value_free [14:22:59]json_value_free done [14:22:59]process_json_proto returns [14:22:59]Send response to host [14:22:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165315,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [14:22:59]free response buf [14:22:59]execute_script done [14:22:59]execute_script returns [14:22:59]free content buf [14:22:59]Sock 9.Close socket [14:22:59]Sock 9.Thread stoped [14:23:03]OFD Sender: No OFD packet to send [14:23:08]OFD Sender: No OFD packet to send [14:23:13]OFD Sender: No OFD packet to send [14:23:18]OFD Sender: No OFD packet to send [14:23:23]OFD Sender: No OFD packet to send [14:23:28]OFD Sender: No OFD packet to send [14:23:33]OFD Sender: No OFD packet to send [14:23:38]OFD Sender: No OFD packet to send [14:23:43]OFD Sender: No OFD packet to send [14:23:48]OFD Sender: No OFD packet to send [14:23:53]OFD Sender: No OFD packet to send [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:03]OFD Sender: No OFD packet to send [14:25:08]OFD Sender: No OFD packet to send [14:25:13]OFD Sender: No OFD packet to send [14:25:18]OFD Sender: No OFD packet to send [14:25:23]OFD Sender: No OFD packet to send [14:25:28]OFD Sender: No OFD packet to send [14:25:33]OFD Sender: No OFD packet to send [14:25:38]OFD Sender: No OFD packet to send [14:25:43]OFD Sender: No OFD packet to send [14:25:48]OFD Sender: No OFD packet to send [14:25:53]OFD Sender: No OFD packet to send [14:25:58]OFD Sender: No OFD packet to send [14:26:03]OFD Sender: No OFD packet to send [14:26:08]OFD Sender: No OFD packet to send [14:26:13]OFD Sender: No OFD packet to send [14:26:18]OFD Sender: No OFD packet to send [14:26:23]OFD Sender: No OFD packet to send [14:26:28]OFD Sender: No OFD packet to send [14:26:33]OFD Sender: No OFD packet to send [14:26:38]OFD Sender: No OFD packet to send [14:26:43]OFD Sender: No OFD packet to send [14:26:48]OFD Sender: No OFD packet to send [14:26:53]OFD Sender: No OFD packet to send [14:26:58]OFD Sender: No OFD packet to send [14:27:03]OFD Sender: No OFD packet to send [14:27:08]OFD Sender: No OFD packet to send [14:27:13]OFD Sender: No OFD packet to send [14:27:18]OFD Sender: No OFD packet to send [14:27:23]OFD Sender: No OFD packet to send [14:27:28]OFD Sender: No OFD packet to send [14:27:33]OFD Sender: No OFD packet to send [14:27:38]OFD Sender: No OFD packet to send [14:27:43]OFD Sender: No OFD packet to send [14:27:48]OFD Sender: No OFD packet to send [14:27:53]OFD Sender: No OFD packet to send [14:27:58]OFD Sender: No OFD packet to send [14:28:03]OFD Sender: No OFD packet to send [14:28:08]OFD Sender: No OFD packet to send [14:28:13]OFD Sender: No OFD packet to send [14:28:18]OFD Sender: No OFD packet to send [14:28:23]OFD Sender: No OFD packet to send [14:28:28]OFD Sender: No OFD packet to send [14:28:33]OFD Sender: No OFD packet to send [14:28:38]OFD Sender: No OFD packet to send [14:28:43]OFD Sender: No OFD packet to send [14:28:48]OFD Sender: No OFD packet to send [14:28:53]OFD Sender: No OFD packet to send [14:28:58]OFD Sender: No OFD packet to send [14:29:03]OFD Sender: No OFD packet to send [14:29:08]OFD Sender: No OFD packet to send [14:29:13]OFD Sender: No OFD packet to send [14:29:18]OFD Sender: No OFD packet to send [14:29:23]OFD Sender: No OFD packet to send [14:29:28]OFD Sender: No OFD packet to send [14:29:33]OFD Sender: No OFD packet to send [14:29:38]OFD Sender: No OFD packet to send [14:29:43]OFD Sender: No OFD packet to send [14:29:48]OFD Sender: No OFD packet to send [14:29:53]OFD Sender: No OFD packet to send [14:29:58]OFD Sender: No OFD packet to send [14:30:03]OFD Sender: No OFD packet to send [14:30:08]OFD Sender: No OFD packet to send [14:30:13]OFD Sender: No OFD packet to send [14:30:18]OFD Sender: No OFD packet to send [14:30:23]OFD Sender: No OFD packet to send [14:30:28]OFD Sender: No OFD packet to send [14:30:33]OFD Sender: No OFD packet to send [14:30:38]OFD Sender: No OFD packet to send [14:30:43]OFD Sender: No OFD packet to send [14:30:48]OFD Sender: No OFD packet to send [14:30:53]OFD Sender: No OFD packet to send [14:30:58]OFD Sender: No OFD packet to send [14:31:03]OFD Sender: No OFD packet to send [14:31:08]OFD Sender: No OFD packet to send [14:31:13]OFD Sender: No OFD packet to send [14:31:18]OFD Sender: No OFD packet to send [14:31:23]OFD Sender: No OFD packet to send [14:31:24]accept exits with 8 [14:31:24]New connection [14:31:24]New thread 3066711396 created [14:31:24]Thread 3066854756 joined [14:31:24]Waiting for new connection... [14:31:24] Sock 8.Parse request [14:31:24]Sock 8.Check first char [14:31:24]Sock 8.First char is OK [14:31:24]request: POST /json_proto HTTP/1.0 [14:31:24]Method: POST [14:31:24]URL: /json_proto [14:31:24]Method is POST - this is cgi request [14:31:24]url: /json_proto [14:31:24]query_string will be loaded in cgi processing [14:31:24]execute_cgi json_proto POST (null) [14:31:24]execute_cgi path=json_proto method=POST [14:31:24]POST find Content-Length [14:31:24]Host: 172.17.56.4:8080 [14:31:24]Content-Length: 677 [14:31:24]Content-Type: application/json [14:31:24] [14:31:24]POST finish read [14:31:24]Found Content-Length = 677 [14:31:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459427", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:24]execute_script... [14:31:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459427", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:24]POST & json_proto [14:31:24]process_json_proto [14:31:24]json parsed OK: [14:31:24]protocol is kg_v1.0 [14:31:24]action value=close_receipt [14:31:24]process_action close_receipt [14:31:24]cmd_close_receipt [14:31:24]MH_GetDate [14:31:24]Write to MH i2c: F0 00 00 B1 1A BA [14:31:24]Write i2c OK [14:31:24]MH_I2C_Read... [14:31:24]Read from MH i2c: F0 [14:31:24]MH_I2C_Read... [14:31:24]Read from MH i2c: F0 09 00 [14:31:24]MH_I2C_Read... [14:31:24]Read from MH i2c: F0 09 00 B1 1A 00 BE 32 95 66 C9 DC B2 64 69 [14:31:24]GetLastDocTimeStamp 1721053376 [14:31:24]current date 1721053886 [14:31:24]FM_GetShiftState [14:31:24]SAM_PROTO_GetShiftState [14:31:24]wFMCommunicate request_size=4 [14:31:24]MH_SAM_APDU [14:31:24]CAPDU: 80 13 01 00 [14:31:24]Write to MH i2c: E2 08 00 B2 1A 80 13 01 00 00 00 00 00 49 [14:31:24]Write i2c OK [14:31:24]MH_I2C_Read... [14:31:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:24]Read from MH i2c: E2 [14:31:24]MH_I2C_Read... [14:31:24]Read from MH i2c: E2 0E 00 [14:31:24]MH_I2C_Read... [14:31:24]Read from MH i2c: E2 0E 00 B2 1A 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 22 [14:31:24]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [14:31:24]wFMCommunicate OK [14:31:24]SAM_PROTO_GetShiftState done [14:31:24]FM_GetShiftState done [14:31:24]opened in 1721003876 [14:31:24]opened+sec_in_day 1721090276 [14:31:24]quantity*price = 40006 [14:31:24]sum+1 = 40007 [14:31:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 189 15.07.2024 14:31 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165316 ФПД: 273075509769490 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T143126&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165316&fm=273075509769490&tin=02508201610067®Number=0000000000090829&sum=40000 [14:31:25]StoreToDocumentArchive [14:31:25]shift 448 fd 165316 [14:31:25]save to /storage/0448/doc_00165316 [14:31:25]save last doc name /storage/0448/doc_00165316 to /storage/kkm_last_doc_name [14:31:25]save OK [14:31:25]Clear old archive folders... [14:31:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:31:25]tlvbuf is 0185D1B0 [14:31:25]SAM_PROTO_ClearQueue [14:31:25]wFMCommunicate request_size=4 [14:31:25]MH_SAM_APDU [14:31:25]CAPDU: 80 09 00 00 [14:31:25]Write to MH i2c: E2 08 00 BF 1A 80 09 00 00 00 00 00 00 4B [14:31:25]Write i2c OK [14:31:25]MH_I2C_Read... [14:31:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:31:25]Read from MH i2c: E2 [14:31:25]MH_I2C_Read... [14:31:25]Read from MH i2c: E2 03 00 [14:31:25]MH_I2C_Read... [14:31:25]Read from MH i2c: E2 03 00 BF 1A 00 90 00 4D [14:31:25]RAPDU: 90 00 [14:31:25]wFMCommunicate OK [14:31:25]SAM_PROTO_ClearQueue done [14:31:25]KKMCreateOFDPacket [14:31:25]OFDProtocolAddRootSTLVToBuf [14:31:25]FM_MakeSignedData [14:31:25]FM_MakeSignedData [14:31:25]SAM_PROTO_SignData [14:31:25]wFMCommunicate request_size=4 [14:31:25]MH_SAM_APDU [14:31:25]CAPDU: 80 0D 01 02 [14:31:25]Write to MH i2c: E2 08 00 C0 1A 80 0D 01 02 00 00 00 00 53 [14:31:25]Write i2c OK [14:31:25]MH_I2C_Read... [14:31:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:31:25]Read from MH i2c: E2 [14:31:25]MH_I2C_Read... [14:31:25]Read from MH i2c: E2 03 00 [14:31:25]MH_I2C_Read... [14:31:25]Read from MH i2c: E2 03 00 C0 1A 00 90 00 4E [14:31:25]RAPDU: 90 00 [14:31:25]wFMCommunicate OK [14:31:25]wFMCommunicate request_size=255 [14:31:25]MH_SAM_APDU [14:31:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 BE 32 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C4 85 02 00 35 04 06 00 F8 [14:31:25]Write to MH i2c: E2 02 01 C1 1A 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 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 BE 32 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C4 85 02 00 35 04 06 00 F8 00 00 58 [14:31:25]Write i2c OK [14:31:25]MH_I2C_Read... [14:31:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:26]Read from MH i2c: E2 [14:31:26]MH_I2C_Read... [14:31:26]Read from MH i2c: E2 03 00 [14:31:26]MH_I2C_Read... [14:31:26]Read from MH i2c: E2 03 00 C1 1A 00 90 00 4F [14:31:26]RAPDU: 90 00 [14:31:26]wFMCommunicate OK [14:31:26]wFMCommunicate request_size=10 [14:31:26]MH_SAM_APDU [14:31:26]CAPDU: 80 0D 02 02 05 5C 58 C1 B5 12 [14:31:26]Write to MH i2c: E2 0D 00 C2 1A 80 0D 02 02 05 00 5C 58 C1 B5 12 00 00 9C [14:31:26]Write i2c OK [14:31:26]MH_I2C_Read... [14:31:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:26]Read from MH i2c: E2 [14:31:26]MH_I2C_Read... [14:31:26]Read from MH i2c: E2 03 00 [14:31:26]MH_I2C_Read... [14:31:26]Read from MH i2c: E2 03 00 C2 1A 00 90 00 50 [14:31:26]RAPDU: 90 00 [14:31:26]wFMCommunicate OK [14:31:26]wFMCommunicate request_size=4 [14:31:26]MH_SAM_APDU [14:31:26]CAPDU: 80 0D 03 02 [14:31:26]Write to MH i2c: E2 08 00 C3 1A 80 0D 03 02 00 00 00 00 58 [14:31:26]Write i2c OK [14:31:26]MH_I2C_Read... [14:31:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:31:26]Read from MH i2c: E2 [14:31:26]MH_I2C_Read... [14:31:26]Read from MH i2c: E2 0B 00 [14:31:26]MH_I2C_Read... [14:31:26]Read from MH i2c: E2 0B 00 C3 1A 00 61 A8 60 CC 2B 85 BB 76 90 00 6F [14:31:26]RAPDU: 61 A8 60 CC 2B 85 BB 76 90 00 [14:31:26]wFMCommunicate OK [14:31:26]SAM_PROTO_SignData done [14:31:26]FM_MakeSignedData done [14:31:26]CreateOFDProtocolMessage [14:31:26]wFMCommunicate request_size=4 [14:31:26]MH_SAM_APDU [14:31:26]CAPDU: 80 11 00 00 [14:31:26]Write to MH i2c: E2 08 00 C4 1A 80 11 00 00 00 00 00 00 58 [14:31:26]Write i2c OK [14:31:26]MH_I2C_Read... [14:31:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:26]Read from MH i2c: E2 [14:31:26]MH_I2C_Read... [14:31:26]Read from MH i2c: E2 17 00 [14:31:26]MH_I2C_Read... [14:31:26]Read from MH i2c: E2 17 00 C4 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AE [14:31:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:31:26]wFMCommunicate OK [14:31:26]CreateOFDProtocolMessage done [14:31:26]OFDSenderStorePacket 165316 [14:31:26]StoreOFDPacket docnum=165316 [14:31:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D0 8C 07 01 D2 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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 BE 32 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C4 85 02 00 35 04 06 00 F8 5C 58 C1 B5 12 61 A8 60 CC 2B 85 BB 76 [14:31:26]CheckFolder [14:31:26]dirname=/storage/ofd_packets [14:31:26]CheckFolder done [14:31:26]ProducePacketName [14:31:26]name=ofd_packets/00165316 [14:31:26]NVStorageSaveData ofd_packets/00165316 [14:31:26]File name is /storage/ofd_packets/00165316 [14:31:26]Write 301 bytes [14:31:26]NVStorageSaveData done [14:31:26]OFDSenderStorePacket done [14:31:26]KKMCreateOFDPacket done [14:31:26]NVStorageSaveData kkm_last_timestamp [14:31:26]File name is /storage/kkm_last_timestamp [14:31:26]Write 4 bytes [14:31:26]NVStorageSaveData done [14:31:26]ExternCall_PrintAddStr [14:31:26]wPrintStart [14:31:26]Write to MH i2c: 01 00 00 C5 1A DF [14:31:26]OFD Sender: Processing packet 165316 [packets to send 106, broken 105] [14:31:26]ProducePacketName [14:31:26]name=ofd_packets/00165316 [14:31:26]OFD Sender: To server: pG, [14:31:26]CommunicateWithHost lk.salyk.kg:30040 [14:31:26]ConnectInit lk.salyk.kg [14:31:26]Write i2c OK [14:31:26]MH_I2C_Read... [14:31:26]Read from MH i2c: 01 [14:31:26]MH_I2C_Read... [14:31:26]Read from MH i2c: 01 07 00 [14:31:26]MH_I2C_Read... [14:31:26]Read from MH i2c: 01 07 00 C5 1A 00 00 00 00 00 FF 0F F4 [14:31:26]RasterBufferAndPrint [14:31:26]line Счет N : (1)459427 [14:31:26]line ИНН: 02508201610067 [14:31:26]line Контрольно-Кассовый Чек [14:31:26]line ПРОДАЖА [14:31:26]line ТРК (МРК, ГНК) : 22 [14:31:26]line Товар: 2710124130 [14:31:26]line Аи-92-К-5 [14:31:26]line 6.080 * 65.80 [14:31:26]line = 400.06 [14:31:26]line НДС 12% НСП 1% [14:31:26]line > о реализуемом товаре [14:31:26]line ОКРУГЛЕНИЕ: -0.06 [14:31:26]line ИТОГО: 400.00 [14:31:26]line Внесено: 400.00 [14:31:26]line СДАЧА: 0.00 [14:31:26]line НСП 1% : 3.54 [14:31:26]line НДС 12% : 42.48 [14:31:26]line Наличными: 400.00 [14:31:26]line Безнал.: 0.00 [14:31:26]line Место: АЗС № 72 "Партнер Нефть" [14:31:26]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:31:26]line СНО: Общий режим [14:31:26]line Чек 189 15.07.2024 14:31 [14:31:26]line Смена: 448 ФФД: 1.0 [14:31:26]line ЗНМ: 0300000160 [14:31:26]line РНМ: 0000000000090829 [14:31:26]line Версия ККМ: 001 [14:31:26]line ФМ: 0000000000874718 [14:31:26]line ФД: 165316 [14:31:26]line ФПД: 273075509769490 [14:31:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T143126&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165316&fm=273075509769490&tin=02508201610067®Number=0000000000090829&sum=40000 [14:31:26]Connected sock=10 [14:31:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D0 8C 07 01 D2 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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 BE 32 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C4 85 02 00 35 04 06 00 F8 5C 58 C1 B5 12 61 A8 60 CC 2B 85 BB 76 [14:31:26]written 0, free lines is 4095 [14:31:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 0E 07 47 00 AD 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C4 85 02 00 F4 03 04 00 48 D9 94 66 B6 04 01 00 00 30 31 64 9E F2 80 D8 96 [14:31:26]CommunicateWithHost err = 0 [14:31:26]CheckOFDResponse [14:31:26]1017 (14) - 77093643461234 [14:31:26]1041 (16) - 0000000000874718 [14:31:26]1040 (4) - 165316 [14:31:26]1012 (4) - 15.07.2024 08:09 [14:31:26]1206 (1) - 0 [14:31:26]OFD Sender: Remove packet 165316 [14:31:26]ProducePacketName [14:31:26]name=ofd_packets/00165316 [14:31:26]NVStorageDeleteData [14:31:27]Write to MH i2c: 01 00 00 EF 1A 09 [14:31:27]Write i2c OK [14:31:27]MH_I2C_Read... [14:31:27]Read from MH i2c: 01 [14:31:27]MH_I2C_Read... [14:31:27]Read from MH i2c: 01 07 00 [14:31:27]MH_I2C_Read... [14:31:27]Read from MH i2c: 01 07 00 EF 1A 00 00 00 00 00 F7 0C 13 [14:31:27]RasterBufferAndPrint [14:31:27]line [14:31:27]line [14:31:27]line [14:31:27]line [14:31:27]line [14:31:27]written 0, free lines is 3329 [14:31:27]MH_Cut [14:31:27]Write to MH i2c: D1 01 00 F6 1A 01 E2 [14:31:27]Write i2c OK [14:31:27]MH_I2C_Read... [14:31:27]Read from MH i2c: D1 [14:31:27]MH_I2C_Read... [14:31:27]Read from MH i2c: D1 01 00 [14:31:27]MH_I2C_Read... [14:31:27]Read from MH i2c: D1 01 00 F6 1A 00 E1 [14:31:27]Write to MH i2c: 01 00 00 F7 1A 11 [14:31:27]Write i2c OK [14:31:27]MH_I2C_Read... [14:31:27]OFD Sender: No OFD packet to send [14:31:27]*** Cut start [14:31:27]*** Partial cut [14:31:27]*** CUTSNS_PIN = 1 [14:31:27]*** CUTSNS_PIN = 0 [14:31:28]*** Brake cut motor [14:31:28]Read from MH i2c: 01 [14:31:28]MH_I2C_Read... [14:31:28]*** Stop cut motor [14:31:28]*** Cut end [14:31:28]Read from MH i2c: 01 07 00 [14:31:28]MH_I2C_Read... [14:31:28]Read from MH i2c: 01 07 00 F7 1A 00 00 00 00 00 FF 0F 26 [14:31:28]process_action close_receipt done [14:31:28]requested_data is exist [14:31:28]produce_requested_data [14:31:28]requested_item fm.sn is exist - process it [14:31:28]wFMCommunicate request_size=4 [14:31:28]MH_SAM_APDU [14:31:28]CAPDU: 80 11 00 00 [14:31:28]Write to MH i2c: E2 08 00 F8 1A 80 11 00 00 00 00 00 00 8C [14:31:28]Write i2c OK [14:31:28]MH_I2C_Read... [14:31:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:28]Read from MH i2c: E2 [14:31:28]MH_I2C_Read... [14:31:28]Read from MH i2c: E2 17 00 [14:31:28]MH_I2C_Read... [14:31:28]Read from MH i2c: E2 17 00 F8 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E2 [14:31:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:31:28]wFMCommunicate OK [14:31:28]requested_item fd.num is exist - process it [14:31:28]SAM_PROTO_GetFieldsCounters [14:31:28]wFMCommunicate request_size=4 [14:31:28]MH_SAM_APDU [14:31:28]CAPDU: 80 13 00 00 [14:31:28]Write to MH i2c: E2 08 00 F9 1A 80 13 00 00 00 00 00 00 8F [14:31:28]Write i2c OK [14:31:28]MH_I2C_Read... [14:31:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:31:28]Read from MH i2c: E2 [14:31:28]MH_I2C_Read... [14:31:28]Read from MH i2c: E2 62 00 [14:31:28]MH_I2C_Read... [14:31:28]Read from MH i2c: E2 62 00 F9 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C4 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [14:31:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C4 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:31:28]wFMCommunicate OK [14:31:28]SAM_PROTO_GetFieldsCounters done [14:31:28]requested_item shift.num is exist - process it [14:31:28]requested_item shift.opened is exist - process it [14:31:28]req_shift_opened [14:31:28]FM_GetShiftState [14:31:28]SAM_PROTO_GetShiftState [14:31:28]wFMCommunicate request_size=4 [14:31:28]MH_SAM_APDU [14:31:28]CAPDU: 80 13 01 00 [14:31:28]Write to MH i2c: E2 08 00 FA 1A 80 13 01 00 00 00 00 00 91 [14:31:28]Write i2c OK [14:31:28]MH_I2C_Read... [14:31:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:28]Read from MH i2c: E2 [14:31:28]MH_I2C_Read... [14:31:28]Read from MH i2c: E2 0E 00 [14:31:28]MH_I2C_Read... [14:31:28]Read from MH i2c: E2 0E 00 FA 1A 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 6A [14:31:28]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [14:31:28]wFMCommunicate OK [14:31:28]SAM_PROTO_GetShiftState done [14:31:28]FM_GetShiftState done [14:31:28]req_shift_opened done [14:31:28]requested_item shift.open_date is exist - process it [14:31:28]req_shift_open_date [14:31:28]req_shift_open_date done [14:31:28]produce_requested_data done [14:31:28]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165316,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [14:31:28]process_action_free close_receipt [14:31:28]json_value_free [14:31:28]json_value_free done [14:31:28]process_json_proto returns [14:31:28]Send response to host [14:31:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165316,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [14:31:28]free response buf [14:31:28]execute_script done [14:31:28]execute_script returns [14:31:28]free content buf [14:31:28]Sock 8.Close socket [14:31:28]Sock 8.Thread stoped [14:31:32]OFD Sender: No OFD packet to send [14:31:37]OFD Sender: No OFD packet to send [14:31:42]OFD Sender: No OFD packet to send [14:31:47]OFD Sender: No OFD packet to send [14:31:52]OFD Sender: No OFD packet to send [14:31:57]OFD Sender: No OFD packet to send [14:32:02]OFD Sender: No OFD packet to send [14:32:07]OFD Sender: No OFD packet to send [14:32:12]OFD Sender: No OFD packet to send [14:32:17]OFD Sender: No OFD packet to send [14:32:22]OFD Sender: No OFD packet to send [14:32:27]OFD Sender: No OFD packet to send [14:32:32]OFD Sender: No OFD packet to send [14:32:37]OFD Sender: No OFD packet to send [14:32:42]OFD Sender: No OFD packet to send [14:32:47]OFD Sender: No OFD packet to send [14:32:52]OFD Sender: No OFD packet to send [14:32:57]OFD Sender: No OFD packet to send [14:33:02]OFD Sender: No OFD packet to send [14:33:07]OFD Sender: No OFD packet to send [14:33:12]OFD Sender: No OFD packet to send [14:33:17]OFD Sender: No OFD packet to send [14:33:22]OFD Sender: No OFD packet to send [14:33:27]OFD Sender: No OFD packet to send [14:33:32]OFD Sender: No OFD packet to send [14:33:37]OFD Sender: No OFD packet to send [14:33:42]OFD Sender: No OFD packet to send [14:33:47]OFD Sender: No OFD packet to send [14:33:52]OFD Sender: No OFD packet to send [14:33:57]OFD Sender: No OFD packet to send [14:34:02]OFD Sender: No OFD packet to send [14:34:07]OFD Sender: No OFD packet to send [14:34:12]OFD Sender: No OFD packet to send [14:34:17]OFD Sender: No OFD packet to send [14:34:22]OFD Sender: No OFD packet to send [14:34:27]OFD Sender: No OFD packet to send [14:34:32]OFD Sender: No OFD packet to send [14:34:37]OFD Sender: No OFD packet to send [14:34:42]OFD Sender: No OFD packet to send [14:34:47]OFD Sender: No OFD packet to send [14:34:52]OFD Sender: No OFD packet to send [14:34:57]OFD Sender: No OFD packet to send [14:35:02]OFD Sender: No OFD packet to send [14:35:07]OFD Sender: No OFD packet to send [14:35:12]OFD Sender: No OFD packet to send [14:35:17]OFD Sender: No OFD packet to send [14:35:22]OFD Sender: No OFD packet to send [14:35:27]OFD Sender: No OFD packet to send [14:35:32]OFD Sender: No OFD packet to send [14:35:37]OFD Sender: No OFD packet to send [14:35:42]OFD Sender: No OFD packet to send [14:35:47]OFD Sender: No OFD packet to send [14:35:52]OFD Sender: No OFD packet to send [14:35:57]OFD Sender: No OFD packet to send [14:36:02]OFD Sender: No OFD packet to send [14:36:07]OFD Sender: No OFD packet to send [14:36:12]OFD Sender: No OFD packet to send [14:36:17]OFD Sender: No OFD packet to send [14:36:22]OFD Sender: No OFD packet to send [14:36:27]OFD Sender: No OFD packet to send [14:36:32]OFD Sender: No OFD packet to send [14:36:37]OFD Sender: No OFD packet to send [14:36:42]OFD Sender: No OFD packet to send [14:36:47]OFD Sender: No OFD packet to send [14:36:52]OFD Sender: No OFD packet to send [14:36:57]OFD Sender: No OFD packet to send [14:37:02]OFD Sender: No OFD packet to send [14:37:07]OFD Sender: No OFD packet to send [14:37:12]OFD Sender: No OFD packet to send [14:37:17]OFD Sender: No OFD packet to send [14:37:22]OFD Sender: No OFD packet to send [14:37:27]OFD Sender: No OFD packet to send [14:37:32]OFD Sender: No OFD packet to send [14:37:37]OFD Sender: No OFD packet to send [14:37:42]OFD Sender: No OFD packet to send [14:37:47]OFD Sender: No OFD packet to send [14:37:52]OFD Sender: No OFD packet to send [14:37:57]OFD Sender: No OFD packet to send [14:38:02]OFD Sender: No OFD packet to send [14:38:07]OFD Sender: No OFD packet to send [14:38:12]OFD Sender: No OFD packet to send [14:38:17]OFD Sender: No OFD packet to send [14:38:22]OFD Sender: No OFD packet to send [14:38:27]OFD Sender: No OFD packet to send [14:38:32]OFD Sender: No OFD packet to send [14:38:37]OFD Sender: No OFD packet to send [14:38:42]OFD Sender: No OFD packet to send [14:38:47]OFD Sender: No OFD packet to send [14:38:52]OFD Sender: No OFD packet to send [14:38:57]OFD Sender: No OFD packet to send [14:39:02]OFD Sender: No OFD packet to send [14:39:08]OFD Sender: No OFD packet to send [14:39:13]OFD Sender: No OFD packet to send [14:39:18]OFD Sender: No OFD packet to send [14:39:23]OFD Sender: No OFD packet to send [14:39:28]OFD Sender: No OFD packet to send [14:39:33]OFD Sender: No OFD packet to send [14:39:38]OFD Sender: No OFD packet to send [14:39:43]OFD Sender: No OFD packet to send [14:39:48]OFD Sender: No OFD packet to send [14:39:53]OFD Sender: No OFD packet to send [14:39:58]OFD Sender: No OFD packet to send [14:40:03]OFD Sender: No OFD packet to send [14:40:08]OFD Sender: No OFD packet to send [14:40:13]OFD Sender: No OFD packet to send [14:40:18]OFD Sender: No OFD packet to send [14:40:23]OFD Sender: No OFD packet to send [14:40:28]OFD Sender: No OFD packet to send [14:40:33]OFD Sender: No OFD packet to send [14:40:38]OFD Sender: No OFD packet to send [14:40:43]OFD Sender: No OFD packet to send [14:40:48]OFD Sender: No OFD packet to send [14:40:53]OFD Sender: No OFD packet to send [14:40:58]OFD Sender: No OFD packet to send [14:41:03]OFD Sender: No OFD packet to send [14:41:08]OFD Sender: No OFD packet to send [14:41:13]OFD Sender: No OFD packet to send [14:41:18]OFD Sender: No OFD packet to send [14:41:23]OFD Sender: No OFD packet to send [14:41:28]OFD Sender: No OFD packet to send [14:41:33]OFD Sender: No OFD packet to send [14:41:38]OFD Sender: No OFD packet to send [14:41:43]OFD Sender: No OFD packet to send [14:41:48]OFD Sender: No OFD packet to send [14:41:53]OFD Sender: No OFD packet to send [14:41:58]OFD Sender: No OFD packet to send [14:42:03]OFD Sender: No OFD packet to send [14:42:08]OFD Sender: No OFD packet to send [14:42:13]OFD Sender: No OFD packet to send [14:42:18]OFD Sender: No OFD packet to send [14:42:23]OFD Sender: No OFD packet to send [14:42:28]OFD Sender: No OFD packet to send [14:42:33]OFD Sender: No OFD packet to send [14:42:38]OFD Sender: No OFD packet to send [14:42:38]accept exits with 9 [14:42:38]New connection [14:42:38]New thread 3066854756 created [14:42:38]Thread 3066711396 joined [14:42:38]Waiting for new connection... [14:42:38] Sock 9.Parse request [14:42:38]Sock 9.Check first char [14:42:38]Sock 9.First char is OK [14:42:38]request: POST /json_proto HTTP/1.0 [14:42:38]Method: POST [14:42:38]URL: /json_proto [14:42:38]Method is POST - this is cgi request [14:42:38]url: /json_proto [14:42:38]query_string will be loaded in cgi processing [14:42:38]execute_cgi json_proto POST (null) [14:42:38]execute_cgi path=json_proto method=POST [14:42:38]POST find Content-Length [14:42:38]Host: 172.17.56.4:8080 [14:42:38]Content-Length: 677 [14:42:38]Content-Type: application/json [14:42:38] [14:42:38]POST finish read [14:42:38]Found Content-Length = 677 [14:42:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459428", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:38]execute_script... [14:42:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459428", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:38]POST & json_proto [14:42:38]process_json_proto [14:42:38]json parsed OK: [14:42:38]protocol is kg_v1.0 [14:42:38]action value=close_receipt [14:42:38]process_action close_receipt [14:42:38]cmd_close_receipt [14:42:38]MH_GetDate [14:42:38]Write to MH i2c: F0 00 00 FB 1A 04 [14:42:38]Write i2c OK [14:42:38]MH_I2C_Read... [14:42:38]Read from MH i2c: F0 [14:42:38]MH_I2C_Read... [14:42:38]Read from MH i2c: F0 09 00 [14:42:38]MH_I2C_Read... [14:42:38]Read from MH i2c: F0 09 00 FB 1A 00 5F 35 95 66 C9 DC B2 64 57 [14:42:38]GetLastDocTimeStamp 1721053886 [14:42:38]current date 1721054559 [14:42:38]FM_GetShiftState [14:42:38]SAM_PROTO_GetShiftState [14:42:38]wFMCommunicate request_size=4 [14:42:38]MH_SAM_APDU [14:42:38]CAPDU: 80 13 01 00 [14:42:38]Write to MH i2c: E2 08 00 FC 1A 80 13 01 00 00 00 00 00 93 [14:42:38]Write i2c OK [14:42:38]MH_I2C_Read... [14:42:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:38]Read from MH i2c: E2 [14:42:38]MH_I2C_Read... [14:42:38]Read from MH i2c: E2 0E 00 [14:42:38]MH_I2C_Read... [14:42:38]Read from MH i2c: E2 0E 00 FC 1A 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 6C [14:42:38]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [14:42:38]wFMCommunicate OK [14:42:38]SAM_PROTO_GetShiftState done [14:42:38]FM_GetShiftState done [14:42:38]opened in 1721003876 [14:42:38]opened+sec_in_day 1721090276 [14:42:38]quantity*price = 40006 [14:42:38]sum+1 = 40007 [14:42:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 190 15.07.2024 14:42 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165317 ФПД: 240184393694677 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T144239&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165317&fm=240184393694677&tin=02508201610067®Number=0000000000090829&sum=40000 [14:42:39]StoreToDocumentArchive [14:42:39]shift 448 fd 165317 [14:42:39]save to /storage/0448/doc_00165317 [14:42:39]save last doc name /storage/0448/doc_00165317 to /storage/kkm_last_doc_name [14:42:39]save OK [14:42:39]Clear old archive folders... [14:42:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:42:39]tlvbuf is B6EA93D0 [14:42:39]SAM_PROTO_ClearQueue [14:42:39]wFMCommunicate request_size=4 [14:42:39]MH_SAM_APDU [14:42:39]CAPDU: 80 09 00 00 [14:42:39]Write to MH i2c: E2 08 00 09 1B 80 09 00 00 00 00 00 00 96 [14:42:39]Write i2c OK [14:42:39]MH_I2C_Read... [14:42:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:42:39]Read from MH i2c: E2 [14:42:39]MH_I2C_Read... [14:42:39]Read from MH i2c: E2 03 00 [14:42:39]MH_I2C_Read... [14:42:39]Read from MH i2c: E2 03 00 09 1B 00 90 00 98 [14:42:39]RAPDU: 90 00 [14:42:39]wFMCommunicate OK [14:42:39]SAM_PROTO_ClearQueue done [14:42:39]KKMCreateOFDPacket [14:42:39]OFDProtocolAddRootSTLVToBuf [14:42:39]FM_MakeSignedData [14:42:39]FM_MakeSignedData [14:42:39]SAM_PROTO_SignData [14:42:39]wFMCommunicate request_size=4 [14:42:39]MH_SAM_APDU [14:42:39]CAPDU: 80 0D 01 02 [14:42:39]Write to MH i2c: E2 08 00 0A 1B 80 0D 01 02 00 00 00 00 9E [14:42:39]Write i2c OK [14:42:39]MH_I2C_Read... [14:42:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:42:39]Read from MH i2c: E2 [14:42:39]MH_I2C_Read... [14:42:39]Read from MH i2c: E2 03 00 [14:42:39]MH_I2C_Read... [14:42:39]Read from MH i2c: E2 03 00 0A 1B 00 90 00 99 [14:42:39]RAPDU: 90 00 [14:42:39]wFMCommunicate OK [14:42:39]wFMCommunicate request_size=255 [14:42:39]MH_SAM_APDU [14:42:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 5F 35 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C5 85 02 00 35 04 06 00 DA [14:42:39]Write to MH i2c: E2 02 01 0B 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 5F 35 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C5 85 02 00 35 04 06 00 DA 00 00 2B [14:42:39]Write i2c OK [14:42:39]MH_I2C_Read... [14:42:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:40]Read from MH i2c: E2 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: E2 03 00 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: E2 03 00 0B 1B 00 90 00 9A [14:42:40]RAPDU: 90 00 [14:42:40]wFMCommunicate OK [14:42:40]wFMCommunicate request_size=10 [14:42:40]MH_SAM_APDU [14:42:40]CAPDU: 80 0D 02 02 05 72 49 77 7D D5 [14:42:40]Write to MH i2c: E2 0D 00 0C 1B 80 0D 02 02 05 00 72 49 77 7D D5 00 00 2F [14:42:40]Write i2c OK [14:42:40]MH_I2C_Read... [14:42:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:40]Read from MH i2c: E2 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: E2 03 00 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: E2 03 00 0C 1B 00 90 00 9B [14:42:40]RAPDU: 90 00 [14:42:40]wFMCommunicate OK [14:42:40]wFMCommunicate request_size=4 [14:42:40]MH_SAM_APDU [14:42:40]CAPDU: 80 0D 03 02 [14:42:40]Write to MH i2c: E2 08 00 0D 1B 80 0D 03 02 00 00 00 00 A3 [14:42:40]Write i2c OK [14:42:40]MH_I2C_Read... [14:42:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:42:40]Read from MH i2c: E2 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: E2 0B 00 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: E2 0B 00 0D 1B 00 0D 35 70 E8 69 02 04 C0 90 00 6D [14:42:40]RAPDU: 0D 35 70 E8 69 02 04 C0 90 00 [14:42:40]wFMCommunicate OK [14:42:40]SAM_PROTO_SignData done [14:42:40]FM_MakeSignedData done [14:42:40]CreateOFDProtocolMessage [14:42:40]wFMCommunicate request_size=4 [14:42:40]MH_SAM_APDU [14:42:40]CAPDU: 80 11 00 00 [14:42:40]Write to MH i2c: E2 08 00 0E 1B 80 11 00 00 00 00 00 00 A3 [14:42:40]Write i2c OK [14:42:40]MH_I2C_Read... [14:42:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:40]Read from MH i2c: E2 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: E2 17 00 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: E2 17 00 0E 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F9 [14:42:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:42:40]wFMCommunicate OK [14:42:40]CreateOFDProtocolMessage done [14:42:40]OFDSenderStorePacket 165317 [14:42:40]StoreOFDPacket docnum=165317 [14:42:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 47 41 07 01 4B A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 5F 35 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C5 85 02 00 35 04 06 00 DA 72 49 77 7D D5 0D 35 70 E8 69 02 04 C0 [14:42:40]CheckFolder [14:42:40]dirname=/storage/ofd_packets [14:42:40]CheckFolder done [14:42:40]ProducePacketName [14:42:40]name=ofd_packets/00165317 [14:42:40]NVStorageSaveData ofd_packets/00165317 [14:42:40]File name is /storage/ofd_packets/00165317 [14:42:40]Write 301 bytes [14:42:40]NVStorageSaveData done [14:42:40]OFDSenderStorePacket done [14:42:40]KKMCreateOFDPacket done [14:42:40]NVStorageSaveData kkm_last_timestamp [14:42:40]File name is /storage/kkm_last_timestamp [14:42:40]Write 4 bytes [14:42:40]NVStorageSaveData done [14:42:40]ExternCall_PrintAddStr [14:42:40]wPrintStart [14:42:40]Write to MH i2c: 01 00 00 0F 1B 2A [14:42:40]Write i2c OK [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: 01 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: 01 07 00 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: 01 07 00 0F 1B 00 00 00 00 00 FF 0F 3F [14:42:40]RasterBufferAndPrint [14:42:40]line Счет N : (1)459428 [14:42:40]line ИНН: 02508201610067 [14:42:40]line Контрольно-Кассовый Чек [14:42:40]line ПРОДАЖА [14:42:40]line ТРК (МРК, ГНК) : 12 [14:42:40]line Товар: 2710124130 [14:42:40]line Аи-92-К-5 [14:42:40]line 6.080 * 65.80 [14:42:40]line = 400.06 [14:42:40]line НДС 12% НСП 1% [14:42:40]line > о реализуемом товаре [14:42:40]line ОКРУГЛЕНИЕ: -0.06 [14:42:40]line ИТОГО: 400.00 [14:42:40]line Внесено: 400.00 [14:42:40]line СДАЧА: 0.00 [14:42:40]line НСП 1% : 3.54 [14:42:40]line НДС 12% : 42.48 [14:42:40]line Наличными: 400.00 [14:42:40]line Безнал.: 0.00 [14:42:40]line Место: АЗС № 72 "Партнер Нефть" [14:42:40]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:42:40]line СНО: Общий режим [14:42:40]line Чек 190 15.07.2024 14:42 [14:42:40]line Смена: 448 ФФД: 1.0 [14:42:40]line ЗНМ: 0300000160 [14:42:40]line РНМ: 0000000000090829 [14:42:40]line Версия ККМ: 001 [14:42:40]line ФМ: 0000000000874718 [14:42:40]line ФД: 165317 [14:42:40]line ФПД: 240184393694677 [14:42:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T144239&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165317&fm=240184393694677&tin=02508201610067®Number=0000000000090829&sum=40000 [14:42:40]written 0, free lines is 4095 [14:42:40]OFD Sender: Processing packet 165317 [packets to send 106, broken 105] [14:42:40]ProducePacketName [14:42:40]name=ofd_packets/00165317 [14:42:40]OFD Sender: To server: pG, [14:42:40]CommunicateWithHost lk.salyk.kg:30040 [14:42:40]ConnectInit lk.salyk.kg [14:42:40]Connected sock=10 [14:42:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 47 41 07 01 4B A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 5F 35 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C5 85 02 00 35 04 06 00 DA 72 49 77 7D D5 0D 35 70 E8 69 02 04 C0 [14:42:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 21 DB 47 00 9D D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C5 85 02 00 F4 03 04 00 EA DB 94 66 B6 04 01 00 00 B1 0A 8E 4F 16 15 90 DF [14:42:40]CommunicateWithHost err = 0 [14:42:40]CheckOFDResponse [14:42:40]1017 (14) - 77093643461234 [14:42:40]1041 (16) - 0000000000874718 [14:42:40]1040 (4) - 165317 [14:42:40]1012 (4) - 15.07.2024 08:20 [14:42:40]1206 (1) - 0 [14:42:40]OFD Sender: Remove packet 165317 [14:42:40]ProducePacketName [14:42:40]name=ofd_packets/00165317 [14:42:40]NVStorageDeleteData [14:42:40]Write to MH i2c: 01 00 00 39 1B 54 [14:42:40]Write i2c OK [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: 01 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: 01 07 00 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: 01 07 00 39 1B 00 00 00 00 00 FA 0C 61 [14:42:40]RasterBufferAndPrint [14:42:40]line [14:42:40]line [14:42:40]line [14:42:40]line [14:42:40]line [14:42:40]written 0, free lines is 3328 [14:42:41]MH_Cut [14:42:41]Write to MH i2c: D1 01 00 40 1B 01 2D [14:42:41]Write i2c OK [14:42:41]MH_I2C_Read... [14:42:41]Read from MH i2c: D1 [14:42:41]MH_I2C_Read... [14:42:41]Read from MH i2c: D1 01 00 [14:42:41]MH_I2C_Read... [14:42:41]Read from MH i2c: D1 01 00 40 1B 00 2C [14:42:41]Write to MH i2c: 01 00 00 41 1B 5C [14:42:41]Write i2c OK [14:42:41]MH_I2C_Read... [14:42:41]OFD Sender: No OFD packet to send [14:42:41]*** Cut start [14:42:41]*** Partial cut [14:42:41]*** CUTSNS_PIN = 1 [14:42:41]*** CUTSNS_PIN = 0 [14:42:41]*** Brake cut motor [14:42:42]Read from MH i2c: 01 [14:42:42]MH_I2C_Read... [14:42:42]*** Stop cut motor [14:42:42]*** Cut end [14:42:42]Read from MH i2c: 01 07 00 [14:42:42]MH_I2C_Read... [14:42:42]Read from MH i2c: 01 07 00 41 1B 00 00 00 00 00 FF 0F 71 [14:42:42]process_action close_receipt done [14:42:42]requested_data is exist [14:42:42]produce_requested_data [14:42:42]requested_item fm.sn is exist - process it [14:42:42]wFMCommunicate request_size=4 [14:42:42]MH_SAM_APDU [14:42:42]CAPDU: 80 11 00 00 [14:42:42]Write to MH i2c: E2 08 00 42 1B 80 11 00 00 00 00 00 00 D7 [14:42:42]Write i2c OK [14:42:42]MH_I2C_Read... [14:42:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:42]Read from MH i2c: E2 [14:42:42]MH_I2C_Read... [14:42:42]Read from MH i2c: E2 17 00 [14:42:42]MH_I2C_Read... [14:42:42]Read from MH i2c: E2 17 00 42 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2D [14:42:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:42:42]wFMCommunicate OK [14:42:42]requested_item fd.num is exist - process it [14:42:42]SAM_PROTO_GetFieldsCounters [14:42:42]wFMCommunicate request_size=4 [14:42:42]MH_SAM_APDU [14:42:42]CAPDU: 80 13 00 00 [14:42:42]Write to MH i2c: E2 08 00 43 1B 80 13 00 00 00 00 00 00 DA [14:42:42]Write i2c OK [14:42:42]MH_I2C_Read... [14:42:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:42:42]Read from MH i2c: E2 [14:42:42]MH_I2C_Read... [14:42:42]Read from MH i2c: E2 62 00 [14:42:42]MH_I2C_Read... [14:42:42]Read from MH i2c: E2 62 00 43 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C5 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [14:42: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C5 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:42:42]wFMCommunicate OK [14:42:42]SAM_PROTO_GetFieldsCounters done [14:42:42]requested_item shift.num is exist - process it [14:42:42]requested_item shift.opened is exist - process it [14:42:42]req_shift_opened [14:42:42]FM_GetShiftState [14:42:42]SAM_PROTO_GetShiftState [14:42:42]wFMCommunicate request_size=4 [14:42:42]MH_SAM_APDU [14:42:42]CAPDU: 80 13 01 00 [14:42:42]Write to MH i2c: E2 08 00 44 1B 80 13 01 00 00 00 00 00 DC [14:42:42]Write i2c OK [14:42:42]MH_I2C_Read... [14:42:42]Read from MH i2c: E2 [14:42:42]MH_I2C_Read... [14:42:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:42]Read from MH i2c: E2 0E 00 [14:42:42]MH_I2C_Read... [14:42:42]Read from MH i2c: E2 0E 00 44 1B 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 B5 [14:42:42]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [14:42:42]wFMCommunicate OK [14:42:42]SAM_PROTO_GetShiftState done [14:42:42]FM_GetShiftState done [14:42:42]req_shift_opened done [14:42:42]requested_item shift.open_date is exist - process it [14:42:42]req_shift_open_date [14:42:42]req_shift_open_date done [14:42:42]produce_requested_data done [14:42:42]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165317,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [14:42:42]process_action_free close_receipt [14:42:42]json_value_free [14:42:42]json_value_free done [14:42:42]process_json_proto returns [14:42:42]Send response to host [14:42:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165317,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [14:42:42]free response buf [14:42:42]execute_script done [14:42:42]execute_script returns [14:42:42]free content buf [14:42:42]Sock 9.Close socket [14:42:42]Sock 9.Thread stoped [14:42:46]OFD Sender: No OFD packet to send [14:42:51]OFD Sender: No OFD packet to send [14:42:56]OFD Sender: No OFD packet to send [14:43:01]OFD Sender: No OFD packet to send [14:43:06]OFD Sender: No OFD packet to send [14:43:11]OFD Sender: No OFD packet to send [14:43:16]OFD Sender: No OFD packet to send [14:43:21]OFD Sender: No OFD packet to send [14:43:26]OFD Sender: No OFD packet to send [14:43:31]OFD Sender: No OFD packet to send [14:43:36]OFD Sender: No OFD packet to send [14:43:41]OFD Sender: No OFD packet to send [14:43:46]OFD Sender: No OFD packet to send [14:43:51]OFD Sender: No OFD packet to send [14:43:56]OFD Sender: No OFD packet to send [14:44:01]OFD Sender: No OFD packet to send [14:44:06]OFD Sender: No OFD packet to send [14:44:11]OFD Sender: No OFD packet to send [14:44:16]OFD Sender: No OFD packet to send [14:44:21]OFD Sender: No OFD packet to send [14:44:23]accept exits with 8 [14:44:23]New connection [14:44:23]New thread 3066711396 created [14:44:23]Thread 3066854756 joined [14:44:23]Waiting for new connection... [14:44:23] Sock 8.Parse request [14:44:23]Sock 8.Check first char [14:44:23]Sock 8.First char is OK [14:44:23]request: POST /json_proto HTTP/1.0 [14:44:23]Method: POST [14:44:23]URL: /json_proto [14:44:23]Method is POST - this is cgi request [14:44:23]url: /json_proto [14:44:23]query_string will be loaded in cgi processing [14:44:23]execute_cgi json_proto POST (null) [14:44:23]execute_cgi path=json_proto method=POST [14:44:23]POST find Content-Length [14:44:23]Host: 172.17.56.4:8080 [14:44:23]Content-Length: 788 [14:44:23]Content-Type: application/json [14:44:23] [14:44:23]POST finish read [14:44:23]Found Content-Length = 788 [14:44:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459429", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 10.000, "sum" : 712.60, "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 712.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:44:23]execute_script... [14:44:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459429", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 10.000, "sum" : 712.60, "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 712.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:44:23]POST & json_proto [14:44:23]process_json_proto [14:44:23]json parsed OK: [14:44:23]protocol is kg_v1.0 [14:44:23]action value=close_receipt [14:44:23]process_action close_receipt [14:44:23]cmd_close_receipt [14:44:23]MH_GetDate [14:44:23]Write to MH i2c: F0 00 00 45 1B 4F [14:44:23]Write i2c OK [14:44:23]MH_I2C_Read... [14:44:23]Read from MH i2c: F0 [14:44:23]MH_I2C_Read... [14:44:23]Read from MH i2c: F0 09 00 [14:44:23]MH_I2C_Read... [14:44:23]Read from MH i2c: F0 09 00 45 1B 00 C8 35 95 66 C9 DC B2 64 0B [14:44:23]GetLastDocTimeStamp 1721054559 [14:44:23]current date 1721054664 [14:44:23]FM_GetShiftState [14:44:23]SAM_PROTO_GetShiftState [14:44:23]wFMCommunicate request_size=4 [14:44:23]MH_SAM_APDU [14:44:23]CAPDU: 80 13 01 00 [14:44:23]Write to MH i2c: E2 08 00 46 1B 80 13 01 00 00 00 00 00 DE [14:44:23]Write i2c OK [14:44:23]MH_I2C_Read... [14:44:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:23]Read from MH i2c: E2 [14:44:23]MH_I2C_Read... [14:44:23]Read from MH i2c: E2 0E 00 [14:44:23]MH_I2C_Read... [14:44:23]Read from MH i2c: E2 0E 00 46 1B 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 B7 [14:44:23]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [14:44:23]wFMCommunicate OK [14:44:23]SAM_PROTO_GetShiftState done [14:44:23]FM_GetShiftState done [14:44:23]opened in 1721003876 [14:44:23]opened+sec_in_day 1721090276 [14:44:23]quantity*price = 71260 [14:44:23]sum+1 = 71261 [14:44:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 712.60 НСП 1% : 6.31 НДС 12% : 75.67 Наличными: 0.00 Безнал.: 712.60 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 191 15.07.2024 14:44 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 165318 ФПД: 70368144015141 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T144424&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165318&fm=70368144015141&tin=02508201610067®Number=0000000000090829&sum=71260 [14:44:24]StoreToDocumentArchive [14:44:24]shift 448 fd 165318 [14:44:24]save to /storage/0448/doc_00165318 [14:44:24]save last doc name /storage/0448/doc_00165318 to /storage/kkm_last_doc_name [14:44:24]save OK [14:44:24]Clear old archive folders... [14:44:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:44:24]tlvbuf is B6E90BC0 [14:44:24]SAM_PROTO_ClearQueue [14:44:24]wFMCommunicate request_size=4 [14:44:24]MH_SAM_APDU [14:44:24]CAPDU: 80 09 00 00 [14:44:24]Write to MH i2c: E2 08 00 53 1B 80 09 00 00 00 00 00 00 E0 [14:44:24]Write i2c OK [14:44:24]MH_I2C_Read... [14:44:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:44:24]Read from MH i2c: E2 [14:44:24]MH_I2C_Read... [14:44:24]Read from MH i2c: E2 03 00 [14:44:24]MH_I2C_Read... [14:44:24]Read from MH i2c: E2 03 00 53 1B 00 90 00 E2 [14:44:24]RAPDU: 90 00 [14:44:24]wFMCommunicate OK [14:44:24]SAM_PROTO_ClearQueue done [14:44:24]KKMCreateOFDPacket [14:44:24]OFDProtocolAddRootSTLVToBuf [14:44:24]FM_MakeSignedData [14:44:24]FM_MakeSignedData [14:44:24]SAM_PROTO_SignData [14:44:24]wFMCommunicate request_size=4 [14:44:24]MH_SAM_APDU [14:44:24]CAPDU: 80 0D 01 02 [14:44:24]Write to MH i2c: E2 08 00 54 1B 80 0D 01 02 00 00 00 00 E8 [14:44:24]Write i2c OK [14:44:24]MH_I2C_Read... [14:44:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:44:24]Read from MH i2c: E2 [14:44:24]MH_I2C_Read... [14:44:24]Read from MH i2c: E2 03 00 [14:44:24]MH_I2C_Read... [14:44:24]Read from MH i2c: E2 03 00 54 1B 00 90 00 E3 [14:44:24]RAPDU: 90 00 [14:44:24]wFMCommunicate OK [14:44:24]wFMCommunicate request_size=255 [14:44:24]MH_SAM_APDU [14:44:24]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 5C 16 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 16 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 16 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 C8 35 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C6 85 02 00 35 04 06 00 3F FF DC 3A [14:44:24]Write to MH i2c: E2 02 01 55 1B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 5C 16 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 16 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 16 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 C8 35 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C6 85 02 00 35 04 06 00 3F FF DC 3A 00 00 0A [14:44:24]Write i2c OK [14:44:24]MH_I2C_Read... [14:44:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:24]Read from MH i2c: E2 [14:44:24]MH_I2C_Read... [14:44:24]Read from MH i2c: E2 03 00 [14:44:24]MH_I2C_Read... [14:44:24]Read from MH i2c: E2 03 00 55 1B 00 90 00 E4 [14:44:24]RAPDU: 90 00 [14:44:24]wFMCommunicate OK [14:44:24]wFMCommunicate request_size=7 [14:44:24]MH_SAM_APDU [14:44:24]CAPDU: 80 0D 02 02 02 3F 25 [14:44:24]Write to MH i2c: E2 0A 00 56 1B 80 0D 02 02 02 00 3F 25 00 00 53 [14:44:24]Write i2c OK [14:44:24]MH_I2C_Read... [14:44:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:24]Read from MH i2c: E2 [14:44:24]MH_I2C_Read... [14:44:24]Read from MH i2c: E2 03 00 [14:44:24]MH_I2C_Read... [14:44:24]Read from MH i2c: E2 03 00 56 1B 00 90 00 E5 [14:44:24]RAPDU: 90 00 [14:44:24]wFMCommunicate OK [14:44:24]wFMCommunicate request_size=4 [14:44:24]MH_SAM_APDU [14:44:24]CAPDU: 80 0D 03 02 [14:44:24]Write to MH i2c: E2 08 00 57 1B 80 0D 03 02 00 00 00 00 ED [14:44:24]Write i2c OK [14:44:24]MH_I2C_Read... [14:44:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:44:24]Read from MH i2c: E2 [14:44:24]MH_I2C_Read... [14:44:24]Read from MH i2c: E2 0B 00 [14:44:24]MH_I2C_Read... [14:44:24]Read from MH i2c: E2 0B 00 57 1B 00 94 F4 27 69 A4 A0 84 36 90 00 04 [14:44:24]RAPDU: 94 F4 27 69 A4 A0 84 36 90 00 [14:44:24]wFMCommunicate OK [14:44:24]SAM_PROTO_SignData done [14:44:24]FM_MakeSignedData done [14:44:24]CreateOFDProtocolMessage [14:44:24]wFMCommunicate request_size=4 [14:44:24]MH_SAM_APDU [14:44:24]CAPDU: 80 11 00 00 [14:44:24]Write to MH i2c: E2 08 00 58 1B 80 11 00 00 00 00 00 00 ED [14:44:24]Write i2c OK [14:44:24]MH_I2C_Read... [14:44:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:44:24]Read from MH i2c: E2 [14:44:24]MH_I2C_Read... [14:44:24]Read from MH i2c: E2 17 00 [14:44:24]MH_I2C_Read... [14:44:24]Read from MH i2c: E2 17 00 58 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 43 [14:44:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:44:24]wFMCommunicate OK [14:44:24]CreateOFDProtocolMessage done [14:44:24]OFDSenderStorePacket 165318 [14:44:24]StoreOFDPacket docnum=165318 [14:44:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 EE F3 04 01 4F 70 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 5C 16 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 16 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 16 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 C8 35 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C6 85 02 00 35 04 06 00 3F FF DC 3A 3F 25 94 F4 27 69 A4 A0 84 36 [14:44:24]CheckFolder [14:44:24]dirname=/storage/ofd_packets [14:44:24]CheckFolder done [14:44:24]ProducePacketName [14:44:24]name=ofd_packets/00165318 [14:44:24]NVStorageSaveData ofd_packets/00165318 [14:44:24]File name is /storage/ofd_packets/00165318 [14:44:24]Write 298 bytes [14:44:24]NVStorageSaveData done [14:44:24]OFDSenderStorePacket done [14:44:24]KKMCreateOFDPacket done [14:44:24]NVStorageSaveData kkm_last_timestamp [14:44:24]File name is /storage/kkm_last_timestamp [14:44:24]Write 4 bytes [14:44:24]NVStorageSaveData done [14:44:24]ExternCall_PrintAddStr [14:44:24]wPrintStart [14:44:24]Write to MH i2c: 01 00 00 59 1B 74 [14:44:24]Write i2c OK [14:44:24]MH_I2C_Read... [14:44:24]Read from MH i2c: 01 [14:44:24]MH_I2C_Read... [14:44:24]Read from MH i2c: 01 07 00 [14:44:24]MH_I2C_Read... [14:44:24]Read from MH i2c: 01 07 00 59 1B 00 00 00 00 00 FF 0F 89 [14:44:24]RasterBufferAndPrint [14:44:24]line Счет N : (1)459429 [14:44:24]line ИНН: 02508201610067 [14:44:24]line Контрольно-Кассовый Чек [14:44:24]line ПРОДАЖА [14:44:24]line ТРК (МРК, ГНК) : 21 [14:44:24]line Товар: 2710194210 [14:44:24]line ДТ-К-5 [14:44:24]line 10.000 * 71.26 [14:44:24]line = 712.60 [14:44:24]line НДС 12% НСП 1% [14:44:24]line > о реализуемом товаре [14:44:24]line ИТОГО: 712.60 [14:44:24]line НСП 1% : 6.31 [14:44:24]line НДС 12% : 75.67 [14:44:24]line Наличными: 0.00 [14:44:24]line Безнал.: 712.60 [14:44:24]line Место: АЗС № 72 "Партнер Нефть" [14:44:24]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:44:24]line СНО: Общий режим [14:44:24]line Чек 191 15.07.2024 14:44 [14:44:24]line Смена: 448 ФФД: 1.0 [14:44:24]line ЗНМ: 0300000160 [14:44:24]line РНМ: 0000000000090829 [14:44:24]line Версия ККМ: 001 [14:44:24]line Платежная система: KICB Банк [14:44:24]line ФМ: 0000000000874718 [14:44:24]line ФД: 165318 [14:44:24]line ФПД: 70368144015141 [14:44:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T144424&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165318&fm=70368144015141&tin=02508201610067®Number=0000000000090829&sum=71260 [14:44:25]OFD Sender: Processing packet 165318 [packets to send 106, broken 105] [14:44:25]ProducePacketName [14:44:25]name=ofd_packets/00165318 [14:44:25]OFD Sender: To server: pG, [14:44:25]CommunicateWithHost lk.salyk.kg:30040 [14:44:25]ConnectInit lk.salyk.kg [14:44:25]written 0, free lines is 4095 [14:44:25]Connected sock=10 [14:44:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 EE F3 04 01 4F 70 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 5C 16 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 16 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 16 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 C8 35 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C6 85 02 00 35 04 06 00 3F FF DC 3A 3F 25 94 F4 27 69 A4 A0 84 36 [14:44:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 4B A9 47 00 C7 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C6 85 02 00 F4 03 04 00 52 DC 94 66 B6 04 01 00 00 8B 1F 38 B2 8E 27 9D 4C [14:44:25]CommunicateWithHost err = 0 [14:44:25]CheckOFDResponse [14:44:25]1017 (14) - 77093643461234 [14:44:25]1041 (16) - 0000000000874718 [14:44:25]1040 (4) - 165318 [14:44:25]1012 (4) - 15.07.2024 08:22 [14:44:25]1206 (1) - 0 [14:44:25]OFD Sender: Remove packet 165318 [14:44:25]ProducePacketName [14:44:25]name=ofd_packets/00165318 [14:44:25]NVStorageDeleteData [14:44:25]Write to MH i2c: 01 00 00 82 1B 9D [14:44:25]Write i2c OK [14:44:25]MH_I2C_Read... [14:44:25]Read from MH i2c: 01 [14:44:25]MH_I2C_Read... [14:44:25]Read from MH i2c: 01 07 00 [14:44:25]MH_I2C_Read... [14:44:25]Read from MH i2c: 01 07 00 82 1B 00 00 00 00 00 0C 0D BD [14:44:25]RasterBufferAndPrint [14:44:25]line [14:44:25]line [14:44:25]line [14:44:25]line [14:44:25]line [14:44:25]written 0, free lines is 3346 [14:44:25]MH_Cut [14:44:25]Write to MH i2c: D1 01 00 89 1B 01 76 [14:44:25]Write i2c OK [14:44:25]MH_I2C_Read... [14:44:25]Read from MH i2c: D1 [14:44:25]MH_I2C_Read... [14:44:25]Read from MH i2c: D1 01 00 [14:44:25]MH_I2C_Read... [14:44:25]Read from MH i2c: D1 01 00 89 1B 00 75 [14:44:25]Write to MH i2c: 01 00 00 8A 1B A5 [14:44:25]Write i2c OK [14:44:25]MH_I2C_Read... [14:44:25]OFD Sender: No OFD packet to send [14:44:26]*** Cut start [14:44:26]*** Partial cut [14:44:26]*** CUTSNS_PIN = 1 [14:44:26]*** CUTSNS_PIN = 0 [14:44:26]*** Brake cut motor [14:44:26]Read from MH i2c: 01 [14:44:26]MH_I2C_Read... [14:44:26]*** Stop cut motor [14:44:26]*** Cut end [14:44:26]Read from MH i2c: 01 07 00 [14:44:26]MH_I2C_Read... [14:44:26]Read from MH i2c: 01 07 00 8A 1B 00 00 00 00 00 FF 0F BA [14:44:26]process_action close_receipt done [14:44:26]requested_data is exist [14:44:26]produce_requested_data [14:44:26]requested_item fm.sn is exist - process it [14:44:26]wFMCommunicate request_size=4 [14:44:26]MH_SAM_APDU [14:44:26]CAPDU: 80 11 00 00 [14:44:26]Write to MH i2c: E2 08 00 8B 1B 80 11 00 00 00 00 00 00 20 [14:44:26]Write i2c OK [14:44:26]MH_I2C_Read... [14:44:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:44:26]Read from MH i2c: E2 [14:44:26]MH_I2C_Read... [14:44:26]Read from MH i2c: E2 17 00 [14:44:26]MH_I2C_Read... [14:44:26]Read from MH i2c: E2 17 00 8B 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 76 [14:44:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:44:26]wFMCommunicate OK [14:44:26]requested_item fd.num is exist - process it [14:44:26]SAM_PROTO_GetFieldsCounters [14:44:26]wFMCommunicate request_size=4 [14:44:26]MH_SAM_APDU [14:44:26]CAPDU: 80 13 00 00 [14:44:26]Write to MH i2c: E2 08 00 8C 1B 80 13 00 00 00 00 00 00 23 [14:44:26]Write i2c OK [14:44:26]MH_I2C_Read... [14:44:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:44:26]Read from MH i2c: E2 [14:44:26]MH_I2C_Read... [14:44:26]Read from MH i2c: E2 62 00 [14:44:26]MH_I2C_Read... [14:44:26]Read from MH i2c: E2 62 00 8C 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C6 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 95 [14:44:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C6 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:44:26]wFMCommunicate OK [14:44:26]SAM_PROTO_GetFieldsCounters done [14:44:26]requested_item shift.num is exist - process it [14:44:26]requested_item shift.opened is exist - process it [14:44:26]req_shift_opened [14:44:26]FM_GetShiftState [14:44:26]SAM_PROTO_GetShiftState [14:44:26]wFMCommunicate request_size=4 [14:44:26]MH_SAM_APDU [14:44:26]CAPDU: 80 13 01 00 [14:44:26]Write to MH i2c: E2 08 00 8D 1B 80 13 01 00 00 00 00 00 25 [14:44:26]Write i2c OK [14:44:26]MH_I2C_Read... [14:44:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:27]Read from MH i2c: E2 [14:44:27]MH_I2C_Read... [14:44:27]Read from MH i2c: E2 0E 00 [14:44:27]MH_I2C_Read... [14:44:27]Read from MH i2c: E2 0E 00 8D 1B 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 FE [14:44:27]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [14:44:27]wFMCommunicate OK [14:44:27]SAM_PROTO_GetShiftState done [14:44:27]FM_GetShiftState done [14:44:27]req_shift_opened done [14:44:27]requested_item shift.open_date is exist - process it [14:44:27]req_shift_open_date [14:44:27]req_shift_open_date done [14:44:27]produce_requested_data done [14:44:27]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165318,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [14:44:27]process_action_free close_receipt [14:44:27]json_value_free [14:44:27]json_value_free done [14:44:27]process_json_proto returns [14:44:27]Send response to host [14:44:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165318,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [14:44:27]free response buf [14:44:27]execute_script done [14:44:27]execute_script returns [14:44:27]free content buf [14:44:27]Sock 8.Close socket [14:44:27]Sock 8.Thread stoped [14:44:30]OFD Sender: No OFD packet to send [14:44:35]OFD Sender: No OFD packet to send [14:44:40]OFD Sender: No OFD packet to send [14:44:46]OFD Sender: No OFD packet to send [14:44:51]OFD Sender: No OFD packet to send [14:44:56]OFD Sender: No OFD packet to send [14:45:01]OFD Sender: No OFD packet to send [14:45:06]OFD Sender: No OFD packet to send [14:45:11]OFD Sender: No OFD packet to send [14:45:16]OFD Sender: No OFD packet to send [14:45:21]OFD Sender: No OFD packet to send [14:45:26]OFD Sender: No OFD packet to send [14:45:31]OFD Sender: No OFD packet to send [14:45:36]OFD Sender: No OFD packet to send [14:45:41]OFD Sender: No OFD packet to send [14:45:46]OFD Sender: No OFD packet to send [14:45:51]OFD Sender: No OFD packet to send [14:45:56]OFD Sender: No OFD packet to send [14:46:01]OFD Sender: No OFD packet to send [14:46:06]OFD Sender: No OFD packet to send [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:48:01]OFD Sender: No OFD packet to send [14:48:06]OFD Sender: No OFD packet to send [14:48:11]OFD Sender: No OFD packet to send [14:48:15]accept exits with 9 [14:48:15]New connection [14:48:15]New thread 3066854756 created [14:48:15]Thread 3066711396 joined [14:48:15]Waiting for new connection... [14:48:15] Sock 9.Parse request [14:48:15]Sock 9.Check first char [14:48:15]Sock 9.First char is OK [14:48:15]request: POST /json_proto HTTP/1.0 [14:48:15]Method: POST [14:48:15]URL: /json_proto [14:48:15]Method is POST - this is cgi request [14:48:15]url: /json_proto [14:48:15]query_string will be loaded in cgi processing [14:48:15]execute_cgi json_proto POST (null) [14:48:15]execute_cgi path=json_proto method=POST [14:48:15]POST find Content-Length [14:48:15]Host: 172.17.56.4:8080 [14:48:15]Content-Length: 790 [14:48:15]Content-Type: application/json [14:48:15] [14:48:15]POST finish read [14:48:15]Found Content-Length = 790 [14:48:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459431", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 3.060, "sum" : 199.57, "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 199.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:48:15]execute_script... [14:48:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459431", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 3.060, "sum" : 199.57, "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 199.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:48:15]POST & json_proto [14:48:15]process_json_proto [14:48:15]json parsed OK: [14:48:15]protocol is kg_v1.0 [14:48:15]action value=close_receipt [14:48:15]process_action close_receipt [14:48:15]cmd_close_receipt [14:48:15]MH_GetDate [14:48:15]Write to MH i2c: F0 00 00 8E 1B 98 [14:48:15]Write i2c OK [14:48:15]MH_I2C_Read... [14:48:15]Read from MH i2c: F0 [14:48:15]MH_I2C_Read... [14:48:15]Read from MH i2c: F0 09 00 [14:48:15]MH_I2C_Read... [14:48:15]Read from MH i2c: F0 09 00 8E 1B 00 B1 36 95 66 C9 DC B2 64 3E [14:48:15]GetLastDocTimeStamp 1721054664 [14:48:15]current date 1721054897 [14:48:15]FM_GetShiftState [14:48:15]SAM_PROTO_GetShiftState [14:48:15]wFMCommunicate request_size=4 [14:48:15]MH_SAM_APDU [14:48:15]CAPDU: 80 13 01 00 [14:48:15]Write to MH i2c: E2 08 00 8F 1B 80 13 01 00 00 00 00 00 27 [14:48:15]Write i2c OK [14:48:15]MH_I2C_Read... [14:48:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:15]Read from MH i2c: E2 [14:48:15]MH_I2C_Read... [14:48:15]Read from MH i2c: E2 0E 00 [14:48:15]MH_I2C_Read... [14:48:15]Read from MH i2c: E2 0E 00 8F 1B 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 00 [14:48:15]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [14:48:15]wFMCommunicate OK [14:48:15]SAM_PROTO_GetShiftState done [14:48:15]FM_GetShiftState done [14:48:15]opened in 1721003876 [14:48:15]opened+sec_in_day 1721090276 [14:48:15]quantity*price = 19957 [14:48:15]sum+1 = 19958 [14:48:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 199.57 НСП 1% : 1.77 НДС 12% : 21.19 Наличными: 0.00 Безнал.: 199.57 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 192 15.07.2024 14:48 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 165319 ФПД: 45867991535407 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T144817&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165319&fm=45867991535407&tin=02508201610067®Number=0000000000090829&sum=19957 [14:48:16]StoreToDocumentArchive [14:48:16]shift 448 fd 165319 [14:48:16]save to /storage/0448/doc_00165319 [14:48:16]save last doc name /storage/0448/doc_00165319 to /storage/kkm_last_doc_name [14:48:16]save OK [14:48:16]Clear old archive folders... [14:48:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:48:16]tlvbuf is 01811750 [14:48:16]SAM_PROTO_ClearQueue [14:48:16]wFMCommunicate request_size=4 [14:48:16]MH_SAM_APDU [14:48:16]CAPDU: 80 09 00 00 [14:48:16]Write to MH i2c: E2 08 00 9C 1B 80 09 00 00 00 00 00 00 29 [14:48:16]Write i2c OK [14:48:16]MH_I2C_Read... [14:48:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:48:16]Read from MH i2c: E2 [14:48:16]MH_I2C_Read... [14:48:16]Read from MH i2c: E2 03 00 [14:48:16]MH_I2C_Read... [14:48:16]Read from MH i2c: E2 03 00 9C 1B 00 90 00 2B [14:48:16]RAPDU: 90 00 [14:48:16]wFMCommunicate OK [14:48:16]SAM_PROTO_ClearQueue done [14:48:16]KKMCreateOFDPacket [14:48:16]OFDProtocolAddRootSTLVToBuf [14:48:16]FM_MakeSignedData [14:48:16]FM_MakeSignedData [14:48:16]SAM_PROTO_SignData [14:48:16]wFMCommunicate request_size=4 [14:48:16]MH_SAM_APDU [14:48:16]CAPDU: 80 0D 01 02 [14:48:16]Write to MH i2c: E2 08 00 9D 1B 80 0D 01 02 00 00 00 00 31 [14:48:16]Write i2c OK [14:48:16]MH_I2C_Read... [14:48:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:48:17]Read from MH i2c: E2 [14:48:17]MH_I2C_Read... [14:48:17]Read from MH i2c: E2 03 00 [14:48:17]MH_I2C_Read... [14:48:17]Read from MH i2c: E2 03 00 9D 1B 00 90 00 2C [14:48:17]RAPDU: 90 00 [14:48:17]wFMCommunicate OK [14:48:17]wFMCommunicate request_size=255 [14:48:17]MH_SAM_APDU [14:48: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 F4 0B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 F5 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F5 4D 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 47 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F5 4D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 B1 36 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C7 85 02 00 35 04 06 00 29 [14:48:17]Write to MH i2c: E2 02 01 9E 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 0B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 F5 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F5 4D 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 47 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F5 4D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 B1 36 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C7 85 02 00 35 04 06 00 29 00 00 73 [14:48:17]Write i2c OK [14:48:17]MH_I2C_Read... [14:48:17]Read from MH i2c: E2 [14:48:17]MH_I2C_Read... [14:48:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:17]Read from MH i2c: E2 03 00 [14:48:17]MH_I2C_Read... [14:48:17]Read from MH i2c: E2 03 00 9E 1B 00 90 00 2D [14:48:17]RAPDU: 90 00 [14:48:17]wFMCommunicate OK [14:48:17]wFMCommunicate request_size=10 [14:48:17]MH_SAM_APDU [14:48:17]CAPDU: 80 0D 02 02 05 B7 79 57 8F 2F [14:48:17]Write to MH i2c: E2 0D 00 9F 1B 80 0D 02 02 05 00 B7 79 57 8F 2F 00 00 83 [14:48:17]Write i2c OK [14:48:17]MH_I2C_Read... [14:48:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:17]Read from MH i2c: E2 [14:48:17]MH_I2C_Read... [14:48:17]Read from MH i2c: E2 03 00 [14:48:17]MH_I2C_Read... [14:48:17]Read from MH i2c: E2 03 00 9F 1B 00 90 00 2E [14:48:17]RAPDU: 90 00 [14:48:17]wFMCommunicate OK [14:48:17]wFMCommunicate request_size=4 [14:48:17]MH_SAM_APDU [14:48:17]CAPDU: 80 0D 03 02 [14:48:17]Write to MH i2c: E2 08 00 A0 1B 80 0D 03 02 00 00 00 00 36 [14:48:17]Write i2c OK [14:48:17]MH_I2C_Read... [14:48:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:48:17]Read from MH i2c: E2 [14:48:17]MH_I2C_Read... [14:48:17]Read from MH i2c: E2 0B 00 [14:48:17]MH_I2C_Read... [14:48:17]Read from MH i2c: E2 0B 00 A0 1B 00 A9 55 6F AD 38 12 F3 49 90 00 D7 [14:48:17]RAPDU: A9 55 6F AD 38 12 F3 49 90 00 [14:48:17]wFMCommunicate OK [14:48:17]SAM_PROTO_SignData done [14:48:17]FM_MakeSignedData done [14:48:17]CreateOFDProtocolMessage [14:48:17]wFMCommunicate request_size=4 [14:48:17]MH_SAM_APDU [14:48:17]CAPDU: 80 11 00 00 [14:48:17]Write to MH i2c: E2 08 00 A1 1B 80 11 00 00 00 00 00 00 36 [14:48:17]Write i2c OK [14:48:17]MH_I2C_Read... [14:48:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:17]Read from MH i2c: E2 [14:48:17]MH_I2C_Read... [14:48:17]Read from MH i2c: E2 17 00 [14:48:17]MH_I2C_Read... [14:48:17]Read from MH i2c: E2 17 00 A1 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8C [14:48:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:48:17]wFMCommunicate OK [14:48:17]CreateOFDProtocolMessage done [14:48:17]OFDSenderStorePacket 165319 [14:48:17]StoreOFDPacket docnum=165319 [14:48:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 16 45 07 01 3B 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 F4 0B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 F5 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F5 4D 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 47 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F5 4D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 B1 36 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C7 85 02 00 35 04 06 00 29 B7 79 57 8F 2F A9 55 6F AD 38 12 F3 49 [14:48:17]CheckFolder [14:48:17]dirname=/storage/ofd_packets [14:48:17]CheckFolder done [14:48:17]ProducePacketName [14:48:17]name=ofd_packets/00165319 [14:48:17]NVStorageSaveData ofd_packets/00165319 [14:48:17]File name is /storage/ofd_packets/00165319 [14:48:17]Write 301 bytes [14:48:17]NVStorageSaveData done [14:48:17]OFDSenderStorePacket done [14:48:17]KKMCreateOFDPacket done [14:48:17]NVStorageSaveData kkm_last_timestamp [14:48:17]File name is /storage/kkm_last_timestamp [14:48:17]Write 4 bytes [14:48:17]NVStorageSaveData done [14:48:17]ExternCall_PrintAddStr [14:48:17]wPrintStart [14:48:17]Write to MH i2c: 01 00 00 A2 1B BD [14:48:17]Write i2c OK [14:48:17]MH_I2C_Read... [14:48:17]Read from MH i2c: 01 [14:48:17]MH_I2C_Read... [14:48:17]Read from MH i2c: 01 07 00 [14:48:17]MH_I2C_Read... [14:48:17]Read from MH i2c: 01 07 00 A2 1B 00 00 00 00 00 FF 0F D2 [14:48:17]RasterBufferAndPrint [14:48:17]line Счет N : (1)459431 [14:48:17]line ИНН: 02508201610067 [14:48:17]line Контрольно-Кассовый Чек [14:48:17]line ПРОДАЖА [14:48:17]line ТРК (МРК, ГНК) : 22 [14:48:17]line Товар: 2710124130 [14:48:17]line Аи-92-К-5 [14:48:17]line 3.060 * 65.22 [14:48:17]line = 199.57 [14:48:17]line НДС 12% НСП 1% [14:48:17]line > о реализуемом товаре [14:48:17]line ИТОГО: 199.57 [14:48:17]line НСП 1% : 1.77 [14:48:17]line НДС 12% : 21.19 [14:48:17]line Наличными: 0.00 [14:48:17]line Безнал.: 199.57 [14:48:17]line Место: АЗС № 72 "Партнер Нефть" [14:48:17]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:48:17]line СНО: Общий режим [14:48:17]line Чек 192 15.07.2024 14:48 [14:48:17]line Смена: 448 ФФД: 1.0 [14:48:17]line ЗНМ: 0300000160 [14:48:17]line РНМ: 0000000000090829 [14:48:17]line Версия ККМ: 001 [14:48:17]line Платежная система: KICB Банк [14:48:17]line ФМ: 0000000000874718 [14:48:17]line ФД: 165319 [14:48:17]line ФПД: 45867991535407 [14:48:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T144817&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165319&fm=45867991535407&tin=02508201610067®Number=0000000000090829&sum=19957 [14:48:17]written 0, free lines is 4095 [14:48:17]OFD Sender: Processing packet 165319 [packets to send 106, broken 105] [14:48:17]ProducePacketName [14:48:17]name=ofd_packets/00165319 [14:48:17]OFD Sender: To server: pG, [14:48:17]CommunicateWithHost lk.salyk.kg:30040 [14:48:17]ConnectInit lk.salyk.kg [14:48:17]Connected sock=10 [14:48:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 16 45 07 01 3B 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 F4 0B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 F5 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F5 4D 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 47 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F5 4D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 B1 36 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C7 85 02 00 35 04 06 00 29 B7 79 57 8F 2F A9 55 6F AD 38 12 F3 49 [14:48:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 60 2E 47 00 2A 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C7 85 02 00 F4 03 04 00 3A DD 94 66 B6 04 01 00 00 09 D7 AD A6 4C C7 DE CB [14:48:17]CommunicateWithHost err = 0 [14:48:17]CheckOFDResponse [14:48:17]1017 (14) - 77093643461234 [14:48:17]1041 (16) - 0000000000874718 [14:48:17]1040 (4) - 165319 [14:48:17]1012 (4) - 15.07.2024 08:26 [14:48:17]1206 (1) - 0 [14:48:17]OFD Sender: Remove packet 165319 [14:48:17]ProducePacketName [14:48:17]name=ofd_packets/00165319 [14:48:17]NVStorageDeleteData [14:48:17]Write to MH i2c: 01 00 00 CB 1B E6 [14:48:17]Write i2c OK [14:48:17]MH_I2C_Read... [14:48:17]Read from MH i2c: 01 [14:48:17]MH_I2C_Read... [14:48:17]Read from MH i2c: 01 07 00 [14:48:17]MH_I2C_Read... [14:48:17]Read from MH i2c: 01 07 00 CB 1B 00 00 00 00 00 0C 0D 06 [14:48:17]RasterBufferAndPrint [14:48:17]line [14:48:17]line [14:48:17]line [14:48:17]line [14:48:17]line [14:48:17]written 0, free lines is 3346 [14:48:17]MH_Cut [14:48:17]Write to MH i2c: D1 01 00 D2 1B 01 BF [14:48:17]Write i2c OK [14:48:17]MH_I2C_Read... [14:48:17]Read from MH i2c: D1 [14:48:17]MH_I2C_Read... [14:48:17]Read from MH i2c: D1 01 00 [14:48:17]MH_I2C_Read... [14:48:17]Read from MH i2c: D1 01 00 D2 1B 00 BE [14:48:17]Write to MH i2c: 01 00 00 D3 1B EE [14:48:17]Write i2c OK [14:48:17]MH_I2C_Read... [14:48:18]OFD Sender: No OFD packet to send [14:48:18]*** Cut start [14:48:18]*** Partial cut [14:48:18]*** CUTSNS_PIN = 1 [14:48:18]*** CUTSNS_PIN = 0 [14:48:18]*** Brake cut motor [14:48:19]Read from MH i2c: 01 [14:48:19]MH_I2C_Read... [14:48:19]*** Stop cut motor [14:48:19]*** Cut end [14:48:19]Read from MH i2c: 01 07 00 [14:48:19]MH_I2C_Read... [14:48:19]Read from MH i2c: 01 07 00 D3 1B 00 00 00 00 00 FF 0F 03 [14:48:19]process_action close_receipt done [14:48:19]requested_data is exist [14:48:19]produce_requested_data [14:48:19]requested_item fm.sn is exist - process it [14:48:19]wFMCommunicate request_size=4 [14:48:19]MH_SAM_APDU [14:48:19]CAPDU: 80 11 00 00 [14:48:19]Write to MH i2c: E2 08 00 D4 1B 80 11 00 00 00 00 00 00 69 [14:48:19]Write i2c OK [14:48:19]MH_I2C_Read... [14:48:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:19]Read from MH i2c: E2 [14:48:19]MH_I2C_Read... [14:48:19]Read from MH i2c: E2 17 00 [14:48:19]MH_I2C_Read... [14:48:19]Read from MH i2c: E2 17 00 D4 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 BF [14:48:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:48:19]wFMCommunicate OK [14:48:19]requested_item fd.num is exist - process it [14:48:19]SAM_PROTO_GetFieldsCounters [14:48:19]wFMCommunicate request_size=4 [14:48:19]MH_SAM_APDU [14:48:19]CAPDU: 80 13 00 00 [14:48:19]Write to MH i2c: E2 08 00 D5 1B 80 13 00 00 00 00 00 00 6C [14:48:19]Write i2c OK [14:48:19]MH_I2C_Read... [14:48:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:48:19]Read from MH i2c: E2 [14:48:19]MH_I2C_Read... [14:48:19]Read from MH i2c: E2 62 00 [14:48:19]MH_I2C_Read... [14:48:19]Read from MH i2c: E2 62 00 D5 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C7 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [14:48:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C7 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:48:19]wFMCommunicate OK [14:48:19]SAM_PROTO_GetFieldsCounters done [14:48:19]requested_item shift.num is exist - process it [14:48:19]requested_item shift.opened is exist - process it [14:48:19]req_shift_opened [14:48:19]FM_GetShiftState [14:48:19]SAM_PROTO_GetShiftState [14:48:19]wFMCommunicate request_size=4 [14:48:19]MH_SAM_APDU [14:48:19]CAPDU: 80 13 01 00 [14:48:19]Write to MH i2c: E2 08 00 D6 1B 80 13 01 00 00 00 00 00 6E [14:48:19]Write i2c OK [14:48:19]MH_I2C_Read... [14:48:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:19]Read from MH i2c: E2 [14:48:19]MH_I2C_Read... [14:48:19]Read from MH i2c: E2 0E 00 [14:48:19]MH_I2C_Read... [14:48:19]Read from MH i2c: E2 0E 00 D6 1B 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 47 [14:48:19]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [14:48:19]wFMCommunicate OK [14:48:19]SAM_PROTO_GetShiftState done [14:48:19]FM_GetShiftState done [14:48:19]req_shift_opened done [14:48:19]requested_item shift.open_date is exist - process it [14:48:19]req_shift_open_date [14:48:19]req_shift_open_date done [14:48:19]produce_requested_data done [14:48:19]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165319,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [14:48:19]process_action_free close_receipt [14:48:19]json_value_free [14:48:19]json_value_free done [14:48:19]process_json_proto returns [14:48:19]Send response to host [14:48:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165319,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [14:48:19]free response buf [14:48:19]execute_script done [14:48:19]execute_script returns [14:48:19]free content buf [14:48:19]Sock 9.Close socket [14:48:19]Sock 9.Thread stoped [14:48:23]OFD Sender: No OFD packet to send [14:48:28]OFD Sender: No OFD packet to send [14:48:33]OFD Sender: No OFD packet to send [14:48:38]OFD Sender: No OFD packet to send [14:48:43]OFD Sender: No OFD packet to send [14:48:48]OFD Sender: No OFD packet to send [14:48:53]OFD Sender: No OFD packet to send [14:48:58]OFD Sender: No OFD packet to send [14:49:03]OFD Sender: No OFD packet to send [14:49:08]OFD Sender: No OFD packet to send [14:49:13]OFD Sender: No OFD packet to send [14:49:18]accept exits with 8 [14:49:18]New connection [14:49:18]New thread 3066711396 created [14:49:18]Thread 3066854756 joined [14:49:18]Waiting for new connection... [14:49:18] Sock 8.Parse request [14:49:18]Sock 8.Check first char [14:49:18]Sock 8.First char is OK [14:49:18]request: POST /json_proto HTTP/1.0 [14:49:18]Method: POST [14:49:18]URL: /json_proto [14:49:18]Method is POST - this is cgi request [14:49:18]url: /json_proto [14:49:18]query_string will be loaded in cgi processing [14:49:18]execute_cgi json_proto POST (null) [14:49:18]execute_cgi path=json_proto method=POST [14:49:18]POST find Content-Length [14:49:18]Host: 172.17.56.4:8080 [14:49:18]Content-Length: 840 [14:49:18]Content-Type: application/json [14:49:18] [14:49:18]POST finish read [14:49:18]Found Content-Length = 840 [14:49:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459430", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 29.200, "sum" : 2080.79, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2080.79 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:18]execute_script... [14:49: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)459430", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 29.200, "sum" : 2080.79, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2080.79 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:18]POST & json_proto [14:49:18]process_json_proto [14:49:18]json parsed OK: [14:49:18]protocol is kg_v1.0 [14:49:18]action value=close_receipt [14:49:18]process_action close_receipt [14:49:18]cmd_close_receipt [14:49:18]MH_GetDate [14:49:18]Write to MH i2c: F0 00 00 D7 1B E1 [14:49:18]Write i2c OK [14:49:18]MH_I2C_Read... [14:49:18]Read from MH i2c: F0 [14:49:18]MH_I2C_Read... [14:49:18]Read from MH i2c: F0 09 00 [14:49:18]MH_I2C_Read... [14:49:18]Read from MH i2c: F0 09 00 D7 1B 00 EF 36 95 66 C9 DC B2 64 C5 [14:49:18]GetLastDocTimeStamp 1721054897 [14:49:18]current date 1721054959 [14:49:18]FM_GetShiftState [14:49:18]SAM_PROTO_GetShiftState [14:49:18]wFMCommunicate request_size=4 [14:49:18]MH_SAM_APDU [14:49:18]CAPDU: 80 13 01 00 [14:49:18]Write to MH i2c: E2 08 00 D8 1B 80 13 01 00 00 00 00 00 70 [14:49:18]Write i2c OK [14:49:18]MH_I2C_Read... [14:49:18]OFD Sender: No OFD packet to send [14:49:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:18]Read from MH i2c: E2 [14:49:18]MH_I2C_Read... [14:49:18]Read from MH i2c: E2 0E 00 [14:49:18]MH_I2C_Read... [14:49:18]Read from MH i2c: E2 0E 00 D8 1B 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 49 [14:49:18]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [14:49:18]wFMCommunicate OK [14:49:18]SAM_PROTO_GetShiftState done [14:49:18]FM_GetShiftState done [14:49:18]opened in 1721003876 [14:49:18]opened+sec_in_day 1721090276 [14:49:18]quantity*price = 208079 [14:49:18]sum+1 = 208080 [14:49:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2080.79 НСП 1% : 18.41 НДС 12% : 220.97 Наличными: 0.00 Безнал.: 2080.79 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 193 15.07.2024 14:49 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874718 ФД: 165320 ФПД: 71863626749180 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T144919&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165320&fm=71863626749180&tin=02508201610067®Number=0000000000090829&sum=208079 [14:49:19]StoreToDocumentArchive [14:49:19]shift 448 fd 165320 [14:49:19]save to /storage/0448/doc_00165320 [14:49:19]save last doc name /storage/0448/doc_00165320 to /storage/kkm_last_doc_name [14:49:19]save OK [14:49:19]Clear old archive folders... [14:49:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:49:19]tlvbuf is 0181A210 [14:49:19]SAM_PROTO_ClearQueue [14:49:19]wFMCommunicate request_size=4 [14:49:19]MH_SAM_APDU [14:49:19]CAPDU: 80 09 00 00 [14:49:19]Write to MH i2c: E2 08 00 E5 1B 80 09 00 00 00 00 00 00 72 [14:49:19]Write i2c OK [14:49:19]MH_I2C_Read... [14:49:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:49:19]Read from MH i2c: E2 [14:49:19]MH_I2C_Read... [14:49:19]Read from MH i2c: E2 03 00 [14:49:19]MH_I2C_Read... [14:49:19]Read from MH i2c: E2 03 00 E5 1B 00 90 00 74 [14:49:19]RAPDU: 90 00 [14:49:19]wFMCommunicate OK [14:49:19]SAM_PROTO_ClearQueue done [14:49:19]KKMCreateOFDPacket [14:49:19]OFDProtocolAddRootSTLVToBuf [14:49:19]FM_MakeSignedData [14:49:19]FM_MakeSignedData [14:49:19]SAM_PROTO_SignData [14:49:19]wFMCommunicate request_size=4 [14:49:19]MH_SAM_APDU [14:49:19]CAPDU: 80 0D 01 02 [14:49:19]Write to MH i2c: E2 08 00 E6 1B 80 0D 01 02 00 00 00 00 7A [14:49:19]Write i2c OK [14:49:19]MH_I2C_Read... [14:49:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:49:19]Read from MH i2c: E2 [14:49:19]MH_I2C_Read... [14:49:19]Read from MH i2c: E2 03 00 [14:49:19]MH_I2C_Read... [14:49:19]Read from MH i2c: E2 03 00 E6 1B 00 90 00 75 [14:49:19]RAPDU: 90 00 [14:49:19]wFMCommunicate OK [14:49:19]wFMCommunicate request_size=255 [14:49:19]MH_SAM_APDU [14:49:19]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 72 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 CF 2C 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 2C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 56 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 2C 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 EF 36 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C8 85 02 00 35 04 06 00 41 5C 0D F1 [14:49:19]Write to MH i2c: E2 02 01 E7 1B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 72 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 CF 2C 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 2C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 56 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 2C 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 EF 36 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C8 85 02 00 35 04 06 00 41 5C 0D F1 00 00 B5 [14:49:19]Write i2c OK [14:49:19]MH_I2C_Read... [14:49:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:19]Read from MH i2c: E2 [14:49:19]MH_I2C_Read... [14:49:19]Read from MH i2c: E2 03 00 [14:49:19]MH_I2C_Read... [14:49:19]Read from MH i2c: E2 03 00 E7 1B 00 90 00 76 [14:49:19]RAPDU: 90 00 [14:49:19]wFMCommunicate OK [14:49:19]wFMCommunicate request_size=7 [14:49:19]MH_SAM_APDU [14:49:19]CAPDU: 80 0D 02 02 02 D4 FC [14:49:19]Write to MH i2c: E2 0A 00 E8 1B 80 0D 02 02 02 00 D4 FC 00 00 51 [14:49:19]Write i2c OK [14:49:19]MH_I2C_Read... [14:49:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:19]Read from MH i2c: E2 [14:49:19]MH_I2C_Read... [14:49:19]Read from MH i2c: E2 03 00 [14:49:19]MH_I2C_Read... [14:49:19]Read from MH i2c: E2 03 00 E8 1B 00 90 00 77 [14:49:19]RAPDU: 90 00 [14:49:19]wFMCommunicate OK [14:49:19]wFMCommunicate request_size=4 [14:49:19]MH_SAM_APDU [14:49:19]CAPDU: 80 0D 03 02 [14:49:19]Write to MH i2c: E2 08 00 E9 1B 80 0D 03 02 00 00 00 00 7F [14:49:19]Write i2c OK [14:49:19]MH_I2C_Read... [14:49:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:49:19]Read from MH i2c: E2 [14:49:19]MH_I2C_Read... [14:49:19]Read from MH i2c: E2 0B 00 [14:49:19]MH_I2C_Read... [14:49:19]Read from MH i2c: E2 0B 00 E9 1B 00 4C 89 BB 7E 59 8E B8 03 90 00 30 [14:49:19]RAPDU: 4C 89 BB 7E 59 8E B8 03 90 00 [14:49:19]wFMCommunicate OK [14:49:19]SAM_PROTO_SignData done [14:49:19]FM_MakeSignedData done [14:49:19]CreateOFDProtocolMessage [14:49:19]wFMCommunicate request_size=4 [14:49:19]MH_SAM_APDU [14:49:19]CAPDU: 80 11 00 00 [14:49:19]Write to MH i2c: E2 08 00 EA 1B 80 11 00 00 00 00 00 00 7F [14:49:19]Write i2c OK [14:49:19]MH_I2C_Read... [14:49:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:20]Read from MH i2c: E2 [14:49:20]MH_I2C_Read... [14:49:20]Read from MH i2c: E2 17 00 [14:49:20]MH_I2C_Read... [14:49:20]Read from MH i2c: E2 17 00 EA 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D5 [14:49:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:49:20]wFMCommunicate OK [14:49:20]CreateOFDProtocolMessage done [14:49:20]OFDSenderStorePacket 165320 [14:49:20]StoreOFDPacket docnum=165320 [14:49:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 EA 2C 04 01 43 07 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 72 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 CF 2C 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 2C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 56 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 2C 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 EF 36 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C8 85 02 00 35 04 06 00 41 5C 0D F1 D4 FC 4C 89 BB 7E 59 8E B8 03 [14:49:20]CheckFolder [14:49:20]dirname=/storage/ofd_packets [14:49:20]CheckFolder done [14:49:20]ProducePacketName [14:49:20]name=ofd_packets/00165320 [14:49:20]NVStorageSaveData ofd_packets/00165320 [14:49:20]File name is /storage/ofd_packets/00165320 [14:49:20]Write 298 bytes [14:49:20]NVStorageSaveData done [14:49:20]OFDSenderStorePacket done [14:49:20]KKMCreateOFDPacket done [14:49:20]NVStorageSaveData kkm_last_timestamp [14:49:20]File name is /storage/kkm_last_timestamp [14:49:20]Write 4 bytes [14:49:20]NVStorageSaveData done [14:49:20]ExternCall_PrintAddStr [14:49:20]wPrintStart [14:49:20]Write to MH i2c: 01 00 00 EB 1B 06 [14:49:20]Write i2c OK [14:49:20]MH_I2C_Read... [14:49:20]Read from MH i2c: 01 [14:49:20]MH_I2C_Read... [14:49:20]Read from MH i2c: 01 07 00 [14:49:20]MH_I2C_Read... [14:49:20]Read from MH i2c: 01 07 00 EB 1B 00 00 00 00 00 FF 0F 1B [14:49:20]RasterBufferAndPrint [14:49:20]line Счет N : (1)459430 [14:49:20]line ИНН: 02508201610067 [14:49:20]line Контрольно-Кассовый Чек [14:49:20]line ПРОДАЖА [14:49:20]line ТРК (МРК, ГНК) : 11 [14:49:20]line Товар: 2710194210 [14:49:20]line ДТ-К-5 [14:49:20]line 29.200 * 71.26 [14:49:20]line = 2080.79 [14:49:20]line НДС 12% НСП 1% [14:49:20]line > о реализуемом товаре [14:49:20]line ИТОГО: 2080.79 [14:49:20]line НСП 1% : 18.41 [14:49:20]line НДС 12% : 220.97 [14:49:20]line Наличными: 0.00 [14:49:20]line Безнал.: 2080.79 [14:49:20]line Место: АЗС № 72 "Партнер Нефть" [14:49:20]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:49:20]line СНО: Общий режим [14:49:20]line Чек 193 15.07.2024 14:49 [14:49:20]line Смена: 448 ФФД: 1.0 [14:49:20]line ЗНМ: 0300000160 [14:49:20]line РНМ: 0000000000090829 [14:49:20]line Версия ККМ: 001 [14:49:20]line Платежная система: АКБ Кыргызстан [14:49:20]line ФМ: 0000000000874718 [14:49:20]line ФД: 165320 [14:49:20]line ФПД: 71863626749180 [14:49:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T144919&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165320&fm=71863626749180&tin=02508201610067®Number=0000000000090829&sum=208079 [14:49:20]OFD Sender: Processing packet 165320 [packets to send 106, broken 105] [14:49:20]ProducePacketName [14:49:20]name=ofd_packets/00165320 [14:49:20]OFD Sender: To server: pG, [14:49:20]CommunicateWithHost lk.salyk.kg:30040 [14:49:20]ConnectInit lk.salyk.kg [14:49:20]written 0, free lines is 4095 [14:49:20]Connected sock=10 [14:49: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 37 31 38 0C 01 00 00 EA 2C 04 01 43 07 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 72 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 CF 2C 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 2C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 56 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 2C 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 EF 36 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C8 85 02 00 35 04 06 00 41 5C 0D F1 D4 FC 4C 89 BB 7E 59 8E B8 03 [14:49:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 74 96 47 00 2F DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C8 85 02 00 F4 03 04 00 79 DD 94 66 B6 04 01 00 00 42 DB 9F BF 41 29 08 CA [14:49:20]CommunicateWithHost err = 0 [14:49:20]CheckOFDResponse [14:49:20]1017 (14) - 77093643461234 [14:49:20]1041 (16) - 0000000000874718 [14:49:20]1040 (4) - 165320 [14:49:20]1012 (4) - 15.07.2024 08:27 [14:49:20]1206 (1) - 0 [14:49:20]OFD Sender: Remove packet 165320 [14:49:20]ProducePacketName [14:49:20]name=ofd_packets/00165320 [14:49:20]NVStorageDeleteData [14:49:20]Write to MH i2c: 01 00 00 14 1C 30 [14:49:20]Write i2c OK [14:49:20]MH_I2C_Read... [14:49:20]Read from MH i2c: 01 [14:49:20]MH_I2C_Read... [14:49:20]Read from MH i2c: 01 07 00 [14:49:20]MH_I2C_Read... [14:49:20]Read from MH i2c: 01 07 00 14 1C 00 00 00 00 00 10 0D 54 [14:49:20]RasterBufferAndPrint [14:49:20]line [14:49:20]line [14:49:20]line [14:49:20]line [14:49:20]line [14:49:20]written 0, free lines is 3350 [14:49:20]MH_Cut [14:49:20]Write to MH i2c: D1 01 00 1B 1C 01 09 [14:49:20]Write i2c OK [14:49:20]MH_I2C_Read... [14:49:20]Read from MH i2c: D1 [14:49:20]MH_I2C_Read... [14:49:20]Read from MH i2c: D1 01 00 [14:49:20]MH_I2C_Read... [14:49:20]Read from MH i2c: D1 01 00 1B 1C 00 08 [14:49:20]Write to MH i2c: 01 00 00 1C 1C 38 [14:49:20]Write i2c OK [14:49:20]MH_I2C_Read... [14:49:21]OFD Sender: No OFD packet to send [14:49:21]*** Cut start [14:49:21]*** Partial cut [14:49:21]*** CUTSNS_PIN = 1 [14:49:21]*** CUTSNS_PIN = 0 [14:49:21]*** Brake cut motor [14:49:22]Read from MH i2c: 01 [14:49:22]MH_I2C_Read... [14:49:22]*** Stop cut motor [14:49:22]*** Cut end [14:49:22]Read from MH i2c: 01 07 00 [14:49:22]MH_I2C_Read... [14:49:22]Read from MH i2c: 01 07 00 1C 1C 00 00 00 00 00 FF 0F 4D [14:49:22]process_action close_receipt done [14:49:22]requested_data is exist [14:49:22]produce_requested_data [14:49:22]requested_item fm.sn is exist - process it [14:49:22]wFMCommunicate request_size=4 [14:49:22]MH_SAM_APDU [14:49:22]CAPDU: 80 11 00 00 [14:49:22]Write to MH i2c: E2 08 00 1D 1C 80 11 00 00 00 00 00 00 B3 [14:49:22]Write i2c OK [14:49:22]MH_I2C_Read... [14:49:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:22]Read from MH i2c: E2 [14:49:22]MH_I2C_Read... [14:49:22]Read from MH i2c: E2 17 00 [14:49:22]MH_I2C_Read... [14:49:22]Read from MH i2c: E2 17 00 1D 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 09 [14:49:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:49:22]wFMCommunicate OK [14:49:22]requested_item fd.num is exist - process it [14:49:22]SAM_PROTO_GetFieldsCounters [14:49:22]wFMCommunicate request_size=4 [14:49:22]MH_SAM_APDU [14:49:22]CAPDU: 80 13 00 00 [14:49:22]Write to MH i2c: E2 08 00 1E 1C 80 13 00 00 00 00 00 00 B6 [14:49:22]Write i2c OK [14:49:22]MH_I2C_Read... [14:49:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:49:22]Read from MH i2c: E2 [14:49:22]MH_I2C_Read... [14:49:22]Read from MH i2c: E2 62 00 [14:49:22]MH_I2C_Read... [14:49:22]Read from MH i2c: E2 62 00 1E 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C8 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [14:49: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C8 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:49:22]wFMCommunicate OK [14:49:22]SAM_PROTO_GetFieldsCounters done [14:49:22]requested_item shift.num is exist - process it [14:49:22]requested_item shift.opened is exist - process it [14:49:22]req_shift_opened [14:49:22]FM_GetShiftState [14:49:22]SAM_PROTO_GetShiftState [14:49:22]wFMCommunicate request_size=4 [14:49:22]MH_SAM_APDU [14:49:22]CAPDU: 80 13 01 00 [14:49:22]Write to MH i2c: E2 08 00 1F 1C 80 13 01 00 00 00 00 00 B8 [14:49:22]Write i2c OK [14:49:22]MH_I2C_Read... [14:49:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:22]Read from MH i2c: E2 [14:49:22]MH_I2C_Read... [14:49:22]Read from MH i2c: E2 0E 00 [14:49:22]MH_I2C_Read... [14:49:22]Read from MH i2c: E2 0E 00 1F 1C 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 91 [14:49:22]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [14:49:22]wFMCommunicate OK [14:49:22]SAM_PROTO_GetShiftState done [14:49:22]FM_GetShiftState done [14:49:22]req_shift_opened done [14:49:22]requested_item shift.open_date is exist - process it [14:49:22]req_shift_open_date [14:49:22]req_shift_open_date done [14:49:22]produce_requested_data done [14:49:22]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165320,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [14:49:22]process_action_free close_receipt [14:49:22]json_value_free [14:49:22]json_value_free done [14:49:22]process_json_proto returns [14:49:22]Send response to host [14:49:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165320,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [14:49:22]free response buf [14:49:22]execute_script done [14:49:22]execute_script returns [14:49:22]free content buf [14:49:22]Sock 8.Close socket [14:49:22]Sock 8.Thread stoped [14:49:26]OFD Sender: No OFD packet to send [14:49:31]OFD Sender: No OFD packet to send [14:49:36]OFD Sender: No OFD packet to send [14:49:41]OFD Sender: No OFD packet to send [14:49:46]OFD Sender: No OFD packet to send [14:49:51]OFD Sender: No OFD packet to send [14:49:56]OFD Sender: No OFD packet to send [14:50:01]OFD Sender: No OFD packet to send [14:50:06]OFD Sender: No OFD packet to send [14:50:11]OFD Sender: No OFD packet to send [14:50:16]OFD Sender: No OFD packet to send [14:50:21]OFD Sender: No OFD packet to send [14:50:26]OFD Sender: No OFD packet to send [14:50:31]OFD Sender: No OFD packet to send [14:50:36]OFD Sender: No OFD packet to send [14:50:41]OFD Sender: No OFD packet to send [14:50:46]OFD Sender: No OFD packet to send [14:50:51]OFD Sender: No OFD packet to send [14:50:56]OFD Sender: No OFD packet to send [14:50:58]accept exits with 9 [14:50:58]New connection [14:50:58]New thread 3066854756 created [14:50:58]Thread 3066711396 joined [14:50:58]Waiting for new connection... [14:50:58] Sock 9.Parse request [14:50:58]Sock 9.Check first char [14:50:58]Sock 9.First char is OK [14:50:58]request: POST /json_proto HTTP/1.0 [14:50:58]Method: POST [14:50:58]URL: /json_proto [14:50:58]Method is POST - this is cgi request [14:50:58]url: /json_proto [14:50:58]query_string will be loaded in cgi processing [14:50:58]execute_cgi json_proto POST (null) [14:50:58]execute_cgi path=json_proto method=POST [14:50:58]POST find Content-Length [14:50:58]Host: 172.17.56.4:8080 [14:50:58]Content-Length: 837 [14:50:58]Content-Type: application/json [14:50:58] [14:50:58]POST finish read [14:50:58]Found Content-Length = 837 [14:50:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459432", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 4.210, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:50:58]execute_script... [14:50: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)459432", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 4.210, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:50:58]POST & json_proto [14:50:58]process_json_proto [14:50:58]json parsed OK: [14:50:58]protocol is kg_v1.0 [14:50:58]action value=close_receipt [14:50:58]process_action close_receipt [14:50:58]cmd_close_receipt [14:50:58]MH_GetDate [14:50:58]Write to MH i2c: F0 00 00 20 1C 2B [14:50:58]Write i2c OK [14:50:58]MH_I2C_Read... [14:50:58]Read from MH i2c: F0 [14:50:58]MH_I2C_Read... [14:50:58]Read from MH i2c: F0 09 00 [14:50:58]MH_I2C_Read... [14:50:58]Read from MH i2c: F0 09 00 20 1C 00 53 37 95 66 C9 DC B2 64 74 [14:50:58]GetLastDocTimeStamp 1721054959 [14:50:58]current date 1721055059 [14:50:58]FM_GetShiftState [14:50:58]SAM_PROTO_GetShiftState [14:50:58]wFMCommunicate request_size=4 [14:50:58]MH_SAM_APDU [14:50:58]CAPDU: 80 13 01 00 [14:50:58]Write to MH i2c: E2 08 00 21 1C 80 13 01 00 00 00 00 00 BA [14:50:58]Write i2c OK [14:50:58]MH_I2C_Read... [14:50:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:50:58]Read from MH i2c: E2 [14:50:58]MH_I2C_Read... [14:50:58]Read from MH i2c: E2 0E 00 [14:50:58]MH_I2C_Read... [14:50:58]Read from MH i2c: E2 0E 00 21 1C 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 93 [14:50:58]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [14:50:58]wFMCommunicate OK [14:50:58]SAM_PROTO_GetShiftState done [14:50:58]FM_GetShiftState done [14:50:58]opened in 1721003876 [14:50:58]opened+sec_in_day 1721090276 [14:50:58]quantity*price = 30000 [14:50:58]sum+1 = 30001 [14:50:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 0.00 Безнал.: 300.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 194 15.07.2024 14:50 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874718 ФД: 165321 ФПД: 214257397900910 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T145059&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165321&fm=214257397900910&tin=02508201610067®Number=0000000000090829&sum=30000 [14:50:59]StoreToDocumentArchive [14:50:59]shift 448 fd 165321 [14:50:59]save to /storage/0448/doc_00165321 [14:50:59]save last doc name /storage/0448/doc_00165321 to /storage/kkm_last_doc_name [14:50:59]save OK [14:50:59]Clear old archive folders... [14:50:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:50:59]tlvbuf is 0181A0D0 [14:50:59]SAM_PROTO_ClearQueue [14:50:59]wFMCommunicate request_size=4 [14:50:59]MH_SAM_APDU [14:50:59]CAPDU: 80 09 00 00 [14:50:59]Write to MH i2c: E2 08 00 2E 1C 80 09 00 00 00 00 00 00 BC [14:50:59]Write i2c OK [14:50:59]MH_I2C_Read... [14:50:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:50:59]Read from MH i2c: E2 [14:50:59]MH_I2C_Read... [14:50:59]Read from MH i2c: E2 03 00 [14:50:59]MH_I2C_Read... [14:50:59]Read from MH i2c: E2 03 00 2E 1C 00 90 00 BE [14:50:59]RAPDU: 90 00 [14:50:59]wFMCommunicate OK [14:50:59]SAM_PROTO_ClearQueue done [14:50:59]KKMCreateOFDPacket [14:50:59]OFDProtocolAddRootSTLVToBuf [14:50:59]FM_MakeSignedData [14:50:59]FM_MakeSignedData [14:50:59]SAM_PROTO_SignData [14:50:59]wFMCommunicate request_size=4 [14:50:59]MH_SAM_APDU [14:50:59]CAPDU: 80 0D 01 02 [14:50:59]Write to MH i2c: E2 08 00 2F 1C 80 0D 01 02 00 00 00 00 C4 [14:50:59]Write i2c OK [14:50:59]MH_I2C_Read... [14:50:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:50:59]Read from MH i2c: E2 [14:50:59]MH_I2C_Read... [14:50:59]Read from MH i2c: E2 03 00 [14:50:59]MH_I2C_Read... [14:50:59]Read from MH i2c: E2 03 00 2F 1C 00 90 00 BF [14:50:59]RAPDU: 90 00 [14:50:59]wFMCommunicate OK [14:50:59]wFMCommunicate request_size=255 [14:50:59]MH_SAM_APDU [14:50:59]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 10 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 53 37 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C9 85 02 00 35 04 06 00 C2 DD B0 17 [14:50:59]Write to MH i2c: E2 02 01 30 1C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 10 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 53 37 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C9 85 02 00 35 04 06 00 C2 DD B0 17 00 00 CF [14:50:59]Write i2c OK [14:50:59]MH_I2C_Read... [14:50:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:50:59]Read from MH i2c: E2 [14:50:59]MH_I2C_Read... [14:50:59]Read from MH i2c: E2 03 00 [14:50:59]MH_I2C_Read... [14:50:59]Read from MH i2c: E2 03 00 30 1C 00 90 00 C0 [14:50:59]RAPDU: 90 00 [14:50:59]wFMCommunicate OK [14:50:59]wFMCommunicate request_size=7 [14:50:59]MH_SAM_APDU [14:50:59]CAPDU: 80 0D 02 02 02 A6 6E [14:50:59]Write to MH i2c: E2 0A 00 31 1C 80 0D 02 02 02 00 A6 6E 00 00 DF [14:50:59]Write i2c OK [14:50:59]MH_I2C_Read... [14:50:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:50:59]Read from MH i2c: E2 [14:50:59]MH_I2C_Read... [14:50:59]Read from MH i2c: E2 03 00 [14:50:59]MH_I2C_Read... [14:50:59]Read from MH i2c: E2 03 00 31 1C 00 90 00 C1 [14:50:59]RAPDU: 90 00 [14:50:59]wFMCommunicate OK [14:50:59]wFMCommunicate request_size=4 [14:50:59]MH_SAM_APDU [14:50:59]CAPDU: 80 0D 03 02 [14:50:59]Write to MH i2c: E2 08 00 32 1C 80 0D 03 02 00 00 00 00 C9 [14:50:59]Write i2c OK [14:50:59]MH_I2C_Read... [14:50:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:50:59]Read from MH i2c: E2 [14:50:59]MH_I2C_Read... [14:50:59]Read from MH i2c: E2 0B 00 [14:50:59]MH_I2C_Read... [14:50:59]Read from MH i2c: E2 0B 00 32 1C 00 E4 61 59 C2 85 ED 5E F6 90 00 F0 [14:50:59]RAPDU: E4 61 59 C2 85 ED 5E F6 90 00 [14:50:59]wFMCommunicate OK [14:50:59]SAM_PROTO_SignData done [14:50:59]FM_MakeSignedData done [14:50:59]CreateOFDProtocolMessage [14:50:59]wFMCommunicate request_size=4 [14:50:59]MH_SAM_APDU [14:50:59]CAPDU: 80 11 00 00 [14:50:59]Write to MH i2c: E2 08 00 33 1C 80 11 00 00 00 00 00 00 C9 [14:50:59]Write i2c OK [14:50:59]MH_I2C_Read... [14:50:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:50:59]Read from MH i2c: E2 [14:50:59]MH_I2C_Read... [14:50:59]Read from MH i2c: E2 17 00 [14:50:59]MH_I2C_Read... [14:50:59]Read from MH i2c: E2 17 00 33 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1F [14:50:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:50:59]wFMCommunicate OK [14:50:59]CreateOFDProtocolMessage done [14:50:59]OFDSenderStorePacket 165321 [14:50:59]StoreOFDPacket docnum=165321 [14:50:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 8C DC 04 01 44 3A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 10 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 53 37 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C9 85 02 00 35 04 06 00 C2 DD B0 17 A6 6E E4 61 59 C2 85 ED 5E F6 [14:50:59]CheckFolder [14:50:59]dirname=/storage/ofd_packets [14:50:59]CheckFolder done [14:50:59]ProducePacketName [14:50:59]name=ofd_packets/00165321 [14:50:59]NVStorageSaveData ofd_packets/00165321 [14:50:59]File name is /storage/ofd_packets/00165321 [14:50:59]Write 298 bytes [14:50:59]NVStorageSaveData done [14:50:59]OFDSenderStorePacket done [14:50:59]KKMCreateOFDPacket done [14:50:59]NVStorageSaveData kkm_last_timestamp [14:50:59]File name is /storage/kkm_last_timestamp [14:50:59]Write 4 bytes [14:50:59]NVStorageSaveData done [14:50:59]ExternCall_PrintAddStr [14:50:59]wPrintStart [14:50:59]Write to MH i2c: 01 00 00 34 1C 50 [14:50:59]Write i2c OK [14:50:59]MH_I2C_Read... [14:50:59]Read from MH i2c: 01 [14:50:59]MH_I2C_Read... [14:50:59]Read from MH i2c: 01 07 00 [14:50:59]MH_I2C_Read... [14:50:59]Read from MH i2c: 01 07 00 34 1C 00 00 00 00 00 FF 0F 65 [14:50:59]RasterBufferAndPrint [14:50:59]line Счет N : (1)459432 [14:50:59]line ИНН: 02508201610067 [14:50:59]line Контрольно-Кассовый Чек [14:50:59]line ПРОДАЖА [14:50:59]line ТРК (МРК, ГНК) : 11 [14:50:59]line Товар: 2710194210 [14:50:59]line ДТ-К-5 [14:50:59]line 4.210 * 71.26 [14:50:59]line = 300.00 [14:50:59]line НДС 12% НСП 1% [14:50:59]line > о реализуемом товаре [14:50:59]line ИТОГО: 300.00 [14:50:59]line НСП 1% : 2.65 [14:50:59]line НДС 12% : 31.86 [14:50:59]line Наличными: 0.00 [14:50:59]line Безнал.: 300.00 [14:50:59]line Место: АЗС № 72 "Партнер Нефть" [14:50:59]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:50:59]line СНО: Общий режим [14:50:59]line Чек 194 15.07.2024 14:50 [14:50:59]line Смена: 448 ФФД: 1.0 [14:50:59]line ЗНМ: 0300000160 [14:50:59]line РНМ: 0000000000090829 [14:50:59]line Версия ККМ: 001 [14:50:59]line Платежная система: АКБ Кыргызстан [14:50:59]line ФМ: 0000000000874718 [14:50:59]line ФД: 165321 [14:50:59]line ФПД: 214257397900910 [14:50:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T145059&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165321&fm=214257397900910&tin=02508201610067®Number=0000000000090829&sum=30000 [14:51:00]OFD Sender: Processing packet 165321 [packets to send 106, broken 105] [14:51:00]ProducePacketName [14:51:00]name=ofd_packets/00165321 [14:51:00]OFD Sender: To server: pG, [14:51:00]CommunicateWithHost lk.salyk.kg:30040 [14:51:00]ConnectInit lk.salyk.kg [14:51:00]written 0, free lines is 4095 [14:51:00]Connected sock=8 [14:51: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 37 31 38 0C 01 00 00 8C DC 04 01 44 3A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 10 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 53 37 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C9 85 02 00 35 04 06 00 C2 DD B0 17 A6 6E E4 61 59 C2 85 ED 5E F6 [14:51:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 FF D2 47 00 63 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 C9 85 02 00 F4 03 04 00 DD DD 94 66 B6 04 01 00 00 0F 2B F6 F7 36 30 62 26 [14:51:00]CommunicateWithHost err = 0 [14:51:00]CheckOFDResponse [14:51:00]1017 (14) - 77093643461234 [14:51:00]1041 (16) - 0000000000874718 [14:51:00]1040 (4) - 165321 [14:51:00]1012 (4) - 15.07.2024 08:29 [14:51:00]1206 (1) - 0 [14:51:00]OFD Sender: Remove packet 165321 [14:51:00]ProducePacketName [14:51:00]name=ofd_packets/00165321 [14:51:00]NVStorageDeleteData [14:51:00]Write to MH i2c: 01 00 00 5D 1C 79 [14:51:00]Write i2c OK [14:51:00]MH_I2C_Read... [14:51:00]Read from MH i2c: 01 [14:51:00]MH_I2C_Read... [14:51:00]Read from MH i2c: 01 07 00 [14:51:00]MH_I2C_Read... [14:51:00]Read from MH i2c: 01 07 00 5D 1C 00 00 00 00 00 0D 0D 9A [14:51:00]RasterBufferAndPrint [14:51:00]line [14:51:00]line [14:51:00]line [14:51:00]line [14:51:00]line [14:51:00]written 0, free lines is 3347 [14:51:00]MH_Cut [14:51:00]Write to MH i2c: D1 01 00 64 1C 01 52 [14:51:00]Write i2c OK [14:51:00]MH_I2C_Read... [14:51:00]Read from MH i2c: D1 [14:51:00]MH_I2C_Read... [14:51:00]Read from MH i2c: D1 01 00 [14:51:00]MH_I2C_Read... [14:51:00]Read from MH i2c: D1 01 00 64 1C 00 51 [14:51:00]Write to MH i2c: 01 00 00 65 1C 81 [14:51:00]Write i2c OK [14:51:00]MH_I2C_Read... [14:51:00]OFD Sender: No OFD packet to send [14:51:01]*** Cut start [14:51:01]*** Partial cut [14:51:01]*** CUTSNS_PIN = 1 [14:51:01]*** CUTSNS_PIN = 0 [14:51:01]*** Brake cut motor [14:51:01]Read from MH i2c: 01 [14:51:01]MH_I2C_Read... [14:51:01]*** Stop cut motor [14:51:01]*** Cut end [14:51:01]Read from MH i2c: 01 07 00 [14:51:01]MH_I2C_Read... [14:51:01]Read from MH i2c: 01 07 00 65 1C 00 00 00 00 00 FF 0F 96 [14:51:01]process_action close_receipt done [14:51:01]requested_data is exist [14:51:01]produce_requested_data [14:51:01]requested_item fm.sn is exist - process it [14:51:01]wFMCommunicate request_size=4 [14:51:01]MH_SAM_APDU [14:51:01]CAPDU: 80 11 00 00 [14:51:01]Write to MH i2c: E2 08 00 66 1C 80 11 00 00 00 00 00 00 FC [14:51:01]Write i2c OK [14:51:01]MH_I2C_Read... [14:51:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:01]Read from MH i2c: E2 [14:51:01]MH_I2C_Read... [14:51:01]Read from MH i2c: E2 17 00 [14:51:01]MH_I2C_Read... [14:51:01]Read from MH i2c: E2 17 00 66 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 52 [14:51:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:51:01]wFMCommunicate OK [14:51:01]requested_item fd.num is exist - process it [14:51:01]SAM_PROTO_GetFieldsCounters [14:51:01]wFMCommunicate request_size=4 [14:51:01]MH_SAM_APDU [14:51:01]CAPDU: 80 13 00 00 [14:51:01]Write to MH i2c: E2 08 00 67 1C 80 13 00 00 00 00 00 00 FF [14:51:01]Write i2c OK [14:51:01]MH_I2C_Read... [14:51:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:51:01]Read from MH i2c: E2 [14:51:01]MH_I2C_Read... [14:51:01]Read from MH i2c: E2 62 00 [14:51:01]MH_I2C_Read... [14:51:01]Read from MH i2c: E2 62 00 67 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C9 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 7D [14:51:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 C9 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:51:01]wFMCommunicate OK [14:51:01]SAM_PROTO_GetFieldsCounters done [14:51:01]requested_item shift.num is exist - process it [14:51:01]requested_item shift.opened is exist - process it [14:51:01]req_shift_opened [14:51:02]FM_GetShiftState [14:51:02]SAM_PROTO_GetShiftState [14:51:02]wFMCommunicate request_size=4 [14:51:02]MH_SAM_APDU [14:51:02]CAPDU: 80 13 01 00 [14:51:02]Write to MH i2c: E2 08 00 68 1C 80 13 01 00 00 00 00 00 01 [14:51:02]Write i2c OK [14:51:02]MH_I2C_Read... [14:51:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:02]Read from MH i2c: E2 [14:51:02]MH_I2C_Read... [14:51:02]Read from MH i2c: E2 0E 00 [14:51:02]MH_I2C_Read... [14:51:02]Read from MH i2c: E2 0E 00 68 1C 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 DA [14:51:02]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [14:51:02]wFMCommunicate OK [14:51:02]SAM_PROTO_GetShiftState done [14:51:02]FM_GetShiftState done [14:51:02]req_shift_opened done [14:51:02]requested_item shift.open_date is exist - process it [14:51:02]req_shift_open_date [14:51:02]req_shift_open_date done [14:51:02]produce_requested_data done [14:51:02]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165321,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [14:51:02]process_action_free close_receipt [14:51:02]json_value_free [14:51:02]json_value_free done [14:51:02]process_json_proto returns [14:51:02]Send response to host [14:51:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165321,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [14:51:02]free response buf [14:51:02]execute_script done [14:51:02]execute_script returns [14:51:02]free content buf [14:51:02]Sock 9.Close socket [14:51:02]Sock 9.Thread stoped [14:51:05]OFD Sender: No OFD packet to send [14:51:10]OFD Sender: No OFD packet to send [14:51:15]OFD Sender: No OFD packet to send [14:51:20]OFD Sender: No OFD packet to send [14:51:25]OFD Sender: No OFD packet to send [14:51:30]OFD Sender: No OFD packet to send [14:51:35]OFD Sender: No OFD packet to send [14:51:40]OFD Sender: No OFD packet to send [14:51:45]OFD Sender: No OFD packet to send [14:51:50]OFD Sender: No OFD packet to send [14:51:53]accept exits with 10 [14:51:53]New connection [14:51:53]New thread 3066711396 created [14:51:53]Thread 3066854756 joined [14:51:53]Waiting for new connection... [14:51:53] Sock 10.Parse request [14:51:53]Sock 10.Check first char [14:51:53]Sock 10.First char is OK [14:51:53]request: POST /json_proto HTTP/1.0 [14:51:53]Method: POST [14:51:53]URL: /json_proto [14:51:53]Method is POST - this is cgi request [14:51:53]url: /json_proto [14:51:53]query_string will be loaded in cgi processing [14:51:53]execute_cgi json_proto POST (null) [14:51:53]execute_cgi path=json_proto method=POST [14:51:53]POST find Content-Length [14:51:53]Host: 172.17.56.4:8080 [14:51:53]Content-Length: 840 [14:51:53]Content-Type: application/json [14:51:53] [14:51:53]POST finish read [14:51:53]Found Content-Length = 840 [14:51:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459433", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 4.600, "sum" : 300.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 300.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:51:53]execute_script... [14:51:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459433", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 4.600, "sum" : 300.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 300.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:51:53]POST & json_proto [14:51:53]process_json_proto [14:51:53]json parsed OK: [14:51:53]protocol is kg_v1.0 [14:51:53]action value=close_receipt [14:51:53]process_action close_receipt [14:51:53]cmd_close_receipt [14:51:53]MH_GetDate [14:51:53]Write to MH i2c: F0 00 00 69 1C 74 [14:51:53]Write i2c OK [14:51:53]MH_I2C_Read... [14:51:53]Read from MH i2c: F0 [14:51:53]MH_I2C_Read... [14:51:53]Read from MH i2c: F0 09 00 [14:51:53]MH_I2C_Read... [14:51:53]Read from MH i2c: F0 09 00 69 1C 00 8A 37 95 66 C9 DC B2 64 F4 [14:51:53]GetLastDocTimeStamp 1721055059 [14:51:53]current date 1721055114 [14:51:53]FM_GetShiftState [14:51:53]SAM_PROTO_GetShiftState [14:51:53]wFMCommunicate request_size=4 [14:51:53]MH_SAM_APDU [14:51:53]CAPDU: 80 13 01 00 [14:51:53]Write to MH i2c: E2 08 00 6A 1C 80 13 01 00 00 00 00 00 03 [14:51:53]Write i2c OK [14:51:53]MH_I2C_Read... [14:51:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:53]Read from MH i2c: E2 [14:51:53]MH_I2C_Read... [14:51:53]Read from MH i2c: E2 0E 00 [14:51:53]MH_I2C_Read... [14:51:53]Read from MH i2c: E2 0E 00 6A 1C 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 DC [14:51:53]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [14:51:53]wFMCommunicate OK [14:51:53]SAM_PROTO_GetShiftState done [14:51:53]FM_GetShiftState done [14:51:53]opened in 1721003876 [14:51:53]opened+sec_in_day 1721090276 [14:51:53]quantity*price = 30001 [14:51:53]sum+1 = 30002 [14:51:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.01 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 0.00 Безнал.: 300.01 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 195 15.07.2024 14:51 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874718 ФД: 165322 ФПД: 230106574205324 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T145154&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165322&fm=230106574205324&tin=02508201610067®Number=0000000000090829&sum=30001 [14:51:54]StoreToDocumentArchive [14:51:54]shift 448 fd 165322 [14:51:54]save to /storage/0448/doc_00165322 [14:51:54]save last doc name /storage/0448/doc_00165322 to /storage/kkm_last_doc_name [14:51:54]save OK [14:51:54]Clear old archive folders... [14:51:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:51:54]tlvbuf is 0189D9E0 [14:51:54]SAM_PROTO_ClearQueue [14:51:54]wFMCommunicate request_size=4 [14:51:54]MH_SAM_APDU [14:51:54]CAPDU: 80 09 00 00 [14:51:54]Write to MH i2c: E2 08 00 77 1C 80 09 00 00 00 00 00 00 05 [14:51:54]Write i2c OK [14:51:54]MH_I2C_Read... [14:51:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:51:54]Read from MH i2c: E2 [14:51:54]MH_I2C_Read... [14:51:54]Read from MH i2c: E2 03 00 [14:51:54]MH_I2C_Read... [14:51:54]Read from MH i2c: E2 03 00 77 1C 00 90 00 07 [14:51:54]RAPDU: 90 00 [14:51:54]wFMCommunicate OK [14:51:54]SAM_PROTO_ClearQueue done [14:51:54]KKMCreateOFDPacket [14:51:54]OFDProtocolAddRootSTLVToBuf [14:51:54]FM_MakeSignedData [14:51:54]FM_MakeSignedData [14:51:54]SAM_PROTO_SignData [14:51:54]wFMCommunicate request_size=4 [14:51:54]MH_SAM_APDU [14:51:54]CAPDU: 80 0D 01 02 [14:51:54]Write to MH i2c: E2 08 00 78 1C 80 0D 01 02 00 00 00 00 0D [14:51:54]Write i2c OK [14:51:54]MH_I2C_Read... [14:51:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:51:54]Read from MH i2c: E2 [14:51:54]MH_I2C_Read... [14:51:54]Read from MH i2c: E2 03 00 [14:51:54]MH_I2C_Read... [14:51:54]Read from MH i2c: E2 03 00 78 1C 00 90 00 08 [14:51:54]RAPDU: 90 00 [14:51:54]wFMCommunicate OK [14:51:54]wFMCommunicate request_size=255 [14:51:54]MH_SAM_APDU [14:51:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 31 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 8A 37 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CA 85 02 00 35 04 06 00 D1 [14:51:54]Write to MH i2c: E2 02 01 79 1C 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 F8 11 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 31 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 8A 37 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CA 85 02 00 35 04 06 00 D1 00 00 95 [14:51:54]Write i2c OK [14:51:54]MH_I2C_Read... [14:51:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:54]Read from MH i2c: E2 [14:51:54]MH_I2C_Read... [14:51:54]Read from MH i2c: E2 03 00 [14:51:54]MH_I2C_Read... [14:51:54]Read from MH i2c: E2 03 00 79 1C 00 90 00 09 [14:51:54]RAPDU: 90 00 [14:51:54]wFMCommunicate OK [14:51:54]wFMCommunicate request_size=10 [14:51:54]MH_SAM_APDU [14:51:54]CAPDU: 80 0D 02 02 05 47 DC 9D B1 8C [14:51:54]Write to MH i2c: E2 0D 00 7A 1C 80 0D 02 02 05 00 47 DC 9D B1 8C 00 00 17 [14:51:54]Write i2c OK [14:51:54]MH_I2C_Read... [14:51:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:54]Read from MH i2c: E2 [14:51:54]MH_I2C_Read... [14:51:54]Read from MH i2c: E2 03 00 [14:51:54]MH_I2C_Read... [14:51:54]Read from MH i2c: E2 03 00 7A 1C 00 90 00 0A [14:51:54]RAPDU: 90 00 [14:51:54]wFMCommunicate OK [14:51:54]wFMCommunicate request_size=4 [14:51:54]MH_SAM_APDU [14:51:54]CAPDU: 80 0D 03 02 [14:51:54]Write to MH i2c: E2 08 00 7B 1C 80 0D 03 02 00 00 00 00 12 [14:51:54]Write i2c OK [14:51:54]MH_I2C_Read... [14:51:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:51:54]Read from MH i2c: E2 [14:51:54]MH_I2C_Read... [14:51:54]Read from MH i2c: E2 0B 00 [14:51:54]MH_I2C_Read... [14:51:54]Read from MH i2c: E2 0B 00 7B 1C 00 60 F2 30 1C 36 76 29 F4 90 00 7A [14:51:54]RAPDU: 60 F2 30 1C 36 76 29 F4 90 00 [14:51:54]wFMCommunicate OK [14:51:54]SAM_PROTO_SignData done [14:51:54]FM_MakeSignedData done [14:51:54]CreateOFDProtocolMessage [14:51:54]wFMCommunicate request_size=4 [14:51:54]MH_SAM_APDU [14:51:54]CAPDU: 80 11 00 00 [14:51:54]Write to MH i2c: E2 08 00 7C 1C 80 11 00 00 00 00 00 00 12 [14:51:54]Write i2c OK [14:51:54]MH_I2C_Read... [14:51:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:54]Read from MH i2c: E2 [14:51:54]MH_I2C_Read... [14:51:54]Read from MH i2c: E2 17 00 [14:51:54]MH_I2C_Read... [14:51:54]Read from MH i2c: E2 17 00 7C 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 68 [14:51:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:51:54]wFMCommunicate OK [14:51:54]CreateOFDProtocolMessage done [14:51:54]OFDSenderStorePacket 165322 [14:51:54]StoreOFDPacket docnum=165322 [14:51:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 82 C6 07 01 F0 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 F8 11 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 31 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 8A 37 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CA 85 02 00 35 04 06 00 D1 47 DC 9D B1 8C 60 F2 30 1C 36 76 29 F4 [14:51:54]CheckFolder [14:51:54]dirname=/storage/ofd_packets [14:51:54]CheckFolder done [14:51:54]ProducePacketName [14:51:54]name=ofd_packets/00165322 [14:51:54]NVStorageSaveData ofd_packets/00165322 [14:51:54]File name is /storage/ofd_packets/00165322 [14:51:54]Write 301 bytes [14:51:54]NVStorageSaveData done [14:51:54]OFDSenderStorePacket done [14:51:54]KKMCreateOFDPacket done [14:51:54]NVStorageSaveData kkm_last_timestamp [14:51:54]File name is /storage/kkm_last_timestamp [14:51:54]Write 4 bytes [14:51:54]NVStorageSaveData done [14:51:54]ExternCall_PrintAddStr [14:51:54]wPrintStart [14:51:54]Write to MH i2c: 01 00 00 7D 1C 99 [14:51:54]Write i2c OK [14:51:54]MH_I2C_Read... [14:51:54]Read from MH i2c: 01 [14:51:54]MH_I2C_Read... [14:51:54]Read from MH i2c: 01 07 00 [14:51:54]MH_I2C_Read... [14:51:54]Read from MH i2c: 01 07 00 7D 1C 00 00 00 00 00 FF 0F AE [14:51:54]RasterBufferAndPrint [14:51:54]line Счет N : (1)459433 [14:51:54]line ИНН: 02508201610067 [14:51:54]line Контрольно-Кассовый Чек [14:51:54]line ПРОДАЖА [14:51:54]line ТРК (МРК, ГНК) : 12 [14:51:55]line Товар: 2710124130 [14:51:55]line Аи-92-К-5 [14:51:55]line 4.600 * 65.22 [14:51:55]line = 300.01 [14:51:55]line НДС 12% НСП 1% [14:51:55]line > о реализуемом товаре [14:51:55]line ИТОГО: 300.01 [14:51:55]line НСП 1% : 2.65 [14:51:55]line НДС 12% : 31.86 [14:51:55]line Наличными: 0.00 [14:51:55]line Безнал.: 300.01 [14:51:55]line Место: АЗС № 72 "Партнер Нефть" [14:51:55]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:51:55]line СНО: Общий режим [14:51:55]line Чек 195 15.07.2024 14:51 [14:51:55]line Смена: 448 ФФД: 1.0 [14:51:55]line ЗНМ: 0300000160 [14:51:55]line РНМ: 0000000000090829 [14:51:55]line Версия ККМ: 001 [14:51:55]line Платежная система: АКБ Кыргызстан [14:51:55]line ФМ: 0000000000874718 [14:51:55]line ФД: 165322 [14:51:55]line ФПД: 230106574205324 [14:51:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T145154&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165322&fm=230106574205324&tin=02508201610067®Number=0000000000090829&sum=30001 [14:51:55]written 0, free lines is 4095 [14:51:55]OFD Sender: Processing packet 165322 [packets to send 106, broken 105] [14:51:55]ProducePacketName [14:51:55]name=ofd_packets/00165322 [14:51:55]OFD Sender: To server: pG, [14:51:55]CommunicateWithHost lk.salyk.kg:30040 [14:51:55]ConnectInit lk.salyk.kg [14:51:55]Connected sock=9 [14:51:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 82 C6 07 01 F0 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 F8 11 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 31 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 8A 37 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CA 85 02 00 35 04 06 00 D1 47 DC 9D B1 8C 60 F2 30 1C 36 76 29 F4 [14:51:55]Write to MH i2c: 01 00 00 A6 1C C2 [14:51:55]Write i2c OK [14:51:55]MH_I2C_Read... [14:51:55]Read from MH i2c: 01 [14:51:55]MH_I2C_Read... [14:51:55]Read from MH i2c: 01 07 00 [14:51:55]MH_I2C_Read... [14:51:55]Read from MH i2c: 01 07 00 A6 1C 00 00 00 00 00 1D 0D F3 [14:51:55]RasterBufferAndPrint [14:51:55]line [14:51:55]line [14:51:55]line [14:51:55]line [14:51:55]line [14:51:55]written 0, free lines is 3363 [14:51:55]MH_Cut [14:51:55]Write to MH i2c: D1 01 00 AD 1C 01 9B [14:51:55]Write i2c OK [14:51:55]MH_I2C_Read... [14:51:55]Read from MH i2c: D1 [14:51:55]MH_I2C_Read... [14:51:55]Read from MH i2c: D1 01 00 [14:51:55]MH_I2C_Read... [14:51:55]Read from MH i2c: D1 01 00 AD 1C 00 9A [14:51:55]Write to MH i2c: 01 00 00 AE 1C CA [14:51:55]Write i2c OK [14:51:55]MH_I2C_Read... [14:51:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 7C DF 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 37 31 38 10 04 04 00 CA 85 02 00 F4 03 04 00 14 DE 94 66 B6 04 01 00 00 8A 59 77 C9 D5 FB A4 DC [14:51:55]CommunicateWithHost err = 0 [14:51:55]CheckOFDResponse [14:51:55]1017 (14) - 77093643461234 [14:51:55]1041 (16) - 0000000000874718 [14:51:55]1040 (4) - 165322 [14:51:55]1012 (4) - 15.07.2024 08:30 [14:51:55]1206 (1) - 0 [14:51:55]OFD Sender: Remove packet 165322 [14:51:55]ProducePacketName [14:51:55]name=ofd_packets/00165322 [14:51:55]NVStorageDeleteData [14:51:56]*** Cut start [14:51:56]*** Partial cut [14:51:56]*** CUTSNS_PIN = 1 [14:51:56]*** CUTSNS_PIN = 0 [14:51:56]OFD Sender: No OFD packet to send [14:51:56]*** Brake cut motor [14:51:56]Read from MH i2c: 01 [14:51:56]MH_I2C_Read... [14:51:56]*** Stop cut motor [14:51:56]*** Cut end [14:51:56]Read from MH i2c: 01 07 00 [14:51:56]MH_I2C_Read... [14:51:56]Read from MH i2c: 01 07 00 AE 1C 00 00 00 00 00 FF 0F DF [14:51:56]process_action close_receipt done [14:51:56]requested_data is exist [14:51:56]produce_requested_data [14:51:56]requested_item fm.sn is exist - process it [14:51:56]wFMCommunicate request_size=4 [14:51:56]MH_SAM_APDU [14:51:56]CAPDU: 80 11 00 00 [14:51:56]Write to MH i2c: E2 08 00 AF 1C 80 11 00 00 00 00 00 00 45 [14:51:56]Write i2c OK [14:51:56]MH_I2C_Read... [14:51:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:56]Read from MH i2c: E2 [14:51:56]MH_I2C_Read... [14:51:56]Read from MH i2c: E2 17 00 [14:51:56]MH_I2C_Read... [14:51:56]Read from MH i2c: E2 17 00 AF 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 9B [14:51:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:51:56]wFMCommunicate OK [14:51:56]requested_item fd.num is exist - process it [14:51:56]SAM_PROTO_GetFieldsCounters [14:51:56]wFMCommunicate request_size=4 [14:51:56]MH_SAM_APDU [14:51:56]CAPDU: 80 13 00 00 [14:51:56]Write to MH i2c: E2 08 00 B0 1C 80 13 00 00 00 00 00 00 48 [14:51:56]Write i2c OK [14:51:56]MH_I2C_Read... [14:51:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:51:56]Read from MH i2c: E2 [14:51:56]MH_I2C_Read... [14:51:56]Read from MH i2c: E2 62 00 [14:51:56]MH_I2C_Read... [14:51:56]Read from MH i2c: E2 62 00 B0 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 CA 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [14:51: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 CA 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:51:56]wFMCommunicate OK [14:51:56]SAM_PROTO_GetFieldsCounters done [14:51:56]requested_item shift.num is exist - process it [14:51:56]requested_item shift.opened is exist - process it [14:51:56]req_shift_opened [14:51:56]FM_GetShiftState [14:51:56]SAM_PROTO_GetShiftState [14:51:56]wFMCommunicate request_size=4 [14:51:56]MH_SAM_APDU [14:51:56]CAPDU: 80 13 01 00 [14:51:56]Write to MH i2c: E2 08 00 B1 1C 80 13 01 00 00 00 00 00 4A [14:51:56]Write i2c OK [14:51:56]MH_I2C_Read... [14:51:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:56]Read from MH i2c: E2 [14:51:56]MH_I2C_Read... [14:51:56]Read from MH i2c: E2 0E 00 [14:51:56]MH_I2C_Read... [14:51:56]Read from MH i2c: E2 0E 00 B1 1C 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 23 [14:51:56]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [14:51:56]wFMCommunicate OK [14:51:56]SAM_PROTO_GetShiftState done [14:51:56]FM_GetShiftState done [14:51:56]req_shift_opened done [14:51:56]requested_item shift.open_date is exist - process it [14:51:56]req_shift_open_date [14:51:56]req_shift_open_date done [14:51:56]produce_requested_data done [14:51:56]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165322,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [14:51:56]process_action_free close_receipt [14:51:56]json_value_free [14:51:56]json_value_free done [14:51:56]process_json_proto returns [14:51:56]Send response to host [14:51:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165322,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [14:51:56]free response buf [14:51:56]execute_script done [14:51:56]execute_script returns [14:51:56]free content buf [14:51:56]Sock 10.Close socket [14:51:56]Sock 10.Thread stoped [14:52:01]OFD Sender: No OFD packet to send [14:52:06]OFD Sender: No OFD packet to send [14:52:11]OFD Sender: No OFD packet to send [14:52:16]OFD Sender: No OFD packet to send [14:52:21]OFD Sender: No OFD packet to send [14:52:26]OFD Sender: No OFD packet to send [14:52:31]OFD Sender: No OFD packet to send [14:52:36]OFD Sender: No OFD packet to send [14:52:41]OFD Sender: No OFD packet to send [14:52:46]OFD Sender: No OFD packet to send [14:52:51]OFD Sender: No OFD packet to send [14:52:56]OFD Sender: No OFD packet to send [14:53:01]OFD Sender: No OFD packet to send [14:53:06]OFD Sender: No OFD packet to send [14:53:11]OFD Sender: No OFD packet to send [14:53:16]OFD Sender: No OFD packet to send [14:53:21]OFD Sender: No OFD packet to send [14:53:26]OFD Sender: No OFD packet to send [14:53:31]OFD Sender: No OFD packet to send [14:53:36]OFD Sender: No OFD packet to send [14:53:41]OFD Sender: No OFD packet to send [14:53:43]accept exits with 8 [14:53:43]New connection [14:53:43]New thread 3066854756 created [14:53:43]Thread 3066711396 joined [14:53:43]Waiting for new connection... [14:53:43] Sock 8.Parse request [14:53:43]Sock 8.Check first char [14:53:43]Sock 8.First char is OK [14:53:43]request: POST /json_proto HTTP/1.0 [14:53:43]Method: POST [14:53:43]URL: /json_proto [14:53:43]Method is POST - this is cgi request [14:53:43]url: /json_proto [14:53:43]query_string will be loaded in cgi processing [14:53:43]execute_cgi json_proto POST (null) [14:53:43]execute_cgi path=json_proto method=POST [14:53:43]POST find Content-Length [14:53:43]Host: 172.17.56.4:8080 [14:53:43]Content-Length: 677 [14:53:43]Content-Type: application/json [14:53:43] [14:53:43]POST finish read [14:53:43]Found Content-Length = 677 [14:53:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459434", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:53:43]execute_script... [14:53:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459434", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:53:43]POST & json_proto [14:53:43]process_json_proto [14:53:43]json parsed OK: [14:53:43]protocol is kg_v1.0 [14:53:43]action value=close_receipt [14:53:43]process_action close_receipt [14:53:43]cmd_close_receipt [14:53:43]MH_GetDate [14:53:43]Write to MH i2c: F0 00 00 B2 1C BD [14:53:43]Write i2c OK [14:53:43]MH_I2C_Read... [14:53:43]Read from MH i2c: F0 [14:53:43]MH_I2C_Read... [14:53:43]Read from MH i2c: F0 09 00 [14:53:43]MH_I2C_Read... [14:53:43]Read from MH i2c: F0 09 00 B2 1C 00 F8 37 95 66 C9 DC B2 64 AB [14:53:43]GetLastDocTimeStamp 1721055114 [14:53:43]current date 1721055224 [14:53:43]FM_GetShiftState [14:53:43]SAM_PROTO_GetShiftState [14:53:43]wFMCommunicate request_size=4 [14:53:43]MH_SAM_APDU [14:53:43]CAPDU: 80 13 01 00 [14:53:43]Write to MH i2c: E2 08 00 B3 1C 80 13 01 00 00 00 00 00 4C [14:53:43]Write i2c OK [14:53:43]MH_I2C_Read... [14:53:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:43]Read from MH i2c: E2 [14:53:43]MH_I2C_Read... [14:53:43]Read from MH i2c: E2 0E 00 [14:53:43]MH_I2C_Read... [14:53:43]Read from MH i2c: E2 0E 00 B3 1C 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 25 [14:53:43]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [14:53:43]wFMCommunicate OK [14:53:43]SAM_PROTO_GetShiftState done [14:53:43]FM_GetShiftState done [14:53:43]opened in 1721003876 [14:53:43]opened+sec_in_day 1721090276 [14:53:43]quantity*price = 30004 [14:53:43]sum+1 = 30006 [14:53:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 196 15.07.2024 14:53 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165323 ФПД: 242857054282495 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T145344&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165323&fm=242857054282495&tin=02508201610067®Number=0000000000090829&sum=30000 [14:53:44]StoreToDocumentArchive [14:53:44]shift 448 fd 165323 [14:53:44]save to /storage/0448/doc_00165323 [14:53:44]save last doc name /storage/0448/doc_00165323 to /storage/kkm_last_doc_name [14:53:44]save OK [14:53:44]Clear old archive folders... [14:53:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:53:44]tlvbuf is B6E90090 [14:53:44]SAM_PROTO_ClearQueue [14:53:44]wFMCommunicate request_size=4 [14:53:44]MH_SAM_APDU [14:53:44]CAPDU: 80 09 00 00 [14:53:44]Write to MH i2c: E2 08 00 C0 1C 80 09 00 00 00 00 00 00 4E [14:53:44]Write i2c OK [14:53:44]MH_I2C_Read... [14:53:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:53:44]Read from MH i2c: E2 [14:53:44]MH_I2C_Read... [14:53:44]Read from MH i2c: E2 03 00 [14:53:44]MH_I2C_Read... [14:53:44]Read from MH i2c: E2 03 00 C0 1C 00 90 00 50 [14:53:44]RAPDU: 90 00 [14:53:44]wFMCommunicate OK [14:53:44]SAM_PROTO_ClearQueue done [14:53:44]KKMCreateOFDPacket [14:53:44]OFDProtocolAddRootSTLVToBuf [14:53:44]FM_MakeSignedData [14:53:44]FM_MakeSignedData [14:53:44]SAM_PROTO_SignData [14:53:44]wFMCommunicate request_size=4 [14:53:44]MH_SAM_APDU [14:53:44]CAPDU: 80 0D 01 02 [14:53:44]Write to MH i2c: E2 08 00 C1 1C 80 0D 01 02 00 00 00 00 56 [14:53:44]Write i2c OK [14:53:44]MH_I2C_Read... [14:53:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:53:44]Read from MH i2c: E2 [14:53:44]MH_I2C_Read... [14:53:44]Read from MH i2c: E2 03 00 [14:53:44]MH_I2C_Read... [14:53:44]Read from MH i2c: E2 03 00 C1 1C 00 90 00 51 [14:53:44]RAPDU: 90 00 [14:53:44]wFMCommunicate OK [14:53:44]wFMCommunicate request_size=255 [14:53:44]MH_SAM_APDU [14:53:44]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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 F8 37 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CB 85 02 00 35 04 06 00 DC [14:53:44]Write to MH i2c: E2 02 01 C2 1C 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 F8 37 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CB 85 02 00 35 04 06 00 DC 00 00 6D [14:53:44]Write i2c OK [14:53:44]MH_I2C_Read... [14:53:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:44]Read from MH i2c: E2 [14:53:44]MH_I2C_Read... [14:53:44]Read from MH i2c: E2 03 00 [14:53:44]MH_I2C_Read... [14:53:44]Read from MH i2c: E2 03 00 C2 1C 00 90 00 52 [14:53:44]RAPDU: 90 00 [14:53:44]wFMCommunicate OK [14:53:44]wFMCommunicate request_size=10 [14:53:44]MH_SAM_APDU [14:53:44]CAPDU: 80 0D 02 02 05 E0 90 73 A2 FF [14:53:44]Write to MH i2c: E2 0D 00 C3 1C 80 0D 02 02 05 00 E0 90 73 A2 FF 00 00 E7 [14:53:44]Write i2c OK [14:53:44]MH_I2C_Read... [14:53:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:44]Read from MH i2c: E2 [14:53:44]MH_I2C_Read... [14:53:44]Read from MH i2c: E2 03 00 [14:53:44]MH_I2C_Read... [14:53:44]Read from MH i2c: E2 03 00 C3 1C 00 90 00 53 [14:53:44]RAPDU: 90 00 [14:53:44]wFMCommunicate OK [14:53:44]wFMCommunicate request_size=4 [14:53:44]MH_SAM_APDU [14:53:44]CAPDU: 80 0D 03 02 [14:53:44]Write to MH i2c: E2 08 00 C4 1C 80 0D 03 02 00 00 00 00 5B [14:53:44]Write i2c OK [14:53:44]MH_I2C_Read... [14:53:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:53:44]Read from MH i2c: E2 [14:53:44]MH_I2C_Read... [14:53:44]Read from MH i2c: E2 0B 00 [14:53:44]MH_I2C_Read... [14:53:44]Read from MH i2c: E2 0B 00 C4 1C 00 95 0E F9 14 D7 B5 49 7E 90 00 5F [14:53:44]RAPDU: 95 0E F9 14 D7 B5 49 7E 90 00 [14:53:44]wFMCommunicate OK [14:53:44]SAM_PROTO_SignData done [14:53:44]FM_MakeSignedData done [14:53:44]CreateOFDProtocolMessage [14:53:44]wFMCommunicate request_size=4 [14:53:44]MH_SAM_APDU [14:53:44]CAPDU: 80 11 00 00 [14:53:44]Write to MH i2c: E2 08 00 C5 1C 80 11 00 00 00 00 00 00 5B [14:53:44]Write i2c OK [14:53:44]MH_I2C_Read... [14:53:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:44]Read from MH i2c: E2 [14:53:44]MH_I2C_Read... [14:53:44]Read from MH i2c: E2 17 00 [14:53:44]MH_I2C_Read... [14:53:44]Read from MH i2c: E2 17 00 C5 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B1 [14:53:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:53:44]wFMCommunicate OK [14:53:44]CreateOFDProtocolMessage done [14:53:44]OFDSenderStorePacket 165323 [14:53:44]StoreOFDPacket docnum=165323 [14:53:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 27 CF 07 01 79 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 F8 37 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CB 85 02 00 35 04 06 00 DC E0 90 73 A2 FF 95 0E F9 14 D7 B5 49 7E [14:53:44]CheckFolder [14:53:44]dirname=/storage/ofd_packets [14:53:44]CheckFolder done [14:53:44]ProducePacketName [14:53:44]name=ofd_packets/00165323 [14:53:44]NVStorageSaveData ofd_packets/00165323 [14:53:44]File name is /storage/ofd_packets/00165323 [14:53:44]Write 301 bytes [14:53:44]NVStorageSaveData done [14:53:44]OFDSenderStorePacket done [14:53:44]KKMCreateOFDPacket done [14:53:44]NVStorageSaveData kkm_last_timestamp [14:53:44]File name is /storage/kkm_last_timestamp [14:53:44]Write 4 bytes [14:53:44]NVStorageSaveData done [14:53:44]ExternCall_PrintAddStr [14:53:44]wPrintStart [14:53:44]Write to MH i2c: 01 00 00 C6 1C E2 [14:53:44]Write i2c OK [14:53:44]MH_I2C_Read... [14:53:44]Read from MH i2c: 01 [14:53:44]MH_I2C_Read... [14:53:44]Read from MH i2c: 01 07 00 [14:53:44]MH_I2C_Read... [14:53:44]Read from MH i2c: 01 07 00 C6 1C 00 00 00 00 00 FF 0F F7 [14:53:44]RasterBufferAndPrint [14:53:44]line Счет N : (1)459434 [14:53:44]line ИНН: 02508201610067 [14:53:44]line Контрольно-Кассовый Чек [14:53:44]line ПРОДАЖА [14:53:44]line ТРК (МРК, ГНК) : 22 [14:53:44]line Товар: 2710124130 [14:53:44]line Аи-92-К-5 [14:53:44]line 4.560 * 65.80 [14:53:44]line = 300.05 [14:53:44]line НДС 12% НСП 1% [14:53:44]line > о реализуемом товаре [14:53:44]line ОКРУГЛЕНИЕ: -0.05 [14:53:44]line ИТОГО: 300.00 [14:53:44]line Внесено: 300.00 [14:53:44]line СДАЧА: 0.00 [14:53:44]line НСП 1% : 2.65 [14:53:44]line НДС 12% : 31.86 [14:53:44]line Наличными: 300.00 [14:53:44]line Безнал.: 0.00 [14:53:44]line Место: АЗС № 72 "Партнер Нефть" [14:53:44]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:53:44]line СНО: Общий режим [14:53:44]line Чек 196 15.07.2024 14:53 [14:53:44]line Смена: 448 ФФД: 1.0 [14:53:44]line ЗНМ: 0300000160 [14:53:44]line РНМ: 0000000000090829 [14:53:44]line Версия ККМ: 001 [14:53:44]line ФМ: 0000000000874718 [14:53:44]line ФД: 165323 [14:53:44]line ФПД: 242857054282495 [14:53:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T145344&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165323&fm=242857054282495&tin=02508201610067®Number=0000000000090829&sum=30000 [14:53:45]written 0, free lines is 4095 [14:53:45]OFD Sender: Processing packet 165323 [packets to send 106, broken 105] [14:53:45]ProducePacketName [14:53:45]name=ofd_packets/00165323 [14:53:45]OFD Sender: To server: pG, [14:53:45]CommunicateWithHost lk.salyk.kg:30040 [14:53:45]ConnectInit lk.salyk.kg [14:53:45]Connected sock=10 [14:53:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 27 CF 07 01 79 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 F8 37 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CB 85 02 00 35 04 06 00 DC E0 90 73 A2 FF 95 0E F9 14 D7 B5 49 7E [14:53:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 64 45 47 00 DD 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 CB 85 02 00 F4 03 04 00 82 DE 94 66 B6 04 01 00 00 44 6B AF 3A 96 3D 16 3A [14:53:45]CommunicateWithHost err = 0 [14:53:45]CheckOFDResponse [14:53:45]1017 (14) - 77093643461234 [14:53:45]1041 (16) - 0000000000874718 [14:53:45]1040 (4) - 165323 [14:53:45]1012 (4) - 15.07.2024 08:32 [14:53:45]1206 (1) - 0 [14:53:45]OFD Sender: Remove packet 165323 [14:53:45]ProducePacketName [14:53:45]name=ofd_packets/00165323 [14:53:45]NVStorageDeleteData [14:53:45]Write to MH i2c: 01 00 00 F0 1C 0C [14:53:45]Write i2c OK [14:53:45]MH_I2C_Read... [14:53:45]Read from MH i2c: 01 [14:53:45]MH_I2C_Read... [14:53:45]Read from MH i2c: 01 07 00 [14:53:45]MH_I2C_Read... [14:53:45]Read from MH i2c: 01 07 00 F0 1C 00 00 00 00 00 FF 0C 1E [14:53:45]RasterBufferAndPrint [14:53:45]line [14:53:45]line [14:53:45]line [14:53:45]line [14:53:45]line [14:53:45]written 0, free lines is 3336 [14:53:45]MH_Cut [14:53:45]Write to MH i2c: D1 01 00 F7 1C 01 E5 [14:53:45]Write i2c OK [14:53:45]MH_I2C_Read... [14:53:45]Read from MH i2c: D1 [14:53:45]MH_I2C_Read... [14:53:45]Read from MH i2c: D1 01 00 [14:53:45]MH_I2C_Read... [14:53:45]Read from MH i2c: D1 01 00 F7 1C 00 E4 [14:53:45]Write to MH i2c: 01 00 00 F8 1C 14 [14:53:45]Write i2c OK [14:53:45]MH_I2C_Read... [14:53:45]OFD Sender: No OFD packet to send [14:53:46]*** Cut start [14:53:46]*** Partial cut [14:53:46]*** CUTSNS_PIN = 1 [14:53:46]*** CUTSNS_PIN = 0 [14:53:46]*** Brake cut motor [14:53:46]Read from MH i2c: 01 [14:53:46]MH_I2C_Read... [14:53:46]*** Stop cut motor [14:53:46]*** Cut end [14:53:46]Read from MH i2c: 01 07 00 [14:53:46]MH_I2C_Read... [14:53:46]Read from MH i2c: 01 07 00 F8 1C 00 00 00 00 00 FF 0F 29 [14:53:46]process_action close_receipt done [14:53:46]requested_data is exist [14:53:46]produce_requested_data [14:53:46]requested_item fm.sn is exist - process it [14:53:46]wFMCommunicate request_size=4 [14:53:46]MH_SAM_APDU [14:53:46]CAPDU: 80 11 00 00 [14:53:46]Write to MH i2c: E2 08 00 F9 1C 80 11 00 00 00 00 00 00 8F [14:53:46]Write i2c OK [14:53:46]MH_I2C_Read... [14:53:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:46]Read from MH i2c: E2 [14:53:46]MH_I2C_Read... [14:53:46]Read from MH i2c: E2 17 00 [14:53:46]MH_I2C_Read... [14:53:46]Read from MH i2c: E2 17 00 F9 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E5 [14:53:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:53:46]wFMCommunicate OK [14:53:46]requested_item fd.num is exist - process it [14:53:46]SAM_PROTO_GetFieldsCounters [14:53:46]wFMCommunicate request_size=4 [14:53:46]MH_SAM_APDU [14:53:46]CAPDU: 80 13 00 00 [14:53:46]Write to MH i2c: E2 08 00 FA 1C 80 13 00 00 00 00 00 00 92 [14:53:46]Write i2c OK [14:53:46]MH_I2C_Read... [14:53:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:53:47]Read from MH i2c: E2 [14:53:47]MH_I2C_Read... [14:53:47]Read from MH i2c: E2 62 00 [14:53:47]MH_I2C_Read... [14:53:47]Read from MH i2c: E2 62 00 FA 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 CB 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [14:53: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 CB 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:53:47]wFMCommunicate OK [14:53:47]SAM_PROTO_GetFieldsCounters done [14:53:47]requested_item shift.num is exist - process it [14:53:47]requested_item shift.opened is exist - process it [14:53:47]req_shift_opened [14:53:47]FM_GetShiftState [14:53:47]SAM_PROTO_GetShiftState [14:53:47]wFMCommunicate request_size=4 [14:53:47]MH_SAM_APDU [14:53:47]CAPDU: 80 13 01 00 [14:53:47]Write to MH i2c: E2 08 00 FB 1C 80 13 01 00 00 00 00 00 94 [14:53:47]Write i2c OK [14:53:47]MH_I2C_Read... [14:53:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:47]Read from MH i2c: E2 [14:53:47]MH_I2C_Read... [14:53:47]Read from MH i2c: E2 0E 00 [14:53:47]MH_I2C_Read... [14:53:47]Read from MH i2c: E2 0E 00 FB 1C 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 6D [14:53:47]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [14:53:47]wFMCommunicate OK [14:53:47]SAM_PROTO_GetShiftState done [14:53:47]FM_GetShiftState done [14:53:47]req_shift_opened done [14:53:47]requested_item shift.open_date is exist - process it [14:53:47]req_shift_open_date [14:53:47]req_shift_open_date done [14:53:47]produce_requested_data done [14:53:47]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165323,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [14:53:47]process_action_free close_receipt [14:53:47]json_value_free [14:53:47]json_value_free done [14:53:47]process_json_proto returns [14:53:47]Send response to host [14:53:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165323,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [14:53:47]free response buf [14:53:47]execute_script done [14:53:47]execute_script returns [14:53:47]free content buf [14:53:47]Sock 8.Close socket [14:53:47]Sock 8.Thread stoped [14:53:50]OFD Sender: No OFD packet to send [14:53:55]OFD Sender: No OFD packet to send [14:54:00]OFD Sender: No OFD packet to send [14:54:05]OFD Sender: No OFD packet to send [14:54:10]OFD Sender: No OFD packet to send [14:54:16]OFD Sender: No OFD packet to send [14:54:21]OFD Sender: No OFD packet to send [14:54:26]OFD Sender: No OFD packet to send [14:54:31]OFD Sender: No OFD packet to send [14:54:36]OFD Sender: No OFD packet to send [14:54:41]OFD Sender: No OFD packet to send [14:54:46]OFD Sender: No OFD packet to send [14:54:51]OFD Sender: No OFD packet to send [14:54:56]OFD Sender: No OFD packet to send [14:55:01]OFD Sender: No OFD packet to send [14:55:06]OFD Sender: No OFD packet to send [14:55:11]OFD Sender: No OFD packet to send [14:55:16]OFD Sender: No OFD packet to send [14:55:21]OFD Sender: No OFD packet to send [14:55:26]OFD Sender: No OFD packet to send [14:55:31]OFD Sender: No OFD packet to send [14:55:36]OFD Sender: No OFD packet to send [14:55:41]OFD Sender: No OFD packet to send [14:55:46]OFD Sender: No OFD packet to send [14:55:51]OFD Sender: No OFD packet to send [14:55:56]OFD Sender: No OFD packet to send [14:56:01]OFD Sender: No OFD packet to send [14:56:06]OFD Sender: No OFD packet to send [14:56:11]OFD Sender: No OFD packet to send [14:56:13]accept exits with 9 [14:56:13]New connection [14:56:13]New thread 3066711396 created [14:56:13]Thread 3066854756 joined [14:56:13]Waiting for new connection... [14:56:13] Sock 9.Parse request [14:56:13]Sock 9.Check first char [14:56:13]Sock 9.First char is OK [14:56:13]request: POST /json_proto HTTP/1.0 [14:56:13]Method: POST [14:56:13]URL: /json_proto [14:56:13]Method is POST - this is cgi request [14:56:13]url: /json_proto [14:56:13]query_string will be loaded in cgi processing [14:56:13]execute_cgi json_proto POST (null) [14:56:13]execute_cgi path=json_proto method=POST [14:56:13]POST find Content-Length [14:56:13]Host: 172.17.56.4:8080 [14:56:13]Content-Length: 678 [14:56:13]Content-Type: application/json [14:56:13] [14:56:13]POST finish read [14:56:13]Found Content-Length = 678 [14:56:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459435", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 12.160, "sum" : 800.13, "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" ] } } [14:56:13]execute_script... [14:56:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459435", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 12.160, "sum" : 800.13, "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" ] } } [14:56:13]POST & json_proto [14:56:13]process_json_proto [14:56:13]json parsed OK: [14:56:13]protocol is kg_v1.0 [14:56:13]action value=close_receipt [14:56:13]process_action close_receipt [14:56:13]cmd_close_receipt [14:56:13]MH_GetDate [14:56:13]Write to MH i2c: F0 00 00 FC 1C 07 [14:56:13]Write i2c OK [14:56:13]MH_I2C_Read... [14:56:13]Read from MH i2c: F0 [14:56:13]MH_I2C_Read... [14:56:13]Read from MH i2c: F0 09 00 [14:56:13]MH_I2C_Read... [14:56:13]Read from MH i2c: F0 09 00 FC 1C 00 8E 38 95 66 C9 DC B2 64 8C [14:56:13]GetLastDocTimeStamp 1721055224 [14:56:13]current date 1721055374 [14:56:13]FM_GetShiftState [14:56:13]SAM_PROTO_GetShiftState [14:56:13]wFMCommunicate request_size=4 [14:56:13]MH_SAM_APDU [14:56:13]CAPDU: 80 13 01 00 [14:56:13]Write to MH i2c: E2 08 00 FD 1C 80 13 01 00 00 00 00 00 96 [14:56:13]Write i2c OK [14:56:13]MH_I2C_Read... [14:56:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:13]Read from MH i2c: E2 [14:56:13]MH_I2C_Read... [14:56:13]Read from MH i2c: E2 0E 00 [14:56:13]MH_I2C_Read... [14:56:13]Read from MH i2c: E2 0E 00 FD 1C 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 6F [14:56:13]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [14:56:13]wFMCommunicate OK [14:56:13]SAM_PROTO_GetShiftState done [14:56:13]FM_GetShiftState done [14:56:13]opened in 1721003876 [14:56:13]opened+sec_in_day 1721090276 [14:56:13]quantity*price = 80012 [14:56:13]sum+1 = 80014 [14:56:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 197 15.07.2024 14:56 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165324 ФПД: 221502743032397 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T145614&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165324&fm=221502743032397&tin=02508201610067®Number=0000000000090829&sum=80000 [14:56:14]StoreToDocumentArchive [14:56:14]shift 448 fd 165324 [14:56:14]save to /storage/0448/doc_00165324 [14:56:14]save last doc name /storage/0448/doc_00165324 to /storage/kkm_last_doc_name [14:56:14]save OK [14:56:14]Clear old archive folders... [14:56:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:56:14]tlvbuf is B6F3DC80 [14:56:14]SAM_PROTO_ClearQueue [14:56:14]wFMCommunicate request_size=4 [14:56:14]MH_SAM_APDU [14:56:14]CAPDU: 80 09 00 00 [14:56:14]Write to MH i2c: E2 08 00 0A 1D 80 09 00 00 00 00 00 00 99 [14:56:14]Write i2c OK [14:56:14]MH_I2C_Read... [14:56:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:56:14]Read from MH i2c: E2 [14:56:14]MH_I2C_Read... [14:56:14]Read from MH i2c: E2 03 00 [14:56:14]MH_I2C_Read... [14:56:14]Read from MH i2c: E2 03 00 0A 1D 00 90 00 9B [14:56:14]RAPDU: 90 00 [14:56:14]wFMCommunicate OK [14:56:14]SAM_PROTO_ClearQueue done [14:56:14]KKMCreateOFDPacket [14:56:14]OFDProtocolAddRootSTLVToBuf [14:56:14]FM_MakeSignedData [14:56:14]FM_MakeSignedData [14:56:14]SAM_PROTO_SignData [14:56:14]wFMCommunicate request_size=4 [14:56:14]MH_SAM_APDU [14:56:14]CAPDU: 80 0D 01 02 [14:56:14]Write to MH i2c: E2 08 00 0B 1D 80 0D 01 02 00 00 00 00 A1 [14:56:14]Write i2c OK [14:56:14]MH_I2C_Read... [14:56:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:56:14]Read from MH i2c: E2 [14:56:14]MH_I2C_Read... [14:56:14]Read from MH i2c: E2 03 00 [14:56:14]MH_I2C_Read... [14:56:14]Read from MH i2c: E2 03 00 0B 1D 00 90 00 9C [14:56:14]RAPDU: 90 00 [14:56:14]wFMCommunicate OK [14:56:14]wFMCommunicate request_size=255 [14:56:14]MH_SAM_APDU [14:56:14]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 80 2F 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 8D 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 C5 00 00 00 F4 03 04 00 8E 38 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CC 85 02 00 35 04 06 00 C9 [14:56:14]Write to MH i2c: E2 02 01 0C 1D 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 80 2F 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 8D 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 C5 00 00 00 F4 03 04 00 8E 38 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CC 85 02 00 35 04 06 00 C9 00 00 E0 [14:56:14]Write i2c OK [14:56:14]MH_I2C_Read... [14:56:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:14]Read from MH i2c: E2 [14:56:14]MH_I2C_Read... [14:56:14]Read from MH i2c: E2 03 00 [14:56:14]MH_I2C_Read... [14:56:14]Read from MH i2c: E2 03 00 0C 1D 00 90 00 9D [14:56:14]RAPDU: 90 00 [14:56:14]wFMCommunicate OK [14:56:14]wFMCommunicate request_size=10 [14:56:14]MH_SAM_APDU [14:56:14]CAPDU: 80 0D 02 02 05 74 A0 50 B2 4D [14:56:14]Write to MH i2c: E2 0D 00 0D 1D 80 0D 02 02 05 00 74 A0 50 B2 4D 00 00 11 [14:56:14]Write i2c OK [14:56:14]MH_I2C_Read... [14:56:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:15]Read from MH i2c: E2 [14:56:15]MH_I2C_Read... [14:56:15]Read from MH i2c: E2 03 00 [14:56:15]MH_I2C_Read... [14:56:15]Read from MH i2c: E2 03 00 0D 1D 00 90 00 9E [14:56:15]RAPDU: 90 00 [14:56:15]wFMCommunicate OK [14:56:15]wFMCommunicate request_size=4 [14:56:15]MH_SAM_APDU [14:56:15]CAPDU: 80 0D 03 02 [14:56:15]Write to MH i2c: E2 08 00 0E 1D 80 0D 03 02 00 00 00 00 A6 [14:56:15]Write i2c OK [14:56:15]MH_I2C_Read... [14:56:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:56:15]Read from MH i2c: E2 [14:56:15]MH_I2C_Read... [14:56:15]Read from MH i2c: E2 0B 00 [14:56:15]MH_I2C_Read... [14:56:15]Read from MH i2c: E2 0B 00 0E 1D 00 8B 6A B1 6B 8B D7 BC 12 90 00 E8 [14:56:15]RAPDU: 8B 6A B1 6B 8B D7 BC 12 90 00 [14:56:15]wFMCommunicate OK [14:56:15]SAM_PROTO_SignData done [14:56:15]FM_MakeSignedData done [14:56:15]CreateOFDProtocolMessage [14:56:15]wFMCommunicate request_size=4 [14:56:15]MH_SAM_APDU [14:56:15]CAPDU: 80 11 00 00 [14:56:15]Write to MH i2c: E2 08 00 0F 1D 80 11 00 00 00 00 00 00 A6 [14:56:15]Write i2c OK [14:56:15]MH_I2C_Read... [14:56:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:15]Read from MH i2c: E2 [14:56:15]MH_I2C_Read... [14:56:15]Read from MH i2c: E2 17 00 [14:56:15]MH_I2C_Read... [14:56:15]Read from MH i2c: E2 17 00 0F 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FC [14:56:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:56:15]wFMCommunicate OK [14:56:15]CreateOFDProtocolMessage done [14:56:15]OFDSenderStorePacket 165324 [14:56:15]StoreOFDPacket docnum=165324 [14:56:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 BB FA 07 01 6A 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 2F 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 8D 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 C5 00 00 00 F4 03 04 00 8E 38 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CC 85 02 00 35 04 06 00 C9 74 A0 50 B2 4D 8B 6A B1 6B 8B D7 BC 12 [14:56:15]CheckFolder [14:56:15]dirname=/storage/ofd_packets [14:56:15]CheckFolder done [14:56:15]ProducePacketName [14:56:15]name=ofd_packets/00165324 [14:56:15]NVStorageSaveData ofd_packets/00165324 [14:56:15]File name is /storage/ofd_packets/00165324 [14:56:15]Write 301 bytes [14:56:15]NVStorageSaveData done [14:56:15]OFDSenderStorePacket done [14:56:15]KKMCreateOFDPacket done [14:56:15]NVStorageSaveData kkm_last_timestamp [14:56:15]File name is /storage/kkm_last_timestamp [14:56:15]Write 4 bytes [14:56:15]NVStorageSaveData done [14:56:15]ExternCall_PrintAddStr [14:56:15]wPrintStart [14:56:15]Write to MH i2c: 01 00 00 10 1D 2D [14:56:15]Write i2c OK [14:56:15]MH_I2C_Read... [14:56:15]Read from MH i2c: 01 [14:56:15]MH_I2C_Read... [14:56:15]Read from MH i2c: 01 07 00 [14:56:15]MH_I2C_Read... [14:56:15]Read from MH i2c: 01 07 00 10 1D 00 00 00 00 00 FF 0F 42 [14:56:15]RasterBufferAndPrint [14:56:15]line Счет N : (1)459435 [14:56:15]line ИНН: 02508201610067 [14:56:15]line Контрольно-Кассовый Чек [14:56:15]line ПРОДАЖА [14:56:15]line ТРК (МРК, ГНК) : 12 [14:56:15]line Товар: 2710124130 [14:56:15]line Аи-92-К-5 [14:56:15]line 12.160 * 65.80 [14:56:15]line = 800.13 [14:56:15]line НДС 12% НСП 1% [14:56:15]line > о реализуемом товаре [14:56:15]line ОКРУГЛЕНИЕ: -0.13 [14:56:15]line ИТОГО: 800.00 [14:56:15]line Внесено: 800.00 [14:56:15]line СДАЧА: 0.00 [14:56:15]line НСП 1% : 7.08 [14:56:15]line НДС 12% : 84.97 [14:56:15]line Наличными: 800.00 [14:56:15]line Безнал.: 0.00 [14:56:15]line Место: АЗС № 72 "Партнер Нефть" [14:56:15]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:56:15]line СНО: Общий режим [14:56:15]line Чек 197 15.07.2024 14:56 [14:56:15]line Смена: 448 ФФД: 1.0 [14:56:15]line ЗНМ: 0300000160 [14:56:15]line РНМ: 0000000000090829 [14:56:15]line Версия ККМ: 001 [14:56:15]line ФМ: 0000000000874718 [14:56:15]line ФД: 165324 [14:56:15]line ФПД: 221502743032397 [14:56:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T145614&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165324&fm=221502743032397&tin=02508201610067®Number=0000000000090829&sum=80000 [14:56:15]OFD Sender: Processing packet 165324 [packets to send 106, broken 105] [14:56:15]ProducePacketName [14:56:15]name=ofd_packets/00165324 [14:56:15]OFD Sender: To server: pG, [14:56:15]CommunicateWithHost lk.salyk.kg:30040 [14:56:15]ConnectInit lk.salyk.kg [14:56:15]written 0, free lines is 4095 [14:56:15]Connected sock=10 [14:56:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 BB FA 07 01 6A 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 2F 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 8D 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 C5 00 00 00 F4 03 04 00 8E 38 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CC 85 02 00 35 04 06 00 C9 74 A0 50 B2 4D 8B 6A B1 6B 8B D7 BC 12 [14:56:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 2D 63 47 00 52 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 CC 85 02 00 F4 03 04 00 19 DF 94 66 B6 04 01 00 00 B9 63 54 BC F8 9B 10 1C [14:56:15]CommunicateWithHost err = 0 [14:56:15]CheckOFDResponse [14:56:15]1017 (14) - 77093643461234 [14:56:15]1041 (16) - 0000000000874718 [14:56:15]1040 (4) - 165324 [14:56:15]1012 (4) - 15.07.2024 08:34 [14:56:15]1206 (1) - 0 [14:56:15]OFD Sender: Remove packet 165324 [14:56:15]ProducePacketName [14:56:15]name=ofd_packets/00165324 [14:56:15]NVStorageDeleteData [14:56:15]Write to MH i2c: 01 00 00 3A 1D 57 [14:56:15]Write i2c OK [14:56:15]MH_I2C_Read... [14:56:15]Read from MH i2c: 01 [14:56:15]MH_I2C_Read... [14:56:15]Read from MH i2c: 01 07 00 [14:56:15]MH_I2C_Read... [14:56:15]Read from MH i2c: 01 07 00 3A 1D 00 00 00 00 00 02 0D 6D [14:56:15]RasterBufferAndPrint [14:56:15]line [14:56:15]line [14:56:15]line [14:56:15]line [14:56:15]line [14:56:15]written 0, free lines is 3336 [14:56:15]MH_Cut [14:56:15]Write to MH i2c: D1 01 00 41 1D 01 30 [14:56:15]Write i2c OK [14:56:15]MH_I2C_Read... [14:56:15]Read from MH i2c: D1 [14:56:15]MH_I2C_Read... [14:56:15]Read from MH i2c: D1 01 00 [14:56:15]MH_I2C_Read... [14:56:15]Read from MH i2c: D1 01 00 41 1D 00 2F [14:56:15]Write to MH i2c: 01 00 00 42 1D 5F [14:56:15]Write i2c OK [14:56:15]MH_I2C_Read... [14:56:16]OFD Sender: No OFD packet to send [14:56:16]*** Cut start [14:56:16]*** Partial cut [14:56:16]*** CUTSNS_PIN = 1 [14:56:16]*** CUTSNS_PIN = 0 [14:56:16]*** Brake cut motor [14:56:17]Read from MH i2c: 01 [14:56:17]MH_I2C_Read... [14:56:17]*** Stop cut motor [14:56:17]*** Cut end [14:56:17]Read from MH i2c: 01 07 00 [14:56:17]MH_I2C_Read... [14:56:17]Read from MH i2c: 01 07 00 42 1D 00 00 00 00 00 FF 0F 74 [14:56:17]process_action close_receipt done [14:56:17]requested_data is exist [14:56:17]produce_requested_data [14:56:17]requested_item fm.sn is exist - process it [14:56:17]wFMCommunicate request_size=4 [14:56:17]MH_SAM_APDU [14:56:17]CAPDU: 80 11 00 00 [14:56:17]Write to MH i2c: E2 08 00 43 1D 80 11 00 00 00 00 00 00 DA [14:56:17]Write i2c OK [14:56:17]MH_I2C_Read... [14:56:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:17]Read from MH i2c: E2 [14:56:17]MH_I2C_Read... [14:56:17]Read from MH i2c: E2 17 00 [14:56:17]MH_I2C_Read... [14:56:17]Read from MH i2c: E2 17 00 43 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 30 [14:56:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:56:17]wFMCommunicate OK [14:56:17]requested_item fd.num is exist - process it [14:56:17]SAM_PROTO_GetFieldsCounters [14:56:17]wFMCommunicate request_size=4 [14:56:17]MH_SAM_APDU [14:56:17]CAPDU: 80 13 00 00 [14:56:17]Write to MH i2c: E2 08 00 44 1D 80 13 00 00 00 00 00 00 DD [14:56:17]Write i2c OK [14:56:17]MH_I2C_Read... [14:56:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:56:17]Read from MH i2c: E2 [14:56:17]MH_I2C_Read... [14:56:17]Read from MH i2c: E2 62 00 [14:56:17]MH_I2C_Read... [14:56:17]Read from MH i2c: E2 62 00 44 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 CC 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [14:56: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 CC 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:56:17]wFMCommunicate OK [14:56:17]SAM_PROTO_GetFieldsCounters done [14:56:17]requested_item shift.num is exist - process it [14:56:17]requested_item shift.opened is exist - process it [14:56:17]req_shift_opened [14:56:17]FM_GetShiftState [14:56:17]SAM_PROTO_GetShiftState [14:56:17]wFMCommunicate request_size=4 [14:56:17]MH_SAM_APDU [14:56:17]CAPDU: 80 13 01 00 [14:56:17]Write to MH i2c: E2 08 00 45 1D 80 13 01 00 00 00 00 00 DF [14:56:17]Write i2c OK [14:56:17]MH_I2C_Read... [14:56:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:17]Read from MH i2c: E2 [14:56:17]MH_I2C_Read... [14:56:17]Read from MH i2c: E2 0E 00 [14:56:17]MH_I2C_Read... [14:56:17]Read from MH i2c: E2 0E 00 45 1D 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 B8 [14:56:17]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [14:56:17]wFMCommunicate OK [14:56:17]SAM_PROTO_GetShiftState done [14:56:17]FM_GetShiftState done [14:56:17]req_shift_opened done [14:56:17]requested_item shift.open_date is exist - process it [14:56:17]req_shift_open_date [14:56:17]req_shift_open_date done [14:56:17]produce_requested_data done [14:56:17]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165324,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [14:56:17]process_action_free close_receipt [14:56:17]json_value_free [14:56:17]json_value_free done [14:56:17]process_json_proto returns [14:56:17]Send response to host [14:56:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165324,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [14:56:17]free response buf [14:56:17]execute_script done [14:56:17]execute_script returns [14:56:17]free content buf [14:56:17]Sock 9.Close socket [14:56:17]Sock 9.Thread stoped [14:56:21]OFD Sender: No OFD packet to send [14:56:26]OFD Sender: No OFD packet to send [14:56:31]OFD Sender: No OFD packet to send [14:56:36]OFD Sender: No OFD packet to send [14:56:41]OFD Sender: No OFD packet to send [14:56:46]OFD Sender: No OFD packet to send [14:56:51]OFD Sender: No OFD packet to send [14:56:56]OFD Sender: No OFD packet to send [14:57:01]OFD Sender: No OFD packet to send [14:57:06]OFD Sender: No OFD packet to send [14:57:09]accept exits with 8 [14:57:09]New connection [14:57:09]New thread 3066854756 created [14:57:09]Thread 3066711396 joined [14:57:09]Waiting for new connection... [14:57:09] Sock 8.Parse request [14:57:09]Sock 8.Check first char [14:57:09]Sock 8.First char is OK [14:57:09]request: POST /json_proto HTTP/1.0 [14:57:09]Method: POST [14:57:09]URL: /json_proto [14:57:09]Method is POST - this is cgi request [14:57:09]url: /json_proto [14:57:09]query_string will be loaded in cgi processing [14:57:09]execute_cgi json_proto POST (null) [14:57:09]execute_cgi path=json_proto method=POST [14:57:09]POST find Content-Length [14:57:09]Host: 172.17.56.4:8080 [14:57:09]Content-Length: 674 [14:57:09]Content-Type: application/json [14:57:09] [14:57:09]POST finish read [14:57:09]Found Content-Length = 674 [14:57:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459436", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 2.790, "sum" : 200.60, "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" ] } } [14:57:09]execute_script... [14:57: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)459436", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 2.790, "sum" : 200.60, "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" ] } } [14:57:09]POST & json_proto [14:57:09]process_json_proto [14:57:09]json parsed OK: [14:57:09]protocol is kg_v1.0 [14:57:09]action value=close_receipt [14:57:09]process_action close_receipt [14:57:09]cmd_close_receipt [14:57:09]MH_GetDate [14:57:09]Write to MH i2c: F0 00 00 46 1D 52 [14:57:09]Write i2c OK [14:57:09]MH_I2C_Read... [14:57:09]Read from MH i2c: F0 [14:57:09]MH_I2C_Read... [14:57:09]Read from MH i2c: F0 09 00 [14:57:09]MH_I2C_Read... [14:57:09]Read from MH i2c: F0 09 00 46 1D 00 C6 38 95 66 C9 DC B2 64 0F [14:57:09]GetLastDocTimeStamp 1721055374 [14:57:09]current date 1721055430 [14:57:09]FM_GetShiftState [14:57:09]SAM_PROTO_GetShiftState [14:57:09]wFMCommunicate request_size=4 [14:57:09]MH_SAM_APDU [14:57:09]CAPDU: 80 13 01 00 [14:57:09]Write to MH i2c: E2 08 00 47 1D 80 13 01 00 00 00 00 00 E1 [14:57:09]Write i2c OK [14:57:09]MH_I2C_Read... [14:57:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:09]Read from MH i2c: E2 [14:57:09]MH_I2C_Read... [14:57:09]Read from MH i2c: E2 0E 00 [14:57:09]MH_I2C_Read... [14:57:09]Read from MH i2c: E2 0E 00 47 1D 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 BA [14:57:09]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [14:57:09]wFMCommunicate OK [14:57:09]SAM_PROTO_GetShiftState done [14:57:09]FM_GetShiftState done [14:57:09]opened in 1721003876 [14:57:09]opened+sec_in_day 1721090276 [14:57:09]quantity*price = 20060 [14:57:09]sum+1 = 20061 [14:57:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.30 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 198 15.07.2024 14:57 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165325 ФПД: 257264845446607 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T145710&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165325&fm=257264845446607&tin=02508201610067®Number=0000000000090829&sum=20000 [14:57:10]StoreToDocumentArchive [14:57:10]shift 448 fd 165325 [14:57:10]save to /storage/0448/doc_00165325 [14:57:10]save last doc name /storage/0448/doc_00165325 to /storage/kkm_last_doc_name [14:57:10]save OK [14:57:10]Clear old archive folders... [14:57:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:57:10]tlvbuf is 0181A1F0 [14:57:10]SAM_PROTO_ClearQueue [14:57:10]wFMCommunicate request_size=4 [14:57:10]MH_SAM_APDU [14:57:10]CAPDU: 80 09 00 00 [14:57:10]Write to MH i2c: E2 08 00 54 1D 80 09 00 00 00 00 00 00 E3 [14:57:10]Write i2c OK [14:57:10]MH_I2C_Read... [14:57:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:57:10]Read from MH i2c: E2 [14:57:10]MH_I2C_Read... [14:57:10]Read from MH i2c: E2 03 00 [14:57:10]MH_I2C_Read... [14:57:10]Read from MH i2c: E2 03 00 54 1D 00 90 00 E5 [14:57:10]RAPDU: 90 00 [14:57:10]wFMCommunicate OK [14:57:10]SAM_PROTO_ClearQueue done [14:57:10]KKMCreateOFDPacket [14:57:10]OFDProtocolAddRootSTLVToBuf [14:57:10]FM_MakeSignedData [14:57:10]FM_MakeSignedData [14:57:10]SAM_PROTO_SignData [14:57:10]wFMCommunicate request_size=4 [14:57:10]MH_SAM_APDU [14:57:10]CAPDU: 80 0D 01 02 [14:57:10]Write to MH i2c: E2 08 00 55 1D 80 0D 01 02 00 00 00 00 EB [14:57:10]Write i2c OK [14:57:10]MH_I2C_Read... [14:57:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:57:10]Read from MH i2c: E2 [14:57:10]MH_I2C_Read... [14:57:10]Read from MH i2c: E2 03 00 [14:57:10]MH_I2C_Read... [14:57:10]Read from MH i2c: E2 03 00 55 1D 00 90 00 E6 [14:57:10]RAPDU: 90 00 [14:57:10]wFMCommunicate OK [14:57:10]wFMCommunicate request_size=255 [14:57:10]MH_SAM_APDU [14:57:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 0A 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5C 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 52 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 C6 00 00 00 F4 03 04 00 C6 38 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CD 85 02 00 35 04 06 00 E9 FB 23 B9 [14:57:10]Write to MH i2c: E2 02 01 56 1D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 0A 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5C 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 52 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 C6 00 00 00 F4 03 04 00 C6 38 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CD 85 02 00 35 04 06 00 E9 FB 23 B9 00 00 95 [14:57:10]Write i2c OK [14:57:10]MH_I2C_Read... [14:57:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:10]Read from MH i2c: E2 [14:57:10]MH_I2C_Read... [14:57:10]Read from MH i2c: E2 03 00 [14:57:10]MH_I2C_Read... [14:57:10]Read from MH i2c: E2 03 00 56 1D 00 90 00 E7 [14:57:10]RAPDU: 90 00 [14:57:10]wFMCommunicate OK [14:57:10]wFMCommunicate request_size=7 [14:57:10]MH_SAM_APDU [14:57:10]CAPDU: 80 0D 02 02 02 DD CF [14:57:10]Write to MH i2c: E2 0A 00 57 1D 80 0D 02 02 02 00 DD CF 00 00 9E [14:57:10]Write i2c OK [14:57:10]MH_I2C_Read... [14:57:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:10]Read from MH i2c: E2 [14:57:10]MH_I2C_Read... [14:57:10]Read from MH i2c: E2 03 00 [14:57:10]MH_I2C_Read... [14:57:10]Read from MH i2c: E2 03 00 57 1D 00 90 00 E8 [14:57:10]RAPDU: 90 00 [14:57:10]wFMCommunicate OK [14:57:10]wFMCommunicate request_size=4 [14:57:10]MH_SAM_APDU [14:57:10]CAPDU: 80 0D 03 02 [14:57:10]Write to MH i2c: E2 08 00 58 1D 80 0D 03 02 00 00 00 00 F0 [14:57:10]Write i2c OK [14:57:10]MH_I2C_Read... [14:57:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:57:10]Read from MH i2c: E2 [14:57:10]MH_I2C_Read... [14:57:10]Read from MH i2c: E2 0B 00 [14:57:10]MH_I2C_Read... [14:57:10]Read from MH i2c: E2 0B 00 58 1D 00 43 3D 6A 3A BA 5B 1E 77 90 00 BF [14:57:10]RAPDU: 43 3D 6A 3A BA 5B 1E 77 90 00 [14:57:10]wFMCommunicate OK [14:57:10]SAM_PROTO_SignData done [14:57:10]FM_MakeSignedData done [14:57:10]CreateOFDProtocolMessage [14:57:10]wFMCommunicate request_size=4 [14:57:10]MH_SAM_APDU [14:57:10]CAPDU: 80 11 00 00 [14:57:10]Write to MH i2c: E2 08 00 59 1D 80 11 00 00 00 00 00 00 F0 [14:57:10]Write i2c OK [14:57:10]MH_I2C_Read... [14:57:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:10]Read from MH i2c: E2 [14:57:10]MH_I2C_Read... [14:57:10]Read from MH i2c: E2 17 00 [14:57:10]MH_I2C_Read... [14:57:10]Read from MH i2c: E2 17 00 59 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 46 [14:57:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:57:10]wFMCommunicate OK [14:57:10]CreateOFDProtocolMessage done [14:57:10]OFDSenderStorePacket 165325 [14:57:10]StoreOFDPacket docnum=165325 [14:57:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 94 83 04 01 BA 2C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 0A 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5C 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 52 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 C6 00 00 00 F4 03 04 00 C6 38 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CD 85 02 00 35 04 06 00 E9 FB 23 B9 DD CF 43 3D 6A 3A BA 5B 1E 77 [14:57:10]CheckFolder [14:57:10]dirname=/storage/ofd_packets [14:57:10]CheckFolder done [14:57:10]ProducePacketName [14:57:10]name=ofd_packets/00165325 [14:57:10]NVStorageSaveData ofd_packets/00165325 [14:57:10]File name is /storage/ofd_packets/00165325 [14:57:10]Write 298 bytes [14:57:10]NVStorageSaveData done [14:57:10]OFDSenderStorePacket done [14:57:10]KKMCreateOFDPacket done [14:57:10]NVStorageSaveData kkm_last_timestamp [14:57:10]File name is /storage/kkm_last_timestamp [14:57:10]Write 4 bytes [14:57:10]NVStorageSaveData done [14:57:10]ExternCall_PrintAddStr [14:57:10]wPrintStart [14:57:10]Write to MH i2c: 01 00 00 5A 1D 77 [14:57:10]Write i2c OK [14:57:10]MH_I2C_Read... [14:57:10]Read from MH i2c: 01 [14:57:10]MH_I2C_Read... [14:57:10]Read from MH i2c: 01 07 00 [14:57:10]MH_I2C_Read... [14:57:10]Read from MH i2c: 01 07 00 5A 1D 00 00 00 00 00 FF 0F 8C [14:57:10]RasterBufferAndPrint [14:57:10]line Счет N : (1)459436 [14:57:10]line ИНН: 02508201610067 [14:57:10]line Контрольно-Кассовый Чек [14:57:10]line ПРОДАЖА [14:57:10]line ТРК (МРК, ГНК) : 11 [14:57:10]line Товар: 2710194210 [14:57:10]line ДТ-К-5 [14:57:10]line 2.790 * 71.90 [14:57:10]line = 200.60 [14:57:10]line НДС 12% НСП 1% [14:57:10]line > о реализуемом товаре [14:57:10]line ОКРУГЛЕНИЕ: -0.60 [14:57:10]line ИТОГО: 200.00 [14:57:10]line Внесено: 200.00 [14:57:10]line СДАЧА: 0.00 [14:57:10]line НСП 1% : 1.77 [14:57:10]line НДС 12% : 21.30 [14:57:10]line Наличными: 200.00 [14:57:10]line Безнал.: 0.00 [14:57:10]line Место: АЗС № 72 "Партнер Нефть" [14:57:10]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:57:10]line СНО: Общий режим [14:57:10]line Чек 198 15.07.2024 14:57 [14:57:10]line Смена: 448 ФФД: 1.0 [14:57:10]line ЗНМ: 0300000160 [14:57:10]line РНМ: 0000000000090829 [14:57:10]line Версия ККМ: 001 [14:57:10]line ФМ: 0000000000874718 [14:57:10]line ФД: 165325 [14:57:10]line ФПД: 257264845446607 [14:57:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T145710&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165325&fm=257264845446607&tin=02508201610067®Number=0000000000090829&sum=20000 [14:57:11]OFD Sender: Processing packet 165325 [packets to send 106, broken 105] [14:57:11]ProducePacketName [14:57:11]name=ofd_packets/00165325 [14:57:11]OFD Sender: To server: pG, [14:57:11]CommunicateWithHost lk.salyk.kg:30040 [14:57:11]ConnectInit lk.salyk.kg [14:57:11]written 0, free lines is 4095 [14:57:11]Connected sock=10 [14:57: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 37 31 38 0C 01 00 00 94 83 04 01 BA 2C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 0A 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5C 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 52 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 C6 00 00 00 F4 03 04 00 C6 38 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CD 85 02 00 35 04 06 00 E9 FB 23 B9 DD CF 43 3D 6A 3A BA 5B 1E 77 [14:57:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 94 43 47 00 10 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CD 85 02 00 F4 03 04 00 50 DF 94 66 B6 04 01 00 00 19 3E 77 6C D4 D1 F0 45 [14:57:11]CommunicateWithHost err = 0 [14:57:11]CheckOFDResponse [14:57:11]1017 (14) - 77093643461234 [14:57:11]1041 (16) - 0000000000874718 [14:57:11]1040 (4) - 165325 [14:57:11]1012 (4) - 15.07.2024 08:35 [14:57:11]1206 (1) - 0 [14:57:11]OFD Sender: Remove packet 165325 [14:57:11]ProducePacketName [14:57:11]name=ofd_packets/00165325 [14:57:11]NVStorageDeleteData [14:57:11]Write to MH i2c: 01 00 00 84 1D A1 [14:57:11]Write i2c OK [14:57:11]MH_I2C_Read... [14:57:11]Read from MH i2c: 01 [14:57:11]MH_I2C_Read... [14:57:11]Read from MH i2c: 01 07 00 [14:57:11]MH_I2C_Read... [14:57:11]Read from MH i2c: 01 07 00 84 1D 00 00 00 00 00 F7 0C AB [14:57:11]RasterBufferAndPrint [14:57:11]line [14:57:11]line [14:57:11]line [14:57:11]line [14:57:11]line [14:57:11]written 0, free lines is 3326 [14:57:11]MH_Cut [14:57:11]Write to MH i2c: D1 01 00 8B 1D 01 7A [14:57:11]Write i2c OK [14:57:11]MH_I2C_Read... [14:57:11]Read from MH i2c: D1 [14:57:11]MH_I2C_Read... [14:57:11]Read from MH i2c: D1 01 00 [14:57:11]MH_I2C_Read... [14:57:11]Read from MH i2c: D1 01 00 8B 1D 00 79 [14:57:11]Write to MH i2c: 01 00 00 8C 1D A9 [14:57:11]Write i2c OK [14:57:11]MH_I2C_Read... [14:57:11]OFD Sender: No OFD packet to send [14:57:12]*** Cut start [14:57:12]*** Partial cut [14:57:12]*** CUTSNS_PIN = 1 [14:57:12]*** CUTSNS_PIN = 0 [14:57:12]*** Brake cut motor [14:57:12]Read from MH i2c: 01 [14:57:12]MH_I2C_Read... [14:57:12]*** Stop cut motor [14:57:12]*** Cut end [14:57:12]Read from MH i2c: 01 07 00 [14:57:12]MH_I2C_Read... [14:57:12]Read from MH i2c: 01 07 00 8C 1D 00 00 00 00 00 FF 0F BE [14:57:12]process_action close_receipt done [14:57:12]requested_data is exist [14:57:12]produce_requested_data [14:57:12]requested_item fm.sn is exist - process it [14:57:12]wFMCommunicate request_size=4 [14:57:12]MH_SAM_APDU [14:57:12]CAPDU: 80 11 00 00 [14:57:12]Write to MH i2c: E2 08 00 8D 1D 80 11 00 00 00 00 00 00 24 [14:57:12]Write i2c OK [14:57:12]MH_I2C_Read... [14:57:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:12]Read from MH i2c: E2 [14:57:12]MH_I2C_Read... [14:57:12]Read from MH i2c: E2 17 00 [14:57:12]MH_I2C_Read... [14:57:12]Read from MH i2c: E2 17 00 8D 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7A [14:57:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:57:12]wFMCommunicate OK [14:57:12]requested_item fd.num is exist - process it [14:57:12]SAM_PROTO_GetFieldsCounters [14:57:12]wFMCommunicate request_size=4 [14:57:12]MH_SAM_APDU [14:57:12]CAPDU: 80 13 00 00 [14:57:12]Write to MH i2c: E2 08 00 8E 1D 80 13 00 00 00 00 00 00 27 [14:57:12]Write i2c OK [14:57:12]MH_I2C_Read... [14:57:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:57:13]Read from MH i2c: E2 [14:57:13]MH_I2C_Read... [14:57:13]Read from MH i2c: E2 62 00 [14:57:13]MH_I2C_Read... [14:57:13]Read from MH i2c: E2 62 00 8E 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 CD 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [14:57: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 CD 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:57:13]wFMCommunicate OK [14:57:13]SAM_PROTO_GetFieldsCounters done [14:57:13]requested_item shift.num is exist - process it [14:57:13]requested_item shift.opened is exist - process it [14:57:13]req_shift_opened [14:57:13]FM_GetShiftState [14:57:13]SAM_PROTO_GetShiftState [14:57:13]wFMCommunicate request_size=4 [14:57:13]MH_SAM_APDU [14:57:13]CAPDU: 80 13 01 00 [14:57:13]Write to MH i2c: E2 08 00 8F 1D 80 13 01 00 00 00 00 00 29 [14:57:13]Write i2c OK [14:57:13]MH_I2C_Read... [14:57:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:13]Read from MH i2c: E2 [14:57:13]MH_I2C_Read... [14:57:13]Read from MH i2c: E2 0E 00 [14:57:13]MH_I2C_Read... [14:57:13]Read from MH i2c: E2 0E 00 8F 1D 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 02 [14:57:13]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [14:57:13]wFMCommunicate OK [14:57:13]SAM_PROTO_GetShiftState done [14:57:13]FM_GetShiftState done [14:57:13]req_shift_opened done [14:57:13]requested_item shift.open_date is exist - process it [14:57:13]req_shift_open_date [14:57:13]req_shift_open_date done [14:57:13]produce_requested_data done [14:57:13]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165325,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [14:57:13]process_action_free close_receipt [14:57:13]json_value_free [14:57:13]json_value_free done [14:57:13]process_json_proto returns [14:57:13]Send response to host [14:57:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165325,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [14:57:13]free response buf [14:57:13]execute_script done [14:57:13]execute_script returns [14:57:13]free content buf [14:57:13]Sock 8.Close socket [14:57:13]Sock 8.Thread stoped [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:02]OFD Sender: No OFD packet to send [14:58:07]OFD Sender: No OFD packet to send [14:58:12]OFD Sender: No OFD packet to send [14:58:17]OFD Sender: No OFD packet to send [14:58:22]OFD Sender: No OFD packet to send [14:58:27]OFD Sender: No OFD packet to send [14:58:32]OFD Sender: No OFD packet to send [14:58:37]OFD Sender: No OFD packet to send [14:58:42]OFD Sender: No OFD packet to send [14:58:47]OFD Sender: No OFD packet to send [14:58:52]OFD Sender: No OFD packet to send [14:58:57]OFD Sender: No OFD packet to send [14:59:02]OFD Sender: No OFD packet to send [14:59:07]OFD Sender: No OFD packet to send [14:59:12]OFD Sender: No OFD packet to send [14:59:17]OFD Sender: No OFD packet to send [14:59:22]OFD Sender: No OFD packet to send [14:59:27]OFD Sender: No OFD packet to send [14:59:32]OFD Sender: No OFD packet to send [14:59:37]OFD Sender: No OFD packet to send [14:59:42]OFD Sender: No OFD packet to send [14:59:47]OFD Sender: No OFD packet to send [14:59:52]OFD Sender: No OFD packet to send [14:59:56]accept exits with 9 [14:59:56]New connection [14:59:56]New thread 3066711396 created [14:59:56]Thread 3066854756 joined [14:59:56]Waiting for new connection... [14:59:56] Sock 9.Parse request [14:59:56]Sock 9.Check first char [14:59:56]Sock 9.First char is OK [14:59:56]request: POST /json_proto HTTP/1.0 [14:59:56]Method: POST [14:59:56]URL: /json_proto [14:59:56]Method is POST - this is cgi request [14:59:56]url: /json_proto [14:59:56]query_string will be loaded in cgi processing [14:59:56]execute_cgi json_proto POST (null) [14:59:56]execute_cgi path=json_proto method=POST [14:59:56]POST find Content-Length [14:59:56]Host: 172.17.56.4:8080 [14:59:56]Content-Length: 677 [14:59:56]Content-Type: application/json [14:59:56] [14:59:56]POST finish read [14:59:56]Found Content-Length = 677 [14:59:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459437", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:56]execute_script... [14:59: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)459437", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:56]POST & json_proto [14:59:56]process_json_proto [14:59:56]json parsed OK: [14:59:56]protocol is kg_v1.0 [14:59:56]action value=close_receipt [14:59:56]process_action close_receipt [14:59:56]cmd_close_receipt [14:59:56]MH_GetDate [14:59:56]Write to MH i2c: F0 00 00 90 1D 9C [14:59:56]Write i2c OK [14:59:56]MH_I2C_Read... [14:59:56]Read from MH i2c: F0 [14:59:56]MH_I2C_Read... [14:59:56]Read from MH i2c: F0 09 00 [14:59:56]MH_I2C_Read... [14:59:56]Read from MH i2c: F0 09 00 90 1D 00 6E 39 95 66 C9 DC B2 64 02 [14:59:56]GetLastDocTimeStamp 1721055430 [14:59:56]current date 1721055598 [14:59:56]FM_GetShiftState [14:59:56]SAM_PROTO_GetShiftState [14:59:56]wFMCommunicate request_size=4 [14:59:56]MH_SAM_APDU [14:59:56]CAPDU: 80 13 01 00 [14:59:56]Write to MH i2c: E2 08 00 91 1D 80 13 01 00 00 00 00 00 2B [14:59:56]Write i2c OK [14:59:56]MH_I2C_Read... [14:59:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:56]Read from MH i2c: E2 [14:59:56]MH_I2C_Read... [14:59:56]Read from MH i2c: E2 0E 00 [14:59:56]MH_I2C_Read... [14:59:56]Read from MH i2c: E2 0E 00 91 1D 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 04 [14:59:56]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [14:59:56]wFMCommunicate OK [14:59:56]SAM_PROTO_GetShiftState done [14:59:56]FM_GetShiftState done [14:59:56]opened in 1721003876 [14:59:56]opened+sec_in_day 1721090276 [14:59:56]quantity*price = 50008 [14:59:56]sum+1 = 50009 [14:59:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 199 15.07.2024 14:59 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165326 ФПД: 63596052827456 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T145958&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165326&fm=63596052827456&tin=02508201610067®Number=0000000000090829&sum=50000 [14:59:58]StoreToDocumentArchive [14:59:58]shift 448 fd 165326 [14:59:58]save to /storage/0448/doc_00165326 [14:59:58]save last doc name /storage/0448/doc_00165326 to /storage/kkm_last_doc_name [14:59:58]save OK [14:59:58]Clear old archive folders... [14:59:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:59:58]tlvbuf is 0181A1E0 [14:59:58]SAM_PROTO_ClearQueue [14:59:58]wFMCommunicate request_size=4 [14:59:58]MH_SAM_APDU [14:59:58]CAPDU: 80 09 00 00 [14:59:58]Write to MH i2c: E2 08 00 9E 1D 80 09 00 00 00 00 00 00 2D [14:59:58]Write i2c OK [14:59:58]MH_I2C_Read... [14:59:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:59:58]Read from MH i2c: E2 [14:59:58]MH_I2C_Read... [14:59:58]Read from MH i2c: E2 03 00 [14:59:58]MH_I2C_Read... [14:59:58]Read from MH i2c: E2 03 00 9E 1D 00 90 00 2F [14:59:58]RAPDU: 90 00 [14:59:58]wFMCommunicate OK [14:59:58]SAM_PROTO_ClearQueue done [14:59:58]KKMCreateOFDPacket [14:59:58]OFDProtocolAddRootSTLVToBuf [14:59:58]FM_MakeSignedData [14:59:58]FM_MakeSignedData [14:59:58]SAM_PROTO_SignData [14:59:58]wFMCommunicate request_size=4 [14:59:58]MH_SAM_APDU [14:59:58]CAPDU: 80 0D 01 02 [14:59:58]Write to MH i2c: E2 08 00 9F 1D 80 0D 01 02 00 00 00 00 35 [14:59:58]Write i2c OK [14:59:58]MH_I2C_Read... [14:59:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:59:58]Read from MH i2c: E2 [14:59:58]MH_I2C_Read... [14:59:58]Read from MH i2c: E2 03 00 [14:59:58]MH_I2C_Read... [14:59:58]Read from MH i2c: E2 03 00 9F 1D 00 90 00 30 [14:59:58]RAPDU: 90 00 [14:59:58]wFMCommunicate OK [14:59:58]wFMCommunicate request_size=255 [14:59:58]MH_SAM_APDU [14:59:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 6E 39 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CE 85 02 00 35 04 06 00 39 [14:59:58]Write to MH i2c: E2 02 01 A0 1D 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 6E 39 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CE 85 02 00 35 04 06 00 39 00 00 66 [14:59:58]Write i2c OK [14:59:58]MH_I2C_Read... [14:59:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:58]Read from MH i2c: E2 [14:59:58]MH_I2C_Read... [14:59:58]Read from MH i2c: E2 03 00 [14:59:58]MH_I2C_Read... [14:59:58]Read from MH i2c: E2 03 00 A0 1D 00 90 00 31 [14:59:58]RAPDU: 90 00 [14:59:58]wFMCommunicate OK [14:59:58]wFMCommunicate request_size=10 [14:59:58]MH_SAM_APDU [14:59:58]CAPDU: 80 0D 02 02 05 D7 1C 23 4D 40 [14:59:58]Write to MH i2c: E2 0D 00 A1 1D 80 0D 02 02 05 00 D7 1C 23 4D 40 00 00 E5 [14:59:58]Write i2c OK [14:59:58]MH_I2C_Read... [14:59:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:58]Read from MH i2c: E2 [14:59:58]MH_I2C_Read... [14:59:58]Read from MH i2c: E2 03 00 [14:59:58]MH_I2C_Read... [14:59:58]Read from MH i2c: E2 03 00 A1 1D 00 90 00 32 [14:59:58]RAPDU: 90 00 [14:59:58]wFMCommunicate OK [14:59:58]wFMCommunicate request_size=4 [14:59:58]MH_SAM_APDU [14:59:58]CAPDU: 80 0D 03 02 [14:59:58]Write to MH i2c: E2 08 00 A2 1D 80 0D 03 02 00 00 00 00 3A [14:59:58]Write i2c OK [14:59:58]MH_I2C_Read... [14:59:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:59:58]Read from MH i2c: E2 [14:59:58]MH_I2C_Read... [14:59:58]Read from MH i2c: E2 0B 00 [14:59:58]MH_I2C_Read... [14:59:58]Read from MH i2c: E2 0B 00 A2 1D 00 93 7A 2C 30 DF 94 43 90 90 00 EA [14:59:58]RAPDU: 93 7A 2C 30 DF 94 43 90 90 00 [14:59:58]wFMCommunicate OK [14:59:58]SAM_PROTO_SignData done [14:59:58]FM_MakeSignedData done [14:59:58]CreateOFDProtocolMessage [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 A3 1D 80 11 00 00 00 00 00 00 3A [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 A3 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 90 [14:59:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [14:59:58]wFMCommunicate OK [14:59:58]CreateOFDProtocolMessage done [14:59:58]OFDSenderStorePacket 165326 [14:59:58]StoreOFDPacket docnum=165326 [14:59:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 44 DB 07 01 57 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 6E 39 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CE 85 02 00 35 04 06 00 39 D7 1C 23 4D 40 93 7A 2C 30 DF 94 43 90 [14:59:58]CheckFolder [14:59:58]dirname=/storage/ofd_packets [14:59:58]CheckFolder done [14:59:58]ProducePacketName [14:59:58]name=ofd_packets/00165326 [14:59:58]NVStorageSaveData ofd_packets/00165326 [14:59:58]File name is /storage/ofd_packets/00165326 [14:59:58]Write 301 bytes [14:59:58]NVStorageSaveData done [14:59:58]OFDSenderStorePacket done [14:59:58]KKMCreateOFDPacket done [14:59:58]NVStorageSaveData kkm_last_timestamp [14:59:58]File name is /storage/kkm_last_timestamp [14:59:58]Write 4 bytes [14:59:58]NVStorageSaveData done [14:59:58]ExternCall_PrintAddStr [14:59:58]wPrintStart [14:59:58]Write to MH i2c: 01 00 00 A4 1D C1 [14:59:58]Write i2c OK [14:59:58]MH_I2C_Read... [14:59:58]Read from MH i2c: 01 [14:59:58]MH_I2C_Read... [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 A4 1D 00 00 00 00 00 FF 0F D6 [14:59:58]RasterBufferAndPrint [14:59:58]line Счет N : (1)459437 [14:59:58]line ИНН: 02508201610067 [14:59:58]line Контрольно-Кассовый Чек [14:59:58]line ПРОДАЖА [14:59:58]line ТРК (МРК, ГНК) : 12 [14:59:58]line Товар: 2710124130 [14:59:58]line Аи-92-К-5 [14:59:58]line 7.600 * 65.80 [14:59:58]line = 500.08 [14:59:58]line НДС 12% НСП 1% [14:59:58]line > о реализуемом товаре [14:59:58]line ОКРУГЛЕНИЕ: -0.08 [14:59:58]line ИТОГО: 500.00 [14:59:58]line Внесено: 500.00 [14:59:58]line СДАЧА: 0.00 [14:59:58]line НСП 1% : 4.42 [14:59:58]line НДС 12% : 53.11 [14:59:58]line Наличными: 500.00 [14:59:58]line Безнал.: 0.00 [14:59:58]line Место: АЗС № 72 "Партнер Нефть" [14:59:58]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [14:59:58]line СНО: Общий режим [14:59:58]line Чек 199 15.07.2024 14:59 [14:59:58]line Смена: 448 ФФД: 1.0 [14:59:58]line ЗНМ: 0300000160 [14:59:58]line РНМ: 0000000000090829 [14:59:58]line Версия ККМ: 001 [14:59:58]line ФМ: 0000000000874718 [14:59:58]line ФД: 165326 [14:59:58]line ФПД: 63596052827456 [14:59:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T145958&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165326&fm=63596052827456&tin=02508201610067®Number=0000000000090829&sum=50000 [14:59:58]OFD Sender: Processing packet 165326 [packets to send 106, broken 105] [14:59:58]ProducePacketName [14:59:58]name=ofd_packets/00165326 [14:59:58]OFD Sender: To server: pG, [14:59:58]CommunicateWithHost lk.salyk.kg:30040 [14:59:58]ConnectInit lk.salyk.kg [14:59:58]written 0, free lines is 4095 [14:59:58]Connected sock=10 [14:59: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 37 31 38 0F 01 00 00 44 DB 07 01 57 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 6E 39 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CE 85 02 00 35 04 06 00 39 D7 1C 23 4D 40 93 7A 2C 30 DF 94 43 90 [14:59:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 72 12 47 00 2B DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CE 85 02 00 F4 03 04 00 F8 DF 94 66 B6 04 01 00 00 4E 32 6B 02 37 1A E9 21 [14:59:59]CommunicateWithHost err = 0 [14:59:59]CheckOFDResponse [14:59:59]1017 (14) - 77093643461234 [14:59:59]1041 (16) - 0000000000874718 [14:59:59]1040 (4) - 165326 [14:59:59]1012 (4) - 15.07.2024 08:38 [14:59:59]1206 (1) - 0 [14:59:59]OFD Sender: Remove packet 165326 [14:59:59]ProducePacketName [14:59:59]name=ofd_packets/00165326 [14:59:59]NVStorageDeleteData [14:59:59]Write to MH i2c: 01 00 00 CE 1D EB [14:59:59]Write i2c OK [14:59:59]MH_I2C_Read... [14:59:59]Read from MH i2c: 01 [14:59:59]MH_I2C_Read... [14:59:59]Read from MH i2c: 01 07 00 [14:59:59]MH_I2C_Read... [14:59:59]Read from MH i2c: 01 07 00 CE 1D 00 00 00 00 00 0D 0D 0C [14:59:59]RasterBufferAndPrint [14:59:59]line [14:59:59]line [14:59:59]line [14:59:59]line [14:59:59]line [14:59:59]written 0, free lines is 3347 [14:59:59]MH_Cut [14:59:59]Write to MH i2c: D1 01 00 D5 1D 01 C4 [14:59:59]Write i2c OK [14:59:59]MH_I2C_Read... [14:59:59]Read from MH i2c: D1 [14:59:59]MH_I2C_Read... [14:59:59]Read from MH i2c: D1 01 00 [14:59:59]MH_I2C_Read... [14:59:59]Read from MH i2c: D1 01 00 D5 1D 00 C3 [14:59:59]Write to MH i2c: 01 00 00 D6 1D F3 [14:59:59]Write i2c OK [14:59:59]MH_I2C_Read... [14:59:59]OFD Sender: No OFD packet to send [15:00:00]*** Cut start [15:00:00]*** Partial cut [15:00:00]*** CUTSNS_PIN = 1 [15:00:00]*** CUTSNS_PIN = 0 [15:00:00]*** Brake cut motor [15:00:00]Read from MH i2c: 01 [15:00:00]MH_I2C_Read... [15:00:00]*** Stop cut motor [15:00:00]*** Cut end [15:00:00]Read from MH i2c: 01 07 00 [15:00:00]MH_I2C_Read... [15:00:00]Read from MH i2c: 01 07 00 D6 1D 00 00 00 00 00 FF 0F 08 [15:00:00]process_action close_receipt done [15:00:00]requested_data is exist [15:00:00]produce_requested_data [15:00:00]requested_item fm.sn is exist - process it [15:00:00]wFMCommunicate request_size=4 [15:00:00]MH_SAM_APDU [15:00:00]CAPDU: 80 11 00 00 [15:00:00]Write to MH i2c: E2 08 00 D7 1D 80 11 00 00 00 00 00 00 6E [15:00:00]Write i2c OK [15:00:00]MH_I2C_Read... [15:00:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:00]Read from MH i2c: E2 [15:00:00]MH_I2C_Read... [15:00:00]Read from MH i2c: E2 17 00 [15:00:00]MH_I2C_Read... [15:00:00]Read from MH i2c: E2 17 00 D7 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C4 [15:00:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:00:00]wFMCommunicate OK [15:00:00]requested_item fd.num is exist - process it [15:00:00]SAM_PROTO_GetFieldsCounters [15:00:00]wFMCommunicate request_size=4 [15:00:00]MH_SAM_APDU [15:00:00]CAPDU: 80 13 00 00 [15:00:00]Write to MH i2c: E2 08 00 D8 1D 80 13 00 00 00 00 00 00 71 [15:00:00]Write i2c OK [15:00:00]MH_I2C_Read... [15:00:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:00:00]Read from MH i2c: E2 [15:00:00]MH_I2C_Read... [15:00:00]Read from MH i2c: E2 62 00 [15:00:00]MH_I2C_Read... [15:00:00]Read from MH i2c: E2 62 00 D8 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 CE 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [15:00: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 CE 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:00:00]wFMCommunicate OK [15:00:00]SAM_PROTO_GetFieldsCounters done [15:00:00]requested_item shift.num is exist - process it [15:00:00]requested_item shift.opened is exist - process it [15:00:00]req_shift_opened [15:00:00]FM_GetShiftState [15:00:00]SAM_PROTO_GetShiftState [15:00:00]wFMCommunicate request_size=4 [15:00:00]MH_SAM_APDU [15:00:00]CAPDU: 80 13 01 00 [15:00:00]Write to MH i2c: E2 08 00 D9 1D 80 13 01 00 00 00 00 00 73 [15:00:00]Write i2c OK [15:00:00]MH_I2C_Read... [15:00:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:00]Read from MH i2c: E2 [15:00:00]MH_I2C_Read... [15:00:00]Read from MH i2c: E2 0E 00 [15:00:00]MH_I2C_Read... [15:00:00]Read from MH i2c: E2 0E 00 D9 1D 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 4C [15:00:00]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [15:00:00]wFMCommunicate OK [15:00:00]SAM_PROTO_GetShiftState done [15:00:00]FM_GetShiftState done [15:00:00]req_shift_opened done [15:00:00]requested_item shift.open_date is exist - process it [15:00:00]req_shift_open_date [15:00:00]req_shift_open_date done [15:00:00]produce_requested_data done [15:00:00]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165326,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [15:00:00]process_action_free close_receipt [15:00:00]json_value_free [15:00:00]json_value_free done [15:00:00]process_json_proto returns [15:00:00]Send response to host [15:00:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165326,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [15:00:00]free response buf [15:00:00]execute_script done [15:00:00]execute_script returns [15:00:00]free content buf [15:00:00]Sock 9.Close socket [15:00:00]Sock 9.Thread stoped [15:00:04]OFD Sender: No OFD packet to send [15:00:09]OFD Sender: No OFD packet to send [15:00:14]OFD Sender: No OFD packet to send [15:00:19]OFD Sender: No OFD packet to send [15:00:24]OFD Sender: No OFD packet to send [15:00:29]OFD Sender: No OFD packet to send [15:00:34]OFD Sender: No OFD packet to send [15:00:39]OFD Sender: No OFD packet to send [15:00:44]OFD Sender: No OFD packet to send [15:00:49]OFD Sender: No OFD packet to send [15:00:54]OFD Sender: No OFD packet to send [15:00:59]OFD Sender: No OFD packet to send [15:01:04]OFD Sender: No OFD packet to send [15:01:09]OFD Sender: No OFD packet to send [15:01:14]OFD Sender: No OFD packet to send [15:01:19]OFD Sender: No OFD packet to send [15:01:24]OFD Sender: No OFD packet to send [15:01:29]OFD Sender: No OFD packet to send [15:01:34]OFD Sender: No OFD packet to send [15:01:39]OFD Sender: No OFD packet to send [15:01:44]OFD Sender: No OFD packet to send [15:01:49]accept exits with 8 [15:01:49]New connection [15:01:49]New thread 3066854756 created [15:01:49]Thread 3066711396 joined [15:01:49]Waiting for new connection... [15:01:49] Sock 8.Parse request [15:01:49]Sock 8.Check first char [15:01:49]Sock 8.First char is OK [15:01:49]request: POST /json_proto HTTP/1.0 [15:01:49]Method: POST [15:01:49]URL: /json_proto [15:01:49]Method is POST - this is cgi request [15:01:49]url: /json_proto [15:01:49]query_string will be loaded in cgi processing [15:01:49]execute_cgi json_proto POST (null) [15:01:49]execute_cgi path=json_proto method=POST [15:01:49]POST find Content-Length [15:01:49]Host: 172.17.56.4:8080 [15:01:49]Content-Length: 675 [15:01:49]Content-Type: application/json [15:01:49] [15:01:49]POST finish read [15:01:49]Found Content-Length = 675 [15:01:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459438", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.000, "sum" : 934.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 934.00, "total" : 934.00, "payments": [ { "type": 0, "sum" : 934.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:01:49]execute_script... [15:01:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459438", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 13.000, "sum" : 934.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 934.00, "total" : 934.00, "payments": [ { "type": 0, "sum" : 934.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:01:49]POST & json_proto [15:01:49]process_json_proto [15:01:49]json parsed OK: [15:01:49]protocol is kg_v1.0 [15:01:49]action value=close_receipt [15:01:49]process_action close_receipt [15:01:49]cmd_close_receipt [15:01:49]MH_GetDate [15:01:49]Write to MH i2c: F0 00 00 DA 1D E6 [15:01:49]Write i2c OK [15:01:49]MH_I2C_Read... [15:01:49]Read from MH i2c: F0 [15:01:49]MH_I2C_Read... [15:01:49]Read from MH i2c: F0 09 00 [15:01:49]MH_I2C_Read... [15:01:49]Read from MH i2c: F0 09 00 DA 1D 00 DF 39 95 66 C9 DC B2 64 BD [15:01:49]GetLastDocTimeStamp 1721055598 [15:01:49]current date 1721055711 [15:01:49]FM_GetShiftState [15:01:49]SAM_PROTO_GetShiftState [15:01:49]wFMCommunicate request_size=4 [15:01:49]MH_SAM_APDU [15:01:49]CAPDU: 80 13 01 00 [15:01:49]Write to MH i2c: E2 08 00 DB 1D 80 13 01 00 00 00 00 00 75 [15:01:49]Write i2c OK [15:01:49]MH_I2C_Read... [15:01:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:49]Read from MH i2c: E2 [15:01:49]MH_I2C_Read... [15:01:49]Read from MH i2c: E2 0E 00 [15:01:49]MH_I2C_Read... [15:01:49]Read from MH i2c: E2 0E 00 DB 1D 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 4E [15:01:49]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [15:01:49]wFMCommunicate OK [15:01:49]SAM_PROTO_GetShiftState done [15:01:49]FM_GetShiftState done [15:01:49]opened in 1721003876 [15:01:49]opened+sec_in_day 1721090276 [15:01:49]quantity*price = 93470 [15:01:49]sum+1 = 93471 [15:01:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.70 ИТОГО: 934.00 Внесено: 934.00 СДАЧА: 0.00 НСП 1% : 8.27 НДС 12% : 99.26 Наличными: 934.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 200 15.07.2024 15:01 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165327 ФПД: 104317717743200 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T150151&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165327&fm=104317717743200&tin=02508201610067®Number=0000000000090829&sum=93400 [15:01:50]StoreToDocumentArchive [15:01:50]shift 448 fd 165327 [15:01:50]save to /storage/0448/doc_00165327 [15:01:50]save last doc name /storage/0448/doc_00165327 to /storage/kkm_last_doc_name [15:01:50]save OK [15:01:50]Clear old archive folders... [15:01:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:01:50]tlvbuf is B6E901D0 [15:01:50]SAM_PROTO_ClearQueue [15:01:50]wFMCommunicate request_size=4 [15:01:50]MH_SAM_APDU [15:01:50]CAPDU: 80 09 00 00 [15:01:50]Write to MH i2c: E2 08 00 E8 1D 80 09 00 00 00 00 00 00 77 [15:01:50]Write i2c OK [15:01:50]MH_I2C_Read... [15:01:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:01:50]Read from MH i2c: E2 [15:01:50]MH_I2C_Read... [15:01:50]Read from MH i2c: E2 03 00 [15:01:50]MH_I2C_Read... [15:01:50]Read from MH i2c: E2 03 00 E8 1D 00 90 00 79 [15:01:50]RAPDU: 90 00 [15:01:50]wFMCommunicate OK [15:01:50]SAM_PROTO_ClearQueue done [15:01:50]KKMCreateOFDPacket [15:01:50]OFDProtocolAddRootSTLVToBuf [15:01:50]FM_MakeSignedData [15:01:50]FM_MakeSignedData [15:01:50]SAM_PROTO_SignData [15:01:50]wFMCommunicate request_size=4 [15:01:50]MH_SAM_APDU [15:01:50]CAPDU: 80 0D 01 02 [15:01:50]Write to MH i2c: E2 08 00 E9 1D 80 0D 01 02 00 00 00 00 7F [15:01:50]Write i2c OK [15:01:50]MH_I2C_Read... [15:01:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:01:50]Read from MH i2c: E2 [15:01:50]MH_I2C_Read... [15:01:50]Read from MH i2c: E2 03 00 [15:01:50]MH_I2C_Read... [15:01:50]Read from MH i2c: E2 03 00 E9 1D 00 90 00 7A [15:01:50]RAPDU: 90 00 [15:01:50]wFMCommunicate OK [15:01:50]wFMCommunicate request_size=255 [15:01:50]MH_SAM_APDU [15:01:50]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 32 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 1E 6D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 6C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 26 00 00 00 00 07 04 06 00 D8 6C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 DF 39 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CF 85 02 00 35 04 06 00 5E E0 5C 82 [15:01:50]Write to MH i2c: E2 02 01 EA 1D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 32 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 1E 6D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 6C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 26 00 00 00 00 07 04 06 00 D8 6C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 DF 39 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CF 85 02 00 35 04 06 00 5E E0 5C 82 00 00 5C [15:01:50]Write i2c OK [15:01:50]MH_I2C_Read... [15:01:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:51]Read from MH i2c: E2 [15:01:51]MH_I2C_Read... [15:01:51]Read from MH i2c: E2 03 00 [15:01:51]MH_I2C_Read... [15:01:51]Read from MH i2c: E2 03 00 EA 1D 00 90 00 7B [15:01:51]RAPDU: 90 00 [15:01:51]wFMCommunicate OK [15:01:51]wFMCommunicate request_size=7 [15:01:51]MH_SAM_APDU [15:01:51]CAPDU: 80 0D 02 02 02 86 60 [15:01:51]Write to MH i2c: E2 0A 00 EB 1D 80 0D 02 02 02 00 86 60 00 00 6C [15:01:51]Write i2c OK [15:01:51]MH_I2C_Read... [15:01:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:51]Read from MH i2c: E2 [15:01:51]MH_I2C_Read... [15:01:51]Read from MH i2c: E2 03 00 [15:01:51]MH_I2C_Read... [15:01:51]Read from MH i2c: E2 03 00 EB 1D 00 90 00 7C [15:01:51]RAPDU: 90 00 [15:01:51]wFMCommunicate OK [15:01:51]wFMCommunicate request_size=4 [15:01:51]MH_SAM_APDU [15:01:51]CAPDU: 80 0D 03 02 [15:01:51]Write to MH i2c: E2 08 00 EC 1D 80 0D 03 02 00 00 00 00 84 [15:01:51]Write i2c OK [15:01:51]MH_I2C_Read... [15:01:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:01:51]Read from MH i2c: E2 [15:01:51]MH_I2C_Read... [15:01:51]Read from MH i2c: E2 0B 00 [15:01:51]MH_I2C_Read... [15:01:51]Read from MH i2c: E2 0B 00 EC 1D 00 78 D5 93 CA 13 08 A5 D9 90 00 C8 [15:01:51]RAPDU: 78 D5 93 CA 13 08 A5 D9 90 00 [15:01:51]wFMCommunicate OK [15:01:51]SAM_PROTO_SignData done [15:01:51]FM_MakeSignedData done [15:01:51]CreateOFDProtocolMessage [15:01:51]wFMCommunicate request_size=4 [15:01:51]MH_SAM_APDU [15:01:51]CAPDU: 80 11 00 00 [15:01:51]Write to MH i2c: E2 08 00 ED 1D 80 11 00 00 00 00 00 00 84 [15:01:51]Write i2c OK [15:01:51]MH_I2C_Read... [15:01:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:51]Read from MH i2c: E2 [15:01:51]MH_I2C_Read... [15:01:51]Read from MH i2c: E2 17 00 [15:01:51]MH_I2C_Read... [15:01:51]Read from MH i2c: E2 17 00 ED 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DA [15:01:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:01:51]wFMCommunicate OK [15:01:51]CreateOFDProtocolMessage done [15:01:51]OFDSenderStorePacket 165327 [15:01:51]StoreOFDPacket docnum=165327 [15:01:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 C3 FA 04 01 D2 AC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 32 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 1E 6D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 6C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 26 00 00 00 00 07 04 06 00 D8 6C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 DF 39 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CF 85 02 00 35 04 06 00 5E E0 5C 82 86 60 78 D5 93 CA 13 08 A5 D9 [15:01:51]CheckFolder [15:01:51]dirname=/storage/ofd_packets [15:01:51]CheckFolder done [15:01:51]ProducePacketName [15:01:51]name=ofd_packets/00165327 [15:01:51]NVStorageSaveData ofd_packets/00165327 [15:01:51]File name is /storage/ofd_packets/00165327 [15:01:51]Write 298 bytes [15:01:51]NVStorageSaveData done [15:01:51]OFDSenderStorePacket done [15:01:51]KKMCreateOFDPacket done [15:01:51]NVStorageSaveData kkm_last_timestamp [15:01:51]File name is /storage/kkm_last_timestamp [15:01:51]Write 4 bytes [15:01:51]NVStorageSaveData done [15:01:51]ExternCall_PrintAddStr [15:01:51]wPrintStart [15:01:51]Write to MH i2c: 01 00 00 EE 1D 0B [15:01:51]Write i2c OK [15:01:51]MH_I2C_Read... [15:01:51]Read from MH i2c: 01 [15:01:51]MH_I2C_Read... [15:01:51]Read from MH i2c: 01 07 00 [15:01:51]MH_I2C_Read... [15:01:51]Read from MH i2c: 01 07 00 EE 1D 00 00 00 00 00 FF 0F 20 [15:01:51]RasterBufferAndPrint [15:01:51]line Счет N : (1)459438 [15:01:51]line ИНН: 02508201610067 [15:01:51]line Контрольно-Кассовый Чек [15:01:51]line ПРОДАЖА [15:01:51]line ТРК (МРК, ГНК) : 21 [15:01:51]line Товар: 2710194210 [15:01:51]line ДТ-К-5 [15:01:51]line 13.000 * 71.90 [15:01:51]line = 934.70 [15:01:51]line НДС 12% НСП 1% [15:01:51]line > о реализуемом товаре [15:01:51]line ОКРУГЛЕНИЕ: -0.70 [15:01:51]line ИТОГО: 934.00 [15:01:51]line Внесено: 934.00 [15:01:51]line СДАЧА: 0.00 [15:01:51]line НСП 1% : 8.27 [15:01:51]line НДС 12% : 99.26 [15:01:51]line Наличными: 934.00 [15:01:51]line Безнал.: 0.00 [15:01:51]line Место: АЗС № 72 "Партнер Нефть" [15:01:51]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:01:51]line СНО: Общий режим [15:01:51]line Чек 200 15.07.2024 15:01 [15:01:51]line Смена: 448 ФФД: 1.0 [15:01:51]line ЗНМ: 0300000160 [15:01:51]line РНМ: 0000000000090829 [15:01:51]line Версия ККМ: 001 [15:01:51]line ФМ: 0000000000874718 [15:01:51]line ФД: 165327 [15:01:51]line ФПД: 104317717743200 [15:01:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T150151&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165327&fm=104317717743200&tin=02508201610067®Number=0000000000090829&sum=93400 [15:01:51]OFD Sender: Processing packet 165327 [packets to send 106, broken 105] [15:01:51]ProducePacketName [15:01:51]name=ofd_packets/00165327 [15:01:51]OFD Sender: To server: pG, [15:01:51]CommunicateWithHost lk.salyk.kg:30040 [15:01:51]ConnectInit lk.salyk.kg [15:01:51]written 0, free lines is 4095 [15:01:51]Connected sock=10 [15:01:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 C3 FA 04 01 D2 AC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 32 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 1E 6D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 6C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 26 00 00 00 00 07 04 06 00 D8 6C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 DF 39 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CF 85 02 00 35 04 06 00 5E E0 5C 82 86 60 78 D5 93 CA 13 08 A5 D9 [15:01:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 7C 8C 47 00 A0 E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 CF 85 02 00 F4 03 04 00 69 E0 94 66 B6 04 01 00 00 31 93 41 96 CD 9D C9 96 [15:01:51]CommunicateWithHost err = 0 [15:01:51]CheckOFDResponse [15:01:51]1017 (14) - 77093643461234 [15:01:51]1041 (16) - 0000000000874718 [15:01:51]1040 (4) - 165327 [15:01:51]1012 (4) - 15.07.2024 08:40 [15:01:51]1206 (1) - 0 [15:01:51]OFD Sender: Remove packet 165327 [15:01:51]ProducePacketName [15:01:51]name=ofd_packets/00165327 [15:01:51]NVStorageDeleteData [15:01:52]Write to MH i2c: 01 00 00 18 1E 36 [15:01:52]Write i2c OK [15:01:52]MH_I2C_Read... [15:01:52]Read from MH i2c: 01 [15:01:52]MH_I2C_Read... [15:01:52]Read from MH i2c: 01 07 00 [15:01:52]MH_I2C_Read... [15:01:52]Read from MH i2c: 01 07 00 18 1E 00 00 00 00 00 FA 0C 43 [15:01:52]RasterBufferAndPrint [15:01:52]line [15:01:52]line [15:01:52]line [15:01:52]line [15:01:52]line [15:01:52]written 0, free lines is 3327 [15:01:52]MH_Cut [15:01:52]Write to MH i2c: D1 01 00 1F 1E 01 0F [15:01:52]Write i2c OK [15:01:52]MH_I2C_Read... [15:01:52]Read from MH i2c: D1 [15:01:52]MH_I2C_Read... [15:01:52]Read from MH i2c: D1 01 00 [15:01:52]MH_I2C_Read... [15:01:52]Read from MH i2c: D1 01 00 1F 1E 00 0E [15:01:52]Write to MH i2c: 01 00 00 20 1E 3E [15:01:52]Write i2c OK [15:01:52]MH_I2C_Read... [15:01:52]OFD Sender: No OFD packet to send [15:01:52]*** Cut start [15:01:52]*** Partial cut [15:01:52]*** CUTSNS_PIN = 1 [15:01:52]*** CUTSNS_PIN = 0 [15:01:52]*** Brake cut motor [15:01:53]Read from MH i2c: 01 [15:01:53]MH_I2C_Read... [15:01:53]*** Stop cut motor [15:01:53]*** Cut end [15:01:53]Read from MH i2c: 01 07 00 [15:01:53]MH_I2C_Read... [15:01:53]Read from MH i2c: 01 07 00 20 1E 00 00 00 00 00 FF 0F 53 [15:01:53]process_action close_receipt done [15:01:53]requested_data is exist [15:01:53]produce_requested_data [15:01:53]requested_item fm.sn is exist - process it [15:01:53]wFMCommunicate request_size=4 [15:01:53]MH_SAM_APDU [15:01:53]CAPDU: 80 11 00 00 [15:01:53]Write to MH i2c: E2 08 00 21 1E 80 11 00 00 00 00 00 00 B9 [15:01:53]Write i2c OK [15:01:53]MH_I2C_Read... [15:01:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:53]Read from MH i2c: E2 [15:01:53]MH_I2C_Read... [15:01:53]Read from MH i2c: E2 17 00 [15:01:53]MH_I2C_Read... [15:01:53]Read from MH i2c: E2 17 00 21 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0F [15:01:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:01:53]wFMCommunicate OK [15:01:53]requested_item fd.num is exist - process it [15:01:53]SAM_PROTO_GetFieldsCounters [15:01:53]wFMCommunicate request_size=4 [15:01:53]MH_SAM_APDU [15:01:53]CAPDU: 80 13 00 00 [15:01:53]Write to MH i2c: E2 08 00 22 1E 80 13 00 00 00 00 00 00 BC [15:01:53]Write i2c OK [15:01:53]MH_I2C_Read... [15:01:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:01:53]Read from MH i2c: E2 [15:01:53]MH_I2C_Read... [15:01:53]Read from MH i2c: E2 62 00 [15:01:53]MH_I2C_Read... [15:01:53]Read from MH i2c: E2 62 00 22 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 CF 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [15:01: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 CF 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:01:53]wFMCommunicate OK [15:01:53]SAM_PROTO_GetFieldsCounters done [15:01:53]requested_item shift.num is exist - process it [15:01:53]requested_item shift.opened is exist - process it [15:01:53]req_shift_opened [15:01:53]FM_GetShiftState [15:01:53]SAM_PROTO_GetShiftState [15:01:53]wFMCommunicate request_size=4 [15:01:53]MH_SAM_APDU [15:01:53]CAPDU: 80 13 01 00 [15:01:53]Write to MH i2c: E2 08 00 23 1E 80 13 01 00 00 00 00 00 BE [15:01:53]Write i2c OK [15:01:53]MH_I2C_Read... [15:01:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:53]Read from MH i2c: E2 [15:01:53]MH_I2C_Read... [15:01:53]Read from MH i2c: E2 0E 00 [15:01:53]MH_I2C_Read... [15:01:53]Read from MH i2c: E2 0E 00 23 1E 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 97 [15:01:53]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [15:01:53]wFMCommunicate OK [15:01:53]SAM_PROTO_GetShiftState done [15:01:53]FM_GetShiftState done [15:01:53]req_shift_opened done [15:01:53]requested_item shift.open_date is exist - process it [15:01:53]req_shift_open_date [15:01:53]req_shift_open_date done [15:01:53]produce_requested_data done [15:01:53]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165327,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [15:01:53]process_action_free close_receipt [15:01:53]json_value_free [15:01:53]json_value_free done [15:01:53]process_json_proto returns [15:01:53]Send response to host [15:01:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165327,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [15:01:53]free response buf [15:01:53]execute_script done [15:01:53]execute_script returns [15:01:53]free content buf [15:01:53]Sock 8.Close socket [15:01:53]Sock 8.Thread stoped [15:01:57]OFD Sender: No OFD packet to send [15:02:02]OFD Sender: No OFD packet to send [15:02:07]OFD Sender: No OFD packet to send [15:02:12]OFD Sender: No OFD packet to send [15:02:17]OFD Sender: No OFD packet to send [15:02:22]OFD Sender: No OFD packet to send [15:02:27]OFD Sender: No OFD packet to send [15:02:32]OFD Sender: No OFD packet to send [15:02:37]OFD Sender: No OFD packet to send [15:02:42]OFD Sender: No OFD packet to send [15:02:47]OFD Sender: No OFD packet to send [15:02:52]OFD Sender: No OFD packet to send [15:02:57]OFD Sender: No OFD packet to send [15:03:01]accept exits with 9 [15:03:01]New connection [15:03:01]New thread 3066711396 created [15:03:01]Thread 3066854756 joined [15:03:01]Waiting for new connection... [15:03:01] Sock 9.Parse request [15:03:01]Sock 9.Check first char [15:03:01]Sock 9.First char is OK [15:03:01]request: POST /json_proto HTTP/1.0 [15:03:01]Method: POST [15:03:01]URL: /json_proto [15:03:01]Method is POST - this is cgi request [15:03:01]url: /json_proto [15:03:01]query_string will be loaded in cgi processing [15:03:01]execute_cgi json_proto POST (null) [15:03:01]execute_cgi path=json_proto method=POST [15:03:01]POST find Content-Length [15:03:01]Host: 172.17.56.4:8080 [15:03:01]Content-Length: 677 [15:03:01]Content-Type: application/json [15:03:01] [15:03:01]POST finish read [15:03:01]Found Content-Length = 677 [15:03:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459439", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.140, "sum" : 206.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 206.00, "total" : 206.00, "payments": [ { "type": 0, "sum" : 206.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:01]execute_script... [15:03:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459439", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.140, "sum" : 206.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 206.00, "total" : 206.00, "payments": [ { "type": 0, "sum" : 206.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:01]POST & json_proto [15:03:01]process_json_proto [15:03:01]json parsed OK: [15:03:01]protocol is kg_v1.0 [15:03:01]action value=close_receipt [15:03:01]process_action close_receipt [15:03:01]cmd_close_receipt [15:03:01]MH_GetDate [15:03:01]Write to MH i2c: F0 00 00 24 1E 31 [15:03:01]Write i2c OK [15:03:01]MH_I2C_Read... [15:03:01]Read from MH i2c: F0 [15:03:01]MH_I2C_Read... [15:03:01]Read from MH i2c: F0 09 00 [15:03:01]MH_I2C_Read... [15:03:01]Read from MH i2c: F0 09 00 24 1E 00 27 3A 95 66 C9 DC B2 64 51 [15:03:01]GetLastDocTimeStamp 1721055711 [15:03:01]current date 1721055783 [15:03:01]FM_GetShiftState [15:03:01]SAM_PROTO_GetShiftState [15:03:01]wFMCommunicate request_size=4 [15:03:01]MH_SAM_APDU [15:03:01]CAPDU: 80 13 01 00 [15:03:01]Write to MH i2c: E2 08 00 25 1E 80 13 01 00 00 00 00 00 C0 [15:03:01]Write i2c OK [15:03:01]MH_I2C_Read... [15:03:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:01]Read from MH i2c: E2 [15:03:01]MH_I2C_Read... [15:03:01]Read from MH i2c: E2 0E 00 [15:03:01]MH_I2C_Read... [15:03:01]Read from MH i2c: E2 0E 00 25 1E 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 99 [15:03:01]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [15:03:01]wFMCommunicate OK [15:03:01]SAM_PROTO_GetShiftState done [15:03:01]FM_GetShiftState done [15:03:01]opened in 1721003876 [15:03:01]opened+sec_in_day 1721090276 [15:03:01]quantity*price = 20661 [15:03:01]sum+1 = 20662 [15:03:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 206.00 Внесено: 206.00 СДАЧА: 0.00 НСП 1% : 1.83 НДС 12% : 21.94 Наличными: 206.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 201 15.07.2024 15:03 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165328 ФПД: 96704615567163 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T150303&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165328&fm=96704615567163&tin=02508201610067®Number=0000000000090829&sum=20600 [15:03:02]StoreToDocumentArchive [15:03:02]shift 448 fd 165328 [15:03:02]save to /storage/0448/doc_00165328 [15:03:02]save last doc name /storage/0448/doc_00165328 to /storage/kkm_last_doc_name [15:03:02]save OK [15:03:02]Clear old archive folders... [15:03:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:03:02]tlvbuf is 0181A1E0 [15:03:02]SAM_PROTO_ClearQueue [15:03:02]wFMCommunicate request_size=4 [15:03:02]MH_SAM_APDU [15:03:02]CAPDU: 80 09 00 00 [15:03:02]Write to MH i2c: E2 08 00 32 1E 80 09 00 00 00 00 00 00 C2 [15:03:02]Write i2c OK [15:03:02]MH_I2C_Read... [15:03:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:03:02]Read from MH i2c: E2 [15:03:02]MH_I2C_Read... [15:03:02]Read from MH i2c: E2 03 00 [15:03:02]MH_I2C_Read... [15:03:02]Read from MH i2c: E2 03 00 32 1E 00 90 00 C4 [15:03:02]RAPDU: 90 00 [15:03:02]wFMCommunicate OK [15:03:02]SAM_PROTO_ClearQueue done [15:03:02]KKMCreateOFDPacket [15:03:02]OFDProtocolAddRootSTLVToBuf [15:03:02]FM_MakeSignedData [15:03:02]FM_MakeSignedData [15:03:02]SAM_PROTO_SignData [15:03:02]wFMCommunicate request_size=4 [15:03:02]MH_SAM_APDU [15:03:02]CAPDU: 80 0D 01 02 [15:03:02]Write to MH i2c: E2 08 00 33 1E 80 0D 01 02 00 00 00 00 CA [15:03:02]Write i2c OK [15:03:02]MH_I2C_Read... [15:03:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:03:02]Read from MH i2c: E2 [15:03:02]MH_I2C_Read... [15:03:02]Read from MH i2c: E2 03 00 [15:03:02]MH_I2C_Read... [15:03:02]Read from MH i2c: E2 03 00 33 1E 00 90 00 C5 [15:03:02]RAPDU: 90 00 [15:03:02]wFMCommunicate OK [15:03:02]wFMCommunicate request_size=255 [15:03:02]MH_SAM_APDU [15:03:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 0C 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B5 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 08 00 00 00 00 07 04 06 00 78 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 27 3A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D0 85 02 00 35 04 06 00 57 [15:03:02]Write to MH i2c: E2 02 01 34 1E 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 44 0C 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B5 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 08 00 00 00 00 07 04 06 00 78 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 27 3A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D0 85 02 00 35 04 06 00 57 00 00 71 [15:03:02]Write i2c OK [15:03:02]MH_I2C_Read... [15:03:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:03]Read from MH i2c: E2 [15:03:03]MH_I2C_Read... [15:03:03]Read from MH i2c: E2 03 00 [15:03:03]MH_I2C_Read... [15:03:03]Read from MH i2c: E2 03 00 34 1E 00 90 00 C6 [15:03:03]RAPDU: 90 00 [15:03:03]wFMCommunicate OK [15:03:03]wFMCommunicate request_size=10 [15:03:03]MH_SAM_APDU [15:03:03]CAPDU: 80 0D 02 02 05 F3 CC 42 4F 3B [15:03:03]Write to MH i2c: E2 0D 00 35 1E 80 0D 02 02 05 00 F3 CC 42 4F 3B 00 00 62 [15:03:03]Write i2c OK [15:03:03]MH_I2C_Read... [15:03:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:03]Read from MH i2c: E2 [15:03:03]MH_I2C_Read... [15:03:03]Read from MH i2c: E2 03 00 [15:03:03]MH_I2C_Read... [15:03:03]Read from MH i2c: E2 03 00 35 1E 00 90 00 C7 [15:03:03]RAPDU: 90 00 [15:03:03]wFMCommunicate OK [15:03:03]wFMCommunicate request_size=4 [15:03:03]MH_SAM_APDU [15:03:03]CAPDU: 80 0D 03 02 [15:03:03]Write to MH i2c: E2 08 00 36 1E 80 0D 03 02 00 00 00 00 CF [15:03:03]Write i2c OK [15:03:03]MH_I2C_Read... [15:03:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:03:03]Read from MH i2c: E2 [15:03:03]MH_I2C_Read... [15:03:03]Read from MH i2c: E2 0B 00 [15:03:03]MH_I2C_Read... [15:03:03]Read from MH i2c: E2 0B 00 36 1E 00 57 D0 0E 65 62 4B ED 50 90 00 54 [15:03:03]RAPDU: 57 D0 0E 65 62 4B ED 50 90 00 [15:03:03]wFMCommunicate OK [15:03:03]SAM_PROTO_SignData done [15:03:03]FM_MakeSignedData done [15:03:03]CreateOFDProtocolMessage [15:03:03]wFMCommunicate request_size=4 [15:03:03]MH_SAM_APDU [15:03:03]CAPDU: 80 11 00 00 [15:03:03]Write to MH i2c: E2 08 00 37 1E 80 11 00 00 00 00 00 00 CF [15:03:03]Write i2c OK [15:03:03]MH_I2C_Read... [15:03:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:03]Read from MH i2c: E2 [15:03:03]MH_I2C_Read... [15:03:03]Read from MH i2c: E2 17 00 [15:03:03]MH_I2C_Read... [15:03:03]Read from MH i2c: E2 17 00 37 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 25 [15:03:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:03:03]wFMCommunicate OK [15:03:03]CreateOFDProtocolMessage done [15:03:03]OFDSenderStorePacket 165328 [15:03:03]StoreOFDPacket docnum=165328 [15:03:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 54 61 07 01 AE 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 0C 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B5 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 08 00 00 00 00 07 04 06 00 78 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 27 3A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D0 85 02 00 35 04 06 00 57 F3 CC 42 4F 3B 57 D0 0E 65 62 4B ED 50 [15:03:03]CheckFolder [15:03:03]dirname=/storage/ofd_packets [15:03:03]CheckFolder done [15:03:03]ProducePacketName [15:03:03]name=ofd_packets/00165328 [15:03:03]NVStorageSaveData ofd_packets/00165328 [15:03:03]File name is /storage/ofd_packets/00165328 [15:03:03]Write 301 bytes [15:03:03]NVStorageSaveData done [15:03:03]OFDSenderStorePacket done [15:03:03]KKMCreateOFDPacket done [15:03:03]NVStorageSaveData kkm_last_timestamp [15:03:03]File name is /storage/kkm_last_timestamp [15:03:03]Write 4 bytes [15:03:03]NVStorageSaveData done [15:03:03]ExternCall_PrintAddStr [15:03:03]wPrintStart [15:03:03]Write to MH i2c: 01 00 00 38 1E 56 [15:03:03]Write i2c OK [15:03:03]MH_I2C_Read... [15:03:03]Read from MH i2c: 01 [15:03:03]MH_I2C_Read... [15:03:03]Read from MH i2c: 01 07 00 [15:03:03]MH_I2C_Read... [15:03:03]Read from MH i2c: 01 07 00 38 1E 00 00 00 00 00 FF 0F 6B [15:03:03]RasterBufferAndPrint [15:03:03]line Счет N : (1)459439 [15:03:03]line ИНН: 02508201610067 [15:03:03]line Контрольно-Кассовый Чек [15:03:03]line ПРОДАЖА [15:03:03]line ТРК (МРК, ГНК) : 22 [15:03:03]line Товар: 2710124130 [15:03:03]line Аи-92-К-5 [15:03:03]line 3.140 * 65.80 [15:03:03]line = 206.61 [15:03:03]line НДС 12% НСП 1% [15:03:03]line > о реализуемом товаре [15:03:03]line ОКРУГЛЕНИЕ: -0.61 [15:03:03]line ИТОГО: 206.00 [15:03:03]line Внесено: 206.00 [15:03:03]line СДАЧА: 0.00 [15:03:03]line НСП 1% : 1.83 [15:03:03]line НДС 12% : 21.94 [15:03:03]line Наличными: 206.00 [15:03:03]line Безнал.: 0.00 [15:03:03]line Место: АЗС № 72 "Партнер Нефть" [15:03:03]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:03:03]line СНО: Общий режим [15:03:03]line Чек 201 15.07.2024 15:03 [15:03:03]line Смена: 448 ФФД: 1.0 [15:03:03]line ЗНМ: 0300000160 [15:03:03]line РНМ: 0000000000090829 [15:03:03]line Версия ККМ: 001 [15:03:03]line ФМ: 0000000000874718 [15:03:03]line ФД: 165328 [15:03:03]line ФПД: 96704615567163 [15:03:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T150303&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165328&fm=96704615567163&tin=02508201610067®Number=0000000000090829&sum=20600 [15:03:03]written 0, free lines is 4095 [15:03:03]OFD Sender: Processing packet 165328 [packets to send 106, broken 105] [15:03:03]ProducePacketName [15:03:03]name=ofd_packets/00165328 [15:03:03]OFD Sender: To server: pG, [15:03:03]CommunicateWithHost lk.salyk.kg:30040 [15:03:03]ConnectInit lk.salyk.kg [15:03:03]Connected sock=10 [15:03:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 54 61 07 01 AE 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 0C 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B5 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 08 00 00 00 00 07 04 06 00 78 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 27 3A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D0 85 02 00 35 04 06 00 57 F3 CC 42 4F 3B 57 D0 0E 65 62 4B ED 50 [15:03:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 6F 2B 47 00 45 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 37 31 38 10 04 04 00 D0 85 02 00 F4 03 04 00 B1 E0 94 66 B6 04 01 00 00 12 B7 FE C3 C4 8F 13 9A [15:03:03]CommunicateWithHost err = 0 [15:03:03]CheckOFDResponse [15:03:03]1017 (14) - 77093643461234 [15:03:03]1041 (16) - 0000000000874718 [15:03:03]1040 (4) - 165328 [15:03:03]1012 (4) - 15.07.2024 08:41 [15:03:03]1206 (1) - 0 [15:03:03]OFD Sender: Remove packet 165328 [15:03:03]ProducePacketName [15:03:03]name=ofd_packets/00165328 [15:03:03]NVStorageDeleteData [15:03:04]Write to MH i2c: 01 00 00 62 1E 80 [15:03:04]Write i2c OK [15:03:04]MH_I2C_Read... [15:03:04]Read from MH i2c: 01 [15:03:04]MH_I2C_Read... [15:03:04]Read from MH i2c: 01 07 00 [15:03:04]MH_I2C_Read... [15:03:04]Read from MH i2c: 01 07 00 62 1E 00 00 00 00 00 0A 0D 9E [15:03:04]RasterBufferAndPrint [15:03:04]line [15:03:04]line [15:03:04]line [15:03:04]line [15:03:04]line [15:03:04]written 0, free lines is 3347 [15:03:04]MH_Cut [15:03:04]Write to MH i2c: D1 01 00 69 1E 01 59 [15:03:04]Write i2c OK [15:03:04]MH_I2C_Read... [15:03:04]Read from MH i2c: D1 [15:03:04]MH_I2C_Read... [15:03:04]Read from MH i2c: D1 01 00 [15:03:04]MH_I2C_Read... [15:03:04]Read from MH i2c: D1 01 00 69 1E 00 58 [15:03:04]Write to MH i2c: 01 00 00 6A 1E 88 [15:03:04]Write i2c OK [15:03:04]MH_I2C_Read... [15:03:04]OFD Sender: No OFD packet to send [15:03:04]*** Cut start [15:03:04]*** Partial cut [15:03:04]*** CUTSNS_PIN = 1 [15:03:04]*** CUTSNS_PIN = 0 [15:03:05]*** Brake cut motor [15:03:05]Read from MH i2c: 01 [15:03:05]MH_I2C_Read... [15:03:05]*** Stop cut motor [15:03:05]*** Cut end [15:03:05]Read from MH i2c: 01 07 00 [15:03:05]MH_I2C_Read... [15:03:05]Read from MH i2c: 01 07 00 6A 1E 00 00 00 00 00 FF 0F 9D [15:03:05]process_action close_receipt done [15:03:05]requested_data is exist [15:03:05]produce_requested_data [15:03:05]requested_item fm.sn is exist - process it [15:03:05]wFMCommunicate request_size=4 [15:03:05]MH_SAM_APDU [15:03:05]CAPDU: 80 11 00 00 [15:03:05]Write to MH i2c: E2 08 00 6B 1E 80 11 00 00 00 00 00 00 03 [15:03:05]Write i2c OK [15:03:05]MH_I2C_Read... [15:03:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:05]Read from MH i2c: E2 [15:03:05]MH_I2C_Read... [15:03:05]Read from MH i2c: E2 17 00 [15:03:05]MH_I2C_Read... [15:03:05]Read from MH i2c: E2 17 00 6B 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 59 [15:03:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:03:05]wFMCommunicate OK [15:03:05]requested_item fd.num is exist - process it [15:03:05]SAM_PROTO_GetFieldsCounters [15:03:05]wFMCommunicate request_size=4 [15:03:05]MH_SAM_APDU [15:03:05]CAPDU: 80 13 00 00 [15:03:05]Write to MH i2c: E2 08 00 6C 1E 80 13 00 00 00 00 00 00 06 [15:03:05]Write i2c OK [15:03:05]MH_I2C_Read... [15:03:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:03:05]Read from MH i2c: E2 [15:03:05]MH_I2C_Read... [15:03:05]Read from MH i2c: E2 62 00 [15:03:05]MH_I2C_Read... [15:03:05]Read from MH i2c: E2 62 00 6C 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D0 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [15:03:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D0 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:03:05]wFMCommunicate OK [15:03:05]SAM_PROTO_GetFieldsCounters done [15:03:05]requested_item shift.num is exist - process it [15:03:05]requested_item shift.opened is exist - process it [15:03:05]req_shift_opened [15:03:05]FM_GetShiftState [15:03:05]SAM_PROTO_GetShiftState [15:03:05]wFMCommunicate request_size=4 [15:03:05]MH_SAM_APDU [15:03:05]CAPDU: 80 13 01 00 [15:03:05]Write to MH i2c: E2 08 00 6D 1E 80 13 01 00 00 00 00 00 08 [15:03:05]Write i2c OK [15:03:05]MH_I2C_Read... [15:03:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:05]Read from MH i2c: E2 [15:03:05]MH_I2C_Read... [15:03:05]Read from MH i2c: E2 0E 00 [15:03:05]MH_I2C_Read... [15:03:05]Read from MH i2c: E2 0E 00 6D 1E 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 E1 [15:03:05]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [15:03:05]wFMCommunicate OK [15:03:05]SAM_PROTO_GetShiftState done [15:03:05]FM_GetShiftState done [15:03:05]req_shift_opened done [15:03:05]requested_item shift.open_date is exist - process it [15:03:05]req_shift_open_date [15:03:05]req_shift_open_date done [15:03:05]produce_requested_data done [15:03:05]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165328,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [15:03:05]process_action_free close_receipt [15:03:05]json_value_free [15:03:05]json_value_free done [15:03:05]process_json_proto returns [15:03:05]Send response to host [15:03:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165328,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [15:03:05]free response buf [15:03:05]execute_script done [15:03:05]execute_script returns [15:03:05]free content buf [15:03:05]Sock 9.Close socket [15:03:05]Sock 9.Thread stoped [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:30]accept exits with 8 [15:04:30]New connection [15:04:30]New thread 3066854756 created [15:04:30]Thread 3066711396 joined [15:04:30]Waiting for new connection... [15:04:30] Sock 8.Parse request [15:04:30]Sock 8.Check first char [15:04:30]Sock 8.First char is OK [15:04:30]request: POST /json_proto HTTP/1.0 [15:04:30]Method: POST [15:04:30]URL: /json_proto [15:04:30]Method is POST - this is cgi request [15:04:30]url: /json_proto [15:04:30]query_string will be loaded in cgi processing [15:04:30]execute_cgi json_proto POST (null) [15:04:30]execute_cgi path=json_proto method=POST [15:04:30]POST find Content-Length [15:04:30]Host: 172.17.56.4:8080 [15:04:30]Content-Length: 677 [15:04:30]Content-Type: application/json [15:04:30] [15:04:30]POST finish read [15:04:30]Found Content-Length = 677 [15:04:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459440", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.650, "sum" : 240.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:04:30]execute_script... [15:04:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459440", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.650, "sum" : 240.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:04:30]POST & json_proto [15:04:30]process_json_proto [15:04:30]json parsed OK: [15:04:30]protocol is kg_v1.0 [15:04:30]action value=close_receipt [15:04:30]process_action close_receipt [15:04:30]cmd_close_receipt [15:04:30]MH_GetDate [15:04:30]Write to MH i2c: F0 00 00 6E 1E 7B [15:04:30]Write i2c OK [15:04:30]MH_I2C_Read... [15:04:30]Read from MH i2c: F0 [15:04:30]MH_I2C_Read... [15:04:30]Read from MH i2c: F0 09 00 [15:04:30]MH_I2C_Read... [15:04:30]Read from MH i2c: F0 09 00 6E 1E 00 7F 3A 95 66 C9 DC B2 64 F3 [15:04:30]GetLastDocTimeStamp 1721055783 [15:04:30]current date 1721055871 [15:04:30]FM_GetShiftState [15:04:30]SAM_PROTO_GetShiftState [15:04:30]wFMCommunicate request_size=4 [15:04:30]MH_SAM_APDU [15:04:30]CAPDU: 80 13 01 00 [15:04:30]Write to MH i2c: E2 08 00 6F 1E 80 13 01 00 00 00 00 00 0A [15:04:30]Write i2c OK [15:04:30]MH_I2C_Read... [15:04:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:30]Read from MH i2c: E2 [15:04:30]MH_I2C_Read... [15:04:30]Read from MH i2c: E2 0E 00 [15:04:30]MH_I2C_Read... [15:04:30]Read from MH i2c: E2 0E 00 6F 1E 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 E3 [15:04:30]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [15:04:30]wFMCommunicate OK [15:04:30]SAM_PROTO_GetShiftState done [15:04:30]FM_GetShiftState done [15:04:30]opened in 1721003876 [15:04:30]opened+sec_in_day 1721090276 [15:04:30]quantity*price = 24017 [15:04:30]sum+1 = 24018 [15:04:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 240.00 Внесено: 240.00 СДАЧА: 0.00 НСП 1% : 2.12 НДС 12% : 25.50 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 202 15.07.2024 15:04 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165329 ФПД: 229710743360542 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T150432&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165329&fm=229710743360542&tin=02508201610067®Number=0000000000090829&sum=24000 [15:04:31]StoreToDocumentArchive [15:04:31]shift 448 fd 165329 [15:04:31]save to /storage/0448/doc_00165329 [15:04:31]save last doc name /storage/0448/doc_00165329 to /storage/kkm_last_doc_name [15:04:31]save OK [15:04:31]Clear old archive folders... [15:04:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:04:31]tlvbuf is 01811070 [15:04:31]SAM_PROTO_ClearQueue [15:04:31]wFMCommunicate request_size=4 [15:04:31]MH_SAM_APDU [15:04:31]CAPDU: 80 09 00 00 [15:04:31]Write to MH i2c: E2 08 00 7C 1E 80 09 00 00 00 00 00 00 0C [15:04:31]Write i2c OK [15:04:31]MH_I2C_Read... [15:04:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:04:31]Read from MH i2c: E2 [15:04:31]MH_I2C_Read... [15:04:31]Read from MH i2c: E2 03 00 [15:04:31]MH_I2C_Read... [15:04:31]Read from MH i2c: E2 03 00 7C 1E 00 90 00 0E [15:04:31]RAPDU: 90 00 [15:04:31]wFMCommunicate OK [15:04:31]SAM_PROTO_ClearQueue done [15:04:31]KKMCreateOFDPacket [15:04:31]OFDProtocolAddRootSTLVToBuf [15:04:31]FM_MakeSignedData [15:04:31]FM_MakeSignedData [15:04:31]SAM_PROTO_SignData [15:04:31]wFMCommunicate request_size=4 [15:04:31]MH_SAM_APDU [15:04:31]CAPDU: 80 0D 01 02 [15:04:31]Write to MH i2c: E2 08 00 7D 1E 80 0D 01 02 00 00 00 00 14 [15:04:31]Write i2c OK [15:04:31]MH_I2C_Read... [15:04:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:04:31]Read from MH i2c: E2 [15:04:31]MH_I2C_Read... [15:04:31]Read from MH i2c: E2 03 00 [15:04:31]MH_I2C_Read... [15:04:31]Read from MH i2c: E2 03 00 7D 1E 00 90 00 0F [15:04:31]RAPDU: 90 00 [15:04:31]wFMCommunicate OK [15:04:31]wFMCommunicate request_size=255 [15:04:31]MH_SAM_APDU [15:04:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 80 3A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D1 85 02 00 35 04 06 00 D0 [15:04:31]Write to MH i2c: E2 02 01 7E 1E 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 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 80 3A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D1 85 02 00 35 04 06 00 D0 00 00 E4 [15:04:31]Write i2c OK [15:04:31]MH_I2C_Read... [15:04:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:32]Read from MH i2c: E2 [15:04:32]MH_I2C_Read... [15:04:32]Read from MH i2c: E2 03 00 [15:04:32]MH_I2C_Read... [15:04:32]Read from MH i2c: E2 03 00 7E 1E 00 90 00 10 [15:04:32]RAPDU: 90 00 [15:04:32]wFMCommunicate OK [15:04:32]wFMCommunicate request_size=10 [15:04:32]MH_SAM_APDU [15:04:32]CAPDU: 80 0D 02 02 05 EB B3 42 54 1E [15:04:32]Write to MH i2c: E2 0D 00 7F 1E 80 0D 02 02 05 00 EB B3 42 54 1E 00 00 73 [15:04:32]Write i2c OK [15:04:32]MH_I2C_Read... [15:04:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:32]Read from MH i2c: E2 [15:04:32]MH_I2C_Read... [15:04:32]Read from MH i2c: E2 03 00 [15:04:32]MH_I2C_Read... [15:04:32]Read from MH i2c: E2 03 00 7F 1E 00 90 00 11 [15:04:32]RAPDU: 90 00 [15:04:32]wFMCommunicate OK [15:04:32]wFMCommunicate request_size=4 [15:04:32]MH_SAM_APDU [15:04:32]CAPDU: 80 0D 03 02 [15:04:32]Write to MH i2c: E2 08 00 80 1E 80 0D 03 02 00 00 00 00 19 [15:04:32]Write i2c OK [15:04:32]MH_I2C_Read... [15:04:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:04:32]Read from MH i2c: E2 [15:04:32]MH_I2C_Read... [15:04:32]Read from MH i2c: E2 0B 00 [15:04:32]MH_I2C_Read... [15:04:32]Read from MH i2c: E2 0B 00 80 1E 00 08 B3 29 EA E8 7A 99 CC 90 00 AF [15:04:32]RAPDU: 08 B3 29 EA E8 7A 99 CC 90 00 [15:04:32]wFMCommunicate OK [15:04:32]SAM_PROTO_SignData done [15:04:32]FM_MakeSignedData done [15:04:32]CreateOFDProtocolMessage [15:04:32]wFMCommunicate request_size=4 [15:04:32]MH_SAM_APDU [15:04:32]CAPDU: 80 11 00 00 [15:04:32]Write to MH i2c: E2 08 00 81 1E 80 11 00 00 00 00 00 00 19 [15:04:32]Write i2c OK [15:04:32]MH_I2C_Read... [15:04:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:32]Read from MH i2c: E2 [15:04:32]MH_I2C_Read... [15:04:32]Read from MH i2c: E2 17 00 [15:04:32]MH_I2C_Read... [15:04:32]Read from MH i2c: E2 17 00 81 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6F [15:04:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:04:32]wFMCommunicate OK [15:04:32]CreateOFDProtocolMessage done [15:04:32]OFDSenderStorePacket 165329 [15:04:32]StoreOFDPacket docnum=165329 [15:04:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B4 E1 07 01 5E 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 80 3A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D1 85 02 00 35 04 06 00 D0 EB B3 42 54 1E 08 B3 29 EA E8 7A 99 CC [15:04:32]CheckFolder [15:04:32]dirname=/storage/ofd_packets [15:04:32]CheckFolder done [15:04:32]ProducePacketName [15:04:32]name=ofd_packets/00165329 [15:04:32]NVStorageSaveData ofd_packets/00165329 [15:04:32]File name is /storage/ofd_packets/00165329 [15:04:32]Write 301 bytes [15:04:32]NVStorageSaveData done [15:04:32]OFDSenderStorePacket done [15:04:32]KKMCreateOFDPacket done [15:04:32]NVStorageSaveData kkm_last_timestamp [15:04:32]File name is /storage/kkm_last_timestamp [15:04:32]Write 4 bytes [15:04:32]NVStorageSaveData done [15:04:32]ExternCall_PrintAddStr [15:04:32]wPrintStart [15:04:32]Write to MH i2c: 01 00 00 82 1E A0 [15:04:32]Write i2c OK [15:04:32]MH_I2C_Read... [15:04:32]Read from MH i2c: 01 [15:04:32]MH_I2C_Read... [15:04:32]Read from MH i2c: 01 07 00 [15:04:32]MH_I2C_Read... [15:04:32]Read from MH i2c: 01 07 00 82 1E 00 00 00 00 00 FF 0F B5 [15:04:32]RasterBufferAndPrint [15:04:32]line Счет N : (1)459440 [15:04:32]line ИНН: 02508201610067 [15:04:32]line Контрольно-Кассовый Чек [15:04:32]line ПРОДАЖА [15:04:32]line ТРК (МРК, ГНК) : 12 [15:04:32]line Товар: 2710124130 [15:04:32]line Аи-92-К-5 [15:04:32]line 3.650 * 65.80 [15:04:32]line = 240.17 [15:04:32]line НДС 12% НСП 1% [15:04:32]line > о реализуемом товаре [15:04:32]line ОКРУГЛЕНИЕ: -0.17 [15:04:32]line ИТОГО: 240.00 [15:04:32]line Внесено: 240.00 [15:04:32]line СДАЧА: 0.00 [15:04:32]line НСП 1% : 2.12 [15:04:32]line НДС 12% : 25.50 [15:04:32]line Наличными: 240.00 [15:04:32]line Безнал.: 0.00 [15:04:32]line Место: АЗС № 72 "Партнер Нефть" [15:04:32]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:04:32]line СНО: Общий режим [15:04:32]line Чек 202 15.07.2024 15:04 [15:04:32]line Смена: 448 ФФД: 1.0 [15:04:32]line ЗНМ: 0300000160 [15:04:32]line РНМ: 0000000000090829 [15:04:32]line Версия ККМ: 001 [15:04:32]line ФМ: 0000000000874718 [15:04:32]line ФД: 165329 [15:04:32]line ФПД: 229710743360542 [15:04:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T150432&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165329&fm=229710743360542&tin=02508201610067®Number=0000000000090829&sum=24000 [15:04:32]OFD Sender: Processing packet 165329 [packets to send 106, broken 105] [15:04:32]ProducePacketName [15:04:32]name=ofd_packets/00165329 [15:04:32]OFD Sender: To server: pG, [15:04:32]CommunicateWithHost lk.salyk.kg:30040 [15:04:32]ConnectInit lk.salyk.kg [15:04:32]written 0, free lines is 4095 [15:04:32]Connected sock=10 [15:04:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B4 E1 07 01 5E 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 D1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 80 3A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D1 85 02 00 35 04 06 00 D0 EB B3 42 54 1E 08 B3 29 EA E8 7A 99 CC [15:04:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 A7 16 47 00 61 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D1 85 02 00 F4 03 04 00 0A E1 94 66 B6 04 01 00 00 1F 09 E7 C9 9B 74 89 F3 [15:04:32]CommunicateWithHost err = 0 [15:04:32]CheckOFDResponse [15:04:32]1017 (14) - 77093643461234 [15:04:32]1041 (16) - 0000000000874718 [15:04:32]1040 (4) - 165329 [15:04:32]1012 (4) - 15.07.2024 08:42 [15:04:32]1206 (1) - 0 [15:04:32]OFD Sender: Remove packet 165329 [15:04:32]ProducePacketName [15:04:32]name=ofd_packets/00165329 [15:04:32]NVStorageDeleteData [15:04:32]Write to MH i2c: 01 00 00 AC 1E CA [15:04:32]Write i2c OK [15:04:32]MH_I2C_Read... [15:04:32]Read from MH i2c: 01 [15:04:32]MH_I2C_Read... [15:04:32]Read from MH i2c: 01 07 00 [15:04:32]MH_I2C_Read... [15:04:32]Read from MH i2c: 01 07 00 AC 1E 00 00 00 00 00 EF 0C CC [15:04:32]RasterBufferAndPrint [15:04:32]line [15:04:32]line [15:04:32]line [15:04:32]line [15:04:32]line [15:04:32]written 0, free lines is 3318 [15:04:32]MH_Cut [15:04:32]Write to MH i2c: D1 01 00 B3 1E 01 A3 [15:04:32]Write i2c OK [15:04:32]MH_I2C_Read... [15:04:32]Read from MH i2c: D1 [15:04:32]MH_I2C_Read... [15:04:32]Read from MH i2c: D1 01 00 [15:04:32]MH_I2C_Read... [15:04:32]Read from MH i2c: D1 01 00 B3 1E 00 A2 [15:04:32]Write to MH i2c: 01 00 00 B4 1E D2 [15:04:32]Write i2c OK [15:04:32]MH_I2C_Read... [15:04:33]OFD Sender: No OFD packet to send [15:04:33]*** Cut start [15:04:33]*** Partial cut [15:04:33]*** CUTSNS_PIN = 1 [15:04:33]*** CUTSNS_PIN = 0 [15:04:33]*** Brake cut motor [15:04:34]Read from MH i2c: 01 [15:04:34]MH_I2C_Read... [15:04:34]*** Stop cut motor [15:04:34]*** Cut end [15:04:34]Read from MH i2c: 01 07 00 [15:04:34]MH_I2C_Read... [15:04:34]Read from MH i2c: 01 07 00 B4 1E 00 00 00 00 00 FF 0F E7 [15:04:34]process_action close_receipt done [15:04:34]requested_data is exist [15:04:34]produce_requested_data [15:04:34]requested_item fm.sn is exist - process it [15:04:34]wFMCommunicate request_size=4 [15:04:34]MH_SAM_APDU [15:04:34]CAPDU: 80 11 00 00 [15:04:34]Write to MH i2c: E2 08 00 B5 1E 80 11 00 00 00 00 00 00 4D [15:04:34]Write i2c OK [15:04:34]MH_I2C_Read... [15:04:34]Read from MH i2c: E2 [15:04:34]MH_I2C_Read... [15:04:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:34]Read from MH i2c: E2 17 00 [15:04:34]MH_I2C_Read... [15:04:34]Read from MH i2c: E2 17 00 B5 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A3 [15:04:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:04:34]wFMCommunicate OK [15:04:34]requested_item fd.num is exist - process it [15:04:34]SAM_PROTO_GetFieldsCounters [15:04:34]wFMCommunicate request_size=4 [15:04:34]MH_SAM_APDU [15:04:34]CAPDU: 80 13 00 00 [15:04:34]Write to MH i2c: E2 08 00 B6 1E 80 13 00 00 00 00 00 00 50 [15:04:34]Write i2c OK [15:04:34]MH_I2C_Read... [15:04:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:04:34]Read from MH i2c: E2 [15:04:34]MH_I2C_Read... [15:04:34]Read from MH i2c: E2 62 00 [15:04:34]MH_I2C_Read... [15:04:34]Read from MH i2c: E2 62 00 B6 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D1 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 EE [15: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D1 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:04:34]wFMCommunicate OK [15:04:34]SAM_PROTO_GetFieldsCounters done [15:04:34]requested_item shift.num is exist - process it [15:04:34]requested_item shift.opened is exist - process it [15:04:34]req_shift_opened [15:04:34]FM_GetShiftState [15:04:34]SAM_PROTO_GetShiftState [15:04:34]wFMCommunicate request_size=4 [15:04:34]MH_SAM_APDU [15:04:34]CAPDU: 80 13 01 00 [15:04:34]Write to MH i2c: E2 08 00 B7 1E 80 13 01 00 00 00 00 00 52 [15:04:34]Write i2c OK [15:04:34]MH_I2C_Read... [15:04:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:34]Read from MH i2c: E2 [15:04:34]MH_I2C_Read... [15:04:34]Read from MH i2c: E2 0E 00 [15:04:34]MH_I2C_Read... [15:04:34]Read from MH i2c: E2 0E 00 B7 1E 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 2B [15:04:34]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [15:04:34]wFMCommunicate OK [15:04:34]SAM_PROTO_GetShiftState done [15:04:34]FM_GetShiftState done [15:04:34]req_shift_opened done [15:04:34]requested_item shift.open_date is exist - process it [15:04:34]req_shift_open_date [15:04:34]req_shift_open_date done [15:04:34]produce_requested_data done [15:04:34]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165329,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [15:04:34]process_action_free close_receipt [15:04:34]json_value_free [15:04:34]json_value_free done [15:04:34]process_json_proto returns [15:04:34]Send response to host [15:04:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165329,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [15:04:34]free response buf [15:04:34]execute_script done [15:04:34]execute_script returns [15:04:34]free content buf [15:04:34]Sock 8.Close socket [15:04:34]Sock 8.Thread stoped [15:04:38]OFD Sender: No OFD packet to send [15:04:43]OFD Sender: No OFD packet to send [15:04:48]OFD Sender: No OFD packet to send [15:04:53]OFD Sender: No OFD packet to send [15:04:58]OFD Sender: No OFD packet to send [15:05:03]OFD Sender: No OFD packet to send [15:05:08]OFD Sender: No OFD packet to send [15:05:13]OFD Sender: No OFD packet to send [15:05:18]OFD Sender: No OFD packet to send [15:05:23]OFD Sender: No OFD packet to send [15:05:28]OFD Sender: No OFD packet to send [15:05:33]OFD Sender: No OFD packet to send [15:05:38]OFD Sender: No OFD packet to send [15:05:43]OFD Sender: No OFD packet to send [15:05:48]OFD Sender: No OFD packet to send [15:05:53]OFD Sender: No OFD packet to send [15:05:58]OFD Sender: No OFD packet to send [15:06:03]OFD Sender: No OFD packet to send [15:06:08]OFD Sender: No OFD packet to send [15:06:13]OFD Sender: No OFD packet to send [15:06:18]OFD Sender: No OFD packet to send [15:06:23]OFD Sender: No OFD packet to send [15:06:28]OFD Sender: No OFD packet to send [15:06:33]OFD Sender: No OFD packet to send [15:06:38]OFD Sender: No OFD packet to send [15:06:43]OFD Sender: No OFD packet to send [15:06:48]OFD Sender: No OFD packet to send [15:06:53]OFD Sender: No OFD packet to send [15:06:58]OFD Sender: No OFD packet to send [15:07:03]OFD Sender: No OFD packet to send [15:07:08]OFD Sender: No OFD packet to send [15:07:13]OFD Sender: No OFD packet to send [15:07:18]OFD Sender: No OFD packet to send [15:07:23]OFD Sender: No OFD packet to send [15:07:28]OFD Sender: No OFD packet to send [15:07:33]OFD Sender: No OFD packet to send [15:07:38]OFD Sender: No OFD packet to send [15:07:43]OFD Sender: No OFD packet to send [15:07:48]OFD Sender: No OFD packet to send [15:07:53]OFD Sender: No OFD packet to send [15:07:58]OFD Sender: No OFD packet to send [15:08:03]OFD Sender: No OFD packet to send [15:08:08]OFD Sender: No OFD packet to send [15:08:13]OFD Sender: No OFD packet to send [15:08:18]OFD Sender: No OFD packet to send [15:08:23]OFD Sender: No OFD packet to send [15:08:28]OFD Sender: No OFD packet to send [15:08:33]OFD Sender: No OFD packet to send [15:08:38]OFD Sender: No OFD packet to send [15:08:43]OFD Sender: No OFD packet to send [15:08:48]OFD Sender: No OFD packet to send [15:08:53]OFD Sender: No OFD packet to send [15:08:58]OFD Sender: No OFD packet to send [15:09:03]OFD Sender: No OFD packet to send [15:09:08]OFD Sender: No OFD packet to send [15:09:13]OFD Sender: No OFD packet to send [15:09:18]OFD Sender: No OFD packet to send [15:09:23]OFD Sender: No OFD packet to send [15:09:28]OFD Sender: No OFD packet to send [15:09:33]OFD Sender: No OFD packet to send [15:09:38]OFD Sender: No OFD packet to send [15:09:43]OFD Sender: No OFD packet to send [15:09:48]OFD Sender: No OFD packet to send [15:09:53]OFD Sender: No OFD packet to send [15:09:58]OFD Sender: No OFD packet to send [15:10:03]OFD Sender: No OFD packet to send [15:10:08]OFD Sender: No OFD packet to send [15:10:13]OFD Sender: No OFD packet to send [15:10:18]OFD Sender: No OFD packet to send [15:10:23]OFD Sender: No OFD packet to send [15:10:28]OFD Sender: No OFD packet to send [15:10:33]OFD Sender: No OFD packet to send [15:10:38]OFD Sender: No OFD packet to send [15:10:43]OFD Sender: No OFD packet to send [15:10:48]OFD Sender: No OFD packet to send [15:10:52]accept exits with 9 [15:10:52]New connection [15:10:52]New thread 3066711396 created [15:10:52]Thread 3066854756 joined [15:10:52]Waiting for new connection... [15:10:52] Sock 9.Parse request [15:10:52]Sock 9.Check first char [15:10:52]Sock 9.First char is OK [15:10:52]request: POST /json_proto HTTP/1.0 [15:10:52]Method: POST [15:10:52]URL: /json_proto [15:10:52]Method is POST - this is cgi request [15:10:52]url: /json_proto [15:10:52]query_string will be loaded in cgi processing [15:10:52]execute_cgi json_proto POST (null) [15:10:52]execute_cgi path=json_proto method=POST [15:10:52]POST find Content-Length [15:10:52]Host: 172.17.56.4:8080 [15:10:52]Content-Length: 677 [15:10:52]Content-Type: application/json [15:10:52] [15:10:52]POST finish read [15:10:52]Found Content-Length = 677 [15:10:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459441", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "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" ] } } [15:10:52]execute_script... [15:10:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459441", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "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" ] } } [15:10:52]POST & json_proto [15:10:52]process_json_proto [15:10:52]json parsed OK: [15:10:52]protocol is kg_v1.0 [15:10:52]action value=close_receipt [15:10:52]process_action close_receipt [15:10:52]cmd_close_receipt [15:10:52]MH_GetDate [15:10:52]Write to MH i2c: F0 00 00 B8 1E C5 [15:10:52]Write i2c OK [15:10:52]MH_I2C_Read... [15:10:52]Read from MH i2c: F0 [15:10:52]MH_I2C_Read... [15:10:52]Read from MH i2c: F0 09 00 [15:10:52]MH_I2C_Read... [15:10:52]Read from MH i2c: F0 09 00 B8 1E 00 FD 3B 95 66 C9 DC B2 64 BC [15:10:52]GetLastDocTimeStamp 1721055872 [15:10:52]current date 1721056253 [15:10:52]FM_GetShiftState [15:10:52]SAM_PROTO_GetShiftState [15:10:52]wFMCommunicate request_size=4 [15:10:52]MH_SAM_APDU [15:10:52]CAPDU: 80 13 01 00 [15:10:52]Write to MH i2c: E2 08 00 B9 1E 80 13 01 00 00 00 00 00 54 [15:10:52]Write i2c OK [15:10:52]MH_I2C_Read... [15:10:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:52]Read from MH i2c: E2 [15:10:52]MH_I2C_Read... [15:10:52]Read from MH i2c: E2 0E 00 [15:10:52]MH_I2C_Read... [15:10:52]Read from MH i2c: E2 0E 00 B9 1E 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 2D [15:10:52]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [15:10:52]wFMCommunicate OK [15:10:52]SAM_PROTO_GetShiftState done [15:10:52]FM_GetShiftState done [15:10:52]opened in 1721003876 [15:10:52]opened+sec_in_day 1721090276 [15:10:52]quantity*price = 60009 [15:10:52]sum+1 = 60011 [15:10:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 203 15.07.2024 15:10 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165330 ФПД: 204848506629618 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T151053&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165330&fm=204848506629618&tin=02508201610067®Number=0000000000090829&sum=60000 [15:10:53]StoreToDocumentArchive [15:10:53]shift 448 fd 165330 [15:10:53]save to /storage/0448/doc_00165330 [15:10:53]save last doc name /storage/0448/doc_00165330 to /storage/kkm_last_doc_name [15:10:53]save OK [15:10:53]Clear old archive folders... [15:10:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:10:53]tlvbuf is 0181A1A0 [15:10:53]SAM_PROTO_ClearQueue [15:10:53]wFMCommunicate request_size=4 [15:10:53]MH_SAM_APDU [15:10:53]CAPDU: 80 09 00 00 [15:10:53]Write to MH i2c: E2 08 00 C6 1E 80 09 00 00 00 00 00 00 56 [15:10:53]Write i2c OK [15:10:53]MH_I2C_Read... [15:10:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:10:53]Read from MH i2c: E2 [15:10:53]MH_I2C_Read... [15:10:53]Read from MH i2c: E2 03 00 [15:10:53]MH_I2C_Read... [15:10:53]Read from MH i2c: E2 03 00 C6 1E 00 90 00 58 [15:10:53]RAPDU: 90 00 [15:10:53]wFMCommunicate OK [15:10:53]SAM_PROTO_ClearQueue done [15:10:53]KKMCreateOFDPacket [15:10:53]OFDProtocolAddRootSTLVToBuf [15:10:53]FM_MakeSignedData [15:10:53]FM_MakeSignedData [15:10:53]SAM_PROTO_SignData [15:10:53]wFMCommunicate request_size=4 [15:10:53]MH_SAM_APDU [15:10:53]CAPDU: 80 0D 01 02 [15:10:53]Write to MH i2c: E2 08 00 C7 1E 80 0D 01 02 00 00 00 00 5E [15:10:53]Write i2c OK [15:10:53]MH_I2C_Read... [15:10:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:10:53]Read from MH i2c: E2 [15:10:53]MH_I2C_Read... [15:10:53]Read from MH i2c: E2 03 00 [15:10:53]MH_I2C_Read... [15:10:53]Read from MH i2c: E2 03 00 C7 1E 00 90 00 59 [15:10:53]RAPDU: 90 00 [15:10:53]wFMCommunicate OK [15:10:53]wFMCommunicate request_size=255 [15:10:53]MH_SAM_APDU [15:10:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 FD 3B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D2 85 02 00 35 04 06 00 BA [15:10:53]Write to MH i2c: E2 02 01 C8 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 FD 3B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D2 85 02 00 35 04 06 00 BA 00 00 CA [15:10:53]Write i2c OK [15:10:53]MH_I2C_Read... [15:10:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:53]Read from MH i2c: E2 [15:10:53]MH_I2C_Read... [15:10:53]Read from MH i2c: E2 03 00 [15:10:53]MH_I2C_Read... [15:10:53]Read from MH i2c: E2 03 00 C8 1E 00 90 00 5A [15:10:53]RAPDU: 90 00 [15:10:53]wFMCommunicate OK [15:10:53]wFMCommunicate request_size=10 [15:10:53]MH_SAM_APDU [15:10:53]CAPDU: 80 0D 02 02 05 4F 02 78 6D F2 [15:10:53]Write to MH i2c: E2 0D 00 C9 1E 80 0D 02 02 05 00 4F 02 78 6D F2 00 00 93 [15:10:53]Write i2c OK [15:10:53]MH_I2C_Read... [15:10:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:53]Read from MH i2c: E2 [15:10:53]MH_I2C_Read... [15:10:53]Read from MH i2c: E2 03 00 [15:10:53]MH_I2C_Read... [15:10:53]Read from MH i2c: E2 03 00 C9 1E 00 90 00 5B [15:10:53]RAPDU: 90 00 [15:10:53]wFMCommunicate OK [15:10:53]wFMCommunicate request_size=4 [15:10:53]MH_SAM_APDU [15:10:53]CAPDU: 80 0D 03 02 [15:10:53]Write to MH i2c: E2 08 00 CA 1E 80 0D 03 02 00 00 00 00 63 [15:10:53]Write i2c OK [15:10:53]MH_I2C_Read... [15:10:53]OFD Sender: No OFD packet to send [15:10:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:10:53]Read from MH i2c: E2 [15:10:53]MH_I2C_Read... [15:10:53]Read from MH i2c: E2 0B 00 [15:10:53]MH_I2C_Read... [15:10:53]Read from MH i2c: E2 0B 00 CA 1E 00 B5 A5 FF CA 43 8A F4 8E 90 00 D6 [15:10:53]RAPDU: B5 A5 FF CA 43 8A F4 8E 90 00 [15:10:53]wFMCommunicate OK [15:10:53]SAM_PROTO_SignData done [15:10:53]FM_MakeSignedData done [15:10:53]CreateOFDProtocolMessage [15:10:53]wFMCommunicate request_size=4 [15:10:53]MH_SAM_APDU [15:10:53]CAPDU: 80 11 00 00 [15:10:53]Write to MH i2c: E2 08 00 CB 1E 80 11 00 00 00 00 00 00 63 [15:10:53]Write i2c OK [15:10:53]MH_I2C_Read... [15:10:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:53]Read from MH i2c: E2 [15:10:53]MH_I2C_Read... [15:10:53]Read from MH i2c: E2 17 00 [15:10:53]MH_I2C_Read... [15:10:53]Read from MH i2c: E2 17 00 CB 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B9 [15:10:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:10:53]wFMCommunicate OK [15:10:53]CreateOFDProtocolMessage done [15:10:53]OFDSenderStorePacket 165330 [15:10:53]StoreOFDPacket docnum=165330 [15:10:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E8 42 07 01 2B 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 FD 3B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D2 85 02 00 35 04 06 00 BA 4F 02 78 6D F2 B5 A5 FF CA 43 8A F4 8E [15:10:53]CheckFolder [15:10:53]dirname=/storage/ofd_packets [15:10:53]CheckFolder done [15:10:53]ProducePacketName [15:10:53]name=ofd_packets/00165330 [15:10:53]NVStorageSaveData ofd_packets/00165330 [15:10:53]File name is /storage/ofd_packets/00165330 [15:10:53]Write 301 bytes [15:10:53]NVStorageSaveData done [15:10:53]OFDSenderStorePacket done [15:10:53]KKMCreateOFDPacket done [15:10:53]NVStorageSaveData kkm_last_timestamp [15:10:53]File name is /storage/kkm_last_timestamp [15:10:53]Write 4 bytes [15:10:53]NVStorageSaveData done [15:10:53]ExternCall_PrintAddStr [15:10:53]wPrintStart [15:10:53]Write to MH i2c: 01 00 00 CC 1E EA [15:10:53]Write i2c OK [15:10:53]MH_I2C_Read... [15:10:53]Read from MH i2c: 01 [15:10:53]MH_I2C_Read... [15:10:53]Read from MH i2c: 01 07 00 [15:10:53]MH_I2C_Read... [15:10:53]Read from MH i2c: 01 07 00 CC 1E 00 00 00 00 00 FF 0F FF [15:10:53]RasterBufferAndPrint [15:10:53]line Счет N : (1)459441 [15:10:53]line ИНН: 02508201610067 [15:10:53]line Контрольно-Кассовый Чек [15:10:53]line ПРОДАЖА [15:10:53]line ТРК (МРК, ГНК) : 22 [15:10:53]line Товар: 2710124130 [15:10:53]line Аи-92-К-5 [15:10:53]line 9.120 * 65.80 [15:10:53]line = 600.10 [15:10:53]line НДС 12% НСП 1% [15:10:53]line > о реализуемом товаре [15:10:53]line ОКРУГЛЕНИЕ: -0.10 [15:10:53]line ИТОГО: 600.00 [15:10:53]line Внесено: 600.00 [15:10:53]line СДАЧА: 0.00 [15:10:53]line НСП 1% : 5.31 [15:10:53]line НДС 12% : 63.73 [15:10:53]line Наличными: 600.00 [15:10:53]line Безнал.: 0.00 [15:10:53]line Место: АЗС № 72 "Партнер Нефть" [15:10:53]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:10:53]line СНО: Общий режим [15:10:53]line Чек 203 15.07.2024 15:10 [15:10:53]line Смена: 448 ФФД: 1.0 [15:10:53]line ЗНМ: 0300000160 [15:10:53]line РНМ: 0000000000090829 [15:10:53]line Версия ККМ: 001 [15:10:53]line ФМ: 0000000000874718 [15:10:53]line ФД: 165330 [15:10:53]line ФПД: 204848506629618 [15:10:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T151053&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165330&fm=204848506629618&tin=02508201610067®Number=0000000000090829&sum=60000 [15:10:54]OFD Sender: Processing packet 165330 [packets to send 106, broken 105] [15:10:54]ProducePacketName [15:10:54]name=ofd_packets/00165330 [15:10:54]OFD Sender: To server: pG, [15:10:54]CommunicateWithHost lk.salyk.kg:30040 [15:10:54]ConnectInit lk.salyk.kg [15:10:54]written 0, free lines is 4095 [15:10:54]Connected sock=10 [15:10:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E8 42 07 01 2B 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 FD 3B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D2 85 02 00 35 04 06 00 BA 4F 02 78 6D F2 B5 A5 FF CA 43 8A F4 8E [15:10:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 29 9D 47 00 BD 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D2 85 02 00 F4 03 04 00 87 E2 94 66 B6 04 01 00 00 D6 A2 18 40 4D 67 B3 3C [15:10:54]CommunicateWithHost err = 0 [15:10:54]CheckOFDResponse [15:10:54]1017 (14) - 77093643461234 [15:10:54]1041 (16) - 0000000000874718 [15:10:54]1040 (4) - 165330 [15:10:54]1012 (4) - 15.07.2024 08:49 [15:10:54]1206 (1) - 0 [15:10:54]OFD Sender: Remove packet 165330 [15:10:54]ProducePacketName [15:10:54]name=ofd_packets/00165330 [15:10:54]NVStorageDeleteData [15:10:54]Write to MH i2c: 01 00 00 F6 1E 14 [15:10:54]Write i2c OK [15:10:54]MH_I2C_Read... [15:10:54]Read from MH i2c: 01 [15:10:54]MH_I2C_Read... [15:10:54]Read from MH i2c: 01 07 00 [15:10:54]MH_I2C_Read... [15:10:54]Read from MH i2c: 01 07 00 F6 1E 00 00 00 00 00 02 0D 2A [15:10:54]RasterBufferAndPrint [15:10:54]line [15:10:54]line [15:10:54]line [15:10:54]line [15:10:54]line [15:10:54]written 0, free lines is 3336 [15:10:54]MH_Cut [15:10:54]Write to MH i2c: D1 01 00 FD 1E 01 ED [15:10:54]Write i2c OK [15:10:54]MH_I2C_Read... [15:10:54]Read from MH i2c: D1 [15:10:54]MH_I2C_Read... [15:10:54]Read from MH i2c: D1 01 00 [15:10:54]MH_I2C_Read... [15:10:54]Read from MH i2c: D1 01 00 FD 1E 00 EC [15:10:54]Write to MH i2c: 01 00 00 FE 1E 1C [15:10:54]Write i2c OK [15:10:54]MH_I2C_Read... [15:10:55]OFD Sender: No OFD packet to send [15:10:55]*** Cut start [15:10:55]*** Partial cut [15:10:55]*** CUTSNS_PIN = 1 [15:10:55]*** CUTSNS_PIN = 0 [15:10:55]*** Brake cut motor [15:10:55]Read from MH i2c: 01 [15:10:55]MH_I2C_Read... [15:10:55]*** Stop cut motor [15:10:55]*** Cut end [15:10:55]Read from MH i2c: 01 07 00 [15:10:55]MH_I2C_Read... [15:10:55]Read from MH i2c: 01 07 00 FE 1E 00 00 00 00 00 FF 0F 31 [15:10:55]process_action close_receipt done [15:10:55]requested_data is exist [15:10:55]produce_requested_data [15:10:55]requested_item fm.sn is exist - process it [15:10:55]wFMCommunicate request_size=4 [15:10:55]MH_SAM_APDU [15:10:55]CAPDU: 80 11 00 00 [15:10:55]Write to MH i2c: E2 08 00 FF 1E 80 11 00 00 00 00 00 00 97 [15:10:55]Write i2c OK [15:10:55]MH_I2C_Read... [15:10:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:56]Read from MH i2c: E2 [15:10:56]MH_I2C_Read... [15:10:56]Read from MH i2c: E2 17 00 [15:10:56]MH_I2C_Read... [15:10:56]Read from MH i2c: E2 17 00 FF 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 ED [15:10:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:10:56]wFMCommunicate OK [15:10:56]requested_item fd.num is exist - process it [15:10:56]SAM_PROTO_GetFieldsCounters [15:10:56]wFMCommunicate request_size=4 [15:10:56]MH_SAM_APDU [15:10:56]CAPDU: 80 13 00 00 [15:10:56]Write to MH i2c: E2 08 00 00 1F 80 13 00 00 00 00 00 00 9B [15:10:56]Write i2c OK [15:10:56]MH_I2C_Read... [15:10:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:10:56]Read from MH i2c: E2 [15:10:56]MH_I2C_Read... [15:10:56]Read from MH i2c: E2 62 00 [15:10:56]MH_I2C_Read... [15:10:56]Read from MH i2c: E2 62 00 00 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D2 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [15:10: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D2 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:10:56]wFMCommunicate OK [15:10:56]SAM_PROTO_GetFieldsCounters done [15:10:56]requested_item shift.num is exist - process it [15:10:56]requested_item shift.opened is exist - process it [15:10:56]req_shift_opened [15:10:56]FM_GetShiftState [15:10:56]SAM_PROTO_GetShiftState [15:10:56]wFMCommunicate request_size=4 [15:10:56]MH_SAM_APDU [15:10:56]CAPDU: 80 13 01 00 [15:10:56]Write to MH i2c: E2 08 00 01 1F 80 13 01 00 00 00 00 00 9D [15:10:56]Write i2c OK [15:10:56]MH_I2C_Read... [15:10:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:56]Read from MH i2c: E2 [15:10:56]MH_I2C_Read... [15:10:56]Read from MH i2c: E2 0E 00 [15:10:56]MH_I2C_Read... [15:10:56]Read from MH i2c: E2 0E 00 01 1F 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 76 [15:10:56]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [15:10:56]wFMCommunicate OK [15:10:56]SAM_PROTO_GetShiftState done [15:10:56]FM_GetShiftState done [15:10:56]req_shift_opened done [15:10:56]requested_item shift.open_date is exist - process it [15:10:56]req_shift_open_date [15:10:56]req_shift_open_date done [15:10:56]produce_requested_data done [15:10:56]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165330,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [15:10:56]process_action_free close_receipt [15:10:56]json_value_free [15:10:56]json_value_free done [15:10:56]process_json_proto returns [15:10:56]Send response to host [15:10:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165330,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [15:10:56]free response buf [15:10:56]execute_script done [15:10:56]execute_script returns [15:10:56]free content buf [15:10:56]Sock 9.Close socket [15:10:56]Sock 9.Thread stoped [15:11:00]OFD Sender: No OFD packet to send [15:11:05]OFD Sender: No OFD packet to send [15:11:10]OFD Sender: No OFD packet to send [15:11:15]OFD Sender: No OFD packet to send [15:11:20]OFD Sender: No OFD packet to send [15:11:25]OFD Sender: No OFD packet to send [15:11:30]OFD Sender: No OFD packet to send [15:11:35]OFD Sender: No OFD packet to send [15:11:40]OFD Sender: No OFD packet to send [15:11:45]OFD Sender: No OFD packet to send [15:11:50]OFD Sender: No OFD packet to send [15:11:55]OFD Sender: No OFD packet to send [15:12:00]OFD Sender: No OFD packet to send [15:12:05]OFD Sender: No OFD packet to send [15:12:08]accept exits with 8 [15:12:08]New connection [15:12:08]New thread 3066854756 created [15:12:08]Thread 3066711396 joined [15:12:08]Waiting for new connection... [15:12:08] Sock 8.Parse request [15:12:08]Sock 8.Check first char [15:12:08]Sock 8.First char is OK [15:12:08]request: POST /json_proto HTTP/1.0 [15:12:08]Method: POST [15:12:08]URL: /json_proto [15:12:08]Method is POST - this is cgi request [15:12:08]url: /json_proto [15:12:08]query_string will be loaded in cgi processing [15:12:08]execute_cgi json_proto POST (null) [15:12:08]execute_cgi path=json_proto method=POST [15:12:08]POST find Content-Length [15:12:08]Host: 172.17.56.4:8080 [15:12:08]Content-Length: 1188 [15:12:08]Content-Type: application/json [15:12:08] [15:12:08]POST finish read [15:12:08]Found Content-Length = 1188 [15:12:08]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 72\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0434\u044B\u043A\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)459442\u000A15.07.2024 14:37\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 65.80\u000A\u0418\u0422\u041E\u0413: 658.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\u000A03469\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:12:08]execute_script... [15:12:08]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 72\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0434\u044B\u043A\u043E\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)459442\u000A15.07.2024 14:37\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 65.80\u000A\u0418\u0422\u041E\u0413: 658.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\u000A03469\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:12:08]POST & json_proto [15:12:08]process_json_proto [15:12:08]json parsed OK: [15:12:08]protocol is kg_v1.0 [15:12:08]action value=print_text [15:12:08]process_action print_text [15:12:08]cmd_print_text [15:12:08]ExternCall_PrintAddStr [15:12:08]wPrintStart [15:12:08]Write to MH i2c: 01 00 00 02 1F 21 [15:12:08]Write i2c OK [15:12:08]MH_I2C_Read... [15:12:08]Read from MH i2c: 01 [15:12:08]MH_I2C_Read... [15:12:08]Read from MH i2c: 01 07 00 [15:12:08]MH_I2C_Read... [15:12:08]Read from MH i2c: 01 07 00 02 1F 00 00 00 00 00 FF 0F 36 [15:12:08]RasterBufferAndPrint [15:12:08]line *****ТОВАРНЫЙ ЧЕК***** [15:12:08]line АЗС 72 [15:12:08]line Партнер нефть [15:12:08]line 02508201610067 [15:12:08]line Кассир : Садыков Н. [15:12:08]line Счет N : (1)459442 [15:12:08]line 15.07.2024 14:37 [15:12:08]line ПРОДАЖА [15:12:08]line ТРК (МРК, ГНК): 12 [15:12:08]line Вид ГСМ : 2710124130 [15:12:08]line Аи-92-К-5 [15:12:08]line 10.000 x 65.80 [15:12:08]line ИТОГ: 658.00 [15:12:08]line Тип оплаты: Талоны: Топливная Карта [15:12:08]line 03469 [15:12:08]line ______________________ [15:12:08]line (подпись) [15:12:08]written 0, free lines is 4095 [15:12:08]Write to MH i2c: 01 00 00 16 1F 35 [15:12:08]Write i2c OK [15:12:08]MH_I2C_Read... [15:12:08]Read from MH i2c: 01 [15:12:08]MH_I2C_Read... [15:12:08]Read from MH i2c: 01 07 00 [15:12:08]MH_I2C_Read... [15:12:08]Read from MH i2c: 01 07 00 16 1F 00 00 00 00 00 0E 0E 58 [15:12:08]RasterBufferAndPrint [15:12:08]line [15:12:08]line [15:12:08]line [15:12:08]line [15:12:08]line [15:12:08]written 0, free lines is 3600 [15:12:08]MH_Cut [15:12:08]Write to MH i2c: D1 01 00 1D 1F 01 0E [15:12:08]Write i2c OK [15:12:08]MH_I2C_Read... [15:12:08]Read from MH i2c: D1 [15:12:08]MH_I2C_Read... [15:12:08]Read from MH i2c: D1 01 00 [15:12:08]MH_I2C_Read... [15:12:08]Read from MH i2c: D1 01 00 1D 1F 00 0D [15:12:08]Write to MH i2c: 01 00 00 1E 1F 3D [15:12:08]Write i2c OK [15:12:08]MH_I2C_Read... [15:12:09]*** Cut start [15:12:09]*** Partial cut [15:12:09]*** CUTSNS_PIN = 1 [15:12:09]*** CUTSNS_PIN = 0 [15:12:09]*** Brake cut motor [15:12:09]Read from MH i2c: 01 [15:12:09]MH_I2C_Read... [15:12:09]Read from MH i2c: 01 07 00 [15:12:09]MH_I2C_Read... [15:12:09]*** Stop cut motor [15:12:09]*** Cut end [15:12:09]Read from MH i2c: 01 07 00 1E 1F 00 00 00 00 00 FF 0F 52 [15:12:09]process_action print_text done [15:12:09]requested_data is exist [15:12:09]produce_requested_data [15:12:09]requested_item fm.sn is exist - process it [15:12:09]wFMCommunicate request_size=4 [15:12:09]MH_SAM_APDU [15:12:09]CAPDU: 80 11 00 00 [15:12:09]Write to MH i2c: E2 08 00 1F 1F 80 11 00 00 00 00 00 00 B8 [15:12:09]Write i2c OK [15:12:09]MH_I2C_Read... [15:12:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:09]Read from MH i2c: E2 [15:12:10]MH_I2C_Read... [15:12:10]Read from MH i2c: E2 17 00 [15:12:10]MH_I2C_Read... [15:12:10]Read from MH i2c: E2 17 00 1F 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0E [15:12:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:12:10]wFMCommunicate OK [15:12:10]requested_item fd.num is exist - process it [15:12:10]SAM_PROTO_GetFieldsCounters [15:12:10]wFMCommunicate request_size=4 [15:12:10]MH_SAM_APDU [15:12:10]CAPDU: 80 13 00 00 [15:12:10]Write to MH i2c: E2 08 00 20 1F 80 13 00 00 00 00 00 00 BB [15:12:10]Write i2c OK [15:12:10]MH_I2C_Read... [15:12:10]Read from MH i2c: E2 [15:12:10]MH_I2C_Read... [15:12:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:12:10]Read from MH i2c: E2 62 00 [15:12:10]MH_I2C_Read... [15:12:10]Read from MH i2c: E2 62 00 20 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D2 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 5D [15:12:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D2 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:12:10]wFMCommunicate OK [15:12:10]SAM_PROTO_GetFieldsCounters done [15:12:10]requested_item shift.num is exist - process it [15:12:10]requested_item shift.opened is exist - process it [15:12:10]req_shift_opened [15:12:10]FM_GetShiftState [15:12:10]SAM_PROTO_GetShiftState [15:12:10]wFMCommunicate request_size=4 [15:12:10]MH_SAM_APDU [15:12:10]CAPDU: 80 13 01 00 [15:12:10]Write to MH i2c: E2 08 00 21 1F 80 13 01 00 00 00 00 00 BD [15:12:10]Write i2c OK [15:12:10]MH_I2C_Read... [15:12:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:10]Read from MH i2c: E2 [15:12:10]MH_I2C_Read... [15:12:10]Read from MH i2c: E2 0E 00 [15:12:10]MH_I2C_Read... [15:12:10]Read from MH i2c: E2 0E 00 21 1F 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 96 [15:12:10]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [15:12:10]wFMCommunicate OK [15:12:10]SAM_PROTO_GetShiftState done [15:12:10]FM_GetShiftState done [15:12:10]req_shift_opened done [15:12:10]requested_item shift.open_date is exist - process it [15:12:10]req_shift_open_date [15:12:10]req_shift_open_date done [15:12:10]produce_requested_data done [15:12:10]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165330,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [15:12:10]process_action_free print_text [15:12:10]json_value_free [15:12:10]json_value_free done [15:12:10]process_json_proto returns [15:12:10]Send response to host [15:12:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165330,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [15:12:10]free response buf [15:12:10]execute_script done [15:12:10]execute_script returns [15:12:10]free content buf [15:12:10]Sock 8.Close socket [15:12:10]Sock 8.Thread stoped [15:12:10]OFD Sender: No OFD packet to send [15:12:15]OFD Sender: No OFD packet to send [15:12:20]OFD Sender: No OFD packet to send [15:12:25]OFD Sender: No OFD packet to send [15:12:30]OFD Sender: No OFD packet to send [15:12:35]OFD Sender: No OFD packet to send [15:12:40]OFD Sender: No OFD packet to send [15:12:45]OFD Sender: No OFD packet to send [15:12:50]OFD Sender: No OFD packet to send [15:12:55]OFD Sender: No OFD packet to send [15:13:00]OFD Sender: No OFD packet to send [15:13:05]OFD Sender: No OFD packet to send [15:13:10]OFD Sender: No OFD packet to send [15:13:15]OFD Sender: No OFD packet to send [15:13:20]OFD Sender: No OFD packet to send [15:13:25]OFD Sender: No OFD packet to send [15:13:30]OFD Sender: No OFD packet to send [15:13:35]OFD Sender: No OFD packet to send [15:13:40]OFD Sender: No OFD packet to send [15:13:45]OFD Sender: No OFD packet to send [15:13:50]OFD Sender: No OFD packet to send [15:13:55]OFD Sender: No OFD packet to send [15:14:00]OFD Sender: No OFD packet to send [15:14:05]OFD Sender: No OFD packet to send [15:14:10]OFD Sender: No OFD packet to send [15:14:15]OFD Sender: No OFD packet to send [15:14:20]OFD Sender: No OFD packet to send [15:14:25]OFD Sender: No OFD packet to send [15:14:30]OFD Sender: No OFD packet to send [15:14:35]OFD Sender: No OFD packet to send [15:14:40]OFD Sender: No OFD packet to send [15:14:45]OFD Sender: No OFD packet to send [15:14:50]OFD Sender: No OFD packet to send [15:14:55]OFD Sender: No OFD packet to send [15:15:00]OFD Sender: No OFD packet to send [15:15:05]OFD Sender: No OFD packet to send [15:15:10]OFD Sender: No OFD packet to send [15:15:15]OFD Sender: No OFD packet to send [15:15:20]OFD Sender: No OFD packet to send [15:15:25]OFD Sender: No OFD packet to send [15:15:30]OFD Sender: No OFD packet to send [15:15:35]OFD Sender: No OFD packet to send [15:15:40]OFD Sender: No OFD packet to send [15:15:43]accept exits with 9 [15:15:43]New connection [15:15:43]New thread 3066711396 created [15:15:43]Thread 3066854756 joined [15:15:43]Waiting for new connection... [15:15:43] Sock 9.Parse request [15:15:43]Sock 9.Check first char [15:15:43]Sock 9.First char is OK [15:15:43]request: POST /json_proto HTTP/1.0 [15:15:43]Method: POST [15:15:43]URL: /json_proto [15:15:43]Method is POST - this is cgi request [15:15:43]url: /json_proto [15:15:43]query_string will be loaded in cgi processing [15:15:43]execute_cgi json_proto POST (null) [15:15:43]execute_cgi path=json_proto method=POST [15:15:43]POST find Content-Length [15:15:43]Host: 172.17.56.4:8080 [15:15:43]Content-Length: 679 [15:15:43]Content-Type: application/json [15:15:43] [15:15:43]POST finish read [15:15:43]Found Content-Length = 679 [15:15:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459443", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\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" ] } } [15:15:43]execute_script... [15:15:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459443", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\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" ] } } [15:15:43]POST & json_proto [15:15:43]process_json_proto [15:15:43]json parsed OK: [15:15:43]protocol is kg_v1.0 [15:15:43]action value=close_receipt [15:15:43]process_action close_receipt [15:15:43]cmd_close_receipt [15:15:43]MH_GetDate [15:15:43]Write to MH i2c: F0 00 00 22 1F 30 [15:15:43]Write i2c OK [15:15:43]MH_I2C_Read... [15:15:43]Read from MH i2c: F0 [15:15:43]MH_I2C_Read... [15:15:43]Read from MH i2c: F0 09 00 [15:15:43]MH_I2C_Read... [15:15:43]Read from MH i2c: F0 09 00 22 1F 00 20 3D 95 66 C9 DC B2 64 4C [15:15:43]GetLastDocTimeStamp 1721056253 [15:15:43]current date 1721056544 [15:15:43]FM_GetShiftState [15:15:43]SAM_PROTO_GetShiftState [15:15:43]wFMCommunicate request_size=4 [15:15:43]MH_SAM_APDU [15:15:43]CAPDU: 80 13 01 00 [15:15:43]Write to MH i2c: E2 08 00 23 1F 80 13 01 00 00 00 00 00 BF [15:15:43]Write i2c OK [15:15:43]MH_I2C_Read... [15:15:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:43]Read from MH i2c: E2 [15:15:43]MH_I2C_Read... [15:15:43]Read from MH i2c: E2 0E 00 [15:15:43]MH_I2C_Read... [15:15:43]Read from MH i2c: E2 0E 00 23 1F 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 98 [15:15:43]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [15:15:43]wFMCommunicate OK [15:15:43]SAM_PROTO_GetShiftState done [15:15:43]FM_GetShiftState done [15:15:43]opened in 1721003876 [15:15:43]opened+sec_in_day 1721090276 [15:15:43]quantity*price = 100012 [15:15:43]sum+1 = 100014 [15:15:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 204 15.07.2024 15:15 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165331 ФПД: 49164192538688 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T151544&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165331&fm=49164192538688&tin=02508201610067®Number=0000000000090829&sum=100000 [15:15:44]StoreToDocumentArchive [15:15:44]shift 448 fd 165331 [15:15:44]save to /storage/0448/doc_00165331 [15:15:44]save last doc name /storage/0448/doc_00165331 to /storage/kkm_last_doc_name [15:15:44]save OK [15:15:44]Clear old archive folders... [15:15:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:15:44]tlvbuf is B6E901B0 [15:15:44]SAM_PROTO_ClearQueue [15:15:44]wFMCommunicate request_size=4 [15:15:44]MH_SAM_APDU [15:15:44]CAPDU: 80 09 00 00 [15:15:44]Write to MH i2c: E2 08 00 30 1F 80 09 00 00 00 00 00 00 C1 [15:15:44]Write i2c OK [15:15:44]MH_I2C_Read... [15:15:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:15:44]Read from MH i2c: E2 [15:15:44]MH_I2C_Read... [15:15:44]Read from MH i2c: E2 03 00 [15:15:44]MH_I2C_Read... [15:15:44]Read from MH i2c: E2 03 00 30 1F 00 90 00 C3 [15:15:44]RAPDU: 90 00 [15:15:44]wFMCommunicate OK [15:15:44]SAM_PROTO_ClearQueue done [15:15:44]KKMCreateOFDPacket [15:15:44]OFDProtocolAddRootSTLVToBuf [15:15:44]FM_MakeSignedData [15:15:44]FM_MakeSignedData [15:15:44]SAM_PROTO_SignData [15:15:44]wFMCommunicate request_size=4 [15:15:44]MH_SAM_APDU [15:15:44]CAPDU: 80 0D 01 02 [15:15:44]Write to MH i2c: E2 08 00 31 1F 80 0D 01 02 00 00 00 00 C9 [15:15:44]Write i2c OK [15:15:44]MH_I2C_Read... [15:15:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:15:44]Read from MH i2c: E2 [15:15:44]MH_I2C_Read... [15:15:44]Read from MH i2c: E2 03 00 [15:15:44]MH_I2C_Read... [15:15:44]Read from MH i2c: E2 03 00 31 1F 00 90 00 C4 [15:15:44]RAPDU: 90 00 [15:15:44]wFMCommunicate OK [15:15:44]wFMCommunicate request_size=255 [15:15:44]MH_SAM_APDU [15:15:44]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 CC 00 00 00 F4 03 04 00 20 3D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D3 85 02 00 35 04 06 00 2C B6 EE 3B [15:15:44]Write to MH i2c: E2 02 01 32 1F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 CC 00 00 00 F4 03 04 00 20 3D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D3 85 02 00 35 04 06 00 2C B6 EE 3B 00 00 D4 [15:15:44]Write i2c OK [15:15:44]MH_I2C_Read... [15:15:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:44]Read from MH i2c: E2 [15:15:44]MH_I2C_Read... [15:15:44]Read from MH i2c: E2 03 00 [15:15:44]MH_I2C_Read... [15:15:44]Read from MH i2c: E2 03 00 32 1F 00 90 00 C5 [15:15:44]RAPDU: 90 00 [15:15:44]wFMCommunicate OK [15:15:44]wFMCommunicate request_size=7 [15:15:44]MH_SAM_APDU [15:15:44]CAPDU: 80 0D 02 02 02 60 40 [15:15:44]Write to MH i2c: E2 0A 00 33 1F 80 0D 02 02 02 00 60 40 00 00 70 [15:15:44]Write i2c OK [15:15:44]MH_I2C_Read... [15:15:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:44]Read from MH i2c: E2 [15:15:44]MH_I2C_Read... [15:15:44]Read from MH i2c: E2 03 00 [15:15:44]MH_I2C_Read... [15:15:44]Read from MH i2c: E2 03 00 33 1F 00 90 00 C6 [15:15:44]RAPDU: 90 00 [15:15:44]wFMCommunicate OK [15:15:44]wFMCommunicate request_size=4 [15:15:44]MH_SAM_APDU [15:15:44]CAPDU: 80 0D 03 02 [15:15:44]Write to MH i2c: E2 08 00 34 1F 80 0D 03 02 00 00 00 00 CE [15:15:44]Write i2c OK [15:15:44]MH_I2C_Read... [15:15:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:15:44]Read from MH i2c: E2 [15:15:44]MH_I2C_Read... [15:15:44]Read from MH i2c: E2 0B 00 [15:15:44]MH_I2C_Read... [15:15:44]Read from MH i2c: E2 0B 00 34 1F 00 DB 96 A9 9F EC 57 42 41 90 00 4E [15:15:44]RAPDU: DB 96 A9 9F EC 57 42 41 90 00 [15:15:44]wFMCommunicate OK [15:15:44]SAM_PROTO_SignData done [15:15:44]FM_MakeSignedData done [15:15:44]CreateOFDProtocolMessage [15:15:44]wFMCommunicate request_size=4 [15:15:44]MH_SAM_APDU [15:15:44]CAPDU: 80 11 00 00 [15:15:44]Write to MH i2c: E2 08 00 35 1F 80 11 00 00 00 00 00 00 CE [15:15:44]Write i2c OK [15:15:44]MH_I2C_Read... [15:15:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:44]Read from MH i2c: E2 [15:15:44]MH_I2C_Read... [15:15:44]Read from MH i2c: E2 17 00 [15:15:44]MH_I2C_Read... [15:15:44]Read from MH i2c: E2 17 00 35 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 24 [15:15:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:15:44]wFMCommunicate OK [15:15:44]CreateOFDProtocolMessage done [15:15:44]OFDSenderStorePacket 165331 [15:15:44]StoreOFDPacket docnum=165331 [15:15:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 EF 61 04 01 46 93 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 CC 00 00 00 F4 03 04 00 20 3D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D3 85 02 00 35 04 06 00 2C B6 EE 3B 60 40 DB 96 A9 9F EC 57 42 41 [15:15:44]CheckFolder [15:15:44]dirname=/storage/ofd_packets [15:15:44]CheckFolder done [15:15:44]ProducePacketName [15:15:44]name=ofd_packets/00165331 [15:15:44]NVStorageSaveData ofd_packets/00165331 [15:15:44]File name is /storage/ofd_packets/00165331 [15:15:44]Write 298 bytes [15:15:44]NVStorageSaveData done [15:15:44]OFDSenderStorePacket done [15:15:44]KKMCreateOFDPacket done [15:15:44]NVStorageSaveData kkm_last_timestamp [15:15:44]File name is /storage/kkm_last_timestamp [15:15:44]Write 4 bytes [15:15:44]NVStorageSaveData done [15:15:44]ExternCall_PrintAddStr [15:15:44]wPrintStart [15:15:44]Write to MH i2c: 01 00 00 36 1F 55 [15:15:44]Write i2c OK [15:15:44]MH_I2C_Read... [15:15:44]Read from MH i2c: 01 [15:15:44]MH_I2C_Read... [15:15:44]Read from MH i2c: 01 07 00 [15:15:44]MH_I2C_Read... [15:15:44]Read from MH i2c: 01 07 00 36 1F 00 00 00 00 00 FF 0F 6A [15:15:44]RasterBufferAndPrint [15:15:44]line Счет N : (1)459443 [15:15:44]line ИНН: 02508201610067 [15:15:44]line Контрольно-Кассовый Чек [15:15:44]line ПРОДАЖА [15:15:44]line ТРК (МРК, ГНК) : 21 [15:15:44]line Товар: 2710194210 [15:15:44]line ДТ-К-5 [15:15:44]line 13.910 * 71.90 [15:15:44]line = 1000.13 [15:15:44]line НДС 12% НСП 1% [15:15:44]line > о реализуемом товаре [15:15:44]line ОКРУГЛЕНИЕ: -0.13 [15:15:44]line ИТОГО: 1000.00 [15:15:44]line Внесено: 1000.00 [15:15:44]line СДАЧА: 0.00 [15:15:44]line НСП 1% : 8.85 [15:15:44]line НДС 12% : 106.21 [15:15:44]line Наличными: 1000.00 [15:15:44]line Безнал.: 0.00 [15:15:44]line Место: АЗС № 72 "Партнер Нефть" [15:15:44]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:15:44]line СНО: Общий режим [15:15:44]line Чек 204 15.07.2024 15:15 [15:15:44]line Смена: 448 ФФД: 1.0 [15:15:44]line ЗНМ: 0300000160 [15:15:44]line РНМ: 0000000000090829 [15:15:44]line Версия ККМ: 001 [15:15:44]line ФМ: 0000000000874718 [15:15:44]line ФД: 165331 [15:15:44]line ФПД: 49164192538688 [15:15:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T151544&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165331&fm=49164192538688&tin=02508201610067®Number=0000000000090829&sum=100000 [15:15:45]OFD Sender: Processing packet 165331 [packets to send 106, broken 105] [15:15:45]ProducePacketName [15:15:45]name=ofd_packets/00165331 [15:15:45]OFD Sender: To server: pG, [15:15:45]CommunicateWithHost lk.salyk.kg:30040 [15:15:45]ConnectInit lk.salyk.kg [15:15:45]written 0, free lines is 4095 [15:15:45]Connected sock=10 [15:15:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 EF 61 04 01 46 93 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 CC 00 00 00 F4 03 04 00 20 3D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D3 85 02 00 35 04 06 00 2C B6 EE 3B 60 40 DB 96 A9 9F EC 57 42 41 [15:15:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 6C 14 47 00 24 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D3 85 02 00 F4 03 04 00 AA E3 94 66 B6 04 01 00 00 6C 6C 5B 59 62 C6 A3 D6 [15:15:45]CommunicateWithHost err = 0 [15:15:45]CheckOFDResponse [15:15:45]1017 (14) - 77093643461234 [15:15:45]1041 (16) - 0000000000874718 [15:15:45]1040 (4) - 165331 [15:15:45]1012 (4) - 15.07.2024 08:54 [15:15:45]1206 (1) - 0 [15:15:45]OFD Sender: Remove packet 165331 [15:15:45]ProducePacketName [15:15:45]name=ofd_packets/00165331 [15:15:45]NVStorageDeleteData [15:15:45]Write to MH i2c: 01 00 00 60 1F 7F [15:15:45]Write i2c OK [15:15:45]MH_I2C_Read... [15:15:45]Read from MH i2c: 01 [15:15:45]MH_I2C_Read... [15:15:45]Read from MH i2c: 01 07 00 [15:15:45]MH_I2C_Read... [15:15:45]Read from MH i2c: 01 07 00 60 1F 00 00 00 00 00 F1 0C 83 [15:15:45]RasterBufferAndPrint [15:15:45]line [15:15:45]line [15:15:45]line [15:15:45]line [15:15:45]line [15:15:45]written 0, free lines is 3320 [15:15:45]MH_Cut [15:15:45]Write to MH i2c: D1 01 00 67 1F 01 58 [15:15:45]Write i2c OK [15:15:45]MH_I2C_Read... [15:15:45]Read from MH i2c: D1 [15:15:45]MH_I2C_Read... [15:15:45]Read from MH i2c: D1 01 00 [15:15:45]MH_I2C_Read... [15:15:45]Read from MH i2c: D1 01 00 67 1F 00 57 [15:15:45]Write to MH i2c: 01 00 00 68 1F 87 [15:15:45]Write i2c OK [15:15:45]MH_I2C_Read... [15:15:46]OFD Sender: No OFD packet to send [15:15:46]*** Cut start [15:15:46]*** Partial cut [15:15:46]*** CUTSNS_PIN = 1 [15:15:46]*** CUTSNS_PIN = 0 [15:15:46]*** Brake cut motor [15:15:46]Read from MH i2c: 01 [15:15:46]MH_I2C_Read... [15:15:46]*** Stop cut motor [15:15:46]*** Cut end [15:15:46]Read from MH i2c: 01 07 00 [15:15:46]MH_I2C_Read... [15:15:46]Read from MH i2c: 01 07 00 68 1F 00 00 00 00 00 FF 0F 9C [15:15:46]process_action close_receipt done [15:15:46]requested_data is exist [15:15:46]produce_requested_data [15:15:46]requested_item fm.sn is exist - process it [15:15:46]wFMCommunicate request_size=4 [15:15:46]MH_SAM_APDU [15:15:46]CAPDU: 80 11 00 00 [15:15:46]Write to MH i2c: E2 08 00 69 1F 80 11 00 00 00 00 00 00 02 [15:15:46]Write i2c OK [15:15:46]MH_I2C_Read... [15:15:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:46]Read from MH i2c: E2 [15:15:46]MH_I2C_Read... [15:15:46]Read from MH i2c: E2 17 00 [15:15:46]MH_I2C_Read... [15:15:46]Read from MH i2c: E2 17 00 69 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 58 [15:15:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:15:47]wFMCommunicate OK [15:15:47]requested_item fd.num is exist - process it [15:15:47]SAM_PROTO_GetFieldsCounters [15:15:47]wFMCommunicate request_size=4 [15:15:47]MH_SAM_APDU [15:15:47]CAPDU: 80 13 00 00 [15:15:47]Write to MH i2c: E2 08 00 6A 1F 80 13 00 00 00 00 00 00 05 [15:15:47]Write i2c OK [15:15:47]MH_I2C_Read... [15:15:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:15:47]Read from MH i2c: E2 [15:15:47]MH_I2C_Read... [15:15:47]Read from MH i2c: E2 62 00 [15:15:47]MH_I2C_Read... [15:15:47]Read from MH i2c: E2 62 00 6A 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D3 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [15:15:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D3 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:15:47]wFMCommunicate OK [15:15:47]SAM_PROTO_GetFieldsCounters done [15:15:47]requested_item shift.num is exist - process it [15:15:47]requested_item shift.opened is exist - process it [15:15:47]req_shift_opened [15:15:47]FM_GetShiftState [15:15:47]SAM_PROTO_GetShiftState [15:15:47]wFMCommunicate request_size=4 [15:15:47]MH_SAM_APDU [15:15:47]CAPDU: 80 13 01 00 [15:15:47]Write to MH i2c: E2 08 00 6B 1F 80 13 01 00 00 00 00 00 07 [15:15:47]Write i2c OK [15:15:47]MH_I2C_Read... [15:15:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:47]Read from MH i2c: E2 [15:15:47]MH_I2C_Read... [15:15:47]Read from MH i2c: E2 0E 00 [15:15:47]MH_I2C_Read... [15:15:47]Read from MH i2c: E2 0E 00 6B 1F 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 E0 [15:15:47]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [15:15:47]wFMCommunicate OK [15:15:47]SAM_PROTO_GetShiftState done [15:15:47]FM_GetShiftState done [15:15:47]req_shift_opened done [15:15:47]requested_item shift.open_date is exist - process it [15:15:47]req_shift_open_date [15:15:47]req_shift_open_date done [15:15:47]produce_requested_data done [15:15:47]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165331,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [15:15:47]process_action_free close_receipt [15:15:47]json_value_free [15:15:47]json_value_free done [15:15:47]process_json_proto returns [15:15:47]Send response to host [15:15:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165331,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [15:15:47]free response buf [15:15:47]execute_script done [15:15:47]execute_script returns [15:15:47]free content buf [15:15:47]Sock 9.Close socket [15:15:47]Sock 9.Thread stoped [15:15:51]OFD Sender: No OFD packet to send [15:15:56]OFD Sender: No OFD packet to send [15:16:01]OFD Sender: No OFD packet to send [15:16:05]accept exits with 8 [15:16:05]New connection [15:16:05]New thread 3066854756 created [15:16:05]Thread 3066711396 joined [15:16:05]Waiting for new connection... [15:16:05] Sock 8.Parse request [15:16:05]Sock 8.Check first char [15:16:05]Sock 8.First char is OK [15:16:05]request: POST /json_proto HTTP/1.0 [15:16:05]Method: POST [15:16:05]URL: /json_proto [15:16:05]Method is POST - this is cgi request [15:16:05]url: /json_proto [15:16:05]query_string will be loaded in cgi processing [15:16:05]execute_cgi json_proto POST (null) [15:16:05]execute_cgi path=json_proto method=POST [15:16:05]POST find Content-Length [15:16:05]Host: 172.17.56.4:8080 [15:16:05]Content-Length: 637 [15:16:05]Content-Type: application/json [15:16:05] [15:16:05]POST finish read [15:16:05]Found Content-Length = 637 [15:16:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459444", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 10.000, "sum" : 719.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 719.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:05]execute_script... [15:16: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)459444", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 10.000, "sum" : 719.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 719.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:05]POST & json_proto [15:16:05]process_json_proto [15:16:05]json parsed OK: [15:16:05]protocol is kg_v1.0 [15:16:05]action value=close_receipt [15:16:05]process_action close_receipt [15:16:05]cmd_close_receipt [15:16:05]MH_GetDate [15:16:05]Write to MH i2c: F0 00 00 6C 1F 7A [15:16:05]Write i2c OK [15:16:05]MH_I2C_Read... [15:16:05]Read from MH i2c: F0 [15:16:05]MH_I2C_Read... [15:16:05]Read from MH i2c: F0 09 00 [15:16:05]MH_I2C_Read... [15:16:05]Read from MH i2c: F0 09 00 6C 1F 00 36 3D 95 66 C9 DC B2 64 AC [15:16:05]GetLastDocTimeStamp 1721056544 [15:16:05]current date 1721056566 [15:16:05]FM_GetShiftState [15:16:05]SAM_PROTO_GetShiftState [15:16:05]wFMCommunicate request_size=4 [15:16:05]MH_SAM_APDU [15:16:05]CAPDU: 80 13 01 00 [15:16:05]Write to MH i2c: E2 08 00 6D 1F 80 13 01 00 00 00 00 00 09 [15:16:05]Write i2c OK [15:16:05]MH_I2C_Read... [15:16:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:05]Read from MH i2c: E2 [15:16:05]MH_I2C_Read... [15:16:05]Read from MH i2c: E2 0E 00 [15:16:05]MH_I2C_Read... [15:16:05]Read from MH i2c: E2 0E 00 6D 1F 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 E2 [15:16:05]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [15:16:05]wFMCommunicate OK [15:16:05]SAM_PROTO_GetShiftState done [15:16:05]FM_GetShiftState done [15:16:05]opened in 1721003876 [15:16:05]opened+sec_in_day 1721090276 [15:16:05]quantity*price = 71900 [15:16:05]sum+1 = 71901 [15:16:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 719.00 НСП 1% : 6.36 НДС 12% : 76.35 Наличными: 719.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 205 15.07.2024 15:16 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165332 ФПД: 248634359942196 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T151606&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165332&fm=248634359942196&tin=02508201610067®Number=0000000000090829&sum=71900 [15:16:06]StoreToDocumentArchive [15:16:06]shift 448 fd 165332 [15:16:06]save to /storage/0448/doc_00165332 [15:16:06]save last doc name /storage/0448/doc_00165332 to /storage/kkm_last_doc_name [15:16:06]save OK [15:16:06]Clear old archive folders... [15:16:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:16:06]tlvbuf is B6E90C70 [15:16:06]SAM_PROTO_ClearQueue [15:16:06]wFMCommunicate request_size=4 [15:16:06]MH_SAM_APDU [15:16:06]CAPDU: 80 09 00 00 [15:16:06]Write to MH i2c: E2 08 00 7A 1F 80 09 00 00 00 00 00 00 0B [15:16:06]Write i2c OK [15:16:06]MH_I2C_Read... [15:16:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:16:06]Read from MH i2c: E2 [15:16:06]MH_I2C_Read... [15:16:06]Read from MH i2c: E2 03 00 [15:16:06]MH_I2C_Read... [15:16:06]Read from MH i2c: E2 03 00 7A 1F 00 90 00 0D [15:16:06]RAPDU: 90 00 [15:16:06]wFMCommunicate OK [15:16:06]SAM_PROTO_ClearQueue done [15:16:06]KKMCreateOFDPacket [15:16:06]OFDProtocolAddRootSTLVToBuf [15:16:06]FM_MakeSignedData [15:16:06]FM_MakeSignedData [15:16:06]SAM_PROTO_SignData [15:16:06]wFMCommunicate request_size=4 [15:16:06]MH_SAM_APDU [15:16:06]CAPDU: 80 0D 01 02 [15:16:06]Write to MH i2c: E2 08 00 7B 1F 80 0D 01 02 00 00 00 00 13 [15:16:06]Write i2c OK [15:16:06]MH_I2C_Read... [15:16:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:16:06]Read from MH i2c: E2 [15:16:06]MH_I2C_Read... [15:16:06]Read from MH i2c: E2 03 00 [15:16:06]MH_I2C_Read... [15:16:06]Read from MH i2c: E2 03 00 7B 1F 00 90 00 0E [15:16:06]RAPDU: 90 00 [15:16:06]wFMCommunicate OK [15:16:06]wFMCommunicate request_size=255 [15:16:06]MH_SAM_APDU [15:16:06]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 DC 18 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 1D 00 00 00 00 07 04 06 00 DC 18 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 36 3D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D4 85 02 00 35 04 06 00 E2 21 B2 B4 [15:16:06]Write to MH i2c: E2 02 01 7C 1F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 DC 18 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 1D 00 00 00 00 07 04 06 00 DC 18 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 36 3D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D4 85 02 00 35 04 06 00 E2 21 B2 B4 00 00 EC [15:16:06]Write i2c OK [15:16:06]MH_I2C_Read... [15:16:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:06]Read from MH i2c: E2 [15:16:06]MH_I2C_Read... [15:16:06]Read from MH i2c: E2 03 00 [15:16:06]MH_I2C_Read... [15:16:06]Read from MH i2c: E2 03 00 7C 1F 00 90 00 0F [15:16:06]RAPDU: 90 00 [15:16:06]wFMCommunicate OK [15:16:06]wFMCommunicate request_size=7 [15:16:06]MH_SAM_APDU [15:16:06]CAPDU: 80 0D 02 02 02 0C 34 [15:16:06]Write to MH i2c: E2 0A 00 7D 1F 80 0D 02 02 02 00 0C 34 00 00 5A [15:16:06]Write i2c OK [15:16:06]MH_I2C_Read... [15:16:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:06]Read from MH i2c: E2 [15:16:06]MH_I2C_Read... [15:16:06]Read from MH i2c: E2 03 00 [15:16:06]MH_I2C_Read... [15:16:06]Read from MH i2c: E2 03 00 7D 1F 00 90 00 10 [15:16:06]RAPDU: 90 00 [15:16:06]wFMCommunicate OK [15:16:06]wFMCommunicate request_size=4 [15:16:06]MH_SAM_APDU [15:16:06]CAPDU: 80 0D 03 02 [15:16:06]Write to MH i2c: E2 08 00 7E 1F 80 0D 03 02 00 00 00 00 18 [15:16:06]Write i2c OK [15:16:06]MH_I2C_Read... [15:16:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:16:06]Read from MH i2c: E2 [15:16:06]MH_I2C_Read... [15:16:06]Read from MH i2c: E2 0B 00 [15:16:06]MH_I2C_Read... [15:16:06]Read from MH i2c: E2 0B 00 7E 1F 00 22 B3 80 0C 22 D5 4D 17 90 00 D5 [15:16:06]RAPDU: 22 B3 80 0C 22 D5 4D 17 90 00 [15:16:06]wFMCommunicate OK [15:16:06]SAM_PROTO_SignData done [15:16:06]FM_MakeSignedData done [15:16:06]CreateOFDProtocolMessage [15:16:06]wFMCommunicate request_size=4 [15:16:06]MH_SAM_APDU [15:16:06]CAPDU: 80 11 00 00 [15:16:06]Write to MH i2c: E2 08 00 7F 1F 80 11 00 00 00 00 00 00 18 [15:16:06]Write i2c OK [15:16:06]MH_I2C_Read... [15:16:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:06]Read from MH i2c: E2 [15:16:06]MH_I2C_Read... [15:16:06]Read from MH i2c: E2 17 00 [15:16:06]MH_I2C_Read... [15:16:06]Read from MH i2c: E2 17 00 7F 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6E [15:16:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:16:06]wFMCommunicate OK [15:16:06]CreateOFDProtocolMessage done [15:16:06]OFDSenderStorePacket 165332 [15:16:06]StoreOFDPacket docnum=165332 [15:16:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 21 B8 04 01 0F F1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 DC 18 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 1D 00 00 00 00 07 04 06 00 DC 18 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 36 3D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D4 85 02 00 35 04 06 00 E2 21 B2 B4 0C 34 22 B3 80 0C 22 D5 4D 17 [15:16:06]CheckFolder [15:16:06]dirname=/storage/ofd_packets [15:16:06]CheckFolder done [15:16:06]ProducePacketName [15:16:06]name=ofd_packets/00165332 [15:16:06]NVStorageSaveData ofd_packets/00165332 [15:16:06]File name is /storage/ofd_packets/00165332 [15:16:06]Write 298 bytes [15:16:06]NVStorageSaveData done [15:16:06]OFDSenderStorePacket done [15:16:06]KKMCreateOFDPacket done [15:16:06]NVStorageSaveData kkm_last_timestamp [15:16:06]File name is /storage/kkm_last_timestamp [15:16:06]Write 4 bytes [15:16:06]NVStorageSaveData done [15:16:06]ExternCall_PrintAddStr [15:16:06]wPrintStart [15:16:06]Write to MH i2c: 01 00 00 80 1F 9F [15:16:06]Write i2c OK [15:16:06]MH_I2C_Read... [15:16:06]Read from MH i2c: 01 [15:16:06]MH_I2C_Read... [15:16:06]Read from MH i2c: 01 07 00 [15:16:06]MH_I2C_Read... [15:16:06]Read from MH i2c: 01 07 00 80 1F 00 00 00 00 00 FF 0F B4 [15:16:06]RasterBufferAndPrint [15:16:06]line Счет N : (1)459444 [15:16:06]line ИНН: 02508201610067 [15:16:06]line Контрольно-Кассовый Чек [15:16:06]line ПРОДАЖА [15:16:06]line ТРК (МРК, ГНК) : 11 [15:16:06]line Товар: 2710194210 [15:16:06]line ДТ-К-5 [15:16:06]line 10.000 * 71.90 [15:16:06]line = 719.00 [15:16:06]line НДС 12% НСП 1% [15:16:06]line > о реализуемом товаре [15:16:06]line ИТОГО: 719.00 [15:16:06]line НСП 1% : 6.36 [15:16:06]line НДС 12% : 76.35 [15:16:06]line Наличными: 719.00 [15:16:06]line Безнал.: 0.00 [15:16:06]line Место: АЗС № 72 "Партнер Нефть" [15:16:06]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:16:06]line СНО: Общий режим [15:16:06]line Чек 205 15.07.2024 15:16 [15:16:06]line Смена: 448 ФФД: 1.0 [15:16:06]line ЗНМ: 0300000160 [15:16:06]line РНМ: 0000000000090829 [15:16:06]line Версия ККМ: 001 [15:16:06]line ФМ: 0000000000874718 [15:16:06]line ФД: 165332 [15:16:06]line ФПД: 248634359942196 [15:16:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T151606&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165332&fm=248634359942196&tin=02508201610067®Number=0000000000090829&sum=71900 [15:16:07]OFD Sender: Processing packet 165332 [packets to send 106, broken 105] [15:16:07]ProducePacketName [15:16:07]name=ofd_packets/00165332 [15:16:07]OFD Sender: To server: pG, [15:16:07]CommunicateWithHost lk.salyk.kg:30040 [15:16:07]ConnectInit lk.salyk.kg [15:16:07]written 0, free lines is 4095 [15:16:07]Connected sock=10 [15:16: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 37 31 38 0C 01 00 00 21 B8 04 01 0F F1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 DC 18 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 1D 00 00 00 00 07 04 06 00 DC 18 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 36 3D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D4 85 02 00 35 04 06 00 E2 21 B2 B4 0C 34 22 B3 80 0C 22 D5 4D 17 [15:16:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 87 90 47 00 23 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 D4 85 02 00 F4 03 04 00 C0 E3 94 66 B6 04 01 00 00 CF 3F D2 A2 82 72 C4 E7 [15:16:07]CommunicateWithHost err = 0 [15:16:07]CheckOFDResponse [15:16:07]1017 (14) - 77093643461234 [15:16:07]1041 (16) - 0000000000874718 [15:16:07]1040 (4) - 165332 [15:16:07]1012 (4) - 15.07.2024 08:54 [15:16:07]1206 (1) - 0 [15:16:07]OFD Sender: Remove packet 165332 [15:16:07]ProducePacketName [15:16:07]name=ofd_packets/00165332 [15:16:07]NVStorageDeleteData [15:16:07]Write to MH i2c: 01 00 00 A7 1F C6 [15:16:07]Write i2c OK [15:16:07]MH_I2C_Read... [15:16:07]Read from MH i2c: 01 [15:16:07]MH_I2C_Read... [15:16:07]Read from MH i2c: 01 07 00 [15:16:07]MH_I2C_Read... [15:16:07]Read from MH i2c: 01 07 00 A7 1F 00 00 00 00 00 3D 0D 17 [15:16:07]RasterBufferAndPrint [15:16:07]line [15:16:07]line [15:16:07]line [15:16:07]line [15:16:07]line [15:16:07]written 0, free lines is 3395 [15:16:07]MH_Cut [15:16:07]Write to MH i2c: D1 01 00 AE 1F 01 9F [15:16:07]Write i2c OK [15:16:07]MH_I2C_Read... [15:16:07]Read from MH i2c: D1 [15:16:07]MH_I2C_Read... [15:16:07]Read from MH i2c: D1 01 00 [15:16:07]MH_I2C_Read... [15:16:07]Read from MH i2c: D1 01 00 AE 1F 00 9E [15:16:07]Write to MH i2c: 01 00 00 AF 1F CE [15:16:07]Write i2c OK [15:16:07]MH_I2C_Read... [15:16:08]OFD Sender: No OFD packet to send [15:16:08]*** Cut start [15:16:08]*** Partial cut [15:16:08]*** CUTSNS_PIN = 1 [15:16:08]*** CUTSNS_PIN = 0 [15:16:08]*** Brake cut motor [15:16:08]Read from MH i2c: 01 [15:16:08]MH_I2C_Read... [15:16:08]*** Stop cut motor [15:16:08]*** Cut end [15:16:08]Read from MH i2c: 01 07 00 [15:16:08]MH_I2C_Read... [15:16:08]Read from MH i2c: 01 07 00 AF 1F 00 00 00 00 00 FF 0F E3 [15:16:08]process_action close_receipt done [15:16:08]requested_data is exist [15:16:08]produce_requested_data [15:16:08]requested_item fm.sn is exist - process it [15:16:08]wFMCommunicate request_size=4 [15:16:08]MH_SAM_APDU [15:16:08]CAPDU: 80 11 00 00 [15:16:08]Write to MH i2c: E2 08 00 B0 1F 80 11 00 00 00 00 00 00 49 [15:16:08]Write i2c OK [15:16:08]MH_I2C_Read... [15:16:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:09]Read from MH i2c: E2 [15:16:09]MH_I2C_Read... [15:16:09]Read from MH i2c: E2 17 00 [15:16:09]MH_I2C_Read... [15:16:09]Read from MH i2c: E2 17 00 B0 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 9F [15:16:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:16:09]wFMCommunicate OK [15:16:09]requested_item fd.num is exist - process it [15:16:09]SAM_PROTO_GetFieldsCounters [15:16:09]wFMCommunicate request_size=4 [15:16:09]MH_SAM_APDU [15:16:09]CAPDU: 80 13 00 00 [15:16:09]Write to MH i2c: E2 08 00 B1 1F 80 13 00 00 00 00 00 00 4C [15:16:09]Write i2c OK [15:16:09]MH_I2C_Read... [15:16:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:16:09]Read from MH i2c: E2 [15:16:09]MH_I2C_Read... [15:16:09]Read from MH i2c: E2 62 00 [15:16:09]MH_I2C_Read... [15:16:09]Read from MH i2c: E2 62 00 B1 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D4 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [15:16:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D4 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:16:09]wFMCommunicate OK [15:16:09]SAM_PROTO_GetFieldsCounters done [15:16:09]requested_item shift.num is exist - process it [15:16:09]requested_item shift.opened is exist - process it [15:16:09]req_shift_opened [15:16:09]FM_GetShiftState [15:16:09]SAM_PROTO_GetShiftState [15:16:09]wFMCommunicate request_size=4 [15:16:09]MH_SAM_APDU [15:16:09]CAPDU: 80 13 01 00 [15:16:09]Write to MH i2c: E2 08 00 B2 1F 80 13 01 00 00 00 00 00 4E [15:16:09]Write i2c OK [15:16:09]MH_I2C_Read... [15:16:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:09]Read from MH i2c: E2 [15:16:09]MH_I2C_Read... [15:16:09]Read from MH i2c: E2 0E 00 [15:16:09]MH_I2C_Read... [15:16:09]Read from MH i2c: E2 0E 00 B2 1F 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 27 [15:16:09]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [15:16:09]wFMCommunicate OK [15:16:09]SAM_PROTO_GetShiftState done [15:16:09]FM_GetShiftState done [15:16:09]req_shift_opened done [15:16:09]requested_item shift.open_date is exist - process it [15:16:09]req_shift_open_date [15:16:09]req_shift_open_date done [15:16:09]produce_requested_data done [15:16:09]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165332,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [15:16:09]process_action_free close_receipt [15:16:09]json_value_free [15:16:09]json_value_free done [15:16:09]process_json_proto returns [15:16:09]Send response to host [15:16:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165332,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [15:16:09]free response buf [15:16:09]execute_script done [15:16:09]execute_script returns [15:16:09]free content buf [15:16:09]Sock 8.Close socket [15:16:09]Sock 8.Thread stoped [15:16:13]OFD Sender: No OFD packet to send [15:16:18]OFD Sender: No OFD packet to send [15:16:23]OFD Sender: No OFD packet to send [15:16:28]OFD Sender: No OFD packet to send [15:16:33]OFD Sender: No OFD packet to send [15:16:38]OFD Sender: No OFD packet to send [15:16:43]OFD Sender: No OFD packet to send [15:16:48]OFD Sender: No OFD packet to send [15:16:53]OFD Sender: No OFD packet to send [15:16:58]OFD Sender: No OFD packet to send [15:17:03]OFD Sender: No OFD packet to send [15:17:08]OFD Sender: No OFD packet to send [15:17:13]OFD Sender: No OFD packet to send [15:17:18]OFD Sender: No OFD packet to send [15:17:23]OFD Sender: No OFD packet to send [15:17:28]OFD Sender: No OFD packet to send [15:17:33]OFD Sender: No OFD packet to send [15:17:38]OFD Sender: No OFD packet to send [15:17:43]OFD Sender: No OFD packet to send [15:17:48]OFD Sender: No OFD packet to send [15:17:53]OFD Sender: No OFD packet to send [15:17:58]OFD Sender: No OFD packet to send [15:18:03]OFD Sender: No OFD packet to send [15:18:08]OFD Sender: No OFD packet to send [15:18:13]OFD Sender: No OFD packet to send [15:18:18]OFD Sender: No OFD packet to send [15:18:23]OFD Sender: No OFD packet to send [15:18:28]OFD Sender: No OFD packet to send [15:18:33]OFD Sender: No OFD packet to send [15:18:38]OFD Sender: No OFD packet to send [15:18:43]OFD Sender: No OFD packet to send [15:18:48]OFD Sender: No OFD packet to send [15:18:53]OFD Sender: No OFD packet to send [15:18:58]OFD Sender: No OFD packet to send [15:19:03]OFD Sender: No OFD packet to send [15:19:08]OFD Sender: No OFD packet to send [15:19:13]OFD Sender: No OFD packet to send [15:19:18]OFD Sender: No OFD packet to send [15:19:23]OFD Sender: No OFD packet to send [15:19:28]OFD Sender: No OFD packet to send [15:19:33]OFD Sender: No OFD packet to send [15:19:38]OFD Sender: No OFD packet to send [15:19:43]OFD Sender: No OFD packet to send [15:19:48]OFD Sender: No OFD packet to send [15:19:53]OFD Sender: No OFD packet to send [15:19:58]OFD Sender: No OFD packet to send [15:20:03]OFD Sender: No OFD packet to send [15:20:08]OFD Sender: No OFD packet to send [15:20:13]OFD Sender: No OFD packet to send [15:20:18]OFD Sender: No OFD packet to send [15:20:23]OFD Sender: No OFD packet to send [15:20:28]OFD Sender: No OFD packet to send [15:20:33]OFD Sender: No OFD packet to send [15:20:38]OFD Sender: No OFD packet to send [15:20:43]OFD Sender: No OFD packet to send [15:20:48]OFD Sender: No OFD packet to send [15:20:49]accept exits with 9 [15:20:49]New connection [15:20:49]New thread 3066711396 created [15:20:49]Thread 3066854756 joined [15:20:49]Waiting for new connection... [15:20:49] Sock 9.Parse request [15:20:49]Sock 9.Check first char [15:20:49]Sock 9.First char is OK [15:20:49]request: POST /json_proto HTTP/1.0 [15:20:49]Method: POST [15:20:49]URL: /json_proto [15:20:49]Method is POST - this is cgi request [15:20:49]url: /json_proto [15:20:49]query_string will be loaded in cgi processing [15:20:49]execute_cgi json_proto POST (null) [15:20:49]execute_cgi path=json_proto method=POST [15:20:49]POST find Content-Length [15:20:49]Host: 172.17.56.4:8080 [15:20:49]Content-Length: 674 [15:20:49]Content-Type: application/json [15:20:49] [15:20:49]POST finish read [15:20:49]Found Content-Length = 674 [15:20:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459445", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 2.790, "sum" : 200.60, "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" ] } } [15:20:49]execute_script... [15:20:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459445", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 2.790, "sum" : 200.60, "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" ] } } [15:20:49]POST & json_proto [15:20:49]process_json_proto [15:20:49]json parsed OK: [15:20:49]protocol is kg_v1.0 [15:20:49]action value=close_receipt [15:20:49]process_action close_receipt [15:20:49]cmd_close_receipt [15:20:49]MH_GetDate [15:20:49]Write to MH i2c: F0 00 00 B3 1F C1 [15:20:49]Write i2c OK [15:20:49]MH_I2C_Read... [15:20:49]Read from MH i2c: F0 [15:20:49]MH_I2C_Read... [15:20:49]Read from MH i2c: F0 09 00 [15:20:49]MH_I2C_Read... [15:20:49]Read from MH i2c: F0 09 00 B3 1F 00 53 3E 95 66 C9 DC B2 64 11 [15:20:49]GetLastDocTimeStamp 1721056566 [15:20:49]current date 1721056851 [15:20:49]FM_GetShiftState [15:20:49]SAM_PROTO_GetShiftState [15:20:49]wFMCommunicate request_size=4 [15:20:49]MH_SAM_APDU [15:20:49]CAPDU: 80 13 01 00 [15:20:49]Write to MH i2c: E2 08 00 B4 1F 80 13 01 00 00 00 00 00 50 [15:20:49]Write i2c OK [15:20:49]MH_I2C_Read... [15:20:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:20:49]Read from MH i2c: E2 [15:20:49]MH_I2C_Read... [15:20:49]Read from MH i2c: E2 0E 00 [15:20:49]MH_I2C_Read... [15:20:49]Read from MH i2c: E2 0E 00 B4 1F 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 29 [15:20:49]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [15:20:49]wFMCommunicate OK [15:20:49]SAM_PROTO_GetShiftState done [15:20:49]FM_GetShiftState done [15:20:49]opened in 1721003876 [15:20:49]opened+sec_in_day 1721090276 [15:20:49]quantity*price = 20060 [15:20:49]sum+1 = 20061 [15:20:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.30 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 206 15.07.2024 15:20 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165333 ФПД: 265576217390120 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T152051&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165333&fm=265576217390120&tin=02508201610067®Number=0000000000090829&sum=20000 [15:20:50]StoreToDocumentArchive [15:20:50]shift 448 fd 165333 [15:20:50]save to /storage/0448/doc_00165333 [15:20:50]save last doc name /storage/0448/doc_00165333 to /storage/kkm_last_doc_name [15:20:50]save OK [15:20:50]Clear old archive folders... [15:20:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:20:50]tlvbuf is 018112E0 [15:20:50]SAM_PROTO_ClearQueue [15:20:50]wFMCommunicate request_size=4 [15:20:50]MH_SAM_APDU [15:20:50]CAPDU: 80 09 00 00 [15:20:50]Write to MH i2c: E2 08 00 C1 1F 80 09 00 00 00 00 00 00 52 [15:20:50]Write i2c OK [15:20:50]MH_I2C_Read... [15:20:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:20:51]Read from MH i2c: E2 [15:20:51]MH_I2C_Read... [15:20:51]Read from MH i2c: E2 03 00 [15:20:51]MH_I2C_Read... [15:20:51]Read from MH i2c: E2 03 00 C1 1F 00 90 00 54 [15:20:51]RAPDU: 90 00 [15:20:51]wFMCommunicate OK [15:20:51]SAM_PROTO_ClearQueue done [15:20:51]KKMCreateOFDPacket [15:20:51]OFDProtocolAddRootSTLVToBuf [15:20:51]FM_MakeSignedData [15:20:51]FM_MakeSignedData [15:20:51]SAM_PROTO_SignData [15:20:51]wFMCommunicate request_size=4 [15:20:51]MH_SAM_APDU [15:20:51]CAPDU: 80 0D 01 02 [15:20:51]Write to MH i2c: E2 08 00 C2 1F 80 0D 01 02 00 00 00 00 5A [15:20:51]Write i2c OK [15:20:51]MH_I2C_Read... [15:20:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:20:51]Read from MH i2c: E2 [15:20:51]MH_I2C_Read... [15:20:51]Read from MH i2c: E2 03 00 [15:20:51]MH_I2C_Read... [15:20:51]Read from MH i2c: E2 03 00 C2 1F 00 90 00 55 [15:20:51]RAPDU: 90 00 [15:20:51]wFMCommunicate OK [15:20:51]wFMCommunicate request_size=255 [15:20:51]MH_SAM_APDU [15:20:51]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 0A 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5C 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 52 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 CE 00 00 00 F4 03 04 00 53 3E 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D5 85 02 00 35 04 06 00 F1 8A 48 19 [15:20:51]Write to MH i2c: E2 02 01 C3 1F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 0A 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5C 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 52 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 CE 00 00 00 F4 03 04 00 53 3E 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D5 85 02 00 35 04 06 00 F1 8A 48 19 00 00 C3 [15:20:51]Write i2c OK [15:20:51]MH_I2C_Read... [15:20:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:20:51]Read from MH i2c: E2 [15:20:51]MH_I2C_Read... [15:20:51]Read from MH i2c: E2 03 00 [15:20:51]MH_I2C_Read... [15:20:51]Read from MH i2c: E2 03 00 C3 1F 00 90 00 56 [15:20:51]RAPDU: 90 00 [15:20:51]wFMCommunicate OK [15:20:51]wFMCommunicate request_size=7 [15:20:51]MH_SAM_APDU [15:20:51]CAPDU: 80 0D 02 02 02 2C 28 [15:20:51]Write to MH i2c: E2 0A 00 C4 1F 80 0D 02 02 02 00 2C 28 00 00 B5 [15:20:51]Write i2c OK [15:20:51]MH_I2C_Read... [15:20:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:20:51]Read from MH i2c: E2 [15:20:51]MH_I2C_Read... [15:20:51]Read from MH i2c: E2 03 00 [15:20:51]MH_I2C_Read... [15:20:51]Read from MH i2c: E2 03 00 C4 1F 00 90 00 57 [15:20:51]RAPDU: 90 00 [15:20:51]wFMCommunicate OK [15:20:51]wFMCommunicate request_size=4 [15:20:51]MH_SAM_APDU [15:20:51]CAPDU: 80 0D 03 02 [15:20:51]Write to MH i2c: E2 08 00 C5 1F 80 0D 03 02 00 00 00 00 5F [15:20:51]Write i2c OK [15:20:51]MH_I2C_Read... [15:20:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:20:51]Read from MH i2c: E2 [15:20:51]MH_I2C_Read... [15:20:51]Read from MH i2c: E2 0B 00 [15:20:51]MH_I2C_Read... [15:20:51]Read from MH i2c: E2 0B 00 C5 1F 00 52 A3 6F F4 CD 6D BE 9D 90 00 4D [15:20:51]RAPDU: 52 A3 6F F4 CD 6D BE 9D 90 00 [15:20:51]wFMCommunicate OK [15:20:51]SAM_PROTO_SignData done [15:20:51]FM_MakeSignedData done [15:20:51]CreateOFDProtocolMessage [15:20:51]wFMCommunicate request_size=4 [15:20:51]MH_SAM_APDU [15:20:51]CAPDU: 80 11 00 00 [15:20:51]Write to MH i2c: E2 08 00 C6 1F 80 11 00 00 00 00 00 00 5F [15:20:51]Write i2c OK [15:20:51]MH_I2C_Read... [15:20:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:20:51]Read from MH i2c: E2 [15:20:51]MH_I2C_Read... [15:20:51]Read from MH i2c: E2 17 00 [15:20:51]MH_I2C_Read... [15:20:51]Read from MH i2c: E2 17 00 C6 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B5 [15:20:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:20:51]wFMCommunicate OK [15:20:51]CreateOFDProtocolMessage done [15:20:51]OFDSenderStorePacket 165333 [15:20:51]StoreOFDPacket docnum=165333 [15:20:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 EF 8F 04 01 B6 32 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 0A 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5C 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 52 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 CE 00 00 00 F4 03 04 00 53 3E 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D5 85 02 00 35 04 06 00 F1 8A 48 19 2C 28 52 A3 6F F4 CD 6D BE 9D [15:20:51]CheckFolder [15:20:51]dirname=/storage/ofd_packets [15:20:51]CheckFolder done [15:20:51]ProducePacketName [15:20:51]name=ofd_packets/00165333 [15:20:51]NVStorageSaveData ofd_packets/00165333 [15:20:51]File name is /storage/ofd_packets/00165333 [15:20:51]Write 298 bytes [15:20:51]NVStorageSaveData done [15:20:51]OFDSenderStorePacket done [15:20:51]KKMCreateOFDPacket done [15:20:51]NVStorageSaveData kkm_last_timestamp [15:20:51]File name is /storage/kkm_last_timestamp [15:20:51]Write 4 bytes [15:20:51]NVStorageSaveData done [15:20:51]ExternCall_PrintAddStr [15:20:51]wPrintStart [15:20:51]Write to MH i2c: 01 00 00 C7 1F E6 [15:20:51]Write i2c OK [15:20:51]MH_I2C_Read... [15:20:51]Read from MH i2c: 01 [15:20:51]MH_I2C_Read... [15:20:51]Read from MH i2c: 01 07 00 [15:20:51]MH_I2C_Read... [15:20:51]Read from MH i2c: 01 07 00 C7 1F 00 00 00 00 00 FF 0F FB [15:20:51]RasterBufferAndPrint [15:20:51]line Счет N : (1)459445 [15:20:51]line ИНН: 02508201610067 [15:20:51]line Контрольно-Кассовый Чек [15:20:51]line ПРОДАЖА [15:20:51]line ТРК (МРК, ГНК) : 11 [15:20:51]line Товар: 2710194210 [15:20:51]line ДТ-К-5 [15:20:51]line 2.790 * 71.90 [15:20:51]line = 200.60 [15:20:51]line НДС 12% НСП 1% [15:20:51]line > о реализуемом товаре [15:20:51]line ОКРУГЛЕНИЕ: -0.60 [15:20:51]line ИТОГО: 200.00 [15:20:51]line Внесено: 200.00 [15:20:51]line СДАЧА: 0.00 [15:20:51]line НСП 1% : 1.77 [15:20:51]line НДС 12% : 21.30 [15:20:51]line Наличными: 200.00 [15:20:51]line Безнал.: 0.00 [15:20:51]line Место: АЗС № 72 "Партнер Нефть" [15:20:51]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:20:51]line СНО: Общий режим [15:20:51]line Чек 206 15.07.2024 15:20 [15:20:51]line Смена: 448 ФФД: 1.0 [15:20:51]line ЗНМ: 0300000160 [15:20:51]line РНМ: 0000000000090829 [15:20:51]line Версия ККМ: 001 [15:20:51]line ФМ: 0000000000874718 [15:20:51]line ФД: 165333 [15:20:51]line ФПД: 265576217390120 [15:20:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T152051&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165333&fm=265576217390120&tin=02508201610067®Number=0000000000090829&sum=20000 [15:20:51]OFD Sender: Processing packet 165333 [packets to send 106, broken 105] [15:20:51]ProducePacketName [15:20:51]name=ofd_packets/00165333 [15:20:51]OFD Sender: To server: pG, [15:20:51]CommunicateWithHost lk.salyk.kg:30040 [15:20:51]ConnectInit lk.salyk.kg [15:20:51]written 0, free lines is 4095 [15:20:51]Connected sock=10 [15:20:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 EF 8F 04 01 B6 32 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 0A 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5C 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 52 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 CE 00 00 00 F4 03 04 00 53 3E 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D5 85 02 00 35 04 06 00 F1 8A 48 19 2C 28 52 A3 6F F4 CD 6D BE 9D [15:20:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 36 5C 47 00 F9 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D5 85 02 00 F4 03 04 00 DD E4 94 66 B6 04 01 00 00 8C 33 22 03 C8 32 58 19 [15:20:52]CommunicateWithHost err = 0 [15:20:52]CheckOFDResponse [15:20:52]1017 (14) - 77093643461234 [15:20:52]1041 (16) - 0000000000874718 [15:20:52]1040 (4) - 165333 [15:20:52]1012 (4) - 15.07.2024 08:59 [15:20:52]1206 (1) - 0 [15:20:52]OFD Sender: Remove packet 165333 [15:20:52]ProducePacketName [15:20:52]name=ofd_packets/00165333 [15:20:52]NVStorageDeleteData [15:20:52]Write to MH i2c: 01 00 00 F1 1F 10 [15:20:52]Write i2c OK [15:20:52]MH_I2C_Read... [15:20:52]Read from MH i2c: 01 [15:20:52]MH_I2C_Read... [15:20:52]Read from MH i2c: 01 07 00 [15:20:52]MH_I2C_Read... [15:20:52]Read from MH i2c: 01 07 00 F1 1F 00 00 00 00 00 F6 0C 19 [15:20:52]RasterBufferAndPrint [15:20:52]line [15:20:52]line [15:20:52]line [15:20:52]line [15:20:52]line [15:20:52]written 0, free lines is 3324 [15:20:52]MH_Cut [15:20:52]Write to MH i2c: D1 01 00 F8 1F 01 E9 [15:20:52]Write i2c OK [15:20:52]MH_I2C_Read... [15:20:52]Read from MH i2c: D1 [15:20:52]MH_I2C_Read... [15:20:52]Read from MH i2c: D1 01 00 [15:20:52]MH_I2C_Read... [15:20:52]Read from MH i2c: D1 01 00 F8 1F 00 E8 [15:20:52]Write to MH i2c: 01 00 00 F9 1F 18 [15:20:52]Write i2c OK [15:20:52]MH_I2C_Read... [15:20:52]OFD Sender: No OFD packet to send [15:20:52]*** Cut start [15:20:52]*** Partial cut [15:20:52]*** CUTSNS_PIN = 1 [15:20:53]*** CUTSNS_PIN = 0 [15:20:53]*** Brake cut motor [15:20:53]Read from MH i2c: 01 [15:20:53]MH_I2C_Read... [15:20:53]*** Stop cut motor [15:20:53]*** Cut end [15:20:53]Read from MH i2c: 01 07 00 [15:20:53]MH_I2C_Read... [15:20:53]Read from MH i2c: 01 07 00 F9 1F 00 00 00 00 00 FF 0F 2D [15:20:53]process_action close_receipt done [15:20:53]requested_data is exist [15:20:53]produce_requested_data [15:20:53]requested_item fm.sn is exist - process it [15:20:53]wFMCommunicate request_size=4 [15:20:53]MH_SAM_APDU [15:20:53]CAPDU: 80 11 00 00 [15:20:53]Write to MH i2c: E2 08 00 FA 1F 80 11 00 00 00 00 00 00 93 [15:20:53]Write i2c OK [15:20:53]MH_I2C_Read... [15:20:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:20:53]Read from MH i2c: E2 [15:20:53]MH_I2C_Read... [15:20:53]Read from MH i2c: E2 17 00 [15:20:53]MH_I2C_Read... [15:20:53]Read from MH i2c: E2 17 00 FA 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E9 [15:20:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:20:53]wFMCommunicate OK [15:20:53]requested_item fd.num is exist - process it [15:20:53]SAM_PROTO_GetFieldsCounters [15:20:53]wFMCommunicate request_size=4 [15:20:53]MH_SAM_APDU [15:20:53]CAPDU: 80 13 00 00 [15:20:53]Write to MH i2c: E2 08 00 FB 1F 80 13 00 00 00 00 00 00 96 [15:20:53]Write i2c OK [15:20:53]MH_I2C_Read... [15:20:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:20:53]Read from MH i2c: E2 [15:20:53]MH_I2C_Read... [15:20:53]Read from MH i2c: E2 62 00 [15:20:53]MH_I2C_Read... [15:20:53]Read from MH i2c: E2 62 00 FB 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D5 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [15:20: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D5 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:20:53]wFMCommunicate OK [15:20:53]SAM_PROTO_GetFieldsCounters done [15:20:53]requested_item shift.num is exist - process it [15:20:53]requested_item shift.opened is exist - process it [15:20:53]req_shift_opened [15:20:53]FM_GetShiftState [15:20:53]SAM_PROTO_GetShiftState [15:20:53]wFMCommunicate request_size=4 [15:20:53]MH_SAM_APDU [15:20:53]CAPDU: 80 13 01 00 [15:20:53]Write to MH i2c: E2 08 00 FC 1F 80 13 01 00 00 00 00 00 98 [15:20:53]Write i2c OK [15:20:53]MH_I2C_Read... [15:20:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:20:53]Read from MH i2c: E2 [15:20:53]MH_I2C_Read... [15:20:53]Read from MH i2c: E2 0E 00 [15:20:53]MH_I2C_Read... [15:20:53]Read from MH i2c: E2 0E 00 FC 1F 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 71 [15:20:53]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [15:20:53]wFMCommunicate OK [15:20:53]SAM_PROTO_GetShiftState done [15:20:53]FM_GetShiftState done [15:20:53]req_shift_opened done [15:20:53]requested_item shift.open_date is exist - process it [15:20:53]req_shift_open_date [15:20:53]req_shift_open_date done [15:20:53]produce_requested_data done [15:20:53]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165333,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [15:20:53]process_action_free close_receipt [15:20:53]json_value_free [15:20:53]json_value_free done [15:20:53]process_json_proto returns [15:20:53]Send response to host [15:20:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165333,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [15:20:53]free response buf [15:20:53]execute_script done [15:20:53]execute_script returns [15:20:53]free content buf [15:20:53]Sock 9.Close socket [15:20:53]Sock 9.Thread stoped [15:20:57]OFD Sender: No OFD packet to send [15:21:02]OFD Sender: No OFD packet to send [15:21:07]OFD Sender: No OFD packet to send [15:21:12]OFD Sender: No OFD packet to send [15:21:17]OFD Sender: No OFD packet to send [15:21:22]OFD Sender: No OFD packet to send [15:21:27]OFD Sender: No OFD packet to send [15:21:32]OFD Sender: No OFD packet to send [15:21:37]OFD Sender: No OFD packet to send [15:21:42]OFD Sender: No OFD packet to send [15:21:47]OFD Sender: No OFD packet to send [15:21:52]OFD Sender: No OFD packet to send [15:21:57]OFD Sender: No OFD packet to send [15:22:02]OFD Sender: No OFD packet to send [15:22:07]OFD Sender: No OFD packet to send [15:22:12]OFD Sender: No OFD packet to send [15:22:17]OFD Sender: No OFD packet to send [15:22:22]OFD Sender: No OFD packet to send [15:22:27]OFD Sender: No OFD packet to send [15:22:32]OFD Sender: No OFD packet to send [15:22:37]OFD Sender: No OFD packet to send [15:22:42]OFD Sender: No OFD packet to send [15:22:47]OFD Sender: No OFD packet to send [15:22:52]OFD Sender: No OFD packet to send [15:22:57]OFD Sender: No OFD packet to send [15:23:02]OFD Sender: No OFD packet to send [15:23:07]OFD Sender: No OFD packet to send [15:23:12]OFD Sender: No OFD packet to send [15:23:17]OFD Sender: No OFD packet to send [15:23:22]OFD Sender: No OFD packet to send [15:23:27]OFD Sender: No OFD packet to send [15:23:32]OFD Sender: No OFD packet to send [15:23:37]OFD Sender: No OFD packet to send [15:23:42]OFD Sender: No OFD packet to send [15:23:47]OFD Sender: No OFD packet to send [15:23:52]OFD Sender: No OFD packet to send [15:23:57]OFD Sender: No OFD packet to send [15:24:02]OFD Sender: No OFD packet to send [15:24:07]OFD Sender: No OFD packet to send [15:24:12]OFD Sender: No OFD packet to send [15:24:17]OFD Sender: No OFD packet to send [15:24:22]OFD Sender: No OFD packet to send [15:24:27]OFD Sender: No OFD packet to send [15:24:32]OFD Sender: No OFD packet to send [15:24:37]OFD Sender: No OFD packet to send [15:24:42]OFD Sender: No OFD packet to send [15:24:47]OFD Sender: No OFD packet to send [15:24:52]OFD Sender: No OFD packet to send [15:24:57]OFD Sender: No OFD packet to send [15:25:02]OFD Sender: No OFD packet to send [15:25:07]OFD Sender: No OFD packet to send [15:25:12]OFD Sender: No OFD packet to send [15:25:17]OFD Sender: No OFD packet to send [15:25:22]OFD Sender: No OFD packet to send [15:25:27]OFD Sender: No OFD packet to send [15:25:32]OFD Sender: No OFD packet to send [15:25:37]OFD Sender: No OFD packet to send [15:25:42]OFD Sender: No OFD packet to send [15:25:47]OFD Sender: No OFD packet to send [15:25:49]accept exits with 8 [15:25:49]New connection [15:25:49]New thread 3066854756 created [15:25:49]Thread 3066711396 joined [15:25:49]Waiting for new connection... [15:25:49] Sock 8.Parse request [15:25:49]Sock 8.Check first char [15:25:49]Sock 8.First char is OK [15:25:49]request: POST /json_proto HTTP/1.0 [15:25:49]Method: POST [15:25:49]URL: /json_proto [15:25:49]Method is POST - this is cgi request [15:25:49]url: /json_proto [15:25:49]query_string will be loaded in cgi processing [15:25:49]execute_cgi json_proto POST (null) [15:25:49]execute_cgi path=json_proto method=POST [15:25:49]POST find Content-Length [15:25:49]Host: 172.17.56.4:8080 [15:25:49]Content-Length: 677 [15:25:49]Content-Type: application/json [15:25:49] [15:25:49]POST finish read [15:25:49]Found Content-Length = 677 [15:25:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459446", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "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" ] } } [15:25:49]execute_script... [15:25:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459446", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "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" ] } } [15:25:49]POST & json_proto [15:25:49]process_json_proto [15:25:49]json parsed OK: [15:25:49]protocol is kg_v1.0 [15:25:49]action value=close_receipt [15:25:49]process_action close_receipt [15:25:49]cmd_close_receipt [15:25:49]MH_GetDate [15:25:49]Write to MH i2c: F0 00 00 FD 1F 0B [15:25:49]Write i2c OK [15:25:49]MH_I2C_Read... [15:25:49]Read from MH i2c: F0 [15:25:49]MH_I2C_Read... [15:25:49]Read from MH i2c: F0 09 00 [15:25:49]MH_I2C_Read... [15:25:49]Read from MH i2c: F0 09 00 FD 1F 00 7E 3F 95 66 C9 DC B2 64 87 [15:25:49]GetLastDocTimeStamp 1721056851 [15:25:49]current date 1721057150 [15:25:49]FM_GetShiftState [15:25:49]SAM_PROTO_GetShiftState [15:25:49]wFMCommunicate request_size=4 [15:25:49]MH_SAM_APDU [15:25:49]CAPDU: 80 13 01 00 [15:25:49]Write to MH i2c: E2 08 00 FE 1F 80 13 01 00 00 00 00 00 9A [15:25:49]Write i2c OK [15:25:49]MH_I2C_Read... [15:25:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:49]Read from MH i2c: E2 [15:25:49]MH_I2C_Read... [15:25:49]Read from MH i2c: E2 0E 00 [15:25:49]MH_I2C_Read... [15:25:49]Read from MH i2c: E2 0E 00 FE 1F 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 73 [15:25:49]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [15:25:49]wFMCommunicate OK [15:25:49]SAM_PROTO_GetShiftState done [15:25:49]FM_GetShiftState done [15:25:49]opened in 1721003876 [15:25:49]opened+sec_in_day 1721090276 [15:25:49]quantity*price = 60009 [15:25:49]sum+1 = 60011 [15:25:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 207 15.07.2024 15:25 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165334 ФПД: 104565028958269 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T152550&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165334&fm=104565028958269&tin=02508201610067®Number=0000000000090829&sum=60000 [15:25:50]StoreToDocumentArchive [15:25:50]shift 448 fd 165334 [15:25:50]save to /storage/0448/doc_00165334 [15:25:50]save last doc name /storage/0448/doc_00165334 to /storage/kkm_last_doc_name [15:25:50]save OK [15:25:50]Clear old archive folders... [15:25:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:25:50]tlvbuf is 01837DE0 [15:25:50]SAM_PROTO_ClearQueue [15:25:50]wFMCommunicate request_size=4 [15:25:50]MH_SAM_APDU [15:25:50]CAPDU: 80 09 00 00 [15:25:50]Write to MH i2c: E2 08 00 0B 20 80 09 00 00 00 00 00 00 9D [15:25:50]Write i2c OK [15:25:50]MH_I2C_Read... [15:25:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:25:50]Read from MH i2c: E2 [15:25:50]MH_I2C_Read... [15:25:50]Read from MH i2c: E2 03 00 [15:25:50]MH_I2C_Read... [15:25:50]Read from MH i2c: E2 03 00 0B 20 00 90 00 9F [15:25:50]RAPDU: 90 00 [15:25:50]wFMCommunicate OK [15:25:50]SAM_PROTO_ClearQueue done [15:25:50]KKMCreateOFDPacket [15:25:50]OFDProtocolAddRootSTLVToBuf [15:25:50]FM_MakeSignedData [15:25:50]FM_MakeSignedData [15:25:50]SAM_PROTO_SignData [15:25:50]wFMCommunicate request_size=4 [15:25:50]MH_SAM_APDU [15:25:50]CAPDU: 80 0D 01 02 [15:25:50]Write to MH i2c: E2 08 00 0C 20 80 0D 01 02 00 00 00 00 A5 [15:25:50]Write i2c OK [15:25:50]MH_I2C_Read... [15:25:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:25:50]Read from MH i2c: E2 [15:25:50]MH_I2C_Read... [15:25:50]Read from MH i2c: E2 03 00 [15:25:50]MH_I2C_Read... [15:25:50]Read from MH i2c: E2 03 00 0C 20 00 90 00 A0 [15:25:50]RAPDU: 90 00 [15:25:50]wFMCommunicate OK [15:25:50]wFMCommunicate request_size=255 [15:25:50]MH_SAM_APDU [15:25:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 7E 3F 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D6 85 02 00 35 04 06 00 5F [15:25:50]Write to MH i2c: E2 02 01 0D 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 7E 3F 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D6 85 02 00 35 04 06 00 5F 00 00 43 [15:25:50]Write i2c OK [15:25:50]MH_I2C_Read... [15:25:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:50]Read from MH i2c: E2 [15:25:50]MH_I2C_Read... [15:25:50]Read from MH i2c: E2 03 00 [15:25:50]MH_I2C_Read... [15:25:50]Read from MH i2c: E2 03 00 0D 20 00 90 00 A1 [15:25:50]RAPDU: 90 00 [15:25:50]wFMCommunicate OK [15:25:50]wFMCommunicate request_size=10 [15:25:50]MH_SAM_APDU [15:25:50]CAPDU: 80 0D 02 02 05 19 F1 68 30 3D [15:25:50]Write to MH i2c: E2 0D 00 0E 20 80 0D 02 02 05 00 19 F1 68 30 3D 00 00 91 [15:25:50]Write i2c OK [15:25:50]MH_I2C_Read... [15:25:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:50]Read from MH i2c: E2 [15:25:50]MH_I2C_Read... [15:25:50]Read from MH i2c: E2 03 00 [15:25:50]MH_I2C_Read... [15:25:50]Read from MH i2c: E2 03 00 0E 20 00 90 00 A2 [15:25:50]RAPDU: 90 00 [15:25:50]wFMCommunicate OK [15:25:50]wFMCommunicate request_size=4 [15:25:50]MH_SAM_APDU [15:25:50]CAPDU: 80 0D 03 02 [15:25:50]Write to MH i2c: E2 08 00 0F 20 80 0D 03 02 00 00 00 00 AA [15:25:50]Write i2c OK [15:25:50]MH_I2C_Read... [15:25:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:25:50]Read from MH i2c: E2 [15:25:50]MH_I2C_Read... [15:25:50]Read from MH i2c: E2 0B 00 [15:25:50]MH_I2C_Read... [15:25:50]Read from MH i2c: E2 0B 00 0F 20 00 D0 1A 08 BF 05 18 B3 92 90 00 BE [15:25:50]RAPDU: D0 1A 08 BF 05 18 B3 92 90 00 [15:25:50]wFMCommunicate OK [15:25:50]SAM_PROTO_SignData done [15:25:50]FM_MakeSignedData done [15:25:50]CreateOFDProtocolMessage [15:25:50]wFMCommunicate request_size=4 [15:25:50]MH_SAM_APDU [15:25:50]CAPDU: 80 11 00 00 [15:25:50]Write to MH i2c: E2 08 00 10 20 80 11 00 00 00 00 00 00 AA [15:25:50]Write i2c OK [15:25:50]MH_I2C_Read... [15:25:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:50]Read from MH i2c: E2 [15:25:50]MH_I2C_Read... [15:25:50]Read from MH i2c: E2 17 00 [15:25:50]MH_I2C_Read... [15:25:50]Read from MH i2c: E2 17 00 10 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 00 [15:25:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:25:50]wFMCommunicate OK [15:25:50]CreateOFDProtocolMessage done [15:25:50]OFDSenderStorePacket 165334 [15:25:50]StoreOFDPacket docnum=165334 [15:25:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 BD E8 07 01 52 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 7E 3F 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D6 85 02 00 35 04 06 00 5F 19 F1 68 30 3D D0 1A 08 BF 05 18 B3 92 [15:25:50]CheckFolder [15:25:50]dirname=/storage/ofd_packets [15:25:50]CheckFolder done [15:25:50]ProducePacketName [15:25:50]name=ofd_packets/00165334 [15:25:50]NVStorageSaveData ofd_packets/00165334 [15:25:50]File name is /storage/ofd_packets/00165334 [15:25:50]Write 301 bytes [15:25:50]NVStorageSaveData done [15:25:50]OFDSenderStorePacket done [15:25:50]KKMCreateOFDPacket done [15:25:50]NVStorageSaveData kkm_last_timestamp [15:25:50]File name is /storage/kkm_last_timestamp [15:25:50]Write 4 bytes [15:25:50]NVStorageSaveData done [15:25:50]ExternCall_PrintAddStr [15:25:50]wPrintStart [15:25:50]Write to MH i2c: 01 00 00 11 20 31 [15:25:50]Write i2c OK [15:25:50]MH_I2C_Read... [15:25:50]Read from MH i2c: 01 [15:25:50]MH_I2C_Read... [15:25:50]Read from MH i2c: 01 07 00 [15:25:50]MH_I2C_Read... [15:25:50]Read from MH i2c: 01 07 00 11 20 00 00 00 00 00 FF 0F 46 [15:25:50]RasterBufferAndPrint [15:25:50]line Счет N : (1)459446 [15:25:50]line ИНН: 02508201610067 [15:25:50]line Контрольно-Кассовый Чек [15:25:50]line ПРОДАЖА [15:25:50]line ТРК (МРК, ГНК) : 22 [15:25:50]line Товар: 2710124130 [15:25:50]line Аи-92-К-5 [15:25:50]line 9.120 * 65.80 [15:25:50]line = 600.10 [15:25:50]line НДС 12% НСП 1% [15:25:50]line > о реализуемом товаре [15:25:50]line ОКРУГЛЕНИЕ: -0.10 [15:25:50]line ИТОГО: 600.00 [15:25:50]line Внесено: 600.00 [15:25:50]line СДАЧА: 0.00 [15:25:50]line НСП 1% : 5.31 [15:25:50]line НДС 12% : 63.73 [15:25:50]line Наличными: 600.00 [15:25:50]line Безнал.: 0.00 [15:25:50]line Место: АЗС № 72 "Партнер Нефть" [15:25:50]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:25:50]line СНО: Общий режим [15:25:50]line Чек 207 15.07.2024 15:25 [15:25:50]line Смена: 448 ФФД: 1.0 [15:25:50]line ЗНМ: 0300000160 [15:25:50]line РНМ: 0000000000090829 [15:25:50]line Версия ККМ: 001 [15:25:50]line ФМ: 0000000000874718 [15:25:50]line ФД: 165334 [15:25:50]line ФПД: 104565028958269 [15:25:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T152550&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165334&fm=104565028958269&tin=02508201610067®Number=0000000000090829&sum=60000 [15:25:51]OFD Sender: Processing packet 165334 [packets to send 106, broken 105] [15:25:51]ProducePacketName [15:25:51]name=ofd_packets/00165334 [15:25:51]OFD Sender: To server: pG, [15:25:51]CommunicateWithHost lk.salyk.kg:30040 [15:25:51]ConnectInit lk.salyk.kg [15:25:51]written 0, free lines is 4095 [15:25:51]Connected sock=10 [15:25:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 BD E8 07 01 52 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 7E 3F 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D6 85 02 00 35 04 06 00 5F 19 F1 68 30 3D D0 1A 08 BF 05 18 B3 92 [15:25:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 A1 AD 47 00 83 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D6 85 02 00 F4 03 04 00 08 E6 94 66 B6 04 01 00 00 9D DD 43 72 A7 5F 87 48 [15:25:51]CommunicateWithHost err = 0 [15:25:51]CheckOFDResponse [15:25:51]1017 (14) - 77093643461234 [15:25:51]1041 (16) - 0000000000874718 [15:25:51]1040 (4) - 165334 [15:25:51]1012 (4) - 15.07.2024 09:04 [15:25:51]1206 (1) - 0 [15:25:51]OFD Sender: Remove packet 165334 [15:25:51]ProducePacketName [15:25:51]name=ofd_packets/00165334 [15:25:51]NVStorageDeleteData [15:25:51]Write to MH i2c: 01 00 00 3B 20 5B [15:25:51]Write i2c OK [15:25:51]MH_I2C_Read... [15:25:51]Read from MH i2c: 01 [15:25:51]MH_I2C_Read... [15:25:51]Read from MH i2c: 01 07 00 [15:25:51]MH_I2C_Read... [15:25:51]Read from MH i2c: 01 07 00 3B 20 00 00 00 00 00 02 0D 71 [15:25:51]RasterBufferAndPrint [15:25:51]line [15:25:51]line [15:25:51]line [15:25:51]line [15:25:51]line [15:25:51]written 0, free lines is 3336 [15:25:51]MH_Cut [15:25:51]Write to MH i2c: D1 01 00 42 20 01 34 [15:25:51]Write i2c OK [15:25:51]MH_I2C_Read... [15:25:51]Read from MH i2c: D1 [15:25:51]MH_I2C_Read... [15:25:51]Read from MH i2c: D1 01 00 [15:25:51]MH_I2C_Read... [15:25:51]Read from MH i2c: D1 01 00 42 20 00 33 [15:25:51]Write to MH i2c: 01 00 00 43 20 63 [15:25:51]Write i2c OK [15:25:51]MH_I2C_Read... [15:25:51]OFD Sender: No OFD packet to send [15:25:52]*** Cut start [15:25:52]*** Partial cut [15:25:52]*** CUTSNS_PIN = 1 [15:25:52]*** CUTSNS_PIN = 0 [15:25:52]*** Brake cut motor [15:25:52]Read from MH i2c: 01 [15:25:52]MH_I2C_Read... [15:25:52]*** Stop cut motor [15:25:52]*** Cut end [15:25:52]Read from MH i2c: 01 07 00 [15:25:52]MH_I2C_Read... [15:25:52]Read from MH i2c: 01 07 00 43 20 00 00 00 00 00 FF 0F 78 [15:25:52]process_action close_receipt done [15:25:52]requested_data is exist [15:25:52]produce_requested_data [15:25:52]requested_item fm.sn is exist - process it [15:25:52]wFMCommunicate request_size=4 [15:25:52]MH_SAM_APDU [15:25:52]CAPDU: 80 11 00 00 [15:25:52]Write to MH i2c: E2 08 00 44 20 80 11 00 00 00 00 00 00 DE [15:25:52]Write i2c OK [15:25:52]MH_I2C_Read... [15:25:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:52]Read from MH i2c: E2 [15:25:52]MH_I2C_Read... [15:25:52]Read from MH i2c: E2 17 00 [15:25:52]MH_I2C_Read... [15:25:52]Read from MH i2c: E2 17 00 44 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 34 [15:25:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:25:52]wFMCommunicate OK [15:25:52]requested_item fd.num is exist - process it [15:25:52]SAM_PROTO_GetFieldsCounters [15:25:52]wFMCommunicate request_size=4 [15:25:52]MH_SAM_APDU [15:25:52]CAPDU: 80 13 00 00 [15:25:52]Write to MH i2c: E2 08 00 45 20 80 13 00 00 00 00 00 00 E1 [15:25:52]Write i2c OK [15:25:52]MH_I2C_Read... [15:25:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:25:52]Read from MH i2c: E2 [15:25:52]MH_I2C_Read... [15:25:52]Read from MH i2c: E2 62 00 [15:25:52]MH_I2C_Read... [15:25:52]Read from MH i2c: E2 62 00 45 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D6 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [15:25: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D6 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:25:52]wFMCommunicate OK [15:25:52]SAM_PROTO_GetFieldsCounters done [15:25:52]requested_item shift.num is exist - process it [15:25:52]requested_item shift.opened is exist - process it [15:25:52]req_shift_opened [15:25:52]FM_GetShiftState [15:25:52]SAM_PROTO_GetShiftState [15:25:52]wFMCommunicate request_size=4 [15:25:52]MH_SAM_APDU [15:25:52]CAPDU: 80 13 01 00 [15:25:52]Write to MH i2c: E2 08 00 46 20 80 13 01 00 00 00 00 00 E3 [15:25:52]Write i2c OK [15:25:52]MH_I2C_Read... [15:25:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:53]Read from MH i2c: E2 [15:25:53]MH_I2C_Read... [15:25:53]Read from MH i2c: E2 0E 00 [15:25:53]MH_I2C_Read... [15:25:53]Read from MH i2c: E2 0E 00 46 20 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 BC [15:25:53]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [15:25:53]wFMCommunicate OK [15:25:53]SAM_PROTO_GetShiftState done [15:25:53]FM_GetShiftState done [15:25:53]req_shift_opened done [15:25:53]requested_item shift.open_date is exist - process it [15:25:53]req_shift_open_date [15:25:53]req_shift_open_date done [15:25:53]produce_requested_data done [15:25:53]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165334,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [15:25:53]process_action_free close_receipt [15:25:53]json_value_free [15:25:53]json_value_free done [15:25:53]process_json_proto returns [15:25:53]Send response to host [15:25:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165334,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [15:25:53]free response buf [15:25:53]execute_script done [15:25:53]execute_script returns [15:25:53]free content buf [15:25:53]Sock 8.Close socket [15:25:53]Sock 8.Thread stoped [15:25:56]OFD Sender: No OFD packet to send [15:26:01]OFD Sender: No OFD packet to send [15:26:06]OFD Sender: No OFD packet to send [15:26:11]OFD Sender: No OFD packet to send [15:26:16]OFD Sender: No OFD packet to send [15:26:21]OFD Sender: No OFD packet to send [15:26:26]OFD Sender: No OFD packet to send [15:26:31]OFD Sender: No OFD packet to send [15:26:36]OFD Sender: No OFD packet to send [15:26:41]OFD Sender: No OFD packet to send [15:26:46]OFD Sender: No OFD packet to send [15:26:51]OFD Sender: No OFD packet to send [15:26:56]OFD Sender: No OFD packet to send [15:27:01]OFD Sender: No OFD packet to send [15:27:06]OFD Sender: No OFD packet to send [15:27:11]OFD Sender: No OFD packet to send [15:27:17]OFD Sender: No OFD packet to send [15:27:22]OFD Sender: No OFD packet to send [15:27:27]OFD Sender: No OFD packet to send [15:27:32]OFD Sender: No OFD packet to send [15:27:37]OFD Sender: No OFD packet to send [15:27:42]OFD Sender: No OFD packet to send [15:27:47]OFD Sender: No OFD packet to send [15:27:52]OFD Sender: No OFD packet to send [15:27:57]OFD Sender: No OFD packet to send [15:28:02]OFD Sender: No OFD packet to send [15:28:07]OFD Sender: No OFD packet to send [15:28:12]OFD Sender: No OFD packet to send [15:28:17]OFD Sender: No OFD packet to send [15:28:22]OFD Sender: No OFD packet to send [15:28:27]OFD Sender: No OFD packet to send [15:28:32]OFD Sender: No OFD packet to send [15:28:37]OFD Sender: No OFD packet to send [15:28:42]OFD Sender: No OFD packet to send [15:28:47]OFD Sender: No OFD packet to send [15:28:52]OFD Sender: No OFD packet to send [15:28:57]OFD Sender: No OFD packet to send [15:29:02]OFD Sender: No OFD packet to send [15:29:07]OFD Sender: No OFD packet to send [15:29:12]OFD Sender: No OFD packet to send [15:29:17]OFD Sender: No OFD packet to send [15:29:22]OFD Sender: No OFD packet to send [15:29:27]OFD Sender: No OFD packet to send [15:29:32]OFD Sender: No OFD packet to send [15:29:33]accept exits with 9 [15:29:33]New connection [15:29:33]New thread 3066711396 created [15:29:33]Thread 3066854756 joined [15:29:33]Waiting for new connection... [15:29:33] Sock 9.Parse request [15:29:33]Sock 9.Check first char [15:29:33]Sock 9.First char is OK [15:29:33]request: POST /json_proto HTTP/1.0 [15:29:33]Method: POST [15:29:33]URL: /json_proto [15:29:33]Method is POST - this is cgi request [15:29:33]url: /json_proto [15:29:33]query_string will be loaded in cgi processing [15:29:33]execute_cgi json_proto POST (null) [15:29:33]execute_cgi path=json_proto method=POST [15:29:33]POST find Content-Length [15:29:33]Host: 172.17.56.4:8080 [15:29:33]Content-Length: 678 [15:29:33]Content-Type: application/json [15:29:33] [15:29:33]POST finish read [15:29:33]Found Content-Length = 678 [15:29:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459447", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.040, "sum" : 660.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:29:33]execute_script... [15:29: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)459447", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.040, "sum" : 660.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:29:33]POST & json_proto [15:29:33]process_json_proto [15:29:33]json parsed OK: [15:29:33]protocol is kg_v1.0 [15:29:33]action value=close_receipt [15:29:33]process_action close_receipt [15:29:33]cmd_close_receipt [15:29:33]MH_GetDate [15:29:33]Write to MH i2c: F0 00 00 47 20 56 [15:29:33]Write i2c OK [15:29:33]MH_I2C_Read... [15:29:33]Read from MH i2c: F0 [15:29:33]MH_I2C_Read... [15:29:33]Read from MH i2c: F0 09 00 [15:29:33]MH_I2C_Read... [15:29:33]Read from MH i2c: F0 09 00 47 20 00 5F 40 95 66 C9 DC B2 64 B4 [15:29:33]GetLastDocTimeStamp 1721057150 [15:29:33]current date 1721057375 [15:29:33]FM_GetShiftState [15:29:33]SAM_PROTO_GetShiftState [15:29:33]wFMCommunicate request_size=4 [15:29:33]MH_SAM_APDU [15:29:33]CAPDU: 80 13 01 00 [15:29:33]Write to MH i2c: E2 08 00 48 20 80 13 01 00 00 00 00 00 E5 [15:29:33]Write i2c OK [15:29:33]MH_I2C_Read... [15:29:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:29:33]Read from MH i2c: E2 [15:29:33]MH_I2C_Read... [15:29:33]Read from MH i2c: E2 0E 00 [15:29:33]MH_I2C_Read... [15:29:33]Read from MH i2c: E2 0E 00 48 20 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 BE [15:29:33]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [15:29:33]wFMCommunicate OK [15:29:33]SAM_PROTO_GetShiftState done [15:29:33]FM_GetShiftState done [15:29:33]opened in 1721003876 [15:29:33]opened+sec_in_day 1721090276 [15:29:33]quantity*price = 66063 [15:29:33]sum+1 = 66064 [15:29:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 660.00 Внесено: 660.00 СДАЧА: 0.00 НСП 1% : 5.85 НДС 12% : 70.15 Наличными: 660.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 208 15.07.2024 15:29 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165335 ФПД: 25016812248905 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T152935&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165335&fm=25016812248905&tin=02508201610067®Number=0000000000090829&sum=66000 [15:29:35]StoreToDocumentArchive [15:29:35]shift 448 fd 165335 [15:29:35]save to /storage/0448/doc_00165335 [15:29:35]save last doc name /storage/0448/doc_00165335 to /storage/kkm_last_doc_name [15:29:35]save OK [15:29:35]Clear old archive folders... [15:29:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:29:35]tlvbuf is 0181A220 [15:29:35]SAM_PROTO_ClearQueue [15:29:35]wFMCommunicate request_size=4 [15:29:35]MH_SAM_APDU [15:29:35]CAPDU: 80 09 00 00 [15:29:35]Write to MH i2c: E2 08 00 55 20 80 09 00 00 00 00 00 00 E7 [15:29:35]Write i2c OK [15:29:35]MH_I2C_Read... [15:29:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:29:35]Read from MH i2c: E2 [15:29:35]MH_I2C_Read... [15:29:35]Read from MH i2c: E2 03 00 [15:29:35]MH_I2C_Read... [15:29:35]Read from MH i2c: E2 03 00 55 20 00 90 00 E9 [15:29:35]RAPDU: 90 00 [15:29:35]wFMCommunicate OK [15:29:35]SAM_PROTO_ClearQueue done [15:29:35]KKMCreateOFDPacket [15:29:35]OFDProtocolAddRootSTLVToBuf [15:29:35]FM_MakeSignedData [15:29:35]FM_MakeSignedData [15:29:35]SAM_PROTO_SignData [15:29:35]wFMCommunicate request_size=4 [15:29:35]MH_SAM_APDU [15:29:35]CAPDU: 80 0D 01 02 [15:29:35]Write to MH i2c: E2 08 00 56 20 80 0D 01 02 00 00 00 00 EF [15:29:35]Write i2c OK [15:29:35]MH_I2C_Read... [15:29:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:29:35]Read from MH i2c: E2 [15:29:35]MH_I2C_Read... [15:29:35]Read from MH i2c: E2 03 00 [15:29:35]MH_I2C_Read... [15:29:35]Read from MH i2c: E2 03 00 56 20 00 90 00 EA [15:29:35]RAPDU: 90 00 [15:29:35]wFMCommunicate OK [15:29:35]wFMCommunicate request_size=255 [15:29:35]MH_SAM_APDU [15:29: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 38 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 5F 40 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D7 85 02 00 35 04 06 00 16 [15:29:35]Write to MH i2c: E2 02 01 57 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 5F 40 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D7 85 02 00 35 04 06 00 16 00 00 4D [15:29:35]Write i2c OK [15:29:35]MH_I2C_Read... [15:29:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:29:35]Read from MH i2c: E2 [15:29:35]MH_I2C_Read... [15:29:35]Read from MH i2c: E2 03 00 [15:29:35]MH_I2C_Read... [15:29:35]Read from MH i2c: E2 03 00 57 20 00 90 00 EB [15:29:35]RAPDU: 90 00 [15:29:35]wFMCommunicate OK [15:29:35]wFMCommunicate request_size=10 [15:29:35]MH_SAM_APDU [15:29:35]CAPDU: 80 0D 02 02 05 C0 AE 35 1F 49 [15:29:35]Write to MH i2c: E2 0D 00 58 20 80 0D 02 02 05 00 C0 AE 35 1F 49 00 00 07 [15:29:35]Write i2c OK [15:29:35]MH_I2C_Read... [15:29:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:29:35]Read from MH i2c: E2 [15:29:35]MH_I2C_Read... [15:29:35]Read from MH i2c: E2 03 00 [15:29:35]MH_I2C_Read... [15:29:35]Read from MH i2c: E2 03 00 58 20 00 90 00 EC [15:29:35]RAPDU: 90 00 [15:29:35]wFMCommunicate OK [15:29:35]wFMCommunicate request_size=4 [15:29:35]MH_SAM_APDU [15:29:35]CAPDU: 80 0D 03 02 [15:29:35]Write to MH i2c: E2 08 00 59 20 80 0D 03 02 00 00 00 00 F4 [15:29:35]Write i2c OK [15:29:35]MH_I2C_Read... [15:29:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:29:35]Read from MH i2c: E2 [15:29:35]MH_I2C_Read... [15:29:35]Read from MH i2c: E2 0B 00 [15:29:35]MH_I2C_Read... [15:29:35]Read from MH i2c: E2 0B 00 59 20 00 3A FB 1A 69 50 F8 B0 D6 90 00 7B [15:29:35]RAPDU: 3A FB 1A 69 50 F8 B0 D6 90 00 [15:29:35]wFMCommunicate OK [15:29:35]SAM_PROTO_SignData done [15:29:35]FM_MakeSignedData done [15:29:35]CreateOFDProtocolMessage [15:29:35]wFMCommunicate request_size=4 [15:29:35]MH_SAM_APDU [15:29:35]CAPDU: 80 11 00 00 [15:29:35]Write to MH i2c: E2 08 00 5A 20 80 11 00 00 00 00 00 00 F4 [15:29:35]Write i2c OK [15:29:35]MH_I2C_Read... [15:29:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:35]Read from MH i2c: E2 [15:29:35]MH_I2C_Read... [15:29:35]Read from MH i2c: E2 17 00 [15:29:35]MH_I2C_Read... [15:29:35]Read from MH i2c: E2 17 00 5A 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4A [15:29:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:29:35]wFMCommunicate OK [15:29:35]CreateOFDProtocolMessage done [15:29:35]OFDSenderStorePacket 165335 [15:29:35]StoreOFDPacket docnum=165335 [15:29:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 61 80 07 01 75 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 38 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 5F 40 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D7 85 02 00 35 04 06 00 16 C0 AE 35 1F 49 3A FB 1A 69 50 F8 B0 D6 [15:29:35]CheckFolder [15:29:35]dirname=/storage/ofd_packets [15:29:35]CheckFolder done [15:29:35]ProducePacketName [15:29:35]name=ofd_packets/00165335 [15:29:35]NVStorageSaveData ofd_packets/00165335 [15:29:35]File name is /storage/ofd_packets/00165335 [15:29:35]Write 301 bytes [15:29:35]NVStorageSaveData done [15:29:35]OFDSenderStorePacket done [15:29:35]KKMCreateOFDPacket done [15:29:35]NVStorageSaveData kkm_last_timestamp [15:29:35]File name is /storage/kkm_last_timestamp [15:29:35]Write 4 bytes [15:29:35]NVStorageSaveData done [15:29:35]ExternCall_PrintAddStr [15:29:35]wPrintStart [15:29:35]Write to MH i2c: 01 00 00 5B 20 7B [15:29:35]Write i2c OK [15:29:35]MH_I2C_Read... [15:29:35]Read from MH i2c: 01 [15:29:35]MH_I2C_Read... [15:29:35]Read from MH i2c: 01 07 00 [15:29:35]MH_I2C_Read... [15:29:35]Read from MH i2c: 01 07 00 5B 20 00 00 00 00 00 FF 0F 90 [15:29:35]RasterBufferAndPrint [15:29:35]line Счет N : (1)459447 [15:29:35]line ИНН: 02508201610067 [15:29:35]line Контрольно-Кассовый Чек [15:29:35]line ПРОДАЖА [15:29:35]line ТРК (МРК, ГНК) : 22 [15:29:35]line Товар: 2710124130 [15:29:35]line Аи-92-К-5 [15:29:35]line 10.040 * 65.80 [15:29:35]line = 660.63 [15:29:35]line НДС 12% НСП 1% [15:29:35]line > о реализуемом товаре [15:29:35]line ОКРУГЛЕНИЕ: -0.63 [15:29:35]line ИТОГО: 660.00 [15:29:35]line Внесено: 660.00 [15:29:35]line СДАЧА: 0.00 [15:29:35]line НСП 1% : 5.85 [15:29:35]line НДС 12% : 70.15 [15:29:35]line Наличными: 660.00 [15:29:35]line Безнал.: 0.00 [15:29:35]line Место: АЗС № 72 "Партнер Нефть" [15:29:35]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:29:35]line СНО: Общий режим [15:29:35]line Чек 208 15.07.2024 15:29 [15:29:35]line Смена: 448 ФФД: 1.0 [15:29:35]line ЗНМ: 0300000160 [15:29:35]line РНМ: 0000000000090829 [15:29:35]line Версия ККМ: 001 [15:29:35]line ФМ: 0000000000874718 [15:29:35]line ФД: 165335 [15:29:35]line ФПД: 25016812248905 [15:29:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T152935&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165335&fm=25016812248905&tin=02508201610067®Number=0000000000090829&sum=66000 [15:29:35]OFD Sender: Processing packet 165335 [packets to send 106, broken 105] [15:29:35]ProducePacketName [15:29:35]name=ofd_packets/00165335 [15:29:35]OFD Sender: To server: pG, [15:29:35]CommunicateWithHost lk.salyk.kg:30040 [15:29:35]ConnectInit lk.salyk.kg [15:29:35]written 0, free lines is 4095 [15:29:36]Connected sock=10 [15:29: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 37 31 38 0F 01 00 00 61 80 07 01 75 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 38 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 5F 40 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D7 85 02 00 35 04 06 00 16 C0 AE 35 1F 49 3A FB 1A 69 50 F8 B0 D6 [15:29:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 E0 C2 47 00 A6 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D7 85 02 00 F4 03 04 00 E9 E6 94 66 B6 04 01 00 00 9A 19 57 D2 81 88 E4 BA [15:29:36]CommunicateWithHost err = 0 [15:29:36]CheckOFDResponse [15:29:36]1017 (14) - 77093643461234 [15:29:36]1041 (16) - 0000000000874718 [15:29:36]1040 (4) - 165335 [15:29:36]1012 (4) - 15.07.2024 09:07 [15:29:36]1206 (1) - 0 [15:29:36]OFD Sender: Remove packet 165335 [15:29:36]ProducePacketName [15:29:36]name=ofd_packets/00165335 [15:29:36]NVStorageDeleteData [15:29:36]Write to MH i2c: 01 00 00 85 20 A5 [15:29:36]Write i2c OK [15:29:36]MH_I2C_Read... [15:29:36]Read from MH i2c: 01 [15:29:36]MH_I2C_Read... [15:29:36]Read from MH i2c: 01 07 00 [15:29:36]MH_I2C_Read... [15:29:36]Read from MH i2c: 01 07 00 85 20 00 00 00 00 00 F9 0C B1 [15:29:36]RasterBufferAndPrint [15:29:36]line [15:29:36]line [15:29:36]line [15:29:36]line [15:29:36]line [15:29:36]written 0, free lines is 3327 [15:29:36]MH_Cut [15:29:36]Write to MH i2c: D1 01 00 8C 20 01 7E [15:29:36]Write i2c OK [15:29:36]MH_I2C_Read... [15:29:36]Read from MH i2c: D1 [15:29:36]MH_I2C_Read... [15:29:36]Read from MH i2c: D1 01 00 [15:29:36]MH_I2C_Read... [15:29:36]Read from MH i2c: D1 01 00 8C 20 00 7D [15:29:36]Write to MH i2c: 01 00 00 8D 20 AD [15:29:36]Write i2c OK [15:29:36]MH_I2C_Read... [15:29:36]OFD Sender: No OFD packet to send [15:29:37]*** Cut start [15:29:37]*** Partial cut [15:29:37]*** CUTSNS_PIN = 1 [15:29:37]*** CUTSNS_PIN = 0 [15:29:37]*** Brake cut motor [15:29:37]Read from MH i2c: 01 [15:29:37]MH_I2C_Read... [15:29:37]*** Stop cut motor [15:29:37]*** Cut end [15:29:37]Read from MH i2c: 01 07 00 [15:29:37]MH_I2C_Read... [15:29:37]Read from MH i2c: 01 07 00 8D 20 00 00 00 00 00 FF 0F C2 [15:29:37]process_action close_receipt done [15:29:37]requested_data is exist [15:29:37]produce_requested_data [15:29:37]requested_item fm.sn is exist - process it [15:29:37]wFMCommunicate request_size=4 [15:29:37]MH_SAM_APDU [15:29:37]CAPDU: 80 11 00 00 [15:29:37]Write to MH i2c: E2 08 00 8E 20 80 11 00 00 00 00 00 00 28 [15:29:37]Write i2c OK [15:29:37]MH_I2C_Read... [15:29:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:37]Read from MH i2c: E2 [15:29:37]MH_I2C_Read... [15:29:37]Read from MH i2c: E2 17 00 [15:29:37]MH_I2C_Read... [15:29:37]Read from MH i2c: E2 17 00 8E 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7E [15:29:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:29:37]wFMCommunicate OK [15:29:37]requested_item fd.num is exist - process it [15:29:37]SAM_PROTO_GetFieldsCounters [15:29:37]wFMCommunicate request_size=4 [15:29:37]MH_SAM_APDU [15:29:37]CAPDU: 80 13 00 00 [15:29:37]Write to MH i2c: E2 08 00 8F 20 80 13 00 00 00 00 00 00 2B [15:29:37]Write i2c OK [15:29:37]MH_I2C_Read... [15:29:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:29:37]Read from MH i2c: E2 [15:29:37]MH_I2C_Read... [15:29:37]Read from MH i2c: E2 62 00 [15:29:37]MH_I2C_Read... [15:29:37]Read from MH i2c: E2 62 00 8F 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D7 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [15:29:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D7 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:29:37]wFMCommunicate OK [15:29:37]SAM_PROTO_GetFieldsCounters done [15:29:37]requested_item shift.num is exist - process it [15:29:37]requested_item shift.opened is exist - process it [15:29:37]req_shift_opened [15:29:37]FM_GetShiftState [15:29:37]SAM_PROTO_GetShiftState [15:29:37]wFMCommunicate request_size=4 [15:29:37]MH_SAM_APDU [15:29:37]CAPDU: 80 13 01 00 [15:29:37]Write to MH i2c: E2 08 00 90 20 80 13 01 00 00 00 00 00 2D [15:29:37]Write i2c OK [15:29:37]MH_I2C_Read... [15:29:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:29:37]Read from MH i2c: E2 [15:29:37]MH_I2C_Read... [15:29:37]Read from MH i2c: E2 0E 00 [15:29:37]MH_I2C_Read... [15:29:37]Read from MH i2c: E2 0E 00 90 20 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 06 [15:29:37]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [15:29:37]wFMCommunicate OK [15:29:37]SAM_PROTO_GetShiftState done [15:29:37]FM_GetShiftState done [15:29:37]req_shift_opened done [15:29:37]requested_item shift.open_date is exist - process it [15:29:37]req_shift_open_date [15:29:37]req_shift_open_date done [15:29:37]produce_requested_data done [15:29:37]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165335,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [15:29:37]process_action_free close_receipt [15:29:37]json_value_free [15:29:37]json_value_free done [15:29:37]process_json_proto returns [15:29:37]Send response to host [15:29:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165335,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [15:29:37]free response buf [15:29:37]execute_script done [15:29:37]execute_script returns [15:29:37]free content buf [15:29:37]Sock 9.Close socket [15:29:37]Sock 9.Thread stoped [15:29:41]OFD Sender: No OFD packet to send [15:29:46]OFD Sender: No OFD packet to send [15:29:51]OFD Sender: No OFD packet to send [15:29:56]OFD Sender: No OFD packet to send [15:30:01]OFD Sender: No OFD packet to send [15:30:06]OFD Sender: No OFD packet to send [15:30:11]OFD Sender: No OFD packet to send [15:30:16]OFD Sender: No OFD packet to send [15:30:21]OFD Sender: No OFD packet to send [15:30:26]OFD Sender: No OFD packet to send [15:30:31]OFD Sender: No OFD packet to send [15:30:36]OFD Sender: No OFD packet to send [15:30:41]OFD Sender: No OFD packet to send [15:30:46]OFD Sender: No OFD packet to send [15:30:51]OFD Sender: No OFD packet to send [15:30:56]OFD Sender: No OFD packet to send [15:31:01]OFD Sender: No OFD packet to send [15:31:06]OFD Sender: No OFD packet to send [15:31:11]OFD Sender: No OFD packet to send [15:31:16]OFD Sender: No OFD packet to send [15:31:21]OFD Sender: No OFD packet to send [15:31:26]OFD Sender: No OFD packet to send [15:31:31]OFD Sender: No OFD packet to send [15:31:36]OFD Sender: No OFD packet to send [15:31:41]OFD Sender: No OFD packet to send [15:31:46]OFD Sender: No OFD packet to send [15:31:51]OFD Sender: No OFD packet to send [15:31:56]OFD Sender: No OFD packet to send [15:32:01]OFD Sender: No OFD packet to send [15:32:06]OFD Sender: No OFD packet to send [15:32:11]OFD Sender: No OFD packet to send [15:32:16]OFD Sender: No OFD packet to send [15:32:21]OFD Sender: No OFD packet to send [15:32:26]OFD Sender: No OFD packet to send [15:32:31]OFD Sender: No OFD packet to send [15:32:36]OFD Sender: No OFD packet to send [15:32:37]accept exits with 8 [15:32:37]New connection [15:32:37]New thread 3066854756 created [15:32:37]Thread 3066711396 joined [15:32:37]Waiting for new connection... [15:32:37] Sock 8.Parse request [15:32:37]Sock 8.Check first char [15:32:37]Sock 8.First char is OK [15:32:37]request: POST /json_proto HTTP/1.0 [15:32:37]Method: POST [15:32:37]URL: /json_proto [15:32:37]Method is POST - this is cgi request [15:32:37]url: /json_proto [15:32:37]query_string will be loaded in cgi processing [15:32:37]execute_cgi json_proto POST (null) [15:32:37]execute_cgi path=json_proto method=POST [15:32:37]POST find Content-Length [15:32:37]Host: 172.17.56.4:8080 [15:32:37]Content-Length: 682 [15:32:37]Content-Type: application/json [15:32:37] [15:32:37]POST finish read [15:32:37]Found Content-Length = 682 [15:32:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459448", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:32:37]execute_script... [15:32:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459448", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:32:37]POST & json_proto [15:32:37]process_json_proto [15:32:37]json parsed OK: [15:32:37]protocol is kg_v1.0 [15:32:37]action value=close_receipt [15:32:37]process_action close_receipt [15:32:37]cmd_close_receipt [15:32:37]MH_GetDate [15:32:37]Write to MH i2c: F0 00 00 91 20 A0 [15:32:37]Write i2c OK [15:32:37]MH_I2C_Read... [15:32:37]Read from MH i2c: F0 [15:32:37]MH_I2C_Read... [15:32:37]Read from MH i2c: F0 09 00 [15:32:37]MH_I2C_Read... [15:32:37]Read from MH i2c: F0 09 00 91 20 00 17 41 95 66 C9 DC B2 64 B7 [15:32:37]GetLastDocTimeStamp 1721057375 [15:32:37]current date 1721057559 [15:32:37]FM_GetShiftState [15:32:37]SAM_PROTO_GetShiftState [15:32:37]wFMCommunicate request_size=4 [15:32:37]MH_SAM_APDU [15:32:37]CAPDU: 80 13 01 00 [15:32:37]Write to MH i2c: E2 08 00 92 20 80 13 01 00 00 00 00 00 2F [15:32:37]Write i2c OK [15:32:37]MH_I2C_Read... [15:32:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:37]Read from MH i2c: E2 [15:32:37]MH_I2C_Read... [15:32:37]Read from MH i2c: E2 0E 00 [15:32:37]MH_I2C_Read... [15:32:37]Read from MH i2c: E2 0E 00 92 20 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 08 [15:32:37]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [15:32:37]wFMCommunicate OK [15:32:37]SAM_PROTO_GetShiftState done [15:32:37]FM_GetShiftState done [15:32:37]opened in 1721003876 [15:32:37]opened+sec_in_day 1721090276 [15:32:37]quantity*price = 100016 [15:32:37]sum+1 = 100017 [15:32:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 209 15.07.2024 15:32 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165336 ФПД: 247785800134813 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T153239&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165336&fm=247785800134813&tin=02508201610067®Number=0000000000090829&sum=100000 [15:32:38]StoreToDocumentArchive [15:32:38]shift 448 fd 165336 [15:32:38]save to /storage/0448/doc_00165336 [15:32:38]save last doc name /storage/0448/doc_00165336 to /storage/kkm_last_doc_name [15:32:38]save OK [15:32:38]Clear old archive folders... [15:32:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:32:38]tlvbuf is 0185DCD0 [15:32:38]SAM_PROTO_ClearQueue [15:32:38]wFMCommunicate request_size=4 [15:32:38]MH_SAM_APDU [15:32:38]CAPDU: 80 09 00 00 [15:32:38]Write to MH i2c: E2 08 00 9F 20 80 09 00 00 00 00 00 00 31 [15:32:38]Write i2c OK [15:32:38]MH_I2C_Read... [15:32:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:32:38]Read from MH i2c: E2 [15:32:38]MH_I2C_Read... [15:32:38]Read from MH i2c: E2 03 00 [15:32:38]MH_I2C_Read... [15:32:38]Read from MH i2c: E2 03 00 9F 20 00 90 00 33 [15:32:38]RAPDU: 90 00 [15:32:38]wFMCommunicate OK [15:32:38]SAM_PROTO_ClearQueue done [15:32:38]KKMCreateOFDPacket [15:32:38]OFDProtocolAddRootSTLVToBuf [15:32:38]FM_MakeSignedData [15:32:38]FM_MakeSignedData [15:32:38]SAM_PROTO_SignData [15:32:38]wFMCommunicate request_size=4 [15:32:38]MH_SAM_APDU [15:32:38]CAPDU: 80 0D 01 02 [15:32:38]Write to MH i2c: E2 08 00 A0 20 80 0D 01 02 00 00 00 00 39 [15:32:38]Write i2c OK [15:32:38]MH_I2C_Read... [15:32:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:32:38]Read from MH i2c: E2 [15:32:38]MH_I2C_Read... [15:32:38]Read from MH i2c: E2 03 00 [15:32:38]MH_I2C_Read... [15:32:38]Read from MH i2c: E2 03 00 A0 20 00 90 00 34 [15:32:38]RAPDU: 90 00 [15:32:38]wFMCommunicate OK [15:32:38]wFMCommunicate request_size=255 [15:32:38]MH_SAM_APDU [15:32: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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 17 41 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D8 85 02 00 35 04 06 00 E1 [15:32:38]Write to MH i2c: E2 02 01 A1 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 17 41 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D8 85 02 00 35 04 06 00 E1 00 00 79 [15:32:38]Write i2c OK [15:32:38]MH_I2C_Read... [15:32:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:39]Read from MH i2c: E2 [15:32:39]MH_I2C_Read... [15:32:39]Read from MH i2c: E2 03 00 [15:32:39]MH_I2C_Read... [15:32:39]Read from MH i2c: E2 03 00 A1 20 00 90 00 35 [15:32:39]RAPDU: 90 00 [15:32:39]wFMCommunicate OK [15:32:39]wFMCommunicate request_size=10 [15:32:39]MH_SAM_APDU [15:32:39]CAPDU: 80 0D 02 02 05 5C 20 98 F0 9D [15:32:39]Write to MH i2c: E2 0D 00 A2 20 80 0D 02 02 05 00 5C 20 98 F0 9D 00 00 E7 [15:32:39]Write i2c OK [15:32:39]MH_I2C_Read... [15:32:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:39]Read from MH i2c: E2 [15:32:39]MH_I2C_Read... [15:32:39]Read from MH i2c: E2 03 00 [15:32:39]MH_I2C_Read... [15:32:39]Read from MH i2c: E2 03 00 A2 20 00 90 00 36 [15:32:39]RAPDU: 90 00 [15:32:39]wFMCommunicate OK [15:32:39]wFMCommunicate request_size=4 [15:32:39]MH_SAM_APDU [15:32:39]CAPDU: 80 0D 03 02 [15:32:39]Write to MH i2c: E2 08 00 A3 20 80 0D 03 02 00 00 00 00 3E [15:32:39]Write i2c OK [15:32:39]MH_I2C_Read... [15:32:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:32:39]Read from MH i2c: E2 [15:32:39]MH_I2C_Read... [15:32:39]Read from MH i2c: E2 0B 00 [15:32:39]MH_I2C_Read... [15:32:39]Read from MH i2c: E2 0B 00 A3 20 00 2E 80 EA FA 94 E4 E9 23 90 00 55 [15:32:39]RAPDU: 2E 80 EA FA 94 E4 E9 23 90 00 [15:32:39]wFMCommunicate OK [15:32:39]SAM_PROTO_SignData done [15:32:39]FM_MakeSignedData done [15:32:39]CreateOFDProtocolMessage [15:32:39]wFMCommunicate request_size=4 [15:32:39]MH_SAM_APDU [15:32:39]CAPDU: 80 11 00 00 [15:32:39]Write to MH i2c: E2 08 00 A4 20 80 11 00 00 00 00 00 00 3E [15:32:39]Write i2c OK [15:32:39]MH_I2C_Read... [15:32:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:39]Read from MH i2c: E2 [15:32:39]MH_I2C_Read... [15:32:39]Read from MH i2c: E2 17 00 [15:32:39]MH_I2C_Read... [15:32:39]Read from MH i2c: E2 17 00 A4 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 94 [15:32:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:32:39]wFMCommunicate OK [15:32:39]CreateOFDProtocolMessage done [15:32:39]OFDSenderStorePacket 165336 [15:32:39]StoreOFDPacket docnum=165336 [15:32:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 12 9A 07 01 A3 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 17 41 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D8 85 02 00 35 04 06 00 E1 5C 20 98 F0 9D 2E 80 EA FA 94 E4 E9 23 [15:32:39]CheckFolder [15:32:39]dirname=/storage/ofd_packets [15:32:39]CheckFolder done [15:32:39]ProducePacketName [15:32:39]name=ofd_packets/00165336 [15:32:39]NVStorageSaveData ofd_packets/00165336 [15:32:39]File name is /storage/ofd_packets/00165336 [15:32:39]Write 301 bytes [15:32:39]NVStorageSaveData done [15:32:39]OFDSenderStorePacket done [15:32:39]KKMCreateOFDPacket done [15:32:39]NVStorageSaveData kkm_last_timestamp [15:32:39]File name is /storage/kkm_last_timestamp [15:32:39]Write 4 bytes [15:32:39]NVStorageSaveData done [15:32:39]ExternCall_PrintAddStr [15:32:39]wPrintStart [15:32:39]Write to MH i2c: 01 00 00 A5 20 C5 [15:32:39]Write i2c OK [15:32:39]MH_I2C_Read... [15:32:39]Read from MH i2c: 01 [15:32:39]MH_I2C_Read... [15:32:39]Read from MH i2c: 01 07 00 [15:32:39]MH_I2C_Read... [15:32:39]Read from MH i2c: 01 07 00 A5 20 00 00 00 00 00 FF 0F DA [15:32:39]RasterBufferAndPrint [15:32:39]line Счет N : (1)459448 [15:32:39]line ИНН: 02508201610067 [15:32:39]line Контрольно-Кассовый Чек [15:32:39]line ПРОДАЖА [15:32:39]line ТРК (МРК, ГНК) : 22 [15:32:39]line Товар: 2710124130 [15:32:39]line Аи-92-К-5 [15:32:39]line 15.200 * 65.80 [15:32:39]line = 1000.16 [15:32:39]line НДС 12% НСП 1% [15:32:39]line > о реализуемом товаре [15:32:39]line ОКРУГЛЕНИЕ: -0.16 [15:32:39]line ИТОГО: 1000.00 [15:32:39]line Внесено: 1000.00 [15:32:39]line СДАЧА: 0.00 [15:32:39]line НСП 1% : 8.85 [15:32:39]line НДС 12% : 106.21 [15:32:39]line Наличными: 1000.00 [15:32:39]line Безнал.: 0.00 [15:32:39]line Место: АЗС № 72 "Партнер Нефть" [15:32:39]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:32:39]line СНО: Общий режим [15:32:39]line Чек 209 15.07.2024 15:32 [15:32:39]line Смена: 448 ФФД: 1.0 [15:32:39]line ЗНМ: 0300000160 [15:32:39]line РНМ: 0000000000090829 [15:32:39]line Версия ККМ: 001 [15:32:39]line ФМ: 0000000000874718 [15:32:39]line ФД: 165336 [15:32:39]line ФПД: 247785800134813 [15:32:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T153239&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165336&fm=247785800134813&tin=02508201610067®Number=0000000000090829&sum=100000 [15:32:39]written 0, free lines is 4095 [15:32:39]OFD Sender: Processing packet 165336 [packets to send 106, broken 105] [15:32:39]ProducePacketName [15:32:39]name=ofd_packets/00165336 [15:32:39]OFD Sender: To server: pG, [15:32:39]CommunicateWithHost lk.salyk.kg:30040 [15:32:39]ConnectInit lk.salyk.kg [15:32:39]Connected sock=10 [15:32:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 12 9A 07 01 A3 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 17 41 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D8 85 02 00 35 04 06 00 E1 5C 20 98 F0 9D 2E 80 EA FA 94 E4 E9 23 [15:32:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 C5 7E 47 00 B4 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D8 85 02 00 F4 03 04 00 A1 E7 94 66 B6 04 01 00 00 3E 10 50 1B 76 A9 54 6C [15:32:39]CommunicateWithHost err = 0 [15:32:39]CheckOFDResponse [15:32:39]1017 (14) - 77093643461234 [15:32:39]1041 (16) - 0000000000874718 [15:32:39]1040 (4) - 165336 [15:32:39]1012 (4) - 15.07.2024 09:10 [15:32:39]1206 (1) - 0 [15:32:39]OFD Sender: Remove packet 165336 [15:32:39]ProducePacketName [15:32:39]name=ofd_packets/00165336 [15:32:39]NVStorageDeleteData [15:32:39]Write to MH i2c: 01 00 00 CF 20 EF [15:32:39]Write i2c OK [15:32:39]MH_I2C_Read... [15:32:39]Read from MH i2c: 01 [15:32:39]MH_I2C_Read... [15:32:39]Read from MH i2c: 01 07 00 [15:32:39]MH_I2C_Read... [15:32:39]Read from MH i2c: 01 07 00 CF 20 00 00 00 00 00 FF 0C 01 [15:32:39]RasterBufferAndPrint [15:32:39]line [15:32:39]line [15:32:39]line [15:32:39]line [15:32:39]line [15:32:39]written 0, free lines is 3336 [15:32:39]MH_Cut [15:32:39]Write to MH i2c: D1 01 00 D6 20 01 C8 [15:32:39]Write i2c OK [15:32:39]MH_I2C_Read... [15:32:39]Read from MH i2c: D1 [15:32:39]MH_I2C_Read... [15:32:39]Read from MH i2c: D1 01 00 [15:32:39]MH_I2C_Read... [15:32:39]Read from MH i2c: D1 01 00 D6 20 00 C7 [15:32:39]Write to MH i2c: 01 00 00 D7 20 F7 [15:32:39]Write i2c OK [15:32:39]MH_I2C_Read... [15:32:40]OFD Sender: No OFD packet to send [15:32:40]*** Cut start [15:32:40]*** Partial cut [15:32:40]*** CUTSNS_PIN = 1 [15:32:40]*** CUTSNS_PIN = 0 [15:32:40]*** Brake cut motor [15:32:41]Read from MH i2c: 01 [15:32:41]MH_I2C_Read... [15:32:41]*** Stop cut motor [15:32:41]*** Cut end [15:32:41]Read from MH i2c: 01 07 00 [15:32:41]MH_I2C_Read... [15:32:41]Read from MH i2c: 01 07 00 D7 20 00 00 00 00 00 FF 0F 0C [15:32:41]process_action close_receipt done [15:32:41]requested_data is exist [15:32:41]produce_requested_data [15:32:41]requested_item fm.sn is exist - process it [15:32:41]wFMCommunicate request_size=4 [15:32:41]MH_SAM_APDU [15:32:41]CAPDU: 80 11 00 00 [15:32:41]Write to MH i2c: E2 08 00 D8 20 80 11 00 00 00 00 00 00 72 [15:32:41]Write i2c OK [15:32:41]MH_I2C_Read... [15:32:41]Read from MH i2c: E2 [15:32:41]MH_I2C_Read... [15:32:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:41]Read from MH i2c: E2 17 00 [15:32:41]MH_I2C_Read... [15:32:41]Read from MH i2c: E2 17 00 D8 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C8 [15:32:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:32:41]wFMCommunicate OK [15:32:41]requested_item fd.num is exist - process it [15:32:41]SAM_PROTO_GetFieldsCounters [15:32:41]wFMCommunicate request_size=4 [15:32:41]MH_SAM_APDU [15:32:41]CAPDU: 80 13 00 00 [15:32:41]Write to MH i2c: E2 08 00 D9 20 80 13 00 00 00 00 00 00 75 [15:32:41]Write i2c OK [15:32:41]MH_I2C_Read... [15:32:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:32:41]Read from MH i2c: E2 [15:32:41]MH_I2C_Read... [15:32:41]Read from MH i2c: E2 62 00 [15:32:41]MH_I2C_Read... [15:32:41]Read from MH i2c: E2 62 00 D9 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D8 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [15:32: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D8 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:32:41]wFMCommunicate OK [15:32:41]SAM_PROTO_GetFieldsCounters done [15:32:41]requested_item shift.num is exist - process it [15:32:41]requested_item shift.opened is exist - process it [15:32:41]req_shift_opened [15:32:41]FM_GetShiftState [15:32:41]SAM_PROTO_GetShiftState [15:32:41]wFMCommunicate request_size=4 [15:32:41]MH_SAM_APDU [15:32:41]CAPDU: 80 13 01 00 [15:32:41]Write to MH i2c: E2 08 00 DA 20 80 13 01 00 00 00 00 00 77 [15:32:41]Write i2c OK [15:32:41]MH_I2C_Read... [15:32:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:41]Read from MH i2c: E2 [15:32:41]MH_I2C_Read... [15:32:41]Read from MH i2c: E2 0E 00 [15:32:41]MH_I2C_Read... [15:32:41]Read from MH i2c: E2 0E 00 DA 20 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 50 [15:32:41]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [15:32:41]wFMCommunicate OK [15:32:41]SAM_PROTO_GetShiftState done [15:32:41]FM_GetShiftState done [15:32:41]req_shift_opened done [15:32:41]requested_item shift.open_date is exist - process it [15:32:41]req_shift_open_date [15:32:41]req_shift_open_date done [15:32:41]produce_requested_data done [15:32:41]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165336,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [15:32:41]process_action_free close_receipt [15:32:41]json_value_free [15:32:41]json_value_free done [15:32:41]process_json_proto returns [15:32:41]Send response to host [15:32:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165336,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [15:32:41]free response buf [15:32:41]execute_script done [15:32:41]execute_script returns [15:32:41]free content buf [15:32:41]Sock 8.Close socket [15:32:41]Sock 8.Thread stoped [15:32:45]OFD Sender: No OFD packet to send [15:32:50]OFD Sender: No OFD packet to send [15:32:55]OFD Sender: No OFD packet to send [15:33:00]OFD Sender: No OFD packet to send [15:33:05]OFD Sender: No OFD packet to send [15:33:10]OFD Sender: No OFD packet to send [15:33:15]OFD Sender: No OFD packet to send [15:33:20]OFD Sender: No OFD packet to send [15:33:25]OFD Sender: No OFD packet to send [15:33:30]OFD Sender: No OFD packet to send [15:33:35]OFD Sender: No OFD packet to send [15:33:40]OFD Sender: No OFD packet to send [15:33:45]OFD Sender: No OFD packet to send [15:33:50]OFD Sender: No OFD packet to send [15:33:55]OFD Sender: No OFD packet to send [15:34:00]OFD Sender: No OFD packet to send [15:34:05]OFD Sender: No OFD packet to send [15:34:10]OFD Sender: No OFD packet to send [15:34:15]OFD Sender: No OFD packet to send [15:34:20]OFD Sender: No OFD packet to send [15:34:25]OFD Sender: No OFD packet to send [15:34:30]OFD Sender: No OFD packet to send [15:34:35]OFD Sender: No OFD packet to send [15:34:40]OFD Sender: No OFD packet to send [15:34:45]OFD Sender: No OFD packet to send [15:34:50]OFD Sender: No OFD packet to send [15:34:55]OFD Sender: No OFD packet to send [15:35:00]OFD Sender: No OFD packet to send [15:35:05]OFD Sender: No OFD packet to send [15:35:06]accept exits with 9 [15:35:06]New connection [15:35:06]New thread 3066711396 created [15:35:06]Thread 3066854756 joined [15:35:06]Waiting for new connection... [15:35:06] Sock 9.Parse request [15:35:06]Sock 9.Check first char [15:35:06]Sock 9.First char is OK [15:35:06]request: POST /json_proto HTTP/1.0 [15:35:06]Method: POST [15:35:06]URL: /json_proto [15:35:06]Method is POST - this is cgi request [15:35:06]url: /json_proto [15:35:06]query_string will be loaded in cgi processing [15:35:06]execute_cgi json_proto POST (null) [15:35:06]execute_cgi path=json_proto method=POST [15:35:06]POST find Content-Length [15:35:06]Host: 172.17.56.4:8080 [15:35:06]Content-Length: 677 [15:35:06]Content-Type: application/json [15:35:06] [15:35:06]POST finish read [15:35:06]Found Content-Length = 677 [15:35:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459449", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:35:06]execute_script... [15:35:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459449", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:35:06]POST & json_proto [15:35:06]process_json_proto [15:35:06]json parsed OK: [15:35:06]protocol is kg_v1.0 [15:35:06]action value=close_receipt [15:35:06]process_action close_receipt [15:35:06]cmd_close_receipt [15:35:06]MH_GetDate [15:35:06]Write to MH i2c: F0 00 00 DB 20 EA [15:35:06]Write i2c OK [15:35:06]MH_I2C_Read... [15:35:06]Read from MH i2c: F0 [15:35:06]MH_I2C_Read... [15:35:06]Read from MH i2c: F0 09 00 [15:35:06]MH_I2C_Read... [15:35:06]Read from MH i2c: F0 09 00 DB 20 00 AC 41 95 66 C9 DC B2 64 96 [15:35:06]GetLastDocTimeStamp 1721057559 [15:35:06]current date 1721057708 [15:35:06]FM_GetShiftState [15:35:06]SAM_PROTO_GetShiftState [15:35:06]wFMCommunicate request_size=4 [15:35:06]MH_SAM_APDU [15:35:06]CAPDU: 80 13 01 00 [15:35:06]Write to MH i2c: E2 08 00 DC 20 80 13 01 00 00 00 00 00 79 [15:35:06]Write i2c OK [15:35:06]MH_I2C_Read... [15:35:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:06]Read from MH i2c: E2 [15:35:06]MH_I2C_Read... [15:35:06]Read from MH i2c: E2 0E 00 [15:35:06]MH_I2C_Read... [15:35:07]Read from MH i2c: E2 0E 00 DC 20 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 52 [15:35:07]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [15:35:07]wFMCommunicate OK [15:35:07]SAM_PROTO_GetShiftState done [15:35:07]FM_GetShiftState done [15:35:07]opened in 1721003876 [15:35:07]opened+sec_in_day 1721090276 [15:35:07]quantity*price = 50008 [15:35:07]sum+1 = 50009 [15:35:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 210 15.07.2024 15:35 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165337 ФПД: 148467015637939 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T153508&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165337&fm=148467015637939&tin=02508201610067®Number=0000000000090829&sum=50000 [15:35:08]StoreToDocumentArchive [15:35:08]shift 448 fd 165337 [15:35:08]save to /storage/0448/doc_00165337 [15:35:08]save last doc name /storage/0448/doc_00165337 to /storage/kkm_last_doc_name [15:35:08]save OK [15:35:08]Clear old archive folders... [15:35:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:35:08]tlvbuf is 018110E0 [15:35:08]SAM_PROTO_ClearQueue [15:35:08]wFMCommunicate request_size=4 [15:35:08]MH_SAM_APDU [15:35:08]CAPDU: 80 09 00 00 [15:35:08]Write to MH i2c: E2 08 00 E9 20 80 09 00 00 00 00 00 00 7B [15:35:08]Write i2c OK [15:35:08]MH_I2C_Read... [15:35:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:35:08]Read from MH i2c: E2 [15:35:08]MH_I2C_Read... [15:35:08]Read from MH i2c: E2 03 00 [15:35:08]MH_I2C_Read... [15:35:08]Read from MH i2c: E2 03 00 E9 20 00 90 00 7D [15:35:08]RAPDU: 90 00 [15:35:08]wFMCommunicate OK [15:35:08]SAM_PROTO_ClearQueue done [15:35:08]KKMCreateOFDPacket [15:35:08]OFDProtocolAddRootSTLVToBuf [15:35:08]FM_MakeSignedData [15:35:08]FM_MakeSignedData [15:35:08]SAM_PROTO_SignData [15:35:08]wFMCommunicate request_size=4 [15:35:08]MH_SAM_APDU [15:35:08]CAPDU: 80 0D 01 02 [15:35:08]Write to MH i2c: E2 08 00 EA 20 80 0D 01 02 00 00 00 00 83 [15:35:08]Write i2c OK [15:35:08]MH_I2C_Read... [15:35:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:35:08]Read from MH i2c: E2 [15:35:08]MH_I2C_Read... [15:35:08]Read from MH i2c: E2 03 00 [15:35:08]MH_I2C_Read... [15:35:08]Read from MH i2c: E2 03 00 EA 20 00 90 00 7E [15:35:08]RAPDU: 90 00 [15:35:08]wFMCommunicate OK [15:35:08]wFMCommunicate request_size=255 [15:35:08]MH_SAM_APDU [15:35:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 AC 41 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D9 85 02 00 35 04 06 00 87 [15:35:08]Write to MH i2c: E2 02 01 EB 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 AC 41 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D9 85 02 00 35 04 06 00 87 00 00 5E [15:35:08]Write i2c OK [15:35:08]MH_I2C_Read... [15:35:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:08]Read from MH i2c: E2 [15:35:08]MH_I2C_Read... [15:35:08]Read from MH i2c: E2 03 00 [15:35:08]MH_I2C_Read... [15:35:08]Read from MH i2c: E2 03 00 EB 20 00 90 00 7F [15:35:08]RAPDU: 90 00 [15:35:08]wFMCommunicate OK [15:35:08]wFMCommunicate request_size=10 [15:35:08]MH_SAM_APDU [15:35:08]CAPDU: 80 0D 02 02 05 07 AB BA 5B B3 [15:35:08]Write to MH i2c: E2 0D 00 EC 20 80 0D 02 02 05 00 07 AB BA 5B B3 00 00 0A [15:35:08]Write i2c OK [15:35:08]MH_I2C_Read... [15:35:08]Read from MH i2c: E2 [15:35:08]MH_I2C_Read... [15:35:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:08]Read from MH i2c: E2 03 00 [15:35:08]MH_I2C_Read... [15:35:08]Read from MH i2c: E2 03 00 EC 20 00 90 00 80 [15:35:08]RAPDU: 90 00 [15:35:08]wFMCommunicate OK [15:35:08]wFMCommunicate request_size=4 [15:35:08]MH_SAM_APDU [15:35:08]CAPDU: 80 0D 03 02 [15:35:08]Write to MH i2c: E2 08 00 ED 20 80 0D 03 02 00 00 00 00 88 [15:35:08]Write i2c OK [15:35:08]MH_I2C_Read... [15:35:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:35:08]Read from MH i2c: E2 [15:35:08]MH_I2C_Read... [15:35:08]Read from MH i2c: E2 0B 00 [15:35:08]MH_I2C_Read... [15:35:08]Read from MH i2c: E2 0B 00 ED 20 00 D1 2F FB AF 78 CC 15 36 90 00 C2 [15:35:08]RAPDU: D1 2F FB AF 78 CC 15 36 90 00 [15:35:08]wFMCommunicate OK [15:35:08]SAM_PROTO_SignData done [15:35:08]FM_MakeSignedData done [15:35:08]CreateOFDProtocolMessage [15:35:08]wFMCommunicate request_size=4 [15:35:08]MH_SAM_APDU [15:35:08]CAPDU: 80 11 00 00 [15:35:08]Write to MH i2c: E2 08 00 EE 20 80 11 00 00 00 00 00 00 88 [15:35:08]Write i2c OK [15:35:08]MH_I2C_Read... [15:35:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:08]Read from MH i2c: E2 [15:35:08]MH_I2C_Read... [15:35:08]Read from MH i2c: E2 17 00 [15:35:08]MH_I2C_Read... [15:35:08]Read from MH i2c: E2 17 00 EE 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DE [15:35:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:35:08]wFMCommunicate OK [15:35:08]CreateOFDProtocolMessage done [15:35:08]OFDSenderStorePacket 165337 [15:35:08]StoreOFDPacket docnum=165337 [15:35:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 BB F6 07 01 B9 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 AC 41 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D9 85 02 00 35 04 06 00 87 07 AB BA 5B B3 D1 2F FB AF 78 CC 15 36 [15:35:08]CheckFolder [15:35:08]dirname=/storage/ofd_packets [15:35:08]CheckFolder done [15:35:08]ProducePacketName [15:35:08]name=ofd_packets/00165337 [15:35:08]NVStorageSaveData ofd_packets/00165337 [15:35:08]File name is /storage/ofd_packets/00165337 [15:35:08]Write 301 bytes [15:35:08]NVStorageSaveData done [15:35:08]OFDSenderStorePacket done [15:35:08]KKMCreateOFDPacket done [15:35:08]NVStorageSaveData kkm_last_timestamp [15:35:08]File name is /storage/kkm_last_timestamp [15:35:08]Write 4 bytes [15:35:08]NVStorageSaveData done [15:35:08]ExternCall_PrintAddStr [15:35:08]wPrintStart [15:35:08]Write to MH i2c: 01 00 00 EF 20 0F [15:35:08]Write i2c OK [15:35:08]MH_I2C_Read... [15:35:08]Read from MH i2c: 01 [15:35:08]MH_I2C_Read... [15:35:08]Read from MH i2c: 01 07 00 [15:35:08]MH_I2C_Read... [15:35:08]Read from MH i2c: 01 07 00 EF 20 00 00 00 00 00 FF 0F 24 [15:35:08]RasterBufferAndPrint [15:35:08]line Счет N : (1)459449 [15:35:08]line ИНН: 02508201610067 [15:35:08]line Контрольно-Кассовый Чек [15:35:08]line ПРОДАЖА [15:35:08]line ТРК (МРК, ГНК) : 12 [15:35:08]line Товар: 2710124130 [15:35:08]line Аи-92-К-5 [15:35:08]line 7.600 * 65.80 [15:35:08]line = 500.08 [15:35:08]line НДС 12% НСП 1% [15:35:08]line > о реализуемом товаре [15:35:08]line ОКРУГЛЕНИЕ: -0.08 [15:35:08]line ИТОГО: 500.00 [15:35:08]line Внесено: 500.00 [15:35:08]line СДАЧА: 0.00 [15:35:08]line НСП 1% : 4.42 [15:35:08]line НДС 12% : 53.11 [15:35:08]line Наличными: 500.00 [15:35:08]line Безнал.: 0.00 [15:35:08]line Место: АЗС № 72 "Партнер Нефть" [15:35:08]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:35:08]line СНО: Общий режим [15:35:08]line Чек 210 15.07.2024 15:35 [15:35:08]line Смена: 448 ФФД: 1.0 [15:35:08]line ЗНМ: 0300000160 [15:35:08]line РНМ: 0000000000090829 [15:35:08]line Версия ККМ: 001 [15:35:08]line ФМ: 0000000000874718 [15:35:08]line ФД: 165337 [15:35:08]line ФПД: 148467015637939 [15:35:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T153508&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165337&fm=148467015637939&tin=02508201610067®Number=0000000000090829&sum=50000 [15:35:08]OFD Sender: Processing packet 165337 [packets to send 106, broken 105] [15:35:08]ProducePacketName [15:35:08]name=ofd_packets/00165337 [15:35:08]OFD Sender: To server: pG, [15:35:08]CommunicateWithHost lk.salyk.kg:30040 [15:35:08]ConnectInit lk.salyk.kg [15:35:08]written 0, free lines is 4095 [15:35:09]Connected sock=10 [15:35: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 37 31 38 0F 01 00 00 BB F6 07 01 B9 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 AC 41 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D9 85 02 00 35 04 06 00 87 07 AB BA 5B B3 D1 2F FB AF 78 CC 15 36 [15:35:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 D3 80 47 00 6B 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 D9 85 02 00 F4 03 04 00 36 E8 94 66 B6 04 01 00 00 50 B2 71 1B D2 B1 A4 36 [15:35:09]CommunicateWithHost err = 0 [15:35:09]CheckOFDResponse [15:35:09]1017 (14) - 77093643461234 [15:35:09]1041 (16) - 0000000000874718 [15:35:09]1040 (4) - 165337 [15:35:09]1012 (4) - 15.07.2024 09:13 [15:35:09]1206 (1) - 0 [15:35:09]OFD Sender: Remove packet 165337 [15:35:09]ProducePacketName [15:35:09]name=ofd_packets/00165337 [15:35:09]NVStorageDeleteData [15:35:09]Write to MH i2c: 01 00 00 19 21 3A [15:35:09]Write i2c OK [15:35:09]MH_I2C_Read... [15:35:09]Read from MH i2c: 01 [15:35:09]MH_I2C_Read... [15:35:09]Read from MH i2c: 01 07 00 [15:35:09]MH_I2C_Read... [15:35:09]Read from MH i2c: 01 07 00 19 21 00 00 00 00 00 F6 0C 43 [15:35:09]RasterBufferAndPrint [15:35:09]line [15:35:09]line [15:35:09]line [15:35:09]line [15:35:09]line [15:35:09]written 0, free lines is 3324 [15:35:09]MH_Cut [15:35:09]Write to MH i2c: D1 01 00 20 21 01 13 [15:35:09]Write i2c OK [15:35:09]MH_I2C_Read... [15:35:09]Read from MH i2c: D1 [15:35:09]MH_I2C_Read... [15:35:09]Read from MH i2c: D1 01 00 [15:35:09]MH_I2C_Read... [15:35:09]Read from MH i2c: D1 01 00 20 21 00 12 [15:35:09]Write to MH i2c: 01 00 00 21 21 42 [15:35:09]Write i2c OK [15:35:09]MH_I2C_Read... [15:35:09]OFD Sender: No OFD packet to send [15:35:10]*** Cut start [15:35:10]*** Partial cut [15:35:10]*** CUTSNS_PIN = 1 [15:35:10]*** CUTSNS_PIN = 0 [15:35:10]*** Brake cut motor [15:35:10]Read from MH i2c: 01 [15:35:10]MH_I2C_Read... [15:35:10]*** Stop cut motor [15:35:10]*** Cut end [15:35:10]Read from MH i2c: 01 07 00 [15:35:10]MH_I2C_Read... [15:35:10]Read from MH i2c: 01 07 00 21 21 00 00 00 00 00 FF 0F 57 [15:35:10]process_action close_receipt done [15:35:10]requested_data is exist [15:35:10]produce_requested_data [15:35:10]requested_item fm.sn is exist - process it [15:35:10]wFMCommunicate request_size=4 [15:35:10]MH_SAM_APDU [15:35:10]CAPDU: 80 11 00 00 [15:35:10]Write to MH i2c: E2 08 00 22 21 80 11 00 00 00 00 00 00 BD [15:35:10]Write i2c OK [15:35:10]MH_I2C_Read... [15:35:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:10]Read from MH i2c: E2 [15:35:10]MH_I2C_Read... [15:35:10]Read from MH i2c: E2 17 00 [15:35:10]MH_I2C_Read... [15:35:10]Read from MH i2c: E2 17 00 22 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 13 [15:35:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:35:10]wFMCommunicate OK [15:35:10]requested_item fd.num is exist - process it [15:35:10]SAM_PROTO_GetFieldsCounters [15:35:10]wFMCommunicate request_size=4 [15:35:10]MH_SAM_APDU [15:35:10]CAPDU: 80 13 00 00 [15:35:10]Write to MH i2c: E2 08 00 23 21 80 13 00 00 00 00 00 00 C0 [15:35:10]Write i2c OK [15:35:10]MH_I2C_Read... [15:35:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:35:10]Read from MH i2c: E2 [15:35:10]MH_I2C_Read... [15:35:10]Read from MH i2c: E2 62 00 [15:35:10]MH_I2C_Read... [15:35:10]Read from MH i2c: E2 62 00 23 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D9 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [15:35: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 D9 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:35:10]wFMCommunicate OK [15:35:10]SAM_PROTO_GetFieldsCounters done [15:35:10]requested_item shift.num is exist - process it [15:35:10]requested_item shift.opened is exist - process it [15:35:10]req_shift_opened [15:35:10]FM_GetShiftState [15:35:10]SAM_PROTO_GetShiftState [15:35:10]wFMCommunicate request_size=4 [15:35:10]MH_SAM_APDU [15:35:10]CAPDU: 80 13 01 00 [15:35:10]Write to MH i2c: E2 08 00 24 21 80 13 01 00 00 00 00 00 C2 [15:35:10]Write i2c OK [15:35:10]MH_I2C_Read... [15:35:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:10]Read from MH i2c: E2 [15:35:10]MH_I2C_Read... [15:35:10]Read from MH i2c: E2 0E 00 [15:35:10]MH_I2C_Read... [15:35:10]Read from MH i2c: E2 0E 00 24 21 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 9B [15:35:10]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [15:35:10]wFMCommunicate OK [15:35:10]SAM_PROTO_GetShiftState done [15:35:10]FM_GetShiftState done [15:35:10]req_shift_opened done [15:35:10]requested_item shift.open_date is exist - process it [15:35:10]req_shift_open_date [15:35:10]req_shift_open_date done [15:35:10]produce_requested_data done [15:35:10]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165337,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [15:35:10]process_action_free close_receipt [15:35:10]json_value_free [15:35:10]json_value_free done [15:35:10]process_json_proto returns [15:35:10]Send response to host [15:35:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165337,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [15:35:10]free response buf [15:35:10]execute_script done [15:35:10]execute_script returns [15:35:10]free content buf [15:35:10]Sock 9.Close socket [15:35:10]Sock 9.Thread stoped [15:35:14]OFD Sender: No OFD packet to send [15:35:19]OFD Sender: No OFD packet to send [15:35:24]OFD Sender: No OFD packet to send [15:35:29]OFD Sender: No OFD packet to send [15:35:34]OFD Sender: No OFD packet to send [15:35:39]OFD Sender: No OFD packet to send [15:35:44]OFD Sender: No OFD packet to send [15:35:49]OFD Sender: No OFD packet to send [15:35:54]OFD Sender: No OFD packet to send [15:35:59]OFD Sender: No OFD packet to send [15:36:04]OFD Sender: No OFD packet to send [15:36:09]OFD Sender: No OFD packet to send [15:36:14]accept exits with 8 [15:36:14]New connection [15:36:14]New thread 3066854756 created [15:36:14]Thread 3066711396 joined [15:36:14]Waiting for new connection... [15:36:14] Sock 8.Parse request [15:36:14]Sock 8.Check first char [15:36:14]Sock 8.First char is OK [15:36:14]request: POST /json_proto HTTP/1.0 [15:36:14]Method: POST [15:36:14]URL: /json_proto [15:36:14]Method is POST - this is cgi request [15:36:14]url: /json_proto [15:36:14]query_string will be loaded in cgi processing [15:36:14]execute_cgi json_proto POST (null) [15:36:14]execute_cgi path=json_proto method=POST [15:36:14]POST find Content-Length [15:36:14]Host: 172.17.56.4:8080 [15:36:14]Content-Length: 679 [15:36:14]Content-Type: application/json [15:36:14] [15:36:14]POST finish read [15:36:14]Found Content-Length = 679 [15:36:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459450", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 15.000, "sum" : 1078.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1078.00, "total" : 1078.00, "payments": [ { "type": 0, "sum" : 1078.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:14]execute_script... [15:36: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)459450", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 15.000, "sum" : 1078.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1078.00, "total" : 1078.00, "payments": [ { "type": 0, "sum" : 1078.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:14]POST & json_proto [15:36:14]process_json_proto [15:36:14]json parsed OK: [15:36:14]protocol is kg_v1.0 [15:36:14]action value=close_receipt [15:36:14]process_action close_receipt [15:36:14]cmd_close_receipt [15:36:14]MH_GetDate [15:36:14]Write to MH i2c: F0 00 00 25 21 35 [15:36:14]Write i2c OK [15:36:14]MH_I2C_Read... [15:36:14]Read from MH i2c: F0 [15:36:14]MH_I2C_Read... [15:36:14]Read from MH i2c: F0 09 00 [15:36:14]MH_I2C_Read... [15:36:14]Read from MH i2c: F0 09 00 25 21 00 EF 41 95 66 C9 DC B2 64 24 [15:36:14]GetLastDocTimeStamp 1721057708 [15:36:14]current date 1721057775 [15:36:14]FM_GetShiftState [15:36:14]SAM_PROTO_GetShiftState [15:36:14]wFMCommunicate request_size=4 [15:36:14]MH_SAM_APDU [15:36:14]CAPDU: 80 13 01 00 [15:36:14]Write to MH i2c: E2 08 00 26 21 80 13 01 00 00 00 00 00 C4 [15:36:14]Write i2c OK [15:36:14]MH_I2C_Read... [15:36:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:14]Read from MH i2c: E2 [15:36:14]MH_I2C_Read... [15:36:14]Read from MH i2c: E2 0E 00 [15:36:14]MH_I2C_Read... [15:36:14]Read from MH i2c: E2 0E 00 26 21 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 9D [15:36:14]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [15:36:14]wFMCommunicate OK [15:36:14]SAM_PROTO_GetShiftState done [15:36:14]FM_GetShiftState done [15:36:14]opened in 1721003876 [15:36:14]opened+sec_in_day 1721090276 [15:36:14]quantity*price = 107850 [15:36:14]sum+1 = 107851 [15:36:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 1078.00 Внесено: 1078.00 СДАЧА: 0.00 НСП 1% : 9.54 НДС 12% : 114.53 Наличными: 1078.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 211 15.07.2024 15:36 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165338 ФПД: 247067716448985 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T153616&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165338&fm=247067716448985&tin=02508201610067®Number=0000000000090829&sum=107800 [15:36:15]StoreToDocumentArchive [15:36:15]shift 448 fd 165338 [15:36:15]save to /storage/0448/doc_00165338 [15:36:15]save last doc name /storage/0448/doc_00165338 to /storage/kkm_last_doc_name [15:36:15]save OK [15:36:15]Clear old archive folders... [15:36:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:36:15]tlvbuf is 0181A270 [15:36:15]SAM_PROTO_ClearQueue [15:36:15]wFMCommunicate request_size=4 [15:36:15]MH_SAM_APDU [15:36:15]CAPDU: 80 09 00 00 [15:36:15]Write to MH i2c: E2 08 00 33 21 80 09 00 00 00 00 00 00 C6 [15:36:15]Write i2c OK [15:36:15]MH_I2C_Read... [15:36:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:36:15]Read from MH i2c: E2 [15:36:15]MH_I2C_Read... [15:36:15]Read from MH i2c: E2 03 00 [15:36:15]MH_I2C_Read... [15:36:15]Read from MH i2c: E2 03 00 33 21 00 90 00 C8 [15:36:15]RAPDU: 90 00 [15:36:15]wFMCommunicate OK [15:36:15]SAM_PROTO_ClearQueue done [15:36:15]KKMCreateOFDPacket [15:36:15]OFDProtocolAddRootSTLVToBuf [15:36:15]FM_MakeSignedData [15:36:15]FM_MakeSignedData [15:36:15]SAM_PROTO_SignData [15:36:15]wFMCommunicate request_size=4 [15:36:15]MH_SAM_APDU [15:36:15]CAPDU: 80 0D 01 02 [15:36:15]Write to MH i2c: E2 08 00 34 21 80 0D 01 02 00 00 00 00 CE [15:36:15]Write i2c OK [15:36:15]MH_I2C_Read... [15:36:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:36:15]Read from MH i2c: E2 [15:36:15]MH_I2C_Read... [15:36:15]Read from MH i2c: E2 03 00 [15:36:15]MH_I2C_Read... [15:36:15]Read from MH i2c: E2 03 00 34 21 00 90 00 C9 [15:36:15]RAPDU: 90 00 [15:36:15]wFMCommunicate OK [15:36:15]wFMCommunicate request_size=255 [15:36:15]MH_SAM_APDU [15:36:15]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 4A A5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 A5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 2C 00 00 00 00 07 04 06 00 18 A5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 F0 41 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DA 85 02 00 35 04 06 00 E0 B4 EF 79 [15:36:15]Write to MH i2c: E2 02 01 35 21 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 4A A5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 A5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 2C 00 00 00 00 07 04 06 00 18 A5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 F0 41 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DA 85 02 00 35 04 06 00 E0 B4 EF 79 00 00 64 [15:36:15]Write i2c OK [15:36:15]MH_I2C_Read... [15:36:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:15]Read from MH i2c: E2 [15:36:15]MH_I2C_Read... [15:36:15]Read from MH i2c: E2 03 00 [15:36:15]MH_I2C_Read... [15:36:15]Read from MH i2c: E2 03 00 35 21 00 90 00 CA [15:36:15]RAPDU: 90 00 [15:36:15]wFMCommunicate OK [15:36:15]wFMCommunicate request_size=7 [15:36:15]MH_SAM_APDU [15:36:15]CAPDU: 80 0D 02 02 02 72 D9 [15:36:15]Write to MH i2c: E2 0A 00 36 21 80 0D 02 02 02 00 72 D9 00 00 20 [15:36:15]Write i2c OK [15:36:15]MH_I2C_Read... [15:36:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:15]Read from MH i2c: E2 [15:36:15]MH_I2C_Read... [15:36:15]Read from MH i2c: E2 03 00 [15:36:15]MH_I2C_Read... [15:36:15]Read from MH i2c: E2 03 00 36 21 00 90 00 CB [15:36:15]RAPDU: 90 00 [15:36:15]wFMCommunicate OK [15:36:15]wFMCommunicate request_size=4 [15:36:15]MH_SAM_APDU [15:36:15]CAPDU: 80 0D 03 02 [15:36:15]Write to MH i2c: E2 08 00 37 21 80 0D 03 02 00 00 00 00 D3 [15:36:15]Write i2c OK [15:36:15]MH_I2C_Read... [15:36:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:36:15]Read from MH i2c: E2 [15:36:15]MH_I2C_Read... [15:36:15]Read from MH i2c: E2 0B 00 [15:36:15]MH_I2C_Read... [15:36:15]Read from MH i2c: E2 0B 00 37 21 00 65 0C CC CC 98 CB 6F FA 90 00 A9 [15:36:15]RAPDU: 65 0C CC CC 98 CB 6F FA 90 00 [15:36:15]wFMCommunicate OK [15:36:15]SAM_PROTO_SignData done [15:36:15]FM_MakeSignedData done [15:36:15]CreateOFDProtocolMessage [15:36:15]wFMCommunicate request_size=4 [15:36:15]MH_SAM_APDU [15:36:15]CAPDU: 80 11 00 00 [15:36:15]Write to MH i2c: E2 08 00 38 21 80 11 00 00 00 00 00 00 D3 [15:36:15]Write i2c OK [15:36:15]MH_I2C_Read... [15:36:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:16]Read from MH i2c: E2 [15:36:16]MH_I2C_Read... [15:36:16]Read from MH i2c: E2 17 00 [15:36:16]MH_I2C_Read... [15:36:16]Read from MH i2c: E2 17 00 38 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 29 [15:36:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:36:16]wFMCommunicate OK [15:36:16]CreateOFDProtocolMessage done [15:36:16]OFDSenderStorePacket 165338 [15:36:16]StoreOFDPacket docnum=165338 [15:36:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 4F 68 04 01 29 A2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 4A A5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 A5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 2C 00 00 00 00 07 04 06 00 18 A5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 F0 41 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DA 85 02 00 35 04 06 00 E0 B4 EF 79 72 D9 65 0C CC CC 98 CB 6F FA [15:36:16]CheckFolder [15:36:16]dirname=/storage/ofd_packets [15:36:16]CheckFolder done [15:36:16]ProducePacketName [15:36:16]name=ofd_packets/00165338 [15:36:16]NVStorageSaveData ofd_packets/00165338 [15:36:16]File name is /storage/ofd_packets/00165338 [15:36:16]Write 298 bytes [15:36:16]NVStorageSaveData done [15:36:16]OFDSenderStorePacket done [15:36:16]KKMCreateOFDPacket done [15:36:16]NVStorageSaveData kkm_last_timestamp [15:36:16]File name is /storage/kkm_last_timestamp [15:36:16]Write 4 bytes [15:36:16]NVStorageSaveData done [15:36:16]ExternCall_PrintAddStr [15:36:16]wPrintStart [15:36:16]Write to MH i2c: 01 00 00 39 21 5A [15:36:16]Write i2c OK [15:36:16]MH_I2C_Read... [15:36:16]Read from MH i2c: 01 [15:36:16]MH_I2C_Read... [15:36:16]Read from MH i2c: 01 07 00 [15:36:16]MH_I2C_Read... [15:36:16]Read from MH i2c: 01 07 00 39 21 00 00 00 00 00 FF 0F 6F [15:36:16]RasterBufferAndPrint [15:36:16]line Счет N : (1)459450 [15:36:16]line ИНН: 02508201610067 [15:36:16]line Контрольно-Кассовый Чек [15:36:16]line ПРОДАЖА [15:36:16]line ТРК (МРК, ГНК) : 21 [15:36:16]line Товар: 2710194210 [15:36:16]line ДТ-К-5 [15:36:16]line 15.000 * 71.90 [15:36:16]line = 1078.50 [15:36:16]line НДС 12% НСП 1% [15:36:16]line > о реализуемом товаре [15:36:16]line ОКРУГЛЕНИЕ: -0.50 [15:36:16]line ИТОГО: 1078.00 [15:36:16]line Внесено: 1078.00 [15:36:16]line СДАЧА: 0.00 [15:36:16]line НСП 1% : 9.54 [15:36:16]line НДС 12% : 114.53 [15:36:16]line Наличными: 1078.00 [15:36:16]line Безнал.: 0.00 [15:36:16]line Место: АЗС № 72 "Партнер Нефть" [15:36:16]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:36:16]line СНО: Общий режим [15:36:16]line Чек 211 15.07.2024 15:36 [15:36:16]line Смена: 448 ФФД: 1.0 [15:36:16]line ЗНМ: 0300000160 [15:36:16]line РНМ: 0000000000090829 [15:36:16]line Версия ККМ: 001 [15:36:16]line ФМ: 0000000000874718 [15:36:16]line ФД: 165338 [15:36:16]line ФПД: 247067716448985 [15:36:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T153616&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165338&fm=247067716448985&tin=02508201610067®Number=0000000000090829&sum=107800 [15:36:16]OFD Sender: Processing packet 165338 [packets to send 106, broken 105] [15:36:16]ProducePacketName [15:36:16]name=ofd_packets/00165338 [15:36:16]OFD Sender: To server: pG, [15:36:16]CommunicateWithHost lk.salyk.kg:30040 [15:36:16]ConnectInit lk.salyk.kg [15:36:16]written 0, free lines is 4095 [15:36:16]Connected sock=10 [15:36: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 37 31 38 0C 01 00 00 4F 68 04 01 29 A2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 4A A5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 A5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 2C 00 00 00 00 07 04 06 00 18 A5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 F0 41 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DA 85 02 00 35 04 06 00 E0 B4 EF 79 72 D9 65 0C CC CC 98 CB 6F FA [15:36:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 66 8D 47 00 9B D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DA 85 02 00 F4 03 04 00 79 E8 94 66 B6 04 01 00 00 30 96 76 5D 2F 45 2D B5 [15:36:16]CommunicateWithHost err = 0 [15:36:16]CheckOFDResponse [15:36:16]1017 (14) - 77093643461234 [15:36:16]1041 (16) - 0000000000874718 [15:36:16]1040 (4) - 165338 [15:36:16]1012 (4) - 15.07.2024 09:14 [15:36:16]1206 (1) - 0 [15:36:16]OFD Sender: Remove packet 165338 [15:36:16]ProducePacketName [15:36:16]name=ofd_packets/00165338 [15:36:16]NVStorageDeleteData [15:36:16]Write to MH i2c: 01 00 00 63 21 84 [15:36:16]Write i2c OK [15:36:16]MH_I2C_Read... [15:36:16]Read from MH i2c: 01 [15:36:16]MH_I2C_Read... [15:36:16]Read from MH i2c: 01 07 00 [15:36:16]MH_I2C_Read... [15:36:16]Read from MH i2c: 01 07 00 63 21 00 00 00 00 00 F3 0C 8A [15:36:16]RasterBufferAndPrint [15:36:16]line [15:36:16]line [15:36:16]line [15:36:16]line [15:36:16]line [15:36:16]written 0, free lines is 3325 [15:36:16]MH_Cut [15:36:16]Write to MH i2c: D1 01 00 6A 21 01 5D [15:36:16]Write i2c OK [15:36:16]MH_I2C_Read... [15:36:16]Read from MH i2c: D1 [15:36:16]MH_I2C_Read... [15:36:16]Read from MH i2c: D1 01 00 [15:36:16]MH_I2C_Read... [15:36:16]Read from MH i2c: D1 01 00 6A 21 00 5C [15:36:16]Write to MH i2c: 01 00 00 6B 21 8C [15:36:16]Write i2c OK [15:36:16]MH_I2C_Read... [15:36:17]OFD Sender: No OFD packet to send [15:36:17]*** Cut start [15:36:17]*** Partial cut [15:36:17]*** CUTSNS_PIN = 1 [15:36:17]*** CUTSNS_PIN = 0 [15:36:17]*** Brake cut motor [15:36:18]Read from MH i2c: 01 [15:36:18]MH_I2C_Read... [15:36:18]*** Stop cut motor [15:36:18]*** Cut end [15:36:18]Read from MH i2c: 01 07 00 [15:36:18]MH_I2C_Read... [15:36:18]Read from MH i2c: 01 07 00 6B 21 00 00 00 00 00 FF 0F A1 [15:36:18]process_action close_receipt done [15:36:18]requested_data is exist [15:36:18]produce_requested_data [15:36:18]requested_item fm.sn is exist - process it [15:36:18]wFMCommunicate request_size=4 [15:36:18]MH_SAM_APDU [15:36:18]CAPDU: 80 11 00 00 [15:36:18]Write to MH i2c: E2 08 00 6C 21 80 11 00 00 00 00 00 00 07 [15:36:18]Write i2c OK [15:36:18]MH_I2C_Read... [15:36:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:18]Read from MH i2c: E2 [15:36:18]MH_I2C_Read... [15:36:18]Read from MH i2c: E2 17 00 [15:36:18]MH_I2C_Read... [15:36:18]Read from MH i2c: E2 17 00 6C 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5D [15:36:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:36:18]wFMCommunicate OK [15:36:18]requested_item fd.num is exist - process it [15:36:18]SAM_PROTO_GetFieldsCounters [15:36:18]wFMCommunicate request_size=4 [15:36:18]MH_SAM_APDU [15:36:18]CAPDU: 80 13 00 00 [15:36:18]Write to MH i2c: E2 08 00 6D 21 80 13 00 00 00 00 00 00 0A [15:36:18]Write i2c OK [15:36:18]MH_I2C_Read... [15:36:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:36:18]Read from MH i2c: E2 [15:36:18]MH_I2C_Read... [15:36:18]Read from MH i2c: E2 62 00 [15:36:18]MH_I2C_Read... [15:36:18]Read from MH i2c: E2 62 00 6D 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DA 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 CC [15:36: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DA 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:36:18]wFMCommunicate OK [15:36:18]SAM_PROTO_GetFieldsCounters done [15:36:18]requested_item shift.num is exist - process it [15:36:18]requested_item shift.opened is exist - process it [15:36:18]req_shift_opened [15:36:18]FM_GetShiftState [15:36:18]SAM_PROTO_GetShiftState [15:36:18]wFMCommunicate request_size=4 [15:36:18]MH_SAM_APDU [15:36:18]CAPDU: 80 13 01 00 [15:36:18]Write to MH i2c: E2 08 00 6E 21 80 13 01 00 00 00 00 00 0C [15:36:18]Write i2c OK [15:36:18]MH_I2C_Read... [15:36:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:18]Read from MH i2c: E2 [15:36:18]MH_I2C_Read... [15:36:18]Read from MH i2c: E2 0E 00 [15:36:18]MH_I2C_Read... [15:36:18]Read from MH i2c: E2 0E 00 6E 21 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 E5 [15:36:18]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [15:36:18]wFMCommunicate OK [15:36:18]SAM_PROTO_GetShiftState done [15:36:18]FM_GetShiftState done [15:36:18]req_shift_opened done [15:36:18]requested_item shift.open_date is exist - process it [15:36:18]req_shift_open_date [15:36:18]req_shift_open_date done [15:36:18]produce_requested_data done [15:36:18]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165338,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [15:36:18]process_action_free close_receipt [15:36:18]json_value_free [15:36:18]json_value_free done [15:36:18]process_json_proto returns [15:36:18]Send response to host [15:36:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165338,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [15:36:18]free response buf [15:36:18]execute_script done [15:36:18]execute_script returns [15:36:18]free content buf [15:36:18]Sock 8.Close socket [15:36:18]Sock 8.Thread stoped [15:36:22]OFD Sender: No OFD packet to send [15:36:27]OFD Sender: No OFD packet to send [15:36:32]OFD Sender: No OFD packet to send [15:36:37]OFD Sender: No OFD packet to send [15:36:42]OFD Sender: No OFD packet to send [15:36:47]OFD Sender: No OFD packet to send [15:36:52]OFD Sender: No OFD packet to send [15:36:57]OFD Sender: No OFD packet to send [15:37:02]OFD Sender: No OFD packet to send [15:37:07]OFD Sender: No OFD packet to send [15:37:12]OFD Sender: No OFD packet to send [15:37:17]OFD Sender: No OFD packet to send [15:37:22]OFD Sender: No OFD packet to send [15:37:27]OFD Sender: No OFD packet to send [15:37:32]OFD Sender: No OFD packet to send [15:37:37]OFD Sender: No OFD packet to send [15:37:42]OFD Sender: No OFD packet to send [15:37:47]OFD Sender: No OFD packet to send [15:37:52]OFD Sender: No OFD packet to send [15:37:57]OFD Sender: No OFD packet to send [15:38:02]OFD Sender: No OFD packet to send [15:38:07]OFD Sender: No OFD packet to send [15:38:08]accept exits with 9 [15:38:08]New connection [15:38:08]New thread 3066711396 created [15:38:08]Thread 3066854756 joined [15:38:08]Waiting for new connection... [15:38:08] Sock 9.Parse request [15:38:08]Sock 9.Check first char [15:38:08]Sock 9.First char is OK [15:38:08]request: POST /json_proto HTTP/1.0 [15:38:08]Method: POST [15:38:08]URL: /json_proto [15:38:08]Method is POST - this is cgi request [15:38:08]url: /json_proto [15:38:08]query_string will be loaded in cgi processing [15:38:08]execute_cgi json_proto POST (null) [15:38:08]execute_cgi path=json_proto method=POST [15:38:08]POST find Content-Length [15:38:08]Host: 172.17.56.4:8080 [15:38:08]Content-Length: 677 [15:38:08]Content-Type: application/json [15:38:08] [15:38:08]POST finish read [15:38:08]Found Content-Length = 677 [15:38:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459451", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.350, "sum" : 220.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:38:08]execute_script... [15:38: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)459451", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.350, "sum" : 220.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:38:08]POST & json_proto [15:38:08]process_json_proto [15:38:08]json parsed OK: [15:38:08]protocol is kg_v1.0 [15:38:08]action value=close_receipt [15:38:08]process_action close_receipt [15:38:08]cmd_close_receipt [15:38:08]MH_GetDate [15:38:08]Write to MH i2c: F0 00 00 6F 21 7F [15:38:08]Write i2c OK [15:38:08]MH_I2C_Read... [15:38:08]Read from MH i2c: F0 [15:38:08]MH_I2C_Read... [15:38:08]Read from MH i2c: F0 09 00 [15:38:08]MH_I2C_Read... [15:38:08]Read from MH i2c: F0 09 00 6F 21 00 62 42 95 66 C9 DC B2 64 E2 [15:38:08]GetLastDocTimeStamp 1721057776 [15:38:08]current date 1721057890 [15:38:08]FM_GetShiftState [15:38:08]SAM_PROTO_GetShiftState [15:38:08]wFMCommunicate request_size=4 [15:38:08]MH_SAM_APDU [15:38:08]CAPDU: 80 13 01 00 [15:38:08]Write to MH i2c: E2 08 00 70 21 80 13 01 00 00 00 00 00 0E [15:38:08]Write i2c OK [15:38:08]MH_I2C_Read... [15:38:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:08]Read from MH i2c: E2 [15:38:08]MH_I2C_Read... [15:38:08]Read from MH i2c: E2 0E 00 [15:38:08]MH_I2C_Read... [15:38:08]Read from MH i2c: E2 0E 00 70 21 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 E7 [15:38:08]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [15:38:08]wFMCommunicate OK [15:38:08]SAM_PROTO_GetShiftState done [15:38:08]FM_GetShiftState done [15:38:08]opened in 1721003876 [15:38:08]opened+sec_in_day 1721090276 [15:38:08]quantity*price = 22043 [15:38:08]sum+1 = 22044 [15:38:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.41 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 212 15.07.2024 15:38 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165339 ФПД: 19549156334530 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T153810&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165339&fm=19549156334530&tin=02508201610067®Number=0000000000090829&sum=22000 [15:38:09]StoreToDocumentArchive [15:38:09]shift 448 fd 165339 [15:38:09]save to /storage/0448/doc_00165339 [15:38:09]save last doc name /storage/0448/doc_00165339 to /storage/kkm_last_doc_name [15:38:09]save OK [15:38:09]Clear old archive folders... [15:38:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:38:09]tlvbuf is B6E901A0 [15:38:09]SAM_PROTO_ClearQueue [15:38:09]wFMCommunicate request_size=4 [15:38:09]MH_SAM_APDU [15:38:09]CAPDU: 80 09 00 00 [15:38:09]Write to MH i2c: E2 08 00 7D 21 80 09 00 00 00 00 00 00 10 [15:38:09]Write i2c OK [15:38:09]MH_I2C_Read... [15:38:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:38:10]Read from MH i2c: E2 [15:38:10]MH_I2C_Read... [15:38:10]Read from MH i2c: E2 03 00 [15:38:10]MH_I2C_Read... [15:38:10]Read from MH i2c: E2 03 00 7D 21 00 90 00 12 [15:38:10]RAPDU: 90 00 [15:38:10]wFMCommunicate OK [15:38:10]SAM_PROTO_ClearQueue done [15:38:10]KKMCreateOFDPacket [15:38:10]OFDProtocolAddRootSTLVToBuf [15:38:10]FM_MakeSignedData [15:38:10]FM_MakeSignedData [15:38:10]SAM_PROTO_SignData [15:38:10]wFMCommunicate request_size=4 [15:38:10]MH_SAM_APDU [15:38:10]CAPDU: 80 0D 01 02 [15:38:10]Write to MH i2c: E2 08 00 7E 21 80 0D 01 02 00 00 00 00 18 [15:38:10]Write i2c OK [15:38:10]MH_I2C_Read... [15:38:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:38:10]Read from MH i2c: E2 [15:38:10]MH_I2C_Read... [15:38:10]Read from MH i2c: E2 03 00 [15:38:10]MH_I2C_Read... [15:38:10]Read from MH i2c: E2 03 00 7E 21 00 90 00 13 [15:38:10]RAPDU: 90 00 [15:38:10]wFMCommunicate OK [15:38:10]wFMCommunicate request_size=255 [15:38:10]MH_SAM_APDU [15:38: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 16 0D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 1B 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 62 42 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DB 85 02 00 35 04 06 00 11 [15:38:10]Write to MH i2c: E2 02 01 7F 21 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 16 0D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 1B 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 62 42 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DB 85 02 00 35 04 06 00 11 00 00 AB [15:38:10]Write i2c OK [15:38:10]MH_I2C_Read... [15:38:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:38:10]Read from MH i2c: E2 [15:38:10]MH_I2C_Read... [15:38:10]Read from MH i2c: E2 03 00 [15:38:10]MH_I2C_Read... [15:38:10]Read from MH i2c: E2 03 00 7F 21 00 90 00 14 [15:38:10]RAPDU: 90 00 [15:38:10]wFMCommunicate OK [15:38:10]wFMCommunicate request_size=10 [15:38:10]MH_SAM_APDU [15:38:10]CAPDU: 80 0D 02 02 05 C7 A4 84 DB C2 [15:38:10]Write to MH i2c: E2 0D 00 80 21 80 0D 02 02 05 00 C7 A4 84 DB C2 00 00 B1 [15:38:10]Write i2c OK [15:38:10]MH_I2C_Read... [15:38:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:38:10]Read from MH i2c: E2 [15:38:10]MH_I2C_Read... [15:38:10]Read from MH i2c: E2 03 00 [15:38:10]MH_I2C_Read... [15:38:10]Read from MH i2c: E2 03 00 80 21 00 90 00 15 [15:38:10]RAPDU: 90 00 [15:38:10]wFMCommunicate OK [15:38:10]wFMCommunicate request_size=4 [15:38:10]MH_SAM_APDU [15:38:10]CAPDU: 80 0D 03 02 [15:38:10]Write to MH i2c: E2 08 00 81 21 80 0D 03 02 00 00 00 00 1D [15:38:10]Write i2c OK [15:38:10]MH_I2C_Read... [15:38:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:38:10]Read from MH i2c: E2 [15:38:10]MH_I2C_Read... [15:38:10]Read from MH i2c: E2 0B 00 [15:38:10]MH_I2C_Read... [15:38:10]Read from MH i2c: E2 0B 00 81 21 00 3E 02 AB 76 A7 67 E4 07 90 00 78 [15:38:10]RAPDU: 3E 02 AB 76 A7 67 E4 07 90 00 [15:38:10]wFMCommunicate OK [15:38:10]SAM_PROTO_SignData done [15:38:10]FM_MakeSignedData done [15:38:10]CreateOFDProtocolMessage [15:38:10]wFMCommunicate request_size=4 [15:38:10]MH_SAM_APDU [15:38:10]CAPDU: 80 11 00 00 [15:38:10]Write to MH i2c: E2 08 00 82 21 80 11 00 00 00 00 00 00 1D [15:38:10]Write i2c OK [15:38:10]MH_I2C_Read... [15:38:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:10]Read from MH i2c: E2 [15:38:10]MH_I2C_Read... [15:38:10]Read from MH i2c: E2 17 00 [15:38:10]MH_I2C_Read... [15:38:10]Read from MH i2c: E2 17 00 82 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 73 [15:38:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:38:10]wFMCommunicate OK [15:38:10]CreateOFDProtocolMessage done [15:38:10]OFDSenderStorePacket 165339 [15:38:10]StoreOFDPacket docnum=165339 [15:38:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 06 BB 07 01 84 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 16 0D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 1B 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 62 42 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DB 85 02 00 35 04 06 00 11 C7 A4 84 DB C2 3E 02 AB 76 A7 67 E4 07 [15:38:10]CheckFolder [15:38:10]dirname=/storage/ofd_packets [15:38:10]CheckFolder done [15:38:10]ProducePacketName [15:38:10]name=ofd_packets/00165339 [15:38:10]NVStorageSaveData ofd_packets/00165339 [15:38:10]File name is /storage/ofd_packets/00165339 [15:38:10]Write 301 bytes [15:38:10]NVStorageSaveData done [15:38:10]OFDSenderStorePacket done [15:38:10]KKMCreateOFDPacket done [15:38:10]NVStorageSaveData kkm_last_timestamp [15:38:10]File name is /storage/kkm_last_timestamp [15:38:10]Write 4 bytes [15:38:10]NVStorageSaveData done [15:38:10]ExternCall_PrintAddStr [15:38:10]wPrintStart [15:38:10]Write to MH i2c: 01 00 00 83 21 A4 [15:38:10]Write i2c OK [15:38:10]MH_I2C_Read... [15:38:10]Read from MH i2c: 01 [15:38:10]MH_I2C_Read... [15:38:10]Read from MH i2c: 01 07 00 [15:38:10]MH_I2C_Read... [15:38:10]Read from MH i2c: 01 07 00 83 21 00 00 00 00 00 FF 0F B9 [15:38:10]RasterBufferAndPrint [15:38:10]line Счет N : (1)459451 [15:38:10]line ИНН: 02508201610067 [15:38:10]line Контрольно-Кассовый Чек [15:38:10]line ПРОДАЖА [15:38:10]line ТРК (МРК, ГНК) : 12 [15:38:10]line Товар: 2710124130 [15:38:10]line Аи-92-К-5 [15:38:10]line 3.350 * 65.80 [15:38:10]line = 220.43 [15:38:10]line НДС 12% НСП 1% [15:38:10]line > о реализуемом товаре [15:38:10]line ОКРУГЛЕНИЕ: -0.43 [15:38:10]line ИТОГО: 220.00 [15:38:10]line Внесено: 220.00 [15:38:10]line СДАЧА: 0.00 [15:38:10]line НСП 1% : 1.95 [15:38:10]line НДС 12% : 23.41 [15:38:10]line Наличными: 220.00 [15:38:10]line Безнал.: 0.00 [15:38:10]line Место: АЗС № 72 "Партнер Нефть" [15:38:10]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:38:10]line СНО: Общий режим [15:38:10]line Чек 212 15.07.2024 15:38 [15:38:10]line Смена: 448 ФФД: 1.0 [15:38:10]line ЗНМ: 0300000160 [15:38:10]line РНМ: 0000000000090829 [15:38:10]line Версия ККМ: 001 [15:38:10]line ФМ: 0000000000874718 [15:38:10]line ФД: 165339 [15:38:10]line ФПД: 19549156334530 [15:38:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T153810&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165339&fm=19549156334530&tin=02508201610067®Number=0000000000090829&sum=22000 [15:38:10]written 0, free lines is 4095 [15:38:10]OFD Sender: Processing packet 165339 [packets to send 106, broken 105] [15:38:10]ProducePacketName [15:38:10]name=ofd_packets/00165339 [15:38:10]OFD Sender: To server: pG, [15:38:10]CommunicateWithHost lk.salyk.kg:30040 [15:38:10]ConnectInit lk.salyk.kg [15:38:10]Connected sock=10 [15:38: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 37 31 38 0F 01 00 00 06 BB 07 01 84 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 16 0D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 1B 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 62 42 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DB 85 02 00 35 04 06 00 11 C7 A4 84 DB C2 3E 02 AB 76 A7 67 E4 07 [15:38:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 BE 5F 47 00 19 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DB 85 02 00 F4 03 04 00 EC E8 94 66 B6 04 01 00 00 AE 9C 6D AA 8A 88 AB 86 [15:38:11]CommunicateWithHost err = 0 [15:38:11]CheckOFDResponse [15:38:11]1017 (14) - 77093643461234 [15:38:11]1041 (16) - 0000000000874718 [15:38:11]1040 (4) - 165339 [15:38:11]1012 (4) - 15.07.2024 09:16 [15:38:11]1206 (1) - 0 [15:38:11]OFD Sender: Remove packet 165339 [15:38:11]ProducePacketName [15:38:11]name=ofd_packets/00165339 [15:38:11]NVStorageDeleteData [15:38:11]Write to MH i2c: 01 00 00 AD 21 CE [15:38:11]Write i2c OK [15:38:11]MH_I2C_Read... [15:38:11]Read from MH i2c: 01 [15:38:11]MH_I2C_Read... [15:38:11]Read from MH i2c: 01 07 00 [15:38:11]MH_I2C_Read... [15:38:11]Read from MH i2c: 01 07 00 AD 21 00 00 00 00 00 FB 0C DC [15:38:11]RasterBufferAndPrint [15:38:11]line [15:38:11]line [15:38:11]line [15:38:11]line [15:38:11]line [15:38:11]written 0, free lines is 3332 [15:38:11]MH_Cut [15:38:11]Write to MH i2c: D1 01 00 B4 21 01 A7 [15:38:11]Write i2c OK [15:38:11]MH_I2C_Read... [15:38:11]Read from MH i2c: D1 [15:38:11]MH_I2C_Read... [15:38:11]Read from MH i2c: D1 01 00 [15:38:11]MH_I2C_Read... [15:38:11]Read from MH i2c: D1 01 00 B4 21 00 A6 [15:38:11]Write to MH i2c: 01 00 00 B5 21 D6 [15:38:11]Write i2c OK [15:38:11]MH_I2C_Read... [15:38:11]OFD Sender: No OFD packet to send [15:38:11]*** Cut start [15:38:11]*** Partial cut [15:38:11]*** CUTSNS_PIN = 1 [15:38:11]*** CUTSNS_PIN = 0 [15:38:12]*** Brake cut motor [15:38:12]Read from MH i2c: 01 [15:38:12]MH_I2C_Read... [15:38:12]*** Stop cut motor [15:38:12]*** Cut end [15:38:12]Read from MH i2c: 01 07 00 [15:38:12]MH_I2C_Read... [15:38:12]Read from MH i2c: 01 07 00 B5 21 00 00 00 00 00 FF 0F EB [15:38:12]process_action close_receipt done [15:38:12]requested_data is exist [15:38:12]produce_requested_data [15:38:12]requested_item fm.sn is exist - process it [15:38:12]wFMCommunicate request_size=4 [15:38:12]MH_SAM_APDU [15:38:12]CAPDU: 80 11 00 00 [15:38:12]Write to MH i2c: E2 08 00 B6 21 80 11 00 00 00 00 00 00 51 [15:38:12]Write i2c OK [15:38:12]MH_I2C_Read... [15:38:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:12]Read from MH i2c: E2 [15:38:12]MH_I2C_Read... [15:38:12]Read from MH i2c: E2 17 00 [15:38:12]MH_I2C_Read... [15:38:12]Read from MH i2c: E2 17 00 B6 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A7 [15:38:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:38:12]wFMCommunicate OK [15:38:12]requested_item fd.num is exist - process it [15:38:12]SAM_PROTO_GetFieldsCounters [15:38:12]wFMCommunicate request_size=4 [15:38:12]MH_SAM_APDU [15:38:12]CAPDU: 80 13 00 00 [15:38:12]Write to MH i2c: E2 08 00 B7 21 80 13 00 00 00 00 00 00 54 [15:38:12]Write i2c OK [15:38:12]MH_I2C_Read... [15:38:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:38:12]Read from MH i2c: E2 [15:38:12]MH_I2C_Read... [15:38:12]Read from MH i2c: E2 62 00 [15:38:12]MH_I2C_Read... [15:38:12]Read from MH i2c: E2 62 00 B7 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DB 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [15:38: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DB 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:38:12]wFMCommunicate OK [15:38:12]SAM_PROTO_GetFieldsCounters done [15:38:12]requested_item shift.num is exist - process it [15:38:12]requested_item shift.opened is exist - process it [15:38:12]req_shift_opened [15:38:12]FM_GetShiftState [15:38:12]SAM_PROTO_GetShiftState [15:38:12]wFMCommunicate request_size=4 [15:38:12]MH_SAM_APDU [15:38:12]CAPDU: 80 13 01 00 [15:38:12]Write to MH i2c: E2 08 00 B8 21 80 13 01 00 00 00 00 00 56 [15:38:12]Write i2c OK [15:38:12]MH_I2C_Read... [15:38:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:12]Read from MH i2c: E2 [15:38:12]MH_I2C_Read... [15:38:12]Read from MH i2c: E2 0E 00 [15:38:12]MH_I2C_Read... [15:38:12]Read from MH i2c: E2 0E 00 B8 21 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 2F [15:38:12]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [15:38:12]wFMCommunicate OK [15:38:12]SAM_PROTO_GetShiftState done [15:38:12]FM_GetShiftState done [15:38:12]req_shift_opened done [15:38:12]requested_item shift.open_date is exist - process it [15:38:12]req_shift_open_date [15:38:12]req_shift_open_date done [15:38:12]produce_requested_data done [15:38:12]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165339,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [15:38:12]process_action_free close_receipt [15:38:12]json_value_free [15:38:12]json_value_free done [15:38:12]process_json_proto returns [15:38:12]Send response to host [15:38:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165339,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [15:38:12]free response buf [15:38:12]execute_script done [15:38:12]execute_script returns [15:38:12]free content buf [15:38:12]Sock 9.Close socket [15:38:12]Sock 9.Thread stoped [15:38:16]OFD Sender: No OFD packet to send [15:38:21]OFD Sender: No OFD packet to send [15:38:26]OFD Sender: No OFD packet to send [15:38:31]OFD Sender: No OFD packet to send [15:38:36]OFD Sender: No OFD packet to send [15:38:41]OFD Sender: No OFD packet to send [15:38:46]OFD Sender: No OFD packet to send [15:38:51]OFD Sender: No OFD packet to send [15:38:56]OFD Sender: No OFD packet to send [15:39:01]OFD Sender: No OFD packet to send [15:39:06]OFD Sender: No OFD packet to send [15:39:11]OFD Sender: No OFD packet to send [15:39:16]OFD Sender: No OFD packet to send [15:39:21]OFD Sender: No OFD packet to send [15:39:26]OFD Sender: No OFD packet to send [15:39:31]OFD Sender: No OFD packet to send [15:39:36]OFD Sender: No OFD packet to send [15:39:41]OFD Sender: No OFD packet to send [15:39:46]OFD Sender: No OFD packet to send [15:39:51]OFD Sender: No OFD packet to send [15:39:56]OFD Sender: No OFD packet to send [15:40:01]OFD Sender: No OFD packet to send [15:40:06]OFD Sender: No OFD packet to send [15:40:11]OFD Sender: No OFD packet to send [15:40:16]OFD Sender: No OFD packet to send [15:40:21]OFD Sender: No OFD packet to send [15:40:26]OFD Sender: No OFD packet to send [15:40:31]OFD Sender: No OFD packet to send [15:40:36]OFD Sender: No OFD packet to send [15:40:41]OFD Sender: No OFD packet to send [15:40:46]OFD Sender: No OFD packet to send [15:40:51]OFD Sender: No OFD packet to send [15:40:56]OFD Sender: No OFD packet to send [15:41:01]OFD Sender: No OFD packet to send [15:41:02]accept exits with 8 [15:41:02]New connection [15:41:02]New thread 3066854756 created [15:41:02]Thread 3066711396 joined [15:41:02]Waiting for new connection... [15:41:02] Sock 8.Parse request [15:41:02]Sock 8.Check first char [15:41:02]Sock 8.First char is OK [15:41:02]request: POST /json_proto HTTP/1.0 [15:41:02]Method: POST [15:41:02]URL: /json_proto [15:41:02]Method is POST - this is cgi request [15:41:02]url: /json_proto [15:41:02]query_string will be loaded in cgi processing [15:41:02]execute_cgi json_proto POST (null) [15:41:02]execute_cgi path=json_proto method=POST [15:41:02]POST find Content-Length [15:41:02]Host: 172.17.56.4:8080 [15:41:02]Content-Length: 639 [15:41:02]Content-Type: application/json [15:41:02] [15:41:02]POST finish read [15:41:02]Found Content-Length = 639 [15:41:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459452", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 40.000, "sum" : 2876.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 2876.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:02]execute_script... [15:41:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459452", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 40.000, "sum" : 2876.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 2876.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:02]POST & json_proto [15:41:02]process_json_proto [15:41:02]json parsed OK: [15:41:02]protocol is kg_v1.0 [15:41:02]action value=close_receipt [15:41:02]process_action close_receipt [15:41:02]cmd_close_receipt [15:41:02]MH_GetDate [15:41:02]Write to MH i2c: F0 00 00 B9 21 C9 [15:41:02]Write i2c OK [15:41:02]MH_I2C_Read... [15:41:02]Read from MH i2c: F0 [15:41:02]MH_I2C_Read... [15:41:02]Read from MH i2c: F0 09 00 [15:41:02]MH_I2C_Read... [15:41:02]Read from MH i2c: F0 09 00 B9 21 00 10 43 95 66 C9 DC B2 64 DB [15:41:02]GetLastDocTimeStamp 1721057890 [15:41:02]current date 1721058064 [15:41:02]FM_GetShiftState [15:41:02]SAM_PROTO_GetShiftState [15:41:02]wFMCommunicate request_size=4 [15:41:02]MH_SAM_APDU [15:41:02]CAPDU: 80 13 01 00 [15:41:02]Write to MH i2c: E2 08 00 BA 21 80 13 01 00 00 00 00 00 58 [15:41:02]Write i2c OK [15:41:02]MH_I2C_Read... [15:41:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:02]Read from MH i2c: E2 [15:41:02]MH_I2C_Read... [15:41:02]Read from MH i2c: E2 0E 00 [15:41:02]MH_I2C_Read... [15:41:02]Read from MH i2c: E2 0E 00 BA 21 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 31 [15:41:02]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [15:41:02]wFMCommunicate OK [15:41:02]SAM_PROTO_GetShiftState done [15:41:02]FM_GetShiftState done [15:41:02]opened in 1721003876 [15:41:02]opened+sec_in_day 1721090276 [15:41:02]quantity*price = 287600 [15:41:02]sum+1 = 287601 [15:41:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2876.00 НСП 1% : 25.45 НДС 12% : 305.42 Наличными: 2876.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 213 15.07.2024 15:41 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165340 ФПД: 28506408672870 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T154104&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165340&fm=28506408672870&tin=02508201610067®Number=0000000000090829&sum=287600 [15:41:03]StoreToDocumentArchive [15:41:03]shift 448 fd 165340 [15:41:03]save to /storage/0448/doc_00165340 [15:41:03]save last doc name /storage/0448/doc_00165340 to /storage/kkm_last_doc_name [15:41:03]save OK [15:41:03]Clear old archive folders... [15:41:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:41:03]tlvbuf is B6E90C10 [15:41:03]SAM_PROTO_ClearQueue [15:41:03]wFMCommunicate request_size=4 [15:41:03]MH_SAM_APDU [15:41:03]CAPDU: 80 09 00 00 [15:41:03]Write to MH i2c: E2 08 00 C7 21 80 09 00 00 00 00 00 00 5A [15:41:03]Write i2c OK [15:41:03]MH_I2C_Read... [15:41:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:41:03]Read from MH i2c: E2 [15:41:03]MH_I2C_Read... [15:41:03]Read from MH i2c: E2 03 00 [15:41:03]MH_I2C_Read... [15:41:03]Read from MH i2c: E2 03 00 C7 21 00 90 00 5C [15:41:03]RAPDU: 90 00 [15:41:03]wFMCommunicate OK [15:41:03]SAM_PROTO_ClearQueue done [15:41:03]KKMCreateOFDPacket [15:41:03]OFDProtocolAddRootSTLVToBuf [15:41:03]FM_MakeSignedData [15:41:03]FM_MakeSignedData [15:41:03]SAM_PROTO_SignData [15:41:03]wFMCommunicate request_size=4 [15:41:03]MH_SAM_APDU [15:41:03]CAPDU: 80 0D 01 02 [15:41:03]Write to MH i2c: E2 08 00 C8 21 80 0D 01 02 00 00 00 00 62 [15:41:03]Write i2c OK [15:41:03]MH_I2C_Read... [15:41:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:41:03]Read from MH i2c: E2 [15:41:03]MH_I2C_Read... [15:41:03]Read from MH i2c: E2 03 00 [15:41:03]MH_I2C_Read... [15:41:03]Read from MH i2c: E2 03 00 C8 21 00 90 00 5D [15:41:03]RAPDU: 90 00 [15:41:03]wFMCommunicate OK [15:41:03]wFMCommunicate request_size=255 [15:41:03]MH_SAM_APDU [15:41:03]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 70 63 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 63 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 77 00 00 00 00 07 04 06 00 70 63 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 10 43 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DC 85 02 00 35 04 06 00 19 ED 2A 5C [15:41:03]Write to MH i2c: E2 02 01 C9 21 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 70 63 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 63 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 77 00 00 00 00 07 04 06 00 70 63 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 10 43 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DC 85 02 00 35 04 06 00 19 ED 2A 5C 00 00 EA [15:41:03]Write i2c OK [15:41:03]MH_I2C_Read... [15:41:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:04]Read from MH i2c: E2 [15:41:04]MH_I2C_Read... [15:41:04]Read from MH i2c: E2 03 00 [15:41:04]MH_I2C_Read... [15:41:04]Read from MH i2c: E2 03 00 C9 21 00 90 00 5E [15:41:04]RAPDU: 90 00 [15:41:04]wFMCommunicate OK [15:41:04]wFMCommunicate request_size=7 [15:41:04]MH_SAM_APDU [15:41:04]CAPDU: 80 0D 02 02 02 DE 66 [15:41:04]Write to MH i2c: E2 0A 00 CA 21 80 0D 02 02 02 00 DE 66 00 00 AD [15:41:04]Write i2c OK [15:41:04]MH_I2C_Read... [15:41:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:04]Read from MH i2c: E2 [15:41:04]MH_I2C_Read... [15:41:04]Read from MH i2c: E2 03 00 [15:41:04]MH_I2C_Read... [15:41:04]Read from MH i2c: E2 03 00 CA 21 00 90 00 5F [15:41:04]RAPDU: 90 00 [15:41:04]wFMCommunicate OK [15:41:04]wFMCommunicate request_size=4 [15:41:04]MH_SAM_APDU [15:41:04]CAPDU: 80 0D 03 02 [15:41:04]Write to MH i2c: E2 08 00 CB 21 80 0D 03 02 00 00 00 00 67 [15:41:04]Write i2c OK [15:41:04]MH_I2C_Read... [15:41:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:41:04]Read from MH i2c: E2 [15:41:04]MH_I2C_Read... [15:41:04]Read from MH i2c: E2 0B 00 [15:41:04]MH_I2C_Read... [15:41:04]Read from MH i2c: E2 0B 00 CB 21 00 9C 19 43 EA 1E BF 95 4E 90 00 0A [15:41:04]RAPDU: 9C 19 43 EA 1E BF 95 4E 90 00 [15:41:04]wFMCommunicate OK [15:41:04]SAM_PROTO_SignData done [15:41:04]FM_MakeSignedData done [15:41:04]CreateOFDProtocolMessage [15:41:04]wFMCommunicate request_size=4 [15:41:04]MH_SAM_APDU [15:41:04]CAPDU: 80 11 00 00 [15:41:04]Write to MH i2c: E2 08 00 CC 21 80 11 00 00 00 00 00 00 67 [15:41:04]Write i2c OK [15:41:04]MH_I2C_Read... [15:41:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:04]Read from MH i2c: E2 [15:41:04]MH_I2C_Read... [15:41:04]Read from MH i2c: E2 17 00 [15:41:04]MH_I2C_Read... [15:41:04]Read from MH i2c: E2 17 00 CC 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 BD [15:41:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:41:04]wFMCommunicate OK [15:41:04]CreateOFDProtocolMessage done [15:41:04]OFDSenderStorePacket 165340 [15:41:04]StoreOFDPacket docnum=165340 [15:41:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 89 16 04 01 DA 7D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 70 63 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 63 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 77 00 00 00 00 07 04 06 00 70 63 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 10 43 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DC 85 02 00 35 04 06 00 19 ED 2A 5C DE 66 9C 19 43 EA 1E BF 95 4E [15:41:04]CheckFolder [15:41:04]dirname=/storage/ofd_packets [15:41:04]CheckFolder done [15:41:04]ProducePacketName [15:41:04]name=ofd_packets/00165340 [15:41:04]NVStorageSaveData ofd_packets/00165340 [15:41:04]File name is /storage/ofd_packets/00165340 [15:41:04]Write 298 bytes [15:41:04]NVStorageSaveData done [15:41:04]OFDSenderStorePacket done [15:41:04]KKMCreateOFDPacket done [15:41:04]NVStorageSaveData kkm_last_timestamp [15:41:04]File name is /storage/kkm_last_timestamp [15:41:04]Write 4 bytes [15:41:04]NVStorageSaveData done [15:41:04]ExternCall_PrintAddStr [15:41:04]wPrintStart [15:41:04]Write to MH i2c: 01 00 00 CD 21 EE [15:41:04]Write i2c OK [15:41:04]MH_I2C_Read... [15:41:04]Read from MH i2c: 01 [15:41:04]MH_I2C_Read... [15:41:04]Read from MH i2c: 01 07 00 [15:41:04]MH_I2C_Read... [15:41:04]Read from MH i2c: 01 07 00 CD 21 00 00 00 00 00 FF 0F 03 [15:41:04]RasterBufferAndPrint [15:41:04]line Счет N : (1)459452 [15:41:04]line ИНН: 02508201610067 [15:41:04]line Контрольно-Кассовый Чек [15:41:04]line ПРОДАЖА [15:41:04]line ТРК (МРК, ГНК) : 11 [15:41:04]line Товар: 2710194210 [15:41:04]line ДТ-К-5 [15:41:04]line 40.000 * 71.90 [15:41:04]line = 2876.00 [15:41:04]line НДС 12% НСП 1% [15:41:04]line > о реализуемом товаре [15:41:04]line ИТОГО: 2876.00 [15:41:04]line НСП 1% : 25.45 [15:41:04]line НДС 12% : 305.42 [15:41:04]line Наличными: 2876.00 [15:41:04]line Безнал.: 0.00 [15:41:04]line Место: АЗС № 72 "Партнер Нефть" [15:41:04]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:41:04]line СНО: Общий режим [15:41:04]line Чек 213 15.07.2024 15:41 [15:41:04]line Смена: 448 ФФД: 1.0 [15:41:04]line ЗНМ: 0300000160 [15:41:04]line РНМ: 0000000000090829 [15:41:04]line Версия ККМ: 001 [15:41:04]line ФМ: 0000000000874718 [15:41:04]line ФД: 165340 [15:41:04]line ФПД: 28506408672870 [15:41:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T154104&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165340&fm=28506408672870&tin=02508201610067®Number=0000000000090829&sum=287600 [15:41:04]OFD Sender: Processing packet 165340 [packets to send 106, broken 105] [15:41:04]ProducePacketName [15:41:04]name=ofd_packets/00165340 [15:41:04]OFD Sender: To server: pG, [15:41:04]CommunicateWithHost lk.salyk.kg:30040 [15:41:04]ConnectInit lk.salyk.kg [15:41:04]written 0, free lines is 4095 [15:41:04]Connected sock=10 [15:41:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 89 16 04 01 DA 7D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 70 63 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 63 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 77 00 00 00 00 07 04 06 00 70 63 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 10 43 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DC 85 02 00 35 04 06 00 19 ED 2A 5C DE 66 9C 19 43 EA 1E BF 95 4E [15:41:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 0A C5 47 00 16 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DC 85 02 00 F4 03 04 00 9A E9 94 66 B6 04 01 00 00 B4 7F B8 DC 00 3B D0 ED [15:41:04]CommunicateWithHost err = 0 [15:41:04]CheckOFDResponse [15:41:04]1017 (14) - 77093643461234 [15:41:04]1041 (16) - 0000000000874718 [15:41:04]1040 (4) - 165340 [15:41:04]1012 (4) - 15.07.2024 09:19 [15:41:04]1206 (1) - 0 [15:41:04]OFD Sender: Remove packet 165340 [15:41:04]ProducePacketName [15:41:04]name=ofd_packets/00165340 [15:41:04]NVStorageDeleteData [15:41:04]Write to MH i2c: 01 00 00 F4 21 15 [15:41:04]Write i2c OK [15:41:04]MH_I2C_Read... [15:41:04]Read from MH i2c: 01 [15:41:04]MH_I2C_Read... [15:41:04]Read from MH i2c: 01 07 00 [15:41:04]MH_I2C_Read... [15:41:04]Read from MH i2c: 01 07 00 F4 21 00 00 00 00 00 2D 0D 56 [15:41:04]RasterBufferAndPrint [15:41:04]line [15:41:04]line [15:41:04]line [15:41:04]line [15:41:04]line [15:41:04]written 0, free lines is 3379 [15:41:04]MH_Cut [15:41:04]Write to MH i2c: D1 01 00 FB 21 01 EE [15:41:04]Write i2c OK [15:41:04]MH_I2C_Read... [15:41:04]Read from MH i2c: D1 [15:41:04]MH_I2C_Read... [15:41:04]Read from MH i2c: D1 01 00 [15:41:04]MH_I2C_Read... [15:41:04]Read from MH i2c: D1 01 00 FB 21 00 ED [15:41:04]Write to MH i2c: 01 00 00 FC 21 1D [15:41:04]Write i2c OK [15:41:04]MH_I2C_Read... [15:41:05]OFD Sender: No OFD packet to send [15:41:05]*** Cut start [15:41:05]*** Partial cut [15:41:05]*** CUTSNS_PIN = 1 [15:41:05]*** CUTSNS_PIN = 0 [15:41:05]*** Brake cut motor [15:41:06]Read from MH i2c: 01 [15:41:06]MH_I2C_Read... [15:41:06]*** Stop cut motor [15:41:06]*** Cut end [15:41:06]Read from MH i2c: 01 07 00 [15:41:06]MH_I2C_Read... [15:41:06]Read from MH i2c: 01 07 00 FC 21 00 00 00 00 00 FF 0F 32 [15:41:06]process_action close_receipt done [15:41:06]requested_data is exist [15:41:06]produce_requested_data [15:41:06]requested_item fm.sn is exist - process it [15:41:06]wFMCommunicate request_size=4 [15:41:06]MH_SAM_APDU [15:41:06]CAPDU: 80 11 00 00 [15:41:06]Write to MH i2c: E2 08 00 FD 21 80 11 00 00 00 00 00 00 98 [15:41:06]Write i2c OK [15:41:06]MH_I2C_Read... [15:41:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:06]Read from MH i2c: E2 [15:41:06]MH_I2C_Read... [15:41:06]Read from MH i2c: E2 17 00 [15:41:06]MH_I2C_Read... [15:41:06]Read from MH i2c: E2 17 00 FD 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 EE [15:41:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:41:06]wFMCommunicate OK [15:41:06]requested_item fd.num is exist - process it [15:41:06]SAM_PROTO_GetFieldsCounters [15:41:06]wFMCommunicate request_size=4 [15:41:06]MH_SAM_APDU [15:41:06]CAPDU: 80 13 00 00 [15:41:06]Write to MH i2c: E2 08 00 FE 21 80 13 00 00 00 00 00 00 9B [15:41:06]Write i2c OK [15:41:06]MH_I2C_Read... [15:41:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:41:06]Read from MH i2c: E2 [15:41:06]MH_I2C_Read... [15:41:06]Read from MH i2c: E2 62 00 [15:41:06]MH_I2C_Read... [15:41:06]Read from MH i2c: E2 62 00 FE 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DC 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 65 [15:41:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DC 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:41:06]wFMCommunicate OK [15:41:06]SAM_PROTO_GetFieldsCounters done [15:41:06]requested_item shift.num is exist - process it [15:41:06]requested_item shift.opened is exist - process it [15:41:06]req_shift_opened [15:41:06]FM_GetShiftState [15:41:06]SAM_PROTO_GetShiftState [15:41:06]wFMCommunicate request_size=4 [15:41:06]MH_SAM_APDU [15:41:06]CAPDU: 80 13 01 00 [15:41:06]Write to MH i2c: E2 08 00 FF 21 80 13 01 00 00 00 00 00 9D [15:41:06]Write i2c OK [15:41:06]MH_I2C_Read... [15:41:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:06]Read from MH i2c: E2 [15:41:06]MH_I2C_Read... [15:41:06]Read from MH i2c: E2 0E 00 [15:41:06]MH_I2C_Read... [15:41:06]Read from MH i2c: E2 0E 00 FF 21 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 76 [15:41:06]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [15:41:06]wFMCommunicate OK [15:41:06]SAM_PROTO_GetShiftState done [15:41:06]FM_GetShiftState done [15:41:06]req_shift_opened done [15:41:06]requested_item shift.open_date is exist - process it [15:41:06]req_shift_open_date [15:41:06]req_shift_open_date done [15:41:06]produce_requested_data done [15:41:06]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165340,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [15:41:06]process_action_free close_receipt [15:41:06]json_value_free [15:41:06]json_value_free done [15:41:06]process_json_proto returns [15:41:06]Send response to host [15:41:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165340,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [15:41:06]free response buf [15:41:06]execute_script done [15:41:06]execute_script returns [15:41:06]free content buf [15:41:06]Sock 8.Close socket [15:41:06]Sock 8.Thread stoped [15:41:10]OFD Sender: No OFD packet to send [15:41:15]OFD Sender: No OFD packet to send [15:41:20]OFD Sender: No OFD packet to send [15:41:25]OFD Sender: No OFD packet to send [15:41:30]OFD Sender: No OFD packet to send [15:41:35]OFD Sender: No OFD packet to send [15:41:40]OFD Sender: No OFD packet to send [15:41:45]OFD Sender: No OFD packet to send [15:41:50]OFD Sender: No OFD packet to send [15:41:55]OFD Sender: No OFD packet to send [15:42:00]OFD Sender: No OFD packet to send [15:42:05]OFD Sender: No OFD packet to send [15:42:10]OFD Sender: No OFD packet to send [15:42:10]accept exits with 9 [15:42:10]New connection [15:42:10]New thread 3066711396 created [15:42:10]Thread 3066854756 joined [15:42:10]Waiting for new connection... [15:42:10] Sock 9.Parse request [15:42:10]Sock 9.Check first char [15:42:10]Sock 9.First char is OK [15:42:10]request: POST /json_proto HTTP/1.0 [15:42:10]Method: POST [15:42:10]URL: /json_proto [15:42:10]Method is POST - this is cgi request [15:42:10]url: /json_proto [15:42:10]query_string will be loaded in cgi processing [15:42:10]execute_cgi json_proto POST (null) [15:42:10]execute_cgi path=json_proto method=POST [15:42:10]POST find Content-Length [15:42:10]Host: 172.17.56.4:8080 [15:42:10]Content-Length: 682 [15:42:10]Content-Type: application/json [15:42:10] [15:42:10]POST finish read [15:42:10]Found Content-Length = 682 [15:42:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459453", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 25.840, "sum" : 1700.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:10]execute_script... [15:42: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)459453", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 25.840, "sum" : 1700.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:10]POST & json_proto [15:42:10]process_json_proto [15:42:10]json parsed OK: [15:42:10]protocol is kg_v1.0 [15:42:10]action value=close_receipt [15:42:10]process_action close_receipt [15:42:10]cmd_close_receipt [15:42:10]MH_GetDate [15:42:10]Write to MH i2c: F0 00 00 00 22 11 [15:42:10]Write i2c OK [15:42:10]MH_I2C_Read... [15:42:10]Read from MH i2c: F0 [15:42:10]MH_I2C_Read... [15:42:10]Read from MH i2c: F0 09 00 [15:42:10]MH_I2C_Read... [15:42:10]Read from MH i2c: F0 09 00 00 22 00 54 43 95 66 C9 DC B2 64 67 [15:42:10]GetLastDocTimeStamp 1721058064 [15:42:10]current date 1721058132 [15:42:10]FM_GetShiftState [15:42:10]SAM_PROTO_GetShiftState [15:42:10]wFMCommunicate request_size=4 [15:42:10]MH_SAM_APDU [15:42:10]CAPDU: 80 13 01 00 [15:42:10]Write to MH i2c: E2 08 00 01 22 80 13 01 00 00 00 00 00 A0 [15:42:10]Write i2c OK [15:42:10]MH_I2C_Read... [15:42:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:10]Read from MH i2c: E2 [15:42:10]MH_I2C_Read... [15:42:10]Read from MH i2c: E2 0E 00 [15:42:10]MH_I2C_Read... [15:42:10]Read from MH i2c: E2 0E 00 01 22 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 79 [15:42:10]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [15:42:10]wFMCommunicate OK [15:42:10]SAM_PROTO_GetShiftState done [15:42:10]FM_GetShiftState done [15:42:10]opened in 1721003876 [15:42:10]opened+sec_in_day 1721090276 [15:42:10]quantity*price = 170027 [15:42:10]sum+1 = 170028 [15:42:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 1700.00 Внесено: 1700.00 СДАЧА: 0.00 НСП 1% : 15.05 НДС 12% : 180.56 Наличными: 1700.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 214 15.07.2024 15:42 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165341 ФПД: 252259387834715 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T154212&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165341&fm=252259387834715&tin=02508201610067®Number=0000000000090829&sum=170000 [15:42:12]StoreToDocumentArchive [15:42:12]shift 448 fd 165341 [15:42:12]save to /storage/0448/doc_00165341 [15:42:12]save last doc name /storage/0448/doc_00165341 to /storage/kkm_last_doc_name [15:42:12]save OK [15:42:12]Clear old archive folders... [15:42:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:42:12]tlvbuf is 01811940 [15:42:12]SAM_PROTO_ClearQueue [15:42:12]wFMCommunicate request_size=4 [15:42:12]MH_SAM_APDU [15:42:12]CAPDU: 80 09 00 00 [15:42:12]Write to MH i2c: E2 08 00 0E 22 80 09 00 00 00 00 00 00 A2 [15:42:12]Write i2c OK [15:42:12]MH_I2C_Read... [15:42:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:42:12]Read from MH i2c: E2 [15:42:12]MH_I2C_Read... [15:42:12]Read from MH i2c: E2 03 00 [15:42:12]MH_I2C_Read... [15:42:12]Read from MH i2c: E2 03 00 0E 22 00 90 00 A4 [15:42:12]RAPDU: 90 00 [15:42:12]wFMCommunicate OK [15:42:12]SAM_PROTO_ClearQueue done [15:42:12]KKMCreateOFDPacket [15:42:12]OFDProtocolAddRootSTLVToBuf [15:42:12]FM_MakeSignedData [15:42:12]FM_MakeSignedData [15:42:12]SAM_PROTO_SignData [15:42:12]wFMCommunicate request_size=4 [15:42:12]MH_SAM_APDU [15:42:12]CAPDU: 80 0D 01 02 [15:42:12]Write to MH i2c: E2 08 00 0F 22 80 0D 01 02 00 00 00 00 AA [15:42:12]Write i2c OK [15:42:12]MH_I2C_Read... [15:42:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:42:12]Read from MH i2c: E2 [15:42:12]MH_I2C_Read... [15:42:12]Read from MH i2c: E2 03 00 [15:42:12]MH_I2C_Read... [15:42:12]Read from MH i2c: E2 03 00 0F 22 00 90 00 A5 [15:42:12]RAPDU: 90 00 [15:42:12]wFMCommunicate OK [15:42:12]wFMCommunicate request_size=255 [15:42:12]MH_SAM_APDU [15:42:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 64 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 2B 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 54 43 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DD 85 02 00 35 04 06 00 E5 [15:42:12]Write to MH i2c: E2 02 01 10 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 64 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 2B 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 54 43 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DD 85 02 00 35 04 06 00 E5 00 00 1A [15:42:12]Write i2c OK [15:42:12]MH_I2C_Read... [15:42:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:12]Read from MH i2c: E2 [15:42:12]MH_I2C_Read... [15:42:12]Read from MH i2c: E2 03 00 [15:42:12]MH_I2C_Read... [15:42:12]Read from MH i2c: E2 03 00 10 22 00 90 00 A6 [15:42:12]RAPDU: 90 00 [15:42:12]wFMCommunicate OK [15:42:12]wFMCommunicate request_size=10 [15:42:12]MH_SAM_APDU [15:42:12]CAPDU: 80 0D 02 02 05 6D B7 34 01 5B [15:42:12]Write to MH i2c: E2 0D 00 11 22 80 0D 02 02 05 00 6D B7 34 01 5B 00 00 6B [15:42:12]Write i2c OK [15:42:12]MH_I2C_Read... [15:42:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:12]Read from MH i2c: E2 [15:42:12]MH_I2C_Read... [15:42:12]Read from MH i2c: E2 03 00 [15:42:12]MH_I2C_Read... [15:42:12]Read from MH i2c: E2 03 00 11 22 00 90 00 A7 [15:42:12]RAPDU: 90 00 [15:42:12]wFMCommunicate OK [15:42:12]wFMCommunicate request_size=4 [15:42:12]MH_SAM_APDU [15:42:12]CAPDU: 80 0D 03 02 [15:42:12]Write to MH i2c: E2 08 00 12 22 80 0D 03 02 00 00 00 00 AF [15:42:12]Write i2c OK [15:42:12]MH_I2C_Read... [15:42:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:42:12]Read from MH i2c: E2 [15:42:12]MH_I2C_Read... [15:42:12]Read from MH i2c: E2 0B 00 [15:42:12]MH_I2C_Read... [15:42:12]Read from MH i2c: E2 0B 00 12 22 00 87 E2 CF 5E BE 4D 2C 6C 90 00 E9 [15:42:12]RAPDU: 87 E2 CF 5E BE 4D 2C 6C 90 00 [15:42:12]wFMCommunicate OK [15:42:12]SAM_PROTO_SignData done [15:42:12]FM_MakeSignedData done [15:42:12]CreateOFDProtocolMessage [15:42:12]wFMCommunicate request_size=4 [15:42:12]MH_SAM_APDU [15:42:12]CAPDU: 80 11 00 00 [15:42:12]Write to MH i2c: E2 08 00 13 22 80 11 00 00 00 00 00 00 AF [15:42:12]Write i2c OK [15:42:12]MH_I2C_Read... [15:42:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:12]Read from MH i2c: E2 [15:42:12]MH_I2C_Read... [15:42:12]Read from MH i2c: E2 17 00 [15:42:12]MH_I2C_Read... [15:42:12]Read from MH i2c: E2 17 00 13 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 05 [15:42:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:42:12]wFMCommunicate OK [15:42:12]CreateOFDProtocolMessage done [15:42:12]OFDSenderStorePacket 165341 [15:42:12]StoreOFDPacket docnum=165341 [15:42:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A2 C1 07 01 3F 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 F0 64 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 2B 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 54 43 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DD 85 02 00 35 04 06 00 E5 6D B7 34 01 5B 87 E2 CF 5E BE 4D 2C 6C [15:42:12]CheckFolder [15:42:12]dirname=/storage/ofd_packets [15:42:12]CheckFolder done [15:42:12]ProducePacketName [15:42:12]name=ofd_packets/00165341 [15:42:12]NVStorageSaveData ofd_packets/00165341 [15:42:12]File name is /storage/ofd_packets/00165341 [15:42:12]Write 301 bytes [15:42:12]NVStorageSaveData done [15:42:12]OFDSenderStorePacket done [15:42:12]KKMCreateOFDPacket done [15:42:12]NVStorageSaveData kkm_last_timestamp [15:42:12]File name is /storage/kkm_last_timestamp [15:42:12]OFD Sender: Processing packet 165341 [packets to send 106, broken 105] [15:42:12]ProducePacketName [15:42:12]name=ofd_packets/00165341 [15:42:12]OFD Sender: To server: pG, [15:42:12]CommunicateWithHost lk.salyk.kg:30040 [15:42:12]ConnectInit lk.salyk.kg [15:42:12]Write 4 bytes [15:42:12]NVStorageSaveData done [15:42:12]ExternCall_PrintAddStr [15:42:12]wPrintStart [15:42:12]Write to MH i2c: 01 00 00 14 22 36 [15:42:12]Write i2c OK [15:42:12]MH_I2C_Read... [15:42:12]Read from MH i2c: 01 [15:42:12]MH_I2C_Read... [15:42:12]Read from MH i2c: 01 07 00 [15:42:12]MH_I2C_Read... [15:42:12]Read from MH i2c: 01 07 00 14 22 00 00 00 00 00 FF 0F 4B [15:42:12]RasterBufferAndPrint [15:42:12]line Счет N : (1)459453 [15:42:12]line ИНН: 02508201610067 [15:42:12]line Контрольно-Кассовый Чек [15:42:12]line ПРОДАЖА [15:42:12]line ТРК (МРК, ГНК) : 22 [15:42:12]line Товар: 2710124130 [15:42:12]line Аи-92-К-5 [15:42:12]line 25.840 * 65.80 [15:42:12]line = 1700.27 [15:42:12]line НДС 12% НСП 1% [15:42:12]line > о реализуемом товаре [15:42:12]line ОКРУГЛЕНИЕ: -0.27 [15:42:12]line ИТОГО: 1700.00 [15:42:12]line Внесено: 1700.00 [15:42:12]line СДАЧА: 0.00 [15:42:12]line НСП 1% : 15.05 [15:42:12]line НДС 12% : 180.56 [15:42:12]line Наличными: 1700.00 [15:42:12]line Безнал.: 0.00 [15:42:12]line Место: АЗС № 72 "Партнер Нефть" [15:42:12]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:42:12]line СНО: Общий режим [15:42:12]line Чек 214 15.07.2024 15:42 [15:42:12]line Смена: 448 ФФД: 1.0 [15:42:12]line ЗНМ: 0300000160 [15:42:12]line РНМ: 0000000000090829 [15:42:12]line Версия ККМ: 001 [15:42:12]line ФМ: 0000000000874718 [15:42:12]line ФД: 165341 [15:42:12]line ФПД: 252259387834715 [15:42:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T154212&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165341&fm=252259387834715&tin=02508201610067®Number=0000000000090829&sum=170000 [15:42:12]Connected sock=11 [15:42: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 37 31 38 0F 01 00 00 A2 C1 07 01 3F 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 F0 64 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 2B 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 54 43 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DD 85 02 00 35 04 06 00 E5 6D B7 34 01 5B 87 E2 CF 5E BE 4D 2C 6C [15:42:12]written 0, free lines is 4095 [15:42:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 31 D6 47 00 64 FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DD 85 02 00 F4 03 04 00 DE E9 94 66 B6 04 01 00 00 2B 79 98 4A 63 FC 65 2F [15:42:13]CommunicateWithHost err = 0 [15:42:13]CheckOFDResponse [15:42:13]1017 (14) - 77093643461234 [15:42:13]1041 (16) - 0000000000874718 [15:42:13]1040 (4) - 165341 [15:42:13]1012 (4) - 15.07.2024 09:20 [15:42:13]1206 (1) - 0 [15:42:13]OFD Sender: Remove packet 165341 [15:42:13]ProducePacketName [15:42:13]name=ofd_packets/00165341 [15:42:13]NVStorageDeleteData [15:42:13]Write to MH i2c: 01 00 00 3E 22 60 [15:42:13]Write i2c OK [15:42:13]MH_I2C_Read... [15:42:13]Read from MH i2c: 01 [15:42:13]MH_I2C_Read... [15:42:13]Read from MH i2c: 01 07 00 [15:42:13]MH_I2C_Read... [15:42:13]Read from MH i2c: 01 07 00 3E 22 00 00 00 00 00 03 0D 77 [15:42:13]RasterBufferAndPrint [15:42:13]line [15:42:13]line [15:42:13]line [15:42:13]line [15:42:13]line [15:42:13]written 0, free lines is 3340 [15:42:13]MH_Cut [15:42:13]Write to MH i2c: D1 01 00 45 22 01 39 [15:42:13]Write i2c OK [15:42:13]MH_I2C_Read... [15:42:13]Read from MH i2c: D1 [15:42:13]MH_I2C_Read... [15:42:13]Read from MH i2c: D1 01 00 [15:42:13]MH_I2C_Read... [15:42:13]Read from MH i2c: D1 01 00 45 22 00 38 [15:42:13]Write to MH i2c: 01 00 00 46 22 68 [15:42:13]Write i2c OK [15:42:13]MH_I2C_Read... [15:42:13]OFD Sender: No OFD packet to send [15:42:14]*** Cut start [15:42:14]*** Partial cut [15:42:14]*** CUTSNS_PIN = 1 [15:42:14]*** CUTSNS_PIN = 0 [15:42:14]*** Brake cut motor [15:42:14]Read from MH i2c: 01 [15:42:14]MH_I2C_Read... [15:42:14]*** Stop cut motor [15:42:14]*** Cut end [15:42:14]Read from MH i2c: 01 07 00 [15:42:14]MH_I2C_Read... [15:42:14]Read from MH i2c: 01 07 00 46 22 00 00 00 00 00 FF 0F 7D [15:42:14]process_action close_receipt done [15:42:14]requested_data is exist [15:42:14]produce_requested_data [15:42:14]requested_item fm.sn is exist - process it [15:42:14]wFMCommunicate request_size=4 [15:42:14]MH_SAM_APDU [15:42:14]CAPDU: 80 11 00 00 [15:42:14]Write to MH i2c: E2 08 00 47 22 80 11 00 00 00 00 00 00 E3 [15:42:14]Write i2c OK [15:42:14]MH_I2C_Read... [15:42:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:14]Read from MH i2c: E2 [15:42:14]MH_I2C_Read... [15:42:14]Read from MH i2c: E2 17 00 [15:42:14]MH_I2C_Read... [15:42:14]Read from MH i2c: E2 17 00 47 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 39 [15:42:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:42:14]wFMCommunicate OK [15:42:14]requested_item fd.num is exist - process it [15:42:14]SAM_PROTO_GetFieldsCounters [15:42:14]wFMCommunicate request_size=4 [15:42:14]MH_SAM_APDU [15:42:14]CAPDU: 80 13 00 00 [15:42:14]Write to MH i2c: E2 08 00 48 22 80 13 00 00 00 00 00 00 E6 [15:42:14]Write i2c OK [15:42:14]MH_I2C_Read... [15:42:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:42:14]Read from MH i2c: E2 [15:42:14]MH_I2C_Read... [15:42:14]Read from MH i2c: E2 62 00 [15:42:14]MH_I2C_Read... [15:42:14]Read from MH i2c: E2 62 00 48 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DD 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [15:42: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DD 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:42:14]wFMCommunicate OK [15:42:14]SAM_PROTO_GetFieldsCounters done [15:42:14]requested_item shift.num is exist - process it [15:42:14]requested_item shift.opened is exist - process it [15:42:14]req_shift_opened [15:42:14]FM_GetShiftState [15:42:14]SAM_PROTO_GetShiftState [15:42:14]wFMCommunicate request_size=4 [15:42:14]MH_SAM_APDU [15:42:14]CAPDU: 80 13 01 00 [15:42:14]Write to MH i2c: E2 08 00 49 22 80 13 01 00 00 00 00 00 E8 [15:42:14]Write i2c OK [15:42:14]MH_I2C_Read... [15:42:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:14]Read from MH i2c: E2 [15:42:14]MH_I2C_Read... [15:42:14]Read from MH i2c: E2 0E 00 [15:42:14]MH_I2C_Read... [15:42:14]Read from MH i2c: E2 0E 00 49 22 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 C1 [15:42:14]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [15:42:14]wFMCommunicate OK [15:42:14]SAM_PROTO_GetShiftState done [15:42:14]FM_GetShiftState done [15:42:14]req_shift_opened done [15:42:14]requested_item shift.open_date is exist - process it [15:42:14]req_shift_open_date [15:42:14]req_shift_open_date done [15:42:14]produce_requested_data done [15:42:14]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165341,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [15:42:14]process_action_free close_receipt [15:42:14]json_value_free [15:42:14]json_value_free done [15:42:14]process_json_proto returns [15:42:14]Send response to host [15:42:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165341,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [15:42:14]free response buf [15:42:14]execute_script done [15:42:14]execute_script returns [15:42:14]free content buf [15:42:14]Sock 9.Close socket [15:42:14]Sock 9.Thread stoped [15:42:18]OFD Sender: No OFD packet to send [15:42:23]OFD Sender: No OFD packet to send [15:42:28]OFD Sender: No OFD packet to send [15:42:33]OFD Sender: No OFD packet to send [15:42:38]OFD Sender: No OFD packet to send [15:42:43]OFD Sender: No OFD packet to send [15:42:48]OFD Sender: No OFD packet to send [15:42:53]OFD Sender: No OFD packet to send [15:42:58]OFD Sender: No OFD packet to send [15:43:03]OFD Sender: No OFD packet to send [15:43:08]OFD Sender: No OFD packet to send [15:43:13]OFD Sender: No OFD packet to send [15:43:18]OFD Sender: No OFD packet to send [15:43:22]accept exits with 8 [15:43:22]New connection [15:43:22]New thread 3066854756 created [15:43:22]Thread 3066711396 joined [15:43:22]Waiting for new connection... [15:43:22] Sock 8.Parse request [15:43:22]Sock 8.Check first char [15:43:22]Sock 8.First char is OK [15:43:22]request: POST /json_proto HTTP/1.0 [15:43:22]Method: POST [15:43:22]URL: /json_proto [15:43:22]Method is POST - this is cgi request [15:43:22]url: /json_proto [15:43:22]query_string will be loaded in cgi processing [15:43:22]execute_cgi json_proto POST (null) [15:43:22]execute_cgi path=json_proto method=POST [15:43:22]POST find Content-Length [15:43:22]Host: 172.17.56.4:8080 [15:43:22]Content-Length: 677 [15:43:22]Content-Type: application/json [15:43:22] [15:43:22]POST finish read [15:43:22]Found Content-Length = 677 [15:43:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459454", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:43:22]execute_script... [15:43:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459454", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:43:22]POST & json_proto [15:43:22]process_json_proto [15:43:22]json parsed OK: [15:43:22]protocol is kg_v1.0 [15:43:22]action value=close_receipt [15:43:22]process_action close_receipt [15:43:22]cmd_close_receipt [15:43:22]MH_GetDate [15:43:22]Write to MH i2c: F0 00 00 4A 22 5B [15:43:22]Write i2c OK [15:43:22]MH_I2C_Read... [15:43:22]Read from MH i2c: F0 [15:43:22]MH_I2C_Read... [15:43:22]Read from MH i2c: F0 09 00 [15:43:22]MH_I2C_Read... [15:43:22]Read from MH i2c: F0 09 00 4A 22 00 9B 43 95 66 C9 DC B2 64 F8 [15:43:22]GetLastDocTimeStamp 1721058132 [15:43:22]current date 1721058203 [15:43:22]FM_GetShiftState [15:43:22]SAM_PROTO_GetShiftState [15:43:22]wFMCommunicate request_size=4 [15:43:22]MH_SAM_APDU [15:43:22]CAPDU: 80 13 01 00 [15:43:22]Write to MH i2c: E2 08 00 4B 22 80 13 01 00 00 00 00 00 EA [15:43:22]Write i2c OK [15:43:22]MH_I2C_Read... [15:43:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:22]Read from MH i2c: E2 [15:43:22]MH_I2C_Read... [15:43:22]Read from MH i2c: E2 0E 00 [15:43:22]MH_I2C_Read... [15:43:22]Read from MH i2c: E2 0E 00 4B 22 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 C3 [15:43:22]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [15:43:22]wFMCommunicate OK [15:43:22]SAM_PROTO_GetShiftState done [15:43:22]FM_GetShiftState done [15:43:22]opened in 1721003876 [15:43:22]opened+sec_in_day 1721090276 [15:43:22]quantity*price = 40006 [15:43:22]sum+1 = 40007 [15:43:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 215 15.07.2024 15:43 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165342 ФПД: 168670750703474 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T154323&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165342&fm=168670750703474&tin=02508201610067®Number=0000000000090829&sum=40000 [15:43:23]StoreToDocumentArchive [15:43:23]shift 448 fd 165342 [15:43:23]save to /storage/0448/doc_00165342 [15:43:23]save last doc name /storage/0448/doc_00165342 to /storage/kkm_last_doc_name [15:43:23]save OK [15:43:23]Clear old archive folders... [15:43:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:43:23]tlvbuf is B6E90CA0 [15:43:23]SAM_PROTO_ClearQueue [15:43:23]wFMCommunicate request_size=4 [15:43:23]MH_SAM_APDU [15:43:23]CAPDU: 80 09 00 00 [15:43:23]Write to MH i2c: E2 08 00 58 22 80 09 00 00 00 00 00 00 EC [15:43:23]Write i2c OK [15:43:23]MH_I2C_Read... [15:43:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:43:23]Read from MH i2c: E2 [15:43:23]MH_I2C_Read... [15:43:23]Read from MH i2c: E2 03 00 [15:43:23]MH_I2C_Read... [15:43:23]Read from MH i2c: E2 03 00 58 22 00 90 00 EE [15:43:23]RAPDU: 90 00 [15:43:23]wFMCommunicate OK [15:43:23]SAM_PROTO_ClearQueue done [15:43:23]KKMCreateOFDPacket [15:43:23]OFDProtocolAddRootSTLVToBuf [15:43:23]FM_MakeSignedData [15:43:23]FM_MakeSignedData [15:43:23]SAM_PROTO_SignData [15:43:23]wFMCommunicate request_size=4 [15:43:23]MH_SAM_APDU [15:43:23]CAPDU: 80 0D 01 02 [15:43:23]Write to MH i2c: E2 08 00 59 22 80 0D 01 02 00 00 00 00 F4 [15:43:23]Write i2c OK [15:43:23]MH_I2C_Read... [15:43:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:43:23]Read from MH i2c: E2 [15:43:23]MH_I2C_Read... [15:43:23]Read from MH i2c: E2 03 00 [15:43:23]MH_I2C_Read... [15:43:23]Read from MH i2c: E2 03 00 59 22 00 90 00 EF [15:43:23]RAPDU: 90 00 [15:43:23]wFMCommunicate OK [15:43:23]wFMCommunicate request_size=255 [15:43:23]MH_SAM_APDU [15:43:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 9B 43 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DE 85 02 00 35 04 06 00 99 [15:43:23]Write to MH i2c: E2 02 01 5A 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 9B 43 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DE 85 02 00 35 04 06 00 99 00 00 BC [15:43:23]Write i2c OK [15:43:23]MH_I2C_Read... [15:43:23]OFD Sender: No OFD packet to send [15:43:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:23]Read from MH i2c: E2 [15:43:23]MH_I2C_Read... [15:43:23]Read from MH i2c: E2 03 00 [15:43:23]MH_I2C_Read... [15:43:23]Read from MH i2c: E2 03 00 5A 22 00 90 00 F0 [15:43:23]RAPDU: 90 00 [15:43:23]wFMCommunicate OK [15:43:23]wFMCommunicate request_size=10 [15:43:23]MH_SAM_APDU [15:43:23]CAPDU: 80 0D 02 02 05 67 B8 2D FF 72 [15:43:23]Write to MH i2c: E2 0D 00 5B 22 80 0D 02 02 05 00 67 B8 2D FF 72 00 00 BE [15:43:23]Write i2c OK [15:43:23]MH_I2C_Read... [15:43:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:23]Read from MH i2c: E2 [15:43:23]MH_I2C_Read... [15:43:23]Read from MH i2c: E2 03 00 [15:43:23]MH_I2C_Read... [15:43:23]Read from MH i2c: E2 03 00 5B 22 00 90 00 F1 [15:43:23]RAPDU: 90 00 [15:43:23]wFMCommunicate OK [15:43:23]wFMCommunicate request_size=4 [15:43:23]MH_SAM_APDU [15:43:23]CAPDU: 80 0D 03 02 [15:43:23]Write to MH i2c: E2 08 00 5C 22 80 0D 03 02 00 00 00 00 F9 [15:43:23]Write i2c OK [15:43:23]MH_I2C_Read... [15:43:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:43:23]Read from MH i2c: E2 [15:43:23]MH_I2C_Read... [15:43:23]Read from MH i2c: E2 0B 00 [15:43:23]MH_I2C_Read... [15:43:23]Read from MH i2c: E2 0B 00 5C 22 00 4B AC 34 DD 79 71 40 B4 90 00 E0 [15:43:23]RAPDU: 4B AC 34 DD 79 71 40 B4 90 00 [15:43:23]wFMCommunicate OK [15:43:23]SAM_PROTO_SignData done [15:43:23]FM_MakeSignedData done [15:43:23]CreateOFDProtocolMessage [15:43:23]wFMCommunicate request_size=4 [15:43:23]MH_SAM_APDU [15:43:23]CAPDU: 80 11 00 00 [15:43:23]Write to MH i2c: E2 08 00 5D 22 80 11 00 00 00 00 00 00 F9 [15:43:23]Write i2c OK [15:43:23]MH_I2C_Read... [15:43:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:23]Read from MH i2c: E2 [15:43:23]MH_I2C_Read... [15:43:23]Read from MH i2c: E2 17 00 [15:43:23]MH_I2C_Read... [15:43:23]Read from MH i2c: E2 17 00 5D 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4F [15:43:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:43:23]wFMCommunicate OK [15:43:23]CreateOFDProtocolMessage done [15:43:23]OFDSenderStorePacket 165342 [15:43:23]StoreOFDPacket docnum=165342 [15:43:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 AD 70 07 01 9E 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 9B 43 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DE 85 02 00 35 04 06 00 99 67 B8 2D FF 72 4B AC 34 DD 79 71 40 B4 [15:43:23]CheckFolder [15:43:23]dirname=/storage/ofd_packets [15:43:23]CheckFolder done [15:43:23]ProducePacketName [15:43:23]name=ofd_packets/00165342 [15:43:23]NVStorageSaveData ofd_packets/00165342 [15:43:23]File name is /storage/ofd_packets/00165342 [15:43:23]Write 301 bytes [15:43:23]NVStorageSaveData done [15:43:23]OFDSenderStorePacket done [15:43:23]KKMCreateOFDPacket done [15:43:23]NVStorageSaveData kkm_last_timestamp [15:43:23]File name is /storage/kkm_last_timestamp [15:43:23]Write 4 bytes [15:43:23]NVStorageSaveData done [15:43:23]ExternCall_PrintAddStr [15:43:23]wPrintStart [15:43:23]Write to MH i2c: 01 00 00 5E 22 80 [15:43:23]Write i2c OK [15:43:23]MH_I2C_Read... [15:43:23]Read from MH i2c: 01 [15:43:23]MH_I2C_Read... [15:43:23]Read from MH i2c: 01 07 00 [15:43:23]MH_I2C_Read... [15:43:23]Read from MH i2c: 01 07 00 5E 22 00 00 00 00 00 FF 0F 95 [15:43:23]RasterBufferAndPrint [15:43:23]line Счет N : (1)459454 [15:43:23]line ИНН: 02508201610067 [15:43:23]line Контрольно-Кассовый Чек [15:43:23]line ПРОДАЖА [15:43:23]line ТРК (МРК, ГНК) : 12 [15:43:23]line Товар: 2710124130 [15:43:23]line Аи-92-К-5 [15:43:23]line 6.080 * 65.80 [15:43:23]line = 400.06 [15:43:23]line НДС 12% НСП 1% [15:43:23]line > о реализуемом товаре [15:43:23]line ОКРУГЛЕНИЕ: -0.06 [15:43:23]line ИТОГО: 400.00 [15:43:23]line Внесено: 400.00 [15:43:23]line СДАЧА: 0.00 [15:43:23]line НСП 1% : 3.54 [15:43:23]line НДС 12% : 42.48 [15:43:23]line Наличными: 400.00 [15:43:23]line Безнал.: 0.00 [15:43:23]line Место: АЗС № 72 "Партнер Нефть" [15:43:23]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:43:23]line СНО: Общий режим [15:43:23]line Чек 215 15.07.2024 15:43 [15:43:23]line Смена: 448 ФФД: 1.0 [15:43:23]line ЗНМ: 0300000160 [15:43:23]line РНМ: 0000000000090829 [15:43:23]line Версия ККМ: 001 [15:43:23]line ФМ: 0000000000874718 [15:43:23]line ФД: 165342 [15:43:23]line ФПД: 168670750703474 [15:43:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T154323&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165342&fm=168670750703474&tin=02508201610067®Number=0000000000090829&sum=40000 [15:43:24]OFD Sender: Processing packet 165342 [packets to send 106, broken 105] [15:43:24]ProducePacketName [15:43:24]name=ofd_packets/00165342 [15:43:24]OFD Sender: To server: pG, [15:43:24]CommunicateWithHost lk.salyk.kg:30040 [15:43:24]ConnectInit lk.salyk.kg [15:43:24]written 0, free lines is 4095 [15:43:24]Connected sock=10 [15:43:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 AD 70 07 01 9E 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 9B 43 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DE 85 02 00 35 04 06 00 99 67 B8 2D FF 72 4B AC 34 DD 79 71 40 B4 [15:43:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 7A 08 47 00 87 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 DE 85 02 00 F4 03 04 00 25 EA 94 66 B6 04 01 00 00 B6 44 7F F2 62 F7 CF C6 [15:43:24]CommunicateWithHost err = 0 [15:43:24]CheckOFDResponse [15:43:24]1017 (14) - 77093643461234 [15:43:24]1041 (16) - 0000000000874718 [15:43:24]1040 (4) - 165342 [15:43:24]1012 (4) - 15.07.2024 09:21 [15:43:24]1206 (1) - 0 [15:43:24]OFD Sender: Remove packet 165342 [15:43:24]ProducePacketName [15:43:24]name=ofd_packets/00165342 [15:43:24]NVStorageDeleteData [15:43:24]Write to MH i2c: 01 00 00 88 22 AA [15:43:24]Write i2c OK [15:43:24]MH_I2C_Read... [15:43:24]Read from MH i2c: 01 [15:43:24]MH_I2C_Read... [15:43:24]Read from MH i2c: 01 07 00 [15:43:24]MH_I2C_Read... [15:43:24]Read from MH i2c: 01 07 00 88 22 00 00 00 00 00 F7 0C B4 [15:43:24]RasterBufferAndPrint [15:43:24]line [15:43:24]line [15:43:24]line [15:43:24]line [15:43:24]line [15:43:24]written 0, free lines is 3327 [15:43:24]MH_Cut [15:43:24]Write to MH i2c: D1 01 00 8F 22 01 83 [15:43:24]Write i2c OK [15:43:24]MH_I2C_Read... [15:43:24]Read from MH i2c: D1 [15:43:24]MH_I2C_Read... [15:43:24]Read from MH i2c: D1 01 00 [15:43:24]MH_I2C_Read... [15:43:24]Read from MH i2c: D1 01 00 8F 22 00 82 [15:43:24]Write to MH i2c: 01 00 00 90 22 B2 [15:43:24]Write i2c OK [15:43:24]MH_I2C_Read... [15:43:25]OFD Sender: No OFD packet to send [15:43:25]*** Cut start [15:43:25]*** Partial cut [15:43:25]*** CUTSNS_PIN = 1 [15:43:25]*** CUTSNS_PIN = 0 [15:43:25]*** Brake cut motor [15:43:26]Read from MH i2c: 01 [15:43:26]*** Stop cut motor [15:43:26]*** Cut end [15:43:26]MH_I2C_Read... [15:43:26]Read from MH i2c: 01 07 00 [15:43:26]MH_I2C_Read... [15:43:26]Read from MH i2c: 01 07 00 90 22 00 00 00 00 00 FF 0F C7 [15:43:26]process_action close_receipt done [15:43:26]requested_data is exist [15:43:26]produce_requested_data [15:43:26]requested_item fm.sn is exist - process it [15:43:26]wFMCommunicate request_size=4 [15:43:26]MH_SAM_APDU [15:43:26]CAPDU: 80 11 00 00 [15:43:26]Write to MH i2c: E2 08 00 91 22 80 11 00 00 00 00 00 00 2D [15:43:26]Write i2c OK [15:43:26]MH_I2C_Read... [15:43:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:26]Read from MH i2c: E2 [15:43:26]MH_I2C_Read... [15:43:26]Read from MH i2c: E2 17 00 [15:43:26]MH_I2C_Read... [15:43:26]Read from MH i2c: E2 17 00 91 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 83 [15:43:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:43:26]wFMCommunicate OK [15:43:26]requested_item fd.num is exist - process it [15:43:26]SAM_PROTO_GetFieldsCounters [15:43:26]wFMCommunicate request_size=4 [15:43:26]MH_SAM_APDU [15:43:26]CAPDU: 80 13 00 00 [15:43:26]Write to MH i2c: E2 08 00 92 22 80 13 00 00 00 00 00 00 30 [15:43:26]Write i2c OK [15:43:26]MH_I2C_Read... [15:43:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:43:26]Read from MH i2c: E2 [15:43:26]MH_I2C_Read... [15:43:26]Read from MH i2c: E2 62 00 [15:43:26]MH_I2C_Read... [15:43:26]Read from MH i2c: E2 62 00 92 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DE 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [15:43:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DE 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:43:26]wFMCommunicate OK [15:43:26]SAM_PROTO_GetFieldsCounters done [15:43:26]requested_item shift.num is exist - process it [15:43:26]requested_item shift.opened is exist - process it [15:43:26]req_shift_opened [15:43:26]FM_GetShiftState [15:43:26]SAM_PROTO_GetShiftState [15:43:26]wFMCommunicate request_size=4 [15:43:26]MH_SAM_APDU [15:43:26]CAPDU: 80 13 01 00 [15:43:26]Write to MH i2c: E2 08 00 93 22 80 13 01 00 00 00 00 00 32 [15:43:26]Write i2c OK [15:43:26]MH_I2C_Read... [15:43:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:26]Read from MH i2c: E2 [15:43:26]MH_I2C_Read... [15:43:26]Read from MH i2c: E2 0E 00 [15:43:26]MH_I2C_Read... [15:43:26]Read from MH i2c: E2 0E 00 93 22 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 0B [15:43:26]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [15:43:26]wFMCommunicate OK [15:43:26]SAM_PROTO_GetShiftState done [15:43:26]FM_GetShiftState done [15:43:26]req_shift_opened done [15:43:26]requested_item shift.open_date is exist - process it [15:43:26]req_shift_open_date [15:43:26]req_shift_open_date done [15:43:26]produce_requested_data done [15:43:26]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165342,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [15:43:26]process_action_free close_receipt [15:43:26]json_value_free [15:43:26]json_value_free done [15:43:26]process_json_proto returns [15:43:26]Send response to host [15:43:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165342,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [15:43:26]free response buf [15:43:26]execute_script done [15:43:26]execute_script returns [15:43:26]free content buf [15:43:26]Sock 8.Close socket [15:43:26]Sock 8.Thread stoped [15:43:30]OFD Sender: No OFD packet to send [15:43:35]OFD Sender: No OFD packet to send [15:43:40]OFD Sender: No OFD packet to send [15:43:45]OFD Sender: No OFD packet to send [15:43:50]OFD Sender: No OFD packet to send [15:43:55]OFD Sender: No OFD packet to send [15:44:00]OFD Sender: No OFD packet to send [15:44:05]OFD Sender: No OFD packet to send [15:44:10]OFD Sender: No OFD packet to send [15:44:15]OFD Sender: No OFD packet to send [15:44:20]OFD Sender: No OFD packet to send [15:44:25]OFD Sender: No OFD packet to send [15:44:30]OFD Sender: No OFD packet to send [15:44:35]OFD Sender: No OFD packet to send [15:44:40]OFD Sender: No OFD packet to send [15:44:45]OFD Sender: No OFD packet to send [15:44:50]OFD Sender: No OFD packet to send [15:44:55]OFD Sender: No OFD packet to send [15:45:00]OFD Sender: No OFD packet to send [15:45:05]OFD Sender: No OFD packet to send [15:45:10]OFD Sender: No OFD packet to send [15:45:15]OFD Sender: No OFD packet to send [15:45:19]accept exits with 9 [15:45:19]New connection [15:45:19]New thread 3066711396 created [15:45:19]Thread 3066854756 joined [15:45:19]Waiting for new connection... [15:45:19] Sock 9.Parse request [15:45:19]Sock 9.Check first char [15:45:19]Sock 9.First char is OK [15:45:19]request: POST /json_proto HTTP/1.0 [15:45:19]Method: POST [15:45:19]URL: /json_proto [15:45:19]Method is POST - this is cgi request [15:45:19]url: /json_proto [15:45:19]query_string will be loaded in cgi processing [15:45:19]execute_cgi json_proto POST (null) [15:45:19]execute_cgi path=json_proto method=POST [15:45:19]POST find Content-Length [15:45:19]Host: 172.17.56.4:8080 [15:45:19]Content-Length: 677 [15:45:19]Content-Type: application/json [15:45:19] [15:45:19]POST finish read [15:45:19]Found Content-Length = 677 [15:45:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459456", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:19]execute_script... [15:45: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)459456", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:19]POST & json_proto [15:45:19]process_json_proto [15:45:19]json parsed OK: [15:45:19]protocol is kg_v1.0 [15:45:19]action value=close_receipt [15:45:19]process_action close_receipt [15:45:19]cmd_close_receipt [15:45:19]MH_GetDate [15:45:19]Write to MH i2c: F0 00 00 94 22 A5 [15:45:19]Write i2c OK [15:45:19]MH_I2C_Read... [15:45:19]Read from MH i2c: F0 [15:45:19]MH_I2C_Read... [15:45:19]Read from MH i2c: F0 09 00 [15:45:19]MH_I2C_Read... [15:45:19]Read from MH i2c: F0 09 00 94 22 00 11 44 95 66 C9 DC B2 64 B9 [15:45:19]GetLastDocTimeStamp 1721058203 [15:45:19]current date 1721058321 [15:45:19]FM_GetShiftState [15:45:19]SAM_PROTO_GetShiftState [15:45:19]wFMCommunicate request_size=4 [15:45:19]MH_SAM_APDU [15:45:19]CAPDU: 80 13 01 00 [15:45:19]Write to MH i2c: E2 08 00 95 22 80 13 01 00 00 00 00 00 34 [15:45:19]Write i2c OK [15:45:19]MH_I2C_Read... [15:45:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:19]Read from MH i2c: E2 [15:45:19]MH_I2C_Read... [15:45:19]Read from MH i2c: E2 0E 00 [15:45:19]MH_I2C_Read... [15:45:19]Read from MH i2c: E2 0E 00 95 22 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 0D [15:45:19]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [15:45:19]wFMCommunicate OK [15:45:19]SAM_PROTO_GetShiftState done [15:45:19]FM_GetShiftState done [15:45:19]opened in 1721003876 [15:45:19]opened+sec_in_day 1721090276 [15:45:19]quantity*price = 50008 [15:45:19]sum+1 = 50009 [15:45:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 216 15.07.2024 15:45 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165343 ФПД: 8555960885740 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T154521&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165343&fm=8555960885740&tin=02508201610067®Number=0000000000090829&sum=50000 [15:45:20]StoreToDocumentArchive [15:45:20]shift 448 fd 165343 [15:45:20]save to /storage/0448/doc_00165343 [15:45:20]save last doc name /storage/0448/doc_00165343 to /storage/kkm_last_doc_name [15:45:20]save OK [15:45:20]Clear old archive folders... [15:45:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:45:20]tlvbuf is 018232E0 [15:45:20]SAM_PROTO_ClearQueue [15:45:20]wFMCommunicate request_size=4 [15:45:20]MH_SAM_APDU [15:45:20]CAPDU: 80 09 00 00 [15:45:20]Write to MH i2c: E2 08 00 A2 22 80 09 00 00 00 00 00 00 36 [15:45:20]Write i2c OK [15:45:20]MH_I2C_Read... [15:45:20]Read from MH i2c: E2 [15:45:20]MH_I2C_Read... [15:45:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:45:20]Read from MH i2c: E2 03 00 [15:45:20]MH_I2C_Read... [15:45:20]Read from MH i2c: E2 03 00 A2 22 00 90 00 38 [15:45:20]RAPDU: 90 00 [15:45:20]wFMCommunicate OK [15:45:20]SAM_PROTO_ClearQueue done [15:45:20]KKMCreateOFDPacket [15:45:20]OFDProtocolAddRootSTLVToBuf [15:45:20]FM_MakeSignedData [15:45:20]FM_MakeSignedData [15:45:20]SAM_PROTO_SignData [15:45:20]wFMCommunicate request_size=4 [15:45:20]MH_SAM_APDU [15:45:20]CAPDU: 80 0D 01 02 [15:45:20]Write to MH i2c: E2 08 00 A3 22 80 0D 01 02 00 00 00 00 3E [15:45:20]Write i2c OK [15:45:20]MH_I2C_Read... [15:45:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:45:20]Read from MH i2c: E2 [15:45:20]MH_I2C_Read... [15:45:20]Read from MH i2c: E2 03 00 [15:45:20]MH_I2C_Read... [15:45:20]Read from MH i2c: E2 03 00 A3 22 00 90 00 39 [15:45:20]RAPDU: 90 00 [15:45:20]wFMCommunicate OK [15:45:20]wFMCommunicate request_size=255 [15:45:20]MH_SAM_APDU [15:45:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 11 44 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DF 85 02 00 35 04 06 00 07 [15:45:20]Write to MH i2c: E2 02 01 A4 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 11 44 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DF 85 02 00 35 04 06 00 07 00 00 0D [15:45:20]Write i2c OK [15:45:20]MH_I2C_Read... [15:45:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:20]Read from MH i2c: E2 [15:45:20]MH_I2C_Read... [15:45:20]Read from MH i2c: E2 03 00 [15:45:20]MH_I2C_Read... [15:45:20]Read from MH i2c: E2 03 00 A4 22 00 90 00 3A [15:45:20]RAPDU: 90 00 [15:45:20]wFMCommunicate OK [15:45:20]wFMCommunicate request_size=10 [15:45:20]MH_SAM_APDU [15:45:20]CAPDU: 80 0D 02 02 05 C8 17 02 61 EC [15:45:20]Write to MH i2c: E2 0D 00 A5 22 80 0D 02 02 05 00 C8 17 02 61 EC 00 00 79 [15:45:20]Write i2c OK [15:45:20]MH_I2C_Read... [15:45:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:21]Read from MH i2c: E2 [15:45:21]MH_I2C_Read... [15:45:21]Read from MH i2c: E2 03 00 [15:45:21]MH_I2C_Read... [15:45:21]Read from MH i2c: E2 03 00 A5 22 00 90 00 3B [15:45:21]RAPDU: 90 00 [15:45:21]wFMCommunicate OK [15:45:21]wFMCommunicate request_size=4 [15:45:21]MH_SAM_APDU [15:45:21]CAPDU: 80 0D 03 02 [15:45:21]Write to MH i2c: E2 08 00 A6 22 80 0D 03 02 00 00 00 00 43 [15:45:21]Write i2c OK [15:45:21]MH_I2C_Read... [15:45:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:45:21]Read from MH i2c: E2 [15:45:21]MH_I2C_Read... [15:45:21]Read from MH i2c: E2 0B 00 [15:45:21]MH_I2C_Read... [15:45:21]Read from MH i2c: E2 0B 00 A6 22 00 A1 CF 9D CE 3B DB 25 30 90 00 8A [15:45:21]RAPDU: A1 CF 9D CE 3B DB 25 30 90 00 [15:45:21]wFMCommunicate OK [15:45:21]SAM_PROTO_SignData done [15:45:21]FM_MakeSignedData done [15:45:21]CreateOFDProtocolMessage [15:45:21]wFMCommunicate request_size=4 [15:45:21]MH_SAM_APDU [15:45:21]CAPDU: 80 11 00 00 [15:45:21]Write to MH i2c: E2 08 00 A7 22 80 11 00 00 00 00 00 00 43 [15:45:21]Write i2c OK [15:45:21]MH_I2C_Read... [15:45:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:21]Read from MH i2c: E2 [15:45:21]MH_I2C_Read... [15:45:21]Read from MH i2c: E2 17 00 [15:45:21]MH_I2C_Read... [15:45:21]Read from MH i2c: E2 17 00 A7 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 99 [15:45:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:45:21]wFMCommunicate OK [15:45:21]CreateOFDProtocolMessage done [15:45:21]OFDSenderStorePacket 165343 [15:45:21]StoreOFDPacket docnum=165343 [15:45:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 27 F6 07 01 FA 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 11 44 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DF 85 02 00 35 04 06 00 07 C8 17 02 61 EC A1 CF 9D CE 3B DB 25 30 [15:45:21]CheckFolder [15:45:21]dirname=/storage/ofd_packets [15:45:21]CheckFolder done [15:45:21]ProducePacketName [15:45:21]name=ofd_packets/00165343 [15:45:21]NVStorageSaveData ofd_packets/00165343 [15:45:21]File name is /storage/ofd_packets/00165343 [15:45:21]Write 301 bytes [15:45:21]NVStorageSaveData done [15:45:21]OFDSenderStorePacket done [15:45:21]KKMCreateOFDPacket done [15:45:21]NVStorageSaveData kkm_last_timestamp [15:45:21]File name is /storage/kkm_last_timestamp [15:45:21]Write 4 bytes [15:45:21]NVStorageSaveData done [15:45:21]ExternCall_PrintAddStr [15:45:21]wPrintStart [15:45:21]Write to MH i2c: 01 00 00 A8 22 CA [15:45:21]Write i2c OK [15:45:21]MH_I2C_Read... [15:45:21]Read from MH i2c: 01 [15:45:21]MH_I2C_Read... [15:45:21]Read from MH i2c: 01 07 00 [15:45:21]MH_I2C_Read... [15:45:21]Read from MH i2c: 01 07 00 A8 22 00 00 00 00 00 FF 0F DF [15:45:21]RasterBufferAndPrint [15:45:21]line Счет N : (1)459456 [15:45:21]line ИНН: 02508201610067 [15:45:21]line Контрольно-Кассовый Чек [15:45:21]line ПРОДАЖА [15:45:21]line ТРК (МРК, ГНК) : 22 [15:45:21]line Товар: 2710124130 [15:45:21]line Аи-92-К-5 [15:45:21]line 7.600 * 65.80 [15:45:21]line = 500.08 [15:45:21]line НДС 12% НСП 1% [15:45:21]line > о реализуемом товаре [15:45:21]line ОКРУГЛЕНИЕ: -0.08 [15:45:21]line ИТОГО: 500.00 [15:45:21]line Внесено: 500.00 [15:45:21]line СДАЧА: 0.00 [15:45:21]line НСП 1% : 4.42 [15:45:21]line НДС 12% : 53.11 [15:45:21]line Наличными: 500.00 [15:45:21]line Безнал.: 0.00 [15:45:21]line Место: АЗС № 72 "Партнер Нефть" [15:45:21]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:45:21]line СНО: Общий режим [15:45:21]line Чек 216 15.07.2024 15:45 [15:45:21]line Смена: 448 ФФД: 1.0 [15:45:21]line ЗНМ: 0300000160 [15:45:21]line РНМ: 0000000000090829 [15:45:21]line Версия ККМ: 001 [15:45:21]line ФМ: 0000000000874718 [15:45:21]line ФД: 165343 [15:45:21]line ФПД: 8555960885740 [15:45:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T154521&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165343&fm=8555960885740&tin=02508201610067®Number=0000000000090829&sum=50000 [15:45:21]OFD Sender: Processing packet 165343 [packets to send 106, broken 105] [15:45:21]ProducePacketName [15:45:21]name=ofd_packets/00165343 [15:45:21]OFD Sender: To server: pG, [15:45:21]CommunicateWithHost lk.salyk.kg:30040 [15:45:21]ConnectInit lk.salyk.kg [15:45:21]written 0, free lines is 4095 [15:45:21]Connected sock=10 [15:45:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 27 F6 07 01 FA 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 11 44 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DF 85 02 00 35 04 06 00 07 C8 17 02 61 EC A1 CF 9D CE 3B DB 25 30 [15:45:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 D5 2C 47 00 73 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 DF 85 02 00 F4 03 04 00 9B EA 94 66 B6 04 01 00 00 99 E8 60 40 4F 1B C2 0D [15:45:21]CommunicateWithHost err = 0 [15:45:21]CheckOFDResponse [15:45:21]1017 (14) - 77093643461234 [15:45:21]1041 (16) - 0000000000874718 [15:45:21]1040 (4) - 165343 [15:45:21]1012 (4) - 15.07.2024 09:23 [15:45:21]1206 (1) - 0 [15:45:21]OFD Sender: Remove packet 165343 [15:45:21]ProducePacketName [15:45:21]name=ofd_packets/00165343 [15:45:21]NVStorageDeleteData [15:45:21]Write to MH i2c: 01 00 00 D2 22 F4 [15:45:21]Write i2c OK [15:45:21]MH_I2C_Read... [15:45:21]Read from MH i2c: 01 [15:45:21]MH_I2C_Read... [15:45:21]Read from MH i2c: 01 07 00 [15:45:21]MH_I2C_Read... [15:45:21]Read from MH i2c: 01 07 00 D2 22 00 00 00 00 00 F3 0C FA [15:45:21]RasterBufferAndPrint [15:45:21]line [15:45:21]line [15:45:21]line [15:45:21]line [15:45:21]line [15:45:21]written 0, free lines is 3322 [15:45:21]MH_Cut [15:45:21]Write to MH i2c: D1 01 00 D9 22 01 CD [15:45:21]Write i2c OK [15:45:21]MH_I2C_Read... [15:45:21]Read from MH i2c: D1 [15:45:21]MH_I2C_Read... [15:45:21]Read from MH i2c: D1 01 00 [15:45:21]MH_I2C_Read... [15:45:21]Read from MH i2c: D1 01 00 D9 22 00 CC [15:45:21]Write to MH i2c: 01 00 00 DA 22 FC [15:45:21]Write i2c OK [15:45:21]MH_I2C_Read... [15:45:22]OFD Sender: No OFD packet to send [15:45:22]*** Cut start [15:45:22]*** Partial cut [15:45:22]*** CUTSNS_PIN = 1 [15:45:22]*** CUTSNS_PIN = 0 [15:45:22]*** Brake cut motor [15:45:23]Read from MH i2c: 01 [15:45:23]MH_I2C_Read... [15:45:23]*** Stop cut motor [15:45:23]*** Cut end [15:45:23]Read from MH i2c: 01 07 00 [15:45:23]MH_I2C_Read... [15:45:23]Read from MH i2c: 01 07 00 DA 22 00 00 00 00 00 FF 0F 11 [15:45:23]process_action close_receipt done [15:45:23]requested_data is exist [15:45:23]produce_requested_data [15:45:23]requested_item fm.sn is exist - process it [15:45:23]wFMCommunicate request_size=4 [15:45:23]MH_SAM_APDU [15:45:23]CAPDU: 80 11 00 00 [15:45:23]Write to MH i2c: E2 08 00 DB 22 80 11 00 00 00 00 00 00 77 [15:45:23]Write i2c OK [15:45:23]MH_I2C_Read... [15:45:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:23]Read from MH i2c: E2 [15:45:23]MH_I2C_Read... [15:45:23]Read from MH i2c: E2 17 00 [15:45:23]MH_I2C_Read... [15:45:23]Read from MH i2c: E2 17 00 DB 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CD [15:45:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:45:23]wFMCommunicate OK [15:45:23]requested_item fd.num is exist - process it [15:45:23]SAM_PROTO_GetFieldsCounters [15:45:23]wFMCommunicate request_size=4 [15:45:23]MH_SAM_APDU [15:45:23]CAPDU: 80 13 00 00 [15:45:23]Write to MH i2c: E2 08 00 DC 22 80 13 00 00 00 00 00 00 7A [15:45:23]Write i2c OK [15:45:23]MH_I2C_Read... [15:45:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:45:23]Read from MH i2c: E2 [15:45:23]MH_I2C_Read... [15:45:23]Read from MH i2c: E2 62 00 [15:45:23]MH_I2C_Read... [15:45:23]Read from MH i2c: E2 62 00 DC 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DF 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [15:45:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 DF 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:45:23]wFMCommunicate OK [15:45:23]SAM_PROTO_GetFieldsCounters done [15:45:23]requested_item shift.num is exist - process it [15:45:23]requested_item shift.opened is exist - process it [15:45:23]req_shift_opened [15:45:23]FM_GetShiftState [15:45:23]SAM_PROTO_GetShiftState [15:45:23]wFMCommunicate request_size=4 [15:45:23]MH_SAM_APDU [15:45:23]CAPDU: 80 13 01 00 [15:45:23]Write to MH i2c: E2 08 00 DD 22 80 13 01 00 00 00 00 00 7C [15:45:23]Write i2c OK [15:45:23]MH_I2C_Read... [15:45:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:23]Read from MH i2c: E2 [15:45:23]MH_I2C_Read... [15:45:23]Read from MH i2c: E2 0E 00 [15:45:23]MH_I2C_Read... [15:45:23]Read from MH i2c: E2 0E 00 DD 22 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 55 [15:45:23]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [15:45:23]wFMCommunicate OK [15:45:23]SAM_PROTO_GetShiftState done [15:45:23]FM_GetShiftState done [15:45:23]req_shift_opened done [15:45:23]requested_item shift.open_date is exist - process it [15:45:23]req_shift_open_date [15:45:23]req_shift_open_date done [15:45:23]produce_requested_data done [15:45:23]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165343,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [15:45:23]process_action_free close_receipt [15:45:23]json_value_free [15:45:23]json_value_free done [15:45:23]process_json_proto returns [15:45:23]Send response to host [15:45:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165343,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [15:45:23]free response buf [15:45:23]execute_script done [15:45:23]execute_script returns [15:45:23]free content buf [15:45:23]Sock 9.Close socket [15:45:23]Sock 9.Thread stoped [15:45:27]OFD Sender: No OFD packet to send [15:45:32]OFD Sender: No OFD packet to send [15:45:37]OFD Sender: No OFD packet to send [15:45:37]accept exits with 8 [15:45:37]New connection [15:45:37]New thread 3066854756 created [15:45:37]Thread 3066711396 joined [15:45:37]Waiting for new connection... [15:45:37] Sock 8.Parse request [15:45:37]Sock 8.Check first char [15:45:37]Sock 8.First char is OK [15:45:37]request: POST /json_proto HTTP/1.0 [15:45:37]Method: POST [15:45:37]URL: /json_proto [15:45:37]Method is POST - this is cgi request [15:45:37]url: /json_proto [15:45:37]query_string will be loaded in cgi processing [15:45:37]execute_cgi json_proto POST (null) [15:45:37]execute_cgi path=json_proto method=POST [15:45:37]POST find Content-Length [15:45:37]Host: 172.17.56.4:8080 [15:45:37]Content-Length: 843 [15:45:37]Content-Type: application/json [15:45:37] [15:45:37]POST finish read [15:45:37]Found Content-Length = 843 [15:45:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459455", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 15.340, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:37]execute_script... [15:45:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459455", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 15.340, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:37]POST & json_proto [15:45:37]process_json_proto [15:45:37]json parsed OK: [15:45:37]protocol is kg_v1.0 [15:45:37]action value=close_receipt [15:45:37]process_action close_receipt [15:45:37]cmd_close_receipt [15:45:37]MH_GetDate [15:45:37]Write to MH i2c: F0 00 00 DE 22 EF [15:45:37]Write i2c OK [15:45:37]MH_I2C_Read... [15:45:37]Read from MH i2c: F0 [15:45:37]MH_I2C_Read... [15:45:37]Read from MH i2c: F0 09 00 [15:45:37]MH_I2C_Read... [15:45:37]Read from MH i2c: F0 09 00 DE 22 00 23 44 95 66 C9 DC B2 64 15 [15:45:37]GetLastDocTimeStamp 1721058321 [15:45:37]current date 1721058339 [15:45:37]FM_GetShiftState [15:45:37]SAM_PROTO_GetShiftState [15:45:37]wFMCommunicate request_size=4 [15:45:37]MH_SAM_APDU [15:45:37]CAPDU: 80 13 01 00 [15:45:37]Write to MH i2c: E2 08 00 DF 22 80 13 01 00 00 00 00 00 7E [15:45:37]Write i2c OK [15:45:37]MH_I2C_Read... [15:45:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:37]Read from MH i2c: E2 [15:45:37]MH_I2C_Read... [15:45:37]Read from MH i2c: E2 0E 00 [15:45:37]MH_I2C_Read... [15:45:37]Read from MH i2c: E2 0E 00 DF 22 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 57 [15:45:37]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [15:45:37]wFMCommunicate OK [15:45:37]SAM_PROTO_GetShiftState done [15:45:37]FM_GetShiftState done [15:45:37]opened in 1721003876 [15:45:37]opened+sec_in_day 1721090276 [15:45:37]quantity*price = 100047 [15:45:37]sum+1 = 100048 [15:45:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.47 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 0.00 Безнал.: 1000.47 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 217 15.07.2024 15:45 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874718 ФД: 165344 ФПД: 203682541425382 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T154539&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165344&fm=203682541425382&tin=02508201610067®Number=0000000000090829&sum=100047 [15:45:38]StoreToDocumentArchive [15:45:38]shift 448 fd 165344 [15:45:38]save to /storage/0448/doc_00165344 [15:45:38]save last doc name /storage/0448/doc_00165344 to /storage/kkm_last_doc_name [15:45:38]save OK [15:45:38]Clear old archive folders... [15:45:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:45:38]tlvbuf is 018898F0 [15:45:38]SAM_PROTO_ClearQueue [15:45:38]wFMCommunicate request_size=4 [15:45:38]MH_SAM_APDU [15:45:38]CAPDU: 80 09 00 00 [15:45:38]Write to MH i2c: E2 08 00 EC 22 80 09 00 00 00 00 00 00 80 [15:45:38]Write i2c OK [15:45:38]MH_I2C_Read... [15:45:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:45:38]Read from MH i2c: E2 [15:45:38]MH_I2C_Read... [15:45:38]Read from MH i2c: E2 03 00 [15:45:38]MH_I2C_Read... [15:45:38]Read from MH i2c: E2 03 00 EC 22 00 90 00 82 [15:45:38]RAPDU: 90 00 [15:45:38]wFMCommunicate OK [15:45:38]SAM_PROTO_ClearQueue done [15:45:38]KKMCreateOFDPacket [15:45:38]OFDProtocolAddRootSTLVToBuf [15:45:38]FM_MakeSignedData [15:45:38]FM_MakeSignedData [15:45:38]SAM_PROTO_SignData [15:45:38]wFMCommunicate request_size=4 [15:45:38]MH_SAM_APDU [15:45:38]CAPDU: 80 0D 01 02 [15:45:38]Write to MH i2c: E2 08 00 ED 22 80 0D 01 02 00 00 00 00 88 [15:45:38]Write i2c OK [15:45:38]MH_I2C_Read... [15:45:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:45:39]Read from MH i2c: E2 [15:45:39]MH_I2C_Read... [15:45:39]Read from MH i2c: E2 03 00 [15:45:39]MH_I2C_Read... [15:45:39]Read from MH i2c: E2 03 00 ED 22 00 90 00 83 [15:45:39]RAPDU: 90 00 [15:45:39]wFMCommunicate OK [15:45:39]wFMCommunicate request_size=255 [15:45:39]MH_SAM_APDU [15:45:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 3B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 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 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 23 44 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E0 85 02 00 35 04 06 00 B9 [15:45:39]Write to MH i2c: E2 02 01 EE 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 3B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 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 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 23 44 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E0 85 02 00 35 04 06 00 B9 00 00 91 [15:45:39]Write i2c OK [15:45:39]MH_I2C_Read... [15:45:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:39]Read from MH i2c: E2 [15:45:39]MH_I2C_Read... [15:45:39]Read from MH i2c: E2 03 00 [15:45:39]MH_I2C_Read... [15:45:39]Read from MH i2c: E2 03 00 EE 22 00 90 00 84 [15:45:39]RAPDU: 90 00 [15:45:39]wFMCommunicate OK [15:45:39]wFMCommunicate request_size=10 [15:45:39]MH_SAM_APDU [15:45:39]CAPDU: 80 0D 02 02 05 3F 89 87 52 E6 [15:45:39]Write to MH i2c: E2 0D 00 EF 22 80 0D 02 02 05 00 3F 89 87 52 E6 00 00 1C [15:45:39]Write i2c OK [15:45:39]MH_I2C_Read... [15:45:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:39]Read from MH i2c: E2 [15:45:39]MH_I2C_Read... [15:45:39]Read from MH i2c: E2 03 00 [15:45:39]MH_I2C_Read... [15:45:39]Read from MH i2c: E2 03 00 EF 22 00 90 00 85 [15:45:39]RAPDU: 90 00 [15:45:39]wFMCommunicate OK [15:45:39]wFMCommunicate request_size=4 [15:45:39]MH_SAM_APDU [15:45:39]CAPDU: 80 0D 03 02 [15:45:39]Write to MH i2c: E2 08 00 F0 22 80 0D 03 02 00 00 00 00 8D [15:45:39]Write i2c OK [15:45:39]MH_I2C_Read... [15:45:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:45:39]Read from MH i2c: E2 [15:45:39]MH_I2C_Read... [15:45:39]Read from MH i2c: E2 0B 00 [15:45:39]MH_I2C_Read... [15:45:39]Read from MH i2c: E2 0B 00 F0 22 00 D5 D2 63 DB 1C 91 FE AE 90 00 CC [15:45:39]RAPDU: D5 D2 63 DB 1C 91 FE AE 90 00 [15:45:39]wFMCommunicate OK [15:45:39]SAM_PROTO_SignData done [15:45:39]FM_MakeSignedData done [15:45:39]CreateOFDProtocolMessage [15:45:39]wFMCommunicate request_size=4 [15:45:39]MH_SAM_APDU [15:45:39]CAPDU: 80 11 00 00 [15:45:39]Write to MH i2c: E2 08 00 F1 22 80 11 00 00 00 00 00 00 8D [15:45:39]Write i2c OK [15:45:39]MH_I2C_Read... [15:45:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:39]Read from MH i2c: E2 [15:45:39]MH_I2C_Read... [15:45:39]Read from MH i2c: E2 17 00 [15:45:39]MH_I2C_Read... [15:45:39]Read from MH i2c: E2 17 00 F1 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E3 [15:45:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:45:39]wFMCommunicate OK [15:45:39]CreateOFDProtocolMessage done [15:45:39]OFDSenderStorePacket 165344 [15:45:39]StoreOFDPacket docnum=165344 [15:45:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 DD B2 07 01 A9 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 EC 3B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 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 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 23 44 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E0 85 02 00 35 04 06 00 B9 3F 89 87 52 E6 D5 D2 63 DB 1C 91 FE AE [15:45:39]CheckFolder [15:45:39]dirname=/storage/ofd_packets [15:45:39]CheckFolder done [15:45:39]ProducePacketName [15:45:39]name=ofd_packets/00165344 [15:45:39]NVStorageSaveData ofd_packets/00165344 [15:45:39]File name is /storage/ofd_packets/00165344 [15:45:39]Write 301 bytes [15:45:39]NVStorageSaveData done [15:45:39]OFDSenderStorePacket done [15:45:39]KKMCreateOFDPacket done [15:45:39]NVStorageSaveData kkm_last_timestamp [15:45:39]File name is /storage/kkm_last_timestamp [15:45:39]Write 4 bytes [15:45:39]NVStorageSaveData done [15:45:39]ExternCall_PrintAddStr [15:45:39]wPrintStart [15:45:39]Write to MH i2c: 01 00 00 F2 22 14 [15:45:39]Write i2c OK [15:45:39]MH_I2C_Read... [15:45:39]Read from MH i2c: 01 [15:45:39]MH_I2C_Read... [15:45:39]Read from MH i2c: 01 07 00 [15:45:39]MH_I2C_Read... [15:45:39]Read from MH i2c: 01 07 00 F2 22 00 00 00 00 00 FF 0F 29 [15:45:39]RasterBufferAndPrint [15:45:39]line Счет N : (1)459455 [15:45:39]line ИНН: 02508201610067 [15:45:39]line Контрольно-Кассовый Чек [15:45:39]line ПРОДАЖА [15:45:39]line ТРК (МРК, ГНК) : 12 [15:45:39]line Товар: 2710124130 [15:45:39]line Аи-92-К-5 [15:45:39]line 15.340 * 65.22 [15:45:39]line = 1000.47 [15:45:39]line НДС 12% НСП 1% [15:45:39]line > о реализуемом товаре [15:45:39]line ИТОГО: 1000.47 [15:45:39]line НСП 1% : 8.85 [15:45:39]line НДС 12% : 106.24 [15:45:39]line Наличными: 0.00 [15:45:39]line Безнал.: 1000.47 [15:45:39]line Место: АЗС № 72 "Партнер Нефть" [15:45:39]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:45:39]line СНО: Общий режим [15:45:39]line Чек 217 15.07.2024 15:45 [15:45:39]line Смена: 448 ФФД: 1.0 [15:45:39]line ЗНМ: 0300000160 [15:45:39]line РНМ: 0000000000090829 [15:45:39]line Версия ККМ: 001 [15:45:39]line Платежная система: АКБ Кыргызстан [15:45:39]line ФМ: 0000000000874718 [15:45:39]line ФД: 165344 [15:45:39]line ФПД: 203682541425382 [15:45:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T154539&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165344&fm=203682541425382&tin=02508201610067®Number=0000000000090829&sum=100047 [15:45:39]written 0, free lines is 4095 [15:45:39]OFD Sender: Processing packet 165344 [packets to send 106, broken 105] [15:45:39]ProducePacketName [15:45:39]name=ofd_packets/00165344 [15:45:39]OFD Sender: To server: pG, [15:45:39]CommunicateWithHost lk.salyk.kg:30040 [15:45:39]ConnectInit lk.salyk.kg [15:45:39]Connected sock=10 [15:45:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 DD B2 07 01 A9 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 EC 3B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 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 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 23 44 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E0 85 02 00 35 04 06 00 B9 3F 89 87 52 E6 D5 D2 63 DB 1C 91 FE AE [15:45:39]Write to MH i2c: 01 00 00 1B 23 3E [15:45:39]Write i2c OK [15:45:39]MH_I2C_Read... [15:45:39]Read from MH i2c: 01 [15:45:39]MH_I2C_Read... [15:45:39]Read from MH i2c: 01 07 00 [15:45:39]MH_I2C_Read... [15:45:39]Read from MH i2c: 01 07 00 1B 23 00 00 00 00 00 19 0D 6B [15:45:39]RasterBufferAndPrint [15:45:39]line [15:45:39]line [15:45:39]line [15:45:39]line [15:45:39]line [15:45:39]written 0, free lines is 3359 [15:45:39]MH_Cut [15:45:39]Write to MH i2c: D1 01 00 22 23 01 17 [15:45:39]Write i2c OK [15:45:39]MH_I2C_Read... [15:45:39]Read from MH i2c: D1 [15:45:39]MH_I2C_Read... [15:45:39]Read from MH i2c: D1 01 00 [15:45:39]MH_I2C_Read... [15:45:39]Read from MH i2c: D1 01 00 22 23 00 16 [15:45:39]Write to MH i2c: 01 00 00 23 23 46 [15:45:39]Write i2c OK [15:45:39]MH_I2C_Read... [15:45:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 BD D2 47 00 D5 C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E0 85 02 00 F4 03 04 00 AD EA 94 66 B6 04 01 00 00 89 DC EB EA 31 B3 F0 36 [15:45:40]CommunicateWithHost err = 0 [15:45:40]CheckOFDResponse [15:45:40]1017 (14) - 77093643461234 [15:45:40]1041 (16) - 0000000000874718 [15:45:40]1040 (4) - 165344 [15:45:40]1012 (4) - 15.07.2024 09:23 [15:45:40]1206 (1) - 0 [15:45:40]OFD Sender: Remove packet 165344 [15:45:40]ProducePacketName [15:45:40]name=ofd_packets/00165344 [15:45:40]NVStorageDeleteData [15:45:40]*** Cut start [15:45:40]*** Partial cut [15:45:40]*** CUTSNS_PIN = 1 [15:45:40]*** CUTSNS_PIN = 0 [15:45:40]OFD Sender: No OFD packet to send [15:45:40]*** Brake cut motor [15:45:41]Read from MH i2c: 01 [15:45:41]MH_I2C_Read... [15:45:41]*** Stop cut motor [15:45:41]*** Cut end [15:45:41]Read from MH i2c: 01 07 00 [15:45:41]MH_I2C_Read... [15:45:41]Read from MH i2c: 01 07 00 23 23 00 00 00 00 00 FF 0F 5B [15:45:41]process_action close_receipt done [15:45:41]requested_data is exist [15:45:41]produce_requested_data [15:45:41]requested_item fm.sn is exist - process it [15:45:41]wFMCommunicate request_size=4 [15:45:41]MH_SAM_APDU [15:45:41]CAPDU: 80 11 00 00 [15:45:41]Write to MH i2c: E2 08 00 24 23 80 11 00 00 00 00 00 00 C1 [15:45:41]Write i2c OK [15:45:41]MH_I2C_Read... [15:45:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:41]Read from MH i2c: E2 [15:45:41]MH_I2C_Read... [15:45:41]Read from MH i2c: E2 17 00 [15:45:41]MH_I2C_Read... [15:45:41]Read from MH i2c: E2 17 00 24 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 17 [15:45:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:45:41]wFMCommunicate OK [15:45:41]requested_item fd.num is exist - process it [15:45:41]SAM_PROTO_GetFieldsCounters [15:45:41]wFMCommunicate request_size=4 [15:45:41]MH_SAM_APDU [15:45:41]CAPDU: 80 13 00 00 [15:45:41]Write to MH i2c: E2 08 00 25 23 80 13 00 00 00 00 00 00 C4 [15:45:41]Write i2c OK [15:45:41]MH_I2C_Read... [15:45:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:45:41]Read from MH i2c: E2 [15:45:41]MH_I2C_Read... [15:45:41]Read from MH i2c: E2 62 00 [15:45:41]MH_I2C_Read... [15:45:41]Read from MH i2c: E2 62 00 25 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E0 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [15:45: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E0 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:45:41]wFMCommunicate OK [15:45:41]SAM_PROTO_GetFieldsCounters done [15:45:41]requested_item shift.num is exist - process it [15:45:41]requested_item shift.opened is exist - process it [15:45:41]req_shift_opened [15:45:41]FM_GetShiftState [15:45:41]SAM_PROTO_GetShiftState [15:45:41]wFMCommunicate request_size=4 [15:45:41]MH_SAM_APDU [15:45:41]CAPDU: 80 13 01 00 [15:45:41]Write to MH i2c: E2 08 00 26 23 80 13 01 00 00 00 00 00 C6 [15:45:41]Write i2c OK [15:45:41]MH_I2C_Read... [15:45:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:41]Read from MH i2c: E2 [15:45:41]MH_I2C_Read... [15:45:41]Read from MH i2c: E2 0E 00 [15:45:41]MH_I2C_Read... [15:45:41]Read from MH i2c: E2 0E 00 26 23 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 9F [15:45:41]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [15:45:41]wFMCommunicate OK [15:45:41]SAM_PROTO_GetShiftState done [15:45:41]FM_GetShiftState done [15:45:41]req_shift_opened done [15:45:41]requested_item shift.open_date is exist - process it [15:45:41]req_shift_open_date [15:45:41]req_shift_open_date done [15:45:41]produce_requested_data done [15:45:41]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165344,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [15:45:41]process_action_free close_receipt [15:45:41]json_value_free [15:45:41]json_value_free done [15:45:41]process_json_proto returns [15:45:41]Send response to host [15:45:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165344,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [15:45:41]free response buf [15:45:41]execute_script done [15:45:41]execute_script returns [15:45:41]free content buf [15:45:41]Sock 8.Close socket [15:45:41]Sock 8.Thread stoped [15:45:45]OFD Sender: No OFD packet to send [15:45:50]OFD Sender: No OFD packet to send [15:45:55]OFD Sender: No OFD packet to send [15:46:00]OFD Sender: No OFD packet to send [15:46:05]OFD Sender: No OFD packet to send [15:46:10]OFD Sender: No OFD packet to send [15:46:15]OFD Sender: No OFD packet to send [15:46:20]OFD Sender: No OFD packet to send [15:46:25]OFD Sender: No OFD packet to send [15:46:30]OFD Sender: No OFD packet to send [15:46:35]OFD Sender: No OFD packet to send [15:46:40]OFD Sender: No OFD packet to send [15:46:45]OFD Sender: No OFD packet to send [15:46:50]OFD Sender: No OFD packet to send [15:46:55]OFD Sender: No OFD packet to send [15:47:00]OFD Sender: No OFD packet to send [15:47:05]OFD Sender: No OFD packet to send [15:47:10]OFD Sender: No OFD packet to send [15:47:15]OFD Sender: No OFD packet to send [15:47:20]OFD Sender: No OFD packet to send [15:47:25]OFD Sender: No OFD packet to send [15:47:30]OFD Sender: No OFD packet to send [15:47:35]OFD Sender: No OFD packet to send [15:47:40]OFD Sender: No OFD packet to send [15:47:45]OFD Sender: No OFD packet to send [15:47:50]OFD Sender: No OFD packet to send [15:47:55]OFD Sender: No OFD packet to send [15:48:00]OFD Sender: No OFD packet to send [15:48:04]accept exits with 9 [15:48:04]New connection [15:48:04]New thread 3066711396 created [15:48:04]Thread 3066854756 joined [15:48:04]Waiting for new connection... [15:48:04] Sock 9.Parse request [15:48:04]Sock 9.Check first char [15:48:04]Sock 9.First char is OK [15:48:04]request: POST /json_proto HTTP/1.0 [15:48:04]Method: POST [15:48:04]URL: /json_proto [15:48:04]Method is POST - this is cgi request [15:48:04]url: /json_proto [15:48:04]query_string will be loaded in cgi processing [15:48:04]execute_cgi json_proto POST (null) [15:48:04]execute_cgi path=json_proto method=POST [15:48:04]POST find Content-Length [15:48:04]Host: 172.17.56.4:8080 [15:48:04]Content-Length: 678 [15:48:04]Content-Type: application/json [15:48:04] [15:48:04]POST finish read [15:48:04]Found Content-Length = 678 [15:48:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459457", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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" ] } } [15:48:04]execute_script... [15:48: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)459457", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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" ] } } [15:48:04]POST & json_proto [15:48:04]process_json_proto [15:48:04]json parsed OK: [15:48:04]protocol is kg_v1.0 [15:48:04]action value=close_receipt [15:48:04]process_action close_receipt [15:48:04]cmd_close_receipt [15:48:04]MH_GetDate [15:48:04]Write to MH i2c: F0 00 00 27 23 39 [15:48:04]Write i2c OK [15:48:04]MH_I2C_Read... [15:48:04]Read from MH i2c: F0 [15:48:04]MH_I2C_Read... [15:48:04]Read from MH i2c: F0 09 00 [15:48:04]MH_I2C_Read... [15:48:04]Read from MH i2c: F0 09 00 27 23 00 B6 44 95 66 C9 DC B2 64 F2 [15:48:04]GetLastDocTimeStamp 1721058339 [15:48:04]current date 1721058486 [15:48:04]FM_GetShiftState [15:48:04]SAM_PROTO_GetShiftState [15:48:04]wFMCommunicate request_size=4 [15:48:04]MH_SAM_APDU [15:48:04]CAPDU: 80 13 01 00 [15:48:04]Write to MH i2c: E2 08 00 28 23 80 13 01 00 00 00 00 00 C8 [15:48:04]Write i2c OK [15:48:04]MH_I2C_Read... [15:48:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:04]Read from MH i2c: E2 [15:48:04]MH_I2C_Read... [15:48:04]Read from MH i2c: E2 0E 00 [15:48:04]MH_I2C_Read... [15:48:04]Read from MH i2c: E2 0E 00 28 23 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 A1 [15:48:04]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [15:48:04]wFMCommunicate OK [15:48:04]SAM_PROTO_GetShiftState done [15:48:04]FM_GetShiftState done [15:48:04]opened in 1721003876 [15:48:04]opened+sec_in_day 1721090276 [15:48:04]quantity*price = 70011 [15:48:04]sum+1 = 70012 [15:48:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 218 15.07.2024 15:48 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165345 ФПД: 146562367312728 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T154806&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165345&fm=146562367312728&tin=02508201610067®Number=0000000000090829&sum=70000 [15:48:05]StoreToDocumentArchive [15:48:05]shift 448 fd 165345 [15:48:05]save to /storage/0448/doc_00165345 [15:48:05]save last doc name /storage/0448/doc_00165345 to /storage/kkm_last_doc_name [15:48:05]save OK [15:48:05]Clear old archive folders... [15:48:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:48:05]tlvbuf is B6E90870 [15:48:05]SAM_PROTO_ClearQueue [15:48:05]wFMCommunicate request_size=4 [15:48:05]MH_SAM_APDU [15:48:05]CAPDU: 80 09 00 00 [15:48:05]Write to MH i2c: E2 08 00 35 23 80 09 00 00 00 00 00 00 CA [15:48:05]Write i2c OK [15:48:05]MH_I2C_Read... [15:48:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:48:05]Read from MH i2c: E2 [15:48:05]MH_I2C_Read... [15:48:05]Read from MH i2c: E2 03 00 [15:48:05]MH_I2C_Read... [15:48:05]Read from MH i2c: E2 03 00 35 23 00 90 00 CC [15:48:05]RAPDU: 90 00 [15:48:05]wFMCommunicate OK [15:48:05]SAM_PROTO_ClearQueue done [15:48:05]KKMCreateOFDPacket [15:48:05]OFDProtocolAddRootSTLVToBuf [15:48:05]FM_MakeSignedData [15:48:05]FM_MakeSignedData [15:48:05]SAM_PROTO_SignData [15:48:05]wFMCommunicate request_size=4 [15:48:05]MH_SAM_APDU [15:48:05]CAPDU: 80 0D 01 02 [15:48:05]Write to MH i2c: E2 08 00 36 23 80 0D 01 02 00 00 00 00 D2 [15:48:05]Write i2c OK [15:48:05]MH_I2C_Read... [15:48:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:48:05]Read from MH i2c: E2 [15:48:05]MH_I2C_Read... [15:48:05]Read from MH i2c: E2 03 00 [15:48:05]MH_I2C_Read... [15:48:05]Read from MH i2c: E2 03 00 36 23 00 90 00 CD [15:48:05]RAPDU: 90 00 [15:48:05]wFMCommunicate OK [15:48:05]wFMCommunicate request_size=255 [15:48:05]MH_SAM_APDU [15:48:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 DA 00 00 00 F4 03 04 00 B6 44 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E1 85 02 00 35 04 06 00 85 [15:48:06]Write to MH i2c: E2 02 01 37 23 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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 DA 00 00 00 F4 03 04 00 B6 44 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E1 85 02 00 35 04 06 00 85 00 00 0C [15:48:06]Write i2c OK [15:48:06]MH_I2C_Read... [15:48:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:06]Read from MH i2c: E2 [15:48:06]MH_I2C_Read... [15:48:06]Read from MH i2c: E2 03 00 [15:48:06]MH_I2C_Read... [15:48:06]Read from MH i2c: E2 03 00 37 23 00 90 00 CE [15:48:06]RAPDU: 90 00 [15:48:06]wFMCommunicate OK [15:48:06]wFMCommunicate request_size=10 [15:48:06]MH_SAM_APDU [15:48:06]CAPDU: 80 0D 02 02 05 4C 35 D7 53 58 [15:48:06]Write to MH i2c: E2 0D 00 38 23 80 0D 02 02 05 00 4C 35 D7 53 58 00 00 E2 [15:48:06]Write i2c OK [15:48:06]MH_I2C_Read... [15:48:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:06]Read from MH i2c: E2 [15:48:06]MH_I2C_Read... [15:48:06]Read from MH i2c: E2 03 00 [15:48:06]MH_I2C_Read... [15:48:06]Read from MH i2c: E2 03 00 38 23 00 90 00 CF [15:48:06]RAPDU: 90 00 [15:48:06]wFMCommunicate OK [15:48:06]wFMCommunicate request_size=4 [15:48:06]MH_SAM_APDU [15:48:06]CAPDU: 80 0D 03 02 [15:48:06]Write to MH i2c: E2 08 00 39 23 80 0D 03 02 00 00 00 00 D7 [15:48:06]Write i2c OK [15:48:06]MH_I2C_Read... [15:48:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:48:06]Read from MH i2c: E2 [15:48:06]MH_I2C_Read... [15:48:06]Read from MH i2c: E2 0B 00 [15:48:06]MH_I2C_Read... [15:48:06]Read from MH i2c: E2 0B 00 39 23 00 A0 B4 B2 DE 53 CC 8A 22 90 00 87 [15:48:06]RAPDU: A0 B4 B2 DE 53 CC 8A 22 90 00 [15:48:06]wFMCommunicate OK [15:48:06]SAM_PROTO_SignData done [15:48:06]FM_MakeSignedData done [15:48:06]CreateOFDProtocolMessage [15:48:06]wFMCommunicate request_size=4 [15:48:06]MH_SAM_APDU [15:48:06]CAPDU: 80 11 00 00 [15:48:06]Write to MH i2c: E2 08 00 3A 23 80 11 00 00 00 00 00 00 D7 [15:48:06]Write i2c OK [15:48:06]MH_I2C_Read... [15:48:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:06]Read from MH i2c: E2 [15:48:06]MH_I2C_Read... [15:48:06]Read from MH i2c: E2 17 00 [15:48:06]MH_I2C_Read... [15:48:06]Read from MH i2c: E2 17 00 3A 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2D [15:48:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:48:06]wFMCommunicate OK [15:48:06]CreateOFDProtocolMessage done [15:48:06]OFDSenderStorePacket 165345 [15:48:06]StoreOFDPacket docnum=165345 [15:48:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 93 21 07 01 5A 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 DA 00 00 00 F4 03 04 00 B6 44 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E1 85 02 00 35 04 06 00 85 4C 35 D7 53 58 A0 B4 B2 DE 53 CC 8A 22 [15:48:06]CheckFolder [15:48:06]dirname=/storage/ofd_packets [15:48:06]CheckFolder done [15:48:06]ProducePacketName [15:48:06]name=ofd_packets/00165345 [15:48:06]NVStorageSaveData ofd_packets/00165345 [15:48:06]File name is /storage/ofd_packets/00165345 [15:48:06]Write 301 bytes [15:48:06]NVStorageSaveData done [15:48:06]OFDSenderStorePacket done [15:48:06]KKMCreateOFDPacket done [15:48:06]NVStorageSaveData kkm_last_timestamp [15:48:06]File name is /storage/kkm_last_timestamp [15:48:06]Write 4 bytes [15:48:06]NVStorageSaveData done [15:48:06]ExternCall_PrintAddStr [15:48:06]wPrintStart [15:48:06]Write to MH i2c: 01 00 00 3B 23 5E [15:48:06]Write i2c OK [15:48:06]MH_I2C_Read... [15:48:06]Read from MH i2c: 01 [15:48:06]MH_I2C_Read... [15:48:06]Read from MH i2c: 01 07 00 [15:48:06]MH_I2C_Read... [15:48:06]Read from MH i2c: 01 07 00 3B 23 00 00 00 00 00 FF 0F 73 [15:48:06]RasterBufferAndPrint [15:48:06]line Счет N : (1)459457 [15:48:06]line ИНН: 02508201610067 [15:48:06]line Контрольно-Кассовый Чек [15:48:06]line ПРОДАЖА [15:48:06]line ТРК (МРК, ГНК) : 22 [15:48:06]line Товар: 2710124130 [15:48:06]line Аи-92-К-5 [15:48:06]line 10.640 * 65.80 [15:48:06]line = 700.11 [15:48:06]line НДС 12% НСП 1% [15:48:06]line > о реализуемом товаре [15:48:06]line ОКРУГЛЕНИЕ: -0.11 [15:48:06]line ИТОГО: 700.00 [15:48:06]line Внесено: 700.00 [15:48:06]line СДАЧА: 0.00 [15:48:06]line НСП 1% : 6.20 [15:48:06]line НДС 12% : 74.35 [15:48:06]line Наличными: 700.00 [15:48:06]line Безнал.: 0.00 [15:48:06]line Место: АЗС № 72 "Партнер Нефть" [15:48:06]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:48:06]line СНО: Общий режим [15:48:06]line Чек 218 15.07.2024 15:48 [15:48:06]line Смена: 448 ФФД: 1.0 [15:48:06]line ЗНМ: 0300000160 [15:48:06]line РНМ: 0000000000090829 [15:48:06]line Версия ККМ: 001 [15:48:06]line ФМ: 0000000000874718 [15:48:06]line ФД: 165345 [15:48:06]line ФПД: 146562367312728 [15:48:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T154806&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165345&fm=146562367312728&tin=02508201610067®Number=0000000000090829&sum=70000 [15:48:06]written 0, free lines is 4095 [15:48:06]OFD Sender: Processing packet 165345 [packets to send 106, broken 105] [15:48:06]ProducePacketName [15:48:06]name=ofd_packets/00165345 [15:48:06]OFD Sender: To server: pG, [15:48:06]CommunicateWithHost lk.salyk.kg:30040 [15:48:06]ConnectInit lk.salyk.kg [15:48:06]Connected sock=10 [15:48: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 37 31 38 0F 01 00 00 93 21 07 01 5A 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 DA 00 00 00 F4 03 04 00 B6 44 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E1 85 02 00 35 04 06 00 85 4C 35 D7 53 58 A0 B4 B2 DE 53 CC 8A 22 [15:48:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 86 CE 47 00 2D 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E1 85 02 00 F4 03 04 00 40 EB 94 66 B6 04 01 00 00 9B D6 27 C6 FA DA 17 58 [15:48:07]CommunicateWithHost err = 0 [15:48:07]CheckOFDResponse [15:48:07]1017 (14) - 77093643461234 [15:48:07]1041 (16) - 0000000000874718 [15:48:07]1040 (4) - 165345 [15:48:07]1012 (4) - 15.07.2024 09:26 [15:48:07]1206 (1) - 0 [15:48:07]OFD Sender: Remove packet 165345 [15:48:07]ProducePacketName [15:48:07]name=ofd_packets/00165345 [15:48:07]NVStorageDeleteData [15:48:07]Write to MH i2c: 01 00 00 65 23 88 [15:48:07]Write i2c OK [15:48:07]MH_I2C_Read... [15:48:07]Read from MH i2c: 01 [15:48:07]MH_I2C_Read... [15:48:07]Read from MH i2c: 01 07 00 [15:48:07]MH_I2C_Read... [15:48:07]Read from MH i2c: 01 07 00 65 23 00 00 00 00 00 F6 0C 91 [15:48:07]RasterBufferAndPrint [15:48:07]line [15:48:07]line [15:48:07]line [15:48:07]line [15:48:07]line [15:48:07]written 0, free lines is 3325 [15:48:07]MH_Cut [15:48:07]Write to MH i2c: D1 01 00 6C 23 01 61 [15:48:07]Write i2c OK [15:48:07]MH_I2C_Read... [15:48:07]Read from MH i2c: D1 [15:48:07]MH_I2C_Read... [15:48:07]Read from MH i2c: D1 01 00 [15:48:07]MH_I2C_Read... [15:48:07]Read from MH i2c: D1 01 00 6C 23 00 60 [15:48:07]Write to MH i2c: 01 00 00 6D 23 90 [15:48:07]Write i2c OK [15:48:07]MH_I2C_Read... [15:48:07]OFD Sender: No OFD packet to send [15:48:07]*** Cut start [15:48:07]*** Partial cut [15:48:07]*** CUTSNS_PIN = 1 [15:48:07]*** CUTSNS_PIN = 0 [15:48:08]*** Brake cut motor [15:48:08]Read from MH i2c: 01 [15:48:08]MH_I2C_Read... [15:48:08]*** Stop cut motor [15:48:08]*** Cut end [15:48:08]Read from MH i2c: 01 07 00 [15:48:08]MH_I2C_Read... [15:48:08]Read from MH i2c: 01 07 00 6D 23 00 00 00 00 00 FF 0F A5 [15:48:08]process_action close_receipt done [15:48:08]requested_data is exist [15:48:08]produce_requested_data [15:48:08]requested_item fm.sn is exist - process it [15:48:08]wFMCommunicate request_size=4 [15:48:08]MH_SAM_APDU [15:48:08]CAPDU: 80 11 00 00 [15:48:08]Write to MH i2c: E2 08 00 6E 23 80 11 00 00 00 00 00 00 0B [15:48:08]Write i2c OK [15:48:08]MH_I2C_Read... [15:48:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:08]Read from MH i2c: E2 [15:48:08]MH_I2C_Read... [15:48:08]Read from MH i2c: E2 17 00 [15:48:08]MH_I2C_Read... [15:48:08]Read from MH i2c: E2 17 00 6E 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 61 [15:48:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:48:08]wFMCommunicate OK [15:48:08]requested_item fd.num is exist - process it [15:48:08]SAM_PROTO_GetFieldsCounters [15:48:08]wFMCommunicate request_size=4 [15:48:08]MH_SAM_APDU [15:48:08]CAPDU: 80 13 00 00 [15:48:08]Write to MH i2c: E2 08 00 6F 23 80 13 00 00 00 00 00 00 0E [15:48:08]Write i2c OK [15:48:08]MH_I2C_Read... [15:48:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:48:08]Read from MH i2c: E2 [15:48:08]MH_I2C_Read... [15:48:08]Read from MH i2c: E2 62 00 [15:48:08]MH_I2C_Read... [15:48:08]Read from MH i2c: E2 62 00 6F 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E1 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [15:48: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E1 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:48:08]wFMCommunicate OK [15:48:08]SAM_PROTO_GetFieldsCounters done [15:48:08]requested_item shift.num is exist - process it [15:48:08]requested_item shift.opened is exist - process it [15:48:08]req_shift_opened [15:48:08]FM_GetShiftState [15:48:08]SAM_PROTO_GetShiftState [15:48:08]wFMCommunicate request_size=4 [15:48:08]MH_SAM_APDU [15:48:08]CAPDU: 80 13 01 00 [15:48:08]Write to MH i2c: E2 08 00 70 23 80 13 01 00 00 00 00 00 10 [15:48:08]Write i2c OK [15:48:08]MH_I2C_Read... [15:48:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:08]Read from MH i2c: E2 [15:48:08]MH_I2C_Read... [15:48:08]Read from MH i2c: E2 0E 00 [15:48:08]MH_I2C_Read... [15:48:08]Read from MH i2c: E2 0E 00 70 23 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 E9 [15:48:08]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [15:48:08]wFMCommunicate OK [15:48:08]SAM_PROTO_GetShiftState done [15:48:08]FM_GetShiftState done [15:48:08]req_shift_opened done [15:48:08]requested_item shift.open_date is exist - process it [15:48:08]req_shift_open_date [15:48:08]req_shift_open_date done [15:48:08]produce_requested_data done [15:48:08]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165345,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [15:48:08]process_action_free close_receipt [15:48:08]json_value_free [15:48:08]json_value_free done [15:48:08]process_json_proto returns [15:48:08]Send response to host [15:48:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165345,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [15:48:08]free response buf [15:48:08]execute_script done [15:48:08]execute_script returns [15:48:08]free content buf [15:48:08]Sock 9.Close socket [15:48:08]Sock 9.Thread stoped [15:48:12]OFD Sender: No OFD packet to send [15:48:17]OFD Sender: No OFD packet to send [15:48:22]OFD Sender: No OFD packet to send [15:48:27]OFD Sender: No OFD packet to send [15:48:32]OFD Sender: No OFD packet to send [15:48:37]OFD Sender: No OFD packet to send [15:48:42]OFD Sender: No OFD packet to send [15:48:47]OFD Sender: No OFD packet to send [15:48:52]OFD Sender: No OFD packet to send [15:48:57]OFD Sender: No OFD packet to send [15:49:02]OFD Sender: No OFD packet to send [15:49:07]OFD Sender: No OFD packet to send [15:49:12]OFD Sender: No OFD packet to send [15:49:17]OFD Sender: No OFD packet to send [15:49:22]OFD Sender: No OFD packet to send [15:49:27]OFD Sender: No OFD packet to send [15:49:32]OFD Sender: No OFD packet to send [15:49:37]OFD Sender: No OFD packet to send [15:49:42]OFD Sender: No OFD packet to send [15:49:47]OFD Sender: No OFD packet to send [15:49:52]OFD Sender: No OFD packet to send [15:49:57]OFD Sender: No OFD packet to send [15:50:02]OFD Sender: No OFD packet to send [15:50:07]OFD Sender: No OFD packet to send [15:50:12]OFD Sender: No OFD packet to send [15:50:17]OFD Sender: No OFD packet to send [15:50:22]OFD Sender: No OFD packet to send [15:50:27]OFD Sender: No OFD packet to send [15:50:32]OFD Sender: No OFD packet to send [15:50:37]OFD Sender: No OFD packet to send [15:50:42]OFD Sender: No OFD packet to send [15:50:47]OFD Sender: No OFD packet to send [15:50:52]OFD Sender: No OFD packet to send [15:50:57]OFD Sender: No OFD packet to send [15:50:59]accept exits with 8 [15:50:59]New connection [15:50:59]New thread 3066854756 created [15:50:59]Thread 3066711396 joined [15:50:59]Waiting for new connection... [15:50:59] Sock 8.Parse request [15:50:59]Sock 8.Check first char [15:50:59]Sock 8.First char is OK [15:50:59]request: POST /json_proto HTTP/1.0 [15:50:59]Method: POST [15:50:59]URL: /json_proto [15:50:59]Method is POST - this is cgi request [15:50:59]url: /json_proto [15:50:59]query_string will be loaded in cgi processing [15:50:59]execute_cgi json_proto POST (null) [15:50:59]execute_cgi path=json_proto method=POST [15:50:59]POST find Content-Length [15:50:59]Host: 172.17.56.4:8080 [15:50:59]Content-Length: 679 [15:50:59]Content-Type: application/json [15:50:59] [15:50:59]POST finish read [15:50:59]Found Content-Length = 679 [15:50:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459458", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 69.550, "sum" : 5000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:50:59]execute_script... [15:50:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459458", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 69.550, "sum" : 5000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:50:59]POST & json_proto [15:50:59]process_json_proto [15:50:59]json parsed OK: [15:50:59]protocol is kg_v1.0 [15:50:59]action value=close_receipt [15:50:59]process_action close_receipt [15:50:59]cmd_close_receipt [15:50:59]MH_GetDate [15:50:59]Write to MH i2c: F0 00 00 71 23 83 [15:50:59]Write i2c OK [15:50:59]MH_I2C_Read... [15:50:59]Read from MH i2c: F0 [15:50:59]MH_I2C_Read... [15:50:59]Read from MH i2c: F0 09 00 [15:50:59]MH_I2C_Read... [15:50:59]Read from MH i2c: F0 09 00 71 23 00 65 45 95 66 C9 DC B2 64 EC [15:50:59]GetLastDocTimeStamp 1721058486 [15:50:59]current date 1721058661 [15:50:59]FM_GetShiftState [15:50:59]SAM_PROTO_GetShiftState [15:50:59]wFMCommunicate request_size=4 [15:50:59]MH_SAM_APDU [15:50:59]CAPDU: 80 13 01 00 [15:50:59]Write to MH i2c: E2 08 00 72 23 80 13 01 00 00 00 00 00 12 [15:50:59]Write i2c OK [15:50:59]MH_I2C_Read... [15:50:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:59]Read from MH i2c: E2 [15:50:59]MH_I2C_Read... [15:50:59]Read from MH i2c: E2 0E 00 [15:50:59]MH_I2C_Read... [15:50:59]Read from MH i2c: E2 0E 00 72 23 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 EB [15:50:59]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [15:50:59]wFMCommunicate OK [15:50:59]SAM_PROTO_GetShiftState done [15:50:59]FM_GetShiftState done [15:50:59]opened in 1721003876 [15:50:59]opened+sec_in_day 1721090276 [15:50:59]quantity*price = 500064 [15:50:59]sum+1 = 500066 [15:50:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 531.04 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 219 15.07.2024 15:51 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165346 ФПД: 90727679904027 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T155101&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165346&fm=90727679904027&tin=02508201610067®Number=0000000000090829&sum=500000 [15:51:00]StoreToDocumentArchive [15:51:00]shift 448 fd 165346 [15:51:00]save to /storage/0448/doc_00165346 [15:51:00]save last doc name /storage/0448/doc_00165346 to /storage/kkm_last_doc_name [15:51:00]save OK [15:51:00]Clear old archive folders... [15:51:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:51:01]tlvbuf is 0188A290 [15:51:01]SAM_PROTO_ClearQueue [15:51:01]wFMCommunicate request_size=4 [15:51:01]MH_SAM_APDU [15:51:01]CAPDU: 80 09 00 00 [15:51:01]Write to MH i2c: E2 08 00 7F 23 80 09 00 00 00 00 00 00 14 [15:51:01]Write i2c OK [15:51:01]MH_I2C_Read... [15:51:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:51:01]Read from MH i2c: E2 [15:51:01]MH_I2C_Read... [15:51:01]Read from MH i2c: E2 03 00 [15:51:01]MH_I2C_Read... [15:51:01]Read from MH i2c: E2 03 00 7F 23 00 90 00 16 [15:51:01]RAPDU: 90 00 [15:51:01]wFMCommunicate OK [15:51:01]SAM_PROTO_ClearQueue done [15:51:01]KKMCreateOFDPacket [15:51:01]OFDProtocolAddRootSTLVToBuf [15:51:01]FM_MakeSignedData [15:51:01]FM_MakeSignedData [15:51:01]SAM_PROTO_SignData [15:51:01]wFMCommunicate request_size=4 [15:51:01]MH_SAM_APDU [15:51:01]CAPDU: 80 0D 01 02 [15:51:01]Write to MH i2c: E2 08 00 80 23 80 0D 01 02 00 00 00 00 1C [15:51:01]Write i2c OK [15:51:01]MH_I2C_Read... [15:51:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:51:01]Read from MH i2c: E2 [15:51:01]MH_I2C_Read... [15:51:01]Read from MH i2c: E2 03 00 [15:51:01]MH_I2C_Read... [15:51:01]Read from MH i2c: E2 03 00 80 23 00 90 00 17 [15:51:01]RAPDU: 90 00 [15:51:01]wFMCommunicate OK [15:51:01]wFMCommunicate request_size=255 [15:51:01]MH_SAM_APDU [15:51:01]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 0F 01 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 61 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 65 45 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E2 85 02 00 35 04 06 00 52 84 2F 21 [15:51:01]Write to MH i2c: E2 02 01 81 23 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 0F 01 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 61 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 65 45 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E2 85 02 00 35 04 06 00 52 84 2F 21 00 00 71 [15:51:01]Write i2c OK [15:51:01]MH_I2C_Read... [15:51:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:01]Read from MH i2c: E2 [15:51:01]MH_I2C_Read... [15:51:01]Read from MH i2c: E2 03 00 [15:51:01]MH_I2C_Read... [15:51:01]Read from MH i2c: E2 03 00 81 23 00 90 00 18 [15:51:01]RAPDU: 90 00 [15:51:01]wFMCommunicate OK [15:51:01]wFMCommunicate request_size=7 [15:51:01]MH_SAM_APDU [15:51:01]CAPDU: 80 0D 02 02 02 C9 1B [15:51:01]Write to MH i2c: E2 0A 00 82 23 80 0D 02 02 02 00 C9 1B 00 00 07 [15:51:01]Write i2c OK [15:51:01]MH_I2C_Read... [15:51:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:01]Read from MH i2c: E2 [15:51:01]MH_I2C_Read... [15:51:01]Read from MH i2c: E2 03 00 [15:51:01]MH_I2C_Read... [15:51:01]Read from MH i2c: E2 03 00 82 23 00 90 00 19 [15:51:01]RAPDU: 90 00 [15:51:01]wFMCommunicate OK [15:51:01]wFMCommunicate request_size=4 [15:51:01]MH_SAM_APDU [15:51:01]CAPDU: 80 0D 03 02 [15:51:01]Write to MH i2c: E2 08 00 83 23 80 0D 03 02 00 00 00 00 21 [15:51:01]Write i2c OK [15:51:01]MH_I2C_Read... [15:51:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:51:01]Read from MH i2c: E2 [15:51:01]MH_I2C_Read... [15:51:01]Read from MH i2c: E2 0B 00 [15:51:01]MH_I2C_Read... [15:51:01]Read from MH i2c: E2 0B 00 83 23 00 97 01 F2 2D 86 02 07 1E 90 00 86 [15:51:01]RAPDU: 97 01 F2 2D 86 02 07 1E 90 00 [15:51:01]wFMCommunicate OK [15:51:01]SAM_PROTO_SignData done [15:51:01]FM_MakeSignedData done [15:51:01]CreateOFDProtocolMessage [15:51:01]wFMCommunicate request_size=4 [15:51:01]MH_SAM_APDU [15:51:01]CAPDU: 80 11 00 00 [15:51:01]Write to MH i2c: E2 08 00 84 23 80 11 00 00 00 00 00 00 21 [15:51:01]Write i2c OK [15:51:01]MH_I2C_Read... [15:51:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:01]Read from MH i2c: E2 [15:51:01]MH_I2C_Read... [15:51:01]Read from MH i2c: E2 17 00 [15:51:01]MH_I2C_Read... [15:51:01]Read from MH i2c: E2 17 00 84 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 77 [15:51:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:51:01]wFMCommunicate OK [15:51:01]CreateOFDProtocolMessage done [15:51:01]OFDSenderStorePacket 165346 [15:51:01]StoreOFDPacket docnum=165346 [15:51:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 FD 43 04 01 F1 1D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 0F 01 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 61 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 65 45 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E2 85 02 00 35 04 06 00 52 84 2F 21 C9 1B 97 01 F2 2D 86 02 07 1E [15:51:01]CheckFolder [15:51:01]dirname=/storage/ofd_packets [15:51:01]CheckFolder done [15:51:01]ProducePacketName [15:51:01]name=ofd_packets/00165346 [15:51:01]NVStorageSaveData ofd_packets/00165346 [15:51:01]File name is /storage/ofd_packets/00165346 [15:51:01]Write 298 bytes [15:51:01]NVStorageSaveData done [15:51:01]OFDSenderStorePacket done [15:51:01]KKMCreateOFDPacket done [15:51:01]NVStorageSaveData kkm_last_timestamp [15:51:01]File name is /storage/kkm_last_timestamp [15:51:01]Write 4 bytes [15:51:01]NVStorageSaveData done [15:51:01]ExternCall_PrintAddStr [15:51:01]wPrintStart [15:51:01]Write to MH i2c: 01 00 00 85 23 A8 [15:51:01]Write i2c OK [15:51:01]MH_I2C_Read... [15:51:01]Read from MH i2c: 01 [15:51:01]MH_I2C_Read... [15:51:01]Read from MH i2c: 01 07 00 [15:51:01]MH_I2C_Read... [15:51:01]Read from MH i2c: 01 07 00 85 23 00 00 00 00 00 FF 0F BD [15:51:01]RasterBufferAndPrint [15:51:01]line Счет N : (1)459458 [15:51:01]line ИНН: 02508201610067 [15:51:01]line Контрольно-Кассовый Чек [15:51:01]line ПРОДАЖА [15:51:01]line ТРК (МРК, ГНК) : 11 [15:51:01]line Товар: 2710194210 [15:51:01]line ДТ-К-5 [15:51:01]line 69.550 * 71.90 [15:51:01]line = 5000.65 [15:51:01]line НДС 12% НСП 1% [15:51:01]line > о реализуемом товаре [15:51:01]line ОКРУГЛЕНИЕ: -0.65 [15:51:01]line ИТОГО: 5000.00 [15:51:01]line Внесено: 5000.00 [15:51:01]line СДАЧА: 0.00 [15:51:01]line НСП 1% : 44.25 [15:51:01]line НДС 12% : 531.04 [15:51:01]line Наличными: 5000.00 [15:51:01]line Безнал.: 0.00 [15:51:01]line Место: АЗС № 72 "Партнер Нефть" [15:51:01]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:51:01]line СНО: Общий режим [15:51:01]line Чек 219 15.07.2024 15:51 [15:51:01]line Смена: 448 ФФД: 1.0 [15:51:01]line ЗНМ: 0300000160 [15:51:01]line РНМ: 0000000000090829 [15:51:01]line Версия ККМ: 001 [15:51:01]line ФМ: 0000000000874718 [15:51:01]line ФД: 165346 [15:51:01]line ФПД: 90727679904027 [15:51:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T155101&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165346&fm=90727679904027&tin=02508201610067®Number=0000000000090829&sum=500000 [15:51:01]OFD Sender: Processing packet 165346 [packets to send 106, broken 105] [15:51:01]ProducePacketName [15:51:01]name=ofd_packets/00165346 [15:51:01]OFD Sender: To server: pG, [15:51:01]CommunicateWithHost lk.salyk.kg:30040 [15:51:01]ConnectInit lk.salyk.kg [15:51:01]written 0, free lines is 4095 [15:51:01]Connected sock=10 [15:51:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 FD 43 04 01 F1 1D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 0F 01 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 61 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 65 45 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E2 85 02 00 35 04 06 00 52 84 2F 21 C9 1B 97 01 F2 2D 86 02 07 1E [15:51:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 5B BF 47 00 FC 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E2 85 02 00 F4 03 04 00 EF EB 94 66 B6 04 01 00 00 AD D6 0E 22 70 F3 58 27 [15:51:02]CommunicateWithHost err = 0 [15:51:02]CheckOFDResponse [15:51:02]1017 (14) - 77093643461234 [15:51:02]1041 (16) - 0000000000874718 [15:51:02]1040 (4) - 165346 [15:51:02]1012 (4) - 15.07.2024 09:29 [15:51:02]1206 (1) - 0 [15:51:02]OFD Sender: Remove packet 165346 [15:51:02]ProducePacketName [15:51:02]name=ofd_packets/00165346 [15:51:02]NVStorageDeleteData [15:51:02]Write to MH i2c: 01 00 00 AF 23 D2 [15:51:02]Write i2c OK [15:51:02]MH_I2C_Read... [15:51:02]Read from MH i2c: 01 [15:51:02]MH_I2C_Read... [15:51:02]Read from MH i2c: 01 07 00 [15:51:02]MH_I2C_Read... [15:51:02]Read from MH i2c: 01 07 00 AF 23 00 00 00 00 00 02 0D E8 [15:51:02]RasterBufferAndPrint [15:51:02]line [15:51:02]line [15:51:02]line [15:51:02]line [15:51:02]line [15:51:02]written 0, free lines is 3336 [15:51:02]MH_Cut [15:51:02]Write to MH i2c: D1 01 00 B6 23 01 AB [15:51:02]Write i2c OK [15:51:02]MH_I2C_Read... [15:51:02]Read from MH i2c: D1 [15:51:02]MH_I2C_Read... [15:51:02]Read from MH i2c: D1 01 00 [15:51:02]MH_I2C_Read... [15:51:02]Read from MH i2c: D1 01 00 B6 23 00 AA [15:51:02]Write to MH i2c: 01 00 00 B7 23 DA [15:51:02]Write i2c OK [15:51:02]MH_I2C_Read... [15:51:02]OFD Sender: No OFD packet to send [15:51:02]*** Cut start [15:51:02]*** Partial cut [15:51:02]*** CUTSNS_PIN = 1 [15:51:03]*** CUTSNS_PIN = 0 [15:51:03]*** Brake cut motor [15:51:03]Read from MH i2c: 01 [15:51:03]MH_I2C_Read... [15:51:03]*** Stop cut motor [15:51:03]*** Cut end [15:51:03]Read from MH i2c: 01 07 00 [15:51:03]MH_I2C_Read... [15:51:03]Read from MH i2c: 01 07 00 B7 23 00 00 00 00 00 FF 0F EF [15:51:03]process_action close_receipt done [15:51:03]requested_data is exist [15:51:03]produce_requested_data [15:51:03]requested_item fm.sn is exist - process it [15:51:03]wFMCommunicate request_size=4 [15:51:03]MH_SAM_APDU [15:51:03]CAPDU: 80 11 00 00 [15:51:03]Write to MH i2c: E2 08 00 B8 23 80 11 00 00 00 00 00 00 55 [15:51:03]Write i2c OK [15:51:03]MH_I2C_Read... [15:51:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:03]Read from MH i2c: E2 [15:51:03]MH_I2C_Read... [15:51:03]Read from MH i2c: E2 17 00 [15:51:03]MH_I2C_Read... [15:51:03]Read from MH i2c: E2 17 00 B8 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AB [15:51:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:51:03]wFMCommunicate OK [15:51:03]requested_item fd.num is exist - process it [15:51:03]SAM_PROTO_GetFieldsCounters [15:51:03]wFMCommunicate request_size=4 [15:51:03]MH_SAM_APDU [15:51:03]CAPDU: 80 13 00 00 [15:51:03]Write to MH i2c: E2 08 00 B9 23 80 13 00 00 00 00 00 00 58 [15:51:03]Write i2c OK [15:51:03]MH_I2C_Read... [15:51:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:51:03]Read from MH i2c: E2 [15:51:03]MH_I2C_Read... [15:51:03]Read from MH i2c: E2 62 00 [15:51:03]MH_I2C_Read... [15:51:03]Read from MH i2c: E2 62 00 B9 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E2 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [15:51: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E2 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:51:03]wFMCommunicate OK [15:51:03]SAM_PROTO_GetFieldsCounters done [15:51:03]requested_item shift.num is exist - process it [15:51:03]requested_item shift.opened is exist - process it [15:51:03]req_shift_opened [15:51:03]FM_GetShiftState [15:51:03]SAM_PROTO_GetShiftState [15:51:03]wFMCommunicate request_size=4 [15:51:03]MH_SAM_APDU [15:51:03]CAPDU: 80 13 01 00 [15:51:03]Write to MH i2c: E2 08 00 BA 23 80 13 01 00 00 00 00 00 5A [15:51:03]Write i2c OK [15:51:03]MH_I2C_Read... [15:51:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:03]Read from MH i2c: E2 [15:51:03]MH_I2C_Read... [15:51:03]Read from MH i2c: E2 0E 00 [15:51:03]MH_I2C_Read... [15:51:03]Read from MH i2c: E2 0E 00 BA 23 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 33 [15:51:03]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [15:51:03]wFMCommunicate OK [15:51:03]SAM_PROTO_GetShiftState done [15:51:03]FM_GetShiftState done [15:51:03]req_shift_opened done [15:51:03]requested_item shift.open_date is exist - process it [15:51:03]req_shift_open_date [15:51:03]req_shift_open_date done [15:51:03]produce_requested_data done [15:51:03]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165346,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [15:51:03]process_action_free close_receipt [15:51:03]json_value_free [15:51:03]json_value_free done [15:51:03]process_json_proto returns [15:51:03]Send response to host [15:51:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165346,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [15:51:03]free response buf [15:51:03]execute_script done [15:51:03]execute_script returns [15:51:03]free content buf [15:51:03]Sock 8.Close socket [15:51:03]Sock 8.Thread stoped [15:51:07]OFD Sender: No OFD packet to send [15:51:12]OFD Sender: No OFD packet to send [15:51:17]OFD Sender: No OFD packet to send [15:51:22]OFD Sender: No OFD packet to send [15:51:27]OFD Sender: No OFD packet to send [15:51:32]OFD Sender: No OFD packet to send [15:51:37]OFD Sender: No OFD packet to send [15:51:42]OFD Sender: No OFD packet to send [15:51:47]OFD Sender: No OFD packet to send [15:51:52]OFD Sender: No OFD packet to send [15:51:53]accept exits with 9 [15:51:53]New connection [15:51:53]New thread 3066711396 created [15:51:53]Thread 3066854756 joined [15:51:53]Waiting for new connection... [15:51:53] Sock 9.Parse request [15:51:53]Sock 9.Check first char [15:51:53]Sock 9.First char is OK [15:51:53]request: POST /json_proto HTTP/1.0 [15:51:53]Method: POST [15:51:53]URL: /json_proto [15:51:53]Method is POST - this is cgi request [15:51:53]url: /json_proto [15:51:53]query_string will be loaded in cgi processing [15:51:53]execute_cgi json_proto POST (null) [15:51:53]execute_cgi path=json_proto method=POST [15:51:53]POST find Content-Length [15:51:53]Host: 172.17.56.4:8080 [15:51:53]Content-Length: 679 [15:51:53]Content-Type: application/json [15:51:53] [15:51:53]POST finish read [15:51:53]Found Content-Length = 679 [15:51:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459459", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 19.480, "sum" : 1400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:53]execute_script... [15:51:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459459", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 19.480, "sum" : 1400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:53]POST & json_proto [15:51:53]process_json_proto [15:51:53]json parsed OK: [15:51:53]protocol is kg_v1.0 [15:51:53]action value=close_receipt [15:51:53]process_action close_receipt [15:51:53]cmd_close_receipt [15:51:53]MH_GetDate [15:51:53]Write to MH i2c: F0 00 00 BB 23 CD [15:51:53]Write i2c OK [15:51:53]MH_I2C_Read... [15:51:53]Read from MH i2c: F0 [15:51:53]MH_I2C_Read... [15:51:53]Read from MH i2c: F0 09 00 [15:51:53]MH_I2C_Read... [15:51:53]Read from MH i2c: F0 09 00 BB 23 00 9A 45 95 66 C9 DC B2 64 6B [15:51:53]GetLastDocTimeStamp 1721058661 [15:51:53]current date 1721058714 [15:51:53]FM_GetShiftState [15:51:53]SAM_PROTO_GetShiftState [15:51:53]wFMCommunicate request_size=4 [15:51:53]MH_SAM_APDU [15:51:53]CAPDU: 80 13 01 00 [15:51:53]Write to MH i2c: E2 08 00 BC 23 80 13 01 00 00 00 00 00 5C [15:51:53]Write i2c OK [15:51:53]MH_I2C_Read... [15:51:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:53]Read from MH i2c: E2 [15:51:53]MH_I2C_Read... [15:51:53]Read from MH i2c: E2 0E 00 [15:51:53]MH_I2C_Read... [15:51:53]Read from MH i2c: E2 0E 00 BC 23 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 35 [15:51:53]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [15:51:53]wFMCommunicate OK [15:51:53]SAM_PROTO_GetShiftState done [15:51:53]FM_GetShiftState done [15:51:53]opened in 1721003876 [15:51:53]opened+sec_in_day 1721090276 [15:51:53]quantity*price = 140061 [15:51:53]sum+1 = 140062 [15:51:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.74 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 220 15.07.2024 15:51 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165347 ФПД: 141990924145108 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T155154&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165347&fm=141990924145108&tin=02508201610067®Number=0000000000090829&sum=140000 [15:51:54]StoreToDocumentArchive [15:51:54]shift 448 fd 165347 [15:51:54]save to /storage/0448/doc_00165347 [15:51:54]save last doc name /storage/0448/doc_00165347 to /storage/kkm_last_doc_name [15:51:54]save OK [15:51:54]Clear old archive folders... [15:51:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:51:54]tlvbuf is 01811CA0 [15:51:54]SAM_PROTO_ClearQueue [15:51:54]wFMCommunicate request_size=4 [15:51:54]MH_SAM_APDU [15:51:54]CAPDU: 80 09 00 00 [15:51:54]Write to MH i2c: E2 08 00 C9 23 80 09 00 00 00 00 00 00 5E [15:51:54]Write i2c OK [15:51:54]MH_I2C_Read... [15:51:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:51:54]Read from MH i2c: E2 [15:51:54]MH_I2C_Read... [15:51:54]Read from MH i2c: E2 03 00 [15:51:54]MH_I2C_Read... [15:51:54]Read from MH i2c: E2 03 00 C9 23 00 90 00 60 [15:51:54]RAPDU: 90 00 [15:51:54]wFMCommunicate OK [15:51:54]SAM_PROTO_ClearQueue done [15:51:54]KKMCreateOFDPacket [15:51:54]OFDProtocolAddRootSTLVToBuf [15:51:54]FM_MakeSignedData [15:51:54]FM_MakeSignedData [15:51:54]SAM_PROTO_SignData [15:51:54]wFMCommunicate request_size=4 [15:51:54]MH_SAM_APDU [15:51:54]CAPDU: 80 0D 01 02 [15:51:54]Write to MH i2c: E2 08 00 CA 23 80 0D 01 02 00 00 00 00 66 [15:51:54]Write i2c OK [15:51:54]MH_I2C_Read... [15:51:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:51:54]Read from MH i2c: E2 [15:51:54]MH_I2C_Read... [15:51:54]Read from MH i2c: E2 03 00 [15:51:54]MH_I2C_Read... [15:51:54]Read from MH i2c: E2 03 00 CA 23 00 90 00 61 [15:51:54]RAPDU: 90 00 [15:51:54]wFMCommunicate OK [15:51:54]wFMCommunicate request_size=255 [15:51:54]MH_SAM_APDU [15:51:54]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 4C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 1D 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 9A 45 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E3 85 02 00 35 04 06 00 81 23 D6 98 [15:51:54]Write to MH i2c: E2 02 01 CB 23 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 4C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 1D 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 9A 45 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E3 85 02 00 35 04 06 00 81 23 D6 98 00 00 CB [15:51:54]Write i2c OK [15:51:54]MH_I2C_Read... [15:51:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:54]Read from MH i2c: E2 [15:51:54]MH_I2C_Read... [15:51:54]Read from MH i2c: E2 03 00 [15:51:54]MH_I2C_Read... [15:51:54]Read from MH i2c: E2 03 00 CB 23 00 90 00 62 [15:51:54]RAPDU: 90 00 [15:51:54]wFMCommunicate OK [15:51:54]wFMCommunicate request_size=7 [15:51:54]MH_SAM_APDU [15:51:54]CAPDU: 80 0D 02 02 02 51 D4 [15:51:54]Write to MH i2c: E2 0A 00 CC 23 80 0D 02 02 02 00 51 D4 00 00 92 [15:51:54]Write i2c OK [15:51:54]MH_I2C_Read... [15:51:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:54]Read from MH i2c: E2 [15:51:54]MH_I2C_Read... [15:51:54]Read from MH i2c: E2 03 00 [15:51:54]MH_I2C_Read... [15:51:54]Read from MH i2c: E2 03 00 CC 23 00 90 00 63 [15:51:54]RAPDU: 90 00 [15:51:54]wFMCommunicate OK [15:51:54]wFMCommunicate request_size=4 [15:51:54]MH_SAM_APDU [15:51:54]CAPDU: 80 0D 03 02 [15:51:54]Write to MH i2c: E2 08 00 CD 23 80 0D 03 02 00 00 00 00 6B [15:51:54]Write i2c OK [15:51:54]MH_I2C_Read... [15:51:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:51:54]Read from MH i2c: E2 [15:51:54]MH_I2C_Read... [15:51:54]Read from MH i2c: E2 0B 00 [15:51:54]MH_I2C_Read... [15:51:54]Read from MH i2c: E2 0B 00 CD 23 00 4C 62 D9 A2 F8 8F 75 6B 90 00 FC [15:51:54]RAPDU: 4C 62 D9 A2 F8 8F 75 6B 90 00 [15:51:54]wFMCommunicate OK [15:51:54]SAM_PROTO_SignData done [15:51:54]FM_MakeSignedData done [15:51:54]CreateOFDProtocolMessage [15:51:54]wFMCommunicate request_size=4 [15:51:54]MH_SAM_APDU [15:51:54]CAPDU: 80 11 00 00 [15:51:54]Write to MH i2c: E2 08 00 CE 23 80 11 00 00 00 00 00 00 6B [15:51:54]Write i2c OK [15:51:54]MH_I2C_Read... [15:51:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:54]Read from MH i2c: E2 [15:51:54]MH_I2C_Read... [15:51:54]Read from MH i2c: E2 17 00 [15:51:54]MH_I2C_Read... [15:51:54]Read from MH i2c: E2 17 00 CE 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C1 [15:51:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:51:54]wFMCommunicate OK [15:51:54]CreateOFDProtocolMessage done [15:51:54]OFDSenderStorePacket 165347 [15:51:54]StoreOFDPacket docnum=165347 [15:51:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 9B F7 04 01 59 20 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 4C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 1D 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 9A 45 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E3 85 02 00 35 04 06 00 81 23 D6 98 51 D4 4C 62 D9 A2 F8 8F 75 6B [15:51:54]CheckFolder [15:51:54]dirname=/storage/ofd_packets [15:51:54]CheckFolder done [15:51:54]ProducePacketName [15:51:54]name=ofd_packets/00165347 [15:51:54]NVStorageSaveData ofd_packets/00165347 [15:51:54]File name is /storage/ofd_packets/00165347 [15:51:54]Write 298 bytes [15:51:54]NVStorageSaveData done [15:51:54]OFDSenderStorePacket done [15:51:54]KKMCreateOFDPacket done [15:51:54]NVStorageSaveData kkm_last_timestamp [15:51:54]File name is /storage/kkm_last_timestamp [15:51:54]Write 4 bytes [15:51:54]NVStorageSaveData done [15:51:54]ExternCall_PrintAddStr [15:51:54]wPrintStart [15:51:54]Write to MH i2c: 01 00 00 CF 23 F2 [15:51:54]Write i2c OK [15:51:54]MH_I2C_Read... [15:51:54]Read from MH i2c: 01 [15:51:54]MH_I2C_Read... [15:51:54]Read from MH i2c: 01 07 00 [15:51:54]MH_I2C_Read... [15:51:54]Read from MH i2c: 01 07 00 CF 23 00 00 00 00 00 FF 0F 07 [15:51:54]RasterBufferAndPrint [15:51:54]line Счет N : (1)459459 [15:51:54]line ИНН: 02508201610067 [15:51:54]line Контрольно-Кассовый Чек [15:51:54]line ПРОДАЖА [15:51:54]line ТРК (МРК, ГНК) : 21 [15:51:54]line Товар: 2710194210 [15:51:54]line ДТ-К-5 [15:51:54]line 19.480 * 71.90 [15:51:54]line = 1400.61 [15:51:54]line НДС 12% НСП 1% [15:51:54]line > о реализуемом товаре [15:51:54]line ОКРУГЛЕНИЕ: -0.61 [15:51:54]line ИТОГО: 1400.00 [15:51:54]line Внесено: 1400.00 [15:51:54]line СДАЧА: 0.00 [15:51:54]line НСП 1% : 12.39 [15:51:54]line НДС 12% : 148.74 [15:51:54]line Наличными: 1400.00 [15:51:54]line Безнал.: 0.00 [15:51:54]line Место: АЗС № 72 "Партнер Нефть" [15:51:54]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:51:54]line СНО: Общий режим [15:51:54]line Чек 220 15.07.2024 15:51 [15:51:54]line Смена: 448 ФФД: 1.0 [15:51:54]line ЗНМ: 0300000160 [15:51:54]line РНМ: 0000000000090829 [15:51:54]line Версия ККМ: 001 [15:51:54]line ФМ: 0000000000874718 [15:51:54]line ФД: 165347 [15:51:54]line ФПД: 141990924145108 [15:51:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T155154&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165347&fm=141990924145108&tin=02508201610067®Number=0000000000090829&sum=140000 [15:51:55]OFD Sender: Processing packet 165347 [packets to send 106, broken 105] [15:51:55]ProducePacketName [15:51:55]name=ofd_packets/00165347 [15:51:55]OFD Sender: To server: pG, [15:51:55]CommunicateWithHost lk.salyk.kg:30040 [15:51:55]ConnectInit lk.salyk.kg [15:51:55]written 0, free lines is 4095 [15:51:55]Connected sock=10 [15:51:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 9B F7 04 01 59 20 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 4C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 1D 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 9A 45 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E3 85 02 00 35 04 06 00 81 23 D6 98 51 D4 4C 62 D9 A2 F8 8F 75 6B [15:51:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 EB F0 47 00 B2 BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E3 85 02 00 F4 03 04 00 24 EC 94 66 B6 04 01 00 00 5F 56 2D A6 8C A9 9F 27 [15:51:55]CommunicateWithHost err = 0 [15:51:55]CheckOFDResponse [15:51:55]1017 (14) - 77093643461234 [15:51:55]1041 (16) - 0000000000874718 [15:51:55]1040 (4) - 165347 [15:51:55]1012 (4) - 15.07.2024 09:30 [15:51:55]1206 (1) - 0 [15:51:55]OFD Sender: Remove packet 165347 [15:51:55]ProducePacketName [15:51:55]name=ofd_packets/00165347 [15:51:55]NVStorageDeleteData [15:51:55]Write to MH i2c: 01 00 00 F9 23 1C [15:51:55]Write i2c OK [15:51:55]MH_I2C_Read... [15:51:55]Read from MH i2c: 01 [15:51:55]MH_I2C_Read... [15:51:55]Read from MH i2c: 01 07 00 [15:51:55]MH_I2C_Read... [15:51:55]Read from MH i2c: 01 07 00 F9 23 00 00 00 00 00 FE 0C 2D [15:51:55]RasterBufferAndPrint [15:51:55]line [15:51:55]line [15:51:55]line [15:51:55]line [15:51:55]line [15:51:55]written 0, free lines is 3332 [15:51:55]MH_Cut [15:51:55]Write to MH i2c: D1 01 00 00 24 01 F6 [15:51:55]Write i2c OK [15:51:55]MH_I2C_Read... [15:51:55]Read from MH i2c: D1 [15:51:55]MH_I2C_Read... [15:51:55]Read from MH i2c: D1 01 00 [15:51:55]MH_I2C_Read... [15:51:55]Read from MH i2c: D1 01 00 00 24 00 F5 [15:51:55]Write to MH i2c: 01 00 00 01 24 25 [15:51:55]Write i2c OK [15:51:55]MH_I2C_Read... [15:51:56]OFD Sender: No OFD packet to send [15:51:56]*** Cut start [15:51:56]*** Partial cut [15:51:56]*** CUTSNS_PIN = 1 [15:51:56]*** CUTSNS_PIN = 0 [15:51:56]*** Brake cut motor [15:51:56]Read from MH i2c: 01 [15:51:56]MH_I2C_Read... [15:51:56]*** Stop cut motor [15:51:56]*** Cut end [15:51:56]Read from MH i2c: 01 07 00 [15:51:56]MH_I2C_Read... [15:51:56]Read from MH i2c: 01 07 00 01 24 00 00 00 00 00 FF 0F 3A [15:51:56]process_action close_receipt done [15:51:56]requested_data is exist [15:51:56]produce_requested_data [15:51:56]requested_item fm.sn is exist - process it [15:51:56]wFMCommunicate request_size=4 [15:51:56]MH_SAM_APDU [15:51:56]CAPDU: 80 11 00 00 [15:51:56]Write to MH i2c: E2 08 00 02 24 80 11 00 00 00 00 00 00 A0 [15:51:56]Write i2c OK [15:51:56]MH_I2C_Read... [15:51:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:56]Read from MH i2c: E2 [15:51:56]MH_I2C_Read... [15:51:56]Read from MH i2c: E2 17 00 [15:51:56]MH_I2C_Read... [15:51:56]Read from MH i2c: E2 17 00 02 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F6 [15:51:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:51:56]wFMCommunicate OK [15:51:56]requested_item fd.num is exist - process it [15:51:56]SAM_PROTO_GetFieldsCounters [15:51:56]wFMCommunicate request_size=4 [15:51:56]MH_SAM_APDU [15:51:56]CAPDU: 80 13 00 00 [15:51:56]Write to MH i2c: E2 08 00 03 24 80 13 00 00 00 00 00 00 A3 [15:51:56]Write i2c OK [15:51:56]MH_I2C_Read... [15:51:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:51:57]Read from MH i2c: E2 [15:51:57]MH_I2C_Read... [15:51:57]Read from MH i2c: E2 62 00 [15:51:57]MH_I2C_Read... [15:51:57]Read from MH i2c: E2 62 00 03 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E3 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [15:51:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E3 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:51:57]wFMCommunicate OK [15:51:57]SAM_PROTO_GetFieldsCounters done [15:51:57]requested_item shift.num is exist - process it [15:51:57]requested_item shift.opened is exist - process it [15:51:57]req_shift_opened [15:51:57]FM_GetShiftState [15:51:57]SAM_PROTO_GetShiftState [15:51:57]wFMCommunicate request_size=4 [15:51:57]MH_SAM_APDU [15:51:57]CAPDU: 80 13 01 00 [15:51:57]Write to MH i2c: E2 08 00 04 24 80 13 01 00 00 00 00 00 A5 [15:51:57]Write i2c OK [15:51:57]MH_I2C_Read... [15:51:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:57]Read from MH i2c: E2 [15:51:57]MH_I2C_Read... [15:51:57]Read from MH i2c: E2 0E 00 [15:51:57]MH_I2C_Read... [15:51:57]Read from MH i2c: E2 0E 00 04 24 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 7E [15:51:57]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [15:51:57]wFMCommunicate OK [15:51:57]SAM_PROTO_GetShiftState done [15:51:57]FM_GetShiftState done [15:51:57]req_shift_opened done [15:51:57]requested_item shift.open_date is exist - process it [15:51:57]req_shift_open_date [15:51:57]req_shift_open_date done [15:51:57]produce_requested_data done [15:51:57]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165347,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [15:51:57]process_action_free close_receipt [15:51:57]json_value_free [15:51:57]json_value_free done [15:51:57]process_json_proto returns [15:51:57]Send response to host [15:51:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165347,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [15:51:57]free response buf [15:51:57]execute_script done [15:51:57]execute_script returns [15:51:57]free content buf [15:51:57]Sock 9.Close socket [15:51:57]Sock 9.Thread stoped [15:51:57]accept exits with 8 [15:51:57]New connection [15:51:57]New thread 3066854756 created [15:51:57]Thread 3066711396 joined [15:51:57]Waiting for new connection... [15:51:57] Sock 8.Parse request [15:51:57]Sock 8.Check first char [15:51:57]Sock 8.First char is OK [15:51:57]request: POST /json_proto HTTP/1.0 [15:51:57]Method: POST [15:51:57]URL: /json_proto [15:51:57]Method is POST - this is cgi request [15:51:57]url: /json_proto [15:51:57]query_string will be loaded in cgi processing [15:51:57]execute_cgi json_proto POST (null) [15:51:57]execute_cgi path=json_proto method=POST [15:51:57]POST find Content-Length [15:51:57]Host: 172.17.56.4:8080 [15:51:57]Content-Length: 640 [15:51:57]Content-Type: application/json [15:51:57] [15:51:57]POST finish read [15:51:57]Found Content-Length = 640 [15:51:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459460", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.000, "sum" : 658.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 658.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:57]execute_script... [15:51:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459460", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.000, "sum" : 658.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 658.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:57]POST & json_proto [15:51:57]process_json_proto [15:51:57]json parsed OK: [15:51:57]protocol is kg_v1.0 [15:51:57]action value=close_receipt [15:51:57]process_action close_receipt [15:51:57]cmd_close_receipt [15:51:57]MH_GetDate [15:51:57]Write to MH i2c: F0 00 00 05 24 18 [15:51:57]Write i2c OK [15:51:57]MH_I2C_Read... [15:51:57]Read from MH i2c: F0 [15:51:57]MH_I2C_Read... [15:51:57]Read from MH i2c: F0 09 00 [15:51:57]MH_I2C_Read... [15:51:57]Read from MH i2c: F0 09 00 05 24 00 9F 45 95 66 C9 DC B2 64 BB [15:51:57]GetLastDocTimeStamp 1721058714 [15:51:57]current date 1721058719 [15:51:57]FM_GetShiftState [15:51:57]SAM_PROTO_GetShiftState [15:51:57]wFMCommunicate request_size=4 [15:51:57]MH_SAM_APDU [15:51:57]CAPDU: 80 13 01 00 [15:51:57]Write to MH i2c: E2 08 00 06 24 80 13 01 00 00 00 00 00 A7 [15:51:57]Write i2c OK [15:51:57]MH_I2C_Read... [15:51:57]Read from MH i2c: E2 [15:51:57]MH_I2C_Read... [15:51:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:57]Read from MH i2c: E2 0E 00 [15:51:57]MH_I2C_Read... [15:51:57]Read from MH i2c: E2 0E 00 06 24 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 80 [15:51:57]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [15:51:57]wFMCommunicate OK [15:51:57]SAM_PROTO_GetShiftState done [15:51:57]FM_GetShiftState done [15:51:57]opened in 1721003876 [15:51:57]opened+sec_in_day 1721090276 [15:51:57]quantity*price = 65800 [15:51:57]sum+1 = 65801 [15:51:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 658.00 НСП 1% : 5.82 НДС 12% : 69.88 Наличными: 658.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 221 15.07.2024 15:51 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165348 ФПД: 113138249714976 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T155159&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165348&fm=113138249714976&tin=02508201610067®Number=0000000000090829&sum=65800 [15:51:58]StoreToDocumentArchive [15:51:58]shift 448 fd 165348 [15:51:58]save to /storage/0448/doc_00165348 [15:51:58]save last doc name /storage/0448/doc_00165348 to /storage/kkm_last_doc_name [15:51:58]save OK [15:51:58]Clear old archive folders... [15:51:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:51:58]tlvbuf is 018FA820 [15:51:58]SAM_PROTO_ClearQueue [15:51:58]wFMCommunicate request_size=4 [15:51:58]MH_SAM_APDU [15:51:58]CAPDU: 80 09 00 00 [15:51:58]Write to MH i2c: E2 08 00 13 24 80 09 00 00 00 00 00 00 A9 [15:51:58]Write i2c OK [15:51:58]MH_I2C_Read... [15:51:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:51:58]Read from MH i2c: E2 [15:51:58]MH_I2C_Read... [15:51:58]Read from MH i2c: E2 03 00 [15:51:58]MH_I2C_Read... [15:51:58]Read from MH i2c: E2 03 00 13 24 00 90 00 AB [15:51:58]RAPDU: 90 00 [15:51:58]wFMCommunicate OK [15:51:58]SAM_PROTO_ClearQueue done [15:51:58]KKMCreateOFDPacket [15:51:58]OFDProtocolAddRootSTLVToBuf [15:51:58]FM_MakeSignedData [15:51:58]FM_MakeSignedData [15:51:58]SAM_PROTO_SignData [15:51:58]wFMCommunicate request_size=4 [15:51:58]MH_SAM_APDU [15:51:58]CAPDU: 80 0D 01 02 [15:51:58]Write to MH i2c: E2 08 00 14 24 80 0D 01 02 00 00 00 00 B1 [15:51:58]Write i2c OK [15:51:58]MH_I2C_Read... [15:51:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:51:58]Read from MH i2c: E2 [15:51:58]MH_I2C_Read... [15:51:58]Read from MH i2c: E2 03 00 [15:51:58]MH_I2C_Read... [15:51:58]Read from MH i2c: E2 03 00 14 24 00 90 00 AC [15:51:58]RAPDU: 90 00 [15:51:58]wFMCommunicate OK [15:51:58]wFMCommunicate request_size=255 [15:51:58]MH_SAM_APDU [15:51:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 9F 45 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E4 85 02 00 35 04 06 00 66 [15:51:58]Write to MH i2c: E2 02 01 15 24 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 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 9F 45 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E4 85 02 00 35 04 06 00 66 00 00 E0 [15:51:58]Write i2c OK [15:51:58]MH_I2C_Read... [15:51:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:59]Read from MH i2c: E2 [15:51:59]MH_I2C_Read... [15:51:59]Read from MH i2c: E2 03 00 [15:51:59]MH_I2C_Read... [15:51:59]Read from MH i2c: E2 03 00 15 24 00 90 00 AD [15:51:59]RAPDU: 90 00 [15:51:59]wFMCommunicate OK [15:51:59]wFMCommunicate request_size=10 [15:51:59]MH_SAM_APDU [15:51:59]CAPDU: 80 0D 02 02 05 E6 0D 2F 4D 20 [15:51:59]Write to MH i2c: E2 0D 00 16 24 80 0D 02 02 05 00 E6 0D 2F 4D 20 00 00 4D [15:51:59]Write i2c OK [15:51:59]MH_I2C_Read... [15:51:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:59]Read from MH i2c: E2 [15:51:59]MH_I2C_Read... [15:51:59]Read from MH i2c: E2 03 00 [15:51:59]MH_I2C_Read... [15:51:59]Read from MH i2c: E2 03 00 16 24 00 90 00 AE [15:51:59]RAPDU: 90 00 [15:51:59]wFMCommunicate OK [15:51:59]wFMCommunicate request_size=4 [15:51:59]MH_SAM_APDU [15:51:59]CAPDU: 80 0D 03 02 [15:51:59]Write to MH i2c: E2 08 00 17 24 80 0D 03 02 00 00 00 00 B6 [15:51:59]Write i2c OK [15:51:59]MH_I2C_Read... [15:51:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:51:59]Read from MH i2c: E2 [15:51:59]MH_I2C_Read... [15:51:59]Read from MH i2c: E2 0B 00 [15:51:59]MH_I2C_Read... [15:51:59]Read from MH i2c: E2 0B 00 17 24 00 BB 17 34 F0 48 7B 70 EE 90 00 CE [15:51:59]RAPDU: BB 17 34 F0 48 7B 70 EE 90 00 [15:51:59]wFMCommunicate OK [15:51:59]SAM_PROTO_SignData done [15:51:59]FM_MakeSignedData done [15:51:59]CreateOFDProtocolMessage [15:51:59]wFMCommunicate request_size=4 [15:51:59]MH_SAM_APDU [15:51:59]CAPDU: 80 11 00 00 [15:51:59]Write to MH i2c: E2 08 00 18 24 80 11 00 00 00 00 00 00 B6 [15:51:59]Write i2c OK [15:51:59]MH_I2C_Read... [15:51:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:59]Read from MH i2c: E2 [15:51:59]MH_I2C_Read... [15:51:59]Read from MH i2c: E2 17 00 [15:51:59]MH_I2C_Read... [15:51:59]Read from MH i2c: E2 17 00 18 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0C [15:51:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:51:59]wFMCommunicate OK [15:51:59]CreateOFDProtocolMessage done [15:51:59]OFDSenderStorePacket 165348 [15:51:59]StoreOFDPacket docnum=165348 [15:51:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 52 37 07 01 57 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 9F 45 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E4 85 02 00 35 04 06 00 66 E6 0D 2F 4D 20 BB 17 34 F0 48 7B 70 EE [15:51:59]CheckFolder [15:51:59]dirname=/storage/ofd_packets [15:51:59]CheckFolder done [15:51:59]ProducePacketName [15:51:59]name=ofd_packets/00165348 [15:51:59]NVStorageSaveData ofd_packets/00165348 [15:51:59]File name is /storage/ofd_packets/00165348 [15:51:59]Write 301 bytes [15:51:59]NVStorageSaveData done [15:51:59]OFDSenderStorePacket done [15:51:59]KKMCreateOFDPacket done [15:51:59]NVStorageSaveData kkm_last_timestamp [15:51:59]File name is /storage/kkm_last_timestamp [15:51:59]Write 4 bytes [15:51:59]NVStorageSaveData done [15:51:59]ExternCall_PrintAddStr [15:51:59]wPrintStart [15:51:59]Write to MH i2c: 01 00 00 19 24 3D [15:51:59]Write i2c OK [15:51:59]MH_I2C_Read... [15:51:59]Read from MH i2c: 01 [15:51:59]MH_I2C_Read... [15:51:59]Read from MH i2c: 01 07 00 [15:51:59]MH_I2C_Read... [15:51:59]Read from MH i2c: 01 07 00 19 24 00 00 00 00 00 FF 0F 52 [15:51:59]RasterBufferAndPrint [15:51:59]line Счет N : (1)459460 [15:51:59]line ИНН: 02508201610067 [15:51:59]line Контрольно-Кассовый Чек [15:51:59]line ПРОДАЖА [15:51:59]line ТРК (МРК, ГНК) : 22 [15:51:59]line Товар: 2710124130 [15:51:59]line Аи-92-К-5 [15:51:59]line 10.000 * 65.80 [15:51:59]line = 658.00 [15:51:59]line НДС 12% НСП 1% [15:51:59]line > о реализуемом товаре [15:51:59]line ИТОГО: 658.00 [15:51:59]line НСП 1% : 5.82 [15:51:59]line НДС 12% : 69.88 [15:51:59]line Наличными: 658.00 [15:51:59]line Безнал.: 0.00 [15:51:59]line Место: АЗС № 72 "Партнер Нефть" [15:51:59]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:51:59]line СНО: Общий режим [15:51:59]line Чек 221 15.07.2024 15:51 [15:51:59]line Смена: 448 ФФД: 1.0 [15:51:59]line ЗНМ: 0300000160 [15:51:59]line РНМ: 0000000000090829 [15:51:59]line Версия ККМ: 001 [15:51:59]line ФМ: 0000000000874718 [15:51:59]line ФД: 165348 [15:51:59]line ФПД: 113138249714976 [15:51:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T155159&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165348&fm=113138249714976&tin=02508201610067®Number=0000000000090829&sum=65800 [15:51:59]OFD Sender: Processing packet 165348 [packets to send 106, broken 105] [15:51:59]ProducePacketName [15:51:59]name=ofd_packets/00165348 [15:51:59]OFD Sender: To server: pG, [15:51:59]CommunicateWithHost lk.salyk.kg:30040 [15:51:59]ConnectInit lk.salyk.kg [15:51:59]written 0, free lines is 4095 [15:51:59]Connected sock=10 [15:51:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 52 37 07 01 57 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 9F 45 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E4 85 02 00 35 04 06 00 66 E6 0D 2F 4D 20 BB 17 34 F0 48 7B 70 EE [15:52:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 2F F7 47 00 BB 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E4 85 02 00 F4 03 04 00 29 EC 94 66 B6 04 01 00 00 0A 42 D3 40 0C 2E D5 3C [15:52:00]CommunicateWithHost err = 0 [15:52:00]CheckOFDResponse [15:52:00]1017 (14) - 77093643461234 [15:52:00]1041 (16) - 0000000000874718 [15:52:00]1040 (4) - 165348 [15:52:00]1012 (4) - 15.07.2024 09:30 [15:52:00]1206 (1) - 0 [15:52:00]OFD Sender: Remove packet 165348 [15:52:00]ProducePacketName [15:52:00]name=ofd_packets/00165348 [15:52:00]NVStorageDeleteData [15:52:00]Write to MH i2c: 01 00 00 40 24 64 [15:52:00]Write i2c OK [15:52:00]MH_I2C_Read... [15:52:00]Read from MH i2c: 01 [15:52:00]MH_I2C_Read... [15:52:00]Read from MH i2c: 01 07 00 [15:52:00]MH_I2C_Read... [15:52:00]Read from MH i2c: 01 07 00 40 24 00 00 00 00 00 31 0D A9 [15:52:00]RasterBufferAndPrint [15:52:00]line [15:52:00]line [15:52:00]line [15:52:00]line [15:52:00]line [15:52:00]written 0, free lines is 3392 [15:52:00]MH_Cut [15:52:00]Write to MH i2c: D1 01 00 47 24 01 3D [15:52:00]Write i2c OK [15:52:00]MH_I2C_Read... [15:52:00]Read from MH i2c: D1 [15:52:00]MH_I2C_Read... [15:52:00]Read from MH i2c: D1 01 00 [15:52:00]MH_I2C_Read... [15:52:00]Read from MH i2c: D1 01 00 47 24 00 3C [15:52:00]Write to MH i2c: 01 00 00 48 24 6C [15:52:00]Write i2c OK [15:52:00]MH_I2C_Read... [15:52:00]OFD Sender: No OFD packet to send [15:52:00]*** Cut start [15:52:00]*** Partial cut [15:52:00]*** CUTSNS_PIN = 1 [15:52:00]*** CUTSNS_PIN = 0 [15:52:01]*** Brake cut motor [15:52:01]Read from MH i2c: 01 [15:52:01]MH_I2C_Read... [15:52:01]*** Stop cut motor [15:52:01]*** Cut end [15:52:01]Read from MH i2c: 01 07 00 [15:52:01]MH_I2C_Read... [15:52:01]Read from MH i2c: 01 07 00 48 24 00 00 00 00 00 FF 0F 81 [15:52:01]process_action close_receipt done [15:52:01]requested_data is exist [15:52:01]produce_requested_data [15:52:01]requested_item fm.sn is exist - process it [15:52:01]wFMCommunicate request_size=4 [15:52:01]MH_SAM_APDU [15:52:01]CAPDU: 80 11 00 00 [15:52:01]Write to MH i2c: E2 08 00 49 24 80 11 00 00 00 00 00 00 E7 [15:52:01]Write i2c OK [15:52:01]MH_I2C_Read... [15:52:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:01]Read from MH i2c: E2 [15:52:01]MH_I2C_Read... [15:52:01]Read from MH i2c: E2 17 00 [15:52:01]MH_I2C_Read... [15:52:01]Read from MH i2c: E2 17 00 49 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3D [15:52:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:52:01]wFMCommunicate OK [15:52:01]requested_item fd.num is exist - process it [15:52:01]SAM_PROTO_GetFieldsCounters [15:52:01]wFMCommunicate request_size=4 [15:52:01]MH_SAM_APDU [15:52:01]CAPDU: 80 13 00 00 [15:52:01]Write to MH i2c: E2 08 00 4A 24 80 13 00 00 00 00 00 00 EA [15:52:01]Write i2c OK [15:52:01]MH_I2C_Read... [15:52:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:52:01]Read from MH i2c: E2 [15:52:01]MH_I2C_Read... [15:52:01]Read from MH i2c: E2 62 00 [15:52:01]MH_I2C_Read... [15:52:01]Read from MH i2c: E2 62 00 4A 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E4 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [15:52:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E4 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:52:01]wFMCommunicate OK [15:52:01]SAM_PROTO_GetFieldsCounters done [15:52:01]requested_item shift.num is exist - process it [15:52:01]requested_item shift.opened is exist - process it [15:52:01]req_shift_opened [15:52:01]FM_GetShiftState [15:52:01]SAM_PROTO_GetShiftState [15:52:01]wFMCommunicate request_size=4 [15:52:01]MH_SAM_APDU [15:52:01]CAPDU: 80 13 01 00 [15:52:01]Write to MH i2c: E2 08 00 4B 24 80 13 01 00 00 00 00 00 EC [15:52:01]Write i2c OK [15:52:01]MH_I2C_Read... [15:52:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:01]Read from MH i2c: E2 [15:52:01]MH_I2C_Read... [15:52:01]Read from MH i2c: E2 0E 00 [15:52:01]MH_I2C_Read... [15:52:01]Read from MH i2c: E2 0E 00 4B 24 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 C5 [15:52:01]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [15:52:01]wFMCommunicate OK [15:52:01]SAM_PROTO_GetShiftState done [15:52:01]FM_GetShiftState done [15:52:01]req_shift_opened done [15:52:01]requested_item shift.open_date is exist - process it [15:52:01]req_shift_open_date [15:52:01]req_shift_open_date done [15:52:01]produce_requested_data done [15:52:01]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165348,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [15:52:01]process_action_free close_receipt [15:52:01]json_value_free [15:52:01]json_value_free done [15:52:01]process_json_proto returns [15:52:01]Send response to host [15:52:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165348,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [15:52:01]free response buf [15:52:01]execute_script done [15:52:01]execute_script returns [15:52:01]free content buf [15:52:01]Sock 8.Close socket [15:52:01]Sock 8.Thread stoped [15:52:05]OFD Sender: No OFD packet to send [15:52:10]OFD Sender: No OFD packet to send [15:52:15]OFD Sender: No OFD packet to send [15:52:20]OFD Sender: No OFD packet to send [15:52:25]OFD Sender: No OFD packet to send [15:52:30]OFD Sender: No OFD packet to send [15:52:35]OFD Sender: No OFD packet to send [15:52:40]OFD Sender: No OFD packet to send [15:52:45]OFD Sender: No OFD packet to send [15:52:50]OFD Sender: No OFD packet to send [15:52:55]OFD Sender: No OFD packet to send [15:53:00]OFD Sender: No OFD packet to send [15:53:05]OFD Sender: No OFD packet to send [15:53:10]OFD Sender: No OFD packet to send [15:53:15]OFD Sender: No OFD packet to send [15:53:20]OFD Sender: No OFD packet to send [15:53:25]OFD Sender: No OFD packet to send [15:53:30]OFD Sender: No OFD packet to send [15:53:35]OFD Sender: No OFD packet to send [15:53:40]OFD Sender: No OFD packet to send [15:53:45]OFD Sender: No OFD packet to send [15:53:50]OFD Sender: No OFD packet to send [15:53:55]OFD Sender: No OFD packet to send [15:54:00]OFD Sender: No OFD packet to send [15:54:05]OFD Sender: No OFD packet to send [15:54:10]OFD Sender: No OFD packet to send [15:54:15]OFD Sender: No OFD packet to send [15:54:20]OFD Sender: No OFD packet to send [15:54:25]OFD Sender: No OFD packet to send [15:54:30]OFD Sender: No OFD packet to send [15:54:35]OFD Sender: No OFD packet to send [15:54:40]OFD Sender: No OFD packet to send [15:54:45]OFD Sender: No OFD packet to send [15:54:50]OFD Sender: No OFD packet to send [15:54:55]OFD Sender: No OFD packet to send [15:55:00]accept exits with 9 [15:55:00]New connection [15:55:00]New thread 3066711396 created [15:55:00]Thread 3066854756 joined [15:55:00]Waiting for new connection... [15:55:00] Sock 9.Parse request [15:55:00]Sock 9.Check first char [15:55:00]Sock 9.First char is OK [15:55:00]request: POST /json_proto HTTP/1.0 [15:55:00]Method: POST [15:55:00]URL: /json_proto [15:55:00]Method is POST - this is cgi request [15:55:00]url: /json_proto [15:55:00]query_string will be loaded in cgi processing [15:55:00]execute_cgi json_proto POST (null) [15:55:00]execute_cgi path=json_proto method=POST [15:55:00]POST find Content-Length [15:55:00]Host: 172.17.56.4:8080 [15:55:00]Content-Length: 682 [15:55:00]Content-Type: application/json [15:55:00] [15:55:00]POST finish read [15:55:00]Found Content-Length = 682 [15:55:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459461", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 20.520, "sum" : 1350.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1350.00, "total" : 1350.00, "payments": [ { "type": 0, "sum" : 1350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:55:00]execute_script... [15:55: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)459461", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 20.520, "sum" : 1350.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1350.00, "total" : 1350.00, "payments": [ { "type": 0, "sum" : 1350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:55:00]POST & json_proto [15:55:00]process_json_proto [15:55:00]json parsed OK: [15:55:00]protocol is kg_v1.0 [15:55:00]action value=close_receipt [15:55:00]process_action close_receipt [15:55:00]cmd_close_receipt [15:55:00]MH_GetDate [15:55:00]Write to MH i2c: F0 00 00 4C 24 5F [15:55:00]Write i2c OK [15:55:00]MH_I2C_Read... [15:55:00]Read from MH i2c: F0 [15:55:00]MH_I2C_Read... [15:55:00]Read from MH i2c: F0 09 00 [15:55:00]MH_I2C_Read... [15:55:00]Read from MH i2c: F0 09 00 4C 24 00 55 46 95 66 C9 DC B2 64 B9 [15:55:00]GetLastDocTimeStamp 1721058719 [15:55:00]current date 1721058901 [15:55:00]FM_GetShiftState [15:55:00]SAM_PROTO_GetShiftState [15:55:00]wFMCommunicate request_size=4 [15:55:00]MH_SAM_APDU [15:55:00]CAPDU: 80 13 01 00 [15:55:00]Write to MH i2c: E2 08 00 4D 24 80 13 01 00 00 00 00 00 EE [15:55:00]Write i2c OK [15:55:00]MH_I2C_Read... [15:55:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:55:00]Read from MH i2c: E2 [15:55:00]MH_I2C_Read... [15:55:00]Read from MH i2c: E2 0E 00 [15:55:00]MH_I2C_Read... [15:55:00]Read from MH i2c: E2 0E 00 4D 24 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 C7 [15:55:00]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [15:55:00]wFMCommunicate OK [15:55:00]SAM_PROTO_GetShiftState done [15:55:00]FM_GetShiftState done [15:55:00]opened in 1721003876 [15:55:00]opened+sec_in_day 1721090276 [15:55:00]quantity*price = 135021 [15:55:00]sum+1 = 135023 [15:55:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1350.00 Внесено: 1350.00 СДАЧА: 0.00 НСП 1% : 11.95 НДС 12% : 143.39 Наличными: 1350.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 222 15.07.2024 15:55 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165349 ФПД: 173096827471720 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T155502&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165349&fm=173096827471720&tin=02508201610067®Number=0000000000090829&sum=135000 [15:55:01]StoreToDocumentArchive [15:55:01]shift 448 fd 165349 [15:55:01]save to /storage/0448/doc_00165349 [15:55:01]save last doc name /storage/0448/doc_00165349 to /storage/kkm_last_doc_name [15:55:01]save OK [15:55:01]Clear old archive folders... [15:55:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:55:01]tlvbuf is 0181A0D0 [15:55:01]SAM_PROTO_ClearQueue [15:55:01]wFMCommunicate request_size=4 [15:55:01]MH_SAM_APDU [15:55:01]CAPDU: 80 09 00 00 [15:55:01]Write to MH i2c: E2 08 00 5A 24 80 09 00 00 00 00 00 00 F0 [15:55:01]Write i2c OK [15:55:01]MH_I2C_Read... [15:55:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:55:01]Read from MH i2c: E2 [15:55:01]MH_I2C_Read... [15:55:01]Read from MH i2c: E2 03 00 [15:55:01]MH_I2C_Read... [15:55:01]Read from MH i2c: E2 03 00 5A 24 00 90 00 F2 [15:55:01]RAPDU: 90 00 [15:55:01]wFMCommunicate OK [15:55:01]SAM_PROTO_ClearQueue done [15:55:01]KKMCreateOFDPacket [15:55:01]OFDProtocolAddRootSTLVToBuf [15:55:01]FM_MakeSignedData [15:55:01]FM_MakeSignedData [15:55:01]SAM_PROTO_SignData [15:55:01]wFMCommunicate request_size=4 [15:55:01]MH_SAM_APDU [15:55:01]CAPDU: 80 0D 01 02 [15:55:01]Write to MH i2c: E2 08 00 5B 24 80 0D 01 02 00 00 00 00 F8 [15:55:01]Write i2c OK [15:55:01]MH_I2C_Read... [15:55:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:55:01]Read from MH i2c: E2 [15:55:01]MH_I2C_Read... [15:55:01]Read from MH i2c: E2 03 00 [15:55:01]MH_I2C_Read... [15:55:01]Read from MH i2c: E2 03 00 5B 24 00 90 00 F3 [15:55:01]RAPDU: 90 00 [15:55:01]wFMCommunicate OK [15:55:01]wFMCommunicate request_size=255 [15:55:01]MH_SAM_APDU [15:55: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 50 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6E 0F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 0F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 38 00 00 00 00 07 04 06 00 58 0F 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 56 46 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E5 85 02 00 35 04 06 00 9D [15:55:01]Write to MH i2c: E2 02 01 5C 24 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 28 50 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6E 0F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 0F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 38 00 00 00 00 07 04 06 00 58 0F 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 56 46 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E5 85 02 00 35 04 06 00 9D 00 00 C7 [15:55:01]Write i2c OK [15:55:01]MH_I2C_Read... [15:55:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:55:01]Read from MH i2c: E2 [15:55:01]MH_I2C_Read... [15:55:01]Read from MH i2c: E2 03 00 [15:55:01]MH_I2C_Read... [15:55:01]Read from MH i2c: E2 03 00 5C 24 00 90 00 F4 [15:55:01]RAPDU: 90 00 [15:55:01]wFMCommunicate OK [15:55:01]wFMCommunicate request_size=10 [15:55:01]MH_SAM_APDU [15:55:01]CAPDU: 80 0D 02 02 05 6E 3E E9 C7 68 [15:55:01]Write to MH i2c: E2 0D 00 5D 24 80 0D 02 02 05 00 6E 3E E9 C7 68 00 00 C9 [15:55:01]Write i2c OK [15:55:01]MH_I2C_Read... [15:55:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:55:01]Read from MH i2c: E2 [15:55:01]MH_I2C_Read... [15:55:01]Read from MH i2c: E2 03 00 [15:55:01]MH_I2C_Read... [15:55:01]Read from MH i2c: E2 03 00 5D 24 00 90 00 F5 [15:55:01]RAPDU: 90 00 [15:55:01]wFMCommunicate OK [15:55:01]wFMCommunicate request_size=4 [15:55:01]MH_SAM_APDU [15:55:01]CAPDU: 80 0D 03 02 [15:55:01]Write to MH i2c: E2 08 00 5E 24 80 0D 03 02 00 00 00 00 FD [15:55:01]Write i2c OK [15:55:01]MH_I2C_Read... [15:55:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:55:01]Read from MH i2c: E2 [15:55:01]MH_I2C_Read... [15:55:01]Read from MH i2c: E2 0B 00 [15:55:01]MH_I2C_Read... [15:55:01]Read from MH i2c: E2 0B 00 5E 24 00 1D C7 86 20 D8 EF 1E E5 90 00 52 [15:55:01]RAPDU: 1D C7 86 20 D8 EF 1E E5 90 00 [15:55:01]wFMCommunicate OK [15:55:01]SAM_PROTO_SignData done [15:55:01]FM_MakeSignedData done [15:55:01]CreateOFDProtocolMessage [15:55:01]wFMCommunicate request_size=4 [15:55:01]MH_SAM_APDU [15:55:01]CAPDU: 80 11 00 00 [15:55:01]Write to MH i2c: E2 08 00 5F 24 80 11 00 00 00 00 00 00 FD [15:55:01]Write i2c OK [15:55:01]MH_I2C_Read... [15:55:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:55:01]Read from MH i2c: E2 [15:55:01]MH_I2C_Read... [15:55:01]Read from MH i2c: E2 17 00 [15:55:01]MH_I2C_Read... [15:55:01]Read from MH i2c: E2 17 00 5F 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 53 [15:55:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:55:01]wFMCommunicate OK [15:55:01]CreateOFDProtocolMessage done [15:55:01]OFDSenderStorePacket 165349 [15:55:01]StoreOFDPacket docnum=165349 [15:55:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 22 B7 07 01 1A 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 28 50 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6E 0F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 0F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 38 00 00 00 00 07 04 06 00 58 0F 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 56 46 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E5 85 02 00 35 04 06 00 9D 6E 3E E9 C7 68 1D C7 86 20 D8 EF 1E E5 [15:55:01]CheckFolder [15:55:01]dirname=/storage/ofd_packets [15:55:01]CheckFolder done [15:55:01]ProducePacketName [15:55:01]name=ofd_packets/00165349 [15:55:01]NVStorageSaveData ofd_packets/00165349 [15:55:01]File name is /storage/ofd_packets/00165349 [15:55:01]Write 301 bytes [15:55:01]NVStorageSaveData done [15:55:01]OFDSenderStorePacket done [15:55:01]KKMCreateOFDPacket done [15:55:01]NVStorageSaveData kkm_last_timestamp [15:55:01]File name is /storage/kkm_last_timestamp [15:55:01]Write 4 bytes [15:55:01]NVStorageSaveData done [15:55:01]ExternCall_PrintAddStr [15:55:01]wPrintStart [15:55:01]Write to MH i2c: 01 00 00 60 24 84 [15:55:01]Write i2c OK [15:55:01]MH_I2C_Read... [15:55:01]Read from MH i2c: 01 [15:55:01]MH_I2C_Read... [15:55:01]Read from MH i2c: 01 07 00 [15:55:01]MH_I2C_Read... [15:55:01]Read from MH i2c: 01 07 00 60 24 00 00 00 00 00 FF 0F 99 [15:55:01]RasterBufferAndPrint [15:55:01]line Счет N : (1)459461 [15:55:01]line ИНН: 02508201610067 [15:55:01]line Контрольно-Кассовый Чек [15:55:01]line ПРОДАЖА [15:55:01]line ТРК (МРК, ГНК) : 22 [15:55:01]line Товар: 2710124130 [15:55:01]line Аи-92-К-5 [15:55:01]line 20.520 * 65.80 [15:55:01]line = 1350.22 [15:55:01]line НДС 12% НСП 1% [15:55:01]line > о реализуемом товаре [15:55:01]line ОКРУГЛЕНИЕ: -0.22 [15:55:01]line ИТОГО: 1350.00 [15:55:01]line Внесено: 1350.00 [15:55:01]line СДАЧА: 0.00 [15:55:01]line НСП 1% : 11.95 [15:55:01]line НДС 12% : 143.39 [15:55:01]line Наличными: 1350.00 [15:55:01]line Безнал.: 0.00 [15:55:01]line Место: АЗС № 72 "Партнер Нефть" [15:55:01]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:55:01]line СНО: Общий режим [15:55:01]line Чек 222 15.07.2024 15:55 [15:55:01]line Смена: 448 ФФД: 1.0 [15:55:01]line ЗНМ: 0300000160 [15:55:01]line РНМ: 0000000000090829 [15:55:01]line Версия ККМ: 001 [15:55:01]line ФМ: 0000000000874718 [15:55:01]line ФД: 165349 [15:55:01]line ФПД: 173096827471720 [15:55:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T155502&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165349&fm=173096827471720&tin=02508201610067®Number=0000000000090829&sum=135000 [15:55:02]written 0, free lines is 4095 [15:55:02]OFD Sender: Processing packet 165349 [packets to send 106, broken 105] [15:55:02]ProducePacketName [15:55:02]name=ofd_packets/00165349 [15:55:02]OFD Sender: To server: pG, [15:55:02]CommunicateWithHost lk.salyk.kg:30040 [15:55:02]ConnectInit lk.salyk.kg [15:55:02]Connected sock=10 [15:55: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 37 31 38 0F 01 00 00 22 B7 07 01 1A 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 28 50 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6E 0F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 0F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 38 00 00 00 00 07 04 06 00 58 0F 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 56 46 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E5 85 02 00 35 04 06 00 9D 6E 3E E9 C7 68 1D C7 86 20 D8 EF 1E E5 [15:55:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 D0 5E 47 00 A1 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 37 31 38 10 04 04 00 E5 85 02 00 F4 03 04 00 DF EC 94 66 B6 04 01 00 00 0F DE 1A 65 FB 71 11 38 [15:55:02]CommunicateWithHost err = 0 [15:55:02]CheckOFDResponse [15:55:02]1017 (14) - 77093643461234 [15:55:02]1041 (16) - 0000000000874718 [15:55:02]1040 (4) - 165349 [15:55:02]1012 (4) - 15.07.2024 09:33 [15:55:02]1206 (1) - 0 [15:55:02]OFD Sender: Remove packet 165349 [15:55:02]ProducePacketName [15:55:02]name=ofd_packets/00165349 [15:55:02]NVStorageDeleteData [15:55:02]Write to MH i2c: 01 00 00 8A 24 AE [15:55:02]Write i2c OK [15:55:02]MH_I2C_Read... [15:55:02]Read from MH i2c: 01 [15:55:02]MH_I2C_Read... [15:55:02]Read from MH i2c: 01 07 00 [15:55:02]MH_I2C_Read... [15:55:02]Read from MH i2c: 01 07 00 8A 24 00 00 00 00 00 F7 0C B8 [15:55:02]RasterBufferAndPrint [15:55:02]line [15:55:02]line [15:55:02]line [15:55:02]line [15:55:02]line [15:55:02]written 0, free lines is 3326 [15:55:02]MH_Cut [15:55:02]Write to MH i2c: D1 01 00 91 24 01 87 [15:55:02]Write i2c OK [15:55:02]MH_I2C_Read... [15:55:02]Read from MH i2c: D1 [15:55:02]MH_I2C_Read... [15:55:02]Read from MH i2c: D1 01 00 [15:55:02]MH_I2C_Read... [15:55:02]Read from MH i2c: D1 01 00 91 24 00 86 [15:55:02]Write to MH i2c: 01 00 00 92 24 B6 [15:55:02]Write i2c OK [15:55:02]MH_I2C_Read... [15:55:03]OFD Sender: No OFD packet to send [15:55:03]*** Cut start [15:55:03]*** Partial cut [15:55:03]*** CUTSNS_PIN = 1 [15:55:03]*** CUTSNS_PIN = 0 [15:55:03]*** Brake cut motor [15:55:03]Read from MH i2c: 01 [15:55:04]MH_I2C_Read... [15:55:04]*** Stop cut motor [15:55:04]*** Cut end [15:55:04]Read from MH i2c: 01 07 00 [15:55:04]MH_I2C_Read... [15:55:04]Read from MH i2c: 01 07 00 92 24 00 00 00 00 00 FF 0F CB [15:55:04]process_action close_receipt done [15:55:04]requested_data is exist [15:55:04]produce_requested_data [15:55:04]requested_item fm.sn is exist - process it [15:55:04]wFMCommunicate request_size=4 [15:55:04]MH_SAM_APDU [15:55:04]CAPDU: 80 11 00 00 [15:55:04]Write to MH i2c: E2 08 00 93 24 80 11 00 00 00 00 00 00 31 [15:55:04]Write i2c OK [15:55:04]MH_I2C_Read... [15:55:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:55:04]Read from MH i2c: E2 [15:55:04]MH_I2C_Read... [15:55:04]Read from MH i2c: E2 17 00 [15:55:04]MH_I2C_Read... [15:55:04]Read from MH i2c: E2 17 00 93 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 87 [15:55:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:55:04]wFMCommunicate OK [15:55:04]requested_item fd.num is exist - process it [15:55:04]SAM_PROTO_GetFieldsCounters [15:55:04]wFMCommunicate request_size=4 [15:55:04]MH_SAM_APDU [15:55:04]CAPDU: 80 13 00 00 [15:55:04]Write to MH i2c: E2 08 00 94 24 80 13 00 00 00 00 00 00 34 [15:55:04]Write i2c OK [15:55:04]MH_I2C_Read... [15:55:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:55:04]Read from MH i2c: E2 [15:55:04]MH_I2C_Read... [15:55:04]Read from MH i2c: E2 62 00 [15:55:04]MH_I2C_Read... [15:55:04]Read from MH i2c: E2 62 00 94 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E5 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 22 [15:55: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E5 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:55:04]wFMCommunicate OK [15:55:04]SAM_PROTO_GetFieldsCounters done [15:55:04]requested_item shift.num is exist - process it [15:55:04]requested_item shift.opened is exist - process it [15:55:04]req_shift_opened [15:55:04]FM_GetShiftState [15:55:04]SAM_PROTO_GetShiftState [15:55:04]wFMCommunicate request_size=4 [15:55:04]MH_SAM_APDU [15:55:04]CAPDU: 80 13 01 00 [15:55:04]Write to MH i2c: E2 08 00 95 24 80 13 01 00 00 00 00 00 36 [15:55:04]Write i2c OK [15:55:04]MH_I2C_Read... [15:55:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:55:04]Read from MH i2c: E2 [15:55:04]MH_I2C_Read... [15:55:04]Read from MH i2c: E2 0E 00 [15:55:04]MH_I2C_Read... [15:55:04]Read from MH i2c: E2 0E 00 95 24 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 0F [15:55:04]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [15:55:04]wFMCommunicate OK [15:55:04]SAM_PROTO_GetShiftState done [15:55:04]FM_GetShiftState done [15:55:04]req_shift_opened done [15:55:04]requested_item shift.open_date is exist - process it [15:55:04]req_shift_open_date [15:55:04]req_shift_open_date done [15:55:04]produce_requested_data done [15:55:04]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165349,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [15:55:04]process_action_free close_receipt [15:55:04]json_value_free [15:55:04]json_value_free done [15:55:04]process_json_proto returns [15:55:04]Send response to host [15:55:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165349,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [15:55:04]free response buf [15:55:04]execute_script done [15:55:04]execute_script returns [15:55:04]free content buf [15:55:04]Sock 9.Close socket [15:55:04]Sock 9.Thread stoped [15:55:08]OFD Sender: No OFD packet to send [15:55:13]OFD Sender: No OFD packet to send [15:55:18]OFD Sender: No OFD packet to send [15:55:23]OFD Sender: No OFD packet to send [15:55:28]OFD Sender: No OFD packet to send [15:55:33]OFD Sender: No OFD packet to send [15:55:38]OFD Sender: No OFD packet to send [15:55:43]OFD Sender: No OFD packet to send [15:55:48]OFD Sender: No OFD packet to send [15:55:53]OFD Sender: No OFD packet to send [15:55:58]OFD Sender: No OFD packet to send [15:56:03]OFD Sender: No OFD packet to send [15:56:08]OFD Sender: No OFD packet to send [15:56:13]OFD Sender: No OFD packet to send [15:56:18]OFD Sender: No OFD packet to send [15:56:23]OFD Sender: No OFD packet to send [15:56:28]OFD Sender: No OFD packet to send [15:56:33]OFD Sender: No OFD packet to send [15:56:38]OFD Sender: No OFD packet to send [15:56:43]OFD Sender: No OFD packet to send [15:56:48]OFD Sender: No OFD packet to send [15:56:53]OFD Sender: No OFD packet to send [15:56:58]OFD Sender: No OFD packet to send [15:57:03]OFD Sender: No OFD packet to send [15:57:08]OFD Sender: No OFD packet to send [15:57:13]OFD Sender: No OFD packet to send [15:57:18]OFD Sender: No OFD packet to send [15:57:23]OFD Sender: No OFD packet to send [15:57:28]OFD Sender: No OFD packet to send [15:57:33]OFD Sender: No OFD packet to send [15:57:38]OFD Sender: No OFD packet to send [15:57:43]OFD Sender: No OFD packet to send [15:57:48]OFD Sender: No OFD packet to send [15:57:53]OFD Sender: No OFD packet to send [15:57:58]OFD Sender: No OFD packet to send [15:58:03]OFD Sender: No OFD packet to send [15:58:08]OFD Sender: No OFD packet to send [15:58:13]OFD Sender: No OFD packet to send [15:58:18]OFD Sender: No OFD packet to send [15:58:23]OFD Sender: No OFD packet to send [15:58:24]accept exits with 8 [15:58:24]New connection [15:58:24]New thread 3066854756 created [15:58:24]Thread 3066711396 joined [15:58:24]Waiting for new connection... [15:58:24] Sock 8.Parse request [15:58:24]Sock 8.Check first char [15:58:24]Sock 8.First char is OK [15:58:24]request: POST /json_proto HTTP/1.0 [15:58:24]Method: POST [15:58:24]URL: /json_proto [15:58:24]Method is POST - this is cgi request [15:58:24]url: /json_proto [15:58:24]query_string will be loaded in cgi processing [15:58:24]execute_cgi json_proto POST (null) [15:58:24]execute_cgi path=json_proto method=POST [15:58:24]POST find Content-Length [15:58:24]Host: 172.17.56.4:8080 [15:58:24]Content-Length: 677 [15:58:24]Content-Type: application/json [15:58:24] [15:58:24]POST finish read [15:58:24]Found Content-Length = 677 [15:58:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459463", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:58:24]execute_script... [15:58:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459463", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:58:24]POST & json_proto [15:58:24]process_json_proto [15:58:24]json parsed OK: [15:58:24]protocol is kg_v1.0 [15:58:24]action value=close_receipt [15:58:24]process_action close_receipt [15:58:24]cmd_close_receipt [15:58:24]MH_GetDate [15:58:24]Write to MH i2c: F0 00 00 96 24 A9 [15:58:24]Write i2c OK [15:58:24]MH_I2C_Read... [15:58:24]Read from MH i2c: F0 [15:58:24]MH_I2C_Read... [15:58:24]Read from MH i2c: F0 09 00 [15:58:24]MH_I2C_Read... [15:58:24]Read from MH i2c: F0 09 00 96 24 00 21 47 95 66 C9 DC B2 64 D0 [15:58:24]GetLastDocTimeStamp 1721058902 [15:58:24]current date 1721059105 [15:58:24]FM_GetShiftState [15:58:24]SAM_PROTO_GetShiftState [15:58:24]wFMCommunicate request_size=4 [15:58:24]MH_SAM_APDU [15:58:24]CAPDU: 80 13 01 00 [15:58:24]Write to MH i2c: E2 08 00 97 24 80 13 01 00 00 00 00 00 38 [15:58:24]Write i2c OK [15:58:24]MH_I2C_Read... [15:58:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:24]Read from MH i2c: E2 [15:58:24]MH_I2C_Read... [15:58:24]Read from MH i2c: E2 0E 00 [15:58:24]MH_I2C_Read... [15:58:24]Read from MH i2c: E2 0E 00 97 24 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 11 [15:58:24]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [15:58:24]wFMCommunicate OK [15:58:24]SAM_PROTO_GetShiftState done [15:58:24]FM_GetShiftState done [15:58:24]opened in 1721003876 [15:58:24]opened+sec_in_day 1721090276 [15:58:24]quantity*price = 50008 [15:58:24]sum+1 = 50009 [15:58:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 223 15.07.2024 15:58 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165350 ФПД: 156210881623276 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T155825&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165350&fm=156210881623276&tin=02508201610067®Number=0000000000090829&sum=50000 [15:58:25]StoreToDocumentArchive [15:58:25]shift 448 fd 165350 [15:58:25]save to /storage/0448/doc_00165350 [15:58:25]save last doc name /storage/0448/doc_00165350 to /storage/kkm_last_doc_name [15:58:25]save OK [15:58:25]Clear old archive folders... [15:58:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:58:25]tlvbuf is 0181A250 [15:58:25]SAM_PROTO_ClearQueue [15:58:25]wFMCommunicate request_size=4 [15:58:25]MH_SAM_APDU [15:58:25]CAPDU: 80 09 00 00 [15:58:25]Write to MH i2c: E2 08 00 A4 24 80 09 00 00 00 00 00 00 3A [15:58:25]Write i2c OK [15:58:25]MH_I2C_Read... [15:58:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:58:25]Read from MH i2c: E2 [15:58:25]MH_I2C_Read... [15:58:25]Read from MH i2c: E2 03 00 [15:58:25]MH_I2C_Read... [15:58:25]Read from MH i2c: E2 03 00 A4 24 00 90 00 3C [15:58:25]RAPDU: 90 00 [15:58:25]wFMCommunicate OK [15:58:25]SAM_PROTO_ClearQueue done [15:58:25]KKMCreateOFDPacket [15:58:25]OFDProtocolAddRootSTLVToBuf [15:58:25]FM_MakeSignedData [15:58:25]FM_MakeSignedData [15:58:25]SAM_PROTO_SignData [15:58:25]wFMCommunicate request_size=4 [15:58:25]MH_SAM_APDU [15:58:25]CAPDU: 80 0D 01 02 [15:58:25]Write to MH i2c: E2 08 00 A5 24 80 0D 01 02 00 00 00 00 42 [15:58:25]Write i2c OK [15:58:25]MH_I2C_Read... [15:58:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:58:25]Read from MH i2c: E2 [15:58:25]MH_I2C_Read... [15:58:25]Read from MH i2c: E2 03 00 [15:58:25]MH_I2C_Read... [15:58:25]Read from MH i2c: E2 03 00 A5 24 00 90 00 3D [15:58:25]RAPDU: 90 00 [15:58:25]wFMCommunicate OK [15:58:25]wFMCommunicate request_size=255 [15:58:25]MH_SAM_APDU [15:58:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 21 47 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E6 85 02 00 35 04 06 00 8E [15:58:25]Write to MH i2c: E2 02 01 A6 24 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 21 47 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E6 85 02 00 35 04 06 00 8E 00 00 B9 [15:58:25]Write i2c OK [15:58:25]MH_I2C_Read... [15:58:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:25]Read from MH i2c: E2 [15:58:25]MH_I2C_Read... [15:58:25]Read from MH i2c: E2 03 00 [15:58:25]MH_I2C_Read... [15:58:25]Read from MH i2c: E2 03 00 A6 24 00 90 00 3E [15:58:25]RAPDU: 90 00 [15:58:25]wFMCommunicate OK [15:58:25]wFMCommunicate request_size=10 [15:58:25]MH_SAM_APDU [15:58:25]CAPDU: 80 0D 02 02 05 12 AE 1B F4 EC [15:58:25]Write to MH i2c: E2 0D 00 A7 24 80 0D 02 02 05 00 12 AE 1B F4 EC 00 00 0A [15:58:25]Write i2c OK [15:58:25]MH_I2C_Read... [15:58:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:25]Read from MH i2c: E2 [15:58:25]MH_I2C_Read... [15:58:25]Read from MH i2c: E2 03 00 [15:58:25]MH_I2C_Read... [15:58:25]Read from MH i2c: E2 03 00 A7 24 00 90 00 3F [15:58:25]RAPDU: 90 00 [15:58:25]wFMCommunicate OK [15:58:25]wFMCommunicate request_size=4 [15:58:25]MH_SAM_APDU [15:58:25]CAPDU: 80 0D 03 02 [15:58:25]Write to MH i2c: E2 08 00 A8 24 80 0D 03 02 00 00 00 00 47 [15:58:25]Write i2c OK [15:58:25]MH_I2C_Read... [15:58:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:58:25]Read from MH i2c: E2 [15:58:25]MH_I2C_Read... [15:58:25]Read from MH i2c: E2 0B 00 [15:58:25]MH_I2C_Read... [15:58:25]Read from MH i2c: E2 0B 00 A8 24 00 94 CE A0 0A 86 2A 44 B9 90 00 01 [15:58:25]RAPDU: 94 CE A0 0A 86 2A 44 B9 90 00 [15:58:25]wFMCommunicate OK [15:58:25]SAM_PROTO_SignData done [15:58:25]FM_MakeSignedData done [15:58:25]CreateOFDProtocolMessage [15:58:25]wFMCommunicate request_size=4 [15:58:25]MH_SAM_APDU [15:58:25]CAPDU: 80 11 00 00 [15:58:25]Write to MH i2c: E2 08 00 A9 24 80 11 00 00 00 00 00 00 47 [15:58:25]Write i2c OK [15:58:25]MH_I2C_Read... [15:58:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:25]Read from MH i2c: E2 [15:58:25]MH_I2C_Read... [15:58:25]Read from MH i2c: E2 17 00 [15:58:25]MH_I2C_Read... [15:58:25]Read from MH i2c: E2 17 00 A9 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 9D [15:58:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:58:25]wFMCommunicate OK [15:58:25]CreateOFDProtocolMessage done [15:58:25]OFDSenderStorePacket 165350 [15:58:25]StoreOFDPacket docnum=165350 [15:58:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 98 C7 07 01 44 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 21 47 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E6 85 02 00 35 04 06 00 8E 12 AE 1B F4 EC 94 CE A0 0A 86 2A 44 B9 [15:58:25]CheckFolder [15:58:25]dirname=/storage/ofd_packets [15:58:25]CheckFolder done [15:58:25]ProducePacketName [15:58:25]name=ofd_packets/00165350 [15:58:25]NVStorageSaveData ofd_packets/00165350 [15:58:25]File name is /storage/ofd_packets/00165350 [15:58:25]Write 301 bytes [15:58:25]NVStorageSaveData done [15:58:25]OFDSenderStorePacket done [15:58:25]KKMCreateOFDPacket done [15:58:25]NVStorageSaveData kkm_last_timestamp [15:58:25]File name is /storage/kkm_last_timestamp [15:58:25]Write 4 bytes [15:58:25]NVStorageSaveData done [15:58:25]ExternCall_PrintAddStr [15:58:25]wPrintStart [15:58:25]Write to MH i2c: 01 00 00 AA 24 CE [15:58:25]Write i2c OK [15:58:25]MH_I2C_Read... [15:58:25]Read from MH i2c: 01 [15:58:25]MH_I2C_Read... [15:58:25]Read from MH i2c: 01 07 00 [15:58:25]MH_I2C_Read... [15:58:25]Read from MH i2c: 01 07 00 AA 24 00 00 00 00 00 FF 0F E3 [15:58:25]RasterBufferAndPrint [15:58:25]line Счет N : (1)459463 [15:58:25]line ИНН: 02508201610067 [15:58:25]line Контрольно-Кассовый Чек [15:58:25]line ПРОДАЖА [15:58:25]line ТРК (МРК, ГНК) : 12 [15:58:25]line Товар: 2710124130 [15:58:25]line Аи-92-К-5 [15:58:25]line 7.600 * 65.80 [15:58:25]line = 500.08 [15:58:25]line НДС 12% НСП 1% [15:58:25]line > о реализуемом товаре [15:58:25]line ОКРУГЛЕНИЕ: -0.08 [15:58:25]line ИТОГО: 500.00 [15:58:25]line Внесено: 500.00 [15:58:25]line СДАЧА: 0.00 [15:58:25]line НСП 1% : 4.42 [15:58:25]line НДС 12% : 53.11 [15:58:25]line Наличными: 500.00 [15:58:25]line Безнал.: 0.00 [15:58:25]line Место: АЗС № 72 "Партнер Нефть" [15:58:25]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:58:25]line СНО: Общий режим [15:58:25]line Чек 223 15.07.2024 15:58 [15:58:25]line Смена: 448 ФФД: 1.0 [15:58:25]line ЗНМ: 0300000160 [15:58:25]line РНМ: 0000000000090829 [15:58:25]line Версия ККМ: 001 [15:58:25]line ФМ: 0000000000874718 [15:58:25]line ФД: 165350 [15:58:25]line ФПД: 156210881623276 [15:58:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T155825&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165350&fm=156210881623276&tin=02508201610067®Number=0000000000090829&sum=50000 [15:58:26]OFD Sender: Processing packet 165350 [packets to send 106, broken 105] [15:58:26]ProducePacketName [15:58:26]name=ofd_packets/00165350 [15:58:26]OFD Sender: To server: pG, [15:58:26]CommunicateWithHost lk.salyk.kg:30040 [15:58:26]ConnectInit lk.salyk.kg [15:58:26]written 0, free lines is 4095 [15:58:26]Connected sock=10 [15:58:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 98 C7 07 01 44 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 21 47 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E6 85 02 00 35 04 06 00 8E 12 AE 1B F4 EC 94 CE A0 0A 86 2A 44 B9 [15:58:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 58 79 47 00 23 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E6 85 02 00 F4 03 04 00 AB ED 94 66 B6 04 01 00 00 32 B1 B2 22 9E 5B FE C3 [15:58:26]CommunicateWithHost err = 0 [15:58:26]CheckOFDResponse [15:58:26]1017 (14) - 77093643461234 [15:58:26]1041 (16) - 0000000000874718 [15:58:26]1040 (4) - 165350 [15:58:26]1012 (4) - 15.07.2024 09:36 [15:58:26]1206 (1) - 0 [15:58:26]OFD Sender: Remove packet 165350 [15:58:26]ProducePacketName [15:58:26]name=ofd_packets/00165350 [15:58:26]NVStorageDeleteData [15:58:26]Write to MH i2c: 01 00 00 D4 24 F8 [15:58:26]Write i2c OK [15:58:26]MH_I2C_Read... [15:58:26]Read from MH i2c: 01 [15:58:26]MH_I2C_Read... [15:58:26]Read from MH i2c: 01 07 00 [15:58:26]MH_I2C_Read... [15:58:26]Read from MH i2c: 01 07 00 D4 24 00 00 00 00 00 FB 0C 06 [15:58:26]RasterBufferAndPrint [15:58:26]line [15:58:26]line [15:58:26]line [15:58:26]line [15:58:26]line [15:58:26]written 0, free lines is 3329 [15:58:26]MH_Cut [15:58:26]Write to MH i2c: D1 01 00 DB 24 01 D1 [15:58:26]Write i2c OK [15:58:26]MH_I2C_Read... [15:58:26]Read from MH i2c: D1 [15:58:26]MH_I2C_Read... [15:58:26]Read from MH i2c: D1 01 00 [15:58:26]MH_I2C_Read... [15:58:26]Read from MH i2c: D1 01 00 DB 24 00 D0 [15:58:26]Write to MH i2c: 01 00 00 DC 24 00 [15:58:26]Write i2c OK [15:58:26]MH_I2C_Read... [15:58:27]OFD Sender: No OFD packet to send [15:58:27]*** Cut start [15:58:27]*** Partial cut [15:58:27]*** CUTSNS_PIN = 1 [15:58:27]*** CUTSNS_PIN = 0 [15:58:27]*** Brake cut motor [15:58:27]Read from MH i2c: 01 [15:58:27]MH_I2C_Read... [15:58:27]*** Stop cut motor [15:58:27]*** Cut end [15:58:27]Read from MH i2c: 01 07 00 [15:58:27]MH_I2C_Read... [15:58:27]Read from MH i2c: 01 07 00 DC 24 00 00 00 00 00 FF 0F 15 [15:58:27]process_action close_receipt done [15:58:27]requested_data is exist [15:58:27]produce_requested_data [15:58:27]requested_item fm.sn is exist - process it [15:58:27]wFMCommunicate request_size=4 [15:58:27]MH_SAM_APDU [15:58:27]CAPDU: 80 11 00 00 [15:58:27]Write to MH i2c: E2 08 00 DD 24 80 11 00 00 00 00 00 00 7B [15:58:27]Write i2c OK [15:58:27]MH_I2C_Read... [15:58:27]Read from MH i2c: E2 [15:58:27]MH_I2C_Read... [15:58:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:27]Read from MH i2c: E2 17 00 [15:58:27]MH_I2C_Read... [15:58:27]Read from MH i2c: E2 17 00 DD 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D1 [15:58:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:58:27]wFMCommunicate OK [15:58:27]requested_item fd.num is exist - process it [15:58:27]SAM_PROTO_GetFieldsCounters [15:58:27]wFMCommunicate request_size=4 [15:58:27]MH_SAM_APDU [15:58:27]CAPDU: 80 13 00 00 [15:58:27]Write to MH i2c: E2 08 00 DE 24 80 13 00 00 00 00 00 00 7E [15:58:27]Write i2c OK [15:58:27]MH_I2C_Read... [15:58:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:58:28]Read from MH i2c: E2 [15:58:28]MH_I2C_Read... [15:58:28]Read from MH i2c: E2 62 00 [15:58:28]MH_I2C_Read... [15:58:28]Read from MH i2c: E2 62 00 DE 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E6 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 70 [15:58:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E6 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:58:28]wFMCommunicate OK [15:58:28]SAM_PROTO_GetFieldsCounters done [15:58:28]requested_item shift.num is exist - process it [15:58:28]requested_item shift.opened is exist - process it [15:58:28]req_shift_opened [15:58:28]FM_GetShiftState [15:58:28]SAM_PROTO_GetShiftState [15:58:28]wFMCommunicate request_size=4 [15:58:28]MH_SAM_APDU [15:58:28]CAPDU: 80 13 01 00 [15:58:28]Write to MH i2c: E2 08 00 DF 24 80 13 01 00 00 00 00 00 80 [15:58:28]Write i2c OK [15:58:28]MH_I2C_Read... [15:58:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:28]Read from MH i2c: E2 [15:58:28]MH_I2C_Read... [15:58:28]Read from MH i2c: E2 0E 00 [15:58:28]MH_I2C_Read... [15:58:28]Read from MH i2c: E2 0E 00 DF 24 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 59 [15:58:28]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [15:58:28]wFMCommunicate OK [15:58:28]SAM_PROTO_GetShiftState done [15:58:28]FM_GetShiftState done [15:58:28]req_shift_opened done [15:58:28]requested_item shift.open_date is exist - process it [15:58:28]req_shift_open_date [15:58:28]req_shift_open_date done [15:58:28]produce_requested_data done [15:58:28]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165350,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [15:58:28]process_action_free close_receipt [15:58:28]json_value_free [15:58:28]json_value_free done [15:58:28]process_json_proto returns [15:58:28]Send response to host [15:58:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165350,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [15:58:28]free response buf [15:58:28]execute_script done [15:58:28]execute_script returns [15:58:28]free content buf [15:58:28]Sock 8.Close socket [15:58:28]Sock 8.Thread stoped [15:58:32]OFD Sender: No OFD packet to send [15:58:37]OFD Sender: No OFD packet to send [15:58:42]OFD Sender: No OFD packet to send [15:58:47]OFD Sender: No OFD packet to send [15:58:52]OFD Sender: No OFD packet to send [15:58:57]OFD Sender: No OFD packet to send [15:59:01]accept exits with 9 [15:59:01]New connection [15:59:01]New thread 3066711396 created [15:59:01]Thread 3066854756 joined [15:59:01]Waiting for new connection... [15:59:01] Sock 9.Parse request [15:59:01]Sock 9.Check first char [15:59:01]Sock 9.First char is OK [15:59:01]request: POST /json_proto HTTP/1.0 [15:59:01]Method: POST [15:59:01]URL: /json_proto [15:59:01]Method is POST - this is cgi request [15:59:01]url: /json_proto [15:59:01]query_string will be loaded in cgi processing [15:59:01]execute_cgi json_proto POST (null) [15:59:01]execute_cgi path=json_proto method=POST [15:59:01]POST find Content-Length [15:59:01]Host: 172.17.56.4:8080 [15:59:01]Content-Length: 679 [15:59:01]Content-Type: application/json [15:59:01] [15:59:01]POST finish read [15:59:01]Found Content-Length = 679 [15:59:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459462", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 30.600, "sum" : 2200.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2200.00, "total" : 2200.00, "payments": [ { "type": 0, "sum" : 2200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:01]execute_script... [15:59:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459462", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 30.600, "sum" : 2200.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2200.00, "total" : 2200.00, "payments": [ { "type": 0, "sum" : 2200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:01]POST & json_proto [15:59:01]process_json_proto [15:59:01]json parsed OK: [15:59:01]protocol is kg_v1.0 [15:59:01]action value=close_receipt [15:59:01]process_action close_receipt [15:59:01]cmd_close_receipt [15:59:01]MH_GetDate [15:59:01]Write to MH i2c: F0 00 00 E0 24 F3 [15:59:01]Write i2c OK [15:59:01]MH_I2C_Read... [15:59:01]Read from MH i2c: F0 [15:59:01]MH_I2C_Read... [15:59:01]Read from MH i2c: F0 09 00 [15:59:01]MH_I2C_Read... [15:59:01]Read from MH i2c: F0 09 00 E0 24 00 47 47 95 66 C9 DC B2 64 40 [15:59:01]GetLastDocTimeStamp 1721059105 [15:59:01]current date 1721059143 [15:59:01]FM_GetShiftState [15:59:01]SAM_PROTO_GetShiftState [15:59:01]wFMCommunicate request_size=4 [15:59:01]MH_SAM_APDU [15:59:01]CAPDU: 80 13 01 00 [15:59:01]Write to MH i2c: E2 08 00 E1 24 80 13 01 00 00 00 00 00 82 [15:59:01]Write i2c OK [15:59:01]MH_I2C_Read... [15:59:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:01]Read from MH i2c: E2 [15:59:01]MH_I2C_Read... [15:59:01]Read from MH i2c: E2 0E 00 [15:59:01]MH_I2C_Read... [15:59:01]Read from MH i2c: E2 0E 00 E1 24 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 5B [15:59:01]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [15:59:01]wFMCommunicate OK [15:59:01]SAM_PROTO_GetShiftState done [15:59:01]FM_GetShiftState done [15:59:01]opened in 1721003876 [15:59:01]opened+sec_in_day 1721090276 [15:59:01]quantity*price = 220014 [15:59:01]sum+1 = 220015 [15:59:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 2200.00 Внесено: 2200.00 СДАЧА: 0.00 НСП 1% : 19.47 НДС 12% : 233.64 Наличными: 2200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 224 15.07.2024 15:59 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165351 ФПД: 269536988339788 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T155903&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165351&fm=269536988339788&tin=02508201610067®Number=0000000000090829&sum=220000 [15:59:02]StoreToDocumentArchive [15:59:02]shift 448 fd 165351 [15:59:02]save to /storage/0448/doc_00165351 [15:59:02]save last doc name /storage/0448/doc_00165351 to /storage/kkm_last_doc_name [15:59:02]save OK [15:59:02]Clear old archive folders... [15:59:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:59:02]tlvbuf is 01881680 [15:59:02]SAM_PROTO_ClearQueue [15:59:02]wFMCommunicate request_size=4 [15:59:02]MH_SAM_APDU [15:59:02]CAPDU: 80 09 00 00 [15:59:02]Write to MH i2c: E2 08 00 EE 24 80 09 00 00 00 00 00 00 84 [15:59:02]Write i2c OK [15:59:02]MH_I2C_Read... [15:59:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:59:02]Read from MH i2c: E2 [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: E2 03 00 [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: E2 03 00 EE 24 00 90 00 86 [15:59:02]RAPDU: 90 00 [15:59:02]wFMCommunicate OK [15:59:02]SAM_PROTO_ClearQueue done [15:59:02]KKMCreateOFDPacket [15:59:02]OFDProtocolAddRootSTLVToBuf [15:59:02]FM_MakeSignedData [15:59:02]FM_MakeSignedData [15:59:02]SAM_PROTO_SignData [15:59:02]wFMCommunicate request_size=4 [15:59:02]MH_SAM_APDU [15:59:02]CAPDU: 80 0D 01 02 [15:59:02]Write to MH i2c: E2 08 00 EF 24 80 0D 01 02 00 00 00 00 8C [15:59:02]Write i2c OK [15:59:02]MH_I2C_Read... [15:59:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:59:02]Read from MH i2c: E2 [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: E2 03 00 [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: E2 03 00 EF 24 00 90 00 87 [15:59:02]RAPDU: 90 00 [15:59:02]wFMCommunicate OK [15:59:02]wFMCommunicate request_size=255 [15:59:02]MH_SAM_APDU [15:59:02]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 88 77 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 6E 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 47 47 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E7 85 02 00 35 04 06 00 F5 24 78 71 [15:59:02]Write to MH i2c: E2 02 01 F0 24 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 88 77 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 6E 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 47 47 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E7 85 02 00 35 04 06 00 F5 24 78 71 00 00 43 [15:59:02]Write i2c OK [15:59:02]MH_I2C_Read... [15:59:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:02]Read from MH i2c: E2 [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: E2 03 00 [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: E2 03 00 F0 24 00 90 00 88 [15:59:02]RAPDU: 90 00 [15:59:02]wFMCommunicate OK [15:59:02]wFMCommunicate request_size=7 [15:59:02]MH_SAM_APDU [15:59:02]CAPDU: 80 0D 02 02 02 9E 4C [15:59:02]Write to MH i2c: E2 0A 00 F1 24 80 0D 02 02 02 00 9E 4C 00 00 7D [15:59:02]Write i2c OK [15:59:02]MH_I2C_Read... [15:59:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:02]Read from MH i2c: E2 [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: E2 03 00 [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: E2 03 00 F1 24 00 90 00 89 [15:59:02]RAPDU: 90 00 [15:59:02]wFMCommunicate OK [15:59:02]wFMCommunicate request_size=4 [15:59:02]MH_SAM_APDU [15:59:02]CAPDU: 80 0D 03 02 [15:59:02]Write to MH i2c: E2 08 00 F2 24 80 0D 03 02 00 00 00 00 91 [15:59:02]Write i2c OK [15:59:02]MH_I2C_Read... [15:59:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:59:02]Read from MH i2c: E2 [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: E2 0B 00 [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: E2 0B 00 F2 24 00 8D C3 63 2D 31 3C E6 85 90 00 4A [15:59:02]RAPDU: 8D C3 63 2D 31 3C E6 85 90 00 [15:59:02]wFMCommunicate OK [15:59:02]SAM_PROTO_SignData done [15:59:02]FM_MakeSignedData done [15:59:02]CreateOFDProtocolMessage [15:59:02]wFMCommunicate request_size=4 [15:59:02]MH_SAM_APDU [15:59:02]CAPDU: 80 11 00 00 [15:59:02]Write to MH i2c: E2 08 00 F3 24 80 11 00 00 00 00 00 00 91 [15:59:02]Write i2c OK [15:59:02]MH_I2C_Read... [15:59:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:02]Read from MH i2c: E2 [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: E2 17 00 [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: E2 17 00 F3 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E7 [15:59:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:59:02]wFMCommunicate OK [15:59:02]CreateOFDProtocolMessage done [15:59:02]OFDSenderStorePacket 165351 [15:59:02]StoreOFDPacket docnum=165351 [15:59:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 4D 9A 04 01 DF C2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 88 77 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 6E 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 47 47 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E7 85 02 00 35 04 06 00 F5 24 78 71 9E 4C 8D C3 63 2D 31 3C E6 85 [15:59:02]CheckFolder [15:59:02]dirname=/storage/ofd_packets [15:59:02]CheckFolder done [15:59:02]ProducePacketName [15:59:02]name=ofd_packets/00165351 [15:59:02]NVStorageSaveData ofd_packets/00165351 [15:59:02]File name is /storage/ofd_packets/00165351 [15:59:02]Write 298 bytes [15:59:02]NVStorageSaveData done [15:59:02]OFDSenderStorePacket done [15:59:02]KKMCreateOFDPacket done [15:59:02]NVStorageSaveData kkm_last_timestamp [15:59:02]File name is /storage/kkm_last_timestamp [15:59:02]Write 4 bytes [15:59:02]NVStorageSaveData done [15:59:02]ExternCall_PrintAddStr [15:59:02]wPrintStart [15:59:02]Write to MH i2c: 01 00 00 F4 24 18 [15:59:02]Write i2c OK [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: 01 [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: 01 07 00 [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: 01 07 00 F4 24 00 00 00 00 00 FF 0F 2D [15:59:02]RasterBufferAndPrint [15:59:02]line Счет N : (1)459462 [15:59:02]line ИНН: 02508201610067 [15:59:02]line Контрольно-Кассовый Чек [15:59:02]line ПРОДАЖА [15:59:02]line ТРК (МРК, ГНК) : 11 [15:59:02]line Товар: 2710194210 [15:59:02]line ДТ-К-5 [15:59:02]line 30.600 * 71.90 [15:59:02]line = 2200.14 [15:59:02]line НДС 12% НСП 1% [15:59:02]line > о реализуемом товаре [15:59:02]line ОКРУГЛЕНИЕ: -0.14 [15:59:02]line ИТОГО: 2200.00 [15:59:02]line Внесено: 2200.00 [15:59:02]line СДАЧА: 0.00 [15:59:02]line НСП 1% : 19.47 [15:59:02]line НДС 12% : 233.64 [15:59:02]line Наличными: 2200.00 [15:59:02]line Безнал.: 0.00 [15:59:02]line Место: АЗС № 72 "Партнер Нефть" [15:59:02]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [15:59:02]line СНО: Общий режим [15:59:02]line Чек 224 15.07.2024 15:59 [15:59:02]line Смена: 448 ФФД: 1.0 [15:59:02]line ЗНМ: 0300000160 [15:59:02]line РНМ: 0000000000090829 [15:59:03]line Версия ККМ: 001 [15:59:03]line ФМ: 0000000000874718 [15:59:03]line ФД: 165351 [15:59:03]line ФПД: 269536988339788 [15:59:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T155903&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165351&fm=269536988339788&tin=02508201610067®Number=0000000000090829&sum=220000 [15:59:03]OFD Sender: Processing packet 165351 [packets to send 106, broken 105] [15:59:03]ProducePacketName [15:59:03]name=ofd_packets/00165351 [15:59:03]OFD Sender: To server: pG, [15:59:03]CommunicateWithHost lk.salyk.kg:30040 [15:59:03]ConnectInit lk.salyk.kg [15:59:03]written 0, free lines is 4095 [15:59:03]Connected sock=10 [15:59:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 4D 9A 04 01 DF C2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 88 77 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 6E 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 47 47 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E7 85 02 00 35 04 06 00 F5 24 78 71 9E 4C 8D C3 63 2D 31 3C E6 85 [15:59:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 6E 75 47 00 2E 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 37 31 38 10 04 04 00 E7 85 02 00 F4 03 04 00 D0 ED 94 66 B6 04 01 00 00 6E 66 C7 A8 F1 4B DC AC [15:59:03]CommunicateWithHost err = 0 [15:59:03]CheckOFDResponse [15:59:03]1017 (14) - 77093643461234 [15:59:03]1041 (16) - 0000000000874718 [15:59:03]1040 (4) - 165351 [15:59:03]1012 (4) - 15.07.2024 09:37 [15:59:03]1206 (1) - 0 [15:59:03]OFD Sender: Remove packet 165351 [15:59:03]ProducePacketName [15:59:03]name=ofd_packets/00165351 [15:59:03]NVStorageDeleteData [15:59:03]Write to MH i2c: 01 00 00 1E 25 43 [15:59:03]Write i2c OK [15:59:03]MH_I2C_Read... [15:59:03]Read from MH i2c: 01 [15:59:03]MH_I2C_Read... [15:59:03]Read from MH i2c: 01 07 00 [15:59:03]MH_I2C_Read... [15:59:03]Read from MH i2c: 01 07 00 1E 25 00 00 00 00 00 F8 0C 4E [15:59:03]RasterBufferAndPrint [15:59:03]line [15:59:03]line [15:59:03]line [15:59:03]line [15:59:03]line [15:59:03]written 0, free lines is 3327 [15:59:03]MH_Cut [15:59:03]Write to MH i2c: D1 01 00 25 25 01 1C [15:59:03]Write i2c OK [15:59:03]MH_I2C_Read... [15:59:03]Read from MH i2c: D1 [15:59:03]MH_I2C_Read... [15:59:03]Read from MH i2c: D1 01 00 [15:59:03]MH_I2C_Read... [15:59:03]Read from MH i2c: D1 01 00 25 25 00 1B [15:59:03]Write to MH i2c: 01 00 00 26 25 4B [15:59:03]Write i2c OK [15:59:03]MH_I2C_Read... [15:59:04]OFD Sender: No OFD packet to send [15:59:04]*** Cut start [15:59:04]*** Partial cut [15:59:04]*** CUTSNS_PIN = 1 [15:59:04]*** CUTSNS_PIN = 0 [15:59:04]*** Brake cut motor [15:59:05]Read from MH i2c: 01 [15:59:05]MH_I2C_Read... [15:59:05]*** Stop cut motor [15:59:05]*** Cut end [15:59:05]Read from MH i2c: 01 07 00 [15:59:05]MH_I2C_Read... [15:59:05]Read from MH i2c: 01 07 00 26 25 00 00 00 00 00 FF 0F 60 [15:59:05]process_action close_receipt done [15:59:05]requested_data is exist [15:59:05]produce_requested_data [15:59:05]requested_item fm.sn is exist - process it [15:59:05]wFMCommunicate request_size=4 [15:59:05]MH_SAM_APDU [15:59:05]CAPDU: 80 11 00 00 [15:59:05]Write to MH i2c: E2 08 00 27 25 80 11 00 00 00 00 00 00 C6 [15:59:05]Write i2c OK [15:59:05]MH_I2C_Read... [15:59:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:05]Read from MH i2c: E2 [15:59:05]MH_I2C_Read... [15:59:05]Read from MH i2c: E2 17 00 [15:59:05]MH_I2C_Read... [15:59:05]Read from MH i2c: E2 17 00 27 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1C [15:59:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [15:59:05]wFMCommunicate OK [15:59:05]requested_item fd.num is exist - process it [15:59:05]SAM_PROTO_GetFieldsCounters [15:59:05]wFMCommunicate request_size=4 [15:59:05]MH_SAM_APDU [15:59:05]CAPDU: 80 13 00 00 [15:59:05]Write to MH i2c: E2 08 00 28 25 80 13 00 00 00 00 00 00 C9 [15:59:05]Write i2c OK [15:59:05]MH_I2C_Read... [15:59:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:59:05]Read from MH i2c: E2 [15:59:05]MH_I2C_Read... [15:59:05]Read from MH i2c: E2 62 00 [15:59:05]MH_I2C_Read... [15:59:05]Read from MH i2c: E2 62 00 28 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E7 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [15:59:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E7 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:59:05]wFMCommunicate OK [15:59:05]SAM_PROTO_GetFieldsCounters done [15:59:05]requested_item shift.num is exist - process it [15:59:05]requested_item shift.opened is exist - process it [15:59:05]req_shift_opened [15:59:05]FM_GetShiftState [15:59:05]SAM_PROTO_GetShiftState [15:59:05]wFMCommunicate request_size=4 [15:59:05]MH_SAM_APDU [15:59:05]CAPDU: 80 13 01 00 [15:59:05]Write to MH i2c: E2 08 00 29 25 80 13 01 00 00 00 00 00 CB [15:59:05]Write i2c OK [15:59:05]MH_I2C_Read... [15:59:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:05]Read from MH i2c: E2 [15:59:05]MH_I2C_Read... [15:59:05]Read from MH i2c: E2 0E 00 [15:59:05]MH_I2C_Read... [15:59:05]Read from MH i2c: E2 0E 00 29 25 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 A4 [15:59:05]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [15:59:05]wFMCommunicate OK [15:59:05]SAM_PROTO_GetShiftState done [15:59:05]FM_GetShiftState done [15:59:05]req_shift_opened done [15:59:05]requested_item shift.open_date is exist - process it [15:59:05]req_shift_open_date [15:59:05]req_shift_open_date done [15:59:05]produce_requested_data done [15:59:05]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165351,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [15:59:05]process_action_free close_receipt [15:59:05]json_value_free [15:59:05]json_value_free done [15:59:05]process_json_proto returns [15:59:05]Send response to host [15:59:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165351,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [15:59:05]free response buf [15:59:05]execute_script done [15:59:05]execute_script returns [15:59:05]free content buf [15:59:05]Sock 9.Close socket [15:59:05]Sock 9.Thread stoped [15:59:09]OFD Sender: No OFD packet to send [15:59:14]OFD Sender: No OFD packet to send [15:59:19]OFD Sender: No OFD packet to send [15:59:24]OFD Sender: No OFD packet to send [15:59:29]OFD Sender: No OFD packet to send [15:59:34]OFD Sender: No OFD packet to send [15:59:39]OFD Sender: No OFD packet to send [15:59:44]OFD Sender: No OFD packet to send [15:59:49]OFD Sender: No OFD packet to send [15:59:54]OFD Sender: No OFD packet to send [15:59:59]OFD Sender: No OFD packet to send [16:00:04]OFD Sender: No OFD packet to send [16:00:09]OFD Sender: No OFD packet to send [16:00:14]OFD Sender: No OFD packet to send [16:00:19]OFD Sender: No OFD packet to send [16:00:24]OFD Sender: No OFD packet to send [16:00:29]OFD Sender: No OFD packet to send [16:00:34]OFD Sender: No OFD packet to send [16:00:39]OFD Sender: No OFD packet to send [16:00:44]OFD Sender: No OFD packet to send [16:00:49]OFD Sender: No OFD packet to send [16:00:54]OFD Sender: No OFD packet to send [16:00:59]OFD Sender: No OFD packet to send [16:01:04]OFD Sender: No OFD packet to send [16:01:09]OFD Sender: No OFD packet to send [16:01:14]OFD Sender: No OFD packet to send [16:01:15]accept exits with 8 [16:01:15]New connection [16:01:15]New thread 3066854756 created [16:01:15]Thread 3066711396 joined [16:01:15]Waiting for new connection... [16:01:15] Sock 8.Parse request [16:01:15]Sock 8.Check first char [16:01:15]Sock 8.First char is OK [16:01:15]request: POST /json_proto HTTP/1.0 [16:01:15]Method: POST [16:01:15]URL: /json_proto [16:01:15]Method is POST - this is cgi request [16:01:15]url: /json_proto [16:01:15]query_string will be loaded in cgi processing [16:01:15]execute_cgi json_proto POST (null) [16:01:15]execute_cgi path=json_proto method=POST [16:01:15]POST find Content-Length [16:01:15]Host: 172.17.56.4:8080 [16:01:15]Content-Length: 639 [16:01:15]Content-Type: application/json [16:01:15] [16:01:15]POST finish read [16:01:15]Found Content-Length = 639 [16:01:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459464", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.000, "sum" : 329.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 329.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:01:15]execute_script... [16:01:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459464", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.000, "sum" : 329.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 329.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:01:15]POST & json_proto [16:01:15]process_json_proto [16:01:15]json parsed OK: [16:01:15]protocol is kg_v1.0 [16:01:15]action value=close_receipt [16:01:15]process_action close_receipt [16:01:15]cmd_close_receipt [16:01:15]MH_GetDate [16:01:15]Write to MH i2c: F0 00 00 2A 25 3E [16:01:15]Write i2c OK [16:01:15]MH_I2C_Read... [16:01:15]Read from MH i2c: F0 [16:01:15]MH_I2C_Read... [16:01:15]Read from MH i2c: F0 09 00 [16:01:15]MH_I2C_Read... [16:01:15]Read from MH i2c: F0 09 00 2A 25 00 CC 47 95 66 C9 DC B2 64 10 [16:01:15]GetLastDocTimeStamp 1721059143 [16:01:15]current date 1721059276 [16:01:15]FM_GetShiftState [16:01:15]SAM_PROTO_GetShiftState [16:01:15]wFMCommunicate request_size=4 [16:01:15]MH_SAM_APDU [16:01:15]CAPDU: 80 13 01 00 [16:01:15]Write to MH i2c: E2 08 00 2B 25 80 13 01 00 00 00 00 00 CD [16:01:15]Write i2c OK [16:01:15]MH_I2C_Read... [16:01:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:15]Read from MH i2c: E2 [16:01:15]MH_I2C_Read... [16:01:15]Read from MH i2c: E2 0E 00 [16:01:15]MH_I2C_Read... [16:01:15]Read from MH i2c: E2 0E 00 2B 25 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 A6 [16:01:15]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [16:01:15]wFMCommunicate OK [16:01:15]SAM_PROTO_GetShiftState done [16:01:15]FM_GetShiftState done [16:01:15]opened in 1721003876 [16:01:15]opened+sec_in_day 1721090276 [16:01:15]quantity*price = 32900 [16:01:15]sum+1 = 32901 [16:01:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 329.00 НСП 1% : 2.91 НДС 12% : 34.94 Наличными: 329.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 225 15.07.2024 16:01 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165352 ФПД: 133460237409370 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T160116&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165352&fm=133460237409370&tin=02508201610067®Number=0000000000090829&sum=32900 [16:01:16]StoreToDocumentArchive [16:01:16]shift 448 fd 165352 [16:01:16]save to /storage/0448/doc_00165352 [16:01:16]save last doc name /storage/0448/doc_00165352 to /storage/kkm_last_doc_name [16:01:16]save OK [16:01:16]Clear old archive folders... [16:01:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:01:16]tlvbuf is B6E90550 [16:01:16]SAM_PROTO_ClearQueue [16:01:16]wFMCommunicate request_size=4 [16:01:16]MH_SAM_APDU [16:01:16]CAPDU: 80 09 00 00 [16:01:16]Write to MH i2c: E2 08 00 38 25 80 09 00 00 00 00 00 00 CF [16:01:16]Write i2c OK [16:01:16]MH_I2C_Read... [16:01:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:01:16]Read from MH i2c: E2 [16:01:16]MH_I2C_Read... [16:01:16]Read from MH i2c: E2 03 00 [16:01:16]MH_I2C_Read... [16:01:16]Read from MH i2c: E2 03 00 38 25 00 90 00 D1 [16:01:16]RAPDU: 90 00 [16:01:16]wFMCommunicate OK [16:01:16]SAM_PROTO_ClearQueue done [16:01:16]KKMCreateOFDPacket [16:01:16]OFDProtocolAddRootSTLVToBuf [16:01:16]FM_MakeSignedData [16:01:16]FM_MakeSignedData [16:01:16]SAM_PROTO_SignData [16:01:16]wFMCommunicate request_size=4 [16:01:16]MH_SAM_APDU [16:01:16]CAPDU: 80 0D 01 02 [16:01:16]Write to MH i2c: E2 08 00 39 25 80 0D 01 02 00 00 00 00 D7 [16:01:16]Write i2c OK [16:01:16]MH_I2C_Read... [16:01:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:01:16]Read from MH i2c: E2 [16:01:16]MH_I2C_Read... [16:01:16]Read from MH i2c: E2 03 00 [16:01:16]MH_I2C_Read... [16:01:16]Read from MH i2c: E2 03 00 39 25 00 90 00 D2 [16:01:16]RAPDU: 90 00 [16:01:16]wFMCommunicate OK [16:01:16]wFMCommunicate request_size=255 [16:01:16]MH_SAM_APDU [16:01:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 84 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 84 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 CC 47 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E8 85 02 00 35 04 06 00 79 [16:01:16]Write to MH i2c: E2 02 01 3A 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 84 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 84 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 CC 47 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E8 85 02 00 35 04 06 00 79 00 00 CA [16:01:16]Write i2c OK [16:01:16]MH_I2C_Read... [16:01:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:16]Read from MH i2c: E2 [16:01:16]MH_I2C_Read... [16:01:16]Read from MH i2c: E2 03 00 [16:01:16]MH_I2C_Read... [16:01:16]Read from MH i2c: E2 03 00 3A 25 00 90 00 D3 [16:01:16]RAPDU: 90 00 [16:01:16]wFMCommunicate OK [16:01:16]wFMCommunicate request_size=10 [16:01:16]MH_SAM_APDU [16:01:16]CAPDU: 80 0D 02 02 05 61 A2 0A DC 5A [16:01:16]Write to MH i2c: E2 0D 00 3B 25 80 0D 02 02 05 00 61 A2 0A DC 5A 00 00 27 [16:01:16]Write i2c OK [16:01:16]MH_I2C_Read... [16:01:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:16]Read from MH i2c: E2 [16:01:16]MH_I2C_Read... [16:01:16]Read from MH i2c: E2 03 00 [16:01:16]MH_I2C_Read... [16:01:16]Read from MH i2c: E2 03 00 3B 25 00 90 00 D4 [16:01:16]RAPDU: 90 00 [16:01:16]wFMCommunicate OK [16:01:16]wFMCommunicate request_size=4 [16:01:16]MH_SAM_APDU [16:01:16]CAPDU: 80 0D 03 02 [16:01:16]Write to MH i2c: E2 08 00 3C 25 80 0D 03 02 00 00 00 00 DC [16:01:16]Write i2c OK [16:01:16]MH_I2C_Read... [16:01:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:01:16]Read from MH i2c: E2 [16:01:16]MH_I2C_Read... [16:01:16]Read from MH i2c: E2 0B 00 [16:01:16]MH_I2C_Read... [16:01:16]Read from MH i2c: E2 0B 00 3C 25 00 B3 0B 76 BC FE A5 A4 99 90 00 AD [16:01:16]RAPDU: B3 0B 76 BC FE A5 A4 99 90 00 [16:01:16]wFMCommunicate OK [16:01:16]SAM_PROTO_SignData done [16:01:16]FM_MakeSignedData done [16:01:16]CreateOFDProtocolMessage [16:01:16]wFMCommunicate request_size=4 [16:01:16]MH_SAM_APDU [16:01:16]CAPDU: 80 11 00 00 [16:01:16]Write to MH i2c: E2 08 00 3D 25 80 11 00 00 00 00 00 00 DC [16:01:16]Write i2c OK [16:01:16]MH_I2C_Read... [16:01:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:16]Read from MH i2c: E2 [16:01:16]MH_I2C_Read... [16:01:16]Read from MH i2c: E2 17 00 [16:01:16]MH_I2C_Read... [16:01:16]Read from MH i2c: E2 17 00 3D 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 32 [16:01:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:01:16]wFMCommunicate OK [16:01:16]CreateOFDProtocolMessage done [16:01:16]OFDSenderStorePacket 165352 [16:01:16]StoreOFDPacket docnum=165352 [16:01:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 2C 0D 07 01 E9 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 88 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 84 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 84 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 CC 47 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E8 85 02 00 35 04 06 00 79 61 A2 0A DC 5A B3 0B 76 BC FE A5 A4 99 [16:01:16]CheckFolder [16:01:16]dirname=/storage/ofd_packets [16:01:16]CheckFolder done [16:01:16]ProducePacketName [16:01:16]name=ofd_packets/00165352 [16:01:16]NVStorageSaveData ofd_packets/00165352 [16:01:16]File name is /storage/ofd_packets/00165352 [16:01:16]Write 301 bytes [16:01:16]NVStorageSaveData done [16:01:16]OFDSenderStorePacket done [16:01:16]KKMCreateOFDPacket done [16:01:16]NVStorageSaveData kkm_last_timestamp [16:01:16]File name is /storage/kkm_last_timestamp [16:01:16]Write 4 bytes [16:01:16]NVStorageSaveData done [16:01:16]ExternCall_PrintAddStr [16:01:16]wPrintStart [16:01:16]Write to MH i2c: 01 00 00 3E 25 63 [16:01:16]Write i2c OK [16:01:16]MH_I2C_Read... [16:01:16]Read from MH i2c: 01 [16:01:16]MH_I2C_Read... [16:01:16]Read from MH i2c: 01 07 00 [16:01:16]MH_I2C_Read... [16:01:16]Read from MH i2c: 01 07 00 3E 25 00 00 00 00 00 FF 0F 78 [16:01:16]RasterBufferAndPrint [16:01:16]line Счет N : (1)459464 [16:01:16]line ИНН: 02508201610067 [16:01:16]line Контрольно-Кассовый Чек [16:01:16]line ПРОДАЖА [16:01:16]line ТРК (МРК, ГНК) : 22 [16:01:16]line Товар: 2710124130 [16:01:16]line Аи-92-К-5 [16:01:16]line 5.000 * 65.80 [16:01:16]line = 329.00 [16:01:16]line НДС 12% НСП 1% [16:01:16]line > о реализуемом товаре [16:01:16]line ИТОГО: 329.00 [16:01:16]line НСП 1% : 2.91 [16:01:16]line НДС 12% : 34.94 [16:01:16]line Наличными: 329.00 [16:01:16]line Безнал.: 0.00 [16:01:16]line Место: АЗС № 72 "Партнер Нефть" [16:01:16]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:01:16]line СНО: Общий режим [16:01:16]line Чек 225 15.07.2024 16:01 [16:01:16]line Смена: 448 ФФД: 1.0 [16:01:16]line ЗНМ: 0300000160 [16:01:16]line РНМ: 0000000000090829 [16:01:16]line Версия ККМ: 001 [16:01:16]line ФМ: 0000000000874718 [16:01:16]line ФД: 165352 [16:01:16]line ФПД: 133460237409370 [16:01:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T160116&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165352&fm=133460237409370&tin=02508201610067®Number=0000000000090829&sum=32900 [16:01:17]written 0, free lines is 4095 [16:01:17]OFD Sender: Processing packet 165352 [packets to send 106, broken 105] [16:01:17]ProducePacketName [16:01:17]name=ofd_packets/00165352 [16:01:17]OFD Sender: To server: pG, [16:01:17]CommunicateWithHost lk.salyk.kg:30040 [16:01:17]ConnectInit lk.salyk.kg [16:01:17]Connected sock=10 [16:01:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 2C 0D 07 01 E9 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 88 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 84 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 84 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 CC 47 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E8 85 02 00 35 04 06 00 79 61 A2 0A DC 5A B3 0B 76 BC FE A5 A4 99 [16:01:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 48 2B 47 00 C7 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 E8 85 02 00 F4 03 04 00 56 EE 94 66 B6 04 01 00 00 55 27 48 15 46 CC 12 1C [16:01:17]CommunicateWithHost err = 0 [16:01:17]CheckOFDResponse [16:01:17]1017 (14) - 77093643461234 [16:01:17]1041 (16) - 0000000000874718 [16:01:17]1040 (4) - 165352 [16:01:17]1012 (4) - 15.07.2024 09:39 [16:01:17]1206 (1) - 0 [16:01:17]OFD Sender: Remove packet 165352 [16:01:17]ProducePacketName [16:01:17]name=ofd_packets/00165352 [16:01:17]NVStorageDeleteData [16:01:17]Write to MH i2c: 01 00 00 65 25 8A [16:01:17]Write i2c OK [16:01:17]MH_I2C_Read... [16:01:17]Read from MH i2c: 01 [16:01:17]MH_I2C_Read... [16:01:17]Read from MH i2c: 01 07 00 [16:01:17]MH_I2C_Read... [16:01:17]Read from MH i2c: 01 07 00 65 25 00 00 00 00 00 24 0D C2 [16:01:17]RasterBufferAndPrint [16:01:17]line [16:01:17]line [16:01:17]line [16:01:17]line [16:01:17]line [16:01:17]written 0, free lines is 3374 [16:01:17]MH_Cut [16:01:17]Write to MH i2c: D1 01 00 6C 25 01 63 [16:01:17]Write i2c OK [16:01:17]MH_I2C_Read... [16:01:17]Read from MH i2c: D1 [16:01:17]MH_I2C_Read... [16:01:17]Read from MH i2c: D1 01 00 [16:01:17]MH_I2C_Read... [16:01:17]Read from MH i2c: D1 01 00 6C 25 00 62 [16:01:17]Write to MH i2c: 01 00 00 6D 25 92 [16:01:17]Write i2c OK [16:01:17]MH_I2C_Read... [16:01:17]OFD Sender: No OFD packet to send [16:01:18]*** Cut start [16:01:18]*** Partial cut [16:01:18]*** CUTSNS_PIN = 1 [16:01:18]*** CUTSNS_PIN = 0 [16:01:18]*** Brake cut motor [16:01:18]Read from MH i2c: 01 [16:01:18]MH_I2C_Read... [16:01:18]*** Stop cut motor [16:01:18]*** Cut end [16:01:18]Read from MH i2c: 01 07 00 [16:01:18]MH_I2C_Read... [16:01:18]Read from MH i2c: 01 07 00 6D 25 00 00 00 00 00 FF 0F A7 [16:01:18]process_action close_receipt done [16:01:18]requested_data is exist [16:01:18]produce_requested_data [16:01:18]requested_item fm.sn is exist - process it [16:01:18]wFMCommunicate request_size=4 [16:01:18]MH_SAM_APDU [16:01:18]CAPDU: 80 11 00 00 [16:01:18]Write to MH i2c: E2 08 00 6E 25 80 11 00 00 00 00 00 00 0D [16:01:18]Write i2c OK [16:01:18]MH_I2C_Read... [16:01:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:18]Read from MH i2c: E2 [16:01:18]MH_I2C_Read... [16:01:18]Read from MH i2c: E2 17 00 [16:01:18]MH_I2C_Read... [16:01:18]Read from MH i2c: E2 17 00 6E 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 63 [16:01:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:01:18]wFMCommunicate OK [16:01:18]requested_item fd.num is exist - process it [16:01:18]SAM_PROTO_GetFieldsCounters [16:01:18]wFMCommunicate request_size=4 [16:01:18]MH_SAM_APDU [16:01:18]CAPDU: 80 13 00 00 [16:01:18]Write to MH i2c: E2 08 00 6F 25 80 13 00 00 00 00 00 00 10 [16:01:18]Write i2c OK [16:01:18]MH_I2C_Read... [16:01:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:01:18]Read from MH i2c: E2 [16:01:18]MH_I2C_Read... [16:01:18]Read from MH i2c: E2 62 00 [16:01:18]MH_I2C_Read... [16:01:18]Read from MH i2c: E2 62 00 6F 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E8 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [16:01: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E8 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:01:18]wFMCommunicate OK [16:01:18]SAM_PROTO_GetFieldsCounters done [16:01:18]requested_item shift.num is exist - process it [16:01:18]requested_item shift.opened is exist - process it [16:01:18]req_shift_opened [16:01:18]FM_GetShiftState [16:01:18]SAM_PROTO_GetShiftState [16:01:18]wFMCommunicate request_size=4 [16:01:18]MH_SAM_APDU [16:01:18]CAPDU: 80 13 01 00 [16:01:18]Write to MH i2c: E2 08 00 70 25 80 13 01 00 00 00 00 00 12 [16:01:18]Write i2c OK [16:01:18]MH_I2C_Read... [16:01:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:19]Read from MH i2c: E2 [16:01:19]MH_I2C_Read... [16:01:19]Read from MH i2c: E2 0E 00 [16:01:19]MH_I2C_Read... [16:01:19]Read from MH i2c: E2 0E 00 70 25 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 EB [16:01:19]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [16:01:19]wFMCommunicate OK [16:01:19]SAM_PROTO_GetShiftState done [16:01:19]FM_GetShiftState done [16:01:19]req_shift_opened done [16:01:19]requested_item shift.open_date is exist - process it [16:01:19]req_shift_open_date [16:01:19]req_shift_open_date done [16:01:19]produce_requested_data done [16:01:19]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165352,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [16:01:19]process_action_free close_receipt [16:01:19]json_value_free [16:01:19]json_value_free done [16:01:19]process_json_proto returns [16:01:19]Send response to host [16:01:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165352,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [16:01:19]free response buf [16:01:19]execute_script done [16:01:19]execute_script returns [16:01:19]free content buf [16:01:19]Sock 8.Close socket [16:01:19]Sock 8.Thread stoped [16:01:22]OFD Sender: No OFD packet to send [16:01:27]OFD Sender: No OFD packet to send [16:01:32]OFD Sender: No OFD packet to send [16:01:37]OFD Sender: No OFD packet to send [16:01:42]OFD Sender: No OFD packet to send [16:01:47]OFD Sender: No OFD packet to send [16:01:52]OFD Sender: No OFD packet to send [16:01:57]OFD Sender: No OFD packet to send [16:02:02]OFD Sender: No OFD packet to send [16:02:07]OFD Sender: No OFD packet to send [16:02:12]OFD Sender: No OFD packet to send [16:02:17]OFD Sender: No OFD packet to send [16:02:22]OFD Sender: No OFD packet to send [16:02:28]OFD Sender: No OFD packet to send [16:02:33]OFD Sender: No OFD packet to send [16:02:38]OFD Sender: No OFD packet to send [16:02:43]OFD Sender: No OFD packet to send [16:02:48]OFD Sender: No OFD packet to send [16:02:53]OFD Sender: No OFD packet to send [16:02:58]OFD Sender: No OFD packet to send [16:03:03]OFD Sender: No OFD packet to send [16:03:08]OFD Sender: No OFD packet to send [16:03:13]OFD Sender: No OFD packet to send [16:03:18]OFD Sender: No OFD packet to send [16:03:23]OFD Sender: No OFD packet to send [16:03:28]OFD Sender: No OFD packet to send [16:03:33]OFD Sender: No OFD packet to send [16:03:38]OFD Sender: No OFD packet to send [16:03:43]OFD Sender: No OFD packet to send [16:03:48]OFD Sender: No OFD packet to send [16:03:53]OFD Sender: No OFD packet to send [16:03:58]OFD Sender: No OFD packet to send [16:04:03]OFD Sender: No OFD packet to send [16:04:08]OFD Sender: No OFD packet to send [16:04:13]OFD Sender: No OFD packet to send [16:04:18]OFD Sender: No OFD packet to send [16:04:23]OFD Sender: No OFD packet to send [16:04:28]OFD Sender: No OFD packet to send [16:04:33]OFD Sender: No OFD packet to send [16:04:38]OFD Sender: No OFD packet to send [16:04:43]OFD Sender: No OFD packet to send [16:04:48]OFD Sender: No OFD packet to send [16:04:53]OFD Sender: No OFD packet to send [16:04:55]accept exits with 9 [16:04:55]New connection [16:04:55]New thread 3066711396 created [16:04:55]Thread 3066854756 joined [16:04:55]Waiting for new connection... [16:04:55] Sock 9.Parse request [16:04:55]Sock 9.Check first char [16:04:55]Sock 9.First char is OK [16:04:55]request: POST /json_proto HTTP/1.0 [16:04:55]Method: POST [16:04:55]URL: /json_proto [16:04:55]Method is POST - this is cgi request [16:04:55]url: /json_proto [16:04:55]query_string will be loaded in cgi processing [16:04:55]execute_cgi json_proto POST (null) [16:04:55]execute_cgi path=json_proto method=POST [16:04:55]POST find Content-Length [16:04:55]Host: 172.17.56.4:8080 [16:04:55]Content-Length: 677 [16:04:55]Content-Type: application/json [16:04:55] [16:04:55]POST finish read [16:04:55]Found Content-Length = 677 [16:04:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459465", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.980, "sum" : 130.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 130.00, "total" : 130.00, "payments": [ { "type": 0, "sum" : 130.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:04:55]execute_script... [16:04: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)459465", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.980, "sum" : 130.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 130.00, "total" : 130.00, "payments": [ { "type": 0, "sum" : 130.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:04:55]POST & json_proto [16:04:55]process_json_proto [16:04:55]json parsed OK: [16:04:55]protocol is kg_v1.0 [16:04:55]action value=close_receipt [16:04:55]process_action close_receipt [16:04:55]cmd_close_receipt [16:04:55]MH_GetDate [16:04:55]Write to MH i2c: F0 00 00 71 25 85 [16:04:55]Write i2c OK [16:04:55]MH_I2C_Read... [16:04:55]Read from MH i2c: F0 [16:04:55]MH_I2C_Read... [16:04:55]Read from MH i2c: F0 09 00 [16:04:55]MH_I2C_Read... [16:04:55]Read from MH i2c: F0 09 00 71 25 00 A9 48 95 66 C9 DC B2 64 35 [16:04:55]GetLastDocTimeStamp 1721059276 [16:04:55]current date 1721059497 [16:04:55]FM_GetShiftState [16:04:55]SAM_PROTO_GetShiftState [16:04:55]wFMCommunicate request_size=4 [16:04:55]MH_SAM_APDU [16:04:55]CAPDU: 80 13 01 00 [16:04:55]Write to MH i2c: E2 08 00 72 25 80 13 01 00 00 00 00 00 14 [16:04:55]Write i2c OK [16:04:55]MH_I2C_Read... [16:04:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:55]Read from MH i2c: E2 [16:04:55]MH_I2C_Read... [16:04:55]Read from MH i2c: E2 0E 00 [16:04:55]MH_I2C_Read... [16:04:55]Read from MH i2c: E2 0E 00 72 25 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 ED [16:04:55]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [16:04:55]wFMCommunicate OK [16:04:55]SAM_PROTO_GetShiftState done [16:04:55]FM_GetShiftState done [16:04:55]opened in 1721003876 [16:04:55]opened+sec_in_day 1721090276 [16:04:55]quantity*price = 13028 [16:04:55]sum+1 = 13029 [16:04:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 130.00 Внесено: 130.00 СДАЧА: 0.00 НСП 1% : 1.15 НДС 12% : 13.83 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 226 15.07.2024 16:04 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165353 ФПД: 9460789811519 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T160457&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165353&fm=9460789811519&tin=02508201610067®Number=0000000000090829&sum=13000 [16:04:56]StoreToDocumentArchive [16:04:56]shift 448 fd 165353 [16:04:56]save to /storage/0448/doc_00165353 [16:04:56]save last doc name /storage/0448/doc_00165353 to /storage/kkm_last_doc_name [16:04:56]save OK [16:04:56]Clear old archive folders... [16:04:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:04:56]tlvbuf is 0184B620 [16:04:56]SAM_PROTO_ClearQueue [16:04:56]wFMCommunicate request_size=4 [16:04:56]MH_SAM_APDU [16:04:56]CAPDU: 80 09 00 00 [16:04:56]Write to MH i2c: E2 08 00 7F 25 80 09 00 00 00 00 00 00 16 [16:04:56]Write i2c OK [16:04:56]MH_I2C_Read... [16:04:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:04:56]Read from MH i2c: E2 [16:04:56]MH_I2C_Read... [16:04:56]Read from MH i2c: E2 03 00 [16:04:56]MH_I2C_Read... [16:04:56]Read from MH i2c: E2 03 00 7F 25 00 90 00 18 [16:04:56]RAPDU: 90 00 [16:04:56]wFMCommunicate OK [16:04:56]SAM_PROTO_ClearQueue done [16:04:56]KKMCreateOFDPacket [16:04:56]OFDProtocolAddRootSTLVToBuf [16:04:56]FM_MakeSignedData [16:04:56]FM_MakeSignedData [16:04:56]SAM_PROTO_SignData [16:04:56]wFMCommunicate request_size=4 [16:04:56]MH_SAM_APDU [16:04:56]CAPDU: 80 0D 01 02 [16:04:56]Write to MH i2c: E2 08 00 80 25 80 0D 01 02 00 00 00 00 1E [16:04:56]Write i2c OK [16:04:56]MH_I2C_Read... [16:04:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:04:57]Read from MH i2c: E2 [16:04:57]MH_I2C_Read... [16:04:57]Read from MH i2c: E2 03 00 [16:04:57]MH_I2C_Read... [16:04:57]Read from MH i2c: E2 03 00 80 25 00 90 00 19 [16:04:57]RAPDU: 90 00 [16:04:57]wFMCommunicate OK [16:04:57]wFMCommunicate request_size=255 [16:04:57]MH_SAM_APDU [16:04: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 BC 07 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E4 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 A9 48 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E9 85 02 00 35 04 06 00 08 [16:04:57]Write to MH i2c: E2 02 01 81 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BC 07 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E4 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 A9 48 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E9 85 02 00 35 04 06 00 08 00 00 AE [16:04:57]Write i2c OK [16:04:57]MH_I2C_Read... [16:04:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:04:57]Read from MH i2c: E2 [16:04:57]MH_I2C_Read... [16:04:57]Read from MH i2c: E2 03 00 [16:04:57]MH_I2C_Read... [16:04:57]Read from MH i2c: E2 03 00 81 25 00 90 00 1A [16:04:57]RAPDU: 90 00 [16:04:57]wFMCommunicate OK [16:04:57]wFMCommunicate request_size=10 [16:04:57]MH_SAM_APDU [16:04:57]CAPDU: 80 0D 02 02 05 9A C3 04 19 3F [16:04:57]Write to MH i2c: E2 0D 00 82 25 80 0D 02 02 05 00 9A C3 04 19 3F 00 00 E4 [16:04:57]Write i2c OK [16:04:57]MH_I2C_Read... [16:04:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:04:57]Read from MH i2c: E2 [16:04:57]MH_I2C_Read... [16:04:57]Read from MH i2c: E2 03 00 [16:04:57]MH_I2C_Read... [16:04:57]Read from MH i2c: E2 03 00 82 25 00 90 00 1B [16:04:57]RAPDU: 90 00 [16:04:57]wFMCommunicate OK [16:04:57]wFMCommunicate request_size=4 [16:04:57]MH_SAM_APDU [16:04:57]CAPDU: 80 0D 03 02 [16:04:57]Write to MH i2c: E2 08 00 83 25 80 0D 03 02 00 00 00 00 23 [16:04:57]Write i2c OK [16:04:57]MH_I2C_Read... [16:04:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:04:57]Read from MH i2c: E2 [16:04:57]MH_I2C_Read... [16:04:57]Read from MH i2c: E2 0B 00 [16:04:57]MH_I2C_Read... [16:04:57]Read from MH i2c: E2 0B 00 83 25 00 13 CF 12 C0 64 59 C1 BD 90 00 13 [16:04:57]RAPDU: 13 CF 12 C0 64 59 C1 BD 90 00 [16:04:57]wFMCommunicate OK [16:04:57]SAM_PROTO_SignData done [16:04:57]FM_MakeSignedData done [16:04:57]CreateOFDProtocolMessage [16:04:57]wFMCommunicate request_size=4 [16:04:57]MH_SAM_APDU [16:04:57]CAPDU: 80 11 00 00 [16:04:57]Write to MH i2c: E2 08 00 84 25 80 11 00 00 00 00 00 00 23 [16:04:57]Write i2c OK [16:04:57]MH_I2C_Read... [16:04:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:57]Read from MH i2c: E2 [16:04:57]MH_I2C_Read... [16:04:57]Read from MH i2c: E2 17 00 [16:04:57]MH_I2C_Read... [16:04:57]Read from MH i2c: E2 17 00 84 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 79 [16:04:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:04:57]wFMCommunicate OK [16:04:57]CreateOFDProtocolMessage done [16:04:57]OFDSenderStorePacket 165353 [16:04:57]StoreOFDPacket docnum=165353 [16:04:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 9F E2 07 01 08 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BC 07 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E4 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 A9 48 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E9 85 02 00 35 04 06 00 08 9A C3 04 19 3F 13 CF 12 C0 64 59 C1 BD [16:04:57]CheckFolder [16:04:57]dirname=/storage/ofd_packets [16:04:57]CheckFolder done [16:04:57]ProducePacketName [16:04:57]name=ofd_packets/00165353 [16:04:57]NVStorageSaveData ofd_packets/00165353 [16:04:57]File name is /storage/ofd_packets/00165353 [16:04:57]Write 301 bytes [16:04:57]NVStorageSaveData done [16:04:57]OFDSenderStorePacket done [16:04:57]KKMCreateOFDPacket done [16:04:57]NVStorageSaveData kkm_last_timestamp [16:04:57]File name is /storage/kkm_last_timestamp [16:04:57]Write 4 bytes [16:04:57]NVStorageSaveData done [16:04:57]ExternCall_PrintAddStr [16:04:57]wPrintStart [16:04:57]Write to MH i2c: 01 00 00 85 25 AA [16:04:57]Write i2c OK [16:04:57]MH_I2C_Read... [16:04:57]Read from MH i2c: 01 [16:04:57]MH_I2C_Read... [16:04:57]Read from MH i2c: 01 07 00 [16:04:57]MH_I2C_Read... [16:04:57]Read from MH i2c: 01 07 00 85 25 00 00 00 00 00 FF 0F BF [16:04:57]RasterBufferAndPrint [16:04:57]line Счет N : (1)459465 [16:04:57]line ИНН: 02508201610067 [16:04:57]line Контрольно-Кассовый Чек [16:04:57]line ПРОДАЖА [16:04:57]line ТРК (МРК, ГНК) : 12 [16:04:57]line Товар: 2710124130 [16:04:57]line Аи-92-К-5 [16:04:57]line 1.980 * 65.80 [16:04:57]line = 130.28 [16:04:57]line НДС 12% НСП 1% [16:04:57]line > о реализуемом товаре [16:04:57]line ОКРУГЛЕНИЕ: -0.28 [16:04:57]line ИТОГО: 130.00 [16:04:57]line Внесено: 130.00 [16:04:57]line СДАЧА: 0.00 [16:04:57]line НСП 1% : 1.15 [16:04:57]line НДС 12% : 13.83 [16:04:57]line Наличными: 130.00 [16:04:57]line Безнал.: 0.00 [16:04:57]line Место: АЗС № 72 "Партнер Нефть" [16:04:57]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:04:57]line СНО: Общий режим [16:04:57]line Чек 226 15.07.2024 16:04 [16:04:57]line Смена: 448 ФФД: 1.0 [16:04:57]line ЗНМ: 0300000160 [16:04:57]line РНМ: 0000000000090829 [16:04:57]line Версия ККМ: 001 [16:04:57]line ФМ: 0000000000874718 [16:04:57]line ФД: 165353 [16:04:57]line ФПД: 9460789811519 [16:04:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T160457&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165353&fm=9460789811519&tin=02508201610067®Number=0000000000090829&sum=13000 [16:04:57]OFD Sender: Processing packet 165353 [packets to send 106, broken 105] [16:04:57]ProducePacketName [16:04:57]name=ofd_packets/00165353 [16:04:57]OFD Sender: To server: pG, [16:04:57]CommunicateWithHost lk.salyk.kg:30040 [16:04:57]ConnectInit lk.salyk.kg [16:04:57]written 0, free lines is 4095 [16:04:57]Connected sock=10 [16:04: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 37 31 38 0F 01 00 00 9F E2 07 01 08 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BC 07 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E4 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 A9 48 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E9 85 02 00 35 04 06 00 08 9A C3 04 19 3F 13 CF 12 C0 64 59 C1 BD [16:04:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 38 07 47 00 FD 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 E9 85 02 00 F4 03 04 00 33 EF 94 66 B6 04 01 00 00 2B C6 DE BD 6B 74 31 A1 [16:04:58]CommunicateWithHost err = 0 [16:04:58]CheckOFDResponse [16:04:58]1017 (14) - 77093643461234 [16:04:58]1041 (16) - 0000000000874718 [16:04:58]1040 (4) - 165353 [16:04:58]1012 (4) - 15.07.2024 09:43 [16:04:58]1206 (1) - 0 [16:04:58]OFD Sender: Remove packet 165353 [16:04:58]ProducePacketName [16:04:58]name=ofd_packets/00165353 [16:04:58]NVStorageDeleteData [16:04:58]Write to MH i2c: 01 00 00 AF 25 D4 [16:04:58]Write i2c OK [16:04:58]MH_I2C_Read... [16:04:58]Read from MH i2c: 01 [16:04:58]MH_I2C_Read... [16:04:58]Read from MH i2c: 01 07 00 [16:04:58]MH_I2C_Read... [16:04:58]Read from MH i2c: 01 07 00 AF 25 00 00 00 00 00 F1 0C D8 [16:04:58]RasterBufferAndPrint [16:04:58]line [16:04:58]line [16:04:58]line [16:04:58]line [16:04:58]line [16:04:58]written 0, free lines is 3319 [16:04:58]MH_Cut [16:04:58]Write to MH i2c: D1 01 00 B6 25 01 AD [16:04:58]Write i2c OK [16:04:58]MH_I2C_Read... [16:04:58]Read from MH i2c: D1 [16:04:58]MH_I2C_Read... [16:04:58]Read from MH i2c: D1 01 00 [16:04:58]MH_I2C_Read... [16:04:58]Read from MH i2c: D1 01 00 B6 25 00 AC [16:04:58]Write to MH i2c: 01 00 00 B7 25 DC [16:04:58]Write i2c OK [16:04:58]MH_I2C_Read... [16:04:58]OFD Sender: No OFD packet to send [16:04:58]*** Cut start [16:04:58]*** Partial cut [16:04:58]*** CUTSNS_PIN = 1 [16:04:58]*** CUTSNS_PIN = 0 [16:04:59]*** Brake cut motor [16:04:59]Read from MH i2c: 01 [16:04:59]MH_I2C_Read... [16:04:59]*** Stop cut motor [16:04:59]*** Cut end [16:04:59]Read from MH i2c: 01 07 00 [16:04:59]MH_I2C_Read... [16:04:59]Read from MH i2c: 01 07 00 B7 25 00 00 00 00 00 FF 0F F1 [16:04:59]process_action close_receipt done [16:04:59]requested_data is exist [16:04:59]produce_requested_data [16:04:59]requested_item fm.sn is exist - process it [16:04:59]wFMCommunicate request_size=4 [16:04:59]MH_SAM_APDU [16:04:59]CAPDU: 80 11 00 00 [16:04:59]Write to MH i2c: E2 08 00 B8 25 80 11 00 00 00 00 00 00 57 [16:04:59]Write i2c OK [16:04:59]MH_I2C_Read... [16:04:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:59]Read from MH i2c: E2 [16:04:59]MH_I2C_Read... [16:04:59]Read from MH i2c: E2 17 00 [16:04:59]MH_I2C_Read... [16:04:59]Read from MH i2c: E2 17 00 B8 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AD [16:04:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:04:59]wFMCommunicate OK [16:04:59]requested_item fd.num is exist - process it [16:04:59]SAM_PROTO_GetFieldsCounters [16:04:59]wFMCommunicate request_size=4 [16:04:59]MH_SAM_APDU [16:04:59]CAPDU: 80 13 00 00 [16:04:59]Write to MH i2c: E2 08 00 B9 25 80 13 00 00 00 00 00 00 5A [16:04:59]Write i2c OK [16:04:59]MH_I2C_Read... [16:04:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:04:59]Read from MH i2c: E2 [16:04:59]MH_I2C_Read... [16:04:59]Read from MH i2c: E2 62 00 [16:04:59]MH_I2C_Read... [16:04:59]Read from MH i2c: E2 62 00 B9 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E9 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [16:04: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 E9 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:04:59]wFMCommunicate OK [16:04:59]SAM_PROTO_GetFieldsCounters done [16:04:59]requested_item shift.num is exist - process it [16:04:59]requested_item shift.opened is exist - process it [16:04:59]req_shift_opened [16:04:59]FM_GetShiftState [16:04:59]SAM_PROTO_GetShiftState [16:04:59]wFMCommunicate request_size=4 [16:04:59]MH_SAM_APDU [16:04:59]CAPDU: 80 13 01 00 [16:04:59]Write to MH i2c: E2 08 00 BA 25 80 13 01 00 00 00 00 00 5C [16:04:59]Write i2c OK [16:04:59]MH_I2C_Read... [16:04:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:59]Read from MH i2c: E2 [16:04:59]MH_I2C_Read... [16:04:59]Read from MH i2c: E2 0E 00 [16:04:59]MH_I2C_Read... [16:04:59]Read from MH i2c: E2 0E 00 BA 25 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 35 [16:04:59]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [16:04:59]wFMCommunicate OK [16:04:59]SAM_PROTO_GetShiftState done [16:04:59]FM_GetShiftState done [16:04:59]req_shift_opened done [16:04:59]requested_item shift.open_date is exist - process it [16:04:59]req_shift_open_date [16:04:59]req_shift_open_date done [16:04:59]produce_requested_data done [16:04:59]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165353,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [16:04:59]process_action_free close_receipt [16:04:59]json_value_free [16:04:59]json_value_free done [16:04:59]process_json_proto returns [16:04:59]Send response to host [16:04:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165353,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [16:04:59]free response buf [16:04:59]execute_script done [16:04:59]execute_script returns [16:04:59]free content buf [16:04:59]Sock 9.Close socket [16:04:59]Sock 9.Thread stoped [16:05:03]OFD Sender: No OFD packet to send [16:05:08]OFD Sender: No OFD packet to send [16:05:13]OFD Sender: No OFD packet to send [16:05:18]OFD Sender: No OFD packet to send [16:05:23]OFD Sender: No OFD packet to send [16:05:28]OFD Sender: No OFD packet to send [16:05:33]OFD Sender: No OFD packet to send [16:05:38]OFD Sender: No OFD packet to send [16:05:43]OFD Sender: No OFD packet to send [16:05:48]OFD Sender: No OFD packet to send [16:05:53]OFD Sender: No OFD packet to send [16:05:58]OFD Sender: No OFD packet to send [16:06:03]OFD Sender: No OFD packet to send [16:06:08]OFD Sender: No OFD packet to send [16:06:13]OFD Sender: No OFD packet to send [16:06:18]OFD Sender: No OFD packet to send [16:06:23]OFD Sender: No OFD packet to send [16:06:28]OFD Sender: No OFD packet to send [16:06:33]OFD Sender: No OFD packet to send [16:06:38]OFD Sender: No OFD packet to send [16:06:43]OFD Sender: No OFD packet to send [16:06:48]OFD Sender: No OFD packet to send [16:06:53]OFD Sender: No OFD packet to send [16:06:58]OFD Sender: No OFD packet to send [16:07:03]OFD Sender: No OFD packet to send [16:07:08]OFD Sender: No OFD packet to send [16:07:13]OFD Sender: No OFD packet to send [16:07:18]OFD Sender: No OFD packet to send [16:07:23]OFD Sender: No OFD packet to send [16:07:28]OFD Sender: No OFD packet to send [16:07:33]OFD Sender: No OFD packet to send [16:07:38]OFD Sender: No OFD packet to send [16:07:43]OFD Sender: No OFD packet to send [16:07:48]OFD Sender: No OFD packet to send [16:07:53]OFD Sender: No OFD packet to send [16:07:58]OFD Sender: No OFD packet to send [16:08:03]OFD Sender: No OFD packet to send [16:08:08]OFD Sender: No OFD packet to send [16:08:13]OFD Sender: No OFD packet to send [16:08:18]OFD Sender: No OFD packet to send [16:08:23]OFD Sender: No OFD packet to send [16:08:28]OFD Sender: No OFD packet to send [16:08:33]OFD Sender: No OFD packet to send [16:08:38]OFD Sender: No OFD packet to send [16:08:43]OFD Sender: No OFD packet to send [16:08:48]OFD Sender: No OFD packet to send [16:08:53]OFD Sender: No OFD packet to send [16:08:58]OFD Sender: No OFD packet to send [16:09:03]OFD Sender: No OFD packet to send [16:09:08]OFD Sender: No OFD packet to send [16:09:13]OFD Sender: No OFD packet to send [16:09:18]OFD Sender: No OFD packet to send [16:09:23]OFD Sender: No OFD packet to send [16:09:28]OFD Sender: No OFD packet to send [16:09:33]OFD Sender: No OFD packet to send [16:09:38]OFD Sender: No OFD packet to send [16:09:43]OFD Sender: No OFD packet to send [16:09:48]OFD Sender: No OFD packet to send [16:09:53]OFD Sender: No OFD packet to send [16:09:58]OFD Sender: No OFD packet to send [16:10:03]OFD Sender: No OFD packet to send [16:10:08]OFD Sender: No OFD packet to send [16:10:13]OFD Sender: No OFD packet to send [16:10:18]OFD Sender: No OFD packet to send [16:10:23]OFD Sender: No OFD packet to send [16:10:28]OFD Sender: No OFD packet to send [16:10:33]OFD Sender: No OFD packet to send [16:10:38]OFD Sender: No OFD packet to send [16:10:44]OFD Sender: No OFD packet to send [16:10:49]OFD Sender: No OFD packet to send [16:10:54]OFD Sender: No OFD packet to send [16:10:59]OFD Sender: No OFD packet to send [16:11:04]OFD Sender: No OFD packet to send [16:11:09]OFD Sender: No OFD packet to send [16:11:14]OFD Sender: No OFD packet to send [16:11:19]OFD Sender: No OFD packet to send [16:11:24]OFD Sender: No OFD packet to send [16:11:29]OFD Sender: No OFD packet to send [16:11:34]OFD Sender: No OFD packet to send [16:11:39]OFD Sender: No OFD packet to send [16:11:44]OFD Sender: No OFD packet to send [16:11:49]OFD Sender: No OFD packet to send [16:11:54]OFD Sender: No OFD packet to send [16:11:59]OFD Sender: No OFD packet to send [16:12:04]OFD Sender: No OFD packet to send [16:12:09]OFD Sender: No OFD packet to send [16:12:14]OFD Sender: No OFD packet to send [16:12:19]OFD Sender: No OFD packet to send [16:12:24]OFD Sender: No OFD packet to send [16:12:29]OFD Sender: No OFD packet to send [16:12:34]OFD Sender: No OFD packet to send [16:12:39]OFD Sender: No OFD packet to send [16:12:44]OFD Sender: No OFD packet to send [16:12:49]OFD Sender: No OFD packet to send [16:12:50]accept exits with 8 [16:12:50]New connection [16:12:50]New thread 3066854756 created [16:12:50]Thread 3066711396 joined [16:12:50]Waiting for new connection... [16:12:50] Sock 8.Parse request [16:12:50]Sock 8.Check first char [16:12:50]Sock 8.First char is OK [16:12:50]request: POST /json_proto HTTP/1.0 [16:12:50]Method: POST [16:12:50]URL: /json_proto [16:12:50]Method is POST - this is cgi request [16:12:50]url: /json_proto [16:12:50]query_string will be loaded in cgi processing [16:12:50]execute_cgi json_proto POST (null) [16:12:50]execute_cgi path=json_proto method=POST [16:12:50]POST find Content-Length [16:12:50]Host: 172.17.56.4:8080 [16:12:50]Content-Length: 639 [16:12:50]Content-Type: application/json [16:12:50] [16:12:50]POST finish read [16:12:50]Found Content-Length = 639 [16:12:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459466", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.000, "sum" : 329.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 329.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:12:50]execute_script... [16:12:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459466", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.000, "sum" : 329.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 329.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:12:50]POST & json_proto [16:12:50]process_json_proto [16:12:50]json parsed OK: [16:12:50]protocol is kg_v1.0 [16:12:50]action value=close_receipt [16:12:50]process_action close_receipt [16:12:50]cmd_close_receipt [16:12:50]MH_GetDate [16:12:50]Write to MH i2c: F0 00 00 BB 25 CF [16:12:50]Write i2c OK [16:12:50]MH_I2C_Read... [16:12:50]Read from MH i2c: F0 [16:12:50]MH_I2C_Read... [16:12:50]Read from MH i2c: F0 09 00 [16:12:50]MH_I2C_Read... [16:12:50]Read from MH i2c: F0 09 00 BB 25 00 84 4A 95 66 C9 DC B2 64 5C [16:12:50]GetLastDocTimeStamp 1721059497 [16:12:50]current date 1721059972 [16:12:50]FM_GetShiftState [16:12:50]SAM_PROTO_GetShiftState [16:12:50]wFMCommunicate request_size=4 [16:12:50]MH_SAM_APDU [16:12:50]CAPDU: 80 13 01 00 [16:12:50]Write to MH i2c: E2 08 00 BC 25 80 13 01 00 00 00 00 00 5E [16:12:50]Write i2c OK [16:12:50]MH_I2C_Read... [16:12:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:50]Read from MH i2c: E2 [16:12:50]MH_I2C_Read... [16:12:50]Read from MH i2c: E2 0E 00 [16:12:50]MH_I2C_Read... [16:12:50]Read from MH i2c: E2 0E 00 BC 25 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 37 [16:12:50]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [16:12:50]wFMCommunicate OK [16:12:50]SAM_PROTO_GetShiftState done [16:12:50]FM_GetShiftState done [16:12:50]opened in 1721003876 [16:12:50]opened+sec_in_day 1721090276 [16:12:50]quantity*price = 32900 [16:12:50]sum+1 = 32901 [16:12:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 329.00 НСП 1% : 2.91 НДС 12% : 34.94 Наличными: 329.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 227 15.07.2024 16:12 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165354 ФПД: 19970380309528 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T161252&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165354&fm=19970380309528&tin=02508201610067®Number=0000000000090829&sum=32900 [16:12:52]StoreToDocumentArchive [16:12:52]shift 448 fd 165354 [16:12:52]save to /storage/0448/doc_00165354 [16:12:52]save last doc name /storage/0448/doc_00165354 to /storage/kkm_last_doc_name [16:12:52]save OK [16:12:52]Clear old archive folders... [16:12:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:12:52]tlvbuf is 01814400 [16:12:52]SAM_PROTO_ClearQueue [16:12:52]wFMCommunicate request_size=4 [16:12:52]MH_SAM_APDU [16:12:52]CAPDU: 80 09 00 00 [16:12:52]Write to MH i2c: E2 08 00 C9 25 80 09 00 00 00 00 00 00 60 [16:12:52]Write i2c OK [16:12:52]MH_I2C_Read... [16:12:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:12:52]Read from MH i2c: E2 [16:12:52]MH_I2C_Read... [16:12:52]Read from MH i2c: E2 03 00 [16:12:52]MH_I2C_Read... [16:12:52]Read from MH i2c: E2 03 00 C9 25 00 90 00 62 [16:12:52]RAPDU: 90 00 [16:12:52]wFMCommunicate OK [16:12:52]SAM_PROTO_ClearQueue done [16:12:52]KKMCreateOFDPacket [16:12:52]OFDProtocolAddRootSTLVToBuf [16:12:52]FM_MakeSignedData [16:12:52]FM_MakeSignedData [16:12:52]SAM_PROTO_SignData [16:12:52]wFMCommunicate request_size=4 [16:12:52]MH_SAM_APDU [16:12:52]CAPDU: 80 0D 01 02 [16:12:52]Write to MH i2c: E2 08 00 CA 25 80 0D 01 02 00 00 00 00 68 [16:12:52]Write i2c OK [16:12:52]MH_I2C_Read... [16:12:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:12:52]Read from MH i2c: E2 [16:12:52]MH_I2C_Read... [16:12:52]Read from MH i2c: E2 03 00 [16:12:52]MH_I2C_Read... [16:12:52]Read from MH i2c: E2 03 00 CA 25 00 90 00 63 [16:12:52]RAPDU: 90 00 [16:12:52]wFMCommunicate OK [16:12:52]wFMCommunicate request_size=255 [16:12:52]MH_SAM_APDU [16:12:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 84 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 84 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 84 4A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EA 85 02 00 35 04 06 00 12 [16:12:52]Write to MH i2c: E2 02 01 CB 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 84 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 84 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 84 4A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EA 85 02 00 35 04 06 00 12 00 00 B3 [16:12:52]Write i2c OK [16:12:52]MH_I2C_Read... [16:12:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:52]Read from MH i2c: E2 [16:12:52]MH_I2C_Read... [16:12:52]Read from MH i2c: E2 03 00 [16:12:52]MH_I2C_Read... [16:12:52]Read from MH i2c: E2 03 00 CB 25 00 90 00 64 [16:12:52]RAPDU: 90 00 [16:12:52]wFMCommunicate OK [16:12:52]wFMCommunicate request_size=10 [16:12:52]MH_SAM_APDU [16:12:52]CAPDU: 80 0D 02 02 05 29 B7 6C A4 18 [16:12:52]Write to MH i2c: E2 0D 00 CC 25 80 0D 02 02 05 00 29 B7 6C A4 18 00 00 7D [16:12:52]Write i2c OK [16:12:52]MH_I2C_Read... [16:12:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:52]Read from MH i2c: E2 [16:12:52]MH_I2C_Read... [16:12:52]Read from MH i2c: E2 03 00 [16:12:52]MH_I2C_Read... [16:12:52]Read from MH i2c: E2 03 00 CC 25 00 90 00 65 [16:12:52]RAPDU: 90 00 [16:12:52]wFMCommunicate OK [16:12:52]wFMCommunicate request_size=4 [16:12:52]MH_SAM_APDU [16:12:52]CAPDU: 80 0D 03 02 [16:12:52]Write to MH i2c: E2 08 00 CD 25 80 0D 03 02 00 00 00 00 6D [16:12:52]Write i2c OK [16:12:52]MH_I2C_Read... [16:12:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:12:52]Read from MH i2c: E2 [16:12:52]MH_I2C_Read... [16:12:52]Read from MH i2c: E2 0B 00 [16:12:52]MH_I2C_Read... [16:12:52]Read from MH i2c: E2 0B 00 CD 25 00 16 78 11 26 B2 DE F5 CF 90 00 87 [16:12:52]RAPDU: 16 78 11 26 B2 DE F5 CF 90 00 [16:12:52]wFMCommunicate OK [16:12:52]SAM_PROTO_SignData done [16:12:52]FM_MakeSignedData done [16:12:52]CreateOFDProtocolMessage [16:12:52]wFMCommunicate request_size=4 [16:12:52]MH_SAM_APDU [16:12:52]CAPDU: 80 11 00 00 [16:12:52]Write to MH i2c: E2 08 00 CE 25 80 11 00 00 00 00 00 00 6D [16:12:52]Write i2c OK [16:12:52]MH_I2C_Read... [16:12:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:52]Read from MH i2c: E2 [16:12:52]MH_I2C_Read... [16:12:52]Read from MH i2c: E2 17 00 [16:12:52]MH_I2C_Read... [16:12:52]Read from MH i2c: E2 17 00 CE 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C3 [16:12:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:12:52]wFMCommunicate OK [16:12:52]CreateOFDProtocolMessage done [16:12:52]OFDSenderStorePacket 165354 [16:12:52]StoreOFDPacket docnum=165354 [16:12:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 94 4A 07 01 BF D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 84 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 84 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 84 4A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EA 85 02 00 35 04 06 00 12 29 B7 6C A4 18 16 78 11 26 B2 DE F5 CF [16:12:52]CheckFolder [16:12:52]dirname=/storage/ofd_packets [16:12:52]CheckFolder done [16:12:52]ProducePacketName [16:12:52]name=ofd_packets/00165354 [16:12:52]NVStorageSaveData ofd_packets/00165354 [16:12:52]File name is /storage/ofd_packets/00165354 [16:12:52]Write 301 bytes [16:12:52]NVStorageSaveData done [16:12:52]OFDSenderStorePacket done [16:12:52]KKMCreateOFDPacket done [16:12:52]NVStorageSaveData kkm_last_timestamp [16:12:52]File name is /storage/kkm_last_timestamp [16:12:52]Write 4 bytes [16:12:52]NVStorageSaveData done [16:12:52]ExternCall_PrintAddStr [16:12:52]wPrintStart [16:12:52]Write to MH i2c: 01 00 00 CF 25 F4 [16:12:52]Write i2c OK [16:12:52]MH_I2C_Read... [16:12:52]Read from MH i2c: 01 [16:12:52]MH_I2C_Read... [16:12:52]Read from MH i2c: 01 07 00 [16:12:52]MH_I2C_Read... [16:12:52]Read from MH i2c: 01 07 00 CF 25 00 00 00 00 00 FF 0F 09 [16:12:52]RasterBufferAndPrint [16:12:52]line Счет N : (1)459466 [16:12:52]line ИНН: 02508201610067 [16:12:52]line Контрольно-Кассовый Чек [16:12:52]line ПРОДАЖА [16:12:52]line ТРК (МРК, ГНК) : 12 [16:12:52]line Товар: 2710124130 [16:12:52]line Аи-92-К-5 [16:12:52]line 5.000 * 65.80 [16:12:52]line = 329.00 [16:12:52]line НДС 12% НСП 1% [16:12:52]line > о реализуемом товаре [16:12:52]line ИТОГО: 329.00 [16:12:52]line НСП 1% : 2.91 [16:12:52]line НДС 12% : 34.94 [16:12:52]line Наличными: 329.00 [16:12:52]line Безнал.: 0.00 [16:12:52]line Место: АЗС № 72 "Партнер Нефть" [16:12:52]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:12:52]line СНО: Общий режим [16:12:52]line Чек 227 15.07.2024 16:12 [16:12:52]line Смена: 448 ФФД: 1.0 [16:12:52]line ЗНМ: 0300000160 [16:12:52]line РНМ: 0000000000090829 [16:12:52]line Версия ККМ: 001 [16:12:52]line ФМ: 0000000000874718 [16:12:52]line ФД: 165354 [16:12:52]line ФПД: 19970380309528 [16:12:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T161252&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165354&fm=19970380309528&tin=02508201610067®Number=0000000000090829&sum=32900 [16:12:52]OFD Sender: Processing packet 165354 [packets to send 106, broken 105] [16:12:52]ProducePacketName [16:12:52]name=ofd_packets/00165354 [16:12:52]OFD Sender: To server: pG, [16:12:52]CommunicateWithHost lk.salyk.kg:30040 [16:12:52]ConnectInit lk.salyk.kg [16:12:52]written 0, free lines is 4095 [16:12:53]Connected sock=10 [16:12: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 37 31 38 0F 01 00 00 94 4A 07 01 BF D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 84 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 84 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 84 4A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EA 85 02 00 35 04 06 00 12 29 B7 6C A4 18 16 78 11 26 B2 DE F5 CF [16:12:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 BA 9E 47 00 56 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 37 31 38 10 04 04 00 EA 85 02 00 F4 03 04 00 0E F1 94 66 B6 04 01 00 00 AD AC 6A 17 1A F2 5F F9 [16:12:53]CommunicateWithHost err = 0 [16:12:53]CheckOFDResponse [16:12:53]1017 (14) - 77093643461234 [16:12:53]1041 (16) - 0000000000874718 [16:12:53]1040 (4) - 165354 [16:12:53]1012 (4) - 15.07.2024 09:51 [16:12:53]1206 (1) - 0 [16:12:53]OFD Sender: Remove packet 165354 [16:12:53]ProducePacketName [16:12:53]name=ofd_packets/00165354 [16:12:53]NVStorageDeleteData [16:12:53]Write to MH i2c: 01 00 00 F6 25 1B [16:12:53]Write i2c OK [16:12:53]MH_I2C_Read... [16:12:53]Read from MH i2c: 01 [16:12:53]MH_I2C_Read... [16:12:53]Read from MH i2c: 01 07 00 [16:12:53]MH_I2C_Read... [16:12:53]Read from MH i2c: 01 07 00 F6 25 00 00 00 00 00 32 0D 61 [16:12:53]RasterBufferAndPrint [16:12:53]line [16:12:53]line [16:12:53]line [16:12:53]line [16:12:53]line [16:12:53]written 0, free lines is 3384 [16:12:53]MH_Cut [16:12:53]Write to MH i2c: D1 01 00 FD 25 01 F4 [16:12:53]Write i2c OK [16:12:53]MH_I2C_Read... [16:12:53]Read from MH i2c: D1 [16:12:53]MH_I2C_Read... [16:12:53]Read from MH i2c: D1 01 00 [16:12:53]MH_I2C_Read... [16:12:53]Read from MH i2c: D1 01 00 FD 25 00 F3 [16:12:53]Write to MH i2c: 01 00 00 FE 25 23 [16:12:53]Write i2c OK [16:12:53]MH_I2C_Read... [16:12:53]OFD Sender: No OFD packet to send [16:12:54]*** Cut start [16:12:54]*** Partial cut [16:12:54]*** CUTSNS_PIN = 1 [16:12:54]*** CUTSNS_PIN = 0 [16:12:54]*** Brake cut motor [16:12:54]Read from MH i2c: 01 [16:12:54]MH_I2C_Read... [16:12:54]*** Stop cut motor [16:12:54]*** Cut end [16:12:54]Read from MH i2c: 01 07 00 [16:12:54]MH_I2C_Read... [16:12:54]Read from MH i2c: 01 07 00 FE 25 00 00 00 00 00 FF 0F 38 [16:12:54]process_action close_receipt done [16:12:54]requested_data is exist [16:12:54]produce_requested_data [16:12:54]requested_item fm.sn is exist - process it [16:12:54]wFMCommunicate request_size=4 [16:12:54]MH_SAM_APDU [16:12:54]CAPDU: 80 11 00 00 [16:12:54]Write to MH i2c: E2 08 00 FF 25 80 11 00 00 00 00 00 00 9E [16:12:54]Write i2c OK [16:12:54]MH_I2C_Read... [16:12:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:54]Read from MH i2c: E2 [16:12:54]MH_I2C_Read... [16:12:54]Read from MH i2c: E2 17 00 [16:12:54]MH_I2C_Read... [16:12:54]Read from MH i2c: E2 17 00 FF 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F4 [16:12:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:12:54]wFMCommunicate OK [16:12:54]requested_item fd.num is exist - process it [16:12:54]SAM_PROTO_GetFieldsCounters [16:12:54]wFMCommunicate request_size=4 [16:12:54]MH_SAM_APDU [16:12:54]CAPDU: 80 13 00 00 [16:12:54]Write to MH i2c: E2 08 00 00 26 80 13 00 00 00 00 00 00 A2 [16:12:54]Write i2c OK [16:12:54]MH_I2C_Read... [16:12:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:12:54]Read from MH i2c: E2 [16:12:54]MH_I2C_Read... [16:12:54]Read from MH i2c: E2 62 00 [16:12:54]MH_I2C_Read... [16:12:54]Read from MH i2c: E2 62 00 00 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 EA 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [16:12:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 EA 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:12:54]wFMCommunicate OK [16:12:54]SAM_PROTO_GetFieldsCounters done [16:12:54]requested_item shift.num is exist - process it [16:12:54]requested_item shift.opened is exist - process it [16:12:54]req_shift_opened [16:12:54]FM_GetShiftState [16:12:54]SAM_PROTO_GetShiftState [16:12:54]wFMCommunicate request_size=4 [16:12:54]MH_SAM_APDU [16:12:54]CAPDU: 80 13 01 00 [16:12:54]Write to MH i2c: E2 08 00 01 26 80 13 01 00 00 00 00 00 A4 [16:12:54]Write i2c OK [16:12:54]MH_I2C_Read... [16:12:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:54]Read from MH i2c: E2 [16:12:54]MH_I2C_Read... [16:12:54]Read from MH i2c: E2 0E 00 [16:12:54]MH_I2C_Read... [16:12:54]Read from MH i2c: E2 0E 00 01 26 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 7D [16:12:54]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [16:12:54]wFMCommunicate OK [16:12:54]SAM_PROTO_GetShiftState done [16:12:54]FM_GetShiftState done [16:12:54]req_shift_opened done [16:12:54]requested_item shift.open_date is exist - process it [16:12:54]req_shift_open_date [16:12:54]req_shift_open_date done [16:12:54]produce_requested_data done [16:12:54]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165354,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [16:12:54]process_action_free close_receipt [16:12:54]json_value_free [16:12:54]json_value_free done [16:12:54]process_json_proto returns [16:12:54]Send response to host [16:12:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165354,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [16:12:54]free response buf [16:12:54]execute_script done [16:12:54]execute_script returns [16:12:54]free content buf [16:12:54]Sock 8.Close socket [16:12:54]Sock 8.Thread stoped [16:12:58]OFD Sender: No OFD packet to send [16:13:03]accept exits with 9 [16:13:03]New connection [16:13:03]New thread 3066711396 created [16:13:03]Thread 3066854756 joined [16:13:03]Waiting for new connection... [16:13:03] Sock 9.Parse request [16:13:03]Sock 9.Check first char [16:13:03]Sock 9.First char is OK [16:13:03]request: POST /json_proto HTTP/1.0 [16:13:03]Method: POST [16:13:03]URL: /json_proto [16:13:03]Method is POST - this is cgi request [16:13:03]url: /json_proto [16:13:03]query_string will be loaded in cgi processing [16:13:03]execute_cgi json_proto POST (null) [16:13:03]execute_cgi path=json_proto method=POST [16:13:03]POST find Content-Length [16:13:03]Host: 172.17.56.4:8080 [16:13:03]Content-Length: 679 [16:13:03]Content-Type: application/json [16:13:03] [16:13:03]POST finish read [16:13:03]Found Content-Length = 679 [16:13:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459467", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 15.000, "sum" : 1078.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1078.00, "total" : 1078.00, "payments": [ { "type": 0, "sum" : 1078.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:03]execute_script... [16:13: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)459467", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 15.000, "sum" : 1078.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1078.00, "total" : 1078.00, "payments": [ { "type": 0, "sum" : 1078.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:03]POST & json_proto [16:13:03]process_json_proto [16:13:03]json parsed OK: [16:13:03]protocol is kg_v1.0 [16:13:03]action value=close_receipt [16:13:03]process_action close_receipt [16:13:03]cmd_close_receipt [16:13:03]MH_GetDate [16:13:03]Write to MH i2c: F0 00 00 02 26 17 [16:13:03]Write i2c OK [16:13:03]MH_I2C_Read... [16:13:03]Read from MH i2c: F0 [16:13:03]MH_I2C_Read... [16:13:03]Read from MH i2c: F0 09 00 [16:13:03]MH_I2C_Read... [16:13:03]Read from MH i2c: F0 09 00 02 26 00 91 4A 95 66 C9 DC B2 64 B1 [16:13:03]GetLastDocTimeStamp 1721059972 [16:13:03]current date 1721059985 [16:13:03]FM_GetShiftState [16:13:03]SAM_PROTO_GetShiftState [16:13:03]wFMCommunicate request_size=4 [16:13:03]MH_SAM_APDU [16:13:03]CAPDU: 80 13 01 00 [16:13:03]Write to MH i2c: E2 08 00 03 26 80 13 01 00 00 00 00 00 A6 [16:13:03]Write i2c OK [16:13:03]MH_I2C_Read... [16:13:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:03]Read from MH i2c: E2 [16:13:03]MH_I2C_Read... [16:13:03]Read from MH i2c: E2 0E 00 [16:13:03]MH_I2C_Read... [16:13:03]Read from MH i2c: E2 0E 00 03 26 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 7F [16:13:03]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [16:13:03]wFMCommunicate OK [16:13:03]SAM_PROTO_GetShiftState done [16:13:03]FM_GetShiftState done [16:13:03]opened in 1721003876 [16:13:03]opened+sec_in_day 1721090276 [16:13:03]quantity*price = 107850 [16:13:03]sum+1 = 107851 [16:13:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 1078.00 Внесено: 1078.00 СДАЧА: 0.00 НСП 1% : 9.54 НДС 12% : 114.53 Наличными: 1078.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 228 15.07.2024 16:13 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165355 ФПД: 38545204816948 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T161305&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165355&fm=38545204816948&tin=02508201610067®Number=0000000000090829&sum=107800 [16:13:04]StoreToDocumentArchive [16:13:04]shift 448 fd 165355 [16:13:04]save to /storage/0448/doc_00165355 [16:13:04]save last doc name /storage/0448/doc_00165355 to /storage/kkm_last_doc_name [16:13:04]save OK [16:13:04]Clear old archive folders... [16:13:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:13:04]tlvbuf is B6EA9AB0 [16:13:04]SAM_PROTO_ClearQueue [16:13:04]wFMCommunicate request_size=4 [16:13:04]MH_SAM_APDU [16:13:04]CAPDU: 80 09 00 00 [16:13:04]Write to MH i2c: E2 08 00 10 26 80 09 00 00 00 00 00 00 A8 [16:13:04]Write i2c OK [16:13:04]MH_I2C_Read... [16:13:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:13:04]Read from MH i2c: E2 [16:13:04]MH_I2C_Read... [16:13:04]Read from MH i2c: E2 03 00 [16:13:04]MH_I2C_Read... [16:13:04]Read from MH i2c: E2 03 00 10 26 00 90 00 AA [16:13:04]RAPDU: 90 00 [16:13:04]wFMCommunicate OK [16:13:04]SAM_PROTO_ClearQueue done [16:13:04]KKMCreateOFDPacket [16:13:04]OFDProtocolAddRootSTLVToBuf [16:13:04]FM_MakeSignedData [16:13:04]FM_MakeSignedData [16:13:04]SAM_PROTO_SignData [16:13:04]wFMCommunicate request_size=4 [16:13:04]MH_SAM_APDU [16:13:04]CAPDU: 80 0D 01 02 [16:13:04]Write to MH i2c: E2 08 00 11 26 80 0D 01 02 00 00 00 00 B0 [16:13:04]Write i2c OK [16:13:04]MH_I2C_Read... [16:13:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:13:04]Read from MH i2c: E2 [16:13:04]MH_I2C_Read... [16:13:04]Read from MH i2c: E2 03 00 [16:13:04]MH_I2C_Read... [16:13:04]Read from MH i2c: E2 03 00 11 26 00 90 00 AB [16:13:04]RAPDU: 90 00 [16:13:04]wFMCommunicate OK [16:13:04]wFMCommunicate request_size=255 [16:13:04]MH_SAM_APDU [16:13:04]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 4A A5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 A5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 2C 00 00 00 00 07 04 06 00 18 A5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 91 4A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EB 85 02 00 35 04 06 00 23 0E 81 3D [16:13:04]Write to MH i2c: E2 02 01 12 26 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 4A A5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 A5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 2C 00 00 00 00 07 04 06 00 18 A5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 91 4A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EB 85 02 00 35 04 06 00 23 0E 81 3D 00 00 05 [16:13:04]Write i2c OK [16:13:04]MH_I2C_Read... [16:13:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:04]Read from MH i2c: E2 [16:13:04]MH_I2C_Read... [16:13:04]Read from MH i2c: E2 03 00 [16:13:04]MH_I2C_Read... [16:13:04]Read from MH i2c: E2 03 00 12 26 00 90 00 AC [16:13:04]RAPDU: 90 00 [16:13:04]wFMCommunicate OK [16:13:04]wFMCommunicate request_size=7 [16:13:04]MH_SAM_APDU [16:13:04]CAPDU: 80 0D 02 02 02 AC 34 [16:13:04]Write to MH i2c: E2 0A 00 13 26 80 0D 02 02 02 00 AC 34 00 00 97 [16:13:04]Write i2c OK [16:13:04]MH_I2C_Read... [16:13:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:04]Read from MH i2c: E2 [16:13:04]MH_I2C_Read... [16:13:04]Read from MH i2c: E2 03 00 [16:13:04]MH_I2C_Read... [16:13:04]Read from MH i2c: E2 03 00 13 26 00 90 00 AD [16:13:04]RAPDU: 90 00 [16:13:04]wFMCommunicate OK [16:13:04]wFMCommunicate request_size=4 [16:13:04]MH_SAM_APDU [16:13:04]CAPDU: 80 0D 03 02 [16:13:04]Write to MH i2c: E2 08 00 14 26 80 0D 03 02 00 00 00 00 B5 [16:13:04]Write i2c OK [16:13:04]MH_I2C_Read... [16:13:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:13:04]Read from MH i2c: E2 [16:13:04]MH_I2C_Read... [16:13:04]Read from MH i2c: E2 0B 00 [16:13:04]MH_I2C_Read... [16:13:04]Read from MH i2c: E2 0B 00 14 26 00 67 9D 17 C5 CB EA D8 51 90 00 74 [16:13:04]RAPDU: 67 9D 17 C5 CB EA D8 51 90 00 [16:13:04]wFMCommunicate OK [16:13:04]SAM_PROTO_SignData done [16:13:04]FM_MakeSignedData done [16:13:04]CreateOFDProtocolMessage [16:13:04]wFMCommunicate request_size=4 [16:13:04]MH_SAM_APDU [16:13:04]CAPDU: 80 11 00 00 [16:13:04]Write to MH i2c: E2 08 00 15 26 80 11 00 00 00 00 00 00 B5 [16:13:04]Write i2c OK [16:13:04]MH_I2C_Read... [16:13:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:05]Read from MH i2c: E2 [16:13:05]MH_I2C_Read... [16:13:05]Read from MH i2c: E2 17 00 [16:13:05]MH_I2C_Read... [16:13:05]Read from MH i2c: E2 17 00 15 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0B [16:13:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:13:05]wFMCommunicate OK [16:13:05]CreateOFDProtocolMessage done [16:13:05]OFDSenderStorePacket 165355 [16:13:05]StoreOFDPacket docnum=165355 [16:13:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 EC AD 04 01 9C 67 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 4A A5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 A5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 2C 00 00 00 00 07 04 06 00 18 A5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 91 4A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EB 85 02 00 35 04 06 00 23 0E 81 3D AC 34 67 9D 17 C5 CB EA D8 51 [16:13:05]CheckFolder [16:13:05]dirname=/storage/ofd_packets [16:13:05]CheckFolder done [16:13:05]ProducePacketName [16:13:05]name=ofd_packets/00165355 [16:13:05]NVStorageSaveData ofd_packets/00165355 [16:13:05]File name is /storage/ofd_packets/00165355 [16:13:05]Write 298 bytes [16:13:05]NVStorageSaveData done [16:13:05]OFDSenderStorePacket done [16:13:05]KKMCreateOFDPacket done [16:13:05]NVStorageSaveData kkm_last_timestamp [16:13:05]File name is /storage/kkm_last_timestamp [16:13:05]Write 4 bytes [16:13:05]NVStorageSaveData done [16:13:05]ExternCall_PrintAddStr [16:13:05]wPrintStart [16:13:05]Write to MH i2c: 01 00 00 16 26 3C [16:13:05]Write i2c OK [16:13:05]MH_I2C_Read... [16:13:05]Read from MH i2c: 01 [16:13:05]MH_I2C_Read... [16:13:05]Read from MH i2c: 01 07 00 [16:13:05]MH_I2C_Read... [16:13:05]Read from MH i2c: 01 07 00 16 26 00 00 00 00 00 FF 0F 51 [16:13:05]RasterBufferAndPrint [16:13:05]line Счет N : (1)459467 [16:13:05]line ИНН: 02508201610067 [16:13:05]line Контрольно-Кассовый Чек [16:13:05]line ПРОДАЖА [16:13:05]line ТРК (МРК, ГНК) : 11 [16:13:05]line Товар: 2710194210 [16:13:05]line ДТ-К-5 [16:13:05]line 15.000 * 71.90 [16:13:05]line = 1078.50 [16:13:05]line НДС 12% НСП 1% [16:13:05]line > о реализуемом товаре [16:13:05]line ОКРУГЛЕНИЕ: -0.50 [16:13:05]line ИТОГО: 1078.00 [16:13:05]line Внесено: 1078.00 [16:13:05]line СДАЧА: 0.00 [16:13:05]line НСП 1% : 9.54 [16:13:05]line НДС 12% : 114.53 [16:13:05]line Наличными: 1078.00 [16:13:05]line Безнал.: 0.00 [16:13:05]line Место: АЗС № 72 "Партнер Нефть" [16:13:05]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:13:05]line СНО: Общий режим [16:13:05]line Чек 228 15.07.2024 16:13 [16:13:05]line Смена: 448 ФФД: 1.0 [16:13:05]line ЗНМ: 0300000160 [16:13:05]line РНМ: 0000000000090829 [16:13:05]line Версия ККМ: 001 [16:13:05]line ФМ: 0000000000874718 [16:13:05]line ФД: 165355 [16:13:05]line ФПД: 38545204816948 [16:13:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T161305&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165355&fm=38545204816948&tin=02508201610067®Number=0000000000090829&sum=107800 [16:13:05]OFD Sender: Processing packet 165355 [packets to send 106, broken 105] [16:13:05]ProducePacketName [16:13:05]name=ofd_packets/00165355 [16:13:05]OFD Sender: To server: pG, [16:13:05]CommunicateWithHost lk.salyk.kg:30040 [16:13:05]ConnectInit lk.salyk.kg [16:13:05]written 0, free lines is 4095 [16:13:05]Connected sock=10 [16:13: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 37 31 38 0C 01 00 00 EC AD 04 01 9C 67 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 4A A5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 A5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 2C 00 00 00 00 07 04 06 00 18 A5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 91 4A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EB 85 02 00 35 04 06 00 23 0E 81 3D AC 34 67 9D 17 C5 CB EA D8 51 [16:13:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 C8 7A 47 00 09 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EB 85 02 00 F4 03 04 00 1B F1 94 66 B6 04 01 00 00 EA 18 00 B7 19 CD ED 36 [16:13:05]CommunicateWithHost err = 0 [16:13:05]CheckOFDResponse [16:13:05]1017 (14) - 77093643461234 [16:13:05]1041 (16) - 0000000000874718 [16:13:05]1040 (4) - 165355 [16:13:05]1012 (4) - 15.07.2024 09:51 [16:13:05]1206 (1) - 0 [16:13:05]OFD Sender: Remove packet 165355 [16:13:05]ProducePacketName [16:13:05]name=ofd_packets/00165355 [16:13:05]NVStorageDeleteData [16:13:05]Write to MH i2c: 01 00 00 40 26 66 [16:13:05]Write i2c OK [16:13:05]MH_I2C_Read... [16:13:05]Read from MH i2c: 01 [16:13:05]MH_I2C_Read... [16:13:05]Read from MH i2c: 01 07 00 [16:13:05]MH_I2C_Read... [16:13:05]Read from MH i2c: 01 07 00 40 26 00 00 00 00 00 F7 0C 70 [16:13:05]RasterBufferAndPrint [16:13:05]line [16:13:05]line [16:13:05]line [16:13:05]line [16:13:05]line [16:13:05]written 0, free lines is 3326 [16:13:05]MH_Cut [16:13:05]Write to MH i2c: D1 01 00 47 26 01 3F [16:13:05]Write i2c OK [16:13:05]MH_I2C_Read... [16:13:05]Read from MH i2c: D1 [16:13:05]MH_I2C_Read... [16:13:05]Read from MH i2c: D1 01 00 [16:13:05]MH_I2C_Read... [16:13:05]Read from MH i2c: D1 01 00 47 26 00 3E [16:13:05]Write to MH i2c: 01 00 00 48 26 6E [16:13:05]Write i2c OK [16:13:05]MH_I2C_Read... [16:13:06]OFD Sender: No OFD packet to send [16:13:06]*** Cut start [16:13:06]*** Partial cut [16:13:06]*** CUTSNS_PIN = 1 [16:13:06]*** CUTSNS_PIN = 0 [16:13:06]*** Brake cut motor [16:13:07]Read from MH i2c: 01 [16:13:07]MH_I2C_Read... [16:13:07]*** Stop cut motor [16:13:07]*** Cut end [16:13:07]Read from MH i2c: 01 07 00 [16:13:07]MH_I2C_Read... [16:13:07]Read from MH i2c: 01 07 00 48 26 00 00 00 00 00 FF 0F 83 [16:13:07]process_action close_receipt done [16:13:07]requested_data is exist [16:13:07]produce_requested_data [16:13:07]requested_item fm.sn is exist - process it [16:13:07]wFMCommunicate request_size=4 [16:13:07]MH_SAM_APDU [16:13:07]CAPDU: 80 11 00 00 [16:13:07]Write to MH i2c: E2 08 00 49 26 80 11 00 00 00 00 00 00 E9 [16:13:07]Write i2c OK [16:13:07]MH_I2C_Read... [16:13:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:07]Read from MH i2c: E2 [16:13:07]MH_I2C_Read... [16:13:07]Read from MH i2c: E2 17 00 [16:13:07]MH_I2C_Read... [16:13:07]Read from MH i2c: E2 17 00 49 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3F [16:13:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:13:07]wFMCommunicate OK [16:13:07]requested_item fd.num is exist - process it [16:13:07]SAM_PROTO_GetFieldsCounters [16:13:07]wFMCommunicate request_size=4 [16:13:07]MH_SAM_APDU [16:13:07]CAPDU: 80 13 00 00 [16:13:07]Write to MH i2c: E2 08 00 4A 26 80 13 00 00 00 00 00 00 EC [16:13:07]Write i2c OK [16:13:07]MH_I2C_Read... [16:13:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:13:07]Read from MH i2c: E2 [16:13:07]MH_I2C_Read... [16:13:07]Read from MH i2c: E2 62 00 [16:13:07]MH_I2C_Read... [16:13:07]Read from MH i2c: E2 62 00 4A 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 EB 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [16:13:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 EB 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:13:07]wFMCommunicate OK [16:13:07]SAM_PROTO_GetFieldsCounters done [16:13:07]requested_item shift.num is exist - process it [16:13:07]requested_item shift.opened is exist - process it [16:13:07]req_shift_opened [16:13:07]FM_GetShiftState [16:13:07]SAM_PROTO_GetShiftState [16:13:07]wFMCommunicate request_size=4 [16:13:07]MH_SAM_APDU [16:13:07]CAPDU: 80 13 01 00 [16:13:07]Write to MH i2c: E2 08 00 4B 26 80 13 01 00 00 00 00 00 EE [16:13:07]Write i2c OK [16:13:07]MH_I2C_Read... [16:13:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:07]Read from MH i2c: E2 [16:13:07]MH_I2C_Read... [16:13:07]Read from MH i2c: E2 0E 00 [16:13:07]MH_I2C_Read... [16:13:07]Read from MH i2c: E2 0E 00 4B 26 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 C7 [16:13:07]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [16:13:07]wFMCommunicate OK [16:13:07]SAM_PROTO_GetShiftState done [16:13:07]FM_GetShiftState done [16:13:07]req_shift_opened done [16:13:07]requested_item shift.open_date is exist - process it [16:13:07]req_shift_open_date [16:13:07]req_shift_open_date done [16:13:07]produce_requested_data done [16:13:07]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165355,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [16:13:07]process_action_free close_receipt [16:13:07]json_value_free [16:13:07]json_value_free done [16:13:07]process_json_proto returns [16:13:07]Send response to host [16:13:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165355,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [16:13:07]free response buf [16:13:07]execute_script done [16:13:07]execute_script returns [16:13:07]free content buf [16:13:07]Sock 9.Close socket [16:13:07]Sock 9.Thread stoped [16:13:11]OFD Sender: No OFD packet to send [16:13:16]OFD Sender: No OFD packet to send [16:13:21]OFD Sender: No OFD packet to send [16:13:26]OFD Sender: No OFD packet to send [16:13:31]OFD Sender: No OFD packet to send [16:13:36]OFD Sender: No OFD packet to send [16:13:41]OFD Sender: No OFD packet to send [16:13:46]OFD Sender: No OFD packet to send [16:13:51]OFD Sender: No OFD packet to send [16:13:56]OFD Sender: No OFD packet to send [16:14:01]OFD Sender: No OFD packet to send [16:14:06]OFD Sender: No OFD packet to send [16:14:11]OFD Sender: No OFD packet to send [16:14:16]OFD Sender: No OFD packet to send [16:14:21]OFD Sender: No OFD packet to send [16:14:26]OFD Sender: No OFD packet to send [16:14:31]OFD Sender: No OFD packet to send [16:14:36]OFD Sender: No OFD packet to send [16:14:41]OFD Sender: No OFD packet to send [16:14:46]OFD Sender: No OFD packet to send [16:14:51]OFD Sender: No OFD packet to send [16:14:56]OFD Sender: No OFD packet to send [16:15:01]OFD Sender: No OFD packet to send [16:15:06]OFD Sender: No OFD packet to send [16:15:11]OFD Sender: No OFD packet to send [16:15:16]OFD Sender: No OFD packet to send [16:15:21]OFD Sender: No OFD packet to send [16:15:26]OFD Sender: No OFD packet to send [16:15:31]OFD Sender: No OFD packet to send [16:15:36]OFD Sender: No OFD packet to send [16:15:41]OFD Sender: No OFD packet to send [16:15:46]OFD Sender: No OFD packet to send [16:15:46]accept exits with 8 [16:15:46]New connection [16:15:46]New thread 3066854756 created [16:15:46]Thread 3066711396 joined [16:15:46]Waiting for new connection... [16:15:46] Sock 8.Parse request [16:15:46]Sock 8.Check first char [16:15:46]Sock 8.First char is OK [16:15:46]request: POST /json_proto HTTP/1.0 [16:15:46]Method: POST [16:15:46]URL: /json_proto [16:15:46]Method is POST - this is cgi request [16:15:46]url: /json_proto [16:15:46]query_string will be loaded in cgi processing [16:15:46]execute_cgi json_proto POST (null) [16:15:46]execute_cgi path=json_proto method=POST [16:15:46]POST find Content-Length [16:15:46]Host: 172.17.56.4:8080 [16:15:46]Content-Length: 675 [16:15:46]Content-Type: application/json [16:15:46] [16:15:46]POST finish read [16:15:46]Found Content-Length = 675 [16:15:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459468", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 11.130, "sum" : 800.25, "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" ] } } [16:15:46]execute_script... [16:15: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)459468", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 11.130, "sum" : 800.25, "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" ] } } [16:15:46]POST & json_proto [16:15:46]process_json_proto [16:15:46]json parsed OK: [16:15:46]protocol is kg_v1.0 [16:15:46]action value=close_receipt [16:15:46]process_action close_receipt [16:15:46]cmd_close_receipt [16:15:46]MH_GetDate [16:15:46]Write to MH i2c: F0 00 00 4C 26 61 [16:15:46]Write i2c OK [16:15:46]MH_I2C_Read... [16:15:46]Read from MH i2c: F0 [16:15:46]MH_I2C_Read... [16:15:46]Read from MH i2c: F0 09 00 [16:15:46]MH_I2C_Read... [16:15:46]Read from MH i2c: F0 09 00 4C 26 00 34 4B 95 66 C9 DC B2 64 9F [16:15:46]GetLastDocTimeStamp 1721059985 [16:15:46]current date 1721060148 [16:15:46]FM_GetShiftState [16:15:46]SAM_PROTO_GetShiftState [16:15:46]wFMCommunicate request_size=4 [16:15:46]MH_SAM_APDU [16:15:46]CAPDU: 80 13 01 00 [16:15:46]Write to MH i2c: E2 08 00 4D 26 80 13 01 00 00 00 00 00 F0 [16:15:46]Write i2c OK [16:15:46]MH_I2C_Read... [16:15:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:15:46]Read from MH i2c: E2 [16:15:46]MH_I2C_Read... [16:15:46]Read from MH i2c: E2 0E 00 [16:15:46]MH_I2C_Read... [16:15:46]Read from MH i2c: E2 0E 00 4D 26 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 C9 [16:15:46]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [16:15:46]wFMCommunicate OK [16:15:46]SAM_PROTO_GetShiftState done [16:15:46]FM_GetShiftState done [16:15:46]opened in 1721003876 [16:15:46]opened+sec_in_day 1721090276 [16:15:46]quantity*price = 80024 [16:15:46]sum+1 = 80026 [16:15:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.98 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 229 15.07.2024 16:15 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165356 ФПД: 74125355215284 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T161548&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165356&fm=74125355215284&tin=02508201610067®Number=0000000000090829&sum=80000 [16:15:48]StoreToDocumentArchive [16:15:48]shift 448 fd 165356 [16:15:48]save to /storage/0448/doc_00165356 [16:15:48]save last doc name /storage/0448/doc_00165356 to /storage/kkm_last_doc_name [16:15:48]save OK [16:15:48]Clear old archive folders... [16:15:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:15:48]tlvbuf is 0181A240 [16:15:48]SAM_PROTO_ClearQueue [16:15:48]wFMCommunicate request_size=4 [16:15:48]MH_SAM_APDU [16:15:48]CAPDU: 80 09 00 00 [16:15:48]Write to MH i2c: E2 08 00 5A 26 80 09 00 00 00 00 00 00 F2 [16:15:48]Write i2c OK [16:15:48]MH_I2C_Read... [16:15:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:15:48]Read from MH i2c: E2 [16:15:48]MH_I2C_Read... [16:15:48]Read from MH i2c: E2 03 00 [16:15:48]MH_I2C_Read... [16:15:48]Read from MH i2c: E2 03 00 5A 26 00 90 00 F4 [16:15:48]RAPDU: 90 00 [16:15:48]wFMCommunicate OK [16:15:48]SAM_PROTO_ClearQueue done [16:15:48]KKMCreateOFDPacket [16:15:48]OFDProtocolAddRootSTLVToBuf [16:15:48]FM_MakeSignedData [16:15:48]FM_MakeSignedData [16:15:48]SAM_PROTO_SignData [16:15:48]wFMCommunicate request_size=4 [16:15:48]MH_SAM_APDU [16:15:48]CAPDU: 80 0D 01 02 [16:15:48]Write to MH i2c: E2 08 00 5B 26 80 0D 01 02 00 00 00 00 FA [16:15:48]Write i2c OK [16:15:48]MH_I2C_Read... [16:15:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:15:48]Read from MH i2c: E2 [16:15:48]MH_I2C_Read... [16:15:48]Read from MH i2c: E2 03 00 [16:15:48]MH_I2C_Read... [16:15:48]Read from MH i2c: E2 03 00 5B 26 00 90 00 F5 [16:15:48]RAPDU: 90 00 [16:15:48]wFMCommunicate OK [16:15:48]wFMCommunicate request_size=255 [16:15:48]MH_SAM_APDU [16:15:48]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 99 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 32 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 E5 00 00 00 F4 03 04 00 34 4B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EC 85 02 00 35 04 06 00 43 6A A7 77 [16:15:48]Write to MH i2c: E2 02 01 5C 26 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 99 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 32 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 E5 00 00 00 F4 03 04 00 34 4B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EC 85 02 00 35 04 06 00 43 6A A7 77 00 00 EF [16:15:48]Write i2c OK [16:15:48]MH_I2C_Read... [16:15:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:15:48]Read from MH i2c: E2 [16:15:48]MH_I2C_Read... [16:15:48]Read from MH i2c: E2 03 00 [16:15:48]MH_I2C_Read... [16:15:48]Read from MH i2c: E2 03 00 5C 26 00 90 00 F6 [16:15:48]RAPDU: 90 00 [16:15:48]wFMCommunicate OK [16:15:48]wFMCommunicate request_size=7 [16:15:48]MH_SAM_APDU [16:15:48]CAPDU: 80 0D 02 02 02 69 B4 [16:15:48]Write to MH i2c: E2 0A 00 5D 26 80 0D 02 02 02 00 69 B4 00 00 1E [16:15:48]Write i2c OK [16:15:48]MH_I2C_Read... [16:15:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:15:48]Read from MH i2c: E2 [16:15:48]MH_I2C_Read... [16:15:48]Read from MH i2c: E2 03 00 [16:15:48]MH_I2C_Read... [16:15:48]Read from MH i2c: E2 03 00 5D 26 00 90 00 F7 [16:15:48]RAPDU: 90 00 [16:15:48]wFMCommunicate OK [16:15:48]wFMCommunicate request_size=4 [16:15:48]MH_SAM_APDU [16:15:48]CAPDU: 80 0D 03 02 [16:15:48]Write to MH i2c: E2 08 00 5E 26 80 0D 03 02 00 00 00 00 FF [16:15:48]Write i2c OK [16:15:48]MH_I2C_Read... [16:15:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:15:48]Read from MH i2c: E2 [16:15:48]MH_I2C_Read... [16:15:48]Read from MH i2c: E2 0B 00 [16:15:48]MH_I2C_Read... [16:15:48]Read from MH i2c: E2 0B 00 5E 26 00 B9 94 BE DD C8 8D 74 CC 90 00 7D [16:15:48]RAPDU: B9 94 BE DD C8 8D 74 CC 90 00 [16:15:48]wFMCommunicate OK [16:15:48]SAM_PROTO_SignData done [16:15:48]FM_MakeSignedData done [16:15:48]CreateOFDProtocolMessage [16:15:48]wFMCommunicate request_size=4 [16:15:48]MH_SAM_APDU [16:15:48]CAPDU: 80 11 00 00 [16:15:48]Write to MH i2c: E2 08 00 5F 26 80 11 00 00 00 00 00 00 FF [16:15:48]Write i2c OK [16:15:48]MH_I2C_Read... [16:15:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:15:48]Read from MH i2c: E2 [16:15:48]MH_I2C_Read... [16:15:48]Read from MH i2c: E2 17 00 [16:15:48]MH_I2C_Read... [16:15:48]Read from MH i2c: E2 17 00 5F 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 55 [16:15:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:15:48]wFMCommunicate OK [16:15:48]CreateOFDProtocolMessage done [16:15:48]OFDSenderStorePacket 165356 [16:15:48]StoreOFDPacket docnum=165356 [16:15:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 25 E5 04 01 1A 27 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 99 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 32 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 E5 00 00 00 F4 03 04 00 34 4B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EC 85 02 00 35 04 06 00 43 6A A7 77 69 B4 B9 94 BE DD C8 8D 74 CC [16:15:48]CheckFolder [16:15:48]dirname=/storage/ofd_packets [16:15:48]CheckFolder done [16:15:48]ProducePacketName [16:15:48]name=ofd_packets/00165356 [16:15:48]NVStorageSaveData ofd_packets/00165356 [16:15:48]File name is /storage/ofd_packets/00165356 [16:15:48]Write 298 bytes [16:15:48]NVStorageSaveData done [16:15:48]OFDSenderStorePacket done [16:15:48]KKMCreateOFDPacket done [16:15:48]NVStorageSaveData kkm_last_timestamp [16:15:48]File name is /storage/kkm_last_timestamp [16:15:48]Write 4 bytes [16:15:48]NVStorageSaveData done [16:15:48]ExternCall_PrintAddStr [16:15:48]wPrintStart [16:15:48]Write to MH i2c: 01 00 00 60 26 86 [16:15:48]Write i2c OK [16:15:48]MH_I2C_Read... [16:15:48]Read from MH i2c: 01 [16:15:48]MH_I2C_Read... [16:15:48]Read from MH i2c: 01 07 00 [16:15:48]MH_I2C_Read... [16:15:48]Read from MH i2c: 01 07 00 60 26 00 00 00 00 00 FF 0F 9B [16:15:48]RasterBufferAndPrint [16:15:48]line Счет N : (1)459468 [16:15:48]line ИНН: 02508201610067 [16:15:48]line Контрольно-Кассовый Чек [16:15:48]line ПРОДАЖА [16:15:48]line ТРК (МРК, ГНК) : 21 [16:15:48]line Товар: 2710194210 [16:15:48]line ДТ-К-5 [16:15:48]line 11.130 * 71.90 [16:15:48]line = 800.25 [16:15:48]line НДС 12% НСП 1% [16:15:48]line > о реализуемом товаре [16:15:48]line ОКРУГЛЕНИЕ: -0.25 [16:15:48]line ИТОГО: 800.00 [16:15:48]line Внесено: 800.00 [16:15:48]line СДАЧА: 0.00 [16:15:48]line НСП 1% : 7.08 [16:15:48]line НДС 12% : 84.98 [16:15:48]line Наличными: 800.00 [16:15:48]line Безнал.: 0.00 [16:15:48]line Место: АЗС № 72 "Партнер Нефть" [16:15:48]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:15:48]line СНО: Общий режим [16:15:48]line Чек 229 15.07.2024 16:15 [16:15:48]line Смена: 448 ФФД: 1.0 [16:15:48]line ЗНМ: 0300000160 [16:15:48]line РНМ: 0000000000090829 [16:15:48]line Версия ККМ: 001 [16:15:48]line ФМ: 0000000000874718 [16:15:48]line ФД: 165356 [16:15:48]line ФПД: 74125355215284 [16:15:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T161548&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165356&fm=74125355215284&tin=02508201610067®Number=0000000000090829&sum=80000 [16:15:48]OFD Sender: Processing packet 165356 [packets to send 106, broken 105] [16:15:48]ProducePacketName [16:15:48]name=ofd_packets/00165356 [16:15:48]OFD Sender: To server: pG, [16:15:48]CommunicateWithHost lk.salyk.kg:30040 [16:15:48]ConnectInit lk.salyk.kg [16:15:48]written 0, free lines is 4095 [16:15:49]Connected sock=10 [16:15:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 25 E5 04 01 1A 27 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 99 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 32 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 E5 00 00 00 F4 03 04 00 34 4B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EC 85 02 00 35 04 06 00 43 6A A7 77 69 B4 B9 94 BE DD C8 8D 74 CC [16:15:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 39 35 47 00 30 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EC 85 02 00 F4 03 04 00 BE F1 94 66 B6 04 01 00 00 BB 8E EE 59 26 B0 01 A5 [16:15:49]CommunicateWithHost err = 0 [16:15:49]CheckOFDResponse [16:15:49]1017 (14) - 77093643461234 [16:15:49]1041 (16) - 0000000000874718 [16:15:49]1040 (4) - 165356 [16:15:49]1012 (4) - 15.07.2024 09:54 [16:15:49]1206 (1) - 0 [16:15:49]OFD Sender: Remove packet 165356 [16:15:49]ProducePacketName [16:15:49]name=ofd_packets/00165356 [16:15:49]NVStorageDeleteData [16:15:49]Write to MH i2c: 01 00 00 8A 26 B0 [16:15:49]Write i2c OK [16:15:49]MH_I2C_Read... [16:15:49]Read from MH i2c: 01 [16:15:49]MH_I2C_Read... [16:15:49]Read from MH i2c: 01 07 00 [16:15:49]MH_I2C_Read... [16:15:49]Read from MH i2c: 01 07 00 8A 26 00 00 00 00 00 F3 0C B6 [16:15:49]RasterBufferAndPrint [16:15:49]line [16:15:49]line [16:15:49]line [16:15:49]line [16:15:49]line [16:15:49]written 0, free lines is 3325 [16:15:49]MH_Cut [16:15:49]Write to MH i2c: D1 01 00 91 26 01 89 [16:15:49]Write i2c OK [16:15:49]MH_I2C_Read... [16:15:49]Read from MH i2c: D1 [16:15:49]MH_I2C_Read... [16:15:49]Read from MH i2c: D1 01 00 [16:15:49]MH_I2C_Read... [16:15:49]Read from MH i2c: D1 01 00 91 26 00 88 [16:15:49]Write to MH i2c: 01 00 00 92 26 B8 [16:15:49]Write i2c OK [16:15:49]MH_I2C_Read... [16:15:49]OFD Sender: No OFD packet to send [16:15:50]*** Cut start [16:15:50]*** Partial cut [16:15:50]*** CUTSNS_PIN = 1 [16:15:50]*** CUTSNS_PIN = 0 [16:15:50]*** Brake cut motor [16:15:50]Read from MH i2c: 01 [16:15:50]MH_I2C_Read... [16:15:50]*** Stop cut motor [16:15:50]*** Cut end [16:15:50]Read from MH i2c: 01 07 00 [16:15:50]MH_I2C_Read... [16:15:50]Read from MH i2c: 01 07 00 92 26 00 00 00 00 00 FF 0F CD [16:15:50]process_action close_receipt done [16:15:50]requested_data is exist [16:15:50]produce_requested_data [16:15:50]requested_item fm.sn is exist - process it [16:15:50]wFMCommunicate request_size=4 [16:15:50]MH_SAM_APDU [16:15:50]CAPDU: 80 11 00 00 [16:15:50]Write to MH i2c: E2 08 00 93 26 80 11 00 00 00 00 00 00 33 [16:15:50]Write i2c OK [16:15:50]MH_I2C_Read... [16:15:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:15:50]Read from MH i2c: E2 [16:15:50]MH_I2C_Read... [16:15:50]Read from MH i2c: E2 17 00 [16:15:50]MH_I2C_Read... [16:15:50]Read from MH i2c: E2 17 00 93 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 89 [16:15:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:15:50]wFMCommunicate OK [16:15:50]requested_item fd.num is exist - process it [16:15:50]SAM_PROTO_GetFieldsCounters [16:15:50]wFMCommunicate request_size=4 [16:15:50]MH_SAM_APDU [16:15:50]CAPDU: 80 13 00 00 [16:15:50]Write to MH i2c: E2 08 00 94 26 80 13 00 00 00 00 00 00 36 [16:15:50]Write i2c OK [16:15:50]MH_I2C_Read... [16:15:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:15:50]Read from MH i2c: E2 [16:15:50]MH_I2C_Read... [16:15:50]Read from MH i2c: E2 62 00 [16:15:50]MH_I2C_Read... [16:15:50]Read from MH i2c: E2 62 00 94 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 EC 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [16:15: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 EC 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:15:50]wFMCommunicate OK [16:15:50]SAM_PROTO_GetFieldsCounters done [16:15:50]requested_item shift.num is exist - process it [16:15:50]requested_item shift.opened is exist - process it [16:15:50]req_shift_opened [16:15:50]FM_GetShiftState [16:15:50]SAM_PROTO_GetShiftState [16:15:50]wFMCommunicate request_size=4 [16:15:50]MH_SAM_APDU [16:15:50]CAPDU: 80 13 01 00 [16:15:50]Write to MH i2c: E2 08 00 95 26 80 13 01 00 00 00 00 00 38 [16:15:50]Write i2c OK [16:15:50]MH_I2C_Read... [16:15:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:15:50]Read from MH i2c: E2 [16:15:50]MH_I2C_Read... [16:15:50]Read from MH i2c: E2 0E 00 [16:15:50]MH_I2C_Read... [16:15:50]Read from MH i2c: E2 0E 00 95 26 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 11 [16:15:50]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [16:15:50]wFMCommunicate OK [16:15:50]SAM_PROTO_GetShiftState done [16:15:50]FM_GetShiftState done [16:15:50]req_shift_opened done [16:15:50]requested_item shift.open_date is exist - process it [16:15:50]req_shift_open_date [16:15:50]req_shift_open_date done [16:15:50]produce_requested_data done [16:15:50]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165356,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [16:15:50]process_action_free close_receipt [16:15:50]json_value_free [16:15:50]json_value_free done [16:15:50]process_json_proto returns [16:15:50]Send response to host [16:15:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165356,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [16:15:50]free response buf [16:15:50]execute_script done [16:15:50]execute_script returns [16:15:50]free content buf [16:15:50]Sock 8.Close socket [16:15:50]Sock 8.Thread stoped [16:15:54]OFD Sender: No OFD packet to send [16:15:59]OFD Sender: No OFD packet to send [16:16:04]OFD Sender: No OFD packet to send [16:16:07]accept exits with 9 [16:16:07]New connection [16:16:07]New thread 3066711396 created [16:16:07]Thread 3066854756 joined [16:16:07]Waiting for new connection... [16:16:07] Sock 9.Parse request [16:16:07]Sock 9.Check first char [16:16:07]Sock 9.First char is OK [16:16:07]request: POST /json_proto HTTP/1.0 [16:16:07]Method: POST [16:16:07]URL: /json_proto [16:16:07]Method is POST - this is cgi request [16:16:07]url: /json_proto [16:16:07]query_string will be loaded in cgi processing [16:16:07]execute_cgi json_proto POST (null) [16:16:07]execute_cgi path=json_proto method=POST [16:16:07]POST find Content-Length [16:16:07]Host: 172.17.56.4:8080 [16:16:07]Content-Length: 639 [16:16:07]Content-Type: application/json [16:16:07] [16:16:07]POST finish read [16:16:07]Found Content-Length = 639 [16:16:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459469", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.000, "sum" : 329.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 329.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:16:07]execute_script... [16:16: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)459469", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.000, "sum" : 329.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 329.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:16:07]POST & json_proto [16:16:07]process_json_proto [16:16:07]json parsed OK: [16:16:07]protocol is kg_v1.0 [16:16:07]action value=close_receipt [16:16:07]process_action close_receipt [16:16:07]cmd_close_receipt [16:16:07]MH_GetDate [16:16:07]Write to MH i2c: F0 00 00 96 26 AB [16:16:07]Write i2c OK [16:16:07]MH_I2C_Read... [16:16:07]Read from MH i2c: F0 [16:16:07]MH_I2C_Read... [16:16:07]Read from MH i2c: F0 09 00 [16:16:07]MH_I2C_Read... [16:16:07]Read from MH i2c: F0 09 00 96 26 00 49 4B 95 66 C9 DC B2 64 FE [16:16:07]GetLastDocTimeStamp 1721060148 [16:16:07]current date 1721060169 [16:16:07]FM_GetShiftState [16:16:07]SAM_PROTO_GetShiftState [16:16:07]wFMCommunicate request_size=4 [16:16:07]MH_SAM_APDU [16:16:07]CAPDU: 80 13 01 00 [16:16:07]Write to MH i2c: E2 08 00 97 26 80 13 01 00 00 00 00 00 3A [16:16:07]Write i2c OK [16:16:07]MH_I2C_Read... [16:16:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:07]Read from MH i2c: E2 [16:16:07]MH_I2C_Read... [16:16:07]Read from MH i2c: E2 0E 00 [16:16:07]MH_I2C_Read... [16:16:07]Read from MH i2c: E2 0E 00 97 26 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 13 [16:16:07]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [16:16:07]wFMCommunicate OK [16:16:07]SAM_PROTO_GetShiftState done [16:16:07]FM_GetShiftState done [16:16:07]opened in 1721003876 [16:16:07]opened+sec_in_day 1721090276 [16:16:07]quantity*price = 32900 [16:16:07]sum+1 = 32901 [16:16:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 329.00 НСП 1% : 2.91 НДС 12% : 34.94 Наличными: 329.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 230 15.07.2024 16:16 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165357 ФПД: 222501963366016 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T161609&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165357&fm=222501963366016&tin=02508201610067®Number=0000000000090829&sum=32900 [16:16:08]StoreToDocumentArchive [16:16:08]shift 448 fd 165357 [16:16:08]save to /storage/0448/doc_00165357 [16:16:08]save last doc name /storage/0448/doc_00165357 to /storage/kkm_last_doc_name [16:16:08]save OK [16:16:08]Clear old archive folders... [16:16:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:16:08]tlvbuf is 0181AD10 [16:16:08]SAM_PROTO_ClearQueue [16:16:08]wFMCommunicate request_size=4 [16:16:08]MH_SAM_APDU [16:16:08]CAPDU: 80 09 00 00 [16:16:08]Write to MH i2c: E2 08 00 A4 26 80 09 00 00 00 00 00 00 3C [16:16:08]Write i2c OK [16:16:08]MH_I2C_Read... [16:16:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:16:08]Read from MH i2c: E2 [16:16:08]MH_I2C_Read... [16:16:08]Read from MH i2c: E2 03 00 [16:16:08]MH_I2C_Read... [16:16:08]Read from MH i2c: E2 03 00 A4 26 00 90 00 3E [16:16:08]RAPDU: 90 00 [16:16:08]wFMCommunicate OK [16:16:08]SAM_PROTO_ClearQueue done [16:16:08]KKMCreateOFDPacket [16:16:08]OFDProtocolAddRootSTLVToBuf [16:16:08]FM_MakeSignedData [16:16:08]FM_MakeSignedData [16:16:08]SAM_PROTO_SignData [16:16:08]wFMCommunicate request_size=4 [16:16:08]MH_SAM_APDU [16:16:08]CAPDU: 80 0D 01 02 [16:16:08]Write to MH i2c: E2 08 00 A5 26 80 0D 01 02 00 00 00 00 44 [16:16:08]Write i2c OK [16:16:08]MH_I2C_Read... [16:16:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:16:08]Read from MH i2c: E2 [16:16:08]MH_I2C_Read... [16:16:08]Read from MH i2c: E2 03 00 [16:16:08]MH_I2C_Read... [16:16:08]Read from MH i2c: E2 03 00 A5 26 00 90 00 3F [16:16:08]RAPDU: 90 00 [16:16:08]wFMCommunicate OK [16:16:08]wFMCommunicate request_size=255 [16:16:08]MH_SAM_APDU [16:16:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 84 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 84 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 49 4B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 ED 85 02 00 35 04 06 00 CA [16:16:08]Write to MH i2c: E2 02 01 A6 26 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 88 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 84 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 84 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 49 4B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 ED 85 02 00 35 04 06 00 CA 00 00 13 [16:16:08]Write i2c OK [16:16:08]MH_I2C_Read... [16:16:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:08]Read from MH i2c: E2 [16:16:08]MH_I2C_Read... [16:16:08]Read from MH i2c: E2 03 00 [16:16:08]MH_I2C_Read... [16:16:08]Read from MH i2c: E2 03 00 A6 26 00 90 00 40 [16:16:08]RAPDU: 90 00 [16:16:08]wFMCommunicate OK [16:16:08]wFMCommunicate request_size=10 [16:16:08]MH_SAM_APDU [16:16:08]CAPDU: 80 0D 02 02 05 5D 46 7C FE 80 [16:16:08]Write to MH i2c: E2 0D 00 A7 26 80 0D 02 02 05 00 5D 46 7C FE 80 00 00 EE [16:16:08]Write i2c OK [16:16:08]MH_I2C_Read... [16:16:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:08]Read from MH i2c: E2 [16:16:08]MH_I2C_Read... [16:16:08]Read from MH i2c: E2 03 00 [16:16:08]MH_I2C_Read... [16:16:08]Read from MH i2c: E2 03 00 A7 26 00 90 00 41 [16:16:08]RAPDU: 90 00 [16:16:08]wFMCommunicate OK [16:16:08]wFMCommunicate request_size=4 [16:16:08]MH_SAM_APDU [16:16:08]CAPDU: 80 0D 03 02 [16:16:08]Write to MH i2c: E2 08 00 A8 26 80 0D 03 02 00 00 00 00 49 [16:16:08]Write i2c OK [16:16:08]MH_I2C_Read... [16:16:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:16:08]Read from MH i2c: E2 [16:16:08]MH_I2C_Read... [16:16:08]Read from MH i2c: E2 0B 00 [16:16:08]MH_I2C_Read... [16:16:08]Read from MH i2c: E2 0B 00 A8 26 00 3C 3F 45 6C A8 AB 79 85 90 00 C7 [16:16:08]RAPDU: 3C 3F 45 6C A8 AB 79 85 90 00 [16:16:08]wFMCommunicate OK [16:16:08]SAM_PROTO_SignData done [16:16:08]FM_MakeSignedData done [16:16:08]CreateOFDProtocolMessage [16:16:08]wFMCommunicate request_size=4 [16:16:08]MH_SAM_APDU [16:16:08]CAPDU: 80 11 00 00 [16:16:08]Write to MH i2c: E2 08 00 A9 26 80 11 00 00 00 00 00 00 49 [16:16:08]Write i2c OK [16:16:08]MH_I2C_Read... [16:16:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:08]Read from MH i2c: E2 [16:16:08]MH_I2C_Read... [16:16:08]Read from MH i2c: E2 17 00 [16:16:08]MH_I2C_Read... [16:16:08]Read from MH i2c: E2 17 00 A9 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 9F [16:16:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:16:08]wFMCommunicate OK [16:16:08]CreateOFDProtocolMessage done [16:16:08]OFDSenderStorePacket 165357 [16:16:08]StoreOFDPacket docnum=165357 [16:16:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 96 30 07 01 87 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 88 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 84 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 84 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 49 4B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 ED 85 02 00 35 04 06 00 CA 5D 46 7C FE 80 3C 3F 45 6C A8 AB 79 85 [16:16:08]CheckFolder [16:16:08]dirname=/storage/ofd_packets [16:16:08]CheckFolder done [16:16:08]ProducePacketName [16:16:08]name=ofd_packets/00165357 [16:16:08]NVStorageSaveData ofd_packets/00165357 [16:16:08]File name is /storage/ofd_packets/00165357 [16:16:08]Write 301 bytes [16:16:08]NVStorageSaveData done [16:16:08]OFDSenderStorePacket done [16:16:08]KKMCreateOFDPacket done [16:16:08]NVStorageSaveData kkm_last_timestamp [16:16:08]File name is /storage/kkm_last_timestamp [16:16:08]Write 4 bytes [16:16:08]NVStorageSaveData done [16:16:08]ExternCall_PrintAddStr [16:16:08]wPrintStart [16:16:08]Write to MH i2c: 01 00 00 AA 26 D0 [16:16:08]Write i2c OK [16:16:08]MH_I2C_Read... [16:16:08]Read from MH i2c: 01 [16:16:08]MH_I2C_Read... [16:16:08]Read from MH i2c: 01 07 00 [16:16:08]MH_I2C_Read... [16:16:08]Read from MH i2c: 01 07 00 AA 26 00 00 00 00 00 FF 0F E5 [16:16:08]RasterBufferAndPrint [16:16:08]line Счет N : (1)459469 [16:16:08]line ИНН: 02508201610067 [16:16:08]line Контрольно-Кассовый Чек [16:16:08]line ПРОДАЖА [16:16:08]line ТРК (МРК, ГНК) : 12 [16:16:08]line Товар: 2710124130 [16:16:08]line Аи-92-К-5 [16:16:08]line 5.000 * 65.80 [16:16:08]line = 329.00 [16:16:08]line НДС 12% НСП 1% [16:16:08]line > о реализуемом товаре [16:16:08]line ИТОГО: 329.00 [16:16:08]line НСП 1% : 2.91 [16:16:08]line НДС 12% : 34.94 [16:16:08]line Наличными: 329.00 [16:16:08]line Безнал.: 0.00 [16:16:08]line Место: АЗС № 72 "Партнер Нефть" [16:16:08]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:16:09]line СНО: Общий режим [16:16:09]line Чек 230 15.07.2024 16:16 [16:16:09]line Смена: 448 ФФД: 1.0 [16:16:09]line ЗНМ: 0300000160 [16:16:09]line РНМ: 0000000000090829 [16:16:09]line Версия ККМ: 001 [16:16:09]line ФМ: 0000000000874718 [16:16:09]line ФД: 165357 [16:16:09]line ФПД: 222501963366016 [16:16:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T161609&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165357&fm=222501963366016&tin=02508201610067®Number=0000000000090829&sum=32900 [16:16:09]OFD Sender: Processing packet 165357 [packets to send 106, broken 105] [16:16:09]ProducePacketName [16:16:09]name=ofd_packets/00165357 [16:16:09]OFD Sender: To server: pG, [16:16:09]CommunicateWithHost lk.salyk.kg:30040 [16:16:09]ConnectInit lk.salyk.kg [16:16:09]written 0, free lines is 4095 [16:16:09]Connected sock=10 [16:16: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 37 31 38 0F 01 00 00 96 30 07 01 87 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 88 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 84 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 00 00 00 00 07 04 06 00 84 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 49 4B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 ED 85 02 00 35 04 06 00 CA 5D 46 7C FE 80 3C 3F 45 6C A8 AB 79 85 [16:16:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 CA 47 47 00 AC 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 37 31 38 10 04 04 00 ED 85 02 00 F4 03 04 00 D2 F1 94 66 B6 04 01 00 00 4E D5 DF 46 A2 69 72 5E [16:16:09]CommunicateWithHost err = 0 [16:16:09]CheckOFDResponse [16:16:09]1017 (14) - 77093643461234 [16:16:09]1041 (16) - 0000000000874718 [16:16:09]1040 (4) - 165357 [16:16:09]1012 (4) - 15.07.2024 09:54 [16:16:09]1206 (1) - 0 [16:16:09]OFD Sender: Remove packet 165357 [16:16:09]ProducePacketName [16:16:09]name=ofd_packets/00165357 [16:16:09]NVStorageDeleteData [16:16:09]Write to MH i2c: 01 00 00 D1 26 F7 [16:16:09]Write i2c OK [16:16:09]MH_I2C_Read... [16:16:09]Read from MH i2c: 01 [16:16:09]MH_I2C_Read... [16:16:09]Read from MH i2c: 01 07 00 [16:16:09]MH_I2C_Read... [16:16:09]Read from MH i2c: 01 07 00 D1 26 00 00 00 00 00 2D 0D 38 [16:16:09]RasterBufferAndPrint [16:16:09]line [16:16:09]line [16:16:09]line [16:16:09]line [16:16:09]line [16:16:09]written 0, free lines is 3380 [16:16:09]MH_Cut [16:16:09]Write to MH i2c: D1 01 00 D8 26 01 D0 [16:16:09]Write i2c OK [16:16:09]MH_I2C_Read... [16:16:09]Read from MH i2c: D1 [16:16:09]MH_I2C_Read... [16:16:09]Read from MH i2c: D1 01 00 [16:16:09]MH_I2C_Read... [16:16:09]Read from MH i2c: D1 01 00 D8 26 00 CF [16:16:09]Write to MH i2c: 01 00 00 D9 26 FF [16:16:09]Write i2c OK [16:16:09]MH_I2C_Read... [16:16:09]OFD Sender: No OFD packet to send [16:16:10]*** Cut start [16:16:10]*** Partial cut [16:16:10]*** CUTSNS_PIN = 1 [16:16:10]*** CUTSNS_PIN = 0 [16:16:10]*** Brake cut motor [16:16:10]Read from MH i2c: 01 [16:16:10]MH_I2C_Read... [16:16:10]*** Stop cut motor [16:16:10]*** Cut end [16:16:10]Read from MH i2c: 01 07 00 [16:16:10]MH_I2C_Read... [16:16:10]Read from MH i2c: 01 07 00 D9 26 00 00 00 00 00 FF 0F 14 [16:16:10]process_action close_receipt done [16:16:10]requested_data is exist [16:16:10]produce_requested_data [16:16:10]requested_item fm.sn is exist - process it [16:16:10]wFMCommunicate request_size=4 [16:16:10]MH_SAM_APDU [16:16:10]CAPDU: 80 11 00 00 [16:16:10]Write to MH i2c: E2 08 00 DA 26 80 11 00 00 00 00 00 00 7A [16:16:10]Write i2c OK [16:16:10]MH_I2C_Read... [16:16:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:10]Read from MH i2c: E2 [16:16:10]MH_I2C_Read... [16:16:10]Read from MH i2c: E2 17 00 [16:16:10]MH_I2C_Read... [16:16:10]Read from MH i2c: E2 17 00 DA 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D0 [16:16:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:16:10]wFMCommunicate OK [16:16:10]requested_item fd.num is exist - process it [16:16:10]SAM_PROTO_GetFieldsCounters [16:16:10]wFMCommunicate request_size=4 [16:16:10]MH_SAM_APDU [16:16:10]CAPDU: 80 13 00 00 [16:16:10]Write to MH i2c: E2 08 00 DB 26 80 13 00 00 00 00 00 00 7D [16:16:10]Write i2c OK [16:16:10]MH_I2C_Read... [16:16:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:16:10]Read from MH i2c: E2 [16:16:10]MH_I2C_Read... [16:16:10]Read from MH i2c: E2 62 00 [16:16:10]MH_I2C_Read... [16:16:10]Read from MH i2c: E2 62 00 DB 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 ED 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [16:16: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 ED 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:16:10]wFMCommunicate OK [16:16:10]SAM_PROTO_GetFieldsCounters done [16:16:10]requested_item shift.num is exist - process it [16:16:10]requested_item shift.opened is exist - process it [16:16:10]req_shift_opened [16:16:10]FM_GetShiftState [16:16:10]SAM_PROTO_GetShiftState [16:16:10]wFMCommunicate request_size=4 [16:16:10]MH_SAM_APDU [16:16:10]CAPDU: 80 13 01 00 [16:16:10]Write to MH i2c: E2 08 00 DC 26 80 13 01 00 00 00 00 00 7F [16:16:10]Write i2c OK [16:16:10]MH_I2C_Read... [16:16:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:10]Read from MH i2c: E2 [16:16:10]MH_I2C_Read... [16:16:10]Read from MH i2c: E2 0E 00 [16:16:10]MH_I2C_Read... [16:16:10]Read from MH i2c: E2 0E 00 DC 26 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 58 [16:16:10]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [16:16:10]wFMCommunicate OK [16:16:10]SAM_PROTO_GetShiftState done [16:16:10]FM_GetShiftState done [16:16:10]req_shift_opened done [16:16:10]requested_item shift.open_date is exist - process it [16:16:10]req_shift_open_date [16:16:10]req_shift_open_date done [16:16:10]produce_requested_data done [16:16:10]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165357,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [16:16:10]process_action_free close_receipt [16:16:10]json_value_free [16:16:10]json_value_free done [16:16:10]process_json_proto returns [16:16:10]Send response to host [16:16:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165357,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [16:16:10]free response buf [16:16:10]execute_script done [16:16:10]execute_script returns [16:16:10]free content buf [16:16:10]Sock 9.Close socket [16:16:10]Sock 9.Thread stoped [16:16:14]OFD Sender: No OFD packet to send [16:16:19]OFD Sender: No OFD packet to send [16:16:24]OFD Sender: No OFD packet to send [16:16:29]OFD Sender: No OFD packet to send [16:16:34]OFD Sender: No OFD packet to send [16:16:39]OFD Sender: No OFD packet to send [16:16:44]OFD Sender: No OFD packet to send [16:16:49]OFD Sender: No OFD packet to send [16:16:54]OFD Sender: No OFD packet to send [16:16:59]OFD Sender: No OFD packet to send [16:17:04]OFD Sender: No OFD packet to send [16:17:09]OFD Sender: No OFD packet to send [16:17:14]OFD Sender: No OFD packet to send [16:17:19]OFD Sender: No OFD packet to send [16:17:24]OFD Sender: No OFD packet to send [16:17:29]OFD Sender: No OFD packet to send [16:17:34]OFD Sender: No OFD packet to send [16:17:39]OFD Sender: No OFD packet to send [16:17:44]OFD Sender: No OFD packet to send [16:17:49]OFD Sender: No OFD packet to send [16:17:54]OFD Sender: No OFD packet to send [16:17:59]OFD Sender: No OFD packet to send [16:18:04]OFD Sender: No OFD packet to send [16:18:09]OFD Sender: No OFD packet to send [16:18:14]OFD Sender: No OFD packet to send [16:18:19]OFD Sender: No OFD packet to send [16:18:24]OFD Sender: No OFD packet to send [16:18:29]OFD Sender: No OFD packet to send [16:18:35]OFD Sender: No OFD packet to send [16:18:40]OFD Sender: No OFD packet to send [16:18:45]OFD Sender: No OFD packet to send [16:18:50]OFD Sender: No OFD packet to send [16:18:55]OFD Sender: No OFD packet to send [16:19:00]OFD Sender: No OFD packet to send [16:19:05]OFD Sender: No OFD packet to send [16:19:10]OFD Sender: No OFD packet to send [16:19:15]OFD Sender: No OFD packet to send [16:19:20]OFD Sender: No OFD packet to send [16:19:25]OFD Sender: No OFD packet to send [16:19:30]OFD Sender: No OFD packet to send [16:19:32]accept exits with 8 [16:19:32]New connection [16:19:32]New thread 3066854756 created [16:19:32]Thread 3066711396 joined [16:19:32]Waiting for new connection... [16:19:32] Sock 8.Parse request [16:19:32]Sock 8.Check first char [16:19:32]Sock 8.First char is OK [16:19:32]request: POST /json_proto HTTP/1.0 [16:19:32]Method: POST [16:19:32]URL: /json_proto [16:19:32]Method is POST - this is cgi request [16:19:32]url: /json_proto [16:19:32]query_string will be loaded in cgi processing [16:19:32]execute_cgi json_proto POST (null) [16:19:32]execute_cgi path=json_proto method=POST [16:19:32]POST find Content-Length [16:19:32]Host: 172.17.56.4:8080 [16:19:32]Content-Length: 682 [16:19:32]Content-Type: application/json [16:19:32] [16:19:32]POST finish read [16:19:32]Found Content-Length = 682 [16:19:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459470", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 38.000, "sum" : 2500.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:19:32]execute_script... [16:19:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459470", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 38.000, "sum" : 2500.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:19:32]POST & json_proto [16:19:32]process_json_proto [16:19:32]json parsed OK: [16:19:32]protocol is kg_v1.0 [16:19:32]action value=close_receipt [16:19:32]process_action close_receipt [16:19:32]cmd_close_receipt [16:19:32]MH_GetDate [16:19:32]Write to MH i2c: F0 00 00 DD 26 F2 [16:19:32]Write i2c OK [16:19:32]MH_I2C_Read... [16:19:32]Read from MH i2c: F0 [16:19:32]MH_I2C_Read... [16:19:32]Read from MH i2c: F0 09 00 [16:19:32]MH_I2C_Read... [16:19:32]Read from MH i2c: F0 09 00 DD 26 00 16 4C 95 66 C9 DC B2 64 13 [16:19:32]GetLastDocTimeStamp 1721060169 [16:19:32]current date 1721060374 [16:19:32]FM_GetShiftState [16:19:32]SAM_PROTO_GetShiftState [16:19:32]wFMCommunicate request_size=4 [16:19:32]MH_SAM_APDU [16:19:32]CAPDU: 80 13 01 00 [16:19:32]Write to MH i2c: E2 08 00 DE 26 80 13 01 00 00 00 00 00 81 [16:19:32]Write i2c OK [16:19:32]MH_I2C_Read... [16:19:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:32]Read from MH i2c: E2 [16:19:32]MH_I2C_Read... [16:19:32]Read from MH i2c: E2 0E 00 [16:19:32]MH_I2C_Read... [16:19:32]Read from MH i2c: E2 0E 00 DE 26 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 5A [16:19:32]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [16:19:32]wFMCommunicate OK [16:19:32]SAM_PROTO_GetShiftState done [16:19:32]FM_GetShiftState done [16:19:32]opened in 1721003876 [16:19:32]opened+sec_in_day 1721090276 [16:19:32]quantity*price = 250040 [16:19:32]sum+1 = 250041 [16:19:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.53 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 231 15.07.2024 16:19 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165358 ФПД: 251638181866895 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T161934&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165358&fm=251638181866895&tin=02508201610067®Number=0000000000090829&sum=250000 [16:19:34]StoreToDocumentArchive [16:19:34]shift 448 fd 165358 [16:19:34]save to /storage/0448/doc_00165358 [16:19:34]save last doc name /storage/0448/doc_00165358 to /storage/kkm_last_doc_name [16:19:34]save OK [16:19:34]Clear old archive folders... [16:19:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:19:34]tlvbuf is 01811360 [16:19:34]SAM_PROTO_ClearQueue [16:19:34]wFMCommunicate request_size=4 [16:19:34]MH_SAM_APDU [16:19:34]CAPDU: 80 09 00 00 [16:19:34]Write to MH i2c: E2 08 00 EB 26 80 09 00 00 00 00 00 00 83 [16:19:34]Write i2c OK [16:19:34]MH_I2C_Read... [16:19:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:19:34]Read from MH i2c: E2 [16:19:34]MH_I2C_Read... [16:19:34]Read from MH i2c: E2 03 00 [16:19:34]MH_I2C_Read... [16:19:34]Read from MH i2c: E2 03 00 EB 26 00 90 00 85 [16:19:34]RAPDU: 90 00 [16:19:34]wFMCommunicate OK [16:19:34]SAM_PROTO_ClearQueue done [16:19:34]KKMCreateOFDPacket [16:19:34]OFDProtocolAddRootSTLVToBuf [16:19:34]FM_MakeSignedData [16:19:34]FM_MakeSignedData [16:19:34]SAM_PROTO_SignData [16:19:34]wFMCommunicate request_size=4 [16:19:34]MH_SAM_APDU [16:19:34]CAPDU: 80 0D 01 02 [16:19:34]Write to MH i2c: E2 08 00 EC 26 80 0D 01 02 00 00 00 00 8B [16:19:34]Write i2c OK [16:19:34]MH_I2C_Read... [16:19:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:19:34]Read from MH i2c: E2 [16:19:34]MH_I2C_Read... [16:19:34]Read from MH i2c: E2 03 00 [16:19:34]MH_I2C_Read... [16:19:34]Read from MH i2c: E2 03 00 EC 26 00 90 00 86 [16:19:34]RAPDU: 90 00 [16:19:34]wFMCommunicate OK [16:19:34]wFMCommunicate request_size=255 [16:19:34]MH_SAM_APDU [16:19: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 70 94 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B8 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 16 4C 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EE 85 02 00 35 04 06 00 E4 [16:19:34]Write to MH i2c: E2 02 01 ED 26 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 70 94 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B8 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 16 4C 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EE 85 02 00 35 04 06 00 E4 00 00 E8 [16:19:34]Write i2c OK [16:19:34]MH_I2C_Read... [16:19:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:34]Read from MH i2c: E2 [16:19:34]MH_I2C_Read... [16:19:34]Read from MH i2c: E2 03 00 [16:19:34]MH_I2C_Read... [16:19:34]Read from MH i2c: E2 03 00 ED 26 00 90 00 87 [16:19:34]RAPDU: 90 00 [16:19:34]wFMCommunicate OK [16:19:34]wFMCommunicate request_size=10 [16:19:34]MH_SAM_APDU [16:19:34]CAPDU: 80 0D 02 02 05 DD 14 71 2D 8F [16:19:34]Write to MH i2c: E2 0D 00 EE 26 80 0D 02 02 05 00 DD 14 71 2D 8F 00 00 B6 [16:19:34]Write i2c OK [16:19:34]MH_I2C_Read... [16:19:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:34]Read from MH i2c: E2 [16:19:34]MH_I2C_Read... [16:19:34]Read from MH i2c: E2 03 00 [16:19:34]MH_I2C_Read... [16:19:34]Read from MH i2c: E2 03 00 EE 26 00 90 00 88 [16:19:34]RAPDU: 90 00 [16:19:34]wFMCommunicate OK [16:19:34]wFMCommunicate request_size=4 [16:19:34]MH_SAM_APDU [16:19:34]CAPDU: 80 0D 03 02 [16:19:34]Write to MH i2c: E2 08 00 EF 26 80 0D 03 02 00 00 00 00 90 [16:19:34]Write i2c OK [16:19:34]MH_I2C_Read... [16:19:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:19:34]Read from MH i2c: E2 [16:19:34]MH_I2C_Read... [16:19:34]Read from MH i2c: E2 0B 00 [16:19:34]MH_I2C_Read... [16:19:34]Read from MH i2c: E2 0B 00 EF 26 00 6D 00 C8 5B 00 53 99 A0 90 00 AD [16:19:34]RAPDU: 6D 00 C8 5B 00 53 99 A0 90 00 [16:19:34]wFMCommunicate OK [16:19:34]SAM_PROTO_SignData done [16:19:34]FM_MakeSignedData done [16:19:34]CreateOFDProtocolMessage [16:19:34]wFMCommunicate request_size=4 [16:19:34]MH_SAM_APDU [16:19:34]CAPDU: 80 11 00 00 [16:19:34]Write to MH i2c: E2 08 00 F0 26 80 11 00 00 00 00 00 00 90 [16:19:34]Write i2c OK [16:19:34]MH_I2C_Read... [16:19:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:34]Read from MH i2c: E2 [16:19:34]MH_I2C_Read... [16:19:34]Read from MH i2c: E2 17 00 [16:19:34]MH_I2C_Read... [16:19:34]Read from MH i2c: E2 17 00 F0 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E6 [16:19:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:19:34]wFMCommunicate OK [16:19:34]CreateOFDProtocolMessage done [16:19:34]OFDSenderStorePacket 165358 [16:19:34]StoreOFDPacket docnum=165358 [16:19:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 8B 8E 07 01 98 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 94 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B8 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 16 4C 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EE 85 02 00 35 04 06 00 E4 DD 14 71 2D 8F 6D 00 C8 5B 00 53 99 A0 [16:19:34]CheckFolder [16:19:34]dirname=/storage/ofd_packets [16:19:34]CheckFolder done [16:19:34]ProducePacketName [16:19:34]name=ofd_packets/00165358 [16:19:34]NVStorageSaveData ofd_packets/00165358 [16:19:34]File name is /storage/ofd_packets/00165358 [16:19:34]Write 301 bytes [16:19:34]NVStorageSaveData done [16:19:34]OFDSenderStorePacket done [16:19:34]KKMCreateOFDPacket done [16:19:34]NVStorageSaveData kkm_last_timestamp [16:19:34]File name is /storage/kkm_last_timestamp [16:19:34]Write 4 bytes [16:19:34]NVStorageSaveData done [16:19:34]ExternCall_PrintAddStr [16:19:34]wPrintStart [16:19:34]Write to MH i2c: 01 00 00 F1 26 17 [16:19:34]Write i2c OK [16:19:34]MH_I2C_Read... [16:19:34]Read from MH i2c: 01 [16:19:34]MH_I2C_Read... [16:19:34]Read from MH i2c: 01 07 00 [16:19:34]MH_I2C_Read... [16:19:34]Read from MH i2c: 01 07 00 F1 26 00 00 00 00 00 FF 0F 2C [16:19:34]RasterBufferAndPrint [16:19:34]line Счет N : (1)459470 [16:19:34]line ИНН: 02508201610067 [16:19:34]line Контрольно-Кассовый Чек [16:19:34]line ПРОДАЖА [16:19:34]line ТРК (МРК, ГНК) : 22 [16:19:34]line Товар: 2710124130 [16:19:34]line Аи-92-К-5 [16:19:34]line 38.000 * 65.80 [16:19:34]line = 2500.40 [16:19:34]line НДС 12% НСП 1% [16:19:34]line > о реализуемом товаре [16:19:34]line ОКРУГЛЕНИЕ: -0.40 [16:19:34]line ИТОГО: 2500.00 [16:19:34]line Внесено: 2500.00 [16:19:34]line СДАЧА: 0.00 [16:19:34]line НСП 1% : 22.13 [16:19:34]line НДС 12% : 265.53 [16:19:34]line Наличными: 2500.00 [16:19:34]line Безнал.: 0.00 [16:19:34]line Место: АЗС № 72 "Партнер Нефть" [16:19:34]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:19:34]line СНО: Общий режим [16:19:34]line Чек 231 15.07.2024 16:19 [16:19:34]line Смена: 448 ФФД: 1.0 [16:19:34]line ЗНМ: 0300000160 [16:19:34]line РНМ: 0000000000090829 [16:19:34]line Версия ККМ: 001 [16:19:34]line ФМ: 0000000000874718 [16:19:34]line ФД: 165358 [16:19:34]line ФПД: 251638181866895 [16:19:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T161934&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165358&fm=251638181866895&tin=02508201610067®Number=0000000000090829&sum=250000 [16:19:34]written 0, free lines is 4095 [16:19:34]OFD Sender: Processing packet 165358 [packets to send 106, broken 105] [16:19:34]ProducePacketName [16:19:34]name=ofd_packets/00165358 [16:19:34]OFD Sender: To server: pG, [16:19:34]CommunicateWithHost lk.salyk.kg:30040 [16:19:34]ConnectInit lk.salyk.kg [16:19:34]Connected sock=10 [16:19:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 8B 8E 07 01 98 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 94 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B8 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 16 4C 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EE 85 02 00 35 04 06 00 E4 DD 14 71 2D 8F 6D 00 C8 5B 00 53 99 A0 [16:19:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 38 1F 47 00 CB 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EE 85 02 00 F4 03 04 00 A0 F2 94 66 B6 04 01 00 00 FD 21 DF 4C B2 08 18 A1 [16:19:34]CommunicateWithHost err = 0 [16:19:34]CheckOFDResponse [16:19:34]1017 (14) - 77093643461234 [16:19:34]1041 (16) - 0000000000874718 [16:19:34]1040 (4) - 165358 [16:19:34]1012 (4) - 15.07.2024 09:57 [16:19:34]1206 (1) - 0 [16:19:34]OFD Sender: Remove packet 165358 [16:19:34]ProducePacketName [16:19:34]name=ofd_packets/00165358 [16:19:34]NVStorageDeleteData [16:19:35]Write to MH i2c: 01 00 00 1B 27 42 [16:19:35]Write i2c OK [16:19:35]MH_I2C_Read... [16:19:35]Read from MH i2c: 01 [16:19:35]MH_I2C_Read... [16:19:35]Read from MH i2c: 01 07 00 [16:19:35]MH_I2C_Read... [16:19:35]Read from MH i2c: 01 07 00 1B 27 00 00 00 00 00 01 0D 57 [16:19:35]RasterBufferAndPrint [16:19:35]line [16:19:35]line [16:19:35]line [16:19:35]line [16:19:35]line [16:19:35]written 0, free lines is 3335 [16:19:35]MH_Cut [16:19:35]Write to MH i2c: D1 01 00 22 27 01 1B [16:19:35]Write i2c OK [16:19:35]MH_I2C_Read... [16:19:35]Read from MH i2c: D1 [16:19:35]MH_I2C_Read... [16:19:35]Read from MH i2c: D1 01 00 [16:19:35]MH_I2C_Read... [16:19:35]Read from MH i2c: D1 01 00 22 27 00 1A [16:19:35]Write to MH i2c: 01 00 00 23 27 4A [16:19:35]Write i2c OK [16:19:35]MH_I2C_Read... [16:19:35]OFD Sender: No OFD packet to send [16:19:35]*** Cut start [16:19:35]*** Partial cut [16:19:35]*** CUTSNS_PIN = 1 [16:19:35]*** CUTSNS_PIN = 0 [16:19:35]*** Brake cut motor [16:19:36]Read from MH i2c: 01 [16:19:36]MH_I2C_Read... [16:19:36]*** Stop cut motor [16:19:36]*** Cut end [16:19:36]Read from MH i2c: 01 07 00 [16:19:36]MH_I2C_Read... [16:19:36]Read from MH i2c: 01 07 00 23 27 00 00 00 00 00 FF 0F 5F [16:19:36]process_action close_receipt done [16:19:36]requested_data is exist [16:19:36]produce_requested_data [16:19:36]requested_item fm.sn is exist - process it [16:19:36]wFMCommunicate request_size=4 [16:19:36]MH_SAM_APDU [16:19:36]CAPDU: 80 11 00 00 [16:19:36]Write to MH i2c: E2 08 00 24 27 80 11 00 00 00 00 00 00 C5 [16:19:36]Write i2c OK [16:19:36]MH_I2C_Read... [16:19:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:36]Read from MH i2c: E2 [16:19:36]MH_I2C_Read... [16:19:36]Read from MH i2c: E2 17 00 [16:19:36]MH_I2C_Read... [16:19:36]Read from MH i2c: E2 17 00 24 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1B [16:19:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:19:36]wFMCommunicate OK [16:19:36]requested_item fd.num is exist - process it [16:19:36]SAM_PROTO_GetFieldsCounters [16:19:36]wFMCommunicate request_size=4 [16:19:36]MH_SAM_APDU [16:19:36]CAPDU: 80 13 00 00 [16:19:36]Write to MH i2c: E2 08 00 25 27 80 13 00 00 00 00 00 00 C8 [16:19:36]Write i2c OK [16:19:36]MH_I2C_Read... [16:19:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:19:36]Read from MH i2c: E2 [16:19:36]MH_I2C_Read... [16:19:36]Read from MH i2c: E2 62 00 [16:19:36]MH_I2C_Read... [16:19:36]Read from MH i2c: E2 62 00 25 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 EE 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 DA [16:19: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 EE 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:19:36]wFMCommunicate OK [16:19:36]SAM_PROTO_GetFieldsCounters done [16:19:36]requested_item shift.num is exist - process it [16:19:36]requested_item shift.opened is exist - process it [16:19:36]req_shift_opened [16:19:36]FM_GetShiftState [16:19:36]SAM_PROTO_GetShiftState [16:19:36]wFMCommunicate request_size=4 [16:19:36]MH_SAM_APDU [16:19:36]CAPDU: 80 13 01 00 [16:19:36]Write to MH i2c: E2 08 00 26 27 80 13 01 00 00 00 00 00 CA [16:19:36]Write i2c OK [16:19:36]MH_I2C_Read... [16:19:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:36]Read from MH i2c: E2 [16:19:36]MH_I2C_Read... [16:19:36]Read from MH i2c: E2 0E 00 [16:19:36]MH_I2C_Read... [16:19:36]Read from MH i2c: E2 0E 00 26 27 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 A3 [16:19:36]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [16:19:36]wFMCommunicate OK [16:19:36]SAM_PROTO_GetShiftState done [16:19:36]FM_GetShiftState done [16:19:36]req_shift_opened done [16:19:36]requested_item shift.open_date is exist - process it [16:19:36]req_shift_open_date [16:19:36]req_shift_open_date done [16:19:36]produce_requested_data done [16:19:36]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165358,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [16:19:36]process_action_free close_receipt [16:19:36]json_value_free [16:19:36]json_value_free done [16:19:36]process_json_proto returns [16:19:36]Send response to host [16:19:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165358,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [16:19:36]free response buf [16:19:36]execute_script done [16:19:36]execute_script returns [16:19:36]free content buf [16:19:36]Sock 8.Close socket [16:19:36]Sock 8.Thread stoped [16:19:40]OFD Sender: No OFD packet to send [16:19:45]OFD Sender: No OFD packet to send [16:19:50]OFD Sender: No OFD packet to send [16:19:55]OFD Sender: No OFD packet to send [16:20:00]OFD Sender: No OFD packet to send [16:20:05]OFD Sender: No OFD packet to send [16:20:10]OFD Sender: No OFD packet to send [16:20:15]OFD Sender: No OFD packet to send [16:20:20]OFD Sender: No OFD packet to send [16:20:25]OFD Sender: No OFD packet to send [16:20:30]OFD Sender: No OFD packet to send [16:20:35]OFD Sender: No OFD packet to send [16:20:40]OFD Sender: No OFD packet to send [16:20:45]OFD Sender: No OFD packet to send [16:20:50]OFD Sender: No OFD packet to send [16:20:55]OFD Sender: No OFD packet to send [16:21:00]OFD Sender: No OFD packet to send [16:21:05]OFD Sender: No OFD packet to send [16:21:10]OFD Sender: No OFD packet to send [16:21:15]OFD Sender: No OFD packet to send [16:21:20]OFD Sender: No OFD packet to send [16:21:25]OFD Sender: No OFD packet to send [16:21:30]OFD Sender: No OFD packet to send [16:21:35]OFD Sender: No OFD packet to send [16:21:40]OFD Sender: No OFD packet to send [16:21:45]OFD Sender: No OFD packet to send [16:21:50]OFD Sender: No OFD packet to send [16:21:55]OFD Sender: No OFD packet to send [16:22:00]OFD Sender: No OFD packet to send [16:22:05]OFD Sender: No OFD packet to send [16:22:10]OFD Sender: No OFD packet to send [16:22:15]OFD Sender: No OFD packet to send [16:22:20]OFD Sender: No OFD packet to send [16:22:25]OFD Sender: No OFD packet to send [16:22:30]OFD Sender: No OFD packet to send [16:22:35]OFD Sender: No OFD packet to send [16:22:40]OFD Sender: No OFD packet to send [16:22:45]OFD Sender: No OFD packet to send [16:22:50]OFD Sender: No OFD packet to send [16:22:55]OFD Sender: No OFD packet to send [16:23:00]OFD Sender: No OFD packet to send [16:23:05]OFD Sender: No OFD packet to send [16:23:10]OFD Sender: No OFD packet to send [16:23:15]OFD Sender: No OFD packet to send [16:23:20]OFD Sender: No OFD packet to send [16:23:25]OFD Sender: No OFD packet to send [16:23:30]OFD Sender: No OFD packet to send [16:23:35]OFD Sender: No OFD packet to send [16:23:36]accept exits with 9 [16:23:36]New connection [16:23:36]New thread 3066711396 created [16:23:36]Thread 3066854756 joined [16:23:36]Waiting for new connection... [16:23:36] Sock 9.Parse request [16:23:36]Sock 9.Check first char [16:23:36]Sock 9.First char is OK [16:23:36]request: POST /json_proto HTTP/1.0 [16:23:36]Method: POST [16:23:36]URL: /json_proto [16:23:36]Method is POST - this is cgi request [16:23:36]url: /json_proto [16:23:36]query_string will be loaded in cgi processing [16:23:36]execute_cgi json_proto POST (null) [16:23:36]execute_cgi path=json_proto method=POST [16:23:36]POST find Content-Length [16:23:36]Host: 172.17.56.4:8080 [16:23:36]Content-Length: 677 [16:23:36]Content-Type: application/json [16:23:36] [16:23:36]POST finish read [16:23:36]Found Content-Length = 677 [16:23:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459471", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.170, "sum" : 340.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:23:36]execute_script... [16:23: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)459471", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.170, "sum" : 340.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:23:36]POST & json_proto [16:23:36]process_json_proto [16:23:36]json parsed OK: [16:23:36]protocol is kg_v1.0 [16:23:36]action value=close_receipt [16:23:36]process_action close_receipt [16:23:36]cmd_close_receipt [16:23:36]MH_GetDate [16:23:36]Write to MH i2c: F0 00 00 27 27 3D [16:23:36]Write i2c OK [16:23:36]MH_I2C_Read... [16:23:36]Read from MH i2c: F0 [16:23:36]MH_I2C_Read... [16:23:36]Read from MH i2c: F0 09 00 [16:23:36]MH_I2C_Read... [16:23:36]Read from MH i2c: F0 09 00 27 27 00 0A 4D 95 66 C9 DC B2 64 53 [16:23:36]GetLastDocTimeStamp 1721060374 [16:23:36]current date 1721060618 [16:23:36]FM_GetShiftState [16:23:36]SAM_PROTO_GetShiftState [16:23:36]wFMCommunicate request_size=4 [16:23:36]MH_SAM_APDU [16:23:36]CAPDU: 80 13 01 00 [16:23:36]Write to MH i2c: E2 08 00 28 27 80 13 01 00 00 00 00 00 CC [16:23:36]Write i2c OK [16:23:36]MH_I2C_Read... [16:23:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:23:36]Read from MH i2c: E2 [16:23:36]MH_I2C_Read... [16:23:36]Read from MH i2c: E2 0E 00 [16:23:36]MH_I2C_Read... [16:23:36]Read from MH i2c: E2 0E 00 28 27 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 A5 [16:23:36]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [16:23:36]wFMCommunicate OK [16:23:36]SAM_PROTO_GetShiftState done [16:23:36]FM_GetShiftState done [16:23:36]opened in 1721003876 [16:23:36]opened+sec_in_day 1721090276 [16:23:36]quantity*price = 34018 [16:23:36]sum+1 = 34020 [16:23:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 340.00 Внесено: 340.00 СДАЧА: 0.00 НСП 1% : 3.01 НДС 12% : 36.13 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 232 15.07.2024 16:23 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165359 ФПД: 175244017503749 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T162338&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165359&fm=175244017503749&tin=02508201610067®Number=0000000000090829&sum=34000 [16:23:37]StoreToDocumentArchive [16:23:37]shift 448 fd 165359 [16:23:37]save to /storage/0448/doc_00165359 [16:23:37]save last doc name /storage/0448/doc_00165359 to /storage/kkm_last_doc_name [16:23:37]save OK [16:23:37]Clear old archive folders... [16:23:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:23:37]tlvbuf is B6EA9A80 [16:23:37]SAM_PROTO_ClearQueue [16:23:37]wFMCommunicate request_size=4 [16:23:37]MH_SAM_APDU [16:23:37]CAPDU: 80 09 00 00 [16:23:37]Write to MH i2c: E2 08 00 35 27 80 09 00 00 00 00 00 00 CE [16:23:37]Write i2c OK [16:23:37]MH_I2C_Read... [16:23:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:23:37]Read from MH i2c: E2 [16:23:37]MH_I2C_Read... [16:23:37]Read from MH i2c: E2 03 00 [16:23:37]MH_I2C_Read... [16:23:37]Read from MH i2c: E2 03 00 35 27 00 90 00 D0 [16:23:37]RAPDU: 90 00 [16:23:37]wFMCommunicate OK [16:23:37]SAM_PROTO_ClearQueue done [16:23:37]KKMCreateOFDPacket [16:23:37]OFDProtocolAddRootSTLVToBuf [16:23:37]FM_MakeSignedData [16:23:37]FM_MakeSignedData [16:23:37]SAM_PROTO_SignData [16:23:37]wFMCommunicate request_size=4 [16:23:37]MH_SAM_APDU [16:23:37]CAPDU: 80 0D 01 02 [16:23:37]Write to MH i2c: E2 08 00 36 27 80 0D 01 02 00 00 00 00 D6 [16:23:37]Write i2c OK [16:23:37]MH_I2C_Read... [16:23:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:23:37]Read from MH i2c: E2 [16:23:37]MH_I2C_Read... [16:23:37]Read from MH i2c: E2 03 00 [16:23:37]MH_I2C_Read... [16:23:37]Read from MH i2c: E2 03 00 36 27 00 90 00 D1 [16:23:37]RAPDU: 90 00 [16:23:37]wFMCommunicate OK [16:23:37]wFMCommunicate request_size=255 [16:23:37]MH_SAM_APDU [16:23: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 32 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E3 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1D 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 0A 4D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EF 85 02 00 35 04 06 00 9F [16:23:37]Write to MH i2c: E2 02 01 37 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E3 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1D 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 0A 4D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EF 85 02 00 35 04 06 00 9F 00 00 71 [16:23:37]Write i2c OK [16:23:37]MH_I2C_Read... [16:23:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:23:37]Read from MH i2c: E2 [16:23:37]MH_I2C_Read... [16:23:37]Read from MH i2c: E2 03 00 [16:23:37]MH_I2C_Read... [16:23:37]Read from MH i2c: E2 03 00 37 27 00 90 00 D2 [16:23:37]RAPDU: 90 00 [16:23:37]wFMCommunicate OK [16:23:37]wFMCommunicate request_size=10 [16:23:37]MH_SAM_APDU [16:23:37]CAPDU: 80 0D 02 02 05 62 2D 69 8E 05 [16:23:37]Write to MH i2c: E2 0D 00 38 27 80 0D 02 02 05 00 62 2D 69 8E 05 00 00 6E [16:23:37]Write i2c OK [16:23:37]MH_I2C_Read... [16:23:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:23:38]Read from MH i2c: E2 [16:23:38]MH_I2C_Read... [16:23:38]Read from MH i2c: E2 03 00 [16:23:38]MH_I2C_Read... [16:23:38]Read from MH i2c: E2 03 00 38 27 00 90 00 D3 [16:23:38]RAPDU: 90 00 [16:23:38]wFMCommunicate OK [16:23:38]wFMCommunicate request_size=4 [16:23:38]MH_SAM_APDU [16:23:38]CAPDU: 80 0D 03 02 [16:23:38]Write to MH i2c: E2 08 00 39 27 80 0D 03 02 00 00 00 00 DB [16:23:38]Write i2c OK [16:23:38]MH_I2C_Read... [16:23:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:23:38]Read from MH i2c: E2 [16:23:38]MH_I2C_Read... [16:23:38]Read from MH i2c: E2 0B 00 [16:23:38]MH_I2C_Read... [16:23:38]Read from MH i2c: E2 0B 00 39 27 00 61 85 71 61 B8 12 E9 BF 90 00 06 [16:23:38]RAPDU: 61 85 71 61 B8 12 E9 BF 90 00 [16:23:38]wFMCommunicate OK [16:23:38]SAM_PROTO_SignData done [16:23:38]FM_MakeSignedData done [16:23:38]CreateOFDProtocolMessage [16:23:38]wFMCommunicate request_size=4 [16:23:38]MH_SAM_APDU [16:23:38]CAPDU: 80 11 00 00 [16:23:38]Write to MH i2c: E2 08 00 3A 27 80 11 00 00 00 00 00 00 DB [16:23:38]Write i2c OK [16:23:38]MH_I2C_Read... [16:23:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:23:38]Read from MH i2c: E2 [16:23:38]MH_I2C_Read... [16:23:38]Read from MH i2c: E2 17 00 [16:23:38]MH_I2C_Read... [16:23:38]Read from MH i2c: E2 17 00 3A 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 31 [16:23:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:23:38]wFMCommunicate OK [16:23:38]CreateOFDProtocolMessage done [16:23:38]OFDSenderStorePacket 165359 [16:23:38]StoreOFDPacket docnum=165359 [16:23:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 20 CD 07 01 22 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 32 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E3 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1D 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 0A 4D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EF 85 02 00 35 04 06 00 9F 62 2D 69 8E 05 61 85 71 61 B8 12 E9 BF [16:23:38]CheckFolder [16:23:38]dirname=/storage/ofd_packets [16:23:38]CheckFolder done [16:23:38]ProducePacketName [16:23:38]name=ofd_packets/00165359 [16:23:38]NVStorageSaveData ofd_packets/00165359 [16:23:38]File name is /storage/ofd_packets/00165359 [16:23:38]Write 301 bytes [16:23:38]NVStorageSaveData done [16:23:38]OFDSenderStorePacket done [16:23:38]KKMCreateOFDPacket done [16:23:38]NVStorageSaveData kkm_last_timestamp [16:23:38]File name is /storage/kkm_last_timestamp [16:23:38]Write 4 bytes [16:23:38]NVStorageSaveData done [16:23:38]ExternCall_PrintAddStr [16:23:38]wPrintStart [16:23:38]Write to MH i2c: 01 00 00 3B 27 62 [16:23:38]Write i2c OK [16:23:38]MH_I2C_Read... [16:23:38]Read from MH i2c: 01 [16:23:38]MH_I2C_Read... [16:23:38]Read from MH i2c: 01 07 00 [16:23:38]MH_I2C_Read... [16:23:38]Read from MH i2c: 01 07 00 3B 27 00 00 00 00 00 FF 0F 77 [16:23:38]RasterBufferAndPrint [16:23:38]line Счет N : (1)459471 [16:23:38]line ИНН: 02508201610067 [16:23:38]line Контрольно-Кассовый Чек [16:23:38]line ПРОДАЖА [16:23:38]line ТРК (МРК, ГНК) : 12 [16:23:38]line Товар: 2710124130 [16:23:38]line Аи-92-К-5 [16:23:38]line 5.170 * 65.80 [16:23:38]line = 340.19 [16:23:38]line НДС 12% НСП 1% [16:23:38]line > о реализуемом товаре [16:23:38]line ОКРУГЛЕНИЕ: -0.19 [16:23:38]line ИТОГО: 340.00 [16:23:38]line Внесено: 340.00 [16:23:38]line СДАЧА: 0.00 [16:23:38]line НСП 1% : 3.01 [16:23:38]line НДС 12% : 36.13 [16:23:38]line Наличными: 340.00 [16:23:38]line Безнал.: 0.00 [16:23:38]line Место: АЗС № 72 "Партнер Нефть" [16:23:38]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:23:38]line СНО: Общий режим [16:23:38]line Чек 232 15.07.2024 16:23 [16:23:38]line Смена: 448 ФФД: 1.0 [16:23:38]line ЗНМ: 0300000160 [16:23:38]line РНМ: 0000000000090829 [16:23:38]line Версия ККМ: 001 [16:23:38]line ФМ: 0000000000874718 [16:23:38]line ФД: 165359 [16:23:38]line ФПД: 175244017503749 [16:23:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T162338&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165359&fm=175244017503749&tin=02508201610067®Number=0000000000090829&sum=34000 [16:23:38]OFD Sender: Processing packet 165359 [packets to send 106, broken 105] [16:23:38]ProducePacketName [16:23:38]name=ofd_packets/00165359 [16:23:38]OFD Sender: To server: pG, [16:23:38]CommunicateWithHost lk.salyk.kg:30040 [16:23:38]ConnectInit lk.salyk.kg [16:23:38]written 0, free lines is 4095 [16:23:38]Connected sock=10 [16:23: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 37 31 38 0F 01 00 00 20 CD 07 01 22 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 32 14 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E3 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1D 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 0A 4D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 EF 85 02 00 35 04 06 00 9F 62 2D 69 8E 05 61 85 71 61 B8 12 E9 BF [16:23:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 FB 34 47 00 99 E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 EF 85 02 00 F4 03 04 00 94 F3 94 66 B6 04 01 00 00 31 43 AE 87 F9 C8 79 A3 [16:23:38]CommunicateWithHost err = 0 [16:23:38]CheckOFDResponse [16:23:38]1017 (14) - 77093643461234 [16:23:38]1041 (16) - 0000000000874718 [16:23:38]1040 (4) - 165359 [16:23:38]1012 (4) - 15.07.2024 10:01 [16:23:38]1206 (1) - 0 [16:23:38]OFD Sender: Remove packet 165359 [16:23:38]ProducePacketName [16:23:38]name=ofd_packets/00165359 [16:23:38]NVStorageDeleteData [16:23:38]Write to MH i2c: 01 00 00 65 27 8C [16:23:38]Write i2c OK [16:23:38]MH_I2C_Read... [16:23:38]Read from MH i2c: 01 [16:23:38]MH_I2C_Read... [16:23:38]Read from MH i2c: 01 07 00 [16:23:38]MH_I2C_Read... [16:23:38]Read from MH i2c: 01 07 00 65 27 00 00 00 00 00 02 0D A2 [16:23:38]RasterBufferAndPrint [16:23:38]line [16:23:38]line [16:23:38]line [16:23:38]line [16:23:38]line [16:23:38]written 0, free lines is 3339 [16:23:38]MH_Cut [16:23:38]Write to MH i2c: D1 01 00 6C 27 01 65 [16:23:38]Write i2c OK [16:23:38]MH_I2C_Read... [16:23:38]Read from MH i2c: D1 [16:23:38]MH_I2C_Read... [16:23:38]Read from MH i2c: D1 01 00 [16:23:38]MH_I2C_Read... [16:23:38]Read from MH i2c: D1 01 00 6C 27 00 64 [16:23:38]Write to MH i2c: 01 00 00 6D 27 94 [16:23:38]Write i2c OK [16:23:38]MH_I2C_Read... [16:23:39]OFD Sender: No OFD packet to send [16:23:39]*** Cut start [16:23:39]*** Partial cut [16:23:39]*** CUTSNS_PIN = 1 [16:23:39]*** CUTSNS_PIN = 0 [16:23:39]*** Brake cut motor [16:23:40]Read from MH i2c: 01 [16:23:40]MH_I2C_Read... [16:23:40]*** Stop cut motor [16:23:40]*** Cut end [16:23:40]Read from MH i2c: 01 07 00 [16:23:40]MH_I2C_Read... [16:23:40]Read from MH i2c: 01 07 00 6D 27 00 00 00 00 00 FF 0F A9 [16:23:40]process_action close_receipt done [16:23:40]requested_data is exist [16:23:40]produce_requested_data [16:23:40]requested_item fm.sn is exist - process it [16:23:40]wFMCommunicate request_size=4 [16:23:40]MH_SAM_APDU [16:23:40]CAPDU: 80 11 00 00 [16:23:40]Write to MH i2c: E2 08 00 6E 27 80 11 00 00 00 00 00 00 0F [16:23:40]Write i2c OK [16:23:40]MH_I2C_Read... [16:23:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:23:40]Read from MH i2c: E2 [16:23:40]MH_I2C_Read... [16:23:40]Read from MH i2c: E2 17 00 [16:23:40]MH_I2C_Read... [16:23:40]Read from MH i2c: E2 17 00 6E 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 65 [16:23:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:23:40]wFMCommunicate OK [16:23:40]requested_item fd.num is exist - process it [16:23:40]SAM_PROTO_GetFieldsCounters [16:23:40]wFMCommunicate request_size=4 [16:23:40]MH_SAM_APDU [16:23:40]CAPDU: 80 13 00 00 [16:23:40]Write to MH i2c: E2 08 00 6F 27 80 13 00 00 00 00 00 00 12 [16:23:40]Write i2c OK [16:23:40]MH_I2C_Read... [16:23:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:23:40]Read from MH i2c: E2 [16:23:40]MH_I2C_Read... [16:23:40]Read from MH i2c: E2 62 00 [16:23:40]MH_I2C_Read... [16:23:40]Read from MH i2c: E2 62 00 6F 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 EF 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 28 [16:23: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 EF 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:23:40]wFMCommunicate OK [16:23:40]SAM_PROTO_GetFieldsCounters done [16:23:40]requested_item shift.num is exist - process it [16:23:40]requested_item shift.opened is exist - process it [16:23:40]req_shift_opened [16:23:40]FM_GetShiftState [16:23:40]SAM_PROTO_GetShiftState [16:23:40]wFMCommunicate request_size=4 [16:23:40]MH_SAM_APDU [16:23:40]CAPDU: 80 13 01 00 [16:23:40]Write to MH i2c: E2 08 00 70 27 80 13 01 00 00 00 00 00 14 [16:23:40]Write i2c OK [16:23:40]MH_I2C_Read... [16:23:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:23:40]Read from MH i2c: E2 [16:23:40]MH_I2C_Read... [16:23:40]Read from MH i2c: E2 0E 00 [16:23:40]MH_I2C_Read... [16:23:40]Read from MH i2c: E2 0E 00 70 27 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 ED [16:23:40]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [16:23:40]wFMCommunicate OK [16:23:40]SAM_PROTO_GetShiftState done [16:23:40]FM_GetShiftState done [16:23:40]req_shift_opened done [16:23:40]requested_item shift.open_date is exist - process it [16:23:40]req_shift_open_date [16:23:40]req_shift_open_date done [16:23:40]produce_requested_data done [16:23:40]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165359,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [16:23:40]process_action_free close_receipt [16:23:40]json_value_free [16:23:40]json_value_free done [16:23:40]process_json_proto returns [16:23:40]Send response to host [16:23:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165359,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [16:23:40]free response buf [16:23:40]execute_script done [16:23:40]execute_script returns [16:23:40]free content buf [16:23:40]Sock 9.Close socket [16:23:40]Sock 9.Thread stoped [16:23:44]OFD Sender: No OFD packet to send [16:23:49]OFD Sender: No OFD packet to send [16:23:54]OFD Sender: No OFD packet to send [16:23:59]OFD Sender: No OFD packet to send [16:24:04]OFD Sender: No OFD packet to send [16:24:09]OFD Sender: No OFD packet to send [16:24:14]OFD Sender: No OFD packet to send [16:24:19]OFD Sender: No OFD packet to send [16:24:24]OFD Sender: No OFD packet to send [16:24:29]OFD Sender: No OFD packet to send [16:24:34]OFD Sender: No OFD packet to send [16:24:37]accept exits with 8 [16:24:37]New connection [16:24:37]New thread 3066854756 created [16:24:37]Thread 3066711396 joined [16:24:37]Waiting for new connection... [16:24:37] Sock 8.Parse request [16:24:37]Sock 8.Check first char [16:24:37]Sock 8.First char is OK [16:24:37]request: POST /json_proto HTTP/1.0 [16:24:37]Method: POST [16:24:37]URL: /json_proto [16:24:37]Method is POST - this is cgi request [16:24:37]url: /json_proto [16:24:37]query_string will be loaded in cgi processing [16:24:37]execute_cgi json_proto POST (null) [16:24:37]execute_cgi path=json_proto method=POST [16:24:37]POST find Content-Length [16:24:37]Host: 172.17.56.4:8080 [16:24:37]Content-Length: 682 [16:24:37]Content-Type: application/json [16:24:37] [16:24:37]POST finish read [16:24:37]Found Content-Length = 682 [16:24:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459472", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:37]execute_script... [16:24:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459472", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:37]POST & json_proto [16:24:37]process_json_proto [16:24:37]json parsed OK: [16:24:37]protocol is kg_v1.0 [16:24:37]action value=close_receipt [16:24:37]process_action close_receipt [16:24:37]cmd_close_receipt [16:24:37]MH_GetDate [16:24:37]Write to MH i2c: F0 00 00 71 27 87 [16:24:37]Write i2c OK [16:24:37]MH_I2C_Read... [16:24:37]Read from MH i2c: F0 [16:24:37]MH_I2C_Read... [16:24:37]Read from MH i2c: F0 09 00 [16:24:37]MH_I2C_Read... [16:24:37]Read from MH i2c: F0 09 00 71 27 00 47 4D 95 66 C9 DC B2 64 DA [16:24:37]GetLastDocTimeStamp 1721060618 [16:24:37]current date 1721060679 [16:24:37]FM_GetShiftState [16:24:37]SAM_PROTO_GetShiftState [16:24:37]wFMCommunicate request_size=4 [16:24:37]MH_SAM_APDU [16:24:37]CAPDU: 80 13 01 00 [16:24:37]Write to MH i2c: E2 08 00 72 27 80 13 01 00 00 00 00 00 16 [16:24:37]Write i2c OK [16:24:37]MH_I2C_Read... [16:24:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:37]Read from MH i2c: E2 [16:24:37]MH_I2C_Read... [16:24:37]Read from MH i2c: E2 0E 00 [16:24:37]MH_I2C_Read... [16:24:37]Read from MH i2c: E2 0E 00 72 27 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 EF [16:24:37]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [16:24:37]wFMCommunicate OK [16:24:37]SAM_PROTO_GetShiftState done [16:24:38]FM_GetShiftState done [16:24:38]opened in 1721003876 [16:24:38]opened+sec_in_day 1721090276 [16:24:38]quantity*price = 100016 [16:24:38]sum+1 = 100017 [16:24:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 233 15.07.2024 16:24 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165360 ФПД: 64005855005472 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T162439&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165360&fm=64005855005472&tin=02508201610067®Number=0000000000090829&sum=100000 [16:24:39]StoreToDocumentArchive [16:24:39]shift 448 fd 165360 [16:24:39]save to /storage/0448/doc_00165360 [16:24:39]save last doc name /storage/0448/doc_00165360 to /storage/kkm_last_doc_name [16:24:39]save OK [16:24:39]Clear old archive folders... [16:24:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:24:39]tlvbuf is 018110F0 [16:24:39]SAM_PROTO_ClearQueue [16:24:39]wFMCommunicate request_size=4 [16:24:39]MH_SAM_APDU [16:24:39]CAPDU: 80 09 00 00 [16:24:39]Write to MH i2c: E2 08 00 7F 27 80 09 00 00 00 00 00 00 18 [16:24:39]Write i2c OK [16:24:39]MH_I2C_Read... [16:24:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:24:39]Read from MH i2c: E2 [16:24:39]MH_I2C_Read... [16:24:39]Read from MH i2c: E2 03 00 [16:24:39]MH_I2C_Read... [16:24:39]Read from MH i2c: E2 03 00 7F 27 00 90 00 1A [16:24:39]RAPDU: 90 00 [16:24:39]wFMCommunicate OK [16:24:39]SAM_PROTO_ClearQueue done [16:24:39]KKMCreateOFDPacket [16:24:39]OFDProtocolAddRootSTLVToBuf [16:24:39]FM_MakeSignedData [16:24:39]FM_MakeSignedData [16:24:39]SAM_PROTO_SignData [16:24:39]wFMCommunicate request_size=4 [16:24:39]MH_SAM_APDU [16:24:39]CAPDU: 80 0D 01 02 [16:24:39]Write to MH i2c: E2 08 00 80 27 80 0D 01 02 00 00 00 00 20 [16:24:39]Write i2c OK [16:24:39]MH_I2C_Read... [16:24:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:24:39]Read from MH i2c: E2 [16:24:39]MH_I2C_Read... [16:24:39]Read from MH i2c: E2 03 00 [16:24:39]MH_I2C_Read... [16:24:39]Read from MH i2c: E2 03 00 80 27 00 90 00 1B [16:24:39]RAPDU: 90 00 [16:24:39]wFMCommunicate OK [16:24:39]wFMCommunicate request_size=255 [16:24:39]MH_SAM_APDU [16:24:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 47 4D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F0 85 02 00 35 04 06 00 3A [16:24:39]Write to MH i2c: E2 02 01 81 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 47 4D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F0 85 02 00 35 04 06 00 3A 00 00 25 [16:24:39]Write i2c OK [16:24:39]MH_I2C_Read... [16:24:39]OFD Sender: No OFD packet to send [16:24:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:39]Read from MH i2c: E2 [16:24:39]MH_I2C_Read... [16:24:39]Read from MH i2c: E2 03 00 [16:24:39]MH_I2C_Read... [16:24:39]Read from MH i2c: E2 03 00 81 27 00 90 00 1C [16:24:39]RAPDU: 90 00 [16:24:39]wFMCommunicate OK [16:24:39]wFMCommunicate request_size=10 [16:24:39]MH_SAM_APDU [16:24:39]CAPDU: 80 0D 02 02 05 36 86 40 4B 20 [16:24:39]Write to MH i2c: E2 0D 00 82 27 80 0D 02 02 05 00 36 86 40 4B 20 00 00 94 [16:24:39]Write i2c OK [16:24:39]MH_I2C_Read... [16:24:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:39]Read from MH i2c: E2 [16:24:39]MH_I2C_Read... [16:24:39]Read from MH i2c: E2 03 00 [16:24:39]MH_I2C_Read... [16:24:39]Read from MH i2c: E2 03 00 82 27 00 90 00 1D [16:24:39]RAPDU: 90 00 [16:24:39]wFMCommunicate OK [16:24:39]wFMCommunicate request_size=4 [16:24:39]MH_SAM_APDU [16:24:39]CAPDU: 80 0D 03 02 [16:24:39]Write to MH i2c: E2 08 00 83 27 80 0D 03 02 00 00 00 00 25 [16:24:39]Write i2c OK [16:24:39]MH_I2C_Read... [16:24:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:24:39]Read from MH i2c: E2 [16:24:39]MH_I2C_Read... [16:24:39]Read from MH i2c: E2 0B 00 [16:24:39]MH_I2C_Read... [16:24:39]Read from MH i2c: E2 0B 00 83 27 00 19 61 97 9E 2D D5 65 FA 90 00 36 [16:24:39]RAPDU: 19 61 97 9E 2D D5 65 FA 90 00 [16:24:39]wFMCommunicate OK [16:24:39]SAM_PROTO_SignData done [16:24:39]FM_MakeSignedData done [16:24:39]CreateOFDProtocolMessage [16:24:39]wFMCommunicate request_size=4 [16:24:39]MH_SAM_APDU [16:24:39]CAPDU: 80 11 00 00 [16:24:39]Write to MH i2c: E2 08 00 84 27 80 11 00 00 00 00 00 00 25 [16:24:39]Write i2c OK [16:24:39]MH_I2C_Read... [16:24:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:39]Read from MH i2c: E2 [16:24:39]MH_I2C_Read... [16:24:39]Read from MH i2c: E2 17 00 [16:24:39]MH_I2C_Read... [16:24:39]Read from MH i2c: E2 17 00 84 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7B [16:24:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:24:39]wFMCommunicate OK [16:24:39]CreateOFDProtocolMessage done [16:24:39]OFDSenderStorePacket 165360 [16:24:39]StoreOFDPacket docnum=165360 [16:24:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 69 71 07 01 72 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 47 4D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F0 85 02 00 35 04 06 00 3A 36 86 40 4B 20 19 61 97 9E 2D D5 65 FA [16:24:39]CheckFolder [16:24:39]dirname=/storage/ofd_packets [16:24:39]CheckFolder done [16:24:39]ProducePacketName [16:24:39]name=ofd_packets/00165360 [16:24:39]NVStorageSaveData ofd_packets/00165360 [16:24:39]File name is /storage/ofd_packets/00165360 [16:24:39]Write 301 bytes [16:24:39]NVStorageSaveData done [16:24:39]OFDSenderStorePacket done [16:24:39]KKMCreateOFDPacket done [16:24:39]NVStorageSaveData kkm_last_timestamp [16:24:39]File name is /storage/kkm_last_timestamp [16:24:39]Write 4 bytes [16:24:39]NVStorageSaveData done [16:24:39]ExternCall_PrintAddStr [16:24:39]wPrintStart [16:24:39]Write to MH i2c: 01 00 00 85 27 AC [16:24:39]Write i2c OK [16:24:39]MH_I2C_Read... [16:24:39]Read from MH i2c: 01 [16:24:39]MH_I2C_Read... [16:24:39]Read from MH i2c: 01 07 00 [16:24:39]MH_I2C_Read... [16:24:39]Read from MH i2c: 01 07 00 85 27 00 00 00 00 00 FF 0F C1 [16:24:39]RasterBufferAndPrint [16:24:39]line Счет N : (1)459472 [16:24:39]line ИНН: 02508201610067 [16:24:39]line Контрольно-Кассовый Чек [16:24:39]line ПРОДАЖА [16:24:39]line ТРК (МРК, ГНК) : 22 [16:24:39]line Товар: 2710124130 [16:24:39]line Аи-92-К-5 [16:24:39]line 15.200 * 65.80 [16:24:39]line = 1000.16 [16:24:39]line НДС 12% НСП 1% [16:24:39]line > о реализуемом товаре [16:24:39]line ОКРУГЛЕНИЕ: -0.16 [16:24:39]line ИТОГО: 1000.00 [16:24:39]line Внесено: 1000.00 [16:24:39]line СДАЧА: 0.00 [16:24:39]line НСП 1% : 8.85 [16:24:39]line НДС 12% : 106.21 [16:24:39]line Наличными: 1000.00 [16:24:39]line Безнал.: 0.00 [16:24:39]line Место: АЗС № 72 "Партнер Нефть" [16:24:39]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:24:39]line СНО: Общий режим [16:24:39]line Чек 233 15.07.2024 16:24 [16:24:39]line Смена: 448 ФФД: 1.0 [16:24:39]line ЗНМ: 0300000160 [16:24:39]line РНМ: 0000000000090829 [16:24:39]line Версия ККМ: 001 [16:24:39]line ФМ: 0000000000874718 [16:24:39]line ФД: 165360 [16:24:39]line ФПД: 64005855005472 [16:24:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T162439&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165360&fm=64005855005472&tin=02508201610067®Number=0000000000090829&sum=100000 [16:24:39]OFD Sender: Processing packet 165360 [packets to send 106, broken 105] [16:24:39]ProducePacketName [16:24:39]name=ofd_packets/00165360 [16:24:39]OFD Sender: To server: pG, [16:24:39]CommunicateWithHost lk.salyk.kg:30040 [16:24:39]ConnectInit lk.salyk.kg [16:24:39]written 0, free lines is 4095 [16:24:40]Connected sock=10 [16:24:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 69 71 07 01 72 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 47 4D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F0 85 02 00 35 04 06 00 3A 36 86 40 4B 20 19 61 97 9E 2D D5 65 FA [16:24:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 3B A1 47 00 9F 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F0 85 02 00 F4 03 04 00 D1 F3 94 66 B6 04 01 00 00 E9 99 1A A9 43 EE 09 89 [16:24:40]CommunicateWithHost err = 0 [16:24:40]CheckOFDResponse [16:24:40]1017 (14) - 77093643461234 [16:24:40]1041 (16) - 0000000000874718 [16:24:40]1040 (4) - 165360 [16:24:40]1012 (4) - 15.07.2024 10:02 [16:24:40]1206 (1) - 0 [16:24:40]OFD Sender: Remove packet 165360 [16:24:40]ProducePacketName [16:24:40]name=ofd_packets/00165360 [16:24:40]NVStorageDeleteData [16:24:40]Write to MH i2c: 01 00 00 AF 27 D6 [16:24:40]Write i2c OK [16:24:40]MH_I2C_Read... [16:24:40]Read from MH i2c: 01 [16:24:40]MH_I2C_Read... [16:24:40]Read from MH i2c: 01 07 00 [16:24:40]MH_I2C_Read... [16:24:40]Read from MH i2c: 01 07 00 AF 27 00 00 00 00 00 0A 0D F4 [16:24:40]RasterBufferAndPrint [16:24:40]line [16:24:40]line [16:24:40]line [16:24:40]line [16:24:40]line [16:24:40]written 0, free lines is 3344 [16:24:40]MH_Cut [16:24:40]Write to MH i2c: D1 01 00 B6 27 01 AF [16:24:40]Write i2c OK [16:24:40]MH_I2C_Read... [16:24:40]Read from MH i2c: D1 [16:24:40]MH_I2C_Read... [16:24:40]Read from MH i2c: D1 01 00 [16:24:40]MH_I2C_Read... [16:24:40]Read from MH i2c: D1 01 00 B6 27 00 AE [16:24:40]Write to MH i2c: 01 00 00 B7 27 DE [16:24:40]Write i2c OK [16:24:40]MH_I2C_Read... [16:24:40]OFD Sender: No OFD packet to send [16:24:41]*** Cut start [16:24:41]*** Partial cut [16:24:41]*** CUTSNS_PIN = 1 [16:24:41]*** CUTSNS_PIN = 0 [16:24:41]*** Brake cut motor [16:24:41]Read from MH i2c: 01 [16:24:41]MH_I2C_Read... [16:24:41]*** Stop cut motor [16:24:41]*** Cut end [16:24:41]Read from MH i2c: 01 07 00 [16:24:41]MH_I2C_Read... [16:24:41]Read from MH i2c: 01 07 00 B7 27 00 00 00 00 00 FF 0F F3 [16:24:41]process_action close_receipt done [16:24:41]requested_data is exist [16:24:41]produce_requested_data [16:24:41]requested_item fm.sn is exist - process it [16:24:41]wFMCommunicate request_size=4 [16:24:41]MH_SAM_APDU [16:24:41]CAPDU: 80 11 00 00 [16:24:41]Write to MH i2c: E2 08 00 B8 27 80 11 00 00 00 00 00 00 59 [16:24:41]Write i2c OK [16:24:41]MH_I2C_Read... [16:24:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:41]Read from MH i2c: E2 [16:24:41]MH_I2C_Read... [16:24:41]Read from MH i2c: E2 17 00 [16:24:41]MH_I2C_Read... [16:24:41]Read from MH i2c: E2 17 00 B8 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AF [16:24:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:24:41]wFMCommunicate OK [16:24:41]requested_item fd.num is exist - process it [16:24:41]SAM_PROTO_GetFieldsCounters [16:24:41]wFMCommunicate request_size=4 [16:24:41]MH_SAM_APDU [16:24:41]CAPDU: 80 13 00 00 [16:24:41]Write to MH i2c: E2 08 00 B9 27 80 13 00 00 00 00 00 00 5C [16:24:41]Write i2c OK [16:24:41]MH_I2C_Read... [16:24:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:24:41]Read from MH i2c: E2 [16:24:41]MH_I2C_Read... [16:24:41]Read from MH i2c: E2 62 00 [16:24:41]MH_I2C_Read... [16:24:41]Read from MH i2c: E2 62 00 B9 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F0 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 76 [16:24:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F0 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:24:41]wFMCommunicate OK [16:24:41]SAM_PROTO_GetFieldsCounters done [16:24:41]requested_item shift.num is exist - process it [16:24:41]requested_item shift.opened is exist - process it [16:24:41]req_shift_opened [16:24:41]FM_GetShiftState [16:24:41]SAM_PROTO_GetShiftState [16:24:41]wFMCommunicate request_size=4 [16:24:41]MH_SAM_APDU [16:24:41]CAPDU: 80 13 01 00 [16:24:41]Write to MH i2c: E2 08 00 BA 27 80 13 01 00 00 00 00 00 5E [16:24:41]Write i2c OK [16:24:41]MH_I2C_Read... [16:24:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:41]Read from MH i2c: E2 [16:24:41]MH_I2C_Read... [16:24:41]Read from MH i2c: E2 0E 00 [16:24:41]MH_I2C_Read... [16:24:41]Read from MH i2c: E2 0E 00 BA 27 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 37 [16:24:41]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [16:24:41]wFMCommunicate OK [16:24:41]SAM_PROTO_GetShiftState done [16:24:41]FM_GetShiftState done [16:24:41]req_shift_opened done [16:24:41]requested_item shift.open_date is exist - process it [16:24:41]req_shift_open_date [16:24:41]req_shift_open_date done [16:24:41]produce_requested_data done [16:24:41]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165360,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [16:24:41]process_action_free close_receipt [16:24:41]json_value_free [16:24:41]json_value_free done [16:24:41]process_json_proto returns [16:24:41]Send response to host [16:24:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165360,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [16:24:41]free response buf [16:24:41]execute_script done [16:24:41]execute_script returns [16:24:41]free content buf [16:24:41]Sock 8.Close socket [16:24:41]Sock 8.Thread stoped [16:24:45]OFD Sender: No OFD packet to send [16:24:50]OFD Sender: No OFD packet to send [16:24:55]OFD Sender: No OFD packet to send [16:25:00]OFD Sender: No OFD packet to send [16:25:05]OFD Sender: No OFD packet to send [16:25:10]OFD Sender: No OFD packet to send [16:25:15]OFD Sender: No OFD packet to send [16:25:20]OFD Sender: No OFD packet to send [16:25:25]OFD Sender: No OFD packet to send [16:25:30]OFD Sender: No OFD packet to send [16:25:35]OFD Sender: No OFD packet to send [16:25:40]OFD Sender: No OFD packet to send [16:25:45]OFD Sender: No OFD packet to send [16:25:50]OFD Sender: No OFD packet to send [16:25:55]OFD Sender: No OFD packet to send [16:26:00]OFD Sender: No OFD packet to send [16:26:05]OFD Sender: No OFD packet to send [16:26:10]OFD Sender: No OFD packet to send [16:26:15]OFD Sender: No OFD packet to send [16:26:20]OFD Sender: No OFD packet to send [16:26:25]OFD Sender: No OFD packet to send [16:26:30]OFD Sender: No OFD packet to send [16:26:35]OFD Sender: No OFD packet to send [16:26:40]OFD Sender: No OFD packet to send [16:26:45]OFD Sender: No OFD packet to send [16:26:50]OFD Sender: No OFD packet to send [16:26:55]OFD Sender: No OFD packet to send [16:27:00]OFD Sender: No OFD packet to send [16:27:05]OFD Sender: No OFD packet to send [16:27:10]OFD Sender: No OFD packet to send [16:27:15]OFD Sender: No OFD packet to send [16:27:20]OFD Sender: No OFD packet to send [16:27:25]OFD Sender: No OFD packet to send [16:27:30]OFD Sender: No OFD packet to send [16:27:35]OFD Sender: No OFD packet to send [16:27:41]OFD Sender: No OFD packet to send [16:27:46]OFD Sender: No OFD packet to send [16:27:51]OFD Sender: No OFD packet to send [16:27:56]OFD Sender: No OFD packet to send [16:28:01]OFD Sender: No OFD packet to send [16:28:06]OFD Sender: No OFD packet to send [16:28:11]OFD Sender: No OFD packet to send [16:28:16]OFD Sender: No OFD packet to send [16:28:21]OFD Sender: No OFD packet to send [16:28:26]OFD Sender: No OFD packet to send [16:28:31]OFD Sender: No OFD packet to send [16:28:36]OFD Sender: No OFD packet to send [16:28:41]OFD Sender: No OFD packet to send [16:28:46]OFD Sender: No OFD packet to send [16:28:51]OFD Sender: No OFD packet to send [16:28:56]OFD Sender: No OFD packet to send [16:29:01]OFD Sender: No OFD packet to send [16:29:06]OFD Sender: No OFD packet to send [16:29:11]OFD Sender: No OFD packet to send [16:29:16]OFD Sender: No OFD packet to send [16:29:21]OFD Sender: No OFD packet to send [16:29:26]OFD Sender: No OFD packet to send [16:29:31]OFD Sender: No OFD packet to send [16:29:36]OFD Sender: No OFD packet to send [16:29:41]OFD Sender: No OFD packet to send [16:29:46]OFD Sender: No OFD packet to send [16:29:51]OFD Sender: No OFD packet to send [16:29:56]OFD Sender: No OFD packet to send [16:30:01]OFD Sender: No OFD packet to send [16:30:06]OFD Sender: No OFD packet to send [16:30:11]OFD Sender: No OFD packet to send [16:30:16]OFD Sender: No OFD packet to send [16:30:21]OFD Sender: No OFD packet to send [16:30:26]OFD Sender: No OFD packet to send [16:30:31]OFD Sender: No OFD packet to send [16:30:36]OFD Sender: No OFD packet to send [16:30:41]OFD Sender: No OFD packet to send [16:30:46]OFD Sender: No OFD packet to send [16:30:51]OFD Sender: No OFD packet to send [16:30:56]OFD Sender: No OFD packet to send [16:31:01]OFD Sender: No OFD packet to send [16:31:06]OFD Sender: No OFD packet to send [16:31:11]OFD Sender: No OFD packet to send [16:31:16]OFD Sender: No OFD packet to send [16:31:21]OFD Sender: No OFD packet to send [16:31:26]OFD Sender: No OFD packet to send [16:31:31]OFD Sender: No OFD packet to send [16:31:36]OFD Sender: No OFD packet to send [16:31:41]OFD Sender: No OFD packet to send [16:31:46]OFD Sender: No OFD packet to send [16:31:51]OFD Sender: No OFD packet to send [16:31:56]OFD Sender: No OFD packet to send [16:32:01]OFD Sender: No OFD packet to send [16:32:06]OFD Sender: No OFD packet to send [16:32:11]OFD Sender: No OFD packet to send [16:32:16]OFD Sender: No OFD packet to send [16:32:21]OFD Sender: No OFD packet to send [16:32:26]OFD Sender: No OFD packet to send [16:32:31]OFD Sender: No OFD packet to send [16:32:36]OFD Sender: No OFD packet to send [16:32:41]OFD Sender: No OFD packet to send [16:32:46]OFD Sender: No OFD packet to send [16:32:51]OFD Sender: No OFD packet to send [16:32:56]OFD Sender: No OFD packet to send [16:33:01]OFD Sender: No OFD packet to send [16:33:06]OFD Sender: No OFD packet to send [16:33:11]OFD Sender: No OFD packet to send [16:33:16]OFD Sender: No OFD packet to send [16:33:21]OFD Sender: No OFD packet to send [16:33:26]OFD Sender: No OFD packet to send [16:33:31]OFD Sender: No OFD packet to send [16:33:36]OFD Sender: No OFD packet to send [16:33:41]OFD Sender: No OFD packet to send [16:33:46]OFD Sender: No OFD packet to send [16:33:48]accept exits with 9 [16:33:48]New connection [16:33:48]New thread 3066711396 created [16:33:48]Thread 3066854756 joined [16:33:48]Waiting for new connection... [16:33:48] Sock 9.Parse request [16:33:48]Sock 9.Check first char [16:33:48]Sock 9.First char is OK [16:33:48]request: POST /json_proto HTTP/1.0 [16:33:48]Method: POST [16:33:48]URL: /json_proto [16:33:48]Method is POST - this is cgi request [16:33:48]url: /json_proto [16:33:48]query_string will be loaded in cgi processing [16:33:48]execute_cgi json_proto POST (null) [16:33:48]execute_cgi path=json_proto method=POST [16:33:48]POST find Content-Length [16:33:48]Host: 172.17.56.4:8080 [16:33:48]Content-Length: 677 [16:33:48]Content-Type: application/json [16:33:48] [16:33:48]POST finish read [16:33:48]Found Content-Length = 677 [16:33:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459473", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:33:48]execute_script... [16:33:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459473", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:33:48]POST & json_proto [16:33:48]process_json_proto [16:33:48]json parsed OK: [16:33:48]protocol is kg_v1.0 [16:33:48]action value=close_receipt [16:33:48]process_action close_receipt [16:33:48]cmd_close_receipt [16:33:48]MH_GetDate [16:33:48]Write to MH i2c: F0 00 00 BB 27 D1 [16:33:48]Write i2c OK [16:33:48]MH_I2C_Read... [16:33:48]Read from MH i2c: F0 [16:33:48]MH_I2C_Read... [16:33:48]Read from MH i2c: F0 09 00 [16:33:48]MH_I2C_Read... [16:33:48]Read from MH i2c: F0 09 00 BB 27 00 6E 4F 95 66 C9 DC B2 64 4D [16:33:48]GetLastDocTimeStamp 1721060679 [16:33:48]current date 1721061230 [16:33:48]FM_GetShiftState [16:33:48]SAM_PROTO_GetShiftState [16:33:48]wFMCommunicate request_size=4 [16:33:48]MH_SAM_APDU [16:33:48]CAPDU: 80 13 01 00 [16:33:48]Write to MH i2c: E2 08 00 BC 27 80 13 01 00 00 00 00 00 60 [16:33:48]Write i2c OK [16:33:48]MH_I2C_Read... [16:33:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:48]Read from MH i2c: E2 [16:33:48]MH_I2C_Read... [16:33:48]Read from MH i2c: E2 0E 00 [16:33:48]MH_I2C_Read... [16:33:48]Read from MH i2c: E2 0E 00 BC 27 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 39 [16:33:48]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [16:33:48]wFMCommunicate OK [16:33:48]SAM_PROTO_GetShiftState done [16:33:48]FM_GetShiftState done [16:33:48]opened in 1721003876 [16:33:48]opened+sec_in_day 1721090276 [16:33:48]quantity*price = 40006 [16:33:48]sum+1 = 40007 [16:33:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 234 15.07.2024 16:33 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165361 ФПД: 235699697611568 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T163350&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165361&fm=235699697611568&tin=02508201610067®Number=0000000000090829&sum=40000 [16:33:49]StoreToDocumentArchive [16:33:49]shift 448 fd 165361 [16:33:49]save to /storage/0448/doc_00165361 [16:33:49]save last doc name /storage/0448/doc_00165361 to /storage/kkm_last_doc_name [16:33:49]save OK [16:33:49]Clear old archive folders... [16:33:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:33:49]tlvbuf is 0185D210 [16:33:49]SAM_PROTO_ClearQueue [16:33:49]wFMCommunicate request_size=4 [16:33:49]MH_SAM_APDU [16:33:49]CAPDU: 80 09 00 00 [16:33:49]Write to MH i2c: E2 08 00 C9 27 80 09 00 00 00 00 00 00 62 [16:33:49]Write i2c OK [16:33:49]MH_I2C_Read... [16:33:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:33:49]Read from MH i2c: E2 [16:33:49]MH_I2C_Read... [16:33:49]Read from MH i2c: E2 03 00 [16:33:49]MH_I2C_Read... [16:33:49]Read from MH i2c: E2 03 00 C9 27 00 90 00 64 [16:33:49]RAPDU: 90 00 [16:33:49]wFMCommunicate OK [16:33:49]SAM_PROTO_ClearQueue done [16:33:49]KKMCreateOFDPacket [16:33:49]OFDProtocolAddRootSTLVToBuf [16:33:49]FM_MakeSignedData [16:33:49]FM_MakeSignedData [16:33:49]SAM_PROTO_SignData [16:33:49]wFMCommunicate request_size=4 [16:33:49]MH_SAM_APDU [16:33:49]CAPDU: 80 0D 01 02 [16:33:49]Write to MH i2c: E2 08 00 CA 27 80 0D 01 02 00 00 00 00 6A [16:33:49]Write i2c OK [16:33:49]MH_I2C_Read... [16:33:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:33:50]Read from MH i2c: E2 [16:33:50]MH_I2C_Read... [16:33:50]Read from MH i2c: E2 03 00 [16:33:50]MH_I2C_Read... [16:33:50]Read from MH i2c: E2 03 00 CA 27 00 90 00 65 [16:33:50]RAPDU: 90 00 [16:33:50]wFMCommunicate OK [16:33:50]wFMCommunicate request_size=255 [16:33:50]MH_SAM_APDU [16:33:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 6E 4F 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F1 85 02 00 35 04 06 00 D6 [16:33:50]Write to MH i2c: E2 02 01 CB 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 6E 4F 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F1 85 02 00 35 04 06 00 D6 00 00 74 [16:33:50]Write i2c OK [16:33:50]MH_I2C_Read... [16:33:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:50]Read from MH i2c: E2 [16:33:50]MH_I2C_Read... [16:33:50]Read from MH i2c: E2 03 00 [16:33:50]MH_I2C_Read... [16:33:50]Read from MH i2c: E2 03 00 CB 27 00 90 00 66 [16:33:50]RAPDU: 90 00 [16:33:50]wFMCommunicate OK [16:33:50]wFMCommunicate request_size=10 [16:33:50]MH_SAM_APDU [16:33:50]CAPDU: 80 0D 02 02 05 5E 1C BF F3 30 [16:33:50]Write to MH i2c: E2 0D 00 CC 27 80 0D 02 02 05 00 5E 1C BF F3 30 00 00 D3 [16:33:50]Write i2c OK [16:33:50]MH_I2C_Read... [16:33:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:50]Read from MH i2c: E2 [16:33:50]MH_I2C_Read... [16:33:50]Read from MH i2c: E2 03 00 [16:33:50]MH_I2C_Read... [16:33:50]Read from MH i2c: E2 03 00 CC 27 00 90 00 67 [16:33:50]RAPDU: 90 00 [16:33:50]wFMCommunicate OK [16:33:50]wFMCommunicate request_size=4 [16:33:50]MH_SAM_APDU [16:33:50]CAPDU: 80 0D 03 02 [16:33:50]Write to MH i2c: E2 08 00 CD 27 80 0D 03 02 00 00 00 00 6F [16:33:50]Write i2c OK [16:33:50]MH_I2C_Read... [16:33:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:33:50]Read from MH i2c: E2 [16:33:50]MH_I2C_Read... [16:33:50]Read from MH i2c: E2 0B 00 [16:33:50]MH_I2C_Read... [16:33:50]Read from MH i2c: E2 0B 00 CD 27 00 EC D1 9D 87 F7 39 17 37 90 00 CF [16:33:50]RAPDU: EC D1 9D 87 F7 39 17 37 90 00 [16:33:50]wFMCommunicate OK [16:33:50]SAM_PROTO_SignData done [16:33:50]FM_MakeSignedData done [16:33:50]CreateOFDProtocolMessage [16:33:50]wFMCommunicate request_size=4 [16:33:50]MH_SAM_APDU [16:33:50]CAPDU: 80 11 00 00 [16:33:50]Write to MH i2c: E2 08 00 CE 27 80 11 00 00 00 00 00 00 6F [16:33:50]Write i2c OK [16:33:50]MH_I2C_Read... [16:33:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:50]Read from MH i2c: E2 [16:33:50]MH_I2C_Read... [16:33:50]Read from MH i2c: E2 17 00 [16:33:50]MH_I2C_Read... [16:33:50]Read from MH i2c: E2 17 00 CE 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C5 [16:33:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:33:50]wFMCommunicate OK [16:33:50]CreateOFDProtocolMessage done [16:33:50]OFDSenderStorePacket 165361 [16:33:50]StoreOFDPacket docnum=165361 [16:33:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D9 73 07 01 A5 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 6E 4F 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F1 85 02 00 35 04 06 00 D6 5E 1C BF F3 30 EC D1 9D 87 F7 39 17 37 [16:33:50]CheckFolder [16:33:50]dirname=/storage/ofd_packets [16:33:50]CheckFolder done [16:33:50]ProducePacketName [16:33:50]name=ofd_packets/00165361 [16:33:50]NVStorageSaveData ofd_packets/00165361 [16:33:50]File name is /storage/ofd_packets/00165361 [16:33:50]Write 301 bytes [16:33:50]NVStorageSaveData done [16:33:50]OFDSenderStorePacket done [16:33:50]KKMCreateOFDPacket done [16:33:50]NVStorageSaveData kkm_last_timestamp [16:33:50]File name is /storage/kkm_last_timestamp [16:33:50]Write 4 bytes [16:33:50]NVStorageSaveData done [16:33:50]ExternCall_PrintAddStr [16:33:50]wPrintStart [16:33:50]Write to MH i2c: 01 00 00 CF 27 F6 [16:33:50]Write i2c OK [16:33:50]MH_I2C_Read... [16:33:50]Read from MH i2c: 01 [16:33:50]MH_I2C_Read... [16:33:50]Read from MH i2c: 01 07 00 [16:33:50]MH_I2C_Read... [16:33:50]Read from MH i2c: 01 07 00 CF 27 00 00 00 00 00 FF 0F 0B [16:33:50]RasterBufferAndPrint [16:33:50]line Счет N : (1)459473 [16:33:50]line ИНН: 02508201610067 [16:33:50]line Контрольно-Кассовый Чек [16:33:50]line ПРОДАЖА [16:33:50]line ТРК (МРК, ГНК) : 12 [16:33:50]line Товар: 2710124130 [16:33:50]line Аи-92-К-5 [16:33:50]line 6.080 * 65.80 [16:33:50]line = 400.06 [16:33:50]line НДС 12% НСП 1% [16:33:50]line > о реализуемом товаре [16:33:50]line ОКРУГЛЕНИЕ: -0.06 [16:33:50]line ИТОГО: 400.00 [16:33:50]line Внесено: 400.00 [16:33:50]line СДАЧА: 0.00 [16:33:50]line НСП 1% : 3.54 [16:33:50]line НДС 12% : 42.48 [16:33:50]line Наличными: 400.00 [16:33:50]line Безнал.: 0.00 [16:33:50]line Место: АЗС № 72 "Партнер Нефть" [16:33:50]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:33:50]line СНО: Общий режим [16:33:50]line Чек 234 15.07.2024 16:33 [16:33:50]line Смена: 448 ФФД: 1.0 [16:33:50]line ЗНМ: 0300000160 [16:33:50]line РНМ: 0000000000090829 [16:33:50]line Версия ККМ: 001 [16:33:50]line ФМ: 0000000000874718 [16:33:50]line ФД: 165361 [16:33:50]line ФПД: 235699697611568 [16:33:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T163350&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165361&fm=235699697611568&tin=02508201610067®Number=0000000000090829&sum=40000 [16:33:50]OFD Sender: Processing packet 165361 [packets to send 106, broken 105] [16:33:50]ProducePacketName [16:33:50]name=ofd_packets/00165361 [16:33:50]OFD Sender: To server: pG, [16:33:50]CommunicateWithHost lk.salyk.kg:30040 [16:33:50]ConnectInit lk.salyk.kg [16:33:50]written 0, free lines is 4095 [16:33:50]Connected sock=10 [16:33:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D9 73 07 01 A5 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 6E 4F 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F1 85 02 00 35 04 06 00 D6 5E 1C BF F3 30 EC D1 9D 87 F7 39 17 37 [16:33:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 C8 19 47 00 25 C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F1 85 02 00 F4 03 04 00 F8 F5 94 66 B6 04 01 00 00 83 2B BE 88 ED 08 BB 2B [16:33:51]CommunicateWithHost err = 0 [16:33:51]CheckOFDResponse [16:33:51]1017 (14) - 77093643461234 [16:33:51]1041 (16) - 0000000000874718 [16:33:51]1040 (4) - 165361 [16:33:51]1012 (4) - 15.07.2024 10:12 [16:33:51]1206 (1) - 0 [16:33:51]OFD Sender: Remove packet 165361 [16:33:51]ProducePacketName [16:33:51]name=ofd_packets/00165361 [16:33:51]NVStorageDeleteData [16:33:51]Write to MH i2c: 01 00 00 F9 27 20 [16:33:51]Write i2c OK [16:33:51]MH_I2C_Read... [16:33:51]Read from MH i2c: 01 [16:33:51]MH_I2C_Read... [16:33:51]Read from MH i2c: 01 07 00 [16:33:51]MH_I2C_Read... [16:33:51]Read from MH i2c: 01 07 00 F9 27 00 00 00 00 00 27 0D 5B [16:33:51]RasterBufferAndPrint [16:33:51]line [16:33:51]line [16:33:51]line [16:33:51]line [16:33:51]line [16:33:51]written 0, free lines is 3373 [16:33:51]MH_Cut [16:33:51]Write to MH i2c: D1 01 00 00 28 01 FA [16:33:51]Write i2c OK [16:33:51]MH_I2C_Read... [16:33:51]Read from MH i2c: D1 [16:33:51]MH_I2C_Read... [16:33:51]Read from MH i2c: D1 01 00 [16:33:51]MH_I2C_Read... [16:33:51]Read from MH i2c: D1 01 00 00 28 00 F9 [16:33:51]Write to MH i2c: 01 00 00 01 28 29 [16:33:51]Write i2c OK [16:33:51]MH_I2C_Read... [16:33:51]OFD Sender: No OFD packet to send [16:33:51]*** Cut start [16:33:51]*** Partial cut [16:33:51]*** CUTSNS_PIN = 1 [16:33:51]*** CUTSNS_PIN = 0 [16:33:52]*** Brake cut motor [16:33:52]Read from MH i2c: 01 [16:33:52]MH_I2C_Read... [16:33:52]*** Stop cut motor [16:33:52]*** Cut end [16:33:52]Read from MH i2c: 01 07 00 [16:33:52]MH_I2C_Read... [16:33:52]Read from MH i2c: 01 07 00 01 28 00 00 00 00 00 FF 0F 3E [16:33:52]process_action close_receipt done [16:33:52]requested_data is exist [16:33:52]produce_requested_data [16:33:52]requested_item fm.sn is exist - process it [16:33:52]wFMCommunicate request_size=4 [16:33:52]MH_SAM_APDU [16:33:52]CAPDU: 80 11 00 00 [16:33:52]Write to MH i2c: E2 08 00 02 28 80 11 00 00 00 00 00 00 A4 [16:33:52]Write i2c OK [16:33:52]MH_I2C_Read... [16:33:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:52]Read from MH i2c: E2 [16:33:52]MH_I2C_Read... [16:33:52]Read from MH i2c: E2 17 00 [16:33:52]MH_I2C_Read... [16:33:52]Read from MH i2c: E2 17 00 02 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FA [16:33:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:33:52]wFMCommunicate OK [16:33:52]requested_item fd.num is exist - process it [16:33:52]SAM_PROTO_GetFieldsCounters [16:33:52]wFMCommunicate request_size=4 [16:33:52]MH_SAM_APDU [16:33:52]CAPDU: 80 13 00 00 [16:33:52]Write to MH i2c: E2 08 00 03 28 80 13 00 00 00 00 00 00 A7 [16:33:52]Write i2c OK [16:33:52]MH_I2C_Read... [16:33:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:33:52]Read from MH i2c: E2 [16:33:52]MH_I2C_Read... [16:33:52]Read from MH i2c: E2 62 00 [16:33:52]MH_I2C_Read... [16:33:52]Read from MH i2c: E2 62 00 03 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F1 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [16:33:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F1 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:33:52]wFMCommunicate OK [16:33:52]SAM_PROTO_GetFieldsCounters done [16:33:52]requested_item shift.num is exist - process it [16:33:52]requested_item shift.opened is exist - process it [16:33:52]req_shift_opened [16:33:52]FM_GetShiftState [16:33:52]SAM_PROTO_GetShiftState [16:33:52]wFMCommunicate request_size=4 [16:33:52]MH_SAM_APDU [16:33:52]CAPDU: 80 13 01 00 [16:33:52]Write to MH i2c: E2 08 00 04 28 80 13 01 00 00 00 00 00 A9 [16:33:52]Write i2c OK [16:33:52]MH_I2C_Read... [16:33:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:52]Read from MH i2c: E2 [16:33:52]MH_I2C_Read... [16:33:52]Read from MH i2c: E2 0E 00 [16:33:52]MH_I2C_Read... [16:33:52]Read from MH i2c: E2 0E 00 04 28 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 82 [16:33:52]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [16:33:52]wFMCommunicate OK [16:33:52]SAM_PROTO_GetShiftState done [16:33:52]FM_GetShiftState done [16:33:52]req_shift_opened done [16:33:52]requested_item shift.open_date is exist - process it [16:33:52]req_shift_open_date [16:33:52]req_shift_open_date done [16:33:52]produce_requested_data done [16:33:52]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165361,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [16:33:52]process_action_free close_receipt [16:33:52]json_value_free [16:33:52]json_value_free done [16:33:52]process_json_proto returns [16:33:52]Send response to host [16:33:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165361,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [16:33:52]free response buf [16:33:52]execute_script done [16:33:52]execute_script returns [16:33:52]free content buf [16:33:52]Sock 9.Close socket [16:33:52]Sock 9.Thread stoped [16:33:56]OFD Sender: No OFD packet to send [16:34:01]OFD Sender: No OFD packet to send [16:34:06]OFD Sender: No OFD packet to send [16:34:11]OFD Sender: No OFD packet to send [16:34:12]accept exits with 8 [16:34:12]New connection [16:34:12]New thread 3066854756 created [16:34:12]Thread 3066711396 joined [16:34:12]Waiting for new connection... [16:34:12] Sock 8.Parse request [16:34:12]Sock 8.Check first char [16:34:12]Sock 8.First char is OK [16:34:12]request: POST /json_proto HTTP/1.0 [16:34:12]Method: POST [16:34:12]URL: /json_proto [16:34:12]Method is POST - this is cgi request [16:34:12]url: /json_proto [16:34:12]query_string will be loaded in cgi processing [16:34:12]execute_cgi json_proto POST (null) [16:34:12]execute_cgi path=json_proto method=POST [16:34:12]POST find Content-Length [16:34:12]Host: 172.17.56.4:8080 [16:34:12]Content-Length: 677 [16:34:12]Content-Type: application/json [16:34:12] [16:34:12]POST finish read [16:34:12]Found Content-Length = 677 [16:34:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459474", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:34:12]execute_script... [16:34:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459474", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:34:12]POST & json_proto [16:34:12]process_json_proto [16:34:12]json parsed OK: [16:34:12]protocol is kg_v1.0 [16:34:12]action value=close_receipt [16:34:12]process_action close_receipt [16:34:12]cmd_close_receipt [16:34:12]MH_GetDate [16:34:12]Write to MH i2c: F0 00 00 05 28 1C [16:34:12]Write i2c OK [16:34:12]MH_I2C_Read... [16:34:12]Read from MH i2c: F0 [16:34:12]MH_I2C_Read... [16:34:12]Read from MH i2c: F0 09 00 [16:34:12]MH_I2C_Read... [16:34:12]Read from MH i2c: F0 09 00 05 28 00 86 4F 95 66 C9 DC B2 64 B0 [16:34:12]GetLastDocTimeStamp 1721061230 [16:34:12]current date 1721061254 [16:34:12]FM_GetShiftState [16:34:12]SAM_PROTO_GetShiftState [16:34:12]wFMCommunicate request_size=4 [16:34:12]MH_SAM_APDU [16:34:12]CAPDU: 80 13 01 00 [16:34:12]Write to MH i2c: E2 08 00 06 28 80 13 01 00 00 00 00 00 AB [16:34:12]Write i2c OK [16:34:12]MH_I2C_Read... [16:34:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:12]Read from MH i2c: E2 [16:34:12]MH_I2C_Read... [16:34:12]Read from MH i2c: E2 0E 00 [16:34:12]MH_I2C_Read... [16:34:12]Read from MH i2c: E2 0E 00 06 28 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 84 [16:34:12]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [16:34:12]wFMCommunicate OK [16:34:12]SAM_PROTO_GetShiftState done [16:34:12]FM_GetShiftState done [16:34:12]opened in 1721003876 [16:34:12]opened+sec_in_day 1721090276 [16:34:12]quantity*price = 50008 [16:34:12]sum+1 = 50009 [16:34:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 235 15.07.2024 16:34 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165362 ФПД: 183327823841697 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T163414&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165362&fm=183327823841697&tin=02508201610067®Number=0000000000090829&sum=50000 [16:34:13]StoreToDocumentArchive [16:34:13]shift 448 fd 165362 [16:34:13]save to /storage/0448/doc_00165362 [16:34:13]save last doc name /storage/0448/doc_00165362 to /storage/kkm_last_doc_name [16:34:13]save OK [16:34:13]Clear old archive folders... [16:34:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:34:13]tlvbuf is 0184D870 [16:34:13]SAM_PROTO_ClearQueue [16:34:13]wFMCommunicate request_size=4 [16:34:13]MH_SAM_APDU [16:34:13]CAPDU: 80 09 00 00 [16:34:13]Write to MH i2c: E2 08 00 13 28 80 09 00 00 00 00 00 00 AD [16:34:13]Write i2c OK [16:34:13]MH_I2C_Read... [16:34:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:34:13]Read from MH i2c: E2 [16:34:13]MH_I2C_Read... [16:34:13]Read from MH i2c: E2 03 00 [16:34:13]MH_I2C_Read... [16:34:13]Read from MH i2c: E2 03 00 13 28 00 90 00 AF [16:34:13]RAPDU: 90 00 [16:34:13]wFMCommunicate OK [16:34:13]SAM_PROTO_ClearQueue done [16:34:13]KKMCreateOFDPacket [16:34:13]OFDProtocolAddRootSTLVToBuf [16:34:13]FM_MakeSignedData [16:34:13]FM_MakeSignedData [16:34:13]SAM_PROTO_SignData [16:34:13]wFMCommunicate request_size=4 [16:34:13]MH_SAM_APDU [16:34:13]CAPDU: 80 0D 01 02 [16:34:13]Write to MH i2c: E2 08 00 14 28 80 0D 01 02 00 00 00 00 B5 [16:34:13]Write i2c OK [16:34:13]MH_I2C_Read... [16:34:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:34:13]Read from MH i2c: E2 [16:34:13]MH_I2C_Read... [16:34:13]Read from MH i2c: E2 03 00 [16:34:13]MH_I2C_Read... [16:34:13]Read from MH i2c: E2 03 00 14 28 00 90 00 B0 [16:34:13]RAPDU: 90 00 [16:34:13]wFMCommunicate OK [16:34:13]wFMCommunicate request_size=255 [16:34:13]MH_SAM_APDU [16:34:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 86 4F 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F2 85 02 00 35 04 06 00 A6 [16:34:13]Write to MH i2c: E2 02 01 15 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 86 4F 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F2 85 02 00 35 04 06 00 A6 00 00 C9 [16:34:13]Write i2c OK [16:34:13]MH_I2C_Read... [16:34:13]Read from MH i2c: E2 [16:34:13]MH_I2C_Read... [16:34:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:13]Read from MH i2c: E2 03 00 [16:34:13]MH_I2C_Read... [16:34:13]Read from MH i2c: E2 03 00 15 28 00 90 00 B1 [16:34:13]RAPDU: 90 00 [16:34:13]wFMCommunicate OK [16:34:13]wFMCommunicate request_size=10 [16:34:13]MH_SAM_APDU [16:34:13]CAPDU: 80 0D 02 02 05 BC 55 D1 49 A1 [16:34:13]Write to MH i2c: E2 0D 00 16 28 80 0D 02 02 05 00 BC 55 D1 49 A1 00 00 8E [16:34:13]Write i2c OK [16:34:13]MH_I2C_Read... [16:34:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:34:14]Read from MH i2c: E2 [16:34:14]MH_I2C_Read... [16:34:14]Read from MH i2c: E2 03 00 [16:34:14]MH_I2C_Read... [16:34:14]Read from MH i2c: E2 03 00 16 28 00 90 00 B2 [16:34:14]RAPDU: 90 00 [16:34:14]wFMCommunicate OK [16:34:14]wFMCommunicate request_size=4 [16:34:14]MH_SAM_APDU [16:34:14]CAPDU: 80 0D 03 02 [16:34:14]Write to MH i2c: E2 08 00 17 28 80 0D 03 02 00 00 00 00 BA [16:34:14]Write i2c OK [16:34:14]MH_I2C_Read... [16:34:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:34:14]Read from MH i2c: E2 [16:34:14]MH_I2C_Read... [16:34:14]Read from MH i2c: E2 0B 00 [16:34:14]MH_I2C_Read... [16:34:14]Read from MH i2c: E2 0B 00 17 28 00 AD CC 52 0C B5 9C D7 08 90 00 C2 [16:34:14]RAPDU: AD CC 52 0C B5 9C D7 08 90 00 [16:34:14]wFMCommunicate OK [16:34:14]SAM_PROTO_SignData done [16:34:14]FM_MakeSignedData done [16:34:14]CreateOFDProtocolMessage [16:34:14]wFMCommunicate request_size=4 [16:34:14]MH_SAM_APDU [16:34:14]CAPDU: 80 11 00 00 [16:34:14]Write to MH i2c: E2 08 00 18 28 80 11 00 00 00 00 00 00 BA [16:34:14]Write i2c OK [16:34:14]MH_I2C_Read... [16:34:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:14]Read from MH i2c: E2 [16:34:14]MH_I2C_Read... [16:34:14]Read from MH i2c: E2 17 00 [16:34:14]MH_I2C_Read... [16:34:14]Read from MH i2c: E2 17 00 18 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 10 [16:34:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:34:14]wFMCommunicate OK [16:34:14]CreateOFDProtocolMessage done [16:34:14]OFDSenderStorePacket 165362 [16:34:14]StoreOFDPacket docnum=165362 [16:34:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 82 17 07 01 1B 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 86 4F 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F2 85 02 00 35 04 06 00 A6 BC 55 D1 49 A1 AD CC 52 0C B5 9C D7 08 [16:34:14]CheckFolder [16:34:14]dirname=/storage/ofd_packets [16:34:14]CheckFolder done [16:34:14]ProducePacketName [16:34:14]name=ofd_packets/00165362 [16:34:14]NVStorageSaveData ofd_packets/00165362 [16:34:14]File name is /storage/ofd_packets/00165362 [16:34:14]Write 301 bytes [16:34:14]NVStorageSaveData done [16:34:14]OFDSenderStorePacket done [16:34:14]KKMCreateOFDPacket done [16:34:14]NVStorageSaveData kkm_last_timestamp [16:34:14]File name is /storage/kkm_last_timestamp [16:34:14]Write 4 bytes [16:34:14]NVStorageSaveData done [16:34:14]ExternCall_PrintAddStr [16:34:14]wPrintStart [16:34:14]Write to MH i2c: 01 00 00 19 28 41 [16:34:14]Write i2c OK [16:34:14]MH_I2C_Read... [16:34:14]Read from MH i2c: 01 [16:34:14]MH_I2C_Read... [16:34:14]Read from MH i2c: 01 07 00 [16:34:14]MH_I2C_Read... [16:34:14]Read from MH i2c: 01 07 00 19 28 00 00 00 00 00 FF 0F 56 [16:34:14]RasterBufferAndPrint [16:34:14]line Счет N : (1)459474 [16:34:14]line ИНН: 02508201610067 [16:34:14]line Контрольно-Кассовый Чек [16:34:14]line ПРОДАЖА [16:34:14]line ТРК (МРК, ГНК) : 22 [16:34:14]line Товар: 2710124130 [16:34:14]line Аи-92-К-5 [16:34:14]line 7.600 * 65.80 [16:34:14]line = 500.08 [16:34:14]line НДС 12% НСП 1% [16:34:14]line > о реализуемом товаре [16:34:14]line ОКРУГЛЕНИЕ: -0.08 [16:34:14]line ИТОГО: 500.00 [16:34:14]line Внесено: 500.00 [16:34:14]line СДАЧА: 0.00 [16:34:14]line НСП 1% : 4.42 [16:34:14]line НДС 12% : 53.11 [16:34:14]line Наличными: 500.00 [16:34:14]line Безнал.: 0.00 [16:34:14]line Место: АЗС № 72 "Партнер Нефть" [16:34:14]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:34:14]line СНО: Общий режим [16:34:14]line Чек 235 15.07.2024 16:34 [16:34:14]line Смена: 448 ФФД: 1.0 [16:34:14]line ЗНМ: 0300000160 [16:34:14]line РНМ: 0000000000090829 [16:34:14]line Версия ККМ: 001 [16:34:14]line ФМ: 0000000000874718 [16:34:14]line ФД: 165362 [16:34:14]line ФПД: 183327823841697 [16:34:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T163414&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165362&fm=183327823841697&tin=02508201610067®Number=0000000000090829&sum=50000 [16:34:14]OFD Sender: Processing packet 165362 [packets to send 106, broken 105] [16:34:14]ProducePacketName [16:34:14]name=ofd_packets/00165362 [16:34:14]OFD Sender: To server: pG, [16:34:14]CommunicateWithHost lk.salyk.kg:30040 [16:34:14]ConnectInit lk.salyk.kg [16:34:14]written 0, free lines is 4095 [16:34:14]Connected sock=10 [16:34:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 82 17 07 01 1B 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 86 4F 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F2 85 02 00 35 04 06 00 A6 BC 55 D1 49 A1 AD CC 52 0C B5 9C D7 08 [16:34:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 4C 20 47 00 AE 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F2 85 02 00 F4 03 04 00 10 F6 94 66 B6 04 01 00 00 D7 D9 94 4E 0D 03 28 83 [16:34:14]CommunicateWithHost err = 0 [16:34:14]CheckOFDResponse [16:34:14]1017 (14) - 77093643461234 [16:34:14]1041 (16) - 0000000000874718 [16:34:14]1040 (4) - 165362 [16:34:14]1012 (4) - 15.07.2024 10:12 [16:34:14]1206 (1) - 0 [16:34:14]OFD Sender: Remove packet 165362 [16:34:14]ProducePacketName [16:34:14]name=ofd_packets/00165362 [16:34:14]NVStorageDeleteData [16:34:14]Write to MH i2c: 01 00 00 43 28 6B [16:34:14]Write i2c OK [16:34:14]MH_I2C_Read... [16:34:14]Read from MH i2c: 01 [16:34:14]MH_I2C_Read... [16:34:14]Read from MH i2c: 01 07 00 [16:34:14]MH_I2C_Read... [16:34:14]Read from MH i2c: 01 07 00 43 28 00 00 00 00 00 F6 0C 74 [16:34:14]RasterBufferAndPrint [16:34:14]line [16:34:14]line [16:34:14]line [16:34:14]line [16:34:14]line [16:34:14]written 0, free lines is 3324 [16:34:14]MH_Cut [16:34:14]Write to MH i2c: D1 01 00 4A 28 01 44 [16:34:14]Write i2c OK [16:34:14]MH_I2C_Read... [16:34:14]Read from MH i2c: D1 [16:34:14]MH_I2C_Read... [16:34:14]Read from MH i2c: D1 01 00 [16:34:14]MH_I2C_Read... [16:34:14]Read from MH i2c: D1 01 00 4A 28 00 43 [16:34:14]Write to MH i2c: 01 00 00 4B 28 73 [16:34:14]Write i2c OK [16:34:14]MH_I2C_Read... [16:34:15]OFD Sender: No OFD packet to send [16:34:15]*** Cut start [16:34:15]*** Partial cut [16:34:15]*** CUTSNS_PIN = 1 [16:34:15]*** CUTSNS_PIN = 0 [16:34:15]*** Brake cut motor [16:34:16]Read from MH i2c: 01 [16:34:16]MH_I2C_Read... [16:34:16]*** Stop cut motor [16:34:16]*** Cut end [16:34:16]Read from MH i2c: 01 07 00 [16:34:16]MH_I2C_Read... [16:34:16]Read from MH i2c: 01 07 00 4B 28 00 00 00 00 00 FF 0F 88 [16:34:16]process_action close_receipt done [16:34:16]requested_data is exist [16:34:16]produce_requested_data [16:34:16]requested_item fm.sn is exist - process it [16:34:16]wFMCommunicate request_size=4 [16:34:16]MH_SAM_APDU [16:34:16]CAPDU: 80 11 00 00 [16:34:16]Write to MH i2c: E2 08 00 4C 28 80 11 00 00 00 00 00 00 EE [16:34:16]Write i2c OK [16:34:16]MH_I2C_Read... [16:34:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:16]Read from MH i2c: E2 [16:34:16]MH_I2C_Read... [16:34:16]Read from MH i2c: E2 17 00 [16:34:16]MH_I2C_Read... [16:34:16]Read from MH i2c: E2 17 00 4C 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 44 [16:34:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:34:16]wFMCommunicate OK [16:34:16]requested_item fd.num is exist - process it [16:34:16]SAM_PROTO_GetFieldsCounters [16:34:16]wFMCommunicate request_size=4 [16:34:16]MH_SAM_APDU [16:34:16]CAPDU: 80 13 00 00 [16:34:16]Write to MH i2c: E2 08 00 4D 28 80 13 00 00 00 00 00 00 F1 [16:34:16]Write i2c OK [16:34:16]MH_I2C_Read... [16:34:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:34:16]Read from MH i2c: E2 [16:34:16]MH_I2C_Read... [16:34:16]Read from MH i2c: E2 62 00 [16:34:16]MH_I2C_Read... [16:34:16]Read from MH i2c: E2 62 00 4D 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F2 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [16:34:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F2 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:34:16]wFMCommunicate OK [16:34:16]SAM_PROTO_GetFieldsCounters done [16:34:16]requested_item shift.num is exist - process it [16:34:16]requested_item shift.opened is exist - process it [16:34:16]req_shift_opened [16:34:16]FM_GetShiftState [16:34:16]SAM_PROTO_GetShiftState [16:34:16]wFMCommunicate request_size=4 [16:34:16]MH_SAM_APDU [16:34:16]CAPDU: 80 13 01 00 [16:34:16]Write to MH i2c: E2 08 00 4E 28 80 13 01 00 00 00 00 00 F3 [16:34:16]Write i2c OK [16:34:16]MH_I2C_Read... [16:34:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:16]Read from MH i2c: E2 [16:34:16]MH_I2C_Read... [16:34:16]Read from MH i2c: E2 0E 00 [16:34:16]MH_I2C_Read... [16:34:16]Read from MH i2c: E2 0E 00 4E 28 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 CC [16:34:16]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [16:34:16]wFMCommunicate OK [16:34:16]SAM_PROTO_GetShiftState done [16:34:16]FM_GetShiftState done [16:34:16]req_shift_opened done [16:34:16]requested_item shift.open_date is exist - process it [16:34:16]req_shift_open_date [16:34:16]req_shift_open_date done [16:34:16]produce_requested_data done [16:34:16]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165362,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [16:34:16]process_action_free close_receipt [16:34:16]json_value_free [16:34:16]json_value_free done [16:34:16]process_json_proto returns [16:34:16]Send response to host [16:34:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165362,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [16:34:16]free response buf [16:34:16]execute_script done [16:34:16]execute_script returns [16:34:16]free content buf [16:34:16]Sock 8.Close socket [16:34:16]Sock 8.Thread stoped [16:34:20]OFD Sender: No OFD packet to send [16:34:25]OFD Sender: No OFD packet to send [16:34:30]OFD Sender: No OFD packet to send [16:34:35]OFD Sender: No OFD packet to send [16:34:40]OFD Sender: No OFD packet to send [16:34:45]OFD Sender: No OFD packet to send [16:34:50]OFD Sender: No OFD packet to send [16:34:55]OFD Sender: No OFD packet to send [16:35:00]OFD Sender: No OFD packet to send [16:35:05]OFD Sender: No OFD packet to send [16:35:10]OFD Sender: No OFD packet to send [16:35:15]OFD Sender: No OFD packet to send [16:35:20]OFD Sender: No OFD packet to send [16:35:25]OFD Sender: No OFD packet to send [16:35:30]OFD Sender: No OFD packet to send [16:35:35]OFD Sender: No OFD packet to send [16:35:40]OFD Sender: No OFD packet to send [16:35:45]OFD Sender: No OFD packet to send [16:35:50]OFD Sender: No OFD packet to send [16:35:55]OFD Sender: No OFD packet to send [16:36:00]OFD Sender: No OFD packet to send [16:36:05]OFD Sender: No OFD packet to send [16:36:10]OFD Sender: No OFD packet to send [16:36:15]OFD Sender: No OFD packet to send [16:36:20]OFD Sender: No OFD packet to send [16:36:25]OFD Sender: No OFD packet to send [16:36:30]OFD Sender: No OFD packet to send [16:36:35]OFD Sender: No OFD packet to send [16:36:40]OFD Sender: No OFD packet to send [16:36:45]OFD Sender: No OFD packet to send [16:36:48]accept exits with 9 [16:36:48]New connection [16:36:48]New thread 3066711396 created [16:36:48]Thread 3066854756 joined [16:36:48]Waiting for new connection... [16:36:48] Sock 9.Parse request [16:36:48]Sock 9.Check first char [16:36:48]Sock 9.First char is OK [16:36:48]request: POST /json_proto HTTP/1.0 [16:36:48]Method: POST [16:36:48]URL: /json_proto [16:36:48]Method is POST - this is cgi request [16:36:48]url: /json_proto [16:36:48]query_string will be loaded in cgi processing [16:36:48]execute_cgi json_proto POST (null) [16:36:48]execute_cgi path=json_proto method=POST [16:36:48]POST find Content-Length [16:36:48]Host: 172.17.56.4:8080 [16:36:48]Content-Length: 640 [16:36:48]Content-Type: application/json [16:36:48] [16:36:48]POST finish read [16:36:48]Found Content-Length = 640 [16:36:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459475", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.000, "sum" : 658.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 658.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:36:48]execute_script... [16:36:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459475", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.000, "sum" : 658.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 658.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:36:48]POST & json_proto [16:36:48]process_json_proto [16:36:48]json parsed OK: [16:36:48]protocol is kg_v1.0 [16:36:48]action value=close_receipt [16:36:48]process_action close_receipt [16:36:48]cmd_close_receipt [16:36:48]MH_GetDate [16:36:48]Write to MH i2c: F0 00 00 4F 28 66 [16:36:48]Write i2c OK [16:36:48]MH_I2C_Read... [16:36:48]Read from MH i2c: F0 [16:36:48]MH_I2C_Read... [16:36:48]Read from MH i2c: F0 09 00 [16:36:48]MH_I2C_Read... [16:36:48]Read from MH i2c: F0 09 00 4F 28 00 22 50 95 66 C9 DC B2 64 97 [16:36:48]GetLastDocTimeStamp 1721061254 [16:36:48]current date 1721061410 [16:36:48]FM_GetShiftState [16:36:48]SAM_PROTO_GetShiftState [16:36:48]wFMCommunicate request_size=4 [16:36:48]MH_SAM_APDU [16:36:48]CAPDU: 80 13 01 00 [16:36:48]Write to MH i2c: E2 08 00 50 28 80 13 01 00 00 00 00 00 F5 [16:36:48]Write i2c OK [16:36:48]MH_I2C_Read... [16:36:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:48]Read from MH i2c: E2 [16:36:48]MH_I2C_Read... [16:36:48]Read from MH i2c: E2 0E 00 [16:36:48]MH_I2C_Read... [16:36:48]Read from MH i2c: E2 0E 00 50 28 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 CE [16:36:48]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [16:36:48]wFMCommunicate OK [16:36:48]SAM_PROTO_GetShiftState done [16:36:48]FM_GetShiftState done [16:36:48]opened in 1721003876 [16:36:48]opened+sec_in_day 1721090276 [16:36:48]quantity*price = 65800 [16:36:48]sum+1 = 65801 [16:36:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 658.00 НСП 1% : 5.82 НДС 12% : 69.88 Наличными: 658.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 236 15.07.2024 16:36 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165363 ФПД: 149591072743936 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T163650&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165363&fm=149591072743936&tin=02508201610067®Number=0000000000090829&sum=65800 [16:36:49]StoreToDocumentArchive [16:36:49]shift 448 fd 165363 [16:36:49]save to /storage/0448/doc_00165363 [16:36:49]save last doc name /storage/0448/doc_00165363 to /storage/kkm_last_doc_name [16:36:49]save OK [16:36:49]Clear old archive folders... [16:36:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:36:49]tlvbuf is B6EA9510 [16:36:49]SAM_PROTO_ClearQueue [16:36:49]wFMCommunicate request_size=4 [16:36:49]MH_SAM_APDU [16:36:49]CAPDU: 80 09 00 00 [16:36:49]Write to MH i2c: E2 08 00 5D 28 80 09 00 00 00 00 00 00 F7 [16:36:49]Write i2c OK [16:36:49]MH_I2C_Read... [16:36:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:36:49]Read from MH i2c: E2 [16:36:49]MH_I2C_Read... [16:36:49]Read from MH i2c: E2 03 00 [16:36:49]MH_I2C_Read... [16:36:49]Read from MH i2c: E2 03 00 5D 28 00 90 00 F9 [16:36:49]RAPDU: 90 00 [16:36:49]wFMCommunicate OK [16:36:49]SAM_PROTO_ClearQueue done [16:36:49]KKMCreateOFDPacket [16:36:49]OFDProtocolAddRootSTLVToBuf [16:36:49]FM_MakeSignedData [16:36:49]FM_MakeSignedData [16:36:49]SAM_PROTO_SignData [16:36:49]wFMCommunicate request_size=4 [16:36:49]MH_SAM_APDU [16:36:49]CAPDU: 80 0D 01 02 [16:36:49]Write to MH i2c: E2 08 00 5E 28 80 0D 01 02 00 00 00 00 FF [16:36:49]Write i2c OK [16:36:49]MH_I2C_Read... [16:36:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:36:49]Read from MH i2c: E2 [16:36:49]MH_I2C_Read... [16:36:49]Read from MH i2c: E2 03 00 [16:36:49]MH_I2C_Read... [16:36:49]Read from MH i2c: E2 03 00 5E 28 00 90 00 FA [16:36:49]RAPDU: 90 00 [16:36:49]wFMCommunicate OK [16:36:49]wFMCommunicate request_size=255 [16:36:49]MH_SAM_APDU [16:36: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 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 22 50 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F3 85 02 00 35 04 06 00 88 [16:36:49]Write to MH i2c: E2 02 01 5F 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 22 50 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F3 85 02 00 35 04 06 00 88 00 00 FC [16:36:49]Write i2c OK [16:36:49]MH_I2C_Read... [16:36:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:49]Read from MH i2c: E2 [16:36:49]MH_I2C_Read... [16:36:49]Read from MH i2c: E2 03 00 [16:36:49]MH_I2C_Read... [16:36:49]Read from MH i2c: E2 03 00 5F 28 00 90 00 FB [16:36:49]RAPDU: 90 00 [16:36:49]wFMCommunicate OK [16:36:49]wFMCommunicate request_size=10 [16:36:49]MH_SAM_APDU [16:36:49]CAPDU: 80 0D 02 02 05 0D 62 C0 A2 00 [16:36:49]Write to MH i2c: E2 0D 00 60 28 80 0D 02 02 05 00 0D 62 C0 A2 00 00 00 DD [16:36:49]Write i2c OK [16:36:49]MH_I2C_Read... [16:36:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:49]Read from MH i2c: E2 [16:36:49]MH_I2C_Read... [16:36:49]Read from MH i2c: E2 03 00 [16:36:49]MH_I2C_Read... [16:36:49]Read from MH i2c: E2 03 00 60 28 00 90 00 FC [16:36:49]RAPDU: 90 00 [16:36:49]wFMCommunicate OK [16:36:49]wFMCommunicate request_size=4 [16:36:49]MH_SAM_APDU [16:36:49]CAPDU: 80 0D 03 02 [16:36:49]Write to MH i2c: E2 08 00 61 28 80 0D 03 02 00 00 00 00 04 [16:36:49]Write i2c OK [16:36:49]MH_I2C_Read... [16:36:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:36:49]Read from MH i2c: E2 [16:36:49]MH_I2C_Read... [16:36:49]Read from MH i2c: E2 0B 00 [16:36:49]MH_I2C_Read... [16:36:49]Read from MH i2c: E2 0B 00 61 28 00 E9 DC 99 6E D3 54 42 65 90 00 9F [16:36:49]RAPDU: E9 DC 99 6E D3 54 42 65 90 00 [16:36:49]wFMCommunicate OK [16:36:49]SAM_PROTO_SignData done [16:36:49]FM_MakeSignedData done [16:36:49]CreateOFDProtocolMessage [16:36:49]wFMCommunicate request_size=4 [16:36:49]MH_SAM_APDU [16:36:49]CAPDU: 80 11 00 00 [16:36:49]Write to MH i2c: E2 08 00 62 28 80 11 00 00 00 00 00 00 04 [16:36:49]Write i2c OK [16:36:49]MH_I2C_Read... [16:36:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:49]Read from MH i2c: E2 [16:36:49]MH_I2C_Read... [16:36:49]Read from MH i2c: E2 17 00 [16:36:49]MH_I2C_Read... [16:36:49]Read from MH i2c: E2 17 00 62 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5A [16:36:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:36:49]wFMCommunicate OK [16:36:49]CreateOFDProtocolMessage done [16:36:49]OFDSenderStorePacket 165363 [16:36:49]StoreOFDPacket docnum=165363 [16:36:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 EF CE 07 01 6B 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 22 50 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F3 85 02 00 35 04 06 00 88 0D 62 C0 A2 00 E9 DC 99 6E D3 54 42 65 [16:36:49]CheckFolder [16:36:49]dirname=/storage/ofd_packets [16:36:49]CheckFolder done [16:36:49]ProducePacketName [16:36:49]name=ofd_packets/00165363 [16:36:49]NVStorageSaveData ofd_packets/00165363 [16:36:49]File name is /storage/ofd_packets/00165363 [16:36:49]Write 301 bytes [16:36:49]NVStorageSaveData done [16:36:49]OFDSenderStorePacket done [16:36:49]KKMCreateOFDPacket done [16:36:49]NVStorageSaveData kkm_last_timestamp [16:36:49]File name is /storage/kkm_last_timestamp [16:36:49]Write 4 bytes [16:36:49]NVStorageSaveData done [16:36:49]ExternCall_PrintAddStr [16:36:49]wPrintStart [16:36:49]Write to MH i2c: 01 00 00 63 28 8B [16:36:49]Write i2c OK [16:36:49]MH_I2C_Read... [16:36:49]Read from MH i2c: 01 [16:36:49]MH_I2C_Read... [16:36:49]Read from MH i2c: 01 07 00 [16:36:49]MH_I2C_Read... [16:36:49]Read from MH i2c: 01 07 00 63 28 00 00 00 00 00 FF 0F A0 [16:36:49]RasterBufferAndPrint [16:36:49]line Счет N : (1)459475 [16:36:49]line ИНН: 02508201610067 [16:36:49]line Контрольно-Кассовый Чек [16:36:49]line ПРОДАЖА [16:36:49]line ТРК (МРК, ГНК) : 12 [16:36:49]line Товар: 2710124130 [16:36:49]line Аи-92-К-5 [16:36:49]line 10.000 * 65.80 [16:36:49]line = 658.00 [16:36:49]line НДС 12% НСП 1% [16:36:49]line > о реализуемом товаре [16:36:49]line ИТОГО: 658.00 [16:36:49]line НСП 1% : 5.82 [16:36:49]line НДС 12% : 69.88 [16:36:49]line Наличными: 658.00 [16:36:49]line Безнал.: 0.00 [16:36:49]line Место: АЗС № 72 "Партнер Нефть" [16:36:49]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:36:49]line СНО: Общий режим [16:36:49]line Чек 236 15.07.2024 16:36 [16:36:49]line Смена: 448 ФФД: 1.0 [16:36:49]line ЗНМ: 0300000160 [16:36:49]line РНМ: 0000000000090829 [16:36:49]line Версия ККМ: 001 [16:36:49]line ФМ: 0000000000874718 [16:36:49]line ФД: 165363 [16:36:49]line ФПД: 149591072743936 [16:36:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T163650&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165363&fm=149591072743936&tin=02508201610067®Number=0000000000090829&sum=65800 [16:36:50]written 0, free lines is 4095 [16:36:50]OFD Sender: Processing packet 165363 [packets to send 106, broken 105] [16:36:50]ProducePacketName [16:36:50]name=ofd_packets/00165363 [16:36:50]OFD Sender: To server: pG, [16:36:50]CommunicateWithHost lk.salyk.kg:30040 [16:36:50]ConnectInit lk.salyk.kg [16:36:50]Connected sock=10 [16:36: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 37 31 38 0F 01 00 00 EF CE 07 01 6B 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 10 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1B 00 00 00 00 07 04 06 00 08 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 22 50 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F3 85 02 00 35 04 06 00 88 0D 62 C0 A2 00 E9 DC 99 6E D3 54 42 65 [16:36:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 31 13 47 00 8E 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 37 31 38 10 04 04 00 F3 85 02 00 F4 03 04 00 AB F6 94 66 B6 04 01 00 00 4A 9E 18 9C A7 4E 98 9C [16:36:50]CommunicateWithHost err = 0 [16:36:50]CheckOFDResponse [16:36:50]1017 (14) - 77093643461234 [16:36:50]1041 (16) - 0000000000874718 [16:36:50]1040 (4) - 165363 [16:36:50]1012 (4) - 15.07.2024 10:15 [16:36:50]1206 (1) - 0 [16:36:50]OFD Sender: Remove packet 165363 [16:36:50]ProducePacketName [16:36:50]name=ofd_packets/00165363 [16:36:50]NVStorageDeleteData [16:36:50]Write to MH i2c: 01 00 00 8A 28 B2 [16:36:50]Write i2c OK [16:36:50]MH_I2C_Read... [16:36:50]Read from MH i2c: 01 [16:36:50]MH_I2C_Read... [16:36:50]Read from MH i2c: 01 07 00 [16:36:50]MH_I2C_Read... [16:36:50]Read from MH i2c: 01 07 00 8A 28 00 00 00 00 00 23 0D E9 [16:36:50]RasterBufferAndPrint [16:36:50]line [16:36:50]line [16:36:50]line [16:36:50]line [16:36:50]line [16:36:50]written 0, free lines is 3369 [16:36:50]MH_Cut [16:36:50]Write to MH i2c: D1 01 00 91 28 01 8B [16:36:50]Write i2c OK [16:36:50]MH_I2C_Read... [16:36:50]Read from MH i2c: D1 [16:36:50]MH_I2C_Read... [16:36:50]Read from MH i2c: D1 01 00 [16:36:50]MH_I2C_Read... [16:36:50]Read from MH i2c: D1 01 00 91 28 00 8A [16:36:50]Write to MH i2c: 01 00 00 92 28 BA [16:36:50]Write i2c OK [16:36:50]MH_I2C_Read... [16:36:51]OFD Sender: No OFD packet to send [16:36:51]*** Cut start [16:36:51]*** Partial cut [16:36:51]*** CUTSNS_PIN = 1 [16:36:51]*** CUTSNS_PIN = 0 [16:36:51]*** Brake cut motor [16:36:51]Read from MH i2c: 01 [16:36:51]MH_I2C_Read... [16:36:51]*** Stop cut motor [16:36:51]*** Cut end [16:36:51]Read from MH i2c: 01 07 00 [16:36:51]MH_I2C_Read... [16:36:51]Read from MH i2c: 01 07 00 92 28 00 00 00 00 00 FF 0F CF [16:36:51]process_action close_receipt done [16:36:51]requested_data is exist [16:36:51]produce_requested_data [16:36:51]requested_item fm.sn is exist - process it [16:36:51]wFMCommunicate request_size=4 [16:36:51]MH_SAM_APDU [16:36:51]CAPDU: 80 11 00 00 [16:36:51]Write to MH i2c: E2 08 00 93 28 80 11 00 00 00 00 00 00 35 [16:36:51]Write i2c OK [16:36:51]MH_I2C_Read... [16:36:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:52]Read from MH i2c: E2 [16:36:52]MH_I2C_Read... [16:36:52]Read from MH i2c: E2 17 00 [16:36:52]MH_I2C_Read... [16:36:52]Read from MH i2c: E2 17 00 93 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8B [16:36:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:36:52]wFMCommunicate OK [16:36:52]requested_item fd.num is exist - process it [16:36:52]SAM_PROTO_GetFieldsCounters [16:36:52]wFMCommunicate request_size=4 [16:36:52]MH_SAM_APDU [16:36:52]CAPDU: 80 13 00 00 [16:36:52]Write to MH i2c: E2 08 00 94 28 80 13 00 00 00 00 00 00 38 [16:36:52]Write i2c OK [16:36:52]MH_I2C_Read... [16:36:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:36:52]Read from MH i2c: E2 [16:36:52]MH_I2C_Read... [16:36:52]Read from MH i2c: E2 62 00 [16:36:52]MH_I2C_Read... [16:36:52]Read from MH i2c: E2 62 00 94 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F3 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [16:36: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F3 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:36:52]wFMCommunicate OK [16:36:52]SAM_PROTO_GetFieldsCounters done [16:36:52]requested_item shift.num is exist - process it [16:36:52]requested_item shift.opened is exist - process it [16:36:52]req_shift_opened [16:36:52]FM_GetShiftState [16:36:52]SAM_PROTO_GetShiftState [16:36:52]wFMCommunicate request_size=4 [16:36:52]MH_SAM_APDU [16:36:52]CAPDU: 80 13 01 00 [16:36:52]Write to MH i2c: E2 08 00 95 28 80 13 01 00 00 00 00 00 3A [16:36:52]Write i2c OK [16:36:52]MH_I2C_Read... [16:36:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:52]Read from MH i2c: E2 [16:36:52]MH_I2C_Read... [16:36:52]Read from MH i2c: E2 0E 00 [16:36:52]MH_I2C_Read... [16:36:52]Read from MH i2c: E2 0E 00 95 28 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 13 [16:36:52]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [16:36:52]wFMCommunicate OK [16:36:52]SAM_PROTO_GetShiftState done [16:36:52]FM_GetShiftState done [16:36:52]req_shift_opened done [16:36:52]requested_item shift.open_date is exist - process it [16:36:52]req_shift_open_date [16:36:52]req_shift_open_date done [16:36:52]produce_requested_data done [16:36:52]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165363,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [16:36:52]process_action_free close_receipt [16:36:52]json_value_free [16:36:52]json_value_free done [16:36:52]process_json_proto returns [16:36:52]Send response to host [16:36:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165363,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [16:36:52]free response buf [16:36:52]execute_script done [16:36:52]execute_script returns [16:36:52]free content buf [16:36:52]Sock 9.Close socket [16:36:52]Sock 9.Thread stoped [16:36:56]OFD Sender: No OFD packet to send [16:37:01]OFD Sender: No OFD packet to send [16:37:06]OFD Sender: No OFD packet to send [16:37:11]OFD Sender: No OFD packet to send [16:37:16]OFD Sender: No OFD packet to send [16:37:21]OFD Sender: No OFD packet to send [16:37:26]OFD Sender: No OFD packet to send [16:37:31]OFD Sender: No OFD packet to send [16:37:36]OFD Sender: No OFD packet to send [16:37:41]OFD Sender: No OFD packet to send [16:37:46]OFD Sender: No OFD packet to send [16:37:51]OFD Sender: No OFD packet to send [16:37:56]OFD Sender: No OFD packet to send [16:38:01]OFD Sender: No OFD packet to send [16:38:06]OFD Sender: No OFD packet to send [16:38:11]OFD Sender: No OFD packet to send [16:38:16]OFD Sender: No OFD packet to send [16:38:21]OFD Sender: No OFD packet to send [16:38:26]OFD Sender: No OFD packet to send [16:38:31]OFD Sender: No OFD packet to send [16:38:36]OFD Sender: No OFD packet to send [16:38:41]OFD Sender: No OFD packet to send [16:38:46]OFD Sender: No OFD packet to send [16:38:51]OFD Sender: No OFD packet to send [16:38:56]OFD Sender: No OFD packet to send [16:39:01]OFD Sender: No OFD packet to send [16:39:06]OFD Sender: No OFD packet to send [16:39:11]OFD Sender: No OFD packet to send [16:39:16]OFD Sender: No OFD packet to send [16:39:21]OFD Sender: No OFD packet to send [16:39:26]OFD Sender: No OFD packet to send [16:39:31]OFD Sender: No OFD packet to send [16:39:36]OFD Sender: No OFD packet to send [16:39:41]OFD Sender: No OFD packet to send [16:39:46]OFD Sender: No OFD packet to send [16:39:51]OFD Sender: No OFD packet to send [16:39:56]OFD Sender: No OFD packet to send [16:40:01]OFD Sender: No OFD packet to send [16:40:06]OFD Sender: No OFD packet to send [16:40:11]OFD Sender: No OFD packet to send [16:40:16]OFD Sender: No OFD packet to send [16:40:21]OFD Sender: No OFD packet to send [16:40:26]OFD Sender: No OFD packet to send [16:40:31]OFD Sender: No OFD packet to send [16:40:36]OFD Sender: No OFD packet to send [16:40:41]OFD Sender: No OFD packet to send [16:40:46]OFD Sender: No OFD packet to send [16:40:51]OFD Sender: No OFD packet to send [16:40:56]OFD Sender: No OFD packet to send [16:40:58]accept exits with 8 [16:40:58]New connection [16:40:58]New thread 3066854756 created [16:40:58]Thread 3066711396 joined [16:40:58]Waiting for new connection... [16:40:58] Sock 8.Parse request [16:40:58]Sock 8.Check first char [16:40:58]Sock 8.First char is OK [16:40:58]request: POST /json_proto HTTP/1.0 [16:40:58]Method: POST [16:40:58]URL: /json_proto [16:40:58]Method is POST - this is cgi request [16:40:58]url: /json_proto [16:40:58]query_string will be loaded in cgi processing [16:40:58]execute_cgi json_proto POST (null) [16:40:58]execute_cgi path=json_proto method=POST [16:40:58]POST find Content-Length [16:40:58]Host: 172.17.56.4:8080 [16:40:58]Content-Length: 679 [16:40:58]Content-Type: application/json [16:40:58] [16:40:58]POST finish read [16:40:58]Found Content-Length = 679 [16:40:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459476", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 26.430, "sum" : 1900.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1900.00, "total" : 1900.00, "payments": [ { "type": 0, "sum" : 1900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:58]execute_script... [16:40:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459476", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 26.430, "sum" : 1900.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1900.00, "total" : 1900.00, "payments": [ { "type": 0, "sum" : 1900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:58]POST & json_proto [16:40:58]process_json_proto [16:40:58]json parsed OK: [16:40:58]protocol is kg_v1.0 [16:40:58]action value=close_receipt [16:40:58]process_action close_receipt [16:40:58]cmd_close_receipt [16:40:58]MH_GetDate [16:40:58]Write to MH i2c: F0 00 00 96 28 AD [16:40:58]Write i2c OK [16:40:58]MH_I2C_Read... [16:40:58]Read from MH i2c: F0 [16:40:58]MH_I2C_Read... [16:40:58]Read from MH i2c: F0 09 00 [16:40:58]MH_I2C_Read... [16:40:58]Read from MH i2c: F0 09 00 96 28 00 1C 51 95 66 C9 DC B2 64 D9 [16:40:58]GetLastDocTimeStamp 1721061410 [16:40:58]current date 1721061660 [16:40:58]FM_GetShiftState [16:40:58]SAM_PROTO_GetShiftState [16:40:58]wFMCommunicate request_size=4 [16:40:58]MH_SAM_APDU [16:40:58]CAPDU: 80 13 01 00 [16:40:58]Write to MH i2c: E2 08 00 97 28 80 13 01 00 00 00 00 00 3C [16:40:58]Write i2c OK [16:40:58]MH_I2C_Read... [16:40:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:58]Read from MH i2c: E2 [16:40:58]MH_I2C_Read... [16:40:58]Read from MH i2c: E2 0E 00 [16:40:58]MH_I2C_Read... [16:40:58]Read from MH i2c: E2 0E 00 97 28 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 15 [16:40:58]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [16:40:58]wFMCommunicate OK [16:40:58]SAM_PROTO_GetShiftState done [16:40:58]FM_GetShiftState done [16:40:58]opened in 1721003876 [16:40:58]opened+sec_in_day 1721090276 [16:40:58]quantity*price = 190031 [16:40:58]sum+1 = 190033 [16:40:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1900.00 Внесено: 1900.00 СДАЧА: 0.00 НСП 1% : 16.82 НДС 12% : 201.80 Наличными: 1900.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 237 15.07.2024 16:41 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165364 ФПД: 227610397517730 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T164100&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165364&fm=227610397517730&tin=02508201610067®Number=0000000000090829&sum=190000 [16:40:59]StoreToDocumentArchive [16:40:59]shift 448 fd 165364 [16:40:59]save to /storage/0448/doc_00165364 [16:40:59]save last doc name /storage/0448/doc_00165364 to /storage/kkm_last_doc_name [16:40:59]save OK [16:40:59]Clear old archive folders... [16:40:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:40:59]tlvbuf is 01822C10 [16:40:59]SAM_PROTO_ClearQueue [16:40:59]wFMCommunicate request_size=4 [16:40:59]MH_SAM_APDU [16:40:59]CAPDU: 80 09 00 00 [16:40:59]Write to MH i2c: E2 08 00 A4 28 80 09 00 00 00 00 00 00 3E [16:40:59]Write i2c OK [16:40:59]MH_I2C_Read... [16:40:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:40:59]Read from MH i2c: E2 [16:40:59]MH_I2C_Read... [16:40:59]Read from MH i2c: E2 03 00 [16:40:59]MH_I2C_Read... [16:40:59]Read from MH i2c: E2 03 00 A4 28 00 90 00 40 [16:40:59]RAPDU: 90 00 [16:40:59]wFMCommunicate OK [16:40:59]SAM_PROTO_ClearQueue done [16:40:59]KKMCreateOFDPacket [16:40:59]OFDProtocolAddRootSTLVToBuf [16:40:59]FM_MakeSignedData [16:40:59]FM_MakeSignedData [16:40:59]SAM_PROTO_SignData [16:40:59]wFMCommunicate request_size=4 [16:40:59]MH_SAM_APDU [16:40:59]CAPDU: 80 0D 01 02 [16:40:59]Write to MH i2c: E2 08 00 A5 28 80 0D 01 02 00 00 00 00 46 [16:40:59]Write i2c OK [16:40:59]MH_I2C_Read... [16:40:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:40:59]Read from MH i2c: E2 [16:40:59]MH_I2C_Read... [16:40:59]Read from MH i2c: E2 03 00 [16:40:59]MH_I2C_Read... [16:40:59]Read from MH i2c: E2 03 00 A5 28 00 90 00 41 [16:40:59]RAPDU: 90 00 [16:40:59]wFMCommunicate OK [16:40:59]wFMCommunicate request_size=255 [16:40:59]MH_SAM_APDU [16:40:59]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 67 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 50 E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 4E 00 00 00 00 07 04 06 00 30 E6 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 1C 51 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F4 85 02 00 35 04 06 00 CF 02 AC E4 [16:40:59]Write to MH i2c: E2 02 01 A6 28 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 67 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 50 E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 4E 00 00 00 00 07 04 06 00 30 E6 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 1C 51 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F4 85 02 00 35 04 06 00 CF 02 AC E4 00 00 94 [16:40:59]Write i2c OK [16:40:59]MH_I2C_Read... [16:41:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:00]Read from MH i2c: E2 [16:41:00]MH_I2C_Read... [16:41:00]Read from MH i2c: E2 03 00 [16:41:00]MH_I2C_Read... [16:41:00]Read from MH i2c: E2 03 00 A6 28 00 90 00 42 [16:41:00]RAPDU: 90 00 [16:41:00]wFMCommunicate OK [16:41:00]wFMCommunicate request_size=7 [16:41:00]MH_SAM_APDU [16:41:00]CAPDU: 80 0D 02 02 02 27 A2 [16:41:00]Write to MH i2c: E2 0A 00 A7 28 80 0D 02 02 02 00 27 A2 00 00 16 [16:41:00]Write i2c OK [16:41:00]MH_I2C_Read... [16:41:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:00]Read from MH i2c: E2 [16:41:00]MH_I2C_Read... [16:41:00]Read from MH i2c: E2 03 00 [16:41:00]MH_I2C_Read... [16:41:00]Read from MH i2c: E2 03 00 A7 28 00 90 00 43 [16:41:00]RAPDU: 90 00 [16:41:00]wFMCommunicate OK [16:41:00]wFMCommunicate request_size=4 [16:41:00]MH_SAM_APDU [16:41:00]CAPDU: 80 0D 03 02 [16:41:00]Write to MH i2c: E2 08 00 A8 28 80 0D 03 02 00 00 00 00 4B [16:41:00]Write i2c OK [16:41:00]MH_I2C_Read... [16:41:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:41:00]Read from MH i2c: E2 [16:41:00]MH_I2C_Read... [16:41:00]Read from MH i2c: E2 0B 00 [16:41:00]MH_I2C_Read... [16:41:00]Read from MH i2c: E2 0B 00 A8 28 00 3C DB 3D 71 CA BB 65 BC 90 00 B7 [16:41:00]RAPDU: 3C DB 3D 71 CA BB 65 BC 90 00 [16:41:00]wFMCommunicate OK [16:41:00]SAM_PROTO_SignData done [16:41:00]FM_MakeSignedData done [16:41:00]CreateOFDProtocolMessage [16:41:00]wFMCommunicate request_size=4 [16:41:00]MH_SAM_APDU [16:41:00]CAPDU: 80 11 00 00 [16:41:00]Write to MH i2c: E2 08 00 A9 28 80 11 00 00 00 00 00 00 4B [16:41:00]Write i2c OK [16:41:00]MH_I2C_Read... [16:41:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:00]Read from MH i2c: E2 [16:41:00]MH_I2C_Read... [16:41:00]Read from MH i2c: E2 17 00 [16:41:00]MH_I2C_Read... [16:41:00]Read from MH i2c: E2 17 00 A9 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A1 [16:41:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:41:00]wFMCommunicate OK [16:41:00]CreateOFDProtocolMessage done [16:41:00]OFDSenderStorePacket 165364 [16:41:00]StoreOFDPacket docnum=165364 [16:41:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 EA 07 04 01 38 6C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 67 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 50 E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 4E 00 00 00 00 07 04 06 00 30 E6 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 1C 51 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F4 85 02 00 35 04 06 00 CF 02 AC E4 27 A2 3C DB 3D 71 CA BB 65 BC [16:41:00]CheckFolder [16:41:00]dirname=/storage/ofd_packets [16:41:00]CheckFolder done [16:41:00]ProducePacketName [16:41:00]name=ofd_packets/00165364 [16:41:00]NVStorageSaveData ofd_packets/00165364 [16:41:00]File name is /storage/ofd_packets/00165364 [16:41:00]Write 298 bytes [16:41:00]NVStorageSaveData done [16:41:00]OFDSenderStorePacket done [16:41:00]KKMCreateOFDPacket done [16:41:00]NVStorageSaveData kkm_last_timestamp [16:41:00]File name is /storage/kkm_last_timestamp [16:41:00]Write 4 bytes [16:41:00]NVStorageSaveData done [16:41:00]ExternCall_PrintAddStr [16:41:00]wPrintStart [16:41:00]Write to MH i2c: 01 00 00 AA 28 D2 [16:41:00]Write i2c OK [16:41:00]MH_I2C_Read... [16:41:00]Read from MH i2c: 01 [16:41:00]MH_I2C_Read... [16:41:00]Read from MH i2c: 01 07 00 [16:41:00]MH_I2C_Read... [16:41:00]Read from MH i2c: 01 07 00 AA 28 00 00 00 00 00 FF 0F E7 [16:41:00]RasterBufferAndPrint [16:41:00]line Счет N : (1)459476 [16:41:00]line ИНН: 02508201610067 [16:41:00]line Контрольно-Кассовый Чек [16:41:00]line ПРОДАЖА [16:41:00]line ТРК (МРК, ГНК) : 11 [16:41:00]line Товар: 2710194210 [16:41:00]line ДТ-К-5 [16:41:00]line 26.430 * 71.90 [16:41:00]line = 1900.32 [16:41:00]line НДС 12% НСП 1% [16:41:00]line > о реализуемом товаре [16:41:00]line ОКРУГЛЕНИЕ: -0.32 [16:41:00]line ИТОГО: 1900.00 [16:41:00]line Внесено: 1900.00 [16:41:00]line СДАЧА: 0.00 [16:41:00]line НСП 1% : 16.82 [16:41:00]line НДС 12% : 201.80 [16:41:00]line Наличными: 1900.00 [16:41:00]line Безнал.: 0.00 [16:41:00]line Место: АЗС № 72 "Партнер Нефть" [16:41:00]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:41:00]line СНО: Общий режим [16:41:00]line Чек 237 15.07.2024 16:41 [16:41:00]line Смена: 448 ФФД: 1.0 [16:41:00]line ЗНМ: 0300000160 [16:41:00]line РНМ: 0000000000090829 [16:41:00]line Версия ККМ: 001 [16:41:00]line ФМ: 0000000000874718 [16:41:00]line ФД: 165364 [16:41:00]line ФПД: 227610397517730 [16:41:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T164100&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165364&fm=227610397517730&tin=02508201610067®Number=0000000000090829&sum=190000 [16:41:00]OFD Sender: Processing packet 165364 [packets to send 106, broken 105] [16:41:00]ProducePacketName [16:41:00]name=ofd_packets/00165364 [16:41:00]OFD Sender: To server: pG, [16:41:00]CommunicateWithHost lk.salyk.kg:30040 [16:41:00]ConnectInit lk.salyk.kg [16:41:00]written 0, free lines is 4095 [16:41:00]Connected sock=10 [16:41:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 EA 07 04 01 38 6C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 67 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 50 E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 4E 00 00 00 00 07 04 06 00 30 E6 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 1C 51 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F4 85 02 00 35 04 06 00 CF 02 AC E4 27 A2 3C DB 3D 71 CA BB 65 BC [16:41:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 B2 0A 47 00 45 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F4 85 02 00 F4 03 04 00 A6 F7 94 66 B6 04 01 00 00 60 F6 A0 B7 6B A5 1B DB [16:41:00]CommunicateWithHost err = 0 [16:41:00]CheckOFDResponse [16:41:00]1017 (14) - 77093643461234 [16:41:00]1041 (16) - 0000000000874718 [16:41:00]1040 (4) - 165364 [16:41:00]1012 (4) - 15.07.2024 10:19 [16:41:00]1206 (1) - 0 [16:41:00]OFD Sender: Remove packet 165364 [16:41:00]ProducePacketName [16:41:00]name=ofd_packets/00165364 [16:41:00]NVStorageDeleteData [16:41:01]Write to MH i2c: 01 00 00 D4 28 FC [16:41:01]Write i2c OK [16:41:01]MH_I2C_Read... [16:41:01]Read from MH i2c: 01 [16:41:01]MH_I2C_Read... [16:41:01]Read from MH i2c: 01 07 00 [16:41:01]MH_I2C_Read... [16:41:01]Read from MH i2c: 01 07 00 D4 28 00 00 00 00 00 F9 0C 08 [16:41:01]RasterBufferAndPrint [16:41:01]line [16:41:01]line [16:41:01]line [16:41:01]line [16:41:01]line [16:41:01]written 0, free lines is 3327 [16:41:01]MH_Cut [16:41:01]Write to MH i2c: D1 01 00 DB 28 01 D5 [16:41:01]Write i2c OK [16:41:01]MH_I2C_Read... [16:41:01]Read from MH i2c: D1 [16:41:01]MH_I2C_Read... [16:41:01]Read from MH i2c: D1 01 00 [16:41:01]MH_I2C_Read... [16:41:01]Read from MH i2c: D1 01 00 DB 28 00 D4 [16:41:01]Write to MH i2c: 01 00 00 DC 28 04 [16:41:01]Write i2c OK [16:41:01]MH_I2C_Read... [16:41:01]OFD Sender: No OFD packet to send [16:41:01]*** Cut start [16:41:01]*** Partial cut [16:41:01]*** CUTSNS_PIN = 1 [16:41:01]*** CUTSNS_PIN = 0 [16:41:01]*** Brake cut motor [16:41:02]Read from MH i2c: 01 [16:41:02]MH_I2C_Read... [16:41:02]*** Stop cut motor [16:41:02]*** Cut end [16:41:02]Read from MH i2c: 01 07 00 [16:41:02]MH_I2C_Read... [16:41:02]Read from MH i2c: 01 07 00 DC 28 00 00 00 00 00 FF 0F 19 [16:41:02]process_action close_receipt done [16:41:02]requested_data is exist [16:41:02]produce_requested_data [16:41:02]requested_item fm.sn is exist - process it [16:41:02]wFMCommunicate request_size=4 [16:41:02]MH_SAM_APDU [16:41:02]CAPDU: 80 11 00 00 [16:41:02]Write to MH i2c: E2 08 00 DD 28 80 11 00 00 00 00 00 00 7F [16:41:02]Write i2c OK [16:41:02]MH_I2C_Read... [16:41:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:02]Read from MH i2c: E2 [16:41:02]MH_I2C_Read... [16:41:02]Read from MH i2c: E2 17 00 [16:41:02]MH_I2C_Read... [16:41:02]Read from MH i2c: E2 17 00 DD 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D5 [16:41:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:41:02]wFMCommunicate OK [16:41:02]requested_item fd.num is exist - process it [16:41:02]SAM_PROTO_GetFieldsCounters [16:41:02]wFMCommunicate request_size=4 [16:41:02]MH_SAM_APDU [16:41:02]CAPDU: 80 13 00 00 [16:41:02]Write to MH i2c: E2 08 00 DE 28 80 13 00 00 00 00 00 00 82 [16:41:02]Write i2c OK [16:41:02]MH_I2C_Read... [16:41:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:41:02]Read from MH i2c: E2 [16:41:02]MH_I2C_Read... [16:41:02]Read from MH i2c: E2 62 00 [16:41:02]MH_I2C_Read... [16:41:02]Read from MH i2c: E2 62 00 DE 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F4 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [16:41:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F4 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:41:02]wFMCommunicate OK [16:41:02]SAM_PROTO_GetFieldsCounters done [16:41:02]requested_item shift.num is exist - process it [16:41:02]requested_item shift.opened is exist - process it [16:41:02]req_shift_opened [16:41:02]FM_GetShiftState [16:41:02]SAM_PROTO_GetShiftState [16:41:02]wFMCommunicate request_size=4 [16:41:02]MH_SAM_APDU [16:41:02]CAPDU: 80 13 01 00 [16:41:02]Write to MH i2c: E2 08 00 DF 28 80 13 01 00 00 00 00 00 84 [16:41:02]Write i2c OK [16:41:02]MH_I2C_Read... [16:41:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:02]Read from MH i2c: E2 [16:41:02]MH_I2C_Read... [16:41:02]Read from MH i2c: E2 0E 00 [16:41:02]MH_I2C_Read... [16:41:02]Read from MH i2c: E2 0E 00 DF 28 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 5D [16:41:02]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [16:41:02]wFMCommunicate OK [16:41:02]SAM_PROTO_GetShiftState done [16:41:02]FM_GetShiftState done [16:41:02]req_shift_opened done [16:41:02]requested_item shift.open_date is exist - process it [16:41:02]req_shift_open_date [16:41:02]req_shift_open_date done [16:41:02]produce_requested_data done [16:41:02]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165364,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [16:41:02]process_action_free close_receipt [16:41:02]json_value_free [16:41:02]json_value_free done [16:41:02]process_json_proto returns [16:41:02]Send response to host [16:41:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165364,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [16:41:02]free response buf [16:41:02]execute_script done [16:41:02]execute_script returns [16:41:02]free content buf [16:41:02]Sock 8.Close socket [16:41:02]Sock 8.Thread stoped [16:41:06]OFD Sender: No OFD packet to send [16:41:11]OFD Sender: No OFD packet to send [16:41:16]OFD Sender: No OFD packet to send [16:41:21]OFD Sender: No OFD packet to send [16:41:26]OFD Sender: No OFD packet to send [16:41:31]OFD Sender: No OFD packet to send [16:41:36]OFD Sender: No OFD packet to send [16:41:41]OFD Sender: No OFD packet to send [16:41:46]OFD Sender: No OFD packet to send [16:41:51]OFD Sender: No OFD packet to send [16:41:56]OFD Sender: No OFD packet to send [16:42:01]OFD Sender: No OFD packet to send [16:42:06]OFD Sender: No OFD packet to send [16:42:11]OFD Sender: No OFD packet to send [16:42:16]OFD Sender: No OFD packet to send [16:42:21]OFD Sender: No OFD packet to send [16:42:26]OFD Sender: No OFD packet to send [16:42:31]OFD Sender: No OFD packet to send [16:42:36]OFD Sender: No OFD packet to send [16:42:41]OFD Sender: No OFD packet to send [16:42:46]OFD Sender: No OFD packet to send [16:42:51]OFD Sender: No OFD packet to send [16:42:56]OFD Sender: No OFD packet to send [16:43:01]OFD Sender: No OFD packet to send [16:43:06]OFD Sender: No OFD packet to send [16:43:11]OFD Sender: No OFD packet to send [16:43:16]OFD Sender: No OFD packet to send [16:43:21]OFD Sender: No OFD packet to send [16:43:26]OFD Sender: No OFD packet to send [16:43:31]OFD Sender: No OFD packet to send [16:43:36]OFD Sender: No OFD packet to send [16:43:41]OFD Sender: No OFD packet to send [16:43:46]OFD Sender: No OFD packet to send [16:43:51]OFD Sender: No OFD packet to send [16:43:56]OFD Sender: No OFD packet to send [16:44:01]OFD Sender: No OFD packet to send [16:44:06]OFD Sender: No OFD packet to send [16:44:11]OFD Sender: No OFD packet to send [16:44:16]OFD Sender: No OFD packet to send [16:44:21]OFD Sender: No OFD packet to send [16:44:26]OFD Sender: No OFD packet to send [16:44:31]OFD Sender: No OFD packet to send [16:44:36]OFD Sender: No OFD packet to send [16:44:41]OFD Sender: No OFD packet to send [16:44:46]OFD Sender: No OFD packet to send [16:44:51]OFD Sender: No OFD packet to send [16:44:56]OFD Sender: No OFD packet to send [16:45:01]OFD Sender: No OFD packet to send [16:45:06]OFD Sender: No OFD packet to send [16:45:11]OFD Sender: No OFD packet to send [16:45:16]OFD Sender: No OFD packet to send [16:45:21]OFD Sender: No OFD packet to send [16:45:26]OFD Sender: No OFD packet to send [16:45:31]OFD Sender: No OFD packet to send [16:45:36]OFD Sender: No OFD packet to send [16:45:41]OFD Sender: No OFD packet to send [16:45:46]OFD Sender: No OFD packet to send [16:45:51]OFD Sender: No OFD packet to send [16:45:56]OFD Sender: No OFD packet to send [16:46:01]OFD Sender: No OFD packet to send [16:46:06]OFD Sender: No OFD packet to send [16:46:11]OFD Sender: No OFD packet to send [16:46:16]OFD Sender: No OFD packet to send [16:46:18]accept exits with 9 [16:46:18]New connection [16:46:18]New thread 3066711396 created [16:46:18]Thread 3066854756 joined [16:46:18]Waiting for new connection... [16:46:18] Sock 9.Parse request [16:46:18]Sock 9.Check first char [16:46:18]Sock 9.First char is OK [16:46:18]request: POST /json_proto HTTP/1.0 [16:46:18]Method: POST [16:46:18]URL: /json_proto [16:46:18]Method is POST - this is cgi request [16:46:18]url: /json_proto [16:46:18]query_string will be loaded in cgi processing [16:46:18]execute_cgi json_proto POST (null) [16:46:18]execute_cgi path=json_proto method=POST [16:46:18]POST find Content-Length [16:46:18]Host: 172.17.56.4:8080 [16:46:18]Content-Length: 674 [16:46:18]Content-Type: application/json [16:46:18] [16:46:18]POST finish read [16:46:18]Found Content-Length = 674 [16:46:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459477", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 4.180, "sum" : 300.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:18]execute_script... [16:46: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)459477", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 4.180, "sum" : 300.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:18]POST & json_proto [16:46:18]process_json_proto [16:46:18]json parsed OK: [16:46:18]protocol is kg_v1.0 [16:46:18]action value=close_receipt [16:46:18]process_action close_receipt [16:46:18]cmd_close_receipt [16:46:18]MH_GetDate [16:46:18]Write to MH i2c: F0 00 00 E0 28 F7 [16:46:18]Write i2c OK [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: F0 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: F0 09 00 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: F0 09 00 E0 28 00 5C 52 95 66 C9 DC B2 64 64 [16:46:18]GetLastDocTimeStamp 1721061660 [16:46:18]current date 1721061980 [16:46:18]FM_GetShiftState [16:46:18]SAM_PROTO_GetShiftState [16:46:18]wFMCommunicate request_size=4 [16:46:18]MH_SAM_APDU [16:46:18]CAPDU: 80 13 01 00 [16:46:18]Write to MH i2c: E2 08 00 E1 28 80 13 01 00 00 00 00 00 86 [16:46:18]Write i2c OK [16:46:18]MH_I2C_Read... [16:46:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:18]Read from MH i2c: E2 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: E2 0E 00 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: E2 0E 00 E1 28 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 5F [16:46:18]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [16:46:18]wFMCommunicate OK [16:46:18]SAM_PROTO_GetShiftState done [16:46:18]FM_GetShiftState done [16:46:18]opened in 1721003876 [16:46:18]opened+sec_in_day 1721090276 [16:46:18]quantity*price = 30054 [16:46:18]sum+1 = 30055 [16:46:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.92 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 238 15.07.2024 16:46 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165365 ФПД: 105051060457830 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T164620&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165365&fm=105051060457830&tin=02508201610067®Number=0000000000090829&sum=30000 [16:46:19]StoreToDocumentArchive [16:46:19]shift 448 fd 165365 [16:46:19]save to /storage/0448/doc_00165365 [16:46:19]save last doc name /storage/0448/doc_00165365 to /storage/kkm_last_doc_name [16:46:19]save OK [16:46:19]Clear old archive folders... [16:46:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:46:19]tlvbuf is B6E90200 [16:46:19]SAM_PROTO_ClearQueue [16:46:19]wFMCommunicate request_size=4 [16:46:19]MH_SAM_APDU [16:46:19]CAPDU: 80 09 00 00 [16:46:19]Write to MH i2c: E2 08 00 EE 28 80 09 00 00 00 00 00 00 88 [16:46:19]Write i2c OK [16:46:19]MH_I2C_Read... [16:46:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:46:19]Read from MH i2c: E2 [16:46:19]MH_I2C_Read... [16:46:19]Read from MH i2c: E2 03 00 [16:46:19]MH_I2C_Read... [16:46:19]Read from MH i2c: E2 03 00 EE 28 00 90 00 8A [16:46:19]RAPDU: 90 00 [16:46:19]wFMCommunicate OK [16:46:19]SAM_PROTO_ClearQueue done [16:46:19]KKMCreateOFDPacket [16:46:19]OFDProtocolAddRootSTLVToBuf [16:46:19]FM_MakeSignedData [16:46:19]FM_MakeSignedData [16:46:19]SAM_PROTO_SignData [16:46:19]wFMCommunicate request_size=4 [16:46:19]MH_SAM_APDU [16:46:19]CAPDU: 80 0D 01 02 [16:46:19]Write to MH i2c: E2 08 00 EF 28 80 0D 01 02 00 00 00 00 90 [16:46:19]Write i2c OK [16:46:19]MH_I2C_Read... [16:46:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:46:20]Read from MH i2c: E2 [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: E2 03 00 [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: E2 03 00 EF 28 00 90 00 8B [16:46:20]RAPDU: 90 00 [16:46:20]wFMCommunicate OK [16:46:20]wFMCommunicate request_size=255 [16:46:20]MH_SAM_APDU [16:46:20]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 5C 52 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F5 85 02 00 35 04 06 00 5F 8B 1B 24 [16:46:20]Write to MH i2c: E2 02 01 F0 28 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 5C 52 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F5 85 02 00 35 04 06 00 5F 8B 1B 24 00 00 3A [16:46:20]Write i2c OK [16:46:20]MH_I2C_Read... [16:46:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:20]Read from MH i2c: E2 [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: E2 03 00 [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: E2 03 00 F0 28 00 90 00 8C [16:46:20]RAPDU: 90 00 [16:46:20]wFMCommunicate OK [16:46:20]wFMCommunicate request_size=7 [16:46:20]MH_SAM_APDU [16:46:20]CAPDU: 80 0D 02 02 02 51 66 [16:46:20]Write to MH i2c: E2 0A 00 F1 28 80 0D 02 02 02 00 51 66 00 00 4E [16:46:20]Write i2c OK [16:46:20]MH_I2C_Read... [16:46:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:20]Read from MH i2c: E2 [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: E2 03 00 [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: E2 03 00 F1 28 00 90 00 8D [16:46:20]RAPDU: 90 00 [16:46:20]wFMCommunicate OK [16:46:20]wFMCommunicate request_size=4 [16:46:20]MH_SAM_APDU [16:46:20]CAPDU: 80 0D 03 02 [16:46:20]Write to MH i2c: E2 08 00 F2 28 80 0D 03 02 00 00 00 00 95 [16:46:20]Write i2c OK [16:46:20]MH_I2C_Read... [16:46:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:46:20]Read from MH i2c: E2 [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: E2 0B 00 [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: E2 0B 00 F2 28 00 E4 A7 4D B3 96 74 09 00 90 00 34 [16:46:20]RAPDU: E4 A7 4D B3 96 74 09 00 90 00 [16:46:20]wFMCommunicate OK [16:46:20]SAM_PROTO_SignData done [16:46:20]FM_MakeSignedData done [16:46:20]CreateOFDProtocolMessage [16:46:20]wFMCommunicate request_size=4 [16:46:20]MH_SAM_APDU [16:46:20]CAPDU: 80 11 00 00 [16:46:20]Write to MH i2c: E2 08 00 F3 28 80 11 00 00 00 00 00 00 95 [16:46:20]Write i2c OK [16:46:20]MH_I2C_Read... [16:46:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:20]Read from MH i2c: E2 [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: E2 17 00 [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: E2 17 00 F3 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 EB [16:46:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:46:20]wFMCommunicate OK [16:46:20]CreateOFDProtocolMessage done [16:46:20]OFDSenderStorePacket 165365 [16:46:20]StoreOFDPacket docnum=165365 [16:46:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 0C B4 04 01 96 D5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 5C 52 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F5 85 02 00 35 04 06 00 5F 8B 1B 24 51 66 E4 A7 4D B3 96 74 09 00 [16:46:20]CheckFolder [16:46:20]dirname=/storage/ofd_packets [16:46:20]CheckFolder done [16:46:20]ProducePacketName [16:46:20]name=ofd_packets/00165365 [16:46:20]NVStorageSaveData ofd_packets/00165365 [16:46:20]File name is /storage/ofd_packets/00165365 [16:46:20]Write 298 bytes [16:46:20]NVStorageSaveData done [16:46:20]OFDSenderStorePacket done [16:46:20]KKMCreateOFDPacket done [16:46:20]NVStorageSaveData kkm_last_timestamp [16:46:20]File name is /storage/kkm_last_timestamp [16:46:20]Write 4 bytes [16:46:20]NVStorageSaveData done [16:46:20]ExternCall_PrintAddStr [16:46:20]wPrintStart [16:46:20]Write to MH i2c: 01 00 00 F4 28 1C [16:46:20]Write i2c OK [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: 01 [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: 01 07 00 [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: 01 07 00 F4 28 00 00 00 00 00 FF 0F 31 [16:46:20]RasterBufferAndPrint [16:46:20]line Счет N : (1)459477 [16:46:20]line ИНН: 02508201610067 [16:46:20]line Контрольно-Кассовый Чек [16:46:20]line ПРОДАЖА [16:46:20]line ТРК (МРК, ГНК) : 21 [16:46:20]line Товар: 2710194210 [16:46:20]line ДТ-К-5 [16:46:20]line 4.180 * 71.90 [16:46:20]line = 300.54 [16:46:20]line НДС 12% НСП 1% [16:46:20]line > о реализуемом товаре [16:46:20]line ОКРУГЛЕНИЕ: -0.54 [16:46:20]line ИТОГО: 300.00 [16:46:20]line Внесено: 300.00 [16:46:20]line СДАЧА: 0.00 [16:46:20]line НСП 1% : 2.66 [16:46:20]line НДС 12% : 31.92 [16:46:20]line Наличными: 300.00 [16:46:20]line Безнал.: 0.00 [16:46:20]line Место: АЗС № 72 "Партнер Нефть" [16:46:20]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:46:20]line СНО: Общий режим [16:46:20]line Чек 238 15.07.2024 16:46 [16:46:20]line Смена: 448 ФФД: 1.0 [16:46:20]line ЗНМ: 0300000160 [16:46:20]line РНМ: 0000000000090829 [16:46:20]line Версия ККМ: 001 [16:46:20]line ФМ: 0000000000874718 [16:46:20]line ФД: 165365 [16:46:20]line ФПД: 105051060457830 [16:46:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T164620&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165365&fm=105051060457830&tin=02508201610067®Number=0000000000090829&sum=30000 [16:46:20]OFD Sender: Processing packet 165365 [packets to send 106, broken 105] [16:46:20]ProducePacketName [16:46:20]name=ofd_packets/00165365 [16:46:20]OFD Sender: To server: pG, [16:46:20]CommunicateWithHost lk.salyk.kg:30040 [16:46:20]ConnectInit lk.salyk.kg [16:46:20]written 0, free lines is 4095 [16:46:20]Connected sock=11 [16:46: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 37 31 38 0C 01 00 00 0C B4 04 01 96 D5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 10 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 66 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 5C 52 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F5 85 02 00 35 04 06 00 5F 8B 1B 24 51 66 E4 A7 4D B3 96 74 09 00 [16:46:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 62 1F 47 00 F1 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F5 85 02 00 F4 03 04 00 E6 F8 94 66 B6 04 01 00 00 2F 73 03 24 08 80 06 A9 [16:46:21]CommunicateWithHost err = 0 [16:46:21]CheckOFDResponse [16:46:21]1017 (14) - 77093643461234 [16:46:21]1041 (16) - 0000000000874718 [16:46:21]1040 (4) - 165365 [16:46:21]1012 (4) - 15.07.2024 10:24 [16:46:21]1206 (1) - 0 [16:46:21]OFD Sender: Remove packet 165365 [16:46:21]ProducePacketName [16:46:21]name=ofd_packets/00165365 [16:46:21]NVStorageDeleteData [16:46:21]Write to MH i2c: 01 00 00 1E 29 47 [16:46:21]Write i2c OK [16:46:21]MH_I2C_Read... [16:46:21]Read from MH i2c: 01 [16:46:21]MH_I2C_Read... [16:46:21]Read from MH i2c: 01 07 00 [16:46:21]MH_I2C_Read... [16:46:21]Read from MH i2c: 01 07 00 1E 29 00 00 00 00 00 F3 0C 4D [16:46:21]RasterBufferAndPrint [16:46:21]line [16:46:21]line [16:46:21]line [16:46:21]line [16:46:21]line [16:46:21]written 0, free lines is 3323 [16:46:21]MH_Cut [16:46:21]Write to MH i2c: D1 01 00 25 29 01 20 [16:46:21]Write i2c OK [16:46:21]MH_I2C_Read... [16:46:21]Read from MH i2c: D1 [16:46:21]MH_I2C_Read... [16:46:21]Read from MH i2c: D1 01 00 [16:46:21]MH_I2C_Read... [16:46:21]Read from MH i2c: D1 01 00 25 29 00 1F [16:46:21]Write to MH i2c: 01 00 00 26 29 4F [16:46:21]Write i2c OK [16:46:21]MH_I2C_Read... [16:46:21]OFD Sender: No OFD packet to send [16:46:21]*** Cut start [16:46:21]*** Partial cut [16:46:21]*** CUTSNS_PIN = 1 [16:46:21]*** CUTSNS_PIN = 0 [16:46:22]*** Brake cut motor [16:46:22]Read from MH i2c: 01 [16:46:22]MH_I2C_Read... [16:46:22]*** Stop cut motor [16:46:22]*** Cut end [16:46:22]Read from MH i2c: 01 07 00 [16:46:22]MH_I2C_Read... [16:46:22]Read from MH i2c: 01 07 00 26 29 00 00 00 00 00 FF 0F 64 [16:46:22]process_action close_receipt done [16:46:22]requested_data is exist [16:46:22]produce_requested_data [16:46:22]requested_item fm.sn is exist - process it [16:46:22]wFMCommunicate request_size=4 [16:46:22]MH_SAM_APDU [16:46:22]CAPDU: 80 11 00 00 [16:46:22]Write to MH i2c: E2 08 00 27 29 80 11 00 00 00 00 00 00 CA [16:46:22]Write i2c OK [16:46:22]MH_I2C_Read... [16:46:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:22]Read from MH i2c: E2 [16:46:22]MH_I2C_Read... [16:46:22]Read from MH i2c: E2 17 00 [16:46:22]MH_I2C_Read... [16:46:22]Read from MH i2c: E2 17 00 27 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 20 [16:46:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:46:22]wFMCommunicate OK [16:46:22]requested_item fd.num is exist - process it [16:46:22]SAM_PROTO_GetFieldsCounters [16:46:22]wFMCommunicate request_size=4 [16:46:22]MH_SAM_APDU [16:46:22]CAPDU: 80 13 00 00 [16:46:22]Write to MH i2c: E2 08 00 28 29 80 13 00 00 00 00 00 00 CD [16:46:22]Write i2c OK [16:46:22]MH_I2C_Read... [16:46:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:46:22]Read from MH i2c: E2 [16:46:22]MH_I2C_Read... [16:46:22]Read from MH i2c: E2 62 00 [16:46:22]MH_I2C_Read... [16:46:22]Read from MH i2c: E2 62 00 28 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F5 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 FB [16:46: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F5 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:46:22]wFMCommunicate OK [16:46:22]SAM_PROTO_GetFieldsCounters done [16:46:22]requested_item shift.num is exist - process it [16:46:22]requested_item shift.opened is exist - process it [16:46:22]req_shift_opened [16:46:22]FM_GetShiftState [16:46:22]SAM_PROTO_GetShiftState [16:46:22]wFMCommunicate request_size=4 [16:46:22]MH_SAM_APDU [16:46:22]CAPDU: 80 13 01 00 [16:46:22]Write to MH i2c: E2 08 00 29 29 80 13 01 00 00 00 00 00 CF [16:46:22]Write i2c OK [16:46:22]MH_I2C_Read... [16:46:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:22]Read from MH i2c: E2 [16:46:22]MH_I2C_Read... [16:46:22]Read from MH i2c: E2 0E 00 [16:46:22]MH_I2C_Read... [16:46:22]Read from MH i2c: E2 0E 00 29 29 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 A8 [16:46:22]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [16:46:22]wFMCommunicate OK [16:46:22]SAM_PROTO_GetShiftState done [16:46:22]FM_GetShiftState done [16:46:22]req_shift_opened done [16:46:22]requested_item shift.open_date is exist - process it [16:46:22]req_shift_open_date [16:46:22]req_shift_open_date done [16:46:22]produce_requested_data done [16:46:22]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165365,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [16:46:22]process_action_free close_receipt [16:46:22]json_value_free [16:46:22]json_value_free done [16:46:22]process_json_proto returns [16:46:22]Send response to host [16:46:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165365,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [16:46:22]free response buf [16:46:22]execute_script done [16:46:22]execute_script returns [16:46:22]free content buf [16:46:22]Sock 9.Close socket [16:46:22]Sock 9.Thread stoped [16:46:26]OFD Sender: No OFD packet to send [16:46:31]OFD Sender: No OFD packet to send [16:46:36]OFD Sender: No OFD packet to send [16:46:41]OFD Sender: No OFD packet to send [16:46:46]OFD Sender: No OFD packet to send [16:46:51]OFD Sender: No OFD packet to send [16:46:56]OFD Sender: No OFD packet to send [16:46:56]accept exits with 8 [16:46:56]New connection [16:46:56]New thread 3066854756 created [16:46:56]Thread 3066711396 joined [16:46:56]Waiting for new connection... [16:46:56] Sock 8.Parse request [16:46:56]Sock 8.Check first char [16:46:56]Sock 8.First char is OK [16:46:56]request: POST /json_proto HTTP/1.0 [16:46:56]Method: POST [16:46:56]URL: /json_proto [16:46:56]Method is POST - this is cgi request [16:46:56]url: /json_proto [16:46:56]query_string will be loaded in cgi processing [16:46:56]execute_cgi json_proto POST (null) [16:46:56]execute_cgi path=json_proto method=POST [16:46:56]POST find Content-Length [16:46:56]Host: 172.17.56.4:8080 [16:46:56]Content-Length: 790 [16:46:56]Content-Type: application/json [16:46:56] [16:46:56]POST finish read [16:46:56]Found Content-Length = 790 [16:46:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459478", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 6.140, "sum" : 400.45, "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 400.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:56]execute_script... [16:46: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)459478", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 6.140, "sum" : 400.45, "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 400.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:56]POST & json_proto [16:46:56]process_json_proto [16:46:56]json parsed OK: [16:46:56]protocol is kg_v1.0 [16:46:56]action value=close_receipt [16:46:56]process_action close_receipt [16:46:56]cmd_close_receipt [16:46:56]MH_GetDate [16:46:56]Write to MH i2c: F0 00 00 2A 29 42 [16:46:56]Write i2c OK [16:46:56]MH_I2C_Read... [16:46:56]Read from MH i2c: F0 [16:46:56]MH_I2C_Read... [16:46:56]Read from MH i2c: F0 09 00 [16:46:56]MH_I2C_Read... [16:46:56]Read from MH i2c: F0 09 00 2A 29 00 82 52 95 66 C9 DC B2 64 D5 [16:46:56]GetLastDocTimeStamp 1721061980 [16:46:56]current date 1721062018 [16:46:56]FM_GetShiftState [16:46:56]SAM_PROTO_GetShiftState [16:46:56]wFMCommunicate request_size=4 [16:46:56]MH_SAM_APDU [16:46:56]CAPDU: 80 13 01 00 [16:46:56]Write to MH i2c: E2 08 00 2B 29 80 13 01 00 00 00 00 00 D1 [16:46:56]Write i2c OK [16:46:56]MH_I2C_Read... [16:46:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:56]Read from MH i2c: E2 [16:46:56]MH_I2C_Read... [16:46:56]Read from MH i2c: E2 0E 00 [16:46:56]MH_I2C_Read... [16:46:56]Read from MH i2c: E2 0E 00 2B 29 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 AA [16:46:56]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [16:46:56]wFMCommunicate OK [16:46:56]SAM_PROTO_GetShiftState done [16:46:56]FM_GetShiftState done [16:46:56]opened in 1721003876 [16:46:56]opened+sec_in_day 1721090276 [16:46:56]quantity*price = 40045 [16:46:56]sum+1 = 40046 [16:46:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.45 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 0.00 Безнал.: 400.45 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 239 15.07.2024 16:46 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 165366 ФПД: 56035605256897 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T164658&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165366&fm=56035605256897&tin=02508201610067®Number=0000000000090829&sum=40045 [16:46:57]StoreToDocumentArchive [16:46:57]shift 448 fd 165366 [16:46:57]save to /storage/0448/doc_00165366 [16:46:57]save last doc name /storage/0448/doc_00165366 to /storage/kkm_last_doc_name [16:46:57]save OK [16:46:57]Clear old archive folders... [16:46:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:46:57]tlvbuf is 01907440 [16:46:57]SAM_PROTO_ClearQueue [16:46:57]wFMCommunicate request_size=4 [16:46:57]MH_SAM_APDU [16:46:57]CAPDU: 80 09 00 00 [16:46:57]Write to MH i2c: E2 08 00 38 29 80 09 00 00 00 00 00 00 D3 [16:46:57]Write i2c OK [16:46:57]MH_I2C_Read... [16:46:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:46:58]Read from MH i2c: E2 [16:46:58]MH_I2C_Read... [16:46:58]Read from MH i2c: E2 03 00 [16:46:58]MH_I2C_Read... [16:46:58]Read from MH i2c: E2 03 00 38 29 00 90 00 D5 [16:46:58]RAPDU: 90 00 [16:46:58]wFMCommunicate OK [16:46:58]SAM_PROTO_ClearQueue done [16:46:58]KKMCreateOFDPacket [16:46:58]OFDProtocolAddRootSTLVToBuf [16:46:58]FM_MakeSignedData [16:46:58]FM_MakeSignedData [16:46:58]SAM_PROTO_SignData [16:46:58]wFMCommunicate request_size=4 [16:46:58]MH_SAM_APDU [16:46:58]CAPDU: 80 0D 01 02 [16:46:58]Write to MH i2c: E2 08 00 39 29 80 0D 01 02 00 00 00 00 DB [16:46:58]Write i2c OK [16:46:58]MH_I2C_Read... [16:46:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:46:58]Read from MH i2c: E2 [16:46:58]MH_I2C_Read... [16:46:58]Read from MH i2c: E2 03 00 [16:46:58]MH_I2C_Read... [16:46:58]Read from MH i2c: E2 03 00 39 29 00 90 00 D6 [16:46:58]RAPDU: 90 00 [16:46:58]wFMCommunicate OK [16:46:58]wFMCommunicate request_size=255 [16:46:58]MH_SAM_APDU [16:46:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 17 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6D 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 00 00 00 00 00 00 39 04 06 00 6D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 82 52 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F6 85 02 00 35 04 06 00 32 [16:46:58]Write to MH i2c: E2 02 01 3A 29 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 FC 17 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6D 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 00 00 00 00 00 00 39 04 06 00 6D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 82 52 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F6 85 02 00 35 04 06 00 32 00 00 EA [16:46:58]Write i2c OK [16:46:58]MH_I2C_Read... [16:46:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:58]Read from MH i2c: E2 [16:46:58]MH_I2C_Read... [16:46:58]Read from MH i2c: E2 03 00 [16:46:58]MH_I2C_Read... [16:46:58]Read from MH i2c: E2 03 00 3A 29 00 90 00 D7 [16:46:58]RAPDU: 90 00 [16:46:58]wFMCommunicate OK [16:46:58]wFMCommunicate request_size=10 [16:46:58]MH_SAM_APDU [16:46:58]CAPDU: 80 0D 02 02 05 F6 CE 58 9A C1 [16:46:58]Write to MH i2c: E2 0D 00 3B 29 80 0D 02 02 05 00 F6 CE 58 9A C1 00 00 5F [16:46:58]Write i2c OK [16:46:58]MH_I2C_Read... [16:46:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:58]Read from MH i2c: E2 [16:46:58]MH_I2C_Read... [16:46:58]Read from MH i2c: E2 03 00 [16:46:58]MH_I2C_Read... [16:46:58]Read from MH i2c: E2 03 00 3B 29 00 90 00 D8 [16:46:58]RAPDU: 90 00 [16:46:58]wFMCommunicate OK [16:46:58]wFMCommunicate request_size=4 [16:46:58]MH_SAM_APDU [16:46:58]CAPDU: 80 0D 03 02 [16:46:58]Write to MH i2c: E2 08 00 3C 29 80 0D 03 02 00 00 00 00 E0 [16:46:58]Write i2c OK [16:46:58]MH_I2C_Read... [16:46:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:46:58]Read from MH i2c: E2 [16:46:58]MH_I2C_Read... [16:46:58]Read from MH i2c: E2 0B 00 [16:46:58]MH_I2C_Read... [16:46:58]Read from MH i2c: E2 0B 00 3C 29 00 D2 B6 32 67 48 25 55 EC 90 00 B0 [16:46:58]RAPDU: D2 B6 32 67 48 25 55 EC 90 00 [16:46:58]wFMCommunicate OK [16:46:58]SAM_PROTO_SignData done [16:46:58]FM_MakeSignedData done [16:46:58]CreateOFDProtocolMessage [16:46:58]wFMCommunicate request_size=4 [16:46:58]MH_SAM_APDU [16:46:58]CAPDU: 80 11 00 00 [16:46:58]Write to MH i2c: E2 08 00 3D 29 80 11 00 00 00 00 00 00 E0 [16:46:58]Write i2c OK [16:46:58]MH_I2C_Read... [16:46:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:58]Read from MH i2c: E2 [16:46:58]MH_I2C_Read... [16:46:58]Read from MH i2c: E2 17 00 [16:46:58]MH_I2C_Read... [16:46:58]Read from MH i2c: E2 17 00 3D 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 36 [16:46:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:46:58]wFMCommunicate OK [16:46:58]CreateOFDProtocolMessage done [16:46:58]OFDSenderStorePacket 165366 [16:46:58]StoreOFDPacket docnum=165366 [16:46:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 50 CC 07 01 3E FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 17 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6D 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 00 00 00 00 00 00 39 04 06 00 6D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 82 52 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F6 85 02 00 35 04 06 00 32 F6 CE 58 9A C1 D2 B6 32 67 48 25 55 EC [16:46:58]CheckFolder [16:46:58]dirname=/storage/ofd_packets [16:46:58]CheckFolder done [16:46:58]ProducePacketName [16:46:58]name=ofd_packets/00165366 [16:46:58]NVStorageSaveData ofd_packets/00165366 [16:46:58]File name is /storage/ofd_packets/00165366 [16:46:58]Write 301 bytes [16:46:58]NVStorageSaveData done [16:46:58]OFDSenderStorePacket done [16:46:58]KKMCreateOFDPacket done [16:46:58]NVStorageSaveData kkm_last_timestamp [16:46:58]File name is /storage/kkm_last_timestamp [16:46:58]Write 4 bytes [16:46:58]NVStorageSaveData done [16:46:58]ExternCall_PrintAddStr [16:46:58]wPrintStart [16:46:58]Write to MH i2c: 01 00 00 3E 29 67 [16:46:58]Write i2c OK [16:46:58]MH_I2C_Read... [16:46:58]Read from MH i2c: 01 [16:46:58]MH_I2C_Read... [16:46:58]Read from MH i2c: 01 07 00 [16:46:58]MH_I2C_Read... [16:46:58]Read from MH i2c: 01 07 00 3E 29 00 00 00 00 00 FF 0F 7C [16:46:58]RasterBufferAndPrint [16:46:58]line Счет N : (1)459478 [16:46:58]line ИНН: 02508201610067 [16:46:58]line Контрольно-Кассовый Чек [16:46:58]line ПРОДАЖА [16:46:58]line ТРК (МРК, ГНК) : 12 [16:46:58]line Товар: 2710124130 [16:46:58]line Аи-92-К-5 [16:46:58]line 6.140 * 65.22 [16:46:58]line = 400.45 [16:46:58]line НДС 12% НСП 1% [16:46:58]line > о реализуемом товаре [16:46:58]line ИТОГО: 400.45 [16:46:58]line НСП 1% : 3.54 [16:46:58]line НДС 12% : 42.53 [16:46:58]line Наличными: 0.00 [16:46:58]line Безнал.: 400.45 [16:46:58]line Место: АЗС № 72 "Партнер Нефть" [16:46:58]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:46:58]line СНО: Общий режим [16:46:58]line Чек 239 15.07.2024 16:46 [16:46:58]line Смена: 448 ФФД: 1.0 [16:46:58]line ЗНМ: 0300000160 [16:46:58]line РНМ: 0000000000090829 [16:46:58]line Версия ККМ: 001 [16:46:58]line Платежная система: KICB Банк [16:46:58]line ФМ: 0000000000874718 [16:46:58]line ФД: 165366 [16:46:58]line ФПД: 56035605256897 [16:46:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T164658&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165366&fm=56035605256897&tin=02508201610067®Number=0000000000090829&sum=40045 [16:46:58]OFD Sender: Processing packet 165366 [packets to send 106, broken 105] [16:46:58]ProducePacketName [16:46:58]name=ofd_packets/00165366 [16:46:58]OFD Sender: To server: pG, [16:46:58]CommunicateWithHost lk.salyk.kg:30040 [16:46:58]ConnectInit lk.salyk.kg [16:46:58]written 0, free lines is 4095 [16:46:58]Connected sock=10 [16:46: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 37 31 38 0F 01 00 00 50 CC 07 01 3E FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 17 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6D 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 00 00 00 00 00 00 39 04 06 00 6D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 82 52 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F6 85 02 00 35 04 06 00 32 F6 CE 58 9A C1 D2 B6 32 67 48 25 55 EC [16:46:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 91 B0 47 00 D4 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F6 85 02 00 F4 03 04 00 0C F9 94 66 B6 04 01 00 00 79 EF F8 76 E2 CB C3 BA [16:46:59]CommunicateWithHost err = 0 [16:46:59]CheckOFDResponse [16:46:59]1017 (14) - 77093643461234 [16:46:59]1041 (16) - 0000000000874718 [16:46:59]1040 (4) - 165366 [16:46:59]1012 (4) - 15.07.2024 10:25 [16:46:59]1206 (1) - 0 [16:46:59]OFD Sender: Remove packet 165366 [16:46:59]ProducePacketName [16:46:59]name=ofd_packets/00165366 [16:46:59]NVStorageDeleteData [16:46:59]Write to MH i2c: 01 00 00 67 29 90 [16:46:59]Write i2c OK [16:46:59]MH_I2C_Read... [16:46:59]Read from MH i2c: 01 [16:46:59]MH_I2C_Read... [16:46:59]Read from MH i2c: 01 07 00 [16:46:59]MH_I2C_Read... [16:46:59]Read from MH i2c: 01 07 00 67 29 00 00 00 00 00 0B 0D AF [16:46:59]RasterBufferAndPrint [16:46:59]line [16:46:59]line [16:46:59]line [16:46:59]line [16:46:59]line [16:46:59]written 0, free lines is 3345 [16:46:59]MH_Cut [16:46:59]Write to MH i2c: D1 01 00 6E 29 01 69 [16:46:59]Write i2c OK [16:46:59]MH_I2C_Read... [16:46:59]Read from MH i2c: D1 [16:46:59]MH_I2C_Read... [16:46:59]Read from MH i2c: D1 01 00 [16:46:59]MH_I2C_Read... [16:46:59]Read from MH i2c: D1 01 00 6E 29 00 68 [16:46:59]Write to MH i2c: 01 00 00 6F 29 98 [16:46:59]Write i2c OK [16:46:59]MH_I2C_Read... [16:46:59]OFD Sender: No OFD packet to send [16:46:59]*** Cut start [16:46:59]*** Partial cut [16:46:59]*** CUTSNS_PIN = 1 [16:46:59]*** CUTSNS_PIN = 0 [16:47:00]*** Brake cut motor [16:47:00]Read from MH i2c: 01 [16:47:00]MH_I2C_Read... [16:47:00]*** Stop cut motor [16:47:00]*** Cut end [16:47:00]Read from MH i2c: 01 07 00 [16:47:00]MH_I2C_Read... [16:47:00]Read from MH i2c: 01 07 00 6F 29 00 00 00 00 00 FF 0F AD [16:47:00]process_action close_receipt done [16:47:00]requested_data is exist [16:47:00]produce_requested_data [16:47:00]requested_item fm.sn is exist - process it [16:47:00]wFMCommunicate request_size=4 [16:47:00]MH_SAM_APDU [16:47:00]CAPDU: 80 11 00 00 [16:47:00]Write to MH i2c: E2 08 00 70 29 80 11 00 00 00 00 00 00 13 [16:47:00]Write i2c OK [16:47:00]MH_I2C_Read... [16:47:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:00]Read from MH i2c: E2 [16:47:00]MH_I2C_Read... [16:47:00]Read from MH i2c: E2 17 00 [16:47:00]MH_I2C_Read... [16:47:00]Read from MH i2c: E2 17 00 70 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 69 [16:47:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:47:00]wFMCommunicate OK [16:47:00]requested_item fd.num is exist - process it [16:47:00]SAM_PROTO_GetFieldsCounters [16:47:00]wFMCommunicate request_size=4 [16:47:00]MH_SAM_APDU [16:47:00]CAPDU: 80 13 00 00 [16:47:00]Write to MH i2c: E2 08 00 71 29 80 13 00 00 00 00 00 00 16 [16:47:00]Write i2c OK [16:47:00]MH_I2C_Read... [16:47:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:47:00]Read from MH i2c: E2 [16:47:00]MH_I2C_Read... [16:47:00]Read from MH i2c: E2 62 00 [16:47:00]MH_I2C_Read... [16:47:00]Read from MH i2c: E2 62 00 71 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F6 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [16:47: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F6 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:47:00]wFMCommunicate OK [16:47:00]SAM_PROTO_GetFieldsCounters done [16:47:00]requested_item shift.num is exist - process it [16:47:00]requested_item shift.opened is exist - process it [16:47:00]req_shift_opened [16:47:00]FM_GetShiftState [16:47:00]SAM_PROTO_GetShiftState [16:47:00]wFMCommunicate request_size=4 [16:47:00]MH_SAM_APDU [16:47:00]CAPDU: 80 13 01 00 [16:47:00]Write to MH i2c: E2 08 00 72 29 80 13 01 00 00 00 00 00 18 [16:47:00]Write i2c OK [16:47:00]MH_I2C_Read... [16:47:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:00]Read from MH i2c: E2 [16:47:00]MH_I2C_Read... [16:47:00]Read from MH i2c: E2 0E 00 [16:47:00]MH_I2C_Read... [16:47:00]Read from MH i2c: E2 0E 00 72 29 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 F1 [16:47:00]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [16:47:00]wFMCommunicate OK [16:47:00]SAM_PROTO_GetShiftState done [16:47:00]FM_GetShiftState done [16:47:00]req_shift_opened done [16:47:00]requested_item shift.open_date is exist - process it [16:47:00]req_shift_open_date [16:47:00]req_shift_open_date done [16:47:00]produce_requested_data done [16:47:00]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165366,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [16:47:00]process_action_free close_receipt [16:47:00]json_value_free [16:47:00]json_value_free done [16:47:00]process_json_proto returns [16:47:00]Send response to host [16:47:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165366,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [16:47:00]free response buf [16:47:00]execute_script done [16:47:00]execute_script returns [16:47:00]free content buf [16:47:00]Sock 8.Close socket [16:47:00]Sock 8.Thread stoped [16:47:04]OFD Sender: No OFD packet to send [16:47:09]OFD Sender: No OFD packet to send [16:47:14]OFD Sender: No OFD packet to send [16:47:19]OFD Sender: No OFD packet to send [16:47:24]OFD Sender: No OFD packet to send [16:47:29]OFD Sender: No OFD packet to send [16:47:34]OFD Sender: No OFD packet to send [16:47:39]OFD Sender: No OFD packet to send [16:47:44]OFD Sender: No OFD packet to send [16:47:49]OFD Sender: No OFD packet to send [16:47:54]OFD Sender: No OFD packet to send [16:47:59]OFD Sender: No OFD packet to send [16:48:04]OFD Sender: No OFD packet to send [16:48:09]OFD Sender: No OFD packet to send [16:48:14]OFD Sender: No OFD packet to send [16:48:19]OFD Sender: No OFD packet to send [16:48:24]OFD Sender: No OFD packet to send [16:48:29]OFD Sender: No OFD packet to send [16:48:34]OFD Sender: No OFD packet to send [16:48:39]OFD Sender: No OFD packet to send [16:48:44]OFD Sender: No OFD packet to send [16:48:49]OFD Sender: No OFD packet to send [16:48:54]OFD Sender: No OFD packet to send [16:48:59]OFD Sender: No OFD packet to send [16:49:04]OFD Sender: No OFD packet to send [16:49:09]OFD Sender: No OFD packet to send [16:49:14]OFD Sender: No OFD packet to send [16:49:19]OFD Sender: No OFD packet to send [16:49:24]OFD Sender: No OFD packet to send [16:49:29]OFD Sender: No OFD packet to send [16:49:34]OFD Sender: No OFD packet to send [16:49:39]OFD Sender: No OFD packet to send [16:49:44]OFD Sender: No OFD packet to send [16:49:49]OFD Sender: No OFD packet to send [16:49:54]OFD Sender: No OFD packet to send [16:49:59]OFD Sender: No OFD packet to send [16:50:04]OFD Sender: No OFD packet to send [16:50:09]OFD Sender: No OFD packet to send [16:50:14]OFD Sender: No OFD packet to send [16:50:19]OFD Sender: No OFD packet to send [16:50:24]OFD Sender: No OFD packet to send [16:50:29]OFD Sender: No OFD packet to send [16:50:34]OFD Sender: No OFD packet to send [16:50:39]OFD Sender: No OFD packet to send [16:50:44]OFD Sender: No OFD packet to send [16:50:49]OFD Sender: No OFD packet to send [16:50:54]OFD Sender: No OFD packet to send [16:50:59]OFD Sender: No OFD packet to send [16:51:04]OFD Sender: No OFD packet to send [16:51:09]OFD Sender: No OFD packet to send [16:51:14]OFD Sender: No OFD packet to send [16:51:19]OFD Sender: No OFD packet to send [16:51:24]OFD Sender: No OFD packet to send [16:51:30]OFD Sender: No OFD packet to send [16:51:35]OFD Sender: No OFD packet to send [16:51:40]OFD Sender: No OFD packet to send [16:51:45]OFD Sender: No OFD packet to send [16:51:50]OFD Sender: No OFD packet to send [16:51:55]OFD Sender: No OFD packet to send [16:52:00]OFD Sender: No OFD packet to send [16:52:05]OFD Sender: No OFD packet to send [16:52:10]OFD Sender: No OFD packet to send [16:52:15]OFD Sender: No OFD packet to send [16:52:20]OFD Sender: No OFD packet to send [16:52:25]OFD Sender: No OFD packet to send [16:52:30]OFD Sender: No OFD packet to send [16:52:35]OFD Sender: No OFD packet to send [16:52:40]OFD Sender: No OFD packet to send [16:52:45]OFD Sender: No OFD packet to send [16:52:50]OFD Sender: No OFD packet to send [16:52:55]OFD Sender: No OFD packet to send [16:53:00]OFD Sender: No OFD packet to send [16:53:05]OFD Sender: No OFD packet to send [16:53:10]OFD Sender: No OFD packet to send [16:53:15]OFD Sender: No OFD packet to send [16:53:20]OFD Sender: No OFD packet to send [16:53:25]OFD Sender: No OFD packet to send [16:53:30]OFD Sender: No OFD packet to send [16:53:35]OFD Sender: No OFD packet to send [16:53:40]OFD Sender: No OFD packet to send [16:53:45]OFD Sender: No OFD packet to send [16:53:50]OFD Sender: No OFD packet to send [16:53:55]OFD Sender: No OFD packet to send [16:54:00]OFD Sender: No OFD packet to send [16:54:05]OFD Sender: No OFD packet to send [16:54:10]OFD Sender: No OFD packet to send [16:54:15]OFD Sender: No OFD packet to send [16:54:20]OFD Sender: No OFD packet to send [16:54:25]OFD Sender: No OFD packet to send [16:54:30]OFD Sender: No OFD packet to send [16:54:35]OFD Sender: No OFD packet to send [16:54:40]OFD Sender: No OFD packet to send [16:54:45]OFD Sender: No OFD packet to send [16:54:50]OFD Sender: No OFD packet to send [16:54:55]OFD Sender: No OFD packet to send [16:55:00]OFD Sender: No OFD packet to send [16:55:05]OFD Sender: No OFD packet to send [16:55:10]OFD Sender: No OFD packet to send [16:55:15]OFD Sender: No OFD packet to send [16:55:20]OFD Sender: No OFD packet to send [16:55:25]OFD Sender: No OFD packet to send [16:55:30]OFD Sender: No OFD packet to send [16:55:35]OFD Sender: No OFD packet to send [16:55:40]OFD Sender: No OFD packet to send [16:55:45]OFD Sender: No OFD packet to send [16:55:50]OFD Sender: No OFD packet to send [16:55:55]OFD Sender: No OFD packet to send [16:56:00]OFD Sender: No OFD packet to send [16:56:05]OFD Sender: No OFD packet to send [16:56:10]OFD Sender: No OFD packet to send [16:56:15]OFD Sender: No OFD packet to send [16:56:20]OFD Sender: No OFD packet to send [16:56:25]OFD Sender: No OFD packet to send [16:56:30]OFD Sender: No OFD packet to send [16:56:35]OFD Sender: No OFD packet to send [16:56:40]OFD Sender: No OFD packet to send [16:56:45]OFD Sender: No OFD packet to send [16:56:50]OFD Sender: No OFD packet to send [16:56:55]OFD Sender: No OFD packet to send [16:57:00]OFD Sender: No OFD packet to send [16:57:05]OFD Sender: No OFD packet to send [16:57:10]OFD Sender: No OFD packet to send [16:57:15]OFD Sender: No OFD packet to send [16:57:20]OFD Sender: No OFD packet to send [16:57:25]OFD Sender: No OFD packet to send [16:57:30]OFD Sender: No OFD packet to send [16:57:35]OFD Sender: No OFD packet to send [16:57:40]OFD Sender: No OFD packet to send [16:57:45]OFD Sender: No OFD packet to send [16:57:50]OFD Sender: No OFD packet to send [16:57:50]accept exits with 9 [16:57:50]New connection [16:57:50]New thread 3066711396 created [16:57:50]Thread 3066854756 joined [16:57:50]Waiting for new connection... [16:57:50] Sock 9.Parse request [16:57:50]Sock 9.Check first char [16:57:50]Sock 9.First char is OK [16:57:50]request: POST /json_proto HTTP/1.0 [16:57:50]Method: POST [16:57:50]URL: /json_proto [16:57:50]Method is POST - this is cgi request [16:57:50]url: /json_proto [16:57:50]query_string will be loaded in cgi processing [16:57:50]execute_cgi json_proto POST (null) [16:57:50]execute_cgi path=json_proto method=POST [16:57:50]POST find Content-Length [16:57:50]Host: 172.17.56.4:8080 [16:57:50]Content-Length: 787 [16:57:50]Content-Type: application/json [16:57:50] [16:57:50]POST finish read [16:57:50]Found Content-Length = 787 [16:57:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459479", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 4.210, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:57:50]execute_script... [16:57:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459479", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 4.210, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:57:50]POST & json_proto [16:57:50]process_json_proto [16:57:50]json parsed OK: [16:57:50]protocol is kg_v1.0 [16:57:50]action value=close_receipt [16:57:50]process_action close_receipt [16:57:50]cmd_close_receipt [16:57:50]MH_GetDate [16:57:50]Write to MH i2c: F0 00 00 73 29 8B [16:57:50]Write i2c OK [16:57:50]MH_I2C_Read... [16:57:50]Read from MH i2c: F0 [16:57:50]MH_I2C_Read... [16:57:50]Read from MH i2c: F0 09 00 [16:57:50]MH_I2C_Read... [16:57:50]Read from MH i2c: F0 09 00 73 29 00 10 55 95 66 C9 DC B2 64 AF [16:57:50]GetLastDocTimeStamp 1721062018 [16:57:50]current date 1721062672 [16:57:50]FM_GetShiftState [16:57:50]SAM_PROTO_GetShiftState [16:57:50]wFMCommunicate request_size=4 [16:57:50]MH_SAM_APDU [16:57:50]CAPDU: 80 13 01 00 [16:57:50]Write to MH i2c: E2 08 00 74 29 80 13 01 00 00 00 00 00 1A [16:57:50]Write i2c OK [16:57:50]MH_I2C_Read... [16:57:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:50]Read from MH i2c: E2 [16:57:50]MH_I2C_Read... [16:57:50]Read from MH i2c: E2 0E 00 [16:57:50]MH_I2C_Read... [16:57:50]Read from MH i2c: E2 0E 00 74 29 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 F3 [16:57:50]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [16:57:50]wFMCommunicate OK [16:57:50]SAM_PROTO_GetShiftState done [16:57:50]FM_GetShiftState done [16:57:50]opened in 1721003876 [16:57:50]opened+sec_in_day 1721090276 [16:57:50]quantity*price = 30000 [16:57:50]sum+1 = 30001 [16:57:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 0.00 Безнал.: 300.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 240 15.07.2024 16:57 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 165367 ФПД: 167710966237436 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T165752&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165367&fm=167710966237436&tin=02508201610067®Number=0000000000090829&sum=30000 [16:57:51]StoreToDocumentArchive [16:57:51]shift 448 fd 165367 [16:57:51]save to /storage/0448/doc_00165367 [16:57:51]save last doc name /storage/0448/doc_00165367 to /storage/kkm_last_doc_name [16:57:51]save OK [16:57:51]Clear old archive folders... [16:57:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:57:51]tlvbuf is 01929E20 [16:57:51]SAM_PROTO_ClearQueue [16:57:51]wFMCommunicate request_size=4 [16:57:51]MH_SAM_APDU [16:57:51]CAPDU: 80 09 00 00 [16:57:51]Write to MH i2c: E2 08 00 81 29 80 09 00 00 00 00 00 00 1C [16:57:51]Write i2c OK [16:57:51]MH_I2C_Read... [16:57:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:57:51]Read from MH i2c: E2 [16:57:51]MH_I2C_Read... [16:57:51]Read from MH i2c: E2 03 00 [16:57:51]MH_I2C_Read... [16:57:51]Read from MH i2c: E2 03 00 81 29 00 90 00 1E [16:57:51]RAPDU: 90 00 [16:57:51]wFMCommunicate OK [16:57:51]SAM_PROTO_ClearQueue done [16:57:51]KKMCreateOFDPacket [16:57:51]OFDProtocolAddRootSTLVToBuf [16:57:51]FM_MakeSignedData [16:57:51]FM_MakeSignedData [16:57:51]SAM_PROTO_SignData [16:57:51]wFMCommunicate request_size=4 [16:57:51]MH_SAM_APDU [16:57:51]CAPDU: 80 0D 01 02 [16:57:51]Write to MH i2c: E2 08 00 82 29 80 0D 01 02 00 00 00 00 24 [16:57:51]Write i2c OK [16:57:51]MH_I2C_Read... [16:57:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:57:51]Read from MH i2c: E2 [16:57:51]MH_I2C_Read... [16:57:51]Read from MH i2c: E2 03 00 [16:57:51]MH_I2C_Read... [16:57:51]Read from MH i2c: E2 03 00 82 29 00 90 00 1F [16:57:51]RAPDU: 90 00 [16:57:51]wFMCommunicate OK [16:57:51]wFMCommunicate request_size=255 [16:57:51]MH_SAM_APDU [16:57:51]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 10 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 10 55 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F7 85 02 00 35 04 06 00 98 88 40 91 [16:57:51]Write to MH i2c: E2 02 01 83 29 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 10 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 10 55 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F7 85 02 00 35 04 06 00 98 88 40 91 00 00 F1 [16:57:51]Write i2c OK [16:57:51]MH_I2C_Read... [16:57:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:52]Read from MH i2c: E2 [16:57:52]MH_I2C_Read... [16:57:52]Read from MH i2c: E2 03 00 [16:57:52]MH_I2C_Read... [16:57:52]Read from MH i2c: E2 03 00 83 29 00 90 00 20 [16:57:52]RAPDU: 90 00 [16:57:52]wFMCommunicate OK [16:57:52]wFMCommunicate request_size=7 [16:57:52]MH_SAM_APDU [16:57:52]CAPDU: 80 0D 02 02 02 48 FC [16:57:52]Write to MH i2c: E2 0A 00 84 29 80 0D 02 02 02 00 48 FC 00 00 6F [16:57:52]Write i2c OK [16:57:52]MH_I2C_Read... [16:57:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:52]Read from MH i2c: E2 [16:57:52]MH_I2C_Read... [16:57:52]Read from MH i2c: E2 03 00 [16:57:52]MH_I2C_Read... [16:57:52]Read from MH i2c: E2 03 00 84 29 00 90 00 21 [16:57:52]RAPDU: 90 00 [16:57:52]wFMCommunicate OK [16:57:52]wFMCommunicate request_size=4 [16:57:52]MH_SAM_APDU [16:57:52]CAPDU: 80 0D 03 02 [16:57:52]Write to MH i2c: E2 08 00 85 29 80 0D 03 02 00 00 00 00 29 [16:57:52]Write i2c OK [16:57:52]MH_I2C_Read... [16:57:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:57:52]Read from MH i2c: E2 [16:57:52]MH_I2C_Read... [16:57:52]Read from MH i2c: E2 0B 00 [16:57:52]MH_I2C_Read... [16:57:52]Read from MH i2c: E2 0B 00 85 29 00 10 4A 1D 14 8D 67 B6 A8 90 00 07 [16:57:52]RAPDU: 10 4A 1D 14 8D 67 B6 A8 90 00 [16:57:52]wFMCommunicate OK [16:57:52]SAM_PROTO_SignData done [16:57:52]FM_MakeSignedData done [16:57:52]CreateOFDProtocolMessage [16:57:52]wFMCommunicate request_size=4 [16:57:52]MH_SAM_APDU [16:57:52]CAPDU: 80 11 00 00 [16:57:52]Write to MH i2c: E2 08 00 86 29 80 11 00 00 00 00 00 00 29 [16:57:52]Write i2c OK [16:57:52]MH_I2C_Read... [16:57:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:52]Read from MH i2c: E2 [16:57:52]MH_I2C_Read... [16:57:52]Read from MH i2c: E2 17 00 [16:57:52]MH_I2C_Read... [16:57:52]Read from MH i2c: E2 17 00 86 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7F [16:57:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:57:52]wFMCommunicate OK [16:57:52]CreateOFDProtocolMessage done [16:57:52]OFDSenderStorePacket 165367 [16:57:52]StoreOFDPacket docnum=165367 [16:57:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 C5 42 04 01 A9 FB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 10 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 10 55 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F7 85 02 00 35 04 06 00 98 88 40 91 48 FC 10 4A 1D 14 8D 67 B6 A8 [16:57:52]CheckFolder [16:57:52]dirname=/storage/ofd_packets [16:57:52]CheckFolder done [16:57:52]ProducePacketName [16:57:52]name=ofd_packets/00165367 [16:57:52]NVStorageSaveData ofd_packets/00165367 [16:57:52]File name is /storage/ofd_packets/00165367 [16:57:52]Write 298 bytes [16:57:52]NVStorageSaveData done [16:57:52]OFDSenderStorePacket done [16:57:52]KKMCreateOFDPacket done [16:57:52]NVStorageSaveData kkm_last_timestamp [16:57:52]File name is /storage/kkm_last_timestamp [16:57:52]Write 4 bytes [16:57:52]NVStorageSaveData done [16:57:52]ExternCall_PrintAddStr [16:57:52]wPrintStart [16:57:52]Write to MH i2c: 01 00 00 87 29 B0 [16:57:52]Write i2c OK [16:57:52]MH_I2C_Read... [16:57:52]Read from MH i2c: 01 [16:57:52]MH_I2C_Read... [16:57:52]Read from MH i2c: 01 07 00 [16:57:52]MH_I2C_Read... [16:57:52]Read from MH i2c: 01 07 00 87 29 00 00 00 00 00 FF 0F C5 [16:57:52]RasterBufferAndPrint [16:57:52]line Счет N : (1)459479 [16:57:52]line ИНН: 02508201610067 [16:57:52]line Контрольно-Кассовый Чек [16:57:52]line ПРОДАЖА [16:57:52]line ТРК (МРК, ГНК) : 11 [16:57:52]line Товар: 2710194210 [16:57:52]line ДТ-К-5 [16:57:52]line 4.210 * 71.26 [16:57:52]line = 300.00 [16:57:52]line НДС 12% НСП 1% [16:57:52]line > о реализуемом товаре [16:57:52]line ИТОГО: 300.00 [16:57:52]line НСП 1% : 2.65 [16:57:52]line НДС 12% : 31.86 [16:57:52]line Наличными: 0.00 [16:57:52]line Безнал.: 300.00 [16:57:52]line Место: АЗС № 72 "Партнер Нефть" [16:57:52]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [16:57:52]line СНО: Общий режим [16:57:52]line Чек 240 15.07.2024 16:57 [16:57:52]line Смена: 448 ФФД: 1.0 [16:57:52]line ЗНМ: 0300000160 [16:57:52]line РНМ: 0000000000090829 [16:57:52]line Версия ККМ: 001 [16:57:52]line Платежная система: KICB Банк [16:57:52]line ФМ: 0000000000874718 [16:57:52]line ФД: 165367 [16:57:52]line ФПД: 167710966237436 [16:57:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T165752&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165367&fm=167710966237436&tin=02508201610067®Number=0000000000090829&sum=30000 [16:57:52]OFD Sender: Processing packet 165367 [packets to send 106, broken 105] [16:57:52]ProducePacketName [16:57:52]name=ofd_packets/00165367 [16:57:52]OFD Sender: To server: pG, [16:57:52]CommunicateWithHost lk.salyk.kg:30040 [16:57:52]ConnectInit lk.salyk.kg [16:57:52]written 0, free lines is 4095 [16:57:52]Connected sock=10 [16:57:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 C5 42 04 01 A9 FB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 10 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 10 55 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F7 85 02 00 35 04 06 00 98 88 40 91 48 FC 10 4A 1D 14 8D 67 B6 A8 [16:57:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 09 63 47 00 32 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 37 31 38 10 04 04 00 F7 85 02 00 F4 03 04 00 9A FB 94 66 B6 04 01 00 00 68 C2 3D A4 51 B8 D8 F7 [16:57:53]CommunicateWithHost err = 0 [16:57:53]CheckOFDResponse [16:57:53]1017 (14) - 77093643461234 [16:57:53]1041 (16) - 0000000000874718 [16:57:53]1040 (4) - 165367 [16:57:53]1012 (4) - 15.07.2024 10:36 [16:57:53]1206 (1) - 0 [16:57:53]OFD Sender: Remove packet 165367 [16:57:53]ProducePacketName [16:57:53]name=ofd_packets/00165367 [16:57:53]NVStorageDeleteData [16:57:53]Write to MH i2c: 01 00 00 B0 29 D9 [16:57:53]Write i2c OK [16:57:53]MH_I2C_Read... [16:57:53]Read from MH i2c: 01 [16:57:53]MH_I2C_Read... [16:57:53]Read from MH i2c: 01 07 00 [16:57:53]MH_I2C_Read... [16:57:53]Read from MH i2c: 01 07 00 B0 29 00 00 00 00 00 FD 0C E9 [16:57:53]RasterBufferAndPrint [16:57:53]line [16:57:53]line [16:57:53]line [16:57:53]line [16:57:53]line [16:57:53]written 0, free lines is 3332 [16:57:53]MH_Cut [16:57:53]Write to MH i2c: D1 01 00 B7 29 01 B2 [16:57:53]Write i2c OK [16:57:53]MH_I2C_Read... [16:57:53]Read from MH i2c: D1 [16:57:53]MH_I2C_Read... [16:57:53]Read from MH i2c: D1 01 00 [16:57:53]MH_I2C_Read... [16:57:53]Read from MH i2c: D1 01 00 B7 29 00 B1 [16:57:53]Write to MH i2c: 01 00 00 B8 29 E1 [16:57:53]Write i2c OK [16:57:53]MH_I2C_Read... [16:57:53]OFD Sender: No OFD packet to send [16:57:53]*** Cut start [16:57:53]*** Partial cut [16:57:53]*** CUTSNS_PIN = 1 [16:57:53]*** CUTSNS_PIN = 0 [16:57:54]*** Brake cut motor [16:57:54]Read from MH i2c: 01 [16:57:54]MH_I2C_Read... [16:57:54]*** Stop cut motor [16:57:54]*** Cut end [16:57:54]Read from MH i2c: 01 07 00 [16:57:54]MH_I2C_Read... [16:57:54]Read from MH i2c: 01 07 00 B8 29 00 00 00 00 00 FF 0F F6 [16:57:54]process_action close_receipt done [16:57:54]requested_data is exist [16:57:54]produce_requested_data [16:57:54]requested_item fm.sn is exist - process it [16:57:54]wFMCommunicate request_size=4 [16:57:54]MH_SAM_APDU [16:57:54]CAPDU: 80 11 00 00 [16:57:54]Write to MH i2c: E2 08 00 B9 29 80 11 00 00 00 00 00 00 5C [16:57:54]Write i2c OK [16:57:54]MH_I2C_Read... [16:57:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:54]Read from MH i2c: E2 [16:57:54]MH_I2C_Read... [16:57:54]Read from MH i2c: E2 17 00 [16:57:54]MH_I2C_Read... [16:57:54]Read from MH i2c: E2 17 00 B9 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B2 [16:57:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [16:57:54]wFMCommunicate OK [16:57:54]requested_item fd.num is exist - process it [16:57:54]SAM_PROTO_GetFieldsCounters [16:57:54]wFMCommunicate request_size=4 [16:57:54]MH_SAM_APDU [16:57:54]CAPDU: 80 13 00 00 [16:57:54]Write to MH i2c: E2 08 00 BA 29 80 13 00 00 00 00 00 00 5F [16:57:54]Write i2c OK [16:57:54]MH_I2C_Read... [16:57:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:57:54]Read from MH i2c: E2 [16:57:54]MH_I2C_Read... [16:57:54]Read from MH i2c: E2 62 00 [16:57:54]MH_I2C_Read... [16:57:54]Read from MH i2c: E2 62 00 BA 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F7 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 95 [16:57:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F7 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:57:54]wFMCommunicate OK [16:57:54]SAM_PROTO_GetFieldsCounters done [16:57:54]requested_item shift.num is exist - process it [16:57:54]requested_item shift.opened is exist - process it [16:57:54]req_shift_opened [16:57:54]FM_GetShiftState [16:57:54]SAM_PROTO_GetShiftState [16:57:54]wFMCommunicate request_size=4 [16:57:54]MH_SAM_APDU [16:57:54]CAPDU: 80 13 01 00 [16:57:54]Write to MH i2c: E2 08 00 BB 29 80 13 01 00 00 00 00 00 61 [16:57:54]Write i2c OK [16:57:54]MH_I2C_Read... [16:57:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:54]Read from MH i2c: E2 [16:57:54]MH_I2C_Read... [16:57:54]Read from MH i2c: E2 0E 00 [16:57:54]MH_I2C_Read... [16:57:54]Read from MH i2c: E2 0E 00 BB 29 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 3A [16:57:54]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [16:57:54]wFMCommunicate OK [16:57:54]SAM_PROTO_GetShiftState done [16:57:54]FM_GetShiftState done [16:57:54]req_shift_opened done [16:57:54]requested_item shift.open_date is exist - process it [16:57:54]req_shift_open_date [16:57:54]req_shift_open_date done [16:57:54]produce_requested_data done [16:57:54]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165367,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [16:57:54]process_action_free close_receipt [16:57:54]json_value_free [16:57:54]json_value_free done [16:57:54]process_json_proto returns [16:57:54]Send response to host [16:57:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165367,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [16:57:54]free response buf [16:57:54]execute_script done [16:57:54]execute_script returns [16:57:54]free content buf [16:57:54]Sock 9.Close socket [16:57:54]Sock 9.Thread stoped [16:57:58]OFD Sender: No OFD packet to send [16:58:03]OFD Sender: No OFD packet to send [16:58:08]OFD Sender: No OFD packet to send [16:58:13]OFD Sender: No OFD packet to send [16:58:18]OFD Sender: No OFD packet to send [16:58:23]OFD Sender: No OFD packet to send [16:58:28]OFD Sender: No OFD packet to send [16:58:33]OFD Sender: No OFD packet to send [16:58:38]OFD Sender: No OFD packet to send [16:58:43]OFD Sender: No OFD packet to send [16:58:48]OFD Sender: No OFD packet to send [16:58:53]OFD Sender: No OFD packet to send [16:58:58]OFD Sender: No OFD packet to send [16:59:03]OFD Sender: No OFD packet to send [16:59:08]OFD Sender: No OFD packet to send [16:59:13]OFD Sender: No OFD packet to send [16:59:18]OFD Sender: No OFD packet to send [16:59:23]OFD Sender: No OFD packet to send [16:59:28]OFD Sender: No OFD packet to send [16:59:33]OFD Sender: No OFD packet to send [16:59:38]OFD Sender: No OFD packet to send [16:59:43]OFD Sender: No OFD packet to send [16:59:48]OFD Sender: No OFD packet to send [16:59:53]OFD Sender: No OFD packet to send [16:59:58]OFD Sender: No OFD packet to send [17:00:03]OFD Sender: No OFD packet to send [17:00:07]accept exits with 8 [17:00:07]New connection [17:00:07]New thread 3066854756 created [17:00:07]Thread 3066711396 joined [17:00:07]Waiting for new connection... [17:00:07] Sock 8.Parse request [17:00:07]Sock 8.Check first char [17:00:07]Sock 8.First char is OK [17:00:07]request: POST /json_proto HTTP/1.0 [17:00:07]Method: POST [17:00:07]URL: /json_proto [17:00:07]Method is POST - this is cgi request [17:00:07]url: /json_proto [17:00:07]query_string will be loaded in cgi processing [17:00:07]execute_cgi json_proto POST (null) [17:00:07]execute_cgi path=json_proto method=POST [17:00:07]POST find Content-Length [17:00:07]Host: 172.17.56.4:8080 [17:00:07]Content-Length: 677 [17:00:07]Content-Type: application/json [17:00:07] [17:00:07]POST finish read [17:00:07]Found Content-Length = 677 [17:00:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459480", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:00:07]execute_script... [17:00: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)459480", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:00:07]POST & json_proto [17:00:07]process_json_proto [17:00:07]json parsed OK: [17:00:07]protocol is kg_v1.0 [17:00:07]action value=close_receipt [17:00:07]process_action close_receipt [17:00:07]cmd_close_receipt [17:00:07]MH_GetDate [17:00:07]Write to MH i2c: F0 00 00 BC 29 D4 [17:00:07]Write i2c OK [17:00:07]MH_I2C_Read... [17:00:07]Read from MH i2c: F0 [17:00:07]MH_I2C_Read... [17:00:07]Read from MH i2c: F0 09 00 [17:00:07]MH_I2C_Read... [17:00:07]Read from MH i2c: F0 09 00 BC 29 00 99 55 95 66 C9 DC B2 64 81 [17:00:07]GetLastDocTimeStamp 1721062672 [17:00:07]current date 1721062809 [17:00:07]FM_GetShiftState [17:00:07]SAM_PROTO_GetShiftState [17:00:07]wFMCommunicate request_size=4 [17:00:07]MH_SAM_APDU [17:00:07]CAPDU: 80 13 01 00 [17:00:07]Write to MH i2c: E2 08 00 BD 29 80 13 01 00 00 00 00 00 63 [17:00:07]Write i2c OK [17:00:07]MH_I2C_Read... [17:00:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:00:07]Read from MH i2c: E2 [17:00:07]MH_I2C_Read... [17:00:07]Read from MH i2c: E2 0E 00 [17:00:07]MH_I2C_Read... [17:00:07]Read from MH i2c: E2 0E 00 BD 29 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 3C [17:00:07]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [17:00:07]wFMCommunicate OK [17:00:07]SAM_PROTO_GetShiftState done [17:00:07]FM_GetShiftState done [17:00:07]opened in 1721003876 [17:00:07]opened+sec_in_day 1721090276 [17:00:07]quantity*price = 30004 [17:00:07]sum+1 = 30006 [17:00:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 241 15.07.2024 17:00 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165368 ФПД: 242166190773115 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T170009&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165368&fm=242166190773115&tin=02508201610067®Number=0000000000090829&sum=30000 [17:00:08]StoreToDocumentArchive [17:00:08]shift 448 fd 165368 [17:00:08]save to /storage/0448/doc_00165368 [17:00:08]save last doc name /storage/0448/doc_00165368 to /storage/kkm_last_doc_name [17:00:08]save OK [17:00:08]Clear old archive folders... [17:00:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:00:08]tlvbuf is 01811920 [17:00:08]SAM_PROTO_ClearQueue [17:00:08]wFMCommunicate request_size=4 [17:00:08]MH_SAM_APDU [17:00:08]CAPDU: 80 09 00 00 [17:00:08]Write to MH i2c: E2 08 00 CA 29 80 09 00 00 00 00 00 00 65 [17:00:08]Write i2c OK [17:00:08]MH_I2C_Read... [17:00:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:00:08]Read from MH i2c: E2 [17:00:08]MH_I2C_Read... [17:00:08]Read from MH i2c: E2 03 00 [17:00:08]MH_I2C_Read... [17:00:08]Read from MH i2c: E2 03 00 CA 29 00 90 00 67 [17:00:08]RAPDU: 90 00 [17:00:08]wFMCommunicate OK [17:00:08]SAM_PROTO_ClearQueue done [17:00:08]KKMCreateOFDPacket [17:00:08]OFDProtocolAddRootSTLVToBuf [17:00:08]FM_MakeSignedData [17:00:08]FM_MakeSignedData [17:00:08]SAM_PROTO_SignData [17:00:08]wFMCommunicate request_size=4 [17:00:08]MH_SAM_APDU [17:00:08]CAPDU: 80 0D 01 02 [17:00:08]Write to MH i2c: E2 08 00 CB 29 80 0D 01 02 00 00 00 00 6D [17:00:08]Write i2c OK [17:00:08]MH_I2C_Read... [17:00:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:00:08]Read from MH i2c: E2 [17:00:08]MH_I2C_Read... [17:00:08]Read from MH i2c: E2 03 00 [17:00:08]MH_I2C_Read... [17:00:08]Read from MH i2c: E2 03 00 CB 29 00 90 00 68 [17:00:08]RAPDU: 90 00 [17:00:08]wFMCommunicate OK [17:00:08]wFMCommunicate request_size=255 [17:00:08]MH_SAM_APDU [17:00:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 99 55 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F8 85 02 00 35 04 06 00 DC [17:00:08]Write to MH i2c: E2 02 01 CC 29 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 99 55 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F8 85 02 00 35 04 06 00 DC 00 00 9D [17:00:08]Write i2c OK [17:00:08]MH_I2C_Read... [17:00:08]OFD Sender: No OFD packet to send [17:00:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:00:08]Read from MH i2c: E2 [17:00:08]MH_I2C_Read... [17:00:08]Read from MH i2c: E2 03 00 [17:00:08]MH_I2C_Read... [17:00:08]Read from MH i2c: E2 03 00 CC 29 00 90 00 69 [17:00:08]RAPDU: 90 00 [17:00:08]wFMCommunicate OK [17:00:08]wFMCommunicate request_size=10 [17:00:08]MH_SAM_APDU [17:00:08]CAPDU: 80 0D 02 02 05 3F B5 C7 13 7B [17:00:08]Write to MH i2c: E2 0D 00 CD 29 80 0D 02 02 05 00 3F B5 C7 13 7B 00 00 C3 [17:00:08]Write i2c OK [17:00:08]MH_I2C_Read... [17:00:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:00:08]Read from MH i2c: E2 [17:00:08]MH_I2C_Read... [17:00:08]Read from MH i2c: E2 03 00 [17:00:08]MH_I2C_Read... [17:00:08]Read from MH i2c: E2 03 00 CD 29 00 90 00 6A [17:00:08]RAPDU: 90 00 [17:00:08]wFMCommunicate OK [17:00:08]wFMCommunicate request_size=4 [17:00:08]MH_SAM_APDU [17:00:08]CAPDU: 80 0D 03 02 [17:00:08]Write to MH i2c: E2 08 00 CE 29 80 0D 03 02 00 00 00 00 72 [17:00:08]Write i2c OK [17:00:08]MH_I2C_Read... [17:00:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:00:08]Read from MH i2c: E2 [17:00:08]MH_I2C_Read... [17:00:08]Read from MH i2c: E2 0B 00 [17:00:08]MH_I2C_Read... [17:00:08]Read from MH i2c: E2 0B 00 CE 29 00 BE A9 9B 6B 09 8C 09 02 90 00 80 [17:00:08]RAPDU: BE A9 9B 6B 09 8C 09 02 90 00 [17:00:08]wFMCommunicate OK [17:00:08]SAM_PROTO_SignData done [17:00:08]FM_MakeSignedData done [17:00:08]CreateOFDProtocolMessage [17:00:08]wFMCommunicate request_size=4 [17:00:08]MH_SAM_APDU [17:00:08]CAPDU: 80 11 00 00 [17:00:08]Write to MH i2c: E2 08 00 CF 29 80 11 00 00 00 00 00 00 72 [17:00:08]Write i2c OK [17:00:08]MH_I2C_Read... [17:00:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:00:08]Read from MH i2c: E2 [17:00:08]MH_I2C_Read... [17:00:08]Read from MH i2c: E2 17 00 [17:00:08]MH_I2C_Read... [17:00:08]Read from MH i2c: E2 17 00 CF 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C8 [17:00:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:00:08]wFMCommunicate OK [17:00:08]CreateOFDProtocolMessage done [17:00:08]OFDSenderStorePacket 165368 [17:00:08]StoreOFDPacket docnum=165368 [17:00:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 06 EE 07 01 9B A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 99 55 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F8 85 02 00 35 04 06 00 DC 3F B5 C7 13 7B BE A9 9B 6B 09 8C 09 02 [17:00:08]CheckFolder [17:00:08]dirname=/storage/ofd_packets [17:00:08]CheckFolder done [17:00:08]ProducePacketName [17:00:08]name=ofd_packets/00165368 [17:00:08]NVStorageSaveData ofd_packets/00165368 [17:00:08]File name is /storage/ofd_packets/00165368 [17:00:08]Write 301 bytes [17:00:08]NVStorageSaveData done [17:00:08]OFDSenderStorePacket done [17:00:08]KKMCreateOFDPacket done [17:00:08]NVStorageSaveData kkm_last_timestamp [17:00:08]File name is /storage/kkm_last_timestamp [17:00:08]Write 4 bytes [17:00:08]NVStorageSaveData done [17:00:08]ExternCall_PrintAddStr [17:00:08]wPrintStart [17:00:08]Write to MH i2c: 01 00 00 D0 29 F9 [17:00:08]Write i2c OK [17:00:08]MH_I2C_Read... [17:00:08]Read from MH i2c: 01 [17:00:08]MH_I2C_Read... [17:00:08]Read from MH i2c: 01 07 00 [17:00:08]MH_I2C_Read... [17:00:08]Read from MH i2c: 01 07 00 D0 29 00 00 00 00 00 FF 0F 0E [17:00:08]RasterBufferAndPrint [17:00:08]line Счет N : (1)459480 [17:00:08]line ИНН: 02508201610067 [17:00:08]line Контрольно-Кассовый Чек [17:00:08]line ПРОДАЖА [17:00:08]line ТРК (МРК, ГНК) : 22 [17:00:08]line Товар: 2710124130 [17:00:08]line Аи-92-К-5 [17:00:08]line 4.560 * 65.80 [17:00:08]line = 300.05 [17:00:08]line НДС 12% НСП 1% [17:00:08]line > о реализуемом товаре [17:00:08]line ОКРУГЛЕНИЕ: -0.05 [17:00:08]line ИТОГО: 300.00 [17:00:08]line Внесено: 300.00 [17:00:08]line СДАЧА: 0.00 [17:00:08]line НСП 1% : 2.65 [17:00:08]line НДС 12% : 31.86 [17:00:08]line Наличными: 300.00 [17:00:08]line Безнал.: 0.00 [17:00:08]line Место: АЗС № 72 "Партнер Нефть" [17:00:08]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:00:08]line СНО: Общий режим [17:00:08]line Чек 241 15.07.2024 17:00 [17:00:08]line Смена: 448 ФФД: 1.0 [17:00:08]line ЗНМ: 0300000160 [17:00:08]line РНМ: 0000000000090829 [17:00:08]line Версия ККМ: 001 [17:00:08]line ФМ: 0000000000874718 [17:00:08]line ФД: 165368 [17:00:08]line ФПД: 242166190773115 [17:00:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T170009&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165368&fm=242166190773115&tin=02508201610067®Number=0000000000090829&sum=30000 [17:00:08]written 0, free lines is 4095 [17:00:08]OFD Sender: Processing packet 165368 [packets to send 106, broken 105] [17:00:08]ProducePacketName [17:00:08]name=ofd_packets/00165368 [17:00:08]OFD Sender: To server: pG, [17:00:08]CommunicateWithHost lk.salyk.kg:30040 [17:00:08]ConnectInit lk.salyk.kg [17:00:09]Connected sock=10 [17:00: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 37 31 38 0F 01 00 00 06 EE 07 01 9B A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 99 55 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F8 85 02 00 35 04 06 00 DC 3F B5 C7 13 7B BE A9 9B 6B 09 8C 09 02 [17:00:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 F0 B7 47 00 92 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 37 31 38 10 04 04 00 F8 85 02 00 F4 03 04 00 22 FC 94 66 B6 04 01 00 00 87 05 0C 75 5E 44 8C 88 [17:00:09]CommunicateWithHost err = 0 [17:00:09]CheckOFDResponse [17:00:09]1017 (14) - 77093643461234 [17:00:09]1041 (16) - 0000000000874718 [17:00:09]1040 (4) - 165368 [17:00:09]1012 (4) - 15.07.2024 10:38 [17:00:09]1206 (1) - 0 [17:00:09]OFD Sender: Remove packet 165368 [17:00:09]ProducePacketName [17:00:09]name=ofd_packets/00165368 [17:00:09]NVStorageDeleteData [17:00:09]Write to MH i2c: 01 00 00 FA 29 23 [17:00:09]Write i2c OK [17:00:09]MH_I2C_Read... [17:00:09]Read from MH i2c: 01 [17:00:09]MH_I2C_Read... [17:00:09]Read from MH i2c: 01 07 00 [17:00:09]MH_I2C_Read... [17:00:09]Read from MH i2c: 01 07 00 FA 29 00 00 00 00 00 02 0D 39 [17:00:09]RasterBufferAndPrint [17:00:09]line [17:00:09]line [17:00:09]line [17:00:09]line [17:00:09]line [17:00:09]written 0, free lines is 3336 [17:00:09]MH_Cut [17:00:09]Write to MH i2c: D1 01 00 01 2A 01 FD [17:00:09]Write i2c OK [17:00:09]MH_I2C_Read... [17:00:09]Read from MH i2c: D1 [17:00:09]MH_I2C_Read... [17:00:09]Read from MH i2c: D1 01 00 [17:00:09]MH_I2C_Read... [17:00:09]Read from MH i2c: D1 01 00 01 2A 00 FC [17:00:09]Write to MH i2c: 01 00 00 02 2A 2C [17:00:09]Write i2c OK [17:00:09]MH_I2C_Read... [17:00:09]OFD Sender: No OFD packet to send [17:00:09]*** Cut start [17:00:09]*** Partial cut [17:00:09]*** CUTSNS_PIN = 1 [17:00:10]*** CUTSNS_PIN = 0 [17:00:10]*** Brake cut motor [17:00:10]Read from MH i2c: 01 [17:00:10]MH_I2C_Read... [17:00:10]*** Stop cut motor [17:00:10]*** Cut end [17:00:10]Read from MH i2c: 01 07 00 [17:00:10]MH_I2C_Read... [17:00:10]Read from MH i2c: 01 07 00 02 2A 00 00 00 00 00 FF 0F 41 [17:00:10]process_action close_receipt done [17:00:10]requested_data is exist [17:00:10]produce_requested_data [17:00:10]requested_item fm.sn is exist - process it [17:00:10]wFMCommunicate request_size=4 [17:00:10]MH_SAM_APDU [17:00:10]CAPDU: 80 11 00 00 [17:00:10]Write to MH i2c: E2 08 00 03 2A 80 11 00 00 00 00 00 00 A7 [17:00:10]Write i2c OK [17:00:10]MH_I2C_Read... [17:00:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:00:10]Read from MH i2c: E2 [17:00:10]MH_I2C_Read... [17:00:10]Read from MH i2c: E2 17 00 [17:00:10]MH_I2C_Read... [17:00:10]Read from MH i2c: E2 17 00 03 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FD [17:00:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:00:10]wFMCommunicate OK [17:00:10]requested_item fd.num is exist - process it [17:00:10]SAM_PROTO_GetFieldsCounters [17:00:10]wFMCommunicate request_size=4 [17:00:10]MH_SAM_APDU [17:00:10]CAPDU: 80 13 00 00 [17:00:10]Write to MH i2c: E2 08 00 04 2A 80 13 00 00 00 00 00 00 AA [17:00:10]Write i2c OK [17:00:10]MH_I2C_Read... [17:00:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:00:10]Read from MH i2c: E2 [17:00:10]MH_I2C_Read... [17:00:10]Read from MH i2c: E2 62 00 [17:00:10]MH_I2C_Read... [17:00:10]Read from MH i2c: E2 62 00 04 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F8 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [17:00: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F8 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:00:10]wFMCommunicate OK [17:00:10]SAM_PROTO_GetFieldsCounters done [17:00:10]requested_item shift.num is exist - process it [17:00:10]requested_item shift.opened is exist - process it [17:00:10]req_shift_opened [17:00:10]FM_GetShiftState [17:00:10]SAM_PROTO_GetShiftState [17:00:10]wFMCommunicate request_size=4 [17:00:10]MH_SAM_APDU [17:00:10]CAPDU: 80 13 01 00 [17:00:10]Write to MH i2c: E2 08 00 05 2A 80 13 01 00 00 00 00 00 AC [17:00:10]Write i2c OK [17:00:10]MH_I2C_Read... [17:00:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:00:10]Read from MH i2c: E2 [17:00:10]MH_I2C_Read... [17:00:10]Read from MH i2c: E2 0E 00 [17:00:10]MH_I2C_Read... [17:00:10]Read from MH i2c: E2 0E 00 05 2A 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 85 [17:00:10]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [17:00:10]wFMCommunicate OK [17:00:10]SAM_PROTO_GetShiftState done [17:00:10]FM_GetShiftState done [17:00:10]req_shift_opened done [17:00:10]requested_item shift.open_date is exist - process it [17:00:10]req_shift_open_date [17:00:10]req_shift_open_date done [17:00:10]produce_requested_data done [17:00:10]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165368,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [17:00:10]process_action_free close_receipt [17:00:10]json_value_free [17:00:10]json_value_free done [17:00:10]process_json_proto returns [17:00:10]Send response to host [17:00:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165368,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [17:00:10]free response buf [17:00:10]execute_script done [17:00:10]execute_script returns [17:00:10]free content buf [17:00:10]Sock 8.Close socket [17:00:10]Sock 8.Thread stoped [17:00:14]OFD Sender: No OFD packet to send [17:00:19]OFD Sender: No OFD packet to send [17:00:24]OFD Sender: No OFD packet to send [17:00:29]OFD Sender: No OFD packet to send [17:00:34]OFD Sender: No OFD packet to send [17:00:39]OFD Sender: No OFD packet to send [17:00:44]OFD Sender: No OFD packet to send [17:00:49]OFD Sender: No OFD packet to send [17:00:54]OFD Sender: No OFD packet to send [17:00:59]OFD Sender: No OFD packet to send [17:01:04]OFD Sender: No OFD packet to send [17:01:09]OFD Sender: No OFD packet to send [17:01:14]OFD Sender: No OFD packet to send [17:01:19]OFD Sender: No OFD packet to send [17:01:24]OFD Sender: No OFD packet to send [17:01:29]OFD Sender: No OFD packet to send [17:01:34]OFD Sender: No OFD packet to send [17:01:39]OFD Sender: No OFD packet to send [17:01:44]OFD Sender: No OFD packet to send [17:01:49]OFD Sender: No OFD packet to send [17:01:54]OFD Sender: No OFD packet to send [17:01:59]OFD Sender: No OFD packet to send [17:02:04]OFD Sender: No OFD packet to send [17:02:09]OFD Sender: No OFD packet to send [17:02:14]OFD Sender: No OFD packet to send [17:02:19]OFD Sender: No OFD packet to send [17:02:24]OFD Sender: No OFD packet to send [17:02:29]OFD Sender: No OFD packet to send [17:02:34]OFD Sender: No OFD packet to send [17:02:39]OFD Sender: No OFD packet to send [17:02:44]OFD Sender: No OFD packet to send [17:02:49]OFD Sender: No OFD packet to send [17:02:54]OFD Sender: No OFD packet to send [17:02:59]OFD Sender: No OFD packet to send [17:03:04]OFD Sender: No OFD packet to send [17:03:09]OFD Sender: No OFD packet to send [17:03:14]OFD Sender: No OFD packet to send [17:03:19]OFD Sender: No OFD packet to send [17:03:24]OFD Sender: No OFD packet to send [17:03:29]OFD Sender: No OFD packet to send [17:03:34]OFD Sender: No OFD packet to send [17:03:39]OFD Sender: No OFD packet to send [17:03:40]accept exits with 9 [17:03:40]New connection [17:03:40]New thread 3066711396 created [17:03:40]Thread 3066854756 joined [17:03:40]Waiting for new connection... [17:03:40] Sock 9.Parse request [17:03:40]Sock 9.Check first char [17:03:40]Sock 9.First char is OK [17:03:40]request: POST /json_proto HTTP/1.0 [17:03:40]Method: POST [17:03:40]URL: /json_proto [17:03:40]Method is POST - this is cgi request [17:03:40]url: /json_proto [17:03:40]query_string will be loaded in cgi processing [17:03:40]execute_cgi json_proto POST (null) [17:03:40]execute_cgi path=json_proto method=POST [17:03:40]POST find Content-Length [17:03:40]Host: 172.17.56.4:8080 [17:03:40]Content-Length: 677 [17:03:40]Content-Type: application/json [17:03:40] [17:03:40]POST finish read [17:03:40]Found Content-Length = 677 [17:03:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459482", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:40]execute_script... [17:03:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459482", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:40]POST & json_proto [17:03:40]process_json_proto [17:03:40]json parsed OK: [17:03:40]protocol is kg_v1.0 [17:03:40]action value=close_receipt [17:03:40]process_action close_receipt [17:03:40]cmd_close_receipt [17:03:40]MH_GetDate [17:03:40]Write to MH i2c: F0 00 00 06 2A 1F [17:03:40]Write i2c OK [17:03:40]MH_I2C_Read... [17:03:40]Read from MH i2c: F0 [17:03:40]MH_I2C_Read... [17:03:40]Read from MH i2c: F0 09 00 [17:03:40]MH_I2C_Read... [17:03:40]Read from MH i2c: F0 09 00 06 2A 00 6E 56 95 66 C9 DC B2 64 A2 [17:03:40]GetLastDocTimeStamp 1721062809 [17:03:40]current date 1721063022 [17:03:40]FM_GetShiftState [17:03:40]SAM_PROTO_GetShiftState [17:03:40]wFMCommunicate request_size=4 [17:03:40]MH_SAM_APDU [17:03:40]CAPDU: 80 13 01 00 [17:03:40]Write to MH i2c: E2 08 00 07 2A 80 13 01 00 00 00 00 00 AE [17:03:40]Write i2c OK [17:03:40]MH_I2C_Read... [17:03:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:40]Read from MH i2c: E2 [17:03:40]MH_I2C_Read... [17:03:40]Read from MH i2c: E2 0E 00 [17:03:40]MH_I2C_Read... [17:03:40]Read from MH i2c: E2 0E 00 07 2A 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 87 [17:03:40]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [17:03:40]wFMCommunicate OK [17:03:40]SAM_PROTO_GetShiftState done [17:03:40]FM_GetShiftState done [17:03:40]opened in 1721003876 [17:03:40]opened+sec_in_day 1721090276 [17:03:40]quantity*price = 40006 [17:03:40]sum+1 = 40007 [17:03:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 242 15.07.2024 17:03 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165369 ФПД: 187545686960421 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T170342&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165369&fm=187545686960421&tin=02508201610067®Number=0000000000090829&sum=40000 [17:03:41]StoreToDocumentArchive [17:03:41]shift 448 fd 165369 [17:03:41]save to /storage/0448/doc_00165369 [17:03:41]save last doc name /storage/0448/doc_00165369 to /storage/kkm_last_doc_name [17:03:41]save OK [17:03:41]Clear old archive folders... [17:03:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:03:41]tlvbuf is 01828930 [17:03:41]SAM_PROTO_ClearQueue [17:03:41]wFMCommunicate request_size=4 [17:03:41]MH_SAM_APDU [17:03:41]CAPDU: 80 09 00 00 [17:03:41]Write to MH i2c: E2 08 00 14 2A 80 09 00 00 00 00 00 00 B0 [17:03:41]Write i2c OK [17:03:41]MH_I2C_Read... [17:03:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:03:41]Read from MH i2c: E2 [17:03:41]MH_I2C_Read... [17:03:41]Read from MH i2c: E2 03 00 [17:03:41]MH_I2C_Read... [17:03:41]Read from MH i2c: E2 03 00 14 2A 00 90 00 B2 [17:03:41]RAPDU: 90 00 [17:03:41]wFMCommunicate OK [17:03:41]SAM_PROTO_ClearQueue done [17:03:41]KKMCreateOFDPacket [17:03:41]OFDProtocolAddRootSTLVToBuf [17:03:41]FM_MakeSignedData [17:03:41]FM_MakeSignedData [17:03:41]SAM_PROTO_SignData [17:03:41]wFMCommunicate request_size=4 [17:03:41]MH_SAM_APDU [17:03:41]CAPDU: 80 0D 01 02 [17:03:41]Write to MH i2c: E2 08 00 15 2A 80 0D 01 02 00 00 00 00 B8 [17:03:41]Write i2c OK [17:03:41]MH_I2C_Read... [17:03:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:03:41]Read from MH i2c: E2 [17:03:41]MH_I2C_Read... [17:03:41]Read from MH i2c: E2 03 00 [17:03:41]MH_I2C_Read... [17:03:41]Read from MH i2c: E2 03 00 15 2A 00 90 00 B3 [17:03:41]RAPDU: 90 00 [17:03:41]wFMCommunicate OK [17:03:41]wFMCommunicate request_size=255 [17:03:41]MH_SAM_APDU [17:03:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 6E 56 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F9 85 02 00 35 04 06 00 AA [17:03:41]Write to MH i2c: E2 02 01 16 2A 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 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 6E 56 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F9 85 02 00 35 04 06 00 AA 00 00 AD [17:03:41]Write i2c OK [17:03:41]MH_I2C_Read... [17:03:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:41]Read from MH i2c: E2 [17:03:41]MH_I2C_Read... [17:03:41]Read from MH i2c: E2 03 00 [17:03:41]MH_I2C_Read... [17:03:41]Read from MH i2c: E2 03 00 16 2A 00 90 00 B4 [17:03:41]RAPDU: 90 00 [17:03:41]wFMCommunicate OK [17:03:41]wFMCommunicate request_size=10 [17:03:41]MH_SAM_APDU [17:03:41]CAPDU: 80 0D 02 02 05 92 62 0C E9 25 [17:03:41]Write to MH i2c: E2 0D 00 17 2A 80 0D 02 02 05 00 92 62 0C E9 25 00 00 D3 [17:03:41]Write i2c OK [17:03:41]MH_I2C_Read... [17:03:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:41]Read from MH i2c: E2 [17:03:41]MH_I2C_Read... [17:03:41]Read from MH i2c: E2 03 00 [17:03:41]MH_I2C_Read... [17:03:41]Read from MH i2c: E2 03 00 17 2A 00 90 00 B5 [17:03:41]RAPDU: 90 00 [17:03:41]wFMCommunicate OK [17:03:41]wFMCommunicate request_size=4 [17:03:41]MH_SAM_APDU [17:03:41]CAPDU: 80 0D 03 02 [17:03:41]Write to MH i2c: E2 08 00 18 2A 80 0D 03 02 00 00 00 00 BD [17:03:41]Write i2c OK [17:03:41]MH_I2C_Read... [17:03:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:03:41]Read from MH i2c: E2 [17:03:41]MH_I2C_Read... [17:03:41]Read from MH i2c: E2 0B 00 [17:03:41]MH_I2C_Read... [17:03:41]Read from MH i2c: E2 0B 00 18 2A 00 DF DB 7F 5A 76 AB F8 6F 90 00 D9 [17:03:41]RAPDU: DF DB 7F 5A 76 AB F8 6F 90 00 [17:03:41]wFMCommunicate OK [17:03:41]SAM_PROTO_SignData done [17:03:41]FM_MakeSignedData done [17:03:41]CreateOFDProtocolMessage [17:03:41]wFMCommunicate request_size=4 [17:03:41]MH_SAM_APDU [17:03:41]CAPDU: 80 11 00 00 [17:03:41]Write to MH i2c: E2 08 00 19 2A 80 11 00 00 00 00 00 00 BD [17:03:41]Write i2c OK [17:03:41]MH_I2C_Read... [17:03:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:41]Read from MH i2c: E2 [17:03:41]MH_I2C_Read... [17:03:41]Read from MH i2c: E2 17 00 [17:03:41]MH_I2C_Read... [17:03:41]Read from MH i2c: E2 17 00 19 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 13 [17:03:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:03:41]wFMCommunicate OK [17:03:41]CreateOFDProtocolMessage done [17:03:41]OFDSenderStorePacket 165369 [17:03:41]StoreOFDPacket docnum=165369 [17:03:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 3C C6 07 01 06 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 6E 56 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F9 85 02 00 35 04 06 00 AA 92 62 0C E9 25 DF DB 7F 5A 76 AB F8 6F [17:03:41]CheckFolder [17:03:41]dirname=/storage/ofd_packets [17:03:41]CheckFolder done [17:03:41]ProducePacketName [17:03:41]name=ofd_packets/00165369 [17:03:41]NVStorageSaveData ofd_packets/00165369 [17:03:41]File name is /storage/ofd_packets/00165369 [17:03:41]Write 301 bytes [17:03:41]NVStorageSaveData done [17:03:41]OFDSenderStorePacket done [17:03:41]KKMCreateOFDPacket done [17:03:41]NVStorageSaveData kkm_last_timestamp [17:03:41]File name is /storage/kkm_last_timestamp [17:03:41]Write 4 bytes [17:03:41]NVStorageSaveData done [17:03:41]ExternCall_PrintAddStr [17:03:41]wPrintStart [17:03:41]Write to MH i2c: 01 00 00 1A 2A 44 [17:03:41]Write i2c OK [17:03:41]MH_I2C_Read... [17:03:41]Read from MH i2c: 01 [17:03:41]MH_I2C_Read... [17:03:41]Read from MH i2c: 01 07 00 [17:03:41]MH_I2C_Read... [17:03:41]Read from MH i2c: 01 07 00 1A 2A 00 00 00 00 00 FF 0F 59 [17:03:41]RasterBufferAndPrint [17:03:41]line Счет N : (1)459482 [17:03:41]line ИНН: 02508201610067 [17:03:41]line Контрольно-Кассовый Чек [17:03:41]line ПРОДАЖА [17:03:41]line ТРК (МРК, ГНК) : 22 [17:03:41]line Товар: 2710124130 [17:03:41]line Аи-92-К-5 [17:03:41]line 6.080 * 65.80 [17:03:41]line = 400.06 [17:03:41]line НДС 12% НСП 1% [17:03:41]line > о реализуемом товаре [17:03:41]line ОКРУГЛЕНИЕ: -0.06 [17:03:41]line ИТОГО: 400.00 [17:03:41]line Внесено: 400.00 [17:03:41]line СДАЧА: 0.00 [17:03:41]line НСП 1% : 3.54 [17:03:41]line НДС 12% : 42.48 [17:03:41]line Наличными: 400.00 [17:03:41]line Безнал.: 0.00 [17:03:41]line Место: АЗС № 72 "Партнер Нефть" [17:03:41]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:03:41]line СНО: Общий режим [17:03:41]line Чек 242 15.07.2024 17:03 [17:03:41]line Смена: 448 ФФД: 1.0 [17:03:41]line ЗНМ: 0300000160 [17:03:41]line РНМ: 0000000000090829 [17:03:41]line Версия ККМ: 001 [17:03:41]line ФМ: 0000000000874718 [17:03:41]line ФД: 165369 [17:03:41]line ФПД: 187545686960421 [17:03:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T170342&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165369&fm=187545686960421&tin=02508201610067®Number=0000000000090829&sum=40000 [17:03:42]OFD Sender: Processing packet 165369 [packets to send 106, broken 105] [17:03:42]ProducePacketName [17:03:42]name=ofd_packets/00165369 [17:03:42]OFD Sender: To server: pG, [17:03:42]CommunicateWithHost lk.salyk.kg:30040 [17:03:42]ConnectInit lk.salyk.kg [17:03:42]written 0, free lines is 4095 [17:03:42]Connected sock=10 [17:03:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 3C C6 07 01 06 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 6E 56 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F9 85 02 00 35 04 06 00 AA 92 62 0C E9 25 DF DB 7F 5A 76 AB F8 6F [17:03:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 4A CB 47 00 9D 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 F9 85 02 00 F4 03 04 00 F7 FC 94 66 B6 04 01 00 00 42 E4 3D B6 2B ED 37 1C [17:03:42]CommunicateWithHost err = 0 [17:03:42]CheckOFDResponse [17:03:42]1017 (14) - 77093643461234 [17:03:42]1041 (16) - 0000000000874718 [17:03:42]1040 (4) - 165369 [17:03:42]1012 (4) - 15.07.2024 10:41 [17:03:42]1206 (1) - 0 [17:03:42]OFD Sender: Remove packet 165369 [17:03:42]ProducePacketName [17:03:42]name=ofd_packets/00165369 [17:03:42]NVStorageDeleteData [17:03:42]Write to MH i2c: 01 00 00 44 2A 6E [17:03:42]Write i2c OK [17:03:42]MH_I2C_Read... [17:03:42]Read from MH i2c: 01 [17:03:42]MH_I2C_Read... [17:03:42]Read from MH i2c: 01 07 00 [17:03:42]MH_I2C_Read... [17:03:42]Read from MH i2c: 01 07 00 44 2A 00 00 00 00 00 F7 0C 78 [17:03:42]RasterBufferAndPrint [17:03:42]line [17:03:42]line [17:03:42]line [17:03:42]line [17:03:42]line [17:03:42]written 0, free lines is 3326 [17:03:42]MH_Cut [17:03:42]Write to MH i2c: D1 01 00 4B 2A 01 47 [17:03:42]Write i2c OK [17:03:42]MH_I2C_Read... [17:03:42]Read from MH i2c: D1 [17:03:42]MH_I2C_Read... [17:03:42]Read from MH i2c: D1 01 00 [17:03:42]MH_I2C_Read... [17:03:42]Read from MH i2c: D1 01 00 4B 2A 00 46 [17:03:42]Write to MH i2c: 01 00 00 4C 2A 76 [17:03:42]Write i2c OK [17:03:42]MH_I2C_Read... [17:03:42]OFD Sender: No OFD packet to send [17:03:43]*** Cut start [17:03:43]*** Partial cut [17:03:43]*** CUTSNS_PIN = 1 [17:03:43]*** CUTSNS_PIN = 0 [17:03:43]*** Brake cut motor [17:03:43]Read from MH i2c: 01 [17:03:43]MH_I2C_Read... [17:03:43]*** Stop cut motor [17:03:43]*** Cut end [17:03:43]Read from MH i2c: 01 07 00 [17:03:43]MH_I2C_Read... [17:03:43]Read from MH i2c: 01 07 00 4C 2A 00 00 00 00 00 FF 0F 8B [17:03:43]process_action close_receipt done [17:03:43]requested_data is exist [17:03:43]produce_requested_data [17:03:43]requested_item fm.sn is exist - process it [17:03:43]wFMCommunicate request_size=4 [17:03:43]MH_SAM_APDU [17:03:43]CAPDU: 80 11 00 00 [17:03:43]Write to MH i2c: E2 08 00 4D 2A 80 11 00 00 00 00 00 00 F1 [17:03:43]Write i2c OK [17:03:43]MH_I2C_Read... [17:03:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:43]Read from MH i2c: E2 [17:03:43]MH_I2C_Read... [17:03:43]Read from MH i2c: E2 17 00 [17:03:43]MH_I2C_Read... [17:03:43]Read from MH i2c: E2 17 00 4D 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 47 [17:03:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:03:43]wFMCommunicate OK [17:03:43]requested_item fd.num is exist - process it [17:03:43]SAM_PROTO_GetFieldsCounters [17:03:43]wFMCommunicate request_size=4 [17:03:43]MH_SAM_APDU [17:03:43]CAPDU: 80 13 00 00 [17:03:43]Write to MH i2c: E2 08 00 4E 2A 80 13 00 00 00 00 00 00 F4 [17:03:43]Write i2c OK [17:03:43]MH_I2C_Read... [17:03:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:03:44]Read from MH i2c: E2 [17:03:44]MH_I2C_Read... [17:03:44]Read from MH i2c: E2 62 00 [17:03:44]MH_I2C_Read... [17:03:44]Read from MH i2c: E2 62 00 4E 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F9 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [17:03: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 F9 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:03:44]wFMCommunicate OK [17:03:44]SAM_PROTO_GetFieldsCounters done [17:03:44]requested_item shift.num is exist - process it [17:03:44]requested_item shift.opened is exist - process it [17:03:44]req_shift_opened [17:03:44]FM_GetShiftState [17:03:44]SAM_PROTO_GetShiftState [17:03:44]wFMCommunicate request_size=4 [17:03:44]MH_SAM_APDU [17:03:44]CAPDU: 80 13 01 00 [17:03:44]Write to MH i2c: E2 08 00 4F 2A 80 13 01 00 00 00 00 00 F6 [17:03:44]Write i2c OK [17:03:44]MH_I2C_Read... [17:03:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:44]Read from MH i2c: E2 [17:03:44]MH_I2C_Read... [17:03:44]Read from MH i2c: E2 0E 00 [17:03:44]MH_I2C_Read... [17:03:44]Read from MH i2c: E2 0E 00 4F 2A 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 CF [17:03:44]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [17:03:44]wFMCommunicate OK [17:03:44]SAM_PROTO_GetShiftState done [17:03:44]FM_GetShiftState done [17:03:44]req_shift_opened done [17:03:44]requested_item shift.open_date is exist - process it [17:03:44]req_shift_open_date [17:03:44]req_shift_open_date done [17:03:44]produce_requested_data done [17:03:44]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165369,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [17:03:44]process_action_free close_receipt [17:03:44]json_value_free [17:03:44]json_value_free done [17:03:44]process_json_proto returns [17:03:44]Send response to host [17:03:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165369,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [17:03:44]free response buf [17:03:44]execute_script done [17:03:44]execute_script returns [17:03:44]free content buf [17:03:44]Sock 9.Close socket [17:03:44]Sock 9.Thread stoped [17:03:44]accept exits with 8 [17:03:44]New connection [17:03:44]New thread 3066854756 created [17:03:44]Thread 3066711396 joined [17:03:44]Waiting for new connection... [17:03:44] Sock 8.Parse request [17:03:44]Sock 8.Check first char [17:03:44]Sock 8.First char is OK [17:03:44]request: POST /json_proto HTTP/1.0 [17:03:44]Method: POST [17:03:44]URL: /json_proto [17:03:44]Method is POST - this is cgi request [17:03:44]url: /json_proto [17:03:44]query_string will be loaded in cgi processing [17:03:44]execute_cgi json_proto POST (null) [17:03:44]execute_cgi path=json_proto method=POST [17:03:44]POST find Content-Length [17:03:44]Host: 172.17.56.4:8080 [17:03:44]Content-Length: 682 [17:03:44]Content-Type: application/json [17:03:44] [17:03:44]POST finish read [17:03:44]Found Content-Length = 682 [17:03:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459481", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 19.610, "sum" : 1290.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1290.00, "total" : 1290.00, "payments": [ { "type": 0, "sum" : 1290.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:44]execute_script... [17:03:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459481", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 19.610, "sum" : 1290.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1290.00, "total" : 1290.00, "payments": [ { "type": 0, "sum" : 1290.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:44]POST & json_proto [17:03:44]process_json_proto [17:03:44]json parsed OK: [17:03:44]protocol is kg_v1.0 [17:03:44]action value=close_receipt [17:03:44]process_action close_receipt [17:03:44]cmd_close_receipt [17:03:44]MH_GetDate [17:03:44]Write to MH i2c: F0 00 00 50 2A 69 [17:03:44]Write i2c OK [17:03:44]MH_I2C_Read... [17:03:44]Read from MH i2c: F0 [17:03:44]MH_I2C_Read... [17:03:44]Read from MH i2c: F0 09 00 [17:03:44]MH_I2C_Read... [17:03:44]Read from MH i2c: F0 09 00 50 2A 00 72 56 95 66 C9 DC B2 64 F0 [17:03:44]GetLastDocTimeStamp 1721063022 [17:03:44]current date 1721063026 [17:03:44]FM_GetShiftState [17:03:44]SAM_PROTO_GetShiftState [17:03:44]wFMCommunicate request_size=4 [17:03:44]MH_SAM_APDU [17:03:44]CAPDU: 80 13 01 00 [17:03:44]Write to MH i2c: E2 08 00 51 2A 80 13 01 00 00 00 00 00 F8 [17:03:44]Write i2c OK [17:03:44]MH_I2C_Read... [17:03:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:44]Read from MH i2c: E2 [17:03:44]MH_I2C_Read... [17:03:44]Read from MH i2c: E2 0E 00 [17:03:44]MH_I2C_Read... [17:03:44]Read from MH i2c: E2 0E 00 51 2A 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 D1 [17:03:44]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [17:03:44]wFMCommunicate OK [17:03:44]SAM_PROTO_GetShiftState done [17:03:44]FM_GetShiftState done [17:03:44]opened in 1721003876 [17:03:44]opened+sec_in_day 1721090276 [17:03:44]quantity*price = 129033 [17:03:44]sum+1 = 129035 [17:03:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 1290.00 Внесено: 1290.00 СДАЧА: 0.00 НСП 1% : 11.42 НДС 12% : 137.03 Наличными: 1290.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 243 15.07.2024 17:03 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165370 ФПД: 23432296918339 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T170346&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165370&fm=23432296918339&tin=02508201610067®Number=0000000000090829&sum=129000 [17:03:45]StoreToDocumentArchive [17:03:45]shift 448 fd 165370 [17:03:45]save to /storage/0448/doc_00165370 [17:03:45]save last doc name /storage/0448/doc_00165370 to /storage/kkm_last_doc_name [17:03:45]save OK [17:03:45]Clear old archive folders... [17:03:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:03:45]tlvbuf is 01907060 [17:03:45]SAM_PROTO_ClearQueue [17:03:45]wFMCommunicate request_size=4 [17:03:45]MH_SAM_APDU [17:03:45]CAPDU: 80 09 00 00 [17:03:45]Write to MH i2c: E2 08 00 5E 2A 80 09 00 00 00 00 00 00 FA [17:03:45]Write i2c OK [17:03:45]MH_I2C_Read... [17:03:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:03:46]Read from MH i2c: E2 [17:03:46]MH_I2C_Read... [17:03:46]Read from MH i2c: E2 03 00 [17:03:46]MH_I2C_Read... [17:03:46]Read from MH i2c: E2 03 00 5E 2A 00 90 00 FC [17:03:46]RAPDU: 90 00 [17:03:46]wFMCommunicate OK [17:03:46]SAM_PROTO_ClearQueue done [17:03:46]KKMCreateOFDPacket [17:03:46]OFDProtocolAddRootSTLVToBuf [17:03:46]FM_MakeSignedData [17:03:46]FM_MakeSignedData [17:03:46]SAM_PROTO_SignData [17:03:46]wFMCommunicate request_size=4 [17:03:46]MH_SAM_APDU [17:03:46]CAPDU: 80 0D 01 02 [17:03:46]Write to MH i2c: E2 08 00 5F 2A 80 0D 01 02 00 00 00 00 02 [17:03:46]Write i2c OK [17:03:46]MH_I2C_Read... [17:03:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:03:46]Read from MH i2c: E2 [17:03:46]MH_I2C_Read... [17:03:46]Read from MH i2c: E2 03 00 [17:03:46]MH_I2C_Read... [17:03:46]Read from MH i2c: E2 03 00 5F 2A 00 90 00 FD [17:03:46]RAPDU: 90 00 [17:03:46]wFMCommunicate OK [17:03:46]wFMCommunicate request_size=255 [17:03:46]MH_SAM_APDU [17:03: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 9A 4C 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0A F8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 F7 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 35 00 00 00 00 07 04 06 00 E8 F7 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 72 56 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FA 85 02 00 35 04 06 00 15 [17:03:46]Write to MH i2c: E2 02 01 60 2A 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 4C 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0A F8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 F7 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 35 00 00 00 00 07 04 06 00 E8 F7 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 72 56 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FA 85 02 00 35 04 06 00 15 00 00 CB [17:03:46]Write i2c OK [17:03:46]MH_I2C_Read... [17:03:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:46]Read from MH i2c: E2 [17:03:46]MH_I2C_Read... [17:03:46]Read from MH i2c: E2 03 00 [17:03:46]MH_I2C_Read... [17:03:46]Read from MH i2c: E2 03 00 60 2A 00 90 00 FE [17:03:46]RAPDU: 90 00 [17:03:46]wFMCommunicate OK [17:03:46]wFMCommunicate request_size=10 [17:03:46]MH_SAM_APDU [17:03:46]CAPDU: 80 0D 02 02 05 4F C1 BB ED 43 [17:03:46]Write to MH i2c: E2 0D 00 61 2A 80 0D 02 02 05 00 4F C1 BB ED 43 00 00 0A [17:03:46]Write i2c OK [17:03:46]MH_I2C_Read... [17:03:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:46]Read from MH i2c: E2 [17:03:46]MH_I2C_Read... [17:03:46]Read from MH i2c: E2 03 00 [17:03:46]MH_I2C_Read... [17:03:46]Read from MH i2c: E2 03 00 61 2A 00 90 00 FF [17:03:46]RAPDU: 90 00 [17:03:46]wFMCommunicate OK [17:03:46]wFMCommunicate request_size=4 [17:03:46]MH_SAM_APDU [17:03:46]CAPDU: 80 0D 03 02 [17:03:46]Write to MH i2c: E2 08 00 62 2A 80 0D 03 02 00 00 00 00 07 [17:03:46]Write i2c OK [17:03:46]MH_I2C_Read... [17:03:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:03:46]Read from MH i2c: E2 [17:03:46]MH_I2C_Read... [17:03:46]Read from MH i2c: E2 0B 00 [17:03:46]MH_I2C_Read... [17:03:46]Read from MH i2c: E2 0B 00 62 2A 00 7B 22 19 C4 62 79 29 45 90 00 CB [17:03:46]RAPDU: 7B 22 19 C4 62 79 29 45 90 00 [17:03:46]wFMCommunicate OK [17:03:46]SAM_PROTO_SignData done [17:03:46]FM_MakeSignedData done [17:03:46]CreateOFDProtocolMessage [17:03:46]wFMCommunicate request_size=4 [17:03:46]MH_SAM_APDU [17:03:46]CAPDU: 80 11 00 00 [17:03:46]Write to MH i2c: E2 08 00 63 2A 80 11 00 00 00 00 00 00 07 [17:03:46]Write i2c OK [17:03:46]MH_I2C_Read... [17:03:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:46]Read from MH i2c: E2 [17:03:46]MH_I2C_Read... [17:03:46]Read from MH i2c: E2 17 00 [17:03:46]MH_I2C_Read... [17:03:46]Read from MH i2c: E2 17 00 63 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5D [17:03:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:03:46]wFMCommunicate OK [17:03:46]CreateOFDProtocolMessage done [17:03:46]OFDSenderStorePacket 165370 [17:03:46]StoreOFDPacket docnum=165370 [17:03:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F3 1D 07 01 55 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 4C 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0A F8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 F7 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 35 00 00 00 00 07 04 06 00 E8 F7 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 72 56 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FA 85 02 00 35 04 06 00 15 4F C1 BB ED 43 7B 22 19 C4 62 79 29 45 [17:03:46]CheckFolder [17:03:46]dirname=/storage/ofd_packets [17:03:46]CheckFolder done [17:03:46]ProducePacketName [17:03:46]name=ofd_packets/00165370 [17:03:46]NVStorageSaveData ofd_packets/00165370 [17:03:46]File name is /storage/ofd_packets/00165370 [17:03:46]Write 301 bytes [17:03:46]NVStorageSaveData done [17:03:46]OFDSenderStorePacket done [17:03:46]KKMCreateOFDPacket done [17:03:46]NVStorageSaveData kkm_last_timestamp [17:03:46]File name is /storage/kkm_last_timestamp [17:03:46]Write 4 bytes [17:03:46]NVStorageSaveData done [17:03:46]ExternCall_PrintAddStr [17:03:46]wPrintStart [17:03:46]Write to MH i2c: 01 00 00 64 2A 8E [17:03:46]Write i2c OK [17:03:46]MH_I2C_Read... [17:03:46]Read from MH i2c: 01 [17:03:46]MH_I2C_Read... [17:03:46]Read from MH i2c: 01 07 00 [17:03:46]MH_I2C_Read... [17:03:46]Read from MH i2c: 01 07 00 64 2A 00 00 00 00 00 FF 0F A3 [17:03:46]RasterBufferAndPrint [17:03:46]line Счет N : (1)459481 [17:03:46]line ИНН: 02508201610067 [17:03:46]line Контрольно-Кассовый Чек [17:03:46]line ПРОДАЖА [17:03:46]line ТРК (МРК, ГНК) : 12 [17:03:46]line Товар: 2710124130 [17:03:46]line Аи-92-К-5 [17:03:46]line 19.610 * 65.80 [17:03:46]line = 1290.34 [17:03:46]line НДС 12% НСП 1% [17:03:46]line > о реализуемом товаре [17:03:46]line ОКРУГЛЕНИЕ: -0.34 [17:03:46]line ИТОГО: 1290.00 [17:03:46]line Внесено: 1290.00 [17:03:46]line СДАЧА: 0.00 [17:03:46]line НСП 1% : 11.42 [17:03:46]line НДС 12% : 137.03 [17:03:46]line Наличными: 1290.00 [17:03:46]line Безнал.: 0.00 [17:03:46]line Место: АЗС № 72 "Партнер Нефть" [17:03:46]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:03:46]line СНО: Общий режим [17:03:46]line Чек 243 15.07.2024 17:03 [17:03:46]line Смена: 448 ФФД: 1.0 [17:03:46]line ЗНМ: 0300000160 [17:03:46]line РНМ: 0000000000090829 [17:03:46]line Версия ККМ: 001 [17:03:46]line ФМ: 0000000000874718 [17:03:46]line ФД: 165370 [17:03:46]line ФПД: 23432296918339 [17:03:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T170346&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165370&fm=23432296918339&tin=02508201610067®Number=0000000000090829&sum=129000 [17:03:46]OFD Sender: Processing packet 165370 [packets to send 106, broken 105] [17:03:46]ProducePacketName [17:03:46]name=ofd_packets/00165370 [17:03:46]OFD Sender: To server: pG, [17:03:46]CommunicateWithHost lk.salyk.kg:30040 [17:03:46]ConnectInit lk.salyk.kg [17:03:46]written 0, free lines is 4095 [17:03:47]Connected sock=10 [17:03: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 37 31 38 0F 01 00 00 F3 1D 07 01 55 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 4C 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0A F8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 F7 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 35 00 00 00 00 07 04 06 00 E8 F7 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 72 56 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FA 85 02 00 35 04 06 00 15 4F C1 BB ED 43 7B 22 19 C4 62 79 29 45 [17:03:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 D3 D3 47 00 4E DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FA 85 02 00 F4 03 04 00 FC FC 94 66 B6 04 01 00 00 16 08 89 A4 5F F1 65 C6 [17:03:47]CommunicateWithHost err = 0 [17:03:47]CheckOFDResponse [17:03:47]1017 (14) - 77093643461234 [17:03:47]1041 (16) - 0000000000874718 [17:03:47]1040 (4) - 165370 [17:03:47]1012 (4) - 15.07.2024 10:42 [17:03:47]1206 (1) - 0 [17:03:47]OFD Sender: Remove packet 165370 [17:03:47]ProducePacketName [17:03:47]name=ofd_packets/00165370 [17:03:47]NVStorageDeleteData [17:03:47]Write to MH i2c: 01 00 00 8E 2A B8 [17:03:47]Write i2c OK [17:03:47]MH_I2C_Read... [17:03:47]Read from MH i2c: 01 [17:03:47]MH_I2C_Read... [17:03:47]Read from MH i2c: 01 07 00 [17:03:47]MH_I2C_Read... [17:03:47]Read from MH i2c: 01 07 00 8E 2A 00 00 00 00 00 10 0D DC [17:03:47]RasterBufferAndPrint [17:03:47]line [17:03:47]line [17:03:47]line [17:03:47]line [17:03:47]line [17:03:47]written 0, free lines is 3356 [17:03:47]MH_Cut [17:03:47]Write to MH i2c: D1 01 00 95 2A 01 91 [17:03:47]Write i2c OK [17:03:47]MH_I2C_Read... [17:03:47]Read from MH i2c: D1 [17:03:47]MH_I2C_Read... [17:03:47]Read from MH i2c: D1 01 00 [17:03:47]MH_I2C_Read... [17:03:47]Read from MH i2c: D1 01 00 95 2A 00 90 [17:03:47]Write to MH i2c: 01 00 00 96 2A C0 [17:03:47]Write i2c OK [17:03:47]MH_I2C_Read... [17:03:47]OFD Sender: No OFD packet to send [17:03:48]*** Cut start [17:03:48]*** Partial cut [17:03:48]*** CUTSNS_PIN = 1 [17:03:48]*** CUTSNS_PIN = 0 [17:03:48]*** Brake cut motor [17:03:48]Read from MH i2c: 01 [17:03:48]MH_I2C_Read... [17:03:48]*** Stop cut motor [17:03:48]*** Cut end [17:03:48]Read from MH i2c: 01 07 00 [17:03:48]MH_I2C_Read... [17:03:48]Read from MH i2c: 01 07 00 96 2A 00 00 00 00 00 FF 0F D5 [17:03:48]process_action close_receipt done [17:03:48]requested_data is exist [17:03:48]produce_requested_data [17:03:48]requested_item fm.sn is exist - process it [17:03:48]wFMCommunicate request_size=4 [17:03:48]MH_SAM_APDU [17:03:48]CAPDU: 80 11 00 00 [17:03:48]Write to MH i2c: E2 08 00 97 2A 80 11 00 00 00 00 00 00 3B [17:03:48]Write i2c OK [17:03:48]MH_I2C_Read... [17:03:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:48]Read from MH i2c: E2 [17:03:48]MH_I2C_Read... [17:03:48]Read from MH i2c: E2 17 00 [17:03:48]MH_I2C_Read... [17:03:48]Read from MH i2c: E2 17 00 97 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 91 [17:03:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:03:48]wFMCommunicate OK [17:03:48]requested_item fd.num is exist - process it [17:03:48]SAM_PROTO_GetFieldsCounters [17:03:48]wFMCommunicate request_size=4 [17:03:48]MH_SAM_APDU [17:03:48]CAPDU: 80 13 00 00 [17:03:48]Write to MH i2c: E2 08 00 98 2A 80 13 00 00 00 00 00 00 3E [17:03:48]Write i2c OK [17:03:48]MH_I2C_Read... [17:03:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:03:48]Read from MH i2c: E2 [17:03:48]MH_I2C_Read... [17:03:48]Read from MH i2c: E2 62 00 [17:03:48]MH_I2C_Read... [17:03:48]Read from MH i2c: E2 62 00 98 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FA 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [17:03:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FA 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:03:48]wFMCommunicate OK [17:03:48]SAM_PROTO_GetFieldsCounters done [17:03:48]requested_item shift.num is exist - process it [17:03:48]requested_item shift.opened is exist - process it [17:03:48]req_shift_opened [17:03:48]FM_GetShiftState [17:03:48]SAM_PROTO_GetShiftState [17:03:48]wFMCommunicate request_size=4 [17:03:48]MH_SAM_APDU [17:03:48]CAPDU: 80 13 01 00 [17:03:48]Write to MH i2c: E2 08 00 99 2A 80 13 01 00 00 00 00 00 40 [17:03:48]Write i2c OK [17:03:48]MH_I2C_Read... [17:03:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:48]Read from MH i2c: E2 [17:03:48]MH_I2C_Read... [17:03:48]Read from MH i2c: E2 0E 00 [17:03:48]MH_I2C_Read... [17:03:48]Read from MH i2c: E2 0E 00 99 2A 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 19 [17:03:48]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [17:03:48]wFMCommunicate OK [17:03:48]SAM_PROTO_GetShiftState done [17:03:48]FM_GetShiftState done [17:03:48]req_shift_opened done [17:03:48]requested_item shift.open_date is exist - process it [17:03:48]req_shift_open_date [17:03:48]req_shift_open_date done [17:03:48]produce_requested_data done [17:03:48]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165370,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [17:03:48]process_action_free close_receipt [17:03:48]json_value_free [17:03:48]json_value_free done [17:03:48]process_json_proto returns [17:03:48]Send response to host [17:03:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165370,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [17:03:48]free response buf [17:03:48]execute_script done [17:03:48]execute_script returns [17:03:48]free content buf [17:03:48]Sock 8.Close socket [17:03:48]Sock 8.Thread stoped [17:03:52]OFD Sender: No OFD packet to send [17:03:57]OFD Sender: No OFD packet to send [17:04:02]OFD Sender: No OFD packet to send [17:04:07]OFD Sender: No OFD packet to send [17:04:12]OFD Sender: No OFD packet to send [17:04:17]OFD Sender: No OFD packet to send [17:04:22]OFD Sender: No OFD packet to send [17:04:27]OFD Sender: No OFD packet to send [17:04:32]OFD Sender: No OFD packet to send [17:04:37]OFD Sender: No OFD packet to send [17:04:42]OFD Sender: No OFD packet to send [17:04:47]OFD Sender: No OFD packet to send [17:04:52]OFD Sender: No OFD packet to send [17:04:57]OFD Sender: No OFD packet to send [17:05:02]OFD Sender: No OFD packet to send [17:05:07]OFD Sender: No OFD packet to send [17:05:12]OFD Sender: No OFD packet to send [17:05:17]OFD Sender: No OFD packet to send [17:05:18]accept exits with 9 [17:05:18]New connection [17:05:18]New thread 3066711396 created [17:05:18]Thread 3066854756 joined [17:05:18]Waiting for new connection... [17:05:18] Sock 9.Parse request [17:05:18]Sock 9.Check first char [17:05:18]Sock 9.First char is OK [17:05:18]request: POST /json_proto HTTP/1.0 [17:05:18]Method: POST [17:05:18]URL: /json_proto [17:05:18]Method is POST - this is cgi request [17:05:18]url: /json_proto [17:05:18]query_string will be loaded in cgi processing [17:05:18]execute_cgi json_proto POST (null) [17:05:18]execute_cgi path=json_proto method=POST [17:05:18]POST find Content-Length [17:05:18]Host: 172.17.56.4:8080 [17:05:18]Content-Length: 678 [17:05:18]Content-Type: application/json [17:05:18] [17:05:18]POST finish read [17:05:18]Found Content-Length = 678 [17:05:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459483", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.340, "sum" : 680.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 680.00, "total" : 680.00, "payments": [ { "type": 0, "sum" : 680.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:05:18]execute_script... [17:05: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)459483", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.340, "sum" : 680.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 680.00, "total" : 680.00, "payments": [ { "type": 0, "sum" : 680.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:05:18]POST & json_proto [17:05:18]process_json_proto [17:05:18]json parsed OK: [17:05:18]protocol is kg_v1.0 [17:05:18]action value=close_receipt [17:05:18]process_action close_receipt [17:05:18]cmd_close_receipt [17:05:18]MH_GetDate [17:05:18]Write to MH i2c: F0 00 00 9A 2A B3 [17:05:18]Write i2c OK [17:05:18]MH_I2C_Read... [17:05:18]Read from MH i2c: F0 [17:05:18]MH_I2C_Read... [17:05:18]Read from MH i2c: F0 09 00 [17:05:18]MH_I2C_Read... [17:05:18]Read from MH i2c: F0 09 00 9A 2A 00 D0 56 95 66 C9 DC B2 64 98 [17:05:18]GetLastDocTimeStamp 1721063026 [17:05:18]current date 1721063120 [17:05:18]FM_GetShiftState [17:05:18]SAM_PROTO_GetShiftState [17:05:18]wFMCommunicate request_size=4 [17:05:18]MH_SAM_APDU [17:05:18]CAPDU: 80 13 01 00 [17:05:18]Write to MH i2c: E2 08 00 9B 2A 80 13 01 00 00 00 00 00 42 [17:05:18]Write i2c OK [17:05:18]MH_I2C_Read... [17:05:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:05:18]Read from MH i2c: E2 [17:05:18]MH_I2C_Read... [17:05:18]Read from MH i2c: E2 0E 00 [17:05:18]MH_I2C_Read... [17:05:18]Read from MH i2c: E2 0E 00 9B 2A 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 1B [17:05:18]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [17:05:18]wFMCommunicate OK [17:05:18]SAM_PROTO_GetShiftState done [17:05:18]FM_GetShiftState done [17:05:18]opened in 1721003876 [17:05:18]opened+sec_in_day 1721090276 [17:05:18]quantity*price = 68037 [17:05:18]sum+1 = 68038 [17:05:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 680.00 Внесено: 680.00 СДАЧА: 0.00 НСП 1% : 6.02 НДС 12% : 72.25 Наличными: 680.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 244 15.07.2024 17:05 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165371 ФПД: 73547360095532 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T170520&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165371&fm=73547360095532&tin=02508201610067®Number=0000000000090829&sum=68000 [17:05:19]StoreToDocumentArchive [17:05:19]shift 448 fd 165371 [17:05:19]save to /storage/0448/doc_00165371 [17:05:19]save last doc name /storage/0448/doc_00165371 to /storage/kkm_last_doc_name [17:05:19]save OK [17:05:19]Clear old archive folders... [17:05:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:05:19]tlvbuf is B6EA9130 [17:05:19]SAM_PROTO_ClearQueue [17:05:19]wFMCommunicate request_size=4 [17:05:19]MH_SAM_APDU [17:05:19]CAPDU: 80 09 00 00 [17:05:19]Write to MH i2c: E2 08 00 A8 2A 80 09 00 00 00 00 00 00 44 [17:05:19]Write i2c OK [17:05:19]MH_I2C_Read... [17:05:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:05:19]Read from MH i2c: E2 [17:05:19]MH_I2C_Read... [17:05:19]Read from MH i2c: E2 03 00 [17:05:19]MH_I2C_Read... [17:05:19]Read from MH i2c: E2 03 00 A8 2A 00 90 00 46 [17:05:19]RAPDU: 90 00 [17:05:19]wFMCommunicate OK [17:05:19]SAM_PROTO_ClearQueue done [17:05:19]KKMCreateOFDPacket [17:05:19]OFDProtocolAddRootSTLVToBuf [17:05:19]FM_MakeSignedData [17:05:19]FM_MakeSignedData [17:05:19]SAM_PROTO_SignData [17:05:19]wFMCommunicate request_size=4 [17:05:19]MH_SAM_APDU [17:05:19]CAPDU: 80 0D 01 02 [17:05:19]Write to MH i2c: E2 08 00 A9 2A 80 0D 01 02 00 00 00 00 4C [17:05:19]Write i2c OK [17:05:19]MH_I2C_Read... [17:05:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:05:20]Read from MH i2c: E2 [17:05:20]MH_I2C_Read... [17:05:20]Read from MH i2c: E2 03 00 [17:05:20]MH_I2C_Read... [17:05:20]Read from MH i2c: E2 03 00 A9 2A 00 90 00 47 [17:05:20]RAPDU: 90 00 [17:05:20]wFMCommunicate OK [17:05:20]wFMCommunicate request_size=255 [17:05:20]MH_SAM_APDU [17:05:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 28 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 C5 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 D0 56 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FB 85 02 00 35 04 06 00 42 [17:05:20]Write to MH i2c: E2 02 01 AA 2A 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 64 28 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 C5 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 D0 56 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FB 85 02 00 35 04 06 00 42 00 00 23 [17:05:20]Write i2c OK [17:05:20]MH_I2C_Read... [17:05:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:05:20]Read from MH i2c: E2 [17:05:20]MH_I2C_Read... [17:05:20]Read from MH i2c: E2 03 00 [17:05:20]MH_I2C_Read... [17:05:20]Read from MH i2c: E2 03 00 AA 2A 00 90 00 48 [17:05:20]RAPDU: 90 00 [17:05:20]wFMCommunicate OK [17:05:20]wFMCommunicate request_size=10 [17:05:20]MH_SAM_APDU [17:05:20]CAPDU: 80 0D 02 02 05 E4 14 45 CD 2C [17:05:20]Write to MH i2c: E2 0D 00 AB 2A 80 0D 02 02 05 00 E4 14 45 CD 2C 00 00 8F [17:05:20]Write i2c OK [17:05:20]MH_I2C_Read... [17:05:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:05:20]Read from MH i2c: E2 [17:05:20]MH_I2C_Read... [17:05:20]Read from MH i2c: E2 03 00 [17:05:20]MH_I2C_Read... [17:05:20]Read from MH i2c: E2 03 00 AB 2A 00 90 00 49 [17:05:20]RAPDU: 90 00 [17:05:20]wFMCommunicate OK [17:05:20]wFMCommunicate request_size=4 [17:05:20]MH_SAM_APDU [17:05:20]CAPDU: 80 0D 03 02 [17:05:20]Write to MH i2c: E2 08 00 AC 2A 80 0D 03 02 00 00 00 00 51 [17:05:20]Write i2c OK [17:05:20]MH_I2C_Read... [17:05:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:05:20]Read from MH i2c: E2 [17:05:20]MH_I2C_Read... [17:05:20]Read from MH i2c: E2 0B 00 [17:05:20]MH_I2C_Read... [17:05:20]Read from MH i2c: E2 0B 00 AC 2A 00 87 DB 9B 32 8C CB 91 73 90 00 DC [17:05:20]RAPDU: 87 DB 9B 32 8C CB 91 73 90 00 [17:05:20]wFMCommunicate OK [17:05:20]SAM_PROTO_SignData done [17:05:20]FM_MakeSignedData done [17:05:20]CreateOFDProtocolMessage [17:05:20]wFMCommunicate request_size=4 [17:05:20]MH_SAM_APDU [17:05:20]CAPDU: 80 11 00 00 [17:05:20]Write to MH i2c: E2 08 00 AD 2A 80 11 00 00 00 00 00 00 51 [17:05:20]Write i2c OK [17:05:20]MH_I2C_Read... [17:05:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:05:20]Read from MH i2c: E2 [17:05:20]MH_I2C_Read... [17:05:20]Read from MH i2c: E2 17 00 [17:05:20]MH_I2C_Read... [17:05:20]Read from MH i2c: E2 17 00 AD 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A7 [17:05:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:05:20]wFMCommunicate OK [17:05:20]CreateOFDProtocolMessage done [17:05:20]OFDSenderStorePacket 165371 [17:05:20]StoreOFDPacket docnum=165371 [17:05:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B1 E1 07 01 5D BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 64 28 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 C5 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 D0 56 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FB 85 02 00 35 04 06 00 42 E4 14 45 CD 2C 87 DB 9B 32 8C CB 91 73 [17:05:20]CheckFolder [17:05:20]dirname=/storage/ofd_packets [17:05:20]CheckFolder done [17:05:20]ProducePacketName [17:05:20]name=ofd_packets/00165371 [17:05:20]NVStorageSaveData ofd_packets/00165371 [17:05:20]File name is /storage/ofd_packets/00165371 [17:05:20]Write 301 bytes [17:05:20]NVStorageSaveData done [17:05:20]OFDSenderStorePacket done [17:05:20]KKMCreateOFDPacket done [17:05:20]NVStorageSaveData kkm_last_timestamp [17:05:20]File name is /storage/kkm_last_timestamp [17:05:20]Write 4 bytes [17:05:20]NVStorageSaveData done [17:05:20]ExternCall_PrintAddStr [17:05:20]wPrintStart [17:05:20]Write to MH i2c: 01 00 00 AE 2A D8 [17:05:20]Write i2c OK [17:05:20]MH_I2C_Read... [17:05:20]Read from MH i2c: 01 [17:05:20]MH_I2C_Read... [17:05:20]Read from MH i2c: 01 07 00 [17:05:20]MH_I2C_Read... [17:05:20]Read from MH i2c: 01 07 00 AE 2A 00 00 00 00 00 FF 0F ED [17:05:20]RasterBufferAndPrint [17:05:20]line Счет N : (1)459483 [17:05:20]line ИНН: 02508201610067 [17:05:20]line Контрольно-Кассовый Чек [17:05:20]line ПРОДАЖА [17:05:20]line ТРК (МРК, ГНК) : 12 [17:05:20]line Товар: 2710124130 [17:05:20]line Аи-92-К-5 [17:05:20]line 10.340 * 65.80 [17:05:20]line = 680.37 [17:05:20]line НДС 12% НСП 1% [17:05:20]line > о реализуемом товаре [17:05:20]line ОКРУГЛЕНИЕ: -0.37 [17:05:20]line ИТОГО: 680.00 [17:05:20]line Внесено: 680.00 [17:05:20]line СДАЧА: 0.00 [17:05:20]line НСП 1% : 6.02 [17:05:20]line НДС 12% : 72.25 [17:05:20]line Наличными: 680.00 [17:05:20]line Безнал.: 0.00 [17:05:20]line Место: АЗС № 72 "Партнер Нефть" [17:05:20]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:05:20]line СНО: Общий режим [17:05:20]line Чек 244 15.07.2024 17:05 [17:05:20]line Смена: 448 ФФД: 1.0 [17:05:20]line ЗНМ: 0300000160 [17:05:20]line РНМ: 0000000000090829 [17:05:20]line Версия ККМ: 001 [17:05:20]line ФМ: 0000000000874718 [17:05:20]line ФД: 165371 [17:05:20]line ФПД: 73547360095532 [17:05:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T170520&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165371&fm=73547360095532&tin=02508201610067®Number=0000000000090829&sum=68000 [17:05:20]OFD Sender: Processing packet 165371 [packets to send 106, broken 105] [17:05:20]ProducePacketName [17:05:20]name=ofd_packets/00165371 [17:05:20]OFD Sender: To server: pG, [17:05:20]CommunicateWithHost lk.salyk.kg:30040 [17:05:20]ConnectInit lk.salyk.kg [17:05:20]written 0, free lines is 4095 [17:05:20]Connected sock=11 [17:05: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 37 31 38 0F 01 00 00 B1 E1 07 01 5D BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 64 28 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 C5 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 D0 56 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FB 85 02 00 35 04 06 00 42 E4 14 45 CD 2C 87 DB 9B 32 8C CB 91 73 [17:05:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 7B 11 47 00 E4 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FB 85 02 00 F4 03 04 00 5A FD 94 66 B6 04 01 00 00 5A 2B 1B A8 64 D1 1D A0 [17:05:21]CommunicateWithHost err = 0 [17:05:21]CheckOFDResponse [17:05:21]1017 (14) - 77093643461234 [17:05:21]1041 (16) - 0000000000874718 [17:05:21]1040 (4) - 165371 [17:05:21]1012 (4) - 15.07.2024 10:43 [17:05:21]1206 (1) - 0 [17:05:21]OFD Sender: Remove packet 165371 [17:05:21]ProducePacketName [17:05:21]name=ofd_packets/00165371 [17:05:21]NVStorageDeleteData [17:05:21]Write to MH i2c: 01 00 00 D8 2A 02 [17:05:21]Write i2c OK [17:05:21]MH_I2C_Read... [17:05:21]Read from MH i2c: 01 [17:05:21]MH_I2C_Read... [17:05:21]Read from MH i2c: 01 07 00 [17:05:21]MH_I2C_Read... [17:05:21]Read from MH i2c: 01 07 00 D8 2A 00 00 00 00 00 F8 0C 0D [17:05:21]RasterBufferAndPrint [17:05:21]line [17:05:21]line [17:05:21]line [17:05:21]line [17:05:21]line [17:05:21]written 0, free lines is 3326 [17:05:21]MH_Cut [17:05:21]Write to MH i2c: D1 01 00 DF 2A 01 DB [17:05:21]Write i2c OK [17:05:21]MH_I2C_Read... [17:05:21]Read from MH i2c: D1 [17:05:21]MH_I2C_Read... [17:05:21]Read from MH i2c: D1 01 00 [17:05:21]MH_I2C_Read... [17:05:21]Read from MH i2c: D1 01 00 DF 2A 00 DA [17:05:21]Write to MH i2c: 01 00 00 E0 2A 0A [17:05:21]Write i2c OK [17:05:21]MH_I2C_Read... [17:05:21]OFD Sender: No OFD packet to send [17:05:21]*** Cut start [17:05:21]*** Partial cut [17:05:21]*** CUTSNS_PIN = 1 [17:05:21]*** CUTSNS_PIN = 0 [17:05:22]*** Brake cut motor [17:05:22]Read from MH i2c: 01 [17:05:22]MH_I2C_Read... [17:05:22]*** Stop cut motor [17:05:22]*** Cut end [17:05:22]Read from MH i2c: 01 07 00 [17:05:22]MH_I2C_Read... [17:05:22]Read from MH i2c: 01 07 00 E0 2A 00 00 00 00 00 FF 0F 1F [17:05:22]process_action close_receipt done [17:05:22]requested_data is exist [17:05:22]produce_requested_data [17:05:22]requested_item fm.sn is exist - process it [17:05:22]wFMCommunicate request_size=4 [17:05:22]MH_SAM_APDU [17:05:22]CAPDU: 80 11 00 00 [17:05:22]Write to MH i2c: E2 08 00 E1 2A 80 11 00 00 00 00 00 00 85 [17:05:22]Write i2c OK [17:05:22]MH_I2C_Read... [17:05:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:05:22]Read from MH i2c: E2 [17:05:22]MH_I2C_Read... [17:05:22]Read from MH i2c: E2 17 00 [17:05:22]MH_I2C_Read... [17:05:22]Read from MH i2c: E2 17 00 E1 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DB [17:05:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:05:22]wFMCommunicate OK [17:05:22]requested_item fd.num is exist - process it [17:05:22]SAM_PROTO_GetFieldsCounters [17:05:22]wFMCommunicate request_size=4 [17:05:22]MH_SAM_APDU [17:05:22]CAPDU: 80 13 00 00 [17:05:22]Write to MH i2c: E2 08 00 E2 2A 80 13 00 00 00 00 00 00 88 [17:05:22]Write i2c OK [17:05:22]MH_I2C_Read... [17:05:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:05:22]Read from MH i2c: E2 [17:05:22]MH_I2C_Read... [17:05:22]Read from MH i2c: E2 62 00 [17:05:22]MH_I2C_Read... [17:05:22]Read from MH i2c: E2 62 00 E2 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FB 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [17:05: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FB 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:05:22]wFMCommunicate OK [17:05:22]SAM_PROTO_GetFieldsCounters done [17:05:22]requested_item shift.num is exist - process it [17:05:22]requested_item shift.opened is exist - process it [17:05:22]req_shift_opened [17:05:22]FM_GetShiftState [17:05:22]SAM_PROTO_GetShiftState [17:05:22]wFMCommunicate request_size=4 [17:05:22]MH_SAM_APDU [17:05:22]CAPDU: 80 13 01 00 [17:05:22]Write to MH i2c: E2 08 00 E3 2A 80 13 01 00 00 00 00 00 8A [17:05:22]Write i2c OK [17:05:22]MH_I2C_Read... [17:05:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:05:22]Read from MH i2c: E2 [17:05:22]MH_I2C_Read... [17:05:22]Read from MH i2c: E2 0E 00 [17:05:22]MH_I2C_Read... [17:05:22]Read from MH i2c: E2 0E 00 E3 2A 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 63 [17:05:22]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [17:05:22]wFMCommunicate OK [17:05:22]SAM_PROTO_GetShiftState done [17:05:22]FM_GetShiftState done [17:05:22]req_shift_opened done [17:05:22]requested_item shift.open_date is exist - process it [17:05:22]req_shift_open_date [17:05:22]req_shift_open_date done [17:05:22]produce_requested_data done [17:05:22]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165371,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [17:05:22]process_action_free close_receipt [17:05:22]json_value_free [17:05:22]json_value_free done [17:05:22]process_json_proto returns [17:05:22]Send response to host [17:05:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165371,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [17:05:22]free response buf [17:05:22]execute_script done [17:05:22]execute_script returns [17:05:22]free content buf [17:05:22]Sock 9.Close socket [17:05:22]Sock 9.Thread stoped [17:05:26]OFD Sender: No OFD packet to send [17:05:31]OFD Sender: No OFD packet to send [17:05:36]OFD Sender: No OFD packet to send [17:05:41]OFD Sender: No OFD packet to send [17:05:46]OFD Sender: No OFD packet to send [17:05:51]OFD Sender: No OFD packet to send [17:05:56]OFD Sender: No OFD packet to send [17:06:01]OFD Sender: No OFD packet to send [17:06:06]OFD Sender: No OFD packet to send [17:06:11]OFD Sender: No OFD packet to send [17:06:16]OFD Sender: No OFD packet to send [17:06:21]OFD Sender: No OFD packet to send [17:06:26]OFD Sender: No OFD packet to send [17:06:31]OFD Sender: No OFD packet to send [17:06:36]OFD Sender: No OFD packet to send [17:06:41]OFD Sender: No OFD packet to send [17:06:46]OFD Sender: No OFD packet to send [17:06:51]OFD Sender: No OFD packet to send [17:06:56]OFD Sender: No OFD packet to send [17:07:01]OFD Sender: No OFD packet to send [17:07:06]OFD Sender: No OFD packet to send [17:07:11]OFD Sender: No OFD packet to send [17:07:16]OFD Sender: No OFD packet to send [17:07:21]OFD Sender: No OFD packet to send [17:07:26]OFD Sender: No OFD packet to send [17:07:31]OFD Sender: No OFD packet to send [17:07:36]OFD Sender: No OFD packet to send [17:07:41]OFD Sender: No OFD packet to send [17:07:46]OFD Sender: No OFD packet to send [17:07:51]OFD Sender: No OFD packet to send [17:07:56]OFD Sender: No OFD packet to send [17:08:01]OFD Sender: No OFD packet to send [17:08:06]OFD Sender: No OFD packet to send [17:08:11]OFD Sender: No OFD packet to send [17:08:16]OFD Sender: No OFD packet to send [17:08:21]OFD Sender: No OFD packet to send [17:08:26]OFD Sender: No OFD packet to send [17:08:31]OFD Sender: No OFD packet to send [17:08:36]OFD Sender: No OFD packet to send [17:08:41]OFD Sender: No OFD packet to send [17:08:46]OFD Sender: No OFD packet to send [17:08:51]OFD Sender: No OFD packet to send [17:08:56]OFD Sender: No OFD packet to send [17:09:01]OFD Sender: No OFD packet to send [17:09:06]OFD Sender: No OFD packet to send [17:09:11]OFD Sender: No OFD packet to send [17:09:16]OFD Sender: No OFD packet to send [17:09:21]OFD Sender: No OFD packet to send [17:09:26]OFD Sender: No OFD packet to send [17:09:30]accept exits with 8 [17:09:30]New connection [17:09:30]New thread 3066854756 created [17:09:30]Thread 3066711396 joined [17:09:30]Waiting for new connection... [17:09:30] Sock 8.Parse request [17:09:30]Sock 8.Check first char [17:09:30]Sock 8.First char is OK [17:09:30]request: POST /json_proto HTTP/1.0 [17:09:30]Method: POST [17:09:30]URL: /json_proto [17:09:30]Method is POST - this is cgi request [17:09:30]url: /json_proto [17:09:30]query_string will be loaded in cgi processing [17:09:30]execute_cgi json_proto POST (null) [17:09:30]execute_cgi path=json_proto method=POST [17:09:30]POST find Content-Length [17:09:30]Host: 172.17.56.4:8080 [17:09:30]Content-Length: 677 [17:09:30]Content-Type: application/json [17:09:30] [17:09:30]POST finish read [17:09:30]Found Content-Length = 677 [17:09:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459484", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:30]execute_script... [17:09:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459484", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:30]POST & json_proto [17:09:30]process_json_proto [17:09:30]json parsed OK: [17:09:30]protocol is kg_v1.0 [17:09:30]action value=close_receipt [17:09:30]process_action close_receipt [17:09:30]cmd_close_receipt [17:09:30]MH_GetDate [17:09:30]Write to MH i2c: F0 00 00 E4 2A FD [17:09:30]Write i2c OK [17:09:30]MH_I2C_Read... [17:09:30]Read from MH i2c: F0 [17:09:30]MH_I2C_Read... [17:09:30]Read from MH i2c: F0 09 00 [17:09:30]MH_I2C_Read... [17:09:30]Read from MH i2c: F0 09 00 E4 2A 00 CC 57 95 66 C9 DC B2 64 DF [17:09:30]GetLastDocTimeStamp 1721063120 [17:09:30]current date 1721063372 [17:09:30]FM_GetShiftState [17:09:30]SAM_PROTO_GetShiftState [17:09:30]wFMCommunicate request_size=4 [17:09:30]MH_SAM_APDU [17:09:30]CAPDU: 80 13 01 00 [17:09:30]Write to MH i2c: E2 08 00 E5 2A 80 13 01 00 00 00 00 00 8C [17:09:30]Write i2c OK [17:09:30]MH_I2C_Read... [17:09:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:30]Read from MH i2c: E2 [17:09:30]MH_I2C_Read... [17:09:30]Read from MH i2c: E2 0E 00 [17:09:30]MH_I2C_Read... [17:09:30]Read from MH i2c: E2 0E 00 E5 2A 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 65 [17:09:30]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [17:09:30]wFMCommunicate OK [17:09:30]SAM_PROTO_GetShiftState done [17:09:30]FM_GetShiftState done [17:09:30]opened in 1721003876 [17:09:30]opened+sec_in_day 1721090276 [17:09:30]quantity*price = 50008 [17:09:30]sum+1 = 50009 [17:09:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 245 15.07.2024 17:09 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165372 ФПД: 247462082958015 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T170932&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165372&fm=247462082958015&tin=02508201610067®Number=0000000000090829&sum=50000 [17:09:31]StoreToDocumentArchive [17:09:31]shift 448 fd 165372 [17:09:31]save to /storage/0448/doc_00165372 [17:09:31]save last doc name /storage/0448/doc_00165372 to /storage/kkm_last_doc_name [17:09:31]save OK [17:09:31]Clear old archive folders... [17:09:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:09:31]tlvbuf is 01925EA0 [17:09:31]SAM_PROTO_ClearQueue [17:09:31]wFMCommunicate request_size=4 [17:09:31]MH_SAM_APDU [17:09:31]CAPDU: 80 09 00 00 [17:09:31]Write to MH i2c: E2 08 00 F2 2A 80 09 00 00 00 00 00 00 8E [17:09:31]Write i2c OK [17:09:31]MH_I2C_Read... [17:09:31]OFD Sender: No OFD packet to send [17:09:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:09:31]Read from MH i2c: E2 [17:09:31]MH_I2C_Read... [17:09:31]Read from MH i2c: E2 03 00 [17:09:31]MH_I2C_Read... [17:09:31]Read from MH i2c: E2 03 00 F2 2A 00 90 00 90 [17:09:31]RAPDU: 90 00 [17:09:31]wFMCommunicate OK [17:09:31]SAM_PROTO_ClearQueue done [17:09:31]KKMCreateOFDPacket [17:09:31]OFDProtocolAddRootSTLVToBuf [17:09:31]FM_MakeSignedData [17:09:31]FM_MakeSignedData [17:09:31]SAM_PROTO_SignData [17:09:31]wFMCommunicate request_size=4 [17:09:31]MH_SAM_APDU [17:09:31]CAPDU: 80 0D 01 02 [17:09:31]Write to MH i2c: E2 08 00 F3 2A 80 0D 01 02 00 00 00 00 96 [17:09:31]Write i2c OK [17:09:31]MH_I2C_Read... [17:09:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:09:31]Read from MH i2c: E2 [17:09:31]MH_I2C_Read... [17:09:31]Read from MH i2c: E2 03 00 [17:09:31]MH_I2C_Read... [17:09:31]Read from MH i2c: E2 03 00 F3 2A 00 90 00 91 [17:09:31]RAPDU: 90 00 [17:09:31]wFMCommunicate OK [17:09:31]wFMCommunicate request_size=255 [17:09:31]MH_SAM_APDU [17:09:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 CC 57 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FC 85 02 00 35 04 06 00 E1 [17:09:31]Write to MH i2c: E2 02 01 F4 2A 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 CC 57 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FC 85 02 00 35 04 06 00 E1 00 00 47 [17:09:31]Write i2c OK [17:09:31]MH_I2C_Read... [17:09:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:32]Read from MH i2c: E2 [17:09:32]MH_I2C_Read... [17:09:32]Read from MH i2c: E2 03 00 [17:09:32]MH_I2C_Read... [17:09:32]Read from MH i2c: E2 03 00 F4 2A 00 90 00 92 [17:09:32]RAPDU: 90 00 [17:09:32]wFMCommunicate OK [17:09:32]wFMCommunicate request_size=10 [17:09:32]MH_SAM_APDU [17:09:32]CAPDU: 80 0D 02 02 05 10 C1 8C D2 BF [17:09:32]Write to MH i2c: E2 0D 00 F5 2A 80 0D 02 02 05 00 10 C1 8C D2 BF 00 00 91 [17:09:32]Write i2c OK [17:09:32]MH_I2C_Read... [17:09:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:32]Read from MH i2c: E2 [17:09:32]MH_I2C_Read... [17:09:32]Read from MH i2c: E2 03 00 [17:09:32]MH_I2C_Read... [17:09:32]Read from MH i2c: E2 03 00 F5 2A 00 90 00 93 [17:09:32]RAPDU: 90 00 [17:09:32]wFMCommunicate OK [17:09:32]wFMCommunicate request_size=4 [17:09:32]MH_SAM_APDU [17:09:32]CAPDU: 80 0D 03 02 [17:09:32]Write to MH i2c: E2 08 00 F6 2A 80 0D 03 02 00 00 00 00 9B [17:09:32]Write i2c OK [17:09:32]MH_I2C_Read... [17:09:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:09:32]Read from MH i2c: E2 [17:09:32]MH_I2C_Read... [17:09:32]Read from MH i2c: E2 0B 00 [17:09:32]MH_I2C_Read... [17:09:32]Read from MH i2c: E2 0B 00 F6 2A 00 74 8B 18 66 48 F6 BA 71 90 00 82 [17:09:32]RAPDU: 74 8B 18 66 48 F6 BA 71 90 00 [17:09:32]wFMCommunicate OK [17:09:32]SAM_PROTO_SignData done [17:09:32]FM_MakeSignedData done [17:09:32]CreateOFDProtocolMessage [17:09:32]wFMCommunicate request_size=4 [17:09:32]MH_SAM_APDU [17:09:32]CAPDU: 80 11 00 00 [17:09:32]Write to MH i2c: E2 08 00 F7 2A 80 11 00 00 00 00 00 00 9B [17:09:32]Write i2c OK [17:09:32]MH_I2C_Read... [17:09:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:32]Read from MH i2c: E2 [17:09:32]MH_I2C_Read... [17:09:32]Read from MH i2c: E2 17 00 [17:09:32]MH_I2C_Read... [17:09:32]Read from MH i2c: E2 17 00 F7 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F1 [17:09:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:09:32]wFMCommunicate OK [17:09:32]CreateOFDProtocolMessage done [17:09:32]OFDSenderStorePacket 165372 [17:09:32]StoreOFDPacket docnum=165372 [17:09:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E5 C7 07 01 9C 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 CC 57 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FC 85 02 00 35 04 06 00 E1 10 C1 8C D2 BF 74 8B 18 66 48 F6 BA 71 [17:09:32]CheckFolder [17:09:32]dirname=/storage/ofd_packets [17:09:32]CheckFolder done [17:09:32]ProducePacketName [17:09:32]name=ofd_packets/00165372 [17:09:32]NVStorageSaveData ofd_packets/00165372 [17:09:32]File name is /storage/ofd_packets/00165372 [17:09:32]Write 301 bytes [17:09:32]NVStorageSaveData done [17:09:32]OFDSenderStorePacket done [17:09:32]KKMCreateOFDPacket done [17:09:32]NVStorageSaveData kkm_last_timestamp [17:09:32]File name is /storage/kkm_last_timestamp [17:09:32]Write 4 bytes [17:09:32]NVStorageSaveData done [17:09:32]ExternCall_PrintAddStr [17:09:32]wPrintStart [17:09:32]Write to MH i2c: 01 00 00 F8 2A 22 [17:09:32]Write i2c OK [17:09:32]MH_I2C_Read... [17:09:32]Read from MH i2c: 01 [17:09:32]MH_I2C_Read... [17:09:32]Read from MH i2c: 01 07 00 [17:09:32]MH_I2C_Read... [17:09:32]Read from MH i2c: 01 07 00 F8 2A 00 00 00 00 00 FF 0F 37 [17:09:32]RasterBufferAndPrint [17:09:32]line Счет N : (1)459484 [17:09:32]line ИНН: 02508201610067 [17:09:32]line Контрольно-Кассовый Чек [17:09:32]line ПРОДАЖА [17:09:32]line ТРК (МРК, ГНК) : 12 [17:09:32]line Товар: 2710124130 [17:09:32]line Аи-92-К-5 [17:09:32]line 7.600 * 65.80 [17:09:32]line = 500.08 [17:09:32]line НДС 12% НСП 1% [17:09:32]line > о реализуемом товаре [17:09:32]line ОКРУГЛЕНИЕ: -0.08 [17:09:32]line ИТОГО: 500.00 [17:09:32]line Внесено: 500.00 [17:09:32]line СДАЧА: 0.00 [17:09:32]line НСП 1% : 4.42 [17:09:32]line НДС 12% : 53.11 [17:09:32]line Наличными: 500.00 [17:09:32]line Безнал.: 0.00 [17:09:32]line Место: АЗС № 72 "Партнер Нефть" [17:09:32]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:09:32]line СНО: Общий режим [17:09:32]line Чек 245 15.07.2024 17:09 [17:09:32]line Смена: 448 ФФД: 1.0 [17:09:32]line ЗНМ: 0300000160 [17:09:32]line РНМ: 0000000000090829 [17:09:32]line Версия ККМ: 001 [17:09:32]line ФМ: 0000000000874718 [17:09:32]line ФД: 165372 [17:09:32]line ФПД: 247462082958015 [17:09:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T170932&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165372&fm=247462082958015&tin=02508201610067®Number=0000000000090829&sum=50000 [17:09:32]OFD Sender: Processing packet 165372 [packets to send 106, broken 105] [17:09:32]ProducePacketName [17:09:32]name=ofd_packets/00165372 [17:09:32]OFD Sender: To server: pG, [17:09:32]CommunicateWithHost lk.salyk.kg:30040 [17:09:32]ConnectInit lk.salyk.kg [17:09:32]written 0, free lines is 4095 [17:09:32]Connected sock=10 [17:09:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E5 C7 07 01 9C 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 CC 57 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FC 85 02 00 35 04 06 00 E1 10 C1 8C D2 BF 74 8B 18 66 48 F6 BA 71 [17: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 37 31 38 4F 00 00 00 A7 7A 47 00 E4 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FC 85 02 00 F4 03 04 00 56 FE 94 66 B6 04 01 00 00 D6 8D 1C BD D5 9C EE 6F [17:09:33]CommunicateWithHost err = 0 [17:09:33]CheckOFDResponse [17:09:33]1017 (14) - 77093643461234 [17:09:33]1041 (16) - 0000000000874718 [17:09:33]1040 (4) - 165372 [17:09:33]1012 (4) - 15.07.2024 10:47 [17:09:33]1206 (1) - 0 [17:09:33]OFD Sender: Remove packet 165372 [17:09:33]ProducePacketName [17:09:33]name=ofd_packets/00165372 [17:09:33]NVStorageDeleteData [17:09:33]Write to MH i2c: 01 00 00 22 2B 4D [17:09:33]Write i2c OK [17:09:33]MH_I2C_Read... [17:09:33]Read from MH i2c: 01 [17:09:33]MH_I2C_Read... [17:09:33]Read from MH i2c: 01 07 00 [17:09:33]MH_I2C_Read... [17:09:33]Read from MH i2c: 01 07 00 22 2B 00 00 00 00 00 F1 0C 51 [17:09:33]RasterBufferAndPrint [17:09:33]line [17:09:33]line [17:09:33]line [17:09:33]line [17:09:33]line [17:09:33]written 0, free lines is 3323 [17:09:33]MH_Cut [17:09:33]Write to MH i2c: D1 01 00 29 2B 01 26 [17:09:33]Write i2c OK [17:09:33]MH_I2C_Read... [17:09:33]Read from MH i2c: D1 [17:09:33]MH_I2C_Read... [17:09:33]Read from MH i2c: D1 01 00 [17:09:33]MH_I2C_Read... [17:09:33]Read from MH i2c: D1 01 00 29 2B 00 25 [17:09:33]Write to MH i2c: 01 00 00 2A 2B 55 [17:09:33]Write i2c OK [17:09:33]MH_I2C_Read... [17:09:33]OFD Sender: No OFD packet to send [17:09:33]*** Cut start [17:09:33]*** Partial cut [17:09:33]*** CUTSNS_PIN = 1 [17:09:33]*** CUTSNS_PIN = 0 [17:09:34]*** Brake cut motor [17:09:34]Read from MH i2c: 01 [17:09:34]MH_I2C_Read... [17:09:34]*** Stop cut motor [17:09:34]*** Cut end [17:09:34]Read from MH i2c: 01 07 00 [17:09:34]MH_I2C_Read... [17:09:34]Read from MH i2c: 01 07 00 2A 2B 00 00 00 00 00 FF 0F 6A [17:09:34]process_action close_receipt done [17:09:34]requested_data is exist [17:09:34]produce_requested_data [17:09:34]requested_item fm.sn is exist - process it [17:09:34]wFMCommunicate request_size=4 [17:09:34]MH_SAM_APDU [17:09:34]CAPDU: 80 11 00 00 [17:09:34]Write to MH i2c: E2 08 00 2B 2B 80 11 00 00 00 00 00 00 D0 [17:09:34]Write i2c OK [17:09:34]MH_I2C_Read... [17:09:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:34]Read from MH i2c: E2 [17:09:34]MH_I2C_Read... [17:09:34]Read from MH i2c: E2 17 00 [17:09:34]MH_I2C_Read... [17:09:34]Read from MH i2c: E2 17 00 2B 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 26 [17:09:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:09:34]wFMCommunicate OK [17:09:34]requested_item fd.num is exist - process it [17:09:34]SAM_PROTO_GetFieldsCounters [17:09:34]wFMCommunicate request_size=4 [17:09:34]MH_SAM_APDU [17:09:34]CAPDU: 80 13 00 00 [17:09:34]Write to MH i2c: E2 08 00 2C 2B 80 13 00 00 00 00 00 00 D3 [17:09:34]Write i2c OK [17:09:34]MH_I2C_Read... [17:09:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:09:34]Read from MH i2c: E2 [17:09:34]MH_I2C_Read... [17:09:34]Read from MH i2c: E2 62 00 [17:09:34]MH_I2C_Read... [17:09:34]Read from MH i2c: E2 62 00 2C 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FC 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [17:09: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FC 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:09:34]wFMCommunicate OK [17:09:34]SAM_PROTO_GetFieldsCounters done [17:09:34]requested_item shift.num is exist - process it [17:09:34]requested_item shift.opened is exist - process it [17:09:34]req_shift_opened [17:09:34]FM_GetShiftState [17:09:34]SAM_PROTO_GetShiftState [17:09:34]wFMCommunicate request_size=4 [17:09:34]MH_SAM_APDU [17:09:34]CAPDU: 80 13 01 00 [17:09:34]Write to MH i2c: E2 08 00 2D 2B 80 13 01 00 00 00 00 00 D5 [17:09:34]Write i2c OK [17:09:34]MH_I2C_Read... [17:09:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:34]Read from MH i2c: E2 [17:09:34]MH_I2C_Read... [17:09:34]Read from MH i2c: E2 0E 00 [17:09:34]MH_I2C_Read... [17:09:34]Read from MH i2c: E2 0E 00 2D 2B 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 AE [17:09:34]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [17:09:34]wFMCommunicate OK [17:09:34]SAM_PROTO_GetShiftState done [17:09:34]FM_GetShiftState done [17:09:34]req_shift_opened done [17:09:34]requested_item shift.open_date is exist - process it [17:09:34]req_shift_open_date [17:09:34]req_shift_open_date done [17:09:34]produce_requested_data done [17:09:34]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165372,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [17:09:34]process_action_free close_receipt [17:09:34]json_value_free [17:09:34]json_value_free done [17:09:34]process_json_proto returns [17:09:34]Send response to host [17:09:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165372,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [17:09:34]free response buf [17:09:34]execute_script done [17:09:34]execute_script returns [17:09:34]free content buf [17:09:34]Sock 8.Close socket [17:09:34]Sock 8.Thread stoped [17:09:38]OFD Sender: No OFD packet to send [17:09:43]OFD Sender: No OFD packet to send [17:09:48]OFD Sender: No OFD packet to send [17:09:53]OFD Sender: No OFD packet to send [17:09:58]OFD Sender: No OFD packet to send [17:10:03]OFD Sender: No OFD packet to send [17:10:08]OFD Sender: No OFD packet to send [17:10:13]OFD Sender: No OFD packet to send [17:10:18]OFD Sender: No OFD packet to send [17:10:23]OFD Sender: No OFD packet to send [17:10:28]OFD Sender: No OFD packet to send [17:10:33]OFD Sender: No OFD packet to send [17:10:38]OFD Sender: No OFD packet to send [17:10:43]OFD Sender: No OFD packet to send [17:10:48]OFD Sender: No OFD packet to send [17:10:53]OFD Sender: No OFD packet to send [17:10:58]OFD Sender: No OFD packet to send [17:11:03]OFD Sender: No OFD packet to send [17:11:08]OFD Sender: No OFD packet to send [17:11:13]OFD Sender: No OFD packet to send [17:11:18]OFD Sender: No OFD packet to send [17:11:23]OFD Sender: No OFD packet to send [17:11:28]OFD Sender: No OFD packet to send [17:11:33]OFD Sender: No OFD packet to send [17:11:38]OFD Sender: No OFD packet to send [17:11:43]OFD Sender: No OFD packet to send [17:11:48]OFD Sender: No OFD packet to send [17:11:53]OFD Sender: No OFD packet to send [17:11:58]OFD Sender: No OFD packet to send [17:12:03]OFD Sender: No OFD packet to send [17:12:08]OFD Sender: No OFD packet to send [17:12:13]OFD Sender: No OFD packet to send [17:12:18]OFD Sender: No OFD packet to send [17:12:23]OFD Sender: No OFD packet to send [17:12:28]OFD Sender: No OFD packet to send [17:12:33]OFD Sender: No OFD packet to send [17:12:38]OFD Sender: No OFD packet to send [17:12:43]OFD Sender: No OFD packet to send [17:12:48]OFD Sender: No OFD packet to send [17:12:53]OFD Sender: No OFD packet to send [17:12:58]OFD Sender: No OFD packet to send [17:13:03]OFD Sender: No OFD packet to send [17:13:08]OFD Sender: No OFD packet to send [17:13:13]OFD Sender: No OFD packet to send [17:13:18]OFD Sender: No OFD packet to send [17:13:23]OFD Sender: No OFD packet to send [17:13:28]OFD Sender: No OFD packet to send [17:13:33]OFD Sender: No OFD packet to send [17:13:38]OFD Sender: No OFD packet to send [17:13:39]accept exits with 9 [17:13:39]New connection [17:13:39]New thread 3066711396 created [17:13:39]Thread 3066854756 joined [17:13:39]Waiting for new connection... [17:13:39] Sock 9.Parse request [17:13:39]Sock 9.Check first char [17:13:39]Sock 9.First char is OK [17:13:39]request: POST /json_proto HTTP/1.0 [17:13:39]Method: POST [17:13:39]URL: /json_proto [17:13:39]Method is POST - this is cgi request [17:13:39]url: /json_proto [17:13:39]query_string will be loaded in cgi processing [17:13:39]execute_cgi json_proto POST (null) [17:13:39]execute_cgi path=json_proto method=POST [17:13:39]POST find Content-Length [17:13:39]Host: 172.17.56.4:8080 [17:13:39]Content-Length: 677 [17:13:39]Content-Type: application/json [17:13:39] [17:13:39]POST finish read [17:13:39]Found Content-Length = 677 [17:13:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459486", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:39]execute_script... [17:13: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)459486", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:39]POST & json_proto [17:13:39]process_json_proto [17:13:39]json parsed OK: [17:13:39]protocol is kg_v1.0 [17:13:39]action value=close_receipt [17:13:39]process_action close_receipt [17:13:39]cmd_close_receipt [17:13:39]MH_GetDate [17:13:39]Write to MH i2c: F0 00 00 2E 2B 48 [17:13:39]Write i2c OK [17:13:39]MH_I2C_Read... [17:13:39]Read from MH i2c: F0 [17:13:39]MH_I2C_Read... [17:13:39]Read from MH i2c: F0 09 00 [17:13:39]MH_I2C_Read... [17:13:39]Read from MH i2c: F0 09 00 2E 2B 00 C5 58 95 66 C9 DC B2 64 24 [17:13:39]GetLastDocTimeStamp 1721063372 [17:13:39]current date 1721063621 [17:13:39]FM_GetShiftState [17:13:39]SAM_PROTO_GetShiftState [17:13:39]wFMCommunicate request_size=4 [17:13:39]MH_SAM_APDU [17:13:39]CAPDU: 80 13 01 00 [17:13:39]Write to MH i2c: E2 08 00 2F 2B 80 13 01 00 00 00 00 00 D7 [17:13:39]Write i2c OK [17:13:39]MH_I2C_Read... [17:13:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:39]Read from MH i2c: E2 [17:13:39]MH_I2C_Read... [17:13:39]Read from MH i2c: E2 0E 00 [17:13:39]MH_I2C_Read... [17:13:39]Read from MH i2c: E2 0E 00 2F 2B 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 B0 [17:13:39]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [17:13:39]wFMCommunicate OK [17:13:39]SAM_PROTO_GetShiftState done [17:13:39]FM_GetShiftState done [17:13:39]opened in 1721003876 [17:13:39]opened+sec_in_day 1721090276 [17:13:39]quantity*price = 50008 [17:13:39]sum+1 = 50009 [17:13:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 246 15.07.2024 17:13 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165373 ФПД: 54880078113358 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T171341&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165373&fm=54880078113358&tin=02508201610067®Number=0000000000090829&sum=50000 [17:13:40]StoreToDocumentArchive [17:13:40]shift 448 fd 165373 [17:13:40]save to /storage/0448/doc_00165373 [17:13:40]save last doc name /storage/0448/doc_00165373 to /storage/kkm_last_doc_name [17:13:40]save OK [17:13:40]Clear old archive folders... [17:13:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:13:40]tlvbuf is 018FAD10 [17:13:40]SAM_PROTO_ClearQueue [17:13:40]wFMCommunicate request_size=4 [17:13:40]MH_SAM_APDU [17:13:40]CAPDU: 80 09 00 00 [17:13:40]Write to MH i2c: E2 08 00 3C 2B 80 09 00 00 00 00 00 00 D9 [17:13:40]Write i2c OK [17:13:40]MH_I2C_Read... [17:13:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:13:40]Read from MH i2c: E2 [17:13:40]MH_I2C_Read... [17:13:40]Read from MH i2c: E2 03 00 [17:13:40]MH_I2C_Read... [17:13:40]Read from MH i2c: E2 03 00 3C 2B 00 90 00 DB [17:13:40]RAPDU: 90 00 [17:13:40]wFMCommunicate OK [17:13:40]SAM_PROTO_ClearQueue done [17:13:40]KKMCreateOFDPacket [17:13:40]OFDProtocolAddRootSTLVToBuf [17:13:40]FM_MakeSignedData [17:13:40]FM_MakeSignedData [17:13:40]SAM_PROTO_SignData [17:13:40]wFMCommunicate request_size=4 [17:13:40]MH_SAM_APDU [17:13:40]CAPDU: 80 0D 01 02 [17:13:40]Write to MH i2c: E2 08 00 3D 2B 80 0D 01 02 00 00 00 00 E1 [17:13:40]Write i2c OK [17:13:40]MH_I2C_Read... [17:13:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:13:40]Read from MH i2c: E2 [17:13:40]MH_I2C_Read... [17:13:40]Read from MH i2c: E2 03 00 [17:13:40]MH_I2C_Read... [17:13:40]Read from MH i2c: E2 03 00 3D 2B 00 90 00 DC [17:13:40]RAPDU: 90 00 [17:13:40]wFMCommunicate OK [17:13:40]wFMCommunicate request_size=255 [17:13:40]MH_SAM_APDU [17:13:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 C5 58 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FD 85 02 00 35 04 06 00 31 [17:13:40]Write to MH i2c: E2 02 01 3E 2B 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 C5 58 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FD 85 02 00 35 04 06 00 31 00 00 DE [17:13:40]Write i2c OK [17:13:40]MH_I2C_Read... [17:13:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:40]Read from MH i2c: E2 [17:13:40]MH_I2C_Read... [17:13:40]Read from MH i2c: E2 03 00 [17:13:40]MH_I2C_Read... [17:13:40]Read from MH i2c: E2 03 00 3E 2B 00 90 00 DD [17:13:40]RAPDU: 90 00 [17:13:40]wFMCommunicate OK [17:13:40]wFMCommunicate request_size=10 [17:13:40]MH_SAM_APDU [17:13:40]CAPDU: 80 0D 02 02 05 E9 C3 8F AA 4E [17:13:40]Write to MH i2c: E2 0D 00 3F 2B 80 0D 02 02 05 00 E9 C3 8F AA 4E 00 00 21 [17:13:40]Write i2c OK [17:13:40]MH_I2C_Read... [17:13:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:40]Read from MH i2c: E2 [17:13:40]MH_I2C_Read... [17:13:40]Read from MH i2c: E2 03 00 [17:13:40]MH_I2C_Read... [17:13:40]Read from MH i2c: E2 03 00 3F 2B 00 90 00 DE [17:13:40]RAPDU: 90 00 [17:13:40]wFMCommunicate OK [17:13:40]wFMCommunicate request_size=4 [17:13:40]MH_SAM_APDU [17:13:40]CAPDU: 80 0D 03 02 [17:13:40]Write to MH i2c: E2 08 00 40 2B 80 0D 03 02 00 00 00 00 E6 [17:13:40]Write i2c OK [17:13:40]MH_I2C_Read... [17:13:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:13:40]Read from MH i2c: E2 [17:13:40]MH_I2C_Read... [17:13:40]Read from MH i2c: E2 0B 00 [17:13:40]MH_I2C_Read... [17:13:40]Read from MH i2c: E2 0B 00 40 2B 00 1A 73 AF 6B 63 D0 84 DF 90 00 24 [17:13:40]RAPDU: 1A 73 AF 6B 63 D0 84 DF 90 00 [17:13:40]wFMCommunicate OK [17:13:40]SAM_PROTO_SignData done [17:13:40]FM_MakeSignedData done [17:13:40]CreateOFDProtocolMessage [17:13:40]wFMCommunicate request_size=4 [17:13:40]MH_SAM_APDU [17:13:40]CAPDU: 80 11 00 00 [17:13:40]Write to MH i2c: E2 08 00 41 2B 80 11 00 00 00 00 00 00 E6 [17:13:40]Write i2c OK [17:13:40]MH_I2C_Read... [17:13:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:40]Read from MH i2c: E2 [17:13:40]MH_I2C_Read... [17:13:40]Read from MH i2c: E2 17 00 [17:13:40]MH_I2C_Read... [17:13:40]Read from MH i2c: E2 17 00 41 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3C [17:13:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:13:40]wFMCommunicate OK [17:13:40]CreateOFDProtocolMessage done [17:13:40]OFDSenderStorePacket 165373 [17:13:40]StoreOFDPacket docnum=165373 [17:13:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 81 4B 07 01 89 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 C5 58 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FD 85 02 00 35 04 06 00 31 E9 C3 8F AA 4E 1A 73 AF 6B 63 D0 84 DF [17:13:40]CheckFolder [17:13:40]dirname=/storage/ofd_packets [17:13:40]CheckFolder done [17:13:40]ProducePacketName [17:13:40]name=ofd_packets/00165373 [17:13:40]NVStorageSaveData ofd_packets/00165373 [17:13:40]File name is /storage/ofd_packets/00165373 [17:13:40]Write 301 bytes [17:13:40]NVStorageSaveData done [17:13:40]OFDSenderStorePacket done [17:13:40]KKMCreateOFDPacket done [17:13:40]NVStorageSaveData kkm_last_timestamp [17:13:40]File name is /storage/kkm_last_timestamp [17:13:40]Write 4 bytes [17:13:40]NVStorageSaveData done [17:13:40]ExternCall_PrintAddStr [17:13:40]wPrintStart [17:13:40]Write to MH i2c: 01 00 00 42 2B 6D [17:13:40]Write i2c OK [17:13:40]MH_I2C_Read... [17:13:40]Read from MH i2c: 01 [17:13:40]MH_I2C_Read... [17:13:40]Read from MH i2c: 01 07 00 [17:13:40]MH_I2C_Read... [17:13:40]Read from MH i2c: 01 07 00 42 2B 00 00 00 00 00 FF 0F 82 [17:13:40]RasterBufferAndPrint [17:13:40]line Счет N : (1)459486 [17:13:40]line ИНН: 02508201610067 [17:13:40]line Контрольно-Кассовый Чек [17:13:40]line ПРОДАЖА [17:13:40]line ТРК (МРК, ГНК) : 22 [17:13:40]line Товар: 2710124130 [17:13:40]line Аи-92-К-5 [17:13:40]line 7.600 * 65.80 [17:13:40]line = 500.08 [17:13:40]line НДС 12% НСП 1% [17:13:40]line > о реализуемом товаре [17:13:40]line ОКРУГЛЕНИЕ: -0.08 [17:13:40]line ИТОГО: 500.00 [17:13:40]line Внесено: 500.00 [17:13:40]line СДАЧА: 0.00 [17:13:40]line НСП 1% : 4.42 [17:13:40]line НДС 12% : 53.11 [17:13:40]line Наличными: 500.00 [17:13:40]line Безнал.: 0.00 [17:13:40]line Место: АЗС № 72 "Партнер Нефть" [17:13:40]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:13:40]line СНО: Общий режим [17:13:40]line Чек 246 15.07.2024 17:13 [17:13:40]line Смена: 448 ФФД: 1.0 [17:13:40]line ЗНМ: 0300000160 [17:13:40]line РНМ: 0000000000090829 [17:13:40]line Версия ККМ: 001 [17:13:40]line ФМ: 0000000000874718 [17:13:40]line ФД: 165373 [17:13:40]line ФПД: 54880078113358 [17:13:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T171341&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165373&fm=54880078113358&tin=02508201610067®Number=0000000000090829&sum=50000 [17:13:41]OFD Sender: Processing packet 165373 [packets to send 106, broken 105] [17:13:41]ProducePacketName [17:13:41]name=ofd_packets/00165373 [17:13:41]OFD Sender: To server: pG, [17:13:41]CommunicateWithHost lk.salyk.kg:30040 [17:13:41]ConnectInit lk.salyk.kg [17:13:41]written 0, free lines is 4095 [17:13:41]Connected sock=10 [17:13: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 37 31 38 0F 01 00 00 81 4B 07 01 89 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 C5 58 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FD 85 02 00 35 04 06 00 31 E9 C3 8F AA 4E 1A 73 AF 6B 63 D0 84 DF [17:13:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 5B E0 47 00 E1 D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FD 85 02 00 F4 03 04 00 4E FF 94 66 B6 04 01 00 00 45 93 00 FB 03 64 A7 E7 [17:13:41]CommunicateWithHost err = 0 [17:13:41]CheckOFDResponse [17:13:41]1017 (14) - 77093643461234 [17:13:41]1041 (16) - 0000000000874718 [17:13:41]1040 (4) - 165373 [17:13:41]1012 (4) - 15.07.2024 10:51 [17:13:41]1206 (1) - 0 [17:13:41]OFD Sender: Remove packet 165373 [17:13:41]ProducePacketName [17:13:41]name=ofd_packets/00165373 [17:13:41]NVStorageDeleteData [17:13:41]Write to MH i2c: 01 00 00 6C 2B 97 [17:13:41]Write i2c OK [17:13:41]MH_I2C_Read... [17:13:41]Read from MH i2c: 01 [17:13:41]MH_I2C_Read... [17:13:41]Read from MH i2c: 01 07 00 [17:13:41]MH_I2C_Read... [17:13:41]Read from MH i2c: 01 07 00 6C 2B 00 00 00 00 00 F2 0C 9C [17:13:41]RasterBufferAndPrint [17:13:41]line [17:13:41]line [17:13:41]line [17:13:41]line [17:13:41]line [17:13:41]written 0, free lines is 3320 [17:13:41]MH_Cut [17:13:41]Write to MH i2c: D1 01 00 73 2B 01 70 [17:13:41]Write i2c OK [17:13:41]MH_I2C_Read... [17:13:41]Read from MH i2c: D1 [17:13:41]MH_I2C_Read... [17:13:41]Read from MH i2c: D1 01 00 [17:13:41]MH_I2C_Read... [17:13:41]Read from MH i2c: D1 01 00 73 2B 00 6F [17:13:41]Write to MH i2c: 01 00 00 74 2B 9F [17:13:41]Write i2c OK [17:13:41]MH_I2C_Read... [17:13:41]OFD Sender: No OFD packet to send [17:13:42]*** Cut start [17:13:42]*** Partial cut [17:13:42]*** CUTSNS_PIN = 1 [17:13:42]*** CUTSNS_PIN = 0 [17:13:42]*** Brake cut motor [17:13:42]Read from MH i2c: 01 [17:13:42]MH_I2C_Read... [17:13:42]*** Stop cut motor [17:13:42]*** Cut end [17:13:42]Read from MH i2c: 01 07 00 [17:13:42]MH_I2C_Read... [17:13:42]Read from MH i2c: 01 07 00 74 2B 00 00 00 00 00 FF 0F B4 [17:13:42]process_action close_receipt done [17:13:42]requested_data is exist [17:13:42]produce_requested_data [17:13:42]requested_item fm.sn is exist - process it [17:13:42]wFMCommunicate request_size=4 [17:13:42]MH_SAM_APDU [17:13:42]CAPDU: 80 11 00 00 [17:13:42]Write to MH i2c: E2 08 00 75 2B 80 11 00 00 00 00 00 00 1A [17:13:42]Write i2c OK [17:13:42]MH_I2C_Read... [17:13:42]Read from MH i2c: E2 [17:13:42]MH_I2C_Read... [17:13:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:42]Read from MH i2c: E2 17 00 [17:13:42]MH_I2C_Read... [17:13:42]Read from MH i2c: E2 17 00 75 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 70 [17:13:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:13:42]wFMCommunicate OK [17:13:42]requested_item fd.num is exist - process it [17:13:42]SAM_PROTO_GetFieldsCounters [17:13:42]wFMCommunicate request_size=4 [17:13:42]MH_SAM_APDU [17:13:42]CAPDU: 80 13 00 00 [17:13:42]Write to MH i2c: E2 08 00 76 2B 80 13 00 00 00 00 00 00 1D [17:13:42]Write i2c OK [17:13:42]MH_I2C_Read... [17:13:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:13:43]Read from MH i2c: E2 [17:13:43]MH_I2C_Read... [17:13:43]Read from MH i2c: E2 62 00 [17:13:43]MH_I2C_Read... [17:13:43]Read from MH i2c: E2 62 00 76 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FD 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [17:13:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FD 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:13:43]wFMCommunicate OK [17:13:43]SAM_PROTO_GetFieldsCounters done [17:13:43]requested_item shift.num is exist - process it [17:13:43]requested_item shift.opened is exist - process it [17:13:43]req_shift_opened [17:13:43]FM_GetShiftState [17:13:43]SAM_PROTO_GetShiftState [17:13:43]wFMCommunicate request_size=4 [17:13:43]MH_SAM_APDU [17:13:43]CAPDU: 80 13 01 00 [17:13:43]Write to MH i2c: E2 08 00 77 2B 80 13 01 00 00 00 00 00 1F [17:13:43]Write i2c OK [17:13:43]MH_I2C_Read... [17:13:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:43]Read from MH i2c: E2 [17:13:43]MH_I2C_Read... [17:13:43]Read from MH i2c: E2 0E 00 [17:13:43]MH_I2C_Read... [17:13:43]Read from MH i2c: E2 0E 00 77 2B 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 F8 [17:13:43]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [17:13:43]wFMCommunicate OK [17:13:43]SAM_PROTO_GetShiftState done [17:13:43]FM_GetShiftState done [17:13:43]req_shift_opened done [17:13:43]requested_item shift.open_date is exist - process it [17:13:43]req_shift_open_date [17:13:43]req_shift_open_date done [17:13:43]produce_requested_data done [17:13:43]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165373,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [17:13:43]process_action_free close_receipt [17:13:43]json_value_free [17:13:43]json_value_free done [17:13:43]process_json_proto returns [17:13:43]Send response to host [17:13:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165373,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [17:13:43]free response buf [17:13:43]execute_script done [17:13:43]execute_script returns [17:13:43]free content buf [17:13:43]Sock 9.Close socket [17:13:43]Sock 9.Thread stoped [17:13:47]OFD Sender: No OFD packet to send [17:13:51]accept exits with 8 [17:13:51]New connection [17:13:51]New thread 3066854756 created [17:13:51]Thread 3066711396 joined [17:13:51]Waiting for new connection... [17:13:51] Sock 8.Parse request [17:13:51]Sock 8.Check first char [17:13:51]Sock 8.First char is OK [17:13:51]request: POST /json_proto HTTP/1.0 [17:13:51]Method: POST [17:13:51]URL: /json_proto [17:13:51]Method is POST - this is cgi request [17:13:51]url: /json_proto [17:13:51]query_string will be loaded in cgi processing [17:13:51]execute_cgi json_proto POST (null) [17:13:51]execute_cgi path=json_proto method=POST [17:13:51]POST find Content-Length [17:13:51]Host: 172.17.56.4:8080 [17:13:51]Content-Length: 682 [17:13:51]Content-Type: application/json [17:13:51] [17:13:51]POST finish read [17:13:51]Found Content-Length = 682 [17:13:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459485", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:51]execute_script... [17:13: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)459485", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:51]POST & json_proto [17:13:51]process_json_proto [17:13:51]json parsed OK: [17:13:51]protocol is kg_v1.0 [17:13:51]action value=close_receipt [17:13:51]process_action close_receipt [17:13:51]cmd_close_receipt [17:13:51]MH_GetDate [17:13:51]Write to MH i2c: F0 00 00 78 2B 92 [17:13:51]Write i2c OK [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: F0 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: F0 09 00 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: F0 09 00 78 2B 00 D1 58 95 66 C9 DC B2 64 7A [17:13:51]GetLastDocTimeStamp 1721063621 [17:13:51]current date 1721063633 [17:13:51]FM_GetShiftState [17:13:51]SAM_PROTO_GetShiftState [17:13:51]wFMCommunicate request_size=4 [17:13:51]MH_SAM_APDU [17:13:51]CAPDU: 80 13 01 00 [17:13:51]Write to MH i2c: E2 08 00 79 2B 80 13 01 00 00 00 00 00 21 [17:13:51]Write i2c OK [17:13:51]MH_I2C_Read... [17:13:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:51]Read from MH i2c: E2 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: E2 0E 00 [17:13:51]MH_I2C_Read... [17:13:51]Read from MH i2c: E2 0E 00 79 2B 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 FA [17:13:51]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [17:13:51]wFMCommunicate OK [17:13:51]SAM_PROTO_GetShiftState done [17:13:51]FM_GetShiftState done [17:13:51]opened in 1721003876 [17:13:51]opened+sec_in_day 1721090276 [17:13:51]quantity*price = 100016 [17:13:51]sum+1 = 100017 [17:13:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 247 15.07.2024 17:13 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165374 ФПД: 38197312677360 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T171353&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165374&fm=38197312677360&tin=02508201610067®Number=0000000000090829&sum=100000 [17:13:52]StoreToDocumentArchive [17:13:52]shift 448 fd 165374 [17:13:52]save to /storage/0448/doc_00165374 [17:13:52]save last doc name /storage/0448/doc_00165374 to /storage/kkm_last_doc_name [17:13:52]save OK [17:13:52]Clear old archive folders... [17:13:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:13:52]tlvbuf is 0181AB20 [17:13:52]SAM_PROTO_ClearQueue [17:13:52]wFMCommunicate request_size=4 [17:13:52]MH_SAM_APDU [17:13:52]CAPDU: 80 09 00 00 [17:13:52]Write to MH i2c: E2 08 00 86 2B 80 09 00 00 00 00 00 00 23 [17:13:52]Write i2c OK [17:13:52]MH_I2C_Read... [17:13:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:13:52]Read from MH i2c: E2 [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: E2 03 00 [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: E2 03 00 86 2B 00 90 00 25 [17:13:52]RAPDU: 90 00 [17:13:52]wFMCommunicate OK [17:13:52]SAM_PROTO_ClearQueue done [17:13:52]KKMCreateOFDPacket [17:13:52]OFDProtocolAddRootSTLVToBuf [17:13:52]FM_MakeSignedData [17:13:52]FM_MakeSignedData [17:13:52]SAM_PROTO_SignData [17:13:52]wFMCommunicate request_size=4 [17:13:52]MH_SAM_APDU [17:13:52]CAPDU: 80 0D 01 02 [17:13:52]Write to MH i2c: E2 08 00 87 2B 80 0D 01 02 00 00 00 00 2B [17:13:52]Write i2c OK [17:13:52]MH_I2C_Read... [17:13:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:13:52]Read from MH i2c: E2 [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: E2 03 00 [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: E2 03 00 87 2B 00 90 00 26 [17:13:52]RAPDU: 90 00 [17:13:52]wFMCommunicate OK [17:13:52]wFMCommunicate request_size=255 [17:13:52]MH_SAM_APDU [17:13:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 D1 58 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FE 85 02 00 35 04 06 00 22 [17:13:52]Write to MH i2c: E2 02 01 88 2B 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 D1 58 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FE 85 02 00 35 04 06 00 22 00 00 C9 [17:13:52]Write i2c OK [17:13:52]MH_I2C_Read... [17:13:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:52]Read from MH i2c: E2 [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: E2 03 00 [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: E2 03 00 88 2B 00 90 00 27 [17:13:52]RAPDU: 90 00 [17:13:52]wFMCommunicate OK [17:13:52]wFMCommunicate request_size=10 [17:13:52]MH_SAM_APDU [17:13:52]CAPDU: 80 0D 02 02 05 BD 81 40 E5 F0 [17:13:52]Write to MH i2c: E2 0D 00 89 2B 80 0D 02 02 05 00 BD 81 40 E5 F0 00 00 8B [17:13:52]Write i2c OK [17:13:52]MH_I2C_Read... [17:13:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:52]Read from MH i2c: E2 [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: E2 03 00 [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: E2 03 00 89 2B 00 90 00 28 [17:13:52]RAPDU: 90 00 [17:13:52]wFMCommunicate OK [17:13:52]wFMCommunicate request_size=4 [17:13:52]MH_SAM_APDU [17:13:52]CAPDU: 80 0D 03 02 [17:13:52]Write to MH i2c: E2 08 00 8A 2B 80 0D 03 02 00 00 00 00 30 [17:13:52]Write i2c OK [17:13:52]MH_I2C_Read... [17:13:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:13:52]Read from MH i2c: E2 [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: E2 0B 00 [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: E2 0B 00 8A 2B 00 9B 37 CE BC 68 3E 67 9A 90 00 34 [17:13:52]RAPDU: 9B 37 CE BC 68 3E 67 9A 90 00 [17:13:52]wFMCommunicate OK [17:13:52]SAM_PROTO_SignData done [17:13:52]FM_MakeSignedData done [17:13:52]CreateOFDProtocolMessage [17:13:52]wFMCommunicate request_size=4 [17:13:52]MH_SAM_APDU [17:13:52]CAPDU: 80 11 00 00 [17:13:52]Write to MH i2c: E2 08 00 8B 2B 80 11 00 00 00 00 00 00 30 [17:13:52]Write i2c OK [17:13:52]MH_I2C_Read... [17:13:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:52]Read from MH i2c: E2 [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: E2 17 00 [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: E2 17 00 8B 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 86 [17:13:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:13:52]wFMCommunicate OK [17:13:52]CreateOFDProtocolMessage done [17:13:52]OFDSenderStorePacket 165374 [17:13:52]StoreOFDPacket docnum=165374 [17:13:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 CC A0 07 01 E1 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 D1 58 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FE 85 02 00 35 04 06 00 22 BD 81 40 E5 F0 9B 37 CE BC 68 3E 67 9A [17:13:52]CheckFolder [17:13:52]dirname=/storage/ofd_packets [17:13:52]CheckFolder done [17:13:52]ProducePacketName [17:13:52]name=ofd_packets/00165374 [17:13:52]NVStorageSaveData ofd_packets/00165374 [17:13:52]File name is /storage/ofd_packets/00165374 [17:13:52]Write 301 bytes [17:13:52]NVStorageSaveData done [17:13:52]OFDSenderStorePacket done [17:13:52]KKMCreateOFDPacket done [17:13:52]NVStorageSaveData kkm_last_timestamp [17:13:52]File name is /storage/kkm_last_timestamp [17:13:52]Write 4 bytes [17:13:52]NVStorageSaveData done [17:13:52]OFD Sender: Processing packet 165374 [packets to send 106, broken 105] [17:13:52]ProducePacketName [17:13:52]name=ofd_packets/00165374 [17:13:52]OFD Sender: To server: pG, [17:13:52]CommunicateWithHost lk.salyk.kg:30040 [17:13:52]ConnectInit lk.salyk.kg [17:13:52]ExternCall_PrintAddStr [17:13:52]wPrintStart [17:13:52]Write to MH i2c: 01 00 00 8C 2B B7 [17:13:52]Write i2c OK [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: 01 [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: 01 07 00 [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: 01 07 00 8C 2B 00 00 00 00 00 FF 0F CC [17:13:52]RasterBufferAndPrint [17:13:52]line Счет N : (1)459485 [17:13:52]line ИНН: 02508201610067 [17:13:52]line Контрольно-Кассовый Чек [17:13:52]line ПРОДАЖА [17:13:52]line ТРК (МРК, ГНК) : 12 [17:13:52]line Товар: 2710124130 [17:13:52]line Аи-92-К-5 [17:13:52]line 15.200 * 65.80 [17:13:52]line = 1000.16 [17:13:52]line НДС 12% НСП 1% [17:13:52]line > о реализуемом товаре [17:13:52]line ОКРУГЛЕНИЕ: -0.16 [17:13:52]line ИТОГО: 1000.00 [17:13:52]line Внесено: 1000.00 [17:13:52]line СДАЧА: 0.00 [17:13:52]line НСП 1% : 8.85 [17:13:52]line НДС 12% : 106.21 [17:13:52]line Наличными: 1000.00 [17:13:52]line Безнал.: 0.00 [17:13:52]line Место: АЗС № 72 "Партнер Нефть" [17:13:52]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:13:52]line СНО: Общий режим [17:13:52]line Чек 247 15.07.2024 17:13 [17:13:52]line Смена: 448 ФФД: 1.0 [17:13:52]line ЗНМ: 0300000160 [17:13:52]line РНМ: 0000000000090829 [17:13:52]line Версия ККМ: 001 [17:13:52]line ФМ: 0000000000874718 [17:13:52]line ФД: 165374 [17:13:52]line ФПД: 38197312677360 [17:13:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T171353&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165374&fm=38197312677360&tin=02508201610067®Number=0000000000090829&sum=100000 [17:13:52]written 0, free lines is 4095 [17:13:52]Connected sock=12 [17:13:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 CC A0 07 01 E1 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 D1 58 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FE 85 02 00 35 04 06 00 22 BD 81 40 E5 F0 9B 37 CE BC 68 3E 67 9A [17:13:53]Write to MH i2c: 01 00 00 B6 2B E1 [17:13:53]Write i2c OK [17:13:53]MH_I2C_Read... [17:13:53]Read from MH i2c: 01 [17:13:53]MH_I2C_Read... [17:13:53]Read from MH i2c: 01 07 00 [17:13:53]MH_I2C_Read... [17:13:53]Read from MH i2c: 01 07 00 B6 2B 00 00 00 00 00 FE 0C F2 [17:13:53]RasterBufferAndPrint [17:13:53]line [17:13:53]line [17:13:53]line [17:13:53]line [17:13:53]line [17:13:53]written 0, free lines is 3332 [17:13:53]MH_Cut [17:13:53]Write to MH i2c: D1 01 00 BD 2B 01 BA [17:13:53]Write i2c OK [17:13:53]MH_I2C_Read... [17:13:53]Read from MH i2c: D1 [17:13:53]MH_I2C_Read... [17:13:53]Read from MH i2c: D1 01 00 [17:13:53]MH_I2C_Read... [17:13:53]Read from MH i2c: D1 01 00 BD 2B 00 B9 [17:13:53]Write to MH i2c: 01 00 00 BE 2B E9 [17:13:53]Write i2c OK [17:13:53]MH_I2C_Read... [17:13:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 A5 5F 47 00 54 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FE 85 02 00 F4 03 04 00 5A FF 94 66 B6 04 01 00 00 89 41 29 C3 1B 17 98 7B [17:13:53]CommunicateWithHost err = 0 [17:13:53]CheckOFDResponse [17:13:53]1017 (14) - 77093643461234 [17:13:53]1041 (16) - 0000000000874718 [17:13:53]1040 (4) - 165374 [17:13:53]1012 (4) - 15.07.2024 10:52 [17:13:53]1206 (1) - 0 [17:13:53]OFD Sender: Remove packet 165374 [17:13:53]ProducePacketName [17:13:53]name=ofd_packets/00165374 [17:13:53]NVStorageDeleteData [17:13:53]OFD Sender: No OFD packet to send [17:13:53]*** Cut start [17:13:53]*** Partial cut [17:13:53]*** CUTSNS_PIN = 1 [17:13:54]*** CUTSNS_PIN = 0 [17:13:54]*** Brake cut motor [17:13:54]Read from MH i2c: 01 [17:13:54]MH_I2C_Read... [17:13:54]*** Stop cut motor [17:13:54]*** Cut end [17:13:54]Read from MH i2c: 01 07 00 [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: 01 07 00 BE 2B 00 00 00 00 00 FF 0F FE [17:13:54]process_action close_receipt done [17:13:54]requested_data is exist [17:13:54]produce_requested_data [17:13:54]requested_item fm.sn is exist - process it [17:13:54]wFMCommunicate request_size=4 [17:13:54]MH_SAM_APDU [17:13:54]CAPDU: 80 11 00 00 [17:13:54]Write to MH i2c: E2 08 00 BF 2B 80 11 00 00 00 00 00 00 64 [17:13:54]Write i2c OK [17:13:54]MH_I2C_Read... [17:13:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:54]Read from MH i2c: E2 [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: E2 17 00 [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: E2 17 00 BF 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 BA [17:13:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:13:54]wFMCommunicate OK [17:13:54]requested_item fd.num is exist - process it [17:13:54]SAM_PROTO_GetFieldsCounters [17:13:54]wFMCommunicate request_size=4 [17:13:54]MH_SAM_APDU [17:13:54]CAPDU: 80 13 00 00 [17:13:54]Write to MH i2c: E2 08 00 C0 2B 80 13 00 00 00 00 00 00 67 [17:13:54]Write i2c OK [17:13:54]MH_I2C_Read... [17:13:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:13:54]Read from MH i2c: E2 [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: E2 62 00 [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: E2 62 00 C0 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FE 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 B9 [17:13:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FE 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:13:54]wFMCommunicate OK [17:13:54]SAM_PROTO_GetFieldsCounters done [17:13:54]requested_item shift.num is exist - process it [17:13:54]requested_item shift.opened is exist - process it [17:13:54]req_shift_opened [17:13:54]FM_GetShiftState [17:13:54]SAM_PROTO_GetShiftState [17:13:54]wFMCommunicate request_size=4 [17:13:54]MH_SAM_APDU [17:13:54]CAPDU: 80 13 01 00 [17:13:54]Write to MH i2c: E2 08 00 C1 2B 80 13 01 00 00 00 00 00 69 [17:13:54]Write i2c OK [17:13:54]MH_I2C_Read... [17:13:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:54]Read from MH i2c: E2 [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: E2 0E 00 [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: E2 0E 00 C1 2B 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 42 [17:13:54]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [17:13:54]wFMCommunicate OK [17:13:54]SAM_PROTO_GetShiftState done [17:13:54]FM_GetShiftState done [17:13:54]req_shift_opened done [17:13:54]requested_item shift.open_date is exist - process it [17:13:54]req_shift_open_date [17:13:54]req_shift_open_date done [17:13:54]produce_requested_data done [17:13:54]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165374,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [17:13:54]process_action_free close_receipt [17:13:54]json_value_free [17:13:54]json_value_free done [17:13:54]process_json_proto returns [17:13:54]Send response to host [17:13:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165374,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [17:13:54]free response buf [17:13:54]execute_script done [17:13:54]execute_script returns [17:13:54]free content buf [17:13:54]Sock 8.Close socket [17:13:54]Sock 8.Thread stoped [17:13:58]OFD Sender: No OFD packet to send [17:14:03]OFD Sender: No OFD packet to send [17:14:08]OFD Sender: No OFD packet to send [17:14:13]OFD Sender: No OFD packet to send [17:14:18]OFD Sender: No OFD packet to send [17:14:23]OFD Sender: No OFD packet to send [17:14:28]OFD Sender: No OFD packet to send [17:14:33]OFD Sender: No OFD packet to send [17:14:38]OFD Sender: No OFD packet to send [17:14:43]OFD Sender: No OFD packet to send [17:14:49]OFD Sender: No OFD packet to send [17:14:54]OFD Sender: No OFD packet to send [17:14:59]OFD Sender: No OFD packet to send [17:15:04]OFD Sender: No OFD packet to send [17:15:09]OFD Sender: No OFD packet to send [17:15:14]OFD Sender: No OFD packet to send [17:15:19]OFD Sender: No OFD packet to send [17:15:24]OFD Sender: No OFD packet to send [17:15:29]OFD Sender: No OFD packet to send [17:15:34]OFD Sender: No OFD packet to send [17:15:39]OFD Sender: No OFD packet to send [17:15:44]OFD Sender: No OFD packet to send [17:15:49]OFD Sender: No OFD packet to send [17:15:54]OFD Sender: No OFD packet to send [17:15:59]OFD Sender: No OFD packet to send [17:16:04]OFD Sender: No OFD packet to send [17:16:09]OFD Sender: No OFD packet to send [17:16:14]OFD Sender: No OFD packet to send [17:16:19]OFD Sender: No OFD packet to send [17:16:21]accept exits with 9 [17:16:21]New connection [17:16:21]New thread 3066711396 created [17:16:21]Thread 3066854756 joined [17:16:21]Waiting for new connection... [17:16:21] Sock 9.Parse request [17:16:21]Sock 9.Check first char [17:16:21]Sock 9.First char is OK [17:16:21]request: POST /json_proto HTTP/1.0 [17:16:21]Method: POST [17:16:21]URL: /json_proto [17:16:21]Method is POST - this is cgi request [17:16:21]url: /json_proto [17:16:21]query_string will be loaded in cgi processing [17:16:21]execute_cgi json_proto POST (null) [17:16:21]execute_cgi path=json_proto method=POST [17:16:21]POST find Content-Length [17:16:21]Host: 172.17.56.4:8080 [17:16:21]Content-Length: 682 [17:16:21]Content-Type: application/json [17:16:21] [17:16:21]POST finish read [17:16:21]Found Content-Length = 682 [17:16:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459487", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:21]execute_script... [17:16:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459487", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:21]POST & json_proto [17:16:21]process_json_proto [17:16:21]json parsed OK: [17:16:21]protocol is kg_v1.0 [17:16:21]action value=close_receipt [17:16:21]process_action close_receipt [17:16:21]cmd_close_receipt [17:16:21]MH_GetDate [17:16:21]Write to MH i2c: F0 00 00 C2 2B DC [17:16:21]Write i2c OK [17:16:21]MH_I2C_Read... [17:16:21]Read from MH i2c: F0 [17:16:21]MH_I2C_Read... [17:16:21]Read from MH i2c: F0 09 00 [17:16:21]MH_I2C_Read... [17:16:21]Read from MH i2c: F0 09 00 C2 2B 00 67 59 95 66 C9 DC B2 64 5B [17:16:21]GetLastDocTimeStamp 1721063633 [17:16:21]current date 1721063783 [17:16:21]FM_GetShiftState [17:16:21]SAM_PROTO_GetShiftState [17:16:21]wFMCommunicate request_size=4 [17:16:21]MH_SAM_APDU [17:16:21]CAPDU: 80 13 01 00 [17:16:21]Write to MH i2c: E2 08 00 C3 2B 80 13 01 00 00 00 00 00 6B [17:16:21]Write i2c OK [17:16:21]MH_I2C_Read... [17:16:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:21]Read from MH i2c: E2 [17:16:21]MH_I2C_Read... [17:16:21]Read from MH i2c: E2 0E 00 [17:16:21]MH_I2C_Read... [17:16:21]Read from MH i2c: E2 0E 00 C3 2B 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 44 [17:16:21]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [17:16:21]wFMCommunicate OK [17:16:21]SAM_PROTO_GetShiftState done [17:16:21]FM_GetShiftState done [17:16:21]opened in 1721003876 [17:16:21]opened+sec_in_day 1721090276 [17:16:21]quantity*price = 100016 [17:16:21]sum+1 = 100017 [17:16:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 248 15.07.2024 17:16 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165375 ФПД: 138468646334773 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T171623&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165375&fm=138468646334773&tin=02508201610067®Number=0000000000090829&sum=100000 [17:16:22]StoreToDocumentArchive [17:16:22]shift 448 fd 165375 [17:16:22]save to /storage/0448/doc_00165375 [17:16:22]save last doc name /storage/0448/doc_00165375 to /storage/kkm_last_doc_name [17:16:22]save OK [17:16:22]Clear old archive folders... [17:16:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:16:22]tlvbuf is 0191B620 [17:16:22]SAM_PROTO_ClearQueue [17:16:22]wFMCommunicate request_size=4 [17:16:22]MH_SAM_APDU [17:16:22]CAPDU: 80 09 00 00 [17:16:22]Write to MH i2c: E2 08 00 D0 2B 80 09 00 00 00 00 00 00 6D [17:16:22]Write i2c OK [17:16:22]MH_I2C_Read... [17:16:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:16:22]Read from MH i2c: E2 [17:16:22]MH_I2C_Read... [17:16:22]Read from MH i2c: E2 03 00 [17:16:22]MH_I2C_Read... [17:16:22]Read from MH i2c: E2 03 00 D0 2B 00 90 00 6F [17:16:22]RAPDU: 90 00 [17:16:22]wFMCommunicate OK [17:16:22]SAM_PROTO_ClearQueue done [17:16:22]KKMCreateOFDPacket [17:16:22]OFDProtocolAddRootSTLVToBuf [17:16:22]FM_MakeSignedData [17:16:22]FM_MakeSignedData [17:16:22]SAM_PROTO_SignData [17:16:22]wFMCommunicate request_size=4 [17:16:22]MH_SAM_APDU [17:16:22]CAPDU: 80 0D 01 02 [17:16:22]Write to MH i2c: E2 08 00 D1 2B 80 0D 01 02 00 00 00 00 75 [17:16:22]Write i2c OK [17:16:22]MH_I2C_Read... [17:16:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:16:22]Read from MH i2c: E2 [17:16:22]MH_I2C_Read... [17:16:22]Read from MH i2c: E2 03 00 [17:16:22]MH_I2C_Read... [17:16:22]Read from MH i2c: E2 03 00 D1 2B 00 90 00 70 [17:16:22]RAPDU: 90 00 [17:16:22]wFMCommunicate OK [17:16:22]wFMCommunicate request_size=255 [17:16:22]MH_SAM_APDU [17:16:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 67 59 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FF 85 02 00 35 04 06 00 7D [17:16:22]Write to MH i2c: E2 02 01 D2 2B 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 67 59 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FF 85 02 00 35 04 06 00 7D 00 00 07 [17:16:22]Write i2c OK [17:16:22]MH_I2C_Read... [17:16:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:23]Read from MH i2c: E2 [17:16:23]MH_I2C_Read... [17:16:23]Read from MH i2c: E2 03 00 [17:16:23]MH_I2C_Read... [17:16:23]Read from MH i2c: E2 03 00 D2 2B 00 90 00 71 [17:16:23]RAPDU: 90 00 [17:16:23]wFMCommunicate OK [17:16:23]wFMCommunicate request_size=10 [17:16:23]MH_SAM_APDU [17:16:23]CAPDU: 80 0D 02 02 05 EF BE 7A 31 35 [17:16:23]Write to MH i2c: E2 0D 00 D3 2B 80 0D 02 02 05 00 EF BE 7A 31 35 00 00 0F [17:16:23]Write i2c OK [17:16:23]MH_I2C_Read... [17:16:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:23]Read from MH i2c: E2 [17:16:23]MH_I2C_Read... [17:16:23]Read from MH i2c: E2 03 00 [17:16:23]MH_I2C_Read... [17:16:23]Read from MH i2c: E2 03 00 D3 2B 00 90 00 72 [17:16:23]RAPDU: 90 00 [17:16:23]wFMCommunicate OK [17:16:23]wFMCommunicate request_size=4 [17:16:23]MH_SAM_APDU [17:16:23]CAPDU: 80 0D 03 02 [17:16:23]Write to MH i2c: E2 08 00 D4 2B 80 0D 03 02 00 00 00 00 7A [17:16:23]Write i2c OK [17:16:23]MH_I2C_Read... [17:16:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:16:23]Read from MH i2c: E2 [17:16:23]MH_I2C_Read... [17:16:23]Read from MH i2c: E2 0B 00 [17:16:23]MH_I2C_Read... [17:16:23]Read from MH i2c: E2 0B 00 D4 2B 00 B2 F5 39 67 34 79 4B FB 90 00 B5 [17:16:23]RAPDU: B2 F5 39 67 34 79 4B FB 90 00 [17:16:23]wFMCommunicate OK [17:16:23]SAM_PROTO_SignData done [17:16:23]FM_MakeSignedData done [17:16:23]CreateOFDProtocolMessage [17:16:23]wFMCommunicate request_size=4 [17:16:23]MH_SAM_APDU [17:16:23]CAPDU: 80 11 00 00 [17:16:23]Write to MH i2c: E2 08 00 D5 2B 80 11 00 00 00 00 00 00 7A [17:16:23]Write i2c OK [17:16:23]MH_I2C_Read... [17:16:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:23]Read from MH i2c: E2 [17:16:23]MH_I2C_Read... [17:16:23]Read from MH i2c: E2 17 00 [17:16:23]MH_I2C_Read... [17:16:23]Read from MH i2c: E2 17 00 D5 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D0 [17:16:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:16:23]wFMCommunicate OK [17:16:23]CreateOFDProtocolMessage done [17:16:23]OFDSenderStorePacket 165375 [17:16:23]StoreOFDPacket docnum=165375 [17:16:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A0 8D 07 01 CE F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 67 59 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FF 85 02 00 35 04 06 00 7D EF BE 7A 31 35 B2 F5 39 67 34 79 4B FB [17:16:23]CheckFolder [17:16:23]dirname=/storage/ofd_packets [17:16:23]CheckFolder done [17:16:23]ProducePacketName [17:16:23]name=ofd_packets/00165375 [17:16:23]NVStorageSaveData ofd_packets/00165375 [17:16:23]File name is /storage/ofd_packets/00165375 [17:16:23]Write 301 bytes [17:16:23]NVStorageSaveData done [17:16:23]OFDSenderStorePacket done [17:16:23]KKMCreateOFDPacket done [17:16:23]NVStorageSaveData kkm_last_timestamp [17:16:23]File name is /storage/kkm_last_timestamp [17:16:23]Write 4 bytes [17:16:23]NVStorageSaveData done [17:16:23]ExternCall_PrintAddStr [17:16:23]wPrintStart [17:16:23]Write to MH i2c: 01 00 00 D6 2B 01 [17:16:23]Write i2c OK [17:16:23]MH_I2C_Read... [17:16:23]Read from MH i2c: 01 [17:16:23]MH_I2C_Read... [17:16:23]Read from MH i2c: 01 07 00 [17:16:23]MH_I2C_Read... [17:16:23]Read from MH i2c: 01 07 00 D6 2B 00 00 00 00 00 FF 0F 16 [17:16:23]RasterBufferAndPrint [17:16:23]line Счет N : (1)459487 [17:16:23]line ИНН: 02508201610067 [17:16:23]line Контрольно-Кассовый Чек [17:16:23]line ПРОДАЖА [17:16:23]line ТРК (МРК, ГНК) : 12 [17:16:23]line Товар: 2710124130 [17:16:23]line Аи-92-К-5 [17:16:23]line 15.200 * 65.80 [17:16:23]line = 1000.16 [17:16:23]line НДС 12% НСП 1% [17:16:23]line > о реализуемом товаре [17:16:23]line ОКРУГЛЕНИЕ: -0.16 [17:16:23]line ИТОГО: 1000.00 [17:16:23]line Внесено: 1000.00 [17:16:23]line СДАЧА: 0.00 [17:16:23]line НСП 1% : 8.85 [17:16:23]line НДС 12% : 106.21 [17:16:23]line Наличными: 1000.00 [17:16:23]line Безнал.: 0.00 [17:16:23]line Место: АЗС № 72 "Партнер Нефть" [17:16:23]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:16:23]line СНО: Общий режим [17:16:23]line Чек 248 15.07.2024 17:16 [17:16:23]line Смена: 448 ФФД: 1.0 [17:16:23]line ЗНМ: 0300000160 [17:16:23]line РНМ: 0000000000090829 [17:16:23]line Версия ККМ: 001 [17:16:23]line ФМ: 0000000000874718 [17:16:23]line ФД: 165375 [17:16:23]line ФПД: 138468646334773 [17:16:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T171623&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165375&fm=138468646334773&tin=02508201610067®Number=0000000000090829&sum=100000 [17:16:23]written 0, free lines is 4095 [17:16:23]OFD Sender: Processing packet 165375 [packets to send 106, broken 105] [17:16:23]ProducePacketName [17:16:23]name=ofd_packets/00165375 [17:16:23]OFD Sender: To server: pG, [17:16:23]CommunicateWithHost lk.salyk.kg:30040 [17:16:23]ConnectInit lk.salyk.kg [17:16:23]Connected sock=10 [17:16:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A0 8D 07 01 CE F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 67 59 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 FF 85 02 00 35 04 06 00 7D EF BE 7A 31 35 B2 F5 39 67 34 79 4B FB [17:16:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 E2 21 47 00 2B 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 FF 85 02 00 F4 03 04 00 F1 FF 94 66 B6 04 01 00 00 5F 6D 1B 7C 7D 32 A1 A9 [17:16:23]CommunicateWithHost err = 0 [17:16:23]CheckOFDResponse [17:16:23]1017 (14) - 77093643461234 [17:16:23]1041 (16) - 0000000000874718 [17:16:23]1040 (4) - 165375 [17:16:23]1012 (4) - 15.07.2024 10:54 [17:16:23]1206 (1) - 0 [17:16:23]OFD Sender: Remove packet 165375 [17:16:23]ProducePacketName [17:16:23]name=ofd_packets/00165375 [17:16:23]NVStorageDeleteData [17:16:23]Write to MH i2c: 01 00 00 00 2C 2C [17:16:23]Write i2c OK [17:16:23]MH_I2C_Read... [17:16:23]Read from MH i2c: 01 [17:16:23]MH_I2C_Read... [17:16:23]Read from MH i2c: 01 07 00 [17:16:23]MH_I2C_Read... [17:16:23]Read from MH i2c: 01 07 00 00 2C 00 00 00 00 00 F3 0C 32 [17:16:23]RasterBufferAndPrint [17:16:23]line [17:16:23]line [17:16:23]line [17:16:23]line [17:16:23]line [17:16:23]written 0, free lines is 3321 [17:16:23]MH_Cut [17:16:23]Write to MH i2c: D1 01 00 07 2C 01 05 [17:16:23]Write i2c OK [17:16:23]MH_I2C_Read... [17:16:23]Read from MH i2c: D1 [17:16:23]MH_I2C_Read... [17:16:23]Read from MH i2c: D1 01 00 [17:16:23]MH_I2C_Read... [17:16:23]Read from MH i2c: D1 01 00 07 2C 00 04 [17:16:23]Write to MH i2c: 01 00 00 08 2C 34 [17:16:23]Write i2c OK [17:16:23]MH_I2C_Read... [17:16:24]OFD Sender: No OFD packet to send [17:16:24]*** Cut start [17:16:24]*** Partial cut [17:16:24]*** CUTSNS_PIN = 1 [17:16:24]*** CUTSNS_PIN = 0 [17:16:24]*** Brake cut motor [17:16:25]Read from MH i2c: 01 [17:16:25]MH_I2C_Read... [17:16:25]*** Stop cut motor [17:16:25]*** Cut end [17:16:25]Read from MH i2c: 01 07 00 [17:16:25]MH_I2C_Read... [17:16:25]Read from MH i2c: 01 07 00 08 2C 00 00 00 00 00 FF 0F 49 [17:16:25]process_action close_receipt done [17:16:25]requested_data is exist [17:16:25]produce_requested_data [17:16:25]requested_item fm.sn is exist - process it [17:16:25]wFMCommunicate request_size=4 [17:16:25]MH_SAM_APDU [17:16:25]CAPDU: 80 11 00 00 [17:16:25]Write to MH i2c: E2 08 00 09 2C 80 11 00 00 00 00 00 00 AF [17:16:25]Write i2c OK [17:16:25]MH_I2C_Read... [17:16:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:25]Read from MH i2c: E2 [17:16:25]MH_I2C_Read... [17:16:25]Read from MH i2c: E2 17 00 [17:16:25]MH_I2C_Read... [17:16:25]Read from MH i2c: E2 17 00 09 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 05 [17:16:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:16:25]wFMCommunicate OK [17:16:25]requested_item fd.num is exist - process it [17:16:25]SAM_PROTO_GetFieldsCounters [17:16:25]wFMCommunicate request_size=4 [17:16:25]MH_SAM_APDU [17:16:25]CAPDU: 80 13 00 00 [17:16:25]Write to MH i2c: E2 08 00 0A 2C 80 13 00 00 00 00 00 00 B2 [17:16:25]Write i2c OK [17:16:25]MH_I2C_Read... [17:16:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:16:25]Read from MH i2c: E2 [17:16:25]MH_I2C_Read... [17:16:25]Read from MH i2c: E2 62 00 [17:16:25]MH_I2C_Read... [17:16:25]Read from MH i2c: E2 62 00 0A 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FF 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [17:16:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 FF 85 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:16:25]wFMCommunicate OK [17:16:25]SAM_PROTO_GetFieldsCounters done [17:16:25]requested_item shift.num is exist - process it [17:16:25]requested_item shift.opened is exist - process it [17:16:25]req_shift_opened [17:16:25]FM_GetShiftState [17:16:25]SAM_PROTO_GetShiftState [17:16:25]wFMCommunicate request_size=4 [17:16:25]MH_SAM_APDU [17:16:25]CAPDU: 80 13 01 00 [17:16:25]Write to MH i2c: E2 08 00 0B 2C 80 13 01 00 00 00 00 00 B4 [17:16:25]Write i2c OK [17:16:25]MH_I2C_Read... [17:16:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:25]Read from MH i2c: E2 [17:16:25]MH_I2C_Read... [17:16:25]Read from MH i2c: E2 0E 00 [17:16:25]MH_I2C_Read... [17:16:25]Read from MH i2c: E2 0E 00 0B 2C 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 8D [17:16:25]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [17:16:25]wFMCommunicate OK [17:16:25]SAM_PROTO_GetShiftState done [17:16:25]FM_GetShiftState done [17:16:25]req_shift_opened done [17:16:25]requested_item shift.open_date is exist - process it [17:16:25]req_shift_open_date [17:16:25]req_shift_open_date done [17:16:25]produce_requested_data done [17:16:25]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165375,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [17:16:25]process_action_free close_receipt [17:16:25]json_value_free [17:16:25]json_value_free done [17:16:25]process_json_proto returns [17:16:25]Send response to host [17:16:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165375,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [17:16:25]free response buf [17:16:25]execute_script done [17:16:25]execute_script returns [17:16:25]free content buf [17:16:25]Sock 9.Close socket [17:16:25]Sock 9.Thread stoped [17:16:29]OFD Sender: No OFD packet to send [17:16:34]OFD Sender: No OFD packet to send [17:16:39]OFD Sender: No OFD packet to send [17:16:44]OFD Sender: No OFD packet to send [17:16:49]OFD Sender: No OFD packet to send [17:16:49]accept exits with 8 [17:16:49]New connection [17:16:49]New thread 3066854756 created [17:16:49]Thread 3066711396 joined [17:16:49]Waiting for new connection... [17:16:49] Sock 8.Parse request [17:16:49]Sock 8.Check first char [17:16:49]Sock 8.First char is OK [17:16:49]request: POST /json_proto HTTP/1.0 [17:16:49]Method: POST [17:16:49]URL: /json_proto [17:16:49]Method is POST - this is cgi request [17:16:49]url: /json_proto [17:16:49]query_string will be loaded in cgi processing [17:16:49]execute_cgi json_proto POST (null) [17:16:49]execute_cgi path=json_proto method=POST [17:16:49]POST find Content-Length [17:16:49]Host: 172.17.56.4:8080 [17:16:49]Content-Length: 677 [17:16:49]Content-Type: application/json [17:16:49] [17:16:49]POST finish read [17:16:49]Found Content-Length = 677 [17:16:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459488", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.840, "sum" : 450.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:49]execute_script... [17:16:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459488", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.840, "sum" : 450.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:49]POST & json_proto [17:16:49]process_json_proto [17:16:49]json parsed OK: [17:16:49]protocol is kg_v1.0 [17:16:49]action value=close_receipt [17:16:49]process_action close_receipt [17:16:49]cmd_close_receipt [17:16:49]MH_GetDate [17:16:49]Write to MH i2c: F0 00 00 0C 2C 27 [17:16:49]Write i2c OK [17:16:49]MH_I2C_Read... [17:16:49]Read from MH i2c: F0 [17:16:49]MH_I2C_Read... [17:16:49]Read from MH i2c: F0 09 00 [17:16:49]MH_I2C_Read... [17:16:49]Read from MH i2c: F0 09 00 0C 2C 00 83 59 95 66 C9 DC B2 64 C2 [17:16:49]GetLastDocTimeStamp 1721063783 [17:16:49]current date 1721063811 [17:16:49]FM_GetShiftState [17:16:49]SAM_PROTO_GetShiftState [17:16:49]wFMCommunicate request_size=4 [17:16:49]MH_SAM_APDU [17:16:49]CAPDU: 80 13 01 00 [17:16:49]Write to MH i2c: E2 08 00 0D 2C 80 13 01 00 00 00 00 00 B6 [17:16:49]Write i2c OK [17:16:49]MH_I2C_Read... [17:16:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:49]Read from MH i2c: E2 [17:16:49]MH_I2C_Read... [17:16:49]Read from MH i2c: E2 0E 00 [17:16:49]MH_I2C_Read... [17:16:49]Read from MH i2c: E2 0E 00 0D 2C 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 8F [17:16:49]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [17:16:49]wFMCommunicate OK [17:16:49]SAM_PROTO_GetShiftState done [17:16:49]FM_GetShiftState done [17:16:49]opened in 1721003876 [17:16:49]opened+sec_in_day 1721090276 [17:16:49]quantity*price = 45007 [17:16:49]sum+1 = 45008 [17:16:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 450.00 Внесено: 450.00 СДАЧА: 0.00 НСП 1% : 3.98 НДС 12% : 47.79 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 249 15.07.2024 17:16 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165376 ФПД: 260795293066626 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T171651&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165376&fm=260795293066626&tin=02508201610067®Number=0000000000090829&sum=45000 [17:16:50]StoreToDocumentArchive [17:16:50]shift 448 fd 165376 [17:16:50]save to /storage/0448/doc_00165376 [17:16:50]save last doc name /storage/0448/doc_00165376 to /storage/kkm_last_doc_name [17:16:50]save OK [17:16:50]Clear old archive folders... [17:16:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:16:50]tlvbuf is B6D907F0 [17:16:50]SAM_PROTO_ClearQueue [17:16:50]wFMCommunicate request_size=4 [17:16:50]MH_SAM_APDU [17:16:50]CAPDU: 80 09 00 00 [17:16:50]Write to MH i2c: E2 08 00 1A 2C 80 09 00 00 00 00 00 00 B8 [17:16:50]Write i2c OK [17:16:50]MH_I2C_Read... [17:16:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:16:50]Read from MH i2c: E2 [17:16:50]MH_I2C_Read... [17:16:50]Read from MH i2c: E2 03 00 [17:16:50]MH_I2C_Read... [17:16:50]Read from MH i2c: E2 03 00 1A 2C 00 90 00 BA [17:16:50]RAPDU: 90 00 [17:16:50]wFMCommunicate OK [17:16:50]SAM_PROTO_ClearQueue done [17:16:50]KKMCreateOFDPacket [17:16:50]OFDProtocolAddRootSTLVToBuf [17:16:50]FM_MakeSignedData [17:16:50]FM_MakeSignedData [17:16:50]SAM_PROTO_SignData [17:16:50]wFMCommunicate request_size=4 [17:16:50]MH_SAM_APDU [17:16:50]CAPDU: 80 0D 01 02 [17:16:50]Write to MH i2c: E2 08 00 1B 2C 80 0D 01 02 00 00 00 00 C0 [17:16:50]Write i2c OK [17:16:50]MH_I2C_Read... [17:16:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:16:50]Read from MH i2c: E2 [17:16:50]MH_I2C_Read... [17:16:50]Read from MH i2c: E2 03 00 [17:16:50]MH_I2C_Read... [17:16:50]Read from MH i2c: E2 03 00 1B 2C 00 90 00 BB [17:16:50]RAPDU: 90 00 [17:16:50]wFMCommunicate OK [17:16:50]wFMCommunicate request_size=255 [17:16:50]MH_SAM_APDU [17:16:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 1A 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 CF AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 83 59 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 00 86 02 00 35 04 06 00 ED [17:16:50]Write to MH i2c: E2 02 01 1C 2C 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 B8 1A 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 CF AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 83 59 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 00 86 02 00 35 04 06 00 ED 00 00 2D [17:16:50]Write i2c OK [17:16:50]MH_I2C_Read... [17:16:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:50]Read from MH i2c: E2 [17:16:50]MH_I2C_Read... [17:16:50]Read from MH i2c: E2 03 00 [17:16:50]MH_I2C_Read... [17:16:50]Read from MH i2c: E2 03 00 1C 2C 00 90 00 BC [17:16:50]RAPDU: 90 00 [17:16:50]wFMCommunicate OK [17:16:50]wFMCommunicate request_size=10 [17:16:50]MH_SAM_APDU [17:16:50]CAPDU: 80 0D 02 02 05 31 22 CD 65 82 [17:16:50]Write to MH i2c: E2 0D 00 1D 2C 80 0D 02 02 05 00 31 22 CD 65 82 00 00 D4 [17:16:50]Write i2c OK [17:16:50]MH_I2C_Read... [17:16:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:50]Read from MH i2c: E2 [17:16:50]MH_I2C_Read... [17:16:50]Read from MH i2c: E2 03 00 [17:16:50]MH_I2C_Read... [17:16:51]Read from MH i2c: E2 03 00 1D 2C 00 90 00 BD [17:16:51]RAPDU: 90 00 [17:16:51]wFMCommunicate OK [17:16:51]wFMCommunicate request_size=4 [17:16:51]MH_SAM_APDU [17:16:51]CAPDU: 80 0D 03 02 [17:16:51]Write to MH i2c: E2 08 00 1E 2C 80 0D 03 02 00 00 00 00 C5 [17:16:51]Write i2c OK [17:16:51]MH_I2C_Read... [17:16:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:16:51]Read from MH i2c: E2 [17:16:51]MH_I2C_Read... [17:16:51]Read from MH i2c: E2 0B 00 [17:16:51]MH_I2C_Read... [17:16:51]Read from MH i2c: E2 0B 00 1E 2C 00 77 C0 C0 38 9C E1 BE 32 90 00 62 [17:16:51]RAPDU: 77 C0 C0 38 9C E1 BE 32 90 00 [17:16:51]wFMCommunicate OK [17:16:51]SAM_PROTO_SignData done [17:16:51]FM_MakeSignedData done [17:16:51]CreateOFDProtocolMessage [17:16:51]wFMCommunicate request_size=4 [17:16:51]MH_SAM_APDU [17:16:51]CAPDU: 80 11 00 00 [17:16:51]Write to MH i2c: E2 08 00 1F 2C 80 11 00 00 00 00 00 00 C5 [17:16:51]Write i2c OK [17:16:51]MH_I2C_Read... [17:16:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:51]Read from MH i2c: E2 [17:16:51]MH_I2C_Read... [17:16:51]Read from MH i2c: E2 17 00 [17:16:51]MH_I2C_Read... [17:16:51]Read from MH i2c: E2 17 00 1F 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1B [17:16:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:16:51]wFMCommunicate OK [17:16:51]CreateOFDProtocolMessage done [17:16:51]OFDSenderStorePacket 165376 [17:16:51]StoreOFDPacket docnum=165376 [17:16:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 37 A4 07 01 EC 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 B8 1A 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 CF AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 83 59 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 00 86 02 00 35 04 06 00 ED 31 22 CD 65 82 77 C0 C0 38 9C E1 BE 32 [17:16:51]CheckFolder [17:16:51]dirname=/storage/ofd_packets [17:16:51]CheckFolder done [17:16:51]ProducePacketName [17:16:51]name=ofd_packets/00165376 [17:16:51]NVStorageSaveData ofd_packets/00165376 [17:16:51]File name is /storage/ofd_packets/00165376 [17:16:51]Write 301 bytes [17:16:51]NVStorageSaveData done [17:16:51]OFDSenderStorePacket done [17:16:51]KKMCreateOFDPacket done [17:16:51]NVStorageSaveData kkm_last_timestamp [17:16:51]File name is /storage/kkm_last_timestamp [17:16:51]Write 4 bytes [17:16:51]NVStorageSaveData done [17:16:51]ExternCall_PrintAddStr [17:16:51]wPrintStart [17:16:51]Write to MH i2c: 01 00 00 20 2C 4C [17:16:51]Write i2c OK [17:16:51]MH_I2C_Read... [17:16:51]Read from MH i2c: 01 [17:16:51]MH_I2C_Read... [17:16:51]Read from MH i2c: 01 07 00 [17:16:51]MH_I2C_Read... [17:16:51]Read from MH i2c: 01 07 00 20 2C 00 00 00 00 00 FF 0F 61 [17:16:51]RasterBufferAndPrint [17:16:51]line Счет N : (1)459488 [17:16:51]line ИНН: 02508201610067 [17:16:51]line Контрольно-Кассовый Чек [17:16:51]line ПРОДАЖА [17:16:51]line ТРК (МРК, ГНК) : 22 [17:16:51]line Товар: 2710124130 [17:16:51]line Аи-92-К-5 [17:16:51]line 6.840 * 65.80 [17:16:51]line = 450.07 [17:16:51]line НДС 12% НСП 1% [17:16:51]line > о реализуемом товаре [17:16:51]line ОКРУГЛЕНИЕ: -0.07 [17:16:51]line ИТОГО: 450.00 [17:16:51]line Внесено: 450.00 [17:16:51]line СДАЧА: 0.00 [17:16:51]line НСП 1% : 3.98 [17:16:51]line НДС 12% : 47.79 [17:16:51]line Наличными: 450.00 [17:16:51]line Безнал.: 0.00 [17:16:51]line Место: АЗС № 72 "Партнер Нефть" [17:16:51]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:16:51]line СНО: Общий режим [17:16:51]line Чек 249 15.07.2024 17:16 [17:16:51]line Смена: 448 ФФД: 1.0 [17:16:51]line ЗНМ: 0300000160 [17:16:51]line РНМ: 0000000000090829 [17:16:51]line Версия ККМ: 001 [17:16:51]line ФМ: 0000000000874718 [17:16:51]line ФД: 165376 [17:16:51]line ФПД: 260795293066626 [17:16:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T171651&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165376&fm=260795293066626&tin=02508201610067®Number=0000000000090829&sum=45000 [17:16:51]written 0, free lines is 4095 [17:16:51]OFD Sender: Processing packet 165376 [packets to send 106, broken 105] [17:16:51]ProducePacketName [17:16:51]name=ofd_packets/00165376 [17:16:51]OFD Sender: To server: pG, [17:16:51]CommunicateWithHost lk.salyk.kg:30040 [17:16:51]ConnectInit lk.salyk.kg [17:16:51]Connected sock=10 [17:16:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 37 A4 07 01 EC 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 B8 1A 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 CF AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 83 59 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 00 86 02 00 35 04 06 00 ED 31 22 CD 65 82 77 C0 C0 38 9C E1 BE 32 [17:16:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 45 4C 47 00 33 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 37 31 38 10 04 04 00 00 86 02 00 F4 03 04 00 0C 00 95 66 B6 04 01 00 00 AD A8 AD AB E0 24 38 B9 [17:16:51]CommunicateWithHost err = 0 [17:16:51]CheckOFDResponse [17:16:51]1017 (14) - 77093643461234 [17:16:51]1041 (16) - 0000000000874718 [17:16:51]1040 (4) - 165376 [17:16:51]1012 (4) - 15.07.2024 10:55 [17:16:51]1206 (1) - 0 [17:16:51]OFD Sender: Remove packet 165376 [17:16:51]ProducePacketName [17:16:51]name=ofd_packets/00165376 [17:16:51]NVStorageDeleteData [17:16:51]Write to MH i2c: 01 00 00 4A 2C 76 [17:16:51]Write i2c OK [17:16:51]MH_I2C_Read... [17:16:51]Read from MH i2c: 01 [17:16:51]MH_I2C_Read... [17:16:51]Read from MH i2c: 01 07 00 [17:16:51]MH_I2C_Read... [17:16:51]Read from MH i2c: 01 07 00 4A 2C 00 00 00 00 00 0B 0D 95 [17:16:51]RasterBufferAndPrint [17:16:51]line [17:16:51]line [17:16:51]line [17:16:51]line [17:16:51]line [17:16:51]written 0, free lines is 3345 [17:16:51]MH_Cut [17:16:51]Write to MH i2c: D1 01 00 51 2C 01 4F [17:16:51]Write i2c OK [17:16:51]MH_I2C_Read... [17:16:51]Read from MH i2c: D1 [17:16:51]MH_I2C_Read... [17:16:51]Read from MH i2c: D1 01 00 [17:16:51]MH_I2C_Read... [17:16:51]Read from MH i2c: D1 01 00 51 2C 00 4E [17:16:51]Write to MH i2c: 01 00 00 52 2C 7E [17:16:51]Write i2c OK [17:16:51]MH_I2C_Read... [17:16:51]OFD Sender: No OFD packet to send [17:16:52]*** Cut start [17:16:52]*** Partial cut [17:16:52]*** CUTSNS_PIN = 1 [17:16:52]*** CUTSNS_PIN = 0 [17:16:52]*** Brake cut motor [17:16:52]Read from MH i2c: 01 [17:16:52]MH_I2C_Read... [17:16:52]*** Stop cut motor [17:16:52]*** Cut end [17:16:52]Read from MH i2c: 01 07 00 [17:16:52]MH_I2C_Read... [17:16:52]Read from MH i2c: 01 07 00 52 2C 00 00 00 00 00 FF 0F 93 [17:16:52]process_action close_receipt done [17:16:52]requested_data is exist [17:16:52]produce_requested_data [17:16:52]requested_item fm.sn is exist - process it [17:16:52]wFMCommunicate request_size=4 [17:16:52]MH_SAM_APDU [17:16:52]CAPDU: 80 11 00 00 [17:16:52]Write to MH i2c: E2 08 00 53 2C 80 11 00 00 00 00 00 00 F9 [17:16:52]Write i2c OK [17:16:52]MH_I2C_Read... [17:16:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:52]Read from MH i2c: E2 [17:16:52]MH_I2C_Read... [17:16:52]Read from MH i2c: E2 17 00 [17:16:52]MH_I2C_Read... [17:16:52]Read from MH i2c: E2 17 00 53 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4F [17:16:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:16:52]wFMCommunicate OK [17:16:52]requested_item fd.num is exist - process it [17:16:52]SAM_PROTO_GetFieldsCounters [17:16:52]wFMCommunicate request_size=4 [17:16:52]MH_SAM_APDU [17:16:52]CAPDU: 80 13 00 00 [17:16:52]Write to MH i2c: E2 08 00 54 2C 80 13 00 00 00 00 00 00 FC [17:16:52]Write i2c OK [17:16:52]MH_I2C_Read... [17:16:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:16:53]Read from MH i2c: E2 [17:16:53]MH_I2C_Read... [17:16:53]Read from MH i2c: E2 62 00 [17:16:53]MH_I2C_Read... [17:16:53]Read from MH i2c: E2 62 00 54 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 00 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [17:16: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 00 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:16:53]wFMCommunicate OK [17:16:53]SAM_PROTO_GetFieldsCounters done [17:16:53]requested_item shift.num is exist - process it [17:16:53]requested_item shift.opened is exist - process it [17:16:53]req_shift_opened [17:16:53]FM_GetShiftState [17:16:53]SAM_PROTO_GetShiftState [17:16:53]wFMCommunicate request_size=4 [17:16:53]MH_SAM_APDU [17:16:53]CAPDU: 80 13 01 00 [17:16:53]Write to MH i2c: E2 08 00 55 2C 80 13 01 00 00 00 00 00 FE [17:16:53]Write i2c OK [17:16:53]MH_I2C_Read... [17:16:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:53]Read from MH i2c: E2 [17:16:53]MH_I2C_Read... [17:16:53]Read from MH i2c: E2 0E 00 [17:16:53]MH_I2C_Read... [17:16:53]Read from MH i2c: E2 0E 00 55 2C 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 D7 [17:16:53]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [17:16:53]wFMCommunicate OK [17:16:53]SAM_PROTO_GetShiftState done [17:16:53]FM_GetShiftState done [17:16:53]req_shift_opened done [17:16:53]requested_item shift.open_date is exist - process it [17:16:53]req_shift_open_date [17:16:53]req_shift_open_date done [17:16:53]produce_requested_data done [17:16:53]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165376,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [17:16:53]process_action_free close_receipt [17:16:53]json_value_free [17:16:53]json_value_free done [17:16:53]process_json_proto returns [17:16:53]Send response to host [17:16:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165376,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [17:16:53]free response buf [17:16:53]execute_script done [17:16:53]execute_script returns [17:16:53]free content buf [17:16:53]Sock 8.Close socket [17:16:53]Sock 8.Thread stoped [17:16:56]OFD Sender: No OFD packet to send [17:17:01]OFD Sender: No OFD packet to send [17:17:06]OFD Sender: No OFD packet to send [17:17:11]OFD Sender: No OFD packet to send [17:17:16]OFD Sender: No OFD packet to send [17:17:21]OFD Sender: No OFD packet to send [17:17:26]OFD Sender: No OFD packet to send [17:17:31]OFD Sender: No OFD packet to send [17:17:37]OFD Sender: No OFD packet to send [17:17:42]OFD Sender: No OFD packet to send [17:17:47]OFD Sender: No OFD packet to send [17:17:52]OFD Sender: No OFD packet to send [17:17:57]OFD Sender: No OFD packet to send [17:18:02]OFD Sender: No OFD packet to send [17:18:07]OFD Sender: No OFD packet to send [17:18:12]OFD Sender: No OFD packet to send [17:18:17]OFD Sender: No OFD packet to send [17:18:22]OFD Sender: No OFD packet to send [17:18:27]OFD Sender: No OFD packet to send [17:18:32]OFD Sender: No OFD packet to send [17:18:37]OFD Sender: No OFD packet to send [17:18:42]OFD Sender: No OFD packet to send [17:18:47]OFD Sender: No OFD packet to send [17:18:52]OFD Sender: No OFD packet to send [17:18:57]OFD Sender: No OFD packet to send [17:19:02]OFD Sender: No OFD packet to send [17:19:07]OFD Sender: No OFD packet to send [17:19:12]OFD Sender: No OFD packet to send [17:19:17]OFD Sender: No OFD packet to send [17:19:22]OFD Sender: No OFD packet to send [17:19:27]OFD Sender: No OFD packet to send [17:19:32]OFD Sender: No OFD packet to send [17:19:37]OFD Sender: No OFD packet to send [17:19:42]OFD Sender: No OFD packet to send [17:19:47]OFD Sender: No OFD packet to send [17:19:52]OFD Sender: No OFD packet to send [17:19:57]OFD Sender: No OFD packet to send [17:20:02]OFD Sender: No OFD packet to send [17:20:07]OFD Sender: No OFD packet to send [17:20:12]OFD Sender: No OFD packet to send [17:20:17]OFD Sender: No OFD packet to send [17:20:22]OFD Sender: No OFD packet to send [17:20:27]OFD Sender: No OFD packet to send [17:20:28]accept exits with 9 [17:20:28]New connection [17:20:28]New thread 3066711396 created [17:20:28]Thread 3066854756 joined [17:20:28]Waiting for new connection... [17:20:28] Sock 9.Parse request [17:20:28]Sock 9.Check first char [17:20:28]Sock 9.First char is OK [17:20:28]request: POST /json_proto HTTP/1.0 [17:20:28]Method: POST [17:20:28]URL: /json_proto [17:20:28]Method is POST - this is cgi request [17:20:28]url: /json_proto [17:20:28]query_string will be loaded in cgi processing [17:20:28]execute_cgi json_proto POST (null) [17:20:28]execute_cgi path=json_proto method=POST [17:20:28]POST find Content-Length [17:20:28]Host: 172.17.56.4:8080 [17:20:28]Content-Length: 840 [17:20:28]Content-Type: application/json [17:20:28] [17:20:28]POST finish read [17:20:28]Found Content-Length = 840 [17:20:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459489", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 9.200, "sum" : 600.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 600.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:20:28]execute_script... [17:20:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459489", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 9.200, "sum" : 600.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 600.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:20:28]POST & json_proto [17:20:28]process_json_proto [17:20:28]json parsed OK: [17:20:28]protocol is kg_v1.0 [17:20:28]action value=close_receipt [17:20:28]process_action close_receipt [17:20:28]cmd_close_receipt [17:20:28]MH_GetDate [17:20:28]Write to MH i2c: F0 00 00 56 2C 71 [17:20:28]Write i2c OK [17:20:28]MH_I2C_Read... [17:20:28]Read from MH i2c: F0 [17:20:28]MH_I2C_Read... [17:20:28]Read from MH i2c: F0 09 00 [17:20:28]MH_I2C_Read... [17:20:28]Read from MH i2c: F0 09 00 56 2C 00 5E 5A 95 66 C9 DC B2 64 E8 [17:20:28]GetLastDocTimeStamp 1721063811 [17:20:28]current date 1721064030 [17:20:28]FM_GetShiftState [17:20:28]SAM_PROTO_GetShiftState [17:20:28]wFMCommunicate request_size=4 [17:20:28]MH_SAM_APDU [17:20:28]CAPDU: 80 13 01 00 [17:20:28]Write to MH i2c: E2 08 00 57 2C 80 13 01 00 00 00 00 00 00 [17:20:28]Write i2c OK [17:20:28]MH_I2C_Read... [17:20:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:28]Read from MH i2c: E2 [17:20:28]MH_I2C_Read... [17:20:28]Read from MH i2c: E2 0E 00 [17:20:28]MH_I2C_Read... [17:20:28]Read from MH i2c: E2 0E 00 57 2C 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 D9 [17:20:28]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [17:20:28]wFMCommunicate OK [17:20:28]SAM_PROTO_GetShiftState done [17:20:28]FM_GetShiftState done [17:20:28]opened in 1721003876 [17:20:28]opened+sec_in_day 1721090276 [17:20:28]quantity*price = 60002 [17:20:28]sum+1 = 60003 [17:20:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.02 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 0.00 Безнал.: 600.02 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 250 15.07.2024 17:20 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874718 ФД: 165377 ФПД: 28201606667308 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T172030&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165377&fm=28201606667308&tin=02508201610067®Number=0000000000090829&sum=60002 [17:20:29]StoreToDocumentArchive [17:20:29]shift 448 fd 165377 [17:20:29]save to /storage/0448/doc_00165377 [17:20:29]save last doc name /storage/0448/doc_00165377 to /storage/kkm_last_doc_name [17:20:30]save OK [17:20:30]Clear old archive folders... [17:20:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:20:30]tlvbuf is 018FAB80 [17:20:30]SAM_PROTO_ClearQueue [17:20:30]wFMCommunicate request_size=4 [17:20:30]MH_SAM_APDU [17:20:30]CAPDU: 80 09 00 00 [17:20:30]Write to MH i2c: E2 08 00 64 2C 80 09 00 00 00 00 00 00 02 [17:20:30]Write i2c OK [17:20:30]MH_I2C_Read... [17:20:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:20:30]Read from MH i2c: E2 [17:20:30]MH_I2C_Read... [17:20:30]Read from MH i2c: E2 03 00 [17:20:30]MH_I2C_Read... [17:20:30]Read from MH i2c: E2 03 00 64 2C 00 90 00 04 [17:20:30]RAPDU: 90 00 [17:20:30]wFMCommunicate OK [17:20:30]SAM_PROTO_ClearQueue done [17:20:30]KKMCreateOFDPacket [17:20:30]OFDProtocolAddRootSTLVToBuf [17:20:30]FM_MakeSignedData [17:20:30]FM_MakeSignedData [17:20:30]SAM_PROTO_SignData [17:20:30]wFMCommunicate request_size=4 [17:20:30]MH_SAM_APDU [17:20:30]CAPDU: 80 0D 01 02 [17:20:30]Write to MH i2c: E2 08 00 65 2C 80 0D 01 02 00 00 00 00 0A [17:20:30]Write i2c OK [17:20:30]MH_I2C_Read... [17:20:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:20:30]Read from MH i2c: E2 [17:20:30]MH_I2C_Read... [17:20:30]Read from MH i2c: E2 03 00 [17:20:30]MH_I2C_Read... [17:20:30]Read from MH i2c: E2 03 00 65 2C 00 90 00 05 [17:20:30]RAPDU: 90 00 [17:20:30]wFMCommunicate OK [17:20:30]wFMCommunicate request_size=255 [17:20:30]MH_SAM_APDU [17:20: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 F0 23 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 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 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 5E 5A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 01 86 02 00 35 04 06 00 19 [17:20:30]Write to MH i2c: E2 02 01 66 2C 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 F0 23 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 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 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 5E 5A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 01 86 02 00 35 04 06 00 19 00 00 C5 [17:20:30]Write i2c OK [17:20:30]MH_I2C_Read... [17:20:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:30]Read from MH i2c: E2 [17:20:30]MH_I2C_Read... [17:20:30]Read from MH i2c: E2 03 00 [17:20:30]MH_I2C_Read... [17:20:30]Read from MH i2c: E2 03 00 66 2C 00 90 00 06 [17:20:30]RAPDU: 90 00 [17:20:30]wFMCommunicate OK [17:20:30]wFMCommunicate request_size=10 [17:20:30]MH_SAM_APDU [17:20:30]CAPDU: 80 0D 02 02 05 A6 32 BF 5C 2C [17:20:30]Write to MH i2c: E2 0D 00 67 2C 80 0D 02 02 05 00 A6 32 BF 5C 2C 00 00 36 [17:20:30]Write i2c OK [17:20:30]MH_I2C_Read... [17:20:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:30]Read from MH i2c: E2 [17:20:30]MH_I2C_Read... [17:20:30]Read from MH i2c: E2 03 00 [17:20:30]MH_I2C_Read... [17:20:30]Read from MH i2c: E2 03 00 67 2C 00 90 00 07 [17:20:30]RAPDU: 90 00 [17:20:30]wFMCommunicate OK [17:20:30]wFMCommunicate request_size=4 [17:20:30]MH_SAM_APDU [17:20:30]CAPDU: 80 0D 03 02 [17:20:30]Write to MH i2c: E2 08 00 68 2C 80 0D 03 02 00 00 00 00 0F [17:20:30]Write i2c OK [17:20:30]MH_I2C_Read... [17:20:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:20:30]Read from MH i2c: E2 [17:20:30]MH_I2C_Read... [17:20:30]Read from MH i2c: E2 0B 00 [17:20:30]MH_I2C_Read... [17:20:30]Read from MH i2c: E2 0B 00 68 2C 00 3A C4 CC 75 73 0F BD FD 90 00 8B [17:20:30]RAPDU: 3A C4 CC 75 73 0F BD FD 90 00 [17:20:30]wFMCommunicate OK [17:20:30]SAM_PROTO_SignData done [17:20:30]FM_MakeSignedData done [17:20:30]CreateOFDProtocolMessage [17:20:30]wFMCommunicate request_size=4 [17:20:30]MH_SAM_APDU [17:20:30]CAPDU: 80 11 00 00 [17:20:30]Write to MH i2c: E2 08 00 69 2C 80 11 00 00 00 00 00 00 0F [17:20:30]Write i2c OK [17:20:30]MH_I2C_Read... [17:20:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:30]Read from MH i2c: E2 [17:20:30]MH_I2C_Read... [17:20:30]Read from MH i2c: E2 17 00 [17:20:30]MH_I2C_Read... [17:20:30]Read from MH i2c: E2 17 00 69 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 65 [17:20:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:20:30]wFMCommunicate OK [17:20:30]CreateOFDProtocolMessage done [17:20:30]OFDSenderStorePacket 165377 [17:20:30]StoreOFDPacket docnum=165377 [17:20:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C4 3E 07 01 64 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 F0 23 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 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 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 5E 5A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 01 86 02 00 35 04 06 00 19 A6 32 BF 5C 2C 3A C4 CC 75 73 0F BD FD [17:20:30]CheckFolder [17:20:30]dirname=/storage/ofd_packets [17:20:30]CheckFolder done [17:20:30]ProducePacketName [17:20:30]name=ofd_packets/00165377 [17:20:30]NVStorageSaveData ofd_packets/00165377 [17:20:30]File name is /storage/ofd_packets/00165377 [17:20:30]Write 301 bytes [17:20:30]NVStorageSaveData done [17:20:30]OFDSenderStorePacket done [17:20:30]KKMCreateOFDPacket done [17:20:30]NVStorageSaveData kkm_last_timestamp [17:20:30]File name is /storage/kkm_last_timestamp [17:20:30]Write 4 bytes [17:20:30]NVStorageSaveData done [17:20:30]ExternCall_PrintAddStr [17:20:30]wPrintStart [17:20:30]Write to MH i2c: 01 00 00 6A 2C 96 [17:20:30]Write i2c OK [17:20:30]MH_I2C_Read... [17:20:30]Read from MH i2c: 01 [17:20:30]MH_I2C_Read... [17:20:30]Read from MH i2c: 01 07 00 [17:20:30]MH_I2C_Read... [17:20:30]Read from MH i2c: 01 07 00 6A 2C 00 00 00 00 00 FF 0F AB [17:20:30]RasterBufferAndPrint [17:20:30]line Счет N : (1)459489 [17:20:30]line ИНН: 02508201610067 [17:20:30]line Контрольно-Кассовый Чек [17:20:30]line ПРОДАЖА [17:20:30]line ТРК (МРК, ГНК) : 22 [17:20:30]line Товар: 2710124130 [17:20:30]line Аи-92-К-5 [17:20:30]line 9.200 * 65.22 [17:20:30]line = 600.02 [17:20:30]line НДС 12% НСП 1% [17:20:30]line > о реализуемом товаре [17:20:30]line ИТОГО: 600.02 [17:20:30]line НСП 1% : 5.31 [17:20:30]line НДС 12% : 63.72 [17:20:30]line Наличными: 0.00 [17:20:30]line Безнал.: 600.02 [17:20:30]line Место: АЗС № 72 "Партнер Нефть" [17:20:30]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:20:30]line СНО: Общий режим [17:20:30]line Чек 250 15.07.2024 17:20 [17:20:30]line Смена: 448 ФФД: 1.0 [17:20:30]line ЗНМ: 0300000160 [17:20:30]line РНМ: 0000000000090829 [17:20:30]line Версия ККМ: 001 [17:20:30]line Платежная система: АКБ Кыргызстан [17:20:30]line ФМ: 0000000000874718 [17:20:30]line ФД: 165377 [17:20:30]line ФПД: 28201606667308 [17:20:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T172030&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165377&fm=28201606667308&tin=02508201610067®Number=0000000000090829&sum=60002 [17:20:30]OFD Sender: Processing packet 165377 [packets to send 106, broken 105] [17:20:30]ProducePacketName [17:20:30]name=ofd_packets/00165377 [17:20:30]OFD Sender: To server: pG, [17:20:30]CommunicateWithHost lk.salyk.kg:30040 [17:20:30]ConnectInit lk.salyk.kg [17:20:30]written 0, free lines is 4095 [17:20:30]Connected sock=10 [17:20:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C4 3E 07 01 64 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 F0 23 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 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 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 5E 5A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 01 86 02 00 35 04 06 00 19 A6 32 BF 5C 2C 3A C4 CC 75 73 0F BD FD [17:20:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 2E 96 47 00 70 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 01 86 02 00 F4 03 04 00 E8 00 95 66 B6 04 01 00 00 36 A3 05 E1 E9 FD 00 51 [17:20:31]CommunicateWithHost err = 0 [17:20:31]CheckOFDResponse [17:20:31]1017 (14) - 77093643461234 [17:20:31]1041 (16) - 0000000000874718 [17:20:31]1040 (4) - 165377 [17:20:31]1012 (4) - 15.07.2024 10:58 [17:20:31]1206 (1) - 0 [17:20:31]OFD Sender: Remove packet 165377 [17:20:31]ProducePacketName [17:20:31]name=ofd_packets/00165377 [17:20:31]NVStorageDeleteData [17:20:31]Write to MH i2c: 01 00 00 93 2C BF [17:20:31]Write i2c OK [17:20:31]MH_I2C_Read... [17:20:31]Read from MH i2c: 01 [17:20:31]MH_I2C_Read... [17:20:31]Read from MH i2c: 01 07 00 [17:20:31]MH_I2C_Read... [17:20:31]Read from MH i2c: 01 07 00 93 2C 00 00 00 00 00 07 0D DA [17:20:31]RasterBufferAndPrint [17:20:31]line [17:20:31]line [17:20:31]line [17:20:31]line [17:20:31]line [17:20:31]written 0, free lines is 3344 [17:20:31]MH_Cut [17:20:31]Write to MH i2c: D1 01 00 9A 2C 01 98 [17:20:31]Write i2c OK [17:20:31]MH_I2C_Read... [17:20:31]Read from MH i2c: D1 [17:20:31]MH_I2C_Read... [17:20:31]Read from MH i2c: D1 01 00 [17:20:31]MH_I2C_Read... [17:20:31]Read from MH i2c: D1 01 00 9A 2C 00 97 [17:20:31]Write to MH i2c: 01 00 00 9B 2C C7 [17:20:31]Write i2c OK [17:20:31]MH_I2C_Read... [17:20:31]OFD Sender: No OFD packet to send [17:20:31]*** Cut start [17:20:31]*** Partial cut [17:20:31]*** CUTSNS_PIN = 1 [17:20:32]*** CUTSNS_PIN = 0 [17:20:32]*** Brake cut motor [17:20:32]Read from MH i2c: 01 [17:20:32]MH_I2C_Read... [17:20:32]*** Stop cut motor [17:20:32]*** Cut end [17:20:32]Read from MH i2c: 01 07 00 [17:20:32]MH_I2C_Read... [17:20:32]Read from MH i2c: 01 07 00 9B 2C 00 00 00 00 00 FF 0F DC [17:20:32]process_action close_receipt done [17:20:32]requested_data is exist [17:20:32]produce_requested_data [17:20:32]requested_item fm.sn is exist - process it [17:20:32]wFMCommunicate request_size=4 [17:20:32]MH_SAM_APDU [17:20:32]CAPDU: 80 11 00 00 [17:20:32]Write to MH i2c: E2 08 00 9C 2C 80 11 00 00 00 00 00 00 42 [17:20:32]Write i2c OK [17:20:32]MH_I2C_Read... [17:20:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:32]Read from MH i2c: E2 [17:20:32]MH_I2C_Read... [17:20:32]Read from MH i2c: E2 17 00 [17:20:32]MH_I2C_Read... [17:20:32]Read from MH i2c: E2 17 00 9C 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 98 [17:20:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:20:32]wFMCommunicate OK [17:20:32]requested_item fd.num is exist - process it [17:20:32]SAM_PROTO_GetFieldsCounters [17:20:32]wFMCommunicate request_size=4 [17:20:32]MH_SAM_APDU [17:20:32]CAPDU: 80 13 00 00 [17:20:32]Write to MH i2c: E2 08 00 9D 2C 80 13 00 00 00 00 00 00 45 [17:20:32]Write i2c OK [17:20:32]MH_I2C_Read... [17:20:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:20:32]Read from MH i2c: E2 [17:20:32]MH_I2C_Read... [17:20:32]Read from MH i2c: E2 62 00 [17:20:32]MH_I2C_Read... [17:20:32]Read from MH i2c: E2 62 00 9D 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 01 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [17:20:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 01 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:20:32]wFMCommunicate OK [17:20:32]SAM_PROTO_GetFieldsCounters done [17:20:32]requested_item shift.num is exist - process it [17:20:32]requested_item shift.opened is exist - process it [17:20:32]req_shift_opened [17:20:32]FM_GetShiftState [17:20:32]SAM_PROTO_GetShiftState [17:20:32]wFMCommunicate request_size=4 [17:20:32]MH_SAM_APDU [17:20:32]CAPDU: 80 13 01 00 [17:20:32]Write to MH i2c: E2 08 00 9E 2C 80 13 01 00 00 00 00 00 47 [17:20:32]Write i2c OK [17:20:32]MH_I2C_Read... [17:20:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:32]Read from MH i2c: E2 [17:20:32]MH_I2C_Read... [17:20:32]Read from MH i2c: E2 0E 00 [17:20:32]MH_I2C_Read... [17:20:32]Read from MH i2c: E2 0E 00 9E 2C 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 20 [17:20:32]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [17:20:32]wFMCommunicate OK [17:20:32]SAM_PROTO_GetShiftState done [17:20:32]FM_GetShiftState done [17:20:32]req_shift_opened done [17:20:32]requested_item shift.open_date is exist - process it [17:20:32]req_shift_open_date [17:20:32]req_shift_open_date done [17:20:32]produce_requested_data done [17:20:32]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165377,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [17:20:32]process_action_free close_receipt [17:20:32]json_value_free [17:20:32]json_value_free done [17:20:32]process_json_proto returns [17:20:32]Send response to host [17:20:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165377,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [17:20:32]free response buf [17:20:32]execute_script done [17:20:32]execute_script returns [17:20:32]free content buf [17:20:32]Sock 9.Close socket [17:20:32]Sock 9.Thread stoped [17:20:36]OFD Sender: No OFD packet to send [17:20:41]OFD Sender: No OFD packet to send [17:20:46]OFD Sender: No OFD packet to send [17:20:51]OFD Sender: No OFD packet to send [17:20:56]OFD Sender: No OFD packet to send [17:21:01]OFD Sender: No OFD packet to send [17:21:06]OFD Sender: No OFD packet to send [17:21:11]OFD Sender: No OFD packet to send [17:21:16]OFD Sender: No OFD packet to send [17:21:21]OFD Sender: No OFD packet to send [17:21:26]OFD Sender: No OFD packet to send [17:21:31]OFD Sender: No OFD packet to send [17:21:32]accept exits with 8 [17:21:32]New connection [17:21:32]New thread 3066854756 created [17:21:32]Thread 3066711396 joined [17:21:32]Waiting for new connection... [17:21:32] Sock 8.Parse request [17:21:32]Sock 8.Check first char [17:21:32]Sock 8.First char is OK [17:21:32]request: POST /json_proto HTTP/1.0 [17:21:32]Method: POST [17:21:32]URL: /json_proto [17:21:32]Method is POST - this is cgi request [17:21:32]url: /json_proto [17:21:32]query_string will be loaded in cgi processing [17:21:32]execute_cgi json_proto POST (null) [17:21:32]execute_cgi path=json_proto method=POST [17:21:32]POST find Content-Length [17:21:32]Host: 172.17.56.4:8080 [17:21:32]Content-Length: 791 [17:21:32]Content-Type: application/json [17:21:32] [17:21:32]POST finish read [17:21:32]Found Content-Length = 791 [17:21:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459490", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 10.740, "sum" : 700.46, "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 700.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:21:32]execute_script... [17:21:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459490", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 10.740, "sum" : 700.46, "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 700.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:21:32]POST & json_proto [17:21:32]process_json_proto [17:21:32]json parsed OK: [17:21:32]protocol is kg_v1.0 [17:21:32]action value=close_receipt [17:21:32]process_action close_receipt [17:21:32]cmd_close_receipt [17:21:32]MH_GetDate [17:21:32]Write to MH i2c: F0 00 00 9F 2C BA [17:21:32]Write i2c OK [17:21:32]MH_I2C_Read... [17:21:32]Read from MH i2c: F0 [17:21:32]MH_I2C_Read... [17:21:32]Read from MH i2c: F0 09 00 [17:21:32]MH_I2C_Read... [17:21:32]Read from MH i2c: F0 09 00 9F 2C 00 9E 5A 95 66 C9 DC B2 64 71 [17:21:32]GetLastDocTimeStamp 1721064030 [17:21:32]current date 1721064094 [17:21:32]FM_GetShiftState [17:21:32]SAM_PROTO_GetShiftState [17:21:32]wFMCommunicate request_size=4 [17:21:32]MH_SAM_APDU [17:21:32]CAPDU: 80 13 01 00 [17:21:32]Write to MH i2c: E2 08 00 A0 2C 80 13 01 00 00 00 00 00 49 [17:21:32]Write i2c OK [17:21:32]MH_I2C_Read... [17:21:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:32]Read from MH i2c: E2 [17:21:32]MH_I2C_Read... [17:21:32]Read from MH i2c: E2 0E 00 [17:21:32]MH_I2C_Read... [17:21:32]Read from MH i2c: E2 0E 00 A0 2C 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 22 [17:21:32]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [17:21:32]wFMCommunicate OK [17:21:32]SAM_PROTO_GetShiftState done [17:21:32]FM_GetShiftState done [17:21:32]opened in 1721003876 [17:21:32]opened+sec_in_day 1721090276 [17:21:32]quantity*price = 70046 [17:21:32]sum+1 = 70047 [17:21:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.46 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.46 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 251 15.07.2024 17:21 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 165378 ФПД: 249444810914638 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T172134&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165378&fm=249444810914638&tin=02508201610067®Number=0000000000090829&sum=70046 [17:21:33]StoreToDocumentArchive [17:21:33]shift 448 fd 165378 [17:21:33]save to /storage/0448/doc_00165378 [17:21:33]save last doc name /storage/0448/doc_00165378 to /storage/kkm_last_doc_name [17:21:33]save OK [17:21:33]Clear old archive folders... [17:21:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:21:33]tlvbuf is 01837E80 [17:21:33]SAM_PROTO_ClearQueue [17:21:33]wFMCommunicate request_size=4 [17:21:33]MH_SAM_APDU [17:21:33]CAPDU: 80 09 00 00 [17:21:33]Write to MH i2c: E2 08 00 AD 2C 80 09 00 00 00 00 00 00 4B [17:21:33]Write i2c OK [17:21:33]MH_I2C_Read... [17:21:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:21:33]Read from MH i2c: E2 [17:21:33]MH_I2C_Read... [17:21:33]Read from MH i2c: E2 03 00 [17:21:33]MH_I2C_Read... [17:21:33]Read from MH i2c: E2 03 00 AD 2C 00 90 00 4D [17:21:33]RAPDU: 90 00 [17:21:33]wFMCommunicate OK [17:21:33]SAM_PROTO_ClearQueue done [17:21:33]KKMCreateOFDPacket [17:21:33]OFDProtocolAddRootSTLVToBuf [17:21:33]FM_MakeSignedData [17:21:33]FM_MakeSignedData [17:21:33]SAM_PROTO_SignData [17:21:33]wFMCommunicate request_size=4 [17:21:33]MH_SAM_APDU [17:21:33]CAPDU: 80 0D 01 02 [17:21:33]Write to MH i2c: E2 08 00 AE 2C 80 0D 01 02 00 00 00 00 53 [17:21:33]Write i2c OK [17:21:33]MH_I2C_Read... [17:21:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:21:33]Read from MH i2c: E2 [17:21:33]MH_I2C_Read... [17:21:33]Read from MH i2c: E2 03 00 [17:21:33]MH_I2C_Read... [17:21:33]Read from MH i2c: E2 03 00 AE 2C 00 90 00 4E [17:21:33]RAPDU: 90 00 [17:21:33]wFMCommunicate OK [17:21:33]wFMCommunicate request_size=255 [17:21:33]MH_SAM_APDU [17:21:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 29 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 9E 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9E 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9E 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 9E 5A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 02 86 02 00 35 04 06 00 E2 [17:21:33]Write to MH i2c: E2 02 01 AF 2C 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 F4 29 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 9E 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9E 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9E 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 9E 5A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 02 86 02 00 35 04 06 00 E2 00 00 D7 [17:21:33]Write i2c OK [17:21:33]MH_I2C_Read... [17:21:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:33]Read from MH i2c: E2 [17:21:33]MH_I2C_Read... [17:21:33]Read from MH i2c: E2 03 00 [17:21:33]MH_I2C_Read... [17:21:33]Read from MH i2c: E2 03 00 AF 2C 00 90 00 4F [17:21:33]RAPDU: 90 00 [17:21:33]wFMCommunicate OK [17:21:33]wFMCommunicate request_size=10 [17:21:33]MH_SAM_APDU [17:21:33]CAPDU: 80 0D 02 02 05 DE 65 58 7B 4E [17:21:33]Write to MH i2c: E2 0D 00 B0 2C 80 0D 02 02 05 00 DE 65 58 7B 4E 00 00 C4 [17:21:33]Write i2c OK [17:21:33]MH_I2C_Read... [17:21:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:33]Read from MH i2c: E2 [17:21:33]MH_I2C_Read... [17:21:33]Read from MH i2c: E2 03 00 [17:21:33]MH_I2C_Read... [17:21:33]Read from MH i2c: E2 03 00 B0 2C 00 90 00 50 [17:21:33]RAPDU: 90 00 [17:21:33]wFMCommunicate OK [17:21:33]wFMCommunicate request_size=4 [17:21:33]MH_SAM_APDU [17:21:33]CAPDU: 80 0D 03 02 [17:21:33]Write to MH i2c: E2 08 00 B1 2C 80 0D 03 02 00 00 00 00 58 [17:21:33]Write i2c OK [17:21:33]MH_I2C_Read... [17:21:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:21:33]Read from MH i2c: E2 [17:21:33]MH_I2C_Read... [17:21:33]Read from MH i2c: E2 0B 00 [17:21:33]MH_I2C_Read... [17:21:33]Read from MH i2c: E2 0B 00 B1 2C 00 27 11 8A 4B 8A 6F DC 03 90 00 3E [17:21:33]RAPDU: 27 11 8A 4B 8A 6F DC 03 90 00 [17:21:33]wFMCommunicate OK [17:21:33]SAM_PROTO_SignData done [17:21:33]FM_MakeSignedData done [17:21:33]CreateOFDProtocolMessage [17:21:33]wFMCommunicate request_size=4 [17:21:33]MH_SAM_APDU [17:21:33]CAPDU: 80 11 00 00 [17:21:33]Write to MH i2c: E2 08 00 B2 2C 80 11 00 00 00 00 00 00 58 [17:21:33]Write i2c OK [17:21:33]MH_I2C_Read... [17:21:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:33]Read from MH i2c: E2 [17:21:33]MH_I2C_Read... [17:21:33]Read from MH i2c: E2 17 00 [17:21:33]MH_I2C_Read... [17:21:33]Read from MH i2c: E2 17 00 B2 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AE [17:21:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:21:33]wFMCommunicate OK [17:21:33]CreateOFDProtocolMessage done [17:21:33]OFDSenderStorePacket 165378 [17:21:33]StoreOFDPacket docnum=165378 [17:21:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 2E 22 07 01 49 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 F4 29 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 9E 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9E 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9E 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 9E 5A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 02 86 02 00 35 04 06 00 E2 DE 65 58 7B 4E 27 11 8A 4B 8A 6F DC 03 [17:21:33]CheckFolder [17:21:33]dirname=/storage/ofd_packets [17:21:33]CheckFolder done [17:21:33]ProducePacketName [17:21:33]name=ofd_packets/00165378 [17:21:33]NVStorageSaveData ofd_packets/00165378 [17:21:33]File name is /storage/ofd_packets/00165378 [17:21:33]Write 301 bytes [17:21:33]NVStorageSaveData done [17:21:33]OFDSenderStorePacket done [17:21:33]KKMCreateOFDPacket done [17:21:33]NVStorageSaveData kkm_last_timestamp [17:21:33]File name is /storage/kkm_last_timestamp [17:21:33]Write 4 bytes [17:21:33]NVStorageSaveData done [17:21:33]ExternCall_PrintAddStr [17:21:33]wPrintStart [17:21:33]Write to MH i2c: 01 00 00 B3 2C DF [17:21:33]Write i2c OK [17:21:33]MH_I2C_Read... [17:21:33]Read from MH i2c: 01 [17:21:33]MH_I2C_Read... [17:21:33]Read from MH i2c: 01 07 00 [17:21:33]MH_I2C_Read... [17:21:33]Read from MH i2c: 01 07 00 B3 2C 00 00 00 00 00 FF 0F F4 [17:21:33]RasterBufferAndPrint [17:21:33]line Счет N : (1)459490 [17:21:33]line ИНН: 02508201610067 [17:21:33]line Контрольно-Кассовый Чек [17:21:33]line ПРОДАЖА [17:21:33]line ТРК (МРК, ГНК) : 12 [17:21:33]line Товар: 2710124130 [17:21:33]line Аи-92-К-5 [17:21:33]line 10.740 * 65.22 [17:21:33]line = 700.46 [17:21:33]line НДС 12% НСП 1% [17:21:33]line > о реализуемом товаре [17:21:33]line ИТОГО: 700.46 [17:21:33]line НСП 1% : 6.20 [17:21:33]line НДС 12% : 74.38 [17:21:33]line Наличными: 0.00 [17:21:33]line Безнал.: 700.46 [17:21:33]line Место: АЗС № 72 "Партнер Нефть" [17:21:33]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:21:33]line СНО: Общий режим [17:21:33]line Чек 251 15.07.2024 17:21 [17:21:33]line Смена: 448 ФФД: 1.0 [17:21:33]line ЗНМ: 0300000160 [17:21:33]line РНМ: 0000000000090829 [17:21:33]line Версия ККМ: 001 [17:21:33]line Платежная система: KICB Банк [17:21:33]line ФМ: 0000000000874718 [17:21:33]line ФД: 165378 [17:21:33]line ФПД: 249444810914638 [17:21:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T172134&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165378&fm=249444810914638&tin=02508201610067®Number=0000000000090829&sum=70046 [17:21:33]written 0, free lines is 4095 [17:21:33]OFD Sender: Processing packet 165378 [packets to send 106, broken 105] [17:21:33]ProducePacketName [17:21:33]name=ofd_packets/00165378 [17:21:33]OFD Sender: To server: pG, [17:21:33]CommunicateWithHost lk.salyk.kg:30040 [17:21:33]ConnectInit lk.salyk.kg [17:21:34]Connected sock=10 [17:21:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 2E 22 07 01 49 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 F4 29 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 9E 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9E 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9E 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 9E 5A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 02 86 02 00 35 04 06 00 E2 DE 65 58 7B 4E 27 11 8A 4B 8A 6F DC 03 [17:21:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 DD 90 47 00 3A 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 37 31 38 10 04 04 00 02 86 02 00 F4 03 04 00 27 01 95 66 B6 04 01 00 00 C9 9F CC EE E6 45 B9 12 [17:21:34]CommunicateWithHost err = 0 [17:21:34]CheckOFDResponse [17:21:34]1017 (14) - 77093643461234 [17:21:34]1041 (16) - 0000000000874718 [17:21:34]1040 (4) - 165378 [17:21:34]1012 (4) - 15.07.2024 10:59 [17:21:34]1206 (1) - 0 [17:21:34]OFD Sender: Remove packet 165378 [17:21:34]ProducePacketName [17:21:34]name=ofd_packets/00165378 [17:21:34]NVStorageDeleteData [17:21:34]Write to MH i2c: 01 00 00 DC 2C 08 [17:21:34]Write i2c OK [17:21:34]MH_I2C_Read... [17:21:34]Read from MH i2c: 01 [17:21:34]MH_I2C_Read... [17:21:34]Read from MH i2c: 01 07 00 [17:21:34]MH_I2C_Read... [17:21:34]Read from MH i2c: 01 07 00 DC 2C 00 00 00 00 00 12 0D 2E [17:21:34]RasterBufferAndPrint [17:21:34]line [17:21:34]line [17:21:34]line [17:21:34]line [17:21:34]line [17:21:34]written 0, free lines is 3352 [17:21:34]MH_Cut [17:21:34]Write to MH i2c: D1 01 00 E3 2C 01 E1 [17:21:34]Write i2c OK [17:21:34]MH_I2C_Read... [17:21:34]Read from MH i2c: D1 [17:21:34]MH_I2C_Read... [17:21:34]Read from MH i2c: D1 01 00 [17:21:34]MH_I2C_Read... [17:21:34]Read from MH i2c: D1 01 00 E3 2C 00 E0 [17:21:34]Write to MH i2c: 01 00 00 E4 2C 10 [17:21:34]Write i2c OK [17:21:34]MH_I2C_Read... [17:21:34]OFD Sender: No OFD packet to send [17:21:35]*** Cut start [17:21:35]*** Partial cut [17:21:35]*** CUTSNS_PIN = 1 [17:21:35]*** CUTSNS_PIN = 0 [17:21:35]*** Brake cut motor [17:21:35]Read from MH i2c: 01 [17:21:35]MH_I2C_Read... [17:21:35]*** Stop cut motor [17:21:35]*** Cut end [17:21:35]Read from MH i2c: 01 07 00 [17:21:35]MH_I2C_Read... [17:21:35]Read from MH i2c: 01 07 00 E4 2C 00 00 00 00 00 FF 0F 25 [17:21:35]process_action close_receipt done [17:21:35]requested_data is exist [17:21:35]produce_requested_data [17:21:35]requested_item fm.sn is exist - process it [17:21:35]wFMCommunicate request_size=4 [17:21:35]MH_SAM_APDU [17:21:35]CAPDU: 80 11 00 00 [17:21:35]Write to MH i2c: E2 08 00 E5 2C 80 11 00 00 00 00 00 00 8B [17:21:35]Write i2c OK [17:21:35]MH_I2C_Read... [17:21:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:35]Read from MH i2c: E2 [17:21:35]MH_I2C_Read... [17:21:35]Read from MH i2c: E2 17 00 [17:21:35]MH_I2C_Read... [17:21:35]Read from MH i2c: E2 17 00 E5 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E1 [17:21:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:21:35]wFMCommunicate OK [17:21:35]requested_item fd.num is exist - process it [17:21:35]SAM_PROTO_GetFieldsCounters [17:21:35]wFMCommunicate request_size=4 [17:21:35]MH_SAM_APDU [17:21:35]CAPDU: 80 13 00 00 [17:21:35]Write to MH i2c: E2 08 00 E6 2C 80 13 00 00 00 00 00 00 8E [17:21:35]Write i2c OK [17:21:35]MH_I2C_Read... [17:21:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:21:35]Read from MH i2c: E2 [17:21:35]MH_I2C_Read... [17:21:35]Read from MH i2c: E2 62 00 [17:21:35]MH_I2C_Read... [17:21:35]Read from MH i2c: E2 62 00 E6 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 02 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 F1 [17:21:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 02 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:21:35]wFMCommunicate OK [17:21:35]SAM_PROTO_GetFieldsCounters done [17:21:35]requested_item shift.num is exist - process it [17:21:35]requested_item shift.opened is exist - process it [17:21:35]req_shift_opened [17:21:35]FM_GetShiftState [17:21:35]SAM_PROTO_GetShiftState [17:21:35]wFMCommunicate request_size=4 [17:21:35]MH_SAM_APDU [17:21:35]CAPDU: 80 13 01 00 [17:21:35]Write to MH i2c: E2 08 00 E7 2C 80 13 01 00 00 00 00 00 90 [17:21:35]Write i2c OK [17:21:35]MH_I2C_Read... [17:21:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:35]Read from MH i2c: E2 [17:21:35]MH_I2C_Read... [17:21:35]Read from MH i2c: E2 0E 00 [17:21:35]MH_I2C_Read... [17:21:35]Read from MH i2c: E2 0E 00 E7 2C 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 69 [17:21:35]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [17:21:35]wFMCommunicate OK [17:21:35]SAM_PROTO_GetShiftState done [17:21:35]FM_GetShiftState done [17:21:35]req_shift_opened done [17:21:35]requested_item shift.open_date is exist - process it [17:21:35]req_shift_open_date [17:21:35]req_shift_open_date done [17:21:35]produce_requested_data done [17:21:35]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165378,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [17:21:35]process_action_free close_receipt [17:21:35]json_value_free [17:21:35]json_value_free done [17:21:35]process_json_proto returns [17:21:35]Send response to host [17:21:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165378,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [17:21:35]free response buf [17:21:35]execute_script done [17:21:35]execute_script returns [17:21:35]free content buf [17:21:35]Sock 8.Close socket [17:21:35]Sock 8.Thread stoped [17:21:39]OFD Sender: No OFD packet to send [17:21:44]OFD Sender: No OFD packet to send [17:21:49]OFD Sender: No OFD packet to send [17:21:54]OFD Sender: No OFD packet to send [17:21:59]OFD Sender: No OFD packet to send [17:22:04]OFD Sender: No OFD packet to send [17:22:09]OFD Sender: No OFD packet to send [17:22:12]accept exits with 9 [17:22:12]New connection [17:22:12]New thread 3066711396 created [17:22:12]Thread 3066854756 joined [17:22:12]Waiting for new connection... [17:22:12] Sock 9.Parse request [17:22:12]Sock 9.Check first char [17:22:12]Sock 9.First char is OK [17:22:12]request: POST /json_proto HTTP/1.0 [17:22:12]Method: POST [17:22:12]URL: /json_proto [17:22:12]Method is POST - this is cgi request [17:22:12]url: /json_proto [17:22:12]query_string will be loaded in cgi processing [17:22:12]execute_cgi json_proto POST (null) [17:22:12]execute_cgi path=json_proto method=POST [17:22:12]POST find Content-Length [17:22:12]Host: 172.17.56.4:8080 [17:22:12]Content-Length: 674 [17:22:12]Content-Type: application/json [17:22:12] [17:22:12]POST finish read [17:22:12]Found Content-Length = 674 [17:22:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459491", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 9.050, "sum" : 650.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:22:12]execute_script... [17:22:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459491", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 9.050, "sum" : 650.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:22:12]POST & json_proto [17:22:12]process_json_proto [17:22:12]json parsed OK: [17:22:12]protocol is kg_v1.0 [17:22:12]action value=close_receipt [17:22:12]process_action close_receipt [17:22:12]cmd_close_receipt [17:22:12]MH_GetDate [17:22:12]Write to MH i2c: F0 00 00 E8 2C 03 [17:22:12]Write i2c OK [17:22:12]MH_I2C_Read... [17:22:12]Read from MH i2c: F0 [17:22:12]MH_I2C_Read... [17:22:12]Read from MH i2c: F0 09 00 [17:22:12]MH_I2C_Read... [17:22:12]Read from MH i2c: F0 09 00 E8 2C 00 C6 5A 95 66 C9 DC B2 64 E2 [17:22:12]GetLastDocTimeStamp 1721064094 [17:22:12]current date 1721064134 [17:22:12]FM_GetShiftState [17:22:12]SAM_PROTO_GetShiftState [17:22:12]wFMCommunicate request_size=4 [17:22:12]MH_SAM_APDU [17:22:12]CAPDU: 80 13 01 00 [17:22:12]Write to MH i2c: E2 08 00 E9 2C 80 13 01 00 00 00 00 00 92 [17:22:12]Write i2c OK [17:22:12]MH_I2C_Read... [17:22:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:12]Read from MH i2c: E2 [17:22:12]MH_I2C_Read... [17:22:12]Read from MH i2c: E2 0E 00 [17:22:12]MH_I2C_Read... [17:22:12]Read from MH i2c: E2 0E 00 E9 2C 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 6B [17:22:12]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [17:22:12]wFMCommunicate OK [17:22:12]SAM_PROTO_GetShiftState done [17:22:12]FM_GetShiftState done [17:22:12]opened in 1721003876 [17:22:12]opened+sec_in_day 1721090276 [17:22:12]quantity*price = 65069 [17:22:12]sum+1 = 65071 [17:22:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.70 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.76 НДС 12% : 69.10 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 252 15.07.2024 17:22 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165379 ФПД: 78213606333969 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T172214&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165379&fm=78213606333969&tin=02508201610067®Number=0000000000090829&sum=65000 [17:22:13]StoreToDocumentArchive [17:22:13]shift 448 fd 165379 [17:22:13]save to /storage/0448/doc_00165379 [17:22:13]save last doc name /storage/0448/doc_00165379 to /storage/kkm_last_doc_name [17:22:13]save OK [17:22:13]Clear old archive folders... [17:22:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:22:13]tlvbuf is 018C3F10 [17:22:13]SAM_PROTO_ClearQueue [17:22:13]wFMCommunicate request_size=4 [17:22:13]MH_SAM_APDU [17:22:13]CAPDU: 80 09 00 00 [17:22:13]Write to MH i2c: E2 08 00 F6 2C 80 09 00 00 00 00 00 00 94 [17:22:13]Write i2c OK [17:22:13]MH_I2C_Read... [17:22:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:22:13]Read from MH i2c: E2 [17:22:13]MH_I2C_Read... [17:22:13]Read from MH i2c: E2 03 00 [17:22:13]MH_I2C_Read... [17:22:13]Read from MH i2c: E2 03 00 F6 2C 00 90 00 96 [17:22:13]RAPDU: 90 00 [17:22:13]wFMCommunicate OK [17:22:13]SAM_PROTO_ClearQueue done [17:22:13]KKMCreateOFDPacket [17:22:13]OFDProtocolAddRootSTLVToBuf [17:22:13]FM_MakeSignedData [17:22:13]FM_MakeSignedData [17:22:13]SAM_PROTO_SignData [17:22:13]wFMCommunicate request_size=4 [17:22:13]MH_SAM_APDU [17:22:13]CAPDU: 80 0D 01 02 [17:22:13]Write to MH i2c: E2 08 00 F7 2C 80 0D 01 02 00 00 00 00 9C [17:22:13]Write i2c OK [17:22:13]MH_I2C_Read... [17:22:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:22:13]Read from MH i2c: E2 [17:22:13]MH_I2C_Read... [17:22:13]Read from MH i2c: E2 03 00 [17:22:13]MH_I2C_Read... [17:22:13]Read from MH i2c: E2 03 00 F7 2C 00 90 00 97 [17:22:13]RAPDU: 90 00 [17:22:13]wFMCommunicate OK [17:22:13]wFMCommunicate request_size=255 [17:22:13]MH_SAM_APDU [17:22:13]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5A 23 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 2E FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 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 FE 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 C6 5A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 03 86 02 00 35 04 06 00 47 22 86 38 [17:22:13]Write to MH i2c: E2 02 01 F8 2C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5A 23 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 2E FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 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 FE 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 C6 5A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 03 86 02 00 35 04 06 00 47 22 86 38 00 00 88 [17:22:13]Write i2c OK [17:22:13]MH_I2C_Read... [17:22:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:14]Read from MH i2c: E2 [17:22:14]MH_I2C_Read... [17:22:14]Read from MH i2c: E2 03 00 [17:22:14]MH_I2C_Read... [17:22:14]Read from MH i2c: E2 03 00 F8 2C 00 90 00 98 [17:22:14]RAPDU: 90 00 [17:22:14]wFMCommunicate OK [17:22:14]wFMCommunicate request_size=7 [17:22:14]MH_SAM_APDU [17:22:14]CAPDU: 80 0D 02 02 02 DE 11 [17:22:14]Write to MH i2c: E2 0A 00 F9 2C 80 0D 02 02 02 00 DE 11 00 00 92 [17:22:14]Write i2c OK [17:22:14]MH_I2C_Read... [17:22:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:14]Read from MH i2c: E2 [17:22:14]MH_I2C_Read... [17:22:14]Read from MH i2c: E2 03 00 [17:22:14]MH_I2C_Read... [17:22:14]Read from MH i2c: E2 03 00 F9 2C 00 90 00 99 [17:22:14]RAPDU: 90 00 [17:22:14]wFMCommunicate OK [17:22:14]wFMCommunicate request_size=4 [17:22:14]MH_SAM_APDU [17:22:14]CAPDU: 80 0D 03 02 [17:22:14]Write to MH i2c: E2 08 00 FA 2C 80 0D 03 02 00 00 00 00 A1 [17:22:14]Write i2c OK [17:22:14]MH_I2C_Read... [17:22:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:22:14]Read from MH i2c: E2 [17:22:14]MH_I2C_Read... [17:22:14]Read from MH i2c: E2 0B 00 [17:22:14]MH_I2C_Read... [17:22:14]Read from MH i2c: E2 0B 00 FA 2C 00 D5 7C 19 4E AA D3 BC 33 90 00 C6 [17:22:14]RAPDU: D5 7C 19 4E AA D3 BC 33 90 00 [17:22:14]wFMCommunicate OK [17:22:14]SAM_PROTO_SignData done [17:22:14]FM_MakeSignedData done [17:22:14]CreateOFDProtocolMessage [17:22:14]wFMCommunicate request_size=4 [17:22:14]MH_SAM_APDU [17:22:14]CAPDU: 80 11 00 00 [17:22:14]Write to MH i2c: E2 08 00 FB 2C 80 11 00 00 00 00 00 00 A1 [17:22:14]Write i2c OK [17:22:14]MH_I2C_Read... [17:22:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:14]Read from MH i2c: E2 [17:22:14]MH_I2C_Read... [17:22:14]Read from MH i2c: E2 17 00 [17:22:14]MH_I2C_Read... [17:22:14]Read from MH i2c: E2 17 00 FB 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F7 [17:22:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:22:14]wFMCommunicate OK [17:22:14]CreateOFDProtocolMessage done [17:22:14]OFDSenderStorePacket 165379 [17:22:14]StoreOFDPacket docnum=165379 [17:22:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 9C F3 04 01 17 42 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5A 23 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 2E FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 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 FE 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 C6 5A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 03 86 02 00 35 04 06 00 47 22 86 38 DE 11 D5 7C 19 4E AA D3 BC 33 [17:22:14]CheckFolder [17:22:14]dirname=/storage/ofd_packets [17:22:14]CheckFolder done [17:22:14]ProducePacketName [17:22:14]name=ofd_packets/00165379 [17:22:14]NVStorageSaveData ofd_packets/00165379 [17:22:14]File name is /storage/ofd_packets/00165379 [17:22:14]Write 298 bytes [17:22:14]NVStorageSaveData done [17:22:14]OFDSenderStorePacket done [17:22:14]KKMCreateOFDPacket done [17:22:14]NVStorageSaveData kkm_last_timestamp [17:22:14]File name is /storage/kkm_last_timestamp [17:22:14]Write 4 bytes [17:22:14]NVStorageSaveData done [17:22:14]ExternCall_PrintAddStr [17:22:14]wPrintStart [17:22:14]Write to MH i2c: 01 00 00 FC 2C 28 [17:22:14]Write i2c OK [17:22:14]MH_I2C_Read... [17:22:14]Read from MH i2c: 01 [17:22:14]MH_I2C_Read... [17:22:14]Read from MH i2c: 01 07 00 [17:22:14]MH_I2C_Read... [17:22:14]Read from MH i2c: 01 07 00 FC 2C 00 00 00 00 00 FF 0F 3D [17:22:14]RasterBufferAndPrint [17:22:14]line Счет N : (1)459491 [17:22:14]line ИНН: 02508201610067 [17:22:14]line Контрольно-Кассовый Чек [17:22:14]line ПРОДАЖА [17:22:14]line ТРК (МРК, ГНК) : 21 [17:22:14]line Товар: 2710194210 [17:22:14]line ДТ-К-5 [17:22:14]line 9.050 * 71.90 [17:22:14]line = 650.70 [17:22:14]line НДС 12% НСП 1% [17:22:14]line > о реализуемом товаре [17:22:14]line ОКРУГЛЕНИЕ: -0.70 [17:22:14]line ИТОГО: 650.00 [17:22:14]line Внесено: 650.00 [17:22:14]line СДАЧА: 0.00 [17:22:14]line НСП 1% : 5.76 [17:22:14]line НДС 12% : 69.10 [17:22:14]line Наличными: 650.00 [17:22:14]line Безнал.: 0.00 [17:22:14]line Место: АЗС № 72 "Партнер Нефть" [17:22:14]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:22:14]line СНО: Общий режим [17:22:14]line Чек 252 15.07.2024 17:22 [17:22:14]line Смена: 448 ФФД: 1.0 [17:22:14]line ЗНМ: 0300000160 [17:22:14]line РНМ: 0000000000090829 [17:22:14]line Версия ККМ: 001 [17:22:14]line ФМ: 0000000000874718 [17:22:14]line ФД: 165379 [17:22:14]line ФПД: 78213606333969 [17:22:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T172214&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165379&fm=78213606333969&tin=02508201610067®Number=0000000000090829&sum=65000 [17:22:14]OFD Sender: Processing packet 165379 [packets to send 106, broken 105] [17:22:14]ProducePacketName [17:22:14]name=ofd_packets/00165379 [17:22:14]OFD Sender: To server: pG, [17:22:14]CommunicateWithHost lk.salyk.kg:30040 [17:22:14]ConnectInit lk.salyk.kg [17:22:14]written 0, free lines is 4095 [17:22:14]Connected sock=10 [17:22:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 9C F3 04 01 17 42 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5A 23 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 2E FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 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 FE 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 C6 5A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 03 86 02 00 35 04 06 00 47 22 86 38 DE 11 D5 7C 19 4E AA D3 BC 33 [17:22:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 03 6C 47 00 27 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 03 86 02 00 F4 03 04 00 50 01 95 66 B6 04 01 00 00 3C FE DD B9 30 B0 27 8D [17:22:14]CommunicateWithHost err = 0 [17:22:14]CheckOFDResponse [17:22:14]1017 (14) - 77093643461234 [17:22:14]1041 (16) - 0000000000874718 [17:22:14]1040 (4) - 165379 [17:22:14]1012 (4) - 15.07.2024 11:00 [17:22:14]1206 (1) - 0 [17:22:14]OFD Sender: Remove packet 165379 [17:22:14]ProducePacketName [17:22:14]name=ofd_packets/00165379 [17:22:14]NVStorageDeleteData [17:22:14]Write to MH i2c: 01 00 00 26 2D 53 [17:22:14]Write i2c OK [17:22:14]MH_I2C_Read... [17:22:14]Read from MH i2c: 01 [17:22:14]MH_I2C_Read... [17:22:14]Read from MH i2c: 01 07 00 [17:22:14]MH_I2C_Read... [17:22:14]Read from MH i2c: 01 07 00 26 2D 00 00 00 00 00 F5 0C 5B [17:22:14]RasterBufferAndPrint [17:22:14]line [17:22:14]line [17:22:14]line [17:22:14]line [17:22:14]line [17:22:14]written 0, free lines is 3324 [17:22:14]MH_Cut [17:22:14]Write to MH i2c: D1 01 00 2D 2D 01 2C [17:22:15]Write i2c OK [17:22:15]MH_I2C_Read... [17:22:15]Read from MH i2c: D1 [17:22:15]MH_I2C_Read... [17:22:15]Read from MH i2c: D1 01 00 [17:22:15]MH_I2C_Read... [17:22:15]Read from MH i2c: D1 01 00 2D 2D 00 2B [17:22:15]Write to MH i2c: 01 00 00 2E 2D 5B [17:22:15]Write i2c OK [17:22:15]MH_I2C_Read... [17:22:15]OFD Sender: No OFD packet to send [17:22:15]*** Cut start [17:22:15]*** Partial cut [17:22:15]*** CUTSNS_PIN = 1 [17:22:15]*** CUTSNS_PIN = 0 [17:22:15]*** Brake cut motor [17:22:16]Read from MH i2c: 01 [17:22:16]MH_I2C_Read... [17:22:16]*** Stop cut motor [17:22:16]*** Cut end [17:22:16]Read from MH i2c: 01 07 00 [17:22:16]MH_I2C_Read... [17:22:16]Read from MH i2c: 01 07 00 2E 2D 00 00 00 00 00 FF 0F 70 [17:22:16]process_action close_receipt done [17:22:16]requested_data is exist [17:22:16]produce_requested_data [17:22:16]requested_item fm.sn is exist - process it [17:22:16]wFMCommunicate request_size=4 [17:22:16]MH_SAM_APDU [17:22:16]CAPDU: 80 11 00 00 [17:22:16]Write to MH i2c: E2 08 00 2F 2D 80 11 00 00 00 00 00 00 D6 [17:22:16]Write i2c OK [17:22:16]MH_I2C_Read... [17:22:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:16]Read from MH i2c: E2 [17:22:16]MH_I2C_Read... [17:22:16]Read from MH i2c: E2 17 00 [17:22:16]MH_I2C_Read... [17:22:16]Read from MH i2c: E2 17 00 2F 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2C [17:22:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:22:16]wFMCommunicate OK [17:22:16]requested_item fd.num is exist - process it [17:22:16]SAM_PROTO_GetFieldsCounters [17:22:16]wFMCommunicate request_size=4 [17:22:16]MH_SAM_APDU [17:22:16]CAPDU: 80 13 00 00 [17:22:16]Write to MH i2c: E2 08 00 30 2D 80 13 00 00 00 00 00 00 D9 [17:22:16]Write i2c OK [17:22:16]MH_I2C_Read... [17:22:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:22:16]Read from MH i2c: E2 [17:22:16]MH_I2C_Read... [17:22:16]Read from MH i2c: E2 62 00 [17:22:16]MH_I2C_Read... [17:22:16]Read from MH i2c: E2 62 00 30 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 03 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [17:22:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 03 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:22:16]wFMCommunicate OK [17:22:16]SAM_PROTO_GetFieldsCounters done [17:22:16]requested_item shift.num is exist - process it [17:22:16]requested_item shift.opened is exist - process it [17:22:16]req_shift_opened [17:22:16]FM_GetShiftState [17:22:16]SAM_PROTO_GetShiftState [17:22:16]wFMCommunicate request_size=4 [17:22:16]MH_SAM_APDU [17:22:16]CAPDU: 80 13 01 00 [17:22:16]Write to MH i2c: E2 08 00 31 2D 80 13 01 00 00 00 00 00 DB [17:22:16]Write i2c OK [17:22:16]MH_I2C_Read... [17:22:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:16]Read from MH i2c: E2 [17:22:16]MH_I2C_Read... [17:22:16]Read from MH i2c: E2 0E 00 [17:22:16]MH_I2C_Read... [17:22:16]Read from MH i2c: E2 0E 00 31 2D 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 B4 [17:22:16]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [17:22:16]wFMCommunicate OK [17:22:16]SAM_PROTO_GetShiftState done [17:22:16]FM_GetShiftState done [17:22:16]req_shift_opened done [17:22:16]requested_item shift.open_date is exist - process it [17:22:16]req_shift_open_date [17:22:16]req_shift_open_date done [17:22:16]produce_requested_data done [17:22:16]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165379,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [17:22:16]process_action_free close_receipt [17:22:16]json_value_free [17:22:16]json_value_free done [17:22:16]process_json_proto returns [17:22:16]Send response to host [17:22:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165379,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [17:22:16]free response buf [17:22:16]execute_script done [17:22:16]execute_script returns [17:22:16]free content buf [17:22:16]Sock 9.Close socket [17:22:16]Sock 9.Thread stoped [17:22:20]OFD Sender: No OFD packet to send [17:22:25]OFD Sender: No OFD packet to send [17:22:30]OFD Sender: No OFD packet to send [17:22:35]OFD Sender: No OFD packet to send [17:22:37]accept exits with 8 [17:22:37]New connection [17:22:37]New thread 3066854756 created [17:22:37]Thread 3066711396 joined [17:22:37]Waiting for new connection... [17:22:37] Sock 8.Parse request [17:22:37]Sock 8.Check first char [17:22:37]Sock 8.First char is OK [17:22:37]request: POST /json_proto HTTP/1.0 [17:22:37]Method: POST [17:22:37]URL: /json_proto [17:22:37]Method is POST - this is cgi request [17:22:37]url: /json_proto [17:22:37]query_string will be loaded in cgi processing [17:22:37]execute_cgi json_proto POST (null) [17:22:37]execute_cgi path=json_proto method=POST [17:22:37]POST find Content-Length [17:22:37]Host: 172.17.56.4:8080 [17:22:37]Content-Length: 677 [17:22:37]Content-Type: application/json [17:22:37] [17:22:37]POST finish read [17:22:37]Found Content-Length = 677 [17:22:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459492", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:22:37]execute_script... [17:22:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459492", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:22:37]POST & json_proto [17:22:37]process_json_proto [17:22:37]json parsed OK: [17:22:37]protocol is kg_v1.0 [17:22:37]action value=close_receipt [17:22:37]process_action close_receipt [17:22:37]cmd_close_receipt [17:22:37]MH_GetDate [17:22:37]Write to MH i2c: F0 00 00 32 2D 4E [17:22:37]Write i2c OK [17:22:37]MH_I2C_Read... [17:22:37]Read from MH i2c: F0 [17:22:37]MH_I2C_Read... [17:22:37]Read from MH i2c: F0 09 00 [17:22:37]MH_I2C_Read... [17:22:37]Read from MH i2c: F0 09 00 32 2D 00 DF 5A 95 66 C9 DC B2 64 46 [17:22:37]GetLastDocTimeStamp 1721064134 [17:22:37]current date 1721064159 [17:22:37]FM_GetShiftState [17:22:37]SAM_PROTO_GetShiftState [17:22:37]wFMCommunicate request_size=4 [17:22:37]MH_SAM_APDU [17:22:37]CAPDU: 80 13 01 00 [17:22:37]Write to MH i2c: E2 08 00 33 2D 80 13 01 00 00 00 00 00 DD [17:22:37]Write i2c OK [17:22:37]MH_I2C_Read... [17:22:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:37]Read from MH i2c: E2 [17:22:37]MH_I2C_Read... [17:22:37]Read from MH i2c: E2 0E 00 [17:22:37]MH_I2C_Read... [17:22:37]Read from MH i2c: E2 0E 00 33 2D 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 B6 [17:22:37]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [17:22:37]wFMCommunicate OK [17:22:37]SAM_PROTO_GetShiftState done [17:22:37]FM_GetShiftState done [17:22:37]opened in 1721003876 [17:22:37]opened+sec_in_day 1721090276 [17:22:37]quantity*price = 30004 [17:22:37]sum+1 = 30006 [17:22:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 253 15.07.2024 17:22 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165380 ФПД: 87690786107159 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T172239&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165380&fm=87690786107159&tin=02508201610067®Number=0000000000090829&sum=30000 [17:22:38]StoreToDocumentArchive [17:22:38]shift 448 fd 165380 [17:22:38]save to /storage/0448/doc_00165380 [17:22:38]save last doc name /storage/0448/doc_00165380 to /storage/kkm_last_doc_name [17:22:38]save OK [17:22:38]Clear old archive folders... [17:22:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:22:38]tlvbuf is 018FA450 [17:22:38]SAM_PROTO_ClearQueue [17:22:38]wFMCommunicate request_size=4 [17:22:38]MH_SAM_APDU [17:22:38]CAPDU: 80 09 00 00 [17:22:38]Write to MH i2c: E2 08 00 40 2D 80 09 00 00 00 00 00 00 DF [17:22:38]Write i2c OK [17:22:38]MH_I2C_Read... [17:22:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:22:38]Read from MH i2c: E2 [17:22:38]MH_I2C_Read... [17:22:38]Read from MH i2c: E2 03 00 [17:22:38]MH_I2C_Read... [17:22:38]Read from MH i2c: E2 03 00 40 2D 00 90 00 E1 [17:22:38]RAPDU: 90 00 [17:22:38]wFMCommunicate OK [17:22:38]SAM_PROTO_ClearQueue done [17:22:38]KKMCreateOFDPacket [17:22:38]OFDProtocolAddRootSTLVToBuf [17:22:38]FM_MakeSignedData [17:22:38]FM_MakeSignedData [17:22:38]SAM_PROTO_SignData [17:22:38]wFMCommunicate request_size=4 [17:22:38]MH_SAM_APDU [17:22:38]CAPDU: 80 0D 01 02 [17:22:38]Write to MH i2c: E2 08 00 41 2D 80 0D 01 02 00 00 00 00 E7 [17:22:38]Write i2c OK [17:22:38]MH_I2C_Read... [17:22:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:22:38]Read from MH i2c: E2 [17:22:38]MH_I2C_Read... [17:22:38]Read from MH i2c: E2 03 00 [17:22:38]MH_I2C_Read... [17:22:38]Read from MH i2c: E2 03 00 41 2D 00 90 00 E2 [17:22:38]RAPDU: 90 00 [17:22:38]wFMCommunicate OK [17:22:38]wFMCommunicate request_size=255 [17:22:38]MH_SAM_APDU [17:22: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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 DF 5A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 04 86 02 00 35 04 06 00 4F [17:22:38]Write to MH i2c: E2 02 01 42 2D 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 DF 5A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 04 86 02 00 35 04 06 00 4F 00 00 EE [17:22:38]Write i2c OK [17:22:38]MH_I2C_Read... [17:22:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:39]Read from MH i2c: E2 [17:22:39]MH_I2C_Read... [17:22:39]Read from MH i2c: E2 03 00 [17:22:39]MH_I2C_Read... [17:22:39]Read from MH i2c: E2 03 00 42 2D 00 90 00 E3 [17:22:39]RAPDU: 90 00 [17:22:39]wFMCommunicate OK [17:22:39]wFMCommunicate request_size=10 [17:22:39]MH_SAM_APDU [17:22:39]CAPDU: 80 0D 02 02 05 C1 1A 27 EF 17 [17:22:39]Write to MH i2c: E2 0D 00 43 2D 80 0D 02 02 05 00 C1 1A 27 EF 17 00 00 FC [17:22:39]Write i2c OK [17:22:39]MH_I2C_Read... [17:22:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:39]Read from MH i2c: E2 [17:22:39]MH_I2C_Read... [17:22:39]Read from MH i2c: E2 03 00 [17:22:39]MH_I2C_Read... [17:22:39]Read from MH i2c: E2 03 00 43 2D 00 90 00 E4 [17:22:39]RAPDU: 90 00 [17:22:39]wFMCommunicate OK [17:22:39]wFMCommunicate request_size=4 [17:22:39]MH_SAM_APDU [17:22:39]CAPDU: 80 0D 03 02 [17:22:39]Write to MH i2c: E2 08 00 44 2D 80 0D 03 02 00 00 00 00 EC [17:22:39]Write i2c OK [17:22:39]MH_I2C_Read... [17:22:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:22:39]Read from MH i2c: E2 [17:22:39]MH_I2C_Read... [17:22:39]Read from MH i2c: E2 0B 00 [17:22:39]MH_I2C_Read... [17:22:39]Read from MH i2c: E2 0B 00 44 2D 00 B0 E2 27 DE E6 DB 0D A2 90 00 F4 [17:22:39]RAPDU: B0 E2 27 DE E6 DB 0D A2 90 00 [17:22:39]wFMCommunicate OK [17:22:39]SAM_PROTO_SignData done [17:22:39]FM_MakeSignedData done [17:22:39]CreateOFDProtocolMessage [17:22:39]wFMCommunicate request_size=4 [17:22:39]MH_SAM_APDU [17:22:39]CAPDU: 80 11 00 00 [17:22:39]Write to MH i2c: E2 08 00 45 2D 80 11 00 00 00 00 00 00 EC [17:22:39]Write i2c OK [17:22:39]MH_I2C_Read... [17:22:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:39]Read from MH i2c: E2 [17:22:39]MH_I2C_Read... [17:22:39]Read from MH i2c: E2 17 00 [17:22:39]MH_I2C_Read... [17:22:39]Read from MH i2c: E2 17 00 45 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 42 [17:22:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:22:39]wFMCommunicate OK [17:22:39]CreateOFDProtocolMessage done [17:22:39]OFDSenderStorePacket 165380 [17:22:39]StoreOFDPacket docnum=165380 [17:22:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 78 D4 07 01 25 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 DF 5A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 04 86 02 00 35 04 06 00 4F C1 1A 27 EF 17 B0 E2 27 DE E6 DB 0D A2 [17:22:39]CheckFolder [17:22:39]dirname=/storage/ofd_packets [17:22:39]CheckFolder done [17:22:39]ProducePacketName [17:22:39]name=ofd_packets/00165380 [17:22:39]NVStorageSaveData ofd_packets/00165380 [17:22:39]File name is /storage/ofd_packets/00165380 [17:22:39]Write 301 bytes [17:22:39]NVStorageSaveData done [17:22:39]OFDSenderStorePacket done [17:22:39]KKMCreateOFDPacket done [17:22:39]NVStorageSaveData kkm_last_timestamp [17:22:39]File name is /storage/kkm_last_timestamp [17:22:39]Write 4 bytes [17:22:39]NVStorageSaveData done [17:22:39]ExternCall_PrintAddStr [17:22:39]wPrintStart [17:22:39]Write to MH i2c: 01 00 00 46 2D 73 [17:22:39]Write i2c OK [17:22:39]MH_I2C_Read... [17:22:39]Read from MH i2c: 01 [17:22:39]MH_I2C_Read... [17:22:39]Read from MH i2c: 01 07 00 [17:22:39]MH_I2C_Read... [17:22:39]Read from MH i2c: 01 07 00 46 2D 00 00 00 00 00 FF 0F 88 [17:22:39]RasterBufferAndPrint [17:22:39]line Счет N : (1)459492 [17:22:39]line ИНН: 02508201610067 [17:22:39]line Контрольно-Кассовый Чек [17:22:39]line ПРОДАЖА [17:22:39]line ТРК (МРК, ГНК) : 22 [17:22:39]line Товар: 2710124130 [17:22:39]line Аи-92-К-5 [17:22:39]line 4.560 * 65.80 [17:22:39]line = 300.05 [17:22:39]line НДС 12% НСП 1% [17:22:39]line > о реализуемом товаре [17:22:39]line ОКРУГЛЕНИЕ: -0.05 [17:22:39]line ИТОГО: 300.00 [17:22:39]line Внесено: 300.00 [17:22:39]line СДАЧА: 0.00 [17:22:39]line НСП 1% : 2.65 [17:22:39]line НДС 12% : 31.86 [17:22:39]line Наличными: 300.00 [17:22:39]line Безнал.: 0.00 [17:22:39]line Место: АЗС № 72 "Партнер Нефть" [17:22:39]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:22:39]line СНО: Общий режим [17:22:39]line Чек 253 15.07.2024 17:22 [17:22:39]line Смена: 448 ФФД: 1.0 [17:22:39]line ЗНМ: 0300000160 [17:22:39]line РНМ: 0000000000090829 [17:22:39]line Версия ККМ: 001 [17:22:39]line ФМ: 0000000000874718 [17:22:39]line ФД: 165380 [17:22:39]line ФПД: 87690786107159 [17:22:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T172239&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165380&fm=87690786107159&tin=02508201610067®Number=0000000000090829&sum=30000 [17:22:39]OFD Sender: Processing packet 165380 [packets to send 106, broken 105] [17:22:39]ProducePacketName [17:22:39]name=ofd_packets/00165380 [17:22:39]OFD Sender: To server: pG, [17:22:39]CommunicateWithHost lk.salyk.kg:30040 [17:22:39]ConnectInit lk.salyk.kg [17:22:39]written 0, free lines is 4095 [17:22:39]Connected sock=10 [17:22:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 78 D4 07 01 25 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 DF 5A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 04 86 02 00 35 04 06 00 4F C1 1A 27 EF 17 B0 E2 27 DE E6 DB 0D A2 [17:22:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 61 23 47 00 47 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 37 31 38 10 04 04 00 04 86 02 00 F4 03 04 00 69 01 95 66 B6 04 01 00 00 86 9D 77 E5 0A 88 4B 57 [17:22:39]CommunicateWithHost err = 0 [17:22:39]CheckOFDResponse [17:22:39]1017 (14) - 77093643461234 [17:22:39]1041 (16) - 0000000000874718 [17:22:39]1040 (4) - 165380 [17:22:39]1012 (4) - 15.07.2024 11:00 [17:22:39]1206 (1) - 0 [17:22:39]OFD Sender: Remove packet 165380 [17:22:39]ProducePacketName [17:22:39]name=ofd_packets/00165380 [17:22:39]NVStorageDeleteData [17:22:40]Write to MH i2c: 01 00 00 70 2D 9D [17:22:40]Write i2c OK [17:22:40]MH_I2C_Read... [17:22:40]Read from MH i2c: 01 [17:22:40]MH_I2C_Read... [17:22:40]Read from MH i2c: 01 07 00 [17:22:40]MH_I2C_Read... [17:22:40]Read from MH i2c: 01 07 00 70 2D 00 00 00 00 00 02 0D B3 [17:22:40]RasterBufferAndPrint [17:22:40]line [17:22:40]line [17:22:40]line [17:22:40]line [17:22:40]line [17:22:40]written 0, free lines is 3336 [17:22:40]MH_Cut [17:22:40]Write to MH i2c: D1 01 00 77 2D 01 76 [17:22:40]Write i2c OK [17:22:40]MH_I2C_Read... [17:22:40]Read from MH i2c: D1 [17:22:40]MH_I2C_Read... [17:22:40]Read from MH i2c: D1 01 00 [17:22:40]MH_I2C_Read... [17:22:40]Read from MH i2c: D1 01 00 77 2D 00 75 [17:22:40]Write to MH i2c: 01 00 00 78 2D A5 [17:22:40]Write i2c OK [17:22:40]MH_I2C_Read... [17:22:40]OFD Sender: No OFD packet to send [17:22:40]*** Cut start [17:22:40]*** Partial cut [17:22:40]*** CUTSNS_PIN = 1 [17:22:40]*** CUTSNS_PIN = 0 [17:22:40]*** Brake cut motor [17:22:41]Read from MH i2c: 01 [17:22:41]MH_I2C_Read... [17:22:41]*** Stop cut motor [17:22:41]*** Cut end [17:22:41]Read from MH i2c: 01 07 00 [17:22:41]MH_I2C_Read... [17:22:41]Read from MH i2c: 01 07 00 78 2D 00 00 00 00 00 FF 0F BA [17:22:41]process_action close_receipt done [17:22:41]requested_data is exist [17:22:41]produce_requested_data [17:22:41]requested_item fm.sn is exist - process it [17:22:41]wFMCommunicate request_size=4 [17:22:41]MH_SAM_APDU [17:22:41]CAPDU: 80 11 00 00 [17:22:41]Write to MH i2c: E2 08 00 79 2D 80 11 00 00 00 00 00 00 20 [17:22:41]Write i2c OK [17:22:41]MH_I2C_Read... [17:22:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:41]Read from MH i2c: E2 [17:22:41]MH_I2C_Read... [17:22:41]Read from MH i2c: E2 17 00 [17:22:41]MH_I2C_Read... [17:22:41]Read from MH i2c: E2 17 00 79 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 76 [17:22:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:22:41]wFMCommunicate OK [17:22:41]requested_item fd.num is exist - process it [17:22:41]SAM_PROTO_GetFieldsCounters [17:22:41]wFMCommunicate request_size=4 [17:22:41]MH_SAM_APDU [17:22:41]CAPDU: 80 13 00 00 [17:22:41]Write to MH i2c: E2 08 00 7A 2D 80 13 00 00 00 00 00 00 23 [17:22:41]Write i2c OK [17:22:41]MH_I2C_Read... [17:22:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:22:41]Read from MH i2c: E2 [17:22:41]MH_I2C_Read... [17:22:41]Read from MH i2c: E2 62 00 [17:22:41]MH_I2C_Read... [17:22:41]Read from MH i2c: E2 62 00 7A 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 04 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [17:22: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 04 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:22:41]wFMCommunicate OK [17:22:41]SAM_PROTO_GetFieldsCounters done [17:22:41]requested_item shift.num is exist - process it [17:22:41]requested_item shift.opened is exist - process it [17:22:41]req_shift_opened [17:22:41]FM_GetShiftState [17:22:41]SAM_PROTO_GetShiftState [17:22:41]wFMCommunicate request_size=4 [17:22:41]MH_SAM_APDU [17:22:41]CAPDU: 80 13 01 00 [17:22:41]Write to MH i2c: E2 08 00 7B 2D 80 13 01 00 00 00 00 00 25 [17:22:41]Write i2c OK [17:22:41]MH_I2C_Read... [17:22:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:41]Read from MH i2c: E2 [17:22:41]MH_I2C_Read... [17:22:41]Read from MH i2c: E2 0E 00 [17:22:41]MH_I2C_Read... [17:22:41]Read from MH i2c: E2 0E 00 7B 2D 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 FE [17:22:41]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [17:22:41]wFMCommunicate OK [17:22:41]SAM_PROTO_GetShiftState done [17:22:41]FM_GetShiftState done [17:22:41]req_shift_opened done [17:22:41]requested_item shift.open_date is exist - process it [17:22:41]req_shift_open_date [17:22:41]req_shift_open_date done [17:22:41]produce_requested_data done [17:22:41]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165380,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [17:22:41]process_action_free close_receipt [17:22:41]json_value_free [17:22:41]json_value_free done [17:22:41]process_json_proto returns [17:22:41]Send response to host [17:22:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165380,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [17:22:41]free response buf [17:22:41]execute_script done [17:22:41]execute_script returns [17:22:41]free content buf [17:22:41]Sock 8.Close socket [17:22:41]Sock 8.Thread stoped [17:22:45]OFD Sender: No OFD packet to send [17:22:50]OFD Sender: No OFD packet to send [17:22:55]OFD Sender: No OFD packet to send [17:23:00]OFD Sender: No OFD packet to send [17:23:05]OFD Sender: No OFD packet to send [17:23:10]OFD Sender: No OFD packet to send [17:23:15]OFD Sender: No OFD packet to send [17:23:20]OFD Sender: No OFD packet to send [17:23:25]OFD Sender: No OFD packet to send [17:23:30]OFD Sender: No OFD packet to send [17:23:35]OFD Sender: No OFD packet to send [17:23:40]OFD Sender: No OFD packet to send [17:23:45]OFD Sender: No OFD packet to send [17:23:50]OFD Sender: No OFD packet to send [17:23:55]OFD Sender: No OFD packet to send [17:24:00]OFD Sender: No OFD packet to send [17:24:05]OFD Sender: No OFD packet to send [17:24:10]OFD Sender: No OFD packet to send [17:24:15]OFD Sender: No OFD packet to send [17:24:20]OFD Sender: No OFD packet to send [17:24:25]OFD Sender: No OFD packet to send [17:24:30]OFD Sender: No OFD packet to send [17:24:35]OFD Sender: No OFD packet to send [17:24:40]OFD Sender: No OFD packet to send [17:24:45]OFD Sender: No OFD packet to send [17:24:50]OFD Sender: No OFD packet to send [17:24:55]OFD Sender: No OFD packet to send [17:25:00]OFD Sender: No OFD packet to send [17:25:05]OFD Sender: No OFD packet to send [17:25:10]OFD Sender: No OFD packet to send [17:25:15]OFD Sender: No OFD packet to send [17:25:20]OFD Sender: No OFD packet to send [17:25:25]OFD Sender: No OFD packet to send [17:25:30]OFD Sender: No OFD packet to send [17:25:35]OFD Sender: No OFD packet to send [17:25:40]OFD Sender: No OFD packet to send [17:25:45]OFD Sender: No OFD packet to send [17:25:50]OFD Sender: No OFD packet to send [17:25:55]OFD Sender: No OFD packet to send [17:26:00]OFD Sender: No OFD packet to send [17:26:05]OFD Sender: No OFD packet to send [17:26:10]OFD Sender: No OFD packet to send [17:26:15]OFD Sender: No OFD packet to send [17:26:20]OFD Sender: No OFD packet to send [17:26:25]OFD Sender: No OFD packet to send [17:26:30]OFD Sender: No OFD packet to send [17:26:35]OFD Sender: No OFD packet to send [17:26:40]OFD Sender: No OFD packet to send [17:26:45]OFD Sender: No OFD packet to send [17:26:50]OFD Sender: No OFD packet to send [17:26:55]OFD Sender: No OFD packet to send [17:27:00]OFD Sender: No OFD packet to send [17:27:05]OFD Sender: No OFD packet to send [17:27:10]OFD Sender: No OFD packet to send [17:27:15]OFD Sender: No OFD packet to send [17:27:20]OFD Sender: No OFD packet to send [17:27:25]OFD Sender: No OFD packet to send [17:27:30]OFD Sender: No OFD packet to send [17:27:35]OFD Sender: No OFD packet to send [17:27:40]OFD Sender: No OFD packet to send [17:27:45]OFD Sender: No OFD packet to send [17:27:50]OFD Sender: No OFD packet to send [17:27:55]OFD Sender: No OFD packet to send [17:28:00]OFD Sender: No OFD packet to send [17:28:05]OFD Sender: No OFD packet to send [17:28:10]OFD Sender: No OFD packet to send [17:28:15]OFD Sender: No OFD packet to send [17:28:20]OFD Sender: No OFD packet to send [17:28:25]OFD Sender: No OFD packet to send [17:28:29]accept exits with 9 [17:28:29]New connection [17:28:29]New thread 3066711396 created [17:28:29]Thread 3066854756 joined [17:28:29]Waiting for new connection... [17:28:29] Sock 9.Parse request [17:28:29]Sock 9.Check first char [17:28:29]Sock 9.First char is OK [17:28:29]request: POST /json_proto HTTP/1.0 [17:28:29]Method: POST [17:28:29]URL: /json_proto [17:28:29]Method is POST - this is cgi request [17:28:29]url: /json_proto [17:28:29]query_string will be loaded in cgi processing [17:28:29]execute_cgi json_proto POST (null) [17:28:29]execute_cgi path=json_proto method=POST [17:28:29]POST find Content-Length [17:28:29]Host: 172.17.56.4:8080 [17:28:29]Content-Length: 677 [17:28:29]Content-Type: application/json [17:28:29] [17:28:29]POST finish read [17:28:29]Found Content-Length = 677 [17:28:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459494", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:28:29]execute_script... [17:28: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)459494", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:28:29]POST & json_proto [17:28:29]process_json_proto [17:28:29]json parsed OK: [17:28:29]protocol is kg_v1.0 [17:28:29]action value=close_receipt [17:28:29]process_action close_receipt [17:28:29]cmd_close_receipt [17:28:29]MH_GetDate [17:28:29]Write to MH i2c: F0 00 00 7C 2D 98 [17:28:29]Write i2c OK [17:28:29]MH_I2C_Read... [17:28:29]Read from MH i2c: F0 [17:28:29]MH_I2C_Read... [17:28:29]Read from MH i2c: F0 09 00 [17:28:29]MH_I2C_Read... [17:28:29]Read from MH i2c: F0 09 00 7C 2D 00 3F 5C 95 66 C9 DC B2 64 F2 [17:28:29]GetLastDocTimeStamp 1721064159 [17:28:29]current date 1721064511 [17:28:29]FM_GetShiftState [17:28:29]SAM_PROTO_GetShiftState [17:28:29]wFMCommunicate request_size=4 [17:28:29]MH_SAM_APDU [17:28:29]CAPDU: 80 13 01 00 [17:28:29]Write to MH i2c: E2 08 00 7D 2D 80 13 01 00 00 00 00 00 27 [17:28:29]Write i2c OK [17:28:29]MH_I2C_Read... [17:28:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:29]Read from MH i2c: E2 [17:28:29]MH_I2C_Read... [17:28:29]Read from MH i2c: E2 0E 00 [17:28:29]MH_I2C_Read... [17:28:29]Read from MH i2c: E2 0E 00 7D 2D 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 00 [17:28:29]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [17:28:29]wFMCommunicate OK [17:28:29]SAM_PROTO_GetShiftState done [17:28:29]FM_GetShiftState done [17:28:29]opened in 1721003876 [17:28:29]opened+sec_in_day 1721090276 [17:28:29]quantity*price = 20003 [17:28:29]sum+1 = 20004 [17:28:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 254 15.07.2024 17:28 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165381 ФПД: 160222152331213 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T172831&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165381&fm=160222152331213&tin=02508201610067®Number=0000000000090829&sum=20000 [17:28:30]StoreToDocumentArchive [17:28:30]shift 448 fd 165381 [17:28:30]save to /storage/0448/doc_00165381 [17:28:30]save last doc name /storage/0448/doc_00165381 to /storage/kkm_last_doc_name [17:28:30]save OK [17:28:30]Clear old archive folders... [17:28:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:28:30]tlvbuf is 01838670 [17:28:30]SAM_PROTO_ClearQueue [17:28:30]wFMCommunicate request_size=4 [17:28:30]MH_SAM_APDU [17:28:30]CAPDU: 80 09 00 00 [17:28:30]Write to MH i2c: E2 08 00 8A 2D 80 09 00 00 00 00 00 00 29 [17:28:30]Write i2c OK [17:28:30]MH_I2C_Read... [17:28:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:28:30]Read from MH i2c: E2 [17:28:30]MH_I2C_Read... [17:28:30]Read from MH i2c: E2 03 00 [17:28:30]MH_I2C_Read... [17:28:30]Read from MH i2c: E2 03 00 8A 2D 00 90 00 2B [17:28:30]RAPDU: 90 00 [17:28:30]wFMCommunicate OK [17:28:30]SAM_PROTO_ClearQueue done [17:28:30]KKMCreateOFDPacket [17:28:30]OFDProtocolAddRootSTLVToBuf [17:28:30]FM_MakeSignedData [17:28:30]FM_MakeSignedData [17:28:30]SAM_PROTO_SignData [17:28:30]wFMCommunicate request_size=4 [17:28:30]MH_SAM_APDU [17:28:30]CAPDU: 80 0D 01 02 [17:28:30]Write to MH i2c: E2 08 00 8B 2D 80 0D 01 02 00 00 00 00 31 [17:28:30]Write i2c OK [17:28:30]MH_I2C_Read... [17:28:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:28:30]Read from MH i2c: E2 [17:28:30]MH_I2C_Read... [17:28:30]Read from MH i2c: E2 03 00 [17:28:30]MH_I2C_Read... [17:28:30]Read from MH i2c: E2 03 00 8B 2D 00 90 00 2C [17:28:30]RAPDU: 90 00 [17:28:30]wFMCommunicate OK [17:28:30]wFMCommunicate request_size=255 [17:28:30]MH_SAM_APDU [17:28: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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 3F 5C 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 05 86 02 00 35 04 06 00 91 [17:28:30]Write to MH i2c: E2 02 01 8C 2D 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 3F 5C 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 05 86 02 00 35 04 06 00 91 00 00 BE [17:28:30]Write i2c OK [17:28:30]MH_I2C_Read... [17:28:30]OFD Sender: No OFD packet to send [17:28:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:31]Read from MH i2c: E2 [17:28:31]MH_I2C_Read... [17:28:31]Read from MH i2c: E2 03 00 [17:28:31]MH_I2C_Read... [17:28:31]Read from MH i2c: E2 03 00 8C 2D 00 90 00 2D [17:28:31]RAPDU: 90 00 [17:28:31]wFMCommunicate OK [17:28:31]wFMCommunicate request_size=10 [17:28:31]MH_SAM_APDU [17:28:31]CAPDU: 80 0D 02 02 05 B8 A0 79 8F CD [17:28:31]Write to MH i2c: E2 0D 00 8D 2D 80 0D 02 02 05 00 B8 A0 79 8F CD 00 00 6B [17:28:31]Write i2c OK [17:28:31]MH_I2C_Read... [17:28:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:31]Read from MH i2c: E2 [17:28:31]MH_I2C_Read... [17:28:31]Read from MH i2c: E2 03 00 [17:28:31]MH_I2C_Read... [17:28:31]Read from MH i2c: E2 03 00 8D 2D 00 90 00 2E [17:28:31]RAPDU: 90 00 [17:28:31]wFMCommunicate OK [17:28:31]wFMCommunicate request_size=4 [17:28:31]MH_SAM_APDU [17:28:31]CAPDU: 80 0D 03 02 [17:28:31]Write to MH i2c: E2 08 00 8E 2D 80 0D 03 02 00 00 00 00 36 [17:28:31]Write i2c OK [17:28:31]MH_I2C_Read... [17:28:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:28:31]Read from MH i2c: E2 [17:28:31]MH_I2C_Read... [17:28:31]Read from MH i2c: E2 0B 00 [17:28:31]MH_I2C_Read... [17:28:31]Read from MH i2c: E2 0B 00 8E 2D 00 72 46 76 A3 91 D1 2C 8A 90 00 20 [17:28:31]RAPDU: 72 46 76 A3 91 D1 2C 8A 90 00 [17:28:31]wFMCommunicate OK [17:28:31]SAM_PROTO_SignData done [17:28:31]FM_MakeSignedData done [17:28:31]CreateOFDProtocolMessage [17:28:31]wFMCommunicate request_size=4 [17:28:31]MH_SAM_APDU [17:28:31]CAPDU: 80 11 00 00 [17:28:31]Write to MH i2c: E2 08 00 8F 2D 80 11 00 00 00 00 00 00 36 [17:28:31]Write i2c OK [17:28:31]MH_I2C_Read... [17:28:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:31]Read from MH i2c: E2 [17:28:31]MH_I2C_Read... [17:28:31]Read from MH i2c: E2 17 00 [17:28:31]MH_I2C_Read... [17:28:31]Read from MH i2c: E2 17 00 8F 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8C [17:28:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:28:31]wFMCommunicate OK [17:28:31]CreateOFDProtocolMessage done [17:28:31]OFDSenderStorePacket 165381 [17:28:31]StoreOFDPacket docnum=165381 [17:28:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 07 23 07 01 47 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 3F 5C 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 05 86 02 00 35 04 06 00 91 B8 A0 79 8F CD 72 46 76 A3 91 D1 2C 8A [17:28:31]CheckFolder [17:28:31]dirname=/storage/ofd_packets [17:28:31]CheckFolder done [17:28:31]ProducePacketName [17:28:31]name=ofd_packets/00165381 [17:28:31]NVStorageSaveData ofd_packets/00165381 [17:28:31]File name is /storage/ofd_packets/00165381 [17:28:31]Write 301 bytes [17:28:31]NVStorageSaveData done [17:28:31]OFDSenderStorePacket done [17:28:31]KKMCreateOFDPacket done [17:28:31]NVStorageSaveData kkm_last_timestamp [17:28:31]File name is /storage/kkm_last_timestamp [17:28:31]Write 4 bytes [17:28:31]NVStorageSaveData done [17:28:31]ExternCall_PrintAddStr [17:28:31]wPrintStart [17:28:31]Write to MH i2c: 01 00 00 90 2D BD [17:28:31]Write i2c OK [17:28:31]MH_I2C_Read... [17:28:31]Read from MH i2c: 01 [17:28:31]MH_I2C_Read... [17:28:31]Read from MH i2c: 01 07 00 [17:28:31]MH_I2C_Read... [17:28:31]Read from MH i2c: 01 07 00 90 2D 00 00 00 00 00 FF 0F D2 [17:28:31]RasterBufferAndPrint [17:28:31]line Счет N : (1)459494 [17:28:31]line ИНН: 02508201610067 [17:28:31]line Контрольно-Кассовый Чек [17:28:31]line ПРОДАЖА [17:28:31]line ТРК (МРК, ГНК) : 12 [17:28:31]line Товар: 2710124130 [17:28:31]line Аи-92-К-5 [17:28:31]line 3.040 * 65.80 [17:28:31]line = 200.03 [17:28:31]line НДС 12% НСП 1% [17:28:31]line > о реализуемом товаре [17:28:31]line ОКРУГЛЕНИЕ: -0.03 [17:28:31]line ИТОГО: 200.00 [17:28:31]line Внесено: 200.00 [17:28:31]line СДАЧА: 0.00 [17:28:31]line НСП 1% : 1.77 [17:28:31]line НДС 12% : 21.24 [17:28:31]line Наличными: 200.00 [17:28:31]line Безнал.: 0.00 [17:28:31]line Место: АЗС № 72 "Партнер Нефть" [17:28:31]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:28:31]line СНО: Общий режим [17:28:31]line Чек 254 15.07.2024 17:28 [17:28:31]line Смена: 448 ФФД: 1.0 [17:28:31]line ЗНМ: 0300000160 [17:28:31]line РНМ: 0000000000090829 [17:28:31]line Версия ККМ: 001 [17:28:31]line ФМ: 0000000000874718 [17:28:31]line ФД: 165381 [17:28:31]line ФПД: 160222152331213 [17:28:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T172831&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165381&fm=160222152331213&tin=02508201610067®Number=0000000000090829&sum=20000 [17:28:31]OFD Sender: Processing packet 165381 [packets to send 106, broken 105] [17:28:31]ProducePacketName [17:28:31]name=ofd_packets/00165381 [17:28:31]OFD Sender: To server: pG, [17:28:31]CommunicateWithHost lk.salyk.kg:30040 [17:28:31]ConnectInit lk.salyk.kg [17:28:31]written 0, free lines is 4095 [17:28:31]Connected sock=10 [17:28: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 37 31 38 0F 01 00 00 07 23 07 01 47 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 3F 5C 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 05 86 02 00 35 04 06 00 91 B8 A0 79 8F CD 72 46 76 A3 91 D1 2C 8A [17:28:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 CD 68 47 00 20 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 05 86 02 00 F4 03 04 00 C9 02 95 66 B6 04 01 00 00 1E 21 F6 95 2B 9C 41 A8 [17:28:31]CommunicateWithHost err = 0 [17:28:31]CheckOFDResponse [17:28:31]1017 (14) - 77093643461234 [17:28:31]1041 (16) - 0000000000874718 [17:28:31]1040 (4) - 165381 [17:28:31]1012 (4) - 15.07.2024 11:06 [17:28:31]1206 (1) - 0 [17:28:31]OFD Sender: Remove packet 165381 [17:28:31]ProducePacketName [17:28:31]name=ofd_packets/00165381 [17:28:31]NVStorageDeleteData [17:28:31]Write to MH i2c: 01 00 00 BA 2D E7 [17:28:31]Write i2c OK [17:28:31]MH_I2C_Read... [17:28:31]Read from MH i2c: 01 [17:28:31]MH_I2C_Read... [17:28:31]Read from MH i2c: 01 07 00 [17:28:31]MH_I2C_Read... [17:28:31]Read from MH i2c: 01 07 00 BA 2D 00 00 00 00 00 ED 0C E7 [17:28:31]RasterBufferAndPrint [17:28:31]line [17:28:31]line [17:28:31]line [17:28:31]line [17:28:31]line [17:28:31]written 0, free lines is 3319 [17:28:32]MH_Cut [17:28:32]Write to MH i2c: D1 01 00 C1 2D 01 C0 [17:28:32]Write i2c OK [17:28:32]MH_I2C_Read... [17:28:32]Read from MH i2c: D1 [17:28:32]MH_I2C_Read... [17:28:32]Read from MH i2c: D1 01 00 [17:28:32]MH_I2C_Read... [17:28:32]Read from MH i2c: D1 01 00 C1 2D 00 BF [17:28:32]Write to MH i2c: 01 00 00 C2 2D EF [17:28:32]Write i2c OK [17:28:32]MH_I2C_Read... [17:28:32]OFD Sender: No OFD packet to send [17:28:32]*** Cut start [17:28:32]*** Partial cut [17:28:32]*** CUTSNS_PIN = 1 [17:28:32]*** CUTSNS_PIN = 0 [17:28:32]*** Brake cut motor [17:28:33]Read from MH i2c: 01 [17:28:33]MH_I2C_Read... [17:28:33]*** Stop cut motor [17:28:33]*** Cut end [17:28:33]Read from MH i2c: 01 07 00 [17:28:33]MH_I2C_Read... [17:28:33]Read from MH i2c: 01 07 00 C2 2D 00 00 00 00 00 FF 0F 04 [17:28:33]process_action close_receipt done [17:28:33]requested_data is exist [17:28:33]produce_requested_data [17:28:33]requested_item fm.sn is exist - process it [17:28:33]wFMCommunicate request_size=4 [17:28:33]MH_SAM_APDU [17:28:33]CAPDU: 80 11 00 00 [17:28:33]Write to MH i2c: E2 08 00 C3 2D 80 11 00 00 00 00 00 00 6A [17:28:33]Write i2c OK [17:28:33]MH_I2C_Read... [17:28:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:33]Read from MH i2c: E2 [17:28:33]MH_I2C_Read... [17:28:33]Read from MH i2c: E2 17 00 [17:28:33]MH_I2C_Read... [17:28:33]Read from MH i2c: E2 17 00 C3 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C0 [17:28:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:28:33]wFMCommunicate OK [17:28:33]requested_item fd.num is exist - process it [17:28:33]SAM_PROTO_GetFieldsCounters [17:28:33]wFMCommunicate request_size=4 [17:28:33]MH_SAM_APDU [17:28:33]CAPDU: 80 13 00 00 [17:28:33]Write to MH i2c: E2 08 00 C4 2D 80 13 00 00 00 00 00 00 6D [17:28:33]Write i2c OK [17:28:33]MH_I2C_Read... [17:28:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:28:33]Read from MH i2c: E2 [17:28:33]MH_I2C_Read... [17:28:33]Read from MH i2c: E2 62 00 [17:28:33]MH_I2C_Read... [17:28:33]Read from MH i2c: E2 62 00 C4 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 05 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [17:28: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 05 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:28:33]wFMCommunicate OK [17:28:33]SAM_PROTO_GetFieldsCounters done [17:28:33]requested_item shift.num is exist - process it [17:28:33]requested_item shift.opened is exist - process it [17:28:33]req_shift_opened [17:28:33]FM_GetShiftState [17:28:33]SAM_PROTO_GetShiftState [17:28:33]wFMCommunicate request_size=4 [17:28:33]MH_SAM_APDU [17:28:33]CAPDU: 80 13 01 00 [17:28:33]Write to MH i2c: E2 08 00 C5 2D 80 13 01 00 00 00 00 00 6F [17:28:33]Write i2c OK [17:28:33]MH_I2C_Read... [17:28:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:33]Read from MH i2c: E2 [17:28:33]MH_I2C_Read... [17:28:33]Read from MH i2c: E2 0E 00 [17:28:33]MH_I2C_Read... [17:28:33]Read from MH i2c: E2 0E 00 C5 2D 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 48 [17:28:33]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [17:28:33]wFMCommunicate OK [17:28:33]SAM_PROTO_GetShiftState done [17:28:33]FM_GetShiftState done [17:28:33]req_shift_opened done [17:28:33]requested_item shift.open_date is exist - process it [17:28:33]req_shift_open_date [17:28:33]req_shift_open_date done [17:28:33]produce_requested_data done [17:28:33]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165381,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [17:28:33]process_action_free close_receipt [17:28:33]json_value_free [17:28:33]json_value_free done [17:28:33]process_json_proto returns [17:28:33]Send response to host [17:28:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165381,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [17:28:33]free response buf [17:28:33]execute_script done [17:28:33]execute_script returns [17:28:33]free content buf [17:28:33]Sock 9.Close socket [17:28:33]Sock 9.Thread stoped [17:28:37]OFD Sender: No OFD packet to send [17:28:42]OFD Sender: No OFD packet to send [17:28:42]accept exits with 8 [17:28:42]New connection [17:28:42]New thread 3066854756 created [17:28:42]Thread 3066711396 joined [17:28:42]Waiting for new connection... [17:28:42] Sock 8.Parse request [17:28:42]Sock 8.Check first char [17:28:42]Sock 8.First char is OK [17:28:42]request: POST /json_proto HTTP/1.0 [17:28:42]Method: POST [17:28:42]URL: /json_proto [17:28:42]Method is POST - this is cgi request [17:28:42]url: /json_proto [17:28:42]query_string will be loaded in cgi processing [17:28:42]execute_cgi json_proto POST (null) [17:28:42]execute_cgi path=json_proto method=POST [17:28:42]POST find Content-Length [17:28:42]Host: 172.17.56.4:8080 [17:28:42]Content-Length: 677 [17:28:42]Content-Type: application/json [17:28:42] [17:28:42]POST finish read [17:28:42]Found Content-Length = 677 [17:28:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459493", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:28:42]execute_script... [17: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)459493", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:28:42]POST & json_proto [17:28:42]process_json_proto [17:28:42]json parsed OK: [17:28:42]protocol is kg_v1.0 [17:28:42]action value=close_receipt [17:28:42]process_action close_receipt [17:28:42]cmd_close_receipt [17:28:42]MH_GetDate [17:28:42]Write to MH i2c: F0 00 00 C6 2D E2 [17:28:42]Write i2c OK [17:28:42]MH_I2C_Read... [17:28:42]Read from MH i2c: F0 [17:28:42]MH_I2C_Read... [17:28:42]Read from MH i2c: F0 09 00 [17:28:42]MH_I2C_Read... [17:28:42]Read from MH i2c: F0 09 00 C6 2D 00 4C 5C 95 66 C9 DC B2 64 49 [17:28:42]GetLastDocTimeStamp 1721064511 [17:28:42]current date 1721064524 [17:28:42]FM_GetShiftState [17:28:42]SAM_PROTO_GetShiftState [17:28:42]wFMCommunicate request_size=4 [17:28:42]MH_SAM_APDU [17:28:42]CAPDU: 80 13 01 00 [17:28:42]Write to MH i2c: E2 08 00 C7 2D 80 13 01 00 00 00 00 00 71 [17:28:42]Write i2c OK [17:28:42]MH_I2C_Read... [17:28:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:42]Read from MH i2c: E2 [17:28:42]MH_I2C_Read... [17:28:42]Read from MH i2c: E2 0E 00 [17:28:42]MH_I2C_Read... [17:28:42]Read from MH i2c: E2 0E 00 C7 2D 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 4A [17:28:42]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [17:28:42]wFMCommunicate OK [17:28:42]SAM_PROTO_GetShiftState done [17:28:42]FM_GetShiftState done [17:28:42]opened in 1721003876 [17:28:42]opened+sec_in_day 1721090276 [17:28:42]quantity*price = 50008 [17:28:42]sum+1 = 50009 [17:28:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 255 15.07.2024 17:28 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165382 ФПД: 157173511209598 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T172844&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165382&fm=157173511209598&tin=02508201610067®Number=0000000000090829&sum=50000 [17:28:43]StoreToDocumentArchive [17:28:43]shift 448 fd 165382 [17:28:43]save to /storage/0448/doc_00165382 [17:28:43]save last doc name /storage/0448/doc_00165382 to /storage/kkm_last_doc_name [17:28:43]save OK [17:28:43]Clear old archive folders... [17:28:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:28:43]tlvbuf is 01850320 [17:28:43]SAM_PROTO_ClearQueue [17:28:43]wFMCommunicate request_size=4 [17:28:43]MH_SAM_APDU [17:28:43]CAPDU: 80 09 00 00 [17:28:43]Write to MH i2c: E2 08 00 D4 2D 80 09 00 00 00 00 00 00 73 [17:28:43]Write i2c OK [17:28:43]MH_I2C_Read... [17:28:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:28:43]Read from MH i2c: E2 [17:28:43]MH_I2C_Read... [17:28:43]Read from MH i2c: E2 03 00 [17:28:43]MH_I2C_Read... [17:28:43]Read from MH i2c: E2 03 00 D4 2D 00 90 00 75 [17:28:43]RAPDU: 90 00 [17:28:43]wFMCommunicate OK [17:28:43]SAM_PROTO_ClearQueue done [17:28:43]KKMCreateOFDPacket [17:28:43]OFDProtocolAddRootSTLVToBuf [17:28:43]FM_MakeSignedData [17:28:43]FM_MakeSignedData [17:28:43]SAM_PROTO_SignData [17:28:43]wFMCommunicate request_size=4 [17:28:43]MH_SAM_APDU [17:28:43]CAPDU: 80 0D 01 02 [17:28:43]Write to MH i2c: E2 08 00 D5 2D 80 0D 01 02 00 00 00 00 7B [17:28:43]Write i2c OK [17:28:43]MH_I2C_Read... [17:28:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:28:43]Read from MH i2c: E2 [17:28:43]MH_I2C_Read... [17:28:43]Read from MH i2c: E2 03 00 [17:28:43]MH_I2C_Read... [17:28:43]Read from MH i2c: E2 03 00 D5 2D 00 90 00 76 [17:28:43]RAPDU: 90 00 [17:28:43]wFMCommunicate OK [17:28:43]wFMCommunicate request_size=255 [17:28:43]MH_SAM_APDU [17: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 4C 5C 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 06 86 02 00 35 04 06 00 8E [17:28:43]Write to MH i2c: E2 02 01 D6 2D 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 4C 5C 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 06 86 02 00 35 04 06 00 8E 00 00 73 [17:28:43]Write i2c OK [17:28:43]MH_I2C_Read... [17:28:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:44]Read from MH i2c: E2 [17:28:44]MH_I2C_Read... [17:28:44]Read from MH i2c: E2 03 00 [17:28:44]MH_I2C_Read... [17:28:44]Read from MH i2c: E2 03 00 D6 2D 00 90 00 77 [17:28:44]RAPDU: 90 00 [17:28:44]wFMCommunicate OK [17:28:44]wFMCommunicate request_size=10 [17:28:44]MH_SAM_APDU [17:28:44]CAPDU: 80 0D 02 02 05 F2 CF 4D C2 7E [17:28:44]Write to MH i2c: E2 0D 00 D7 2D 80 0D 02 02 05 00 F2 CF 4D C2 7E 00 00 D6 [17:28:44]Write i2c OK [17:28:44]MH_I2C_Read... [17:28:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:44]Read from MH i2c: E2 [17:28:44]MH_I2C_Read... [17:28:44]Read from MH i2c: E2 03 00 [17:28:44]MH_I2C_Read... [17:28:44]Read from MH i2c: E2 03 00 D7 2D 00 90 00 78 [17:28:44]RAPDU: 90 00 [17:28:44]wFMCommunicate OK [17:28:44]wFMCommunicate request_size=4 [17:28:44]MH_SAM_APDU [17:28:44]CAPDU: 80 0D 03 02 [17:28:44]Write to MH i2c: E2 08 00 D8 2D 80 0D 03 02 00 00 00 00 80 [17:28:44]Write i2c OK [17:28:44]MH_I2C_Read... [17:28:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:28:44]Read from MH i2c: E2 [17:28:44]MH_I2C_Read... [17:28:44]Read from MH i2c: E2 0B 00 [17:28:44]MH_I2C_Read... [17:28:44]Read from MH i2c: E2 0B 00 D8 2D 00 6A 03 57 9C 12 5D E6 C5 90 00 FB [17:28:44]RAPDU: 6A 03 57 9C 12 5D E6 C5 90 00 [17:28:44]wFMCommunicate OK [17:28:44]SAM_PROTO_SignData done [17:28:44]FM_MakeSignedData done [17:28:44]CreateOFDProtocolMessage [17:28:44]wFMCommunicate request_size=4 [17:28:44]MH_SAM_APDU [17:28:44]CAPDU: 80 11 00 00 [17:28:44]Write to MH i2c: E2 08 00 D9 2D 80 11 00 00 00 00 00 00 80 [17:28:44]Write i2c OK [17:28:44]MH_I2C_Read... [17:28:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:44]Read from MH i2c: E2 [17:28:44]MH_I2C_Read... [17:28:44]Read from MH i2c: E2 17 00 [17:28:44]MH_I2C_Read... [17:28:44]Read from MH i2c: E2 17 00 D9 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D6 [17:28:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:28:44]wFMCommunicate OK [17:28:44]CreateOFDProtocolMessage done [17:28:44]OFDSenderStorePacket 165382 [17:28:44]StoreOFDPacket docnum=165382 [17:28:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 DF B9 07 01 87 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 4C 5C 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 06 86 02 00 35 04 06 00 8E F2 CF 4D C2 7E 6A 03 57 9C 12 5D E6 C5 [17:28:44]CheckFolder [17:28:44]dirname=/storage/ofd_packets [17:28:44]CheckFolder done [17:28:44]ProducePacketName [17:28:44]name=ofd_packets/00165382 [17:28:44]NVStorageSaveData ofd_packets/00165382 [17:28:44]File name is /storage/ofd_packets/00165382 [17:28:44]Write 301 bytes [17:28:44]NVStorageSaveData done [17:28:44]OFDSenderStorePacket done [17:28:44]KKMCreateOFDPacket done [17:28:44]NVStorageSaveData kkm_last_timestamp [17:28:44]File name is /storage/kkm_last_timestamp [17:28:44]Write 4 bytes [17:28:44]NVStorageSaveData done [17:28:44]ExternCall_PrintAddStr [17:28:44]wPrintStart [17:28:44]Write to MH i2c: 01 00 00 DA 2D 07 [17:28:44]Write i2c OK [17:28:44]MH_I2C_Read... [17:28:44]Read from MH i2c: 01 [17:28:44]MH_I2C_Read... [17:28:44]Read from MH i2c: 01 07 00 [17:28:44]MH_I2C_Read... [17:28:44]Read from MH i2c: 01 07 00 DA 2D 00 00 00 00 00 FF 0F 1C [17:28:44]RasterBufferAndPrint [17:28:44]line Счет N : (1)459493 [17:28:44]line ИНН: 02508201610067 [17:28:44]line Контрольно-Кассовый Чек [17:28:44]line ПРОДАЖА [17:28:44]line ТРК (МРК, ГНК) : 22 [17:28:44]line Товар: 2710124130 [17:28:44]line Аи-92-К-5 [17:28:44]line 7.600 * 65.80 [17:28:44]line = 500.08 [17:28:44]line НДС 12% НСП 1% [17:28:44]line > о реализуемом товаре [17:28:44]line ОКРУГЛЕНИЕ: -0.08 [17:28:44]line ИТОГО: 500.00 [17:28:44]line Внесено: 500.00 [17:28:44]line СДАЧА: 0.00 [17:28:44]line НСП 1% : 4.42 [17:28:44]line НДС 12% : 53.11 [17:28:44]line Наличными: 500.00 [17:28:44]line Безнал.: 0.00 [17:28:44]line Место: АЗС № 72 "Партнер Нефть" [17:28:44]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:28:44]line СНО: Общий режим [17:28:44]line Чек 255 15.07.2024 17:28 [17:28:44]line Смена: 448 ФФД: 1.0 [17:28:44]line ЗНМ: 0300000160 [17:28:44]line РНМ: 0000000000090829 [17:28:44]line Версия ККМ: 001 [17:28:44]line ФМ: 0000000000874718 [17:28:44]line ФД: 165382 [17:28:44]line ФПД: 157173511209598 [17:28:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T172844&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165382&fm=157173511209598&tin=02508201610067®Number=0000000000090829&sum=50000 [17:28:44]OFD Sender: Processing packet 165382 [packets to send 106, broken 105] [17:28:44]ProducePacketName [17:28:44]name=ofd_packets/00165382 [17:28:44]OFD Sender: To server: pG, [17:28:44]CommunicateWithHost lk.salyk.kg:30040 [17:28:44]ConnectInit lk.salyk.kg [17:28:44]written 0, free lines is 4095 [17:28:44]Connected sock=10 [17: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 37 31 38 0F 01 00 00 DF B9 07 01 87 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 4C 5C 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 06 86 02 00 35 04 06 00 8E F2 CF 4D C2 7E 6A 03 57 9C 12 5D E6 C5 [17: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 37 31 38 4F 00 00 00 E7 FA 47 00 D0 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 06 86 02 00 F4 03 04 00 D6 02 95 66 B6 04 01 00 00 7D D7 F8 C2 FC 93 6E ED [17:28:44]CommunicateWithHost err = 0 [17:28:44]CheckOFDResponse [17:28:44]1017 (14) - 77093643461234 [17:28:44]1041 (16) - 0000000000874718 [17:28:44]1040 (4) - 165382 [17:28:44]1012 (4) - 15.07.2024 11:07 [17:28:44]1206 (1) - 0 [17:28:44]OFD Sender: Remove packet 165382 [17:28:44]ProducePacketName [17:28:44]name=ofd_packets/00165382 [17:28:44]NVStorageDeleteData [17:28:44]Write to MH i2c: 01 00 00 04 2E 32 [17:28:44]Write i2c OK [17:28:44]MH_I2C_Read... [17:28:44]Read from MH i2c: 01 [17:28:44]MH_I2C_Read... [17:28:44]Read from MH i2c: 01 07 00 [17:28:44]MH_I2C_Read... [17:28:44]Read from MH i2c: 01 07 00 04 2E 00 00 00 00 00 07 0D 4D [17:28:44]RasterBufferAndPrint [17:28:44]line [17:28:44]line [17:28:44]line [17:28:44]line [17:28:44]line [17:28:44]written 0, free lines is 3344 [17:28:44]MH_Cut [17:28:44]Write to MH i2c: D1 01 00 0B 2E 01 0B [17:28:45]Write i2c OK [17:28:45]MH_I2C_Read... [17:28:45]Read from MH i2c: D1 [17:28:45]MH_I2C_Read... [17:28:45]Read from MH i2c: D1 01 00 [17:28:45]MH_I2C_Read... [17:28:45]Read from MH i2c: D1 01 00 0B 2E 00 0A [17:28:45]Write to MH i2c: 01 00 00 0C 2E 3A [17:28:45]Write i2c OK [17:28:45]MH_I2C_Read... [17:28:45]OFD Sender: No OFD packet to send [17:28:45]*** Cut start [17:28:45]*** Partial cut [17:28:45]*** CUTSNS_PIN = 1 [17:28:45]*** CUTSNS_PIN = 0 [17:28:45]*** Brake cut motor [17:28:46]Read from MH i2c: 01 [17:28:46]MH_I2C_Read... [17:28:46]*** Stop cut motor [17:28:46]*** Cut end [17:28:46]Read from MH i2c: 01 07 00 [17:28:46]MH_I2C_Read... [17:28:46]Read from MH i2c: 01 07 00 0C 2E 00 00 00 00 00 FF 0F 4F [17:28:46]process_action close_receipt done [17:28:46]requested_data is exist [17:28:46]produce_requested_data [17:28:46]requested_item fm.sn is exist - process it [17:28:46]wFMCommunicate request_size=4 [17:28:46]MH_SAM_APDU [17:28:46]CAPDU: 80 11 00 00 [17:28:46]Write to MH i2c: E2 08 00 0D 2E 80 11 00 00 00 00 00 00 B5 [17:28:46]Write i2c OK [17:28:46]MH_I2C_Read... [17:28:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:46]Read from MH i2c: E2 [17:28:46]MH_I2C_Read... [17:28:46]Read from MH i2c: E2 17 00 [17:28:46]MH_I2C_Read... [17:28:46]Read from MH i2c: E2 17 00 0D 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0B [17:28:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:28:46]wFMCommunicate OK [17:28:46]requested_item fd.num is exist - process it [17:28:46]SAM_PROTO_GetFieldsCounters [17:28:46]wFMCommunicate request_size=4 [17:28:46]MH_SAM_APDU [17:28:46]CAPDU: 80 13 00 00 [17:28:46]Write to MH i2c: E2 08 00 0E 2E 80 13 00 00 00 00 00 00 B8 [17:28:46]Write i2c OK [17:28:46]MH_I2C_Read... [17:28:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:28:46]Read from MH i2c: E2 [17:28:46]MH_I2C_Read... [17:28:46]Read from MH i2c: E2 62 00 [17:28:46]MH_I2C_Read... [17:28:46]Read from MH i2c: E2 62 00 0E 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 06 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 2C [17: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 06 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:28:46]wFMCommunicate OK [17:28:46]SAM_PROTO_GetFieldsCounters done [17:28:46]requested_item shift.num is exist - process it [17:28:46]requested_item shift.opened is exist - process it [17:28:46]req_shift_opened [17:28:46]FM_GetShiftState [17:28:46]SAM_PROTO_GetShiftState [17:28:46]wFMCommunicate request_size=4 [17:28:46]MH_SAM_APDU [17:28:46]CAPDU: 80 13 01 00 [17:28:46]Write to MH i2c: E2 08 00 0F 2E 80 13 01 00 00 00 00 00 BA [17:28:46]Write i2c OK [17:28:46]MH_I2C_Read... [17:28:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:46]Read from MH i2c: E2 [17:28:46]MH_I2C_Read... [17:28:46]Read from MH i2c: E2 0E 00 [17:28:46]MH_I2C_Read... [17:28:46]Read from MH i2c: E2 0E 00 0F 2E 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 93 [17:28:46]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [17:28:46]wFMCommunicate OK [17:28:46]SAM_PROTO_GetShiftState done [17:28:46]FM_GetShiftState done [17:28:46]req_shift_opened done [17:28:46]requested_item shift.open_date is exist - process it [17:28:46]req_shift_open_date [17:28:46]req_shift_open_date done [17:28:46]produce_requested_data done [17:28:46]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165382,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [17:28:46]process_action_free close_receipt [17:28:46]json_value_free [17:28:46]json_value_free done [17:28:46]process_json_proto returns [17:28:46]Send response to host [17:28:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165382,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [17:28:46]free response buf [17:28:46]execute_script done [17:28:46]execute_script returns [17:28:46]free content buf [17:28:46]Sock 8.Close socket [17:28:46]Sock 8.Thread stoped [17:28:50]OFD Sender: No OFD packet to send [17:28:55]OFD Sender: No OFD packet to send [17:29:00]OFD Sender: No OFD packet to send [17:29:05]OFD Sender: No OFD packet to send [17:29:10]OFD Sender: No OFD packet to send [17:29:15]OFD Sender: No OFD packet to send [17:29:20]OFD Sender: No OFD packet to send [17:29:25]OFD Sender: No OFD packet to send [17:29:30]OFD Sender: No OFD packet to send [17:29:35]OFD Sender: No OFD packet to send [17:29:40]OFD Sender: No OFD packet to send [17:29:45]OFD Sender: No OFD packet to send [17:29:50]OFD Sender: No OFD packet to send [17:29:55]OFD Sender: No OFD packet to send [17:30:00]OFD Sender: No OFD packet to send [17:30:05]OFD Sender: No OFD packet to send [17:30:10]OFD Sender: No OFD packet to send [17:30:15]OFD Sender: No OFD packet to send [17:30:20]OFD Sender: No OFD packet to send [17:30:25]OFD Sender: No OFD packet to send [17:30:30]OFD Sender: No OFD packet to send [17:30:35]OFD Sender: No OFD packet to send [17:30:40]OFD Sender: No OFD packet to send [17:30:45]OFD Sender: No OFD packet to send [17:30:50]OFD Sender: No OFD packet to send [17:30:55]OFD Sender: No OFD packet to send [17:31:00]OFD Sender: No OFD packet to send [17:31:05]OFD Sender: No OFD packet to send [17:31:10]OFD Sender: No OFD packet to send [17:31:15]OFD Sender: No OFD packet to send [17:31:20]OFD Sender: No OFD packet to send [17:31:25]OFD Sender: No OFD packet to send [17:31:30]OFD Sender: No OFD packet to send [17:31:35]OFD Sender: No OFD packet to send [17:31:40]OFD Sender: No OFD packet to send [17:31:45]OFD Sender: No OFD packet to send [17:31:50]OFD Sender: No OFD packet to send [17:31:55]OFD Sender: No OFD packet to send [17:32:00]OFD Sender: No OFD packet to send [17:32:05]OFD Sender: No OFD packet to send [17:32:10]OFD Sender: No OFD packet to send [17:32:15]OFD Sender: No OFD packet to send [17:32:20]OFD Sender: No OFD packet to send [17:32:25]OFD Sender: No OFD packet to send [17:32:30]OFD Sender: No OFD packet to send [17:32:35]OFD Sender: No OFD packet to send [17:32:40]OFD Sender: No OFD packet to send [17:32:45]OFD Sender: No OFD packet to send [17:32:50]OFD Sender: No OFD packet to send [17:32:55]OFD Sender: No OFD packet to send [17:33:00]OFD Sender: No OFD packet to send [17:33:05]OFD Sender: No OFD packet to send [17:33:10]OFD Sender: No OFD packet to send [17:33:15]OFD Sender: No OFD packet to send [17:33:20]OFD Sender: No OFD packet to send [17:33:25]OFD Sender: No OFD packet to send [17:33:30]OFD Sender: No OFD packet to send [17:33:35]OFD Sender: No OFD packet to send [17:33:40]OFD Sender: No OFD packet to send [17:33:45]OFD Sender: No OFD packet to send [17:33:50]OFD Sender: No OFD packet to send [17:33:55]OFD Sender: No OFD packet to send [17:34:00]OFD Sender: No OFD packet to send [17:34:05]OFD Sender: No OFD packet to send [17:34:10]OFD Sender: No OFD packet to send [17:34:15]OFD Sender: No OFD packet to send [17:34:20]OFD Sender: No OFD packet to send [17:34:25]OFD Sender: No OFD packet to send [17:34:30]OFD Sender: No OFD packet to send [17:34:35]OFD Sender: No OFD packet to send [17:34:40]OFD Sender: No OFD packet to send [17:34:45]OFD Sender: No OFD packet to send [17:34:50]OFD Sender: No OFD packet to send [17:34:55]OFD Sender: No OFD packet to send [17:35:00]OFD Sender: No OFD packet to send [17:35:05]OFD Sender: No OFD packet to send [17:35:10]OFD Sender: No OFD packet to send [17:35:15]OFD Sender: No OFD packet to send [17:35:20]OFD Sender: No OFD packet to send [17:35:25]OFD Sender: No OFD packet to send [17:35:30]OFD Sender: No OFD packet to send [17:35:35]OFD Sender: No OFD packet to send [17:35:40]OFD Sender: No OFD packet to send [17:35:45]OFD Sender: No OFD packet to send [17:35:50]OFD Sender: No OFD packet to send [17:35:55]OFD Sender: No OFD packet to send [17:36:00]OFD Sender: No OFD packet to send [17:36:05]OFD Sender: No OFD packet to send [17:36:10]OFD Sender: No OFD packet to send [17:36:15]OFD Sender: No OFD packet to send [17:36:20]OFD Sender: No OFD packet to send [17:36:25]OFD Sender: No OFD packet to send [17:36:30]OFD Sender: No OFD packet to send [17:36:35]OFD Sender: No OFD packet to send [17:36:40]OFD Sender: No OFD packet to send [17:36:45]OFD Sender: No OFD packet to send [17:36:50]OFD Sender: No OFD packet to send [17:36:55]OFD Sender: No OFD packet to send [17:37:00]OFD Sender: No OFD packet to send [17:37:05]OFD Sender: No OFD packet to send [17:37:10]OFD Sender: No OFD packet to send [17:37:15]OFD Sender: No OFD packet to send [17:37:20]OFD Sender: No OFD packet to send [17:37:25]OFD Sender: No OFD packet to send [17:37:30]OFD Sender: No OFD packet to send [17:37:35]OFD Sender: No OFD packet to send [17:37:40]OFD Sender: No OFD packet to send [17:37:45]OFD Sender: No OFD packet to send [17:37:50]OFD Sender: No OFD packet to send [17:37:55]OFD Sender: No OFD packet to send [17:38:00]OFD Sender: No OFD packet to send [17:38:05]OFD Sender: No OFD packet to send [17:38:10]OFD Sender: No OFD packet to send [17:38:15]OFD Sender: No OFD packet to send [17:38:20]OFD Sender: No OFD packet to send [17:38:25]OFD Sender: No OFD packet to send [17:38:30]OFD Sender: No OFD packet to send [17:38:35]OFD Sender: No OFD packet to send [17:38:41]OFD Sender: No OFD packet to send [17:38:46]OFD Sender: No OFD packet to send [17:38:51]OFD Sender: No OFD packet to send [17:38:56]OFD Sender: No OFD packet to send [17:39:01]OFD Sender: No OFD packet to send [17:39:06]OFD Sender: No OFD packet to send [17:39:11]OFD Sender: No OFD packet to send [17:39:16]OFD Sender: No OFD packet to send [17:39:21]OFD Sender: No OFD packet to send [17:39:26]OFD Sender: No OFD packet to send [17:39:31]OFD Sender: No OFD packet to send [17:39:36]OFD Sender: No OFD packet to send [17:39:41]OFD Sender: No OFD packet to send [17:39:46]OFD Sender: No OFD packet to send [17:39:51]OFD Sender: No OFD packet to send [17:39:56]OFD Sender: No OFD packet to send [17:40:01]OFD Sender: No OFD packet to send [17:40:06]OFD Sender: No OFD packet to send [17:40:11]OFD Sender: No OFD packet to send [17:40:16]OFD Sender: No OFD packet to send [17:40:21]OFD Sender: No OFD packet to send [17:40:26]OFD Sender: No OFD packet to send [17:40:31]OFD Sender: No OFD packet to send [17:40:36]OFD Sender: No OFD packet to send [17:40:41]OFD Sender: No OFD packet to send [17:40:46]OFD Sender: No OFD packet to send [17:40:51]OFD Sender: No OFD packet to send [17:40:56]OFD Sender: No OFD packet to send [17:41:01]OFD Sender: No OFD packet to send [17:41:06]OFD Sender: No OFD packet to send [17:41:11]OFD Sender: No OFD packet to send [17:41:16]OFD Sender: No OFD packet to send [17:41:21]OFD Sender: No OFD packet to send [17:41:26]OFD Sender: No OFD packet to send [17:41:31]OFD Sender: No OFD packet to send [17:41:36]OFD Sender: No OFD packet to send [17:41:41]OFD Sender: No OFD packet to send [17:41:46]OFD Sender: No OFD packet to send [17:41:51]OFD Sender: No OFD packet to send [17:41:56]OFD Sender: No OFD packet to send [17:42:01]OFD Sender: No OFD packet to send [17:42:06]OFD Sender: No OFD packet to send [17:42:11]OFD Sender: No OFD packet to send [17:42:16]OFD Sender: No OFD packet to send [17:42:21]OFD Sender: No OFD packet to send [17:42:26]OFD Sender: No OFD packet to send [17:42:31]OFD Sender: No OFD packet to send [17:42:36]OFD Sender: No OFD packet to send [17:42:41]OFD Sender: No OFD packet to send [17:42:46]OFD Sender: No OFD packet to send [17:42:51]OFD Sender: No OFD packet to send [17:42:56]OFD Sender: No OFD packet to send [17:43:01]OFD Sender: No OFD packet to send [17:43:06]OFD Sender: No OFD packet to send [17:43:11]OFD Sender: No OFD packet to send [17:43:16]OFD Sender: No OFD packet to send [17:43:21]OFD Sender: No OFD packet to send [17:43:26]OFD Sender: No OFD packet to send [17:43:31]OFD Sender: No OFD packet to send [17:43:36]OFD Sender: No OFD packet to send [17:43:41]OFD Sender: No OFD packet to send [17:43:46]OFD Sender: No OFD packet to send [17:43:51]OFD Sender: No OFD packet to send [17:43:56]OFD Sender: No OFD packet to send [17:44:01]OFD Sender: No OFD packet to send [17:44:06]OFD Sender: No OFD packet to send [17:44:11]OFD Sender: No OFD packet to send [17:44:16]OFD Sender: No OFD packet to send [17:44:21]OFD Sender: No OFD packet to send [17:44:25]accept exits with 9 [17:44:25]New connection [17:44:25]New thread 3066711396 created [17:44:25]Thread 3066854756 joined [17:44:25]Waiting for new connection... [17:44:25] Sock 9.Parse request [17:44:25]Sock 9.Check first char [17:44:25]Sock 9.First char is OK [17:44:25]request: POST /json_proto HTTP/1.0 [17:44:25]Method: POST [17:44:25]URL: /json_proto [17:44:25]Method is POST - this is cgi request [17:44:25]url: /json_proto [17:44:25]query_string will be loaded in cgi processing [17:44:25]execute_cgi json_proto POST (null) [17:44:25]execute_cgi path=json_proto method=POST [17:44:25]POST find Content-Length [17:44:25]Host: 172.17.56.4:8080 [17:44:25]Content-Length: 677 [17:44:25]Content-Type: application/json [17:44:25] [17:44:25]POST finish read [17:44:25]Found Content-Length = 677 [17:44:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459495", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:44:25]execute_script... [17:44: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)459495", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:44:25]POST & json_proto [17:44:25]process_json_proto [17:44:25]json parsed OK: [17:44:25]protocol is kg_v1.0 [17:44:25]action value=close_receipt [17:44:25]process_action close_receipt [17:44:25]cmd_close_receipt [17:44:25]MH_GetDate [17:44:25]Write to MH i2c: F0 00 00 10 2E 2D [17:44:25]Write i2c OK [17:44:25]MH_I2C_Read... [17:44:25]Read from MH i2c: F0 [17:44:25]MH_I2C_Read... [17:44:25]Read from MH i2c: F0 09 00 [17:44:25]MH_I2C_Read... [17:44:25]Read from MH i2c: F0 09 00 10 2E 00 FB 5F 95 66 C9 DC B2 64 46 [17:44:25]GetLastDocTimeStamp 1721064524 [17:44:25]current date 1721065467 [17:44:25]FM_GetShiftState [17:44:25]SAM_PROTO_GetShiftState [17:44:25]wFMCommunicate request_size=4 [17:44:25]MH_SAM_APDU [17:44:25]CAPDU: 80 13 01 00 [17:44:25]Write to MH i2c: E2 08 00 11 2E 80 13 01 00 00 00 00 00 BC [17:44:25]Write i2c OK [17:44:25]MH_I2C_Read... [17:44:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:44:25]Read from MH i2c: E2 [17:44:25]MH_I2C_Read... [17:44:25]Read from MH i2c: E2 0E 00 [17:44:25]MH_I2C_Read... [17:44:25]Read from MH i2c: E2 0E 00 11 2E 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 95 [17:44:25]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [17:44:25]wFMCommunicate OK [17:44:25]SAM_PROTO_GetShiftState done [17:44:25]FM_GetShiftState done [17:44:25]opened in 1721003876 [17:44:25]opened+sec_in_day 1721090276 [17:44:25]quantity*price = 20003 [17:44:25]sum+1 = 20004 [17:44:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 256 15.07.2024 17:44 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165383 ФПД: 220802802284783 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T174427&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165383&fm=220802802284783&tin=02508201610067®Number=0000000000090829&sum=20000 [17:44:26]StoreToDocumentArchive [17:44:26]shift 448 fd 165383 [17:44:26]save to /storage/0448/doc_00165383 [17:44:26]save last doc name /storage/0448/doc_00165383 to /storage/kkm_last_doc_name [17:44:26]save OK [17:44:26]Clear old archive folders... [17:44:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:44:26]tlvbuf is 01880F10 [17:44:26]SAM_PROTO_ClearQueue [17:44:26]wFMCommunicate request_size=4 [17:44:26]MH_SAM_APDU [17:44:26]CAPDU: 80 09 00 00 [17:44:26]Write to MH i2c: E2 08 00 1E 2E 80 09 00 00 00 00 00 00 BE [17:44:26]Write i2c OK [17:44:26]MH_I2C_Read... [17:44:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:44:26]Read from MH i2c: E2 [17:44:26]MH_I2C_Read... [17:44:26]Read from MH i2c: E2 03 00 [17:44:26]MH_I2C_Read... [17:44:26]Read from MH i2c: E2 03 00 1E 2E 00 90 00 C0 [17:44:26]RAPDU: 90 00 [17:44:26]wFMCommunicate OK [17:44:26]SAM_PROTO_ClearQueue done [17:44:26]KKMCreateOFDPacket [17:44:26]OFDProtocolAddRootSTLVToBuf [17:44:26]FM_MakeSignedData [17:44:26]FM_MakeSignedData [17:44:26]SAM_PROTO_SignData [17:44:26]wFMCommunicate request_size=4 [17:44:26]MH_SAM_APDU [17:44:26]CAPDU: 80 0D 01 02 [17:44:26]Write to MH i2c: E2 08 00 1F 2E 80 0D 01 02 00 00 00 00 C6 [17:44:26]Write i2c OK [17:44:26]MH_I2C_Read... [17:44:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:44:26]Read from MH i2c: E2 [17:44:26]MH_I2C_Read... [17:44:26]Read from MH i2c: E2 03 00 [17:44:26]MH_I2C_Read... [17:44:26]Read from MH i2c: E2 03 00 1F 2E 00 90 00 C1 [17:44:26]RAPDU: 90 00 [17:44:26]wFMCommunicate OK [17:44:26]wFMCommunicate request_size=255 [17:44:26]MH_SAM_APDU [17:44: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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 FB 5F 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 07 86 02 00 35 04 06 00 C8 [17:44:26]Write to MH i2c: E2 02 01 20 2E 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 FB 5F 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 07 86 02 00 35 04 06 00 C8 00 00 4E [17:44:26]Write i2c OK [17:44:26]MH_I2C_Read... [17:44:26]OFD Sender: No OFD packet to send [17:44:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:44:26]Read from MH i2c: E2 [17:44:26]MH_I2C_Read... [17:44:26]Read from MH i2c: E2 03 00 [17:44:26]MH_I2C_Read... [17:44:26]Read from MH i2c: E2 03 00 20 2E 00 90 00 C2 [17:44:26]RAPDU: 90 00 [17:44:26]wFMCommunicate OK [17:44:26]wFMCommunicate request_size=10 [17:44:26]MH_SAM_APDU [17:44:26]CAPDU: 80 0D 02 02 05 D1 A8 98 78 EF [17:44:26]Write to MH i2c: E2 0D 00 21 2E 80 0D 02 02 05 00 D1 A8 98 78 EF 00 00 4B [17:44:26]Write i2c OK [17:44:26]MH_I2C_Read... [17:44:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:44:26]Read from MH i2c: E2 [17:44:26]MH_I2C_Read... [17:44:26]Read from MH i2c: E2 03 00 [17:44:26]MH_I2C_Read... [17:44:26]Read from MH i2c: E2 03 00 21 2E 00 90 00 C3 [17:44:26]RAPDU: 90 00 [17:44:26]wFMCommunicate OK [17:44:26]wFMCommunicate request_size=4 [17:44:26]MH_SAM_APDU [17:44:26]CAPDU: 80 0D 03 02 [17:44:26]Write to MH i2c: E2 08 00 22 2E 80 0D 03 02 00 00 00 00 CB [17:44:26]Write i2c OK [17:44:26]MH_I2C_Read... [17:44:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:44:26]Read from MH i2c: E2 [17:44:26]MH_I2C_Read... [17:44:26]Read from MH i2c: E2 0B 00 [17:44:26]MH_I2C_Read... [17:44:26]Read from MH i2c: E2 0B 00 22 2E 00 D9 D0 6A 1F 55 6F C6 31 90 00 B9 [17:44:26]RAPDU: D9 D0 6A 1F 55 6F C6 31 90 00 [17:44:26]wFMCommunicate OK [17:44:26]SAM_PROTO_SignData done [17:44:26]FM_MakeSignedData done [17:44:26]CreateOFDProtocolMessage [17:44:26]wFMCommunicate request_size=4 [17:44:26]MH_SAM_APDU [17:44:26]CAPDU: 80 11 00 00 [17:44:26]Write to MH i2c: E2 08 00 23 2E 80 11 00 00 00 00 00 00 CB [17:44:26]Write i2c OK [17:44:26]MH_I2C_Read... [17:44:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:44:26]Read from MH i2c: E2 [17:44:26]MH_I2C_Read... [17:44:26]Read from MH i2c: E2 17 00 [17:44:26]MH_I2C_Read... [17:44:26]Read from MH i2c: E2 17 00 23 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 21 [17:44:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:44:26]wFMCommunicate OK [17:44:26]CreateOFDProtocolMessage done [17:44:26]OFDSenderStorePacket 165383 [17:44:26]StoreOFDPacket docnum=165383 [17:44:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 AB F4 07 01 15 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 FB 5F 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 07 86 02 00 35 04 06 00 C8 D1 A8 98 78 EF D9 D0 6A 1F 55 6F C6 31 [17:44:26]CheckFolder [17:44:26]dirname=/storage/ofd_packets [17:44:26]CheckFolder done [17:44:26]ProducePacketName [17:44:26]name=ofd_packets/00165383 [17:44:26]NVStorageSaveData ofd_packets/00165383 [17:44:26]File name is /storage/ofd_packets/00165383 [17:44:26]Write 301 bytes [17:44:26]NVStorageSaveData done [17:44:26]OFDSenderStorePacket done [17:44:26]KKMCreateOFDPacket done [17:44:26]NVStorageSaveData kkm_last_timestamp [17:44:26]File name is /storage/kkm_last_timestamp [17:44:26]Write 4 bytes [17:44:26]NVStorageSaveData done [17:44:26]ExternCall_PrintAddStr [17:44:26]wPrintStart [17:44:26]Write to MH i2c: 01 00 00 24 2E 52 [17:44:26]Write i2c OK [17:44:26]MH_I2C_Read... [17:44:26]Read from MH i2c: 01 [17:44:26]MH_I2C_Read... [17:44:26]Read from MH i2c: 01 07 00 [17:44:26]MH_I2C_Read... [17:44:26]Read from MH i2c: 01 07 00 24 2E 00 00 00 00 00 FF 0F 67 [17:44:26]RasterBufferAndPrint [17:44:26]line Счет N : (1)459495 [17:44:26]line ИНН: 02508201610067 [17:44:26]line Контрольно-Кассовый Чек [17:44:26]line ПРОДАЖА [17:44:26]line ТРК (МРК, ГНК) : 22 [17:44:26]line Товар: 2710124130 [17:44:26]line Аи-92-К-5 [17:44:26]line 3.040 * 65.80 [17:44:26]line = 200.03 [17:44:26]line НДС 12% НСП 1% [17:44:26]line > о реализуемом товаре [17:44:26]line ОКРУГЛЕНИЕ: -0.03 [17:44:26]line ИТОГО: 200.00 [17:44:26]line Внесено: 200.00 [17:44:26]line СДАЧА: 0.00 [17:44:26]line НСП 1% : 1.77 [17:44:26]line НДС 12% : 21.24 [17:44:26]line Наличными: 200.00 [17:44:26]line Безнал.: 0.00 [17:44:26]line Место: АЗС № 72 "Партнер Нефть" [17:44:26]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:44:26]line СНО: Общий режим [17:44:26]line Чек 256 15.07.2024 17:44 [17:44:26]line Смена: 448 ФФД: 1.0 [17:44:26]line ЗНМ: 0300000160 [17:44:26]line РНМ: 0000000000090829 [17:44:26]line Версия ККМ: 001 [17:44:26]line ФМ: 0000000000874718 [17:44:26]line ФД: 165383 [17:44:26]line ФПД: 220802802284783 [17:44:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T174427&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165383&fm=220802802284783&tin=02508201610067®Number=0000000000090829&sum=20000 [17:44:27]OFD Sender: Processing packet 165383 [packets to send 106, broken 105] [17:44:27]ProducePacketName [17:44:27]name=ofd_packets/00165383 [17:44:27]OFD Sender: To server: pG, [17:44:27]CommunicateWithHost lk.salyk.kg:30040 [17:44:27]ConnectInit lk.salyk.kg [17:44:27]written 0, free lines is 4095 [17:44:27]Connected sock=10 [17:44: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 37 31 38 0F 01 00 00 AB F4 07 01 15 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 FB 5F 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 07 86 02 00 35 04 06 00 C8 D1 A8 98 78 EF D9 D0 6A 1F 55 6F C6 31 [17:44:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 5C BB 47 00 BB B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 07 86 02 00 F4 03 04 00 84 06 95 66 B6 04 01 00 00 B4 38 BD DF 76 C2 24 8E [17:44:27]CommunicateWithHost err = 0 [17:44:27]CheckOFDResponse [17:44:27]1017 (14) - 77093643461234 [17:44:27]1041 (16) - 0000000000874718 [17:44:27]1040 (4) - 165383 [17:44:27]1012 (4) - 15.07.2024 11:22 [17:44:27]1206 (1) - 0 [17:44:27]OFD Sender: Remove packet 165383 [17:44:27]ProducePacketName [17:44:27]name=ofd_packets/00165383 [17:44:27]NVStorageDeleteData [17:44:27]Write to MH i2c: 01 00 00 4E 2E 7C [17:44:27]Write i2c OK [17:44:27]MH_I2C_Read... [17:44:27]Read from MH i2c: 01 [17:44:27]MH_I2C_Read... [17:44:27]Read from MH i2c: 01 07 00 [17:44:27]MH_I2C_Read... [17:44:27]Read from MH i2c: 01 07 00 4E 2E 00 00 00 00 00 04 0D 94 [17:44:27]RasterBufferAndPrint [17:44:27]line [17:44:27]line [17:44:27]line [17:44:27]line [17:44:27]line [17:44:27]written 0, free lines is 3338 [17:44:27]MH_Cut [17:44:27]Write to MH i2c: D1 01 00 55 2E 01 55 [17:44:27]Write i2c OK [17:44:27]MH_I2C_Read... [17:44:27]Read from MH i2c: D1 [17:44:27]MH_I2C_Read... [17:44:27]Read from MH i2c: D1 01 00 [17:44:27]MH_I2C_Read... [17:44:27]Read from MH i2c: D1 01 00 55 2E 00 54 [17:44:27]Write to MH i2c: 01 00 00 56 2E 84 [17:44:27]Write i2c OK [17:44:27]MH_I2C_Read... [17:44:27]OFD Sender: No OFD packet to send [17:44:28]*** Cut start [17:44:28]*** Partial cut [17:44:28]*** CUTSNS_PIN = 1 [17:44:28]*** CUTSNS_PIN = 0 [17:44:28]*** Brake cut motor [17:44:28]Read from MH i2c: 01 [17:44:28]MH_I2C_Read... [17:44:28]*** Stop cut motor [17:44:28]*** Cut end [17:44:28]Read from MH i2c: 01 07 00 [17:44:28]MH_I2C_Read... [17:44:28]Read from MH i2c: 01 07 00 56 2E 00 00 00 00 00 FF 0F 99 [17:44:28]process_action close_receipt done [17:44:28]requested_data is exist [17:44:28]produce_requested_data [17:44:28]requested_item fm.sn is exist - process it [17:44:28]wFMCommunicate request_size=4 [17:44:28]MH_SAM_APDU [17:44:28]CAPDU: 80 11 00 00 [17:44:28]Write to MH i2c: E2 08 00 57 2E 80 11 00 00 00 00 00 00 FF [17:44:28]Write i2c OK [17:44:28]MH_I2C_Read... [17:44:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:44:28]Read from MH i2c: E2 [17:44:28]MH_I2C_Read... [17:44:28]Read from MH i2c: E2 17 00 [17:44:28]MH_I2C_Read... [17:44:28]Read from MH i2c: E2 17 00 57 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 55 [17:44:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:44:28]wFMCommunicate OK [17:44:28]requested_item fd.num is exist - process it [17:44:28]SAM_PROTO_GetFieldsCounters [17:44:28]wFMCommunicate request_size=4 [17:44:28]MH_SAM_APDU [17:44:28]CAPDU: 80 13 00 00 [17:44:28]Write to MH i2c: E2 08 00 58 2E 80 13 00 00 00 00 00 00 02 [17:44:28]Write i2c OK [17:44:28]MH_I2C_Read... [17:44:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:44:29]Read from MH i2c: E2 [17:44:29]MH_I2C_Read... [17:44:29]Read from MH i2c: E2 62 00 [17:44:29]MH_I2C_Read... [17:44:29]Read from MH i2c: E2 62 00 58 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 07 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 7C [17:44:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 07 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:44:29]wFMCommunicate OK [17:44:29]SAM_PROTO_GetFieldsCounters done [17:44:29]requested_item shift.num is exist - process it [17:44:29]requested_item shift.opened is exist - process it [17:44:29]req_shift_opened [17:44:29]FM_GetShiftState [17:44:29]SAM_PROTO_GetShiftState [17:44:29]wFMCommunicate request_size=4 [17:44:29]MH_SAM_APDU [17:44:29]CAPDU: 80 13 01 00 [17:44:29]Write to MH i2c: E2 08 00 59 2E 80 13 01 00 00 00 00 00 04 [17:44:29]Write i2c OK [17:44:29]MH_I2C_Read... [17:44:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:44:29]Read from MH i2c: E2 [17:44:29]MH_I2C_Read... [17:44:29]Read from MH i2c: E2 0E 00 [17:44:29]MH_I2C_Read... [17:44:29]Read from MH i2c: E2 0E 00 59 2E 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 DD [17:44:29]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [17:44:29]wFMCommunicate OK [17:44:29]SAM_PROTO_GetShiftState done [17:44:29]FM_GetShiftState done [17:44:29]req_shift_opened done [17:44:29]requested_item shift.open_date is exist - process it [17:44:29]req_shift_open_date [17:44:29]req_shift_open_date done [17:44:29]produce_requested_data done [17:44:29]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165383,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [17:44:29]process_action_free close_receipt [17:44:29]json_value_free [17:44:29]json_value_free done [17:44:29]process_json_proto returns [17:44:29]Send response to host [17:44:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165383,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [17:44:29]free response buf [17:44:29]execute_script done [17:44:29]execute_script returns [17:44:29]free content buf [17:44:29]Sock 9.Close socket [17:44:29]Sock 9.Thread stoped [17:44:32]OFD Sender: No OFD packet to send [17:44:37]OFD Sender: No OFD packet to send [17:44:42]OFD Sender: No OFD packet to send [17:44:47]OFD Sender: No OFD packet to send [17:44:53]OFD Sender: No OFD packet to send [17:44:58]OFD Sender: No OFD packet to send [17:45:03]OFD Sender: No OFD packet to send [17:45:08]OFD Sender: No OFD packet to send [17:45:13]OFD Sender: No OFD packet to send [17:45:18]OFD Sender: No OFD packet to send [17:45:23]OFD Sender: No OFD packet to send [17:45:28]OFD Sender: No OFD packet to send [17:45:33]OFD Sender: No OFD packet to send [17:45:38]OFD Sender: No OFD packet to send [17:45:43]OFD Sender: No OFD packet to send [17:45:48]OFD Sender: No OFD packet to send [17:45:53]OFD Sender: No OFD packet to send [17:45:58]OFD Sender: No OFD packet to send [17:46:03]OFD Sender: No OFD packet to send [17:46:08]OFD Sender: No OFD packet to send [17:46:13]OFD Sender: No OFD packet to send [17:46:18]OFD Sender: No OFD packet to send [17:46:23]OFD Sender: No OFD packet to send [17:46:28]OFD Sender: No OFD packet to send [17:46:33]OFD Sender: No OFD packet to send [17:46:38]OFD Sender: No OFD packet to send [17:46:43]OFD Sender: No OFD packet to send [17:46:48]OFD Sender: No OFD packet to send [17:46:53]OFD Sender: No OFD packet to send [17:46:58]OFD Sender: No OFD packet to send [17:47:03]OFD Sender: No OFD packet to send [17:47:08]OFD Sender: No OFD packet to send [17:47:13]OFD Sender: No OFD packet to send [17:47:18]OFD Sender: No OFD packet to send [17:47:23]OFD Sender: No OFD packet to send [17:47:28]OFD Sender: No OFD packet to send [17:47:33]OFD Sender: No OFD packet to send [17:47:38]OFD Sender: No OFD packet to send [17:47:43]OFD Sender: No OFD packet to send [17:47:48]OFD Sender: No OFD packet to send [17:47:51]accept exits with 8 [17:47:51]New connection [17:47:51]New thread 3066854756 created [17:47:51]Thread 3066711396 joined [17:47:51]Waiting for new connection... [17:47:51] Sock 8.Parse request [17:47:51]Sock 8.Check first char [17:47:51]Sock 8.First char is OK [17:47:51]request: POST /json_proto HTTP/1.0 [17:47:51]Method: POST [17:47:51]URL: /json_proto [17:47:51]Method is POST - this is cgi request [17:47:51]url: /json_proto [17:47:51]query_string will be loaded in cgi processing [17:47:51]execute_cgi json_proto POST (null) [17:47:51]execute_cgi path=json_proto method=POST [17:47:51]POST find Content-Length [17:47:51]Host: 172.17.56.4:8080 [17:47:51]Content-Length: 677 [17:47:51]Content-Type: application/json [17:47:51] [17:47:51]POST finish read [17:47:51]Found Content-Length = 677 [17:47:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459496", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.910, "sum" : 191.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 191.00, "total" : 191.00, "payments": [ { "type": 0, "sum" : 191.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:51]execute_script... [17:47: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)459496", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.910, "sum" : 191.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 191.00, "total" : 191.00, "payments": [ { "type": 0, "sum" : 191.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:51]POST & json_proto [17:47:51]process_json_proto [17:47:51]json parsed OK: [17:47:51]protocol is kg_v1.0 [17:47:51]action value=close_receipt [17:47:51]process_action close_receipt [17:47:51]cmd_close_receipt [17:47:51]MH_GetDate [17:47:51]Write to MH i2c: F0 00 00 5A 2E 77 [17:47:51]Write i2c OK [17:47:51]MH_I2C_Read... [17:47:51]Read from MH i2c: F0 [17:47:51]MH_I2C_Read... [17:47:51]Read from MH i2c: F0 09 00 [17:47:51]MH_I2C_Read... [17:47:51]Read from MH i2c: F0 09 00 5A 2E 00 C9 60 95 66 C9 DC B2 64 5F [17:47:51]GetLastDocTimeStamp 1721065467 [17:47:51]current date 1721065673 [17:47:51]FM_GetShiftState [17:47:51]SAM_PROTO_GetShiftState [17:47:51]wFMCommunicate request_size=4 [17:47:51]MH_SAM_APDU [17:47:51]CAPDU: 80 13 01 00 [17:47:51]Write to MH i2c: E2 08 00 5B 2E 80 13 01 00 00 00 00 00 06 [17:47:51]Write i2c OK [17:47:51]MH_I2C_Read... [17:47:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:51]Read from MH i2c: E2 [17:47:51]MH_I2C_Read... [17:47:51]Read from MH i2c: E2 0E 00 [17:47:51]MH_I2C_Read... [17:47:51]Read from MH i2c: E2 0E 00 5B 2E 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 DF [17:47:51]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [17:47:51]wFMCommunicate OK [17:47:51]SAM_PROTO_GetShiftState done [17:47:51]FM_GetShiftState done [17:47:51]opened in 1721003876 [17:47:51]opened+sec_in_day 1721090276 [17:47:51]quantity*price = 19147 [17:47:51]sum+1 = 19149 [17:47:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 191.00 Внесено: 191.00 СДАЧА: 0.00 НСП 1% : 1.69 НДС 12% : 20.33 Наличными: 191.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 257 15.07.2024 17:47 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165384 ФПД: 129580542786106 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T174753&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165384&fm=129580542786106&tin=02508201610067®Number=0000000000090829&sum=19100 [17:47:52]StoreToDocumentArchive [17:47:52]shift 448 fd 165384 [17:47:52]save to /storage/0448/doc_00165384 [17:47:52]save last doc name /storage/0448/doc_00165384 to /storage/kkm_last_doc_name [17:47:52]save OK [17:47:52]Clear old archive folders... [17:47:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:47:52]tlvbuf is 0181A8E0 [17:47:52]SAM_PROTO_ClearQueue [17:47:52]wFMCommunicate request_size=4 [17:47:52]MH_SAM_APDU [17:47:52]CAPDU: 80 09 00 00 [17:47:52]Write to MH i2c: E2 08 00 68 2E 80 09 00 00 00 00 00 00 08 [17:47:52]Write i2c OK [17:47:52]MH_I2C_Read... [17:47:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:47:52]Read from MH i2c: E2 [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: E2 03 00 [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: E2 03 00 68 2E 00 90 00 0A [17:47:52]RAPDU: 90 00 [17:47:52]wFMCommunicate OK [17:47:52]SAM_PROTO_ClearQueue done [17:47:52]KKMCreateOFDPacket [17:47:52]OFDProtocolAddRootSTLVToBuf [17:47:52]FM_MakeSignedData [17:47:52]FM_MakeSignedData [17:47:52]SAM_PROTO_SignData [17:47:52]wFMCommunicate request_size=4 [17:47:52]MH_SAM_APDU [17:47:52]CAPDU: 80 0D 01 02 [17:47:52]Write to MH i2c: E2 08 00 69 2E 80 0D 01 02 00 00 00 00 10 [17:47:52]Write i2c OK [17:47:52]MH_I2C_Read... [17:47:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:47:52]Read from MH i2c: E2 [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: E2 03 00 [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: E2 03 00 69 2E 00 90 00 0B [17:47:52]RAPDU: 90 00 [17:47:52]wFMCommunicate OK [17:47:52]wFMCommunicate request_size=255 [17:47:52]MH_SAM_APDU [17:47:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5E 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 CC 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 07 00 00 00 00 07 04 06 00 9C 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 C9 60 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 08 86 02 00 35 04 06 00 75 [17:47:52]Write to MH i2c: E2 02 01 6A 2E 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 5E 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 CC 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 07 00 00 00 00 07 04 06 00 9C 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 C9 60 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 08 86 02 00 35 04 06 00 75 00 00 C5 [17:47:52]Write i2c OK [17:47:52]MH_I2C_Read... [17:47:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:52]Read from MH i2c: E2 [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: E2 03 00 [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: E2 03 00 6A 2E 00 90 00 0C [17:47:52]RAPDU: 90 00 [17:47:52]wFMCommunicate OK [17:47:52]wFMCommunicate request_size=10 [17:47:52]MH_SAM_APDU [17:47:52]CAPDU: 80 0D 02 02 05 DA 52 38 FA 3A [17:47:52]Write to MH i2c: E2 0D 00 6B 2E 80 0D 02 02 05 00 DA 52 38 FA 3A 00 00 B5 [17:47:52]Write i2c OK [17:47:52]MH_I2C_Read... [17:47:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:52]Read from MH i2c: E2 [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: E2 03 00 [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: E2 03 00 6B 2E 00 90 00 0D [17:47:52]RAPDU: 90 00 [17:47:52]wFMCommunicate OK [17:47:52]wFMCommunicate request_size=4 [17:47:52]MH_SAM_APDU [17:47:52]CAPDU: 80 0D 03 02 [17:47:52]Write to MH i2c: E2 08 00 6C 2E 80 0D 03 02 00 00 00 00 15 [17:47:52]Write i2c OK [17:47:52]MH_I2C_Read... [17:47:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:47:52]Read from MH i2c: E2 [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: E2 0B 00 [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: E2 0B 00 6C 2E 00 83 E4 D7 52 F4 7F 70 3E 90 00 C7 [17:47:52]RAPDU: 83 E4 D7 52 F4 7F 70 3E 90 00 [17:47:52]wFMCommunicate OK [17:47:52]SAM_PROTO_SignData done [17:47:52]FM_MakeSignedData done [17:47:52]CreateOFDProtocolMessage [17:47:52]wFMCommunicate request_size=4 [17:47:52]MH_SAM_APDU [17:47:52]CAPDU: 80 11 00 00 [17:47:52]Write to MH i2c: E2 08 00 6D 2E 80 11 00 00 00 00 00 00 15 [17:47:52]Write i2c OK [17:47:52]MH_I2C_Read... [17:47:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:53]Read from MH i2c: E2 [17:47:53]MH_I2C_Read... [17:47:53]Read from MH i2c: E2 17 00 [17:47:53]MH_I2C_Read... [17:47:53]Read from MH i2c: E2 17 00 6D 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6B [17:47:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:47:53]wFMCommunicate OK [17:47:53]CreateOFDProtocolMessage done [17:47:53]OFDSenderStorePacket 165384 [17:47:53]StoreOFDPacket docnum=165384 [17:47:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 DA BF 07 01 3F 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 5E 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 CC 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 07 00 00 00 00 07 04 06 00 9C 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 C9 60 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 08 86 02 00 35 04 06 00 75 DA 52 38 FA 3A 83 E4 D7 52 F4 7F 70 3E [17:47:53]CheckFolder [17:47:53]dirname=/storage/ofd_packets [17:47:53]CheckFolder done [17:47:53]ProducePacketName [17:47:53]name=ofd_packets/00165384 [17:47:53]NVStorageSaveData ofd_packets/00165384 [17:47:53]File name is /storage/ofd_packets/00165384 [17:47:53]Write 301 bytes [17:47:53]NVStorageSaveData done [17:47:53]OFDSenderStorePacket done [17:47:53]KKMCreateOFDPacket done [17:47:53]NVStorageSaveData kkm_last_timestamp [17:47:53]File name is /storage/kkm_last_timestamp [17:47:53]Write 4 bytes [17:47:53]NVStorageSaveData done [17:47:53]ExternCall_PrintAddStr [17:47:53]wPrintStart [17:47:53]Write to MH i2c: 01 00 00 6E 2E 9C [17:47:53]Write i2c OK [17:47:53]MH_I2C_Read... [17:47:53]Read from MH i2c: 01 [17:47:53]MH_I2C_Read... [17:47:53]Read from MH i2c: 01 07 00 [17:47:53]MH_I2C_Read... [17:47:53]Read from MH i2c: 01 07 00 6E 2E 00 00 00 00 00 FF 0F B1 [17:47:53]RasterBufferAndPrint [17:47:53]line Счет N : (1)459496 [17:47:53]line ИНН: 02508201610067 [17:47:53]line Контрольно-Кассовый Чек [17:47:53]line ПРОДАЖА [17:47:53]line ТРК (МРК, ГНК) : 22 [17:47:53]line Товар: 2710124130 [17:47:53]line Аи-92-К-5 [17:47:53]line 2.910 * 65.80 [17:47:53]line = 191.48 [17:47:53]line НДС 12% НСП 1% [17:47:53]line > о реализуемом товаре [17:47:53]line ОКРУГЛЕНИЕ: -0.48 [17:47:53]line ИТОГО: 191.00 [17:47:53]line Внесено: 191.00 [17:47:53]line СДАЧА: 0.00 [17:47:53]line НСП 1% : 1.69 [17:47:53]line НДС 12% : 20.33 [17:47:53]line Наличными: 191.00 [17:47:53]line Безнал.: 0.00 [17:47:53]line Место: АЗС № 72 "Партнер Нефть" [17:47:53]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:47:53]line СНО: Общий режим [17:47:53]line Чек 257 15.07.2024 17:47 [17:47:53]line Смена: 448 ФФД: 1.0 [17:47:53]line ЗНМ: 0300000160 [17:47:53]line РНМ: 0000000000090829 [17:47:53]line Версия ККМ: 001 [17:47:53]line ФМ: 0000000000874718 [17:47:53]line ФД: 165384 [17:47:53]line ФПД: 129580542786106 [17:47:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T174753&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165384&fm=129580542786106&tin=02508201610067®Number=0000000000090829&sum=19100 [17:47:53]written 0, free lines is 4095 [17:47:53]OFD Sender: Processing packet 165384 [packets to send 106, broken 105] [17:47:53]ProducePacketName [17:47:53]name=ofd_packets/00165384 [17:47:53]OFD Sender: To server: pG, [17:47:53]CommunicateWithHost lk.salyk.kg:30040 [17:47:53]ConnectInit lk.salyk.kg [17:47:53]Connected sock=10 [17:47: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 37 31 38 0F 01 00 00 DA BF 07 01 3F 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 5E 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 CC 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 07 00 00 00 00 07 04 06 00 9C 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 C9 60 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 08 86 02 00 35 04 06 00 75 DA 52 38 FA 3A 83 E4 D7 52 F4 7F 70 3E [17:47:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 0C 0A 47 00 47 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 37 31 38 10 04 04 00 08 86 02 00 F4 03 04 00 53 07 95 66 B6 04 01 00 00 0B 23 81 86 46 EF 9D 9A [17:47:53]CommunicateWithHost err = 0 [17:47:53]CheckOFDResponse [17:47:53]1017 (14) - 77093643461234 [17:47:53]1041 (16) - 0000000000874718 [17:47:53]1040 (4) - 165384 [17:47:53]1012 (4) - 15.07.2024 11:26 [17:47:53]1206 (1) - 0 [17:47:53]OFD Sender: Remove packet 165384 [17:47:53]ProducePacketName [17:47:53]name=ofd_packets/00165384 [17:47:53]NVStorageDeleteData [17:47:53]Write to MH i2c: 01 00 00 98 2E C6 [17:47:53]Write i2c OK [17:47:53]MH_I2C_Read... [17:47:53]Read from MH i2c: 01 [17:47:53]MH_I2C_Read... [17:47:53]Read from MH i2c: 01 07 00 [17:47:53]MH_I2C_Read... [17:47:53]Read from MH i2c: 01 07 00 98 2E 00 00 00 00 00 F7 0C D0 [17:47:53]RasterBufferAndPrint [17:47:53]line [17:47:53]line [17:47:53]line [17:47:53]line [17:47:53]line [17:47:53]written 0, free lines is 3323 [17:47:53]MH_Cut [17:47:53]Write to MH i2c: D1 01 00 9F 2E 01 9F [17:47:53]Write i2c OK [17:47:53]MH_I2C_Read... [17:47:53]Read from MH i2c: D1 [17:47:53]MH_I2C_Read... [17:47:53]Read from MH i2c: D1 01 00 [17:47:53]MH_I2C_Read... [17:47:53]Read from MH i2c: D1 01 00 9F 2E 00 9E [17:47:53]Write to MH i2c: 01 00 00 A0 2E CE [17:47:53]Write i2c OK [17:47:53]MH_I2C_Read... [17:47:54]OFD Sender: No OFD packet to send [17:47:54]*** Cut start [17:47:54]*** Partial cut [17:47:54]*** CUTSNS_PIN = 1 [17:47:54]*** CUTSNS_PIN = 0 [17:47:54]*** Brake cut motor [17:47:55]Read from MH i2c: 01 [17:47:55]MH_I2C_Read... [17:47:55]*** Stop cut motor [17:47:55]*** Cut end [17:47:55]Read from MH i2c: 01 07 00 [17:47:55]MH_I2C_Read... [17:47:55]Read from MH i2c: 01 07 00 A0 2E 00 00 00 00 00 FF 0F E3 [17:47:55]process_action close_receipt done [17:47:55]requested_data is exist [17:47:55]produce_requested_data [17:47:55]requested_item fm.sn is exist - process it [17:47:55]wFMCommunicate request_size=4 [17:47:55]MH_SAM_APDU [17:47:55]CAPDU: 80 11 00 00 [17:47:55]Write to MH i2c: E2 08 00 A1 2E 80 11 00 00 00 00 00 00 49 [17:47:55]Write i2c OK [17:47:55]MH_I2C_Read... [17:47:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:55]Read from MH i2c: E2 [17:47:55]MH_I2C_Read... [17:47:55]Read from MH i2c: E2 17 00 [17:47:55]MH_I2C_Read... [17:47:55]Read from MH i2c: E2 17 00 A1 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 9F [17:47:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:47:55]wFMCommunicate OK [17:47:55]requested_item fd.num is exist - process it [17:47:55]SAM_PROTO_GetFieldsCounters [17:47:55]wFMCommunicate request_size=4 [17:47:55]MH_SAM_APDU [17:47:55]CAPDU: 80 13 00 00 [17:47:55]Write to MH i2c: E2 08 00 A2 2E 80 13 00 00 00 00 00 00 4C [17:47:55]Write i2c OK [17:47:55]MH_I2C_Read... [17:47:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:47:55]Read from MH i2c: E2 [17:47:55]MH_I2C_Read... [17:47:55]Read from MH i2c: E2 62 00 [17:47:55]MH_I2C_Read... [17:47:55]Read from MH i2c: E2 62 00 A2 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 08 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 CA [17:47: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 08 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:47:55]wFMCommunicate OK [17:47:55]SAM_PROTO_GetFieldsCounters done [17:47:55]requested_item shift.num is exist - process it [17:47:55]requested_item shift.opened is exist - process it [17:47:55]req_shift_opened [17:47:55]FM_GetShiftState [17:47:55]SAM_PROTO_GetShiftState [17:47:55]wFMCommunicate request_size=4 [17:47:55]MH_SAM_APDU [17:47:55]CAPDU: 80 13 01 00 [17:47:55]Write to MH i2c: E2 08 00 A3 2E 80 13 01 00 00 00 00 00 4E [17:47:55]Write i2c OK [17:47:55]MH_I2C_Read... [17:47:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:55]Read from MH i2c: E2 [17:47:55]MH_I2C_Read... [17:47:55]Read from MH i2c: E2 0E 00 [17:47:55]MH_I2C_Read... [17:47:55]Read from MH i2c: E2 0E 00 A3 2E 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 27 [17:47:55]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [17:47:55]wFMCommunicate OK [17:47:55]SAM_PROTO_GetShiftState done [17:47:55]FM_GetShiftState done [17:47:55]req_shift_opened done [17:47:55]requested_item shift.open_date is exist - process it [17:47:55]req_shift_open_date [17:47:55]req_shift_open_date done [17:47:55]produce_requested_data done [17:47:55]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165384,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [17:47:55]process_action_free close_receipt [17:47:55]json_value_free [17:47:55]json_value_free done [17:47:55]process_json_proto returns [17:47:55]Send response to host [17:47:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165384,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [17:47:55]free response buf [17:47:55]execute_script done [17:47:55]execute_script returns [17:47:55]free content buf [17:47:55]Sock 8.Close socket [17:47:55]Sock 8.Thread stoped [17:47:59]OFD Sender: No OFD packet to send [17:48:04]OFD Sender: No OFD packet to send [17:48:09]OFD Sender: No OFD packet to send [17:48:14]OFD Sender: No OFD packet to send [17:48:19]OFD Sender: No OFD packet to send [17:48:24]OFD Sender: No OFD packet to send [17:48:29]OFD Sender: No OFD packet to send [17:48:34]OFD Sender: No OFD packet to send [17:48:39]OFD Sender: No OFD packet to send [17:48:44]OFD Sender: No OFD packet to send [17:48:49]OFD Sender: No OFD packet to send [17:48:54]OFD Sender: No OFD packet to send [17:48:59]OFD Sender: No OFD packet to send [17:49:04]OFD Sender: No OFD packet to send [17:49:09]OFD Sender: No OFD packet to send [17:49:14]OFD Sender: No OFD packet to send [17:49:19]OFD Sender: No OFD packet to send [17:49:24]OFD Sender: No OFD packet to send [17:49:29]OFD Sender: No OFD packet to send [17:49:34]OFD Sender: No OFD packet to send [17:49:39]OFD Sender: No OFD packet to send [17:49:44]OFD Sender: No OFD packet to send [17:49:49]OFD Sender: No OFD packet to send [17:49:54]OFD Sender: No OFD packet to send [17:49:59]OFD Sender: No OFD packet to send [17:50:04]OFD Sender: No OFD packet to send [17:50:09]OFD Sender: No OFD packet to send [17:50:14]OFD Sender: No OFD packet to send [17:50:19]OFD Sender: No OFD packet to send [17:50:24]OFD Sender: No OFD packet to send [17:50:29]OFD Sender: No OFD packet to send [17:50:34]OFD Sender: No OFD packet to send [17:50:35]accept exits with 9 [17:50:35]New connection [17:50:35]New thread 3066711396 created [17:50:35]Thread 3066854756 joined [17:50:35]Waiting for new connection... [17:50:35] Sock 9.Parse request [17:50:35]Sock 9.Check first char [17:50:35]Sock 9.First char is OK [17:50:35]request: POST /json_proto HTTP/1.0 [17:50:35]Method: POST [17:50:35]URL: /json_proto [17:50:35]Method is POST - this is cgi request [17:50:35]url: /json_proto [17:50:35]query_string will be loaded in cgi processing [17:50:35]execute_cgi json_proto POST (null) [17:50:35]execute_cgi path=json_proto method=POST [17:50:35]POST find Content-Length [17:50:35]Host: 172.17.56.4:8080 [17:50:35]Content-Length: 677 [17:50:35]Content-Type: application/json [17:50:35] [17:50:35]POST finish read [17:50:35]Found Content-Length = 677 [17:50:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459497", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:50:35]execute_script... [17:50: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)459497", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:50:35]POST & json_proto [17:50:35]process_json_proto [17:50:35]json parsed OK: [17:50:35]protocol is kg_v1.0 [17:50:35]action value=close_receipt [17:50:35]process_action close_receipt [17:50:35]cmd_close_receipt [17:50:35]MH_GetDate [17:50:35]Write to MH i2c: F0 00 00 A4 2E C1 [17:50:35]Write i2c OK [17:50:35]MH_I2C_Read... [17:50:35]Read from MH i2c: F0 [17:50:35]MH_I2C_Read... [17:50:35]Read from MH i2c: F0 09 00 [17:50:35]MH_I2C_Read... [17:50:35]Read from MH i2c: F0 09 00 A4 2E 00 6D 61 95 66 C9 DC B2 64 4E [17:50:35]GetLastDocTimeStamp 1721065673 [17:50:35]current date 1721065837 [17:50:35]FM_GetShiftState [17:50:35]SAM_PROTO_GetShiftState [17:50:35]wFMCommunicate request_size=4 [17:50:35]MH_SAM_APDU [17:50:35]CAPDU: 80 13 01 00 [17:50:35]Write to MH i2c: E2 08 00 A5 2E 80 13 01 00 00 00 00 00 50 [17:50:35]Write i2c OK [17:50:35]MH_I2C_Read... [17:50:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:35]Read from MH i2c: E2 [17:50:35]MH_I2C_Read... [17:50:35]Read from MH i2c: E2 0E 00 [17:50:35]MH_I2C_Read... [17:50:35]Read from MH i2c: E2 0E 00 A5 2E 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 29 [17:50:35]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [17:50:35]wFMCommunicate OK [17:50:35]SAM_PROTO_GetShiftState done [17:50:35]FM_GetShiftState done [17:50:35]opened in 1721003876 [17:50:35]opened+sec_in_day 1721090276 [17:50:35]quantity*price = 50008 [17:50:35]sum+1 = 50009 [17:50:35]Check (price>sum+1) || (price+1 о реализуемом товаре [17:51:59]line ОКРУГЛЕНИЕ: -0.08 [17:51:59]line ИТОГО: 500.00 [17:51:59]line Внесено: 500.00 [17:51:59]line СДАЧА: 0.00 [17:51:59]line НСП 1% : 4.42 [17:51:59]line НДС 12% : 53.11 [17:51:59]line Наличными: 500.00 [17:51:59]line Безнал.: 0.00 [17:51:59]line Место: АЗС № 72 "Партнер Нефть" [17:51:59]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:51:59]line СНО: Общий режим [17:51:59]line Чек 258 15.07.2024 17:50 [17:51:59]line Смена: 448 ФФД: 1.0 [17:51:59]line ЗНМ: 0300000160 [17:51:59]line РНМ: 0000000000090829 [17:51:59]line Версия ККМ: 001 [17:51:59]line ФМ: 0000000000874718 [17:51:59]line ФД: 165385 [17:51:59]line ФПД: 31586700688827 [17:51:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T175037&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165385&fm=31586700688827&tin=02508201610067®Number=0000000000090829&sum=50000 [17:51:59]written 0, free lines is 4095 [17:51:59]OFD Sender: No OFD packet to send [17:51:59]Write to MH i2c: 01 00 00 47 00 47 [17:51:59]Write i2c OK [17:51:59]MH_I2C_Read... [17:51:59]Read from MH i2c: 01 [17:51:59]MH_I2C_Read... [17:51:59]Read from MH i2c: 01 07 00 [17:51:59]MH_I2C_Read... [17:51:59]Read from MH i2c: 01 07 00 47 00 00 00 00 00 00 FE 0C 58 [17:51:59]RasterBufferAndPrint [17:51:59]line [17:51:59]line [17:51:59]line [17:51:59]line [17:51:59]line [17:51:59]written 0, free lines is 3341 [17:51:59]MH_Cut [17:51:59]Write to MH i2c: D1 01 00 4E 00 01 20 [17:51:59]Write i2c OK [17:51:59]MH_I2C_Read... [17:51:59]Read from MH i2c: D1 [17:51:59]MH_I2C_Read... [17:51:59]Read from MH i2c: D1 01 00 [17:51:59]MH_I2C_Read... [17:51:59]Read from MH i2c: D1 01 00 4E 00 00 1F [17:51:59]Write to MH i2c: 01 00 00 4F 00 4F [17:51:59]Write i2c OK [17:51:59]MH_I2C_Read... [17:52:00]*** Cut start [17:52:00]*** Partial cut [17:52:00]*** CUTSNS_PIN = 1 [17:52:00]*** CUTSNS_PIN = 0 [17:52:00]*** Brake cut motor [17:52:01]Read from MH i2c: 01 [17:52:01]MH_I2C_Read... [17:52:01]*** Stop cut motor [17:52:01]*** Cut end [17:52:01]Read from MH i2c: 01 07 00 [17:52:01]MH_I2C_Read... [17:52:01]Read from MH i2c: 01 07 00 4F 00 00 00 00 00 00 FF 0F 64 [17:52:01]process_action print_doc done [17:52:01]requested_data is exist [17:52:01]produce_requested_data [17:52:01]produce_requested_data return (null) [17:52:01]process_action_free print_doc [17:52:01]json_value_free [17:52:01]json_value_free done [17:52:01]process_json_proto returns [17:52:01]Send response to host [17:52:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [17:52:01]free response buf [17:52:01]execute_script done [17:52:01]execute_script returns [17:52:01]free content buf [17:52:01]Sock 9.Close socket [17:52:01]Sock 9.Thread stoped [17:52:04]OFD Sender: No OFD packet to send [17:52:09]OFD Sender: No OFD packet to send [17:52:14]OFD Sender: No OFD packet to send [17:52:19]OFD Sender: No OFD packet to send [17:52:24]OFD Sender: No OFD packet to send [17:52:29]OFD Sender: No OFD packet to send [17:52:34]OFD Sender: No OFD packet to send [17:52:39]OFD Sender: No OFD packet to send [17:52:44]OFD Sender: No OFD packet to send [17:52:47]accept exits with 7 [17:52:47]New connection [17:52:47]New thread 3067153764 created [17:52:47]Thread 3067297124 joined [17:52:47]Waiting for new connection... [17:52:47] Sock 7.Parse request [17:52:47]Sock 7.Check first char [17:52:47]Sock 7.First char is OK [17:52:47]request: POST /json_proto HTTP/1.0 [17:52:47]Method: POST [17:52:47]URL: /json_proto [17:52:47]Method is POST - this is cgi request [17:52:47]url: /json_proto [17:52:47]query_string will be loaded in cgi processing [17:52:47]execute_cgi json_proto POST (null) [17:52:47]execute_cgi path=json_proto method=POST [17:52:47]POST find Content-Length [17:52:47]Host: 172.17.56.4:8080 [17:52:47]Content-Length: 840 [17:52:47]Content-Type: application/json [17:52:47] [17:52:47]POST finish read [17:52:47]Found Content-Length = 840 [17:52:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459500", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.670, "sum" : 500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:52:47]execute_script... [17:52: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)459500", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.670, "sum" : 500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:52:47]POST & json_proto [17:52:47]process_json_proto [17:52:47]json parsed OK: [17:52:47]protocol is kg_v1.0 [17:52:47]action value=close_receipt [17:52:47]process_action close_receipt [17:52:47]cmd_close_receipt [17:52:47]MH_GetDate [17:52:47]Write to MH i2c: F0 00 00 50 00 3F [17:52:47]Write i2c OK [17:52:47]MH_I2C_Read... [17:52:47]Read from MH i2c: F0 [17:52:47]MH_I2C_Read... [17:52:47]Read from MH i2c: F0 09 00 [17:52:47]MH_I2C_Read... [17:52:47]Read from MH i2c: F0 09 00 50 00 00 EF 61 95 66 C9 DC B2 64 4E [17:52:47]GetLastDocTimeStamp 1721065837 [17:52:47]current date 1721065967 [17:52:47]FM_GetShiftState [17:52:47]SAM_PROTO_GetShiftState [17:52:47]wFMCommunicate request_size=4 [17:52:47]MH_SAM_APDU [17:52:47]CAPDU: 80 13 01 00 [17:52:47]Write to MH i2c: E2 08 00 51 00 80 13 01 00 00 00 00 00 CE [17:52:47]Write i2c OK [17:52:47]MH_I2C_Read... [17:52:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:52:47]Read from MH i2c: E2 [17:52:47]MH_I2C_Read... [17:52:47]Read from MH i2c: E2 0E 00 [17:52:47]MH_I2C_Read... [17:52:47]Read from MH i2c: E2 0E 00 51 00 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 A7 [17:52:47]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [17:52:47]wFMCommunicate OK [17:52:47]SAM_PROTO_GetShiftState done [17:52:47]FM_GetShiftState done [17:52:47]opened in 1721003876 [17:52:47]opened+sec_in_day 1721090276 [17:52:47]quantity*price = 50023 [17:52:47]sum+1 = 50025 [17:52:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.24 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.24 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 259 15.07.2024 17:52 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874718 ФД: 165386 ФПД: 43945940445595 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T175247&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165386&fm=43945940445595&tin=02508201610067®Number=0000000000090829&sum=50024 [17:52:48]StoreToDocumentArchive [17:52:48]shift 448 fd 165386 [17:52:48]save to /storage/0448/doc_00165386 [17:52:48]save last doc name /storage/0448/doc_00165386 to /storage/kkm_last_doc_name [17:52:48]save OK [17:52:48]Clear old archive folders... [17:52:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:52:48]tlvbuf is 00875E70 [17:52:48]SAM_PROTO_ClearQueue [17:52:48]wFMCommunicate request_size=4 [17:52:48]MH_SAM_APDU [17:52:48]CAPDU: 80 09 00 00 [17:52:48]Write to MH i2c: E2 08 00 5E 00 80 09 00 00 00 00 00 00 D0 [17:52:48]Write i2c OK [17:52:48]MH_I2C_Read... [17:52:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:52:48]Read from MH i2c: E2 [17:52:48]MH_I2C_Read... [17:52:48]Read from MH i2c: E2 03 00 [17:52:48]MH_I2C_Read... [17:52:48]Read from MH i2c: E2 03 00 5E 00 00 90 00 D2 [17:52:48]RAPDU: 90 00 [17:52:48]wFMCommunicate OK [17:52:48]SAM_PROTO_ClearQueue done [17:52:48]KKMCreateOFDPacket [17:52:48]OFDProtocolAddRootSTLVToBuf [17:52:48]FM_MakeSignedData [17:52:48]FM_MakeSignedData [17:52:48]SAM_PROTO_SignData [17:52:48]wFMCommunicate request_size=4 [17:52:48]MH_SAM_APDU [17:52:48]CAPDU: 80 0D 01 02 [17:52:48]Write to MH i2c: E2 08 00 5F 00 80 0D 01 02 00 00 00 00 D8 [17:52:48]Write i2c OK [17:52:48]MH_I2C_Read... [17:52:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:52:48]Read from MH i2c: E2 [17:52:48]MH_I2C_Read... [17:52:48]Read from MH i2c: E2 03 00 [17:52:48]MH_I2C_Read... [17:52:48]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [17:52:48]RAPDU: 90 00 [17:52:48]wFMCommunicate OK [17:52:48]wFMCommunicate request_size=255 [17:52:48]MH_SAM_APDU [17:52:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 EF 61 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0A 86 02 00 35 04 06 00 27 [17:52:48]Write to MH i2c: E2 02 01 60 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 EF 61 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0A 86 02 00 35 04 06 00 27 00 00 68 [17:52:48]Write i2c OK [17:52:48]MH_I2C_Read... [17:52:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:48]Read from MH i2c: E2 [17:52:48]MH_I2C_Read... [17:52:48]Read from MH i2c: E2 03 00 [17:52:48]MH_I2C_Read... [17:52:48]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [17:52:48]RAPDU: 90 00 [17:52:48]wFMCommunicate OK [17:52:48]wFMCommunicate request_size=10 [17:52:48]MH_SAM_APDU [17:52:48]CAPDU: 80 0D 02 02 05 F7 F6 2B 69 9B [17:52:48]Write to MH i2c: E2 0D 00 61 00 80 0D 02 02 05 00 F7 F6 2B 69 9B 00 00 01 [17:52:48]Write i2c OK [17:52:48]MH_I2C_Read... [17:52:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:49]Read from MH i2c: E2 [17:52:49]MH_I2C_Read... [17:52:49]Read from MH i2c: E2 03 00 [17:52:49]MH_I2C_Read... [17:52:49]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [17:52:49]RAPDU: 90 00 [17:52:49]wFMCommunicate OK [17:52:49]wFMCommunicate request_size=4 [17:52:49]MH_SAM_APDU [17:52:49]CAPDU: 80 0D 03 02 [17:52:49]Write to MH i2c: E2 08 00 62 00 80 0D 03 02 00 00 00 00 DD [17:52:49]Write i2c OK [17:52:49]MH_I2C_Read... [17:52:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:52:49]Read from MH i2c: E2 [17:52:49]MH_I2C_Read... [17:52:49]Read from MH i2c: E2 0B 00 [17:52:49]MH_I2C_Read... [17:52:49]Read from MH i2c: E2 0B 00 62 00 00 31 1E C6 3C 46 98 4B 10 90 00 68 [17:52:49]RAPDU: 31 1E C6 3C 46 98 4B 10 90 00 [17:52:49]wFMCommunicate OK [17:52:49]SAM_PROTO_SignData done [17:52:49]FM_MakeSignedData done [17:52:49]CreateOFDProtocolMessage [17:52:49]wFMCommunicate request_size=4 [17:52:49]MH_SAM_APDU [17:52:49]CAPDU: 80 11 00 00 [17:52:49]Write to MH i2c: E2 08 00 63 00 80 11 00 00 00 00 00 00 DD [17:52:49]Write i2c OK [17:52:49]MH_I2C_Read... [17:52:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:52:49]Read from MH i2c: E2 [17:52:49]MH_I2C_Read... [17:52:49]Read from MH i2c: E2 17 00 [17:52:49]MH_I2C_Read... [17:52:49]Read from MH i2c: E2 17 00 63 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 33 [17:52:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:52:49]wFMCommunicate OK [17:52:49]CreateOFDProtocolMessage done [17:52:49]OFDSenderStorePacket 165386 [17:52:49]StoreOFDPacket docnum=165386 [17:52:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B2 D7 07 01 6F CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 EF 61 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0A 86 02 00 35 04 06 00 27 F7 F6 2B 69 9B 31 1E C6 3C 46 98 4B 10 [17:52:49]CheckFolder [17:52:49]dirname=/storage/ofd_packets [17:52:49]CheckFolder done [17:52:49]ProducePacketName [17:52:49]name=ofd_packets/00165386 [17:52:49]NVStorageSaveData ofd_packets/00165386 [17:52:49]File name is /storage/ofd_packets/00165386 [17:52:49]Write 301 bytes [17:52:49]NVStorageSaveData done [17:52:49]OFDSenderStorePacket done [17:52:49]KKMCreateOFDPacket done [17:52:49]NVStorageSaveData kkm_last_timestamp [17:52:49]File name is /storage/kkm_last_timestamp [17:52:49]Write 4 bytes [17:52:49]NVStorageSaveData done [17:52:49]ExternCall_PrintAddStr [17:52:49]wPrintStart [17:52:49]Write to MH i2c: 01 00 00 64 00 64 [17:52:49]Write i2c OK [17:52:49]MH_I2C_Read... [17:52:49]Read from MH i2c: 01 [17:52:49]MH_I2C_Read... [17:52:49]Read from MH i2c: 01 07 00 [17:52:49]MH_I2C_Read... [17:52:49]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [17:52:49]RasterBufferAndPrint [17:52:49]line Счет N : (1)459500 [17:52:49]line ИНН: 02508201610067 [17:52:49]line Контрольно-Кассовый Чек [17:52:49]line ПРОДАЖА [17:52:49]line ТРК (МРК, ГНК) : 22 [17:52:49]line Товар: 2710124130 [17:52:49]line Аи-92-К-5 [17:52:49]line 7.670 * 65.22 [17:52:49]line = 500.24 [17:52:49]line НДС 12% НСП 1% [17:52:49]line > о реализуемом товаре [17:52:49]line ИТОГО: 500.24 [17:52:49]line НСП 1% : 4.43 [17:52:49]line НДС 12% : 53.12 [17:52:49]line Наличными: 0.00 [17:52:49]line Безнал.: 500.24 [17:52:49]line Место: АЗС № 72 "Партнер Нефть" [17:52:49]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:52:49]line СНО: Общий режим [17:52:49]line Чек 259 15.07.2024 17:52 [17:52:49]line Смена: 448 ФФД: 1.0 [17:52:49]line ЗНМ: 0300000160 [17:52:49]line РНМ: 0000000000090829 [17:52:49]line Версия ККМ: 001 [17:52:49]line Платежная система: АКБ Кыргызстан [17:52:49]line ФМ: 0000000000874718 [17:52:49]line ФД: 165386 [17:52:49]line ФПД: 43945940445595 [17:52:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T175247&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165386&fm=43945940445595&tin=02508201610067®Number=0000000000090829&sum=50024 [17:52:49]written 0, free lines is 4095 [17:52:49]OFD Sender: Processing packet 165386 [packets to send 106, broken 105] [17:52:49]ProducePacketName [17:52:49]name=ofd_packets/00165386 [17:52:49]OFD Sender: To server: pG, [17:52:49]CommunicateWithHost lk.salyk.kg:30040 [17:52:49]ConnectInit lk.salyk.kg [17:52:49]Connected sock=10 [17:52:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B2 D7 07 01 6F CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 EF 61 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0A 86 02 00 35 04 06 00 27 F7 F6 2B 69 9B 31 1E C6 3C 46 98 4B 10 [17:52:49]Write to MH i2c: 01 00 00 8D 00 8D [17:52:49]Write i2c OK [17:52:49]MH_I2C_Read... [17:52:49]Read from MH i2c: 01 [17:52:49]MH_I2C_Read... [17:52:49]Read from MH i2c: 01 07 00 [17:52:49]MH_I2C_Read... [17:52:49]Read from MH i2c: 01 07 00 8D 00 00 00 00 00 00 0F 0D B0 [17:52:49]RasterBufferAndPrint [17:52:49]line [17:52:49]line [17:52:49]line [17:52:49]line [17:52:49]line [17:52:49]written 0, free lines is 3350 [17:52:49]MH_Cut [17:52:49]Write to MH i2c: D1 01 00 94 00 01 66 [17:52:49]Write i2c OK [17:52:49]MH_I2C_Read... [17:52:49]Read from MH i2c: D1 [17:52:49]MH_I2C_Read... [17:52:49]Read from MH i2c: D1 01 00 [17:52:49]MH_I2C_Read... [17:52:49]Read from MH i2c: D1 01 00 94 00 00 65 [17:52:49]Write to MH i2c: 01 00 00 95 00 95 [17:52:49]Write i2c OK [17:52:49]MH_I2C_Read... [17:52:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 D3 3E 47 00 FE A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0A 86 02 00 F4 03 04 00 79 08 95 66 B6 04 01 00 00 2F 8E C9 F0 F5 E0 59 74 [17:52:49]CommunicateWithHost err = 0 [17:52:49]CheckOFDResponse [17:52:49]1017 (14) - 77093643461234 [17:52:49]1041 (16) - 0000000000874718 [17:52:49]1040 (4) - 165386 [17:52:49]1012 (4) - 15.07.2024 11:31 [17:52:49]1206 (1) - 0 [17:52:49]OFD Sender: Remove packet 165386 [17:52:49]ProducePacketName [17:52:49]name=ofd_packets/00165386 [17:52:49]NVStorageDeleteData [17:52:50]*** Cut start [17:52:50]*** Partial cut [17:52:50]*** CUTSNS_PIN = 1 [17:52:50]OFD Sender: No OFD packet to send [17:52:50]*** CUTSNS_PIN = 0 [17:52:50]*** Brake cut motor [17:52:50]Read from MH i2c: 01 [17:52:50]MH_I2C_Read... [17:52:50]*** Stop cut motor [17:52:50]*** Cut end [17:52:50]Read from MH i2c: 01 07 00 [17:52:50]MH_I2C_Read... [17:52:50]Read from MH i2c: 01 07 00 95 00 00 00 00 00 00 FF 0F AA [17:52:50]process_action close_receipt done [17:52:50]requested_data is exist [17:52:50]produce_requested_data [17:52:50]requested_item fm.sn is exist - process it [17:52:50]wFMCommunicate request_size=4 [17:52:50]MH_SAM_APDU [17:52:50]CAPDU: 80 11 00 00 [17:52:50]Write to MH i2c: E2 08 00 96 00 80 11 00 00 00 00 00 00 10 [17:52:50]Write i2c OK [17:52:50]MH_I2C_Read... [17:52:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:52:50]Read from MH i2c: E2 [17:52:50]MH_I2C_Read... [17:52:50]Read from MH i2c: E2 17 00 [17:52:50]MH_I2C_Read... [17:52:50]Read from MH i2c: E2 17 00 96 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 66 [17:52:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:52:50]wFMCommunicate OK [17:52:50]requested_item fd.num is exist - process it [17:52:50]SAM_PROTO_GetFieldsCounters [17:52:50]wFMCommunicate request_size=4 [17:52:50]MH_SAM_APDU [17:52:50]CAPDU: 80 13 00 00 [17:52:50]Write to MH i2c: E2 08 00 97 00 80 13 00 00 00 00 00 00 13 [17:52:50]Write i2c OK [17:52:50]MH_I2C_Read... [17:52:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:52:51]Read from MH i2c: E2 [17:52:51]MH_I2C_Read... [17:52:51]Read from MH i2c: E2 62 00 [17:52:51]MH_I2C_Read... [17:52:51]Read from MH i2c: E2 62 00 97 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0A 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 99 [17:52:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0A 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:52:51]wFMCommunicate OK [17:52:51]SAM_PROTO_GetFieldsCounters done [17:52:51]requested_item shift.num is exist - process it [17:52:51]requested_item shift.opened is exist - process it [17:52:51]req_shift_opened [17:52:51]FM_GetShiftState [17:52:51]SAM_PROTO_GetShiftState [17:52:51]wFMCommunicate request_size=4 [17:52:51]MH_SAM_APDU [17:52:51]CAPDU: 80 13 01 00 [17:52:51]Write to MH i2c: E2 08 00 98 00 80 13 01 00 00 00 00 00 15 [17:52:51]Write i2c OK [17:52:51]MH_I2C_Read... [17:52:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:52:51]Read from MH i2c: E2 [17:52:51]MH_I2C_Read... [17:52:51]Read from MH i2c: E2 0E 00 [17:52:51]MH_I2C_Read... [17:52:51]Read from MH i2c: E2 0E 00 98 00 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 EE [17:52:51]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [17:52:51]wFMCommunicate OK [17:52:51]SAM_PROTO_GetShiftState done [17:52:51]FM_GetShiftState done [17:52:51]req_shift_opened done [17:52:51]requested_item shift.open_date is exist - process it [17:52:51]req_shift_open_date [17:52:51]req_shift_open_date done [17:52:51]produce_requested_data done [17:52:51]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165386,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [17:52:51]process_action_free close_receipt [17:52:51]json_value_free [17:52:51]json_value_free done [17:52:51]process_json_proto returns [17:52:51]Send response to host [17:52:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165386,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [17:52:51]free response buf [17:52:51]execute_script done [17:52:51]execute_script returns [17:52:51]free content buf [17:52:51]Sock 7.Close socket [17:52:51]Sock 7.Thread stoped [17:52:51]accept exits with 9 [17:52:51]New connection [17:52:51]New thread 3067297124 created [17:52:51]Thread 3067153764 joined [17:52:51]Waiting for new connection... [17:52:51] Sock 9.Parse request [17:52:51]Sock 9.Check first char [17:52:51]Sock 9.First char is OK [17:52:51]request: POST /json_proto HTTP/1.0 [17:52:51]Method: POST [17:52:51]URL: /json_proto [17:52:51]Method is POST - this is cgi request [17:52:51]url: /json_proto [17:52:51]query_string will be loaded in cgi processing [17:52:51]execute_cgi json_proto POST (null) [17:52:51]execute_cgi path=json_proto method=POST [17:52:51]POST find Content-Length [17:52:51]Host: 172.17.56.4:8080 [17:52:51]Content-Length: 677 [17:52:51]Content-Type: application/json [17:52:51] [17:52:51]POST finish read [17:52:51]Found Content-Length = 677 [17:52:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459501", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:52:51]execute_script... [17:52: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)459501", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:52:51]POST & json_proto [17:52:51]process_json_proto [17:52:51]json parsed OK: [17:52:51]protocol is kg_v1.0 [17:52:51]action value=close_receipt [17:52:51]process_action close_receipt [17:52:51]cmd_close_receipt [17:52:51]MH_GetDate [17:52:51]Write to MH i2c: F0 00 00 99 00 88 [17:52:51]Write i2c OK [17:52:51]MH_I2C_Read... [17:52:51]Read from MH i2c: F0 [17:52:51]MH_I2C_Read... [17:52:51]Read from MH i2c: F0 09 00 [17:52:51]MH_I2C_Read... [17:52:51]Read from MH i2c: F0 09 00 99 00 00 F3 61 95 66 C9 DC B2 64 9B [17:52:51]GetLastDocTimeStamp 1721065967 [17:52:51]current date 1721065971 [17:52:51]FM_GetShiftState [17:52:51]SAM_PROTO_GetShiftState [17:52:51]wFMCommunicate request_size=4 [17:52:51]MH_SAM_APDU [17:52:51]CAPDU: 80 13 01 00 [17:52:51]Write to MH i2c: E2 08 00 9A 00 80 13 01 00 00 00 00 00 17 [17:52:51]Write i2c OK [17:52:51]MH_I2C_Read... [17:52:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:52:51]Read from MH i2c: E2 [17:52:51]MH_I2C_Read... [17:52:51]Read from MH i2c: E2 0E 00 [17:52:51]MH_I2C_Read... [17:52:51]Read from MH i2c: E2 0E 00 9A 00 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 F0 [17:52:51]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [17:52:51]wFMCommunicate OK [17:52:51]SAM_PROTO_GetShiftState done [17:52:51]FM_GetShiftState done [17:52:51]opened in 1721003876 [17:52:51]opened+sec_in_day 1721090276 [17:52:51]quantity*price = 30004 [17:52:51]sum+1 = 30006 [17:52:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 260 15.07.2024 17:52 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165387 ФПД: 208641526347405 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T175251&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165387&fm=208641526347405&tin=02508201610067®Number=0000000000090829&sum=30000 [17:52:52]StoreToDocumentArchive [17:52:52]shift 448 fd 165387 [17:52:52]save to /storage/0448/doc_00165387 [17:52:52]save last doc name /storage/0448/doc_00165387 to /storage/kkm_last_doc_name [17:52:52]save OK [17:52:52]Clear old archive folders... [17:52:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:52:52]tlvbuf is 008A4CC0 [17:52:52]SAM_PROTO_ClearQueue [17:52:52]wFMCommunicate request_size=4 [17:52:52]MH_SAM_APDU [17:52:52]CAPDU: 80 09 00 00 [17:52:52]Write to MH i2c: E2 08 00 A7 00 80 09 00 00 00 00 00 00 19 [17:52:52]Write i2c OK [17:52:52]MH_I2C_Read... [17:52:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:52:52]Read from MH i2c: E2 [17:52:52]MH_I2C_Read... [17:52:52]Read from MH i2c: E2 03 00 [17:52:52]MH_I2C_Read... [17:52:52]Read from MH i2c: E2 03 00 A7 00 00 90 00 1B [17:52:52]RAPDU: 90 00 [17:52:52]wFMCommunicate OK [17:52:52]SAM_PROTO_ClearQueue done [17:52:52]KKMCreateOFDPacket [17:52:52]OFDProtocolAddRootSTLVToBuf [17:52:52]FM_MakeSignedData [17:52:52]FM_MakeSignedData [17:52:52]SAM_PROTO_SignData [17:52:52]wFMCommunicate request_size=4 [17:52:52]MH_SAM_APDU [17:52:52]CAPDU: 80 0D 01 02 [17:52:52]Write to MH i2c: E2 08 00 A8 00 80 0D 01 02 00 00 00 00 21 [17:52:52]Write i2c OK [17:52:52]MH_I2C_Read... [17:52:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:52:52]Read from MH i2c: E2 [17:52:52]MH_I2C_Read... [17:52:52]Read from MH i2c: E2 03 00 [17:52:52]MH_I2C_Read... [17:52:52]Read from MH i2c: E2 03 00 A8 00 00 90 00 1C [17:52:52]RAPDU: 90 00 [17:52:52]wFMCommunicate OK [17:52:52]wFMCommunicate request_size=255 [17:52:52]MH_SAM_APDU [17:52:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 F3 61 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0B 86 02 00 35 04 06 00 BD [17:52:52]Write to MH i2c: E2 02 01 A9 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 F3 61 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0B 86 02 00 35 04 06 00 BD 00 00 C0 [17:52:52]Write i2c OK [17:52:52]MH_I2C_Read... [17:52:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:53]Read from MH i2c: E2 [17:52:53]MH_I2C_Read... [17:52:53]Read from MH i2c: E2 03 00 [17:52:53]MH_I2C_Read... [17:52:53]Read from MH i2c: E2 03 00 A9 00 00 90 00 1D [17:52:53]RAPDU: 90 00 [17:52:53]wFMCommunicate OK [17:52:53]wFMCommunicate request_size=10 [17:52:53]MH_SAM_APDU [17:52:53]CAPDU: 80 0D 02 02 05 C2 24 10 36 8D [17:52:53]Write to MH i2c: E2 0D 00 AA 00 80 0D 02 02 05 00 C2 24 10 36 8D 00 00 E7 [17:52:53]Write i2c OK [17:52:53]MH_I2C_Read... [17:52:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:53]Read from MH i2c: E2 [17:52:53]MH_I2C_Read... [17:52:53]Read from MH i2c: E2 03 00 [17:52:53]MH_I2C_Read... [17:52:53]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [17:52:53]RAPDU: 90 00 [17:52:53]wFMCommunicate OK [17:52:53]wFMCommunicate request_size=4 [17:52:53]MH_SAM_APDU [17:52:53]CAPDU: 80 0D 03 02 [17:52:53]Write to MH i2c: E2 08 00 AB 00 80 0D 03 02 00 00 00 00 26 [17:52:53]Write i2c OK [17:52:53]MH_I2C_Read... [17:52:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:52:53]Read from MH i2c: E2 [17:52:53]MH_I2C_Read... [17:52:53]Read from MH i2c: E2 0B 00 [17:52:53]MH_I2C_Read... [17:52:53]Read from MH i2c: E2 0B 00 AB 00 00 4A 30 F3 42 24 8C 30 D0 90 00 86 [17:52:53]RAPDU: 4A 30 F3 42 24 8C 30 D0 90 00 [17:52:53]wFMCommunicate OK [17:52:53]SAM_PROTO_SignData done [17:52:53]FM_MakeSignedData done [17:52:53]CreateOFDProtocolMessage [17:52:53]wFMCommunicate request_size=4 [17:52:53]MH_SAM_APDU [17:52:53]CAPDU: 80 11 00 00 [17:52:53]Write to MH i2c: E2 08 00 AC 00 80 11 00 00 00 00 00 00 26 [17:52:53]Write i2c OK [17:52:53]MH_I2C_Read... [17:52:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:52:53]Read from MH i2c: E2 [17:52:53]MH_I2C_Read... [17:52:53]Read from MH i2c: E2 17 00 [17:52:53]MH_I2C_Read... [17:52:53]Read from MH i2c: E2 17 00 AC 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7C [17:52:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:52:53]wFMCommunicate OK [17:52:53]CreateOFDProtocolMessage done [17:52:53]OFDSenderStorePacket 165387 [17:52:53]StoreOFDPacket docnum=165387 [17:52:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 67 F7 07 01 20 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 F3 61 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0B 86 02 00 35 04 06 00 BD C2 24 10 36 8D 4A 30 F3 42 24 8C 30 D0 [17:52:53]CheckFolder [17:52:53]dirname=/storage/ofd_packets [17:52:53]CheckFolder done [17:52:53]ProducePacketName [17:52:53]name=ofd_packets/00165387 [17:52:53]NVStorageSaveData ofd_packets/00165387 [17:52:53]File name is /storage/ofd_packets/00165387 [17:52:53]Write 301 bytes [17:52:53]NVStorageSaveData done [17:52:53]OFDSenderStorePacket done [17:52:53]KKMCreateOFDPacket done [17:52:53]NVStorageSaveData kkm_last_timestamp [17:52:53]File name is /storage/kkm_last_timestamp [17:52:53]Write 4 bytes [17:52:53]NVStorageSaveData done [17:52:53]ExternCall_PrintAddStr [17:52:53]wPrintStart [17:52:53]Write to MH i2c: 01 00 00 AD 00 AD [17:52:53]Write i2c OK [17:52:53]MH_I2C_Read... [17:52:53]Read from MH i2c: 01 [17:52:53]MH_I2C_Read... [17:52:53]Read from MH i2c: 01 07 00 [17:52:53]MH_I2C_Read... [17:52:53]Read from MH i2c: 01 07 00 AD 00 00 00 00 00 00 FF 0F C2 [17:52:53]RasterBufferAndPrint [17:52:53]line Счет N : (1)459501 [17:52:53]line ИНН: 02508201610067 [17:52:53]line Контрольно-Кассовый Чек [17:52:53]line ПРОДАЖА [17:52:53]line ТРК (МРК, ГНК) : 12 [17:52:53]line Товар: 2710124130 [17:52:53]line Аи-92-К-5 [17:52:53]line 4.560 * 65.80 [17:52:53]line = 300.05 [17:52:53]line НДС 12% НСП 1% [17:52:53]line > о реализуемом товаре [17:52:53]line ОКРУГЛЕНИЕ: -0.05 [17:52:53]line ИТОГО: 300.00 [17:52:53]line Внесено: 300.00 [17:52:53]line СДАЧА: 0.00 [17:52:53]line НСП 1% : 2.65 [17:52:53]line НДС 12% : 31.86 [17:52:53]line Наличными: 300.00 [17:52:53]line Безнал.: 0.00 [17:52:53]line Место: АЗС № 72 "Партнер Нефть" [17:52:53]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:52:53]line СНО: Общий режим [17:52:53]line Чек 260 15.07.2024 17:52 [17:52:53]line Смена: 448 ФФД: 1.0 [17:52:53]line ЗНМ: 0300000160 [17:52:53]line РНМ: 0000000000090829 [17:52:53]line Версия ККМ: 001 [17:52:53]line ФМ: 0000000000874718 [17:52:53]line ФД: 165387 [17:52:53]line ФПД: 208641526347405 [17:52:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T175251&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165387&fm=208641526347405&tin=02508201610067®Number=0000000000090829&sum=30000 [17:52:53]OFD Sender: Processing packet 165387 [packets to send 106, broken 105] [17:52:53]ProducePacketName [17:52:53]name=ofd_packets/00165387 [17:52:53]OFD Sender: To server: pG, [17:52:53]CommunicateWithHost lk.salyk.kg:30040 [17:52:53]ConnectInit lk.salyk.kg [17:52:53]written 0, free lines is 4095 [17:52:53]Connected sock=10 [17:52: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 37 31 38 0F 01 00 00 67 F7 07 01 20 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 F3 61 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0B 86 02 00 35 04 06 00 BD C2 24 10 36 8D 4A 30 F3 42 24 8C 30 D0 [17:52:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 4B 6F 47 00 FA 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 37 31 38 10 04 04 00 0B 86 02 00 F4 03 04 00 7D 08 95 66 B6 04 01 00 00 03 44 0E 5B 17 7B E0 D7 [17:52:54]CommunicateWithHost err = 0 [17:52:54]CheckOFDResponse [17:52:54]1017 (14) - 77093643461234 [17:52:54]1041 (16) - 0000000000874718 [17:52:54]1040 (4) - 165387 [17:52:54]1012 (4) - 15.07.2024 11:31 [17:52:54]1206 (1) - 0 [17:52:54]OFD Sender: Remove packet 165387 [17:52:54]ProducePacketName [17:52:54]name=ofd_packets/00165387 [17:52:54]NVStorageDeleteData [17:52:54]Write to MH i2c: 01 00 00 D7 00 D7 [17:52:54]Write i2c OK [17:52:54]MH_I2C_Read... [17:52:54]Read from MH i2c: 01 [17:52:54]MH_I2C_Read... [17:52:54]Read from MH i2c: 01 07 00 [17:52:54]MH_I2C_Read... [17:52:54]Read from MH i2c: 01 07 00 D7 00 00 00 00 00 00 0A 0D F5 [17:52:54]RasterBufferAndPrint [17:52:54]line [17:52:54]line [17:52:54]line [17:52:54]line [17:52:54]line [17:52:54]written 0, free lines is 3353 [17:52:54]MH_Cut [17:52:54]Write to MH i2c: D1 01 00 DE 00 01 B0 [17:52:54]Write i2c OK [17:52:54]MH_I2C_Read... [17:52:54]Read from MH i2c: D1 [17:52:54]MH_I2C_Read... [17:52:54]Read from MH i2c: D1 01 00 [17:52:54]MH_I2C_Read... [17:52:54]Read from MH i2c: D1 01 00 DE 00 00 AF [17:52:54]Write to MH i2c: 01 00 00 DF 00 DF [17:52:54]Write i2c OK [17:52:54]MH_I2C_Read... [17:52:54]OFD Sender: No OFD packet to send [17:52:54]*** Cut start [17:52:54]*** Partial cut [17:52:54]*** CUTSNS_PIN = 1 [17:52:54]*** CUTSNS_PIN = 0 [17:52:55]*** Brake cut motor [17:52:55]Read from MH i2c: 01 [17:52:55]MH_I2C_Read... [17:52:55]*** Stop cut motor [17:52:55]*** Cut end [17:52:55]Read from MH i2c: 01 07 00 [17:52:55]MH_I2C_Read... [17:52:55]Read from MH i2c: 01 07 00 DF 00 00 00 00 00 00 FF 0F F4 [17:52:55]process_action close_receipt done [17:52:55]requested_data is exist [17:52:55]produce_requested_data [17:52:55]requested_item fm.sn is exist - process it [17:52:55]wFMCommunicate request_size=4 [17:52:55]MH_SAM_APDU [17:52:55]CAPDU: 80 11 00 00 [17:52:55]Write to MH i2c: E2 08 00 E0 00 80 11 00 00 00 00 00 00 5A [17:52:55]Write i2c OK [17:52:55]MH_I2C_Read... [17:52:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:52:55]Read from MH i2c: E2 [17:52:55]MH_I2C_Read... [17:52:55]Read from MH i2c: E2 17 00 [17:52:55]MH_I2C_Read... [17:52:55]Read from MH i2c: E2 17 00 E0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B0 [17:52:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:52:55]wFMCommunicate OK [17:52:55]requested_item fd.num is exist - process it [17:52:55]SAM_PROTO_GetFieldsCounters [17:52:55]wFMCommunicate request_size=4 [17:52:55]MH_SAM_APDU [17:52:55]CAPDU: 80 13 00 00 [17:52:55]Write to MH i2c: E2 08 00 E1 00 80 13 00 00 00 00 00 00 5D [17:52:55]Write i2c OK [17:52:55]MH_I2C_Read... [17:52:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:52:55]Read from MH i2c: E2 [17:52:55]MH_I2C_Read... [17:52:55]Read from MH i2c: E2 62 00 [17:52:55]MH_I2C_Read... [17:52:55]Read from MH i2c: E2 62 00 E1 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0B 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 E7 [17:52: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0B 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:52:55]wFMCommunicate OK [17:52:55]SAM_PROTO_GetFieldsCounters done [17:52:55]requested_item shift.num is exist - process it [17:52:55]requested_item shift.opened is exist - process it [17:52:55]req_shift_opened [17:52:55]FM_GetShiftState [17:52:55]SAM_PROTO_GetShiftState [17:52:55]wFMCommunicate request_size=4 [17:52:55]MH_SAM_APDU [17:52:55]CAPDU: 80 13 01 00 [17:52:55]Write to MH i2c: E2 08 00 E2 00 80 13 01 00 00 00 00 00 5F [17:52:55]Write i2c OK [17:52:55]MH_I2C_Read... [17:52:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:52:55]Read from MH i2c: E2 [17:52:55]MH_I2C_Read... [17:52:55]Read from MH i2c: E2 0E 00 [17:52:55]MH_I2C_Read... [17:52:55]Read from MH i2c: E2 0E 00 E2 00 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 38 [17:52:55]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [17:52:55]wFMCommunicate OK [17:52:55]SAM_PROTO_GetShiftState done [17:52:55]FM_GetShiftState done [17:52:55]req_shift_opened done [17:52:55]requested_item shift.open_date is exist - process it [17:52:55]req_shift_open_date [17:52:55]req_shift_open_date done [17:52:55]produce_requested_data done [17:52:55]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165387,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [17:52:55]process_action_free close_receipt [17:52:55]json_value_free [17:52:55]json_value_free done [17:52:55]process_json_proto returns [17:52:55]Send response to host [17:52:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165387,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [17:52:55]free response buf [17:52:55]execute_script done [17:52:55]execute_script returns [17:52:55]free content buf [17:52:55]Sock 9.Close socket [17:52:55]Sock 9.Thread stoped [17:52:59]OFD Sender: No OFD packet to send [17:53:04]OFD Sender: No OFD packet to send [17:53:09]OFD Sender: No OFD packet to send [17:53:14]OFD Sender: No OFD packet to send [17:53:19]OFD Sender: No OFD packet to send [17:53:24]OFD Sender: No OFD packet to send [17:53:29]OFD Sender: No OFD packet to send [17:53:34]OFD Sender: No OFD packet to send [17:53:36]accept exits with 7 [17:53:36]New connection [17:53:36]New thread 3067153764 created [17:53:36]Thread 3067297124 joined [17:53:36]Waiting for new connection... [17:53:36] Sock 7.Parse request [17:53:36]Sock 7.Check first char [17:53:36]Sock 7.First char is OK [17:53:36]request: POST /json_proto HTTP/1.0 [17:53:36]Method: POST [17:53:36]URL: /json_proto [17:53:36]Method is POST - this is cgi request [17:53:36]url: /json_proto [17:53:36]query_string will be loaded in cgi processing [17:53:36]execute_cgi json_proto POST (null) [17:53:36]execute_cgi path=json_proto method=POST [17:53:36]POST find Content-Length [17:53:36]Host: 172.17.56.4:8080 [17:53:36]Content-Length: 677 [17:53:36]Content-Type: application/json [17:53:36] [17:53:36]POST finish read [17:53:36]Found Content-Length = 677 [17:53:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459502", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.740, "sum" : 180.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 180.00, "total" : 180.00, "payments": [ { "type": 0, "sum" : 180.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:53:36]execute_script... [17:53:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459502", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.740, "sum" : 180.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 180.00, "total" : 180.00, "payments": [ { "type": 0, "sum" : 180.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:53:36]POST & json_proto [17:53:36]process_json_proto [17:53:36]json parsed OK: [17:53:36]protocol is kg_v1.0 [17:53:36]action value=close_receipt [17:53:36]process_action close_receipt [17:53:36]cmd_close_receipt [17:53:36]MH_GetDate [17:53:36]Write to MH i2c: F0 00 00 E3 00 D2 [17:53:36]Write i2c OK [17:53:36]MH_I2C_Read... [17:53:36]Read from MH i2c: F0 [17:53:36]MH_I2C_Read... [17:53:36]Read from MH i2c: F0 09 00 [17:53:36]MH_I2C_Read... [17:53:36]Read from MH i2c: F0 09 00 E3 00 00 20 62 95 66 C9 DC B2 64 13 [17:53:36]GetLastDocTimeStamp 1721065971 [17:53:36]current date 1721066016 [17:53:36]FM_GetShiftState [17:53:36]SAM_PROTO_GetShiftState [17:53:36]wFMCommunicate request_size=4 [17:53:36]MH_SAM_APDU [17:53:36]CAPDU: 80 13 01 00 [17:53:36]Write to MH i2c: E2 08 00 E4 00 80 13 01 00 00 00 00 00 61 [17:53:36]Write i2c OK [17:53:36]MH_I2C_Read... [17:53:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:36]Read from MH i2c: E2 [17:53:36]MH_I2C_Read... [17:53:36]Read from MH i2c: E2 0E 00 [17:53:36]MH_I2C_Read... [17:53:36]Read from MH i2c: E2 0E 00 E4 00 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 3A [17:53:36]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [17:53:36]wFMCommunicate OK [17:53:36]SAM_PROTO_GetShiftState done [17:53:36]FM_GetShiftState done [17:53:36]opened in 1721003876 [17:53:36]opened+sec_in_day 1721090276 [17:53:36]quantity*price = 18029 [17:53:36]sum+1 = 18030 [17:53:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 180.00 Внесено: 180.00 СДАЧА: 0.00 НСП 1% : 1.59 НДС 12% : 19.15 Наличными: 180.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 261 15.07.2024 17:53 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165388 ФПД: 12895805639303 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T175336&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165388&fm=12895805639303&tin=02508201610067®Number=0000000000090829&sum=18000 [17:53:37]StoreToDocumentArchive [17:53:37]shift 448 fd 165388 [17:53:37]save to /storage/0448/doc_00165388 [17:53:37]save last doc name /storage/0448/doc_00165388 to /storage/kkm_last_doc_name [17:53:37]save OK [17:53:37]Clear old archive folders... [17:53:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:53:37]tlvbuf is 00888580 [17:53:37]SAM_PROTO_ClearQueue [17:53:37]wFMCommunicate request_size=4 [17:53:37]MH_SAM_APDU [17:53:37]CAPDU: 80 09 00 00 [17:53:37]Write to MH i2c: E2 08 00 F1 00 80 09 00 00 00 00 00 00 63 [17:53:37]Write i2c OK [17:53:37]MH_I2C_Read... [17:53:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:53:37]Read from MH i2c: E2 [17:53:37]MH_I2C_Read... [17:53:37]Read from MH i2c: E2 03 00 [17:53:37]MH_I2C_Read... [17:53:37]Read from MH i2c: E2 03 00 F1 00 00 90 00 65 [17:53:37]RAPDU: 90 00 [17:53:37]wFMCommunicate OK [17:53:37]SAM_PROTO_ClearQueue done [17:53:37]KKMCreateOFDPacket [17:53:37]OFDProtocolAddRootSTLVToBuf [17:53:37]FM_MakeSignedData [17:53:37]FM_MakeSignedData [17:53:37]SAM_PROTO_SignData [17:53:37]wFMCommunicate request_size=4 [17:53:37]MH_SAM_APDU [17:53:37]CAPDU: 80 0D 01 02 [17:53:37]Write to MH i2c: E2 08 00 F2 00 80 0D 01 02 00 00 00 00 6B [17:53:37]Write i2c OK [17:53:37]MH_I2C_Read... [17:53:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:53:37]Read from MH i2c: E2 [17:53:37]MH_I2C_Read... [17:53:37]Read from MH i2c: E2 03 00 [17:53:37]MH_I2C_Read... [17:53:37]Read from MH i2c: E2 03 00 F2 00 00 90 00 66 [17:53:37]RAPDU: 90 00 [17:53:37]wFMCommunicate OK [17:53:37]wFMCommunicate request_size=255 [17:53:37]MH_SAM_APDU [17:53: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 B4 0A 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6D 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 20 62 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0C 86 02 00 35 04 06 00 0B [17:53:37]Write to MH i2c: E2 02 01 F3 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B4 0A 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6D 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 20 62 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0C 86 02 00 35 04 06 00 0B 00 00 E9 [17:53:37]Write i2c OK [17:53:37]MH_I2C_Read... [17:53:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:38]Read from MH i2c: E2 [17:53:38]MH_I2C_Read... [17:53:38]Read from MH i2c: E2 03 00 [17:53:38]MH_I2C_Read... [17:53:38]Read from MH i2c: E2 03 00 F3 00 00 90 00 67 [17:53:38]RAPDU: 90 00 [17:53:38]wFMCommunicate OK [17:53:38]wFMCommunicate request_size=10 [17:53:38]MH_SAM_APDU [17:53:38]CAPDU: 80 0D 02 02 05 BA 89 EA 0A 87 [17:53:38]Write to MH i2c: E2 0D 00 F4 00 80 0D 02 02 05 00 BA 89 EA 0A 87 00 00 36 [17:53:38]Write i2c OK [17:53:38]MH_I2C_Read... [17:53:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:38]Read from MH i2c: E2 [17:53:38]MH_I2C_Read... [17:53:38]Read from MH i2c: E2 03 00 [17:53:38]MH_I2C_Read... [17:53:38]Read from MH i2c: E2 03 00 F4 00 00 90 00 68 [17:53:38]RAPDU: 90 00 [17:53:38]wFMCommunicate OK [17:53:38]wFMCommunicate request_size=4 [17:53:38]MH_SAM_APDU [17:53:38]CAPDU: 80 0D 03 02 [17:53:38]Write to MH i2c: E2 08 00 F5 00 80 0D 03 02 00 00 00 00 70 [17:53:38]Write i2c OK [17:53:38]MH_I2C_Read... [17:53:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:53:38]Read from MH i2c: E2 [17:53:38]MH_I2C_Read... [17:53:38]Read from MH i2c: E2 0B 00 [17:53:38]MH_I2C_Read... [17:53:38]Read from MH i2c: E2 0B 00 F5 00 00 EC 22 BD 69 98 7D 58 46 90 00 58 [17:53:38]RAPDU: EC 22 BD 69 98 7D 58 46 90 00 [17:53:38]wFMCommunicate OK [17:53:38]SAM_PROTO_SignData done [17:53:38]FM_MakeSignedData done [17:53:38]CreateOFDProtocolMessage [17:53:38]wFMCommunicate request_size=4 [17:53:38]MH_SAM_APDU [17:53:38]CAPDU: 80 11 00 00 [17:53:38]Write to MH i2c: E2 08 00 F6 00 80 11 00 00 00 00 00 00 70 [17:53:38]Write i2c OK [17:53:38]MH_I2C_Read... [17:53:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:38]Read from MH i2c: E2 [17:53:38]MH_I2C_Read... [17:53:38]Read from MH i2c: E2 17 00 [17:53:38]MH_I2C_Read... [17:53:38]Read from MH i2c: E2 17 00 F6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C6 [17:53:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:53:38]wFMCommunicate OK [17:53:38]CreateOFDProtocolMessage done [17:53:38]OFDSenderStorePacket 165388 [17:53:38]StoreOFDPacket docnum=165388 [17:53:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 37 BC 07 01 C3 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B4 0A 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6D 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 20 62 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0C 86 02 00 35 04 06 00 0B BA 89 EA 0A 87 EC 22 BD 69 98 7D 58 46 [17:53:38]CheckFolder [17:53:38]dirname=/storage/ofd_packets [17:53:38]CheckFolder done [17:53:38]ProducePacketName [17:53:38]name=ofd_packets/00165388 [17:53:38]NVStorageSaveData ofd_packets/00165388 [17:53:38]File name is /storage/ofd_packets/00165388 [17:53:38]Write 301 bytes [17:53:38]NVStorageSaveData done [17:53:38]OFDSenderStorePacket done [17:53:38]KKMCreateOFDPacket done [17:53:38]NVStorageSaveData kkm_last_timestamp [17:53:38]File name is /storage/kkm_last_timestamp [17:53:38]Write 4 bytes [17:53:38]NVStorageSaveData done [17:53:38]ExternCall_PrintAddStr [17:53:38]wPrintStart [17:53:38]Write to MH i2c: 01 00 00 F7 00 F7 [17:53:38]Write i2c OK [17:53:38]MH_I2C_Read... [17:53:38]Read from MH i2c: 01 [17:53:38]MH_I2C_Read... [17:53:38]Read from MH i2c: 01 07 00 [17:53:38]MH_I2C_Read... [17:53:38]Read from MH i2c: 01 07 00 F7 00 00 00 00 00 00 FF 0F 0C [17:53:38]RasterBufferAndPrint [17:53:38]line Счет N : (1)459502 [17:53:38]line ИНН: 02508201610067 [17:53:38]line Контрольно-Кассовый Чек [17:53:38]line ПРОДАЖА [17:53:38]line ТРК (МРК, ГНК) : 12 [17:53:38]line Товар: 2710124130 [17:53:38]line Аи-92-К-5 [17:53:38]line 2.740 * 65.80 [17:53:38]line = 180.29 [17:53:38]line НДС 12% НСП 1% [17:53:38]line > о реализуемом товаре [17:53:38]line ОКРУГЛЕНИЕ: -0.29 [17:53:38]line ИТОГО: 180.00 [17:53:38]line Внесено: 180.00 [17:53:38]line СДАЧА: 0.00 [17:53:38]line НСП 1% : 1.59 [17:53:38]line НДС 12% : 19.15 [17:53:38]line Наличными: 180.00 [17:53:38]line Безнал.: 0.00 [17:53:38]line Место: АЗС № 72 "Партнер Нефть" [17:53:38]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:53:38]line СНО: Общий режим [17:53:38]line Чек 261 15.07.2024 17:53 [17:53:38]line Смена: 448 ФФД: 1.0 [17:53:38]line ЗНМ: 0300000160 [17:53:38]line РНМ: 0000000000090829 [17:53:38]line Версия ККМ: 001 [17:53:38]line ФМ: 0000000000874718 [17:53:38]line ФД: 165388 [17:53:38]line ФПД: 12895805639303 [17:53:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T175336&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165388&fm=12895805639303&tin=02508201610067®Number=0000000000090829&sum=18000 [17:53:38]written 0, free lines is 4095 [17:53:38]OFD Sender: Processing packet 165388 [packets to send 106, broken 105] [17:53:38]ProducePacketName [17:53:38]name=ofd_packets/00165388 [17:53:38]OFD Sender: To server: pG, [17:53:38]CommunicateWithHost lk.salyk.kg:30040 [17:53:38]ConnectInit lk.salyk.kg [17:53:38]Connected sock=11 [17:53: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 37 31 38 0F 01 00 00 37 BC 07 01 C3 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B4 0A 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6D 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 20 62 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0C 86 02 00 35 04 06 00 0B BA 89 EA 0A 87 EC 22 BD 69 98 7D 58 46 [17:53:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 73 04 47 00 C2 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 37 31 38 10 04 04 00 0C 86 02 00 F4 03 04 00 AA 08 95 66 B6 04 01 00 00 85 55 29 C6 C8 AD DE 42 [17:53:38]CommunicateWithHost err = 0 [17:53:38]CheckOFDResponse [17:53:38]1017 (14) - 77093643461234 [17:53:38]1041 (16) - 0000000000874718 [17:53:38]1040 (4) - 165388 [17:53:38]1012 (4) - 15.07.2024 11:31 [17:53:38]1206 (1) - 0 [17:53:38]OFD Sender: Remove packet 165388 [17:53:38]ProducePacketName [17:53:38]name=ofd_packets/00165388 [17:53:38]NVStorageDeleteData [17:53:38]Write to MH i2c: 01 00 00 21 01 22 [17:53:38]Write i2c OK [17:53:38]MH_I2C_Read... [17:53:38]Read from MH i2c: 01 [17:53:38]MH_I2C_Read... [17:53:38]Read from MH i2c: 01 07 00 [17:53:38]MH_I2C_Read... [17:53:38]Read from MH i2c: 01 07 00 21 01 00 00 00 00 00 FE 0C 33 [17:53:38]RasterBufferAndPrint [17:53:38]line [17:53:38]line [17:53:38]line [17:53:38]line [17:53:38]line [17:53:38]written 0, free lines is 3332 [17:53:38]MH_Cut [17:53:38]Write to MH i2c: D1 01 00 28 01 01 FB [17:53:38]Write i2c OK [17:53:38]MH_I2C_Read... [17:53:38]Read from MH i2c: D1 [17:53:38]MH_I2C_Read... [17:53:38]Read from MH i2c: D1 01 00 [17:53:38]MH_I2C_Read... [17:53:38]Read from MH i2c: D1 01 00 28 01 00 FA [17:53:38]Write to MH i2c: 01 00 00 29 01 2A [17:53:38]Write i2c OK [17:53:38]MH_I2C_Read... [17:53:39]OFD Sender: No OFD packet to send [17:53:39]*** Cut start [17:53:39]*** Partial cut [17:53:39]*** CUTSNS_PIN = 1 [17:53:39]*** CUTSNS_PIN = 0 [17:53:39]*** Brake cut motor [17:53:39]Read from MH i2c: 01 [17:53:39]MH_I2C_Read... [17:53:39]*** Stop cut motor [17:53:39]*** Cut end [17:53:39]Read from MH i2c: 01 07 00 [17:53:39]MH_I2C_Read... [17:53:39]Read from MH i2c: 01 07 00 29 01 00 00 00 00 00 FF 0F 3F [17:53:39]process_action close_receipt done [17:53:39]requested_data is exist [17:53:39]produce_requested_data [17:53:39]requested_item fm.sn is exist - process it [17:53:39]wFMCommunicate request_size=4 [17:53:39]MH_SAM_APDU [17:53:39]CAPDU: 80 11 00 00 [17:53:39]Write to MH i2c: E2 08 00 2A 01 80 11 00 00 00 00 00 00 A5 [17:53:39]Write i2c OK [17:53:39]MH_I2C_Read... [17:53:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:40]Read from MH i2c: E2 [17:53:40]MH_I2C_Read... [17:53:40]Read from MH i2c: E2 17 00 [17:53:40]MH_I2C_Read... [17:53:40]Read from MH i2c: E2 17 00 2A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FB [17:53:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:53:40]wFMCommunicate OK [17:53:40]requested_item fd.num is exist - process it [17:53:40]SAM_PROTO_GetFieldsCounters [17:53:40]wFMCommunicate request_size=4 [17:53:40]MH_SAM_APDU [17:53:40]CAPDU: 80 13 00 00 [17:53:40]Write to MH i2c: E2 08 00 2B 01 80 13 00 00 00 00 00 00 A8 [17:53:40]Write i2c OK [17:53:40]MH_I2C_Read... [17:53:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:53:40]Read from MH i2c: E2 [17:53:40]MH_I2C_Read... [17:53:40]Read from MH i2c: E2 62 00 [17:53:40]MH_I2C_Read... [17:53:40]Read from MH i2c: E2 62 00 2B 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0C 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 36 [17:53: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0C 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:53:40]wFMCommunicate OK [17:53:40]SAM_PROTO_GetFieldsCounters done [17:53:40]requested_item shift.num is exist - process it [17:53:40]requested_item shift.opened is exist - process it [17:53:40]req_shift_opened [17:53:40]FM_GetShiftState [17:53:40]SAM_PROTO_GetShiftState [17:53:40]wFMCommunicate request_size=4 [17:53:40]MH_SAM_APDU [17:53:40]CAPDU: 80 13 01 00 [17:53:40]Write to MH i2c: E2 08 00 2C 01 80 13 01 00 00 00 00 00 AA [17:53:40]Write i2c OK [17:53:40]MH_I2C_Read... [17:53:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:40]Read from MH i2c: E2 [17:53:40]MH_I2C_Read... [17:53:40]Read from MH i2c: E2 0E 00 [17:53:40]MH_I2C_Read... [17:53:40]Read from MH i2c: E2 0E 00 2C 01 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 83 [17:53:40]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [17:53:40]wFMCommunicate OK [17:53:40]SAM_PROTO_GetShiftState done [17:53:40]FM_GetShiftState done [17:53:40]req_shift_opened done [17:53:40]requested_item shift.open_date is exist - process it [17:53:40]req_shift_open_date [17:53:40]req_shift_open_date done [17:53:40]produce_requested_data done [17:53:40]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165388,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [17:53:40]process_action_free close_receipt [17:53:40]json_value_free [17:53:40]json_value_free done [17:53:40]process_json_proto returns [17:53:40]Send response to host [17:53:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165388,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [17:53:40]free response buf [17:53:40]execute_script done [17:53:40]execute_script returns [17:53:40]free content buf [17:53:40]Sock 7.Close socket [17:53:40]Sock 7.Thread stoped [17:53:44]OFD Sender: No OFD packet to send [17:53:49]OFD Sender: No OFD packet to send [17:53:54]OFD Sender: No OFD packet to send [17:53:54]accept exits with 9 [17:53:54]New connection [17:53:54]New thread 3067297124 created [17:53:54]Thread 3067153764 joined [17:53:54]Waiting for new connection... [17:53:54] Sock 9.Parse request [17:53:54]Sock 9.Check first char [17:53:54]Sock 9.First char is OK [17:53:54]request: POST /json_proto HTTP/1.0 [17:53:54]Method: POST [17:53:54]URL: /json_proto [17:53:54]Method is POST - this is cgi request [17:53:54]url: /json_proto [17:53:54]query_string will be loaded in cgi processing [17:53:54]execute_cgi json_proto POST (null) [17:53:54]execute_cgi path=json_proto method=POST [17:53:54]POST find Content-Length [17:53:54]Host: 172.17.56.4:8080 [17:53:54]Content-Length: 677 [17:53:54]Content-Type: application/json [17:53:54] [17:53:54]POST finish read [17:53:54]Found Content-Length = 677 [17:53:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459503", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:53:54]execute_script... [17:53: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)459503", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:53:54]POST & json_proto [17:53:54]process_json_proto [17:53:54]json parsed OK: [17:53:54]protocol is kg_v1.0 [17:53:54]action value=close_receipt [17:53:54]process_action close_receipt [17:53:54]cmd_close_receipt [17:53:54]MH_GetDate [17:53:54]Write to MH i2c: F0 00 00 2D 01 1D [17:53:54]Write i2c OK [17:53:54]MH_I2C_Read... [17:53:54]Read from MH i2c: F0 [17:53:54]MH_I2C_Read... [17:53:54]Read from MH i2c: F0 09 00 [17:53:54]MH_I2C_Read... [17:53:54]Read from MH i2c: F0 09 00 2D 01 00 32 62 95 66 C9 DC B2 64 70 [17:53:54]GetLastDocTimeStamp 1721066016 [17:53:54]current date 1721066034 [17:53:54]FM_GetShiftState [17:53:54]SAM_PROTO_GetShiftState [17:53:54]wFMCommunicate request_size=4 [17:53:54]MH_SAM_APDU [17:53:54]CAPDU: 80 13 01 00 [17:53:54]Write to MH i2c: E2 08 00 2E 01 80 13 01 00 00 00 00 00 AC [17:53:54]Write i2c OK [17:53:54]MH_I2C_Read... [17:53:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:54]Read from MH i2c: E2 [17:53:54]MH_I2C_Read... [17:53:54]Read from MH i2c: E2 0E 00 [17:53:54]MH_I2C_Read... [17:53:54]Read from MH i2c: E2 0E 00 2E 01 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 85 [17:53:54]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [17:53:54]wFMCommunicate OK [17:53:54]SAM_PROTO_GetShiftState done [17:53:54]FM_GetShiftState done [17:53:54]opened in 1721003876 [17:53:54]opened+sec_in_day 1721090276 [17:53:54]quantity*price = 20003 [17:53:54]sum+1 = 20004 [17:53:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 262 15.07.2024 17:53 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165389 ФПД: 147026296046963 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T175354&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165389&fm=147026296046963&tin=02508201610067®Number=0000000000090829&sum=20000 [17:53:55]StoreToDocumentArchive [17:53:55]shift 448 fd 165389 [17:53:55]save to /storage/0448/doc_00165389 [17:53:55]save last doc name /storage/0448/doc_00165389 to /storage/kkm_last_doc_name [17:53:55]save OK [17:53:55]Clear old archive folders... [17:53:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:53:55]tlvbuf is 00838000 [17:53:55]SAM_PROTO_ClearQueue [17:53:55]wFMCommunicate request_size=4 [17:53:55]MH_SAM_APDU [17:53:55]CAPDU: 80 09 00 00 [17:53:55]Write to MH i2c: E2 08 00 3B 01 80 09 00 00 00 00 00 00 AE [17:53:55]Write i2c OK [17:53:55]MH_I2C_Read... [17:53:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:53:56]Read from MH i2c: E2 [17:53:56]MH_I2C_Read... [17:53:56]Read from MH i2c: E2 03 00 [17:53:56]MH_I2C_Read... [17:53:56]Read from MH i2c: E2 03 00 3B 01 00 90 00 B0 [17:53:56]RAPDU: 90 00 [17:53:56]wFMCommunicate OK [17:53:56]SAM_PROTO_ClearQueue done [17:53:56]KKMCreateOFDPacket [17:53:56]OFDProtocolAddRootSTLVToBuf [17:53:56]FM_MakeSignedData [17:53:56]FM_MakeSignedData [17:53:56]SAM_PROTO_SignData [17:53:56]wFMCommunicate request_size=4 [17:53:56]MH_SAM_APDU [17:53:56]CAPDU: 80 0D 01 02 [17:53:56]Write to MH i2c: E2 08 00 3C 01 80 0D 01 02 00 00 00 00 B6 [17:53:56]Write i2c OK [17:53:56]MH_I2C_Read... [17:53:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:53:56]Read from MH i2c: E2 [17:53:56]MH_I2C_Read... [17:53:56]Read from MH i2c: E2 03 00 [17:53:56]MH_I2C_Read... [17:53:56]Read from MH i2c: E2 03 00 3C 01 00 90 00 B1 [17:53:56]RAPDU: 90 00 [17:53:56]wFMCommunicate OK [17:53:56]wFMCommunicate request_size=255 [17:53:56]MH_SAM_APDU [17:53: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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 32 62 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0D 86 02 00 35 04 06 00 85 [17:53:56]Write to MH i2c: E2 02 01 3D 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 32 62 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0D 86 02 00 35 04 06 00 85 00 00 41 [17:53:56]Write i2c OK [17:53:56]MH_I2C_Read... [17:53:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:56]Read from MH i2c: E2 [17:53:56]MH_I2C_Read... [17:53:56]Read from MH i2c: E2 03 00 [17:53:56]MH_I2C_Read... [17:53:56]Read from MH i2c: E2 03 00 3D 01 00 90 00 B2 [17:53:56]RAPDU: 90 00 [17:53:56]wFMCommunicate OK [17:53:56]wFMCommunicate request_size=10 [17:53:56]MH_SAM_APDU [17:53:56]CAPDU: 80 0D 02 02 05 B8 3A 26 05 73 [17:53:56]Write to MH i2c: E2 0D 00 3E 01 80 0D 02 02 05 00 B8 3A 26 05 73 00 00 53 [17:53:56]Write i2c OK [17:53:56]MH_I2C_Read... [17:53:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:56]Read from MH i2c: E2 [17:53:56]MH_I2C_Read... [17:53:56]Read from MH i2c: E2 03 00 [17:53:56]MH_I2C_Read... [17:53:56]Read from MH i2c: E2 03 00 3E 01 00 90 00 B3 [17:53:56]RAPDU: 90 00 [17:53:56]wFMCommunicate OK [17:53:56]wFMCommunicate request_size=4 [17:53:56]MH_SAM_APDU [17:53:56]CAPDU: 80 0D 03 02 [17:53:56]Write to MH i2c: E2 08 00 3F 01 80 0D 03 02 00 00 00 00 BB [17:53:56]Write i2c OK [17:53:56]MH_I2C_Read... [17:53:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:53:56]Read from MH i2c: E2 [17:53:56]MH_I2C_Read... [17:53:56]Read from MH i2c: E2 0B 00 [17:53:56]MH_I2C_Read... [17:53:56]Read from MH i2c: E2 0B 00 3F 01 00 8F 3A 2C 86 10 65 13 8D 90 00 4C [17:53:56]RAPDU: 8F 3A 2C 86 10 65 13 8D 90 00 [17:53:56]wFMCommunicate OK [17:53:56]SAM_PROTO_SignData done [17:53:56]FM_MakeSignedData done [17:53:56]CreateOFDProtocolMessage [17:53:56]wFMCommunicate request_size=4 [17:53:56]MH_SAM_APDU [17:53:56]CAPDU: 80 11 00 00 [17:53:56]Write to MH i2c: E2 08 00 40 01 80 11 00 00 00 00 00 00 BB [17:53:56]Write i2c OK [17:53:56]MH_I2C_Read... [17:53:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:56]Read from MH i2c: E2 [17:53:56]MH_I2C_Read... [17:53:56]Read from MH i2c: E2 17 00 [17:53:56]MH_I2C_Read... [17:53:56]Read from MH i2c: E2 17 00 40 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 11 [17:53:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:53:56]wFMCommunicate OK [17:53:56]CreateOFDProtocolMessage done [17:53:56]OFDSenderStorePacket 165389 [17:53:56]StoreOFDPacket docnum=165389 [17:53:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 BF 32 07 01 97 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 32 62 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0D 86 02 00 35 04 06 00 85 B8 3A 26 05 73 8F 3A 2C 86 10 65 13 8D [17:53:56]CheckFolder [17:53:56]dirname=/storage/ofd_packets [17:53:56]CheckFolder done [17:53:56]ProducePacketName [17:53:56]name=ofd_packets/00165389 [17:53:56]NVStorageSaveData ofd_packets/00165389 [17:53:56]File name is /storage/ofd_packets/00165389 [17:53:56]Write 301 bytes [17:53:56]NVStorageSaveData done [17:53:56]OFDSenderStorePacket done [17:53:56]KKMCreateOFDPacket done [17:53:56]NVStorageSaveData kkm_last_timestamp [17:53:56]File name is /storage/kkm_last_timestamp [17:53:56]Write 4 bytes [17:53:56]NVStorageSaveData done [17:53:56]ExternCall_PrintAddStr [17:53:56]wPrintStart [17:53:56]Write to MH i2c: 01 00 00 41 01 42 [17:53:56]Write i2c OK [17:53:56]MH_I2C_Read... [17:53:56]Read from MH i2c: 01 [17:53:56]MH_I2C_Read... [17:53:56]Read from MH i2c: 01 07 00 [17:53:56]MH_I2C_Read... [17:53:56]Read from MH i2c: 01 07 00 41 01 00 00 00 00 00 FF 0F 57 [17:53:56]RasterBufferAndPrint [17:53:56]line Счет N : (1)459503 [17:53:56]line ИНН: 02508201610067 [17:53:56]line Контрольно-Кассовый Чек [17:53:56]line ПРОДАЖА [17:53:56]line ТРК (МРК, ГНК) : 22 [17:53:56]line Товар: 2710124130 [17:53:56]line Аи-92-К-5 [17:53:56]line 3.040 * 65.80 [17:53:56]line = 200.03 [17:53:56]line НДС 12% НСП 1% [17:53:56]line > о реализуемом товаре [17:53:56]line ОКРУГЛЕНИЕ: -0.03 [17:53:56]line ИТОГО: 200.00 [17:53:56]line Внесено: 200.00 [17:53:56]line СДАЧА: 0.00 [17:53:56]line НСП 1% : 1.77 [17:53:56]line НДС 12% : 21.24 [17:53:56]line Наличными: 200.00 [17:53:56]line Безнал.: 0.00 [17:53:56]line Место: АЗС № 72 "Партнер Нефть" [17:53:56]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:53:56]line СНО: Общий режим [17:53:56]line Чек 262 15.07.2024 17:53 [17:53:56]line Смена: 448 ФФД: 1.0 [17:53:56]line ЗНМ: 0300000160 [17:53:56]line РНМ: 0000000000090829 [17:53:56]line Версия ККМ: 001 [17:53:56]line ФМ: 0000000000874718 [17:53:56]line ФД: 165389 [17:53:56]line ФПД: 147026296046963 [17:53:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T175354&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165389&fm=147026296046963&tin=02508201610067®Number=0000000000090829&sum=20000 [17:53:56]written 0, free lines is 4095 [17:53:56]OFD Sender: Processing packet 165389 [packets to send 106, broken 105] [17:53:56]ProducePacketName [17:53:56]name=ofd_packets/00165389 [17:53:56]OFD Sender: To server: pG, [17:53:56]CommunicateWithHost lk.salyk.kg:30040 [17:53:56]ConnectInit lk.salyk.kg [17:53:56]Connected sock=10 [17:53: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 37 31 38 0F 01 00 00 BF 32 07 01 97 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 32 62 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0D 86 02 00 35 04 06 00 85 B8 3A 26 05 73 8F 3A 2C 86 10 65 13 8D [17:53:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 FC 8D 47 00 DA B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0D 86 02 00 F4 03 04 00 BC 08 95 66 B6 04 01 00 00 D8 3D EB D3 76 0F 88 A9 [17:53:57]CommunicateWithHost err = 0 [17:53:57]CheckOFDResponse [17:53:57]1017 (14) - 77093643461234 [17:53:57]1041 (16) - 0000000000874718 [17:53:57]1040 (4) - 165389 [17:53:57]1012 (4) - 15.07.2024 11:32 [17:53:57]1206 (1) - 0 [17:53:57]OFD Sender: Remove packet 165389 [17:53:57]ProducePacketName [17:53:57]name=ofd_packets/00165389 [17:53:57]NVStorageDeleteData [17:53:57]Write to MH i2c: 01 00 00 6B 01 6C [17:53:57]Write i2c OK [17:53:57]MH_I2C_Read... [17:53:57]Read from MH i2c: 01 [17:53:57]MH_I2C_Read... [17:53:57]Read from MH i2c: 01 07 00 [17:53:57]MH_I2C_Read... [17:53:57]Read from MH i2c: 01 07 00 6B 01 00 00 00 00 00 00 0D 80 [17:53:57]RasterBufferAndPrint [17:53:57]line [17:53:57]line [17:53:57]line [17:53:57]line [17:53:57]line [17:53:57]written 0, free lines is 3334 [17:53:57]MH_Cut [17:53:57]Write to MH i2c: D1 01 00 72 01 01 45 [17:53:57]Write i2c OK [17:53:57]MH_I2C_Read... [17:53:57]Read from MH i2c: D1 [17:53:57]MH_I2C_Read... [17:53:57]Read from MH i2c: D1 01 00 [17:53:57]MH_I2C_Read... [17:53:57]Read from MH i2c: D1 01 00 72 01 00 44 [17:53:57]Write to MH i2c: 01 00 00 73 01 74 [17:53:57]Write i2c OK [17:53:57]MH_I2C_Read... [17:53:57]OFD Sender: No OFD packet to send [17:53:57]*** Cut start [17:53:57]*** Partial cut [17:53:57]*** CUTSNS_PIN = 1 [17:53:58]*** CUTSNS_PIN = 0 [17:53:58]*** Brake cut motor [17:53:58]Read from MH i2c: 01 [17:53:58]MH_I2C_Read... [17:53:58]*** Stop cut motor [17:53:58]*** Cut end [17:53:58]Read from MH i2c: 01 07 00 [17:53:58]MH_I2C_Read... [17:53:58]Read from MH i2c: 01 07 00 73 01 00 00 00 00 00 FF 0F 89 [17:53:58]process_action close_receipt done [17:53:58]requested_data is exist [17:53:58]produce_requested_data [17:53:58]requested_item fm.sn is exist - process it [17:53:58]wFMCommunicate request_size=4 [17:53:58]MH_SAM_APDU [17:53:58]CAPDU: 80 11 00 00 [17:53:58]Write to MH i2c: E2 08 00 74 01 80 11 00 00 00 00 00 00 EF [17:53:58]Write i2c OK [17:53:58]MH_I2C_Read... [17:53:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:58]Read from MH i2c: E2 [17:53:58]MH_I2C_Read... [17:53:58]Read from MH i2c: E2 17 00 [17:53:58]MH_I2C_Read... [17:53:58]Read from MH i2c: E2 17 00 74 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 45 [17:53:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:53:58]wFMCommunicate OK [17:53:58]requested_item fd.num is exist - process it [17:53:58]SAM_PROTO_GetFieldsCounters [17:53:58]wFMCommunicate request_size=4 [17:53:58]MH_SAM_APDU [17:53:58]CAPDU: 80 13 00 00 [17:53:58]Write to MH i2c: E2 08 00 75 01 80 13 00 00 00 00 00 00 F2 [17:53:58]Write i2c OK [17:53:58]MH_I2C_Read... [17:53:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:53:58]Read from MH i2c: E2 [17:53:58]MH_I2C_Read... [17:53:58]Read from MH i2c: E2 62 00 [17:53:58]MH_I2C_Read... [17:53:58]Read from MH i2c: E2 62 00 75 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0D 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 84 [17:53: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0D 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:53:58]wFMCommunicate OK [17:53:58]SAM_PROTO_GetFieldsCounters done [17:53:58]requested_item shift.num is exist - process it [17:53:58]requested_item shift.opened is exist - process it [17:53:58]req_shift_opened [17:53:58]FM_GetShiftState [17:53:58]SAM_PROTO_GetShiftState [17:53:58]wFMCommunicate request_size=4 [17:53:58]MH_SAM_APDU [17:53:58]CAPDU: 80 13 01 00 [17:53:58]Write to MH i2c: E2 08 00 76 01 80 13 01 00 00 00 00 00 F4 [17:53:58]Write i2c OK [17:53:58]MH_I2C_Read... [17:53:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:58]Read from MH i2c: E2 [17:53:58]MH_I2C_Read... [17:53:58]Read from MH i2c: E2 0E 00 [17:53:58]MH_I2C_Read... [17:53:58]Read from MH i2c: E2 0E 00 76 01 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 CD [17:53:58]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [17:53:58]wFMCommunicate OK [17:53:58]SAM_PROTO_GetShiftState done [17:53:58]FM_GetShiftState done [17:53:58]req_shift_opened done [17:53:58]requested_item shift.open_date is exist - process it [17:53:58]req_shift_open_date [17:53:58]req_shift_open_date done [17:53:58]produce_requested_data done [17:53:58]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165389,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [17:53:58]process_action_free close_receipt [17:53:58]json_value_free [17:53:58]json_value_free done [17:53:58]process_json_proto returns [17:53:58]Send response to host [17:53:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165389,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [17:53:58]free response buf [17:53:58]execute_script done [17:53:58]execute_script returns [17:53:58]free content buf [17:53:58]Sock 9.Close socket [17:53:58]Sock 9.Thread stoped [17:54:02]OFD Sender: No OFD packet to send [17:54:07]OFD Sender: No OFD packet to send [17:54:12]OFD Sender: No OFD packet to send [17:54:17]OFD Sender: No OFD packet to send [17:54:22]OFD Sender: No OFD packet to send [17:54:27]OFD Sender: No OFD packet to send [17:54:32]OFD Sender: No OFD packet to send [17:54:37]OFD Sender: No OFD packet to send [17:54:42]OFD Sender: No OFD packet to send [17:54:47]OFD Sender: No OFD packet to send [17:54:52]OFD Sender: No OFD packet to send [17:54:57]OFD Sender: No OFD packet to send [17:55:02]OFD Sender: No OFD packet to send [17:55:07]OFD Sender: No OFD packet to send [17:55:12]OFD Sender: No OFD packet to send [17:55:17]OFD Sender: No OFD packet to send [17:55:22]OFD Sender: No OFD packet to send [17:55:27]OFD Sender: No OFD packet to send [17:55:32]OFD Sender: No OFD packet to send [17:55:37]OFD Sender: No OFD packet to send [17:55:42]OFD Sender: No OFD packet to send [17:55:47]OFD Sender: No OFD packet to send [17:55:52]OFD Sender: No OFD packet to send [17:55:57]OFD Sender: No OFD packet to send [17:56:02]OFD Sender: No OFD packet to send [17:56:07]OFD Sender: No OFD packet to send [17:56:12]OFD Sender: No OFD packet to send [17:56:17]OFD Sender: No OFD packet to send [17:56:22]OFD Sender: No OFD packet to send [17:56:27]OFD Sender: No OFD packet to send [17:56:32]OFD Sender: No OFD packet to send [17:56:37]OFD Sender: No OFD packet to send [17:56:42]OFD Sender: No OFD packet to send [17:56:47]OFD Sender: No OFD packet to send [17:56:52]OFD Sender: No OFD packet to send [17:56:57]OFD Sender: No OFD packet to send [17:57:02]OFD Sender: No OFD packet to send [17:57:07]OFD Sender: No OFD packet to send [17:57:12]OFD Sender: No OFD packet to send [17:57:17]OFD Sender: No OFD packet to send [17:57:22]OFD Sender: No OFD packet to send [17:57:27]OFD Sender: No OFD packet to send [17:57:29]accept exits with 7 [17:57:29]New connection [17:57:29]New thread 3067153764 created [17:57:29]Thread 3067297124 joined [17:57:29]Waiting for new connection... [17:57:29] Sock 7.Parse request [17:57:29]Sock 7.Check first char [17:57:29]Sock 7.First char is OK [17:57:29]request: POST /json_proto HTTP/1.0 [17:57:29]Method: POST [17:57:29]URL: /json_proto [17:57:29]Method is POST - this is cgi request [17:57:29]url: /json_proto [17:57:29]query_string will be loaded in cgi processing [17:57:29]execute_cgi json_proto POST (null) [17:57:29]execute_cgi path=json_proto method=POST [17:57:29]POST find Content-Length [17:57:29]Host: 172.17.56.4:8080 [17:57:29]Content-Length: 674 [17:57:29]Content-Type: application/json [17:57:29] [17:57:29]POST finish read [17:57:29]Found Content-Length = 674 [17:57:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459504", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 2.090, "sum" : 150.27, "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" ] } } [17:57:29]execute_script... [17:57: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)459504", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 2.090, "sum" : 150.27, "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" ] } } [17:57:29]POST & json_proto [17:57:29]process_json_proto [17:57:29]json parsed OK: [17:57:29]protocol is kg_v1.0 [17:57:29]action value=close_receipt [17:57:29]process_action close_receipt [17:57:29]cmd_close_receipt [17:57:29]MH_GetDate [17:57:29]Write to MH i2c: F0 00 00 77 01 67 [17:57:29]Write i2c OK [17:57:29]MH_I2C_Read... [17:57:29]Read from MH i2c: F0 [17:57:29]MH_I2C_Read... [17:57:29]Read from MH i2c: F0 09 00 [17:57:29]MH_I2C_Read... [17:57:29]Read from MH i2c: F0 09 00 77 01 00 09 63 95 66 C9 DC B2 64 92 [17:57:29]GetLastDocTimeStamp 1721066034 [17:57:29]current date 1721066249 [17:57:29]FM_GetShiftState [17:57:29]SAM_PROTO_GetShiftState [17:57:29]wFMCommunicate request_size=4 [17:57:29]MH_SAM_APDU [17:57:29]CAPDU: 80 13 01 00 [17:57:29]Write to MH i2c: E2 08 00 78 01 80 13 01 00 00 00 00 00 F6 [17:57:29]Write i2c OK [17:57:29]MH_I2C_Read... [17:57:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:29]Read from MH i2c: E2 [17:57:29]MH_I2C_Read... [17:57:29]Read from MH i2c: E2 0E 00 [17:57:29]MH_I2C_Read... [17:57:29]Read from MH i2c: E2 0E 00 78 01 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 CF [17:57:29]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [17:57:29]wFMCommunicate OK [17:57:29]SAM_PROTO_GetShiftState done [17:57:29]FM_GetShiftState done [17:57:29]opened in 1721003876 [17:57:29]opened+sec_in_day 1721090276 [17:57:29]quantity*price = 15027 [17:57:29]sum+1 = 15028 [17:57:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.96 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 263 15.07.2024 17:57 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165390 ФПД: 279720092564192 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T175729&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165390&fm=279720092564192&tin=02508201610067®Number=0000000000090829&sum=15000 [17:57:30]StoreToDocumentArchive [17:57:30]shift 448 fd 165390 [17:57:30]save to /storage/0448/doc_00165390 [17:57:30]save last doc name /storage/0448/doc_00165390 to /storage/kkm_last_doc_name [17:57:30]save OK [17:57:30]Clear old archive folders... [17:57:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:57:30]tlvbuf is 00836740 [17:57:30]SAM_PROTO_ClearQueue [17:57:30]wFMCommunicate request_size=4 [17:57:30]MH_SAM_APDU [17:57:30]CAPDU: 80 09 00 00 [17:57:30]Write to MH i2c: E2 08 00 85 01 80 09 00 00 00 00 00 00 F8 [17:57:30]Write i2c OK [17:57:30]MH_I2C_Read... [17:57:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:57:30]Read from MH i2c: E2 [17:57:30]MH_I2C_Read... [17:57:30]Read from MH i2c: E2 03 00 [17:57:30]MH_I2C_Read... [17:57:30]Read from MH i2c: E2 03 00 85 01 00 90 00 FA [17:57:30]RAPDU: 90 00 [17:57:30]wFMCommunicate OK [17:57:30]SAM_PROTO_ClearQueue done [17:57:30]KKMCreateOFDPacket [17:57:30]OFDProtocolAddRootSTLVToBuf [17:57:30]FM_MakeSignedData [17:57:30]FM_MakeSignedData [17:57:30]SAM_PROTO_SignData [17:57:30]wFMCommunicate request_size=4 [17:57:30]MH_SAM_APDU [17:57:30]CAPDU: 80 0D 01 02 [17:57:30]Write to MH i2c: E2 08 00 86 01 80 0D 01 02 00 00 00 00 00 [17:57:30]Write i2c OK [17:57:30]MH_I2C_Read... [17:57:30]Read from MH i2c: E2 [17:57:30]MH_I2C_Read... [17:57:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:57:30]Read from MH i2c: E2 03 00 [17:57:30]MH_I2C_Read... [17:57:30]Read from MH i2c: E2 03 00 86 01 00 90 00 FB [17:57:30]RAPDU: 90 00 [17:57:30]wFMCommunicate OK [17:57:30]wFMCommunicate request_size=255 [17:57:30]MH_SAM_APDU [17:57:30]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 08 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B3 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 07 01 00 00 F4 03 04 00 09 63 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0E 86 02 00 35 04 06 00 FE 67 68 C0 [17:57:30]Write to MH i2c: E2 02 01 87 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 08 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B3 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 07 01 00 00 F4 03 04 00 09 63 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0E 86 02 00 35 04 06 00 FE 67 68 C0 00 00 72 [17:57:30]Write i2c OK [17:57:30]MH_I2C_Read... [17:57:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:30]Read from MH i2c: E2 [17:57:30]MH_I2C_Read... [17:57:30]Read from MH i2c: E2 03 00 [17:57:30]MH_I2C_Read... [17:57:30]Read from MH i2c: E2 03 00 87 01 00 90 00 FC [17:57:30]RAPDU: 90 00 [17:57:30]wFMCommunicate OK [17:57:30]wFMCommunicate request_size=7 [17:57:30]MH_SAM_APDU [17:57:30]CAPDU: 80 0D 02 02 02 FA E0 [17:57:30]Write to MH i2c: E2 0A 00 88 01 80 0D 02 02 02 00 FA E0 00 00 E1 [17:57:30]Write i2c OK [17:57:30]MH_I2C_Read... [17:57:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:30]Read from MH i2c: E2 [17:57:30]MH_I2C_Read... [17:57:30]Read from MH i2c: E2 03 00 [17:57:30]MH_I2C_Read... [17:57:30]Read from MH i2c: E2 03 00 88 01 00 90 00 FD [17:57:30]RAPDU: 90 00 [17:57:30]wFMCommunicate OK [17:57:30]wFMCommunicate request_size=4 [17:57:30]MH_SAM_APDU [17:57:30]CAPDU: 80 0D 03 02 [17:57:30]Write to MH i2c: E2 08 00 89 01 80 0D 03 02 00 00 00 00 05 [17:57:30]Write i2c OK [17:57:30]MH_I2C_Read... [17:57:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:57:30]Read from MH i2c: E2 [17:57:30]MH_I2C_Read... [17:57:30]Read from MH i2c: E2 0B 00 [17:57:30]MH_I2C_Read... [17:57:30]Read from MH i2c: E2 0B 00 89 01 00 F7 74 AE F6 24 97 76 EB 90 00 31 [17:57:30]RAPDU: F7 74 AE F6 24 97 76 EB 90 00 [17:57:30]wFMCommunicate OK [17:57:30]SAM_PROTO_SignData done [17:57:30]FM_MakeSignedData done [17:57:30]CreateOFDProtocolMessage [17:57:30]wFMCommunicate request_size=4 [17:57:30]MH_SAM_APDU [17:57:30]CAPDU: 80 11 00 00 [17:57:30]Write to MH i2c: E2 08 00 8A 01 80 11 00 00 00 00 00 00 05 [17:57:30]Write i2c OK [17:57:30]MH_I2C_Read... [17:57:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:30]Read from MH i2c: E2 [17:57:30]MH_I2C_Read... [17:57:30]Read from MH i2c: E2 17 00 [17:57:30]MH_I2C_Read... [17:57:30]Read from MH i2c: E2 17 00 8A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5B [17:57:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:57:30]wFMCommunicate OK [17:57:30]CreateOFDProtocolMessage done [17:57:30]OFDSenderStorePacket 165390 [17:57:30]StoreOFDPacket docnum=165390 [17:57:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 AB 6D 04 01 1B B4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 08 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B3 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 07 01 00 00 F4 03 04 00 09 63 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0E 86 02 00 35 04 06 00 FE 67 68 C0 FA E0 F7 74 AE F6 24 97 76 EB [17:57:30]CheckFolder [17:57:30]dirname=/storage/ofd_packets [17:57:30]CheckFolder done [17:57:30]ProducePacketName [17:57:30]name=ofd_packets/00165390 [17:57:30]NVStorageSaveData ofd_packets/00165390 [17:57:30]File name is /storage/ofd_packets/00165390 [17:57:30]Write 298 bytes [17:57:30]NVStorageSaveData done [17:57:30]OFDSenderStorePacket done [17:57:30]KKMCreateOFDPacket done [17:57:30]NVStorageSaveData kkm_last_timestamp [17:57:30]File name is /storage/kkm_last_timestamp [17:57:30]Write 4 bytes [17:57:30]NVStorageSaveData done [17:57:30]ExternCall_PrintAddStr [17:57:30]wPrintStart [17:57:30]Write to MH i2c: 01 00 00 8B 01 8C [17:57:30]Write i2c OK [17:57:30]MH_I2C_Read... [17:57:30]Read from MH i2c: 01 [17:57:30]MH_I2C_Read... [17:57:30]Read from MH i2c: 01 07 00 [17:57:30]MH_I2C_Read... [17:57:30]Read from MH i2c: 01 07 00 8B 01 00 00 00 00 00 FF 0F A1 [17:57:30]RasterBufferAndPrint [17:57:30]line Счет N : (1)459504 [17:57:30]line ИНН: 02508201610067 [17:57:30]line Контрольно-Кассовый Чек [17:57:30]line ПРОДАЖА [17:57:30]line ТРК (МРК, ГНК) : 11 [17:57:30]line Товар: 2710194210 [17:57:30]line ДТ-К-5 [17:57:30]line 2.090 * 71.90 [17:57:30]line = 150.27 [17:57:30]line НДС 12% НСП 1% [17:57:30]line > о реализуемом товаре [17:57:30]line ОКРУГЛЕНИЕ: -0.27 [17:57:30]line ИТОГО: 150.00 [17:57:30]line Внесено: 150.00 [17:57:30]line СДАЧА: 0.00 [17:57:30]line НСП 1% : 1.33 [17:57:30]line НДС 12% : 15.96 [17:57:30]line Наличными: 150.00 [17:57:30]line Безнал.: 0.00 [17:57:30]line Место: АЗС № 72 "Партнер Нефть" [17:57:30]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:57:30]line СНО: Общий режим [17:57:30]line Чек 263 15.07.2024 17:57 [17:57:30]line Смена: 448 ФФД: 1.0 [17:57:31]line ЗНМ: 0300000160 [17:57:31]line РНМ: 0000000000090829 [17:57:31]line Версия ККМ: 001 [17:57:31]line ФМ: 0000000000874718 [17:57:31]line ФД: 165390 [17:57:31]line ФПД: 279720092564192 [17:57:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T175729&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165390&fm=279720092564192&tin=02508201610067®Number=0000000000090829&sum=15000 [17:57:31]OFD Sender: Processing packet 165390 [packets to send 106, broken 105] [17:57:31]ProducePacketName [17:57:31]name=ofd_packets/00165390 [17:57:31]OFD Sender: To server: pG, [17:57:31]CommunicateWithHost lk.salyk.kg:30040 [17:57:31]ConnectInit lk.salyk.kg [17:57:31]written 0, free lines is 4095 [17:57:31]Connected sock=10 [17:57: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 37 31 38 0C 01 00 00 AB 6D 04 01 1B B4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 08 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B3 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 07 01 00 00 F4 03 04 00 09 63 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0E 86 02 00 35 04 06 00 FE 67 68 C0 FA E0 F7 74 AE F6 24 97 76 EB [17:57:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 27 F6 47 00 F6 A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0E 86 02 00 F4 03 04 00 92 09 95 66 B6 04 01 00 00 97 26 17 41 14 EB A5 A2 [17:57:31]CommunicateWithHost err = 0 [17:57:31]CheckOFDResponse [17:57:31]1017 (14) - 77093643461234 [17:57:31]1041 (16) - 0000000000874718 [17:57:31]1040 (4) - 165390 [17:57:31]1012 (4) - 15.07.2024 11:35 [17:57:31]1206 (1) - 0 [17:57:31]OFD Sender: Remove packet 165390 [17:57:31]ProducePacketName [17:57:31]name=ofd_packets/00165390 [17:57:31]NVStorageDeleteData [17:57:31]Write to MH i2c: 01 00 00 B5 01 B6 [17:57:31]Write i2c OK [17:57:31]MH_I2C_Read... [17:57:31]Read from MH i2c: 01 [17:57:31]MH_I2C_Read... [17:57:31]Read from MH i2c: 01 07 00 [17:57:31]MH_I2C_Read... [17:57:31]Read from MH i2c: 01 07 00 B5 01 00 00 00 00 00 F9 0C C2 [17:57:31]RasterBufferAndPrint [17:57:31]line [17:57:31]line [17:57:31]line [17:57:31]line [17:57:31]line [17:57:31]written 0, free lines is 3327 [17:57:31]MH_Cut [17:57:31]Write to MH i2c: D1 01 00 BC 01 01 8F [17:57:31]Write i2c OK [17:57:31]MH_I2C_Read... [17:57:31]Read from MH i2c: D1 [17:57:31]MH_I2C_Read... [17:57:31]Read from MH i2c: D1 01 00 [17:57:31]MH_I2C_Read... [17:57:31]Read from MH i2c: D1 01 00 BC 01 00 8E [17:57:31]Write to MH i2c: 01 00 00 BD 01 BE [17:57:31]Write i2c OK [17:57:31]MH_I2C_Read... [17:57:31]OFD Sender: No OFD packet to send [17:57:32]*** Cut start [17:57:32]*** Partial cut [17:57:32]*** CUTSNS_PIN = 1 [17:57:32]*** CUTSNS_PIN = 0 [17:57:32]*** Brake cut motor [17:57:32]Read from MH i2c: 01 [17:57:32]MH_I2C_Read... [17:57:32]*** Stop cut motor [17:57:32]*** Cut end [17:57:32]Read from MH i2c: 01 07 00 [17:57:32]MH_I2C_Read... [17:57:32]Read from MH i2c: 01 07 00 BD 01 00 00 00 00 00 FF 0F D3 [17:57:32]process_action close_receipt done [17:57:32]requested_data is exist [17:57:32]produce_requested_data [17:57:32]requested_item fm.sn is exist - process it [17:57:32]wFMCommunicate request_size=4 [17:57:32]MH_SAM_APDU [17:57:32]CAPDU: 80 11 00 00 [17:57:32]Write to MH i2c: E2 08 00 BE 01 80 11 00 00 00 00 00 00 39 [17:57:32]Write i2c OK [17:57:32]MH_I2C_Read... [17:57:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:32]Read from MH i2c: E2 [17:57:32]MH_I2C_Read... [17:57:32]Read from MH i2c: E2 17 00 [17:57:32]MH_I2C_Read... [17:57:32]Read from MH i2c: E2 17 00 BE 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8F [17:57:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:57:32]wFMCommunicate OK [17:57:32]requested_item fd.num is exist - process it [17:57:32]SAM_PROTO_GetFieldsCounters [17:57:32]wFMCommunicate request_size=4 [17:57:32]MH_SAM_APDU [17:57:32]CAPDU: 80 13 00 00 [17:57:32]Write to MH i2c: E2 08 00 BF 01 80 13 00 00 00 00 00 00 3C [17:57:32]Write i2c OK [17:57:32]MH_I2C_Read... [17:57:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:57:33]Read from MH i2c: E2 [17:57:33]MH_I2C_Read... [17:57:33]Read from MH i2c: E2 62 00 [17:57:33]MH_I2C_Read... [17:57:33]Read from MH i2c: E2 62 00 BF 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0E 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 D2 [17:57: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0E 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:57:33]wFMCommunicate OK [17:57:33]SAM_PROTO_GetFieldsCounters done [17:57:33]requested_item shift.num is exist - process it [17:57:33]requested_item shift.opened is exist - process it [17:57:33]req_shift_opened [17:57:33]FM_GetShiftState [17:57:33]SAM_PROTO_GetShiftState [17:57:33]wFMCommunicate request_size=4 [17:57:33]MH_SAM_APDU [17:57:33]CAPDU: 80 13 01 00 [17:57:33]Write to MH i2c: E2 08 00 C0 01 80 13 01 00 00 00 00 00 3E [17:57:33]Write i2c OK [17:57:33]MH_I2C_Read... [17:57:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:33]Read from MH i2c: E2 [17:57:33]MH_I2C_Read... [17:57:33]Read from MH i2c: E2 0E 00 [17:57:33]MH_I2C_Read... [17:57:33]Read from MH i2c: E2 0E 00 C0 01 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 17 [17:57:33]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [17:57:33]wFMCommunicate OK [17:57:33]SAM_PROTO_GetShiftState done [17:57:33]FM_GetShiftState done [17:57:33]req_shift_opened done [17:57:33]requested_item shift.open_date is exist - process it [17:57:33]req_shift_open_date [17:57:33]req_shift_open_date done [17:57:33]produce_requested_data done [17:57:33]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165390,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [17:57:33]process_action_free close_receipt [17:57:33]json_value_free [17:57:33]json_value_free done [17:57:33]process_json_proto returns [17:57:33]Send response to host [17:57:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165390,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [17:57:33]free response buf [17:57:33]execute_script done [17:57:33]execute_script returns [17:57:33]free content buf [17:57:33]Sock 7.Close socket [17:57:33]Sock 7.Thread stoped [17:57:37]OFD Sender: No OFD packet to send [17:57:42]OFD Sender: No OFD packet to send [17:57:47]OFD Sender: No OFD packet to send [17:57:52]OFD Sender: No OFD packet to send [17:57:57]OFD Sender: No OFD packet to send [17:58:02]OFD Sender: No OFD packet to send [17:58:07]OFD Sender: No OFD packet to send [17:58:12]OFD Sender: No OFD packet to send [17:58:17]OFD Sender: No OFD packet to send [17:58:22]OFD Sender: No OFD packet to send [17:58:25]accept exits with 9 [17:58:25]New connection [17:58:25]New thread 3067297124 created [17:58:25]Thread 3067153764 joined [17:58:25]Waiting for new connection... [17:58:25] Sock 9.Parse request [17:58:25]Sock 9.Check first char [17:58:25]Sock 9.First char is OK [17:58:25]request: POST /json_proto HTTP/1.0 [17:58:25]Method: POST [17:58:25]URL: /json_proto [17:58:25]Method is POST - this is cgi request [17:58:25]url: /json_proto [17:58:25]query_string will be loaded in cgi processing [17:58:25]execute_cgi json_proto POST (null) [17:58:25]execute_cgi path=json_proto method=POST [17:58:25]POST find Content-Length [17:58:25]Host: 172.17.56.4:8080 [17:58:25]Content-Length: 677 [17:58:25]Content-Type: application/json [17:58:25] [17:58:25]POST finish read [17:58:25]Found Content-Length = 677 [17:58:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459505", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "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" ] } } [17:58:25]execute_script... [17:58: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)459505", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "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" ] } } [17:58:25]POST & json_proto [17:58:25]process_json_proto [17:58:25]json parsed OK: [17:58:25]protocol is kg_v1.0 [17:58:25]action value=close_receipt [17:58:25]process_action close_receipt [17:58:25]cmd_close_receipt [17:58:25]MH_GetDate [17:58:25]Write to MH i2c: F0 00 00 C1 01 B1 [17:58:25]Write i2c OK [17:58:25]MH_I2C_Read... [17:58:25]Read from MH i2c: F0 [17:58:25]MH_I2C_Read... [17:58:25]Read from MH i2c: F0 09 00 [17:58:25]MH_I2C_Read... [17:58:25]Read from MH i2c: F0 09 00 C1 01 00 41 63 95 66 C9 DC B2 64 14 [17:58:25]GetLastDocTimeStamp 1721066249 [17:58:25]current date 1721066305 [17:58:25]FM_GetShiftState [17:58:25]SAM_PROTO_GetShiftState [17:58:25]wFMCommunicate request_size=4 [17:58:25]MH_SAM_APDU [17:58:25]CAPDU: 80 13 01 00 [17:58:25]Write to MH i2c: E2 08 00 C2 01 80 13 01 00 00 00 00 00 40 [17:58:25]Write i2c OK [17:58:25]MH_I2C_Read... [17:58:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:25]Read from MH i2c: E2 [17:58:25]MH_I2C_Read... [17:58:25]Read from MH i2c: E2 0E 00 [17:58:25]MH_I2C_Read... [17:58:25]Read from MH i2c: E2 0E 00 C2 01 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 19 [17:58:25]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [17:58:25]wFMCommunicate OK [17:58:25]SAM_PROTO_GetShiftState done [17:58:25]FM_GetShiftState done [17:58:25]opened in 1721003876 [17:58:25]opened+sec_in_day 1721090276 [17:58:25]quantity*price = 60009 [17:58:25]sum+1 = 60011 [17:58:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 264 15.07.2024 17:58 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165391 ФПД: 144180209323359 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T175825&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165391&fm=144180209323359&tin=02508201610067®Number=0000000000090829&sum=60000 [17:58:26]StoreToDocumentArchive [17:58:26]shift 448 fd 165391 [17:58:26]save to /storage/0448/doc_00165391 [17:58:26]save last doc name /storage/0448/doc_00165391 to /storage/kkm_last_doc_name [17:58:26]save OK [17:58:26]Clear old archive folders... [17:58:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:58:26]tlvbuf is 0088E4A0 [17:58:26]SAM_PROTO_ClearQueue [17:58:26]wFMCommunicate request_size=4 [17:58:26]MH_SAM_APDU [17:58:26]CAPDU: 80 09 00 00 [17:58:26]Write to MH i2c: E2 08 00 CF 01 80 09 00 00 00 00 00 00 42 [17:58:26]Write i2c OK [17:58:26]MH_I2C_Read... [17:58:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:58:26]Read from MH i2c: E2 [17:58:26]MH_I2C_Read... [17:58:26]Read from MH i2c: E2 03 00 [17:58:26]MH_I2C_Read... [17:58:26]Read from MH i2c: E2 03 00 CF 01 00 90 00 44 [17:58:26]RAPDU: 90 00 [17:58:26]wFMCommunicate OK [17:58:26]SAM_PROTO_ClearQueue done [17:58:26]KKMCreateOFDPacket [17:58:26]OFDProtocolAddRootSTLVToBuf [17:58:26]FM_MakeSignedData [17:58:26]FM_MakeSignedData [17:58:26]SAM_PROTO_SignData [17:58:26]wFMCommunicate request_size=4 [17:58:26]MH_SAM_APDU [17:58:26]CAPDU: 80 0D 01 02 [17:58:26]Write to MH i2c: E2 08 00 D0 01 80 0D 01 02 00 00 00 00 4A [17:58:26]Write i2c OK [17:58:26]MH_I2C_Read... [17:58:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:58:26]Read from MH i2c: E2 [17:58:26]MH_I2C_Read... [17:58:26]Read from MH i2c: E2 03 00 [17:58:26]MH_I2C_Read... [17:58:26]Read from MH i2c: E2 03 00 D0 01 00 90 00 45 [17:58:26]RAPDU: 90 00 [17:58:26]wFMCommunicate OK [17:58:26]wFMCommunicate request_size=255 [17:58:26]MH_SAM_APDU [17:58: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 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 41 63 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0F 86 02 00 35 04 06 00 83 [17:58:26]Write to MH i2c: E2 02 01 D1 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 41 63 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0F 86 02 00 35 04 06 00 83 00 00 67 [17:58:26]Write i2c OK [17:58:26]MH_I2C_Read... [17:58:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:26]Read from MH i2c: E2 [17:58:26]MH_I2C_Read... [17:58:26]Read from MH i2c: E2 03 00 [17:58:26]MH_I2C_Read... [17:58:26]Read from MH i2c: E2 03 00 D1 01 00 90 00 46 [17:58:26]RAPDU: 90 00 [17:58:26]wFMCommunicate OK [17:58:26]wFMCommunicate request_size=10 [17:58:26]MH_SAM_APDU [17:58:26]CAPDU: 80 0D 02 02 05 21 92 29 0D 5F [17:58:26]Write to MH i2c: E2 0D 00 D2 01 80 0D 02 02 05 00 21 92 29 0D 5F 00 00 9F [17:58:26]Write i2c OK [17:58:26]MH_I2C_Read... [17:58:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:26]Read from MH i2c: E2 [17:58:26]MH_I2C_Read... [17:58:26]Read from MH i2c: E2 03 00 [17:58:26]MH_I2C_Read... [17:58:26]Read from MH i2c: E2 03 00 D2 01 00 90 00 47 [17:58:26]RAPDU: 90 00 [17:58:26]wFMCommunicate OK [17:58:26]wFMCommunicate request_size=4 [17:58:26]MH_SAM_APDU [17:58:26]CAPDU: 80 0D 03 02 [17:58:26]Write to MH i2c: E2 08 00 D3 01 80 0D 03 02 00 00 00 00 4F [17:58:26]Write i2c OK [17:58:26]MH_I2C_Read... [17:58:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:58:26]Read from MH i2c: E2 [17:58:26]MH_I2C_Read... [17:58:26]Read from MH i2c: E2 0B 00 [17:58:26]MH_I2C_Read... [17:58:26]Read from MH i2c: E2 0B 00 D3 01 00 AE F4 8E AA E8 B9 4B ED 90 00 03 [17:58:26]RAPDU: AE F4 8E AA E8 B9 4B ED 90 00 [17:58:26]wFMCommunicate OK [17:58:26]SAM_PROTO_SignData done [17:58:26]FM_MakeSignedData done [17:58:26]CreateOFDProtocolMessage [17:58:26]wFMCommunicate request_size=4 [17:58:26]MH_SAM_APDU [17:58:26]CAPDU: 80 11 00 00 [17:58:26]Write to MH i2c: E2 08 00 D4 01 80 11 00 00 00 00 00 00 4F [17:58:26]Write i2c OK [17:58:26]MH_I2C_Read... [17:58:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:26]Read from MH i2c: E2 [17:58:26]MH_I2C_Read... [17:58:26]Read from MH i2c: E2 17 00 [17:58:26]MH_I2C_Read... [17:58:26]Read from MH i2c: E2 17 00 D4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A5 [17:58:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:58:26]wFMCommunicate OK [17:58:26]CreateOFDProtocolMessage done [17:58:26]OFDSenderStorePacket 165391 [17:58:26]StoreOFDPacket docnum=165391 [17:58:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 56 DB 07 01 A3 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 41 63 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0F 86 02 00 35 04 06 00 83 21 92 29 0D 5F AE F4 8E AA E8 B9 4B ED [17:58:26]CheckFolder [17:58:26]dirname=/storage/ofd_packets [17:58:26]CheckFolder done [17:58:26]ProducePacketName [17:58:26]name=ofd_packets/00165391 [17:58:26]NVStorageSaveData ofd_packets/00165391 [17:58:26]File name is /storage/ofd_packets/00165391 [17:58:26]Write 301 bytes [17:58:26]NVStorageSaveData done [17:58:26]OFDSenderStorePacket done [17:58:26]KKMCreateOFDPacket done [17:58:26]NVStorageSaveData kkm_last_timestamp [17:58:26]File name is /storage/kkm_last_timestamp [17:58:26]Write 4 bytes [17:58:26]NVStorageSaveData done [17:58:26]ExternCall_PrintAddStr [17:58:26]wPrintStart [17:58:26]Write to MH i2c: 01 00 00 D5 01 D6 [17:58:26]Write i2c OK [17:58:26]MH_I2C_Read... [17:58:26]Read from MH i2c: 01 [17:58:26]MH_I2C_Read... [17:58:26]Read from MH i2c: 01 07 00 [17:58:26]MH_I2C_Read... [17:58:26]Read from MH i2c: 01 07 00 D5 01 00 00 00 00 00 FF 0F EB [17:58:26]RasterBufferAndPrint [17:58:26]line Счет N : (1)459505 [17:58:26]line ИНН: 02508201610067 [17:58:26]line Контрольно-Кассовый Чек [17:58:26]line ПРОДАЖА [17:58:26]line ТРК (МРК, ГНК) : 12 [17:58:26]line Товар: 2710124130 [17:58:26]line Аи-92-К-5 [17:58:26]line 9.120 * 65.80 [17:58:26]line = 600.10 [17:58:26]line НДС 12% НСП 1% [17:58:26]line > о реализуемом товаре [17:58:26]line ОКРУГЛЕНИЕ: -0.10 [17:58:26]line ИТОГО: 600.00 [17:58:26]line Внесено: 600.00 [17:58:26]line СДАЧА: 0.00 [17:58:26]line НСП 1% : 5.31 [17:58:26]line НДС 12% : 63.73 [17:58:26]line Наличными: 600.00 [17:58:26]line Безнал.: 0.00 [17:58:26]line Место: АЗС № 72 "Партнер Нефть" [17:58:26]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [17:58:26]line СНО: Общий режим [17:58:26]line Чек 264 15.07.2024 17:58 [17:58:26]line Смена: 448 ФФД: 1.0 [17:58:26]line ЗНМ: 0300000160 [17:58:26]line РНМ: 0000000000090829 [17:58:26]line Версия ККМ: 001 [17:58:26]line ФМ: 0000000000874718 [17:58:26]line ФД: 165391 [17:58:26]line ФПД: 144180209323359 [17:58:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T175825&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165391&fm=144180209323359&tin=02508201610067®Number=0000000000090829&sum=60000 [17:58:27]written 0, free lines is 4095 [17:58:27]OFD Sender: Processing packet 165391 [packets to send 106, broken 105] [17:58:27]ProducePacketName [17:58:27]name=ofd_packets/00165391 [17:58:27]OFD Sender: To server: pG, [17:58:27]CommunicateWithHost lk.salyk.kg:30040 [17:58:27]ConnectInit lk.salyk.kg [17:58:27]Connected sock=10 [17:58: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 37 31 38 0F 01 00 00 56 DB 07 01 A3 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 41 63 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0F 86 02 00 35 04 06 00 83 21 92 29 0D 5F AE F4 8E AA E8 B9 4B ED [17:58:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 F0 90 47 00 61 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 0F 86 02 00 F4 03 04 00 CB 09 95 66 B6 04 01 00 00 94 17 98 7D 49 92 95 FD [17:58:27]CommunicateWithHost err = 0 [17:58:27]CheckOFDResponse [17:58:27]1017 (14) - 77093643461234 [17:58:27]1041 (16) - 0000000000874718 [17:58:27]1040 (4) - 165391 [17:58:27]1012 (4) - 15.07.2024 11:36 [17:58:27]1206 (1) - 0 [17:58:27]OFD Sender: Remove packet 165391 [17:58:27]ProducePacketName [17:58:27]name=ofd_packets/00165391 [17:58:27]NVStorageDeleteData [17:58:27]Write to MH i2c: 01 00 00 FF 01 00 [17:58:27]Write i2c OK [17:58:27]MH_I2C_Read... [17:58:27]Read from MH i2c: 01 [17:58:27]MH_I2C_Read... [17:58:27]Read from MH i2c: 01 07 00 [17:58:27]MH_I2C_Read... [17:58:27]Read from MH i2c: 01 07 00 FF 01 00 00 00 00 00 FB 0C 0E [17:58:27]RasterBufferAndPrint [17:58:27]line [17:58:27]line [17:58:27]line [17:58:27]line [17:58:27]line [17:58:27]written 0, free lines is 3329 [17:58:27]MH_Cut [17:58:27]Write to MH i2c: D1 01 00 06 02 01 DA [17:58:27]Write i2c OK [17:58:27]MH_I2C_Read... [17:58:27]Read from MH i2c: D1 [17:58:27]MH_I2C_Read... [17:58:27]Read from MH i2c: D1 01 00 [17:58:27]MH_I2C_Read... [17:58:27]Read from MH i2c: D1 01 00 06 02 00 D9 [17:58:27]Write to MH i2c: 01 00 00 07 02 09 [17:58:27]Write i2c OK [17:58:27]MH_I2C_Read... [17:58:28]OFD Sender: No OFD packet to send [17:58:28]*** Cut start [17:58:28]*** Partial cut [17:58:28]*** CUTSNS_PIN = 1 [17:58:28]*** CUTSNS_PIN = 0 [17:58:28]*** Brake cut motor [17:58:29]Read from MH i2c: 01 [17:58:29]MH_I2C_Read... [17:58:29]*** Stop cut motor [17:58:29]*** Cut end [17:58:29]Read from MH i2c: 01 07 00 [17:58:29]MH_I2C_Read... [17:58:29]Read from MH i2c: 01 07 00 07 02 00 00 00 00 00 FF 0F 1E [17:58:29]process_action close_receipt done [17:58:29]requested_data is exist [17:58:29]produce_requested_data [17:58:29]requested_item fm.sn is exist - process it [17:58:29]wFMCommunicate request_size=4 [17:58:29]MH_SAM_APDU [17:58:29]CAPDU: 80 11 00 00 [17:58:29]Write to MH i2c: E2 08 00 08 02 80 11 00 00 00 00 00 00 84 [17:58:29]Write i2c OK [17:58:29]MH_I2C_Read... [17:58:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:29]Read from MH i2c: E2 [17:58:29]MH_I2C_Read... [17:58:29]Read from MH i2c: E2 17 00 [17:58:29]MH_I2C_Read... [17:58:29]Read from MH i2c: E2 17 00 08 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DA [17:58:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [17:58:29]wFMCommunicate OK [17:58:29]requested_item fd.num is exist - process it [17:58:29]SAM_PROTO_GetFieldsCounters [17:58:29]wFMCommunicate request_size=4 [17:58:29]MH_SAM_APDU [17:58:29]CAPDU: 80 13 00 00 [17:58:29]Write to MH i2c: E2 08 00 09 02 80 13 00 00 00 00 00 00 87 [17:58:29]Write i2c OK [17:58:29]MH_I2C_Read... [17:58:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:58:29]Read from MH i2c: E2 [17:58:29]MH_I2C_Read... [17:58:29]Read from MH i2c: E2 62 00 [17:58:29]MH_I2C_Read... [17:58:29]Read from MH i2c: E2 62 00 09 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0F 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 21 [17:58: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 0F 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:58:29]wFMCommunicate OK [17:58:29]SAM_PROTO_GetFieldsCounters done [17:58:29]requested_item shift.num is exist - process it [17:58:29]requested_item shift.opened is exist - process it [17:58:29]req_shift_opened [17:58:29]FM_GetShiftState [17:58:29]SAM_PROTO_GetShiftState [17:58:29]wFMCommunicate request_size=4 [17:58:29]MH_SAM_APDU [17:58:29]CAPDU: 80 13 01 00 [17:58:29]Write to MH i2c: E2 08 00 0A 02 80 13 01 00 00 00 00 00 89 [17:58:29]Write i2c OK [17:58:29]MH_I2C_Read... [17:58:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:29]Read from MH i2c: E2 [17:58:29]MH_I2C_Read... [17:58:29]Read from MH i2c: E2 0E 00 [17:58:29]MH_I2C_Read... [17:58:29]Read from MH i2c: E2 0E 00 0A 02 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 62 [17:58:29]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [17:58:29]wFMCommunicate OK [17:58:29]SAM_PROTO_GetShiftState done [17:58:29]FM_GetShiftState done [17:58:29]req_shift_opened done [17:58:29]requested_item shift.open_date is exist - process it [17:58:29]req_shift_open_date [17:58:29]req_shift_open_date done [17:58:29]produce_requested_data done [17:58:29]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165391,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [17:58:29]process_action_free close_receipt [17:58:29]json_value_free [17:58:29]json_value_free done [17:58:29]process_json_proto returns [17:58:29]Send response to host [17:58:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165391,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [17:58:29]free response buf [17:58:29]execute_script done [17:58:29]execute_script returns [17:58:29]free content buf [17:58:29]Sock 9.Close socket [17:58:29]Sock 9.Thread stoped [17:58:33]OFD Sender: No OFD packet to send [17:58:38]OFD Sender: No OFD packet to send [17:58:43]OFD Sender: No OFD packet to send [17:58:48]OFD Sender: No OFD packet to send [17:58:53]OFD Sender: No OFD packet to send [17:58:58]OFD Sender: No OFD packet to send [17:59:03]OFD Sender: No OFD packet to send [17:59:08]OFD Sender: No OFD packet to send [17:59:13]OFD Sender: No OFD packet to send [17:59:18]OFD Sender: No OFD packet to send [17:59:23]OFD Sender: No OFD packet to send [17:59:28]OFD Sender: No OFD packet to send [17:59:33]OFD Sender: No OFD packet to send [17:59:38]OFD Sender: No OFD packet to send [17:59:43]OFD Sender: No OFD packet to send [17:59:48]OFD Sender: No OFD packet to send [17:59:53]OFD Sender: No OFD packet to send [17:59:58]OFD Sender: No OFD packet to send [18:00:03]OFD Sender: No OFD packet to send [18:00:08]OFD Sender: No OFD packet to send [18:00:13]OFD Sender: No OFD packet to send [18:00:18]OFD Sender: No OFD packet to send [18:00:23]OFD Sender: No OFD packet to send [18:00:28]OFD Sender: No OFD packet to send [18:00:33]OFD Sender: No OFD packet to send [18:00:38]OFD Sender: No OFD packet to send [18:00:43]OFD Sender: No OFD packet to send [18:00:48]OFD Sender: No OFD packet to send [18:00:53]OFD Sender: No OFD packet to send [18:00:58]OFD Sender: No OFD packet to send [18:01:03]OFD Sender: No OFD packet to send [18:01:08]OFD Sender: No OFD packet to send [18:01:13]OFD Sender: No OFD packet to send [18:01:18]OFD Sender: No OFD packet to send [18:01:23]OFD Sender: No OFD packet to send [18:01:28]OFD Sender: No OFD packet to send [18:01:33]OFD Sender: No OFD packet to send [18:01:38]OFD Sender: No OFD packet to send [18:01:43]OFD Sender: No OFD packet to send [18:01:48]OFD Sender: No OFD packet to send [18:01:49]accept exits with 7 [18:01:49]New connection [18:01:49]New thread 3067153764 created [18:01:49]Thread 3067297124 joined [18:01:49]Waiting for new connection... [18:01:49] Sock 7.Parse request [18:01:49]Sock 7.Check first char [18:01:49]Sock 7.First char is OK [18:01:49]request: POST /json_proto HTTP/1.0 [18:01:49]Method: POST [18:01:49]URL: /json_proto [18:01:49]Method is POST - this is cgi request [18:01:49]url: /json_proto [18:01:49]query_string will be loaded in cgi processing [18:01:49]execute_cgi json_proto POST (null) [18:01:49]execute_cgi path=json_proto method=POST [18:01:49]POST find Content-Length [18:01:49]Host: 172.17.56.4:8080 [18:01:49]Content-Length: 677 [18:01:49]Content-Type: application/json [18:01:49] [18:01:49]POST finish read [18:01:49]Found Content-Length = 677 [18:01:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459507", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:01:49]execute_script... [18:01:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459507", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:01:49]POST & json_proto [18:01:49]process_json_proto [18:01:49]json parsed OK: [18:01:49]protocol is kg_v1.0 [18:01:49]action value=close_receipt [18:01:49]process_action close_receipt [18:01:49]cmd_close_receipt [18:01:49]MH_GetDate [18:01:49]Write to MH i2c: F0 00 00 0B 02 FC [18:01:49]Write i2c OK [18:01:49]MH_I2C_Read... [18:01:49]Read from MH i2c: F0 [18:01:49]MH_I2C_Read... [18:01:49]Read from MH i2c: F0 09 00 [18:01:49]MH_I2C_Read... [18:01:49]Read from MH i2c: F0 09 00 0B 02 00 0D 64 95 66 C9 DC B2 64 2C [18:01:49]GetLastDocTimeStamp 1721066305 [18:01:49]current date 1721066509 [18:01:49]FM_GetShiftState [18:01:49]SAM_PROTO_GetShiftState [18:01:49]wFMCommunicate request_size=4 [18:01:49]MH_SAM_APDU [18:01:49]CAPDU: 80 13 01 00 [18:01:49]Write to MH i2c: E2 08 00 0C 02 80 13 01 00 00 00 00 00 8B [18:01:49]Write i2c OK [18:01:49]MH_I2C_Read... [18:01:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:49]Read from MH i2c: E2 [18:01:49]MH_I2C_Read... [18:01:49]Read from MH i2c: E2 0E 00 [18:01:49]MH_I2C_Read... [18:01:49]Read from MH i2c: E2 0E 00 0C 02 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 64 [18:01:49]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [18:01:49]wFMCommunicate OK [18:01:49]SAM_PROTO_GetShiftState done [18:01:49]FM_GetShiftState done [18:01:49]opened in 1721003876 [18:01:49]opened+sec_in_day 1721090276 [18:01:49]quantity*price = 50008 [18:01:49]sum+1 = 50009 [18:01:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 265 15.07.2024 18:01 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165392 ФПД: 202777217035811 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T180149&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165392&fm=202777217035811&tin=02508201610067®Number=0000000000090829&sum=50000 [18:01:50]StoreToDocumentArchive [18:01:50]shift 448 fd 165392 [18:01:50]save to /storage/0448/doc_00165392 [18:01:50]save last doc name /storage/0448/doc_00165392 to /storage/kkm_last_doc_name [18:01:50]save OK [18:01:50]Clear old archive folders... [18:01:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:01:50]tlvbuf is 00837AA0 [18:01:50]SAM_PROTO_ClearQueue [18:01:50]wFMCommunicate request_size=4 [18:01:50]MH_SAM_APDU [18:01:50]CAPDU: 80 09 00 00 [18:01:50]Write to MH i2c: E2 08 00 19 02 80 09 00 00 00 00 00 00 8D [18:01:50]Write i2c OK [18:01:50]MH_I2C_Read... [18:01:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:01:50]Read from MH i2c: E2 [18:01:50]MH_I2C_Read... [18:01:50]Read from MH i2c: E2 03 00 [18:01:50]MH_I2C_Read... [18:01:50]Read from MH i2c: E2 03 00 19 02 00 90 00 8F [18:01:50]RAPDU: 90 00 [18:01:50]wFMCommunicate OK [18:01:50]SAM_PROTO_ClearQueue done [18:01:50]KKMCreateOFDPacket [18:01:50]OFDProtocolAddRootSTLVToBuf [18:01:50]FM_MakeSignedData [18:01:50]FM_MakeSignedData [18:01:50]SAM_PROTO_SignData [18:01:50]wFMCommunicate request_size=4 [18:01:50]MH_SAM_APDU [18:01:50]CAPDU: 80 0D 01 02 [18:01:50]Write to MH i2c: E2 08 00 1A 02 80 0D 01 02 00 00 00 00 95 [18:01:50]Write i2c OK [18:01:50]MH_I2C_Read... [18:01:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:01:50]Read from MH i2c: E2 [18:01:50]MH_I2C_Read... [18:01:50]Read from MH i2c: E2 03 00 [18:01:50]MH_I2C_Read... [18:01:50]Read from MH i2c: E2 03 00 1A 02 00 90 00 90 [18:01:50]RAPDU: 90 00 [18:01:50]wFMCommunicate OK [18:01:50]wFMCommunicate request_size=255 [18:01:50]MH_SAM_APDU [18:01:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 0D 64 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 10 86 02 00 35 04 06 00 B8 [18:01:50]Write to MH i2c: E2 02 01 1B 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 0D 64 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 10 86 02 00 35 04 06 00 B8 00 00 95 [18:01:50]Write i2c OK [18:01:50]MH_I2C_Read... [18:01:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:51]Read from MH i2c: E2 [18:01:51]MH_I2C_Read... [18:01:51]Read from MH i2c: E2 03 00 [18:01:51]MH_I2C_Read... [18:01:51]Read from MH i2c: E2 03 00 1B 02 00 90 00 91 [18:01:51]RAPDU: 90 00 [18:01:51]wFMCommunicate OK [18:01:51]wFMCommunicate request_size=10 [18:01:51]MH_SAM_APDU [18:01:51]CAPDU: 80 0D 02 02 05 6C BF FD 6E 23 [18:01:51]Write to MH i2c: E2 0D 00 1C 02 80 0D 02 02 05 00 6C BF FD 6E 23 00 00 5B [18:01:51]Write i2c OK [18:01:51]MH_I2C_Read... [18:01:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:51]Read from MH i2c: E2 [18:01:51]MH_I2C_Read... [18:01:51]Read from MH i2c: E2 03 00 [18:01:51]MH_I2C_Read... [18:01:51]Read from MH i2c: E2 03 00 1C 02 00 90 00 92 [18:01:51]RAPDU: 90 00 [18:01:51]wFMCommunicate OK [18:01:51]wFMCommunicate request_size=4 [18:01:51]MH_SAM_APDU [18:01:51]CAPDU: 80 0D 03 02 [18:01:51]Write to MH i2c: E2 08 00 1D 02 80 0D 03 02 00 00 00 00 9A [18:01:51]Write i2c OK [18:01:51]MH_I2C_Read... [18:01:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:01:51]Read from MH i2c: E2 [18:01:51]MH_I2C_Read... [18:01:51]Read from MH i2c: E2 0B 00 [18:01:51]MH_I2C_Read... [18:01:51]Read from MH i2c: E2 0B 00 1D 02 00 24 D4 99 E2 76 33 B6 33 90 00 A0 [18:01:51]RAPDU: 24 D4 99 E2 76 33 B6 33 90 00 [18:01:51]wFMCommunicate OK [18:01:51]SAM_PROTO_SignData done [18:01:51]FM_MakeSignedData done [18:01:51]CreateOFDProtocolMessage [18:01:51]wFMCommunicate request_size=4 [18:01:51]MH_SAM_APDU [18:01:51]CAPDU: 80 11 00 00 [18:01:51]Write to MH i2c: E2 08 00 1E 02 80 11 00 00 00 00 00 00 9A [18:01:51]Write i2c OK [18:01:51]MH_I2C_Read... [18:01:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:51]Read from MH i2c: E2 [18:01:51]MH_I2C_Read... [18:01:51]Read from MH i2c: E2 17 00 [18:01:51]MH_I2C_Read... [18:01:51]Read from MH i2c: E2 17 00 1E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F0 [18:01:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:01:51]wFMCommunicate OK [18:01:51]CreateOFDProtocolMessage done [18:01:51]OFDSenderStorePacket 165392 [18:01:51]StoreOFDPacket docnum=165392 [18:01:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 41 87 07 01 3D D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 0D 64 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 10 86 02 00 35 04 06 00 B8 6C BF FD 6E 23 24 D4 99 E2 76 33 B6 33 [18:01:51]CheckFolder [18:01:51]dirname=/storage/ofd_packets [18:01:51]CheckFolder done [18:01:51]ProducePacketName [18:01:51]name=ofd_packets/00165392 [18:01:51]NVStorageSaveData ofd_packets/00165392 [18:01:51]File name is /storage/ofd_packets/00165392 [18:01:51]Write 301 bytes [18:01:51]NVStorageSaveData done [18:01:51]OFDSenderStorePacket done [18:01:51]KKMCreateOFDPacket done [18:01:51]NVStorageSaveData kkm_last_timestamp [18:01:51]File name is /storage/kkm_last_timestamp [18:01:51]Write 4 bytes [18:01:51]NVStorageSaveData done [18:01:51]ExternCall_PrintAddStr [18:01:51]wPrintStart [18:01:51]Write to MH i2c: 01 00 00 1F 02 21 [18:01:51]Write i2c OK [18:01:51]MH_I2C_Read... [18:01:51]Read from MH i2c: 01 [18:01:51]MH_I2C_Read... [18:01:51]Read from MH i2c: 01 07 00 [18:01:51]MH_I2C_Read... [18:01:51]Read from MH i2c: 01 07 00 1F 02 00 00 00 00 00 FF 0F 36 [18:01:51]RasterBufferAndPrint [18:01:51]line Счет N : (1)459507 [18:01:51]line ИНН: 02508201610067 [18:01:51]line Контрольно-Кассовый Чек [18:01:51]line ПРОДАЖА [18:01:51]line ТРК (МРК, ГНК) : 12 [18:01:51]line Товар: 2710124130 [18:01:51]line Аи-92-К-5 [18:01:51]line 7.600 * 65.80 [18:01:51]line = 500.08 [18:01:51]line НДС 12% НСП 1% [18:01:51]line > о реализуемом товаре [18:01:51]line ОКРУГЛЕНИЕ: -0.08 [18:01:51]line ИТОГО: 500.00 [18:01:51]line Внесено: 500.00 [18:01:51]line СДАЧА: 0.00 [18:01:51]line НСП 1% : 4.42 [18:01:51]line НДС 12% : 53.11 [18:01:51]line Наличными: 500.00 [18:01:51]line Безнал.: 0.00 [18:01:51]line Место: АЗС № 72 "Партнер Нефть" [18:01:51]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:01:51]line СНО: Общий режим [18:01:51]line Чек 265 15.07.2024 18:01 [18:01:51]line Смена: 448 ФФД: 1.0 [18:01:51]line ЗНМ: 0300000160 [18:01:51]line РНМ: 0000000000090829 [18:01:51]line Версия ККМ: 001 [18:01:51]line ФМ: 0000000000874718 [18:01:51]line ФД: 165392 [18:01:51]line ФПД: 202777217035811 [18:01:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T180149&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165392&fm=202777217035811&tin=02508201610067®Number=0000000000090829&sum=50000 [18:01:51]written 0, free lines is 4095 [18:01:51]OFD Sender: Processing packet 165392 [packets to send 106, broken 105] [18:01:51]ProducePacketName [18:01:51]name=ofd_packets/00165392 [18:01:51]OFD Sender: To server: pG, [18:01:51]CommunicateWithHost lk.salyk.kg:30040 [18:01:51]ConnectInit lk.salyk.kg [18:01:51]Connected sock=10 [18:01:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 41 87 07 01 3D D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 0D 64 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 10 86 02 00 35 04 06 00 B8 6C BF FD 6E 23 24 D4 99 E2 76 33 B6 33 [18:01:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 C3 F5 47 00 7C B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 10 86 02 00 F4 03 04 00 97 0A 95 66 B6 04 01 00 00 57 A8 CA 15 51 7B 64 59 [18:01:51]CommunicateWithHost err = 0 [18:01:51]CheckOFDResponse [18:01:51]1017 (14) - 77093643461234 [18:01:51]1041 (16) - 0000000000874718 [18:01:51]1040 (4) - 165392 [18:01:51]1012 (4) - 15.07.2024 11:40 [18:01:51]1206 (1) - 0 [18:01:51]OFD Sender: Remove packet 165392 [18:01:51]ProducePacketName [18:01:51]name=ofd_packets/00165392 [18:01:51]NVStorageDeleteData [18:01:52]Write to MH i2c: 01 00 00 49 02 4B [18:01:52]Write i2c OK [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: 01 [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: 01 07 00 [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: 01 07 00 49 02 00 00 00 00 00 F6 0C 54 [18:01:52]RasterBufferAndPrint [18:01:52]line [18:01:52]line [18:01:52]line [18:01:52]line [18:01:52]line [18:01:52]written 0, free lines is 3325 [18:01:52]MH_Cut [18:01:52]Write to MH i2c: D1 01 00 50 02 01 24 [18:01:52]Write i2c OK [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: D1 [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: D1 01 00 [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: D1 01 00 50 02 00 23 [18:01:52]Write to MH i2c: 01 00 00 51 02 53 [18:01:52]Write i2c OK [18:01:52]MH_I2C_Read... [18:01:52]OFD Sender: No OFD packet to send [18:01:52]*** Cut start [18:01:52]*** Partial cut [18:01:52]*** CUTSNS_PIN = 1 [18:01:52]*** CUTSNS_PIN = 0 [18:01:52]*** Brake cut motor [18:01:53]Read from MH i2c: 01 [18:01:53]MH_I2C_Read... [18:01:53]*** Stop cut motor [18:01:53]*** Cut end [18:01:53]Read from MH i2c: 01 07 00 [18:01:53]MH_I2C_Read... [18:01:53]Read from MH i2c: 01 07 00 51 02 00 00 00 00 00 FF 0F 68 [18:01:53]process_action close_receipt done [18:01:53]requested_data is exist [18:01:53]produce_requested_data [18:01:53]requested_item fm.sn is exist - process it [18:01:53]wFMCommunicate request_size=4 [18:01:53]MH_SAM_APDU [18:01:53]CAPDU: 80 11 00 00 [18:01:53]Write to MH i2c: E2 08 00 52 02 80 11 00 00 00 00 00 00 CE [18:01:53]Write i2c OK [18:01:53]MH_I2C_Read... [18:01:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:53]Read from MH i2c: E2 [18:01:53]MH_I2C_Read... [18:01:53]Read from MH i2c: E2 17 00 [18:01:53]MH_I2C_Read... [18:01:53]Read from MH i2c: E2 17 00 52 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 24 [18:01:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:01:53]wFMCommunicate OK [18:01:53]requested_item fd.num is exist - process it [18:01:53]SAM_PROTO_GetFieldsCounters [18:01:53]wFMCommunicate request_size=4 [18:01:53]MH_SAM_APDU [18:01:53]CAPDU: 80 13 00 00 [18:01:53]Write to MH i2c: E2 08 00 53 02 80 13 00 00 00 00 00 00 D1 [18:01:53]Write i2c OK [18:01:53]MH_I2C_Read... [18:01:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:01:53]Read from MH i2c: E2 [18:01:53]MH_I2C_Read... [18:01:53]Read from MH i2c: E2 62 00 [18:01:53]MH_I2C_Read... [18:01:53]Read from MH i2c: E2 62 00 53 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 10 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 6F [18:01: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 10 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:01:53]wFMCommunicate OK [18:01:53]SAM_PROTO_GetFieldsCounters done [18:01:53]requested_item shift.num is exist - process it [18:01:53]requested_item shift.opened is exist - process it [18:01:53]req_shift_opened [18:01:53]FM_GetShiftState [18:01:53]SAM_PROTO_GetShiftState [18:01:53]wFMCommunicate request_size=4 [18:01:53]MH_SAM_APDU [18:01:53]CAPDU: 80 13 01 00 [18:01:53]Write to MH i2c: E2 08 00 54 02 80 13 01 00 00 00 00 00 D3 [18:01:53]Write i2c OK [18:01:53]MH_I2C_Read... [18:01:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:53]Read from MH i2c: E2 [18:01:53]MH_I2C_Read... [18:01:53]Read from MH i2c: E2 0E 00 [18:01:53]MH_I2C_Read... [18:01:53]Read from MH i2c: E2 0E 00 54 02 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 AC [18:01:53]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [18:01:53]wFMCommunicate OK [18:01:53]SAM_PROTO_GetShiftState done [18:01:53]FM_GetShiftState done [18:01:53]req_shift_opened done [18:01:53]requested_item shift.open_date is exist - process it [18:01:53]req_shift_open_date [18:01:53]req_shift_open_date done [18:01:53]produce_requested_data done [18:01:53]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165392,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [18:01:53]process_action_free close_receipt [18:01:53]json_value_free [18:01:53]json_value_free done [18:01:53]process_json_proto returns [18:01:53]Send response to host [18:01:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165392,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [18:01:53]free response buf [18:01:53]execute_script done [18:01:53]execute_script returns [18:01:53]free content buf [18:01:53]Sock 7.Close socket [18:01:53]Sock 7.Thread stoped [18:01:57]OFD Sender: No OFD packet to send [18:01:59]accept exits with 9 [18:01:59]New connection [18:01:59]New thread 3067297124 created [18:01:59]Thread 3067153764 joined [18:01:59]Waiting for new connection... [18:01:59] Sock 9.Parse request [18:01:59]Sock 9.Check first char [18:01:59]Sock 9.First char is OK [18:01:59]request: POST /json_proto HTTP/1.0 [18:01:59]Method: POST [18:01:59]URL: /json_proto [18:01:59]Method is POST - this is cgi request [18:01:59]url: /json_proto [18:01:59]query_string will be loaded in cgi processing [18:01:59]execute_cgi json_proto POST (null) [18:01:59]execute_cgi path=json_proto method=POST [18:01:59]POST find Content-Length [18:01:59]Host: 172.17.56.4:8080 [18:01:59]Content-Length: 679 [18:01:59]Content-Type: application/json [18:01:59] [18:01:59]POST finish read [18:01:59]Found Content-Length = 679 [18:01:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459506", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 30.600, "sum" : 2200.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2200.00, "total" : 2200.00, "payments": [ { "type": 0, "sum" : 2200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:01:59]execute_script... [18:01: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)459506", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 30.600, "sum" : 2200.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2200.00, "total" : 2200.00, "payments": [ { "type": 0, "sum" : 2200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:01:59]POST & json_proto [18:01:59]process_json_proto [18:01:59]json parsed OK: [18:01:59]protocol is kg_v1.0 [18:01:59]action value=close_receipt [18:01:59]process_action close_receipt [18:01:59]cmd_close_receipt [18:01:59]MH_GetDate [18:01:59]Write to MH i2c: F0 00 00 55 02 46 [18:01:59]Write i2c OK [18:01:59]MH_I2C_Read... [18:01:59]Read from MH i2c: F0 [18:01:59]MH_I2C_Read... [18:01:59]Read from MH i2c: F0 09 00 [18:01:59]MH_I2C_Read... [18:01:59]Read from MH i2c: F0 09 00 55 02 00 17 64 95 66 C9 DC B2 64 80 [18:01:59]GetLastDocTimeStamp 1721066509 [18:01:59]current date 1721066519 [18:01:59]FM_GetShiftState [18:01:59]SAM_PROTO_GetShiftState [18:01:59]wFMCommunicate request_size=4 [18:01:59]MH_SAM_APDU [18:01:59]CAPDU: 80 13 01 00 [18:01:59]Write to MH i2c: E2 08 00 56 02 80 13 01 00 00 00 00 00 D5 [18:01:59]Write i2c OK [18:01:59]MH_I2C_Read... [18:01:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:59]Read from MH i2c: E2 [18:01:59]MH_I2C_Read... [18:01:59]Read from MH i2c: E2 0E 00 [18:01:59]MH_I2C_Read... [18:01:59]Read from MH i2c: E2 0E 00 56 02 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 AE [18:01:59]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [18:01:59]wFMCommunicate OK [18:01:59]SAM_PROTO_GetShiftState done [18:01:59]FM_GetShiftState done [18:01:59]opened in 1721003876 [18:01:59]opened+sec_in_day 1721090276 [18:01:59]quantity*price = 220014 [18:01:59]sum+1 = 220015 [18:01:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 2200.00 Внесено: 2200.00 СДАЧА: 0.00 НСП 1% : 19.47 НДС 12% : 233.64 Наличными: 2200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 266 15.07.2024 18:01 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165393 ФПД: 119106840284504 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T180159&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165393&fm=119106840284504&tin=02508201610067®Number=0000000000090829&sum=220000 [18:02:00]StoreToDocumentArchive [18:02:00]shift 448 fd 165393 [18:02:00]save to /storage/0448/doc_00165393 [18:02:00]save last doc name /storage/0448/doc_00165393 to /storage/kkm_last_doc_name [18:02:00]save OK [18:02:00]Clear old archive folders... [18:02:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:02:00]tlvbuf is 0088FA90 [18:02:00]SAM_PROTO_ClearQueue [18:02:00]wFMCommunicate request_size=4 [18:02:00]MH_SAM_APDU [18:02:00]CAPDU: 80 09 00 00 [18:02:00]Write to MH i2c: E2 08 00 63 02 80 09 00 00 00 00 00 00 D7 [18:02:00]Write i2c OK [18:02:00]MH_I2C_Read... [18:02:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:02:00]Read from MH i2c: E2 [18:02:00]MH_I2C_Read... [18:02:00]Read from MH i2c: E2 03 00 [18:02:00]MH_I2C_Read... [18:02:00]Read from MH i2c: E2 03 00 63 02 00 90 00 D9 [18:02:00]RAPDU: 90 00 [18:02:00]wFMCommunicate OK [18:02:00]SAM_PROTO_ClearQueue done [18:02:00]KKMCreateOFDPacket [18:02:00]OFDProtocolAddRootSTLVToBuf [18:02:00]FM_MakeSignedData [18:02:00]FM_MakeSignedData [18:02:00]SAM_PROTO_SignData [18:02:00]wFMCommunicate request_size=4 [18:02:00]MH_SAM_APDU [18:02:00]CAPDU: 80 0D 01 02 [18:02:00]Write to MH i2c: E2 08 00 64 02 80 0D 01 02 00 00 00 00 DF [18:02:00]Write i2c OK [18:02:00]MH_I2C_Read... [18:02:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:02:00]Read from MH i2c: E2 [18:02:00]MH_I2C_Read... [18:02:00]Read from MH i2c: E2 03 00 [18:02:00]MH_I2C_Read... [18:02:00]Read from MH i2c: E2 03 00 64 02 00 90 00 DA [18:02:00]RAPDU: 90 00 [18:02:00]wFMCommunicate OK [18:02:00]wFMCommunicate request_size=255 [18:02:00]MH_SAM_APDU [18:02:00]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 88 77 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 6E 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 17 64 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 11 86 02 00 35 04 06 00 6C 53 B8 E7 [18:02:00]Write to MH i2c: E2 02 01 65 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 88 77 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 6E 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 17 64 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 11 86 02 00 35 04 06 00 6C 53 B8 E7 00 00 35 [18:02:00]Write i2c OK [18:02:00]MH_I2C_Read... [18:02:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:02:01]Read from MH i2c: E2 [18:02:01]MH_I2C_Read... [18:02:01]Read from MH i2c: E2 03 00 [18:02:01]MH_I2C_Read... [18:02:01]Read from MH i2c: E2 03 00 65 02 00 90 00 DB [18:02:01]RAPDU: 90 00 [18:02:01]wFMCommunicate OK [18:02:01]wFMCommunicate request_size=7 [18:02:01]MH_SAM_APDU [18:02:01]CAPDU: 80 0D 02 02 02 CD 58 [18:02:01]Write to MH i2c: E2 0A 00 66 02 80 0D 02 02 02 00 CD 58 00 00 0B [18:02:01]Write i2c OK [18:02:01]MH_I2C_Read... [18:02:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:02:01]Read from MH i2c: E2 [18:02:01]MH_I2C_Read... [18:02:01]Read from MH i2c: E2 03 00 [18:02:01]MH_I2C_Read... [18:02:01]Read from MH i2c: E2 03 00 66 02 00 90 00 DC [18:02:01]RAPDU: 90 00 [18:02:01]wFMCommunicate OK [18:02:01]wFMCommunicate request_size=4 [18:02:01]MH_SAM_APDU [18:02:01]CAPDU: 80 0D 03 02 [18:02:01]Write to MH i2c: E2 08 00 67 02 80 0D 03 02 00 00 00 00 E4 [18:02:01]Write i2c OK [18:02:01]MH_I2C_Read... [18:02:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:02:01]Read from MH i2c: E2 [18:02:01]MH_I2C_Read... [18:02:01]Read from MH i2c: E2 0B 00 [18:02:01]MH_I2C_Read... [18:02:01]Read from MH i2c: E2 0B 00 67 02 00 12 2E 72 0E FB 7D 98 B3 90 00 68 [18:02:01]RAPDU: 12 2E 72 0E FB 7D 98 B3 90 00 [18:02:01]wFMCommunicate OK [18:02:01]SAM_PROTO_SignData done [18:02:01]FM_MakeSignedData done [18:02:01]CreateOFDProtocolMessage [18:02:01]wFMCommunicate request_size=4 [18:02:01]MH_SAM_APDU [18:02:01]CAPDU: 80 11 00 00 [18:02:01]Write to MH i2c: E2 08 00 68 02 80 11 00 00 00 00 00 00 E4 [18:02:01]Write i2c OK [18:02:01]MH_I2C_Read... [18:02:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:02:01]Read from MH i2c: E2 [18:02:01]MH_I2C_Read... [18:02:01]Read from MH i2c: E2 17 00 [18:02:01]MH_I2C_Read... [18:02:01]Read from MH i2c: E2 17 00 68 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3A [18:02:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:02:01]wFMCommunicate OK [18:02:01]CreateOFDProtocolMessage done [18:02:01]OFDSenderStorePacket 165393 [18:02:01]StoreOFDPacket docnum=165393 [18:02:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 56 CC 04 01 33 AF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 88 77 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 6E 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 17 64 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 11 86 02 00 35 04 06 00 6C 53 B8 E7 CD 58 12 2E 72 0E FB 7D 98 B3 [18:02:01]CheckFolder [18:02:01]dirname=/storage/ofd_packets [18:02:01]CheckFolder done [18:02:01]ProducePacketName [18:02:01]name=ofd_packets/00165393 [18:02:01]NVStorageSaveData ofd_packets/00165393 [18:02:01]File name is /storage/ofd_packets/00165393 [18:02:01]Write 298 bytes [18:02:01]NVStorageSaveData done [18:02:01]OFDSenderStorePacket done [18:02:01]KKMCreateOFDPacket done [18:02:01]NVStorageSaveData kkm_last_timestamp [18:02:01]File name is /storage/kkm_last_timestamp [18:02:01]Write 4 bytes [18:02:01]NVStorageSaveData done [18:02:01]ExternCall_PrintAddStr [18:02:01]wPrintStart [18:02:01]Write to MH i2c: 01 00 00 69 02 6B [18:02:01]Write i2c OK [18:02:01]MH_I2C_Read... [18:02:01]Read from MH i2c: 01 [18:02:01]MH_I2C_Read... [18:02:01]Read from MH i2c: 01 07 00 [18:02:01]MH_I2C_Read... [18:02:01]Read from MH i2c: 01 07 00 69 02 00 00 00 00 00 FF 0F 80 [18:02:01]RasterBufferAndPrint [18:02:01]line Счет N : (1)459506 [18:02:01]line ИНН: 02508201610067 [18:02:01]line Контрольно-Кассовый Чек [18:02:01]line ПРОДАЖА [18:02:01]line ТРК (МРК, ГНК) : 21 [18:02:01]line Товар: 2710194210 [18:02:01]line ДТ-К-5 [18:02:01]line 30.600 * 71.90 [18:02:01]line = 2200.14 [18:02:01]line НДС 12% НСП 1% [18:02:01]line > о реализуемом товаре [18:02:01]line ОКРУГЛЕНИЕ: -0.14 [18:02:01]line ИТОГО: 2200.00 [18:02:01]line Внесено: 2200.00 [18:02:01]line СДАЧА: 0.00 [18:02:01]line НСП 1% : 19.47 [18:02:01]line НДС 12% : 233.64 [18:02:01]line Наличными: 2200.00 [18:02:01]line Безнал.: 0.00 [18:02:01]line Место: АЗС № 72 "Партнер Нефть" [18:02:01]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:02:01]line СНО: Общий режим [18:02:01]line Чек 266 15.07.2024 18:01 [18:02:01]line Смена: 448 ФФД: 1.0 [18:02:01]line ЗНМ: 0300000160 [18:02:01]line РНМ: 0000000000090829 [18:02:01]line Версия ККМ: 001 [18:02:01]line ФМ: 0000000000874718 [18:02:01]line ФД: 165393 [18:02:01]line ФПД: 119106840284504 [18:02:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T180159&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165393&fm=119106840284504&tin=02508201610067®Number=0000000000090829&sum=220000 [18:02:01]OFD Sender: Processing packet 165393 [packets to send 106, broken 105] [18:02:01]ProducePacketName [18:02:01]name=ofd_packets/00165393 [18:02:01]OFD Sender: To server: pG, [18:02:01]CommunicateWithHost lk.salyk.kg:30040 [18:02:01]ConnectInit lk.salyk.kg [18:02:01]Connected sock=10 [18:02: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 37 31 38 0C 01 00 00 56 CC 04 01 33 AF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 88 77 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 6E 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 17 64 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 11 86 02 00 35 04 06 00 6C 53 B8 E7 CD 58 12 2E 72 0E FB 7D 98 B3 [18:02:01]written 0, free lines is 4095 [18:02:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 A5 7B 47 00 15 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 11 86 02 00 F4 03 04 00 A1 0A 95 66 B6 04 01 00 00 09 76 01 F6 52 AE E2 F8 [18:02:01]CommunicateWithHost err = 0 [18:02:01]CheckOFDResponse [18:02:01]1017 (14) - 77093643461234 [18:02:01]1041 (16) - 0000000000874718 [18:02:01]1040 (4) - 165393 [18:02:01]1012 (4) - 15.07.2024 11:40 [18:02:01]1206 (1) - 0 [18:02:01]OFD Sender: Remove packet 165393 [18:02:01]ProducePacketName [18:02:01]name=ofd_packets/00165393 [18:02:01]NVStorageDeleteData [18:02:02]Write to MH i2c: 01 00 00 93 02 95 [18:02:02]Write i2c OK [18:02:02]MH_I2C_Read... [18:02:02]Read from MH i2c: 01 [18:02:02]MH_I2C_Read... [18:02:02]Read from MH i2c: 01 07 00 [18:02:02]MH_I2C_Read... [18:02:02]Read from MH i2c: 01 07 00 93 02 00 00 00 00 00 05 0D AE [18:02:02]RasterBufferAndPrint [18:02:02]line [18:02:02]line [18:02:02]line [18:02:02]line [18:02:02]line [18:02:02]written 0, free lines is 3342 [18:02:02]MH_Cut [18:02:02]Write to MH i2c: D1 01 00 9A 02 01 6E [18:02:02]Write i2c OK [18:02:02]MH_I2C_Read... [18:02:02]Read from MH i2c: D1 [18:02:02]MH_I2C_Read... [18:02:02]Read from MH i2c: D1 01 00 [18:02:02]MH_I2C_Read... [18:02:02]Read from MH i2c: D1 01 00 9A 02 00 6D [18:02:02]Write to MH i2c: 01 00 00 9B 02 9D [18:02:02]Write i2c OK [18:02:02]MH_I2C_Read... [18:02:02]OFD Sender: No OFD packet to send [18:02:02]*** Cut start [18:02:02]*** Partial cut [18:02:02]*** CUTSNS_PIN = 1 [18:02:02]*** CUTSNS_PIN = 0 [18:02:03]*** Brake cut motor [18:02:03]Read from MH i2c: 01 [18:02:03]MH_I2C_Read... [18:02:03]*** Stop cut motor [18:02:03]*** Cut end [18:02:03]Read from MH i2c: 01 07 00 [18:02:03]MH_I2C_Read... [18:02:03]Read from MH i2c: 01 07 00 9B 02 00 00 00 00 00 FF 0F B2 [18:02:03]process_action close_receipt done [18:02:03]requested_data is exist [18:02:03]produce_requested_data [18:02:03]requested_item fm.sn is exist - process it [18:02:03]wFMCommunicate request_size=4 [18:02:03]MH_SAM_APDU [18:02:03]CAPDU: 80 11 00 00 [18:02:03]Write to MH i2c: E2 08 00 9C 02 80 11 00 00 00 00 00 00 18 [18:02:03]Write i2c OK [18:02:03]MH_I2C_Read... [18:02:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:02:03]Read from MH i2c: E2 [18:02:03]MH_I2C_Read... [18:02:03]Read from MH i2c: E2 17 00 [18:02:03]MH_I2C_Read... [18:02:03]Read from MH i2c: E2 17 00 9C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6E [18:02:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:02:03]wFMCommunicate OK [18:02:03]requested_item fd.num is exist - process it [18:02:03]SAM_PROTO_GetFieldsCounters [18:02:03]wFMCommunicate request_size=4 [18:02:03]MH_SAM_APDU [18:02:03]CAPDU: 80 13 00 00 [18:02:03]Write to MH i2c: E2 08 00 9D 02 80 13 00 00 00 00 00 00 1B [18:02:03]Write i2c OK [18:02:03]MH_I2C_Read... [18:02:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:02:03]Read from MH i2c: E2 [18:02:03]MH_I2C_Read... [18:02:03]Read from MH i2c: E2 62 00 [18:02:03]MH_I2C_Read... [18:02:03]Read from MH i2c: E2 62 00 9D 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 11 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 BD [18:02: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 11 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:02:03]wFMCommunicate OK [18:02:03]SAM_PROTO_GetFieldsCounters done [18:02:03]requested_item shift.num is exist - process it [18:02:03]requested_item shift.opened is exist - process it [18:02:03]req_shift_opened [18:02:03]FM_GetShiftState [18:02:03]SAM_PROTO_GetShiftState [18:02:03]wFMCommunicate request_size=4 [18:02:03]MH_SAM_APDU [18:02:03]CAPDU: 80 13 01 00 [18:02:03]Write to MH i2c: E2 08 00 9E 02 80 13 01 00 00 00 00 00 1D [18:02:03]Write i2c OK [18:02:03]MH_I2C_Read... [18:02:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:02:03]Read from MH i2c: E2 [18:02:03]MH_I2C_Read... [18:02:03]Read from MH i2c: E2 0E 00 [18:02:03]MH_I2C_Read... [18:02:03]Read from MH i2c: E2 0E 00 9E 02 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 F6 [18:02:03]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [18:02:03]wFMCommunicate OK [18:02:03]SAM_PROTO_GetShiftState done [18:02:03]FM_GetShiftState done [18:02:03]req_shift_opened done [18:02:03]requested_item shift.open_date is exist - process it [18:02:03]req_shift_open_date [18:02:03]req_shift_open_date done [18:02:03]produce_requested_data done [18:02:03]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165393,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [18:02:03]process_action_free close_receipt [18:02:03]json_value_free [18:02:03]json_value_free done [18:02:03]process_json_proto returns [18:02:03]Send response to host [18:02:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165393,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [18:02:03]free response buf [18:02:03]execute_script done [18:02:03]execute_script returns [18:02:03]free content buf [18:02:03]Sock 9.Close socket [18:02:03]Sock 9.Thread stoped [18:02:07]OFD Sender: No OFD packet to send [18:02:12]OFD Sender: No OFD packet to send [18:02:17]OFD Sender: No OFD packet to send [18:02:22]OFD Sender: No OFD packet to send [18:02:26]accept exits with 7 [18:02:26]New connection [18:02:26]New thread 3067153764 created [18:02:26]Thread 3067297124 joined [18:02:26]Waiting for new connection... [18:02:26] Sock 7.Parse request [18:02:26]Sock 7.Check first char [18:02:26]Sock 7.First char is OK [18:02:26]request: POST /json_proto HTTP/1.0 [18:02:26]Method: POST [18:02:26]URL: /json_proto [18:02:26]Method is POST - this is cgi request [18:02:26]url: /json_proto [18:02:26]query_string will be loaded in cgi processing [18:02:26]execute_cgi json_proto POST (null) [18:02:26]execute_cgi path=json_proto method=POST [18:02:26]POST find Content-Length [18:02:26]Host: 172.17.56.4:8080 [18:02:26]Content-Length: 678 [18:02:26]Content-Type: application/json [18:02:26] [18:02:26]POST finish read [18:02:26]Found Content-Length = 678 [18:02:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459508", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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" ] } } [18:02:26]execute_script... [18:02:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459508", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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" ] } } [18:02:26]POST & json_proto [18:02:26]process_json_proto [18:02:26]json parsed OK: [18:02:26]protocol is kg_v1.0 [18:02:26]action value=close_receipt [18:02:26]process_action close_receipt [18:02:26]cmd_close_receipt [18:02:26]MH_GetDate [18:02:26]Write to MH i2c: F0 00 00 9F 02 90 [18:02:26]Write i2c OK [18:02:26]MH_I2C_Read... [18:02:26]Read from MH i2c: F0 [18:02:26]MH_I2C_Read... [18:02:26]Read from MH i2c: F0 09 00 [18:02:26]MH_I2C_Read... [18:02:26]Read from MH i2c: F0 09 00 9F 02 00 32 64 95 66 C9 DC B2 64 E5 [18:02:26]GetLastDocTimeStamp 1721066519 [18:02:26]current date 1721066546 [18:02:26]FM_GetShiftState [18:02:26]SAM_PROTO_GetShiftState [18:02:26]wFMCommunicate request_size=4 [18:02:26]MH_SAM_APDU [18:02:26]CAPDU: 80 13 01 00 [18:02:26]Write to MH i2c: E2 08 00 A0 02 80 13 01 00 00 00 00 00 1F [18:02:26]Write i2c OK [18:02:26]MH_I2C_Read... [18:02:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:02:26]Read from MH i2c: E2 [18:02:26]MH_I2C_Read... [18:02:26]Read from MH i2c: E2 0E 00 [18:02:26]MH_I2C_Read... [18:02:26]Read from MH i2c: E2 0E 00 A0 02 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 F8 [18:02:26]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [18:02:26]wFMCommunicate OK [18:02:26]SAM_PROTO_GetShiftState done [18:02:26]FM_GetShiftState done [18:02:26]opened in 1721003876 [18:02:26]opened+sec_in_day 1721090276 [18:02:26]quantity*price = 70011 [18:02:26]sum+1 = 70012 [18:02:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 267 15.07.2024 18:02 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165394 ФПД: 126268422279350 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T180226&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165394&fm=126268422279350&tin=02508201610067®Number=0000000000090829&sum=70000 [18:02:27]StoreToDocumentArchive [18:02:27]shift 448 fd 165394 [18:02:27]save to /storage/0448/doc_00165394 [18:02:27]save last doc name /storage/0448/doc_00165394 to /storage/kkm_last_doc_name [18:02:27]save OK [18:02:27]Clear old archive folders... [18:02:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:02:27]tlvbuf is 00891520 [18:02:27]SAM_PROTO_ClearQueue [18:02:27]wFMCommunicate request_size=4 [18:02:27]MH_SAM_APDU [18:02:27]CAPDU: 80 09 00 00 [18:02:27]Write to MH i2c: E2 08 00 AD 02 80 09 00 00 00 00 00 00 21 [18:02:27]Write i2c OK [18:02:27]MH_I2C_Read... [18:02:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:02:27]Read from MH i2c: E2 [18:02:27]MH_I2C_Read... [18:02:27]Read from MH i2c: E2 03 00 [18:02:27]MH_I2C_Read... [18:02:27]Read from MH i2c: E2 03 00 AD 02 00 90 00 23 [18:02:27]RAPDU: 90 00 [18:02:27]wFMCommunicate OK [18:02:27]SAM_PROTO_ClearQueue done [18:02:27]KKMCreateOFDPacket [18:02:27]OFDProtocolAddRootSTLVToBuf [18:02:27]FM_MakeSignedData [18:02:27]FM_MakeSignedData [18:02:27]SAM_PROTO_SignData [18:02:27]wFMCommunicate request_size=4 [18:02:27]MH_SAM_APDU [18:02:27]CAPDU: 80 0D 01 02 [18:02:27]Write to MH i2c: E2 08 00 AE 02 80 0D 01 02 00 00 00 00 29 [18:02:27]Write i2c OK [18:02:27]MH_I2C_Read... [18:02:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:02:27]Read from MH i2c: E2 [18:02:27]MH_I2C_Read... [18:02:27]Read from MH i2c: E2 03 00 [18:02:27]MH_I2C_Read... [18:02:27]Read from MH i2c: E2 03 00 AE 02 00 90 00 24 [18:02:27]RAPDU: 90 00 [18:02:27]wFMCommunicate OK [18:02:27]wFMCommunicate request_size=255 [18:02:27]MH_SAM_APDU [18:02: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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 0B 01 00 00 F4 03 04 00 32 64 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 12 86 02 00 35 04 06 00 72 [18:02:27]Write to MH i2c: E2 02 01 AF 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 0B 01 00 00 F4 03 04 00 32 64 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 12 86 02 00 35 04 06 00 72 00 00 50 [18:02:27]Write i2c OK [18:02:27]MH_I2C_Read... [18:02:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:02:28]Read from MH i2c: E2 [18:02:28]MH_I2C_Read... [18:02:28]Read from MH i2c: E2 03 00 [18:02:28]MH_I2C_Read... [18:02:28]Read from MH i2c: E2 03 00 AF 02 00 90 00 25 [18:02:28]RAPDU: 90 00 [18:02:28]wFMCommunicate OK [18:02:28]wFMCommunicate request_size=10 [18:02:28]MH_SAM_APDU [18:02:28]CAPDU: 80 0D 02 02 05 D7 28 74 D0 B6 [18:02:28]Write to MH i2c: E2 0D 00 B0 02 80 0D 02 02 05 00 D7 28 74 D0 B6 00 00 2F [18:02:28]Write i2c OK [18:02:28]MH_I2C_Read... [18:02:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:02:28]Read from MH i2c: E2 [18:02:28]MH_I2C_Read... [18:02:28]Read from MH i2c: E2 03 00 [18:02:28]MH_I2C_Read... [18:02:28]Read from MH i2c: E2 03 00 B0 02 00 90 00 26 [18:02:28]RAPDU: 90 00 [18:02:28]wFMCommunicate OK [18:02:28]wFMCommunicate request_size=4 [18:02:28]MH_SAM_APDU [18:02:28]CAPDU: 80 0D 03 02 [18:02:28]Write to MH i2c: E2 08 00 B1 02 80 0D 03 02 00 00 00 00 2E [18:02:28]Write i2c OK [18:02:28]MH_I2C_Read... [18:02:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:02:28]Read from MH i2c: E2 [18:02:28]MH_I2C_Read... [18:02:28]Read from MH i2c: E2 0B 00 [18:02:28]MH_I2C_Read... [18:02:28]Read from MH i2c: E2 0B 00 B1 02 00 9B 8F AE 66 0E 97 63 22 90 00 97 [18:02:28]RAPDU: 9B 8F AE 66 0E 97 63 22 90 00 [18:02:28]wFMCommunicate OK [18:02:28]SAM_PROTO_SignData done [18:02:28]FM_MakeSignedData done [18:02:28]CreateOFDProtocolMessage [18:02:28]wFMCommunicate request_size=4 [18:02:28]MH_SAM_APDU [18:02:28]CAPDU: 80 11 00 00 [18:02:28]Write to MH i2c: E2 08 00 B2 02 80 11 00 00 00 00 00 00 2E [18:02:28]Write i2c OK [18:02:28]MH_I2C_Read... [18:02:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:02:28]Read from MH i2c: E2 [18:02:28]MH_I2C_Read... [18:02:28]Read from MH i2c: E2 17 00 [18:02:28]MH_I2C_Read... [18:02:28]Read from MH i2c: E2 17 00 B2 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 84 [18:02:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:02:28]wFMCommunicate OK [18:02:28]CreateOFDProtocolMessage done [18:02:28]OFDSenderStorePacket 165394 [18:02:28]StoreOFDPacket docnum=165394 [18:02:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D8 30 07 01 62 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 0B 01 00 00 F4 03 04 00 32 64 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 12 86 02 00 35 04 06 00 72 D7 28 74 D0 B6 9B 8F AE 66 0E 97 63 22 [18:02:28]CheckFolder [18:02:28]dirname=/storage/ofd_packets [18:02:28]CheckFolder done [18:02:28]ProducePacketName [18:02:28]name=ofd_packets/00165394 [18:02:28]NVStorageSaveData ofd_packets/00165394 [18:02:28]File name is /storage/ofd_packets/00165394 [18:02:28]Write 301 bytes [18:02:28]NVStorageSaveData done [18:02:28]OFDSenderStorePacket done [18:02:28]KKMCreateOFDPacket done [18:02:28]NVStorageSaveData kkm_last_timestamp [18:02:28]File name is /storage/kkm_last_timestamp [18:02:28]Write 4 bytes [18:02:28]NVStorageSaveData done [18:02:28]ExternCall_PrintAddStr [18:02:28]wPrintStart [18:02:28]Write to MH i2c: 01 00 00 B3 02 B5 [18:02:28]Write i2c OK [18:02:28]MH_I2C_Read... [18:02:28]Read from MH i2c: 01 [18:02:28]MH_I2C_Read... [18:02:28]Read from MH i2c: 01 07 00 [18:02:28]MH_I2C_Read... [18:02:28]Read from MH i2c: 01 07 00 B3 02 00 00 00 00 00 FF 0F CA [18:02:28]RasterBufferAndPrint [18:02:28]line Счет N : (1)459508 [18:02:28]line ИНН: 02508201610067 [18:02:28]line Контрольно-Кассовый Чек [18:02:28]line ПРОДАЖА [18:02:28]line ТРК (МРК, ГНК) : 22 [18:02:28]line Товар: 2710124130 [18:02:28]line Аи-92-К-5 [18:02:28]line 10.640 * 65.80 [18:02:28]line = 700.11 [18:02:28]line НДС 12% НСП 1% [18:02:28]line > о реализуемом товаре [18:02:28]line ОКРУГЛЕНИЕ: -0.11 [18:02:28]line ИТОГО: 700.00 [18:02:28]line Внесено: 700.00 [18:02:28]line СДАЧА: 0.00 [18:02:28]line НСП 1% : 6.20 [18:02:28]line НДС 12% : 74.35 [18:02:28]line Наличными: 700.00 [18:02:28]line Безнал.: 0.00 [18:02:28]line Место: АЗС № 72 "Партнер Нефть" [18:02:28]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:02:28]line СНО: Общий режим [18:02:28]line Чек 267 15.07.2024 18:02 [18:02:28]line Смена: 448 ФФД: 1.0 [18:02:28]line ЗНМ: 0300000160 [18:02:28]line РНМ: 0000000000090829 [18:02:28]line Версия ККМ: 001 [18:02:28]line ФМ: 0000000000874718 [18:02:28]line ФД: 165394 [18:02:28]line ФПД: 126268422279350 [18:02:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T180226&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165394&fm=126268422279350&tin=02508201610067®Number=0000000000090829&sum=70000 [18:02:28]written 0, free lines is 4095 [18:02:28]OFD Sender: Processing packet 165394 [packets to send 106, broken 105] [18:02:28]ProducePacketName [18:02:28]name=ofd_packets/00165394 [18:02:28]OFD Sender: To server: pG, [18:02:28]CommunicateWithHost lk.salyk.kg:30040 [18:02:28]ConnectInit lk.salyk.kg [18:02:28]Connected sock=10 [18:02:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D8 30 07 01 62 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 0B 01 00 00 F4 03 04 00 32 64 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 12 86 02 00 35 04 06 00 72 D7 28 74 D0 B6 9B 8F AE 66 0E 97 63 22 [18:02:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 FA 3A 47 00 65 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 37 31 38 10 04 04 00 12 86 02 00 F4 03 04 00 BC 0A 95 66 B6 04 01 00 00 86 8E 5D BE 17 0E E5 9F [18:02:28]CommunicateWithHost err = 0 [18:02:28]CheckOFDResponse [18:02:28]1017 (14) - 77093643461234 [18:02:28]1041 (16) - 0000000000874718 [18:02:28]1040 (4) - 165394 [18:02:28]1012 (4) - 15.07.2024 11:40 [18:02:28]1206 (1) - 0 [18:02:28]OFD Sender: Remove packet 165394 [18:02:28]ProducePacketName [18:02:28]name=ofd_packets/00165394 [18:02:28]NVStorageDeleteData [18:02:29]Write to MH i2c: 01 00 00 DD 02 DF [18:02:29]Write i2c OK [18:02:29]MH_I2C_Read... [18:02:29]Read from MH i2c: 01 [18:02:29]MH_I2C_Read... [18:02:29]Read from MH i2c: 01 07 00 [18:02:29]MH_I2C_Read... [18:02:29]Read from MH i2c: 01 07 00 DD 02 00 00 00 00 00 FB 0C ED [18:02:29]RasterBufferAndPrint [18:02:29]line [18:02:29]line [18:02:29]line [18:02:29]line [18:02:29]line [18:02:29]written 0, free lines is 3332 [18:02:29]MH_Cut [18:02:29]Write to MH i2c: D1 01 00 E4 02 01 B8 [18:02:29]Write i2c OK [18:02:29]MH_I2C_Read... [18:02:29]Read from MH i2c: D1 [18:02:29]MH_I2C_Read... [18:02:29]Read from MH i2c: D1 01 00 [18:02:29]MH_I2C_Read... [18:02:29]Read from MH i2c: D1 01 00 E4 02 00 B7 [18:02:29]Write to MH i2c: 01 00 00 E5 02 E7 [18:02:29]Write i2c OK [18:02:29]MH_I2C_Read... [18:02:29]OFD Sender: No OFD packet to send [18:02:29]*** Cut start [18:02:29]*** Partial cut [18:02:29]*** CUTSNS_PIN = 1 [18:02:29]*** CUTSNS_PIN = 0 [18:02:29]*** Brake cut motor [18:02:30]Read from MH i2c: 01 [18:02:30]MH_I2C_Read... [18:02:30]*** Stop cut motor [18:02:30]*** Cut end [18:02:30]Read from MH i2c: 01 07 00 [18:02:30]MH_I2C_Read... [18:02:30]Read from MH i2c: 01 07 00 E5 02 00 00 00 00 00 FF 0F FC [18:02:30]process_action close_receipt done [18:02:30]requested_data is exist [18:02:30]produce_requested_data [18:02:30]requested_item fm.sn is exist - process it [18:02:30]wFMCommunicate request_size=4 [18:02:30]MH_SAM_APDU [18:02:30]CAPDU: 80 11 00 00 [18:02:30]Write to MH i2c: E2 08 00 E6 02 80 11 00 00 00 00 00 00 62 [18:02:30]Write i2c OK [18:02:30]MH_I2C_Read... [18:02:30]Read from MH i2c: E2 [18:02:30]MH_I2C_Read... [18:02:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:02:30]Read from MH i2c: E2 17 00 [18:02:30]MH_I2C_Read... [18:02:30]Read from MH i2c: E2 17 00 E6 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B8 [18:02:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:02:30]wFMCommunicate OK [18:02:30]requested_item fd.num is exist - process it [18:02:30]SAM_PROTO_GetFieldsCounters [18:02:30]wFMCommunicate request_size=4 [18:02:30]MH_SAM_APDU [18:02:30]CAPDU: 80 13 00 00 [18:02:30]Write to MH i2c: E2 08 00 E7 02 80 13 00 00 00 00 00 00 65 [18:02:30]Write i2c OK [18:02:30]MH_I2C_Read... [18:02:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:02:30]Read from MH i2c: E2 [18:02:30]MH_I2C_Read... [18:02:30]Read from MH i2c: E2 62 00 [18:02:30]MH_I2C_Read... [18:02:30]Read from MH i2c: E2 62 00 E7 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 12 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 0B [18:02: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 12 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:02:30]wFMCommunicate OK [18:02:30]SAM_PROTO_GetFieldsCounters done [18:02:30]requested_item shift.num is exist - process it [18:02:30]requested_item shift.opened is exist - process it [18:02:30]req_shift_opened [18:02:30]FM_GetShiftState [18:02:30]SAM_PROTO_GetShiftState [18:02:30]wFMCommunicate request_size=4 [18:02:30]MH_SAM_APDU [18:02:30]CAPDU: 80 13 01 00 [18:02:30]Write to MH i2c: E2 08 00 E8 02 80 13 01 00 00 00 00 00 67 [18:02:30]Write i2c OK [18:02:30]MH_I2C_Read... [18:02:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:02:30]Read from MH i2c: E2 [18:02:30]MH_I2C_Read... [18:02:30]Read from MH i2c: E2 0E 00 [18:02:30]MH_I2C_Read... [18:02:30]Read from MH i2c: E2 0E 00 E8 02 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 40 [18:02:30]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [18:02:30]wFMCommunicate OK [18:02:30]SAM_PROTO_GetShiftState done [18:02:30]FM_GetShiftState done [18:02:30]req_shift_opened done [18:02:30]requested_item shift.open_date is exist - process it [18:02:30]req_shift_open_date [18:02:30]req_shift_open_date done [18:02:30]produce_requested_data done [18:02:30]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165394,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [18:02:30]process_action_free close_receipt [18:02:30]json_value_free [18:02:30]json_value_free done [18:02:30]process_json_proto returns [18:02:30]Send response to host [18:02:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165394,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [18:02:30]free response buf [18:02:30]execute_script done [18:02:30]execute_script returns [18:02:30]free content buf [18:02:30]Sock 7.Close socket [18:02:30]Sock 7.Thread stoped [18:02:34]OFD Sender: No OFD packet to send [18:02:39]OFD Sender: No OFD packet to send [18:02:44]OFD Sender: No OFD packet to send [18:02:49]OFD Sender: No OFD packet to send [18:02:54]OFD Sender: No OFD packet to send [18:02:59]OFD Sender: No OFD packet to send [18:03:04]OFD Sender: No OFD packet to send [18:03:09]OFD Sender: No OFD packet to send [18:03:14]OFD Sender: No OFD packet to send [18:03:19]OFD Sender: No OFD packet to send [18:03:24]OFD Sender: No OFD packet to send [18:03:29]OFD Sender: No OFD packet to send [18:03:34]OFD Sender: No OFD packet to send [18:03:39]OFD Sender: No OFD packet to send [18:03:44]OFD Sender: No OFD packet to send [18:03:46]accept exits with 9 [18:03:46]New connection [18:03:46]New thread 3067297124 created [18:03:46]Thread 3067153764 joined [18:03:46]Waiting for new connection... [18:03:46] Sock 9.Parse request [18:03:46]Sock 9.Check first char [18:03:46]Sock 9.First char is OK [18:03:46]request: POST /json_proto HTTP/1.0 [18:03:46]Method: POST [18:03:46]URL: /json_proto [18:03:46]Method is POST - this is cgi request [18:03:46]url: /json_proto [18:03:46]query_string will be loaded in cgi processing [18:03:46]execute_cgi json_proto POST (null) [18:03:46]execute_cgi path=json_proto method=POST [18:03:46]POST find Content-Length [18:03:46]Host: 172.17.56.4:8080 [18:03:46]Content-Length: 790 [18:03:46]Content-Type: application/json [18:03:46] [18:03:46]POST finish read [18:03:46]Found Content-Length = 790 [18:03:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459509", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.670, "sum" : 500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:46]execute_script... [18:03: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)459509", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.670, "sum" : 500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:46]POST & json_proto [18:03:46]process_json_proto [18:03:46]json parsed OK: [18:03:46]protocol is kg_v1.0 [18:03:46]action value=close_receipt [18:03:46]process_action close_receipt [18:03:46]cmd_close_receipt [18:03:46]MH_GetDate [18:03:46]Write to MH i2c: F0 00 00 E9 02 DA [18:03:46]Write i2c OK [18:03:46]MH_I2C_Read... [18:03:46]Read from MH i2c: F0 [18:03:46]MH_I2C_Read... [18:03:46]Read from MH i2c: F0 09 00 [18:03:46]MH_I2C_Read... [18:03:46]Read from MH i2c: F0 09 00 E9 02 00 83 64 95 66 C9 DC B2 64 80 [18:03:46]GetLastDocTimeStamp 1721066546 [18:03:46]current date 1721066627 [18:03:46]FM_GetShiftState [18:03:46]SAM_PROTO_GetShiftState [18:03:46]wFMCommunicate request_size=4 [18:03:46]MH_SAM_APDU [18:03:46]CAPDU: 80 13 01 00 [18:03:46]Write to MH i2c: E2 08 00 EA 02 80 13 01 00 00 00 00 00 69 [18:03:46]Write i2c OK [18:03:46]MH_I2C_Read... [18:03:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:47]Read from MH i2c: E2 [18:03:47]MH_I2C_Read... [18:03:47]Read from MH i2c: E2 0E 00 [18:03:47]MH_I2C_Read... [18:03:47]Read from MH i2c: E2 0E 00 EA 02 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 42 [18:03:47]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [18:03:47]wFMCommunicate OK [18:03:47]SAM_PROTO_GetShiftState done [18:03:47]FM_GetShiftState done [18:03:47]opened in 1721003876 [18:03:47]opened+sec_in_day 1721090276 [18:03:47]quantity*price = 50023 [18:03:47]sum+1 = 50025 [18:03:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.24 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.24 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 268 15.07.2024 18:03 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 165395 ФПД: 194041350105329 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T180347&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165395&fm=194041350105329&tin=02508201610067®Number=0000000000090829&sum=50024 [18:03:48]StoreToDocumentArchive [18:03:48]shift 448 fd 165395 [18:03:48]save to /storage/0448/doc_00165395 [18:03:48]save last doc name /storage/0448/doc_00165395 to /storage/kkm_last_doc_name [18:03:48]save OK [18:03:48]Clear old archive folders... [18:03:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:03:48]tlvbuf is 0083A8A0 [18:03:48]SAM_PROTO_ClearQueue [18:03:48]wFMCommunicate request_size=4 [18:03:48]MH_SAM_APDU [18:03:48]CAPDU: 80 09 00 00 [18:03:48]Write to MH i2c: E2 08 00 F7 02 80 09 00 00 00 00 00 00 6B [18:03:48]Write i2c OK [18:03:48]MH_I2C_Read... [18:03:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:03:48]Read from MH i2c: E2 [18:03:48]MH_I2C_Read... [18:03:48]Read from MH i2c: E2 03 00 [18:03:48]MH_I2C_Read... [18:03:48]Read from MH i2c: E2 03 00 F7 02 00 90 00 6D [18:03:48]RAPDU: 90 00 [18:03:48]wFMCommunicate OK [18:03:48]SAM_PROTO_ClearQueue done [18:03:48]KKMCreateOFDPacket [18:03:48]OFDProtocolAddRootSTLVToBuf [18:03:48]FM_MakeSignedData [18:03:48]FM_MakeSignedData [18:03:48]SAM_PROTO_SignData [18:03:48]wFMCommunicate request_size=4 [18:03:48]MH_SAM_APDU [18:03:48]CAPDU: 80 0D 01 02 [18:03:48]Write to MH i2c: E2 08 00 F8 02 80 0D 01 02 00 00 00 00 73 [18:03:48]Write i2c OK [18:03:48]MH_I2C_Read... [18:03:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:03:48]Read from MH i2c: E2 [18:03:48]MH_I2C_Read... [18:03:48]Read from MH i2c: E2 03 00 [18:03:48]MH_I2C_Read... [18:03:48]Read from MH i2c: E2 03 00 F8 02 00 90 00 6E [18:03:48]RAPDU: 90 00 [18:03:48]wFMCommunicate OK [18:03:48]wFMCommunicate request_size=255 [18:03:48]MH_SAM_APDU [18:03:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 83 64 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 13 86 02 00 35 04 06 00 B0 [18:03:48]Write to MH i2c: E2 02 01 F9 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 83 64 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 13 86 02 00 35 04 06 00 B0 00 00 35 [18:03:48]Write i2c OK [18:03:48]MH_I2C_Read... [18:03:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:48]Read from MH i2c: E2 [18:03:48]MH_I2C_Read... [18:03:48]Read from MH i2c: E2 03 00 [18:03:48]MH_I2C_Read... [18:03:48]Read from MH i2c: E2 03 00 F9 02 00 90 00 6F [18:03:48]RAPDU: 90 00 [18:03:48]wFMCommunicate OK [18:03:48]wFMCommunicate request_size=10 [18:03:48]MH_SAM_APDU [18:03:48]CAPDU: 80 0D 02 02 05 7A C5 BE A8 F1 [18:03:48]Write to MH i2c: E2 0D 00 FA 02 80 0D 02 02 05 00 7A C5 BE A8 F1 00 00 16 [18:03:48]Write i2c OK [18:03:48]MH_I2C_Read... [18:03:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:48]Read from MH i2c: E2 [18:03:48]MH_I2C_Read... [18:03:48]Read from MH i2c: E2 03 00 [18:03:48]MH_I2C_Read... [18:03:48]Read from MH i2c: E2 03 00 FA 02 00 90 00 70 [18:03:48]RAPDU: 90 00 [18:03:48]wFMCommunicate OK [18:03:48]wFMCommunicate request_size=4 [18:03:48]MH_SAM_APDU [18:03:48]CAPDU: 80 0D 03 02 [18:03:48]Write to MH i2c: E2 08 00 FB 02 80 0D 03 02 00 00 00 00 78 [18:03:48]Write i2c OK [18:03:48]MH_I2C_Read... [18:03:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:03:48]Read from MH i2c: E2 [18:03:48]MH_I2C_Read... [18:03:48]Read from MH i2c: E2 0B 00 [18:03:48]MH_I2C_Read... [18:03:48]Read from MH i2c: E2 0B 00 FB 02 00 61 F1 A9 5D B3 51 2D B0 90 00 B2 [18:03:48]RAPDU: 61 F1 A9 5D B3 51 2D B0 90 00 [18:03:48]wFMCommunicate OK [18:03:48]SAM_PROTO_SignData done [18:03:48]FM_MakeSignedData done [18:03:48]CreateOFDProtocolMessage [18:03:48]wFMCommunicate request_size=4 [18:03:48]MH_SAM_APDU [18:03:48]CAPDU: 80 11 00 00 [18:03:48]Write to MH i2c: E2 08 00 FC 02 80 11 00 00 00 00 00 00 78 [18:03:48]Write i2c OK [18:03:48]MH_I2C_Read... [18:03:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:48]Read from MH i2c: E2 [18:03:48]MH_I2C_Read... [18:03:48]Read from MH i2c: E2 17 00 [18:03:48]MH_I2C_Read... [18:03:48]Read from MH i2c: E2 17 00 FC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CE [18:03:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:03:48]wFMCommunicate OK [18:03:48]CreateOFDProtocolMessage done [18:03:48]OFDSenderStorePacket 165395 [18:03:48]StoreOFDPacket docnum=165395 [18:03:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A9 2B 07 01 F2 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 83 64 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 13 86 02 00 35 04 06 00 B0 7A C5 BE A8 F1 61 F1 A9 5D B3 51 2D B0 [18:03:48]CheckFolder [18:03:48]dirname=/storage/ofd_packets [18:03:48]CheckFolder done [18:03:48]ProducePacketName [18:03:48]name=ofd_packets/00165395 [18:03:48]NVStorageSaveData ofd_packets/00165395 [18:03:48]File name is /storage/ofd_packets/00165395 [18:03:48]Write 301 bytes [18:03:48]NVStorageSaveData done [18:03:48]OFDSenderStorePacket done [18:03:48]KKMCreateOFDPacket done [18:03:48]NVStorageSaveData kkm_last_timestamp [18:03:48]File name is /storage/kkm_last_timestamp [18:03:48]Write 4 bytes [18:03:48]NVStorageSaveData done [18:03:48]ExternCall_PrintAddStr [18:03:48]wPrintStart [18:03:48]Write to MH i2c: 01 00 00 FD 02 FF [18:03:48]Write i2c OK [18:03:48]MH_I2C_Read... [18:03:48]Read from MH i2c: 01 [18:03:48]MH_I2C_Read... [18:03:48]Read from MH i2c: 01 07 00 [18:03:48]MH_I2C_Read... [18:03:48]Read from MH i2c: 01 07 00 FD 02 00 00 00 00 00 FF 0F 14 [18:03:48]RasterBufferAndPrint [18:03:48]line Счет N : (1)459509 [18:03:48]line ИНН: 02508201610067 [18:03:48]line Контрольно-Кассовый Чек [18:03:48]line ПРОДАЖА [18:03:48]line ТРК (МРК, ГНК) : 22 [18:03:48]line Товар: 2710124130 [18:03:48]line Аи-92-К-5 [18:03:48]line 7.670 * 65.22 [18:03:48]line = 500.24 [18:03:48]line НДС 12% НСП 1% [18:03:48]line > о реализуемом товаре [18:03:48]line ИТОГО: 500.24 [18:03:48]line НСП 1% : 4.43 [18:03:48]line НДС 12% : 53.12 [18:03:48]line Наличными: 0.00 [18:03:48]line Безнал.: 500.24 [18:03:48]line Место: АЗС № 72 "Партнер Нефть" [18:03:48]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:03:48]line СНО: Общий режим [18:03:48]line Чек 268 15.07.2024 18:03 [18:03:48]line Смена: 448 ФФД: 1.0 [18:03:48]line ЗНМ: 0300000160 [18:03:48]line РНМ: 0000000000090829 [18:03:48]line Версия ККМ: 001 [18:03:48]line Платежная система: KICB Банк [18:03:48]line ФМ: 0000000000874718 [18:03:48]line ФД: 165395 [18:03:48]line ФПД: 194041350105329 [18:03:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T180347&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165395&fm=194041350105329&tin=02508201610067®Number=0000000000090829&sum=50024 [18:03:48]written 0, free lines is 4095 [18:03:48]OFD Sender: Processing packet 165395 [packets to send 106, broken 105] [18:03:48]ProducePacketName [18:03:48]name=ofd_packets/00165395 [18:03:48]OFD Sender: To server: pG, [18:03:48]CommunicateWithHost lk.salyk.kg:30040 [18:03:48]ConnectInit lk.salyk.kg [18:03:48]Connected sock=10 [18:03: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 37 31 38 0F 01 00 00 A9 2B 07 01 F2 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 83 64 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 13 86 02 00 35 04 06 00 B0 7A C5 BE A8 F1 61 F1 A9 5D B3 51 2D B0 [18:03:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 92 D0 47 00 EE 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 13 86 02 00 F4 03 04 00 0C 0B 95 66 B6 04 01 00 00 66 66 BB AE A1 B4 2D 18 [18:03:49]CommunicateWithHost err = 0 [18:03:49]CheckOFDResponse [18:03:49]1017 (14) - 77093643461234 [18:03:49]1041 (16) - 0000000000874718 [18:03:49]1040 (4) - 165395 [18:03:49]1012 (4) - 15.07.2024 11:42 [18:03:49]1206 (1) - 0 [18:03:49]OFD Sender: Remove packet 165395 [18:03:49]ProducePacketName [18:03:49]name=ofd_packets/00165395 [18:03:49]NVStorageDeleteData [18:03:49]Write to MH i2c: 01 00 00 26 03 29 [18:03:49]Write i2c OK [18:03:49]MH_I2C_Read... [18:03:49]Read from MH i2c: 01 [18:03:49]MH_I2C_Read... [18:03:49]Read from MH i2c: 01 07 00 [18:03:49]MH_I2C_Read... [18:03:49]Read from MH i2c: 01 07 00 26 03 00 00 00 00 00 15 0D 52 [18:03:49]RasterBufferAndPrint [18:03:49]line [18:03:49]line [18:03:49]line [18:03:49]line [18:03:49]line [18:03:49]written 0, free lines is 3356 [18:03:49]MH_Cut [18:03:49]Write to MH i2c: D1 01 00 2D 03 01 02 [18:03:49]Write i2c OK [18:03:49]MH_I2C_Read... [18:03:49]Read from MH i2c: D1 [18:03:49]MH_I2C_Read... [18:03:49]Read from MH i2c: D1 01 00 [18:03:49]MH_I2C_Read... [18:03:49]Read from MH i2c: D1 01 00 2D 03 00 01 [18:03:49]Write to MH i2c: 01 00 00 2E 03 31 [18:03:49]Write i2c OK [18:03:49]MH_I2C_Read... [18:03:49]OFD Sender: No OFD packet to send [18:03:49]*** Cut start [18:03:49]*** Partial cut [18:03:49]*** CUTSNS_PIN = 1 [18:03:49]*** CUTSNS_PIN = 0 [18:03:50]*** Brake cut motor [18:03:50]Read from MH i2c: 01 [18:03:50]MH_I2C_Read... [18:03:50]*** Stop cut motor [18:03:50]*** Cut end [18:03:50]Read from MH i2c: 01 07 00 [18:03:50]MH_I2C_Read... [18:03:50]Read from MH i2c: 01 07 00 2E 03 00 00 00 00 00 FF 0F 46 [18:03:50]process_action close_receipt done [18:03:50]requested_data is exist [18:03:50]produce_requested_data [18:03:50]requested_item fm.sn is exist - process it [18:03:50]wFMCommunicate request_size=4 [18:03:50]MH_SAM_APDU [18:03:50]CAPDU: 80 11 00 00 [18:03:50]Write to MH i2c: E2 08 00 2F 03 80 11 00 00 00 00 00 00 AC [18:03:50]Write i2c OK [18:03:50]MH_I2C_Read... [18:03:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:50]Read from MH i2c: E2 [18:03:50]MH_I2C_Read... [18:03:50]Read from MH i2c: E2 17 00 [18:03:50]MH_I2C_Read... [18:03:50]Read from MH i2c: E2 17 00 2F 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 02 [18:03:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:03:50]wFMCommunicate OK [18:03:50]requested_item fd.num is exist - process it [18:03:50]SAM_PROTO_GetFieldsCounters [18:03:50]wFMCommunicate request_size=4 [18:03:50]MH_SAM_APDU [18:03:50]CAPDU: 80 13 00 00 [18:03:50]Write to MH i2c: E2 08 00 30 03 80 13 00 00 00 00 00 00 AF [18:03:50]Write i2c OK [18:03:50]MH_I2C_Read... [18:03:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:03:50]Read from MH i2c: E2 [18:03:50]MH_I2C_Read... [18:03:50]Read from MH i2c: E2 62 00 [18:03:50]MH_I2C_Read... [18:03:50]Read from MH i2c: E2 62 00 30 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 13 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 59 [18:03: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 13 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:03:50]wFMCommunicate OK [18:03:50]SAM_PROTO_GetFieldsCounters done [18:03:50]requested_item shift.num is exist - process it [18:03:50]requested_item shift.opened is exist - process it [18:03:50]req_shift_opened [18:03:50]FM_GetShiftState [18:03:50]SAM_PROTO_GetShiftState [18:03:50]wFMCommunicate request_size=4 [18:03:50]MH_SAM_APDU [18:03:50]CAPDU: 80 13 01 00 [18:03:50]Write to MH i2c: E2 08 00 31 03 80 13 01 00 00 00 00 00 B1 [18:03:50]Write i2c OK [18:03:50]MH_I2C_Read... [18:03:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:50]Read from MH i2c: E2 [18:03:50]MH_I2C_Read... [18:03:50]Read from MH i2c: E2 0E 00 [18:03:50]MH_I2C_Read... [18:03:50]Read from MH i2c: E2 0E 00 31 03 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 8A [18:03:50]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [18:03:50]wFMCommunicate OK [18:03:50]SAM_PROTO_GetShiftState done [18:03:50]FM_GetShiftState done [18:03:50]req_shift_opened done [18:03:50]requested_item shift.open_date is exist - process it [18:03:50]req_shift_open_date [18:03:50]req_shift_open_date done [18:03:50]produce_requested_data done [18:03:50]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165395,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [18:03:50]process_action_free close_receipt [18:03:50]json_value_free [18:03:50]json_value_free done [18:03:50]process_json_proto returns [18:03:50]Send response to host [18:03:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165395,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [18:03:50]free response buf [18:03:50]execute_script done [18:03:50]execute_script returns [18:03:50]free content buf [18:03:50]Sock 9.Close socket [18:03:50]Sock 9.Thread stoped [18:03:54]OFD Sender: No OFD packet to send [18:03:59]OFD Sender: No OFD packet to send [18:04:04]OFD Sender: No OFD packet to send [18:04:09]OFD Sender: No OFD packet to send [18:04:14]OFD Sender: No OFD packet to send [18:04:19]OFD Sender: No OFD packet to send [18:04:24]OFD Sender: No OFD packet to send [18:04:29]OFD Sender: No OFD packet to send [18:04:34]OFD Sender: No OFD packet to send [18:04:39]OFD Sender: No OFD packet to send [18:04:44]OFD Sender: No OFD packet to send [18:04:49]OFD Sender: No OFD packet to send [18:04:54]OFD Sender: No OFD packet to send [18:04:59]OFD Sender: No OFD packet to send [18:05:04]OFD Sender: No OFD packet to send [18:05:09]OFD Sender: No OFD packet to send [18:05:14]OFD Sender: No OFD packet to send [18:05:19]OFD Sender: No OFD packet to send [18:05:24]OFD Sender: No OFD packet to send [18:05:29]OFD Sender: No OFD packet to send [18:05:34]OFD Sender: No OFD packet to send [18:05:39]OFD Sender: No OFD packet to send [18:05:44]OFD Sender: No OFD packet to send [18:05:49]OFD Sender: No OFD packet to send [18:05:54]OFD Sender: No OFD packet to send [18:05:59]OFD Sender: No OFD packet to send [18:06:04]OFD Sender: No OFD packet to send [18:06:06]accept exits with 7 [18:06:06]New connection [18:06:06]New thread 3067153764 created [18:06:06]Thread 3067297124 joined [18:06:06]Waiting for new connection... [18:06:06] Sock 7.Parse request [18:06:06]Sock 7.Check first char [18:06:06]Sock 7.First char is OK [18:06:06]request: POST /json_proto HTTP/1.0 [18:06:06]Method: POST [18:06:06]URL: /json_proto [18:06:06]Method is POST - this is cgi request [18:06:06]url: /json_proto [18:06:06]query_string will be loaded in cgi processing [18:06:06]execute_cgi json_proto POST (null) [18:06:06]execute_cgi path=json_proto method=POST [18:06:06]POST find Content-Length [18:06:06]Host: 172.17.56.4:8080 [18:06:06]Content-Length: 674 [18:06:06]Content-Type: application/json [18:06:06] [18:06:06]POST finish read [18:06:06]Found Content-Length = 674 [18:06:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459510", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 8.350, "sum" : 600.37, "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" ] } } [18:06:06]execute_script... [18:06:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459510", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 8.350, "sum" : 600.37, "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" ] } } [18:06:06]POST & json_proto [18:06:06]process_json_proto [18:06:06]json parsed OK: [18:06:06]protocol is kg_v1.0 [18:06:06]action value=close_receipt [18:06:06]process_action close_receipt [18:06:06]cmd_close_receipt [18:06:06]MH_GetDate [18:06:06]Write to MH i2c: F0 00 00 32 03 24 [18:06:06]Write i2c OK [18:06:06]MH_I2C_Read... [18:06:06]Read from MH i2c: F0 [18:06:06]MH_I2C_Read... [18:06:06]Read from MH i2c: F0 09 00 [18:06:06]MH_I2C_Read... [18:06:06]Read from MH i2c: F0 09 00 32 03 00 0E 65 95 66 C9 DC B2 64 56 [18:06:06]GetLastDocTimeStamp 1721066627 [18:06:06]current date 1721066766 [18:06:06]FM_GetShiftState [18:06:06]SAM_PROTO_GetShiftState [18:06:06]wFMCommunicate request_size=4 [18:06:06]MH_SAM_APDU [18:06:06]CAPDU: 80 13 01 00 [18:06:06]Write to MH i2c: E2 08 00 33 03 80 13 01 00 00 00 00 00 B3 [18:06:06]Write i2c OK [18:06:06]MH_I2C_Read... [18:06:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:06:06]Read from MH i2c: E2 [18:06:06]MH_I2C_Read... [18:06:06]Read from MH i2c: E2 0E 00 [18:06:06]MH_I2C_Read... [18:06:06]Read from MH i2c: E2 0E 00 33 03 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 8C [18:06:06]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [18:06:06]wFMCommunicate OK [18:06:06]SAM_PROTO_GetShiftState done [18:06:06]FM_GetShiftState done [18:06:06]opened in 1721003876 [18:06:06]opened+sec_in_day 1721090276 [18:06:06]quantity*price = 60036 [18:06:06]sum+1 = 60038 [18:06:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.76 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 269 15.07.2024 18:06 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165396 ФПД: 207892121869956 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T180606&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165396&fm=207892121869956&tin=02508201610067®Number=0000000000090829&sum=60000 [18:06:07]StoreToDocumentArchive [18:06:07]shift 448 fd 165396 [18:06:07]save to /storage/0448/doc_00165396 [18:06:07]save last doc name /storage/0448/doc_00165396 to /storage/kkm_last_doc_name [18:06:07]save OK [18:06:07]Clear old archive folders... [18:06:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:06:07]tlvbuf is 008394F0 [18:06:07]SAM_PROTO_ClearQueue [18:06:07]wFMCommunicate request_size=4 [18:06:07]MH_SAM_APDU [18:06:07]CAPDU: 80 09 00 00 [18:06:07]Write to MH i2c: E2 08 00 40 03 80 09 00 00 00 00 00 00 B5 [18:06:07]Write i2c OK [18:06:07]MH_I2C_Read... [18:06:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:06:07]Read from MH i2c: E2 [18:06:07]MH_I2C_Read... [18:06:07]Read from MH i2c: E2 03 00 [18:06:07]MH_I2C_Read... [18:06:07]Read from MH i2c: E2 03 00 40 03 00 90 00 B7 [18:06:07]RAPDU: 90 00 [18:06:07]wFMCommunicate OK [18:06:07]SAM_PROTO_ClearQueue done [18:06:07]KKMCreateOFDPacket [18:06:07]OFDProtocolAddRootSTLVToBuf [18:06:07]FM_MakeSignedData [18:06:07]FM_MakeSignedData [18:06:07]SAM_PROTO_SignData [18:06:07]wFMCommunicate request_size=4 [18:06:07]MH_SAM_APDU [18:06:07]CAPDU: 80 0D 01 02 [18:06:07]Write to MH i2c: E2 08 00 41 03 80 0D 01 02 00 00 00 00 BD [18:06:07]Write i2c OK [18:06:07]MH_I2C_Read... [18:06:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:06:07]Read from MH i2c: E2 [18:06:07]MH_I2C_Read... [18:06:07]Read from MH i2c: E2 03 00 [18:06:07]MH_I2C_Read... [18:06:07]Read from MH i2c: E2 03 00 41 03 00 90 00 B8 [18:06:07]RAPDU: 90 00 [18:06:07]wFMCommunicate OK [18:06:07]wFMCommunicate request_size=255 [18:06:07]MH_SAM_APDU [18:06:07]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 20 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 85 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 0D 01 00 00 F4 03 04 00 0E 65 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 14 86 02 00 35 04 06 00 BD 13 A8 13 [18:06:07]Write to MH i2c: E2 02 01 42 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 20 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 85 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 0D 01 00 00 F4 03 04 00 0E 65 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 14 86 02 00 35 04 06 00 BD 13 A8 13 00 00 8C [18:06:07]Write i2c OK [18:06:07]MH_I2C_Read... [18:06:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:06:07]Read from MH i2c: E2 [18:06:07]MH_I2C_Read... [18:06:07]Read from MH i2c: E2 03 00 [18:06:07]MH_I2C_Read... [18:06:07]Read from MH i2c: E2 03 00 42 03 00 90 00 B9 [18:06:07]RAPDU: 90 00 [18:06:07]wFMCommunicate OK [18:06:07]wFMCommunicate request_size=7 [18:06:07]MH_SAM_APDU [18:06:07]CAPDU: 80 0D 02 02 02 5E 84 [18:06:07]Write to MH i2c: E2 0A 00 43 03 80 0D 02 02 02 00 5E 84 00 00 A6 [18:06:07]Write i2c OK [18:06:07]MH_I2C_Read... [18:06:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:06:07]Read from MH i2c: E2 [18:06:07]MH_I2C_Read... [18:06:07]Read from MH i2c: E2 03 00 [18:06:07]MH_I2C_Read... [18:06:07]Read from MH i2c: E2 03 00 43 03 00 90 00 BA [18:06:07]RAPDU: 90 00 [18:06:07]wFMCommunicate OK [18:06:07]wFMCommunicate request_size=4 [18:06:07]MH_SAM_APDU [18:06:07]CAPDU: 80 0D 03 02 [18:06:07]Write to MH i2c: E2 08 00 44 03 80 0D 03 02 00 00 00 00 C2 [18:06:07]Write i2c OK [18:06:07]MH_I2C_Read... [18:06:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:06:07]Read from MH i2c: E2 [18:06:07]MH_I2C_Read... [18:06:07]Read from MH i2c: E2 0B 00 [18:06:07]MH_I2C_Read... [18:06:07]Read from MH i2c: E2 0B 00 44 03 00 4D 6D 49 8B 5F 59 E4 9E 90 00 8B [18:06:07]RAPDU: 4D 6D 49 8B 5F 59 E4 9E 90 00 [18:06:07]wFMCommunicate OK [18:06:07]SAM_PROTO_SignData done [18:06:07]FM_MakeSignedData done [18:06:07]CreateOFDProtocolMessage [18:06:07]wFMCommunicate request_size=4 [18:06:07]MH_SAM_APDU [18:06:07]CAPDU: 80 11 00 00 [18:06:07]Write to MH i2c: E2 08 00 45 03 80 11 00 00 00 00 00 00 C2 [18:06:07]Write i2c OK [18:06:07]MH_I2C_Read... [18:06:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:06:07]Read from MH i2c: E2 [18:06:07]MH_I2C_Read... [18:06:07]Read from MH i2c: E2 17 00 [18:06:07]MH_I2C_Read... [18:06:07]Read from MH i2c: E2 17 00 45 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 18 [18:06:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:06:07]wFMCommunicate OK [18:06:07]CreateOFDProtocolMessage done [18:06:07]OFDSenderStorePacket 165396 [18:06:07]StoreOFDPacket docnum=165396 [18:06:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 14 6F 04 01 CE 7B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 20 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 85 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 0D 01 00 00 F4 03 04 00 0E 65 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 14 86 02 00 35 04 06 00 BD 13 A8 13 5E 84 4D 6D 49 8B 5F 59 E4 9E [18:06:07]CheckFolder [18:06:07]dirname=/storage/ofd_packets [18:06:07]CheckFolder done [18:06:07]ProducePacketName [18:06:07]name=ofd_packets/00165396 [18:06:07]NVStorageSaveData ofd_packets/00165396 [18:06:07]File name is /storage/ofd_packets/00165396 [18:06:07]Write 298 bytes [18:06:07]NVStorageSaveData done [18:06:07]OFDSenderStorePacket done [18:06:07]KKMCreateOFDPacket done [18:06:07]NVStorageSaveData kkm_last_timestamp [18:06:07]File name is /storage/kkm_last_timestamp [18:06:07]Write 4 bytes [18:06:07]NVStorageSaveData done [18:06:07]ExternCall_PrintAddStr [18:06:07]wPrintStart [18:06:07]Write to MH i2c: 01 00 00 46 03 49 [18:06:07]Write i2c OK [18:06:07]MH_I2C_Read... [18:06:07]Read from MH i2c: 01 [18:06:07]MH_I2C_Read... [18:06:07]Read from MH i2c: 01 07 00 [18:06:07]MH_I2C_Read... [18:06:07]Read from MH i2c: 01 07 00 46 03 00 00 00 00 00 FF 0F 5E [18:06:07]RasterBufferAndPrint [18:06:07]line Счет N : (1)459510 [18:06:07]line ИНН: 02508201610067 [18:06:07]line Контрольно-Кассовый Чек [18:06:07]line ПРОДАЖА [18:06:07]line ТРК (МРК, ГНК) : 21 [18:06:07]line Товар: 2710194210 [18:06:07]line ДТ-К-5 [18:06:07]line 8.350 * 71.90 [18:06:07]line = 600.37 [18:06:07]line НДС 12% НСП 1% [18:06:07]line > о реализуемом товаре [18:06:07]line ОКРУГЛЕНИЕ: -0.37 [18:06:07]line ИТОГО: 600.00 [18:06:07]line Внесено: 600.00 [18:06:07]line СДАЧА: 0.00 [18:06:07]line НСП 1% : 5.31 [18:06:07]line НДС 12% : 63.76 [18:06:07]line Наличными: 600.00 [18:06:07]line Безнал.: 0.00 [18:06:07]line Место: АЗС № 72 "Партнер Нефть" [18:06:07]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:06:07]line СНО: Общий режим [18:06:07]line Чек 269 15.07.2024 18:06 [18:06:07]line Смена: 448 ФФД: 1.0 [18:06:07]line ЗНМ: 0300000160 [18:06:07]line РНМ: 0000000000090829 [18:06:08]line Версия ККМ: 001 [18:06:08]line ФМ: 0000000000874718 [18:06:08]line ФД: 165396 [18:06:08]line ФПД: 207892121869956 [18:06:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T180606&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165396&fm=207892121869956&tin=02508201610067®Number=0000000000090829&sum=60000 [18:06:08]OFD Sender: Processing packet 165396 [packets to send 106, broken 105] [18:06:08]ProducePacketName [18:06:08]name=ofd_packets/00165396 [18:06:08]OFD Sender: To server: pG, [18:06:08]CommunicateWithHost lk.salyk.kg:30040 [18:06:08]ConnectInit lk.salyk.kg [18:06:08]written 0, free lines is 4095 [18:06:08]Connected sock=10 [18:06: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 37 31 38 0C 01 00 00 14 6F 04 01 CE 7B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 20 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 85 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 0D 01 00 00 F4 03 04 00 0E 65 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 14 86 02 00 35 04 06 00 BD 13 A8 13 5E 84 4D 6D 49 8B 5F 59 E4 9E [18:06:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 B0 70 47 00 E8 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 14 86 02 00 F4 03 04 00 97 0B 95 66 B6 04 01 00 00 A9 2E 04 CA 2C 58 96 FC [18:06:08]CommunicateWithHost err = 0 [18:06:08]CheckOFDResponse [18:06:08]1017 (14) - 77093643461234 [18:06:08]1041 (16) - 0000000000874718 [18:06:08]1040 (4) - 165396 [18:06:08]1012 (4) - 15.07.2024 11:44 [18:06:08]1206 (1) - 0 [18:06:08]OFD Sender: Remove packet 165396 [18:06:08]ProducePacketName [18:06:08]name=ofd_packets/00165396 [18:06:08]NVStorageDeleteData [18:06:08]Write to MH i2c: 01 00 00 70 03 73 [18:06:08]Write i2c OK [18:06:08]MH_I2C_Read... [18:06:08]Read from MH i2c: 01 [18:06:08]MH_I2C_Read... [18:06:08]Read from MH i2c: 01 07 00 [18:06:08]MH_I2C_Read... [18:06:08]Read from MH i2c: 01 07 00 70 03 00 00 00 00 00 10 0D 97 [18:06:08]RasterBufferAndPrint [18:06:08]line [18:06:08]line [18:06:08]line [18:06:08]line [18:06:08]line [18:06:08]written 0, free lines is 3350 [18:06:08]MH_Cut [18:06:08]Write to MH i2c: D1 01 00 77 03 01 4C [18:06:08]Write i2c OK [18:06:08]MH_I2C_Read... [18:06:08]Read from MH i2c: D1 [18:06:08]MH_I2C_Read... [18:06:08]Read from MH i2c: D1 01 00 [18:06:08]MH_I2C_Read... [18:06:08]Read from MH i2c: D1 01 00 77 03 00 4B [18:06:08]Write to MH i2c: 01 00 00 78 03 7B [18:06:08]Write i2c OK [18:06:08]MH_I2C_Read... [18:06:08]OFD Sender: No OFD packet to send [18:06:09]*** Cut start [18:06:09]*** Partial cut [18:06:09]*** CUTSNS_PIN = 1 [18:06:09]*** CUTSNS_PIN = 0 [18:06:09]*** Brake cut motor [18:06:09]Read from MH i2c: 01 [18:06:09]MH_I2C_Read... [18:06:09]*** Stop cut motor [18:06:09]*** Cut end [18:06:09]Read from MH i2c: 01 07 00 [18:06:09]MH_I2C_Read... [18:06:09]Read from MH i2c: 01 07 00 78 03 00 00 00 00 00 FF 0F 90 [18:06:09]process_action close_receipt done [18:06:09]requested_data is exist [18:06:09]produce_requested_data [18:06:09]requested_item fm.sn is exist - process it [18:06:09]wFMCommunicate request_size=4 [18:06:09]MH_SAM_APDU [18:06:09]CAPDU: 80 11 00 00 [18:06:09]Write to MH i2c: E2 08 00 79 03 80 11 00 00 00 00 00 00 F6 [18:06:09]Write i2c OK [18:06:09]MH_I2C_Read... [18:06:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:06:09]Read from MH i2c: E2 [18:06:09]MH_I2C_Read... [18:06:09]Read from MH i2c: E2 17 00 [18:06:09]MH_I2C_Read... [18:06:09]Read from MH i2c: E2 17 00 79 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4C [18:06:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:06:09]wFMCommunicate OK [18:06:09]requested_item fd.num is exist - process it [18:06:09]SAM_PROTO_GetFieldsCounters [18:06:09]wFMCommunicate request_size=4 [18:06:09]MH_SAM_APDU [18:06:09]CAPDU: 80 13 00 00 [18:06:09]Write to MH i2c: E2 08 00 7A 03 80 13 00 00 00 00 00 00 F9 [18:06:09]Write i2c OK [18:06:09]MH_I2C_Read... [18:06:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:06:10]Read from MH i2c: E2 [18:06:10]MH_I2C_Read... [18:06:10]Read from MH i2c: E2 62 00 [18:06:10]MH_I2C_Read... [18:06:10]Read from MH i2c: E2 62 00 7A 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 14 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 A7 [18:06: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 14 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:06:10]wFMCommunicate OK [18:06:10]SAM_PROTO_GetFieldsCounters done [18:06:10]requested_item shift.num is exist - process it [18:06:10]requested_item shift.opened is exist - process it [18:06:10]req_shift_opened [18:06:10]FM_GetShiftState [18:06:10]SAM_PROTO_GetShiftState [18:06:10]wFMCommunicate request_size=4 [18:06:10]MH_SAM_APDU [18:06:10]CAPDU: 80 13 01 00 [18:06:10]Write to MH i2c: E2 08 00 7B 03 80 13 01 00 00 00 00 00 FB [18:06:10]Write i2c OK [18:06:10]MH_I2C_Read... [18:06:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:06:10]Read from MH i2c: E2 [18:06:10]MH_I2C_Read... [18:06:10]Read from MH i2c: E2 0E 00 [18:06:10]MH_I2C_Read... [18:06:10]Read from MH i2c: E2 0E 00 7B 03 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 D4 [18:06:10]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [18:06:10]wFMCommunicate OK [18:06:10]SAM_PROTO_GetShiftState done [18:06:10]FM_GetShiftState done [18:06:10]req_shift_opened done [18:06:10]requested_item shift.open_date is exist - process it [18:06:10]req_shift_open_date [18:06:10]req_shift_open_date done [18:06:10]produce_requested_data done [18:06:10]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165396,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [18:06:10]process_action_free close_receipt [18:06:10]json_value_free [18:06:10]json_value_free done [18:06:10]process_json_proto returns [18:06:10]Send response to host [18:06:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165396,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [18:06:10]free response buf [18:06:10]execute_script done [18:06:10]execute_script returns [18:06:10]free content buf [18:06:10]Sock 7.Close socket [18:06:10]Sock 7.Thread stoped [18:06:13]OFD Sender: No OFD packet to send [18:06:18]OFD Sender: No OFD packet to send [18:06:23]OFD Sender: No OFD packet to send [18:06:29]OFD Sender: No OFD packet to send [18:06:34]OFD Sender: No OFD packet to send [18:06:39]OFD Sender: No OFD packet to send [18:06:44]OFD Sender: No OFD packet to send [18:06:49]OFD Sender: No OFD packet to send [18:06:54]OFD Sender: No OFD packet to send [18:06:59]OFD Sender: No OFD packet to send [18:07:04]OFD Sender: No OFD packet to send [18:07:07]accept exits with 9 [18:07:07]New connection [18:07:07]New thread 3067297124 created [18:07:07]Thread 3067153764 joined [18:07:07]Waiting for new connection... [18:07:07] Sock 9.Parse request [18:07:07]Sock 9.Check first char [18:07:07]Sock 9.First char is OK [18:07:07]request: POST /json_proto HTTP/1.0 [18:07:07]Method: POST [18:07:07]URL: /json_proto [18:07:07]Method is POST - this is cgi request [18:07:07]url: /json_proto [18:07:07]query_string will be loaded in cgi processing [18:07:07]execute_cgi json_proto POST (null) [18:07:07]execute_cgi path=json_proto method=POST [18:07:07]POST find Content-Length [18:07:07]Host: 172.17.56.4:8080 [18:07:07]Content-Length: 673 [18:07:07]Content-Type: application/json [18:07:07] [18:07:07]POST finish read [18:07:07]Found Content-Length = 673 [18:07:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459511", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.000, "sum" : 65.80, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 65.00, "total" : 65.00, "payments": [ { "type": 0, "sum" : 65.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:07:07]execute_script... [18:07: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)459511", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.000, "sum" : 65.80, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 65.00, "total" : 65.00, "payments": [ { "type": 0, "sum" : 65.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:07:07]POST & json_proto [18:07:07]process_json_proto [18:07:07]json parsed OK: [18:07:07]protocol is kg_v1.0 [18:07:07]action value=close_receipt [18:07:07]process_action close_receipt [18:07:07]cmd_close_receipt [18:07:07]MH_GetDate [18:07:07]Write to MH i2c: F0 00 00 7C 03 6E [18:07:07]Write i2c OK [18:07:07]MH_I2C_Read... [18:07:07]Read from MH i2c: F0 [18:07:07]MH_I2C_Read... [18:07:07]Read from MH i2c: F0 09 00 [18:07:07]MH_I2C_Read... [18:07:07]Read from MH i2c: F0 09 00 7C 03 00 4B 65 95 66 C9 DC B2 64 DD [18:07:07]GetLastDocTimeStamp 1721066766 [18:07:07]current date 1721066827 [18:07:07]FM_GetShiftState [18:07:07]SAM_PROTO_GetShiftState [18:07:07]wFMCommunicate request_size=4 [18:07:07]MH_SAM_APDU [18:07:07]CAPDU: 80 13 01 00 [18:07:07]Write to MH i2c: E2 08 00 7D 03 80 13 01 00 00 00 00 00 FD [18:07:07]Write i2c OK [18:07:07]MH_I2C_Read... [18:07:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:07]Read from MH i2c: E2 [18:07:07]MH_I2C_Read... [18:07:07]Read from MH i2c: E2 0E 00 [18:07:07]MH_I2C_Read... [18:07:07]Read from MH i2c: E2 0E 00 7D 03 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 D6 [18:07:07]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [18:07:07]wFMCommunicate OK [18:07:07]SAM_PROTO_GetShiftState done [18:07:07]FM_GetShiftState done [18:07:07]opened in 1721003876 [18:07:07]opened+sec_in_day 1721090276 [18:07:07]quantity*price = 6580 [18:07:07]sum+1 = 6581 [18:07:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.80 ИТОГО: 65.00 Внесено: 65.00 СДАЧА: 0.00 НСП 1% : 0.58 НДС 12% : 6.99 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 270 15.07.2024 18:07 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165397 ФПД: 214901998819426 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T180707&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165397&fm=214901998819426&tin=02508201610067®Number=0000000000090829&sum=6500 [18:07:08]StoreToDocumentArchive [18:07:08]shift 448 fd 165397 [18:07:08]save to /storage/0448/doc_00165397 [18:07:08]save last doc name /storage/0448/doc_00165397 to /storage/kkm_last_doc_name [18:07:08]save OK [18:07:08]Clear old archive folders... [18:07:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:07:08]tlvbuf is 008881E0 [18:07:08]SAM_PROTO_ClearQueue [18:07:08]wFMCommunicate request_size=4 [18:07:08]MH_SAM_APDU [18:07:08]CAPDU: 80 09 00 00 [18:07:08]Write to MH i2c: E2 08 00 8A 03 80 09 00 00 00 00 00 00 FF [18:07:08]Write i2c OK [18:07:08]MH_I2C_Read... [18:07:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:07:08]Read from MH i2c: E2 [18:07:08]MH_I2C_Read... [18:07:08]Read from MH i2c: E2 03 00 [18:07:08]MH_I2C_Read... [18:07:08]Read from MH i2c: E2 03 00 8A 03 00 90 00 01 [18:07:08]RAPDU: 90 00 [18:07:08]wFMCommunicate OK [18:07:08]SAM_PROTO_ClearQueue done [18:07:08]KKMCreateOFDPacket [18:07:08]OFDProtocolAddRootSTLVToBuf [18:07:08]FM_MakeSignedData [18:07:08]FM_MakeSignedData [18:07:08]SAM_PROTO_SignData [18:07:08]wFMCommunicate request_size=4 [18:07:08]MH_SAM_APDU [18:07:08]CAPDU: 80 0D 01 02 [18:07:08]Write to MH i2c: E2 08 00 8B 03 80 0D 01 02 00 00 00 00 07 [18:07:08]Write i2c OK [18:07:08]MH_I2C_Read... [18:07:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:07:08]Read from MH i2c: E2 [18:07:08]MH_I2C_Read... [18:07:08]Read from MH i2c: E2 03 00 [18:07:08]MH_I2C_Read... [18:07:08]Read from MH i2c: E2 03 00 8B 03 00 90 00 02 [18:07:08]RAPDU: 90 00 [18:07:08]wFMCommunicate OK [18:07:08]wFMCommunicate request_size=255 [18:07:08]MH_SAM_APDU [18:07:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B4 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 4B 65 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 15 86 02 00 35 04 06 00 C3 [18:07:08]Write to MH i2c: E2 02 01 8C 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B4 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 4B 65 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 15 86 02 00 35 04 06 00 C3 00 00 68 [18:07:08]Write i2c OK [18:07:08]MH_I2C_Read... [18:07:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:08]Read from MH i2c: E2 [18:07:08]MH_I2C_Read... [18:07:08]Read from MH i2c: E2 03 00 [18:07:08]MH_I2C_Read... [18:07:08]Read from MH i2c: E2 03 00 8C 03 00 90 00 03 [18:07:08]RAPDU: 90 00 [18:07:08]wFMCommunicate OK [18:07:08]wFMCommunicate request_size=10 [18:07:08]MH_SAM_APDU [18:07:08]CAPDU: 80 0D 02 02 05 73 C5 4D 18 62 [18:07:08]Write to MH i2c: E2 0D 00 8D 03 80 0D 02 02 05 00 73 C5 4D 18 62 00 00 13 [18:07:08]Write i2c OK [18:07:08]MH_I2C_Read... [18:07:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:08]Read from MH i2c: E2 [18:07:08]MH_I2C_Read... [18:07:08]Read from MH i2c: E2 03 00 [18:07:08]MH_I2C_Read... [18:07:08]Read from MH i2c: E2 03 00 8D 03 00 90 00 04 [18:07:08]RAPDU: 90 00 [18:07:08]wFMCommunicate OK [18:07:08]wFMCommunicate request_size=4 [18:07:08]MH_SAM_APDU [18:07:08]CAPDU: 80 0D 03 02 [18:07:08]Write to MH i2c: E2 08 00 8E 03 80 0D 03 02 00 00 00 00 0C [18:07:08]Write i2c OK [18:07:08]MH_I2C_Read... [18:07:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:07:08]Read from MH i2c: E2 [18:07:08]MH_I2C_Read... [18:07:08]Read from MH i2c: E2 0B 00 [18:07:08]MH_I2C_Read... [18:07:08]Read from MH i2c: E2 0B 00 8E 03 00 D0 4C 20 4D 39 8F 75 49 90 00 1C [18:07:08]RAPDU: D0 4C 20 4D 39 8F 75 49 90 00 [18:07:08]wFMCommunicate OK [18:07:08]SAM_PROTO_SignData done [18:07:08]FM_MakeSignedData done [18:07:08]CreateOFDProtocolMessage [18:07:08]wFMCommunicate request_size=4 [18:07:08]MH_SAM_APDU [18:07:08]CAPDU: 80 11 00 00 [18:07:08]Write to MH i2c: E2 08 00 8F 03 80 11 00 00 00 00 00 00 0C [18:07:08]Write i2c OK [18:07:08]MH_I2C_Read... [18:07:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:08]Read from MH i2c: E2 [18:07:08]MH_I2C_Read... [18:07:08]Read from MH i2c: E2 17 00 [18:07:08]MH_I2C_Read... [18:07:08]Read from MH i2c: E2 17 00 8F 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 62 [18:07:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:07:08]wFMCommunicate OK [18:07:08]CreateOFDProtocolMessage done [18:07:08]OFDSenderStorePacket 165397 [18:07:08]StoreOFDPacket docnum=165397 [18:07:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 AD C7 07 01 06 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B4 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 4B 65 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 15 86 02 00 35 04 06 00 C3 73 C5 4D 18 62 D0 4C 20 4D 39 8F 75 49 [18:07:08]CheckFolder [18:07:08]dirname=/storage/ofd_packets [18:07:08]CheckFolder done [18:07:08]ProducePacketName [18:07:08]name=ofd_packets/00165397 [18:07:08]NVStorageSaveData ofd_packets/00165397 [18:07:08]File name is /storage/ofd_packets/00165397 [18:07:08]Write 301 bytes [18:07:08]NVStorageSaveData done [18:07:08]OFDSenderStorePacket done [18:07:08]KKMCreateOFDPacket done [18:07:08]NVStorageSaveData kkm_last_timestamp [18:07:08]File name is /storage/kkm_last_timestamp [18:07:08]Write 4 bytes [18:07:08]NVStorageSaveData done [18:07:08]OFD Sender: Processing packet 165397 [packets to send 106, broken 105] [18:07:08]ProducePacketName [18:07:08]name=ofd_packets/00165397 [18:07:08]OFD Sender: To server: pG, [18:07:08]CommunicateWithHost lk.salyk.kg:30040 [18:07:08]ConnectInit lk.salyk.kg [18:07:08]ExternCall_PrintAddStr [18:07:08]wPrintStart [18:07:08]Write to MH i2c: 01 00 00 90 03 93 [18:07:08]Write i2c OK [18:07:08]MH_I2C_Read... [18:07:08]Read from MH i2c: 01 [18:07:08]MH_I2C_Read... [18:07:08]Read from MH i2c: 01 07 00 [18:07:08]MH_I2C_Read... [18:07:08]Read from MH i2c: 01 07 00 90 03 00 00 00 00 00 FF 0F A8 [18:07:08]RasterBufferAndPrint [18:07:08]line Счет N : (1)459511 [18:07:08]line ИНН: 02508201610067 [18:07:08]line Контрольно-Кассовый Чек [18:07:08]line ПРОДАЖА [18:07:08]line ТРК (МРК, ГНК) : 22 [18:07:08]line Товар: 2710124130 [18:07:08]line Аи-92-К-5 [18:07:08]line 1.000 * 65.80 [18:07:08]line = 65.80 [18:07:08]line НДС 12% НСП 1% [18:07:08]line > о реализуемом товаре [18:07:08]line ОКРУГЛЕНИЕ: -0.80 [18:07:08]line ИТОГО: 65.00 [18:07:08]line Внесено: 65.00 [18:07:08]line СДАЧА: 0.00 [18:07:08]line НСП 1% : 0.58 [18:07:08]line НДС 12% : 6.99 [18:07:08]line Наличными: 65.00 [18:07:08]line Безнал.: 0.00 [18:07:08]line Место: АЗС № 72 "Партнер Нефть" [18:07:08]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:07:08]line СНО: Общий режим [18:07:08]line Чек 270 15.07.2024 18:07 [18:07:08]line Смена: 448 ФФД: 1.0 [18:07:08]line ЗНМ: 0300000160 [18:07:08]line РНМ: 0000000000090829 [18:07:08]line Версия ККМ: 001 [18:07:08]line ФМ: 0000000000874718 [18:07:08]line ФД: 165397 [18:07:08]line ФПД: 214901998819426 [18:07:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T180707&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165397&fm=214901998819426&tin=02508201610067®Number=0000000000090829&sum=6500 [18:07:09]Connected sock=11 [18:07: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 37 31 38 0F 01 00 00 AD C7 07 01 06 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B4 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 4B 65 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 15 86 02 00 35 04 06 00 C3 73 C5 4D 18 62 D0 4C 20 4D 39 8F 75 49 [18:07:09]written 0, free lines is 4095 [18:07:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 18 6F 47 00 9E 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 15 86 02 00 F4 03 04 00 D4 0B 95 66 B6 04 01 00 00 D0 38 7D 3F AF 42 3B 56 [18:07:09]CommunicateWithHost err = 0 [18:07:09]CheckOFDResponse [18:07:09]1017 (14) - 77093643461234 [18:07:09]1041 (16) - 0000000000874718 [18:07:09]1040 (4) - 165397 [18:07:09]1012 (4) - 15.07.2024 11:45 [18:07:09]1206 (1) - 0 [18:07:09]OFD Sender: Remove packet 165397 [18:07:09]ProducePacketName [18:07:09]name=ofd_packets/00165397 [18:07:09]NVStorageDeleteData [18:07:09]Write to MH i2c: 01 00 00 BA 03 BD [18:07:09]Write i2c OK [18:07:09]MH_I2C_Read... [18:07:09]Read from MH i2c: 01 [18:07:09]MH_I2C_Read... [18:07:09]Read from MH i2c: 01 07 00 [18:07:09]MH_I2C_Read... [18:07:09]Read from MH i2c: 01 07 00 BA 03 00 00 00 00 00 FF 0C CF [18:07:09]RasterBufferAndPrint [18:07:09]line [18:07:09]line [18:07:09]line [18:07:09]line [18:07:09]line [18:07:09]written 0, free lines is 3333 [18:07:09]MH_Cut [18:07:09]Write to MH i2c: D1 01 00 C1 03 01 96 [18:07:09]Write i2c OK [18:07:09]MH_I2C_Read... [18:07:09]Read from MH i2c: D1 [18:07:09]MH_I2C_Read... [18:07:09]Read from MH i2c: D1 01 00 [18:07:09]MH_I2C_Read... [18:07:09]Read from MH i2c: D1 01 00 C1 03 00 95 [18:07:09]Write to MH i2c: 01 00 00 C2 03 C5 [18:07:09]Write i2c OK [18:07:09]MH_I2C_Read... [18:07:09]OFD Sender: No OFD packet to send [18:07:10]*** Cut start [18:07:10]*** Partial cut [18:07:10]*** CUTSNS_PIN = 1 [18:07:10]*** CUTSNS_PIN = 0 [18:07:10]*** Brake cut motor [18:07:10]Read from MH i2c: 01 [18:07:10]MH_I2C_Read... [18:07:10]*** Stop cut motor [18:07:10]*** Cut end [18:07:10]Read from MH i2c: 01 07 00 [18:07:10]MH_I2C_Read... [18:07:10]Read from MH i2c: 01 07 00 C2 03 00 00 00 00 00 FF 0F DA [18:07:10]process_action close_receipt done [18:07:10]requested_data is exist [18:07:10]produce_requested_data [18:07:10]requested_item fm.sn is exist - process it [18:07:10]wFMCommunicate request_size=4 [18:07:10]MH_SAM_APDU [18:07:10]CAPDU: 80 11 00 00 [18:07:10]Write to MH i2c: E2 08 00 C3 03 80 11 00 00 00 00 00 00 40 [18:07:10]Write i2c OK [18:07:10]MH_I2C_Read... [18:07:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:10]Read from MH i2c: E2 [18:07:10]MH_I2C_Read... [18:07:10]Read from MH i2c: E2 17 00 [18:07:10]MH_I2C_Read... [18:07:10]Read from MH i2c: E2 17 00 C3 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 96 [18:07:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:07:10]wFMCommunicate OK [18:07:10]requested_item fd.num is exist - process it [18:07:10]SAM_PROTO_GetFieldsCounters [18:07:10]wFMCommunicate request_size=4 [18:07:10]MH_SAM_APDU [18:07:10]CAPDU: 80 13 00 00 [18:07:10]Write to MH i2c: E2 08 00 C4 03 80 13 00 00 00 00 00 00 43 [18:07:10]Write i2c OK [18:07:10]MH_I2C_Read... [18:07:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:07:11]Read from MH i2c: E2 [18:07:11]MH_I2C_Read... [18:07:11]Read from MH i2c: E2 62 00 [18:07:11]MH_I2C_Read... [18:07:11]Read from MH i2c: E2 62 00 C4 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 15 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 F5 [18:07: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 15 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:07:11]wFMCommunicate OK [18:07:11]SAM_PROTO_GetFieldsCounters done [18:07:11]requested_item shift.num is exist - process it [18:07:11]requested_item shift.opened is exist - process it [18:07:11]req_shift_opened [18:07:11]FM_GetShiftState [18:07:11]SAM_PROTO_GetShiftState [18:07:11]wFMCommunicate request_size=4 [18:07:11]MH_SAM_APDU [18:07:11]CAPDU: 80 13 01 00 [18:07:11]Write to MH i2c: E2 08 00 C5 03 80 13 01 00 00 00 00 00 45 [18:07:11]Write i2c OK [18:07:11]MH_I2C_Read... [18:07:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:11]Read from MH i2c: E2 [18:07:11]MH_I2C_Read... [18:07:11]Read from MH i2c: E2 0E 00 [18:07:11]MH_I2C_Read... [18:07:11]Read from MH i2c: E2 0E 00 C5 03 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 1E [18:07:11]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [18:07:11]wFMCommunicate OK [18:07:11]SAM_PROTO_GetShiftState done [18:07:11]FM_GetShiftState done [18:07:11]req_shift_opened done [18:07:11]requested_item shift.open_date is exist - process it [18:07:11]req_shift_open_date [18:07:11]req_shift_open_date done [18:07:11]produce_requested_data done [18:07:11]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165397,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [18:07:11]process_action_free close_receipt [18:07:11]json_value_free [18:07:11]json_value_free done [18:07:11]process_json_proto returns [18:07:11]Send response to host [18:07:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165397,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [18:07:11]free response buf [18:07:11]execute_script done [18:07:11]execute_script returns [18:07:11]free content buf [18:07:11]Sock 9.Close socket [18:07:11]Sock 9.Thread stoped [18:07:14]OFD Sender: No OFD packet to send [18:07:19]OFD Sender: No OFD packet to send [18:07:24]OFD Sender: No OFD packet to send [18:07:29]OFD Sender: No OFD packet to send [18:07:34]OFD Sender: No OFD packet to send [18:07:39]OFD Sender: No OFD packet to send [18:07:44]OFD Sender: No OFD packet to send [18:07:49]OFD Sender: No OFD packet to send [18:07:54]OFD Sender: No OFD packet to send [18:07:59]OFD Sender: No OFD packet to send [18:08:04]OFD Sender: No OFD packet to send [18:08:09]OFD Sender: No OFD packet to send [18:08:14]OFD Sender: No OFD packet to send [18:08:19]OFD Sender: No OFD packet to send [18:08:24]OFD Sender: No OFD packet to send [18:08:29]OFD Sender: No OFD packet to send [18:08:34]accept exits with 7 [18:08:34]New connection [18:08:34]New thread 3067153764 created [18:08:34]Thread 3067297124 joined [18:08:34]Waiting for new connection... [18:08:34] Sock 7.Parse request [18:08:34]Sock 7.Check first char [18:08:34]Sock 7.First char is OK [18:08:34]request: POST /json_proto HTTP/1.0 [18:08:34]Method: POST [18:08:34]URL: /json_proto [18:08:34]Method is POST - this is cgi request [18:08:34]url: /json_proto [18:08:34]query_string will be loaded in cgi processing [18:08:34]execute_cgi json_proto POST (null) [18:08:34]execute_cgi path=json_proto method=POST [18:08:34]POST find Content-Length [18:08:34]Host: 172.17.56.4:8080 [18:08:34]Content-Length: 677 [18:08:34]Content-Type: application/json [18:08:34] [18:08:34]POST finish read [18:08:34]Found Content-Length = 677 [18:08:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459512", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:08:34]execute_script... [18:08: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)459512", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:08:34]POST & json_proto [18:08:34]process_json_proto [18:08:34]json parsed OK: [18:08:34]protocol is kg_v1.0 [18:08:34]action value=close_receipt [18:08:34]process_action close_receipt [18:08:34]cmd_close_receipt [18:08:34]MH_GetDate [18:08:34]Write to MH i2c: F0 00 00 C6 03 B8 [18:08:34]Write i2c OK [18:08:34]MH_I2C_Read... [18:08:34]Read from MH i2c: F0 [18:08:34]MH_I2C_Read... [18:08:34]Read from MH i2c: F0 09 00 [18:08:34]MH_I2C_Read... [18:08:34]Read from MH i2c: F0 09 00 C6 03 00 A2 65 95 66 C9 DC B2 64 7E [18:08:34]GetLastDocTimeStamp 1721066827 [18:08:34]current date 1721066914 [18:08:34]FM_GetShiftState [18:08:34]SAM_PROTO_GetShiftState [18:08:34]wFMCommunicate request_size=4 [18:08:34]MH_SAM_APDU [18:08:34]CAPDU: 80 13 01 00 [18:08:34]Write to MH i2c: E2 08 00 C7 03 80 13 01 00 00 00 00 00 47 [18:08:34]Write i2c OK [18:08:34]MH_I2C_Read... [18:08:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:34]Read from MH i2c: E2 [18:08:34]MH_I2C_Read... [18:08:34]Read from MH i2c: E2 0E 00 [18:08:34]MH_I2C_Read... [18:08:34]Read from MH i2c: E2 0E 00 C7 03 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 20 [18:08:34]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [18:08:34]wFMCommunicate OK [18:08:34]SAM_PROTO_GetShiftState done [18:08:34]FM_GetShiftState done [18:08:34]opened in 1721003876 [18:08:34]opened+sec_in_day 1721090276 [18:08:34]quantity*price = 40006 [18:08:34]sum+1 = 40007 [18:08:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 271 15.07.2024 18:08 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165398 ФПД: 251906910496101 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T180834&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165398&fm=251906910496101&tin=02508201610067®Number=0000000000090829&sum=40000 [18:08:35]StoreToDocumentArchive [18:08:35]shift 448 fd 165398 [18:08:35]save to /storage/0448/doc_00165398 [18:08:35]save last doc name /storage/0448/doc_00165398 to /storage/kkm_last_doc_name [18:08:35]save OK [18:08:35]Clear old archive folders... [18:08:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:08:35]tlvbuf is 00898A60 [18:08:35]SAM_PROTO_ClearQueue [18:08:35]wFMCommunicate request_size=4 [18:08:35]MH_SAM_APDU [18:08:35]CAPDU: 80 09 00 00 [18:08:35]Write to MH i2c: E2 08 00 D4 03 80 09 00 00 00 00 00 00 49 [18:08:35]Write i2c OK [18:08:35]MH_I2C_Read... [18:08:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:08:35]Read from MH i2c: E2 [18:08:35]MH_I2C_Read... [18:08:35]Read from MH i2c: E2 03 00 [18:08:35]MH_I2C_Read... [18:08:35]Read from MH i2c: E2 03 00 D4 03 00 90 00 4B [18:08:35]RAPDU: 90 00 [18:08:35]wFMCommunicate OK [18:08:35]SAM_PROTO_ClearQueue done [18:08:35]KKMCreateOFDPacket [18:08:35]OFDProtocolAddRootSTLVToBuf [18:08:35]FM_MakeSignedData [18:08:35]FM_MakeSignedData [18:08:35]SAM_PROTO_SignData [18:08:35]wFMCommunicate request_size=4 [18:08:35]MH_SAM_APDU [18:08:35]CAPDU: 80 0D 01 02 [18:08:35]Write to MH i2c: E2 08 00 D5 03 80 0D 01 02 00 00 00 00 51 [18:08:35]Write i2c OK [18:08:35]MH_I2C_Read... [18:08:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:08:35]Read from MH i2c: E2 [18:08:35]MH_I2C_Read... [18:08:35]Read from MH i2c: E2 03 00 [18:08:35]MH_I2C_Read... [18:08:35]Read from MH i2c: E2 03 00 D5 03 00 90 00 4C [18:08:35]RAPDU: 90 00 [18:08:35]wFMCommunicate OK [18:08:35]wFMCommunicate request_size=255 [18:08:35]MH_SAM_APDU [18:08: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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 A2 65 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 16 86 02 00 35 04 06 00 E5 [18:08:35]Write to MH i2c: E2 02 01 D6 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 A2 65 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 16 86 02 00 35 04 06 00 E5 00 00 00 [18:08:35]Write i2c OK [18:08:35]MH_I2C_Read... [18:08:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:35]Read from MH i2c: E2 [18:08:35]MH_I2C_Read... [18:08:35]Read from MH i2c: E2 03 00 [18:08:35]MH_I2C_Read... [18:08:35]Read from MH i2c: E2 03 00 D6 03 00 90 00 4D [18:08:35]RAPDU: 90 00 [18:08:35]wFMCommunicate OK [18:08:35]wFMCommunicate request_size=10 [18:08:35]MH_SAM_APDU [18:08:35]CAPDU: 80 0D 02 02 05 1B A5 EA A5 65 [18:08:35]Write to MH i2c: E2 0D 00 D7 03 80 0D 02 02 05 00 1B A5 EA A5 65 00 00 12 [18:08:35]Write i2c OK [18:08:35]MH_I2C_Read... [18:08:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:35]Read from MH i2c: E2 [18:08:35]MH_I2C_Read... [18:08:35]Read from MH i2c: E2 03 00 [18:08:35]MH_I2C_Read... [18:08:35]Read from MH i2c: E2 03 00 D7 03 00 90 00 4E [18:08:35]RAPDU: 90 00 [18:08:35]wFMCommunicate OK [18:08:35]wFMCommunicate request_size=4 [18:08:35]MH_SAM_APDU [18:08:35]CAPDU: 80 0D 03 02 [18:08:35]Write to MH i2c: E2 08 00 D8 03 80 0D 03 02 00 00 00 00 56 [18:08:35]Write i2c OK [18:08:35]MH_I2C_Read... [18:08:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:08:35]Read from MH i2c: E2 [18:08:35]MH_I2C_Read... [18:08:35]Read from MH i2c: E2 0B 00 [18:08:35]MH_I2C_Read... [18:08:35]Read from MH i2c: E2 0B 00 D8 03 00 DB B0 1A 5C 43 75 05 43 90 00 58 [18:08:35]RAPDU: DB B0 1A 5C 43 75 05 43 90 00 [18:08:35]wFMCommunicate OK [18:08:35]SAM_PROTO_SignData done [18:08:35]FM_MakeSignedData done [18:08:35]CreateOFDProtocolMessage [18:08:35]wFMCommunicate request_size=4 [18:08:35]MH_SAM_APDU [18:08:35]CAPDU: 80 11 00 00 [18:08:35]Write to MH i2c: E2 08 00 D9 03 80 11 00 00 00 00 00 00 56 [18:08:35]Write i2c OK [18:08:35]MH_I2C_Read... [18:08:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:35]Read from MH i2c: E2 [18:08:35]MH_I2C_Read... [18:08:35]Read from MH i2c: E2 17 00 [18:08:35]MH_I2C_Read... [18:08:35]Read from MH i2c: E2 17 00 D9 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AC [18:08:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:08:35]wFMCommunicate OK [18:08:35]CreateOFDProtocolMessage done [18:08:35]OFDSenderStorePacket 165398 [18:08:35]StoreOFDPacket docnum=165398 [18:08:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B2 81 07 01 E9 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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 A2 65 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 16 86 02 00 35 04 06 00 E5 1B A5 EA A5 65 DB B0 1A 5C 43 75 05 43 [18:08:35]CheckFolder [18:08:35]dirname=/storage/ofd_packets [18:08:35]CheckFolder done [18:08:35]ProducePacketName [18:08:35]name=ofd_packets/00165398 [18:08:35]NVStorageSaveData ofd_packets/00165398 [18:08:35]File name is /storage/ofd_packets/00165398 [18:08:35]Write 301 bytes [18:08:35]NVStorageSaveData done [18:08:35]OFDSenderStorePacket done [18:08:35]KKMCreateOFDPacket done [18:08:35]NVStorageSaveData kkm_last_timestamp [18:08:35]File name is /storage/kkm_last_timestamp [18:08:35]Write 4 bytes [18:08:35]NVStorageSaveData done [18:08:35]ExternCall_PrintAddStr [18:08:35]wPrintStart [18:08:35]Write to MH i2c: 01 00 00 DA 03 DD [18:08:35]Write i2c OK [18:08:35]MH_I2C_Read... [18:08:35]Read from MH i2c: 01 [18:08:35]MH_I2C_Read... [18:08:35]Read from MH i2c: 01 07 00 [18:08:35]MH_I2C_Read... [18:08:35]Read from MH i2c: 01 07 00 DA 03 00 00 00 00 00 FF 0F F2 [18:08:35]RasterBufferAndPrint [18:08:35]line Счет N : (1)459512 [18:08:35]line ИНН: 02508201610067 [18:08:35]line Контрольно-Кассовый Чек [18:08:35]line ПРОДАЖА [18:08:35]line ТРК (МРК, ГНК) : 12 [18:08:35]line Товар: 2710124130 [18:08:35]line Аи-92-К-5 [18:08:35]line 6.080 * 65.80 [18:08:35]line = 400.06 [18:08:35]line НДС 12% НСП 1% [18:08:35]line > о реализуемом товаре [18:08:35]line ОКРУГЛЕНИЕ: -0.06 [18:08:35]line ИТОГО: 400.00 [18:08:35]line Внесено: 400.00 [18:08:35]line СДАЧА: 0.00 [18:08:35]line НСП 1% : 3.54 [18:08:35]line НДС 12% : 42.48 [18:08:35]line Наличными: 400.00 [18:08:35]line Безнал.: 0.00 [18:08:35]line Место: АЗС № 72 "Партнер Нефть" [18:08:35]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:08:35]line СНО: Общий режим [18:08:35]line Чек 271 15.07.2024 18:08 [18:08:35]line Смена: 448 ФФД: 1.0 [18:08:35]line ЗНМ: 0300000160 [18:08:35]line РНМ: 0000000000090829 [18:08:35]line Версия ККМ: 001 [18:08:35]line ФМ: 0000000000874718 [18:08:35]line ФД: 165398 [18:08:35]line ФПД: 251906910496101 [18:08:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T180834&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165398&fm=251906910496101&tin=02508201610067®Number=0000000000090829&sum=40000 [18:08:36]OFD Sender: Processing packet 165398 [packets to send 106, broken 105] [18:08:36]ProducePacketName [18:08:36]name=ofd_packets/00165398 [18:08:36]OFD Sender: To server: pG, [18:08:36]CommunicateWithHost lk.salyk.kg:30040 [18:08:36]ConnectInit lk.salyk.kg [18:08:36]written 0, free lines is 4095 [18:08:36]Connected sock=10 [18:08: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 37 31 38 0F 01 00 00 B2 81 07 01 E9 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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 A2 65 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 16 86 02 00 35 04 06 00 E5 1B A5 EA A5 65 DB B0 1A 5C 43 75 05 43 [18:08:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 69 E4 47 00 71 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 16 86 02 00 F4 03 04 00 2C 0C 95 66 B6 04 01 00 00 13 18 9C 0C 8C 26 5E 11 [18:08:36]CommunicateWithHost err = 0 [18:08:36]CheckOFDResponse [18:08:36]1017 (14) - 77093643461234 [18:08:36]1041 (16) - 0000000000874718 [18:08:36]1040 (4) - 165398 [18:08:36]1012 (4) - 15.07.2024 11:46 [18:08:36]1206 (1) - 0 [18:08:36]OFD Sender: Remove packet 165398 [18:08:36]ProducePacketName [18:08:36]name=ofd_packets/00165398 [18:08:36]NVStorageDeleteData [18:08:36]Write to MH i2c: 01 00 00 04 04 08 [18:08:36]Write i2c OK [18:08:36]MH_I2C_Read... [18:08:36]Read from MH i2c: 01 [18:08:36]MH_I2C_Read... [18:08:36]Read from MH i2c: 01 07 00 [18:08:36]MH_I2C_Read... [18:08:36]Read from MH i2c: 01 07 00 04 04 00 00 00 00 00 FA 0C 15 [18:08:36]RasterBufferAndPrint [18:08:36]line [18:08:36]line [18:08:36]line [18:08:36]line [18:08:36]line [18:08:36]written 0, free lines is 3328 [18:08:36]MH_Cut [18:08:36]Write to MH i2c: D1 01 00 0B 04 01 E1 [18:08:36]Write i2c OK [18:08:36]MH_I2C_Read... [18:08:36]Read from MH i2c: D1 [18:08:36]MH_I2C_Read... [18:08:36]Read from MH i2c: D1 01 00 [18:08:36]MH_I2C_Read... [18:08:36]Read from MH i2c: D1 01 00 0B 04 00 E0 [18:08:36]Write to MH i2c: 01 00 00 0C 04 10 [18:08:36]Write i2c OK [18:08:36]MH_I2C_Read... [18:08:37]OFD Sender: No OFD packet to send [18:08:37]*** Cut start [18:08:37]*** Partial cut [18:08:37]*** CUTSNS_PIN = 1 [18:08:37]*** CUTSNS_PIN = 0 [18:08:37]*** Brake cut motor [18:08:37]Read from MH i2c: 01 [18:08:37]MH_I2C_Read... [18:08:37]*** Stop cut motor [18:08:37]*** Cut end [18:08:37]Read from MH i2c: 01 07 00 [18:08:37]MH_I2C_Read... [18:08:37]Read from MH i2c: 01 07 00 0C 04 00 00 00 00 00 FF 0F 25 [18:08:37]process_action close_receipt done [18:08:37]requested_data is exist [18:08:37]produce_requested_data [18:08:37]requested_item fm.sn is exist - process it [18:08:37]wFMCommunicate request_size=4 [18:08:37]MH_SAM_APDU [18:08:37]CAPDU: 80 11 00 00 [18:08:37]Write to MH i2c: E2 08 00 0D 04 80 11 00 00 00 00 00 00 8B [18:08:37]Write i2c OK [18:08:37]MH_I2C_Read... [18:08:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:38]Read from MH i2c: E2 [18:08:38]MH_I2C_Read... [18:08:38]Read from MH i2c: E2 17 00 [18:08:38]MH_I2C_Read... [18:08:38]Read from MH i2c: E2 17 00 0D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E1 [18:08:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:08:38]wFMCommunicate OK [18:08:38]requested_item fd.num is exist - process it [18:08:38]SAM_PROTO_GetFieldsCounters [18:08:38]wFMCommunicate request_size=4 [18:08:38]MH_SAM_APDU [18:08:38]CAPDU: 80 13 00 00 [18:08:38]Write to MH i2c: E2 08 00 0E 04 80 13 00 00 00 00 00 00 8E [18:08:38]Write i2c OK [18:08:38]MH_I2C_Read... [18:08:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:08:38]Read from MH i2c: E2 [18:08:38]MH_I2C_Read... [18:08:38]Read from MH i2c: E2 62 00 [18:08:38]MH_I2C_Read... [18:08:38]Read from MH i2c: E2 62 00 0E 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 16 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 44 [18:08: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 16 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:08:38]wFMCommunicate OK [18:08:38]SAM_PROTO_GetFieldsCounters done [18:08:38]requested_item shift.num is exist - process it [18:08:38]requested_item shift.opened is exist - process it [18:08:38]req_shift_opened [18:08:38]FM_GetShiftState [18:08:38]SAM_PROTO_GetShiftState [18:08:38]wFMCommunicate request_size=4 [18:08:38]MH_SAM_APDU [18:08:38]CAPDU: 80 13 01 00 [18:08:38]Write to MH i2c: E2 08 00 0F 04 80 13 01 00 00 00 00 00 90 [18:08:38]Write i2c OK [18:08:38]MH_I2C_Read... [18:08:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:38]Read from MH i2c: E2 [18:08:38]MH_I2C_Read... [18:08:38]Read from MH i2c: E2 0E 00 [18:08:38]MH_I2C_Read... [18:08:38]Read from MH i2c: E2 0E 00 0F 04 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 69 [18:08:38]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [18:08:38]wFMCommunicate OK [18:08:38]SAM_PROTO_GetShiftState done [18:08:38]FM_GetShiftState done [18:08:38]req_shift_opened done [18:08:38]requested_item shift.open_date is exist - process it [18:08:38]req_shift_open_date [18:08:38]req_shift_open_date done [18:08:38]produce_requested_data done [18:08:38]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165398,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [18:08:38]process_action_free close_receipt [18:08:38]json_value_free [18:08:38]json_value_free done [18:08:38]process_json_proto returns [18:08:38]Send response to host [18:08:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165398,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [18:08:38]free response buf [18:08:38]execute_script done [18:08:38]execute_script returns [18:08:38]free content buf [18:08:38]Sock 7.Close socket [18:08:38]Sock 7.Thread stoped [18:08:42]OFD Sender: No OFD packet to send [18:08:47]OFD Sender: No OFD packet to send [18:08:52]OFD Sender: No OFD packet to send [18:08:57]OFD Sender: No OFD packet to send [18:09:02]OFD Sender: No OFD packet to send [18:09:07]OFD Sender: No OFD packet to send [18:09:12]OFD Sender: No OFD packet to send [18:09:17]OFD Sender: No OFD packet to send [18:09:22]OFD Sender: No OFD packet to send [18:09:27]OFD Sender: No OFD packet to send [18:09:32]OFD Sender: No OFD packet to send [18:09:37]OFD Sender: No OFD packet to send [18:09:42]OFD Sender: No OFD packet to send [18:09:47]OFD Sender: No OFD packet to send [18:09:52]OFD Sender: No OFD packet to send [18:09:57]OFD Sender: No OFD packet to send [18:10:02]OFD Sender: No OFD packet to send [18:10:07]OFD Sender: No OFD packet to send [18:10:12]OFD Sender: No OFD packet to send [18:10:17]OFD Sender: No OFD packet to send [18:10:22]OFD Sender: No OFD packet to send [18:10:27]OFD Sender: No OFD packet to send [18:10:32]OFD Sender: No OFD packet to send [18:10:37]OFD Sender: No OFD packet to send [18:10:42]OFD Sender: No OFD packet to send [18:10:47]OFD Sender: No OFD packet to send [18:10:52]OFD Sender: No OFD packet to send [18:10:57]OFD Sender: No OFD packet to send [18:11:02]OFD Sender: No OFD packet to send [18:11:02]accept exits with 9 [18:11:02]New connection [18:11:02]New thread 3067297124 created [18:11:02]Thread 3067153764 joined [18:11:02]Waiting for new connection... [18:11:02] Sock 9.Parse request [18:11:02]Sock 9.Check first char [18:11:02]Sock 9.First char is OK [18:11:02]request: POST /json_proto HTTP/1.0 [18:11:02]Method: POST [18:11:02]URL: /json_proto [18:11:02]Method is POST - this is cgi request [18:11:02]url: /json_proto [18:11:02]query_string will be loaded in cgi processing [18:11:02]execute_cgi json_proto POST (null) [18:11:02]execute_cgi path=json_proto method=POST [18:11:02]POST find Content-Length [18:11:02]Host: 172.17.56.4:8080 [18:11:02]Content-Length: 677 [18:11:02]Content-Type: application/json [18:11:02] [18:11:02]POST finish read [18:11:02]Found Content-Length = 677 [18:11:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459513", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.840, "sum" : 450.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:11:02]execute_script... [18:11:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459513", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.840, "sum" : 450.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:11:02]POST & json_proto [18:11:02]process_json_proto [18:11:02]json parsed OK: [18:11:02]protocol is kg_v1.0 [18:11:02]action value=close_receipt [18:11:02]process_action close_receipt [18:11:02]cmd_close_receipt [18:11:02]MH_GetDate [18:11:02]Write to MH i2c: F0 00 00 10 04 03 [18:11:02]Write i2c OK [18:11:02]MH_I2C_Read... [18:11:02]Read from MH i2c: F0 [18:11:02]MH_I2C_Read... [18:11:02]Read from MH i2c: F0 09 00 [18:11:02]MH_I2C_Read... [18:11:02]Read from MH i2c: F0 09 00 10 04 00 37 66 95 66 C9 DC B2 64 5F [18:11:02]GetLastDocTimeStamp 1721066914 [18:11:02]current date 1721067063 [18:11:02]FM_GetShiftState [18:11:02]SAM_PROTO_GetShiftState [18:11:02]wFMCommunicate request_size=4 [18:11:02]MH_SAM_APDU [18:11:02]CAPDU: 80 13 01 00 [18:11:02]Write to MH i2c: E2 08 00 11 04 80 13 01 00 00 00 00 00 92 [18:11:02]Write i2c OK [18:11:02]MH_I2C_Read... [18:11:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:02]Read from MH i2c: E2 [18:11:02]MH_I2C_Read... [18:11:02]Read from MH i2c: E2 0E 00 [18:11:02]MH_I2C_Read... [18:11:02]Read from MH i2c: E2 0E 00 11 04 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 6B [18:11:02]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [18:11:02]wFMCommunicate OK [18:11:02]SAM_PROTO_GetShiftState done [18:11:02]FM_GetShiftState done [18:11:02]opened in 1721003876 [18:11:02]opened+sec_in_day 1721090276 [18:11:02]quantity*price = 45007 [18:11:02]sum+1 = 45008 [18:11:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 450.00 Внесено: 450.00 СДАЧА: 0.00 НСП 1% : 3.98 НДС 12% : 47.79 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 272 15.07.2024 18:11 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165399 ФПД: 155751783491126 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T181103&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165399&fm=155751783491126&tin=02508201610067®Number=0000000000090829&sum=45000 [18:11:04]StoreToDocumentArchive [18:11:04]shift 448 fd 165399 [18:11:04]save to /storage/0448/doc_00165399 [18:11:04]save last doc name /storage/0448/doc_00165399 to /storage/kkm_last_doc_name [18:11:04]save OK [18:11:04]Clear old archive folders... [18:11:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:11:04]tlvbuf is 00876310 [18:11:04]SAM_PROTO_ClearQueue [18:11:04]wFMCommunicate request_size=4 [18:11:04]MH_SAM_APDU [18:11:04]CAPDU: 80 09 00 00 [18:11:04]Write to MH i2c: E2 08 00 1E 04 80 09 00 00 00 00 00 00 94 [18:11:04]Write i2c OK [18:11:04]MH_I2C_Read... [18:11:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:11:04]Read from MH i2c: E2 [18:11:04]MH_I2C_Read... [18:11:04]Read from MH i2c: E2 03 00 [18:11:04]MH_I2C_Read... [18:11:04]Read from MH i2c: E2 03 00 1E 04 00 90 00 96 [18:11:04]RAPDU: 90 00 [18:11:04]wFMCommunicate OK [18:11:04]SAM_PROTO_ClearQueue done [18:11:04]KKMCreateOFDPacket [18:11:04]OFDProtocolAddRootSTLVToBuf [18:11:04]FM_MakeSignedData [18:11:04]FM_MakeSignedData [18:11:04]SAM_PROTO_SignData [18:11:04]wFMCommunicate request_size=4 [18:11:04]MH_SAM_APDU [18:11:04]CAPDU: 80 0D 01 02 [18:11:04]Write to MH i2c: E2 08 00 1F 04 80 0D 01 02 00 00 00 00 9C [18:11:04]Write i2c OK [18:11:04]MH_I2C_Read... [18:11:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:11:04]Read from MH i2c: E2 [18:11:04]MH_I2C_Read... [18:11:04]Read from MH i2c: E2 03 00 [18:11:04]MH_I2C_Read... [18:11:04]Read from MH i2c: E2 03 00 1F 04 00 90 00 97 [18:11:04]RAPDU: 90 00 [18:11:04]wFMCommunicate OK [18:11:04]wFMCommunicate request_size=255 [18:11:04]MH_SAM_APDU [18:11:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 1A 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 CF AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 37 66 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 17 86 02 00 35 04 06 00 8D [18:11:04]Write to MH i2c: E2 02 01 20 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 1A 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 CF AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 37 66 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 17 86 02 00 35 04 06 00 8D 00 00 99 [18:11:04]Write i2c OK [18:11:04]MH_I2C_Read... [18:11:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:04]Read from MH i2c: E2 [18:11:04]MH_I2C_Read... [18:11:04]Read from MH i2c: E2 03 00 [18:11:04]MH_I2C_Read... [18:11:04]Read from MH i2c: E2 03 00 20 04 00 90 00 98 [18:11:04]RAPDU: 90 00 [18:11:04]wFMCommunicate OK [18:11:04]wFMCommunicate request_size=10 [18:11:04]MH_SAM_APDU [18:11:04]CAPDU: 80 0D 02 02 05 A7 C9 BA 66 36 [18:11:04]Write to MH i2c: E2 0D 00 21 04 80 0D 02 02 05 00 A7 C9 BA 66 36 00 00 6F [18:11:04]Write i2c OK [18:11:04]MH_I2C_Read... [18:11:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:04]Read from MH i2c: E2 [18:11:04]MH_I2C_Read... [18:11:04]Read from MH i2c: E2 03 00 [18:11:04]MH_I2C_Read... [18:11:04]Read from MH i2c: E2 03 00 21 04 00 90 00 99 [18:11:04]RAPDU: 90 00 [18:11:04]wFMCommunicate OK [18:11:04]wFMCommunicate request_size=4 [18:11:04]MH_SAM_APDU [18:11:04]CAPDU: 80 0D 03 02 [18:11:04]Write to MH i2c: E2 08 00 22 04 80 0D 03 02 00 00 00 00 A1 [18:11:04]Write i2c OK [18:11:04]MH_I2C_Read... [18:11:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:11:04]Read from MH i2c: E2 [18:11:04]MH_I2C_Read... [18:11:04]Read from MH i2c: E2 0B 00 [18:11:04]MH_I2C_Read... [18:11:04]Read from MH i2c: E2 0B 00 22 04 00 F2 9E 3F F6 EA 8C 10 FD 90 00 EA [18:11:04]RAPDU: F2 9E 3F F6 EA 8C 10 FD 90 00 [18:11:04]wFMCommunicate OK [18:11:04]SAM_PROTO_SignData done [18:11:04]FM_MakeSignedData done [18:11:04]CreateOFDProtocolMessage [18:11:04]wFMCommunicate request_size=4 [18:11:04]MH_SAM_APDU [18:11:04]CAPDU: 80 11 00 00 [18:11:04]Write to MH i2c: E2 08 00 23 04 80 11 00 00 00 00 00 00 A1 [18:11:04]Write i2c OK [18:11:04]MH_I2C_Read... [18:11:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:04]Read from MH i2c: E2 [18:11:04]MH_I2C_Read... [18:11:04]Read from MH i2c: E2 17 00 [18:11:04]MH_I2C_Read... [18:11:04]Read from MH i2c: E2 17 00 23 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F7 [18:11:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:11:04]wFMCommunicate OK [18:11:04]CreateOFDProtocolMessage done [18:11:04]OFDSenderStorePacket 165399 [18:11:04]StoreOFDPacket docnum=165399 [18:11:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 3B 9D 07 01 91 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 B8 1A 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 CF AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 37 66 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 17 86 02 00 35 04 06 00 8D A7 C9 BA 66 36 F2 9E 3F F6 EA 8C 10 FD [18:11:04]CheckFolder [18:11:04]dirname=/storage/ofd_packets [18:11:04]CheckFolder done [18:11:04]ProducePacketName [18:11:04]name=ofd_packets/00165399 [18:11:04]NVStorageSaveData ofd_packets/00165399 [18:11:04]File name is /storage/ofd_packets/00165399 [18:11:04]Write 301 bytes [18:11:04]NVStorageSaveData done [18:11:04]OFDSenderStorePacket done [18:11:04]KKMCreateOFDPacket done [18:11:04]NVStorageSaveData kkm_last_timestamp [18:11:04]File name is /storage/kkm_last_timestamp [18:11:04]Write 4 bytes [18:11:04]NVStorageSaveData done [18:11:04]ExternCall_PrintAddStr [18:11:04]wPrintStart [18:11:04]Write to MH i2c: 01 00 00 24 04 28 [18:11:04]OFD Sender: Processing packet 165399 [packets to send 106, broken 105] [18:11:04]ProducePacketName [18:11:04]name=ofd_packets/00165399 [18:11:04]OFD Sender: To server: pG, [18:11:04]CommunicateWithHost lk.salyk.kg:30040 [18:11:04]ConnectInit lk.salyk.kg [18:11:04]Write i2c OK [18:11:04]MH_I2C_Read... [18:11:04]Read from MH i2c: 01 [18:11:04]MH_I2C_Read... [18:11:04]Read from MH i2c: 01 07 00 [18:11:04]MH_I2C_Read... [18:11:04]Read from MH i2c: 01 07 00 24 04 00 00 00 00 00 FF 0F 3D [18:11:04]RasterBufferAndPrint [18:11:04]line Счет N : (1)459513 [18:11:04]line ИНН: 02508201610067 [18:11:04]line Контрольно-Кассовый Чек [18:11:04]line ПРОДАЖА [18:11:04]line ТРК (МРК, ГНК) : 22 [18:11:04]line Товар: 2710124130 [18:11:04]line Аи-92-К-5 [18:11:04]line 6.840 * 65.80 [18:11:04]line = 450.07 [18:11:04]line НДС 12% НСП 1% [18:11:04]line > о реализуемом товаре [18:11:04]line ОКРУГЛЕНИЕ: -0.07 [18:11:04]line ИТОГО: 450.00 [18:11:04]line Внесено: 450.00 [18:11:04]line СДАЧА: 0.00 [18:11:04]line НСП 1% : 3.98 [18:11:04]line НДС 12% : 47.79 [18:11:04]line Наличными: 450.00 [18:11:04]line Безнал.: 0.00 [18:11:04]line Место: АЗС № 72 "Партнер Нефть" [18:11:04]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:11:04]line СНО: Общий режим [18:11:04]line Чек 272 15.07.2024 18:11 [18:11:04]line Смена: 448 ФФД: 1.0 [18:11:04]line ЗНМ: 0300000160 [18:11:04]line РНМ: 0000000000090829 [18:11:04]line Версия ККМ: 001 [18:11:04]line ФМ: 0000000000874718 [18:11:04]line ФД: 165399 [18:11:04]line ФПД: 155751783491126 [18:11:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T181103&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165399&fm=155751783491126&tin=02508201610067®Number=0000000000090829&sum=45000 [18:11:04]Connected sock=10 [18:11:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 3B 9D 07 01 91 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 B8 1A 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 CF AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 37 66 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 17 86 02 00 35 04 06 00 8D A7 C9 BA 66 36 F2 9E 3F F6 EA 8C 10 FD [18:11:04]written 0, free lines is 4095 [18:11:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 DB 78 47 00 DE 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 37 31 38 10 04 04 00 17 86 02 00 F4 03 04 00 C0 0C 95 66 B6 04 01 00 00 45 4A BD 66 E2 20 A9 A8 [18:11:05]CommunicateWithHost err = 0 [18:11:05]CheckOFDResponse [18:11:05]1017 (14) - 77093643461234 [18:11:05]1041 (16) - 0000000000874718 [18:11:05]1040 (4) - 165399 [18:11:05]1012 (4) - 15.07.2024 11:49 [18:11:05]1206 (1) - 0 [18:11:05]OFD Sender: Remove packet 165399 [18:11:05]ProducePacketName [18:11:05]name=ofd_packets/00165399 [18:11:05]NVStorageDeleteData [18:11:05]Write to MH i2c: 01 00 00 4E 04 52 [18:11:05]Write i2c OK [18:11:05]MH_I2C_Read... [18:11:05]Read from MH i2c: 01 [18:11:05]MH_I2C_Read... [18:11:05]Read from MH i2c: 01 07 00 [18:11:05]MH_I2C_Read... [18:11:05]Read from MH i2c: 01 07 00 4E 04 00 00 00 00 00 04 0D 6A [18:11:05]RasterBufferAndPrint [18:11:05]line [18:11:05]line [18:11:05]line [18:11:05]line [18:11:05]line [18:11:05]written 0, free lines is 3339 [18:11:05]MH_Cut [18:11:05]Write to MH i2c: D1 01 00 55 04 01 2B [18:11:05]Write i2c OK [18:11:05]MH_I2C_Read... [18:11:05]Read from MH i2c: D1 [18:11:05]MH_I2C_Read... [18:11:05]Read from MH i2c: D1 01 00 [18:11:05]MH_I2C_Read... [18:11:05]Read from MH i2c: D1 01 00 55 04 00 2A [18:11:05]Write to MH i2c: 01 00 00 56 04 5A [18:11:05]Write i2c OK [18:11:05]MH_I2C_Read... [18:11:05]OFD Sender: No OFD packet to send [18:11:06]*** Cut start [18:11:06]*** Partial cut [18:11:06]*** CUTSNS_PIN = 1 [18:11:06]*** CUTSNS_PIN = 0 [18:11:06]*** Brake cut motor [18:11:06]Read from MH i2c: 01 [18:11:06]MH_I2C_Read... [18:11:06]*** Stop cut motor [18:11:06]*** Cut end [18:11:06]Read from MH i2c: 01 07 00 [18:11:06]MH_I2C_Read... [18:11:06]Read from MH i2c: 01 07 00 56 04 00 00 00 00 00 FF 0F 6F [18:11:06]process_action close_receipt done [18:11:06]requested_data is exist [18:11:06]produce_requested_data [18:11:06]requested_item fm.sn is exist - process it [18:11:06]wFMCommunicate request_size=4 [18:11:06]MH_SAM_APDU [18:11:06]CAPDU: 80 11 00 00 [18:11:06]Write to MH i2c: E2 08 00 57 04 80 11 00 00 00 00 00 00 D5 [18:11:06]Write i2c OK [18:11:06]MH_I2C_Read... [18:11:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:06]Read from MH i2c: E2 [18:11:06]MH_I2C_Read... [18:11:06]Read from MH i2c: E2 17 00 [18:11:06]MH_I2C_Read... [18:11:06]Read from MH i2c: E2 17 00 57 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2B [18:11:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:11:06]wFMCommunicate OK [18:11:06]requested_item fd.num is exist - process it [18:11:06]SAM_PROTO_GetFieldsCounters [18:11:06]wFMCommunicate request_size=4 [18:11:06]MH_SAM_APDU [18:11:06]CAPDU: 80 13 00 00 [18:11:06]Write to MH i2c: E2 08 00 58 04 80 13 00 00 00 00 00 00 D8 [18:11:06]Write i2c OK [18:11:06]MH_I2C_Read... [18:11:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:11:06]Read from MH i2c: E2 [18:11:06]MH_I2C_Read... [18:11:06]Read from MH i2c: E2 62 00 [18:11:06]MH_I2C_Read... [18:11:06]Read from MH i2c: E2 62 00 58 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 17 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 92 [18:11:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 17 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:11:06]wFMCommunicate OK [18:11:06]SAM_PROTO_GetFieldsCounters done [18:11:06]requested_item shift.num is exist - process it [18:11:06]requested_item shift.opened is exist - process it [18:11:06]req_shift_opened [18:11:06]FM_GetShiftState [18:11:06]SAM_PROTO_GetShiftState [18:11:06]wFMCommunicate request_size=4 [18:11:06]MH_SAM_APDU [18:11:06]CAPDU: 80 13 01 00 [18:11:06]Write to MH i2c: E2 08 00 59 04 80 13 01 00 00 00 00 00 DA [18:11:06]Write i2c OK [18:11:06]MH_I2C_Read... [18:11:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:06]Read from MH i2c: E2 [18:11:06]MH_I2C_Read... [18:11:06]Read from MH i2c: E2 0E 00 [18:11:06]MH_I2C_Read... [18:11:06]Read from MH i2c: E2 0E 00 59 04 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 B3 [18:11:06]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [18:11:06]wFMCommunicate OK [18:11:06]SAM_PROTO_GetShiftState done [18:11:06]FM_GetShiftState done [18:11:06]req_shift_opened done [18:11:06]requested_item shift.open_date is exist - process it [18:11:06]req_shift_open_date [18:11:06]req_shift_open_date done [18:11:06]produce_requested_data done [18:11:06]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165399,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [18:11:06]process_action_free close_receipt [18:11:06]json_value_free [18:11:06]json_value_free done [18:11:06]process_json_proto returns [18:11:06]Send response to host [18:11:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165399,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [18:11:06]free response buf [18:11:06]execute_script done [18:11:06]execute_script returns [18:11:06]free content buf [18:11:06]Sock 9.Close socket [18:11:06]Sock 9.Thread stoped [18:11:10]OFD Sender: No OFD packet to send [18:11:15]OFD Sender: No OFD packet to send [18:11:20]OFD Sender: No OFD packet to send [18:11:25]OFD Sender: No OFD packet to send [18:11:30]OFD Sender: No OFD packet to send [18:11:35]OFD Sender: No OFD packet to send [18:11:40]OFD Sender: No OFD packet to send [18:11:45]OFD Sender: No OFD packet to send [18:11:50]OFD Sender: No OFD packet to send [18:11:55]OFD Sender: No OFD packet to send [18:12:00]OFD Sender: No OFD packet to send [18:12:05]OFD Sender: No OFD packet to send [18:12:10]OFD Sender: No OFD packet to send [18:12:15]OFD Sender: No OFD packet to send [18:12:20]OFD Sender: No OFD packet to send [18:12:22]accept exits with 7 [18:12:22]New connection [18:12:22]New thread 3067153764 created [18:12:22]Thread 3067297124 joined [18:12:22]Waiting for new connection... [18:12:22] Sock 7.Parse request [18:12:22]Sock 7.Check first char [18:12:22]Sock 7.First char is OK [18:12:22]request: POST /json_proto HTTP/1.0 [18:12:22]Method: POST [18:12:22]URL: /json_proto [18:12:22]Method is POST - this is cgi request [18:12:22]url: /json_proto [18:12:22]query_string will be loaded in cgi processing [18:12:22]execute_cgi json_proto POST (null) [18:12:22]execute_cgi path=json_proto method=POST [18:12:22]POST find Content-Length [18:12:22]Host: 172.17.56.4:8080 [18:12:22]Content-Length: 677 [18:12:22]Content-Type: application/json [18:12:22] [18:12:22]POST finish read [18:12:22]Found Content-Length = 677 [18:12:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459514", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:12:22]execute_script... [18:12:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459514", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:12:22]POST & json_proto [18:12:22]process_json_proto [18:12:22]json parsed OK: [18:12:22]protocol is kg_v1.0 [18:12:22]action value=close_receipt [18:12:22]process_action close_receipt [18:12:22]cmd_close_receipt [18:12:22]MH_GetDate [18:12:22]Write to MH i2c: F0 00 00 5A 04 4D [18:12:22]Write i2c OK [18:12:22]MH_I2C_Read... [18:12:22]Read from MH i2c: F0 [18:12:22]MH_I2C_Read... [18:12:22]Read from MH i2c: F0 09 00 [18:12:22]MH_I2C_Read... [18:12:22]Read from MH i2c: F0 09 00 5A 04 00 86 66 95 66 C9 DC B2 64 F8 [18:12:22]GetLastDocTimeStamp 1721067063 [18:12:22]current date 1721067142 [18:12:22]FM_GetShiftState [18:12:22]SAM_PROTO_GetShiftState [18:12:22]wFMCommunicate request_size=4 [18:12:22]MH_SAM_APDU [18:12:22]CAPDU: 80 13 01 00 [18:12:22]Write to MH i2c: E2 08 00 5B 04 80 13 01 00 00 00 00 00 DC [18:12:22]Write i2c OK [18:12:22]MH_I2C_Read... [18:12:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:22]Read from MH i2c: E2 [18:12:22]MH_I2C_Read... [18:12:22]Read from MH i2c: E2 0E 00 [18:12:22]MH_I2C_Read... [18:12:22]Read from MH i2c: E2 0E 00 5B 04 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 B5 [18:12:22]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [18:12:22]wFMCommunicate OK [18:12:22]SAM_PROTO_GetShiftState done [18:12:22]FM_GetShiftState done [18:12:22]opened in 1721003876 [18:12:22]opened+sec_in_day 1721090276 [18:12:22]quantity*price = 20003 [18:12:22]sum+1 = 20004 [18:12:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 273 15.07.2024 18:12 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165400 ФПД: 129133847446693 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T181222&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165400&fm=129133847446693&tin=02508201610067®Number=0000000000090829&sum=20000 [18:12:23]StoreToDocumentArchive [18:12:23]shift 448 fd 165400 [18:12:23]save to /storage/0448/doc_00165400 [18:12:23]save last doc name /storage/0448/doc_00165400 to /storage/kkm_last_doc_name [18:12:23]save OK [18:12:23]Clear old archive folders... [18:12:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:12:23]tlvbuf is 00893840 [18:12:23]SAM_PROTO_ClearQueue [18:12:23]wFMCommunicate request_size=4 [18:12:23]MH_SAM_APDU [18:12:23]CAPDU: 80 09 00 00 [18:12:23]Write to MH i2c: E2 08 00 68 04 80 09 00 00 00 00 00 00 DE [18:12:23]Write i2c OK [18:12:23]MH_I2C_Read... [18:12:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:12:23]Read from MH i2c: E2 [18:12:23]MH_I2C_Read... [18:12:23]Read from MH i2c: E2 03 00 [18:12:23]MH_I2C_Read... [18:12:23]Read from MH i2c: E2 03 00 68 04 00 90 00 E0 [18:12:23]RAPDU: 90 00 [18:12:23]wFMCommunicate OK [18:12:23]SAM_PROTO_ClearQueue done [18:12:23]KKMCreateOFDPacket [18:12:23]OFDProtocolAddRootSTLVToBuf [18:12:23]FM_MakeSignedData [18:12:23]FM_MakeSignedData [18:12:23]SAM_PROTO_SignData [18:12:23]wFMCommunicate request_size=4 [18:12:23]MH_SAM_APDU [18:12:23]CAPDU: 80 0D 01 02 [18:12:23]Write to MH i2c: E2 08 00 69 04 80 0D 01 02 00 00 00 00 E6 [18:12:23]Write i2c OK [18:12:23]MH_I2C_Read... [18:12:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:12:23]Read from MH i2c: E2 [18:12:23]MH_I2C_Read... [18:12:23]Read from MH i2c: E2 03 00 [18:12:23]MH_I2C_Read... [18:12:23]Read from MH i2c: E2 03 00 69 04 00 90 00 E1 [18:12:23]RAPDU: 90 00 [18:12:23]wFMCommunicate OK [18:12:23]wFMCommunicate request_size=255 [18:12:23]MH_SAM_APDU [18:12:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 86 66 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 18 86 02 00 35 04 06 00 75 [18:12:23]Write to MH i2c: E2 02 01 6A 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 86 66 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 18 86 02 00 35 04 06 00 75 00 00 CF [18:12:23]Write i2c OK [18:12:23]MH_I2C_Read... [18:12:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:24]Read from MH i2c: E2 [18:12:24]MH_I2C_Read... [18:12:24]Read from MH i2c: E2 03 00 [18:12:24]MH_I2C_Read... [18:12:24]Read from MH i2c: E2 03 00 6A 04 00 90 00 E2 [18:12:24]RAPDU: 90 00 [18:12:24]wFMCommunicate OK [18:12:24]wFMCommunicate request_size=10 [18:12:24]MH_SAM_APDU [18:12:24]CAPDU: 80 0D 02 02 05 72 51 1B 04 A5 [18:12:24]Write to MH i2c: E2 0D 00 6B 04 80 0D 02 02 05 00 72 51 1B 04 A5 00 00 7A [18:12:24]Write i2c OK [18:12:24]MH_I2C_Read... [18:12:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:24]Read from MH i2c: E2 [18:12:24]MH_I2C_Read... [18:12:24]Read from MH i2c: E2 03 00 [18:12:24]MH_I2C_Read... [18:12:24]Read from MH i2c: E2 03 00 6B 04 00 90 00 E3 [18:12:24]RAPDU: 90 00 [18:12:24]wFMCommunicate OK [18:12:24]wFMCommunicate request_size=4 [18:12:24]MH_SAM_APDU [18:12:24]CAPDU: 80 0D 03 02 [18:12:24]Write to MH i2c: E2 08 00 6C 04 80 0D 03 02 00 00 00 00 EB [18:12:24]Write i2c OK [18:12:24]MH_I2C_Read... [18:12:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:12:24]Read from MH i2c: E2 [18:12:24]MH_I2C_Read... [18:12:24]Read from MH i2c: E2 0B 00 [18:12:24]MH_I2C_Read... [18:12:24]Read from MH i2c: E2 0B 00 6C 04 00 26 4D FF 9B D4 C3 30 30 90 00 F0 [18:12:24]RAPDU: 26 4D FF 9B D4 C3 30 30 90 00 [18:12:24]wFMCommunicate OK [18:12:24]SAM_PROTO_SignData done [18:12:24]FM_MakeSignedData done [18:12:24]CreateOFDProtocolMessage [18:12:24]wFMCommunicate request_size=4 [18:12:24]MH_SAM_APDU [18:12:24]CAPDU: 80 11 00 00 [18:12:24]Write to MH i2c: E2 08 00 6D 04 80 11 00 00 00 00 00 00 EB [18:12:24]Write i2c OK [18:12:24]MH_I2C_Read... [18:12:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:24]Read from MH i2c: E2 [18:12:24]MH_I2C_Read... [18:12:24]Read from MH i2c: E2 17 00 [18:12:24]MH_I2C_Read... [18:12:24]Read from MH i2c: E2 17 00 6D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 41 [18:12:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:12:24]wFMCommunicate OK [18:12:24]CreateOFDProtocolMessage done [18:12:24]OFDSenderStorePacket 165400 [18:12:24]StoreOFDPacket docnum=165400 [18:12:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 FC 6A 07 01 7A CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 86 66 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 18 86 02 00 35 04 06 00 75 72 51 1B 04 A5 26 4D FF 9B D4 C3 30 30 [18:12:24]CheckFolder [18:12:24]dirname=/storage/ofd_packets [18:12:24]CheckFolder done [18:12:24]ProducePacketName [18:12:24]name=ofd_packets/00165400 [18:12:24]NVStorageSaveData ofd_packets/00165400 [18:12:24]File name is /storage/ofd_packets/00165400 [18:12:24]Write 301 bytes [18:12:24]NVStorageSaveData done [18:12:24]OFDSenderStorePacket done [18:12:24]KKMCreateOFDPacket done [18:12:24]NVStorageSaveData kkm_last_timestamp [18:12:24]File name is /storage/kkm_last_timestamp [18:12:24]Write 4 bytes [18:12:24]NVStorageSaveData done [18:12:24]ExternCall_PrintAddStr [18:12:24]wPrintStart [18:12:24]Write to MH i2c: 01 00 00 6E 04 72 [18:12:24]Write i2c OK [18:12:24]MH_I2C_Read... [18:12:24]Read from MH i2c: 01 [18:12:24]MH_I2C_Read... [18:12:24]Read from MH i2c: 01 07 00 [18:12:24]MH_I2C_Read... [18:12:24]Read from MH i2c: 01 07 00 6E 04 00 00 00 00 00 FF 0F 87 [18:12:24]RasterBufferAndPrint [18:12:24]line Счет N : (1)459514 [18:12:24]line ИНН: 02508201610067 [18:12:24]line Контрольно-Кассовый Чек [18:12:24]line ПРОДАЖА [18:12:24]line ТРК (МРК, ГНК) : 12 [18:12:24]line Товар: 2710124130 [18:12:24]line Аи-92-К-5 [18:12:24]line 3.040 * 65.80 [18:12:24]line = 200.03 [18:12:24]line НДС 12% НСП 1% [18:12:24]line > о реализуемом товаре [18:12:24]line ОКРУГЛЕНИЕ: -0.03 [18:12:24]line ИТОГО: 200.00 [18:12:24]line Внесено: 200.00 [18:12:24]line СДАЧА: 0.00 [18:12:24]line НСП 1% : 1.77 [18:12:24]line НДС 12% : 21.24 [18:12:24]line Наличными: 200.00 [18:12:24]line Безнал.: 0.00 [18:12:24]line Место: АЗС № 72 "Партнер Нефть" [18:12:24]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:12:24]line СНО: Общий режим [18:12:24]line Чек 273 15.07.2024 18:12 [18:12:24]line Смена: 448 ФФД: 1.0 [18:12:24]line ЗНМ: 0300000160 [18:12:24]line РНМ: 0000000000090829 [18:12:24]line Версия ККМ: 001 [18:12:24]line ФМ: 0000000000874718 [18:12:24]line ФД: 165400 [18:12:24]line ФПД: 129133847446693 [18:12:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T181222&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165400&fm=129133847446693&tin=02508201610067®Number=0000000000090829&sum=20000 [18:12:24]written 0, free lines is 4095 [18:12:24]OFD Sender: Processing packet 165400 [packets to send 106, broken 105] [18:12:24]ProducePacketName [18:12:24]name=ofd_packets/00165400 [18:12:24]OFD Sender: To server: pG, [18:12:24]CommunicateWithHost lk.salyk.kg:30040 [18:12:24]ConnectInit lk.salyk.kg [18:12:24]Connected sock=10 [18:12:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 FC 6A 07 01 7A CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 86 66 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 18 86 02 00 35 04 06 00 75 72 51 1B 04 A5 26 4D FF 9B D4 C3 30 30 [18:12:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 C2 5E 47 00 B2 EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 18 86 02 00 F4 03 04 00 10 0D 95 66 B6 04 01 00 00 34 FE F1 B2 C2 72 E5 30 [18:12:25]CommunicateWithHost err = 0 [18:12:25]CheckOFDResponse [18:12:25]1017 (14) - 77093643461234 [18:12:25]1041 (16) - 0000000000874718 [18:12:25]1040 (4) - 165400 [18:12:25]1012 (4) - 15.07.2024 11:50 [18:12:25]1206 (1) - 0 [18:12:25]OFD Sender: Remove packet 165400 [18:12:25]ProducePacketName [18:12:25]name=ofd_packets/00165400 [18:12:25]NVStorageDeleteData [18:12:25]Write to MH i2c: 01 00 00 98 04 9C [18:12:25]Write i2c OK [18:12:25]MH_I2C_Read... [18:12:25]Read from MH i2c: 01 [18:12:25]MH_I2C_Read... [18:12:25]Read from MH i2c: 01 07 00 [18:12:25]MH_I2C_Read... [18:12:25]Read from MH i2c: 01 07 00 98 04 00 00 00 00 00 F7 0C A6 [18:12:25]RasterBufferAndPrint [18:12:25]line [18:12:25]line [18:12:25]line [18:12:25]line [18:12:25]line [18:12:25]written 0, free lines is 3326 [18:12:25]MH_Cut [18:12:25]Write to MH i2c: D1 01 00 9F 04 01 75 [18:12:25]Write i2c OK [18:12:25]MH_I2C_Read... [18:12:25]Read from MH i2c: D1 [18:12:25]MH_I2C_Read... [18:12:25]Read from MH i2c: D1 01 00 [18:12:25]MH_I2C_Read... [18:12:25]Read from MH i2c: D1 01 00 9F 04 00 74 [18:12:25]Write to MH i2c: 01 00 00 A0 04 A4 [18:12:25]Write i2c OK [18:12:25]MH_I2C_Read... [18:12:25]OFD Sender: No OFD packet to send [18:12:25]*** Cut start [18:12:25]*** Partial cut [18:12:25]*** CUTSNS_PIN = 1 [18:12:25]*** CUTSNS_PIN = 0 [18:12:26]*** Brake cut motor [18:12:26]Read from MH i2c: 01 [18:12:26]MH_I2C_Read... [18:12:26]*** Stop cut motor [18:12:26]*** Cut end [18:12:26]Read from MH i2c: 01 07 00 [18:12:26]MH_I2C_Read... [18:12:26]Read from MH i2c: 01 07 00 A0 04 00 00 00 00 00 FF 0F B9 [18:12:26]process_action close_receipt done [18:12:26]requested_data is exist [18:12:26]produce_requested_data [18:12:26]requested_item fm.sn is exist - process it [18:12:26]wFMCommunicate request_size=4 [18:12:26]MH_SAM_APDU [18:12:26]CAPDU: 80 11 00 00 [18:12:26]Write to MH i2c: E2 08 00 A1 04 80 11 00 00 00 00 00 00 1F [18:12:26]Write i2c OK [18:12:26]MH_I2C_Read... [18:12:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:26]Read from MH i2c: E2 [18:12:26]MH_I2C_Read... [18:12:26]Read from MH i2c: E2 17 00 [18:12:26]MH_I2C_Read... [18:12:26]Read from MH i2c: E2 17 00 A1 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 75 [18:12:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:12:26]wFMCommunicate OK [18:12:26]requested_item fd.num is exist - process it [18:12:26]SAM_PROTO_GetFieldsCounters [18:12:26]wFMCommunicate request_size=4 [18:12:26]MH_SAM_APDU [18:12:26]CAPDU: 80 13 00 00 [18:12:26]Write to MH i2c: E2 08 00 A2 04 80 13 00 00 00 00 00 00 22 [18:12:26]Write i2c OK [18:12:26]MH_I2C_Read... [18:12:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:12:26]Read from MH i2c: E2 [18:12:26]MH_I2C_Read... [18:12:26]Read from MH i2c: E2 62 00 [18:12:26]MH_I2C_Read... [18:12:26]Read from MH i2c: E2 62 00 A2 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 18 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 E0 [18:12:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 18 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:12:26]wFMCommunicate OK [18:12:26]SAM_PROTO_GetFieldsCounters done [18:12:26]requested_item shift.num is exist - process it [18:12:26]requested_item shift.opened is exist - process it [18:12:26]req_shift_opened [18:12:26]FM_GetShiftState [18:12:26]SAM_PROTO_GetShiftState [18:12:26]wFMCommunicate request_size=4 [18:12:26]MH_SAM_APDU [18:12:26]CAPDU: 80 13 01 00 [18:12:26]Write to MH i2c: E2 08 00 A3 04 80 13 01 00 00 00 00 00 24 [18:12:26]Write i2c OK [18:12:26]MH_I2C_Read... [18:12:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:26]Read from MH i2c: E2 [18:12:26]MH_I2C_Read... [18:12:26]Read from MH i2c: E2 0E 00 [18:12:26]MH_I2C_Read... [18:12:26]Read from MH i2c: E2 0E 00 A3 04 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 FD [18:12:26]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [18:12:26]wFMCommunicate OK [18:12:26]SAM_PROTO_GetShiftState done [18:12:26]FM_GetShiftState done [18:12:26]req_shift_opened done [18:12:26]requested_item shift.open_date is exist - process it [18:12:26]req_shift_open_date [18:12:26]req_shift_open_date done [18:12:26]produce_requested_data done [18:12:26]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165400,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [18:12:26]process_action_free close_receipt [18:12:26]json_value_free [18:12:26]json_value_free done [18:12:26]process_json_proto returns [18:12:26]Send response to host [18:12:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165400,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [18:12:26]free response buf [18:12:26]execute_script done [18:12:26]execute_script returns [18:12:26]free content buf [18:12:26]Sock 7.Close socket [18:12:26]Sock 7.Thread stoped [18:12:30]OFD Sender: No OFD packet to send [18:12:35]OFD Sender: No OFD packet to send [18:12:40]OFD Sender: No OFD packet to send [18:12:45]OFD Sender: No OFD packet to send [18:12:50]OFD Sender: No OFD packet to send [18:12:55]OFD Sender: No OFD packet to send [18:13:00]OFD Sender: No OFD packet to send [18:13:05]OFD Sender: No OFD packet to send [18:13:10]OFD Sender: No OFD packet to send [18:13:15]OFD Sender: No OFD packet to send [18:13:20]OFD Sender: No OFD packet to send [18:13:25]OFD Sender: No OFD packet to send [18:13:30]OFD Sender: No OFD packet to send [18:13:35]OFD Sender: No OFD packet to send [18:13:40]OFD Sender: No OFD packet to send [18:13:45]OFD Sender: No OFD packet to send [18:13:50]OFD Sender: No OFD packet to send [18:13:50]accept exits with 9 [18:13:50]New connection [18:13:50]New thread 3067297124 created [18:13:50]Thread 3067153764 joined [18:13:50]Waiting for new connection... [18:13:50] Sock 9.Parse request [18:13:50]Sock 9.Check first char [18:13:50]Sock 9.First char is OK [18:13:50]request: POST /json_proto HTTP/1.0 [18:13:50]Method: POST [18:13:50]URL: /json_proto [18:13:50]Method is POST - this is cgi request [18:13:50]url: /json_proto [18:13:50]query_string will be loaded in cgi processing [18:13:50]execute_cgi json_proto POST (null) [18:13:50]execute_cgi path=json_proto method=POST [18:13:50]POST find Content-Length [18:13:50]Host: 172.17.56.4:8080 [18:13:50]Content-Length: 677 [18:13:50]Content-Type: application/json [18:13:50] [18:13:50]POST finish read [18:13:50]Found Content-Length = 677 [18:13:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459515", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.000, "sum" : 131.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 131.00, "total" : 131.00, "payments": [ { "type": 0, "sum" : 131.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:13:50]execute_script... [18:13:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459515", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.000, "sum" : 131.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 131.00, "total" : 131.00, "payments": [ { "type": 0, "sum" : 131.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:13:50]POST & json_proto [18:13:50]process_json_proto [18:13:50]json parsed OK: [18:13:50]protocol is kg_v1.0 [18:13:50]action value=close_receipt [18:13:50]process_action close_receipt [18:13:50]cmd_close_receipt [18:13:50]MH_GetDate [18:13:50]Write to MH i2c: F0 00 00 A4 04 97 [18:13:50]Write i2c OK [18:13:50]MH_I2C_Read... [18:13:50]Read from MH i2c: F0 [18:13:50]MH_I2C_Read... [18:13:50]Read from MH i2c: F0 09 00 [18:13:50]MH_I2C_Read... [18:13:50]Read from MH i2c: F0 09 00 A4 04 00 DF 66 95 66 C9 DC B2 64 9B [18:13:50]GetLastDocTimeStamp 1721067142 [18:13:50]current date 1721067231 [18:13:50]FM_GetShiftState [18:13:50]SAM_PROTO_GetShiftState [18:13:50]wFMCommunicate request_size=4 [18:13:50]MH_SAM_APDU [18:13:50]CAPDU: 80 13 01 00 [18:13:50]Write to MH i2c: E2 08 00 A5 04 80 13 01 00 00 00 00 00 26 [18:13:50]Write i2c OK [18:13:50]MH_I2C_Read... [18:13:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:50]Read from MH i2c: E2 [18:13:50]MH_I2C_Read... [18:13:50]Read from MH i2c: E2 0E 00 [18:13:50]MH_I2C_Read... [18:13:50]Read from MH i2c: E2 0E 00 A5 04 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 FF [18:13:50]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [18:13:50]wFMCommunicate OK [18:13:50]SAM_PROTO_GetShiftState done [18:13:50]FM_GetShiftState done [18:13:50]opened in 1721003876 [18:13:50]opened+sec_in_day 1721090276 [18:13:50]quantity*price = 13160 [18:13:50]sum+1 = 13161 [18:13:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 131.00 Внесено: 131.00 СДАЧА: 0.00 НСП 1% : 1.16 НДС 12% : 13.97 Наличными: 131.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 274 15.07.2024 18:13 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165401 ФПД: 43978047809283 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T181351&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165401&fm=43978047809283&tin=02508201610067®Number=0000000000090829&sum=13100 [18:13:52]StoreToDocumentArchive [18:13:52]shift 448 fd 165401 [18:13:52]save to /storage/0448/doc_00165401 [18:13:52]save last doc name /storage/0448/doc_00165401 to /storage/kkm_last_doc_name [18:13:52]save OK [18:13:52]Clear old archive folders... [18:13:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:13:52]tlvbuf is 00875F60 [18:13:52]SAM_PROTO_ClearQueue [18:13:52]wFMCommunicate request_size=4 [18:13:52]MH_SAM_APDU [18:13:52]CAPDU: 80 09 00 00 [18:13:52]Write to MH i2c: E2 08 00 B2 04 80 09 00 00 00 00 00 00 28 [18:13:52]Write i2c OK [18:13:52]MH_I2C_Read... [18:13:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:13:52]Read from MH i2c: E2 [18:13:52]MH_I2C_Read... [18:13:52]Read from MH i2c: E2 03 00 [18:13:52]MH_I2C_Read... [18:13:52]Read from MH i2c: E2 03 00 B2 04 00 90 00 2A [18:13:52]RAPDU: 90 00 [18:13:52]wFMCommunicate OK [18:13:52]SAM_PROTO_ClearQueue done [18:13:52]KKMCreateOFDPacket [18:13:52]OFDProtocolAddRootSTLVToBuf [18:13:52]FM_MakeSignedData [18:13:52]FM_MakeSignedData [18:13:52]SAM_PROTO_SignData [18:13:52]wFMCommunicate request_size=4 [18:13:52]MH_SAM_APDU [18:13:52]CAPDU: 80 0D 01 02 [18:13:52]Write to MH i2c: E2 08 00 B3 04 80 0D 01 02 00 00 00 00 30 [18:13:52]Write i2c OK [18:13:52]MH_I2C_Read... [18:13:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:13:52]Read from MH i2c: E2 [18:13:52]MH_I2C_Read... [18:13:52]Read from MH i2c: E2 03 00 [18:13:52]MH_I2C_Read... [18:13:52]Read from MH i2c: E2 03 00 B3 04 00 90 00 2B [18:13:52]RAPDU: 90 00 [18:13:52]wFMCommunicate OK [18:13:52]wFMCommunicate request_size=255 [18:13:52]MH_SAM_APDU [18:13:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 68 33 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 05 00 00 00 00 07 04 06 00 2C 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 DF 66 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 19 86 02 00 35 04 06 00 27 [18:13:52]Write to MH i2c: E2 02 01 B4 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 68 33 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 05 00 00 00 00 07 04 06 00 2C 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 DF 66 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 19 86 02 00 35 04 06 00 27 00 00 07 [18:13:52]Write i2c OK [18:13:52]MH_I2C_Read... [18:13:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:52]Read from MH i2c: E2 [18:13:52]MH_I2C_Read... [18:13:52]Read from MH i2c: E2 03 00 [18:13:52]MH_I2C_Read... [18:13:52]Read from MH i2c: E2 03 00 B4 04 00 90 00 2C [18:13:52]RAPDU: 90 00 [18:13:52]wFMCommunicate OK [18:13:52]wFMCommunicate request_size=10 [18:13:52]MH_SAM_APDU [18:13:52]CAPDU: 80 0D 02 02 05 FF 6F EA E7 03 [18:13:52]Write to MH i2c: E2 0D 00 B5 04 80 0D 02 02 05 00 FF 6F EA E7 03 00 00 7F [18:13:52]Write i2c OK [18:13:52]MH_I2C_Read... [18:13:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:52]Read from MH i2c: E2 [18:13:52]MH_I2C_Read... [18:13:52]Read from MH i2c: E2 03 00 [18:13:52]MH_I2C_Read... [18:13:52]Read from MH i2c: E2 03 00 B5 04 00 90 00 2D [18:13:52]RAPDU: 90 00 [18:13:52]wFMCommunicate OK [18:13:52]wFMCommunicate request_size=4 [18:13:52]MH_SAM_APDU [18:13:52]CAPDU: 80 0D 03 02 [18:13:52]Write to MH i2c: E2 08 00 B6 04 80 0D 03 02 00 00 00 00 35 [18:13:52]Write i2c OK [18:13:52]MH_I2C_Read... [18:13:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:13:52]Read from MH i2c: E2 [18:13:52]MH_I2C_Read... [18:13:52]Read from MH i2c: E2 0B 00 [18:13:52]MH_I2C_Read... [18:13:52]Read from MH i2c: E2 0B 00 B6 04 00 3F 27 AD 08 1C BB A6 E5 90 00 B3 [18:13:52]RAPDU: 3F 27 AD 08 1C BB A6 E5 90 00 [18:13:52]wFMCommunicate OK [18:13:52]SAM_PROTO_SignData done [18:13:52]FM_MakeSignedData done [18:13:52]CreateOFDProtocolMessage [18:13:52]wFMCommunicate request_size=4 [18:13:52]MH_SAM_APDU [18:13:52]CAPDU: 80 11 00 00 [18:13:52]Write to MH i2c: E2 08 00 B7 04 80 11 00 00 00 00 00 00 35 [18:13:52]Write i2c OK [18:13:52]MH_I2C_Read... [18:13:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:52]Read from MH i2c: E2 [18:13:52]MH_I2C_Read... [18:13:52]Read from MH i2c: E2 17 00 [18:13:52]MH_I2C_Read... [18:13:52]Read from MH i2c: E2 17 00 B7 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8B [18:13:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:13:52]wFMCommunicate OK [18:13:52]CreateOFDProtocolMessage done [18:13:52]OFDSenderStorePacket 165401 [18:13:52]StoreOFDPacket docnum=165401 [18:13:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E7 8B 07 01 6D 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 D0 07 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 68 33 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 05 00 00 00 00 07 04 06 00 2C 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 DF 66 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 19 86 02 00 35 04 06 00 27 FF 6F EA E7 03 3F 27 AD 08 1C BB A6 E5 [18:13:52]CheckFolder [18:13:52]dirname=/storage/ofd_packets [18:13:52]CheckFolder done [18:13:52]ProducePacketName [18:13:52]name=ofd_packets/00165401 [18:13:52]NVStorageSaveData ofd_packets/00165401 [18:13:52]File name is /storage/ofd_packets/00165401 [18:13:52]Write 301 bytes [18:13:52]NVStorageSaveData done [18:13:52]OFDSenderStorePacket done [18:13:52]KKMCreateOFDPacket done [18:13:52]NVStorageSaveData kkm_last_timestamp [18:13:52]File name is /storage/kkm_last_timestamp [18:13:52]Write 4 bytes [18:13:52]NVStorageSaveData done [18:13:52]ExternCall_PrintAddStr [18:13:52]wPrintStart [18:13:52]Write to MH i2c: 01 00 00 B8 04 BC [18:13:52]Write i2c OK [18:13:52]MH_I2C_Read... [18:13:52]Read from MH i2c: 01 [18:13:52]MH_I2C_Read... [18:13:52]Read from MH i2c: 01 07 00 [18:13:52]MH_I2C_Read... [18:13:52]Read from MH i2c: 01 07 00 B8 04 00 00 00 00 00 FF 0F D1 [18:13:52]RasterBufferAndPrint [18:13:52]line Счет N : (1)459515 [18:13:52]line ИНН: 02508201610067 [18:13:52]line Контрольно-Кассовый Чек [18:13:52]line ПРОДАЖА [18:13:52]line ТРК (МРК, ГНК) : 22 [18:13:52]line Товар: 2710124130 [18:13:52]line Аи-92-К-5 [18:13:52]line 2.000 * 65.80 [18:13:52]line = 131.60 [18:13:52]line НДС 12% НСП 1% [18:13:52]line > о реализуемом товаре [18:13:52]line ОКРУГЛЕНИЕ: -0.60 [18:13:52]line ИТОГО: 131.00 [18:13:52]line Внесено: 131.00 [18:13:52]line СДАЧА: 0.00 [18:13:52]line НСП 1% : 1.16 [18:13:52]line НДС 12% : 13.97 [18:13:52]line Наличными: 131.00 [18:13:52]line Безнал.: 0.00 [18:13:52]line Место: АЗС № 72 "Партнер Нефть" [18:13:52]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:13:52]line СНО: Общий режим [18:13:52]line Чек 274 15.07.2024 18:13 [18:13:52]line Смена: 448 ФФД: 1.0 [18:13:52]line ЗНМ: 0300000160 [18:13:52]line РНМ: 0000000000090829 [18:13:52]line Версия ККМ: 001 [18:13:52]line ФМ: 0000000000874718 [18:13:52]line ФД: 165401 [18:13:52]line ФПД: 43978047809283 [18:13:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T181351&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165401&fm=43978047809283&tin=02508201610067®Number=0000000000090829&sum=13100 [18:13:52]written 0, free lines is 4095 [18:13:52]OFD Sender: Processing packet 165401 [packets to send 106, broken 105] [18:13:52]ProducePacketName [18:13:52]name=ofd_packets/00165401 [18:13:52]OFD Sender: To server: pG, [18:13:52]CommunicateWithHost lk.salyk.kg:30040 [18:13:52]ConnectInit lk.salyk.kg [18:13:53]Connected sock=7 [18:13: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 37 31 38 0F 01 00 00 E7 8B 07 01 6D 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 D0 07 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 68 33 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 05 00 00 00 00 07 04 06 00 2C 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 DF 66 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 19 86 02 00 35 04 06 00 27 FF 6F EA E7 03 3F 27 AD 08 1C BB A6 E5 [18:13:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 38 40 47 00 F5 C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 19 86 02 00 F4 03 04 00 68 0D 95 66 B6 04 01 00 00 54 3B AC EE 93 37 3C D3 [18:13:53]CommunicateWithHost err = 0 [18:13:53]CheckOFDResponse [18:13:53]1017 (14) - 77093643461234 [18:13:53]1041 (16) - 0000000000874718 [18:13:53]1040 (4) - 165401 [18:13:53]1012 (4) - 15.07.2024 11:52 [18:13:53]1206 (1) - 0 [18:13:53]OFD Sender: Remove packet 165401 [18:13:53]ProducePacketName [18:13:53]name=ofd_packets/00165401 [18:13:53]NVStorageDeleteData [18:13:53]Write to MH i2c: 01 00 00 E2 04 E6 [18:13:53]Write i2c OK [18:13:53]MH_I2C_Read... [18:13:53]Read from MH i2c: 01 [18:13:53]MH_I2C_Read... [18:13:53]Read from MH i2c: 01 07 00 [18:13:53]MH_I2C_Read... [18:13:53]Read from MH i2c: 01 07 00 E2 04 00 00 00 00 00 F2 0C EB [18:13:53]RasterBufferAndPrint [18:13:53]line [18:13:53]line [18:13:53]line [18:13:53]line [18:13:53]line [18:13:53]written 0, free lines is 3320 [18:13:53]MH_Cut [18:13:53]Write to MH i2c: D1 01 00 E9 04 01 BF [18:13:53]Write i2c OK [18:13:53]MH_I2C_Read... [18:13:53]Read from MH i2c: D1 [18:13:53]MH_I2C_Read... [18:13:53]Read from MH i2c: D1 01 00 [18:13:53]MH_I2C_Read... [18:13:53]Read from MH i2c: D1 01 00 E9 04 00 BE [18:13:53]Write to MH i2c: 01 00 00 EA 04 EE [18:13:53]Write i2c OK [18:13:53]MH_I2C_Read... [18:13:53]OFD Sender: No OFD packet to send [18:13:54]*** Cut start [18:13:54]*** Partial cut [18:13:54]*** CUTSNS_PIN = 1 [18:13:54]*** CUTSNS_PIN = 0 [18:13:54]*** Brake cut motor [18:13:54]Read from MH i2c: 01 [18:13:54]MH_I2C_Read... [18:13:54]*** Stop cut motor [18:13:54]*** Cut end [18:13:54]Read from MH i2c: 01 07 00 [18:13:54]MH_I2C_Read... [18:13:54]Read from MH i2c: 01 07 00 EA 04 00 00 00 00 00 FF 0F 03 [18:13:54]process_action close_receipt done [18:13:54]requested_data is exist [18:13:54]produce_requested_data [18:13:54]requested_item fm.sn is exist - process it [18:13:54]wFMCommunicate request_size=4 [18:13:54]MH_SAM_APDU [18:13:54]CAPDU: 80 11 00 00 [18:13:54]Write to MH i2c: E2 08 00 EB 04 80 11 00 00 00 00 00 00 69 [18:13:54]Write i2c OK [18:13:54]MH_I2C_Read... [18:13:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:54]Read from MH i2c: E2 [18:13:54]MH_I2C_Read... [18:13:54]Read from MH i2c: E2 17 00 [18:13:54]MH_I2C_Read... [18:13:54]Read from MH i2c: E2 17 00 EB 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 BF [18:13:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:13:54]wFMCommunicate OK [18:13:54]requested_item fd.num is exist - process it [18:13:54]SAM_PROTO_GetFieldsCounters [18:13:54]wFMCommunicate request_size=4 [18:13:54]MH_SAM_APDU [18:13:54]CAPDU: 80 13 00 00 [18:13:54]Write to MH i2c: E2 08 00 EC 04 80 13 00 00 00 00 00 00 6C [18:13:54]Write i2c OK [18:13:54]MH_I2C_Read... [18:13:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:13:54]Read from MH i2c: E2 [18:13:54]MH_I2C_Read... [18:13:54]Read from MH i2c: E2 62 00 [18:13:54]MH_I2C_Read... [18:13:54]Read from MH i2c: E2 62 00 EC 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 19 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 2E [18:13:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 19 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:13:54]wFMCommunicate OK [18:13:54]SAM_PROTO_GetFieldsCounters done [18:13:54]requested_item shift.num is exist - process it [18:13:54]requested_item shift.opened is exist - process it [18:13:54]req_shift_opened [18:13:54]FM_GetShiftState [18:13:54]SAM_PROTO_GetShiftState [18:13:54]wFMCommunicate request_size=4 [18:13:54]MH_SAM_APDU [18:13:54]CAPDU: 80 13 01 00 [18:13:54]Write to MH i2c: E2 08 00 ED 04 80 13 01 00 00 00 00 00 6E [18:13:54]Write i2c OK [18:13:54]MH_I2C_Read... [18:13:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:54]Read from MH i2c: E2 [18:13:54]MH_I2C_Read... [18:13:54]Read from MH i2c: E2 0E 00 [18:13:54]MH_I2C_Read... [18:13:54]Read from MH i2c: E2 0E 00 ED 04 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 47 [18:13:54]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [18:13:54]wFMCommunicate OK [18:13:54]SAM_PROTO_GetShiftState done [18:13:54]FM_GetShiftState done [18:13:54]req_shift_opened done [18:13:54]requested_item shift.open_date is exist - process it [18:13:54]req_shift_open_date [18:13:54]req_shift_open_date done [18:13:54]produce_requested_data done [18:13:54]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165401,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [18:13:54]process_action_free close_receipt [18:13:54]json_value_free [18:13:54]json_value_free done [18:13:54]process_json_proto returns [18:13:54]Send response to host [18:13:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165401,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [18:13:54]free response buf [18:13:54]execute_script done [18:13:54]execute_script returns [18:13:54]free content buf [18:13:54]Sock 9.Close socket [18:13:54]Sock 9.Thread stoped [18:13:58]OFD Sender: No OFD packet to send [18:14:03]OFD Sender: No OFD packet to send [18:14:08]OFD Sender: No OFD packet to send [18:14:13]OFD Sender: No OFD packet to send [18:14:18]OFD Sender: No OFD packet to send [18:14:23]OFD Sender: No OFD packet to send [18:14:28]OFD Sender: No OFD packet to send [18:14:33]OFD Sender: No OFD packet to send [18:14:38]OFD Sender: No OFD packet to send [18:14:43]OFD Sender: No OFD packet to send [18:14:48]OFD Sender: No OFD packet to send [18:14:53]OFD Sender: No OFD packet to send [18:14:58]OFD Sender: No OFD packet to send [18:15:03]OFD Sender: No OFD packet to send [18:15:08]OFD Sender: No OFD packet to send [18:15:13]OFD Sender: No OFD packet to send [18:15:18]OFD Sender: No OFD packet to send [18:15:23]OFD Sender: No OFD packet to send [18:15:28]OFD Sender: No OFD packet to send [18:15:33]OFD Sender: No OFD packet to send [18:15:38]accept exits with 10 [18:15:38]New connection [18:15:38]New thread 3067153764 created [18:15:38]Thread 3067297124 joined [18:15:38]Waiting for new connection... [18:15:38] Sock 10.Parse request [18:15:38]Sock 10.Check first char [18:15:38]Sock 10.First char is OK [18:15:38]request: POST /json_proto HTTP/1.0 [18:15:38]Method: POST [18:15:38]URL: /json_proto [18:15:38]Method is POST - this is cgi request [18:15:38]url: /json_proto [18:15:38]query_string will be loaded in cgi processing [18:15:38]execute_cgi json_proto POST (null) [18:15:38]execute_cgi path=json_proto method=POST [18:15:38]POST find Content-Length [18:15:38]Host: 172.17.56.4:8080 [18:15:38]Content-Length: 674 [18:15:38]Content-Type: application/json [18:15:38] [18:15:38]POST finish read [18:15:38]Found Content-Length = 674 [18:15:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459516", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 5.000, "sum" : 359.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 359.00, "total" : 359.00, "payments": [ { "type": 0, "sum" : 359.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:15:38]execute_script... [18:15:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459516", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 5.000, "sum" : 359.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 359.00, "total" : 359.00, "payments": [ { "type": 0, "sum" : 359.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:15:38]POST & json_proto [18:15:38]process_json_proto [18:15:38]json parsed OK: [18:15:38]protocol is kg_v1.0 [18:15:38]action value=close_receipt [18:15:38]process_action close_receipt [18:15:38]cmd_close_receipt [18:15:38]MH_GetDate [18:15:38]Write to MH i2c: F0 00 00 EE 04 E1 [18:15:38]Write i2c OK [18:15:38]MH_I2C_Read... [18:15:38]Read from MH i2c: F0 [18:15:38]MH_I2C_Read... [18:15:38]Read from MH i2c: F0 09 00 [18:15:38]MH_I2C_Read... [18:15:38]Read from MH i2c: F0 09 00 EE 04 00 4A 67 95 66 C9 DC B2 64 51 [18:15:38]GetLastDocTimeStamp 1721067231 [18:15:38]current date 1721067338 [18:15:38]FM_GetShiftState [18:15:38]SAM_PROTO_GetShiftState [18:15:38]wFMCommunicate request_size=4 [18:15:38]MH_SAM_APDU [18:15:38]CAPDU: 80 13 01 00 [18:15:38]Write to MH i2c: E2 08 00 EF 04 80 13 01 00 00 00 00 00 70 [18:15:38]Write i2c OK [18:15:38]MH_I2C_Read... [18:15:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:38]Read from MH i2c: E2 [18:15:38]MH_I2C_Read... [18:15:38]Read from MH i2c: E2 0E 00 [18:15:38]MH_I2C_Read... [18:15:38]Read from MH i2c: E2 0E 00 EF 04 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 49 [18:15:38]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [18:15:38]wFMCommunicate OK [18:15:38]SAM_PROTO_GetShiftState done [18:15:38]FM_GetShiftState done [18:15:38]opened in 1721003876 [18:15:38]opened+sec_in_day 1721090276 [18:15:38]quantity*price = 35950 [18:15:38]sum+1 = 35951 [18:15:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 359.00 Внесено: 359.00 СДАЧА: 0.00 НСП 1% : 3.18 НДС 12% : 38.18 Наличными: 359.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 275 15.07.2024 18:15 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165402 ФПД: 163878772053934 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T181538&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165402&fm=163878772053934&tin=02508201610067®Number=0000000000090829&sum=35900 [18:15:39]StoreToDocumentArchive [18:15:39]shift 448 fd 165402 [18:15:39]save to /storage/0448/doc_00165402 [18:15:39]save last doc name /storage/0448/doc_00165402 to /storage/kkm_last_doc_name [18:15:39]save OK [18:15:39]Clear old archive folders... [18:15:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:15:39]tlvbuf is 00894010 [18:15:39]SAM_PROTO_ClearQueue [18:15:39]wFMCommunicate request_size=4 [18:15:39]MH_SAM_APDU [18:15:39]CAPDU: 80 09 00 00 [18:15:39]Write to MH i2c: E2 08 00 FC 04 80 09 00 00 00 00 00 00 72 [18:15:39]Write i2c OK [18:15:39]MH_I2C_Read... [18:15:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:15:39]Read from MH i2c: E2 [18:15:39]MH_I2C_Read... [18:15:39]Read from MH i2c: E2 03 00 [18:15:39]MH_I2C_Read... [18:15:39]Read from MH i2c: E2 03 00 FC 04 00 90 00 74 [18:15:39]RAPDU: 90 00 [18:15:39]wFMCommunicate OK [18:15:39]SAM_PROTO_ClearQueue done [18:15:39]KKMCreateOFDPacket [18:15:39]OFDProtocolAddRootSTLVToBuf [18:15:39]FM_MakeSignedData [18:15:39]FM_MakeSignedData [18:15:39]SAM_PROTO_SignData [18:15:39]wFMCommunicate request_size=4 [18:15:39]MH_SAM_APDU [18:15:39]CAPDU: 80 0D 01 02 [18:15:39]Write to MH i2c: E2 08 00 FD 04 80 0D 01 02 00 00 00 00 7A [18:15:39]Write i2c OK [18:15:39]MH_I2C_Read... [18:15:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:15:39]Read from MH i2c: E2 [18:15:39]MH_I2C_Read... [18:15:39]Read from MH i2c: E2 03 00 [18:15:39]MH_I2C_Read... [18:15:39]Read from MH i2c: E2 03 00 FD 04 00 90 00 75 [18:15:39]RAPDU: 90 00 [18:15:39]wFMCommunicate OK [18:15:39]wFMCommunicate request_size=255 [18:15:39]MH_SAM_APDU [18:15:39]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 6E 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 0E 00 00 00 00 07 04 06 00 3C 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 4A 67 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1A 86 02 00 35 04 06 00 95 0B FF FE [18:15:39]Write to MH i2c: E2 02 01 FE 04 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 6E 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 0E 00 00 00 00 07 04 06 00 3C 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 4A 67 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1A 86 02 00 35 04 06 00 95 0B FF FE 00 00 2B [18:15:39]Write i2c OK [18:15:39]MH_I2C_Read... [18:15:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:39]Read from MH i2c: E2 [18:15:39]MH_I2C_Read... [18:15:39]Read from MH i2c: E2 03 00 [18:15:39]MH_I2C_Read... [18:15:39]Read from MH i2c: E2 03 00 FE 04 00 90 00 76 [18:15:39]RAPDU: 90 00 [18:15:39]wFMCommunicate OK [18:15:39]wFMCommunicate request_size=7 [18:15:39]MH_SAM_APDU [18:15:39]CAPDU: 80 0D 02 02 02 97 AE [18:15:39]Write to MH i2c: E2 0A 00 FF 04 80 0D 02 02 02 00 97 AE 00 00 C6 [18:15:39]Write i2c OK [18:15:39]MH_I2C_Read... [18:15:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:39]Read from MH i2c: E2 [18:15:39]MH_I2C_Read... [18:15:39]Read from MH i2c: E2 03 00 [18:15:39]MH_I2C_Read... [18:15:39]Read from MH i2c: E2 03 00 FF 04 00 90 00 77 [18:15:39]RAPDU: 90 00 [18:15:39]wFMCommunicate OK [18:15:39]wFMCommunicate request_size=4 [18:15:39]MH_SAM_APDU [18:15:39]CAPDU: 80 0D 03 02 [18:15:39]Write to MH i2c: E2 08 00 00 05 80 0D 03 02 00 00 00 00 80 [18:15:39]Write i2c OK [18:15:39]MH_I2C_Read... [18:15:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:15:40]Read from MH i2c: E2 [18:15:40]MH_I2C_Read... [18:15:40]Read from MH i2c: E2 0B 00 [18:15:40]MH_I2C_Read... [18:15:40]Read from MH i2c: E2 0B 00 00 05 00 4C 2E 05 D1 7B 5E B9 D1 90 00 34 [18:15:40]RAPDU: 4C 2E 05 D1 7B 5E B9 D1 90 00 [18:15:40]wFMCommunicate OK [18:15:40]SAM_PROTO_SignData done [18:15:40]FM_MakeSignedData done [18:15:40]CreateOFDProtocolMessage [18:15:40]wFMCommunicate request_size=4 [18:15:40]MH_SAM_APDU [18:15:40]CAPDU: 80 11 00 00 [18:15:40]Write to MH i2c: E2 08 00 01 05 80 11 00 00 00 00 00 00 80 [18:15:40]Write i2c OK [18:15:40]MH_I2C_Read... [18:15:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:40]Read from MH i2c: E2 [18:15:40]MH_I2C_Read... [18:15:40]Read from MH i2c: E2 17 00 [18:15:40]MH_I2C_Read... [18:15:40]Read from MH i2c: E2 17 00 01 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D6 [18:15:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:15:40]wFMCommunicate OK [18:15:40]CreateOFDProtocolMessage done [18:15:40]OFDSenderStorePacket 165402 [18:15:40]StoreOFDPacket docnum=165402 [18:15:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 FB 86 04 01 C2 38 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 6E 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 0E 00 00 00 00 07 04 06 00 3C 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 4A 67 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1A 86 02 00 35 04 06 00 95 0B FF FE 97 AE 4C 2E 05 D1 7B 5E B9 D1 [18:15:40]CheckFolder [18:15:40]dirname=/storage/ofd_packets [18:15:40]CheckFolder done [18:15:40]ProducePacketName [18:15:40]name=ofd_packets/00165402 [18:15:40]NVStorageSaveData ofd_packets/00165402 [18:15:40]File name is /storage/ofd_packets/00165402 [18:15:40]Write 298 bytes [18:15:40]NVStorageSaveData done [18:15:40]OFDSenderStorePacket done [18:15:40]KKMCreateOFDPacket done [18:15:40]NVStorageSaveData kkm_last_timestamp [18:15:40]File name is /storage/kkm_last_timestamp [18:15:40]Write 4 bytes [18:15:40]NVStorageSaveData done [18:15:40]ExternCall_PrintAddStr [18:15:40]wPrintStart [18:15:40]Write to MH i2c: 01 00 00 02 05 07 [18:15:40]Write i2c OK [18:15:40]MH_I2C_Read... [18:15:40]Read from MH i2c: 01 [18:15:40]MH_I2C_Read... [18:15:40]Read from MH i2c: 01 07 00 [18:15:40]MH_I2C_Read... [18:15:40]Read from MH i2c: 01 07 00 02 05 00 00 00 00 00 FF 0F 1C [18:15:40]RasterBufferAndPrint [18:15:40]line Счет N : (1)459516 [18:15:40]line ИНН: 02508201610067 [18:15:40]line Контрольно-Кассовый Чек [18:15:40]line ПРОДАЖА [18:15:40]line ТРК (МРК, ГНК) : 21 [18:15:40]line Товар: 2710194210 [18:15:40]line ДТ-К-5 [18:15:40]line 5.000 * 71.90 [18:15:40]line = 359.50 [18:15:40]line НДС 12% НСП 1% [18:15:40]line > о реализуемом товаре [18:15:40]line ОКРУГЛЕНИЕ: -0.50 [18:15:40]line ИТОГО: 359.00 [18:15:40]line Внесено: 359.00 [18:15:40]line СДАЧА: 0.00 [18:15:40]line НСП 1% : 3.18 [18:15:40]line НДС 12% : 38.18 [18:15:40]line Наличными: 359.00 [18:15:40]line Безнал.: 0.00 [18:15:40]line Место: АЗС № 72 "Партнер Нефть" [18:15:40]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:15:40]line СНО: Общий режим [18:15:40]line Чек 275 15.07.2024 18:15 [18:15:40]line Смена: 448 ФФД: 1.0 [18:15:40]line ЗНМ: 0300000160 [18:15:40]line РНМ: 0000000000090829 [18:15:40]line Версия ККМ: 001 [18:15:40]line ФМ: 0000000000874718 [18:15:40]line ФД: 165402 [18:15:40]line ФПД: 163878772053934 [18:15:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T181538&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165402&fm=163878772053934&tin=02508201610067®Number=0000000000090829&sum=35900 [18:15:40]OFD Sender: Processing packet 165402 [packets to send 106, broken 105] [18:15:40]ProducePacketName [18:15:40]name=ofd_packets/00165402 [18:15:40]OFD Sender: To server: pG, [18:15:40]CommunicateWithHost lk.salyk.kg:30040 [18:15:40]ConnectInit lk.salyk.kg [18:15:40]written 0, free lines is 4095 [18:15:40]Connected sock=9 [18:15:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 FB 86 04 01 C2 38 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 6E 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 0E 00 00 00 00 07 04 06 00 3C 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 4A 67 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1A 86 02 00 35 04 06 00 95 0B FF FE 97 AE 4C 2E 05 D1 7B 5E B9 D1 [18:15:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 B1 D4 47 00 C9 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1A 86 02 00 F4 03 04 00 D4 0D 95 66 B6 04 01 00 00 D7 10 F6 96 8E A1 65 A8 [18:15:40]CommunicateWithHost err = 0 [18:15:40]CheckOFDResponse [18:15:40]1017 (14) - 77093643461234 [18:15:40]1041 (16) - 0000000000874718 [18:15:40]1040 (4) - 165402 [18:15:40]1012 (4) - 15.07.2024 11:53 [18:15:40]1206 (1) - 0 [18:15:40]OFD Sender: Remove packet 165402 [18:15:40]ProducePacketName [18:15:40]name=ofd_packets/00165402 [18:15:40]NVStorageDeleteData [18:15:40]Write to MH i2c: 01 00 00 2C 05 31 [18:15:40]Write i2c OK [18:15:40]MH_I2C_Read... [18:15:40]Read from MH i2c: 01 [18:15:40]MH_I2C_Read... [18:15:40]Read from MH i2c: 01 07 00 [18:15:40]MH_I2C_Read... [18:15:40]Read from MH i2c: 01 07 00 2C 05 00 00 00 00 00 0A 0D 4F [18:15:40]RasterBufferAndPrint [18:15:40]line [18:15:40]line [18:15:40]line [18:15:40]line [18:15:40]line [18:15:40]written 0, free lines is 3344 [18:15:40]MH_Cut [18:15:40]Write to MH i2c: D1 01 00 33 05 01 0A [18:15:40]Write i2c OK [18:15:40]MH_I2C_Read... [18:15:40]Read from MH i2c: D1 [18:15:40]MH_I2C_Read... [18:15:40]Read from MH i2c: D1 01 00 [18:15:40]MH_I2C_Read... [18:15:40]Read from MH i2c: D1 01 00 33 05 00 09 [18:15:40]Write to MH i2c: 01 00 00 34 05 39 [18:15:40]Write i2c OK [18:15:40]MH_I2C_Read... [18:15:41]OFD Sender: No OFD packet to send [18:15:41]*** Cut start [18:15:41]*** Partial cut [18:15:41]*** CUTSNS_PIN = 1 [18:15:41]*** CUTSNS_PIN = 0 [18:15:41]*** Brake cut motor [18:15:42]Read from MH i2c: 01 [18:15:42]MH_I2C_Read... [18:15:42]*** Stop cut motor [18:15:42]*** Cut end [18:15:42]Read from MH i2c: 01 07 00 [18:15:42]MH_I2C_Read... [18:15:42]Read from MH i2c: 01 07 00 34 05 00 00 00 00 00 FF 0F 4E [18:15:42]process_action close_receipt done [18:15:42]requested_data is exist [18:15:42]produce_requested_data [18:15:42]requested_item fm.sn is exist - process it [18:15:42]wFMCommunicate request_size=4 [18:15:42]MH_SAM_APDU [18:15:42]CAPDU: 80 11 00 00 [18:15:42]Write to MH i2c: E2 08 00 35 05 80 11 00 00 00 00 00 00 B4 [18:15:42]Write i2c OK [18:15:42]MH_I2C_Read... [18:15:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:42]Read from MH i2c: E2 [18:15:42]MH_I2C_Read... [18:15:42]Read from MH i2c: E2 17 00 [18:15:42]MH_I2C_Read... [18:15:42]Read from MH i2c: E2 17 00 35 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0A [18:15:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:15:42]wFMCommunicate OK [18:15:42]requested_item fd.num is exist - process it [18:15:42]SAM_PROTO_GetFieldsCounters [18:15:42]wFMCommunicate request_size=4 [18:15:42]MH_SAM_APDU [18:15:42]CAPDU: 80 13 00 00 [18:15:42]Write to MH i2c: E2 08 00 36 05 80 13 00 00 00 00 00 00 B7 [18:15:42]Write i2c OK [18:15:42]MH_I2C_Read... [18:15:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:15:42]Read from MH i2c: E2 [18:15:42]MH_I2C_Read... [18:15:42]Read from MH i2c: E2 62 00 [18:15:42]MH_I2C_Read... [18:15:42]Read from MH i2c: E2 62 00 36 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1A 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 7D [18:15: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1A 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:15:42]wFMCommunicate OK [18:15:42]SAM_PROTO_GetFieldsCounters done [18:15:42]requested_item shift.num is exist - process it [18:15:42]requested_item shift.opened is exist - process it [18:15:42]req_shift_opened [18:15:42]FM_GetShiftState [18:15:42]SAM_PROTO_GetShiftState [18:15:42]wFMCommunicate request_size=4 [18:15:42]MH_SAM_APDU [18:15:42]CAPDU: 80 13 01 00 [18:15:42]Write to MH i2c: E2 08 00 37 05 80 13 01 00 00 00 00 00 B9 [18:15:42]Write i2c OK [18:15:42]MH_I2C_Read... [18:15:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:42]Read from MH i2c: E2 [18:15:42]MH_I2C_Read... [18:15:42]Read from MH i2c: E2 0E 00 [18:15:42]MH_I2C_Read... [18:15:42]Read from MH i2c: E2 0E 00 37 05 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 92 [18:15:42]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [18:15:42]wFMCommunicate OK [18:15:42]SAM_PROTO_GetShiftState done [18:15:42]FM_GetShiftState done [18:15:42]req_shift_opened done [18:15:42]requested_item shift.open_date is exist - process it [18:15:42]req_shift_open_date [18:15:42]req_shift_open_date done [18:15:42]produce_requested_data done [18:15:42]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165402,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [18:15:42]process_action_free close_receipt [18:15:42]json_value_free [18:15:42]json_value_free done [18:15:42]process_json_proto returns [18:15:42]Send response to host [18:15:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165402,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [18:15:42]free response buf [18:15:42]execute_script done [18:15:42]execute_script returns [18:15:42]free content buf [18:15:42]Sock 10.Close socket [18:15:42]Sock 10.Thread stoped [18:15:46]OFD Sender: No OFD packet to send [18:15:51]OFD Sender: No OFD packet to send [18:15:56]OFD Sender: No OFD packet to send [18:16:01]OFD Sender: No OFD packet to send [18:16:06]OFD Sender: No OFD packet to send [18:16:11]OFD Sender: No OFD packet to send [18:16:16]OFD Sender: No OFD packet to send [18:16:21]OFD Sender: No OFD packet to send [18:16:26]OFD Sender: No OFD packet to send [18:16:31]OFD Sender: No OFD packet to send [18:16:36]OFD Sender: No OFD packet to send [18:16:41]OFD Sender: No OFD packet to send [18:16:46]OFD Sender: No OFD packet to send [18:16:51]OFD Sender: No OFD packet to send [18:16:56]OFD Sender: No OFD packet to send [18:17:01]OFD Sender: No OFD packet to send [18:17:06]OFD Sender: No OFD packet to send [18:17:11]OFD Sender: No OFD packet to send [18:17:16]OFD Sender: No OFD packet to send [18:17:21]OFD Sender: No OFD packet to send [18:17:26]OFD Sender: No OFD packet to send [18:17:31]OFD Sender: No OFD packet to send [18:17:36]OFD Sender: No OFD packet to send [18:17:41]OFD Sender: No OFD packet to send [18:17:46]OFD Sender: No OFD packet to send [18:17:51]OFD Sender: No OFD packet to send [18:17:56]OFD Sender: No OFD packet to send [18:18:01]OFD Sender: No OFD packet to send [18:18:06]OFD Sender: No OFD packet to send [18:18:11]OFD Sender: No OFD packet to send [18:18:16]OFD Sender: No OFD packet to send [18:18:21]OFD Sender: No OFD packet to send [18:18:26]OFD Sender: No OFD packet to send [18:18:31]OFD Sender: No OFD packet to send [18:18:36]OFD Sender: No OFD packet to send [18:18:41]OFD Sender: No OFD packet to send [18:18:46]OFD Sender: No OFD packet to send [18:18:51]OFD Sender: No OFD packet to send [18:18:56]OFD Sender: No OFD packet to send [18:19:01]OFD Sender: No OFD packet to send [18:19:06]OFD Sender: No OFD packet to send [18:19:11]OFD Sender: No OFD packet to send [18:19:16]OFD Sender: No OFD packet to send [18:19:21]OFD Sender: No OFD packet to send [18:19:26]OFD Sender: No OFD packet to send [18:19:31]OFD Sender: No OFD packet to send [18:19:36]OFD Sender: No OFD packet to send [18:19:41]OFD Sender: No OFD packet to send [18:19:46]OFD Sender: No OFD packet to send [18:19:51]OFD Sender: No OFD packet to send [18:19:56]OFD Sender: No OFD packet to send [18:20:01]OFD Sender: No OFD packet to send [18:20:06]OFD Sender: No OFD packet to send [18:20:11]OFD Sender: No OFD packet to send [18:20:16]OFD Sender: No OFD packet to send [18:20:21]OFD Sender: No OFD packet to send [18:20:26]OFD Sender: No OFD packet to send [18:20:31]OFD Sender: No OFD packet to send [18:20:36]OFD Sender: No OFD packet to send [18:20:41]OFD Sender: No OFD packet to send [18:20:46]OFD Sender: No OFD packet to send [18:20:51]OFD Sender: No OFD packet to send [18:20:56]OFD Sender: No OFD packet to send [18:21:01]OFD Sender: No OFD packet to send [18:21:06]OFD Sender: No OFD packet to send [18:21:11]OFD Sender: No OFD packet to send [18:21:16]OFD Sender: No OFD packet to send [18:21:21]OFD Sender: No OFD packet to send [18:21:26]OFD Sender: No OFD packet to send [18:21:31]OFD Sender: No OFD packet to send [18:21:36]OFD Sender: No OFD packet to send [18:21:41]OFD Sender: No OFD packet to send [18:21:46]OFD Sender: No OFD packet to send [18:21:51]OFD Sender: No OFD packet to send [18:21:56]OFD Sender: No OFD packet to send [18:22:01]OFD Sender: No OFD packet to send [18:22:06]OFD Sender: No OFD packet to send [18:22:11]OFD Sender: No OFD packet to send [18:22:16]OFD Sender: No OFD packet to send [18:22:21]OFD Sender: No OFD packet to send [18:22:26]OFD Sender: No OFD packet to send [18:22:31]OFD Sender: No OFD packet to send [18:22:36]OFD Sender: No OFD packet to send [18:22:41]OFD Sender: No OFD packet to send [18:22:46]OFD Sender: No OFD packet to send [18:22:51]OFD Sender: No OFD packet to send [18:22:56]OFD Sender: No OFD packet to send [18:23:01]OFD Sender: No OFD packet to send [18:23:06]OFD Sender: No OFD packet to send [18:23:11]OFD Sender: No OFD packet to send [18:23:16]OFD Sender: No OFD packet to send [18:23:21]OFD Sender: No OFD packet to send [18:23:26]accept exits with 7 [18:23:26]New connection [18:23:26]New thread 3067297124 created [18:23:26]Thread 3067153764 joined [18:23:26]Waiting for new connection... [18:23:26] Sock 7.Parse request [18:23:26]Sock 7.Check first char [18:23:26]Sock 7.First char is OK [18:23:26]request: POST /json_proto HTTP/1.0 [18:23:26]Method: POST [18:23:26]URL: /json_proto [18:23:26]Method is POST - this is cgi request [18:23:26]url: /json_proto [18:23:26]query_string will be loaded in cgi processing [18:23:26]execute_cgi json_proto POST (null) [18:23:26]execute_cgi path=json_proto method=POST [18:23:26]POST find Content-Length [18:23:26]Host: 172.17.56.4:8080 [18:23:26]Content-Length: 677 [18:23:26]Content-Type: application/json [18:23:26] [18:23:26]POST finish read [18:23:26]Found Content-Length = 677 [18:23:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459518", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.870, "sum" : 320.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:23:26]execute_script... [18:23:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459518", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.870, "sum" : 320.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:23:26]POST & json_proto [18:23:26]process_json_proto [18:23:26]json parsed OK: [18:23:26]protocol is kg_v1.0 [18:23:26]action value=close_receipt [18:23:26]process_action close_receipt [18:23:26]cmd_close_receipt [18:23:26]MH_GetDate [18:23:26]Write to MH i2c: F0 00 00 38 05 2C [18:23:26]Write i2c OK [18:23:26]MH_I2C_Read... [18:23:26]Read from MH i2c: F0 [18:23:26]MH_I2C_Read... [18:23:26]Read from MH i2c: F0 09 00 [18:23:26]MH_I2C_Read... [18:23:26]Read from MH i2c: F0 09 00 38 05 00 1E 69 95 66 C9 DC B2 64 72 [18:23:26]GetLastDocTimeStamp 1721067338 [18:23:26]current date 1721067806 [18:23:26]FM_GetShiftState [18:23:26]SAM_PROTO_GetShiftState [18:23:26]wFMCommunicate request_size=4 [18:23:26]MH_SAM_APDU [18:23:26]CAPDU: 80 13 01 00 [18:23:26]Write to MH i2c: E2 08 00 39 05 80 13 01 00 00 00 00 00 BB [18:23:26]Write i2c OK [18:23:26]MH_I2C_Read... [18:23:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:23:26]Read from MH i2c: E2 [18:23:26]MH_I2C_Read... [18:23:26]Read from MH i2c: E2 0E 00 [18:23:26]MH_I2C_Read... [18:23:26]Read from MH i2c: E2 0E 00 39 05 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 94 [18:23:26]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [18:23:26]wFMCommunicate OK [18:23:26]SAM_PROTO_GetShiftState done [18:23:26]FM_GetShiftState done [18:23:26]opened in 1721003876 [18:23:26]opened+sec_in_day 1721090276 [18:23:26]quantity*price = 32044 [18:23:26]sum+1 = 32046 [18:23:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 320.00 Внесено: 320.00 СДАЧА: 0.00 НСП 1% : 2.84 НДС 12% : 34.03 Наличными: 320.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 276 15.07.2024 18:23 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165403 ФПД: 229343349455757 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T182326&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165403&fm=229343349455757&tin=02508201610067®Number=0000000000090829&sum=32000 [18:23:27]StoreToDocumentArchive [18:23:27]shift 448 fd 165403 [18:23:27]save to /storage/0448/doc_00165403 [18:23:27]save last doc name /storage/0448/doc_00165403 to /storage/kkm_last_doc_name [18:23:27]save OK [18:23:27]Clear old archive folders... [18:23:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:23:27]tlvbuf is 00875590 [18:23:27]SAM_PROTO_ClearQueue [18:23:27]wFMCommunicate request_size=4 [18:23:27]MH_SAM_APDU [18:23:27]CAPDU: 80 09 00 00 [18:23:27]Write to MH i2c: E2 08 00 46 05 80 09 00 00 00 00 00 00 BD [18:23:27]Write i2c OK [18:23:27]MH_I2C_Read... [18:23:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:23:27]Read from MH i2c: E2 [18:23:27]MH_I2C_Read... [18:23:27]Read from MH i2c: E2 03 00 [18:23:27]MH_I2C_Read... [18:23:27]Read from MH i2c: E2 03 00 46 05 00 90 00 BF [18:23:27]RAPDU: 90 00 [18:23:27]wFMCommunicate OK [18:23:27]SAM_PROTO_ClearQueue done [18:23:27]KKMCreateOFDPacket [18:23:27]OFDProtocolAddRootSTLVToBuf [18:23:27]FM_MakeSignedData [18:23:27]FM_MakeSignedData [18:23:27]SAM_PROTO_SignData [18:23:27]wFMCommunicate request_size=4 [18:23:27]MH_SAM_APDU [18:23:27]CAPDU: 80 0D 01 02 [18:23:27]Write to MH i2c: E2 08 00 47 05 80 0D 01 02 00 00 00 00 C5 [18:23:27]Write i2c OK [18:23:27]MH_I2C_Read... [18:23:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:23:27]Read from MH i2c: E2 [18:23:27]MH_I2C_Read... [18:23:27]Read from MH i2c: E2 03 00 [18:23:27]MH_I2C_Read... [18:23:27]Read from MH i2c: E2 03 00 47 05 00 90 00 C0 [18:23:27]RAPDU: 90 00 [18:23:27]wFMCommunicate OK [18:23:27]wFMCommunicate request_size=255 [18:23:27]MH_SAM_APDU [18:23: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 06 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 1E 69 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1B 86 02 00 35 04 06 00 D0 [18:23:27]Write to MH i2c: E2 02 01 48 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 1E 69 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1B 86 02 00 35 04 06 00 D0 00 00 9F [18:23:27]Write i2c OK [18:23:27]MH_I2C_Read... [18:23:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:23:27]Read from MH i2c: E2 [18:23:27]MH_I2C_Read... [18:23:27]Read from MH i2c: E2 03 00 [18:23:27]MH_I2C_Read... [18:23:27]Read from MH i2c: E2 03 00 48 05 00 90 00 C1 [18:23:27]RAPDU: 90 00 [18:23:27]wFMCommunicate OK [18:23:27]wFMCommunicate request_size=10 [18:23:27]MH_SAM_APDU [18:23:27]CAPDU: 80 0D 02 02 05 96 28 E0 3B 8D [18:23:27]Write to MH i2c: E2 0D 00 49 05 80 0D 02 02 05 00 96 28 E0 3B 8D 00 00 38 [18:23:27]Write i2c OK [18:23:27]MH_I2C_Read... [18:23:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:23:28]Read from MH i2c: E2 [18:23:28]MH_I2C_Read... [18:23:28]Read from MH i2c: E2 03 00 [18:23:28]MH_I2C_Read... [18:23:28]Read from MH i2c: E2 03 00 49 05 00 90 00 C2 [18:23:28]RAPDU: 90 00 [18:23:28]wFMCommunicate OK [18:23:28]wFMCommunicate request_size=4 [18:23:28]MH_SAM_APDU [18:23:28]CAPDU: 80 0D 03 02 [18:23:28]Write to MH i2c: E2 08 00 4A 05 80 0D 03 02 00 00 00 00 CA [18:23:28]Write i2c OK [18:23:28]MH_I2C_Read... [18:23:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:23:28]Read from MH i2c: E2 [18:23:28]MH_I2C_Read... [18:23:28]Read from MH i2c: E2 0B 00 [18:23:28]MH_I2C_Read... [18:23:28]Read from MH i2c: E2 0B 00 4A 05 00 01 68 00 68 31 C7 9B AF 90 00 DE [18:23:28]RAPDU: 01 68 00 68 31 C7 9B AF 90 00 [18:23:28]wFMCommunicate OK [18:23:28]SAM_PROTO_SignData done [18:23:28]FM_MakeSignedData done [18:23:28]CreateOFDProtocolMessage [18:23:28]wFMCommunicate request_size=4 [18:23:28]MH_SAM_APDU [18:23:28]CAPDU: 80 11 00 00 [18:23:28]Write to MH i2c: E2 08 00 4B 05 80 11 00 00 00 00 00 00 CA [18:23:28]Write i2c OK [18:23:28]MH_I2C_Read... [18:23:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:23:28]Read from MH i2c: E2 [18:23:28]MH_I2C_Read... [18:23:28]Read from MH i2c: E2 17 00 [18:23:28]MH_I2C_Read... [18:23:28]Read from MH i2c: E2 17 00 4B 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 20 [18:23:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:23:28]wFMCommunicate OK [18:23:28]CreateOFDProtocolMessage done [18:23:28]OFDSenderStorePacket 165403 [18:23:28]StoreOFDPacket docnum=165403 [18:23:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 BA E6 07 01 5D 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 06 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 1E 69 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1B 86 02 00 35 04 06 00 D0 96 28 E0 3B 8D 01 68 00 68 31 C7 9B AF [18:23:28]CheckFolder [18:23:28]dirname=/storage/ofd_packets [18:23:28]CheckFolder done [18:23:28]ProducePacketName [18:23:28]name=ofd_packets/00165403 [18:23:28]NVStorageSaveData ofd_packets/00165403 [18:23:28]File name is /storage/ofd_packets/00165403 [18:23:28]Write 301 bytes [18:23:28]NVStorageSaveData done [18:23:28]OFDSenderStorePacket done [18:23:28]KKMCreateOFDPacket done [18:23:28]NVStorageSaveData kkm_last_timestamp [18:23:28]File name is /storage/kkm_last_timestamp [18:23:28]Write 4 bytes [18:23:28]NVStorageSaveData done [18:23:28]ExternCall_PrintAddStr [18:23:28]wPrintStart [18:23:28]Write to MH i2c: 01 00 00 4C 05 51 [18:23:28]Write i2c OK [18:23:28]MH_I2C_Read... [18:23:28]Read from MH i2c: 01 [18:23:28]MH_I2C_Read... [18:23:28]Read from MH i2c: 01 07 00 [18:23:28]MH_I2C_Read... [18:23:28]Read from MH i2c: 01 07 00 4C 05 00 00 00 00 00 FF 0F 66 [18:23:28]RasterBufferAndPrint [18:23:28]line Счет N : (1)459518 [18:23:28]line ИНН: 02508201610067 [18:23:28]line Контрольно-Кассовый Чек [18:23:28]line ПРОДАЖА [18:23:28]line ТРК (МРК, ГНК) : 12 [18:23:28]line Товар: 2710124130 [18:23:28]line Аи-92-К-5 [18:23:28]line 4.870 * 65.80 [18:23:28]line = 320.45 [18:23:28]line НДС 12% НСП 1% [18:23:28]line > о реализуемом товаре [18:23:28]line ОКРУГЛЕНИЕ: -0.45 [18:23:28]line ИТОГО: 320.00 [18:23:28]line Внесено: 320.00 [18:23:28]line СДАЧА: 0.00 [18:23:28]line НСП 1% : 2.84 [18:23:28]line НДС 12% : 34.03 [18:23:28]line Наличными: 320.00 [18:23:28]line Безнал.: 0.00 [18:23:28]line Место: АЗС № 72 "Партнер Нефть" [18:23:28]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:23:28]line СНО: Общий режим [18:23:28]line Чек 276 15.07.2024 18:23 [18:23:28]line Смена: 448 ФФД: 1.0 [18:23:28]line ЗНМ: 0300000160 [18:23:28]line РНМ: 0000000000090829 [18:23:28]line Версия ККМ: 001 [18:23:28]line ФМ: 0000000000874718 [18:23:28]line ФД: 165403 [18:23:28]line ФПД: 229343349455757 [18:23:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T182326&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165403&fm=229343349455757&tin=02508201610067®Number=0000000000090829&sum=32000 [18:23:28]written 0, free lines is 4095 [18:23:28]OFD Sender: Processing packet 165403 [packets to send 106, broken 105] [18:23:28]ProducePacketName [18:23:28]name=ofd_packets/00165403 [18:23:28]OFD Sender: To server: pG, [18:23:28]CommunicateWithHost lk.salyk.kg:30040 [18:23:28]ConnectInit lk.salyk.kg [18:23:28]Connected sock=10 [18:23:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 BA E6 07 01 5D 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 06 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 1E 69 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1B 86 02 00 35 04 06 00 D0 96 28 E0 3B 8D 01 68 00 68 31 C7 9B AF [18:23:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 7C B0 47 00 B2 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1B 86 02 00 F4 03 04 00 A8 0F 95 66 B6 04 01 00 00 85 7B 04 4D EA EB 2C 17 [18:23:28]CommunicateWithHost err = 0 [18:23:28]CheckOFDResponse [18:23:28]1017 (14) - 77093643461234 [18:23:28]1041 (16) - 0000000000874718 [18:23:28]1040 (4) - 165403 [18:23:28]1012 (4) - 15.07.2024 12:01 [18:23:28]1206 (1) - 0 [18:23:28]OFD Sender: Remove packet 165403 [18:23:28]ProducePacketName [18:23:28]name=ofd_packets/00165403 [18:23:28]NVStorageDeleteData [18:23:28]Write to MH i2c: 01 00 00 76 05 7B [18:23:28]Write i2c OK [18:23:28]MH_I2C_Read... [18:23:28]Read from MH i2c: 01 [18:23:28]MH_I2C_Read... [18:23:28]Read from MH i2c: 01 07 00 [18:23:28]MH_I2C_Read... [18:23:28]Read from MH i2c: 01 07 00 76 05 00 00 00 00 00 0D 0D 9C [18:23:28]RasterBufferAndPrint [18:23:28]line [18:23:28]line [18:23:28]line [18:23:28]line [18:23:28]line [18:23:28]written 0, free lines is 3347 [18:23:28]MH_Cut [18:23:28]Write to MH i2c: D1 01 00 7D 05 01 54 [18:23:28]Write i2c OK [18:23:28]MH_I2C_Read... [18:23:28]Read from MH i2c: D1 [18:23:28]MH_I2C_Read... [18:23:28]Read from MH i2c: D1 01 00 [18:23:28]MH_I2C_Read... [18:23:28]Read from MH i2c: D1 01 00 7D 05 00 53 [18:23:28]Write to MH i2c: 01 00 00 7E 05 83 [18:23:28]Write i2c OK [18:23:28]MH_I2C_Read... [18:23:29]OFD Sender: No OFD packet to send [18:23:29]*** Cut start [18:23:29]*** Partial cut [18:23:29]*** CUTSNS_PIN = 1 [18:23:29]*** CUTSNS_PIN = 0 [18:23:29]*** Brake cut motor [18:23:30]Read from MH i2c: 01 [18:23:30]MH_I2C_Read... [18:23:30]*** Stop cut motor [18:23:30]*** Cut end [18:23:30]Read from MH i2c: 01 07 00 [18:23:30]MH_I2C_Read... [18:23:30]Read from MH i2c: 01 07 00 7E 05 00 00 00 00 00 FF 0F 98 [18:23:30]process_action close_receipt done [18:23:30]requested_data is exist [18:23:30]produce_requested_data [18:23:30]requested_item fm.sn is exist - process it [18:23:30]wFMCommunicate request_size=4 [18:23:30]MH_SAM_APDU [18:23:30]CAPDU: 80 11 00 00 [18:23:30]Write to MH i2c: E2 08 00 7F 05 80 11 00 00 00 00 00 00 FE [18:23:30]Write i2c OK [18:23:30]MH_I2C_Read... [18:23:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:23:30]Read from MH i2c: E2 [18:23:30]MH_I2C_Read... [18:23:30]Read from MH i2c: E2 17 00 [18:23:30]MH_I2C_Read... [18:23:30]Read from MH i2c: E2 17 00 7F 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 54 [18:23:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:23:30]wFMCommunicate OK [18:23:30]requested_item fd.num is exist - process it [18:23:30]SAM_PROTO_GetFieldsCounters [18:23:30]wFMCommunicate request_size=4 [18:23:30]MH_SAM_APDU [18:23:30]CAPDU: 80 13 00 00 [18:23:30]Write to MH i2c: E2 08 00 80 05 80 13 00 00 00 00 00 00 01 [18:23:30]Write i2c OK [18:23:30]MH_I2C_Read... [18:23:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:23:30]Read from MH i2c: E2 [18:23:30]MH_I2C_Read... [18:23:30]Read from MH i2c: E2 62 00 [18:23:30]MH_I2C_Read... [18:23:30]Read from MH i2c: E2 62 00 80 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1B 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 CB [18:23: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1B 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:23:30]wFMCommunicate OK [18:23:30]SAM_PROTO_GetFieldsCounters done [18:23:30]requested_item shift.num is exist - process it [18:23:30]requested_item shift.opened is exist - process it [18:23:30]req_shift_opened [18:23:30]FM_GetShiftState [18:23:30]SAM_PROTO_GetShiftState [18:23:30]wFMCommunicate request_size=4 [18:23:30]MH_SAM_APDU [18:23:30]CAPDU: 80 13 01 00 [18:23:30]Write to MH i2c: E2 08 00 81 05 80 13 01 00 00 00 00 00 03 [18:23:30]Write i2c OK [18:23:30]MH_I2C_Read... [18:23:30]Read from MH i2c: E2 [18:23:30]MH_I2C_Read... [18:23:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:23:30]Read from MH i2c: E2 0E 00 [18:23:30]MH_I2C_Read... [18:23:30]Read from MH i2c: E2 0E 00 81 05 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 DC [18:23:30]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [18:23:30]wFMCommunicate OK [18:23:30]SAM_PROTO_GetShiftState done [18:23:30]FM_GetShiftState done [18:23:30]req_shift_opened done [18:23:30]requested_item shift.open_date is exist - process it [18:23:30]req_shift_open_date [18:23:30]req_shift_open_date done [18:23:30]produce_requested_data done [18:23:30]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165403,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [18:23:30]process_action_free close_receipt [18:23:30]json_value_free [18:23:30]json_value_free done [18:23:30]process_json_proto returns [18:23:30]Send response to host [18:23:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165403,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [18:23:30]free response buf [18:23:30]execute_script done [18:23:30]execute_script returns [18:23:30]free content buf [18:23:30]Sock 7.Close socket [18:23:30]Sock 7.Thread stoped [18:23:34]OFD Sender: No OFD packet to send [18:23:39]OFD Sender: No OFD packet to send [18:23:44]OFD Sender: No OFD packet to send [18:23:49]OFD Sender: No OFD packet to send [18:23:54]OFD Sender: No OFD packet to send [18:23:59]OFD Sender: No OFD packet to send [18:24:04]OFD Sender: No OFD packet to send [18:24:09]OFD Sender: No OFD packet to send [18:24:14]OFD Sender: No OFD packet to send [18:24:19]OFD Sender: No OFD packet to send [18:24:24]OFD Sender: No OFD packet to send [18:24:29]OFD Sender: No OFD packet to send [18:24:34]OFD Sender: No OFD packet to send [18:24:39]OFD Sender: No OFD packet to send [18:24:44]OFD Sender: No OFD packet to send [18:24:49]OFD Sender: No OFD packet to send [18:24:54]OFD Sender: No OFD packet to send [18:24:56]accept exits with 9 [18:24:56]New connection [18:24:56]New thread 3067153764 created [18:24:56]Thread 3067297124 joined [18:24:56]Waiting for new connection... [18:24:56] Sock 9.Parse request [18:24:56]Sock 9.Check first char [18:24:56]Sock 9.First char is OK [18:24:56]request: POST /json_proto HTTP/1.0 [18:24:56]Method: POST [18:24:56]URL: /json_proto [18:24:56]Method is POST - this is cgi request [18:24:56]url: /json_proto [18:24:56]query_string will be loaded in cgi processing [18:24:56]execute_cgi json_proto POST (null) [18:24:56]execute_cgi path=json_proto method=POST [18:24:56]POST find Content-Length [18:24:56]Host: 172.17.56.4:8080 [18:24:56]Content-Length: 677 [18:24:56]Content-Type: application/json [18:24:56] [18:24:56]POST finish read [18:24:56]Found Content-Length = 677 [18:24:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459519", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:24:56]execute_script... [18:24: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)459519", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:24:56]POST & json_proto [18:24:56]process_json_proto [18:24:56]json parsed OK: [18:24:56]protocol is kg_v1.0 [18:24:56]action value=close_receipt [18:24:56]process_action close_receipt [18:24:56]cmd_close_receipt [18:24:56]MH_GetDate [18:24:56]Write to MH i2c: F0 00 00 82 05 76 [18:24:56]Write i2c OK [18:24:56]MH_I2C_Read... [18:24:56]Read from MH i2c: F0 [18:24:56]MH_I2C_Read... [18:24:56]Read from MH i2c: F0 09 00 [18:24:56]MH_I2C_Read... [18:24:56]Read from MH i2c: F0 09 00 82 05 00 78 69 95 66 C9 DC B2 64 16 [18:24:56]GetLastDocTimeStamp 1721067806 [18:24:56]current date 1721067896 [18:24:56]FM_GetShiftState [18:24:56]SAM_PROTO_GetShiftState [18:24:56]wFMCommunicate request_size=4 [18:24:56]MH_SAM_APDU [18:24:56]CAPDU: 80 13 01 00 [18:24:56]Write to MH i2c: E2 08 00 83 05 80 13 01 00 00 00 00 00 05 [18:24:56]Write i2c OK [18:24:56]MH_I2C_Read... [18:24:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:24:56]Read from MH i2c: E2 [18:24:56]MH_I2C_Read... [18:24:56]Read from MH i2c: E2 0E 00 [18:24:56]MH_I2C_Read... [18:24:56]Read from MH i2c: E2 0E 00 83 05 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 DE [18:24:56]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [18:24:56]wFMCommunicate OK [18:24:56]SAM_PROTO_GetShiftState done [18:24:56]FM_GetShiftState done [18:24:56]opened in 1721003876 [18:24:56]opened+sec_in_day 1721090276 [18:24:56]quantity*price = 30004 [18:24:56]sum+1 = 30006 [18:24:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 277 15.07.2024 18:24 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165404 ФПД: 157218794830952 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T182456&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165404&fm=157218794830952&tin=02508201610067®Number=0000000000090829&sum=30000 [18:24:57]StoreToDocumentArchive [18:24:57]shift 448 fd 165404 [18:24:57]save to /storage/0448/doc_00165404 [18:24:57]save last doc name /storage/0448/doc_00165404 to /storage/kkm_last_doc_name [18:24:57]save OK [18:24:57]Clear old archive folders... [18:24:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:24:57]tlvbuf is 00876A80 [18:24:57]SAM_PROTO_ClearQueue [18:24:57]wFMCommunicate request_size=4 [18:24:57]MH_SAM_APDU [18:24:57]CAPDU: 80 09 00 00 [18:24:57]Write to MH i2c: E2 08 00 90 05 80 09 00 00 00 00 00 00 07 [18:24:57]Write i2c OK [18:24:57]MH_I2C_Read... [18:24:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:24:57]Read from MH i2c: E2 [18:24:57]MH_I2C_Read... [18:24:57]Read from MH i2c: E2 03 00 [18:24:57]MH_I2C_Read... [18:24:57]Read from MH i2c: E2 03 00 90 05 00 90 00 09 [18:24:57]RAPDU: 90 00 [18:24:57]wFMCommunicate OK [18:24:57]SAM_PROTO_ClearQueue done [18:24:57]KKMCreateOFDPacket [18:24:57]OFDProtocolAddRootSTLVToBuf [18:24:57]FM_MakeSignedData [18:24:57]FM_MakeSignedData [18:24:57]SAM_PROTO_SignData [18:24:57]wFMCommunicate request_size=4 [18:24:57]MH_SAM_APDU [18:24:57]CAPDU: 80 0D 01 02 [18:24:57]Write to MH i2c: E2 08 00 91 05 80 0D 01 02 00 00 00 00 0F [18:24:57]Write i2c OK [18:24:57]MH_I2C_Read... [18:24:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:24:57]Read from MH i2c: E2 [18:24:57]MH_I2C_Read... [18:24:57]Read from MH i2c: E2 03 00 [18:24:57]MH_I2C_Read... [18:24:57]Read from MH i2c: E2 03 00 91 05 00 90 00 0A [18:24:57]RAPDU: 90 00 [18:24:57]wFMCommunicate OK [18:24:57]wFMCommunicate request_size=255 [18:24:57]MH_SAM_APDU [18:24: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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 78 69 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1C 86 02 00 35 04 06 00 8E [18:24:57]Write to MH i2c: E2 02 01 92 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 78 69 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1C 86 02 00 35 04 06 00 8E 00 00 2E [18:24:57]Write i2c OK [18:24:57]MH_I2C_Read... [18:24:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:24:57]Read from MH i2c: E2 [18:24:57]MH_I2C_Read... [18:24:57]Read from MH i2c: E2 03 00 [18:24:57]MH_I2C_Read... [18:24:57]Read from MH i2c: E2 03 00 92 05 00 90 00 0B [18:24:57]RAPDU: 90 00 [18:24:57]wFMCommunicate OK [18:24:57]wFMCommunicate request_size=10 [18:24:57]MH_SAM_APDU [18:24:57]CAPDU: 80 0D 02 02 05 FD 5A 6A FC 68 [18:24:57]Write to MH i2c: E2 0D 00 93 05 80 0D 02 02 05 00 FD 5A 6A FC 68 00 00 41 [18:24:57]Write i2c OK [18:24:57]MH_I2C_Read... [18:24:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:24:57]Read from MH i2c: E2 [18:24:57]MH_I2C_Read... [18:24:57]Read from MH i2c: E2 03 00 [18:24:57]MH_I2C_Read... [18:24:57]Read from MH i2c: E2 03 00 93 05 00 90 00 0C [18:24:57]RAPDU: 90 00 [18:24:57]wFMCommunicate OK [18:24:57]wFMCommunicate request_size=4 [18:24:57]MH_SAM_APDU [18:24:57]CAPDU: 80 0D 03 02 [18:24:57]Write to MH i2c: E2 08 00 94 05 80 0D 03 02 00 00 00 00 14 [18:24:57]Write i2c OK [18:24:57]MH_I2C_Read... [18:24:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:24:57]Read from MH i2c: E2 [18:24:57]MH_I2C_Read... [18:24:57]Read from MH i2c: E2 0B 00 [18:24:57]MH_I2C_Read... [18:24:57]Read from MH i2c: E2 0B 00 94 05 00 DB A5 97 B0 A9 9C 3E A9 90 00 08 [18:24:57]RAPDU: DB A5 97 B0 A9 9C 3E A9 90 00 [18:24:57]wFMCommunicate OK [18:24:57]SAM_PROTO_SignData done [18:24:57]FM_MakeSignedData done [18:24:57]CreateOFDProtocolMessage [18:24:57]wFMCommunicate request_size=4 [18:24:57]MH_SAM_APDU [18:24:57]CAPDU: 80 11 00 00 [18:24:57]Write to MH i2c: E2 08 00 95 05 80 11 00 00 00 00 00 00 14 [18:24:57]Write i2c OK [18:24:57]MH_I2C_Read... [18:24:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:24:57]Read from MH i2c: E2 [18:24:57]MH_I2C_Read... [18:24:57]Read from MH i2c: E2 17 00 [18:24:57]MH_I2C_Read... [18:24:57]Read from MH i2c: E2 17 00 95 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6A [18:24:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:24:57]wFMCommunicate OK [18:24:57]CreateOFDProtocolMessage done [18:24:57]OFDSenderStorePacket 165404 [18:24:57]StoreOFDPacket docnum=165404 [18:24:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 9C 06 07 01 CF 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 78 69 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1C 86 02 00 35 04 06 00 8E FD 5A 6A FC 68 DB A5 97 B0 A9 9C 3E A9 [18:24:57]CheckFolder [18:24:57]dirname=/storage/ofd_packets [18:24:57]CheckFolder done [18:24:57]ProducePacketName [18:24:57]name=ofd_packets/00165404 [18:24:57]NVStorageSaveData ofd_packets/00165404 [18:24:57]File name is /storage/ofd_packets/00165404 [18:24:57]Write 301 bytes [18:24:57]NVStorageSaveData done [18:24:57]OFDSenderStorePacket done [18:24:57]KKMCreateOFDPacket done [18:24:57]NVStorageSaveData kkm_last_timestamp [18:24:57]File name is /storage/kkm_last_timestamp [18:24:57]Write 4 bytes [18:24:57]NVStorageSaveData done [18:24:57]ExternCall_PrintAddStr [18:24:57]wPrintStart [18:24:57]Write to MH i2c: 01 00 00 96 05 9B [18:24:57]Write i2c OK [18:24:57]MH_I2C_Read... [18:24:57]Read from MH i2c: 01 [18:24:57]MH_I2C_Read... [18:24:57]Read from MH i2c: 01 07 00 [18:24:57]MH_I2C_Read... [18:24:57]Read from MH i2c: 01 07 00 96 05 00 00 00 00 00 FF 0F B0 [18:24:57]RasterBufferAndPrint [18:24:57]line Счет N : (1)459519 [18:24:57]line ИНН: 02508201610067 [18:24:57]line Контрольно-Кассовый Чек [18:24:57]line ПРОДАЖА [18:24:57]line ТРК (МРК, ГНК) : 22 [18:24:57]line Товар: 2710124130 [18:24:57]line Аи-92-К-5 [18:24:57]line 4.560 * 65.80 [18:24:57]line = 300.05 [18:24:57]line НДС 12% НСП 1% [18:24:57]line > о реализуемом товаре [18:24:57]line ОКРУГЛЕНИЕ: -0.05 [18:24:57]line ИТОГО: 300.00 [18:24:57]line Внесено: 300.00 [18:24:57]line СДАЧА: 0.00 [18:24:57]line НСП 1% : 2.65 [18:24:57]line НДС 12% : 31.86 [18:24:57]line Наличными: 300.00 [18:24:57]line Безнал.: 0.00 [18:24:57]line Место: АЗС № 72 "Партнер Нефть" [18:24:57]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:24:57]line СНО: Общий режим [18:24:57]line Чек 277 15.07.2024 18:24 [18:24:57]line Смена: 448 ФФД: 1.0 [18:24:57]line ЗНМ: 0300000160 [18:24:57]line РНМ: 0000000000090829 [18:24:57]line Версия ККМ: 001 [18:24:57]line ФМ: 0000000000874718 [18:24:57]line ФД: 165404 [18:24:57]line ФПД: 157218794830952 [18:24:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T182456&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165404&fm=157218794830952&tin=02508201610067®Number=0000000000090829&sum=30000 [18:24:57]written 0, free lines is 4095 [18:24:57]OFD Sender: Processing packet 165404 [packets to send 106, broken 105] [18:24:57]ProducePacketName [18:24:57]name=ofd_packets/00165404 [18:24:57]OFD Sender: To server: pG, [18:24:57]CommunicateWithHost lk.salyk.kg:30040 [18:24:57]ConnectInit lk.salyk.kg [18:24:57]Connected sock=10 [18:24: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 37 31 38 0F 01 00 00 9C 06 07 01 CF 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 78 69 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1C 86 02 00 35 04 06 00 8E FD 5A 6A FC 68 DB A5 97 B0 A9 9C 3E A9 [18:24:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 15 CE 47 00 32 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 37 31 38 10 04 04 00 1C 86 02 00 F4 03 04 00 01 10 95 66 B6 04 01 00 00 9C 5A 46 68 86 E3 BF 9A [18:24:58]CommunicateWithHost err = 0 [18:24:58]CheckOFDResponse [18:24:58]1017 (14) - 77093643461234 [18:24:58]1041 (16) - 0000000000874718 [18:24:58]1040 (4) - 165404 [18:24:58]1012 (4) - 15.07.2024 12:03 [18:24:58]1206 (1) - 0 [18:24:58]OFD Sender: Remove packet 165404 [18:24:58]ProducePacketName [18:24:58]name=ofd_packets/00165404 [18:24:58]NVStorageDeleteData [18:24:58]Write to MH i2c: 01 00 00 C0 05 C5 [18:24:58]Write i2c OK [18:24:58]MH_I2C_Read... [18:24:58]Read from MH i2c: 01 [18:24:58]MH_I2C_Read... [18:24:58]Read from MH i2c: 01 07 00 [18:24:58]MH_I2C_Read... [18:24:58]Read from MH i2c: 01 07 00 C0 05 00 00 00 00 00 02 0D DB [18:24:58]RasterBufferAndPrint [18:24:58]line [18:24:58]line [18:24:58]line [18:24:58]line [18:24:58]line [18:24:58]written 0, free lines is 3336 [18:24:58]MH_Cut [18:24:58]Write to MH i2c: D1 01 00 C7 05 01 9E [18:24:58]Write i2c OK [18:24:58]MH_I2C_Read... [18:24:58]Read from MH i2c: D1 [18:24:58]MH_I2C_Read... [18:24:58]Read from MH i2c: D1 01 00 [18:24:58]MH_I2C_Read... [18:24:58]Read from MH i2c: D1 01 00 C7 05 00 9D [18:24:58]Write to MH i2c: 01 00 00 C8 05 CD [18:24:58]Write i2c OK [18:24:58]MH_I2C_Read... [18:24:58]OFD Sender: No OFD packet to send [18:24:58]*** Cut start [18:24:58]*** Partial cut [18:24:58]*** CUTSNS_PIN = 1 [18:24:58]*** CUTSNS_PIN = 0 [18:24:59]*** Brake cut motor [18:24:59]Read from MH i2c: 01 [18:24:59]MH_I2C_Read... [18:24:59]*** Stop cut motor [18:24:59]*** Cut end [18:24:59]Read from MH i2c: 01 07 00 [18:24:59]MH_I2C_Read... [18:24:59]Read from MH i2c: 01 07 00 C8 05 00 00 00 00 00 FF 0F E2 [18:24:59]process_action close_receipt done [18:24:59]requested_data is exist [18:24:59]produce_requested_data [18:24:59]requested_item fm.sn is exist - process it [18:24:59]wFMCommunicate request_size=4 [18:24:59]MH_SAM_APDU [18:24:59]CAPDU: 80 11 00 00 [18:24:59]Write to MH i2c: E2 08 00 C9 05 80 11 00 00 00 00 00 00 48 [18:24:59]Write i2c OK [18:24:59]MH_I2C_Read... [18:24:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:24:59]Read from MH i2c: E2 [18:24:59]MH_I2C_Read... [18:24:59]Read from MH i2c: E2 17 00 [18:24:59]MH_I2C_Read... [18:24:59]Read from MH i2c: E2 17 00 C9 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 9E [18:24:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:24:59]wFMCommunicate OK [18:24:59]requested_item fd.num is exist - process it [18:24:59]SAM_PROTO_GetFieldsCounters [18:24:59]wFMCommunicate request_size=4 [18:24:59]MH_SAM_APDU [18:24:59]CAPDU: 80 13 00 00 [18:24:59]Write to MH i2c: E2 08 00 CA 05 80 13 00 00 00 00 00 00 4B [18:24:59]Write i2c OK [18:24:59]MH_I2C_Read... [18:24:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:24:59]Read from MH i2c: E2 [18:24:59]MH_I2C_Read... [18:24:59]Read from MH i2c: E2 62 00 [18:24:59]MH_I2C_Read... [18:24:59]Read from MH i2c: E2 62 00 CA 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1C 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 19 [18:24: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1C 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:24:59]wFMCommunicate OK [18:24:59]SAM_PROTO_GetFieldsCounters done [18:24:59]requested_item shift.num is exist - process it [18:24:59]requested_item shift.opened is exist - process it [18:24:59]req_shift_opened [18:24:59]FM_GetShiftState [18:24:59]SAM_PROTO_GetShiftState [18:24:59]wFMCommunicate request_size=4 [18:24:59]MH_SAM_APDU [18:24:59]CAPDU: 80 13 01 00 [18:24:59]Write to MH i2c: E2 08 00 CB 05 80 13 01 00 00 00 00 00 4D [18:24:59]Write i2c OK [18:24:59]MH_I2C_Read... [18:24:59]Read from MH i2c: E2 [18:24:59]MH_I2C_Read... [18:24:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:24:59]Read from MH i2c: E2 0E 00 [18:24:59]MH_I2C_Read... [18:24:59]Read from MH i2c: E2 0E 00 CB 05 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 26 [18:24:59]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [18:24:59]wFMCommunicate OK [18:24:59]SAM_PROTO_GetShiftState done [18:24:59]FM_GetShiftState done [18:24:59]req_shift_opened done [18:24:59]requested_item shift.open_date is exist - process it [18:24:59]req_shift_open_date [18:24:59]req_shift_open_date done [18:24:59]produce_requested_data done [18:24:59]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165404,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [18:24:59]process_action_free close_receipt [18:24:59]json_value_free [18:24:59]json_value_free done [18:24:59]process_json_proto returns [18:24:59]Send response to host [18:24:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165404,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [18:24:59]free response buf [18:24:59]execute_script done [18:24:59]execute_script returns [18:24:59]free content buf [18:24:59]Sock 9.Close socket [18:24:59]Sock 9.Thread stoped [18:25:03]OFD Sender: No OFD packet to send [18:25:08]OFD Sender: No OFD packet to send [18:25:13]OFD Sender: No OFD packet to send [18:25:18]OFD Sender: No OFD packet to send [18:25:23]OFD Sender: No OFD packet to send [18:25:28]OFD Sender: No OFD packet to send [18:25:33]OFD Sender: No OFD packet to send [18:25:38]OFD Sender: No OFD packet to send [18:25:43]OFD Sender: No OFD packet to send [18:25:48]OFD Sender: No OFD packet to send [18:25:53]OFD Sender: No OFD packet to send [18:25:58]OFD Sender: No OFD packet to send [18:26:03]OFD Sender: No OFD packet to send [18:26:08]OFD Sender: No OFD packet to send [18:26:13]OFD Sender: No OFD packet to send [18:26:18]OFD Sender: No OFD packet to send [18:26:23]OFD Sender: No OFD packet to send [18:26:28]OFD Sender: No OFD packet to send [18:26:33]OFD Sender: No OFD packet to send [18:26:37]accept exits with 7 [18:26:37]New connection [18:26:37]New thread 3067297124 created [18:26:37]Thread 3067153764 joined [18:26:37]Waiting for new connection... [18:26:37] Sock 7.Parse request [18:26:37]Sock 7.Check first char [18:26:37]Sock 7.First char is OK [18:26:37]request: POST /json_proto HTTP/1.0 [18:26:37]Method: POST [18:26:37]URL: /json_proto [18:26:37]Method is POST - this is cgi request [18:26:37]url: /json_proto [18:26:37]query_string will be loaded in cgi processing [18:26:37]execute_cgi json_proto POST (null) [18:26:37]execute_cgi path=json_proto method=POST [18:26:37]POST find Content-Length [18:26:37]Host: 172.17.56.4:8080 [18:26:37]Content-Length: 677 [18:26:37]Content-Type: application/json [18:26:37] [18:26:37]POST finish read [18:26:37]Found Content-Length = 677 [18:26:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459520", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.000, "sum" : 131.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 131.00, "total" : 131.00, "payments": [ { "type": 0, "sum" : 131.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:26:37]execute_script... [18:26:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459520", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.000, "sum" : 131.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 131.00, "total" : 131.00, "payments": [ { "type": 0, "sum" : 131.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:26:37]POST & json_proto [18:26:37]process_json_proto [18:26:37]json parsed OK: [18:26:37]protocol is kg_v1.0 [18:26:37]action value=close_receipt [18:26:37]process_action close_receipt [18:26:37]cmd_close_receipt [18:26:37]MH_GetDate [18:26:37]Write to MH i2c: F0 00 00 CC 05 C0 [18:26:37]Write i2c OK [18:26:37]MH_I2C_Read... [18:26:37]Read from MH i2c: F0 [18:26:37]MH_I2C_Read... [18:26:37]Read from MH i2c: F0 09 00 [18:26:37]MH_I2C_Read... [18:26:37]Read from MH i2c: F0 09 00 CC 05 00 DE 69 95 66 C9 DC B2 64 C6 [18:26:37]GetLastDocTimeStamp 1721067896 [18:26:37]current date 1721067998 [18:26:37]FM_GetShiftState [18:26:37]SAM_PROTO_GetShiftState [18:26:37]wFMCommunicate request_size=4 [18:26:37]MH_SAM_APDU [18:26:37]CAPDU: 80 13 01 00 [18:26:37]Write to MH i2c: E2 08 00 CD 05 80 13 01 00 00 00 00 00 4F [18:26:37]Write i2c OK [18:26:37]MH_I2C_Read... [18:26:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:37]Read from MH i2c: E2 [18:26:37]MH_I2C_Read... [18:26:37]Read from MH i2c: E2 0E 00 [18:26:37]MH_I2C_Read... [18:26:37]Read from MH i2c: E2 0E 00 CD 05 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 28 [18:26:37]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [18:26:37]wFMCommunicate OK [18:26:37]SAM_PROTO_GetShiftState done [18:26:37]FM_GetShiftState done [18:26:37]opened in 1721003876 [18:26:37]opened+sec_in_day 1721090276 [18:26:37]quantity*price = 13160 [18:26:37]sum+1 = 13161 [18:26:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 131.00 Внесено: 131.00 СДАЧА: 0.00 НСП 1% : 1.16 НДС 12% : 13.97 Наличными: 131.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 278 15.07.2024 18:26 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165405 ФПД: 37768139616230 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T182638&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165405&fm=37768139616230&tin=02508201610067®Number=0000000000090829&sum=13100 [18:26:39]StoreToDocumentArchive [18:26:39]shift 448 fd 165405 [18:26:39]save to /storage/0448/doc_00165405 [18:26:39]save last doc name /storage/0448/doc_00165405 to /storage/kkm_last_doc_name [18:26:39]save OK [18:26:39]Clear old archive folders... [18:26:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:26:39]tlvbuf is 00876170 [18:26:39]SAM_PROTO_ClearQueue [18:26:39]wFMCommunicate request_size=4 [18:26:39]MH_SAM_APDU [18:26:39]CAPDU: 80 09 00 00 [18:26:39]Write to MH i2c: E2 08 00 DA 05 80 09 00 00 00 00 00 00 51 [18:26:39]Write i2c OK [18:26:39]MH_I2C_Read... [18:26:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:26:39]Read from MH i2c: E2 [18:26:39]MH_I2C_Read... [18:26:39]Read from MH i2c: E2 03 00 [18:26:39]MH_I2C_Read... [18:26:39]Read from MH i2c: E2 03 00 DA 05 00 90 00 53 [18:26:39]RAPDU: 90 00 [18:26:39]wFMCommunicate OK [18:26:39]SAM_PROTO_ClearQueue done [18:26:39]KKMCreateOFDPacket [18:26:39]OFDProtocolAddRootSTLVToBuf [18:26:39]FM_MakeSignedData [18:26:39]FM_MakeSignedData [18:26:39]SAM_PROTO_SignData [18:26:39]wFMCommunicate request_size=4 [18:26:39]MH_SAM_APDU [18:26:39]CAPDU: 80 0D 01 02 [18:26:39]Write to MH i2c: E2 08 00 DB 05 80 0D 01 02 00 00 00 00 59 [18:26:39]Write i2c OK [18:26:39]MH_I2C_Read... [18:26:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:26:39]Read from MH i2c: E2 [18:26:39]MH_I2C_Read... [18:26:39]Read from MH i2c: E2 03 00 [18:26:39]MH_I2C_Read... [18:26:39]Read from MH i2c: E2 03 00 DB 05 00 90 00 54 [18:26:39]RAPDU: 90 00 [18:26:39]wFMCommunicate OK [18:26:39]wFMCommunicate request_size=255 [18:26:39]MH_SAM_APDU [18:26:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 68 33 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 05 00 00 00 00 07 04 06 00 2C 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 DE 69 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1D 86 02 00 35 04 06 00 22 [18:26:39]Write to MH i2c: E2 02 01 DC 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 68 33 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 05 00 00 00 00 07 04 06 00 2C 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 DE 69 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1D 86 02 00 35 04 06 00 22 00 00 35 [18:26:39]Write i2c OK [18:26:39]MH_I2C_Read... [18:26:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:39]Read from MH i2c: E2 [18:26:39]MH_I2C_Read... [18:26:39]Read from MH i2c: E2 03 00 [18:26:39]MH_I2C_Read... [18:26:39]Read from MH i2c: E2 03 00 DC 05 00 90 00 55 [18:26:39]RAPDU: 90 00 [18:26:39]wFMCommunicate OK [18:26:39]wFMCommunicate request_size=10 [18:26:39]MH_SAM_APDU [18:26:39]CAPDU: 80 0D 02 02 05 59 94 8B AF E6 [18:26:39]Write to MH i2c: E2 0D 00 DD 05 80 0D 02 02 05 00 59 94 8B AF E6 00 00 73 [18:26:39]Write i2c OK [18:26:39]MH_I2C_Read... [18:26:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:39]Read from MH i2c: E2 [18:26:39]MH_I2C_Read... [18:26:39]Read from MH i2c: E2 03 00 [18:26:39]MH_I2C_Read... [18:26:39]Read from MH i2c: E2 03 00 DD 05 00 90 00 56 [18:26:39]RAPDU: 90 00 [18:26:39]wFMCommunicate OK [18:26:39]wFMCommunicate request_size=4 [18:26:39]MH_SAM_APDU [18:26:39]CAPDU: 80 0D 03 02 [18:26:39]Write to MH i2c: E2 08 00 DE 05 80 0D 03 02 00 00 00 00 5E [18:26:39]Write i2c OK [18:26:39]MH_I2C_Read... [18:26:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:26:39]Read from MH i2c: E2 [18:26:39]MH_I2C_Read... [18:26:39]Read from MH i2c: E2 0B 00 [18:26:39]MH_I2C_Read... [18:26:39]Read from MH i2c: E2 0B 00 DE 05 00 DE F6 61 B7 FA 95 69 EB 90 00 2E [18:26:39]RAPDU: DE F6 61 B7 FA 95 69 EB 90 00 [18:26:39]wFMCommunicate OK [18:26:39]SAM_PROTO_SignData done [18:26:39]FM_MakeSignedData done [18:26:39]CreateOFDProtocolMessage [18:26:39]wFMCommunicate request_size=4 [18:26:39]MH_SAM_APDU [18:26:39]CAPDU: 80 11 00 00 [18:26:39]Write to MH i2c: E2 08 00 DF 05 80 11 00 00 00 00 00 00 5E [18:26:39]Write i2c OK [18:26:39]MH_I2C_Read... [18:26:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:39]Read from MH i2c: E2 [18:26:39]MH_I2C_Read... [18:26:39]Read from MH i2c: E2 17 00 [18:26:39]MH_I2C_Read... [18:26:39]Read from MH i2c: E2 17 00 DF 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B4 [18:26:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:26:39]wFMCommunicate OK [18:26:39]CreateOFDProtocolMessage done [18:26:39]OFDSenderStorePacket 165405 [18:26:39]StoreOFDPacket docnum=165405 [18:26:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C6 FA 07 01 35 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 68 33 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 05 00 00 00 00 07 04 06 00 2C 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 DE 69 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1D 86 02 00 35 04 06 00 22 59 94 8B AF E6 DE F6 61 B7 FA 95 69 EB [18:26:39]CheckFolder [18:26:39]dirname=/storage/ofd_packets [18:26:39]CheckFolder done [18:26:39]ProducePacketName [18:26:39]name=ofd_packets/00165405 [18:26:39]NVStorageSaveData ofd_packets/00165405 [18:26:39]File name is /storage/ofd_packets/00165405 [18:26:39]Write 301 bytes [18:26:39]NVStorageSaveData done [18:26:39]OFDSenderStorePacket done [18:26:39]KKMCreateOFDPacket done [18:26:39]NVStorageSaveData kkm_last_timestamp [18:26:39]File name is /storage/kkm_last_timestamp [18:26:39]Write 4 bytes [18:26:39]NVStorageSaveData done [18:26:39]ExternCall_PrintAddStr [18:26:39]wPrintStart [18:26:39]Write to MH i2c: 01 00 00 E0 05 E5 [18:26:39]Write i2c OK [18:26:39]MH_I2C_Read... [18:26:39]Read from MH i2c: 01 [18:26:39]MH_I2C_Read... [18:26:39]Read from MH i2c: 01 07 00 [18:26:39]MH_I2C_Read... [18:26:39]Read from MH i2c: 01 07 00 E0 05 00 00 00 00 00 FF 0F FA [18:26:39]RasterBufferAndPrint [18:26:39]line Счет N : (1)459520 [18:26:39]line ИНН: 02508201610067 [18:26:39]line Контрольно-Кассовый Чек [18:26:39]line ПРОДАЖА [18:26:39]line ТРК (МРК, ГНК) : 22 [18:26:39]line Товар: 2710124130 [18:26:39]line Аи-92-К-5 [18:26:39]line 2.000 * 65.80 [18:26:39]line = 131.60 [18:26:39]line НДС 12% НСП 1% [18:26:39]line > о реализуемом товаре [18:26:39]line ОКРУГЛЕНИЕ: -0.60 [18:26:39]line ИТОГО: 131.00 [18:26:39]line Внесено: 131.00 [18:26:39]line СДАЧА: 0.00 [18:26:39]line НСП 1% : 1.16 [18:26:39]line НДС 12% : 13.97 [18:26:39]line Наличными: 131.00 [18:26:39]line Безнал.: 0.00 [18:26:39]line Место: АЗС № 72 "Партнер Нефть" [18:26:39]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:26:39]line СНО: Общий режим [18:26:39]line Чек 278 15.07.2024 18:26 [18:26:39]line Смена: 448 ФФД: 1.0 [18:26:39]line ЗНМ: 0300000160 [18:26:39]line РНМ: 0000000000090829 [18:26:39]line Версия ККМ: 001 [18:26:39]line ФМ: 0000000000874718 [18:26:39]line ФД: 165405 [18:26:39]line ФПД: 37768139616230 [18:26:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T182638&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165405&fm=37768139616230&tin=02508201610067®Number=0000000000090829&sum=13100 [18:26:39]written 0, free lines is 4095 [18:26:39]OFD Sender: Processing packet 165405 [packets to send 106, broken 105] [18:26:39]ProducePacketName [18:26:39]name=ofd_packets/00165405 [18:26:39]OFD Sender: To server: pG, [18:26:39]CommunicateWithHost lk.salyk.kg:30040 [18:26:39]ConnectInit lk.salyk.kg [18:26:40]Connected sock=10 [18:26:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C6 FA 07 01 35 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 68 33 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 05 00 00 00 00 07 04 06 00 2C 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 DE 69 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1D 86 02 00 35 04 06 00 22 59 94 8B AF E6 DE F6 61 B7 FA 95 69 EB [18:26:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 E5 DC 47 00 D2 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 37 31 38 10 04 04 00 1D 86 02 00 F4 03 04 00 67 10 95 66 B6 04 01 00 00 2F E8 61 31 92 DD B6 D2 [18:26:40]CommunicateWithHost err = 0 [18:26:40]CheckOFDResponse [18:26:40]1017 (14) - 77093643461234 [18:26:40]1041 (16) - 0000000000874718 [18:26:40]1040 (4) - 165405 [18:26:40]1012 (4) - 15.07.2024 12:04 [18:26:40]1206 (1) - 0 [18:26:40]OFD Sender: Remove packet 165405 [18:26:40]ProducePacketName [18:26:40]name=ofd_packets/00165405 [18:26:40]NVStorageDeleteData [18:26:40]Write to MH i2c: 01 00 00 0A 06 10 [18:26:40]Write i2c OK [18:26:40]MH_I2C_Read... [18:26:40]Read from MH i2c: 01 [18:26:40]MH_I2C_Read... [18:26:40]Read from MH i2c: 01 07 00 [18:26:40]MH_I2C_Read... [18:26:40]Read from MH i2c: 01 07 00 0A 06 00 00 00 00 00 F1 0C 14 [18:26:40]RasterBufferAndPrint [18:26:40]line [18:26:40]line [18:26:40]line [18:26:40]line [18:26:40]line [18:26:40]written 0, free lines is 3320 [18:26:40]MH_Cut [18:26:40]Write to MH i2c: D1 01 00 11 06 01 E9 [18:26:40]Write i2c OK [18:26:40]MH_I2C_Read... [18:26:40]Read from MH i2c: D1 [18:26:40]MH_I2C_Read... [18:26:40]Read from MH i2c: D1 01 00 [18:26:40]MH_I2C_Read... [18:26:40]Read from MH i2c: D1 01 00 11 06 00 E8 [18:26:40]Write to MH i2c: 01 00 00 12 06 18 [18:26:40]Write i2c OK [18:26:40]MH_I2C_Read... [18:26:40]OFD Sender: No OFD packet to send [18:26:41]*** Cut start [18:26:41]*** Partial cut [18:26:41]*** CUTSNS_PIN = 1 [18:26:41]*** CUTSNS_PIN = 0 [18:26:41]*** Brake cut motor [18:26:41]Read from MH i2c: 01 [18:26:41]MH_I2C_Read... [18:26:41]*** Stop cut motor [18:26:41]*** Cut end [18:26:41]Read from MH i2c: 01 07 00 [18:26:41]MH_I2C_Read... [18:26:41]Read from MH i2c: 01 07 00 12 06 00 00 00 00 00 FF 0F 2D [18:26:41]process_action close_receipt done [18:26:41]requested_data is exist [18:26:41]produce_requested_data [18:26:41]requested_item fm.sn is exist - process it [18:26:41]wFMCommunicate request_size=4 [18:26:41]MH_SAM_APDU [18:26:41]CAPDU: 80 11 00 00 [18:26:41]Write to MH i2c: E2 08 00 13 06 80 11 00 00 00 00 00 00 93 [18:26:41]Write i2c OK [18:26:41]MH_I2C_Read... [18:26:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:41]Read from MH i2c: E2 [18:26:41]MH_I2C_Read... [18:26:41]Read from MH i2c: E2 17 00 [18:26:41]MH_I2C_Read... [18:26:41]Read from MH i2c: E2 17 00 13 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E9 [18:26:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:26:41]wFMCommunicate OK [18:26:41]requested_item fd.num is exist - process it [18:26:41]SAM_PROTO_GetFieldsCounters [18:26:41]wFMCommunicate request_size=4 [18:26:41]MH_SAM_APDU [18:26:41]CAPDU: 80 13 00 00 [18:26:41]Write to MH i2c: E2 08 00 14 06 80 13 00 00 00 00 00 00 96 [18:26:41]Write i2c OK [18:26:41]MH_I2C_Read... [18:26:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:26:41]Read from MH i2c: E2 [18:26:41]MH_I2C_Read... [18:26:41]Read from MH i2c: E2 62 00 [18:26:41]MH_I2C_Read... [18:26:41]Read from MH i2c: E2 62 00 14 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1D 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 68 [18:26: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1D 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:26:41]wFMCommunicate OK [18:26:41]SAM_PROTO_GetFieldsCounters done [18:26:41]requested_item shift.num is exist - process it [18:26:41]requested_item shift.opened is exist - process it [18:26:41]req_shift_opened [18:26:41]FM_GetShiftState [18:26:41]SAM_PROTO_GetShiftState [18:26:41]wFMCommunicate request_size=4 [18:26:41]MH_SAM_APDU [18:26:41]CAPDU: 80 13 01 00 [18:26:41]Write to MH i2c: E2 08 00 15 06 80 13 01 00 00 00 00 00 98 [18:26:41]Write i2c OK [18:26:41]MH_I2C_Read... [18:26:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:41]Read from MH i2c: E2 [18:26:41]MH_I2C_Read... [18:26:41]Read from MH i2c: E2 0E 00 [18:26:41]MH_I2C_Read... [18:26:41]Read from MH i2c: E2 0E 00 15 06 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 71 [18:26:41]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [18:26:41]wFMCommunicate OK [18:26:41]SAM_PROTO_GetShiftState done [18:26:41]FM_GetShiftState done [18:26:41]req_shift_opened done [18:26:41]requested_item shift.open_date is exist - process it [18:26:41]req_shift_open_date [18:26:41]req_shift_open_date done [18:26:41]produce_requested_data done [18:26:41]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165405,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [18:26:41]process_action_free close_receipt [18:26:41]json_value_free [18:26:41]json_value_free done [18:26:41]process_json_proto returns [18:26:41]Send response to host [18:26:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165405,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [18:26:41]free response buf [18:26:41]execute_script done [18:26:41]execute_script returns [18:26:41]free content buf [18:26:41]Sock 7.Close socket [18:26:41]Sock 7.Thread stoped [18:26:45]OFD Sender: No OFD packet to send [18:26:50]OFD Sender: No OFD packet to send [18:26:55]OFD Sender: No OFD packet to send [18:27:00]OFD Sender: No OFD packet to send [18:27:05]OFD Sender: No OFD packet to send [18:27:10]OFD Sender: No OFD packet to send [18:27:15]OFD Sender: No OFD packet to send [18:27:20]OFD Sender: No OFD packet to send [18:27:25]OFD Sender: No OFD packet to send [18:27:30]OFD Sender: No OFD packet to send [18:27:35]OFD Sender: No OFD packet to send [18:27:40]OFD Sender: No OFD packet to send [18:27:45]OFD Sender: No OFD packet to send [18:27:50]OFD Sender: No OFD packet to send [18:27:55]OFD Sender: No OFD packet to send [18:28:00]OFD Sender: No OFD packet to send [18:28:05]OFD Sender: No OFD packet to send [18:28:10]OFD Sender: No OFD packet to send [18:28:15]OFD Sender: No OFD packet to send [18:28:20]OFD Sender: No OFD packet to send [18:28:25]OFD Sender: No OFD packet to send [18:28:30]OFD Sender: No OFD packet to send [18:28:35]OFD Sender: No OFD packet to send [18:28:40]OFD Sender: No OFD packet to send [18:28:45]OFD Sender: No OFD packet to send [18:28:50]OFD Sender: No OFD packet to send [18:28:55]OFD Sender: No OFD packet to send [18:29:00]OFD Sender: No OFD packet to send [18:29:05]OFD Sender: No OFD packet to send [18:29:10]OFD Sender: No OFD packet to send [18:29:15]OFD Sender: No OFD packet to send [18:29:20]OFD Sender: No OFD packet to send [18:29:25]OFD Sender: No OFD packet to send [18:29:30]OFD Sender: No OFD packet to send [18:29:35]OFD Sender: No OFD packet to send [18:29:40]OFD Sender: No OFD packet to send [18:29:45]OFD Sender: No OFD packet to send [18:29:50]OFD Sender: No OFD packet to send [18:29:56]OFD Sender: No OFD packet to send [18:30:01]OFD Sender: No OFD packet to send [18:30:06]OFD Sender: No OFD packet to send [18:30:11]OFD Sender: No OFD packet to send [18:30:16]OFD Sender: No OFD packet to send [18:30:21]OFD Sender: No OFD packet to send [18:30:26]OFD Sender: No OFD packet to send [18:30:31]OFD Sender: No OFD packet to send [18:30:36]OFD Sender: No OFD packet to send [18:30:41]OFD Sender: No OFD packet to send [18:30:46]OFD Sender: No OFD packet to send [18:30:51]OFD Sender: No OFD packet to send [18:30:56]OFD Sender: No OFD packet to send [18:31:01]OFD Sender: No OFD packet to send [18:31:06]OFD Sender: No OFD packet to send [18:31:11]OFD Sender: No OFD packet to send [18:31:15]accept exits with 9 [18:31:15]New connection [18:31:15]New thread 3067153764 created [18:31:15]Thread 3067297124 joined [18:31:15]Waiting for new connection... [18:31:15] Sock 9.Parse request [18:31:15]Sock 9.Check first char [18:31:15]Sock 9.First char is OK [18:31:15]request: POST /json_proto HTTP/1.0 [18:31:15]Method: POST [18:31:15]URL: /json_proto [18:31:15]Method is POST - this is cgi request [18:31:15]url: /json_proto [18:31:15]query_string will be loaded in cgi processing [18:31:15]execute_cgi json_proto POST (null) [18:31:15]execute_cgi path=json_proto method=POST [18:31:15]POST find Content-Length [18:31:15]Host: 172.17.56.4:8080 [18:31:15]Content-Length: 678 [18:31:15]Content-Type: application/json [18:31:15] [18:31:15]POST finish read [18:31:15]Found Content-Length = 678 [18:31:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459521", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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" ] } } [18:31:15]execute_script... [18:31:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459521", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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" ] } } [18:31:15]POST & json_proto [18:31:15]process_json_proto [18:31:15]json parsed OK: [18:31:15]protocol is kg_v1.0 [18:31:15]action value=close_receipt [18:31:15]process_action close_receipt [18:31:15]cmd_close_receipt [18:31:15]MH_GetDate [18:31:15]Write to MH i2c: F0 00 00 16 06 0B [18:31:15]Write i2c OK [18:31:15]MH_I2C_Read... [18:31:15]Read from MH i2c: F0 [18:31:15]MH_I2C_Read... [18:31:15]Read from MH i2c: F0 09 00 [18:31:15]MH_I2C_Read... [18:31:15]Read from MH i2c: F0 09 00 16 06 00 F3 6A 95 66 C9 DC B2 64 27 [18:31:15]GetLastDocTimeStamp 1721067998 [18:31:15]current date 1721068275 [18:31:15]FM_GetShiftState [18:31:15]SAM_PROTO_GetShiftState [18:31:15]wFMCommunicate request_size=4 [18:31:15]MH_SAM_APDU [18:31:15]CAPDU: 80 13 01 00 [18:31:15]Write to MH i2c: E2 08 00 17 06 80 13 01 00 00 00 00 00 9A [18:31:15]Write i2c OK [18:31:15]MH_I2C_Read... [18:31:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:15]Read from MH i2c: E2 [18:31:15]MH_I2C_Read... [18:31:15]Read from MH i2c: E2 0E 00 [18:31:15]MH_I2C_Read... [18:31:15]Read from MH i2c: E2 0E 00 17 06 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 73 [18:31:15]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [18:31:15]wFMCommunicate OK [18:31:15]SAM_PROTO_GetShiftState done [18:31:15]FM_GetShiftState done [18:31:15]opened in 1721003876 [18:31:15]opened+sec_in_day 1721090276 [18:31:15]quantity*price = 70011 [18:31:15]sum+1 = 70012 [18:31:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 279 15.07.2024 18:31 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165406 ФПД: 237112579568708 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T183115&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165406&fm=237112579568708&tin=02508201610067®Number=0000000000090829&sum=70000 [18:31:16]StoreToDocumentArchive [18:31:16]shift 448 fd 165406 [18:31:16]save to /storage/0448/doc_00165406 [18:31:16]save last doc name /storage/0448/doc_00165406 to /storage/kkm_last_doc_name [18:31:16]save OK [18:31:16]Clear old archive folders... [18:31:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:31:16]tlvbuf is 008865C0 [18:31:16]SAM_PROTO_ClearQueue [18:31:16]wFMCommunicate request_size=4 [18:31:16]MH_SAM_APDU [18:31:16]CAPDU: 80 09 00 00 [18:31:16]Write to MH i2c: E2 08 00 24 06 80 09 00 00 00 00 00 00 9C [18:31:16]Write i2c OK [18:31:16]MH_I2C_Read... [18:31:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:31:16]Read from MH i2c: E2 [18:31:16]MH_I2C_Read... [18:31:16]Read from MH i2c: E2 03 00 [18:31:16]MH_I2C_Read... [18:31:16]Read from MH i2c: E2 03 00 24 06 00 90 00 9E [18:31:16]RAPDU: 90 00 [18:31:16]wFMCommunicate OK [18:31:16]SAM_PROTO_ClearQueue done [18:31:16]KKMCreateOFDPacket [18:31:16]OFDProtocolAddRootSTLVToBuf [18:31:16]FM_MakeSignedData [18:31:16]FM_MakeSignedData [18:31:16]SAM_PROTO_SignData [18:31:16]wFMCommunicate request_size=4 [18:31:16]MH_SAM_APDU [18:31:16]CAPDU: 80 0D 01 02 [18:31:16]Write to MH i2c: E2 08 00 25 06 80 0D 01 02 00 00 00 00 A4 [18:31:16]Write i2c OK [18:31:16]MH_I2C_Read... [18:31:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:31:16]Read from MH i2c: E2 [18:31:16]MH_I2C_Read... [18:31:16]Read from MH i2c: E2 03 00 [18:31:16]MH_I2C_Read... [18:31:16]Read from MH i2c: E2 03 00 25 06 00 90 00 9F [18:31:16]RAPDU: 90 00 [18:31:16]wFMCommunicate OK [18:31:16]wFMCommunicate request_size=255 [18:31:16]MH_SAM_APDU [18:31:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 17 01 00 00 F4 03 04 00 F3 6A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1E 86 02 00 35 04 06 00 D7 [18:31:16]Write to MH i2c: E2 02 01 26 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 17 01 00 00 F4 03 04 00 F3 6A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1E 86 02 00 35 04 06 00 D7 00 00 0F [18:31:16]Write i2c OK [18:31:16]MH_I2C_Read... [18:31:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:17]Read from MH i2c: E2 [18:31:17]MH_I2C_Read... [18:31:17]Read from MH i2c: E2 03 00 [18:31:17]MH_I2C_Read... [18:31:17]Read from MH i2c: E2 03 00 26 06 00 90 00 A0 [18:31:17]RAPDU: 90 00 [18:31:17]wFMCommunicate OK [18:31:17]wFMCommunicate request_size=10 [18:31:17]MH_SAM_APDU [18:31:17]CAPDU: 80 0D 02 02 05 A7 13 13 B4 44 [18:31:17]Write to MH i2c: E2 0D 00 27 06 80 0D 02 02 05 00 A7 13 13 B4 44 00 00 76 [18:31:17]Write i2c OK [18:31:17]MH_I2C_Read... [18:31:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:17]Read from MH i2c: E2 [18:31:17]MH_I2C_Read... [18:31:17]Read from MH i2c: E2 03 00 [18:31:17]MH_I2C_Read... [18:31:17]Read from MH i2c: E2 03 00 27 06 00 90 00 A1 [18:31:17]RAPDU: 90 00 [18:31:17]wFMCommunicate OK [18:31:17]wFMCommunicate request_size=4 [18:31:17]MH_SAM_APDU [18:31:17]CAPDU: 80 0D 03 02 [18:31:17]Write to MH i2c: E2 08 00 28 06 80 0D 03 02 00 00 00 00 A9 [18:31:17]Write i2c OK [18:31:17]MH_I2C_Read... [18:31:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:31:17]Read from MH i2c: E2 [18:31:17]MH_I2C_Read... [18:31:17]Read from MH i2c: E2 0B 00 [18:31:17]MH_I2C_Read... [18:31:17]Read from MH i2c: E2 0B 00 28 06 00 07 82 A0 07 3C 77 F5 63 90 00 E5 [18:31:17]RAPDU: 07 82 A0 07 3C 77 F5 63 90 00 [18:31:17]wFMCommunicate OK [18:31:17]SAM_PROTO_SignData done [18:31:17]FM_MakeSignedData done [18:31:17]CreateOFDProtocolMessage [18:31:17]wFMCommunicate request_size=4 [18:31:17]MH_SAM_APDU [18:31:17]CAPDU: 80 11 00 00 [18:31:17]Write to MH i2c: E2 08 00 29 06 80 11 00 00 00 00 00 00 A9 [18:31:17]Write i2c OK [18:31:17]MH_I2C_Read... [18:31:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:17]Read from MH i2c: E2 [18:31:17]MH_I2C_Read... [18:31:17]Read from MH i2c: E2 17 00 [18:31:17]MH_I2C_Read... [18:31:17]Read from MH i2c: E2 17 00 29 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FF [18:31:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:31:17]wFMCommunicate OK [18:31:17]CreateOFDProtocolMessage done [18:31:17]OFDSenderStorePacket 165406 [18:31:17]StoreOFDPacket docnum=165406 [18:31:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E4 87 07 01 45 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 17 01 00 00 F4 03 04 00 F3 6A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1E 86 02 00 35 04 06 00 D7 A7 13 13 B4 44 07 82 A0 07 3C 77 F5 63 [18:31:17]CheckFolder [18:31:17]dirname=/storage/ofd_packets [18:31:17]CheckFolder done [18:31:17]ProducePacketName [18:31:17]name=ofd_packets/00165406 [18:31:17]NVStorageSaveData ofd_packets/00165406 [18:31:17]File name is /storage/ofd_packets/00165406 [18:31:17]Write 301 bytes [18:31:17]NVStorageSaveData done [18:31:17]OFDSenderStorePacket done [18:31:17]KKMCreateOFDPacket done [18:31:17]NVStorageSaveData kkm_last_timestamp [18:31:17]File name is /storage/kkm_last_timestamp [18:31:17]Write 4 bytes [18:31:17]NVStorageSaveData done [18:31:17]ExternCall_PrintAddStr [18:31:17]wPrintStart [18:31:17]Write to MH i2c: 01 00 00 2A 06 30 [18:31:17]Write i2c OK [18:31:17]MH_I2C_Read... [18:31:17]Read from MH i2c: 01 [18:31:17]MH_I2C_Read... [18:31:17]Read from MH i2c: 01 07 00 [18:31:17]MH_I2C_Read... [18:31:17]Read from MH i2c: 01 07 00 2A 06 00 00 00 00 00 FF 0F 45 [18:31:17]RasterBufferAndPrint [18:31:17]line Счет N : (1)459521 [18:31:17]line ИНН: 02508201610067 [18:31:17]line Контрольно-Кассовый Чек [18:31:17]line ПРОДАЖА [18:31:17]line ТРК (МРК, ГНК) : 12 [18:31:17]line Товар: 2710124130 [18:31:17]line Аи-92-К-5 [18:31:17]line 10.640 * 65.80 [18:31:17]line = 700.11 [18:31:17]line НДС 12% НСП 1% [18:31:17]line > о реализуемом товаре [18:31:17]line ОКРУГЛЕНИЕ: -0.11 [18:31:17]line ИТОГО: 700.00 [18:31:17]line Внесено: 700.00 [18:31:17]line СДАЧА: 0.00 [18:31:17]line НСП 1% : 6.20 [18:31:17]line НДС 12% : 74.35 [18:31:17]line Наличными: 700.00 [18:31:17]line Безнал.: 0.00 [18:31:17]line Место: АЗС № 72 "Партнер Нефть" [18:31:17]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:31:17]line СНО: Общий режим [18:31:17]line Чек 279 15.07.2024 18:31 [18:31:17]line Смена: 448 ФФД: 1.0 [18:31:17]line ЗНМ: 0300000160 [18:31:17]line РНМ: 0000000000090829 [18:31:17]line Версия ККМ: 001 [18:31:17]line ФМ: 0000000000874718 [18:31:17]line ФД: 165406 [18:31:17]line ФПД: 237112579568708 [18:31:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T183115&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165406&fm=237112579568708&tin=02508201610067®Number=0000000000090829&sum=70000 [18:31:17]OFD Sender: Processing packet 165406 [packets to send 106, broken 105] [18:31:17]ProducePacketName [18:31:17]name=ofd_packets/00165406 [18:31:17]OFD Sender: To server: pG, [18:31:17]CommunicateWithHost lk.salyk.kg:30040 [18:31:17]ConnectInit lk.salyk.kg [18:31:17]written 0, free lines is 4095 [18:31:17]Connected sock=10 [18:31:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E4 87 07 01 45 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 17 01 00 00 F4 03 04 00 F3 6A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1E 86 02 00 35 04 06 00 D7 A7 13 13 B4 44 07 82 A0 07 3C 77 F5 63 [18:31:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 9C C0 47 00 F9 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 1E 86 02 00 F4 03 04 00 7D 11 95 66 B6 04 01 00 00 19 0B D9 A0 7B 51 7D 31 [18:31:17]CommunicateWithHost err = 0 [18:31:17]CheckOFDResponse [18:31:17]1017 (14) - 77093643461234 [18:31:17]1041 (16) - 0000000000874718 [18:31:17]1040 (4) - 165406 [18:31:17]1012 (4) - 15.07.2024 12:09 [18:31:17]1206 (1) - 0 [18:31:17]OFD Sender: Remove packet 165406 [18:31:17]ProducePacketName [18:31:17]name=ofd_packets/00165406 [18:31:17]NVStorageDeleteData [18:31:18]Write to MH i2c: 01 00 00 54 06 5A [18:31:18]Write i2c OK [18:31:18]MH_I2C_Read... [18:31:18]Read from MH i2c: 01 [18:31:18]MH_I2C_Read... [18:31:18]Read from MH i2c: 01 07 00 [18:31:18]MH_I2C_Read... [18:31:18]Read from MH i2c: 01 07 00 54 06 00 00 00 00 00 06 0D 74 [18:31:18]RasterBufferAndPrint [18:31:18]line [18:31:18]line [18:31:18]line [18:31:18]line [18:31:18]line [18:31:18]written 0, free lines is 3340 [18:31:18]MH_Cut [18:31:18]Write to MH i2c: D1 01 00 5B 06 01 33 [18:31:18]Write i2c OK [18:31:18]MH_I2C_Read... [18:31:18]Read from MH i2c: D1 [18:31:18]MH_I2C_Read... [18:31:18]Read from MH i2c: D1 01 00 [18:31:18]MH_I2C_Read... [18:31:18]Read from MH i2c: D1 01 00 5B 06 00 32 [18:31:18]Write to MH i2c: 01 00 00 5C 06 62 [18:31:18]Write i2c OK [18:31:18]MH_I2C_Read... [18:31:18]OFD Sender: No OFD packet to send [18:31:18]*** Cut start [18:31:18]*** Partial cut [18:31:18]*** CUTSNS_PIN = 1 [18:31:18]*** CUTSNS_PIN = 0 [18:31:18]*** Brake cut motor [18:31:19]Read from MH i2c: 01 [18:31:19]MH_I2C_Read... [18:31:19]*** Stop cut motor [18:31:19]*** Cut end [18:31:19]Read from MH i2c: 01 07 00 [18:31:19]MH_I2C_Read... [18:31:19]Read from MH i2c: 01 07 00 5C 06 00 00 00 00 00 FF 0F 77 [18:31:19]process_action close_receipt done [18:31:19]requested_data is exist [18:31:19]produce_requested_data [18:31:19]requested_item fm.sn is exist - process it [18:31:19]wFMCommunicate request_size=4 [18:31:19]MH_SAM_APDU [18:31:19]CAPDU: 80 11 00 00 [18:31:19]Write to MH i2c: E2 08 00 5D 06 80 11 00 00 00 00 00 00 DD [18:31:19]Write i2c OK [18:31:19]MH_I2C_Read... [18:31:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:19]Read from MH i2c: E2 [18:31:19]MH_I2C_Read... [18:31:19]Read from MH i2c: E2 17 00 [18:31:19]MH_I2C_Read... [18:31:19]Read from MH i2c: E2 17 00 5D 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 33 [18:31:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:31:19]wFMCommunicate OK [18:31:19]requested_item fd.num is exist - process it [18:31:19]SAM_PROTO_GetFieldsCounters [18:31:19]wFMCommunicate request_size=4 [18:31:19]MH_SAM_APDU [18:31:19]CAPDU: 80 13 00 00 [18:31:19]Write to MH i2c: E2 08 00 5E 06 80 13 00 00 00 00 00 00 E0 [18:31:19]Write i2c OK [18:31:19]MH_I2C_Read... [18:31:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:31:19]Read from MH i2c: E2 [18:31:19]MH_I2C_Read... [18:31:19]Read from MH i2c: E2 62 00 [18:31:19]MH_I2C_Read... [18:31:19]Read from MH i2c: E2 62 00 5E 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1E 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 B6 [18:31:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1E 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:31:19]wFMCommunicate OK [18:31:19]SAM_PROTO_GetFieldsCounters done [18:31:19]requested_item shift.num is exist - process it [18:31:19]requested_item shift.opened is exist - process it [18:31:19]req_shift_opened [18:31:19]FM_GetShiftState [18:31:19]SAM_PROTO_GetShiftState [18:31:19]wFMCommunicate request_size=4 [18:31:19]MH_SAM_APDU [18:31:19]CAPDU: 80 13 01 00 [18:31:19]Write to MH i2c: E2 08 00 5F 06 80 13 01 00 00 00 00 00 E2 [18:31:19]Write i2c OK [18:31:19]MH_I2C_Read... [18:31:19]Read from MH i2c: E2 [18:31:19]MH_I2C_Read... [18:31:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:19]Read from MH i2c: E2 0E 00 [18:31:19]MH_I2C_Read... [18:31:19]Read from MH i2c: E2 0E 00 5F 06 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 BB [18:31:19]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [18:31:19]wFMCommunicate OK [18:31:19]SAM_PROTO_GetShiftState done [18:31:19]FM_GetShiftState done [18:31:19]req_shift_opened done [18:31:19]requested_item shift.open_date is exist - process it [18:31:19]req_shift_open_date [18:31:19]req_shift_open_date done [18:31:19]produce_requested_data done [18:31:19]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165406,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [18:31:19]process_action_free close_receipt [18:31:19]json_value_free [18:31:19]json_value_free done [18:31:19]process_json_proto returns [18:31:19]Send response to host [18:31:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165406,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [18:31:19]free response buf [18:31:19]execute_script done [18:31:19]execute_script returns [18:31:19]free content buf [18:31:19]Sock 9.Close socket [18:31:19]Sock 9.Thread stoped [18:31:23]OFD Sender: No OFD packet to send [18:31:28]OFD Sender: No OFD packet to send [18:31:33]OFD Sender: No OFD packet to send [18:31:38]OFD Sender: No OFD packet to send [18:31:43]OFD Sender: No OFD packet to send [18:31:48]OFD Sender: No OFD packet to send [18:31:50]accept exits with 7 [18:31:50]New connection [18:31:50]New thread 3067297124 created [18:31:50]Thread 3067153764 joined [18:31:50]Waiting for new connection... [18:31:50] Sock 7.Parse request [18:31:50]Sock 7.Check first char [18:31:50]Sock 7.First char is OK [18:31:50]request: POST /json_proto HTTP/1.0 [18:31:50]Method: POST [18:31:50]URL: /json_proto [18:31:50]Method is POST - this is cgi request [18:31:50]url: /json_proto [18:31:50]query_string will be loaded in cgi processing [18:31:50]execute_cgi json_proto POST (null) [18:31:50]execute_cgi path=json_proto method=POST [18:31:50]POST find Content-Length [18:31:50]Host: 172.17.56.4:8080 [18:31:50]Content-Length: 677 [18:31:50]Content-Type: application/json [18:31:50] [18:31:50]POST finish read [18:31:50]Found Content-Length = 677 [18:31:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459522", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:50]execute_script... [18:31:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459522", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:50]POST & json_proto [18:31:50]process_json_proto [18:31:50]json parsed OK: [18:31:50]protocol is kg_v1.0 [18:31:50]action value=close_receipt [18:31:50]process_action close_receipt [18:31:50]cmd_close_receipt [18:31:50]MH_GetDate [18:31:50]Write to MH i2c: F0 00 00 60 06 55 [18:31:50]Write i2c OK [18:31:50]MH_I2C_Read... [18:31:50]Read from MH i2c: F0 [18:31:50]MH_I2C_Read... [18:31:50]Read from MH i2c: F0 09 00 [18:31:50]MH_I2C_Read... [18:31:50]Read from MH i2c: F0 09 00 60 06 00 16 6B 95 66 C9 DC B2 64 95 [18:31:50]GetLastDocTimeStamp 1721068275 [18:31:50]current date 1721068310 [18:31:50]FM_GetShiftState [18:31:50]SAM_PROTO_GetShiftState [18:31:50]wFMCommunicate request_size=4 [18:31:50]MH_SAM_APDU [18:31:50]CAPDU: 80 13 01 00 [18:31:50]Write to MH i2c: E2 08 00 61 06 80 13 01 00 00 00 00 00 E4 [18:31:50]Write i2c OK [18:31:50]MH_I2C_Read... [18:31:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:50]Read from MH i2c: E2 [18:31:50]MH_I2C_Read... [18:31:50]Read from MH i2c: E2 0E 00 [18:31:50]MH_I2C_Read... [18:31:50]Read from MH i2c: E2 0E 00 61 06 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 BD [18:31:50]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [18:31:50]wFMCommunicate OK [18:31:50]SAM_PROTO_GetShiftState done [18:31:50]FM_GetShiftState done [18:31:50]opened in 1721003876 [18:31:50]opened+sec_in_day 1721090276 [18:31:50]quantity*price = 50008 [18:31:50]sum+1 = 50009 [18:31:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 280 15.07.2024 18:31 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165407 ФПД: 112995260872769 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T183150&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165407&fm=112995260872769&tin=02508201610067®Number=0000000000090829&sum=50000 [18:31:51]StoreToDocumentArchive [18:31:51]shift 448 fd 165407 [18:31:51]save to /storage/0448/doc_00165407 [18:31:51]save last doc name /storage/0448/doc_00165407 to /storage/kkm_last_doc_name [18:31:51]save OK [18:31:51]Clear old archive folders... [18:31:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:31:51]tlvbuf is 00834960 [18:31:51]SAM_PROTO_ClearQueue [18:31:51]wFMCommunicate request_size=4 [18:31:51]MH_SAM_APDU [18:31:51]CAPDU: 80 09 00 00 [18:31:51]Write to MH i2c: E2 08 00 6E 06 80 09 00 00 00 00 00 00 E6 [18:31:51]Write i2c OK [18:31:51]MH_I2C_Read... [18:31:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:31:51]Read from MH i2c: E2 [18:31:51]MH_I2C_Read... [18:31:51]Read from MH i2c: E2 03 00 [18:31:51]MH_I2C_Read... [18:31:51]Read from MH i2c: E2 03 00 6E 06 00 90 00 E8 [18:31:51]RAPDU: 90 00 [18:31:51]wFMCommunicate OK [18:31:51]SAM_PROTO_ClearQueue done [18:31:51]KKMCreateOFDPacket [18:31:51]OFDProtocolAddRootSTLVToBuf [18:31:51]FM_MakeSignedData [18:31:51]FM_MakeSignedData [18:31:51]SAM_PROTO_SignData [18:31:51]wFMCommunicate request_size=4 [18:31:51]MH_SAM_APDU [18:31:51]CAPDU: 80 0D 01 02 [18:31:51]Write to MH i2c: E2 08 00 6F 06 80 0D 01 02 00 00 00 00 EE [18:31:51]Write i2c OK [18:31:51]MH_I2C_Read... [18:31:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:31:51]Read from MH i2c: E2 [18:31:51]MH_I2C_Read... [18:31:51]Read from MH i2c: E2 03 00 [18:31:51]MH_I2C_Read... [18:31:51]Read from MH i2c: E2 03 00 6F 06 00 90 00 E9 [18:31:51]RAPDU: 90 00 [18:31:51]wFMCommunicate OK [18:31:51]wFMCommunicate request_size=255 [18:31:51]MH_SAM_APDU [18:31:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 16 6B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1F 86 02 00 35 04 06 00 66 [18:31:51]Write to MH i2c: E2 02 01 70 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 16 6B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1F 86 02 00 35 04 06 00 66 00 00 CA [18:31:51]Write i2c OK [18:31:51]MH_I2C_Read... [18:31:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:51]Read from MH i2c: E2 [18:31:51]MH_I2C_Read... [18:31:51]Read from MH i2c: E2 03 00 [18:31:51]MH_I2C_Read... [18:31:51]Read from MH i2c: E2 03 00 70 06 00 90 00 EA [18:31:51]RAPDU: 90 00 [18:31:51]wFMCommunicate OK [18:31:51]wFMCommunicate request_size=10 [18:31:51]MH_SAM_APDU [18:31:51]CAPDU: 80 0D 02 02 05 C4 C2 62 B8 41 [18:31:51]Write to MH i2c: E2 0D 00 71 06 80 0D 02 02 05 00 C4 C2 62 B8 41 00 00 DC [18:31:51]Write i2c OK [18:31:51]MH_I2C_Read... [18:31:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:51]Read from MH i2c: E2 [18:31:51]MH_I2C_Read... [18:31:51]Read from MH i2c: E2 03 00 [18:31:51]MH_I2C_Read... [18:31:51]Read from MH i2c: E2 03 00 71 06 00 90 00 EB [18:31:51]RAPDU: 90 00 [18:31:51]wFMCommunicate OK [18:31:51]wFMCommunicate request_size=4 [18:31:51]MH_SAM_APDU [18:31:51]CAPDU: 80 0D 03 02 [18:31:51]Write to MH i2c: E2 08 00 72 06 80 0D 03 02 00 00 00 00 F3 [18:31:51]Write i2c OK [18:31:51]MH_I2C_Read... [18:31:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:31:51]Read from MH i2c: E2 [18:31:51]MH_I2C_Read... [18:31:51]Read from MH i2c: E2 0B 00 [18:31:51]MH_I2C_Read... [18:31:51]Read from MH i2c: E2 0B 00 72 06 00 B3 80 0B 26 B4 DA A5 32 90 00 BD [18:31:51]RAPDU: B3 80 0B 26 B4 DA A5 32 90 00 [18:31:51]wFMCommunicate OK [18:31:51]SAM_PROTO_SignData done [18:31:51]FM_MakeSignedData done [18:31:51]CreateOFDProtocolMessage [18:31:51]wFMCommunicate request_size=4 [18:31:51]MH_SAM_APDU [18:31:51]CAPDU: 80 11 00 00 [18:31:51]Write to MH i2c: E2 08 00 73 06 80 11 00 00 00 00 00 00 F3 [18:31:51]Write i2c OK [18:31:51]MH_I2C_Read... [18:31:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:51]Read from MH i2c: E2 [18:31:51]MH_I2C_Read... [18:31:51]Read from MH i2c: E2 17 00 [18:31:51]MH_I2C_Read... [18:31:51]Read from MH i2c: E2 17 00 73 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 49 [18:31:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:31:51]wFMCommunicate OK [18:31:51]CreateOFDProtocolMessage done [18:31:51]OFDSenderStorePacket 165407 [18:31:51]StoreOFDPacket docnum=165407 [18:31:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 2F 16 07 01 23 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 16 6B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1F 86 02 00 35 04 06 00 66 C4 C2 62 B8 41 B3 80 0B 26 B4 DA A5 32 [18:31:51]CheckFolder [18:31:51]dirname=/storage/ofd_packets [18:31:51]CheckFolder done [18:31:51]ProducePacketName [18:31:51]name=ofd_packets/00165407 [18:31:51]NVStorageSaveData ofd_packets/00165407 [18:31:51]File name is /storage/ofd_packets/00165407 [18:31:51]Write 301 bytes [18:31:51]NVStorageSaveData done [18:31:51]OFDSenderStorePacket done [18:31:51]KKMCreateOFDPacket done [18:31:51]NVStorageSaveData kkm_last_timestamp [18:31:51]File name is /storage/kkm_last_timestamp [18:31:51]Write 4 bytes [18:31:51]NVStorageSaveData done [18:31:51]ExternCall_PrintAddStr [18:31:51]wPrintStart [18:31:51]Write to MH i2c: 01 00 00 74 06 7A [18:31:51]Write i2c OK [18:31:51]MH_I2C_Read... [18:31:51]Read from MH i2c: 01 [18:31:51]MH_I2C_Read... [18:31:51]Read from MH i2c: 01 07 00 [18:31:51]MH_I2C_Read... [18:31:51]Read from MH i2c: 01 07 00 74 06 00 00 00 00 00 FF 0F 8F [18:31:51]RasterBufferAndPrint [18:31:51]line Счет N : (1)459522 [18:31:51]line ИНН: 02508201610067 [18:31:51]line Контрольно-Кассовый Чек [18:31:51]line ПРОДАЖА [18:31:51]line ТРК (МРК, ГНК) : 12 [18:31:51]line Товар: 2710124130 [18:31:51]line Аи-92-К-5 [18:31:51]line 7.600 * 65.80 [18:31:51]line = 500.08 [18:31:51]line НДС 12% НСП 1% [18:31:51]line > о реализуемом товаре [18:31:51]line ОКРУГЛЕНИЕ: -0.08 [18:31:51]line ИТОГО: 500.00 [18:31:51]line Внесено: 500.00 [18:31:51]line СДАЧА: 0.00 [18:31:51]line НСП 1% : 4.42 [18:31:51]line НДС 12% : 53.11 [18:31:51]line Наличными: 500.00 [18:31:51]line Безнал.: 0.00 [18:31:51]line Место: АЗС № 72 "Партнер Нефть" [18:31:51]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:31:51]line СНО: Общий режим [18:31:51]line Чек 280 15.07.2024 18:31 [18:31:51]line Смена: 448 ФФД: 1.0 [18:31:51]line ЗНМ: 0300000160 [18:31:51]line РНМ: 0000000000090829 [18:31:51]line Версия ККМ: 001 [18:31:51]line ФМ: 0000000000874718 [18:31:51]line ФД: 165407 [18:31:51]line ФПД: 112995260872769 [18:31:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T183150&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165407&fm=112995260872769&tin=02508201610067®Number=0000000000090829&sum=50000 [18:31:52]OFD Sender: Processing packet 165407 [packets to send 106, broken 105] [18:31:52]ProducePacketName [18:31:52]name=ofd_packets/00165407 [18:31:52]OFD Sender: To server: pG, [18:31:52]CommunicateWithHost lk.salyk.kg:30040 [18:31:52]ConnectInit lk.salyk.kg [18:31:52]written 0, free lines is 4095 [18:31:52]Connected sock=10 [18:31:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 2F 16 07 01 23 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 16 6B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1F 86 02 00 35 04 06 00 66 C4 C2 62 B8 41 B3 80 0B 26 B4 DA A5 32 [18:31:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 74 CA 47 00 E5 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 1F 86 02 00 F4 03 04 00 A0 11 95 66 B6 04 01 00 00 75 79 B8 58 1E 7D 8B 37 [18:31:52]CommunicateWithHost err = 0 [18:31:52]CheckOFDResponse [18:31:52]1017 (14) - 77093643461234 [18:31:52]1041 (16) - 0000000000874718 [18:31:52]1040 (4) - 165407 [18:31:52]1012 (4) - 15.07.2024 12:10 [18:31:52]1206 (1) - 0 [18:31:52]OFD Sender: Remove packet 165407 [18:31:52]ProducePacketName [18:31:52]name=ofd_packets/00165407 [18:31:52]NVStorageDeleteData [18:31:52]Write to MH i2c: 01 00 00 9E 06 A4 [18:31:52]Write i2c OK [18:31:52]MH_I2C_Read... [18:31:52]Read from MH i2c: 01 [18:31:52]MH_I2C_Read... [18:31:52]Read from MH i2c: 01 07 00 [18:31:52]MH_I2C_Read... [18:31:52]Read from MH i2c: 01 07 00 9E 06 00 00 00 00 00 06 0D BE [18:31:52]RasterBufferAndPrint [18:31:52]line [18:31:52]line [18:31:52]line [18:31:52]line [18:31:52]line [18:31:52]written 0, free lines is 3341 [18:31:52]MH_Cut [18:31:52]Write to MH i2c: D1 01 00 A5 06 01 7D [18:31:52]Write i2c OK [18:31:52]MH_I2C_Read... [18:31:52]Read from MH i2c: D1 [18:31:52]MH_I2C_Read... [18:31:52]Read from MH i2c: D1 01 00 [18:31:52]MH_I2C_Read... [18:31:52]Read from MH i2c: D1 01 00 A5 06 00 7C [18:31:52]Write to MH i2c: 01 00 00 A6 06 AC [18:31:52]Write i2c OK [18:31:52]MH_I2C_Read... [18:31:53]OFD Sender: No OFD packet to send [18:31:53]*** Cut start [18:31:53]*** Partial cut [18:31:53]*** CUTSNS_PIN = 1 [18:31:53]*** CUTSNS_PIN = 0 [18:31:53]*** Brake cut motor [18:31:53]Read from MH i2c: 01 [18:31:53]MH_I2C_Read... [18:31:53]*** Stop cut motor [18:31:53]*** Cut end [18:31:53]Read from MH i2c: 01 07 00 [18:31:53]MH_I2C_Read... [18:31:53]Read from MH i2c: 01 07 00 A6 06 00 00 00 00 00 FF 0F C1 [18:31:53]process_action close_receipt done [18:31:53]requested_data is exist [18:31:53]produce_requested_data [18:31:53]requested_item fm.sn is exist - process it [18:31:53]wFMCommunicate request_size=4 [18:31:53]MH_SAM_APDU [18:31:53]CAPDU: 80 11 00 00 [18:31:53]Write to MH i2c: E2 08 00 A7 06 80 11 00 00 00 00 00 00 27 [18:31:53]Write i2c OK [18:31:53]MH_I2C_Read... [18:31:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:53]Read from MH i2c: E2 [18:31:53]MH_I2C_Read... [18:31:53]Read from MH i2c: E2 17 00 [18:31:53]MH_I2C_Read... [18:31:53]Read from MH i2c: E2 17 00 A7 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7D [18:31:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:31:53]wFMCommunicate OK [18:31:53]requested_item fd.num is exist - process it [18:31:53]SAM_PROTO_GetFieldsCounters [18:31:53]wFMCommunicate request_size=4 [18:31:53]MH_SAM_APDU [18:31:53]CAPDU: 80 13 00 00 [18:31:53]Write to MH i2c: E2 08 00 A8 06 80 13 00 00 00 00 00 00 2A [18:31:53]Write i2c OK [18:31:53]MH_I2C_Read... [18:31:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:31:54]Read from MH i2c: E2 [18:31:54]MH_I2C_Read... [18:31:54]Read from MH i2c: E2 62 00 [18:31:54]MH_I2C_Read... [18:31:54]Read from MH i2c: E2 62 00 A8 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1F 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 04 [18:31:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 1F 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:31:54]wFMCommunicate OK [18:31:54]SAM_PROTO_GetFieldsCounters done [18:31:54]requested_item shift.num is exist - process it [18:31:54]requested_item shift.opened is exist - process it [18:31:54]req_shift_opened [18:31:54]FM_GetShiftState [18:31:54]SAM_PROTO_GetShiftState [18:31:54]wFMCommunicate request_size=4 [18:31:54]MH_SAM_APDU [18:31:54]CAPDU: 80 13 01 00 [18:31:54]Write to MH i2c: E2 08 00 A9 06 80 13 01 00 00 00 00 00 2C [18:31:54]Write i2c OK [18:31:54]MH_I2C_Read... [18:31:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:54]Read from MH i2c: E2 [18:31:54]MH_I2C_Read... [18:31:54]Read from MH i2c: E2 0E 00 [18:31:54]MH_I2C_Read... [18:31:54]Read from MH i2c: E2 0E 00 A9 06 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 05 [18:31:54]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [18:31:54]wFMCommunicate OK [18:31:54]SAM_PROTO_GetShiftState done [18:31:54]FM_GetShiftState done [18:31:54]req_shift_opened done [18:31:54]requested_item shift.open_date is exist - process it [18:31:54]req_shift_open_date [18:31:54]req_shift_open_date done [18:31:54]produce_requested_data done [18:31:54]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165407,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [18:31:54]process_action_free close_receipt [18:31:54]json_value_free [18:31:54]json_value_free done [18:31:54]process_json_proto returns [18:31:54]Send response to host [18:31:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165407,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [18:31:54]free response buf [18:31:54]execute_script done [18:31:54]execute_script returns [18:31:54]free content buf [18:31:54]Sock 7.Close socket [18:31:54]Sock 7.Thread stoped [18:31:58]OFD Sender: No OFD packet to send [18:32:03]OFD Sender: No OFD packet to send [18:32:08]OFD Sender: No OFD packet to send [18:32:13]OFD Sender: No OFD packet to send [18:32:18]OFD Sender: No OFD packet to send [18:32:23]OFD Sender: No OFD packet to send [18:32:28]OFD Sender: No OFD packet to send [18:32:33]OFD Sender: No OFD packet to send [18:32:38]OFD Sender: No OFD packet to send [18:32:43]OFD Sender: No OFD packet to send [18:32:48]OFD Sender: No OFD packet to send [18:32:53]OFD Sender: No OFD packet to send [18:32:58]OFD Sender: No OFD packet to send [18:33:03]OFD Sender: No OFD packet to send [18:33:08]OFD Sender: No OFD packet to send [18:33:13]OFD Sender: No OFD packet to send [18:33:18]OFD Sender: No OFD packet to send [18:33:20]accept exits with 9 [18:33:20]New connection [18:33:20]New thread 3067153764 created [18:33:20]Thread 3067297124 joined [18:33:20]Waiting for new connection... [18:33:20] Sock 9.Parse request [18:33:20]Sock 9.Check first char [18:33:20]Sock 9.First char is OK [18:33:20]request: POST /json_proto HTTP/1.0 [18:33:20]Method: POST [18:33:20]URL: /json_proto [18:33:20]Method is POST - this is cgi request [18:33:20]url: /json_proto [18:33:20]query_string will be loaded in cgi processing [18:33:20]execute_cgi json_proto POST (null) [18:33:20]execute_cgi path=json_proto method=POST [18:33:20]POST find Content-Length [18:33:20]Host: 172.17.56.4:8080 [18:33:20]Content-Length: 677 [18:33:20]Content-Type: application/json [18:33:20] [18:33:20]POST finish read [18:33:20]Found Content-Length = 677 [18:33:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459523", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:20]execute_script... [18:33: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)459523", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:20]POST & json_proto [18:33:20]process_json_proto [18:33:20]json parsed OK: [18:33:20]protocol is kg_v1.0 [18:33:20]action value=close_receipt [18:33:20]process_action close_receipt [18:33:20]cmd_close_receipt [18:33:20]MH_GetDate [18:33:20]Write to MH i2c: F0 00 00 AA 06 9F [18:33:20]Write i2c OK [18:33:20]MH_I2C_Read... [18:33:20]Read from MH i2c: F0 [18:33:20]MH_I2C_Read... [18:33:20]Read from MH i2c: F0 09 00 [18:33:20]MH_I2C_Read... [18:33:20]Read from MH i2c: F0 09 00 AA 06 00 70 6B 95 66 C9 DC B2 64 39 [18:33:20]GetLastDocTimeStamp 1721068310 [18:33:20]current date 1721068400 [18:33:20]FM_GetShiftState [18:33:20]SAM_PROTO_GetShiftState [18:33:20]wFMCommunicate request_size=4 [18:33:20]MH_SAM_APDU [18:33:20]CAPDU: 80 13 01 00 [18:33:20]Write to MH i2c: E2 08 00 AB 06 80 13 01 00 00 00 00 00 2E [18:33:20]Write i2c OK [18:33:20]MH_I2C_Read... [18:33:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:20]Read from MH i2c: E2 [18:33:20]MH_I2C_Read... [18:33:20]Read from MH i2c: E2 0E 00 [18:33:20]MH_I2C_Read... [18:33:20]Read from MH i2c: E2 0E 00 AB 06 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 07 [18:33:20]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [18:33:20]wFMCommunicate OK [18:33:20]SAM_PROTO_GetShiftState done [18:33:20]FM_GetShiftState done [18:33:20]opened in 1721003876 [18:33:20]opened+sec_in_day 1721090276 [18:33:20]quantity*price = 30004 [18:33:20]sum+1 = 30006 [18:33:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 281 15.07.2024 18:33 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165408 ФПД: 90241717261611 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T183320&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165408&fm=90241717261611&tin=02508201610067®Number=0000000000090829&sum=30000 [18:33:21]StoreToDocumentArchive [18:33:21]shift 448 fd 165408 [18:33:21]save to /storage/0448/doc_00165408 [18:33:21]save last doc name /storage/0448/doc_00165408 to /storage/kkm_last_doc_name [18:33:21]save OK [18:33:21]Clear old archive folders... [18:33:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:33:21]tlvbuf is 0081B350 [18:33:21]SAM_PROTO_ClearQueue [18:33:21]wFMCommunicate request_size=4 [18:33:21]MH_SAM_APDU [18:33:21]CAPDU: 80 09 00 00 [18:33:21]Write to MH i2c: E2 08 00 B8 06 80 09 00 00 00 00 00 00 30 [18:33:21]Write i2c OK [18:33:21]MH_I2C_Read... [18:33:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:33:21]Read from MH i2c: E2 [18:33:21]MH_I2C_Read... [18:33:21]Read from MH i2c: E2 03 00 [18:33:21]MH_I2C_Read... [18:33:21]Read from MH i2c: E2 03 00 B8 06 00 90 00 32 [18:33:21]RAPDU: 90 00 [18:33:21]wFMCommunicate OK [18:33:21]SAM_PROTO_ClearQueue done [18:33:21]KKMCreateOFDPacket [18:33:21]OFDProtocolAddRootSTLVToBuf [18:33:21]FM_MakeSignedData [18:33:21]FM_MakeSignedData [18:33:21]SAM_PROTO_SignData [18:33:21]wFMCommunicate request_size=4 [18:33:21]MH_SAM_APDU [18:33:21]CAPDU: 80 0D 01 02 [18:33:21]Write to MH i2c: E2 08 00 B9 06 80 0D 01 02 00 00 00 00 38 [18:33:21]Write i2c OK [18:33:21]MH_I2C_Read... [18:33:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:33:21]Read from MH i2c: E2 [18:33:21]MH_I2C_Read... [18:33:21]Read from MH i2c: E2 03 00 [18:33:21]MH_I2C_Read... [18:33:21]Read from MH i2c: E2 03 00 B9 06 00 90 00 33 [18:33:21]RAPDU: 90 00 [18:33:21]wFMCommunicate OK [18:33:21]wFMCommunicate request_size=255 [18:33:21]MH_SAM_APDU [18:33:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 70 6B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 20 86 02 00 35 04 06 00 52 [18:33:21]Write to MH i2c: E2 02 01 BA 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 70 6B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 20 86 02 00 35 04 06 00 52 00 00 1D [18:33:21]Write i2c OK [18:33:21]MH_I2C_Read... [18:33:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:21]Read from MH i2c: E2 [18:33:21]MH_I2C_Read... [18:33:21]Read from MH i2c: E2 03 00 [18:33:21]MH_I2C_Read... [18:33:21]Read from MH i2c: E2 03 00 BA 06 00 90 00 34 [18:33:21]RAPDU: 90 00 [18:33:21]wFMCommunicate OK [18:33:21]wFMCommunicate request_size=10 [18:33:21]MH_SAM_APDU [18:33:21]CAPDU: 80 0D 02 02 05 13 09 80 55 2B [18:33:21]Write to MH i2c: E2 0D 00 BB 06 80 0D 02 02 05 00 13 09 80 55 2B 00 00 61 [18:33:21]Write i2c OK [18:33:21]MH_I2C_Read... [18:33:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:22]Read from MH i2c: E2 [18:33:22]MH_I2C_Read... [18:33:22]Read from MH i2c: E2 03 00 [18:33:22]MH_I2C_Read... [18:33:22]Read from MH i2c: E2 03 00 BB 06 00 90 00 35 [18:33:22]RAPDU: 90 00 [18:33:22]wFMCommunicate OK [18:33:22]wFMCommunicate request_size=4 [18:33:22]MH_SAM_APDU [18:33:22]CAPDU: 80 0D 03 02 [18:33:22]Write to MH i2c: E2 08 00 BC 06 80 0D 03 02 00 00 00 00 3D [18:33:22]Write i2c OK [18:33:22]MH_I2C_Read... [18:33:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:33:22]Read from MH i2c: E2 [18:33:22]MH_I2C_Read... [18:33:22]Read from MH i2c: E2 0B 00 [18:33:22]MH_I2C_Read... [18:33:22]Read from MH i2c: E2 0B 00 BC 06 00 84 A5 6A D8 7C 58 BA B8 90 00 EF [18:33:22]RAPDU: 84 A5 6A D8 7C 58 BA B8 90 00 [18:33:22]wFMCommunicate OK [18:33:22]SAM_PROTO_SignData done [18:33:22]FM_MakeSignedData done [18:33:22]CreateOFDProtocolMessage [18:33:22]wFMCommunicate request_size=4 [18:33:22]MH_SAM_APDU [18:33:22]CAPDU: 80 11 00 00 [18:33:22]Write to MH i2c: E2 08 00 BD 06 80 11 00 00 00 00 00 00 3D [18:33:22]Write i2c OK [18:33:22]MH_I2C_Read... [18:33:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:22]Read from MH i2c: E2 [18:33:22]MH_I2C_Read... [18:33:22]Read from MH i2c: E2 17 00 [18:33:22]MH_I2C_Read... [18:33:22]Read from MH i2c: E2 17 00 BD 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 93 [18:33:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:33:22]wFMCommunicate OK [18:33:22]CreateOFDProtocolMessage done [18:33:22]OFDSenderStorePacket 165408 [18:33:22]StoreOFDPacket docnum=165408 [18:33:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 17 53 07 01 E3 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 70 6B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 20 86 02 00 35 04 06 00 52 13 09 80 55 2B 84 A5 6A D8 7C 58 BA B8 [18:33:22]CheckFolder [18:33:22]dirname=/storage/ofd_packets [18:33:22]CheckFolder done [18:33:22]ProducePacketName [18:33:22]name=ofd_packets/00165408 [18:33:22]NVStorageSaveData ofd_packets/00165408 [18:33:22]File name is /storage/ofd_packets/00165408 [18:33:22]Write 301 bytes [18:33:22]NVStorageSaveData done [18:33:22]OFDSenderStorePacket done [18:33:22]KKMCreateOFDPacket done [18:33:22]NVStorageSaveData kkm_last_timestamp [18:33:22]File name is /storage/kkm_last_timestamp [18:33:22]Write 4 bytes [18:33:22]NVStorageSaveData done [18:33:22]ExternCall_PrintAddStr [18:33:22]wPrintStart [18:33:22]Write to MH i2c: 01 00 00 BE 06 C4 [18:33:22]Write i2c OK [18:33:22]MH_I2C_Read... [18:33:22]Read from MH i2c: 01 [18:33:22]MH_I2C_Read... [18:33:22]Read from MH i2c: 01 07 00 [18:33:22]MH_I2C_Read... [18:33:22]Read from MH i2c: 01 07 00 BE 06 00 00 00 00 00 FF 0F D9 [18:33:22]RasterBufferAndPrint [18:33:22]line Счет N : (1)459523 [18:33:22]line ИНН: 02508201610067 [18:33:22]line Контрольно-Кассовый Чек [18:33:22]line ПРОДАЖА [18:33:22]line ТРК (МРК, ГНК) : 12 [18:33:22]line Товар: 2710124130 [18:33:22]line Аи-92-К-5 [18:33:22]line 4.560 * 65.80 [18:33:22]line = 300.05 [18:33:22]line НДС 12% НСП 1% [18:33:22]line > о реализуемом товаре [18:33:22]line ОКРУГЛЕНИЕ: -0.05 [18:33:22]line ИТОГО: 300.00 [18:33:22]line Внесено: 300.00 [18:33:22]line СДАЧА: 0.00 [18:33:22]line НСП 1% : 2.65 [18:33:22]line НДС 12% : 31.86 [18:33:22]line Наличными: 300.00 [18:33:22]line Безнал.: 0.00 [18:33:22]line Место: АЗС № 72 "Партнер Нефть" [18:33:22]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:33:22]line СНО: Общий режим [18:33:22]line Чек 281 15.07.2024 18:33 [18:33:22]line Смена: 448 ФФД: 1.0 [18:33:22]line ЗНМ: 0300000160 [18:33:22]line РНМ: 0000000000090829 [18:33:22]line Версия ККМ: 001 [18:33:22]line ФМ: 0000000000874718 [18:33:22]line ФД: 165408 [18:33:22]line ФПД: 90241717261611 [18:33:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T183320&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165408&fm=90241717261611&tin=02508201610067®Number=0000000000090829&sum=30000 [18:33:22]OFD Sender: Processing packet 165408 [packets to send 106, broken 105] [18:33:22]ProducePacketName [18:33:22]name=ofd_packets/00165408 [18:33:22]OFD Sender: To server: pG, [18:33:22]CommunicateWithHost lk.salyk.kg:30040 [18:33:22]ConnectInit lk.salyk.kg [18:33:22]written 0, free lines is 4095 [18:33:22]Connected sock=10 [18:33: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 37 31 38 0F 01 00 00 17 53 07 01 E3 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 70 6B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 20 86 02 00 35 04 06 00 52 13 09 80 55 2B 84 A5 6A D8 7C 58 BA B8 [18:33:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 4B F6 47 00 9C 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 20 86 02 00 F4 03 04 00 FA 11 95 66 B6 04 01 00 00 D7 16 EC 2E DF 3F DA 8E [18:33:22]CommunicateWithHost err = 0 [18:33:22]CheckOFDResponse [18:33:22]1017 (14) - 77093643461234 [18:33:22]1041 (16) - 0000000000874718 [18:33:22]1040 (4) - 165408 [18:33:22]1012 (4) - 15.07.2024 12:11 [18:33:22]1206 (1) - 0 [18:33:22]OFD Sender: Remove packet 165408 [18:33:22]ProducePacketName [18:33:22]name=ofd_packets/00165408 [18:33:22]NVStorageDeleteData [18:33:22]Write to MH i2c: 01 00 00 E8 06 EE [18:33:22]Write i2c OK [18:33:22]MH_I2C_Read... [18:33:22]Read from MH i2c: 01 [18:33:22]MH_I2C_Read... [18:33:22]Read from MH i2c: 01 07 00 [18:33:22]MH_I2C_Read... [18:33:22]Read from MH i2c: 01 07 00 E8 06 00 00 00 00 00 F7 0C F8 [18:33:22]RasterBufferAndPrint [18:33:22]line [18:33:22]line [18:33:22]line [18:33:22]line [18:33:22]line [18:33:22]written 0, free lines is 3326 [18:33:22]MH_Cut [18:33:22]Write to MH i2c: D1 01 00 EF 06 01 C7 [18:33:22]Write i2c OK [18:33:22]MH_I2C_Read... [18:33:22]Read from MH i2c: D1 [18:33:22]MH_I2C_Read... [18:33:22]Read from MH i2c: D1 01 00 [18:33:22]MH_I2C_Read... [18:33:22]Read from MH i2c: D1 01 00 EF 06 00 C6 [18:33:22]Write to MH i2c: 01 00 00 F0 06 F6 [18:33:22]Write i2c OK [18:33:22]MH_I2C_Read... [18:33:23]OFD Sender: No OFD packet to send [18:33:23]*** Cut start [18:33:23]*** Partial cut [18:33:23]*** CUTSNS_PIN = 1 [18:33:23]*** CUTSNS_PIN = 0 [18:33:23]*** Brake cut motor [18:33:24]Read from MH i2c: 01 [18:33:24]MH_I2C_Read... [18:33:24]*** Stop cut motor [18:33:24]*** Cut end [18:33:24]Read from MH i2c: 01 07 00 [18:33:24]MH_I2C_Read... [18:33:24]Read from MH i2c: 01 07 00 F0 06 00 00 00 00 00 FF 0F 0B [18:33:24]process_action close_receipt done [18:33:24]requested_data is exist [18:33:24]produce_requested_data [18:33:24]requested_item fm.sn is exist - process it [18:33:24]wFMCommunicate request_size=4 [18:33:24]MH_SAM_APDU [18:33:24]CAPDU: 80 11 00 00 [18:33:24]Write to MH i2c: E2 08 00 F1 06 80 11 00 00 00 00 00 00 71 [18:33:24]Write i2c OK [18:33:24]MH_I2C_Read... [18:33:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:24]Read from MH i2c: E2 [18:33:24]MH_I2C_Read... [18:33:24]Read from MH i2c: E2 17 00 [18:33:24]MH_I2C_Read... [18:33:24]Read from MH i2c: E2 17 00 F1 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C7 [18:33:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:33:24]wFMCommunicate OK [18:33:24]requested_item fd.num is exist - process it [18:33:24]SAM_PROTO_GetFieldsCounters [18:33:24]wFMCommunicate request_size=4 [18:33:24]MH_SAM_APDU [18:33:24]CAPDU: 80 13 00 00 [18:33:24]Write to MH i2c: E2 08 00 F2 06 80 13 00 00 00 00 00 00 74 [18:33:24]Write i2c OK [18:33:24]MH_I2C_Read... [18:33:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:33:24]Read from MH i2c: E2 [18:33:24]MH_I2C_Read... [18:33:24]Read from MH i2c: E2 62 00 [18:33:24]MH_I2C_Read... [18:33:24]Read from MH i2c: E2 62 00 F2 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 20 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 52 [18:33: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 20 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:33:24]wFMCommunicate OK [18:33:24]SAM_PROTO_GetFieldsCounters done [18:33:24]requested_item shift.num is exist - process it [18:33:24]requested_item shift.opened is exist - process it [18:33:24]req_shift_opened [18:33:24]FM_GetShiftState [18:33:24]SAM_PROTO_GetShiftState [18:33:24]wFMCommunicate request_size=4 [18:33:24]MH_SAM_APDU [18:33:24]CAPDU: 80 13 01 00 [18:33:24]Write to MH i2c: E2 08 00 F3 06 80 13 01 00 00 00 00 00 76 [18:33:24]Write i2c OK [18:33:24]MH_I2C_Read... [18:33:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:24]Read from MH i2c: E2 [18:33:24]MH_I2C_Read... [18:33:24]Read from MH i2c: E2 0E 00 [18:33:24]MH_I2C_Read... [18:33:24]Read from MH i2c: E2 0E 00 F3 06 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 4F [18:33:24]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [18:33:24]wFMCommunicate OK [18:33:24]SAM_PROTO_GetShiftState done [18:33:24]FM_GetShiftState done [18:33:24]req_shift_opened done [18:33:24]requested_item shift.open_date is exist - process it [18:33:24]req_shift_open_date [18:33:24]req_shift_open_date done [18:33:24]produce_requested_data done [18:33:24]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165408,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [18:33:24]process_action_free close_receipt [18:33:24]json_value_free [18:33:24]json_value_free done [18:33:24]process_json_proto returns [18:33:24]Send response to host [18:33:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165408,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [18:33:24]free response buf [18:33:24]execute_script done [18:33:24]execute_script returns [18:33:24]free content buf [18:33:24]Sock 9.Close socket [18:33:24]Sock 9.Thread stoped [18:33:28]accept exits with 7 [18:33:28]New connection [18:33:28]New thread 3067297124 created [18:33:28]Thread 3067153764 joined [18:33:28]Waiting for new connection... [18:33:28] Sock 7.Parse request [18:33:28]Sock 7.Check first char [18:33:28]Sock 7.First char is OK [18:33:28]request: POST /json_proto HTTP/1.0 [18:33:28]Method: POST [18:33:28]URL: /json_proto [18:33:28]Method is POST - this is cgi request [18:33:28]url: /json_proto [18:33:28]query_string will be loaded in cgi processing [18:33:28]execute_cgi json_proto POST (null) [18:33:28]execute_cgi path=json_proto method=POST [18:33:28]POST find Content-Length [18:33:28]Host: 172.17.56.4:8080 [18:33:28]Content-Length: 675 [18:33:28]Content-Type: application/json [18:33:28] [18:33:28]POST finish read [18:33:28]Found Content-Length = 675 [18:33:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459524", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 11.130, "sum" : 800.25, "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" ] } } [18:33:28]execute_script... [18:33:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459524", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 11.130, "sum" : 800.25, "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" ] } } [18:33:28]POST & json_proto [18:33:28]process_json_proto [18:33:28]json parsed OK: [18:33:28]protocol is kg_v1.0 [18:33:28]action value=close_receipt [18:33:28]process_action close_receipt [18:33:28]cmd_close_receipt [18:33:28]MH_GetDate [18:33:28]Write to MH i2c: F0 00 00 F4 06 E9 [18:33:28]Write i2c OK [18:33:28]MH_I2C_Read... [18:33:28]Read from MH i2c: F0 [18:33:28]MH_I2C_Read... [18:33:28]Read from MH i2c: F0 09 00 [18:33:28]MH_I2C_Read... [18:33:28]Read from MH i2c: F0 09 00 F4 06 00 78 6B 95 66 C9 DC B2 64 8B [18:33:28]GetLastDocTimeStamp 1721068400 [18:33:28]current date 1721068408 [18:33:28]FM_GetShiftState [18:33:28]SAM_PROTO_GetShiftState [18:33:28]wFMCommunicate request_size=4 [18:33:28]MH_SAM_APDU [18:33:28]CAPDU: 80 13 01 00 [18:33:28]Write to MH i2c: E2 08 00 F5 06 80 13 01 00 00 00 00 00 78 [18:33:28]Write i2c OK [18:33:28]MH_I2C_Read... [18:33:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:28]Read from MH i2c: E2 [18:33:28]MH_I2C_Read... [18:33:28]Read from MH i2c: E2 0E 00 [18:33:28]MH_I2C_Read... [18:33:28]Read from MH i2c: E2 0E 00 F5 06 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 51 [18:33:28]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [18:33:28]wFMCommunicate OK [18:33:28]SAM_PROTO_GetShiftState done [18:33:28]FM_GetShiftState done [18:33:28]opened in 1721003876 [18:33:28]opened+sec_in_day 1721090276 [18:33:28]quantity*price = 80024 [18:33:28]sum+1 = 80026 [18:33:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.98 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 282 15.07.2024 18:33 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165409 ФПД: 87004900586437 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T183328&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165409&fm=87004900586437&tin=02508201610067®Number=0000000000090829&sum=80000 [18:33:29]StoreToDocumentArchive [18:33:29]shift 448 fd 165409 [18:33:29]save to /storage/0448/doc_00165409 [18:33:29]save last doc name /storage/0448/doc_00165409 to /storage/kkm_last_doc_name [18:33:29]save OK [18:33:29]Clear old archive folders... [18:33:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:33:29]tlvbuf is 008A4CA0 [18:33:29]SAM_PROTO_ClearQueue [18:33:29]wFMCommunicate request_size=4 [18:33:29]MH_SAM_APDU [18:33:29]CAPDU: 80 09 00 00 [18:33:29]Write to MH i2c: E2 08 00 02 07 80 09 00 00 00 00 00 00 7B [18:33:29]Write i2c OK [18:33:29]MH_I2C_Read... [18:33:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:33:29]Read from MH i2c: E2 [18:33:29]MH_I2C_Read... [18:33:29]Read from MH i2c: E2 03 00 [18:33:29]MH_I2C_Read... [18:33:29]Read from MH i2c: E2 03 00 02 07 00 90 00 7D [18:33:29]RAPDU: 90 00 [18:33:29]wFMCommunicate OK [18:33:29]SAM_PROTO_ClearQueue done [18:33:29]KKMCreateOFDPacket [18:33:29]OFDProtocolAddRootSTLVToBuf [18:33:29]FM_MakeSignedData [18:33:29]FM_MakeSignedData [18:33:29]SAM_PROTO_SignData [18:33:29]wFMCommunicate request_size=4 [18:33:29]MH_SAM_APDU [18:33:29]CAPDU: 80 0D 01 02 [18:33:29]Write to MH i2c: E2 08 00 03 07 80 0D 01 02 00 00 00 00 83 [18:33:29]Write i2c OK [18:33:29]MH_I2C_Read... [18:33:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:33:29]Read from MH i2c: E2 [18:33:29]MH_I2C_Read... [18:33:29]Read from MH i2c: E2 03 00 [18:33:29]MH_I2C_Read... [18:33:29]Read from MH i2c: E2 03 00 03 07 00 90 00 7E [18:33:29]RAPDU: 90 00 [18:33:29]wFMCommunicate OK [18:33:29]wFMCommunicate request_size=255 [18:33:29]MH_SAM_APDU [18:33:29]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 99 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 32 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 1A 01 00 00 F4 03 04 00 78 6B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 21 86 02 00 35 04 06 00 4F 21 68 31 [18:33:29]Write to MH i2c: E2 02 01 04 07 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 99 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 32 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 1A 01 00 00 F4 03 04 00 78 6B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 21 86 02 00 35 04 06 00 4F 21 68 31 00 00 86 [18:33:29]Write i2c OK [18:33:29]MH_I2C_Read... [18:33:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:29]Read from MH i2c: E2 [18:33:29]MH_I2C_Read... [18:33:29]Read from MH i2c: E2 03 00 [18:33:29]MH_I2C_Read... [18:33:29]Read from MH i2c: E2 03 00 04 07 00 90 00 7F [18:33:29]RAPDU: 90 00 [18:33:29]wFMCommunicate OK [18:33:29]wFMCommunicate request_size=7 [18:33:29]MH_SAM_APDU [18:33:29]CAPDU: 80 0D 02 02 02 73 C5 [18:33:29]Write to MH i2c: E2 0A 00 05 07 80 0D 02 02 02 00 73 C5 00 00 C2 [18:33:29]Write i2c OK [18:33:29]MH_I2C_Read... [18:33:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:29]Read from MH i2c: E2 [18:33:29]MH_I2C_Read... [18:33:29]Read from MH i2c: E2 03 00 [18:33:29]MH_I2C_Read... [18:33:29]Read from MH i2c: E2 03 00 05 07 00 90 00 80 [18:33:29]RAPDU: 90 00 [18:33:29]wFMCommunicate OK [18:33:29]wFMCommunicate request_size=4 [18:33:29]MH_SAM_APDU [18:33:29]CAPDU: 80 0D 03 02 [18:33:29]Write to MH i2c: E2 08 00 06 07 80 0D 03 02 00 00 00 00 88 [18:33:29]Write i2c OK [18:33:29]MH_I2C_Read... [18:33:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:33:29]Read from MH i2c: E2 [18:33:29]MH_I2C_Read... [18:33:29]Read from MH i2c: E2 0B 00 [18:33:29]MH_I2C_Read... [18:33:29]Read from MH i2c: E2 0B 00 06 07 00 A9 89 8B 0A 22 D8 5C 45 90 00 EB [18:33:29]RAPDU: A9 89 8B 0A 22 D8 5C 45 90 00 [18:33:29]wFMCommunicate OK [18:33:29]SAM_PROTO_SignData done [18:33:29]FM_MakeSignedData done [18:33:29]CreateOFDProtocolMessage [18:33:29]wFMCommunicate request_size=4 [18:33:29]MH_SAM_APDU [18:33:29]CAPDU: 80 11 00 00 [18:33:29]Write to MH i2c: E2 08 00 07 07 80 11 00 00 00 00 00 00 88 [18:33:29]Write i2c OK [18:33:29]MH_I2C_Read... [18:33:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:29]Read from MH i2c: E2 [18:33:29]MH_I2C_Read... [18:33:29]Read from MH i2c: E2 17 00 [18:33:29]MH_I2C_Read... [18:33:29]Read from MH i2c: E2 17 00 07 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DE [18:33:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:33:29]wFMCommunicate OK [18:33:29]CreateOFDProtocolMessage done [18:33:29]OFDSenderStorePacket 165409 [18:33:29]StoreOFDPacket docnum=165409 [18:33:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 95 7E 04 01 67 A4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 99 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 32 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 1A 01 00 00 F4 03 04 00 78 6B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 21 86 02 00 35 04 06 00 4F 21 68 31 73 C5 A9 89 8B 0A 22 D8 5C 45 [18:33:29]CheckFolder [18:33:29]dirname=/storage/ofd_packets [18:33:29]CheckFolder done [18:33:29]ProducePacketName [18:33:29]name=ofd_packets/00165409 [18:33:29]NVStorageSaveData ofd_packets/00165409 [18:33:29]File name is /storage/ofd_packets/00165409 [18:33:29]Write 298 bytes [18:33:29]NVStorageSaveData done [18:33:29]OFDSenderStorePacket done [18:33:29]KKMCreateOFDPacket done [18:33:29]NVStorageSaveData kkm_last_timestamp [18:33:29]File name is /storage/kkm_last_timestamp [18:33:29]Write 4 bytes [18:33:29]NVStorageSaveData done [18:33:29]ExternCall_PrintAddStr [18:33:29]wPrintStart [18:33:29]Write to MH i2c: 01 00 00 08 07 0F [18:33:29]Write i2c OK [18:33:29]MH_I2C_Read... [18:33:29]Read from MH i2c: 01 [18:33:29]MH_I2C_Read... [18:33:29]Read from MH i2c: 01 07 00 [18:33:29]MH_I2C_Read... [18:33:29]Read from MH i2c: 01 07 00 08 07 00 00 00 00 00 FF 0F 24 [18:33:29]RasterBufferAndPrint [18:33:29]line Счет N : (1)459524 [18:33:29]line ИНН: 02508201610067 [18:33:29]line Контрольно-Кассовый Чек [18:33:29]line ПРОДАЖА [18:33:29]line ТРК (МРК, ГНК) : 21 [18:33:29]line Товар: 2710194210 [18:33:29]line ДТ-К-5 [18:33:29]line 11.130 * 71.90 [18:33:29]line = 800.25 [18:33:29]line НДС 12% НСП 1% [18:33:29]line > о реализуемом товаре [18:33:29]line ОКРУГЛЕНИЕ: -0.25 [18:33:29]line ИТОГО: 800.00 [18:33:29]line Внесено: 800.00 [18:33:29]line СДАЧА: 0.00 [18:33:29]line НСП 1% : 7.08 [18:33:29]line НДС 12% : 84.98 [18:33:29]line Наличными: 800.00 [18:33:29]line Безнал.: 0.00 [18:33:29]line Место: АЗС № 72 "Партнер Нефть" [18:33:29]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:33:29]line СНО: Общий режим [18:33:29]line Чек 282 15.07.2024 18:33 [18:33:29]line Смена: 448 ФФД: 1.0 [18:33:29]line ЗНМ: 0300000160 [18:33:29]line РНМ: 0000000000090829 [18:33:29]line Версия ККМ: 001 [18:33:29]line ФМ: 0000000000874718 [18:33:29]line ФД: 165409 [18:33:29]line ФПД: 87004900586437 [18:33:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T183328&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165409&fm=87004900586437&tin=02508201610067®Number=0000000000090829&sum=80000 [18:33:29]written 0, free lines is 4095 [18:33:29]OFD Sender: Processing packet 165409 [packets to send 106, broken 105] [18:33:29]ProducePacketName [18:33:29]name=ofd_packets/00165409 [18:33:29]OFD Sender: To server: pG, [18:33:29]CommunicateWithHost lk.salyk.kg:30040 [18:33:29]ConnectInit lk.salyk.kg [18:33:29]Connected sock=10 [18:33:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 95 7E 04 01 67 A4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 99 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 32 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 1A 01 00 00 F4 03 04 00 78 6B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 21 86 02 00 35 04 06 00 4F 21 68 31 73 C5 A9 89 8B 0A 22 D8 5C 45 [18:33:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 B6 3E 47 00 E9 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 21 86 02 00 F4 03 04 00 01 12 95 66 B6 04 01 00 00 83 FD F2 FE 26 11 1A 1B [18:33:30]CommunicateWithHost err = 0 [18:33:30]CheckOFDResponse [18:33:30]1017 (14) - 77093643461234 [18:33:30]1041 (16) - 0000000000874718 [18:33:30]1040 (4) - 165409 [18:33:30]1012 (4) - 15.07.2024 12:11 [18:33:30]1206 (1) - 0 [18:33:30]OFD Sender: Remove packet 165409 [18:33:30]ProducePacketName [18:33:30]name=ofd_packets/00165409 [18:33:30]NVStorageDeleteData [18:33:30]Write to MH i2c: 01 00 00 32 07 39 [18:33:30]Write i2c OK [18:33:30]MH_I2C_Read... [18:33:30]Read from MH i2c: 01 [18:33:30]MH_I2C_Read... [18:33:30]Read from MH i2c: 01 07 00 [18:33:30]MH_I2C_Read... [18:33:30]Read from MH i2c: 01 07 00 32 07 00 00 00 00 00 FF 0C 4B [18:33:30]RasterBufferAndPrint [18:33:30]line [18:33:30]line [18:33:30]line [18:33:30]line [18:33:30]line [18:33:30]written 0, free lines is 3339 [18:33:30]MH_Cut [18:33:30]Write to MH i2c: D1 01 00 39 07 01 12 [18:33:30]Write i2c OK [18:33:30]MH_I2C_Read... [18:33:30]Read from MH i2c: D1 [18:33:30]MH_I2C_Read... [18:33:30]Read from MH i2c: D1 01 00 [18:33:30]MH_I2C_Read... [18:33:30]Read from MH i2c: D1 01 00 39 07 00 11 [18:33:30]Write to MH i2c: 01 00 00 3A 07 41 [18:33:30]Write i2c OK [18:33:30]MH_I2C_Read... [18:33:30]OFD Sender: No OFD packet to send [18:33:30]*** Cut start [18:33:30]*** Partial cut [18:33:30]*** CUTSNS_PIN = 1 [18:33:30]*** CUTSNS_PIN = 0 [18:33:31]*** Brake cut motor [18:33:31]Read from MH i2c: 01 [18:33:31]MH_I2C_Read... [18:33:31]*** Stop cut motor [18:33:31]*** Cut end [18:33:31]Read from MH i2c: 01 07 00 [18:33:31]MH_I2C_Read... [18:33:31]Read from MH i2c: 01 07 00 3A 07 00 00 00 00 00 FF 0F 56 [18:33:31]process_action close_receipt done [18:33:31]requested_data is exist [18:33:31]produce_requested_data [18:33:31]requested_item fm.sn is exist - process it [18:33:31]wFMCommunicate request_size=4 [18:33:31]MH_SAM_APDU [18:33:31]CAPDU: 80 11 00 00 [18:33:31]Write to MH i2c: E2 08 00 3B 07 80 11 00 00 00 00 00 00 BC [18:33:31]Write i2c OK [18:33:31]MH_I2C_Read... [18:33:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:31]Read from MH i2c: E2 [18:33:31]MH_I2C_Read... [18:33:31]Read from MH i2c: E2 17 00 [18:33:31]MH_I2C_Read... [18:33:31]Read from MH i2c: E2 17 00 3B 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 12 [18:33:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:33:31]wFMCommunicate OK [18:33:31]requested_item fd.num is exist - process it [18:33:31]SAM_PROTO_GetFieldsCounters [18:33:31]wFMCommunicate request_size=4 [18:33:31]MH_SAM_APDU [18:33:31]CAPDU: 80 13 00 00 [18:33:31]Write to MH i2c: E2 08 00 3C 07 80 13 00 00 00 00 00 00 BF [18:33:31]Write i2c OK [18:33:31]MH_I2C_Read... [18:33:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:33:31]Read from MH i2c: E2 [18:33:31]MH_I2C_Read... [18:33:31]Read from MH i2c: E2 62 00 [18:33:31]MH_I2C_Read... [18:33:31]Read from MH i2c: E2 62 00 3C 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 21 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 A1 [18:33: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 21 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:33:31]wFMCommunicate OK [18:33:31]SAM_PROTO_GetFieldsCounters done [18:33:31]requested_item shift.num is exist - process it [18:33:31]requested_item shift.opened is exist - process it [18:33:31]req_shift_opened [18:33:31]FM_GetShiftState [18:33:31]SAM_PROTO_GetShiftState [18:33:31]wFMCommunicate request_size=4 [18:33:31]MH_SAM_APDU [18:33:31]CAPDU: 80 13 01 00 [18:33:31]Write to MH i2c: E2 08 00 3D 07 80 13 01 00 00 00 00 00 C1 [18:33:31]Write i2c OK [18:33:31]MH_I2C_Read... [18:33:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:31]Read from MH i2c: E2 [18:33:31]MH_I2C_Read... [18:33:31]Read from MH i2c: E2 0E 00 [18:33:31]MH_I2C_Read... [18:33:31]Read from MH i2c: E2 0E 00 3D 07 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 9A [18:33:31]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [18:33:31]wFMCommunicate OK [18:33:31]SAM_PROTO_GetShiftState done [18:33:31]FM_GetShiftState done [18:33:31]req_shift_opened done [18:33:31]requested_item shift.open_date is exist - process it [18:33:31]req_shift_open_date [18:33:31]req_shift_open_date done [18:33:31]produce_requested_data done [18:33:31]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165409,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [18:33:31]process_action_free close_receipt [18:33:31]json_value_free [18:33:31]json_value_free done [18:33:31]process_json_proto returns [18:33:31]Send response to host [18:33:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165409,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [18:33:31]free response buf [18:33:31]execute_script done [18:33:31]execute_script returns [18:33:31]free content buf [18:33:31]Sock 7.Close socket [18:33:31]Sock 7.Thread stoped [18:33:35]OFD Sender: No OFD packet to send [18:33:40]OFD Sender: No OFD packet to send [18:33:45]OFD Sender: No OFD packet to send [18:33:50]OFD Sender: No OFD packet to send [18:33:55]OFD Sender: No OFD packet to send [18:34:00]OFD Sender: No OFD packet to send [18:34:05]OFD Sender: No OFD packet to send [18:34:10]OFD Sender: No OFD packet to send [18:34:15]OFD Sender: No OFD packet to send [18:34:20]OFD Sender: No OFD packet to send [18:34:25]OFD Sender: No OFD packet to send [18:34:30]OFD Sender: No OFD packet to send [18:34:35]OFD Sender: No OFD packet to send [18:34:40]OFD Sender: No OFD packet to send [18:34:45]OFD Sender: No OFD packet to send [18:34:50]OFD Sender: No OFD packet to send [18:34:55]OFD Sender: No OFD packet to send [18:35:00]OFD Sender: No OFD packet to send [18:35:05]OFD Sender: No OFD packet to send [18:35:10]OFD Sender: No OFD packet to send [18:35:15]OFD Sender: No OFD packet to send [18:35:20]OFD Sender: No OFD packet to send [18:35:25]OFD Sender: No OFD packet to send [18:35:30]OFD Sender: No OFD packet to send [18:35:35]OFD Sender: No OFD packet to send [18:35:40]OFD Sender: No OFD packet to send [18:35:45]OFD Sender: No OFD packet to send [18:35:50]OFD Sender: No OFD packet to send [18:35:55]OFD Sender: No OFD packet to send [18:36:00]OFD Sender: No OFD packet to send [18:36:05]OFD Sender: No OFD packet to send [18:36:10]OFD Sender: No OFD packet to send [18:36:15]OFD Sender: No OFD packet to send [18:36:20]OFD Sender: No OFD packet to send [18:36:25]OFD Sender: No OFD packet to send [18:36:30]OFD Sender: No OFD packet to send [18:36:35]OFD Sender: No OFD packet to send [18:36:40]OFD Sender: No OFD packet to send [18:36:45]OFD Sender: No OFD packet to send [18:36:50]OFD Sender: No OFD packet to send [18:36:55]OFD Sender: No OFD packet to send [18:37:00]OFD Sender: No OFD packet to send [18:37:05]OFD Sender: No OFD packet to send [18:37:10]OFD Sender: No OFD packet to send [18:37:15]OFD Sender: No OFD packet to send [18:37:20]OFD Sender: No OFD packet to send [18:37:25]OFD Sender: No OFD packet to send [18:37:30]OFD Sender: No OFD packet to send [18:37:35]OFD Sender: No OFD packet to send [18:37:40]OFD Sender: No OFD packet to send [18:37:43]accept exits with 9 [18:37:43]New connection [18:37:43]New thread 3067153764 created [18:37:43]Thread 3067297124 joined [18:37:43]Waiting for new connection... [18:37:43] Sock 9.Parse request [18:37:43]Sock 9.Check first char [18:37:43]Sock 9.First char is OK [18:37:43]request: POST /json_proto HTTP/1.0 [18:37:43]Method: POST [18:37:43]URL: /json_proto [18:37:43]Method is POST - this is cgi request [18:37:43]url: /json_proto [18:37:43]query_string will be loaded in cgi processing [18:37:43]execute_cgi json_proto POST (null) [18:37:43]execute_cgi path=json_proto method=POST [18:37:43]POST find Content-Length [18:37:43]Host: 172.17.56.4:8080 [18:37:43]Content-Length: 677 [18:37:43]Content-Type: application/json [18:37:43] [18:37:43]POST finish read [18:37:43]Found Content-Length = 677 [18:37:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459525", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:37:43]execute_script... [18:37:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459525", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:37:43]POST & json_proto [18:37:43]process_json_proto [18:37:43]json parsed OK: [18:37:43]protocol is kg_v1.0 [18:37:43]action value=close_receipt [18:37:43]process_action close_receipt [18:37:43]cmd_close_receipt [18:37:43]MH_GetDate [18:37:43]Write to MH i2c: F0 00 00 3E 07 34 [18:37:43]Write i2c OK [18:37:43]MH_I2C_Read... [18:37:43]Read from MH i2c: F0 [18:37:43]MH_I2C_Read... [18:37:43]Read from MH i2c: F0 09 00 [18:37:43]MH_I2C_Read... [18:37:43]Read from MH i2c: F0 09 00 3E 07 00 77 6C 95 66 C9 DC B2 64 D6 [18:37:43]GetLastDocTimeStamp 1721068408 [18:37:43]current date 1721068663 [18:37:43]FM_GetShiftState [18:37:43]SAM_PROTO_GetShiftState [18:37:43]wFMCommunicate request_size=4 [18:37:43]MH_SAM_APDU [18:37:43]CAPDU: 80 13 01 00 [18:37:43]Write to MH i2c: E2 08 00 3F 07 80 13 01 00 00 00 00 00 C3 [18:37:43]Write i2c OK [18:37:43]MH_I2C_Read... [18:37:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:37:43]Read from MH i2c: E2 [18:37:43]MH_I2C_Read... [18:37:43]Read from MH i2c: E2 0E 00 [18:37:43]MH_I2C_Read... [18:37:43]Read from MH i2c: E2 0E 00 3F 07 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 9C [18:37:43]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [18:37:43]wFMCommunicate OK [18:37:43]SAM_PROTO_GetShiftState done [18:37:43]FM_GetShiftState done [18:37:43]opened in 1721003876 [18:37:43]opened+sec_in_day 1721090276 [18:37:43]quantity*price = 20003 [18:37:43]sum+1 = 20004 [18:37:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 283 15.07.2024 18:37 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165410 ФПД: 4576158055224 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T183743&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165410&fm=4576158055224&tin=02508201610067®Number=0000000000090829&sum=20000 [18:37:44]StoreToDocumentArchive [18:37:44]shift 448 fd 165410 [18:37:44]save to /storage/0448/doc_00165410 [18:37:44]save last doc name /storage/0448/doc_00165410 to /storage/kkm_last_doc_name [18:37:44]save OK [18:37:44]Clear old archive folders... [18:37:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:37:44]tlvbuf is 008373C0 [18:37:44]SAM_PROTO_ClearQueue [18:37:44]wFMCommunicate request_size=4 [18:37:44]MH_SAM_APDU [18:37:44]CAPDU: 80 09 00 00 [18:37:44]Write to MH i2c: E2 08 00 4C 07 80 09 00 00 00 00 00 00 C5 [18:37:44]Write i2c OK [18:37:44]MH_I2C_Read... [18:37:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:37:44]Read from MH i2c: E2 [18:37:44]MH_I2C_Read... [18:37:44]Read from MH i2c: E2 03 00 [18:37:44]MH_I2C_Read... [18:37:44]Read from MH i2c: E2 03 00 4C 07 00 90 00 C7 [18:37:44]RAPDU: 90 00 [18:37:44]wFMCommunicate OK [18:37:44]SAM_PROTO_ClearQueue done [18:37:44]KKMCreateOFDPacket [18:37:44]OFDProtocolAddRootSTLVToBuf [18:37:44]FM_MakeSignedData [18:37:44]FM_MakeSignedData [18:37:44]SAM_PROTO_SignData [18:37:44]wFMCommunicate request_size=4 [18:37:44]MH_SAM_APDU [18:37:44]CAPDU: 80 0D 01 02 [18:37:44]Write to MH i2c: E2 08 00 4D 07 80 0D 01 02 00 00 00 00 CD [18:37:44]Write i2c OK [18:37:44]MH_I2C_Read... [18:37:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:37:44]Read from MH i2c: E2 [18:37:44]MH_I2C_Read... [18:37:44]Read from MH i2c: E2 03 00 [18:37:44]MH_I2C_Read... [18:37:44]Read from MH i2c: E2 03 00 4D 07 00 90 00 C8 [18:37:44]RAPDU: 90 00 [18:37:44]wFMCommunicate OK [18:37:44]wFMCommunicate request_size=255 [18:37:44]MH_SAM_APDU [18:37:44]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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 77 6C 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 22 86 02 00 35 04 06 00 04 [18:37:44]Write to MH i2c: E2 02 01 4E 07 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 77 6C 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 22 86 02 00 35 04 06 00 04 00 00 50 [18:37:44]Write i2c OK [18:37:44]MH_I2C_Read... [18:37:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:37:45]Read from MH i2c: E2 [18:37:45]MH_I2C_Read... [18:37:45]Read from MH i2c: E2 03 00 [18:37:45]MH_I2C_Read... [18:37:45]Read from MH i2c: E2 03 00 4E 07 00 90 00 C9 [18:37:45]RAPDU: 90 00 [18:37:45]wFMCommunicate OK [18:37:45]wFMCommunicate request_size=10 [18:37:45]MH_SAM_APDU [18:37:45]CAPDU: 80 0D 02 02 05 29 78 46 7B 38 [18:37:45]Write to MH i2c: E2 0D 00 4F 07 80 0D 02 02 05 00 29 78 46 7B 38 00 00 74 [18:37:45]Write i2c OK [18:37:45]MH_I2C_Read... [18:37:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:37:45]Read from MH i2c: E2 [18:37:45]MH_I2C_Read... [18:37:45]Read from MH i2c: E2 03 00 [18:37:45]MH_I2C_Read... [18:37:45]Read from MH i2c: E2 03 00 4F 07 00 90 00 CA [18:37:45]RAPDU: 90 00 [18:37:45]wFMCommunicate OK [18:37:45]wFMCommunicate request_size=4 [18:37:45]MH_SAM_APDU [18:37:45]CAPDU: 80 0D 03 02 [18:37:45]Write to MH i2c: E2 08 00 50 07 80 0D 03 02 00 00 00 00 D2 [18:37:45]Write i2c OK [18:37:45]MH_I2C_Read... [18:37:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:37:45]Read from MH i2c: E2 [18:37:45]MH_I2C_Read... [18:37:45]Read from MH i2c: E2 0B 00 [18:37:45]MH_I2C_Read... [18:37:45]Read from MH i2c: E2 0B 00 50 07 00 F6 61 0D CD AE 7B BE DD 90 00 C8 [18:37:45]RAPDU: F6 61 0D CD AE 7B BE DD 90 00 [18:37:45]wFMCommunicate OK [18:37:45]SAM_PROTO_SignData done [18:37:45]FM_MakeSignedData done [18:37:45]CreateOFDProtocolMessage [18:37:45]wFMCommunicate request_size=4 [18:37:45]MH_SAM_APDU [18:37:45]CAPDU: 80 11 00 00 [18:37:45]Write to MH i2c: E2 08 00 51 07 80 11 00 00 00 00 00 00 D2 [18:37:45]Write i2c OK [18:37:45]MH_I2C_Read... [18:37:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:37:45]Read from MH i2c: E2 [18:37:45]MH_I2C_Read... [18:37:45]Read from MH i2c: E2 17 00 [18:37:45]MH_I2C_Read... [18:37:45]Read from MH i2c: E2 17 00 51 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 28 [18:37:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:37:45]wFMCommunicate OK [18:37:45]CreateOFDProtocolMessage done [18:37:45]OFDSenderStorePacket 165410 [18:37:45]StoreOFDPacket docnum=165410 [18:37:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 6D 1C 07 01 50 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 77 6C 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 22 86 02 00 35 04 06 00 04 29 78 46 7B 38 F6 61 0D CD AE 7B BE DD [18:37:45]CheckFolder [18:37:45]dirname=/storage/ofd_packets [18:37:45]CheckFolder done [18:37:45]ProducePacketName [18:37:45]name=ofd_packets/00165410 [18:37:45]NVStorageSaveData ofd_packets/00165410 [18:37:45]File name is /storage/ofd_packets/00165410 [18:37:45]Write 301 bytes [18:37:45]NVStorageSaveData done [18:37:45]OFDSenderStorePacket done [18:37:45]KKMCreateOFDPacket done [18:37:45]NVStorageSaveData kkm_last_timestamp [18:37:45]File name is /storage/kkm_last_timestamp [18:37:45]Write 4 bytes [18:37:45]NVStorageSaveData done [18:37:45]ExternCall_PrintAddStr [18:37:45]wPrintStart [18:37:45]Write to MH i2c: 01 00 00 52 07 59 [18:37:45]Write i2c OK [18:37:45]MH_I2C_Read... [18:37:45]Read from MH i2c: 01 [18:37:45]MH_I2C_Read... [18:37:45]Read from MH i2c: 01 07 00 [18:37:45]MH_I2C_Read... [18:37:45]Read from MH i2c: 01 07 00 52 07 00 00 00 00 00 FF 0F 6E [18:37:45]RasterBufferAndPrint [18:37:45]line Счет N : (1)459525 [18:37:45]line ИНН: 02508201610067 [18:37:45]line Контрольно-Кассовый Чек [18:37:45]line ПРОДАЖА [18:37:45]line ТРК (МРК, ГНК) : 22 [18:37:45]line Товар: 2710124130 [18:37:45]line Аи-92-К-5 [18:37:45]line 3.040 * 65.80 [18:37:45]line = 200.03 [18:37:45]line НДС 12% НСП 1% [18:37:45]line > о реализуемом товаре [18:37:45]line ОКРУГЛЕНИЕ: -0.03 [18:37:45]line ИТОГО: 200.00 [18:37:45]line Внесено: 200.00 [18:37:45]line СДАЧА: 0.00 [18:37:45]line НСП 1% : 1.77 [18:37:45]line НДС 12% : 21.24 [18:37:45]line Наличными: 200.00 [18:37:45]line Безнал.: 0.00 [18:37:45]line Место: АЗС № 72 "Партнер Нефть" [18:37:45]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:37:45]line СНО: Общий режим [18:37:45]line Чек 283 15.07.2024 18:37 [18:37:45]line Смена: 448 ФФД: 1.0 [18:37:45]line ЗНМ: 0300000160 [18:37:45]line РНМ: 0000000000090829 [18:37:45]line Версия ККМ: 001 [18:37:45]line ФМ: 0000000000874718 [18:37:45]line ФД: 165410 [18:37:45]line ФПД: 4576158055224 [18:37:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T183743&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165410&fm=4576158055224&tin=02508201610067®Number=0000000000090829&sum=20000 [18:37:45]written 0, free lines is 4095 [18:37:45]OFD Sender: Processing packet 165410 [packets to send 106, broken 105] [18:37:45]ProducePacketName [18:37:45]name=ofd_packets/00165410 [18:37:45]OFD Sender: To server: pG, [18:37:45]CommunicateWithHost lk.salyk.kg:30040 [18:37:45]ConnectInit lk.salyk.kg [18:37:45]Connected sock=10 [18:37:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 6D 1C 07 01 50 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 77 6C 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 22 86 02 00 35 04 06 00 04 29 78 46 7B 38 F6 61 0D CD AE 7B BE DD [18:37:45]Write to MH i2c: 01 00 00 7C 07 83 [18:37:45]Write i2c OK [18:37:45]MH_I2C_Read... [18:37:45]Read from MH i2c: 01 [18:37:45]MH_I2C_Read... [18:37:45]Read from MH i2c: 01 07 00 [18:37:45]MH_I2C_Read... [18:37:45]Read from MH i2c: 01 07 00 7C 07 00 00 00 00 00 ED 0C 83 [18:37:45]RasterBufferAndPrint [18:37:45]line [18:37:45]line [18:37:45]line [18:37:45]line [18:37:45]line [18:37:45]written 0, free lines is 3315 [18:37:45]MH_Cut [18:37:45]Write to MH i2c: D1 01 00 83 07 01 5C [18:37:45]Write i2c OK [18:37:45]MH_I2C_Read... [18:37:45]Read from MH i2c: D1 [18:37:45]MH_I2C_Read... [18:37:45]Read from MH i2c: D1 01 00 [18:37:45]MH_I2C_Read... [18:37:45]Read from MH i2c: D1 01 00 83 07 00 5B [18:37:45]Write to MH i2c: 01 00 00 84 07 8B [18:37:45]Write i2c OK [18:37:45]MH_I2C_Read... [18:37:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 46 4C 47 00 F2 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 22 86 02 00 F4 03 04 00 01 13 95 66 B6 04 01 00 00 23 A0 9E C2 8E 4A B9 D9 [18:37:45]CommunicateWithHost err = 0 [18:37:45]CheckOFDResponse [18:37:45]1017 (14) - 77093643461234 [18:37:45]1041 (16) - 0000000000874718 [18:37:45]1040 (4) - 165410 [18:37:45]1012 (4) - 15.07.2024 12:16 [18:37:45]1206 (1) - 0 [18:37:45]OFD Sender: Remove packet 165410 [18:37:45]ProducePacketName [18:37:45]name=ofd_packets/00165410 [18:37:45]NVStorageDeleteData [18:37:46]*** Cut start [18:37:46]*** Partial cut [18:37:46]*** CUTSNS_PIN = 1 [18:37:46]OFD Sender: No OFD packet to send [18:37:46]*** CUTSNS_PIN = 0 [18:37:46]*** Brake cut motor [18:37:46]Read from MH i2c: 01 [18:37:46]MH_I2C_Read... [18:37:46]*** Stop cut motor [18:37:47]*** Cut end [18:37:47]Read from MH i2c: 01 07 00 [18:37:47]MH_I2C_Read... [18:37:47]Read from MH i2c: 01 07 00 84 07 00 00 00 00 00 FF 0F A0 [18:37:47]process_action close_receipt done [18:37:47]requested_data is exist [18:37:47]produce_requested_data [18:37:47]requested_item fm.sn is exist - process it [18:37:47]wFMCommunicate request_size=4 [18:37:47]MH_SAM_APDU [18:37:47]CAPDU: 80 11 00 00 [18:37:47]Write to MH i2c: E2 08 00 85 07 80 11 00 00 00 00 00 00 06 [18:37:47]Write i2c OK [18:37:47]MH_I2C_Read... [18:37:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:37:47]Read from MH i2c: E2 [18:37:47]MH_I2C_Read... [18:37:47]Read from MH i2c: E2 17 00 [18:37:47]MH_I2C_Read... [18:37:47]Read from MH i2c: E2 17 00 85 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5C [18:37:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:37:47]wFMCommunicate OK [18:37:47]requested_item fd.num is exist - process it [18:37:47]SAM_PROTO_GetFieldsCounters [18:37:47]wFMCommunicate request_size=4 [18:37:47]MH_SAM_APDU [18:37:47]CAPDU: 80 13 00 00 [18:37:47]Write to MH i2c: E2 08 00 86 07 80 13 00 00 00 00 00 00 09 [18:37:47]Write i2c OK [18:37:47]MH_I2C_Read... [18:37:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:37:47]Read from MH i2c: E2 [18:37:47]MH_I2C_Read... [18:37:47]Read from MH i2c: E2 62 00 [18:37:47]MH_I2C_Read... [18:37:47]Read from MH i2c: E2 62 00 86 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 22 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 EF [18:37: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 22 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:37:47]wFMCommunicate OK [18:37:47]SAM_PROTO_GetFieldsCounters done [18:37:47]requested_item shift.num is exist - process it [18:37:47]requested_item shift.opened is exist - process it [18:37:47]req_shift_opened [18:37:47]FM_GetShiftState [18:37:47]SAM_PROTO_GetShiftState [18:37:47]wFMCommunicate request_size=4 [18:37:47]MH_SAM_APDU [18:37:47]CAPDU: 80 13 01 00 [18:37:47]Write to MH i2c: E2 08 00 87 07 80 13 01 00 00 00 00 00 0B [18:37:47]Write i2c OK [18:37:47]MH_I2C_Read... [18:37:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:37:47]Read from MH i2c: E2 [18:37:47]MH_I2C_Read... [18:37:47]Read from MH i2c: E2 0E 00 [18:37:47]MH_I2C_Read... [18:37:47]Read from MH i2c: E2 0E 00 87 07 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 E4 [18:37:47]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [18:37:47]wFMCommunicate OK [18:37:47]SAM_PROTO_GetShiftState done [18:37:47]FM_GetShiftState done [18:37:47]req_shift_opened done [18:37:47]requested_item shift.open_date is exist - process it [18:37:47]req_shift_open_date [18:37:47]req_shift_open_date done [18:37:47]produce_requested_data done [18:37:47]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165410,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [18:37:47]process_action_free close_receipt [18:37:47]json_value_free [18:37:47]json_value_free done [18:37:47]process_json_proto returns [18:37:47]Send response to host [18:37:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165410,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [18:37:47]free response buf [18:37:47]execute_script done [18:37:47]execute_script returns [18:37:47]free content buf [18:37:47]Sock 9.Close socket [18:37:47]Sock 9.Thread stoped [18:37:51]OFD Sender: No OFD packet to send [18:37:56]OFD Sender: No OFD packet to send [18:38:01]OFD Sender: No OFD packet to send [18:38:06]OFD Sender: No OFD packet to send [18:38:11]OFD Sender: No OFD packet to send [18:38:16]OFD Sender: No OFD packet to send [18:38:21]OFD Sender: No OFD packet to send [18:38:26]OFD Sender: No OFD packet to send [18:38:31]OFD Sender: No OFD packet to send [18:38:36]OFD Sender: No OFD packet to send [18:38:41]OFD Sender: No OFD packet to send [18:38:46]OFD Sender: No OFD packet to send [18:38:51]OFD Sender: No OFD packet to send [18:38:56]OFD Sender: No OFD packet to send [18:39:01]OFD Sender: No OFD packet to send [18:39:06]OFD Sender: No OFD packet to send [18:39:11]OFD Sender: No OFD packet to send [18:39:16]OFD Sender: No OFD packet to send [18:39:21]OFD Sender: No OFD packet to send [18:39:26]OFD Sender: No OFD packet to send [18:39:28]accept exits with 7 [18:39:28]New connection [18:39:28]New thread 3067297124 created [18:39:28]Thread 3067153764 joined [18:39:28]Waiting for new connection... [18:39:28] Sock 7.Parse request [18:39:28]Sock 7.Check first char [18:39:28]Sock 7.First char is OK [18:39:28]request: POST /json_proto HTTP/1.0 [18:39:28]Method: POST [18:39:28]URL: /json_proto [18:39:28]Method is POST - this is cgi request [18:39:28]url: /json_proto [18:39:28]query_string will be loaded in cgi processing [18:39:28]execute_cgi json_proto POST (null) [18:39:28]execute_cgi path=json_proto method=POST [18:39:28]POST find Content-Length [18:39:28]Host: 172.17.56.4:8080 [18:39:28]Content-Length: 677 [18:39:28]Content-Type: application/json [18:39:28] [18:39:28]POST finish read [18:39:28]Found Content-Length = 677 [18:39:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459526", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.870, "sum" : 320.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:39:28]execute_script... [18:39:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459526", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.870, "sum" : 320.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:39:28]POST & json_proto [18:39:28]process_json_proto [18:39:28]json parsed OK: [18:39:28]protocol is kg_v1.0 [18:39:28]action value=close_receipt [18:39:28]process_action close_receipt [18:39:28]cmd_close_receipt [18:39:28]MH_GetDate [18:39:28]Write to MH i2c: F0 00 00 88 07 7E [18:39:28]Write i2c OK [18:39:28]MH_I2C_Read... [18:39:28]Read from MH i2c: F0 [18:39:28]MH_I2C_Read... [18:39:28]Read from MH i2c: F0 09 00 [18:39:28]MH_I2C_Read... [18:39:28]Read from MH i2c: F0 09 00 88 07 00 E0 6C 95 66 C9 DC B2 64 89 [18:39:28]GetLastDocTimeStamp 1721068663 [18:39:28]current date 1721068768 [18:39:28]FM_GetShiftState [18:39:28]SAM_PROTO_GetShiftState [18:39:28]wFMCommunicate request_size=4 [18:39:28]MH_SAM_APDU [18:39:28]CAPDU: 80 13 01 00 [18:39:28]Write to MH i2c: E2 08 00 89 07 80 13 01 00 00 00 00 00 0D [18:39:28]Write i2c OK [18:39:28]MH_I2C_Read... [18:39:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:39:28]Read from MH i2c: E2 [18:39:28]MH_I2C_Read... [18:39:28]Read from MH i2c: E2 0E 00 [18:39:28]MH_I2C_Read... [18:39:28]Read from MH i2c: E2 0E 00 89 07 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 E6 [18:39:28]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [18:39:28]wFMCommunicate OK [18:39:28]SAM_PROTO_GetShiftState done [18:39:28]FM_GetShiftState done [18:39:28]opened in 1721003876 [18:39:28]opened+sec_in_day 1721090276 [18:39:28]quantity*price = 32044 [18:39:28]sum+1 = 32046 [18:39:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 320.00 Внесено: 320.00 СДАЧА: 0.00 НСП 1% : 2.84 НДС 12% : 34.03 Наличными: 320.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 284 15.07.2024 18:39 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165411 ФПД: 46596240321525 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T183928&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165411&fm=46596240321525&tin=02508201610067®Number=0000000000090829&sum=32000 [18:39:29]StoreToDocumentArchive [18:39:29]shift 448 fd 165411 [18:39:29]save to /storage/0448/doc_00165411 [18:39:29]save last doc name /storage/0448/doc_00165411 to /storage/kkm_last_doc_name [18:39:29]save OK [18:39:29]Clear old archive folders... [18:39:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:39:29]tlvbuf is 008993D0 [18:39:29]SAM_PROTO_ClearQueue [18:39:29]wFMCommunicate request_size=4 [18:39:29]MH_SAM_APDU [18:39:29]CAPDU: 80 09 00 00 [18:39:29]Write to MH i2c: E2 08 00 96 07 80 09 00 00 00 00 00 00 0F [18:39:29]Write i2c OK [18:39:29]MH_I2C_Read... [18:39:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:39:29]Read from MH i2c: E2 [18:39:29]MH_I2C_Read... [18:39:29]Read from MH i2c: E2 03 00 [18:39:29]MH_I2C_Read... [18:39:29]Read from MH i2c: E2 03 00 96 07 00 90 00 11 [18:39:29]RAPDU: 90 00 [18:39:29]wFMCommunicate OK [18:39:29]SAM_PROTO_ClearQueue done [18:39:29]KKMCreateOFDPacket [18:39:29]OFDProtocolAddRootSTLVToBuf [18:39:29]FM_MakeSignedData [18:39:29]FM_MakeSignedData [18:39:29]SAM_PROTO_SignData [18:39:29]wFMCommunicate request_size=4 [18:39:29]MH_SAM_APDU [18:39:29]CAPDU: 80 0D 01 02 [18:39:29]Write to MH i2c: E2 08 00 97 07 80 0D 01 02 00 00 00 00 17 [18:39:29]Write i2c OK [18:39:29]MH_I2C_Read... [18:39:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:39:29]Read from MH i2c: E2 [18:39:29]MH_I2C_Read... [18:39:29]Read from MH i2c: E2 03 00 [18:39:29]MH_I2C_Read... [18:39:29]Read from MH i2c: E2 03 00 97 07 00 90 00 12 [18:39:29]RAPDU: 90 00 [18:39:29]wFMCommunicate OK [18:39:29]wFMCommunicate request_size=255 [18:39:29]MH_SAM_APDU [18:39:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 E0 6C 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 23 86 02 00 35 04 06 00 2A [18:39:29]Write to MH i2c: E2 02 01 98 07 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 06 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 E0 6C 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 23 86 02 00 35 04 06 00 2A 00 00 20 [18:39:29]Write i2c OK [18:39:29]MH_I2C_Read... [18:39:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:39:29]Read from MH i2c: E2 [18:39:29]MH_I2C_Read... [18:39:29]Read from MH i2c: E2 03 00 [18:39:29]MH_I2C_Read... [18:39:29]Read from MH i2c: E2 03 00 98 07 00 90 00 13 [18:39:29]RAPDU: 90 00 [18:39:29]wFMCommunicate OK [18:39:29]wFMCommunicate request_size=10 [18:39:29]MH_SAM_APDU [18:39:29]CAPDU: 80 0D 02 02 05 61 08 5A 2B F5 [18:39:29]Write to MH i2c: E2 0D 00 99 07 80 0D 02 02 05 00 61 08 5A 2B F5 00 00 07 [18:39:29]Write i2c OK [18:39:29]MH_I2C_Read... [18:39:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:39:29]Read from MH i2c: E2 [18:39:29]MH_I2C_Read... [18:39:29]Read from MH i2c: E2 03 00 [18:39:29]MH_I2C_Read... [18:39:29]Read from MH i2c: E2 03 00 99 07 00 90 00 14 [18:39:29]RAPDU: 90 00 [18:39:29]wFMCommunicate OK [18:39:29]wFMCommunicate request_size=4 [18:39:29]MH_SAM_APDU [18:39:29]CAPDU: 80 0D 03 02 [18:39:29]Write to MH i2c: E2 08 00 9A 07 80 0D 03 02 00 00 00 00 1C [18:39:29]Write i2c OK [18:39:29]MH_I2C_Read... [18:39:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:39:29]Read from MH i2c: E2 [18:39:29]MH_I2C_Read... [18:39:29]Read from MH i2c: E2 0B 00 [18:39:29]MH_I2C_Read... [18:39:29]Read from MH i2c: E2 0B 00 9A 07 00 E2 EB 5C C7 E1 AE 48 00 90 00 E4 [18:39:29]RAPDU: E2 EB 5C C7 E1 AE 48 00 90 00 [18:39:29]wFMCommunicate OK [18:39:29]SAM_PROTO_SignData done [18:39:29]FM_MakeSignedData done [18:39:29]CreateOFDProtocolMessage [18:39:29]wFMCommunicate request_size=4 [18:39:29]MH_SAM_APDU [18:39:29]CAPDU: 80 11 00 00 [18:39:29]Write to MH i2c: E2 08 00 9B 07 80 11 00 00 00 00 00 00 1C [18:39:29]Write i2c OK [18:39:29]MH_I2C_Read... [18:39:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:39:29]Read from MH i2c: E2 [18:39:29]MH_I2C_Read... [18:39:29]Read from MH i2c: E2 17 00 [18:39:29]MH_I2C_Read... [18:39:29]Read from MH i2c: E2 17 00 9B 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 72 [18:39:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:39:29]wFMCommunicate OK [18:39:29]CreateOFDProtocolMessage done [18:39:29]OFDSenderStorePacket 165411 [18:39:29]StoreOFDPacket docnum=165411 [18:39:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 AF 9A 07 01 AE 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 06 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 E0 6C 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 23 86 02 00 35 04 06 00 2A 61 08 5A 2B F5 E2 EB 5C C7 E1 AE 48 00 [18:39:29]CheckFolder [18:39:29]dirname=/storage/ofd_packets [18:39:29]CheckFolder done [18:39:29]ProducePacketName [18:39:29]name=ofd_packets/00165411 [18:39:29]NVStorageSaveData ofd_packets/00165411 [18:39:29]File name is /storage/ofd_packets/00165411 [18:39:29]Write 301 bytes [18:39:29]NVStorageSaveData done [18:39:29]OFDSenderStorePacket done [18:39:29]KKMCreateOFDPacket done [18:39:29]NVStorageSaveData kkm_last_timestamp [18:39:29]File name is /storage/kkm_last_timestamp [18:39:29]Write 4 bytes [18:39:29]NVStorageSaveData done [18:39:29]ExternCall_PrintAddStr [18:39:29]wPrintStart [18:39:29]Write to MH i2c: 01 00 00 9C 07 A3 [18:39:29]Write i2c OK [18:39:29]MH_I2C_Read... [18:39:29]Read from MH i2c: 01 [18:39:29]MH_I2C_Read... [18:39:29]Read from MH i2c: 01 07 00 [18:39:29]MH_I2C_Read... [18:39:29]Read from MH i2c: 01 07 00 9C 07 00 00 00 00 00 FF 0F B8 [18:39:29]RasterBufferAndPrint [18:39:29]line Счет N : (1)459526 [18:39:29]line ИНН: 02508201610067 [18:39:29]line Контрольно-Кассовый Чек [18:39:29]line ПРОДАЖА [18:39:29]line ТРК (МРК, ГНК) : 12 [18:39:29]line Товар: 2710124130 [18:39:29]line Аи-92-К-5 [18:39:29]line 4.870 * 65.80 [18:39:29]line = 320.45 [18:39:29]line НДС 12% НСП 1% [18:39:29]line > о реализуемом товаре [18:39:29]line ОКРУГЛЕНИЕ: -0.45 [18:39:29]line ИТОГО: 320.00 [18:39:29]line Внесено: 320.00 [18:39:29]line СДАЧА: 0.00 [18:39:29]line НСП 1% : 2.84 [18:39:29]line НДС 12% : 34.03 [18:39:29]line Наличными: 320.00 [18:39:29]line Безнал.: 0.00 [18:39:29]line Место: АЗС № 72 "Партнер Нефть" [18:39:29]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:39:29]line СНО: Общий режим [18:39:29]line Чек 284 15.07.2024 18:39 [18:39:29]line Смена: 448 ФФД: 1.0 [18:39:29]line ЗНМ: 0300000160 [18:39:29]line РНМ: 0000000000090829 [18:39:29]line Версия ККМ: 001 [18:39:29]line ФМ: 0000000000874718 [18:39:29]line ФД: 165411 [18:39:29]line ФПД: 46596240321525 [18:39:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T183928&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165411&fm=46596240321525&tin=02508201610067®Number=0000000000090829&sum=32000 [18:39:30]written 0, free lines is 4095 [18:39:30]OFD Sender: Processing packet 165411 [packets to send 106, broken 105] [18:39:30]ProducePacketName [18:39:30]name=ofd_packets/00165411 [18:39:30]OFD Sender: To server: pG, [18:39:30]CommunicateWithHost lk.salyk.kg:30040 [18:39:30]ConnectInit lk.salyk.kg [18:39:30]Connected sock=10 [18:39:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 AF 9A 07 01 AE 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 06 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 E0 6C 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 23 86 02 00 35 04 06 00 2A 61 08 5A 2B F5 E2 EB 5C C7 E1 AE 48 00 [18:39:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 E1 D8 47 00 31 DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 23 86 02 00 F4 03 04 00 6A 13 95 66 B6 04 01 00 00 6C 71 ED 08 6A 38 A7 0B [18:39:30]CommunicateWithHost err = 0 [18:39:30]CheckOFDResponse [18:39:30]1017 (14) - 77093643461234 [18:39:30]1041 (16) - 0000000000874718 [18:39:30]1040 (4) - 165411 [18:39:30]1012 (4) - 15.07.2024 12:17 [18:39:30]1206 (1) - 0 [18:39:30]OFD Sender: Remove packet 165411 [18:39:30]ProducePacketName [18:39:30]name=ofd_packets/00165411 [18:39:30]NVStorageDeleteData [18:39:30]Write to MH i2c: 01 00 00 C6 07 CD [18:39:30]Write i2c OK [18:39:30]MH_I2C_Read... [18:39:30]Read from MH i2c: 01 [18:39:30]MH_I2C_Read... [18:39:30]Read from MH i2c: 01 07 00 [18:39:30]MH_I2C_Read... [18:39:30]Read from MH i2c: 01 07 00 C6 07 00 00 00 00 00 F3 0C D3 [18:39:30]RasterBufferAndPrint [18:39:30]line [18:39:30]line [18:39:30]line [18:39:30]line [18:39:30]line [18:39:30]written 0, free lines is 3322 [18:39:30]MH_Cut [18:39:30]Write to MH i2c: D1 01 00 CD 07 01 A6 [18:39:30]Write i2c OK [18:39:30]MH_I2C_Read... [18:39:30]Read from MH i2c: D1 [18:39:30]MH_I2C_Read... [18:39:30]Read from MH i2c: D1 01 00 [18:39:30]MH_I2C_Read... [18:39:30]Read from MH i2c: D1 01 00 CD 07 00 A5 [18:39:30]Write to MH i2c: 01 00 00 CE 07 D5 [18:39:30]Write i2c OK [18:39:30]MH_I2C_Read... [18:39:30]OFD Sender: No OFD packet to send [18:39:31]*** Cut start [18:39:31]*** Partial cut [18:39:31]*** CUTSNS_PIN = 1 [18:39:31]*** CUTSNS_PIN = 0 [18:39:31]*** Brake cut motor [18:39:31]Read from MH i2c: 01 [18:39:31]MH_I2C_Read... [18:39:31]*** Stop cut motor [18:39:31]*** Cut end [18:39:31]Read from MH i2c: 01 07 00 [18:39:31]MH_I2C_Read... [18:39:31]Read from MH i2c: 01 07 00 CE 07 00 00 00 00 00 FF 0F EA [18:39:31]process_action close_receipt done [18:39:31]requested_data is exist [18:39:31]produce_requested_data [18:39:31]requested_item fm.sn is exist - process it [18:39:31]wFMCommunicate request_size=4 [18:39:31]MH_SAM_APDU [18:39:31]CAPDU: 80 11 00 00 [18:39:31]Write to MH i2c: E2 08 00 CF 07 80 11 00 00 00 00 00 00 50 [18:39:31]Write i2c OK [18:39:31]MH_I2C_Read... [18:39:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:39:31]Read from MH i2c: E2 [18:39:31]MH_I2C_Read... [18:39:31]Read from MH i2c: E2 17 00 [18:39:31]MH_I2C_Read... [18:39:31]Read from MH i2c: E2 17 00 CF 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A6 [18:39:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:39:31]wFMCommunicate OK [18:39:31]requested_item fd.num is exist - process it [18:39:31]SAM_PROTO_GetFieldsCounters [18:39:31]wFMCommunicate request_size=4 [18:39:31]MH_SAM_APDU [18:39:31]CAPDU: 80 13 00 00 [18:39:31]Write to MH i2c: E2 08 00 D0 07 80 13 00 00 00 00 00 00 53 [18:39:31]Write i2c OK [18:39:31]MH_I2C_Read... [18:39:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:39:32]Read from MH i2c: E2 [18:39:32]MH_I2C_Read... [18:39:32]Read from MH i2c: E2 62 00 [18:39:32]MH_I2C_Read... [18:39:32]Read from MH i2c: E2 62 00 D0 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 23 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 3D [18:39:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 23 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:39:32]wFMCommunicate OK [18:39:32]SAM_PROTO_GetFieldsCounters done [18:39:32]requested_item shift.num is exist - process it [18:39:32]requested_item shift.opened is exist - process it [18:39:32]req_shift_opened [18:39:32]FM_GetShiftState [18:39:32]SAM_PROTO_GetShiftState [18:39:32]wFMCommunicate request_size=4 [18:39:32]MH_SAM_APDU [18:39:32]CAPDU: 80 13 01 00 [18:39:32]Write to MH i2c: E2 08 00 D1 07 80 13 01 00 00 00 00 00 55 [18:39:32]Write i2c OK [18:39:32]MH_I2C_Read... [18:39:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:39:32]Read from MH i2c: E2 [18:39:32]MH_I2C_Read... [18:39:32]Read from MH i2c: E2 0E 00 [18:39:32]MH_I2C_Read... [18:39:32]Read from MH i2c: E2 0E 00 D1 07 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 2E [18:39:32]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [18:39:32]wFMCommunicate OK [18:39:32]SAM_PROTO_GetShiftState done [18:39:32]FM_GetShiftState done [18:39:32]req_shift_opened done [18:39:32]requested_item shift.open_date is exist - process it [18:39:32]req_shift_open_date [18:39:32]req_shift_open_date done [18:39:32]produce_requested_data done [18:39:32]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165411,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [18:39:32]process_action_free close_receipt [18:39:32]json_value_free [18:39:32]json_value_free done [18:39:32]process_json_proto returns [18:39:32]Send response to host [18:39:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165411,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [18:39:32]free response buf [18:39:32]execute_script done [18:39:32]execute_script returns [18:39:32]free content buf [18:39:32]Sock 7.Close socket [18:39:32]Sock 7.Thread stoped [18:39:35]OFD Sender: No OFD packet to send [18:39:40]OFD Sender: No OFD packet to send [18:39:45]OFD Sender: No OFD packet to send [18:39:51]OFD Sender: No OFD packet to send [18:39:56]OFD Sender: No OFD packet to send [18:40:01]OFD Sender: No OFD packet to send [18:40:06]OFD Sender: No OFD packet to send [18:40:11]OFD Sender: No OFD packet to send [18:40:16]OFD Sender: No OFD packet to send [18:40:21]OFD Sender: No OFD packet to send [18:40:26]OFD Sender: No OFD packet to send [18:40:31]OFD Sender: No OFD packet to send [18:40:36]OFD Sender: No OFD packet to send [18:40:41]OFD Sender: No OFD packet to send [18:40:46]OFD Sender: No OFD packet to send [18:40:51]OFD Sender: No OFD packet to send [18:40:56]OFD Sender: No OFD packet to send [18:41:01]OFD Sender: No OFD packet to send [18:41:06]OFD Sender: No OFD packet to send [18:41:11]OFD Sender: No OFD packet to send [18:41:16]OFD Sender: No OFD packet to send [18:41:21]OFD Sender: No OFD packet to send [18:41:26]OFD Sender: No OFD packet to send [18:41:31]OFD Sender: No OFD packet to send [18:41:36]OFD Sender: No OFD packet to send [18:41:41]OFD Sender: No OFD packet to send [18:41:46]OFD Sender: No OFD packet to send [18:41:51]OFD Sender: No OFD packet to send [18:41:56]OFD Sender: No OFD packet to send [18:42:01]OFD Sender: No OFD packet to send [18:42:06]OFD Sender: No OFD packet to send [18:42:11]OFD Sender: No OFD packet to send [18:42:16]OFD Sender: No OFD packet to send [18:42:21]OFD Sender: No OFD packet to send [18:42:26]OFD Sender: No OFD packet to send [18:42:31]OFD Sender: No OFD packet to send [18:42:36]OFD Sender: No OFD packet to send [18:42:37]accept exits with 9 [18:42:37]New connection [18:42:37]New thread 3067153764 created [18:42:37]Thread 3067297124 joined [18:42:37]Waiting for new connection... [18:42:37] Sock 9.Parse request [18:42:37]Sock 9.Check first char [18:42:37]Sock 9.First char is OK [18:42:37]request: POST /json_proto HTTP/1.0 [18:42:37]Method: POST [18:42:37]URL: /json_proto [18:42:37]Method is POST - this is cgi request [18:42:37]url: /json_proto [18:42:37]query_string will be loaded in cgi processing [18:42:37]execute_cgi json_proto POST (null) [18:42:37]execute_cgi path=json_proto method=POST [18:42:37]POST find Content-Length [18:42:37]Host: 172.17.56.4:8080 [18:42:37]Content-Length: 678 [18:42:37]Content-Type: application/json [18:42:37] [18:42:37]POST finish read [18:42:37]Found Content-Length = 678 [18:42:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459527", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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" ] } } [18:42:37]execute_script... [18:42:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459527", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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" ] } } [18:42:37]POST & json_proto [18:42:37]process_json_proto [18:42:37]json parsed OK: [18:42:37]protocol is kg_v1.0 [18:42:37]action value=close_receipt [18:42:37]process_action close_receipt [18:42:37]cmd_close_receipt [18:42:37]MH_GetDate [18:42:37]Write to MH i2c: F0 00 00 D2 07 C8 [18:42:37]Write i2c OK [18:42:37]MH_I2C_Read... [18:42:37]Read from MH i2c: F0 [18:42:37]MH_I2C_Read... [18:42:37]Read from MH i2c: F0 09 00 [18:42:37]MH_I2C_Read... [18:42:37]Read from MH i2c: F0 09 00 D2 07 00 9D 6D 95 66 C9 DC B2 64 91 [18:42:37]GetLastDocTimeStamp 1721068768 [18:42:37]current date 1721068957 [18:42:37]FM_GetShiftState [18:42:37]SAM_PROTO_GetShiftState [18:42:37]wFMCommunicate request_size=4 [18:42:37]MH_SAM_APDU [18:42:37]CAPDU: 80 13 01 00 [18:42:37]Write to MH i2c: E2 08 00 D3 07 80 13 01 00 00 00 00 00 57 [18:42:37]Write i2c OK [18:42:37]MH_I2C_Read... [18:42:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:37]Read from MH i2c: E2 [18:42:37]MH_I2C_Read... [18:42:37]Read from MH i2c: E2 0E 00 [18:42:37]MH_I2C_Read... [18:42:37]Read from MH i2c: E2 0E 00 D3 07 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 30 [18:42:37]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [18:42:37]wFMCommunicate OK [18:42:37]SAM_PROTO_GetShiftState done [18:42:37]FM_GetShiftState done [18:42:37]opened in 1721003876 [18:42:37]opened+sec_in_day 1721090276 [18:42:37]quantity*price = 70011 [18:42:37]sum+1 = 70012 [18:42:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 285 15.07.2024 18:42 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165412 ФПД: 144602493249365 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T184237&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165412&fm=144602493249365&tin=02508201610067®Number=0000000000090829&sum=70000 [18:42:38]StoreToDocumentArchive [18:42:38]shift 448 fd 165412 [18:42:38]save to /storage/0448/doc_00165412 [18:42:38]save last doc name /storage/0448/doc_00165412 to /storage/kkm_last_doc_name [18:42:38]save OK [18:42:38]Clear old archive folders... [18:42:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:42:38]tlvbuf is 00837330 [18:42:38]SAM_PROTO_ClearQueue [18:42:38]wFMCommunicate request_size=4 [18:42:38]MH_SAM_APDU [18:42:38]CAPDU: 80 09 00 00 [18:42:38]Write to MH i2c: E2 08 00 E0 07 80 09 00 00 00 00 00 00 59 [18:42:38]Write i2c OK [18:42:38]MH_I2C_Read... [18:42:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:42:38]Read from MH i2c: E2 [18:42:38]MH_I2C_Read... [18:42:38]Read from MH i2c: E2 03 00 [18:42:38]MH_I2C_Read... [18:42:38]Read from MH i2c: E2 03 00 E0 07 00 90 00 5B [18:42:38]RAPDU: 90 00 [18:42:38]wFMCommunicate OK [18:42:38]SAM_PROTO_ClearQueue done [18:42:38]KKMCreateOFDPacket [18:42:38]OFDProtocolAddRootSTLVToBuf [18:42:38]FM_MakeSignedData [18:42:38]FM_MakeSignedData [18:42:38]SAM_PROTO_SignData [18:42:38]wFMCommunicate request_size=4 [18:42:38]MH_SAM_APDU [18:42:38]CAPDU: 80 0D 01 02 [18:42:38]Write to MH i2c: E2 08 00 E1 07 80 0D 01 02 00 00 00 00 61 [18:42:38]Write i2c OK [18:42:38]MH_I2C_Read... [18:42:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:42:38]Read from MH i2c: E2 [18:42:38]MH_I2C_Read... [18:42:38]Read from MH i2c: E2 03 00 [18:42:38]MH_I2C_Read... [18:42:38]Read from MH i2c: E2 03 00 E1 07 00 90 00 5C [18:42:38]RAPDU: 90 00 [18:42:38]wFMCommunicate OK [18:42:38]wFMCommunicate request_size=255 [18:42:38]MH_SAM_APDU [18:42: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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 1D 01 00 00 F4 03 04 00 9D 6D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 24 86 02 00 35 04 06 00 83 [18:42:38]Write to MH i2c: E2 02 01 E2 07 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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 1D 01 00 00 F4 03 04 00 9D 6D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 24 86 02 00 35 04 06 00 83 00 00 31 [18:42:38]Write i2c OK [18:42:38]MH_I2C_Read... [18:42:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:38]Read from MH i2c: E2 [18:42:38]MH_I2C_Read... [18:42:38]Read from MH i2c: E2 03 00 [18:42:38]MH_I2C_Read... [18:42:38]Read from MH i2c: E2 03 00 E2 07 00 90 00 5D [18:42:38]RAPDU: 90 00 [18:42:38]wFMCommunicate OK [18:42:38]wFMCommunicate request_size=10 [18:42:38]MH_SAM_APDU [18:42:38]CAPDU: 80 0D 02 02 05 83 E4 3E 67 55 [18:42:38]Write to MH i2c: E2 0D 00 E3 07 80 0D 02 02 05 00 83 E4 3E 67 55 00 00 CF [18:42:38]Write i2c OK [18:42:38]MH_I2C_Read... [18:42:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:38]Read from MH i2c: E2 [18:42:38]MH_I2C_Read... [18:42:38]Read from MH i2c: E2 03 00 [18:42:38]MH_I2C_Read... [18:42:38]Read from MH i2c: E2 03 00 E3 07 00 90 00 5E [18:42:38]RAPDU: 90 00 [18:42:38]wFMCommunicate OK [18:42:38]wFMCommunicate request_size=4 [18:42:38]MH_SAM_APDU [18:42:38]CAPDU: 80 0D 03 02 [18:42:38]Write to MH i2c: E2 08 00 E4 07 80 0D 03 02 00 00 00 00 66 [18:42:38]Write i2c OK [18:42:38]MH_I2C_Read... [18:42:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:42:38]Read from MH i2c: E2 [18:42:38]MH_I2C_Read... [18:42:38]Read from MH i2c: E2 0B 00 [18:42:38]MH_I2C_Read... [18:42:38]Read from MH i2c: E2 0B 00 E4 07 00 E0 A8 AD 23 5C AC AD A4 90 00 18 [18:42:38]RAPDU: E0 A8 AD 23 5C AC AD A4 90 00 [18:42:38]wFMCommunicate OK [18:42:38]SAM_PROTO_SignData done [18:42:38]FM_MakeSignedData done [18:42:38]CreateOFDProtocolMessage [18:42:38]wFMCommunicate request_size=4 [18:42:38]MH_SAM_APDU [18:42:38]CAPDU: 80 11 00 00 [18:42:38]Write to MH i2c: E2 08 00 E5 07 80 11 00 00 00 00 00 00 66 [18:42:38]Write i2c OK [18:42:38]MH_I2C_Read... [18:42:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:38]Read from MH i2c: E2 [18:42:38]MH_I2C_Read... [18:42:38]Read from MH i2c: E2 17 00 [18:42:38]MH_I2C_Read... [18:42:38]Read from MH i2c: E2 17 00 E5 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 BC [18:42:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:42:38]wFMCommunicate OK [18:42:38]CreateOFDProtocolMessage done [18:42:38]OFDSenderStorePacket 165412 [18:42:38]StoreOFDPacket docnum=165412 [18:42:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 28 81 07 01 D5 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 1D 01 00 00 F4 03 04 00 9D 6D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 24 86 02 00 35 04 06 00 83 83 E4 3E 67 55 E0 A8 AD 23 5C AC AD A4 [18:42:38]CheckFolder [18:42:38]dirname=/storage/ofd_packets [18:42:38]CheckFolder done [18:42:38]ProducePacketName [18:42:38]name=ofd_packets/00165412 [18:42:38]NVStorageSaveData ofd_packets/00165412 [18:42:38]File name is /storage/ofd_packets/00165412 [18:42:38]Write 301 bytes [18:42:38]NVStorageSaveData done [18:42:38]OFDSenderStorePacket done [18:42:38]KKMCreateOFDPacket done [18:42:38]NVStorageSaveData kkm_last_timestamp [18:42:38]File name is /storage/kkm_last_timestamp [18:42:38]Write 4 bytes [18:42:38]NVStorageSaveData done [18:42:38]ExternCall_PrintAddStr [18:42:38]wPrintStart [18:42:38]Write to MH i2c: 01 00 00 E6 07 ED [18:42:38]Write i2c OK [18:42:38]MH_I2C_Read... [18:42:38]Read from MH i2c: 01 [18:42:38]MH_I2C_Read... [18:42:38]Read from MH i2c: 01 07 00 [18:42:38]MH_I2C_Read... [18:42:38]Read from MH i2c: 01 07 00 E6 07 00 00 00 00 00 FF 0F 02 [18:42:38]RasterBufferAndPrint [18:42:38]line Счет N : (1)459527 [18:42:38]line ИНН: 02508201610067 [18:42:38]line Контрольно-Кассовый Чек [18:42:38]line ПРОДАЖА [18:42:38]line ТРК (МРК, ГНК) : 12 [18:42:38]line Товар: 2710124130 [18:42:38]line Аи-92-К-5 [18:42:38]line 10.640 * 65.80 [18:42:38]line = 700.11 [18:42:38]line НДС 12% НСП 1% [18:42:38]line > о реализуемом товаре [18:42:38]line ОКРУГЛЕНИЕ: -0.11 [18:42:38]line ИТОГО: 700.00 [18:42:38]line Внесено: 700.00 [18:42:38]line СДАЧА: 0.00 [18:42:38]line НСП 1% : 6.20 [18:42:38]line НДС 12% : 74.35 [18:42:38]line Наличными: 700.00 [18:42:38]line Безнал.: 0.00 [18:42:38]line Место: АЗС № 72 "Партнер Нефть" [18:42:38]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:42:38]line СНО: Общий режим [18:42:38]line Чек 285 15.07.2024 18:42 [18:42:38]line Смена: 448 ФФД: 1.0 [18:42:38]line ЗНМ: 0300000160 [18:42:38]line РНМ: 0000000000090829 [18:42:38]line Версия ККМ: 001 [18:42:38]line ФМ: 0000000000874718 [18:42:38]line ФД: 165412 [18:42:38]line ФПД: 144602493249365 [18:42:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T184237&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165412&fm=144602493249365&tin=02508201610067®Number=0000000000090829&sum=70000 [18:42:39]OFD Sender: Processing packet 165412 [packets to send 106, broken 105] [18:42:39]ProducePacketName [18:42:39]name=ofd_packets/00165412 [18:42:39]OFD Sender: To server: pG, [18:42:39]CommunicateWithHost lk.salyk.kg:30040 [18:42:39]ConnectInit lk.salyk.kg [18:42:39]written 0, free lines is 4095 [18:42:39]Connected sock=10 [18:42:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 28 81 07 01 D5 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 1D 01 00 00 F4 03 04 00 9D 6D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 24 86 02 00 35 04 06 00 83 83 E4 3E 67 55 E0 A8 AD 23 5C AC AD A4 [18:42:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 D7 BB 47 00 6E 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 24 86 02 00 F4 03 04 00 26 14 95 66 B6 04 01 00 00 ED 6B E2 07 49 8F A9 D8 [18:42:39]CommunicateWithHost err = 0 [18:42:39]CheckOFDResponse [18:42:39]1017 (14) - 77093643461234 [18:42:39]1041 (16) - 0000000000874718 [18:42:39]1040 (4) - 165412 [18:42:39]1012 (4) - 15.07.2024 12:20 [18:42:39]1206 (1) - 0 [18:42:39]OFD Sender: Remove packet 165412 [18:42:39]ProducePacketName [18:42:39]name=ofd_packets/00165412 [18:42:39]NVStorageDeleteData [18:42:39]Write to MH i2c: 01 00 00 10 08 18 [18:42:39]Write i2c OK [18:42:39]MH_I2C_Read... [18:42:39]Read from MH i2c: 01 [18:42:39]MH_I2C_Read... [18:42:39]Read from MH i2c: 01 07 00 [18:42:39]MH_I2C_Read... [18:42:39]Read from MH i2c: 01 07 00 10 08 00 00 00 00 00 F2 0C 1D [18:42:39]RasterBufferAndPrint [18:42:39]line [18:42:39]line [18:42:39]line [18:42:39]line [18:42:39]line [18:42:39]written 0, free lines is 3320 [18:42:39]MH_Cut [18:42:39]Write to MH i2c: D1 01 00 17 08 01 F1 [18:42:39]Write i2c OK [18:42:39]MH_I2C_Read... [18:42:39]Read from MH i2c: D1 [18:42:39]MH_I2C_Read... [18:42:39]Read from MH i2c: D1 01 00 [18:42:39]MH_I2C_Read... [18:42:39]Read from MH i2c: D1 01 00 17 08 00 F0 [18:42:39]Write to MH i2c: 01 00 00 18 08 20 [18:42:39]Write i2c OK [18:42:39]MH_I2C_Read... [18:42:39]OFD Sender: No OFD packet to send [18:42:40]*** Cut start [18:42:40]*** Partial cut [18:42:40]*** CUTSNS_PIN = 1 [18:42:40]*** CUTSNS_PIN = 0 [18:42:40]*** Brake cut motor [18:42:40]Read from MH i2c: 01 [18:42:40]MH_I2C_Read... [18:42:40]*** Stop cut motor [18:42:40]*** Cut end [18:42:40]Read from MH i2c: 01 07 00 [18:42:40]MH_I2C_Read... [18:42:40]Read from MH i2c: 01 07 00 18 08 00 00 00 00 00 FF 0F 35 [18:42:40]process_action close_receipt done [18:42:40]requested_data is exist [18:42:40]produce_requested_data [18:42:40]requested_item fm.sn is exist - process it [18:42:40]wFMCommunicate request_size=4 [18:42:40]MH_SAM_APDU [18:42:40]CAPDU: 80 11 00 00 [18:42:40]Write to MH i2c: E2 08 00 19 08 80 11 00 00 00 00 00 00 9B [18:42:40]Write i2c OK [18:42:40]MH_I2C_Read... [18:42:40]Read from MH i2c: E2 [18:42:40]MH_I2C_Read... [18:42:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:40]Read from MH i2c: E2 17 00 [18:42:40]MH_I2C_Read... [18:42:40]Read from MH i2c: E2 17 00 19 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F1 [18:42:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:42:40]wFMCommunicate OK [18:42:40]requested_item fd.num is exist - process it [18:42:40]SAM_PROTO_GetFieldsCounters [18:42:40]wFMCommunicate request_size=4 [18:42:40]MH_SAM_APDU [18:42:40]CAPDU: 80 13 00 00 [18:42:40]Write to MH i2c: E2 08 00 1A 08 80 13 00 00 00 00 00 00 9E [18:42:40]Write i2c OK [18:42:40]MH_I2C_Read... [18:42:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:42:41]Read from MH i2c: E2 [18:42:41]MH_I2C_Read... [18:42:41]Read from MH i2c: E2 62 00 [18:42:41]MH_I2C_Read... [18:42:41]Read from MH i2c: E2 62 00 1A 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 24 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 8C [18:42: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 24 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:42:41]wFMCommunicate OK [18:42:41]SAM_PROTO_GetFieldsCounters done [18:42:41]requested_item shift.num is exist - process it [18:42:41]requested_item shift.opened is exist - process it [18:42:41]req_shift_opened [18:42:41]FM_GetShiftState [18:42:41]SAM_PROTO_GetShiftState [18:42:41]wFMCommunicate request_size=4 [18:42:41]MH_SAM_APDU [18:42:41]CAPDU: 80 13 01 00 [18:42:41]Write to MH i2c: E2 08 00 1B 08 80 13 01 00 00 00 00 00 A0 [18:42:41]Write i2c OK [18:42:41]MH_I2C_Read... [18:42:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:41]Read from MH i2c: E2 [18:42:41]MH_I2C_Read... [18:42:41]Read from MH i2c: E2 0E 00 [18:42:41]MH_I2C_Read... [18:42:41]Read from MH i2c: E2 0E 00 1B 08 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 79 [18:42:41]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [18:42:41]wFMCommunicate OK [18:42:41]SAM_PROTO_GetShiftState done [18:42:41]FM_GetShiftState done [18:42:41]req_shift_opened done [18:42:41]requested_item shift.open_date is exist - process it [18:42:41]req_shift_open_date [18:42:41]req_shift_open_date done [18:42:41]produce_requested_data done [18:42:41]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165412,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [18:42:41]process_action_free close_receipt [18:42:41]json_value_free [18:42:41]json_value_free done [18:42:41]process_json_proto returns [18:42:41]Send response to host [18:42:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165412,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [18:42:41]free response buf [18:42:41]execute_script done [18:42:41]execute_script returns [18:42:41]free content buf [18:42:41]Sock 9.Close socket [18:42:41]Sock 9.Thread stoped [18:42:44]OFD Sender: No OFD packet to send [18:42:49]OFD Sender: No OFD packet to send [18:42:54]OFD Sender: No OFD packet to send [18:42:59]OFD Sender: No OFD packet to send [18:43:04]OFD Sender: No OFD packet to send [18:43:09]OFD Sender: No OFD packet to send [18:43:15]OFD Sender: No OFD packet to send [18:43:20]OFD Sender: No OFD packet to send [18:43:25]OFD Sender: No OFD packet to send [18:43:30]OFD Sender: No OFD packet to send [18:43:35]OFD Sender: No OFD packet to send [18:43:40]OFD Sender: No OFD packet to send [18:43:45]OFD Sender: No OFD packet to send [18:43:50]OFD Sender: No OFD packet to send [18:43:55]OFD Sender: No OFD packet to send [18:44:00]OFD Sender: No OFD packet to send [18:44:02]accept exits with 7 [18:44:02]New connection [18:44:02]New thread 3067297124 created [18:44:02]Thread 3067153764 joined [18:44:02]Waiting for new connection... [18:44:02] Sock 7.Parse request [18:44:02]Sock 7.Check first char [18:44:02]Sock 7.First char is OK [18:44:02]request: POST /json_proto HTTP/1.0 [18:44:02]Method: POST [18:44:02]URL: /json_proto [18:44:02]Method is POST - this is cgi request [18:44:02]url: /json_proto [18:44:02]query_string will be loaded in cgi processing [18:44:02]execute_cgi json_proto POST (null) [18:44:02]execute_cgi path=json_proto method=POST [18:44:02]POST find Content-Length [18:44:02]Host: 172.17.56.4:8080 [18:44:02]Content-Length: 678 [18:44:02]Content-Type: application/json [18:44:02] [18:44:02]POST finish read [18:44:02]Found Content-Length = 678 [18:44:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459528", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 11.710, "sum" : 770.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 770.00, "total" : 770.00, "payments": [ { "type": 0, "sum" : 770.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:44:02]execute_script... [18:44:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459528", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 11.710, "sum" : 770.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 770.00, "total" : 770.00, "payments": [ { "type": 0, "sum" : 770.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:44:02]POST & json_proto [18:44:02]process_json_proto [18:44:02]json parsed OK: [18:44:02]protocol is kg_v1.0 [18:44:02]action value=close_receipt [18:44:02]process_action close_receipt [18:44:02]cmd_close_receipt [18:44:02]MH_GetDate [18:44:02]Write to MH i2c: F0 00 00 1C 08 13 [18:44:02]Write i2c OK [18:44:02]MH_I2C_Read... [18:44:02]Read from MH i2c: F0 [18:44:02]MH_I2C_Read... [18:44:02]Read from MH i2c: F0 09 00 [18:44:02]MH_I2C_Read... [18:44:02]Read from MH i2c: F0 09 00 1C 08 00 F2 6D 95 66 C9 DC B2 64 31 [18:44:02]GetLastDocTimeStamp 1721068957 [18:44:02]current date 1721069042 [18:44:02]FM_GetShiftState [18:44:02]SAM_PROTO_GetShiftState [18:44:02]wFMCommunicate request_size=4 [18:44:02]MH_SAM_APDU [18:44:02]CAPDU: 80 13 01 00 [18:44:02]Write to MH i2c: E2 08 00 1D 08 80 13 01 00 00 00 00 00 A2 [18:44:02]Write i2c OK [18:44:02]MH_I2C_Read... [18:44:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:02]Read from MH i2c: E2 [18:44:02]MH_I2C_Read... [18:44:02]Read from MH i2c: E2 0E 00 [18:44:02]MH_I2C_Read... [18:44:02]Read from MH i2c: E2 0E 00 1D 08 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 7B [18:44:02]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [18:44:02]wFMCommunicate OK [18:44:02]SAM_PROTO_GetShiftState done [18:44:02]FM_GetShiftState done [18:44:02]opened in 1721003876 [18:44:02]opened+sec_in_day 1721090276 [18:44:02]quantity*price = 77051 [18:44:02]sum+1 = 77053 [18:44:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 770.00 Внесено: 770.00 СДАЧА: 0.00 НСП 1% : 6.82 НДС 12% : 81.82 Наличными: 770.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 286 15.07.2024 18:44 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165413 ФПД: 215234891978679 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T184402&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165413&fm=215234891978679&tin=02508201610067®Number=0000000000090829&sum=77000 [18:44:03]StoreToDocumentArchive [18:44:03]shift 448 fd 165413 [18:44:03]save to /storage/0448/doc_00165413 [18:44:03]save last doc name /storage/0448/doc_00165413 to /storage/kkm_last_doc_name [18:44:03]save OK [18:44:03]Clear old archive folders... [18:44:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:44:03]tlvbuf is 00833DD0 [18:44:03]SAM_PROTO_ClearQueue [18:44:03]wFMCommunicate request_size=4 [18:44:03]MH_SAM_APDU [18:44:03]CAPDU: 80 09 00 00 [18:44:03]Write to MH i2c: E2 08 00 2A 08 80 09 00 00 00 00 00 00 A4 [18:44:03]Write i2c OK [18:44:03]MH_I2C_Read... [18:44:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:44:03]Read from MH i2c: E2 [18:44:03]MH_I2C_Read... [18:44:03]Read from MH i2c: E2 03 00 [18:44:03]MH_I2C_Read... [18:44:03]Read from MH i2c: E2 03 00 2A 08 00 90 00 A6 [18:44:03]RAPDU: 90 00 [18:44:03]wFMCommunicate OK [18:44:03]SAM_PROTO_ClearQueue done [18:44:03]KKMCreateOFDPacket [18:44:03]OFDProtocolAddRootSTLVToBuf [18:44:03]FM_MakeSignedData [18:44:03]FM_MakeSignedData [18:44:03]SAM_PROTO_SignData [18:44:03]wFMCommunicate request_size=4 [18:44:03]MH_SAM_APDU [18:44:03]CAPDU: 80 0D 01 02 [18:44:03]Write to MH i2c: E2 08 00 2B 08 80 0D 01 02 00 00 00 00 AC [18:44:03]Write i2c OK [18:44:03]MH_I2C_Read... [18:44:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:44:03]Read from MH i2c: E2 [18:44:03]MH_I2C_Read... [18:44:03]Read from MH i2c: E2 03 00 [18:44:03]MH_I2C_Read... [18:44:03]Read from MH i2c: E2 03 00 2B 08 00 90 00 A7 [18:44:03]RAPDU: 90 00 [18:44:03]wFMCommunicate OK [18:44:03]wFMCommunicate request_size=255 [18:44:03]MH_SAM_APDU [18:44:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BE 2D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 FC 2C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 2C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 1F 00 00 00 00 07 04 06 00 C8 2C 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 01 00 00 F4 03 04 00 F2 6D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 25 86 02 00 35 04 06 00 C3 [18:44:03]Write to MH i2c: E2 02 01 2C 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BE 2D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 FC 2C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 2C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 1F 00 00 00 00 07 04 06 00 C8 2C 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 01 00 00 F4 03 04 00 F2 6D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 25 86 02 00 35 04 06 00 C3 00 00 F2 [18:44:03]Write i2c OK [18:44:03]MH_I2C_Read... [18:44:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:03]Read from MH i2c: E2 [18:44:03]MH_I2C_Read... [18:44:03]Read from MH i2c: E2 03 00 [18:44:03]MH_I2C_Read... [18:44:03]Read from MH i2c: E2 03 00 2C 08 00 90 00 A8 [18:44:03]RAPDU: 90 00 [18:44:03]wFMCommunicate OK [18:44:03]wFMCommunicate request_size=10 [18:44:03]MH_SAM_APDU [18:44:03]CAPDU: 80 0D 02 02 05 C1 47 47 97 B7 [18:44:03]Write to MH i2c: E2 0D 00 2D 08 80 0D 02 02 05 00 C1 47 47 97 B7 00 00 56 [18:44:03]Write i2c OK [18:44:03]MH_I2C_Read... [18:44:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:03]Read from MH i2c: E2 [18:44:03]MH_I2C_Read... [18:44:03]Read from MH i2c: E2 03 00 [18:44:03]MH_I2C_Read... [18:44:03]Read from MH i2c: E2 03 00 2D 08 00 90 00 A9 [18:44:03]RAPDU: 90 00 [18:44:03]wFMCommunicate OK [18:44:03]wFMCommunicate request_size=4 [18:44:03]MH_SAM_APDU [18:44:03]CAPDU: 80 0D 03 02 [18:44:03]Write to MH i2c: E2 08 00 2E 08 80 0D 03 02 00 00 00 00 B1 [18:44:03]Write i2c OK [18:44:03]MH_I2C_Read... [18:44:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:44:03]Read from MH i2c: E2 [18:44:03]MH_I2C_Read... [18:44:03]Read from MH i2c: E2 0B 00 [18:44:03]MH_I2C_Read... [18:44:03]Read from MH i2c: E2 0B 00 2E 08 00 83 3B 91 7F 45 AD 3E 5E 90 00 0E [18:44:03]RAPDU: 83 3B 91 7F 45 AD 3E 5E 90 00 [18:44:03]wFMCommunicate OK [18:44:03]SAM_PROTO_SignData done [18:44:03]FM_MakeSignedData done [18:44:03]CreateOFDProtocolMessage [18:44:03]wFMCommunicate request_size=4 [18:44:03]MH_SAM_APDU [18:44:03]CAPDU: 80 11 00 00 [18:44:03]Write to MH i2c: E2 08 00 2F 08 80 11 00 00 00 00 00 00 B1 [18:44:03]Write i2c OK [18:44:03]MH_I2C_Read... [18:44:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:03]Read from MH i2c: E2 [18:44:03]MH_I2C_Read... [18:44:03]Read from MH i2c: E2 17 00 [18:44:03]MH_I2C_Read... [18:44:03]Read from MH i2c: E2 17 00 2F 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 07 [18:44:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:44:03]wFMCommunicate OK [18:44:03]CreateOFDProtocolMessage done [18:44:03]OFDSenderStorePacket 165413 [18:44:03]StoreOFDPacket docnum=165413 [18:44:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 8E CF 07 01 78 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BE 2D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 FC 2C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 2C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 1F 00 00 00 00 07 04 06 00 C8 2C 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 01 00 00 F4 03 04 00 F2 6D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 25 86 02 00 35 04 06 00 C3 C1 47 47 97 B7 83 3B 91 7F 45 AD 3E 5E [18:44:03]CheckFolder [18:44:03]dirname=/storage/ofd_packets [18:44:03]CheckFolder done [18:44:03]ProducePacketName [18:44:03]name=ofd_packets/00165413 [18:44:03]NVStorageSaveData ofd_packets/00165413 [18:44:03]File name is /storage/ofd_packets/00165413 [18:44:03]Write 301 bytes [18:44:03]NVStorageSaveData done [18:44:03]OFDSenderStorePacket done [18:44:03]KKMCreateOFDPacket done [18:44:03]NVStorageSaveData kkm_last_timestamp [18:44:03]File name is /storage/kkm_last_timestamp [18:44:03]Write 4 bytes [18:44:03]NVStorageSaveData done [18:44:03]ExternCall_PrintAddStr [18:44:03]wPrintStart [18:44:03]Write to MH i2c: 01 00 00 30 08 38 [18:44:03]Write i2c OK [18:44:03]MH_I2C_Read... [18:44:03]Read from MH i2c: 01 [18:44:03]MH_I2C_Read... [18:44:03]Read from MH i2c: 01 07 00 [18:44:03]MH_I2C_Read... [18:44:03]Read from MH i2c: 01 07 00 30 08 00 00 00 00 00 FF 0F 4D [18:44:03]RasterBufferAndPrint [18:44:03]line Счет N : (1)459528 [18:44:03]line ИНН: 02508201610067 [18:44:03]line Контрольно-Кассовый Чек [18:44:03]line ПРОДАЖА [18:44:03]line ТРК (МРК, ГНК) : 12 [18:44:03]line Товар: 2710124130 [18:44:03]line Аи-92-К-5 [18:44:03]line 11.710 * 65.80 [18:44:03]line = 770.52 [18:44:03]line НДС 12% НСП 1% [18:44:03]line > о реализуемом товаре [18:44:03]line ОКРУГЛЕНИЕ: -0.52 [18:44:03]line ИТОГО: 770.00 [18:44:03]line Внесено: 770.00 [18:44:03]line СДАЧА: 0.00 [18:44:03]line НСП 1% : 6.82 [18:44:03]line НДС 12% : 81.82 [18:44:03]line Наличными: 770.00 [18:44:03]line Безнал.: 0.00 [18:44:03]line Место: АЗС № 72 "Партнер Нефть" [18:44:03]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:44:03]line СНО: Общий режим [18:44:03]line Чек 286 15.07.2024 18:44 [18:44:03]line Смена: 448 ФФД: 1.0 [18:44:03]line ЗНМ: 0300000160 [18:44:03]line РНМ: 0000000000090829 [18:44:03]line Версия ККМ: 001 [18:44:03]line ФМ: 0000000000874718 [18:44:03]line ФД: 165413 [18:44:03]line ФПД: 215234891978679 [18:44:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T184402&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165413&fm=215234891978679&tin=02508201610067®Number=0000000000090829&sum=77000 [18:44:04]OFD Sender: Processing packet 165413 [packets to send 106, broken 105] [18:44:04]ProducePacketName [18:44:04]name=ofd_packets/00165413 [18:44:04]OFD Sender: To server: pG, [18:44:04]CommunicateWithHost lk.salyk.kg:30040 [18:44:04]ConnectInit lk.salyk.kg [18:44:04]written 0, free lines is 4095 [18:44:04]Connected sock=10 [18:44:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 8E CF 07 01 78 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BE 2D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 FC 2C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 2C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 1F 00 00 00 00 07 04 06 00 C8 2C 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 01 00 00 F4 03 04 00 F2 6D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 25 86 02 00 35 04 06 00 C3 C1 47 47 97 B7 83 3B 91 7F 45 AD 3E 5E [18:44:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 22 84 47 00 62 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 25 86 02 00 F4 03 04 00 7C 14 95 66 B6 04 01 00 00 A5 E1 B1 3A 25 44 5B 8C [18:44:04]CommunicateWithHost err = 0 [18:44:04]CheckOFDResponse [18:44:04]1017 (14) - 77093643461234 [18:44:04]1041 (16) - 0000000000874718 [18:44:04]1040 (4) - 165413 [18:44:04]1012 (4) - 15.07.2024 12:22 [18:44:04]1206 (1) - 0 [18:44:04]OFD Sender: Remove packet 165413 [18:44:04]ProducePacketName [18:44:04]name=ofd_packets/00165413 [18:44:04]NVStorageDeleteData [18:44:04]Write to MH i2c: 01 00 00 5A 08 62 [18:44:04]Write i2c OK [18:44:04]MH_I2C_Read... [18:44:04]Read from MH i2c: 01 [18:44:04]MH_I2C_Read... [18:44:04]Read from MH i2c: 01 07 00 [18:44:04]MH_I2C_Read... [18:44:04]Read from MH i2c: 01 07 00 5A 08 00 00 00 00 00 02 0D 78 [18:44:04]RasterBufferAndPrint [18:44:04]line [18:44:04]line [18:44:04]line [18:44:04]line [18:44:04]line [18:44:04]written 0, free lines is 3336 [18:44:04]MH_Cut [18:44:04]Write to MH i2c: D1 01 00 61 08 01 3B [18:44:04]Write i2c OK [18:44:04]MH_I2C_Read... [18:44:04]Read from MH i2c: D1 [18:44:04]MH_I2C_Read... [18:44:04]Read from MH i2c: D1 01 00 [18:44:04]MH_I2C_Read... [18:44:04]Read from MH i2c: D1 01 00 61 08 00 3A [18:44:04]Write to MH i2c: 01 00 00 62 08 6A [18:44:04]Write i2c OK [18:44:04]MH_I2C_Read... [18:44:04]OFD Sender: No OFD packet to send [18:44:05]*** Cut start [18:44:05]*** Partial cut [18:44:05]*** CUTSNS_PIN = 1 [18:44:05]*** CUTSNS_PIN = 0 [18:44:05]*** Brake cut motor [18:44:05]Read from MH i2c: 01 [18:44:05]MH_I2C_Read... [18:44:05]*** Stop cut motor [18:44:05]*** Cut end [18:44:05]Read from MH i2c: 01 07 00 [18:44:05]MH_I2C_Read... [18:44:05]Read from MH i2c: 01 07 00 62 08 00 00 00 00 00 FF 0F 7F [18:44:05]process_action close_receipt done [18:44:05]requested_data is exist [18:44:05]produce_requested_data [18:44:05]requested_item fm.sn is exist - process it [18:44:05]wFMCommunicate request_size=4 [18:44:05]MH_SAM_APDU [18:44:05]CAPDU: 80 11 00 00 [18:44:05]Write to MH i2c: E2 08 00 63 08 80 11 00 00 00 00 00 00 E5 [18:44:05]Write i2c OK [18:44:05]MH_I2C_Read... [18:44:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:05]Read from MH i2c: E2 [18:44:05]MH_I2C_Read... [18:44:05]Read from MH i2c: E2 17 00 [18:44:05]MH_I2C_Read... [18:44:05]Read from MH i2c: E2 17 00 63 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3B [18:44:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:44:05]wFMCommunicate OK [18:44:05]requested_item fd.num is exist - process it [18:44:05]SAM_PROTO_GetFieldsCounters [18:44:05]wFMCommunicate request_size=4 [18:44:05]MH_SAM_APDU [18:44:05]CAPDU: 80 13 00 00 [18:44:05]Write to MH i2c: E2 08 00 64 08 80 13 00 00 00 00 00 00 E8 [18:44:05]Write i2c OK [18:44:05]MH_I2C_Read... [18:44:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:44:06]Read from MH i2c: E2 [18:44:06]MH_I2C_Read... [18:44:06]Read from MH i2c: E2 62 00 [18:44:06]MH_I2C_Read... [18:44:06]Read from MH i2c: E2 62 00 64 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 25 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 DA [18:44:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 25 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:44:06]wFMCommunicate OK [18:44:06]SAM_PROTO_GetFieldsCounters done [18:44:06]requested_item shift.num is exist - process it [18:44:06]requested_item shift.opened is exist - process it [18:44:06]req_shift_opened [18:44:06]FM_GetShiftState [18:44:06]SAM_PROTO_GetShiftState [18:44:06]wFMCommunicate request_size=4 [18:44:06]MH_SAM_APDU [18:44:06]CAPDU: 80 13 01 00 [18:44:06]Write to MH i2c: E2 08 00 65 08 80 13 01 00 00 00 00 00 EA [18:44:06]Write i2c OK [18:44:06]MH_I2C_Read... [18:44:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:06]Read from MH i2c: E2 [18:44:06]MH_I2C_Read... [18:44:06]Read from MH i2c: E2 0E 00 [18:44:06]MH_I2C_Read... [18:44:06]Read from MH i2c: E2 0E 00 65 08 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 C3 [18:44:06]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [18:44:06]wFMCommunicate OK [18:44:06]SAM_PROTO_GetShiftState done [18:44:06]FM_GetShiftState done [18:44:06]req_shift_opened done [18:44:06]requested_item shift.open_date is exist - process it [18:44:06]req_shift_open_date [18:44:06]req_shift_open_date done [18:44:06]produce_requested_data done [18:44:06]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165413,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [18:44:06]process_action_free close_receipt [18:44:06]json_value_free [18:44:06]json_value_free done [18:44:06]process_json_proto returns [18:44:06]Send response to host [18:44:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165413,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [18:44:06]free response buf [18:44:06]execute_script done [18:44:06]execute_script returns [18:44:06]free content buf [18:44:06]Sock 7.Close socket [18:44:06]Sock 7.Thread stoped [18:44:10]OFD Sender: No OFD packet to send [18:44:15]OFD Sender: No OFD packet to send [18:44:20]OFD Sender: No OFD packet to send [18:44:25]OFD Sender: No OFD packet to send [18:44:30]OFD Sender: No OFD packet to send [18:44:35]OFD Sender: No OFD packet to send [18:44:40]OFD Sender: No OFD packet to send [18:44:45]OFD Sender: No OFD packet to send [18:44:50]OFD Sender: No OFD packet to send [18:44:55]OFD Sender: No OFD packet to send [18:45:00]OFD Sender: No OFD packet to send [18:45:05]OFD Sender: No OFD packet to send [18:45:10]OFD Sender: No OFD packet to send [18:45:15]OFD Sender: No OFD packet to send [18:45:20]OFD Sender: No OFD packet to send [18:45:25]OFD Sender: No OFD packet to send [18:45:30]OFD Sender: No OFD packet to send [18:45:35]OFD Sender: No OFD packet to send [18:45:40]OFD Sender: No OFD packet to send [18:45:45]OFD Sender: No OFD packet to send [18:45:48]accept exits with 9 [18:45:48]New connection [18:45:48]New thread 3067153764 created [18:45:48]Thread 3067297124 joined [18:45:48]Waiting for new connection... [18:45:48] Sock 9.Parse request [18:45:48]Sock 9.Check first char [18:45:48]Sock 9.First char is OK [18:45:48]request: POST /json_proto HTTP/1.0 [18:45:48]Method: POST [18:45:48]URL: /json_proto [18:45:48]Method is POST - this is cgi request [18:45:48]url: /json_proto [18:45:48]query_string will be loaded in cgi processing [18:45:48]execute_cgi json_proto POST (null) [18:45:48]execute_cgi path=json_proto method=POST [18:45:48]POST find Content-Length [18:45:48]Host: 172.17.56.4:8080 [18:45:48]Content-Length: 677 [18:45:48]Content-Type: application/json [18:45:48] [18:45:48]POST finish read [18:45:48]Found Content-Length = 677 [18:45:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459529", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "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" ] } } [18:45:48]execute_script... [18:45:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459529", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "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" ] } } [18:45:48]POST & json_proto [18:45:48]process_json_proto [18:45:48]json parsed OK: [18:45:48]protocol is kg_v1.0 [18:45:48]action value=close_receipt [18:45:48]process_action close_receipt [18:45:48]cmd_close_receipt [18:45:48]MH_GetDate [18:45:48]Write to MH i2c: F0 00 00 66 08 5D [18:45:48]Write i2c OK [18:45:48]MH_I2C_Read... [18:45:48]Read from MH i2c: F0 [18:45:48]MH_I2C_Read... [18:45:48]Read from MH i2c: F0 09 00 [18:45:48]MH_I2C_Read... [18:45:48]Read from MH i2c: F0 09 00 66 08 00 5C 6E 95 66 C9 DC B2 64 E6 [18:45:48]GetLastDocTimeStamp 1721069042 [18:45:48]current date 1721069148 [18:45:48]FM_GetShiftState [18:45:48]SAM_PROTO_GetShiftState [18:45:48]wFMCommunicate request_size=4 [18:45:48]MH_SAM_APDU [18:45:48]CAPDU: 80 13 01 00 [18:45:48]Write to MH i2c: E2 08 00 67 08 80 13 01 00 00 00 00 00 EC [18:45:48]Write i2c OK [18:45:48]MH_I2C_Read... [18:45:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:48]Read from MH i2c: E2 [18:45:48]MH_I2C_Read... [18:45:48]Read from MH i2c: E2 0E 00 [18:45:48]MH_I2C_Read... [18:45:48]Read from MH i2c: E2 0E 00 67 08 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 C5 [18:45:48]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [18:45:48]wFMCommunicate OK [18:45:48]SAM_PROTO_GetShiftState done [18:45:48]FM_GetShiftState done [18:45:48]opened in 1721003876 [18:45:48]opened+sec_in_day 1721090276 [18:45:48]quantity*price = 60009 [18:45:48]sum+1 = 60011 [18:45:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 287 15.07.2024 18:45 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165414 ФПД: 123535073852647 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T184548&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165414&fm=123535073852647&tin=02508201610067®Number=0000000000090829&sum=60000 [18:45:49]StoreToDocumentArchive [18:45:49]shift 448 fd 165414 [18:45:49]save to /storage/0448/doc_00165414 [18:45:49]save last doc name /storage/0448/doc_00165414 to /storage/kkm_last_doc_name [18:45:49]save OK [18:45:49]Clear old archive folders... [18:45:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:45:49]tlvbuf is 008832F0 [18:45:49]SAM_PROTO_ClearQueue [18:45:49]wFMCommunicate request_size=4 [18:45:49]MH_SAM_APDU [18:45:49]CAPDU: 80 09 00 00 [18:45:49]Write to MH i2c: E2 08 00 74 08 80 09 00 00 00 00 00 00 EE [18:45:49]Write i2c OK [18:45:49]MH_I2C_Read... [18:45:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:45:49]Read from MH i2c: E2 [18:45:49]MH_I2C_Read... [18:45:49]Read from MH i2c: E2 03 00 [18:45:49]MH_I2C_Read... [18:45:49]Read from MH i2c: E2 03 00 74 08 00 90 00 F0 [18:45:49]RAPDU: 90 00 [18:45:49]wFMCommunicate OK [18:45:49]SAM_PROTO_ClearQueue done [18:45:49]KKMCreateOFDPacket [18:45:49]OFDProtocolAddRootSTLVToBuf [18:45:49]FM_MakeSignedData [18:45:49]FM_MakeSignedData [18:45:49]SAM_PROTO_SignData [18:45:49]wFMCommunicate request_size=4 [18:45:49]MH_SAM_APDU [18:45:49]CAPDU: 80 0D 01 02 [18:45:49]Write to MH i2c: E2 08 00 75 08 80 0D 01 02 00 00 00 00 F6 [18:45:49]Write i2c OK [18:45:49]MH_I2C_Read... [18:45:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:45:49]Read from MH i2c: E2 [18:45:49]MH_I2C_Read... [18:45:49]Read from MH i2c: E2 03 00 [18:45:49]MH_I2C_Read... [18:45:49]Read from MH i2c: E2 03 00 75 08 00 90 00 F1 [18:45:49]RAPDU: 90 00 [18:45:49]wFMCommunicate OK [18:45:49]wFMCommunicate request_size=255 [18:45:49]MH_SAM_APDU [18:45:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 5C 6E 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 26 86 02 00 35 04 06 00 70 [18:45:49]Write to MH i2c: E2 02 01 76 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 5C 6E 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 26 86 02 00 35 04 06 00 70 00 00 54 [18:45:49]Write i2c OK [18:45:49]MH_I2C_Read... [18:45:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:49]Read from MH i2c: E2 [18:45:49]MH_I2C_Read... [18:45:49]Read from MH i2c: E2 03 00 [18:45:49]MH_I2C_Read... [18:45:49]Read from MH i2c: E2 03 00 76 08 00 90 00 F2 [18:45:49]RAPDU: 90 00 [18:45:49]wFMCommunicate OK [18:45:49]wFMCommunicate request_size=10 [18:45:49]MH_SAM_APDU [18:45:49]CAPDU: 80 0D 02 02 05 5A C0 31 BC E7 [18:45:49]Write to MH i2c: E2 0D 00 77 08 80 0D 02 02 05 00 5A C0 31 BC E7 00 00 F1 [18:45:49]Write i2c OK [18:45:49]MH_I2C_Read... [18:45:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:49]Read from MH i2c: E2 [18:45:49]MH_I2C_Read... [18:45:49]Read from MH i2c: E2 03 00 [18:45:49]MH_I2C_Read... [18:45:49]Read from MH i2c: E2 03 00 77 08 00 90 00 F3 [18:45:49]RAPDU: 90 00 [18:45:49]wFMCommunicate OK [18:45:49]wFMCommunicate request_size=4 [18:45:49]MH_SAM_APDU [18:45:49]CAPDU: 80 0D 03 02 [18:45:49]Write to MH i2c: E2 08 00 78 08 80 0D 03 02 00 00 00 00 FB [18:45:49]Write i2c OK [18:45:49]MH_I2C_Read... [18:45:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:45:50]Read from MH i2c: E2 [18:45:50]MH_I2C_Read... [18:45:50]Read from MH i2c: E2 0B 00 [18:45:50]MH_I2C_Read... [18:45:50]Read from MH i2c: E2 0B 00 78 08 00 D9 7E C9 27 88 78 D1 4B 90 00 5F [18:45:50]RAPDU: D9 7E C9 27 88 78 D1 4B 90 00 [18:45:50]wFMCommunicate OK [18:45:50]SAM_PROTO_SignData done [18:45:50]FM_MakeSignedData done [18:45:50]CreateOFDProtocolMessage [18:45:50]wFMCommunicate request_size=4 [18:45:50]MH_SAM_APDU [18:45:50]CAPDU: 80 11 00 00 [18:45:50]Write to MH i2c: E2 08 00 79 08 80 11 00 00 00 00 00 00 FB [18:45:50]Write i2c OK [18:45:50]MH_I2C_Read... [18:45:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:50]Read from MH i2c: E2 [18:45:50]MH_I2C_Read... [18:45:50]Read from MH i2c: E2 17 00 [18:45:50]MH_I2C_Read... [18:45:50]Read from MH i2c: E2 17 00 79 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 51 [18:45:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:45:50]wFMCommunicate OK [18:45:50]CreateOFDProtocolMessage done [18:45:50]OFDSenderStorePacket 165414 [18:45:50]StoreOFDPacket docnum=165414 [18:45:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 06 21 07 01 E4 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 5C 6E 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 26 86 02 00 35 04 06 00 70 5A C0 31 BC E7 D9 7E C9 27 88 78 D1 4B [18:45:50]CheckFolder [18:45:50]dirname=/storage/ofd_packets [18:45:50]CheckFolder done [18:45:50]ProducePacketName [18:45:50]name=ofd_packets/00165414 [18:45:50]NVStorageSaveData ofd_packets/00165414 [18:45:50]File name is /storage/ofd_packets/00165414 [18:45:50]Write 301 bytes [18:45:50]NVStorageSaveData done [18:45:50]OFDSenderStorePacket done [18:45:50]KKMCreateOFDPacket done [18:45:50]NVStorageSaveData kkm_last_timestamp [18:45:50]File name is /storage/kkm_last_timestamp [18:45:50]Write 4 bytes [18:45:50]NVStorageSaveData done [18:45:50]ExternCall_PrintAddStr [18:45:50]wPrintStart [18:45:50]Write to MH i2c: 01 00 00 7A 08 82 [18:45:50]Write i2c OK [18:45:50]MH_I2C_Read... [18:45:50]Read from MH i2c: 01 [18:45:50]MH_I2C_Read... [18:45:50]Read from MH i2c: 01 07 00 [18:45:50]MH_I2C_Read... [18:45:50]Read from MH i2c: 01 07 00 7A 08 00 00 00 00 00 FF 0F 97 [18:45:50]RasterBufferAndPrint [18:45:50]line Счет N : (1)459529 [18:45:50]line ИНН: 02508201610067 [18:45:50]line Контрольно-Кассовый Чек [18:45:50]line ПРОДАЖА [18:45:50]line ТРК (МРК, ГНК) : 22 [18:45:50]line Товар: 2710124130 [18:45:50]line Аи-92-К-5 [18:45:50]line 9.120 * 65.80 [18:45:50]line = 600.10 [18:45:50]line НДС 12% НСП 1% [18:45:50]line > о реализуемом товаре [18:45:50]line ОКРУГЛЕНИЕ: -0.10 [18:45:50]line ИТОГО: 600.00 [18:45:50]line Внесено: 600.00 [18:45:50]line СДАЧА: 0.00 [18:45:50]line НСП 1% : 5.31 [18:45:50]line НДС 12% : 63.73 [18:45:50]line Наличными: 600.00 [18:45:50]line Безнал.: 0.00 [18:45:50]line Место: АЗС № 72 "Партнер Нефть" [18:45:50]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:45:50]line СНО: Общий режим [18:45:50]line Чек 287 15.07.2024 18:45 [18:45:50]line Смена: 448 ФФД: 1.0 [18:45:50]line ЗНМ: 0300000160 [18:45:50]line РНМ: 0000000000090829 [18:45:50]line Версия ККМ: 001 [18:45:50]line ФМ: 0000000000874718 [18:45:50]line ФД: 165414 [18:45:50]line ФПД: 123535073852647 [18:45:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T184548&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165414&fm=123535073852647&tin=02508201610067®Number=0000000000090829&sum=60000 [18:45:50]OFD Sender: Processing packet 165414 [packets to send 106, broken 105] [18:45:50]ProducePacketName [18:45:50]name=ofd_packets/00165414 [18:45:50]OFD Sender: To server: pG, [18:45:50]CommunicateWithHost lk.salyk.kg:30040 [18:45:50]ConnectInit lk.salyk.kg [18:45:50]written 0, free lines is 4095 [18:45:50]Connected sock=10 [18:45: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 37 31 38 0F 01 00 00 06 21 07 01 E4 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 5C 6E 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 26 86 02 00 35 04 06 00 70 5A C0 31 BC E7 D9 7E C9 27 88 78 D1 4B [18:45:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 C5 59 47 00 22 D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 26 86 02 00 F4 03 04 00 E6 14 95 66 B6 04 01 00 00 23 32 26 53 FB AC DA 06 [18:45:50]CommunicateWithHost err = 0 [18:45:50]CheckOFDResponse [18:45:50]1017 (14) - 77093643461234 [18:45:50]1041 (16) - 0000000000874718 [18:45:50]1040 (4) - 165414 [18:45:50]1012 (4) - 15.07.2024 12:24 [18:45:50]1206 (1) - 0 [18:45:50]OFD Sender: Remove packet 165414 [18:45:50]ProducePacketName [18:45:50]name=ofd_packets/00165414 [18:45:50]NVStorageDeleteData [18:45:50]Write to MH i2c: 01 00 00 A4 08 AC [18:45:50]Write i2c OK [18:45:50]MH_I2C_Read... [18:45:50]Read from MH i2c: 01 [18:45:50]MH_I2C_Read... [18:45:50]Read from MH i2c: 01 07 00 [18:45:50]MH_I2C_Read... [18:45:50]Read from MH i2c: 01 07 00 A4 08 00 00 00 00 00 F3 0C B2 [18:45:50]RasterBufferAndPrint [18:45:50]line [18:45:50]line [18:45:50]line [18:45:50]line [18:45:50]line [18:45:50]written 0, free lines is 3322 [18:45:50]MH_Cut [18:45:50]Write to MH i2c: D1 01 00 AB 08 01 85 [18:45:50]Write i2c OK [18:45:50]MH_I2C_Read... [18:45:50]Read from MH i2c: D1 [18:45:50]MH_I2C_Read... [18:45:50]Read from MH i2c: D1 01 00 [18:45:50]MH_I2C_Read... [18:45:50]Read from MH i2c: D1 01 00 AB 08 00 84 [18:45:50]Write to MH i2c: 01 00 00 AC 08 B4 [18:45:50]Write i2c OK [18:45:50]MH_I2C_Read... [18:45:51]OFD Sender: No OFD packet to send [18:45:51]*** Cut start [18:45:51]*** Partial cut [18:45:51]*** CUTSNS_PIN = 1 [18:45:51]*** CUTSNS_PIN = 0 [18:45:51]*** Brake cut motor [18:45:52]Read from MH i2c: 01 [18:45:52]MH_I2C_Read... [18:45:52]*** Stop cut motor [18:45:52]*** Cut end [18:45:52]Read from MH i2c: 01 07 00 [18:45:52]MH_I2C_Read... [18:45:52]Read from MH i2c: 01 07 00 AC 08 00 00 00 00 00 FF 0F C9 [18:45:52]process_action close_receipt done [18:45:52]requested_data is exist [18:45:52]produce_requested_data [18:45:52]requested_item fm.sn is exist - process it [18:45:52]wFMCommunicate request_size=4 [18:45:52]MH_SAM_APDU [18:45:52]CAPDU: 80 11 00 00 [18:45:52]Write to MH i2c: E2 08 00 AD 08 80 11 00 00 00 00 00 00 2F [18:45:52]Write i2c OK [18:45:52]MH_I2C_Read... [18:45:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:52]Read from MH i2c: E2 [18:45:52]MH_I2C_Read... [18:45:52]Read from MH i2c: E2 17 00 [18:45:52]MH_I2C_Read... [18:45:52]Read from MH i2c: E2 17 00 AD 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 85 [18:45:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:45:52]wFMCommunicate OK [18:45:52]requested_item fd.num is exist - process it [18:45:52]SAM_PROTO_GetFieldsCounters [18:45:52]wFMCommunicate request_size=4 [18:45:52]MH_SAM_APDU [18:45:52]CAPDU: 80 13 00 00 [18:45:52]Write to MH i2c: E2 08 00 AE 08 80 13 00 00 00 00 00 00 32 [18:45:52]Write i2c OK [18:45:52]MH_I2C_Read... [18:45:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:45:52]Read from MH i2c: E2 [18:45:52]MH_I2C_Read... [18:45:52]Read from MH i2c: E2 62 00 [18:45:52]MH_I2C_Read... [18:45:52]Read from MH i2c: E2 62 00 AE 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 26 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 28 [18:45:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 26 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:45:52]wFMCommunicate OK [18:45:52]SAM_PROTO_GetFieldsCounters done [18:45:52]requested_item shift.num is exist - process it [18:45:52]requested_item shift.opened is exist - process it [18:45:52]req_shift_opened [18:45:52]FM_GetShiftState [18:45:52]SAM_PROTO_GetShiftState [18:45:52]wFMCommunicate request_size=4 [18:45:52]MH_SAM_APDU [18:45:52]CAPDU: 80 13 01 00 [18:45:52]Write to MH i2c: E2 08 00 AF 08 80 13 01 00 00 00 00 00 34 [18:45:52]Write i2c OK [18:45:52]MH_I2C_Read... [18:45:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:52]Read from MH i2c: E2 [18:45:52]MH_I2C_Read... [18:45:52]Read from MH i2c: E2 0E 00 [18:45:52]MH_I2C_Read... [18:45:52]Read from MH i2c: E2 0E 00 AF 08 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 0D [18:45:52]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [18:45:52]wFMCommunicate OK [18:45:52]SAM_PROTO_GetShiftState done [18:45:52]FM_GetShiftState done [18:45:52]req_shift_opened done [18:45:52]requested_item shift.open_date is exist - process it [18:45:52]req_shift_open_date [18:45:52]req_shift_open_date done [18:45:52]produce_requested_data done [18:45:52]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165414,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [18:45:52]process_action_free close_receipt [18:45:52]json_value_free [18:45:52]json_value_free done [18:45:52]process_json_proto returns [18:45:52]Send response to host [18:45:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165414,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [18:45:52]free response buf [18:45:52]execute_script done [18:45:52]execute_script returns [18:45:52]free content buf [18:45:52]Sock 9.Close socket [18:45:52]Sock 9.Thread stoped [18:45:56]OFD Sender: No OFD packet to send [18:46:01]OFD Sender: No OFD packet to send [18:46:06]OFD Sender: No OFD packet to send [18:46:11]OFD Sender: No OFD packet to send [18:46:16]OFD Sender: No OFD packet to send [18:46:21]OFD Sender: No OFD packet to send [18:46:26]OFD Sender: No OFD packet to send [18:46:31]OFD Sender: No OFD packet to send [18:46:36]OFD Sender: No OFD packet to send [18:46:41]OFD Sender: No OFD packet to send [18:46:46]OFD Sender: No OFD packet to send [18:46:51]OFD Sender: No OFD packet to send [18:46:56]OFD Sender: No OFD packet to send [18:47:01]OFD Sender: No OFD packet to send [18:47:06]OFD Sender: No OFD packet to send [18:47:11]OFD Sender: No OFD packet to send [18:47:16]OFD Sender: No OFD packet to send [18:47:21]OFD Sender: No OFD packet to send [18:47:26]OFD Sender: No OFD packet to send [18:47:31]OFD Sender: No OFD packet to send [18:47:36]OFD Sender: No OFD packet to send [18:47:41]OFD Sender: No OFD packet to send [18:47:46]OFD Sender: No OFD packet to send [18:47:51]OFD Sender: No OFD packet to send [18:47:56]OFD Sender: No OFD packet to send [18:48:01]OFD Sender: No OFD packet to send [18:48:06]OFD Sender: No OFD packet to send [18:48:11]OFD Sender: No OFD packet to send [18:48:16]OFD Sender: No OFD packet to send [18:48:21]OFD Sender: No OFD packet to send [18:48:26]OFD Sender: No OFD packet to send [18:48:31]OFD Sender: No OFD packet to send [18:48:36]OFD Sender: No OFD packet to send [18:48:41]OFD Sender: No OFD packet to send [18:48:46]OFD Sender: No OFD packet to send [18:48:51]OFD Sender: No OFD packet to send [18:48:56]OFD Sender: No OFD packet to send [18:49:01]OFD Sender: No OFD packet to send [18:49:06]OFD Sender: No OFD packet to send [18:49:11]OFD Sender: No OFD packet to send [18:49:16]OFD Sender: No OFD packet to send [18:49:21]OFD Sender: No OFD packet to send [18:49:26]OFD Sender: No OFD packet to send [18:49:31]OFD Sender: No OFD packet to send [18:49:36]OFD Sender: No OFD packet to send [18:49:41]OFD Sender: No OFD packet to send [18:49:46]OFD Sender: No OFD packet to send [18:49:51]OFD Sender: No OFD packet to send [18:49:56]OFD Sender: No OFD packet to send [18:50:01]OFD Sender: No OFD packet to send [18:50:06]OFD Sender: No OFD packet to send [18:50:11]OFD Sender: No OFD packet to send [18:50:16]OFD Sender: No OFD packet to send [18:50:21]OFD Sender: No OFD packet to send [18:50:26]OFD Sender: No OFD packet to send [18:50:27]accept exits with 7 [18:50:27]New connection [18:50:27]New thread 3067297124 created [18:50:27]Thread 3067153764 joined [18:50:27]Waiting for new connection... [18:50:27] Sock 7.Parse request [18:50:27]Sock 7.Check first char [18:50:27]Sock 7.First char is OK [18:50:27]request: POST /json_proto HTTP/1.0 [18:50:27]Method: POST [18:50:27]URL: /json_proto [18:50:27]Method is POST - this is cgi request [18:50:27]url: /json_proto [18:50:27]query_string will be loaded in cgi processing [18:50:27]execute_cgi json_proto POST (null) [18:50:27]execute_cgi path=json_proto method=POST [18:50:27]POST find Content-Length [18:50:27]Host: 172.17.56.4:8080 [18:50:27]Content-Length: 840 [18:50:27]Content-Type: application/json [18:50:27] [18:50:27]POST finish read [18:50:27]Found Content-Length = 840 [18:50:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459530", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 35.090, "sum" : 2500.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2500.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:50:27]execute_script... [18:50:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459530", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 35.090, "sum" : 2500.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2500.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:50:27]POST & json_proto [18:50:27]process_json_proto [18:50:27]json parsed OK: [18:50:27]protocol is kg_v1.0 [18:50:27]action value=close_receipt [18:50:27]process_action close_receipt [18:50:27]cmd_close_receipt [18:50:27]MH_GetDate [18:50:27]Write to MH i2c: F0 00 00 B0 08 A7 [18:50:27]Write i2c OK [18:50:27]MH_I2C_Read... [18:50:27]Read from MH i2c: F0 [18:50:27]MH_I2C_Read... [18:50:27]Read from MH i2c: F0 09 00 [18:50:27]MH_I2C_Read... [18:50:27]Read from MH i2c: F0 09 00 B0 08 00 74 6F 95 66 C9 DC B2 64 49 [18:50:27]GetLastDocTimeStamp 1721069148 [18:50:27]current date 1721069428 [18:50:27]FM_GetShiftState [18:50:27]SAM_PROTO_GetShiftState [18:50:27]wFMCommunicate request_size=4 [18:50:27]MH_SAM_APDU [18:50:27]CAPDU: 80 13 01 00 [18:50:27]Write to MH i2c: E2 08 00 B1 08 80 13 01 00 00 00 00 00 36 [18:50:27]Write i2c OK [18:50:27]MH_I2C_Read... [18:50:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:50:27]Read from MH i2c: E2 [18:50:27]MH_I2C_Read... [18:50:27]Read from MH i2c: E2 0E 00 [18:50:27]MH_I2C_Read... [18:50:27]Read from MH i2c: E2 0E 00 B1 08 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 0F [18:50:27]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [18:50:27]wFMCommunicate OK [18:50:27]SAM_PROTO_GetShiftState done [18:50:27]FM_GetShiftState done [18:50:27]opened in 1721003876 [18:50:27]opened+sec_in_day 1721090276 [18:50:27]quantity*price = 250051 [18:50:27]sum+1 = 250052 [18:50:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.51 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 0.00 Безнал.: 2500.51 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 288 15.07.2024 18:50 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874718 ФД: 165415 ФПД: 16170105926138 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T185028&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165415&fm=16170105926138&tin=02508201610067®Number=0000000000090829&sum=250051 [18:50:28]StoreToDocumentArchive [18:50:28]shift 448 fd 165415 [18:50:28]save to /storage/0448/doc_00165415 [18:50:28]save last doc name /storage/0448/doc_00165415 to /storage/kkm_last_doc_name [18:50:28]save OK [18:50:28]Clear old archive folders... [18:50:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:50:28]tlvbuf is 00837D30 [18:50:28]SAM_PROTO_ClearQueue [18:50:28]wFMCommunicate request_size=4 [18:50:28]MH_SAM_APDU [18:50:28]CAPDU: 80 09 00 00 [18:50:28]Write to MH i2c: E2 08 00 BE 08 80 09 00 00 00 00 00 00 38 [18:50:28]Write i2c OK [18:50:28]MH_I2C_Read... [18:50:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:50:28]Read from MH i2c: E2 [18:50:28]MH_I2C_Read... [18:50:28]Read from MH i2c: E2 03 00 [18:50:28]MH_I2C_Read... [18:50:28]Read from MH i2c: E2 03 00 BE 08 00 90 00 3A [18:50:28]RAPDU: 90 00 [18:50:28]wFMCommunicate OK [18:50:28]SAM_PROTO_ClearQueue done [18:50:28]KKMCreateOFDPacket [18:50:28]OFDProtocolAddRootSTLVToBuf [18:50:28]FM_MakeSignedData [18:50:28]FM_MakeSignedData [18:50:28]SAM_PROTO_SignData [18:50:28]wFMCommunicate request_size=4 [18:50:28]MH_SAM_APDU [18:50:28]CAPDU: 80 0D 01 02 [18:50:28]Write to MH i2c: E2 08 00 BF 08 80 0D 01 02 00 00 00 00 40 [18:50:28]Write i2c OK [18:50:28]MH_I2C_Read... [18:50:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:50:28]Read from MH i2c: E2 [18:50:28]MH_I2C_Read... [18:50:28]Read from MH i2c: E2 03 00 [18:50:28]MH_I2C_Read... [18:50:28]Read from MH i2c: E2 03 00 BF 08 00 90 00 3B [18:50:28]RAPDU: 90 00 [18:50:28]wFMCommunicate OK [18:50:28]wFMCommunicate request_size=255 [18:50:28]MH_SAM_APDU [18:50:28]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 12 89 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C3 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C3 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 74 6F 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 27 86 02 00 35 04 06 00 0E B4 E5 6B [18:50:28]Write to MH i2c: E2 02 01 C0 08 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 12 89 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C3 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C3 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 74 6F 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 27 86 02 00 35 04 06 00 0E B4 E5 6B 00 00 40 [18:50:28]Write i2c OK [18:50:28]MH_I2C_Read... [18:50:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:50:29]Read from MH i2c: E2 [18:50:29]MH_I2C_Read... [18:50:29]Read from MH i2c: E2 03 00 [18:50:29]MH_I2C_Read... [18:50:29]Read from MH i2c: E2 03 00 C0 08 00 90 00 3C [18:50:29]RAPDU: 90 00 [18:50:29]wFMCommunicate OK [18:50:29]wFMCommunicate request_size=7 [18:50:29]MH_SAM_APDU [18:50:29]CAPDU: 80 0D 02 02 02 71 FA [18:50:29]Write to MH i2c: E2 0A 00 C1 08 80 0D 02 02 02 00 71 FA 00 00 B2 [18:50:29]Write i2c OK [18:50:29]MH_I2C_Read... [18:50:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:50:29]Read from MH i2c: E2 [18:50:29]MH_I2C_Read... [18:50:29]Read from MH i2c: E2 03 00 [18:50:29]MH_I2C_Read... [18:50:29]Read from MH i2c: E2 03 00 C1 08 00 90 00 3D [18:50:29]RAPDU: 90 00 [18:50:29]wFMCommunicate OK [18:50:29]wFMCommunicate request_size=4 [18:50:29]MH_SAM_APDU [18:50:29]CAPDU: 80 0D 03 02 [18:50:29]Write to MH i2c: E2 08 00 C2 08 80 0D 03 02 00 00 00 00 45 [18:50:29]Write i2c OK [18:50:29]MH_I2C_Read... [18:50:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:50:29]Read from MH i2c: E2 [18:50:29]MH_I2C_Read... [18:50:29]Read from MH i2c: E2 0B 00 [18:50:29]MH_I2C_Read... [18:50:29]Read from MH i2c: E2 0B 00 C2 08 00 25 D9 27 DC D4 AF 1D AE 90 00 95 [18:50:29]RAPDU: 25 D9 27 DC D4 AF 1D AE 90 00 [18:50:29]wFMCommunicate OK [18:50:29]SAM_PROTO_SignData done [18:50:29]FM_MakeSignedData done [18:50:29]CreateOFDProtocolMessage [18:50:29]wFMCommunicate request_size=4 [18:50:29]MH_SAM_APDU [18:50:29]CAPDU: 80 11 00 00 [18:50:29]Write to MH i2c: E2 08 00 C3 08 80 11 00 00 00 00 00 00 45 [18:50:29]Write i2c OK [18:50:29]MH_I2C_Read... [18:50:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:50:29]Read from MH i2c: E2 [18:50:29]MH_I2C_Read... [18:50:29]Read from MH i2c: E2 17 00 [18:50:29]MH_I2C_Read... [18:50:29]Read from MH i2c: E2 17 00 C3 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 9B [18:50:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:50:29]wFMCommunicate OK [18:50:29]CreateOFDProtocolMessage done [18:50:29]OFDSenderStorePacket 165415 [18:50:29]StoreOFDPacket docnum=165415 [18:50:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 F4 E6 04 01 41 71 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 12 89 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C3 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C3 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 74 6F 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 27 86 02 00 35 04 06 00 0E B4 E5 6B 71 FA 25 D9 27 DC D4 AF 1D AE [18:50:29]CheckFolder [18:50:29]dirname=/storage/ofd_packets [18:50:29]CheckFolder done [18:50:29]ProducePacketName [18:50:29]name=ofd_packets/00165415 [18:50:29]NVStorageSaveData ofd_packets/00165415 [18:50:29]File name is /storage/ofd_packets/00165415 [18:50:29]Write 298 bytes [18:50:29]NVStorageSaveData done [18:50:29]OFDSenderStorePacket done [18:50:29]KKMCreateOFDPacket done [18:50:29]NVStorageSaveData kkm_last_timestamp [18:50:29]File name is /storage/kkm_last_timestamp [18:50:29]Write 4 bytes [18:50:29]NVStorageSaveData done [18:50:29]ExternCall_PrintAddStr [18:50:29]wPrintStart [18:50:29]Write to MH i2c: 01 00 00 C4 08 CC [18:50:29]Write i2c OK [18:50:29]MH_I2C_Read... [18:50:29]Read from MH i2c: 01 [18:50:29]MH_I2C_Read... [18:50:29]Read from MH i2c: 01 07 00 [18:50:29]MH_I2C_Read... [18:50:29]Read from MH i2c: 01 07 00 C4 08 00 00 00 00 00 FF 0F E1 [18:50:29]RasterBufferAndPrint [18:50:29]line Счет N : (1)459530 [18:50:29]line ИНН: 02508201610067 [18:50:29]line Контрольно-Кассовый Чек [18:50:29]line ПРОДАЖА [18:50:29]line ТРК (МРК, ГНК) : 11 [18:50:29]line Товар: 2710194210 [18:50:29]line ДТ-К-5 [18:50:29]line 35.090 * 71.26 [18:50:29]line = 2500.51 [18:50:29]line НДС 12% НСП 1% [18:50:29]line > о реализуемом товаре [18:50:29]line ИТОГО: 2500.51 [18:50:29]line НСП 1% : 22.13 [18:50:29]line НДС 12% : 265.54 [18:50:29]line Наличными: 0.00 [18:50:29]line Безнал.: 2500.51 [18:50:29]line Место: АЗС № 72 "Партнер Нефть" [18:50:29]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:50:29]line СНО: Общий режим [18:50:29]line Чек 288 15.07.2024 18:50 [18:50:29]line Смена: 448 ФФД: 1.0 [18:50:29]line ЗНМ: 0300000160 [18:50:29]line РНМ: 0000000000090829 [18:50:29]line Версия ККМ: 001 [18:50:29]line Платежная система: АКБ Кыргызстан [18:50:29]line ФМ: 0000000000874718 [18:50:29]line ФД: 165415 [18:50:29]line ФПД: 16170105926138 [18:50:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T185028&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165415&fm=16170105926138&tin=02508201610067®Number=0000000000090829&sum=250051 [18:50:29]OFD Sender: Processing packet 165415 [packets to send 106, broken 105] [18:50:29]ProducePacketName [18:50:29]name=ofd_packets/00165415 [18:50:29]OFD Sender: To server: pG, [18:50:29]CommunicateWithHost lk.salyk.kg:30040 [18:50:29]ConnectInit lk.salyk.kg [18:50:29]written 0, free lines is 4095 [18:50:29]Connected sock=10 [18:50:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 F4 E6 04 01 41 71 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 12 89 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C3 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C3 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 74 6F 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 27 86 02 00 35 04 06 00 0E B4 E5 6B 71 FA 25 D9 27 DC D4 AF 1D AE [18:50:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 14 84 47 00 32 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 27 86 02 00 F4 03 04 00 FD 15 95 66 B6 04 01 00 00 38 92 5D FB B7 40 50 5A [18:50:30]CommunicateWithHost err = 0 [18:50:30]CheckOFDResponse [18:50:30]1017 (14) - 77093643461234 [18:50:30]1041 (16) - 0000000000874718 [18:50:30]1040 (4) - 165415 [18:50:30]1012 (4) - 15.07.2024 12:28 [18:50:30]1206 (1) - 0 [18:50:30]OFD Sender: Remove packet 165415 [18:50:30]ProducePacketName [18:50:30]name=ofd_packets/00165415 [18:50:30]NVStorageDeleteData [18:50:30]int [18:50:30]Write to MH i2c: 01 00 00 E1 08 E9 [18:50:30]*** FLAG_PRN_PAP2 set [18:50:30]Write i2c OK [18:50:30]MH_I2C_Read... [18:50:30]Write i2c OK [18:50:30]MH_I2C_Read... [18:50:30]Read from MH i2c: DD [18:50:30]MH_I2C_Read... [18:50:30]Read from MH i2c: DD [18:50:30]MH_I2C_Read... [18:50:30]Read from MH i2c: DD 01 00 [18:50:30]MH_I2C_Read... [18:50:30]Read from MH i2c: DD 01 00 [18:50:30]answer for other command [DD] [18:50:30]MH Int Process stopped [18:50:30]Read from MH i2c: DD 01 00 E1 08 05 CB [18:50:30]answer with wrong packet_num 08E1 - expected 08E2 [18:50:30]process_action_free close_receipt [18:50:30]json_value_free [18:50:30]json_value_free done [18:50:30]process_json_proto returns [18:50:30]Send response to host [18:50:30]{"protocol":"kg_v1.0","response":{"error":1039,"error_desc":"CoCPU protocol format"}} [18:50:30]free response buf [18:50:30]execute_script done [18:50:30]execute_script returns [18:50:30]free content buf [18:50:30]Sock 7.Close socket [18:50:30]Sock 7.Thread stoped [18:50:30]OFD Sender: No OFD packet to send [18:50:35]OFD Sender: No OFD packet to send [18:50:40]OFD Sender: No OFD packet to send [18:50:45]OFD Sender: No OFD packet to send [18:50:50]OFD Sender: No OFD packet to send [18:50:55]OFD Sender: No OFD packet to send [18:51:00]OFD Sender: No OFD packet to send [18:51:05]OFD Sender: No OFD packet to send [18:51:10]OFD Sender: No OFD packet to send [18:51:15]OFD Sender: No OFD packet to send [18:51:20]OFD Sender: No OFD packet to send [18:51:25]OFD Sender: No OFD packet to send [18:51:30]OFD Sender: No OFD packet to send [18:51:35]OFD Sender: No OFD packet to send [18:51:40]OFD Sender: No OFD packet to send [18:51:45]OFD Sender: No OFD packet to send [18:51:50]OFD Sender: No OFD packet to send [18:51:55]OFD Sender: No OFD packet to send [18:52:00]OFD Sender: No OFD packet to send [18:52:05]OFD Sender: No OFD packet to send [18:52:10]OFD Sender: No OFD packet to send [18:52:15]OFD Sender: No OFD packet to send [18:52:20]OFD Sender: No OFD packet to send [18:52:25]OFD Sender: No OFD packet to send [18:52:30]OFD Sender: No OFD packet to send [18:52:35]OFD Sender: No OFD packet to send [18:52:40]OFD Sender: No OFD packet to send [18:52:45]OFD Sender: No OFD packet to send [18:52:50]OFD Sender: No OFD packet to send [18:52:55]OFD Sender: No OFD packet to send [18:53:00]OFD Sender: No OFD packet to send [18:53:05]OFD Sender: No OFD packet to send [18:53:06]*** FLAG_PRN_PAP1 set [18:53:06]*** FLAG_PRN_PAP1 reset [18:53:06]*** FLAG_PRN_PAP1 set [18:53:10]OFD Sender: No OFD packet to send [18:53:15]OFD Sender: No OFD packet to send [18:53:20]OFD Sender: No OFD packet to send [18:53:25]OFD Sender: No OFD packet to send [18:53:30]OFD Sender: No OFD packet to send [18:53:31]*** FLAG_PRN_PAP2 reset [18:53:31]*** FLAG_PRN_PAP1 reset [18:53:31]*** FLAG_PRN_PAP1 set [18:53:31]*** FLAG_PRN_PAP1 reset [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 CB FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 70 [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005725CB (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 31626107+1689443529=1721069636 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33520623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 CB FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 71 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 60 00 FF FF 7F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 45 70 95 66 C9 DC B2 64 6A [18:53:57]Current date/time: 15.07.2024 18:53 [18:53:57]FM_Init [18:53:57]wFMConnect [18:53:57]MH_SAM_On [18:53:57]Write to MH i2c: E0 00 00 08 00 E7 [18:53:57]Write i2c OK [18:53:57]MH_I2C_Read... [18:53:57]*** iso7816_init finished! [18:53:57]*** atr: [18:53:57]*** 0F 3B D5 18 FF 81 91 FE [18:53:57]*** 1F C3 80 73 C8 21 10 0A [18:53:57]*** 00 00 00 00 00 00 00 00 [18:53:57]*** 00 00 00 00 00 00 00 00 [18:53:57]*** 00 00 00 00 00 00 00 00 [18:53:57]*** 00 00 00 00 00 00 00 00 [18:53:57]*** 00 00 00 00 00 00 00 00 [18:53:57]*** 00 00 00 00 00 00 00 00 [18:53:57]Read from MH i2c: E0 [18:53:57]MH_I2C_Read... [18:53:57]Read from MH i2c: E0 10 00 [18:53:57]MH_I2C_Read... [18:53:57]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [18:53:57]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [18:53:57]wFMCommunicate request_size=10 [18:53:57]MH_SAM_APDU [18:53:57]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [18:53:57]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [18:53:57]Write i2c OK [18:53:57]MH_I2C_Read... [18:53:57]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [18:53:57]Read from MH i2c: E2 [18:53:57]MH_I2C_Read... [18:53:57]Read from MH i2c: E2 03 00 [18:53:57]MH_I2C_Read... [18:53:57]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [18:53:57]RAPDU: 90 00 [18:53:57]wFMCommunicate OK [18:53:57]wFMCommunicate request_size=4 [18:53:57]MH_SAM_APDU [18:53:57]CAPDU: 80 11 00 00 [18:53:57]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [18:53:57]Write i2c OK [18:53:57]MH_I2C_Read... [18:53:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:57]Read from MH i2c: E2 [18:53:57]MH_I2C_Read... [18:53:57]Read from MH i2c: E2 17 00 [18:53:57]MH_I2C_Read... [18:53:57]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DA [18:53:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:53:57]wFMCommunicate OK [18:53:57]Detected FM SN is 0000000000874718 [18:53:57]Stored FM SN is 0000000000874718 [18:53:57]wFMCommunicate request_size=9 [18:53:57]MH_SAM_APDU [18:53:57]CAPDU: 80 16 00 00 04 29 B3 00 00 [18:53:57]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 29 B3 00 00 00 00 6E [18:53:57]Write i2c OK [18:53:57]MH_I2C_Read... [18:53:57]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [18:53:57]Read from MH i2c: E2 [18:53:57]MH_I2C_Read... [18:53:57]Read from MH i2c: E2 03 00 [18:53:57]MH_I2C_Read... [18:53:57]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [18:53:57]RAPDU: 90 00 [18:53:57]wFMCommunicate OK [18:53:57]FM PIN OK [18:53:57]wFMCommunicate request_size=8 [18:53:57]MH_SAM_APDU [18:53:57]CAPDU: 80 14 04 00 03 02 00 01 [18:53:57]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [18:53:57]Write i2c OK [18:53:57]MH_I2C_Read... [18:53:57]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [18:53:57]Read from MH i2c: E2 [18:53:57]MH_I2C_Read... [18:53:57]Read from MH i2c: E2 03 00 [18:53:57]MH_I2C_Read... [18:53:57]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [18:53:57]RAPDU: 90 00 [18:53:57]wFMCommunicate OK [18:53:57]wFMCommunicate request_size=13 [18:53:57]MH_SAM_APDU [18:53:57]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [18:53:57]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [18:53:57]Write i2c OK [18:53:57]MH_I2C_Read... [18:53:57]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [18:53:57]Read from MH i2c: E2 [18:53:57]MH_I2C_Read... [18:53:57]Read from MH i2c: E2 03 00 [18:53:57]MH_I2C_Read... [18:53:57]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [18:53:57]RAPDU: 90 00 [18:53:57]wFMCommunicate OK [18:53:57]wFMCommunicate request_size=4 [18:53:57]MH_SAM_APDU [18:53:57]CAPDU: 80 11 00 00 [18:53:57]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [18:53:57]Write i2c OK [18:53:57]MH_I2C_Read... [18:53:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:57]Read from MH i2c: E2 [18:53:57]MH_I2C_Read... [18:53:57]Read from MH i2c: E2 17 00 [18:53:57]MH_I2C_Read... [18:53:57]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DE [18:53:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:53:57]wFMCommunicate OK [18:53:57]DocumentArchiveInit [18:53:57]Start Httpd... [18:53:57]Httpd thread 3067620708 created [18:53:57]Write to MH i2c: 01 00 00 0F 00 0F [18:53:57]Write i2c OK [18:53:57]MH_I2C_Read... [18:53:57]Read from MH i2c: 01 [18:53:57]MH_I2C_Read... [18:53:57]Read from MH i2c: 01 07 00 [18:53:57]MH_I2C_Read... [18:53:57]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [18:53:57]MH Int Process started [18:53:57]Allocated Socket 8 [18:53:57]Bind OK [18:53:57]Listen OK [18:53:57]httpd running on port 8080 [18:53:57]Waiting for new connection... [18:53:57]OFD Sender: No OFD packet to send [18:54:01]accept exits with 9 [18:54:01]New connection [18:54:01]New thread 3067333988 created [18:54:01]Waiting for new connection... [18:54:01] Sock 9.Parse request [18:54:01]Sock 9.Check first char [18:54:01]Sock 9.First char is OK [18:54:01]request: POST /json_proto HTTP/1.0 [18:54:01]Method: POST [18:54:01]URL: /json_proto [18:54:01]Method is POST - this is cgi request [18:54:01]url: /json_proto [18:54:01]query_string will be loaded in cgi processing [18:54:01]execute_cgi json_proto POST (null) [18:54:01]execute_cgi path=json_proto method=POST [18:54:01]POST find Content-Length [18:54:01]Host: 172.17.56.4:8080 [18:54:01]Content-Length: 215 [18:54:01]Content-Type: application/json [18:54:01] [18:54:01]POST finish read [18:54:01]Found Content-Length = 215 [18:54:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:54:01]execute_script... [18:54:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:54:01]POST & json_proto [18:54:01]process_json_proto [18:54:01]json parsed OK: [18:54:01]protocol is kg_v1.0 [18:54:01]action value=get_value [18:54:01]process_action get_value [18:54:01]cmd_get_value [18:54:01]process_action get_value done [18:54:01]requested_data is exist [18:54:01]produce_requested_data [18:54:01]requested_item kkm.sn is exist - process it [18:54:01]requested_item kkm.ver is exist - process it [18:54:01]requested_item fm.sn is exist - process it [18:54:01]wFMCommunicate request_size=4 [18:54:01]MH_SAM_APDU [18:54:01]CAPDU: 80 11 00 00 [18:54:01]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [18:54:01]Write i2c OK [18:54:01]MH_I2C_Read... [18:54:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:01]Read from MH i2c: E2 [18:54:01]MH_I2C_Read... [18:54:01]Read from MH i2c: E2 17 00 [18:54:01]MH_I2C_Read... [18:54:01]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E0 [18:54:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:54:01]wFMCommunicate OK [18:54:01]requested_item fd.num is exist - process it [18:54:01]SAM_PROTO_GetFieldsCounters [18:54:01]wFMCommunicate request_size=4 [18:54:01]MH_SAM_APDU [18:54:01]CAPDU: 80 13 00 00 [18:54:01]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [18:54:01]Write i2c OK [18:54:01]MH_I2C_Read... [18:54:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:54:01]Read from MH i2c: E2 [18:54:01]MH_I2C_Read... [18:54:01]Read from MH i2c: E2 62 00 [18:54:01]MH_I2C_Read... [18:54:01]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 27 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 87 [18:54:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 27 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:54:01]wFMCommunicate OK [18:54:01]SAM_PROTO_GetFieldsCounters done [18:54:01]requested_item shift.num is exist - process it [18:54:01]requested_item shift.opened is exist - process it [18:54:01]req_shift_opened [18:54:01]FM_GetShiftState [18:54:01]SAM_PROTO_GetShiftState [18:54:01]wFMCommunicate request_size=4 [18:54:01]MH_SAM_APDU [18:54:01]CAPDU: 80 13 01 00 [18:54:01]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [18:54:01]Write i2c OK [18:54:01]MH_I2C_Read... [18:54:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:01]Read from MH i2c: E2 [18:54:01]MH_I2C_Read... [18:54:01]Read from MH i2c: E2 0E 00 [18:54:01]MH_I2C_Read... [18:54:01]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 68 [18:54:01]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [18:54:01]wFMCommunicate OK [18:54:01]SAM_PROTO_GetShiftState done [18:54:01]FM_GetShiftState done [18:54:01]req_shift_opened done [18:54:01]requested_item shift.open_date is exist - process it [18:54:01]req_shift_open_date [18:54:01]req_shift_open_date done [18:54:01]produce_requested_data done [18:54:01]produce_requested_data return {"kkm.sn":"0300000160","kkm.ver":"001","fm.sn":"0000000000874718","fd.num":165415,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [18:54:01]process_action_free get_value [18:54:01]json_value_free [18:54:01]json_value_free done [18:54:01]process_json_proto returns [18:54:01]Send response to host [18:54:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000160","kkm.ver":"001","fm.sn":"0000000000874718","fd.num":165415,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [18:54:01]free response buf [18:54:01]execute_script done [18:54:01]execute_script returns [18:54:01]free content buf [18:54:01]Sock 9.Close socket [18:54:01]Sock 9.Thread stoped [18:54:01]accept exits with 10 [18:54:01]New connection [18:54:01]New thread 3067190628 created [18:54:01]Thread 3067333988 joined [18:54:01]Waiting for new connection... [18:54:01] Sock 10.Parse request [18:54:01]Sock 10.Check first char [18:54:01]Sock 10.First char is OK [18:54:01]request: POST /json_proto HTTP/1.0 [18:54:01]Method: POST [18:54:01]URL: /json_proto [18:54:01]Method is POST - this is cgi request [18:54:01]url: /json_proto [18:54:01]query_string will be loaded in cgi processing [18:54:01]execute_cgi json_proto POST (null) [18:54:01]execute_cgi path=json_proto method=POST [18:54:01]POST find Content-Length [18:54:01]Host: 172.17.56.4:8080 [18:54:01]Content-Length: 331 [18:54:01]Content-Type: application/json [18:54:01] [18:54:01]POST finish read [18:54:01]Found Content-Length = 331 [18:54:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [18:54:01]execute_script... [18:54:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [18:54:01]POST & json_proto [18:54:01]process_json_proto [18:54:01]json parsed OK: [18:54:01]protocol is kg_v1.0 [18:54:01]action value=get_value [18:54:01]process_action get_value [18:54:01]cmd_get_value [18:54:01]process_action get_value done [18:54:01]requested_data is exist [18:54:01]produce_requested_data [18:54:01]requested_item fm.sale.total is exist - process it [18:54:01]SAM_PROTO_GetFMData [18:54:01]wFMCommunicate request_size=4 [18:54:01]MH_SAM_APDU [18:54:01]CAPDU: 80 13 03 00 [18:54:01]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [18:54:02]Write i2c OK [18:54:02]MH_I2C_Read... [18:54:02]OFD Sender: No OFD packet to send [18:54:02]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [18:54:02]Read from MH i2c: E2 [18:54:02]MH_I2C_Read... [18:54:02]Read from MH i2c: E2 FD 00 [18:54:02]MH_I2C_Read... [18:54:02]Read from MH i2c: E2 FD 00 13 00 00 C4 04 85 04 C0 04 6E 04 04 00 A4 82 02 00 69 04 A3 00 6F 04 04 00 96 81 02 00 B1 04 05 00 EF F5 7F 5A 02 70 04 05 00 2D FF F6 37 02 72 04 04 00 C2 F6 88 22 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 4C CA 01 40 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 B4 4A 55 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 0E 01 00 00 B1 04 04 00 6C E5 46 03 70 04 04 00 6C E5 46 03 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 23 19 59 EF 03 09 00 90 00 F4 [18:54:02]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 A4 82 02 00 69 04 A3 00 6F 04 04 00 96 81 02 00 B1 04 05 00 EF F5 7F 5A 02 70 04 05 00 2D FF F6 37 02 72 04 04 00 C2 F6 88 22 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 4C CA 01 40 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 B4 4A 55 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 0E 01 00 00 B1 04 04 00 6C E5 46 03 70 04 04 00 6C E5 46 03 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 23 19 59 EF 03 09 00 90 00 [18:54:02]wFMCommunicate OK [18:54:02]wFMCommunicate request_size=4 [18:54:02]MH_SAM_APDU [18:54:02]CAPDU: 80 17 00 00 [18:54:02]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [18:54:02]Write i2c OK [18:54:02]MH_I2C_Read... [18:54:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:54:02]Read from MH i2c: E2 [18:54:02]MH_I2C_Read... [18:54:02]Read from MH i2c: E2 FD 00 [18:54:02]MH_I2C_Read... [18:54:02]Read from MH i2c: E2 FD 00 14 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B1 6C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6E [18:54:02]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B1 6C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [18:54:02]wFMCommunicate OK [18:54:02]wFMCommunicate request_size=4 [18:54:02]MH_SAM_APDU [18:54:02]CAPDU: 80 17 00 00 [18:54:02]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [18:54:02]Write i2c OK [18:54:02]MH_I2C_Read... [18:54:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:54:03]Read from MH i2c: E2 [18:54:03]MH_I2C_Read... [18:54:03]Read from MH i2c: E2 FD 00 [18:54:03]MH_I2C_Read... [18:54:03]Read from MH i2c: E2 FD 00 15 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AA [18:54:03]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [18:54:03]wFMCommunicate OK [18:54:03]wFMCommunicate request_size=4 [18:54:03]MH_SAM_APDU [18:54:03]CAPDU: 80 17 00 00 [18:54:03]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [18:54:03]Write i2c OK [18:54:03]MH_I2C_Read... [18:54:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:54:03]Read from MH i2c: E2 [18:54:03]MH_I2C_Read... [18:54:03]Read from MH i2c: E2 FD 00 [18:54:03]MH_I2C_Read... [18:54:03]Read from MH i2c: E2 FD 00 16 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 0E [18:54:03]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [18:54:03]wFMCommunicate OK [18:54:03]wFMCommunicate request_size=4 [18:54:03]MH_SAM_APDU [18:54:03]CAPDU: 80 17 00 00 [18:54:03]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [18:54:03]Write i2c OK [18:54:03]MH_I2C_Read... [18:54:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [18:54:03]Read from MH i2c: E2 [18:54:03]MH_I2C_Read... [18:54:03]Read from MH i2c: E2 E1 00 [18:54:03]MH_I2C_Read... [18:54:03]Read from MH i2c: E2 E1 00 17 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [18:54:03]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [18:54:03]wFMCommunicate OK [18:54:03]SAM_PROTO_GetFMData done [18:54:03]requested_item fm.sale_refund.total is exist - process it [18:54:03]requested_item fm.buy.total is exist - process it [18:54:03]requested_item shift.sale.total is exist - process it [18:54:03]SAM_PROTO_GetShiftData [18:54:03]wFMCommunicate request_size=4 [18:54:03]MH_SAM_APDU [18:54:03]CAPDU: 80 13 02 00 [18:54:03]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [18:54:03]Write i2c OK [18:54:03]MH_I2C_Read... [18:54:04]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [18:54:04]Read from MH i2c: E2 [18:54:04]MH_I2C_Read... [18:54:04]Read from MH i2c: E2 FD 00 [18:54:04]MH_I2C_Read... [18:54:04]Read from MH i2c: E2 FD 00 18 00 00 B0 04 AA 04 AC 04 6E 04 04 00 20 01 00 00 69 04 9D 00 6F 04 04 00 20 01 00 00 B1 04 04 00 6A B0 2E 01 70 04 03 00 D0 00 F7 72 04 03 00 9A AF 37 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 C3 26 20 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 B6 AD 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A9 [18:54:04]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 20 01 00 00 69 04 9D 00 6F 04 04 00 20 01 00 00 B1 04 04 00 6A B0 2E 01 70 04 03 00 D0 00 F7 72 04 03 00 9A AF 37 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 C3 26 20 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 B6 AD 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [18:54:04]wFMCommunicate OK [18:54:04]wFMCommunicate request_size=4 [18:54:04]MH_SAM_APDU [18:54:04]CAPDU: 80 17 00 00 [18:54:04]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [18:54:04]Write i2c OK [18:54:04]MH_I2C_Read... [18:54:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:54:04]Read from MH i2c: E2 [18:54:04]MH_I2C_Read... [18:54:04]Read from MH i2c: E2 FD 00 [18:54:04]MH_I2C_Read... [18:54:04]Read from MH i2c: E2 FD 00 19 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B3 [18:54:04]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [18:54:04]wFMCommunicate OK [18:54:04]wFMCommunicate request_size=4 [18:54:04]MH_SAM_APDU [18:54:04]CAPDU: 80 17 00 00 [18:54:04]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [18:54:04]Write i2c OK [18:54:04]MH_I2C_Read... [18:54:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:54:04]Read from MH i2c: E2 [18:54:04]MH_I2C_Read... [18:54:04]Read from MH i2c: E2 FD 00 [18:54:04]MH_I2C_Read... [18:54:04]Read from MH i2c: E2 FD 00 1A 00 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 57 [18:54:04]RAPDU: 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [18:54:04]wFMCommunicate OK [18:54:04]wFMCommunicate request_size=4 [18:54:04]MH_SAM_APDU [18:54:04]CAPDU: 80 17 00 00 [18:54:04]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [18:54:04]Write i2c OK [18:54:04]MH_I2C_Read... [18:54:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:54:05]Read from MH i2c: E2 [18:54:05]MH_I2C_Read... [18:54:05]Read from MH i2c: E2 FD 00 [18:54:05]MH_I2C_Read... [18:54:05]Read from MH i2c: E2 FD 00 1B 00 00 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 90 00 0E [18:54:05]RAPDU: 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 90 00 [18:54:05]wFMCommunicate OK [18:54:05]wFMCommunicate request_size=4 [18:54:05]MH_SAM_APDU [18:54:05]CAPDU: 80 17 00 00 [18:54:05]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [18:54:05]Write i2c OK [18:54:05]MH_I2C_Read... [18:54:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [18:54:05]Read from MH i2c: E2 [18:54:05]MH_I2C_Read... [18:54:05]Read from MH i2c: E2 CD 00 [18:54:05]MH_I2C_Read... [18:54:05]Read from MH i2c: E2 CD 00 1C 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 80 [18:54:05]RAPDU: 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [18:54:05]wFMCommunicate OK [18:54:05]SAM_PROTO_GetShiftData done [18:54:05]requested_item shift.sale.total_cash is exist - process it [18:54:05]requested_item shift.sale_refund.total is exist - process it [18:54:05]requested_item shift.sale_refund.total_cash is exist - process it [18:54:05]requested_item shift.buy.total is exist - process it [18:54:05]requested_item shift.buy.total_cash is exist - process it [18:54:05]produce_requested_data done [18:54:05]produce_requested_data return {"fm.sale.total":101082700.63,"fm.sale_refund.total":549779.00,"fm.buy.total":0.00,"shift.sale.total":198370.34,"shift.sale.total_cash":161876.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} [18:54:05]process_action_free get_value [18:54:05]json_value_free [18:54:05]json_value_free done [18:54:05]process_json_proto returns [18:54:05]Send response to host [18:54:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":101082700.63,"fm.sale_refund.total":549779.00,"fm.buy.total":0.00,"shift.sale.total":198370.34,"shift.sale.total_cash":161876.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}}} [18:54:05]free response buf [18:54:05]execute_script done [18:54:05]execute_script returns [18:54:05]free content buf [18:54:05]Sock 10.Close socket [18:54:05]Sock 10.Thread stoped [18:54:05]accept exits with 5 [18:54:05]New connection [18:54:05]New thread 3067333988 created [18:54:05]Thread 3067190628 joined [18:54:05]Waiting for new connection... [18:54:05] Sock 5.Parse request [18:54:05]Sock 5.Check first char [18:54:05]Sock 5.First char is OK [18:54:05]request: POST /json_proto HTTP/1.0 [18:54:05]Method: POST [18:54:05]URL: /json_proto [18:54:05]Method is POST - this is cgi request [18:54:05]url: /json_proto [18:54:05]query_string will be loaded in cgi processing [18:54:05]execute_cgi json_proto POST (null) [18:54:05]execute_cgi path=json_proto method=POST [18:54:05]POST find Content-Length [18:54:05]Host: 172.17.56.4:8080 [18:54:05]Content-Length: 144 [18:54:05]Content-Type: application/json [18:54:05] [18:54:05]POST finish read [18:54:05]Found Content-Length = 144 [18:54:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [18:54:05]execute_script... [18:54:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [18:54:05]POST & json_proto [18:54:05]process_json_proto [18:54:05]json parsed OK: [18:54:05]protocol is kg_v1.0 [18:54:05]action value=print_doc [18:54:05]process_action print_doc [18:54:05]ExternCall_PrintAddStr [18:54:05]wPrintStart [18:54:05]Write to MH i2c: 01 00 00 1D 00 1D [18:54:05]Write i2c OK [18:54:05]MH_I2C_Read... [18:54:05]Read from MH i2c: 01 [18:54:05]MH_I2C_Read... [18:54:05]Read from MH i2c: 01 07 00 [18:54:05]MH_I2C_Read... [18:54:05]Read from MH i2c: 01 07 00 1D 00 00 00 00 00 00 FF 0F 32 [18:54:05]RasterBufferAndPrint [18:54:05]line Счет N : (1)459530 [18:54:05]line ИНН: 02508201610067 [18:54:05]line Контрольно-Кассовый Чек [18:54:05]line ПРОДАЖА [18:54:05]line ТРК (МРК, ГНК) : 11 [18:54:05]line Товар: 2710194210 [18:54:05]line ДТ-К-5 [18:54:05]line 35.090 * 71.26 [18:54:05]line = 2500.51 [18:54:05]line НДС 12% НСП 1% [18:54:05]line > о реализуемом товаре [18:54:05]line ИТОГО: 2500.51 [18:54:05]line НСП 1% : 22.13 [18:54:05]line НДС 12% : 265.54 [18:54:05]line Наличными: 0.00 [18:54:05]line Безнал.: 2500.51 [18:54:05]line Место: АЗС № 72 "Партнер Нефть" [18:54:05]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:54:05]line СНО: Общий режим [18:54:05]line Чек 288 15.07.2024 18:50 [18:54:05]line Смена: 448 ФФД: 1.0 [18:54:05]line ЗНМ: 0300000160 [18:54:05]line РНМ: 0000000000090829 [18:54:05]line Версия ККМ: 001 [18:54:05]line Платежная система: АКБ Кыргызстан [18:54:05]line ФМ: 0000000000874718 [18:54:05]line ФД: 165415 [18:54:05]line ФПД: 16170105926138 [18:54:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T185028&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165415&fm=16170105926138&tin=02508201610067®Number=0000000000090829&sum=250051 [18:54:05]written 0, free lines is 4095 [18:54:06]Write to MH i2c: 01 00 00 46 00 46 [18:54:06]Write i2c OK [18:54:06]MH_I2C_Read... [18:54:06]Read from MH i2c: 01 [18:54:06]MH_I2C_Read... [18:54:06]Read from MH i2c: 01 07 00 [18:54:06]MH_I2C_Read... [18:54:06]Read from MH i2c: 01 07 00 46 00 00 00 00 00 00 09 0D 63 [18:54:06]RasterBufferAndPrint [18:54:06]line [18:54:06]line [18:54:06]line [18:54:06]line [18:54:06]line [18:54:06]written 0, free lines is 3353 [18:54:06]MH_Cut [18:54:06]Write to MH i2c: D1 01 00 4D 00 01 1F [18:54:06]Write i2c OK [18:54:06]MH_I2C_Read... [18:54:06]Read from MH i2c: D1 [18:54:06]MH_I2C_Read... [18:54:06]Read from MH i2c: D1 01 00 [18:54:06]MH_I2C_Read... [18:54:06]Read from MH i2c: D1 01 00 4D 00 00 1E [18:54:06]Write to MH i2c: 01 00 00 4E 00 4E [18:54:06]Write i2c OK [18:54:06]MH_I2C_Read... [18:54:06]*** Cut start [18:54:06]*** Partial cut [18:54:06]*** CUTSNS_PIN = 1 [18:54:06]*** CUTSNS_PIN = 0 [18:54:06]*** Brake cut motor [18:54:07]Read from MH i2c: 01 [18:54:07]MH_I2C_Read... [18:54:07]*** Stop cut motor [18:54:07]*** Cut end [18:54:07]Read from MH i2c: 01 07 00 [18:54:07]MH_I2C_Read... [18:54:07]Read from MH i2c: 01 07 00 4E 00 00 00 00 00 00 FF 0F 63 [18:54:07]process_action print_doc done [18:54:07]requested_data is exist [18:54:07]produce_requested_data [18:54:07]produce_requested_data return (null) [18:54:07]process_action_free print_doc [18:54:07]json_value_free [18:54:07]json_value_free done [18:54:07]process_json_proto returns [18:54:07]Send response to host [18:54:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [18:54:07]free response buf [18:54:07]execute_script done [18:54:07]execute_script returns [18:54:07]free content buf [18:54:07]Sock 5.Close socket [18:54:07]Sock 5.Thread stoped [18:54:07]OFD Sender: No OFD packet to send [18:54:12]OFD Sender: No OFD packet to send [18:54:17]OFD Sender: No OFD packet to send [18:54:22]OFD Sender: No OFD packet to send [18:54:27]OFD Sender: No OFD packet to send [18:54:32]OFD Sender: No OFD packet to send [18:54:37]OFD Sender: No OFD packet to send [18:54:42]OFD Sender: No OFD packet to send [18:54:47]OFD Sender: No OFD packet to send [18:54:52]OFD Sender: No OFD packet to send [18:54:57]OFD Sender: No OFD packet to send [18:55:02]OFD Sender: No OFD packet to send [18:55:05]accept exits with 9 [18:55:05]New connection [18:55:05]New thread 3067190628 created [18:55:05]Thread 3067333988 joined [18:55:05]Waiting for new connection... [18:55:05] Sock 9.Parse request [18:55:05]Sock 9.Check first char [18:55:05]Sock 9.First char is OK [18:55:05]request: POST /json_proto HTTP/1.0 [18:55:05]Method: POST [18:55:05]URL: /json_proto [18:55:05]Method is POST - this is cgi request [18:55:05]url: /json_proto [18:55:05]query_string will be loaded in cgi processing [18:55:05]execute_cgi json_proto POST (null) [18:55:05]execute_cgi path=json_proto method=POST [18:55:05]POST find Content-Length [18:55:05]Host: 172.17.56.4:8080 [18:55:05]Content-Length: 679 [18:55:05]Content-Type: application/json [18:55:05] [18:55:05]POST finish read [18:55:05]Found Content-Length = 679 [18:55:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459532", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "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" ] } } [18:55:05]execute_script... [18:55: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)459532", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "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" ] } } [18:55:05]POST & json_proto [18:55:05]process_json_proto [18:55:05]json parsed OK: [18:55:05]protocol is kg_v1.0 [18:55:05]action value=close_receipt [18:55:05]process_action close_receipt [18:55:05]cmd_close_receipt [18:55:05]MH_GetDate [18:55:05]Write to MH i2c: F0 00 00 4F 00 3E [18:55:05]Write i2c OK [18:55:05]MH_I2C_Read... [18:55:05]Read from MH i2c: F0 [18:55:05]MH_I2C_Read... [18:55:05]Read from MH i2c: F0 09 00 [18:55:05]MH_I2C_Read... [18:55:05]Read from MH i2c: F0 09 00 4F 00 00 89 70 95 66 C9 DC B2 64 F6 [18:55:05]GetLastDocTimeStamp 1721069428 [18:55:05]current date 1721069705 [18:55:05]FM_GetShiftState [18:55:05]SAM_PROTO_GetShiftState [18:55:05]wFMCommunicate request_size=4 [18:55:05]MH_SAM_APDU [18:55:05]CAPDU: 80 13 01 00 [18:55:05]Write to MH i2c: E2 08 00 50 00 80 13 01 00 00 00 00 00 CD [18:55:05]Write i2c OK [18:55:05]MH_I2C_Read... [18:55:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:55:05]Read from MH i2c: E2 [18:55:05]MH_I2C_Read... [18:55:05]Read from MH i2c: E2 0E 00 [18:55:05]MH_I2C_Read... [18:55:05]Read from MH i2c: E2 0E 00 50 00 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 A6 [18:55:05]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [18:55:05]wFMCommunicate OK [18:55:05]SAM_PROTO_GetShiftState done [18:55:05]FM_GetShiftState done [18:55:05]opened in 1721003876 [18:55:05]opened+sec_in_day 1721090276 [18:55:05]quantity*price = 200025 [18:55:05]sum+1 = 200027 [18:55:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 289 15.07.2024 18:55 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165416 ФПД: 100823835020641 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T185505&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165416&fm=100823835020641&tin=02508201610067®Number=0000000000090829&sum=200000 [18:55:06]StoreToDocumentArchive [18:55:06]shift 448 fd 165416 [18:55:06]save to /storage/0448/doc_00165416 [18:55:06]save last doc name /storage/0448/doc_00165416 to /storage/kkm_last_doc_name [18:55:06]save OK [18:55:06]Clear old archive folders... [18:55:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:55:06]tlvbuf is 01B97A60 [18:55:06]SAM_PROTO_ClearQueue [18:55:06]wFMCommunicate request_size=4 [18:55:06]MH_SAM_APDU [18:55:06]CAPDU: 80 09 00 00 [18:55:06]Write to MH i2c: E2 08 00 5D 00 80 09 00 00 00 00 00 00 CF [18:55:06]Write i2c OK [18:55:06]MH_I2C_Read... [18:55:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:55:06]Read from MH i2c: E2 [18:55:06]MH_I2C_Read... [18:55:06]Read from MH i2c: E2 03 00 [18:55:06]MH_I2C_Read... [18:55:06]Read from MH i2c: E2 03 00 5D 00 00 90 00 D1 [18:55:06]RAPDU: 90 00 [18:55:06]wFMCommunicate OK [18:55:06]SAM_PROTO_ClearQueue done [18:55:06]KKMCreateOFDPacket [18:55:06]OFDProtocolAddRootSTLVToBuf [18:55:06]FM_MakeSignedData [18:55:06]FM_MakeSignedData [18:55:06]SAM_PROTO_SignData [18:55:06]wFMCommunicate request_size=4 [18:55:06]MH_SAM_APDU [18:55:06]CAPDU: 80 0D 01 02 [18:55:06]Write to MH i2c: E2 08 00 5E 00 80 0D 01 02 00 00 00 00 D7 [18:55:06]Write i2c OK [18:55:06]MH_I2C_Read... [18:55:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:55:06]Read from MH i2c: E2 [18:55:06]MH_I2C_Read... [18:55:06]Read from MH i2c: E2 03 00 [18:55:06]MH_I2C_Read... [18:55:06]Read from MH i2c: E2 03 00 5E 00 00 90 00 D2 [18:55:06]RAPDU: 90 00 [18:55:06]wFMCommunicate OK [18:55:06]wFMCommunicate request_size=255 [18:55:06]MH_SAM_APDU [18:55:06]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 89 70 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 28 86 02 00 35 04 06 00 5B B2 E0 DF [18:55:06]Write to MH i2c: E2 02 01 5F 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 89 70 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 28 86 02 00 35 04 06 00 5B B2 E0 DF 00 00 1D [18:55:06]Write i2c OK [18:55:06]MH_I2C_Read... [18:55:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:55:06]Read from MH i2c: E2 [18:55:06]MH_I2C_Read... [18:55:06]Read from MH i2c: E2 03 00 [18:55:06]MH_I2C_Read... [18:55:06]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [18:55:06]RAPDU: 90 00 [18:55:06]wFMCommunicate OK [18:55:06]wFMCommunicate request_size=7 [18:55:06]MH_SAM_APDU [18:55:06]CAPDU: 80 0D 02 02 02 0D 61 [18:55:06]Write to MH i2c: E2 0A 00 60 00 80 0D 02 02 02 00 0D 61 00 00 4C [18:55:06]Write i2c OK [18:55:06]MH_I2C_Read... [18:55:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:55:06]Read from MH i2c: E2 [18:55:06]MH_I2C_Read... [18:55:06]Read from MH i2c: E2 03 00 [18:55:06]MH_I2C_Read... [18:55:06]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [18:55:06]RAPDU: 90 00 [18:55:06]wFMCommunicate OK [18:55:06]wFMCommunicate request_size=4 [18:55:06]MH_SAM_APDU [18:55:06]CAPDU: 80 0D 03 02 [18:55:06]Write to MH i2c: E2 08 00 61 00 80 0D 03 02 00 00 00 00 DC [18:55:06]Write i2c OK [18:55:06]MH_I2C_Read... [18:55:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:55:06]Read from MH i2c: E2 [18:55:06]MH_I2C_Read... [18:55:06]Read from MH i2c: E2 0B 00 [18:55:06]MH_I2C_Read... [18:55:06]Read from MH i2c: E2 0B 00 61 00 00 E1 FF F4 6F 6A E8 7E 6D 90 00 5D [18:55:06]RAPDU: E1 FF F4 6F 6A E8 7E 6D 90 00 [18:55:06]wFMCommunicate OK [18:55:06]SAM_PROTO_SignData done [18:55:06]FM_MakeSignedData done [18:55:06]CreateOFDProtocolMessage [18:55:06]wFMCommunicate request_size=4 [18:55:06]MH_SAM_APDU [18:55:06]CAPDU: 80 11 00 00 [18:55:06]Write to MH i2c: E2 08 00 62 00 80 11 00 00 00 00 00 00 DC [18:55:06]Write i2c OK [18:55:06]MH_I2C_Read... [18:55:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:55:06]Read from MH i2c: E2 [18:55:06]MH_I2C_Read... [18:55:06]Read from MH i2c: E2 17 00 [18:55:06]MH_I2C_Read... [18:55:06]Read from MH i2c: E2 17 00 62 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 32 [18:55:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:55:06]wFMCommunicate OK [18:55:06]CreateOFDProtocolMessage done [18:55:06]OFDSenderStorePacket 165416 [18:55:06]StoreOFDPacket docnum=165416 [18:55:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 24 36 04 01 FB 79 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 89 70 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 28 86 02 00 35 04 06 00 5B B2 E0 DF 0D 61 E1 FF F4 6F 6A E8 7E 6D [18:55:06]CheckFolder [18:55:06]dirname=/storage/ofd_packets [18:55:06]CheckFolder done [18:55:06]ProducePacketName [18:55:06]name=ofd_packets/00165416 [18:55:06]NVStorageSaveData ofd_packets/00165416 [18:55:06]File name is /storage/ofd_packets/00165416 [18:55:06]Write 298 bytes [18:55:06]NVStorageSaveData done [18:55:06]OFDSenderStorePacket done [18:55:06]KKMCreateOFDPacket done [18:55:06]NVStorageSaveData kkm_last_timestamp [18:55:06]File name is /storage/kkm_last_timestamp [18:55:06]Write 4 bytes [18:55:06]NVStorageSaveData done [18:55:06]ExternCall_PrintAddStr [18:55:06]wPrintStart [18:55:06]Write to MH i2c: 01 00 00 63 00 63 [18:55:06]Write i2c OK [18:55:06]MH_I2C_Read... [18:55:06]Read from MH i2c: 01 [18:55:06]MH_I2C_Read... [18:55:06]Read from MH i2c: 01 07 00 [18:55:06]MH_I2C_Read... [18:55:06]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [18:55:06]RasterBufferAndPrint [18:55:06]line Счет N : (1)459532 [18:55:06]line ИНН: 02508201610067 [18:55:06]line Контрольно-Кассовый Чек [18:55:06]line ПРОДАЖА [18:55:06]line ТРК (МРК, ГНК) : 21 [18:55:06]line Товар: 2710194210 [18:55:06]line ДТ-К-5 [18:55:06]line 27.820 * 71.90 [18:55:06]line = 2000.26 [18:55:06]line НДС 12% НСП 1% [18:55:06]line > о реализуемом товаре [18:55:06]line ОКРУГЛЕНИЕ: -0.26 [18:55:06]line ИТОГО: 2000.00 [18:55:06]line Внесено: 2000.00 [18:55:06]line СДАЧА: 0.00 [18:55:06]line НСП 1% : 17.70 [18:55:06]line НДС 12% : 212.42 [18:55:06]line Наличными: 2000.00 [18:55:06]line Безнал.: 0.00 [18:55:06]line Место: АЗС № 72 "Партнер Нефть" [18:55:06]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:55:06]line СНО: Общий режим [18:55:06]line Чек 289 15.07.2024 18:55 [18:55:06]line Смена: 448 ФФД: 1.0 [18:55:06]line ЗНМ: 0300000160 [18:55:06]line РНМ: 0000000000090829 [18:55:06]line Версия ККМ: 001 [18:55:06]line ФМ: 0000000000874718 [18:55:06]line ФД: 165416 [18:55:06]line ФПД: 100823835020641 [18:55:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T185505&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165416&fm=100823835020641&tin=02508201610067®Number=0000000000090829&sum=200000 [18:55:07]OFD Sender: Processing packet 165416 [packets to send 106, broken 105] [18:55:07]ProducePacketName [18:55:07]name=ofd_packets/00165416 [18:55:07]OFD Sender: To server: pG, [18:55:07]CommunicateWithHost lk.salyk.kg:30040 [18:55:07]ConnectInit lk.salyk.kg [18:55:07]written 0, free lines is 4095 [18:55:07]Connected sock=7 [18:55: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 37 31 38 0C 01 00 00 24 36 04 01 FB 79 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 89 70 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 28 86 02 00 35 04 06 00 5B B2 E0 DF 0D 61 E1 FF F4 6F 6A E8 7E 6D [18:55:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 FD 52 47 00 E1 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 28 86 02 00 F4 03 04 00 13 17 95 66 B6 04 01 00 00 52 ED 81 BE 93 8A 9B F4 [18:55:07]CommunicateWithHost err = 0 [18:55:07]CheckOFDResponse [18:55:07]1017 (14) - 77093643461234 [18:55:07]1041 (16) - 0000000000874718 [18:55:07]1040 (4) - 165416 [18:55:07]1012 (4) - 15.07.2024 12:33 [18:55:07]1206 (1) - 0 [18:55:07]OFD Sender: Remove packet 165416 [18:55:07]ProducePacketName [18:55:07]name=ofd_packets/00165416 [18:55:07]NVStorageDeleteData [18:55:07]Write to MH i2c: 01 00 00 8D 00 8D [18:55:07]Write i2c OK [18:55:07]MH_I2C_Read... [18:55:07]Read from MH i2c: 01 [18:55:07]MH_I2C_Read... [18:55:07]Read from MH i2c: 01 07 00 [18:55:07]MH_I2C_Read... [18:55:07]Read from MH i2c: 01 07 00 8D 00 00 00 00 00 00 07 0D A8 [18:55:07]RasterBufferAndPrint [18:55:07]line [18:55:07]line [18:55:07]line [18:55:07]line [18:55:07]line [18:55:07]written 0, free lines is 3341 [18:55:07]MH_Cut [18:55:07]Write to MH i2c: D1 01 00 94 00 01 66 [18:55:07]Write i2c OK [18:55:07]MH_I2C_Read... [18:55:07]Read from MH i2c: D1 [18:55:07]MH_I2C_Read... [18:55:07]Read from MH i2c: D1 01 00 [18:55:07]MH_I2C_Read... [18:55:07]Read from MH i2c: D1 01 00 94 00 00 65 [18:55:07]Write to MH i2c: 01 00 00 95 00 95 [18:55:07]Write i2c OK [18:55:07]MH_I2C_Read... [18:55:07]OFD Sender: No OFD packet to send [18:55:08]*** Cut start [18:55:08]*** Partial cut [18:55:08]*** CUTSNS_PIN = 1 [18:55:08]*** CUTSNS_PIN = 0 [18:55:08]*** Brake cut motor [18:55:08]Read from MH i2c: 01 [18:55:08]MH_I2C_Read... [18:55:08]*** Stop cut motor [18:55:08]*** Cut end [18:55:08]Read from MH i2c: 01 07 00 [18:55:08]MH_I2C_Read... [18:55:08]Read from MH i2c: 01 07 00 95 00 00 00 00 00 00 FF 0F AA [18:55:08]process_action close_receipt done [18:55:08]requested_data is exist [18:55:08]produce_requested_data [18:55:08]requested_item fm.sn is exist - process it [18:55:08]wFMCommunicate request_size=4 [18:55:08]MH_SAM_APDU [18:55:08]CAPDU: 80 11 00 00 [18:55:08]Write to MH i2c: E2 08 00 96 00 80 11 00 00 00 00 00 00 10 [18:55:08]Write i2c OK [18:55:08]MH_I2C_Read... [18:55:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:55:08]Read from MH i2c: E2 [18:55:08]MH_I2C_Read... [18:55:08]Read from MH i2c: E2 17 00 [18:55:08]MH_I2C_Read... [18:55:08]Read from MH i2c: E2 17 00 96 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 66 [18:55:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:55:08]wFMCommunicate OK [18:55:08]requested_item fd.num is exist - process it [18:55:08]SAM_PROTO_GetFieldsCounters [18:55:08]wFMCommunicate request_size=4 [18:55:08]MH_SAM_APDU [18:55:08]CAPDU: 80 13 00 00 [18:55:08]Write to MH i2c: E2 08 00 97 00 80 13 00 00 00 00 00 00 13 [18:55:08]Write i2c OK [18:55:08]MH_I2C_Read... [18:55:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:55:08]Read from MH i2c: E2 [18:55:08]MH_I2C_Read... [18:55:08]Read from MH i2c: E2 62 00 [18:55:08]MH_I2C_Read... [18:55:08]Read from MH i2c: E2 62 00 97 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 28 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 11 [18:55: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 28 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:55:08]wFMCommunicate OK [18:55:08]SAM_PROTO_GetFieldsCounters done [18:55:08]requested_item shift.num is exist - process it [18:55:08]requested_item shift.opened is exist - process it [18:55:08]req_shift_opened [18:55:08]FM_GetShiftState [18:55:08]SAM_PROTO_GetShiftState [18:55:08]wFMCommunicate request_size=4 [18:55:08]MH_SAM_APDU [18:55:08]CAPDU: 80 13 01 00 [18:55:08]Write to MH i2c: E2 08 00 98 00 80 13 01 00 00 00 00 00 15 [18:55:08]Write i2c OK [18:55:08]MH_I2C_Read... [18:55:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:55:09]Read from MH i2c: E2 [18:55:09]MH_I2C_Read... [18:55:09]Read from MH i2c: E2 0E 00 [18:55:09]MH_I2C_Read... [18:55:09]Read from MH i2c: E2 0E 00 98 00 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 EE [18:55:09]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [18:55:09]wFMCommunicate OK [18:55:09]SAM_PROTO_GetShiftState done [18:55:09]FM_GetShiftState done [18:55:09]req_shift_opened done [18:55:09]requested_item shift.open_date is exist - process it [18:55:09]req_shift_open_date [18:55:09]req_shift_open_date done [18:55:09]produce_requested_data done [18:55:09]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165416,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [18:55:09]process_action_free close_receipt [18:55:09]json_value_free [18:55:09]json_value_free done [18:55:09]process_json_proto returns [18:55:09]Send response to host [18:55:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165416,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [18:55:09]free response buf [18:55:09]execute_script done [18:55:09]execute_script returns [18:55:09]free content buf [18:55:09]Sock 9.Close socket [18:55:09]Sock 9.Thread stoped [18:55:12]OFD Sender: No OFD packet to send [18:55:17]OFD Sender: No OFD packet to send [18:55:22]OFD Sender: No OFD packet to send [18:55:27]OFD Sender: No OFD packet to send [18:55:32]OFD Sender: No OFD packet to send [18:55:37]OFD Sender: No OFD packet to send [18:55:42]OFD Sender: No OFD packet to send [18:55:47]OFD Sender: No OFD packet to send [18:55:52]OFD Sender: No OFD packet to send [18:55:57]OFD Sender: No OFD packet to send [18:56:02]OFD Sender: No OFD packet to send [18:56:07]OFD Sender: No OFD packet to send [18:56:12]OFD Sender: No OFD packet to send [18:56:17]OFD Sender: No OFD packet to send [18:56:22]OFD Sender: No OFD packet to send [18:56:27]OFD Sender: No OFD packet to send [18:56:32]OFD Sender: No OFD packet to send [18:56:37]OFD Sender: No OFD packet to send [18:56:42]OFD Sender: No OFD packet to send [18:56:47]OFD Sender: No OFD packet to send [18:56:52]OFD Sender: No OFD packet to send [18:56:58]OFD Sender: No OFD packet to send [18:57:03]OFD Sender: No OFD packet to send [18:57:08]OFD Sender: No OFD packet to send [18:57:08]accept exits with 10 [18:57:08]New connection [18:57:08]New thread 3067333988 created [18:57:08]Thread 3067190628 joined [18:57:08]Waiting for new connection... [18:57:08] Sock 10.Parse request [18:57:08]Sock 10.Check first char [18:57:08]Sock 10.First char is OK [18:57:08]request: POST /json_proto HTTP/1.0 [18:57:08]Method: POST [18:57:08]URL: /json_proto [18:57:08]Method is POST - this is cgi request [18:57:08]url: /json_proto [18:57:08]query_string will be loaded in cgi processing [18:57:08]execute_cgi json_proto POST (null) [18:57:08]execute_cgi path=json_proto method=POST [18:57:08]POST find Content-Length [18:57:08]Host: 172.17.56.4:8080 [18:57:08]Content-Length: 677 [18:57:08]Content-Type: application/json [18:57:08] [18:57:08]POST finish read [18:57:08]Found Content-Length = 677 [18:57:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459534", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:08]execute_script... [18:57: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)459534", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:08]POST & json_proto [18:57:08]process_json_proto [18:57:08]json parsed OK: [18:57:08]protocol is kg_v1.0 [18:57:08]action value=close_receipt [18:57:08]process_action close_receipt [18:57:08]cmd_close_receipt [18:57:08]MH_GetDate [18:57:08]Write to MH i2c: F0 00 00 99 00 88 [18:57:08]Write i2c OK [18:57:08]MH_I2C_Read... [18:57:08]Read from MH i2c: F0 [18:57:08]MH_I2C_Read... [18:57:08]Read from MH i2c: F0 09 00 [18:57:08]MH_I2C_Read... [18:57:08]Read from MH i2c: F0 09 00 99 00 00 04 71 95 66 C9 DC B2 64 BC [18:57:08]GetLastDocTimeStamp 1721069705 [18:57:08]current date 1721069828 [18:57:08]FM_GetShiftState [18:57:08]SAM_PROTO_GetShiftState [18:57:08]wFMCommunicate request_size=4 [18:57:08]MH_SAM_APDU [18:57:08]CAPDU: 80 13 01 00 [18:57:08]Write to MH i2c: E2 08 00 9A 00 80 13 01 00 00 00 00 00 17 [18:57:08]Write i2c OK [18:57:08]MH_I2C_Read... [18:57:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:08]Read from MH i2c: E2 [18:57:08]MH_I2C_Read... [18:57:08]Read from MH i2c: E2 0E 00 [18:57:08]MH_I2C_Read... [18:57:08]Read from MH i2c: E2 0E 00 9A 00 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 F0 [18:57:08]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [18:57:08]wFMCommunicate OK [18:57:08]SAM_PROTO_GetShiftState done [18:57:08]FM_GetShiftState done [18:57:08]opened in 1721003876 [18:57:08]opened+sec_in_day 1721090276 [18:57:08]quantity*price = 30004 [18:57:08]sum+1 = 30006 [18:57:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 290 15.07.2024 18:57 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165417 ФПД: 115014984540641 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T185709&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165417&fm=115014984540641&tin=02508201610067®Number=0000000000090829&sum=30000 [18:57:09]StoreToDocumentArchive [18:57:09]shift 448 fd 165417 [18:57:09]save to /storage/0448/doc_00165417 [18:57:09]save last doc name /storage/0448/doc_00165417 to /storage/kkm_last_doc_name [18:57:09]save OK [18:57:09]Clear old archive folders... [18:57:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:57:09]tlvbuf is 01BB4100 [18:57:09]SAM_PROTO_ClearQueue [18:57:09]wFMCommunicate request_size=4 [18:57:09]MH_SAM_APDU [18:57:09]CAPDU: 80 09 00 00 [18:57:09]Write to MH i2c: E2 08 00 A7 00 80 09 00 00 00 00 00 00 19 [18:57:09]Write i2c OK [18:57:09]MH_I2C_Read... [18:57:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:57:09]Read from MH i2c: E2 [18:57:09]MH_I2C_Read... [18:57:09]Read from MH i2c: E2 03 00 [18:57:09]MH_I2C_Read... [18:57:09]Read from MH i2c: E2 03 00 A7 00 00 90 00 1B [18:57:09]RAPDU: 90 00 [18:57:09]wFMCommunicate OK [18:57:09]SAM_PROTO_ClearQueue done [18:57:09]KKMCreateOFDPacket [18:57:09]OFDProtocolAddRootSTLVToBuf [18:57:09]FM_MakeSignedData [18:57:09]FM_MakeSignedData [18:57:09]SAM_PROTO_SignData [18:57:09]wFMCommunicate request_size=4 [18:57:09]MH_SAM_APDU [18:57:09]CAPDU: 80 0D 01 02 [18:57:09]Write to MH i2c: E2 08 00 A8 00 80 0D 01 02 00 00 00 00 21 [18:57:09]Write i2c OK [18:57:09]MH_I2C_Read... [18:57:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:57:09]Read from MH i2c: E2 [18:57:09]MH_I2C_Read... [18:57:09]Read from MH i2c: E2 03 00 [18:57:09]MH_I2C_Read... [18:57:09]Read from MH i2c: E2 03 00 A8 00 00 90 00 1C [18:57:09]RAPDU: 90 00 [18:57:09]wFMCommunicate OK [18:57:09]wFMCommunicate request_size=255 [18:57:09]MH_SAM_APDU [18:57: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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 05 71 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 29 86 02 00 35 04 06 00 68 [18:57:09]Write to MH i2c: E2 02 01 A9 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 05 71 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 29 86 02 00 35 04 06 00 68 00 00 C9 [18:57:09]Write i2c OK [18:57:09]MH_I2C_Read... [18:57:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:10]Read from MH i2c: E2 [18:57:10]MH_I2C_Read... [18:57:10]Read from MH i2c: E2 03 00 [18:57:10]MH_I2C_Read... [18:57:10]Read from MH i2c: E2 03 00 A9 00 00 90 00 1D [18:57:10]RAPDU: 90 00 [18:57:10]wFMCommunicate OK [18:57:10]wFMCommunicate request_size=10 [18:57:10]MH_SAM_APDU [18:57:10]CAPDU: 80 0D 02 02 05 9B 03 4C 21 E1 [18:57:10]Write to MH i2c: E2 0D 00 AA 00 80 0D 02 02 05 00 9B 03 4C 21 E1 00 00 1A [18:57:10]Write i2c OK [18:57:10]MH_I2C_Read... [18:57:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:10]Read from MH i2c: E2 [18:57:10]MH_I2C_Read... [18:57:10]Read from MH i2c: E2 03 00 [18:57:10]MH_I2C_Read... [18:57:10]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [18:57:10]RAPDU: 90 00 [18:57:10]wFMCommunicate OK [18:57:10]wFMCommunicate request_size=4 [18:57:10]MH_SAM_APDU [18:57:10]CAPDU: 80 0D 03 02 [18:57:10]Write to MH i2c: E2 08 00 AB 00 80 0D 03 02 00 00 00 00 26 [18:57:10]Write i2c OK [18:57:10]MH_I2C_Read... [18:57:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:57:10]Read from MH i2c: E2 [18:57:10]MH_I2C_Read... [18:57:10]Read from MH i2c: E2 0B 00 [18:57:10]MH_I2C_Read... [18:57:10]Read from MH i2c: E2 0B 00 AB 00 00 32 3B 1D CF 2C 0D 23 F8 90 00 D4 [18:57:10]RAPDU: 32 3B 1D CF 2C 0D 23 F8 90 00 [18:57:10]wFMCommunicate OK [18:57:10]SAM_PROTO_SignData done [18:57:10]FM_MakeSignedData done [18:57:10]CreateOFDProtocolMessage [18:57:10]wFMCommunicate request_size=4 [18:57:10]MH_SAM_APDU [18:57:10]CAPDU: 80 11 00 00 [18:57:10]Write to MH i2c: E2 08 00 AC 00 80 11 00 00 00 00 00 00 26 [18:57:10]Write i2c OK [18:57:10]MH_I2C_Read... [18:57:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:10]Read from MH i2c: E2 [18:57:10]MH_I2C_Read... [18:57:10]Read from MH i2c: E2 17 00 [18:57:10]MH_I2C_Read... [18:57:10]Read from MH i2c: E2 17 00 AC 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7C [18:57:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:57:10]wFMCommunicate OK [18:57:10]CreateOFDProtocolMessage done [18:57:10]OFDSenderStorePacket 165417 [18:57:10]StoreOFDPacket docnum=165417 [18:57:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 59 F5 07 01 40 F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 05 71 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 29 86 02 00 35 04 06 00 68 9B 03 4C 21 E1 32 3B 1D CF 2C 0D 23 F8 [18:57:10]CheckFolder [18:57:10]dirname=/storage/ofd_packets [18:57:10]CheckFolder done [18:57:10]ProducePacketName [18:57:10]name=ofd_packets/00165417 [18:57:10]NVStorageSaveData ofd_packets/00165417 [18:57:10]File name is /storage/ofd_packets/00165417 [18:57:10]Write 301 bytes [18:57:10]NVStorageSaveData done [18:57:10]OFDSenderStorePacket done [18:57:10]KKMCreateOFDPacket done [18:57:10]NVStorageSaveData kkm_last_timestamp [18:57:10]File name is /storage/kkm_last_timestamp [18:57:10]Write 4 bytes [18:57:10]NVStorageSaveData done [18:57:10]ExternCall_PrintAddStr [18:57:10]wPrintStart [18:57:10]Write to MH i2c: 01 00 00 AD 00 AD [18:57:10]Write i2c OK [18:57:10]MH_I2C_Read... [18:57:10]Read from MH i2c: 01 [18:57:10]MH_I2C_Read... [18:57:10]Read from MH i2c: 01 07 00 [18:57:10]MH_I2C_Read... [18:57:10]Read from MH i2c: 01 07 00 AD 00 00 00 00 00 00 FF 0F C2 [18:57:10]RasterBufferAndPrint [18:57:10]line Счет N : (1)459534 [18:57:10]line ИНН: 02508201610067 [18:57:10]line Контрольно-Кассовый Чек [18:57:10]line ПРОДАЖА [18:57:10]line ТРК (МРК, ГНК) : 12 [18:57:10]line Товар: 2710124130 [18:57:10]line Аи-92-К-5 [18:57:10]line 4.560 * 65.80 [18:57:10]line = 300.05 [18:57:10]line НДС 12% НСП 1% [18:57:10]line > о реализуемом товаре [18:57:10]line ОКРУГЛЕНИЕ: -0.05 [18:57:10]line ИТОГО: 300.00 [18:57:10]line Внесено: 300.00 [18:57:10]line СДАЧА: 0.00 [18:57:10]line НСП 1% : 2.65 [18:57:10]line НДС 12% : 31.86 [18:57:10]line Наличными: 300.00 [18:57:10]line Безнал.: 0.00 [18:57:10]line Место: АЗС № 72 "Партнер Нефть" [18:57:10]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:57:10]line СНО: Общий режим [18:57:10]line Чек 290 15.07.2024 18:57 [18:57:10]line Смена: 448 ФФД: 1.0 [18:57:10]line ЗНМ: 0300000160 [18:57:10]line РНМ: 0000000000090829 [18:57:10]line Версия ККМ: 001 [18:57:10]line ФМ: 0000000000874718 [18:57:10]line ФД: 165417 [18:57:10]line ФПД: 115014984540641 [18:57:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T185709&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165417&fm=115014984540641&tin=02508201610067®Number=0000000000090829&sum=30000 [18:57:10]written 0, free lines is 4095 [18:57:10]OFD Sender: Processing packet 165417 [packets to send 106, broken 105] [18:57:10]ProducePacketName [18:57:10]name=ofd_packets/00165417 [18:57:10]OFD Sender: To server: pG, [18:57:10]CommunicateWithHost lk.salyk.kg:30040 [18:57:10]ConnectInit lk.salyk.kg [18:57:10]Connected sock=9 [18:57: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 37 31 38 0F 01 00 00 59 F5 07 01 40 F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 05 71 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 29 86 02 00 35 04 06 00 68 9B 03 4C 21 E1 32 3B 1D CF 2C 0D 23 F8 [18:57:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 CD 38 47 00 94 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 29 86 02 00 F4 03 04 00 8E 17 95 66 B6 04 01 00 00 1E 4A E6 F8 15 45 A6 F0 [18:57:10]CommunicateWithHost err = 0 [18:57:10]CheckOFDResponse [18:57:10]1017 (14) - 77093643461234 [18:57:10]1041 (16) - 0000000000874718 [18:57:10]1040 (4) - 165417 [18:57:10]1012 (4) - 15.07.2024 12:35 [18:57:10]1206 (1) - 0 [18:57:10]OFD Sender: Remove packet 165417 [18:57:10]ProducePacketName [18:57:10]name=ofd_packets/00165417 [18:57:10]NVStorageDeleteData [18:57:10]Write to MH i2c: 01 00 00 D7 00 D7 [18:57:10]Write i2c OK [18:57:10]MH_I2C_Read... [18:57:10]Read from MH i2c: 01 [18:57:10]MH_I2C_Read... [18:57:10]Read from MH i2c: 01 07 00 [18:57:10]MH_I2C_Read... [18:57:10]Read from MH i2c: 01 07 00 D7 00 00 00 00 00 00 F3 0C DD [18:57:10]RasterBufferAndPrint [18:57:10]line [18:57:10]line [18:57:10]line [18:57:10]line [18:57:10]line [18:57:10]written 0, free lines is 3322 [18:57:10]MH_Cut [18:57:10]Write to MH i2c: D1 01 00 DE 00 01 B0 [18:57:10]Write i2c OK [18:57:10]MH_I2C_Read... [18:57:10]Read from MH i2c: D1 [18:57:10]MH_I2C_Read... [18:57:10]Read from MH i2c: D1 01 00 [18:57:10]MH_I2C_Read... [18:57:10]Read from MH i2c: D1 01 00 DE 00 00 AF [18:57:10]Write to MH i2c: 01 00 00 DF 00 DF [18:57:11]Write i2c OK [18:57:11]MH_I2C_Read... [18:57:11]OFD Sender: No OFD packet to send [18:57:11]*** Cut start [18:57:11]*** Partial cut [18:57:11]*** CUTSNS_PIN = 1 [18:57:11]*** CUTSNS_PIN = 0 [18:57:11]*** Brake cut motor [18:57:12]Read from MH i2c: 01 [18:57:12]MH_I2C_Read... [18:57:12]*** Stop cut motor [18:57:12]*** Cut end [18:57:12]Read from MH i2c: 01 07 00 [18:57:12]MH_I2C_Read... [18:57:12]Read from MH i2c: 01 07 00 DF 00 00 00 00 00 00 FF 0F F4 [18:57:12]process_action close_receipt done [18:57:12]requested_data is exist [18:57:12]produce_requested_data [18:57:12]requested_item fm.sn is exist - process it [18:57:12]wFMCommunicate request_size=4 [18:57:12]MH_SAM_APDU [18:57:12]CAPDU: 80 11 00 00 [18:57:12]Write to MH i2c: E2 08 00 E0 00 80 11 00 00 00 00 00 00 5A [18:57:12]Write i2c OK [18:57:12]MH_I2C_Read... [18:57:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:12]Read from MH i2c: E2 [18:57:12]MH_I2C_Read... [18:57:12]Read from MH i2c: E2 17 00 [18:57:12]MH_I2C_Read... [18:57:12]Read from MH i2c: E2 17 00 E0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B0 [18:57:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:57:12]wFMCommunicate OK [18:57:12]requested_item fd.num is exist - process it [18:57:12]SAM_PROTO_GetFieldsCounters [18:57:12]wFMCommunicate request_size=4 [18:57:12]MH_SAM_APDU [18:57:12]CAPDU: 80 13 00 00 [18:57:12]Write to MH i2c: E2 08 00 E1 00 80 13 00 00 00 00 00 00 5D [18:57:12]Write i2c OK [18:57:12]MH_I2C_Read... [18:57:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:57:12]Read from MH i2c: E2 [18:57:12]MH_I2C_Read... [18:57:12]Read from MH i2c: E2 62 00 [18:57:12]MH_I2C_Read... [18:57:12]Read from MH i2c: E2 62 00 E1 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 29 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 5F [18:57: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 29 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:57:12]wFMCommunicate OK [18:57:12]SAM_PROTO_GetFieldsCounters done [18:57:12]requested_item shift.num is exist - process it [18:57:12]requested_item shift.opened is exist - process it [18:57:12]req_shift_opened [18:57:12]FM_GetShiftState [18:57:12]SAM_PROTO_GetShiftState [18:57:12]wFMCommunicate request_size=4 [18:57:12]MH_SAM_APDU [18:57:12]CAPDU: 80 13 01 00 [18:57:12]Write to MH i2c: E2 08 00 E2 00 80 13 01 00 00 00 00 00 5F [18:57:12]Write i2c OK [18:57:12]MH_I2C_Read... [18:57:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:12]Read from MH i2c: E2 [18:57:12]MH_I2C_Read... [18:57:12]Read from MH i2c: E2 0E 00 [18:57:12]MH_I2C_Read... [18:57:12]Read from MH i2c: E2 0E 00 E2 00 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 38 [18:57:12]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [18:57:12]wFMCommunicate OK [18:57:12]SAM_PROTO_GetShiftState done [18:57:12]FM_GetShiftState done [18:57:12]req_shift_opened done [18:57:12]requested_item shift.open_date is exist - process it [18:57:12]req_shift_open_date [18:57:12]req_shift_open_date done [18:57:12]produce_requested_data done [18:57:12]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165417,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [18:57:12]process_action_free close_receipt [18:57:12]json_value_free [18:57:12]json_value_free done [18:57:12]process_json_proto returns [18:57:12]Send response to host [18:57:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165417,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [18:57:12]free response buf [18:57:12]execute_script done [18:57:12]execute_script returns [18:57:12]free content buf [18:57:12]Sock 10.Close socket [18:57:12]Sock 10.Thread stoped [18:57:16]OFD Sender: No OFD packet to send [18:57:21]OFD Sender: No OFD packet to send [18:57:26]OFD Sender: No OFD packet to send [18:57:29]accept exits with 7 [18:57:29]New connection [18:57:29]New thread 3067190628 created [18:57:29]Thread 3067333988 joined [18:57:29]Waiting for new connection... [18:57:29] Sock 7.Parse request [18:57:29]Sock 7.Check first char [18:57:29]Sock 7.First char is OK [18:57:29]request: POST /json_proto HTTP/1.0 [18:57:29]Method: POST [18:57:29]URL: /json_proto [18:57:29]Method is POST - this is cgi request [18:57:29]url: /json_proto [18:57:29]query_string will be loaded in cgi processing [18:57:29]execute_cgi json_proto POST (null) [18:57:29]execute_cgi path=json_proto method=POST [18:57:29]POST find Content-Length [18:57:29]Host: 172.17.56.4:8080 [18:57:29]Content-Length: 679 [18:57:29]Content-Type: application/json [18:57:29] [18:57:29]POST finish read [18:57:29]Found Content-Length = 679 [18:57:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459533", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 17.250, "sum" : 1240.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1240.00, "total" : 1240.00, "payments": [ { "type": 0, "sum" : 1240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:29]execute_script... [18:57: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)459533", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 17.250, "sum" : 1240.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1240.00, "total" : 1240.00, "payments": [ { "type": 0, "sum" : 1240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:29]POST & json_proto [18:57:29]process_json_proto [18:57:29]json parsed OK: [18:57:29]protocol is kg_v1.0 [18:57:29]action value=close_receipt [18:57:29]process_action close_receipt [18:57:29]cmd_close_receipt [18:57:29]MH_GetDate [18:57:29]Write to MH i2c: F0 00 00 E3 00 D2 [18:57:29]Write i2c OK [18:57:29]MH_I2C_Read... [18:57:29]Read from MH i2c: F0 [18:57:29]MH_I2C_Read... [18:57:29]Read from MH i2c: F0 09 00 [18:57:29]MH_I2C_Read... [18:57:29]Read from MH i2c: F0 09 00 E3 00 00 19 71 95 66 C9 DC B2 64 1B [18:57:29]GetLastDocTimeStamp 1721069829 [18:57:29]current date 1721069849 [18:57:29]FM_GetShiftState [18:57:29]SAM_PROTO_GetShiftState [18:57:29]wFMCommunicate request_size=4 [18:57:29]MH_SAM_APDU [18:57:29]CAPDU: 80 13 01 00 [18:57:29]Write to MH i2c: E2 08 00 E4 00 80 13 01 00 00 00 00 00 61 [18:57:29]Write i2c OK [18:57:29]MH_I2C_Read... [18:57:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:29]Read from MH i2c: E2 [18:57:29]MH_I2C_Read... [18:57:29]Read from MH i2c: E2 0E 00 [18:57:29]MH_I2C_Read... [18:57:29]Read from MH i2c: E2 0E 00 E4 00 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 3A [18:57:29]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [18:57:29]wFMCommunicate OK [18:57:29]SAM_PROTO_GetShiftState done [18:57:29]FM_GetShiftState done [18:57:29]opened in 1721003876 [18:57:29]opened+sec_in_day 1721090276 [18:57:29]quantity*price = 124027 [18:57:29]sum+1 = 124029 [18:57:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 1240.00 Внесено: 1240.00 СДАЧА: 0.00 НСП 1% : 10.98 НДС 12% : 131.71 Наличными: 1240.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 291 15.07.2024 18:57 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165418 ФПД: 269966213707278 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T185729&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165418&fm=269966213707278&tin=02508201610067®Number=0000000000090829&sum=124000 [18:57:30]StoreToDocumentArchive [18:57:30]shift 448 fd 165418 [18:57:30]save to /storage/0448/doc_00165418 [18:57:30]save last doc name /storage/0448/doc_00165418 to /storage/kkm_last_doc_name [18:57:30]save OK [18:57:30]Clear old archive folders... [18:57:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:57:30]tlvbuf is 01B42F20 [18:57:30]SAM_PROTO_ClearQueue [18:57:30]wFMCommunicate request_size=4 [18:57:30]MH_SAM_APDU [18:57:30]CAPDU: 80 09 00 00 [18:57:30]Write to MH i2c: E2 08 00 F1 00 80 09 00 00 00 00 00 00 63 [18:57:30]Write i2c OK [18:57:30]MH_I2C_Read... [18:57:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:57:30]Read from MH i2c: E2 [18:57:30]MH_I2C_Read... [18:57:30]Read from MH i2c: E2 03 00 [18:57:30]MH_I2C_Read... [18:57:30]Read from MH i2c: E2 03 00 F1 00 00 90 00 65 [18:57:30]RAPDU: 90 00 [18:57:30]wFMCommunicate OK [18:57:30]SAM_PROTO_ClearQueue done [18:57:30]KKMCreateOFDPacket [18:57:30]OFDProtocolAddRootSTLVToBuf [18:57:30]FM_MakeSignedData [18:57:30]FM_MakeSignedData [18:57:30]SAM_PROTO_SignData [18:57:30]wFMCommunicate request_size=4 [18:57:30]MH_SAM_APDU [18:57:30]CAPDU: 80 0D 01 02 [18:57:30]Write to MH i2c: E2 08 00 F2 00 80 0D 01 02 00 00 00 00 6B [18:57:30]Write i2c OK [18:57:30]MH_I2C_Read... [18:57:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:57:30]Read from MH i2c: E2 [18:57:30]MH_I2C_Read... [18:57:30]Read from MH i2c: E2 03 00 [18:57:30]MH_I2C_Read... [18:57:30]Read from MH i2c: E2 03 00 F2 00 00 90 00 66 [18:57:30]RAPDU: 90 00 [18:57:30]wFMCommunicate OK [18:57:30]wFMCommunicate request_size=255 [18:57:30]MH_SAM_APDU [18:57:30]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 62 43 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7C E4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 E4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 33 00 00 00 00 07 04 06 00 60 E4 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 01 00 00 F4 03 04 00 19 71 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2A 86 02 00 35 04 06 00 F5 88 68 44 [18:57:30]Write to MH i2c: E2 02 01 F3 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 62 43 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7C E4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 E4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 33 00 00 00 00 07 04 06 00 60 E4 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 01 00 00 F4 03 04 00 19 71 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2A 86 02 00 35 04 06 00 F5 88 68 44 00 00 C9 [18:57:30]Write i2c OK [18:57:30]MH_I2C_Read... [18:57:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:30]Read from MH i2c: E2 [18:57:30]MH_I2C_Read... [18:57:30]Read from MH i2c: E2 03 00 [18:57:30]MH_I2C_Read... [18:57:30]Read from MH i2c: E2 03 00 F3 00 00 90 00 67 [18:57:30]RAPDU: 90 00 [18:57:30]wFMCommunicate OK [18:57:30]wFMCommunicate request_size=7 [18:57:30]MH_SAM_APDU [18:57:30]CAPDU: 80 0D 02 02 02 F6 0E [18:57:30]Write to MH i2c: E2 0A 00 F4 00 80 0D 02 02 02 00 F6 0E 00 00 76 [18:57:30]Write i2c OK [18:57:30]MH_I2C_Read... [18:57:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:30]Read from MH i2c: E2 [18:57:30]MH_I2C_Read... [18:57:30]Read from MH i2c: E2 03 00 [18:57:30]MH_I2C_Read... [18:57:30]Read from MH i2c: E2 03 00 F4 00 00 90 00 68 [18:57:30]RAPDU: 90 00 [18:57:30]wFMCommunicate OK [18:57:30]wFMCommunicate request_size=4 [18:57:30]MH_SAM_APDU [18:57:30]CAPDU: 80 0D 03 02 [18:57:30]Write to MH i2c: E2 08 00 F5 00 80 0D 03 02 00 00 00 00 70 [18:57:30]Write i2c OK [18:57:30]MH_I2C_Read... [18:57:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:57:30]Read from MH i2c: E2 [18:57:30]MH_I2C_Read... [18:57:30]Read from MH i2c: E2 0B 00 [18:57:30]MH_I2C_Read... [18:57:30]Read from MH i2c: E2 0B 00 F5 00 00 B1 D5 D0 39 0E CB 5D 63 90 00 99 [18:57:30]RAPDU: B1 D5 D0 39 0E CB 5D 63 90 00 [18:57:30]wFMCommunicate OK [18:57:30]SAM_PROTO_SignData done [18:57:30]FM_MakeSignedData done [18:57:30]CreateOFDProtocolMessage [18:57:30]wFMCommunicate request_size=4 [18:57:30]MH_SAM_APDU [18:57:30]CAPDU: 80 11 00 00 [18:57:30]Write to MH i2c: E2 08 00 F6 00 80 11 00 00 00 00 00 00 70 [18:57:30]Write i2c OK [18:57:30]MH_I2C_Read... [18:57:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:30]Read from MH i2c: E2 [18:57:30]MH_I2C_Read... [18:57:30]Read from MH i2c: E2 17 00 [18:57:30]MH_I2C_Read... [18:57:30]Read from MH i2c: E2 17 00 F6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C6 [18:57:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:57:30]wFMCommunicate OK [18:57:30]CreateOFDProtocolMessage done [18:57:30]OFDSenderStorePacket 165418 [18:57:30]StoreOFDPacket docnum=165418 [18:57:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 16 A1 04 01 1E 5E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 62 43 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7C E4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 E4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 33 00 00 00 00 07 04 06 00 60 E4 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 01 00 00 F4 03 04 00 19 71 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2A 86 02 00 35 04 06 00 F5 88 68 44 F6 0E B1 D5 D0 39 0E CB 5D 63 [18:57:30]CheckFolder [18:57:30]dirname=/storage/ofd_packets [18:57:30]CheckFolder done [18:57:30]ProducePacketName [18:57:30]name=ofd_packets/00165418 [18:57:30]NVStorageSaveData ofd_packets/00165418 [18:57:30]File name is /storage/ofd_packets/00165418 [18:57:30]Write 298 bytes [18:57:30]NVStorageSaveData done [18:57:30]OFDSenderStorePacket done [18:57:30]KKMCreateOFDPacket done [18:57:30]NVStorageSaveData kkm_last_timestamp [18:57:30]File name is /storage/kkm_last_timestamp [18:57:30]Write 4 bytes [18:57:30]NVStorageSaveData done [18:57:30]ExternCall_PrintAddStr [18:57:30]wPrintStart [18:57:30]Write to MH i2c: 01 00 00 F7 00 F7 [18:57:30]Write i2c OK [18:57:30]MH_I2C_Read... [18:57:30]Read from MH i2c: 01 [18:57:30]MH_I2C_Read... [18:57:30]Read from MH i2c: 01 07 00 [18:57:30]MH_I2C_Read... [18:57:30]Read from MH i2c: 01 07 00 F7 00 00 00 00 00 00 FF 0F 0C [18:57:30]RasterBufferAndPrint [18:57:30]line Счет N : (1)459533 [18:57:30]line ИНН: 02508201610067 [18:57:30]line Контрольно-Кассовый Чек [18:57:30]line ПРОДАЖА [18:57:30]line ТРК (МРК, ГНК) : 21 [18:57:30]line Товар: 2710194210 [18:57:30]line ДТ-К-5 [18:57:30]line 17.250 * 71.90 [18:57:30]line = 1240.28 [18:57:30]line НДС 12% НСП 1% [18:57:30]line > о реализуемом товаре [18:57:30]line ОКРУГЛЕНИЕ: -0.28 [18:57:30]line ИТОГО: 1240.00 [18:57:30]line Внесено: 1240.00 [18:57:30]line СДАЧА: 0.00 [18:57:30]line НСП 1% : 10.98 [18:57:30]line НДС 12% : 131.71 [18:57:30]line Наличными: 1240.00 [18:57:30]line Безнал.: 0.00 [18:57:30]line Место: АЗС № 72 "Партнер Нефть" [18:57:30]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [18:57:30]line СНО: Общий режим [18:57:30]line Чек 291 15.07.2024 18:57 [18:57:30]line Смена: 448 ФФД: 1.0 [18:57:30]line ЗНМ: 0300000160 [18:57:30]line РНМ: 0000000000090829 [18:57:30]line Версия ККМ: 001 [18:57:30]line ФМ: 0000000000874718 [18:57:30]line ФД: 165418 [18:57:30]line ФПД: 269966213707278 [18:57:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T185729&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165418&fm=269966213707278&tin=02508201610067®Number=0000000000090829&sum=124000 [18:57:31]OFD Sender: Processing packet 165418 [packets to send 106, broken 105] [18:57:31]ProducePacketName [18:57:31]name=ofd_packets/00165418 [18:57:31]OFD Sender: To server: pG, [18:57:31]CommunicateWithHost lk.salyk.kg:30040 [18:57:31]ConnectInit lk.salyk.kg [18:57:31]written 0, free lines is 4095 [18:57:31]Connected sock=10 [18:57: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 37 31 38 0C 01 00 00 16 A1 04 01 1E 5E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 62 43 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7C E4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 E4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 33 00 00 00 00 07 04 06 00 60 E4 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 01 00 00 F4 03 04 00 19 71 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2A 86 02 00 35 04 06 00 F5 88 68 44 F6 0E B1 D5 D0 39 0E CB 5D 63 [18:57:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 C6 8B 47 00 F3 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2A 86 02 00 F4 03 04 00 A3 17 95 66 B6 04 01 00 00 AD 04 8D B8 50 E1 DE DA [18:57:31]CommunicateWithHost err = 0 [18:57:31]CheckOFDResponse [18:57:31]1017 (14) - 77093643461234 [18:57:31]1041 (16) - 0000000000874718 [18:57:31]1040 (4) - 165418 [18:57:31]1012 (4) - 15.07.2024 12:35 [18:57:31]1206 (1) - 0 [18:57:31]OFD Sender: Remove packet 165418 [18:57:31]ProducePacketName [18:57:31]name=ofd_packets/00165418 [18:57:31]NVStorageDeleteData [18:57:31]Write to MH i2c: 01 00 00 21 01 22 [18:57:31]Write i2c OK [18:57:31]MH_I2C_Read... [18:57:31]Read from MH i2c: 01 [18:57:31]MH_I2C_Read... [18:57:31]Read from MH i2c: 01 07 00 [18:57:31]MH_I2C_Read... [18:57:31]Read from MH i2c: 01 07 00 21 01 00 00 00 00 00 EE 0C 23 [18:57:31]RasterBufferAndPrint [18:57:31]line [18:57:31]line [18:57:31]line [18:57:31]line [18:57:31]line [18:57:31]written 0, free lines is 3316 [18:57:31]MH_Cut [18:57:31]Write to MH i2c: D1 01 00 28 01 01 FB [18:57:31]Write i2c OK [18:57:31]MH_I2C_Read... [18:57:31]Read from MH i2c: D1 [18:57:31]MH_I2C_Read... [18:57:31]Read from MH i2c: D1 01 00 [18:57:31]MH_I2C_Read... [18:57:31]Read from MH i2c: D1 01 00 28 01 00 FA [18:57:31]Write to MH i2c: 01 00 00 29 01 2A [18:57:31]Write i2c OK [18:57:31]MH_I2C_Read... [18:57:32]OFD Sender: No OFD packet to send [18:57:32]*** Cut start [18:57:32]*** Partial cut [18:57:32]*** CUTSNS_PIN = 1 [18:57:32]*** CUTSNS_PIN = 0 [18:57:32]*** Brake cut motor [18:57:32]Read from MH i2c: 01 [18:57:32]MH_I2C_Read... [18:57:32]*** Stop cut motor [18:57:32]*** Cut end [18:57:32]Read from MH i2c: 01 07 00 [18:57:32]MH_I2C_Read... [18:57:32]Read from MH i2c: 01 07 00 29 01 00 00 00 00 00 FF 0F 3F [18:57:32]process_action close_receipt done [18:57:32]requested_data is exist [18:57:32]produce_requested_data [18:57:32]requested_item fm.sn is exist - process it [18:57:32]wFMCommunicate request_size=4 [18:57:32]MH_SAM_APDU [18:57:32]CAPDU: 80 11 00 00 [18:57:32]Write to MH i2c: E2 08 00 2A 01 80 11 00 00 00 00 00 00 A5 [18:57:32]Write i2c OK [18:57:32]MH_I2C_Read... [18:57:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:33]Read from MH i2c: E2 [18:57:33]MH_I2C_Read... [18:57:33]Read from MH i2c: E2 17 00 [18:57:33]MH_I2C_Read... [18:57:33]Read from MH i2c: E2 17 00 2A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FB [18:57:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [18:57:33]wFMCommunicate OK [18:57:33]requested_item fd.num is exist - process it [18:57:33]SAM_PROTO_GetFieldsCounters [18:57:33]wFMCommunicate request_size=4 [18:57:33]MH_SAM_APDU [18:57:33]CAPDU: 80 13 00 00 [18:57:33]Write to MH i2c: E2 08 00 2B 01 80 13 00 00 00 00 00 00 A8 [18:57:33]Write i2c OK [18:57:33]MH_I2C_Read... [18:57:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:57:33]Read from MH i2c: E2 [18:57:33]MH_I2C_Read... [18:57:33]Read from MH i2c: E2 62 00 [18:57:33]MH_I2C_Read... [18:57:33]Read from MH i2c: E2 62 00 2B 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2A 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 AE [18:57: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2A 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:57:33]wFMCommunicate OK [18:57:33]SAM_PROTO_GetFieldsCounters done [18:57:33]requested_item shift.num is exist - process it [18:57:33]requested_item shift.opened is exist - process it [18:57:33]req_shift_opened [18:57:33]FM_GetShiftState [18:57:33]SAM_PROTO_GetShiftState [18:57:33]wFMCommunicate request_size=4 [18:57:33]MH_SAM_APDU [18:57:33]CAPDU: 80 13 01 00 [18:57:33]Write to MH i2c: E2 08 00 2C 01 80 13 01 00 00 00 00 00 AA [18:57:33]Write i2c OK [18:57:33]MH_I2C_Read... [18:57:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:33]Read from MH i2c: E2 [18:57:33]MH_I2C_Read... [18:57:33]Read from MH i2c: E2 0E 00 [18:57:33]MH_I2C_Read... [18:57:33]Read from MH i2c: E2 0E 00 2C 01 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 83 [18:57:33]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [18:57:33]wFMCommunicate OK [18:57:33]SAM_PROTO_GetShiftState done [18:57:33]FM_GetShiftState done [18:57:33]req_shift_opened done [18:57:33]requested_item shift.open_date is exist - process it [18:57:33]req_shift_open_date [18:57:33]req_shift_open_date done [18:57:33]produce_requested_data done [18:57:33]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165418,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [18:57:33]process_action_free close_receipt [18:57:33]json_value_free [18:57:33]json_value_free done [18:57:33]process_json_proto returns [18:57:33]Send response to host [18:57:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165418,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [18:57:33]free response buf [18:57:33]execute_script done [18:57:33]execute_script returns [18:57:33]free content buf [18:57:33]Sock 7.Close socket [18:57:33]Sock 7.Thread stoped [18:57:37]OFD Sender: No OFD packet to send [18:57:42]OFD Sender: No OFD packet to send [18:57:47]OFD Sender: No OFD packet to send [18:57:52]OFD Sender: No OFD packet to send [18:57:57]OFD Sender: No OFD packet to send [18:58:02]OFD Sender: No OFD packet to send [18:58:07]OFD Sender: No OFD packet to send [18:58:12]OFD Sender: No OFD packet to send [18:58:17]OFD Sender: No OFD packet to send [18:58:22]OFD Sender: No OFD packet to send [18:58:27]OFD Sender: No OFD packet to send [18:58:32]OFD Sender: No OFD packet to send [18:58:37]OFD Sender: No OFD packet to send [18:58:42]OFD Sender: No OFD packet to send [18:58:47]OFD Sender: No OFD packet to send [18:58:52]OFD Sender: No OFD packet to send [18:58:57]OFD Sender: No OFD packet to send [18:59:02]OFD Sender: No OFD packet to send [18:59:07]OFD Sender: No OFD packet to send [18:59:12]OFD Sender: No OFD packet to send [18:59:17]OFD Sender: No OFD packet to send [18:59:22]OFD Sender: No OFD packet to send [18:59:27]OFD Sender: No OFD packet to send [18:59:32]OFD Sender: No OFD packet to send [18:59:37]OFD Sender: No OFD packet to send [18:59:42]OFD Sender: No OFD packet to send [18:59:47]OFD Sender: No OFD packet to send [18:59:52]OFD Sender: No OFD packet to send [18:59:57]OFD Sender: No OFD packet to send [19:00:02]OFD Sender: No OFD packet to send [19:00:07]OFD Sender: No OFD packet to send [19:00:12]OFD Sender: No OFD packet to send [19:00:17]OFD Sender: No OFD packet to send [19:00:22]OFD Sender: No OFD packet to send [19:00:27]OFD Sender: No OFD packet to send [19:00:32]OFD Sender: No OFD packet to send [19:00:37]OFD Sender: No OFD packet to send [19:00:42]OFD Sender: No OFD packet to send [19:00:47]OFD Sender: No OFD packet to send [19:00:52]OFD Sender: No OFD packet to send [19:00:57]OFD Sender: No OFD packet to send [19:01:02]OFD Sender: No OFD packet to send [19:01:07]OFD Sender: No OFD packet to send [19:01:12]OFD Sender: No OFD packet to send [19:01:17]OFD Sender: No OFD packet to send [19:01:22]OFD Sender: No OFD packet to send [19:01:27]OFD Sender: No OFD packet to send [19:01:32]OFD Sender: No OFD packet to send [19:01:37]OFD Sender: No OFD packet to send [19:01:42]OFD Sender: No OFD packet to send [19:01:47]OFD Sender: No OFD packet to send [19:01:52]OFD Sender: No OFD packet to send [19:01:57]OFD Sender: No OFD packet to send [19:02:02]OFD Sender: No OFD packet to send [19:02:07]OFD Sender: No OFD packet to send [19:02:12]OFD Sender: No OFD packet to send [19:02:17]OFD Sender: No OFD packet to send [19:02:22]OFD Sender: No OFD packet to send [19:02:27]OFD Sender: No OFD packet to send [19:02:32]OFD Sender: No OFD packet to send [19:02:37]OFD Sender: No OFD packet to send [19:02:42]OFD Sender: No OFD packet to send [19:02:47]OFD Sender: No OFD packet to send [19:02:52]OFD Sender: No OFD packet to send [19:02:57]OFD Sender: No OFD packet to send [19:03:02]OFD Sender: No OFD packet to send [19:03:07]OFD Sender: No OFD packet to send [19:03:12]OFD Sender: No OFD packet to send [19:03:17]OFD Sender: No OFD packet to send [19:03:22]OFD Sender: No OFD packet to send [19:03:27]OFD Sender: No OFD packet to send [19:03:32]OFD Sender: No OFD packet to send [19:03:37]OFD Sender: No OFD packet to send [19:03:42]OFD Sender: No OFD packet to send [19:03:47]OFD Sender: No OFD packet to send [19:03:52]OFD Sender: No OFD packet to send [19:03:57]OFD Sender: No OFD packet to send [19:04:02]OFD Sender: No OFD packet to send [19:04:07]OFD Sender: No OFD packet to send [19:04:12]OFD Sender: No OFD packet to send [19:04:17]OFD Sender: No OFD packet to send [19:04:22]OFD Sender: No OFD packet to send [19:04:27]OFD Sender: No OFD packet to send [19:04:32]OFD Sender: No OFD packet to send [19:04:37]OFD Sender: No OFD packet to send [19:04:42]OFD Sender: No OFD packet to send [19:04:47]OFD Sender: No OFD packet to send [19:04:52]OFD Sender: No OFD packet to send [19:04:57]OFD Sender: No OFD packet to send [19:05:02]OFD Sender: No OFD packet to send [19:05:07]OFD Sender: No OFD packet to send [19:05:12]OFD Sender: No OFD packet to send [19:05:17]OFD Sender: No OFD packet to send [19:05:22]OFD Sender: No OFD packet to send [19:05:27]OFD Sender: No OFD packet to send [19:05:32]OFD Sender: No OFD packet to send [19:05:37]OFD Sender: No OFD packet to send [19:05:42]OFD Sender: No OFD packet to send [19:05:47]OFD Sender: No OFD packet to send [19:05:52]OFD Sender: No OFD packet to send [19:05:57]OFD Sender: No OFD packet to send [19:06:02]OFD Sender: No OFD packet to send [19:06:07]OFD Sender: No OFD packet to send [19:06:12]OFD Sender: No OFD packet to send [19:06:13]accept exits with 9 [19:06:13]New connection [19:06:13]New thread 3067333988 created [19:06:13]Thread 3067190628 joined [19:06:13]Waiting for new connection... [19:06:13] Sock 9.Parse request [19:06:13]Sock 9.Check first char [19:06:13]Sock 9.First char is OK [19:06:13]request: POST /json_proto HTTP/1.0 [19:06:13]Method: POST [19:06:13]URL: /json_proto [19:06:13]Method is POST - this is cgi request [19:06:13]url: /json_proto [19:06:13]query_string will be loaded in cgi processing [19:06:13]execute_cgi json_proto POST (null) [19:06:13]execute_cgi path=json_proto method=POST [19:06:13]POST find Content-Length [19:06:13]Host: 172.17.56.4:8080 [19:06:13]Content-Length: 840 [19:06:13]Content-Type: application/json [19:06:13] [19:06:13]POST finish read [19:06:13]Found Content-Length = 840 [19:06:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459535", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 9.200, "sum" : 600.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 600.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:06:13]execute_script... [19:06:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459535", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 9.200, "sum" : 600.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 600.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:06:13]POST & json_proto [19:06:13]process_json_proto [19:06:13]json parsed OK: [19:06:13]protocol is kg_v1.0 [19:06:13]action value=close_receipt [19:06:13]process_action close_receipt [19:06:13]cmd_close_receipt [19:06:13]MH_GetDate [19:06:13]Write to MH i2c: F0 00 00 2D 01 1D [19:06:13]Write i2c OK [19:06:13]MH_I2C_Read... [19:06:13]Read from MH i2c: F0 [19:06:13]MH_I2C_Read... [19:06:13]Read from MH i2c: F0 09 00 [19:06:13]MH_I2C_Read... [19:06:13]Read from MH i2c: F0 09 00 2D 01 00 25 73 95 66 C9 DC B2 64 74 [19:06:13]GetLastDocTimeStamp 1721069849 [19:06:13]current date 1721070373 [19:06:13]FM_GetShiftState [19:06:13]SAM_PROTO_GetShiftState [19:06:13]wFMCommunicate request_size=4 [19:06:13]MH_SAM_APDU [19:06:13]CAPDU: 80 13 01 00 [19:06:13]Write to MH i2c: E2 08 00 2E 01 80 13 01 00 00 00 00 00 AC [19:06:13]Write i2c OK [19:06:13]MH_I2C_Read... [19:06:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:13]Read from MH i2c: E2 [19:06:13]MH_I2C_Read... [19:06:13]Read from MH i2c: E2 0E 00 [19:06:13]MH_I2C_Read... [19:06:13]Read from MH i2c: E2 0E 00 2E 01 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 85 [19:06:13]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [19:06:13]wFMCommunicate OK [19:06:13]SAM_PROTO_GetShiftState done [19:06:13]FM_GetShiftState done [19:06:13]opened in 1721003876 [19:06:13]opened+sec_in_day 1721090276 [19:06:13]quantity*price = 60002 [19:06:13]sum+1 = 60003 [19:06:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.02 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 0.00 Безнал.: 600.02 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 292 15.07.2024 19:06 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874718 ФД: 165419 ФПД: 32893227296573 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T190613&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165419&fm=32893227296573&tin=02508201610067®Number=0000000000090829&sum=60002 [19:06:14]StoreToDocumentArchive [19:06:14]shift 448 fd 165419 [19:06:14]save to /storage/0448/doc_00165419 [19:06:14]save last doc name /storage/0448/doc_00165419 to /storage/kkm_last_doc_name [19:06:14]save OK [19:06:14]Clear old archive folders... [19:06:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:06:14]tlvbuf is B6FB25B0 [19:06:14]SAM_PROTO_ClearQueue [19:06:14]wFMCommunicate request_size=4 [19:06:14]MH_SAM_APDU [19:06:14]CAPDU: 80 09 00 00 [19:06:14]Write to MH i2c: E2 08 00 3B 01 80 09 00 00 00 00 00 00 AE [19:06:14]Write i2c OK [19:06:14]MH_I2C_Read... [19:06:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:06:14]Read from MH i2c: E2 [19:06:14]MH_I2C_Read... [19:06:14]Read from MH i2c: E2 03 00 [19:06:14]MH_I2C_Read... [19:06:14]Read from MH i2c: E2 03 00 3B 01 00 90 00 B0 [19:06:14]RAPDU: 90 00 [19:06:14]wFMCommunicate OK [19:06:14]SAM_PROTO_ClearQueue done [19:06:14]KKMCreateOFDPacket [19:06:14]OFDProtocolAddRootSTLVToBuf [19:06:14]FM_MakeSignedData [19:06:14]FM_MakeSignedData [19:06:14]SAM_PROTO_SignData [19:06:14]wFMCommunicate request_size=4 [19:06:14]MH_SAM_APDU [19:06:14]CAPDU: 80 0D 01 02 [19:06:14]Write to MH i2c: E2 08 00 3C 01 80 0D 01 02 00 00 00 00 B6 [19:06:14]Write i2c OK [19:06:14]MH_I2C_Read... [19:06:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:06:14]Read from MH i2c: E2 [19:06:14]MH_I2C_Read... [19:06:14]Read from MH i2c: E2 03 00 [19:06:14]MH_I2C_Read... [19:06:14]Read from MH i2c: E2 03 00 3C 01 00 90 00 B1 [19:06:14]RAPDU: 90 00 [19:06:14]wFMCommunicate OK [19:06:14]wFMCommunicate request_size=255 [19:06:14]MH_SAM_APDU [19:06:14]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 F0 23 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 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 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 25 73 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2B 86 02 00 35 04 06 00 1D [19:06:14]Write to MH i2c: E2 02 01 3D 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 23 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 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 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 25 73 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2B 86 02 00 35 04 06 00 1D 00 00 AA [19:06:14]Write i2c OK [19:06:14]MH_I2C_Read... [19:06:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:14]Read from MH i2c: E2 [19:06:14]MH_I2C_Read... [19:06:14]Read from MH i2c: E2 03 00 [19:06:14]MH_I2C_Read... [19:06:14]Read from MH i2c: E2 03 00 3D 01 00 90 00 B2 [19:06:14]RAPDU: 90 00 [19:06:14]wFMCommunicate OK [19:06:14]wFMCommunicate request_size=10 [19:06:14]MH_SAM_APDU [19:06:14]CAPDU: 80 0D 02 02 05 EA 8D 20 E7 3D [19:06:14]Write to MH i2c: E2 0D 00 3E 01 80 0D 02 02 05 00 EA 8D 20 E7 3D 00 00 7E [19:06:14]Write i2c OK [19:06:14]MH_I2C_Read... [19:06:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:14]Read from MH i2c: E2 [19:06:14]MH_I2C_Read... [19:06:14]Read from MH i2c: E2 03 00 [19:06:14]MH_I2C_Read... [19:06:14]Read from MH i2c: E2 03 00 3E 01 00 90 00 B3 [19:06:14]RAPDU: 90 00 [19:06:14]wFMCommunicate OK [19:06:14]wFMCommunicate request_size=4 [19:06:14]MH_SAM_APDU [19:06:14]CAPDU: 80 0D 03 02 [19:06:14]Write to MH i2c: E2 08 00 3F 01 80 0D 03 02 00 00 00 00 BB [19:06:14]Write i2c OK [19:06:14]MH_I2C_Read... [19:06:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:06:15]Read from MH i2c: E2 [19:06:15]MH_I2C_Read... [19:06:15]Read from MH i2c: E2 0B 00 [19:06:15]MH_I2C_Read... [19:06:15]Read from MH i2c: E2 0B 00 3F 01 00 D5 4E D3 92 40 A6 F5 B9 90 00 D8 [19:06:15]RAPDU: D5 4E D3 92 40 A6 F5 B9 90 00 [19:06:15]wFMCommunicate OK [19:06:15]SAM_PROTO_SignData done [19:06:15]FM_MakeSignedData done [19:06:15]CreateOFDProtocolMessage [19:06:15]wFMCommunicate request_size=4 [19:06:15]MH_SAM_APDU [19:06:15]CAPDU: 80 11 00 00 [19:06:15]Write to MH i2c: E2 08 00 40 01 80 11 00 00 00 00 00 00 BB [19:06:15]Write i2c OK [19:06:15]MH_I2C_Read... [19:06:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:15]Read from MH i2c: E2 [19:06:15]MH_I2C_Read... [19:06:15]Read from MH i2c: E2 17 00 [19:06:15]MH_I2C_Read... [19:06:15]Read from MH i2c: E2 17 00 40 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 11 [19:06:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:06:15]wFMCommunicate OK [19:06:15]CreateOFDProtocolMessage done [19:06:15]OFDSenderStorePacket 165419 [19:06:15]StoreOFDPacket docnum=165419 [19:06:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B3 92 07 01 94 DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 F0 23 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 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 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 25 73 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2B 86 02 00 35 04 06 00 1D EA 8D 20 E7 3D D5 4E D3 92 40 A6 F5 B9 [19:06:15]CheckFolder [19:06:15]dirname=/storage/ofd_packets [19:06:15]CheckFolder done [19:06:15]ProducePacketName [19:06:15]name=ofd_packets/00165419 [19:06:15]NVStorageSaveData ofd_packets/00165419 [19:06:15]File name is /storage/ofd_packets/00165419 [19:06:15]Write 301 bytes [19:06:15]NVStorageSaveData done [19:06:15]OFDSenderStorePacket done [19:06:15]KKMCreateOFDPacket done [19:06:15]NVStorageSaveData kkm_last_timestamp [19:06:15]File name is /storage/kkm_last_timestamp [19:06:15]Write 4 bytes [19:06:15]NVStorageSaveData done [19:06:15]ExternCall_PrintAddStr [19:06:15]wPrintStart [19:06:15]Write to MH i2c: 01 00 00 41 01 42 [19:06:15]Write i2c OK [19:06:15]MH_I2C_Read... [19:06:15]Read from MH i2c: 01 [19:06:15]MH_I2C_Read... [19:06:15]Read from MH i2c: 01 07 00 [19:06:15]MH_I2C_Read... [19:06:15]Read from MH i2c: 01 07 00 41 01 00 00 00 00 00 FF 0F 57 [19:06:15]RasterBufferAndPrint [19:06:15]line Счет N : (1)459535 [19:06:15]line ИНН: 02508201610067 [19:06:15]line Контрольно-Кассовый Чек [19:06:15]line ПРОДАЖА [19:06:15]line ТРК (МРК, ГНК) : 22 [19:06:15]line Товар: 2710124130 [19:06:15]line Аи-92-К-5 [19:06:15]line 9.200 * 65.22 [19:06:15]line = 600.02 [19:06:15]line НДС 12% НСП 1% [19:06:15]line > о реализуемом товаре [19:06:15]line ИТОГО: 600.02 [19:06:15]line НСП 1% : 5.31 [19:06:15]line НДС 12% : 63.72 [19:06:15]line Наличными: 0.00 [19:06:15]line Безнал.: 600.02 [19:06:15]line Место: АЗС № 72 "Партнер Нефть" [19:06:15]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:06:15]line СНО: Общий режим [19:06:15]line Чек 292 15.07.2024 19:06 [19:06:15]line Смена: 448 ФФД: 1.0 [19:06:15]line ЗНМ: 0300000160 [19:06:15]line РНМ: 0000000000090829 [19:06:15]line Версия ККМ: 001 [19:06:15]line Платежная система: АКБ Кыргызстан [19:06:15]line ФМ: 0000000000874718 [19:06:15]line ФД: 165419 [19:06:15]line ФПД: 32893227296573 [19:06:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T190613&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165419&fm=32893227296573&tin=02508201610067®Number=0000000000090829&sum=60002 [19:06:15]OFD Sender: Processing packet 165419 [packets to send 106, broken 105] [19:06:15]ProducePacketName [19:06:15]name=ofd_packets/00165419 [19:06:15]OFD Sender: To server: pG, [19:06:15]CommunicateWithHost lk.salyk.kg:30040 [19:06:15]ConnectInit lk.salyk.kg [19:06:15]written 0, free lines is 4095 [19:06:15]Connected sock=10 [19:06:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B3 92 07 01 94 DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 F0 23 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 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 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 25 73 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2B 86 02 00 35 04 06 00 1D EA 8D 20 E7 3D D5 4E D3 92 40 A6 F5 B9 [19:06:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 5C 9C 47 00 0E 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2B 86 02 00 F4 03 04 00 AF 19 95 66 B6 04 01 00 00 1E 02 86 81 7D 95 BE 2D [19:06:15]CommunicateWithHost err = 0 [19:06:15]CheckOFDResponse [19:06:15]1017 (14) - 77093643461234 [19:06:15]1041 (16) - 0000000000874718 [19:06:15]1040 (4) - 165419 [19:06:15]1012 (4) - 15.07.2024 12:44 [19:06:15]1206 (1) - 0 [19:06:15]OFD Sender: Remove packet 165419 [19:06:15]ProducePacketName [19:06:15]name=ofd_packets/00165419 [19:06:15]NVStorageDeleteData [19:06:15]Write to MH i2c: 01 00 00 6A 01 6B [19:06:15]Write i2c OK [19:06:15]MH_I2C_Read... [19:06:15]Read from MH i2c: 01 [19:06:15]MH_I2C_Read... [19:06:15]Read from MH i2c: 01 07 00 [19:06:15]MH_I2C_Read... [19:06:15]Read from MH i2c: 01 07 00 6A 01 00 00 00 00 00 06 0D 85 [19:06:15]RasterBufferAndPrint [19:06:15]line [19:06:15]line [19:06:15]line [19:06:15]line [19:06:15]line [19:06:15]written 0, free lines is 3341 [19:06:15]MH_Cut [19:06:15]Write to MH i2c: D1 01 00 71 01 01 44 [19:06:15]Write i2c OK [19:06:15]MH_I2C_Read... [19:06:15]Read from MH i2c: D1 [19:06:15]MH_I2C_Read... [19:06:15]Read from MH i2c: D1 01 00 [19:06:15]MH_I2C_Read... [19:06:15]Read from MH i2c: D1 01 00 71 01 00 43 [19:06:15]Write to MH i2c: 01 00 00 72 01 73 [19:06:15]Write i2c OK [19:06:15]MH_I2C_Read... [19:06:16]OFD Sender: No OFD packet to send [19:06:16]*** Cut start [19:06:16]*** Partial cut [19:06:16]*** CUTSNS_PIN = 1 [19:06:16]*** CUTSNS_PIN = 0 [19:06:16]*** Brake cut motor [19:06:17]Read from MH i2c: 01 [19:06:17]MH_I2C_Read... [19:06:17]*** Stop cut motor [19:06:17]*** Cut end [19:06:17]Read from MH i2c: 01 07 00 [19:06:17]MH_I2C_Read... [19:06:17]Read from MH i2c: 01 07 00 72 01 00 00 00 00 00 FF 0F 88 [19:06:17]process_action close_receipt done [19:06:17]requested_data is exist [19:06:17]produce_requested_data [19:06:17]requested_item fm.sn is exist - process it [19:06:17]wFMCommunicate request_size=4 [19:06:17]MH_SAM_APDU [19:06:17]CAPDU: 80 11 00 00 [19:06:17]Write to MH i2c: E2 08 00 73 01 80 11 00 00 00 00 00 00 EE [19:06:17]Write i2c OK [19:06:17]MH_I2C_Read... [19:06:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:17]Read from MH i2c: E2 [19:06:17]MH_I2C_Read... [19:06:17]Read from MH i2c: E2 17 00 [19:06:17]MH_I2C_Read... [19:06:17]Read from MH i2c: E2 17 00 73 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 44 [19:06:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:06:17]wFMCommunicate OK [19:06:17]requested_item fd.num is exist - process it [19:06:17]SAM_PROTO_GetFieldsCounters [19:06:17]wFMCommunicate request_size=4 [19:06:17]MH_SAM_APDU [19:06:17]CAPDU: 80 13 00 00 [19:06:17]Write to MH i2c: E2 08 00 74 01 80 13 00 00 00 00 00 00 F1 [19:06:17]Write i2c OK [19:06:17]MH_I2C_Read... [19:06:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:06:17]Read from MH i2c: E2 [19:06:17]MH_I2C_Read... [19:06:17]Read from MH i2c: E2 62 00 [19:06:17]MH_I2C_Read... [19:06:17]Read from MH i2c: E2 62 00 74 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2B 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 24 01 00 00 5E 04 04 00 24 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 FB [19:06: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2B 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 24 01 00 00 5E 04 04 00 24 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:06:17]wFMCommunicate OK [19:06:17]SAM_PROTO_GetFieldsCounters done [19:06:17]requested_item shift.num is exist - process it [19:06:17]requested_item shift.opened is exist - process it [19:06:17]req_shift_opened [19:06:17]FM_GetShiftState [19:06:17]SAM_PROTO_GetShiftState [19:06:17]wFMCommunicate request_size=4 [19:06:17]MH_SAM_APDU [19:06:17]CAPDU: 80 13 01 00 [19:06:17]Write to MH i2c: E2 08 00 75 01 80 13 01 00 00 00 00 00 F3 [19:06:17]Write i2c OK [19:06:17]MH_I2C_Read... [19:06:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:17]Read from MH i2c: E2 [19:06:17]MH_I2C_Read... [19:06:17]Read from MH i2c: E2 0E 00 [19:06:17]MH_I2C_Read... [19:06:17]Read from MH i2c: E2 0E 00 75 01 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 CC [19:06:17]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [19:06:17]wFMCommunicate OK [19:06:17]SAM_PROTO_GetShiftState done [19:06:17]FM_GetShiftState done [19:06:17]req_shift_opened done [19:06:17]requested_item shift.open_date is exist - process it [19:06:17]req_shift_open_date [19:06:17]req_shift_open_date done [19:06:17]produce_requested_data done [19:06:17]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165419,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [19:06:17]process_action_free close_receipt [19:06:17]json_value_free [19:06:17]json_value_free done [19:06:17]process_json_proto returns [19:06:17]Send response to host [19:06:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165419,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [19:06:17]free response buf [19:06:17]execute_script done [19:06:17]execute_script returns [19:06:17]free content buf [19:06:17]Sock 9.Close socket [19:06:17]Sock 9.Thread stoped [19:06:21]OFD Sender: No OFD packet to send [19:06:26]OFD Sender: No OFD packet to send [19:06:31]OFD Sender: No OFD packet to send [19:06:36]OFD Sender: No OFD packet to send [19:06:41]OFD Sender: No OFD packet to send [19:06:45]accept exits with 7 [19:06:45]New connection [19:06:45]New thread 3067190628 created [19:06:45]Thread 3067333988 joined [19:06:45]Waiting for new connection... [19:06:45] Sock 7.Parse request [19:06:45]Sock 7.Check first char [19:06:45]Sock 7.First char is OK [19:06:45]request: POST /json_proto HTTP/1.0 [19:06:45]Method: POST [19:06:45]URL: /json_proto [19:06:45]Method is POST - this is cgi request [19:06:45]url: /json_proto [19:06:45]query_string will be loaded in cgi processing [19:06:45]execute_cgi json_proto POST (null) [19:06:45]execute_cgi path=json_proto method=POST [19:06:45]POST find Content-Length [19:06:45]Host: 172.17.56.4:8080 [19:06:45]Content-Length: 677 [19:06:45]Content-Type: application/json [19:06:45] [19:06:45]POST finish read [19:06:45]Found Content-Length = 677 [19:06:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459536", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.720, "sum" : 310.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 310.00, "total" : 310.00, "payments": [ { "type": 0, "sum" : 310.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:06:45]execute_script... [19:06: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)459536", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.720, "sum" : 310.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 310.00, "total" : 310.00, "payments": [ { "type": 0, "sum" : 310.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:06:45]POST & json_proto [19:06:45]process_json_proto [19:06:45]json parsed OK: [19:06:45]protocol is kg_v1.0 [19:06:45]action value=close_receipt [19:06:45]process_action close_receipt [19:06:45]cmd_close_receipt [19:06:45]MH_GetDate [19:06:45]Write to MH i2c: F0 00 00 76 01 66 [19:06:45]Write i2c OK [19:06:45]MH_I2C_Read... [19:06:45]Read from MH i2c: F0 [19:06:45]MH_I2C_Read... [19:06:45]Read from MH i2c: F0 09 00 [19:06:45]MH_I2C_Read... [19:06:45]Read from MH i2c: F0 09 00 76 01 00 46 73 95 66 C9 DC B2 64 DE [19:06:45]GetLastDocTimeStamp 1721070373 [19:06:45]current date 1721070406 [19:06:45]FM_GetShiftState [19:06:45]SAM_PROTO_GetShiftState [19:06:45]wFMCommunicate request_size=4 [19:06:45]MH_SAM_APDU [19:06:45]CAPDU: 80 13 01 00 [19:06:45]Write to MH i2c: E2 08 00 77 01 80 13 01 00 00 00 00 00 F5 [19:06:45]Write i2c OK [19:06:45]MH_I2C_Read... [19:06:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:45]Read from MH i2c: E2 [19:06:45]MH_I2C_Read... [19:06:45]Read from MH i2c: E2 0E 00 [19:06:45]MH_I2C_Read... [19:06:45]Read from MH i2c: E2 0E 00 77 01 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 CE [19:06:45]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [19:06:45]wFMCommunicate OK [19:06:45]SAM_PROTO_GetShiftState done [19:06:45]FM_GetShiftState done [19:06:45]opened in 1721003876 [19:06:45]opened+sec_in_day 1721090276 [19:06:45]quantity*price = 31057 [19:06:45]sum+1 = 31059 [19:06:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.58 ИТОГО: 310.00 Внесено: 310.00 СДАЧА: 0.00 НСП 1% : 2.75 НДС 12% : 32.98 Наличными: 310.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 293 15.07.2024 19:06 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165420 ФПД: 90100710939680 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T190646&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165420&fm=90100710939680&tin=02508201610067®Number=0000000000090829&sum=31000 [19:06:47]StoreToDocumentArchive [19:06:47]shift 448 fd 165420 [19:06:47]save to /storage/0448/doc_00165420 [19:06:47]save last doc name /storage/0448/doc_00165420 to /storage/kkm_last_doc_name [19:06:47]save OK [19:06:47]Clear old archive folders... [19:06:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:06:47]tlvbuf is 01B41D20 [19:06:47]SAM_PROTO_ClearQueue [19:06:47]wFMCommunicate request_size=4 [19:06:47]MH_SAM_APDU [19:06:47]CAPDU: 80 09 00 00 [19:06:47]Write to MH i2c: E2 08 00 84 01 80 09 00 00 00 00 00 00 F7 [19:06:47]Write i2c OK [19:06:47]MH_I2C_Read... [19:06:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:06:47]Read from MH i2c: E2 [19:06:47]MH_I2C_Read... [19:06:47]Read from MH i2c: E2 03 00 [19:06:47]MH_I2C_Read... [19:06:47]Read from MH i2c: E2 03 00 84 01 00 90 00 F9 [19:06:47]RAPDU: 90 00 [19:06:47]wFMCommunicate OK [19:06:47]SAM_PROTO_ClearQueue done [19:06:47]KKMCreateOFDPacket [19:06:47]OFDProtocolAddRootSTLVToBuf [19:06:47]FM_MakeSignedData [19:06:47]FM_MakeSignedData [19:06:47]SAM_PROTO_SignData [19:06:47]wFMCommunicate request_size=4 [19:06:47]MH_SAM_APDU [19:06:47]CAPDU: 80 0D 01 02 [19:06:47]Write to MH i2c: E2 08 00 85 01 80 0D 01 02 00 00 00 00 FF [19:06:47]Write i2c OK [19:06:47]MH_I2C_Read... [19:06:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:06:47]Read from MH i2c: E2 [19:06:47]MH_I2C_Read... [19:06:47]Read from MH i2c: E2 03 00 [19:06:47]MH_I2C_Read... [19:06:47]Read from MH i2c: E2 03 00 85 01 00 90 00 FA [19:06:47]RAPDU: 90 00 [19:06:47]wFMCommunicate OK [19:06:47]wFMCommunicate request_size=255 [19:06:47]MH_SAM_APDU [19:06: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 70 12 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 52 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 46 73 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2C 86 02 00 35 04 06 00 51 [19:06:47]Write to MH i2c: E2 02 01 86 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 12 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 52 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 46 73 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2C 86 02 00 35 04 06 00 51 00 00 ED [19:06:47]Write i2c OK [19:06:47]MH_I2C_Read... [19:06:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:47]Read from MH i2c: E2 [19:06:47]MH_I2C_Read... [19:06:47]Read from MH i2c: E2 03 00 [19:06:47]MH_I2C_Read... [19:06:47]Read from MH i2c: E2 03 00 86 01 00 90 00 FB [19:06:47]RAPDU: 90 00 [19:06:47]wFMCommunicate OK [19:06:47]wFMCommunicate request_size=10 [19:06:47]MH_SAM_APDU [19:06:47]CAPDU: 80 0D 02 02 05 F2 34 DE 9C 20 [19:06:47]Write to MH i2c: E2 0D 00 87 01 80 0D 02 02 05 00 F2 34 DE 9C 20 00 00 CC [19:06:47]Write i2c OK [19:06:47]MH_I2C_Read... [19:06:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:47]Read from MH i2c: E2 [19:06:47]MH_I2C_Read... [19:06:47]Read from MH i2c: E2 03 00 [19:06:47]MH_I2C_Read... [19:06:47]Read from MH i2c: E2 03 00 87 01 00 90 00 FC [19:06:47]RAPDU: 90 00 [19:06:47]wFMCommunicate OK [19:06:47]wFMCommunicate request_size=4 [19:06:47]MH_SAM_APDU [19:06:47]CAPDU: 80 0D 03 02 [19:06:47]Write to MH i2c: E2 08 00 88 01 80 0D 03 02 00 00 00 00 04 [19:06:47]Write i2c OK [19:06:47]MH_I2C_Read... [19:06:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:06:47]Read from MH i2c: E2 [19:06:47]MH_I2C_Read... [19:06:47]Read from MH i2c: E2 0B 00 [19:06:47]MH_I2C_Read... [19:06:47]Read from MH i2c: E2 0B 00 88 01 00 56 B3 8A DC ED 63 99 14 90 00 71 [19:06:47]RAPDU: 56 B3 8A DC ED 63 99 14 90 00 [19:06:47]wFMCommunicate OK [19:06:47]SAM_PROTO_SignData done [19:06:47]FM_MakeSignedData done [19:06:47]CreateOFDProtocolMessage [19:06:47]wFMCommunicate request_size=4 [19:06:47]MH_SAM_APDU [19:06:47]CAPDU: 80 11 00 00 [19:06:47]Write to MH i2c: E2 08 00 89 01 80 11 00 00 00 00 00 00 04 [19:06:47]Write i2c OK [19:06:47]MH_I2C_Read... [19:06:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:47]Read from MH i2c: E2 [19:06:47]MH_I2C_Read... [19:06:47]Read from MH i2c: E2 17 00 [19:06:47]MH_I2C_Read... [19:06:47]Read from MH i2c: E2 17 00 89 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5A [19:06:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:06:47]wFMCommunicate OK [19:06:47]CreateOFDProtocolMessage done [19:06:47]OFDSenderStorePacket 165420 [19:06:47]StoreOFDPacket docnum=165420 [19:06:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 2C 45 07 01 7C 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 12 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 52 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 46 73 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2C 86 02 00 35 04 06 00 51 F2 34 DE 9C 20 56 B3 8A DC ED 63 99 14 [19:06:47]CheckFolder [19:06:47]dirname=/storage/ofd_packets [19:06:47]CheckFolder done [19:06:47]ProducePacketName [19:06:47]name=ofd_packets/00165420 [19:06:47]NVStorageSaveData ofd_packets/00165420 [19:06:47]File name is /storage/ofd_packets/00165420 [19:06:47]Write 301 bytes [19:06:47]NVStorageSaveData done [19:06:47]OFDSenderStorePacket done [19:06:47]KKMCreateOFDPacket done [19:06:47]NVStorageSaveData kkm_last_timestamp [19:06:47]File name is /storage/kkm_last_timestamp [19:06:47]Write 4 bytes [19:06:47]NVStorageSaveData done [19:06:47]ExternCall_PrintAddStr [19:06:47]wPrintStart [19:06:47]Write to MH i2c: 01 00 00 8A 01 8B [19:06:47]Write i2c OK [19:06:47]MH_I2C_Read... [19:06:47]Read from MH i2c: 01 [19:06:47]MH_I2C_Read... [19:06:47]Read from MH i2c: 01 07 00 [19:06:47]MH_I2C_Read... [19:06:47]Read from MH i2c: 01 07 00 8A 01 00 00 00 00 00 FF 0F A0 [19:06:47]RasterBufferAndPrint [19:06:47]line Счет N : (1)459536 [19:06:47]line ИНН: 02508201610067 [19:06:47]line Контрольно-Кассовый Чек [19:06:47]line ПРОДАЖА [19:06:47]line ТРК (МРК, ГНК) : 12 [19:06:47]line Товар: 2710124130 [19:06:47]line Аи-92-К-5 [19:06:47]line 4.720 * 65.80 [19:06:47]line = 310.58 [19:06:47]line НДС 12% НСП 1% [19:06:47]line > о реализуемом товаре [19:06:47]line ОКРУГЛЕНИЕ: -0.58 [19:06:47]line ИТОГО: 310.00 [19:06:47]line Внесено: 310.00 [19:06:47]line СДАЧА: 0.00 [19:06:47]line НСП 1% : 2.75 [19:06:47]line НДС 12% : 32.98 [19:06:47]line Наличными: 310.00 [19:06:47]line Безнал.: 0.00 [19:06:47]line Место: АЗС № 72 "Партнер Нефть" [19:06:47]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:06:47]line СНО: Общий режим [19:06:47]line Чек 293 15.07.2024 19:06 [19:06:47]line Смена: 448 ФФД: 1.0 [19:06:47]line ЗНМ: 0300000160 [19:06:47]line РНМ: 0000000000090829 [19:06:47]line Версия ККМ: 001 [19:06:47]line ФМ: 0000000000874718 [19:06:47]line ФД: 165420 [19:06:47]line ФПД: 90100710939680 [19:06:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T190646&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165420&fm=90100710939680&tin=02508201610067®Number=0000000000090829&sum=31000 [19:06:47]OFD Sender: Processing packet 165420 [packets to send 106, broken 105] [19:06:47]ProducePacketName [19:06:47]name=ofd_packets/00165420 [19:06:47]OFD Sender: To server: pG, [19:06:47]CommunicateWithHost lk.salyk.kg:30040 [19:06:47]ConnectInit lk.salyk.kg [19:06:47]written 0, free lines is 4095 [19:06:48]Connected sock=10 [19:06:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 2C 45 07 01 7C 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 12 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 52 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 46 73 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2C 86 02 00 35 04 06 00 51 F2 34 DE 9C 20 56 B3 8A DC ED 63 99 14 [19:06:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 5E 2C 47 00 A6 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 2C 86 02 00 F4 03 04 00 CF 19 95 66 B6 04 01 00 00 59 24 79 BF F0 0E 70 ED [19:06:48]CommunicateWithHost err = 0 [19:06:48]CheckOFDResponse [19:06:48]1017 (14) - 77093643461234 [19:06:48]1041 (16) - 0000000000874718 [19:06:48]1040 (4) - 165420 [19:06:48]1012 (4) - 15.07.2024 12:45 [19:06:48]1206 (1) - 0 [19:06:48]OFD Sender: Remove packet 165420 [19:06:48]ProducePacketName [19:06:48]name=ofd_packets/00165420 [19:06:48]NVStorageDeleteData [19:06:48]Write to MH i2c: 01 00 00 B4 01 B5 [19:06:48]Write i2c OK [19:06:48]MH_I2C_Read... [19:06:48]Read from MH i2c: 01 [19:06:48]MH_I2C_Read... [19:06:48]Read from MH i2c: 01 07 00 [19:06:48]MH_I2C_Read... [19:06:48]Read from MH i2c: 01 07 00 B4 01 00 00 00 00 00 02 0D CB [19:06:48]RasterBufferAndPrint [19:06:48]line [19:06:48]line [19:06:48]line [19:06:48]line [19:06:48]line [19:06:48]written 0, free lines is 3336 [19:06:48]MH_Cut [19:06:48]Write to MH i2c: D1 01 00 BB 01 01 8E [19:06:48]Write i2c OK [19:06:48]MH_I2C_Read... [19:06:48]Read from MH i2c: D1 [19:06:48]MH_I2C_Read... [19:06:48]Read from MH i2c: D1 01 00 [19:06:48]MH_I2C_Read... [19:06:48]Read from MH i2c: D1 01 00 BB 01 00 8D [19:06:48]Write to MH i2c: 01 00 00 BC 01 BD [19:06:48]Write i2c OK [19:06:48]MH_I2C_Read... [19:06:48]OFD Sender: No OFD packet to send [19:06:49]*** Cut start [19:06:49]*** Partial cut [19:06:49]*** CUTSNS_PIN = 1 [19:06:49]*** CUTSNS_PIN = 0 [19:06:49]*** Brake cut motor [19:06:49]Read from MH i2c: 01 [19:06:49]MH_I2C_Read... [19:06:49]*** Stop cut motor [19:06:49]*** Cut end [19:06:49]Read from MH i2c: 01 07 00 [19:06:49]MH_I2C_Read... [19:06:49]Read from MH i2c: 01 07 00 BC 01 00 00 00 00 00 FF 0F D2 [19:06:49]process_action close_receipt done [19:06:49]requested_data is exist [19:06:49]produce_requested_data [19:06:49]requested_item fm.sn is exist - process it [19:06:49]wFMCommunicate request_size=4 [19:06:49]MH_SAM_APDU [19:06:49]CAPDU: 80 11 00 00 [19:06:49]Write to MH i2c: E2 08 00 BD 01 80 11 00 00 00 00 00 00 38 [19:06:49]Write i2c OK [19:06:49]MH_I2C_Read... [19:06:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:49]Read from MH i2c: E2 [19:06:49]MH_I2C_Read... [19:06:49]Read from MH i2c: E2 17 00 [19:06:49]MH_I2C_Read... [19:06:49]Read from MH i2c: E2 17 00 BD 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8E [19:06:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:06:49]wFMCommunicate OK [19:06:49]requested_item fd.num is exist - process it [19:06:49]SAM_PROTO_GetFieldsCounters [19:06:49]wFMCommunicate request_size=4 [19:06:49]MH_SAM_APDU [19:06:49]CAPDU: 80 13 00 00 [19:06:49]Write to MH i2c: E2 08 00 BE 01 80 13 00 00 00 00 00 00 3B [19:06:49]Write i2c OK [19:06:49]MH_I2C_Read... [19:06:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:06:49]Read from MH i2c: E2 [19:06:49]MH_I2C_Read... [19:06:49]Read from MH i2c: E2 62 00 [19:06:49]MH_I2C_Read... [19:06:49]Read from MH i2c: E2 62 00 BE 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2C 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 49 [19:06: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2C 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:06:49]wFMCommunicate OK [19:06:49]SAM_PROTO_GetFieldsCounters done [19:06:49]requested_item shift.num is exist - process it [19:06:49]requested_item shift.opened is exist - process it [19:06:49]req_shift_opened [19:06:49]FM_GetShiftState [19:06:49]SAM_PROTO_GetShiftState [19:06:49]wFMCommunicate request_size=4 [19:06:49]MH_SAM_APDU [19:06:49]CAPDU: 80 13 01 00 [19:06:49]Write to MH i2c: E2 08 00 BF 01 80 13 01 00 00 00 00 00 3D [19:06:49]Write i2c OK [19:06:49]MH_I2C_Read... [19:06:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:49]Read from MH i2c: E2 [19:06:49]MH_I2C_Read... [19:06:49]Read from MH i2c: E2 0E 00 [19:06:49]MH_I2C_Read... [19:06:49]Read from MH i2c: E2 0E 00 BF 01 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 16 [19:06:49]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [19:06:49]wFMCommunicate OK [19:06:49]SAM_PROTO_GetShiftState done [19:06:49]FM_GetShiftState done [19:06:49]req_shift_opened done [19:06:49]requested_item shift.open_date is exist - process it [19:06:49]req_shift_open_date [19:06:49]req_shift_open_date done [19:06:49]produce_requested_data done [19:06:49]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165420,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [19:06:49]process_action_free close_receipt [19:06:49]json_value_free [19:06:49]json_value_free done [19:06:49]process_json_proto returns [19:06:49]Send response to host [19:06:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165420,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [19:06:49]free response buf [19:06:49]execute_script done [19:06:49]execute_script returns [19:06:49]free content buf [19:06:49]Sock 7.Close socket [19:06:49]Sock 7.Thread stoped [19:06:53]OFD Sender: No OFD packet to send [19:06:58]OFD Sender: No OFD packet to send [19:07:03]OFD Sender: No OFD packet to send [19:07:06]accept exits with 9 [19:07:06]New connection [19:07:06]New thread 3067333988 created [19:07:06]Thread 3067190628 joined [19:07:06]Waiting for new connection... [19:07:06] Sock 9.Parse request [19:07:06]Sock 9.Check first char [19:07:06]Sock 9.First char is OK [19:07:06]request: POST /json_proto HTTP/1.0 [19:07:06]Method: POST [19:07:06]URL: /json_proto [19:07:06]Method is POST - this is cgi request [19:07:06]url: /json_proto [19:07:06]query_string will be loaded in cgi processing [19:07:06]execute_cgi json_proto POST (null) [19:07:06]execute_cgi path=json_proto method=POST [19:07:06]POST find Content-Length [19:07:06]Host: 172.17.56.4:8080 [19:07:06]Content-Length: 637 [19:07:06]Content-Type: application/json [19:07:06] [19:07:06]POST finish read [19:07:06]Found Content-Length = 637 [19:07:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459537", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 10.000, "sum" : 719.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 719.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:07:06]execute_script... [19:07:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459537", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 10.000, "sum" : 719.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 719.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:07:06]POST & json_proto [19:07:06]process_json_proto [19:07:06]json parsed OK: [19:07:06]protocol is kg_v1.0 [19:07:06]action value=close_receipt [19:07:06]process_action close_receipt [19:07:06]cmd_close_receipt [19:07:06]MH_GetDate [19:07:06]Write to MH i2c: F0 00 00 C0 01 B0 [19:07:06]Write i2c OK [19:07:06]MH_I2C_Read... [19:07:06]Read from MH i2c: F0 [19:07:06]MH_I2C_Read... [19:07:06]Read from MH i2c: F0 09 00 [19:07:06]MH_I2C_Read... [19:07:06]Read from MH i2c: F0 09 00 C0 01 00 5A 73 95 66 C9 DC B2 64 3C [19:07:06]GetLastDocTimeStamp 1721070406 [19:07:06]current date 1721070426 [19:07:06]FM_GetShiftState [19:07:06]SAM_PROTO_GetShiftState [19:07:06]wFMCommunicate request_size=4 [19:07:06]MH_SAM_APDU [19:07:06]CAPDU: 80 13 01 00 [19:07:06]Write to MH i2c: E2 08 00 C1 01 80 13 01 00 00 00 00 00 3F [19:07:06]Write i2c OK [19:07:06]MH_I2C_Read... [19:07:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:07:06]Read from MH i2c: E2 [19:07:06]MH_I2C_Read... [19:07:06]Read from MH i2c: E2 0E 00 [19:07:06]MH_I2C_Read... [19:07:06]Read from MH i2c: E2 0E 00 C1 01 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 18 [19:07:06]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [19:07:06]wFMCommunicate OK [19:07:06]SAM_PROTO_GetShiftState done [19:07:06]FM_GetShiftState done [19:07:06]opened in 1721003876 [19:07:06]opened+sec_in_day 1721090276 [19:07:06]quantity*price = 71900 [19:07:06]sum+1 = 71901 [19:07:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 719.00 НСП 1% : 6.36 НДС 12% : 76.35 Наличными: 719.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 294 15.07.2024 19:07 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165421 ФПД: 277443418024565 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T190706&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165421&fm=277443418024565&tin=02508201610067®Number=0000000000090829&sum=71900 [19:07:07]StoreToDocumentArchive [19:07:07]shift 448 fd 165421 [19:07:07]save to /storage/0448/doc_00165421 [19:07:07]save last doc name /storage/0448/doc_00165421 to /storage/kkm_last_doc_name [19:07:07]save OK [19:07:07]Clear old archive folders... [19:07:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:07:07]tlvbuf is 01BA7740 [19:07:07]SAM_PROTO_ClearQueue [19:07:07]wFMCommunicate request_size=4 [19:07:07]MH_SAM_APDU [19:07:07]CAPDU: 80 09 00 00 [19:07:07]Write to MH i2c: E2 08 00 CE 01 80 09 00 00 00 00 00 00 41 [19:07:07]Write i2c OK [19:07:07]MH_I2C_Read... [19:07:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:07:07]Read from MH i2c: E2 [19:07:07]MH_I2C_Read... [19:07:07]Read from MH i2c: E2 03 00 [19:07:07]MH_I2C_Read... [19:07:07]Read from MH i2c: E2 03 00 CE 01 00 90 00 43 [19:07:07]RAPDU: 90 00 [19:07:07]wFMCommunicate OK [19:07:07]SAM_PROTO_ClearQueue done [19:07:07]KKMCreateOFDPacket [19:07:07]OFDProtocolAddRootSTLVToBuf [19:07:07]FM_MakeSignedData [19:07:07]FM_MakeSignedData [19:07:07]SAM_PROTO_SignData [19:07:07]wFMCommunicate request_size=4 [19:07:07]MH_SAM_APDU [19:07:07]CAPDU: 80 0D 01 02 [19:07:07]Write to MH i2c: E2 08 00 CF 01 80 0D 01 02 00 00 00 00 49 [19:07:07]Write i2c OK [19:07:07]MH_I2C_Read... [19:07:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:07:07]Read from MH i2c: E2 [19:07:07]MH_I2C_Read... [19:07:07]Read from MH i2c: E2 03 00 [19:07:07]MH_I2C_Read... [19:07:07]Read from MH i2c: E2 03 00 CF 01 00 90 00 44 [19:07:07]RAPDU: 90 00 [19:07:07]wFMCommunicate OK [19:07:07]wFMCommunicate request_size=255 [19:07:07]MH_SAM_APDU [19:07:07]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 DC 18 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 1D 00 00 00 00 07 04 06 00 DC 18 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 01 00 00 F4 03 04 00 5A 73 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2D 86 02 00 35 04 06 00 FC 55 54 60 [19:07:07]Write to MH i2c: E2 02 01 D0 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 DC 18 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 1D 00 00 00 00 07 04 06 00 DC 18 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 01 00 00 F4 03 04 00 5A 73 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2D 86 02 00 35 04 06 00 FC 55 54 60 00 00 CC [19:07:07]Write i2c OK [19:07:07]MH_I2C_Read... [19:07:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:07:07]Read from MH i2c: E2 [19:07:07]MH_I2C_Read... [19:07:07]Read from MH i2c: E2 03 00 [19:07:07]MH_I2C_Read... [19:07:07]Read from MH i2c: E2 03 00 D0 01 00 90 00 45 [19:07:07]RAPDU: 90 00 [19:07:07]wFMCommunicate OK [19:07:07]wFMCommunicate request_size=7 [19:07:07]MH_SAM_APDU [19:07:07]CAPDU: 80 0D 02 02 02 6A 75 [19:07:07]Write to MH i2c: E2 0A 00 D1 01 80 0D 02 02 02 00 6A 75 00 00 2F [19:07:07]Write i2c OK [19:07:07]MH_I2C_Read... [19:07:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:07:07]Read from MH i2c: E2 [19:07:07]MH_I2C_Read... [19:07:07]Read from MH i2c: E2 03 00 [19:07:07]MH_I2C_Read... [19:07:07]Read from MH i2c: E2 03 00 D1 01 00 90 00 46 [19:07:07]RAPDU: 90 00 [19:07:07]wFMCommunicate OK [19:07:07]wFMCommunicate request_size=4 [19:07:07]MH_SAM_APDU [19:07:07]CAPDU: 80 0D 03 02 [19:07:07]Write to MH i2c: E2 08 00 D2 01 80 0D 03 02 00 00 00 00 4E [19:07:07]Write i2c OK [19:07:07]MH_I2C_Read... [19:07:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:07:07]Read from MH i2c: E2 [19:07:07]MH_I2C_Read... [19:07:07]Read from MH i2c: E2 0B 00 [19:07:07]MH_I2C_Read... [19:07:07]Read from MH i2c: E2 0B 00 D2 01 00 13 AC CD 42 EB 05 9F C2 90 00 6E [19:07:07]RAPDU: 13 AC CD 42 EB 05 9F C2 90 00 [19:07:07]wFMCommunicate OK [19:07:07]SAM_PROTO_SignData done [19:07:07]FM_MakeSignedData done [19:07:07]CreateOFDProtocolMessage [19:07:07]wFMCommunicate request_size=4 [19:07:07]MH_SAM_APDU [19:07:07]CAPDU: 80 11 00 00 [19:07:07]Write to MH i2c: E2 08 00 D3 01 80 11 00 00 00 00 00 00 4E [19:07:07]Write i2c OK [19:07:07]MH_I2C_Read... [19:07:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:07:07]Read from MH i2c: E2 [19:07:07]MH_I2C_Read... [19:07:07]Read from MH i2c: E2 17 00 [19:07:07]MH_I2C_Read... [19:07:07]Read from MH i2c: E2 17 00 D3 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A4 [19:07:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:07:07]wFMCommunicate OK [19:07:07]CreateOFDProtocolMessage done [19:07:07]OFDSenderStorePacket 165421 [19:07:07]StoreOFDPacket docnum=165421 [19:07:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 32 E3 04 01 C3 4F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 DC 18 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 1D 00 00 00 00 07 04 06 00 DC 18 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 01 00 00 F4 03 04 00 5A 73 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2D 86 02 00 35 04 06 00 FC 55 54 60 6A 75 13 AC CD 42 EB 05 9F C2 [19:07:07]CheckFolder [19:07:07]dirname=/storage/ofd_packets [19:07:07]CheckFolder done [19:07:07]ProducePacketName [19:07:07]name=ofd_packets/00165421 [19:07:07]NVStorageSaveData ofd_packets/00165421 [19:07:07]File name is /storage/ofd_packets/00165421 [19:07:07]Write 298 bytes [19:07:07]NVStorageSaveData done [19:07:07]OFDSenderStorePacket done [19:07:07]KKMCreateOFDPacket done [19:07:07]NVStorageSaveData kkm_last_timestamp [19:07:07]File name is /storage/kkm_last_timestamp [19:07:07]Write 4 bytes [19:07:07]NVStorageSaveData done [19:07:07]ExternCall_PrintAddStr [19:07:07]wPrintStart [19:07:07]Write to MH i2c: 01 00 00 D4 01 D5 [19:07:07]Write i2c OK [19:07:07]MH_I2C_Read... [19:07:07]Read from MH i2c: 01 [19:07:07]MH_I2C_Read... [19:07:07]Read from MH i2c: 01 07 00 [19:07:07]MH_I2C_Read... [19:07:07]Read from MH i2c: 01 07 00 D4 01 00 00 00 00 00 FF 0F EA [19:07:07]RasterBufferAndPrint [19:07:07]line Счет N : (1)459537 [19:07:07]line ИНН: 02508201610067 [19:07:07]line Контрольно-Кассовый Чек [19:07:07]line ПРОДАЖА [19:07:07]line ТРК (МРК, ГНК) : 11 [19:07:07]line Товар: 2710194210 [19:07:07]line ДТ-К-5 [19:07:07]line 10.000 * 71.90 [19:07:07]line = 719.00 [19:07:07]line НДС 12% НСП 1% [19:07:07]line > о реализуемом товаре [19:07:07]line ИТОГО: 719.00 [19:07:07]line НСП 1% : 6.36 [19:07:07]line НДС 12% : 76.35 [19:07:07]line Наличными: 719.00 [19:07:07]line Безнал.: 0.00 [19:07:07]line Место: АЗС № 72 "Партнер Нефть" [19:07:07]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:07:07]line СНО: Общий режим [19:07:07]line Чек 294 15.07.2024 19:07 [19:07:07]line Смена: 448 ФФД: 1.0 [19:07:07]line ЗНМ: 0300000160 [19:07:07]line РНМ: 0000000000090829 [19:07:07]line Версия ККМ: 001 [19:07:07]line ФМ: 0000000000874718 [19:07:07]line ФД: 165421 [19:07:07]line ФПД: 277443418024565 [19:07:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T190706&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165421&fm=277443418024565&tin=02508201610067®Number=0000000000090829&sum=71900 [19:07:08]OFD Sender: Processing packet 165421 [packets to send 106, broken 105] [19:07:08]ProducePacketName [19:07:08]name=ofd_packets/00165421 [19:07:08]OFD Sender: To server: pG, [19:07:08]CommunicateWithHost lk.salyk.kg:30040 [19:07:08]ConnectInit lk.salyk.kg [19:07:08]written 0, free lines is 4095 [19:07:08]Connected sock=10 [19:07: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 37 31 38 0C 01 00 00 32 E3 04 01 C3 4F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 DC 18 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 1D 00 00 00 00 07 04 06 00 DC 18 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 01 00 00 F4 03 04 00 5A 73 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2D 86 02 00 35 04 06 00 FC 55 54 60 6A 75 13 AC CD 42 EB 05 9F C2 [19:07:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 A0 FC 47 00 24 A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2D 86 02 00 F4 03 04 00 E4 19 95 66 B6 04 01 00 00 D1 6D B7 39 C4 22 6C 3E [19:07:08]CommunicateWithHost err = 0 [19:07:08]CheckOFDResponse [19:07:08]1017 (14) - 77093643461234 [19:07:08]1041 (16) - 0000000000874718 [19:07:08]1040 (4) - 165421 [19:07:08]1012 (4) - 15.07.2024 12:45 [19:07:08]1206 (1) - 0 [19:07:08]OFD Sender: Remove packet 165421 [19:07:08]ProducePacketName [19:07:08]name=ofd_packets/00165421 [19:07:08]NVStorageDeleteData [19:07:08]Write to MH i2c: 01 00 00 FB 01 FC [19:07:08]Write i2c OK [19:07:08]MH_I2C_Read... [19:07:08]Read from MH i2c: 01 [19:07:08]MH_I2C_Read... [19:07:08]Read from MH i2c: 01 07 00 [19:07:08]MH_I2C_Read... [19:07:08]Read from MH i2c: 01 07 00 FB 01 00 00 00 00 00 19 0D 29 [19:07:08]RasterBufferAndPrint [19:07:08]line [19:07:08]line [19:07:08]line [19:07:08]line [19:07:08]line [19:07:08]written 0, free lines is 3359 [19:07:08]MH_Cut [19:07:08]Write to MH i2c: D1 01 00 02 02 01 D6 [19:07:08]Write i2c OK [19:07:08]MH_I2C_Read... [19:07:08]Read from MH i2c: D1 [19:07:08]MH_I2C_Read... [19:07:08]Read from MH i2c: D1 01 00 [19:07:08]MH_I2C_Read... [19:07:08]Read from MH i2c: D1 01 00 02 02 00 D5 [19:07:08]Write to MH i2c: 01 00 00 03 02 05 [19:07:08]Write i2c OK [19:07:08]MH_I2C_Read... [19:07:09]OFD Sender: No OFD packet to send [19:07:09]*** Cut start [19:07:09]*** Partial cut [19:07:09]*** CUTSNS_PIN = 1 [19:07:09]*** CUTSNS_PIN = 0 [19:07:09]*** Brake cut motor [19:07:09]Read from MH i2c: 01 [19:07:09]MH_I2C_Read... [19:07:09]*** Stop cut motor [19:07:09]*** Cut end [19:07:09]Read from MH i2c: 01 07 00 [19:07:09]MH_I2C_Read... [19:07:09]Read from MH i2c: 01 07 00 03 02 00 00 00 00 00 FF 0F 1A [19:07:09]process_action close_receipt done [19:07:09]requested_data is exist [19:07:09]produce_requested_data [19:07:09]requested_item fm.sn is exist - process it [19:07:09]wFMCommunicate request_size=4 [19:07:09]MH_SAM_APDU [19:07:09]CAPDU: 80 11 00 00 [19:07:09]Write to MH i2c: E2 08 00 04 02 80 11 00 00 00 00 00 00 80 [19:07:09]Write i2c OK [19:07:09]MH_I2C_Read... [19:07:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:07:10]Read from MH i2c: E2 [19:07:10]MH_I2C_Read... [19:07:10]Read from MH i2c: E2 17 00 [19:07:10]MH_I2C_Read... [19:07:10]Read from MH i2c: E2 17 00 04 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D6 [19:07:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:07:10]wFMCommunicate OK [19:07:10]requested_item fd.num is exist - process it [19:07:10]SAM_PROTO_GetFieldsCounters [19:07:10]wFMCommunicate request_size=4 [19:07:10]MH_SAM_APDU [19:07:10]CAPDU: 80 13 00 00 [19:07:10]Write to MH i2c: E2 08 00 05 02 80 13 00 00 00 00 00 00 83 [19:07:10]Write i2c OK [19:07:10]MH_I2C_Read... [19:07:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:07:10]Read from MH i2c: E2 [19:07:10]MH_I2C_Read... [19:07:10]Read from MH i2c: E2 62 00 [19:07:10]MH_I2C_Read... [19:07:10]Read from MH i2c: E2 62 00 05 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2D 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 95 [19:07: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2D 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:07:10]wFMCommunicate OK [19:07:10]SAM_PROTO_GetFieldsCounters done [19:07:10]requested_item shift.num is exist - process it [19:07:10]requested_item shift.opened is exist - process it [19:07:10]req_shift_opened [19:07:10]FM_GetShiftState [19:07:10]SAM_PROTO_GetShiftState [19:07:10]wFMCommunicate request_size=4 [19:07:10]MH_SAM_APDU [19:07:10]CAPDU: 80 13 01 00 [19:07:10]Write to MH i2c: E2 08 00 06 02 80 13 01 00 00 00 00 00 85 [19:07:10]Write i2c OK [19:07:10]MH_I2C_Read... [19:07:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:07:10]Read from MH i2c: E2 [19:07:10]MH_I2C_Read... [19:07:10]Read from MH i2c: E2 0E 00 [19:07:10]MH_I2C_Read... [19:07:10]Read from MH i2c: E2 0E 00 06 02 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 5E [19:07:10]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [19:07:10]wFMCommunicate OK [19:07:10]SAM_PROTO_GetShiftState done [19:07:10]FM_GetShiftState done [19:07:10]req_shift_opened done [19:07:10]requested_item shift.open_date is exist - process it [19:07:10]req_shift_open_date [19:07:10]req_shift_open_date done [19:07:10]produce_requested_data done [19:07:10]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165421,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [19:07:10]process_action_free close_receipt [19:07:10]json_value_free [19:07:10]json_value_free done [19:07:10]process_json_proto returns [19:07:10]Send response to host [19:07:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165421,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [19:07:10]free response buf [19:07:10]execute_script done [19:07:10]execute_script returns [19:07:10]free content buf [19:07:10]Sock 9.Close socket [19:07:10]Sock 9.Thread stoped [19:07:14]OFD Sender: No OFD packet to send [19:07:19]OFD Sender: No OFD packet to send [19:07:24]OFD Sender: No OFD packet to send [19:07:29]OFD Sender: No OFD packet to send [19:07:34]OFD Sender: No OFD packet to send [19:07:39]OFD Sender: No OFD packet to send [19:07:44]OFD Sender: No OFD packet to send [19:07:49]OFD Sender: No OFD packet to send [19:07:54]OFD Sender: No OFD packet to send [19:07:59]OFD Sender: No OFD packet to send [19:08:04]OFD Sender: No OFD packet to send [19:08:09]OFD Sender: No OFD packet to send [19:08:14]OFD Sender: No OFD packet to send [19:08:18]accept exits with 7 [19:08:18]New connection [19:08:18]New thread 3067190628 created [19:08:18]Thread 3067333988 joined [19:08:18]Waiting for new connection... [19:08:18] Sock 7.Parse request [19:08:18]Sock 7.Check first char [19:08:18]Sock 7.First char is OK [19:08:18]request: POST /json_proto HTTP/1.0 [19:08:18]Method: POST [19:08:18]URL: /json_proto [19:08:18]Method is POST - this is cgi request [19:08:18]url: /json_proto [19:08:18]query_string will be loaded in cgi processing [19:08:18]execute_cgi json_proto POST (null) [19:08:18]execute_cgi path=json_proto method=POST [19:08:18]POST find Content-Length [19:08:18]Host: 172.17.56.4:8080 [19:08:18]Content-Length: 840 [19:08:18]Content-Type: application/json [19:08:18] [19:08:18]POST finish read [19:08:18]Found Content-Length = 840 [19:08:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459538", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 4.600, "sum" : 300.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 300.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:08:18]execute_script... [19:08:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459538", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 4.600, "sum" : 300.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 300.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:08:18]POST & json_proto [19:08:18]process_json_proto [19:08:18]json parsed OK: [19:08:18]protocol is kg_v1.0 [19:08:18]action value=close_receipt [19:08:18]process_action close_receipt [19:08:18]cmd_close_receipt [19:08:18]MH_GetDate [19:08:18]Write to MH i2c: F0 00 00 07 02 F8 [19:08:18]Write i2c OK [19:08:18]MH_I2C_Read... [19:08:18]Read from MH i2c: F0 [19:08:18]MH_I2C_Read... [19:08:18]Read from MH i2c: F0 09 00 [19:08:18]MH_I2C_Read... [19:08:18]Read from MH i2c: F0 09 00 07 02 00 A3 73 95 66 C9 DC B2 64 CD [19:08:18]GetLastDocTimeStamp 1721070426 [19:08:18]current date 1721070499 [19:08:18]FM_GetShiftState [19:08:18]SAM_PROTO_GetShiftState [19:08:18]wFMCommunicate request_size=4 [19:08:18]MH_SAM_APDU [19:08:18]CAPDU: 80 13 01 00 [19:08:18]Write to MH i2c: E2 08 00 08 02 80 13 01 00 00 00 00 00 87 [19:08:18]Write i2c OK [19:08:18]MH_I2C_Read... [19:08:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:18]Read from MH i2c: E2 [19:08:18]MH_I2C_Read... [19:08:18]Read from MH i2c: E2 0E 00 [19:08:18]MH_I2C_Read... [19:08:18]Read from MH i2c: E2 0E 00 08 02 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 60 [19:08:18]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [19:08:18]wFMCommunicate OK [19:08:18]SAM_PROTO_GetShiftState done [19:08:18]FM_GetShiftState done [19:08:18]opened in 1721003876 [19:08:18]opened+sec_in_day 1721090276 [19:08:18]quantity*price = 30001 [19:08:18]sum+1 = 30002 [19:08:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.01 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 0.00 Безнал.: 300.01 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 295 15.07.2024 19:08 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874718 ФД: 165422 ФПД: 220351670400799 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T190819&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165422&fm=220351670400799&tin=02508201610067®Number=0000000000090829&sum=30001 [19:08:19]StoreToDocumentArchive [19:08:19]shift 448 fd 165422 [19:08:19]save to /storage/0448/doc_00165422 [19:08:19]save last doc name /storage/0448/doc_00165422 to /storage/kkm_last_doc_name [19:08:19]save OK [19:08:19]Clear old archive folders... [19:08:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:08:19]tlvbuf is 01BA9040 [19:08:19]SAM_PROTO_ClearQueue [19:08:19]wFMCommunicate request_size=4 [19:08:19]MH_SAM_APDU [19:08:19]CAPDU: 80 09 00 00 [19:08:19]Write to MH i2c: E2 08 00 15 02 80 09 00 00 00 00 00 00 89 [19:08:19]Write i2c OK [19:08:19]MH_I2C_Read... [19:08:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:08:19]Read from MH i2c: E2 [19:08:19]MH_I2C_Read... [19:08:19]Read from MH i2c: E2 03 00 [19:08:19]MH_I2C_Read... [19:08:19]Read from MH i2c: E2 03 00 15 02 00 90 00 8B [19:08:19]RAPDU: 90 00 [19:08:19]wFMCommunicate OK [19:08:19]SAM_PROTO_ClearQueue done [19:08:19]KKMCreateOFDPacket [19:08:19]OFDProtocolAddRootSTLVToBuf [19:08:19]FM_MakeSignedData [19:08:19]FM_MakeSignedData [19:08:19]SAM_PROTO_SignData [19:08:19]wFMCommunicate request_size=4 [19:08:19]MH_SAM_APDU [19:08:19]CAPDU: 80 0D 01 02 [19:08:19]Write to MH i2c: E2 08 00 16 02 80 0D 01 02 00 00 00 00 91 [19:08:20]Write i2c OK [19:08:20]MH_I2C_Read... [19:08:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:08:20]Read from MH i2c: E2 [19:08:20]MH_I2C_Read... [19:08:20]Read from MH i2c: E2 03 00 [19:08:20]MH_I2C_Read... [19:08:20]Read from MH i2c: E2 03 00 16 02 00 90 00 8C [19:08:20]RAPDU: 90 00 [19:08:20]wFMCommunicate OK [19:08:20]wFMCommunicate request_size=255 [19:08:20]MH_SAM_APDU [19:08:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 31 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 A3 73 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2E 86 02 00 35 04 06 00 C8 [19:08:20]Write to MH i2c: E2 02 01 17 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 31 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 A3 73 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2E 86 02 00 35 04 06 00 C8 00 00 2F [19:08:20]Write i2c OK [19:08:20]MH_I2C_Read... [19:08:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:20]Read from MH i2c: E2 [19:08:20]MH_I2C_Read... [19:08:20]Read from MH i2c: E2 03 00 [19:08:20]MH_I2C_Read... [19:08:20]Read from MH i2c: E2 03 00 17 02 00 90 00 8D [19:08:20]RAPDU: 90 00 [19:08:20]wFMCommunicate OK [19:08:20]wFMCommunicate request_size=10 [19:08:20]MH_SAM_APDU [19:08:20]CAPDU: 80 0D 02 02 05 68 9F 0A 37 1F [19:08:20]Write to MH i2c: E2 0D 00 18 02 80 0D 02 02 05 00 68 9F 0A 37 1F 00 00 05 [19:08:20]Write i2c OK [19:08:20]MH_I2C_Read... [19:08:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:20]Read from MH i2c: E2 [19:08:20]MH_I2C_Read... [19:08:20]Read from MH i2c: E2 03 00 [19:08:20]MH_I2C_Read... [19:08:20]Read from MH i2c: E2 03 00 18 02 00 90 00 8E [19:08:20]RAPDU: 90 00 [19:08:20]wFMCommunicate OK [19:08:20]wFMCommunicate request_size=4 [19:08:20]MH_SAM_APDU [19:08:20]CAPDU: 80 0D 03 02 [19:08:20]Write to MH i2c: E2 08 00 19 02 80 0D 03 02 00 00 00 00 96 [19:08:20]Write i2c OK [19:08:20]MH_I2C_Read... [19:08:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:08:20]Read from MH i2c: E2 [19:08:20]MH_I2C_Read... [19:08:20]Read from MH i2c: E2 0B 00 [19:08:20]MH_I2C_Read... [19:08:20]Read from MH i2c: E2 0B 00 19 02 00 59 D6 7E 18 11 E8 69 6E 90 00 2C [19:08:20]RAPDU: 59 D6 7E 18 11 E8 69 6E 90 00 [19:08:20]wFMCommunicate OK [19:08:20]SAM_PROTO_SignData done [19:08:20]FM_MakeSignedData done [19:08:20]CreateOFDProtocolMessage [19:08:20]wFMCommunicate request_size=4 [19:08:20]MH_SAM_APDU [19:08:20]CAPDU: 80 11 00 00 [19:08:20]Write to MH i2c: E2 08 00 1A 02 80 11 00 00 00 00 00 00 96 [19:08:20]Write i2c OK [19:08:20]MH_I2C_Read... [19:08:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:20]Read from MH i2c: E2 [19:08:20]MH_I2C_Read... [19:08:20]Read from MH i2c: E2 17 00 [19:08:20]MH_I2C_Read... [19:08:20]Read from MH i2c: E2 17 00 1A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 EC [19:08:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:08:20]wFMCommunicate OK [19:08:20]CreateOFDProtocolMessage done [19:08:20]OFDSenderStorePacket 165422 [19:08:20]StoreOFDPacket docnum=165422 [19:08:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 9D 0B 07 01 26 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 F8 11 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 31 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 A3 73 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2E 86 02 00 35 04 06 00 C8 68 9F 0A 37 1F 59 D6 7E 18 11 E8 69 6E [19:08:20]CheckFolder [19:08:20]dirname=/storage/ofd_packets [19:08:20]CheckFolder done [19:08:20]ProducePacketName [19:08:20]name=ofd_packets/00165422 [19:08:20]NVStorageSaveData ofd_packets/00165422 [19:08:20]File name is /storage/ofd_packets/00165422 [19:08:20]Write 301 bytes [19:08:20]NVStorageSaveData done [19:08:20]OFDSenderStorePacket done [19:08:20]KKMCreateOFDPacket done [19:08:20]NVStorageSaveData kkm_last_timestamp [19:08:20]File name is /storage/kkm_last_timestamp [19:08:20]Write 4 bytes [19:08:20]NVStorageSaveData done [19:08:20]ExternCall_PrintAddStr [19:08:20]wPrintStart [19:08:20]Write to MH i2c: 01 00 00 1B 02 1D [19:08:20]Write i2c OK [19:08:20]MH_I2C_Read... [19:08:20]Read from MH i2c: 01 [19:08:20]MH_I2C_Read... [19:08:20]Read from MH i2c: 01 07 00 [19:08:20]MH_I2C_Read... [19:08:20]Read from MH i2c: 01 07 00 1B 02 00 00 00 00 00 FF 0F 32 [19:08:20]RasterBufferAndPrint [19:08:20]line Счет N : (1)459538 [19:08:20]line ИНН: 02508201610067 [19:08:20]line Контрольно-Кассовый Чек [19:08:20]line ПРОДАЖА [19:08:20]line ТРК (МРК, ГНК) : 22 [19:08:20]line Товар: 2710124130 [19:08:20]line Аи-92-К-5 [19:08:20]line 4.600 * 65.22 [19:08:20]line = 300.01 [19:08:20]line НДС 12% НСП 1% [19:08:20]line > о реализуемом товаре [19:08:20]line ИТОГО: 300.01 [19:08:20]line НСП 1% : 2.65 [19:08:20]line НДС 12% : 31.86 [19:08:20]line Наличными: 0.00 [19:08:20]line Безнал.: 300.01 [19:08:20]line Место: АЗС № 72 "Партнер Нефть" [19:08:20]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:08:20]line СНО: Общий режим [19:08:20]line Чек 295 15.07.2024 19:08 [19:08:20]line Смена: 448 ФФД: 1.0 [19:08:20]line ЗНМ: 0300000160 [19:08:20]line РНМ: 0000000000090829 [19:08:20]line Версия ККМ: 001 [19:08:20]line Платежная система: АКБ Кыргызстан [19:08:20]line ФМ: 0000000000874718 [19:08:20]line ФД: 165422 [19:08:20]line ФПД: 220351670400799 [19:08:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T190819&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165422&fm=220351670400799&tin=02508201610067®Number=0000000000090829&sum=30001 [19:08:20]written 0, free lines is 4095 [19:08:20]OFD Sender: Processing packet 165422 [packets to send 106, broken 105] [19:08:20]ProducePacketName [19:08:20]name=ofd_packets/00165422 [19:08:20]OFD Sender: To server: pG, [19:08:20]CommunicateWithHost lk.salyk.kg:30040 [19:08:20]ConnectInit lk.salyk.kg [19:08:20]Connected sock=10 [19:08: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 37 31 38 0F 01 00 00 9D 0B 07 01 26 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 F8 11 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 31 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 31 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 A3 73 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2E 86 02 00 35 04 06 00 C8 68 9F 0A 37 1F 59 D6 7E 18 11 E8 69 6E [19:08:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 50 C9 47 00 71 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2E 86 02 00 F4 03 04 00 2C 1A 95 66 B6 04 01 00 00 A7 DF 5F 08 9E AE D5 2C [19:08:20]CommunicateWithHost err = 0 [19:08:20]CheckOFDResponse [19:08:20]1017 (14) - 77093643461234 [19:08:20]1041 (16) - 0000000000874718 [19:08:20]1040 (4) - 165422 [19:08:20]1012 (4) - 15.07.2024 12:46 [19:08:20]1206 (1) - 0 [19:08:20]OFD Sender: Remove packet 165422 [19:08:20]ProducePacketName [19:08:20]name=ofd_packets/00165422 [19:08:20]NVStorageDeleteData [19:08:20]Write to MH i2c: 01 00 00 44 02 46 [19:08:20]Write i2c OK [19:08:20]MH_I2C_Read... [19:08:20]Read from MH i2c: 01 [19:08:20]MH_I2C_Read... [19:08:20]Read from MH i2c: 01 07 00 [19:08:20]MH_I2C_Read... [19:08:20]Read from MH i2c: 01 07 00 44 02 00 00 00 00 00 19 0D 73 [19:08:20]RasterBufferAndPrint [19:08:20]line [19:08:20]line [19:08:20]line [19:08:20]line [19:08:20]line [19:08:20]written 0, free lines is 3359 [19:08:20]MH_Cut [19:08:20]Write to MH i2c: D1 01 00 4B 02 01 1F [19:08:20]Write i2c OK [19:08:20]MH_I2C_Read... [19:08:20]Read from MH i2c: D1 [19:08:20]MH_I2C_Read... [19:08:20]Read from MH i2c: D1 01 00 [19:08:20]MH_I2C_Read... [19:08:20]Read from MH i2c: D1 01 00 4B 02 00 1E [19:08:20]Write to MH i2c: 01 00 00 4C 02 4E [19:08:20]Write i2c OK [19:08:20]MH_I2C_Read... [19:08:21]OFD Sender: No OFD packet to send [19:08:21]*** Cut start [19:08:21]*** Partial cut [19:08:21]*** CUTSNS_PIN = 1 [19:08:21]*** CUTSNS_PIN = 0 [19:08:21]*** Brake cut motor [19:08:22]Read from MH i2c: 01 [19:08:22]MH_I2C_Read... [19:08:22]*** Stop cut motor [19:08:22]*** Cut end [19:08:22]Read from MH i2c: 01 07 00 [19:08:22]MH_I2C_Read... [19:08:22]Read from MH i2c: 01 07 00 4C 02 00 00 00 00 00 FF 0F 63 [19:08:22]process_action close_receipt done [19:08:22]requested_data is exist [19:08:22]produce_requested_data [19:08:22]requested_item fm.sn is exist - process it [19:08:22]wFMCommunicate request_size=4 [19:08:22]MH_SAM_APDU [19:08:22]CAPDU: 80 11 00 00 [19:08:22]Write to MH i2c: E2 08 00 4D 02 80 11 00 00 00 00 00 00 C9 [19:08:22]Write i2c OK [19:08:22]MH_I2C_Read... [19:08:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:22]Read from MH i2c: E2 [19:08:22]MH_I2C_Read... [19:08:22]Read from MH i2c: E2 17 00 [19:08:22]MH_I2C_Read... [19:08:22]Read from MH i2c: E2 17 00 4D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1F [19:08:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:08:22]wFMCommunicate OK [19:08:22]requested_item fd.num is exist - process it [19:08:22]SAM_PROTO_GetFieldsCounters [19:08:22]wFMCommunicate request_size=4 [19:08:22]MH_SAM_APDU [19:08:22]CAPDU: 80 13 00 00 [19:08:22]Write to MH i2c: E2 08 00 4E 02 80 13 00 00 00 00 00 00 CC [19:08:22]Write i2c OK [19:08:22]MH_I2C_Read... [19:08:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:08:22]Read from MH i2c: E2 [19:08:22]MH_I2C_Read... [19:08:22]Read from MH i2c: E2 62 00 [19:08:22]MH_I2C_Read... [19:08:22]Read from MH i2c: E2 62 00 4E 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2E 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 E2 [19: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2E 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:08:22]wFMCommunicate OK [19:08:22]SAM_PROTO_GetFieldsCounters done [19:08:22]requested_item shift.num is exist - process it [19:08:22]requested_item shift.opened is exist - process it [19:08:22]req_shift_opened [19:08:22]FM_GetShiftState [19:08:22]SAM_PROTO_GetShiftState [19:08:22]wFMCommunicate request_size=4 [19:08:22]MH_SAM_APDU [19:08:22]CAPDU: 80 13 01 00 [19:08:22]Write to MH i2c: E2 08 00 4F 02 80 13 01 00 00 00 00 00 CE [19:08:22]Write i2c OK [19:08:22]MH_I2C_Read... [19:08:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:22]Read from MH i2c: E2 [19:08:22]MH_I2C_Read... [19:08:22]Read from MH i2c: E2 0E 00 [19:08:22]MH_I2C_Read... [19:08:22]Read from MH i2c: E2 0E 00 4F 02 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 A7 [19:08:22]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [19:08:22]wFMCommunicate OK [19:08:22]SAM_PROTO_GetShiftState done [19:08:22]FM_GetShiftState done [19:08:22]req_shift_opened done [19:08:22]requested_item shift.open_date is exist - process it [19:08:22]req_shift_open_date [19:08:22]req_shift_open_date done [19:08:22]produce_requested_data done [19:08:22]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165422,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [19:08:22]process_action_free close_receipt [19:08:22]json_value_free [19:08:22]json_value_free done [19:08:22]process_json_proto returns [19:08:22]Send response to host [19:08:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165422,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [19:08:22]free response buf [19:08:22]execute_script done [19:08:22]execute_script returns [19:08:22]free content buf [19:08:22]Sock 7.Close socket [19:08:22]Sock 7.Thread stoped [19:08:26]OFD Sender: No OFD packet to send [19:08:31]OFD Sender: No OFD packet to send [19:08:35]accept exits with 9 [19:08:35]New connection [19:08:35]New thread 3067333988 created [19:08:35]Thread 3067190628 joined [19:08:35]Waiting for new connection... [19:08:35] Sock 9.Parse request [19:08:35]Sock 9.Check first char [19:08:35]Sock 9.First char is OK [19:08:35]request: POST /json_proto HTTP/1.0 [19:08:35]Method: POST [19:08:35]URL: /json_proto [19:08:35]Method is POST - this is cgi request [19:08:35]url: /json_proto [19:08:35]query_string will be loaded in cgi processing [19:08:35]execute_cgi json_proto POST (null) [19:08:35]execute_cgi path=json_proto method=POST [19:08:35]POST find Content-Length [19:08:35]Host: 172.17.56.4:8080 [19:08:35]Content-Length: 678 [19:08:35]Content-Type: application/json [19:08:35] [19:08:35]POST finish read [19:08:35]Found Content-Length = 678 [19:08:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459539", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.340, "sum" : 680.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 680.00, "total" : 680.00, "payments": [ { "type": 0, "sum" : 680.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:08:35]execute_script... [19:08:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459539", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.340, "sum" : 680.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 680.00, "total" : 680.00, "payments": [ { "type": 0, "sum" : 680.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:08:35]POST & json_proto [19:08:35]process_json_proto [19:08:35]json parsed OK: [19:08:35]protocol is kg_v1.0 [19:08:35]action value=close_receipt [19:08:35]process_action close_receipt [19:08:35]cmd_close_receipt [19:08:35]MH_GetDate [19:08:35]Write to MH i2c: F0 00 00 50 02 41 [19:08:35]Write i2c OK [19:08:35]MH_I2C_Read... [19:08:35]Read from MH i2c: F0 [19:08:35]MH_I2C_Read... [19:08:35]Read from MH i2c: F0 09 00 [19:08:35]MH_I2C_Read... [19:08:35]Read from MH i2c: F0 09 00 50 02 00 B4 73 95 66 C9 DC B2 64 27 [19:08:35]GetLastDocTimeStamp 1721070499 [19:08:35]current date 1721070516 [19:08:35]FM_GetShiftState [19:08:35]SAM_PROTO_GetShiftState [19:08:35]wFMCommunicate request_size=4 [19:08:35]MH_SAM_APDU [19:08:35]CAPDU: 80 13 01 00 [19:08:35]Write to MH i2c: E2 08 00 51 02 80 13 01 00 00 00 00 00 D0 [19:08:35]Write i2c OK [19:08:35]MH_I2C_Read... [19:08:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:36]Read from MH i2c: E2 [19:08:36]MH_I2C_Read... [19:08:36]Read from MH i2c: E2 0E 00 [19:08:36]MH_I2C_Read... [19:08:36]Read from MH i2c: E2 0E 00 51 02 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 A9 [19:08:36]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [19:08:36]wFMCommunicate OK [19:08:36]SAM_PROTO_GetShiftState done [19:08:36]FM_GetShiftState done [19:08:36]opened in 1721003876 [19:08:36]opened+sec_in_day 1721090276 [19:08:36]quantity*price = 68037 [19:08:36]sum+1 = 68038 [19:08:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 680.00 Внесено: 680.00 СДАЧА: 0.00 НСП 1% : 6.02 НДС 12% : 72.25 Наличными: 680.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 296 15.07.2024 19:08 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165423 ФПД: 73700638506094 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T190836&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165423&fm=73700638506094&tin=02508201610067®Number=0000000000090829&sum=68000 [19:08:37]StoreToDocumentArchive [19:08:37]shift 448 fd 165423 [19:08:37]save to /storage/0448/doc_00165423 [19:08:37]save last doc name /storage/0448/doc_00165423 to /storage/kkm_last_doc_name [19:08:37]save OK [19:08:37]Clear old archive folders... [19:08:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:08:37]tlvbuf is 01BB5E40 [19:08:37]SAM_PROTO_ClearQueue [19:08:37]wFMCommunicate request_size=4 [19:08:37]MH_SAM_APDU [19:08:37]CAPDU: 80 09 00 00 [19:08:37]Write to MH i2c: E2 08 00 5E 02 80 09 00 00 00 00 00 00 D2 [19:08:37]Write i2c OK [19:08:37]MH_I2C_Read... [19:08:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:08:37]Read from MH i2c: E2 [19:08:37]MH_I2C_Read... [19:08:37]Read from MH i2c: E2 03 00 [19:08:37]MH_I2C_Read... [19:08:37]Read from MH i2c: E2 03 00 5E 02 00 90 00 D4 [19:08:37]RAPDU: 90 00 [19:08:37]wFMCommunicate OK [19:08:37]SAM_PROTO_ClearQueue done [19:08:37]KKMCreateOFDPacket [19:08:37]OFDProtocolAddRootSTLVToBuf [19:08:37]FM_MakeSignedData [19:08:37]FM_MakeSignedData [19:08:37]SAM_PROTO_SignData [19:08:37]wFMCommunicate request_size=4 [19:08:37]MH_SAM_APDU [19:08:37]CAPDU: 80 0D 01 02 [19:08:37]Write to MH i2c: E2 08 00 5F 02 80 0D 01 02 00 00 00 00 DA [19:08:37]Write i2c OK [19:08:37]MH_I2C_Read... [19:08:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:08:37]Read from MH i2c: E2 [19:08:37]MH_I2C_Read... [19:08:37]Read from MH i2c: E2 03 00 [19:08:37]MH_I2C_Read... [19:08:37]Read from MH i2c: E2 03 00 5F 02 00 90 00 D5 [19:08:37]RAPDU: 90 00 [19:08:37]wFMCommunicate OK [19:08:37]wFMCommunicate request_size=255 [19:08:37]MH_SAM_APDU [19:08:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 28 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 C5 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 B4 73 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2F 86 02 00 35 04 06 00 43 [19:08:37]Write to MH i2c: E2 02 01 60 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 28 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 C5 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 B4 73 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2F 86 02 00 35 04 06 00 43 00 00 1D [19:08:37]Write i2c OK [19:08:37]MH_I2C_Read... [19:08:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:37]Read from MH i2c: E2 [19:08:37]MH_I2C_Read... [19:08:37]Read from MH i2c: E2 03 00 [19:08:37]MH_I2C_Read... [19:08:37]Read from MH i2c: E2 03 00 60 02 00 90 00 D6 [19:08:37]RAPDU: 90 00 [19:08:37]wFMCommunicate OK [19:08:37]wFMCommunicate request_size=10 [19:08:37]MH_SAM_APDU [19:08:37]CAPDU: 80 0D 02 02 05 07 C4 60 BC 6E [19:08:37]Write to MH i2c: E2 0D 00 61 02 80 0D 02 02 05 00 07 C4 60 BC 6E 00 00 3C [19:08:37]Write i2c OK [19:08:37]MH_I2C_Read... [19:08:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:37]Read from MH i2c: E2 [19:08:37]MH_I2C_Read... [19:08:37]Read from MH i2c: E2 03 00 [19:08:37]MH_I2C_Read... [19:08:37]Read from MH i2c: E2 03 00 61 02 00 90 00 D7 [19:08:37]RAPDU: 90 00 [19:08:37]wFMCommunicate OK [19:08:37]wFMCommunicate request_size=4 [19:08:37]MH_SAM_APDU [19:08:37]CAPDU: 80 0D 03 02 [19:08:37]Write to MH i2c: E2 08 00 62 02 80 0D 03 02 00 00 00 00 DF [19:08:37]Write i2c OK [19:08:37]MH_I2C_Read... [19:08:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:08:37]Read from MH i2c: E2 [19:08:37]MH_I2C_Read... [19:08:37]Read from MH i2c: E2 0B 00 [19:08:37]MH_I2C_Read... [19:08:37]Read from MH i2c: E2 0B 00 62 02 00 60 1E 3C 66 23 63 64 E6 90 00 D0 [19:08:37]RAPDU: 60 1E 3C 66 23 63 64 E6 90 00 [19:08:37]wFMCommunicate OK [19:08:37]SAM_PROTO_SignData done [19:08:37]FM_MakeSignedData done [19:08:37]CreateOFDProtocolMessage [19:08:37]wFMCommunicate request_size=4 [19:08:37]MH_SAM_APDU [19:08:37]CAPDU: 80 11 00 00 [19:08:37]Write to MH i2c: E2 08 00 63 02 80 11 00 00 00 00 00 00 DF [19:08:37]Write i2c OK [19:08:37]MH_I2C_Read... [19:08:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:37]Read from MH i2c: E2 [19:08:37]MH_I2C_Read... [19:08:37]Read from MH i2c: E2 17 00 [19:08:37]MH_I2C_Read... [19:08:37]Read from MH i2c: E2 17 00 63 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 35 [19:08:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:08:37]wFMCommunicate OK [19:08:37]CreateOFDProtocolMessage done [19:08:37]OFDSenderStorePacket 165423 [19:08:37]StoreOFDPacket docnum=165423 [19:08:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B4 6A 07 01 67 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 28 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 C5 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 B4 73 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2F 86 02 00 35 04 06 00 43 07 C4 60 BC 6E 60 1E 3C 66 23 63 64 E6 [19:08:37]CheckFolder [19:08:37]dirname=/storage/ofd_packets [19:08:37]CheckFolder done [19:08:37]ProducePacketName [19:08:37]name=ofd_packets/00165423 [19:08:37]NVStorageSaveData ofd_packets/00165423 [19:08:37]File name is /storage/ofd_packets/00165423 [19:08:37]Write 301 bytes [19:08:37]NVStorageSaveData done [19:08:37]OFDSenderStorePacket done [19:08:37]KKMCreateOFDPacket done [19:08:37]NVStorageSaveData kkm_last_timestamp [19:08:37]File name is /storage/kkm_last_timestamp [19:08:37]Write 4 bytes [19:08:37]NVStorageSaveData done [19:08:37]ExternCall_PrintAddStr [19:08:37]wPrintStart [19:08:37]Write to MH i2c: 01 00 00 64 02 66 [19:08:37]Write i2c OK [19:08:37]MH_I2C_Read... [19:08:37]Read from MH i2c: 01 [19:08:37]MH_I2C_Read... [19:08:37]Read from MH i2c: 01 07 00 [19:08:37]MH_I2C_Read... [19:08:37]Read from MH i2c: 01 07 00 64 02 00 00 00 00 00 FF 0F 7B [19:08:37]RasterBufferAndPrint [19:08:37]line Счет N : (1)459539 [19:08:37]line ИНН: 02508201610067 [19:08:37]line Контрольно-Кассовый Чек [19:08:37]line ПРОДАЖА [19:08:37]line ТРК (МРК, ГНК) : 12 [19:08:37]line Товар: 2710124130 [19:08:37]line Аи-92-К-5 [19:08:37]line 10.340 * 65.80 [19:08:37]line = 680.37 [19:08:37]line НДС 12% НСП 1% [19:08:37]line > о реализуемом товаре [19:08:37]line ОКРУГЛЕНИЕ: -0.37 [19:08:37]line ИТОГО: 680.00 [19:08:37]line Внесено: 680.00 [19:08:37]line СДАЧА: 0.00 [19:08:37]line НСП 1% : 6.02 [19:08:37]line НДС 12% : 72.25 [19:08:37]line Наличными: 680.00 [19:08:37]line Безнал.: 0.00 [19:08:37]line Место: АЗС № 72 "Партнер Нефть" [19:08:37]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:08:37]line СНО: Общий режим [19:08:37]line Чек 296 15.07.2024 19:08 [19:08:37]line Смена: 448 ФФД: 1.0 [19:08:37]line ЗНМ: 0300000160 [19:08:37]line РНМ: 0000000000090829 [19:08:37]line Версия ККМ: 001 [19:08:37]line ФМ: 0000000000874718 [19:08:37]line ФД: 165423 [19:08:37]line ФПД: 73700638506094 [19:08:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T190836&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165423&fm=73700638506094&tin=02508201610067®Number=0000000000090829&sum=68000 [19:08:38]OFD Sender: Processing packet 165423 [packets to send 106, broken 105] [19:08:38]ProducePacketName [19:08:38]name=ofd_packets/00165423 [19:08:38]OFD Sender: To server: pG, [19:08:38]CommunicateWithHost lk.salyk.kg:30040 [19:08:38]ConnectInit lk.salyk.kg [19:08:38]written 0, free lines is 4095 [19:08:38]Connected sock=10 [19:08:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B4 6A 07 01 67 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 28 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 C5 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 B4 73 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2F 86 02 00 35 04 06 00 43 07 C4 60 BC 6E 60 1E 3C 66 23 63 64 E6 [19:08:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 95 2E 47 00 A5 FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 2F 86 02 00 F4 03 04 00 3E 1A 95 66 B6 04 01 00 00 04 CC C7 26 4E C2 86 10 [19:08:38]CommunicateWithHost err = 0 [19:08:38]CheckOFDResponse [19:08:38]1017 (14) - 77093643461234 [19:08:38]1041 (16) - 0000000000874718 [19:08:38]1040 (4) - 165423 [19:08:38]1012 (4) - 15.07.2024 12:46 [19:08:38]1206 (1) - 0 [19:08:38]OFD Sender: Remove packet 165423 [19:08:38]ProducePacketName [19:08:38]name=ofd_packets/00165423 [19:08:38]NVStorageDeleteData [19:08:38]Write to MH i2c: 01 00 00 8E 02 90 [19:08:38]Write i2c OK [19:08:38]MH_I2C_Read... [19:08:38]Read from MH i2c: 01 [19:08:38]MH_I2C_Read... [19:08:38]Read from MH i2c: 01 07 00 [19:08:38]MH_I2C_Read... [19:08:38]Read from MH i2c: 01 07 00 8E 02 00 00 00 00 00 FF 0C A2 [19:08:38]RasterBufferAndPrint [19:08:38]line [19:08:38]line [19:08:38]line [19:08:38]line [19:08:38]line [19:08:38]written 0, free lines is 3333 [19:08:38]MH_Cut [19:08:38]Write to MH i2c: D1 01 00 95 02 01 69 [19:08:38]Write i2c OK [19:08:38]MH_I2C_Read... [19:08:38]Read from MH i2c: D1 [19:08:38]MH_I2C_Read... [19:08:38]Read from MH i2c: D1 01 00 [19:08:38]MH_I2C_Read... [19:08:38]Read from MH i2c: D1 01 00 95 02 00 68 [19:08:38]Write to MH i2c: 01 00 00 96 02 98 [19:08:38]Write i2c OK [19:08:38]MH_I2C_Read... [19:08:38]OFD Sender: No OFD packet to send [19:08:39]*** Cut start [19:08:39]*** Partial cut [19:08:39]*** CUTSNS_PIN = 1 [19:08:39]*** CUTSNS_PIN = 0 [19:08:39]*** Brake cut motor [19:08:39]Read from MH i2c: 01 [19:08:39]MH_I2C_Read... [19:08:39]*** Stop cut motor [19:08:39]*** Cut end [19:08:39]Read from MH i2c: 01 07 00 [19:08:39]MH_I2C_Read... [19:08:39]Read from MH i2c: 01 07 00 96 02 00 00 00 00 00 FF 0F AD [19:08:39]process_action close_receipt done [19:08:39]requested_data is exist [19:08:39]produce_requested_data [19:08:39]requested_item fm.sn is exist - process it [19:08:39]wFMCommunicate request_size=4 [19:08:39]MH_SAM_APDU [19:08:39]CAPDU: 80 11 00 00 [19:08:39]Write to MH i2c: E2 08 00 97 02 80 11 00 00 00 00 00 00 13 [19:08:39]Write i2c OK [19:08:39]MH_I2C_Read... [19:08:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:39]Read from MH i2c: E2 [19:08:39]MH_I2C_Read... [19:08:39]Read from MH i2c: E2 17 00 [19:08:39]MH_I2C_Read... [19:08:39]Read from MH i2c: E2 17 00 97 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 69 [19:08:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:08:39]wFMCommunicate OK [19:08:39]requested_item fd.num is exist - process it [19:08:39]SAM_PROTO_GetFieldsCounters [19:08:39]wFMCommunicate request_size=4 [19:08:39]MH_SAM_APDU [19:08:39]CAPDU: 80 13 00 00 [19:08:39]Write to MH i2c: E2 08 00 98 02 80 13 00 00 00 00 00 00 16 [19:08:39]Write i2c OK [19:08:39]MH_I2C_Read... [19:08:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:08:39]Read from MH i2c: E2 [19:08:39]MH_I2C_Read... [19:08:39]Read from MH i2c: E2 62 00 [19:08:39]MH_I2C_Read... [19:08:39]Read from MH i2c: E2 62 00 98 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2F 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 30 [19:08: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 2F 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:08:39]wFMCommunicate OK [19:08:39]SAM_PROTO_GetFieldsCounters done [19:08:39]requested_item shift.num is exist - process it [19:08:39]requested_item shift.opened is exist - process it [19:08:39]req_shift_opened [19:08:39]FM_GetShiftState [19:08:39]SAM_PROTO_GetShiftState [19:08:39]wFMCommunicate request_size=4 [19:08:39]MH_SAM_APDU [19:08:39]CAPDU: 80 13 01 00 [19:08:39]Write to MH i2c: E2 08 00 99 02 80 13 01 00 00 00 00 00 18 [19:08:39]Write i2c OK [19:08:39]MH_I2C_Read... [19:08:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:39]Read from MH i2c: E2 [19:08:39]MH_I2C_Read... [19:08:39]Read from MH i2c: E2 0E 00 [19:08:39]MH_I2C_Read... [19:08:39]Read from MH i2c: E2 0E 00 99 02 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 F1 [19:08:39]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [19:08:39]wFMCommunicate OK [19:08:39]SAM_PROTO_GetShiftState done [19:08:39]FM_GetShiftState done [19:08:39]req_shift_opened done [19:08:39]requested_item shift.open_date is exist - process it [19:08:39]req_shift_open_date [19:08:39]req_shift_open_date done [19:08:39]produce_requested_data done [19:08:39]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165423,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [19:08:39]process_action_free close_receipt [19:08:39]json_value_free [19:08:39]json_value_free done [19:08:39]process_json_proto returns [19:08:39]Send response to host [19:08:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165423,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [19:08:39]free response buf [19:08:39]execute_script done [19:08:39]execute_script returns [19:08:39]free content buf [19:08:39]Sock 9.Close socket [19:08:39]Sock 9.Thread stoped [19:08:43]OFD Sender: No OFD packet to send [19:08:48]OFD Sender: No OFD packet to send [19:08:53]OFD Sender: No OFD packet to send [19:08:58]OFD Sender: No OFD packet to send [19:09:03]OFD Sender: No OFD packet to send [19:09:08]OFD Sender: No OFD packet to send [19:09:13]OFD Sender: No OFD packet to send [19:09:18]OFD Sender: No OFD packet to send [19:09:23]OFD Sender: No OFD packet to send [19:09:28]OFD Sender: No OFD packet to send [19:09:33]OFD Sender: No OFD packet to send [19:09:38]OFD Sender: No OFD packet to send [19:09:43]OFD Sender: No OFD packet to send [19:09:48]OFD Sender: No OFD packet to send [19:09:53]OFD Sender: No OFD packet to send [19:09:58]OFD Sender: No OFD packet to send [19:10:03]OFD Sender: No OFD packet to send [19:10:08]OFD Sender: No OFD packet to send [19:10:13]OFD Sender: No OFD packet to send [19:10:18]OFD Sender: No OFD packet to send [19:10:23]OFD Sender: No OFD packet to send [19:10:28]OFD Sender: No OFD packet to send [19:10:33]OFD Sender: No OFD packet to send [19:10:38]OFD Sender: No OFD packet to send [19:10:43]OFD Sender: No OFD packet to send [19:10:48]OFD Sender: No OFD packet to send [19:10:53]OFD Sender: No OFD packet to send [19:10:58]OFD Sender: No OFD packet to send [19:11:03]OFD Sender: No OFD packet to send [19:11:08]OFD Sender: No OFD packet to send [19:11:14]OFD Sender: No OFD packet to send [19:11:19]OFD Sender: No OFD packet to send [19:11:24]OFD Sender: No OFD packet to send [19:11:29]OFD Sender: No OFD packet to send [19:11:34]OFD Sender: No OFD packet to send [19:11:39]OFD Sender: No OFD packet to send [19:11:44]OFD Sender: No OFD packet to send [19:11:49]OFD Sender: No OFD packet to send [19:11:54]OFD Sender: No OFD packet to send [19:11:59]OFD Sender: No OFD packet to send [19:12:04]OFD Sender: No OFD packet to send [19:12:09]OFD Sender: No OFD packet to send [19:12:14]OFD Sender: No OFD packet to send [19:12:19]OFD Sender: No OFD packet to send [19:12:24]OFD Sender: No OFD packet to send [19:12:29]OFD Sender: No OFD packet to send [19:12:34]OFD Sender: No OFD packet to send [19:12:39]OFD Sender: No OFD packet to send [19:12:44]OFD Sender: No OFD packet to send [19:12:49]OFD Sender: No OFD packet to send [19:12:54]OFD Sender: No OFD packet to send [19:12:59]OFD Sender: No OFD packet to send [19:13:04]OFD Sender: No OFD packet to send [19:13:09]OFD Sender: No OFD packet to send [19:13:14]OFD Sender: No OFD packet to send [19:13:19]OFD Sender: No OFD packet to send [19:13:24]OFD Sender: No OFD packet to send [19:13:29]OFD Sender: No OFD packet to send [19:13:34]OFD Sender: No OFD packet to send [19:13:39]OFD Sender: No OFD packet to send [19:13:44]OFD Sender: No OFD packet to send [19:13:49]OFD Sender: No OFD packet to send [19:13:54]OFD Sender: No OFD packet to send [19:13:59]OFD Sender: No OFD packet to send [19:14:01]accept exits with 7 [19:14:01]New connection [19:14:01]New thread 3067190628 created [19:14:01]Thread 3067333988 joined [19:14:01]Waiting for new connection... [19:14:01] Sock 7.Parse request [19:14:01]Sock 7.Check first char [19:14:01]Sock 7.First char is OK [19:14:01]request: POST /json_proto HTTP/1.0 [19:14:01]Method: POST [19:14:01]URL: /json_proto [19:14:01]Method is POST - this is cgi request [19:14:01]url: /json_proto [19:14:01]query_string will be loaded in cgi processing [19:14:01]execute_cgi json_proto POST (null) [19:14:01]execute_cgi path=json_proto method=POST [19:14:01]POST find Content-Length [19:14:01]Host: 172.17.56.4:8080 [19:14:01]Content-Length: 678 [19:14:01]Content-Type: application/json [19:14:01] [19:14:01]POST finish read [19:14:01]Found Content-Length = 678 [19:14:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459540", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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" ] } } [19:14:01]execute_script... [19:14:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459540", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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" ] } } [19:14:01]POST & json_proto [19:14:01]process_json_proto [19:14:01]json parsed OK: [19:14:01]protocol is kg_v1.0 [19:14:01]action value=close_receipt [19:14:01]process_action close_receipt [19:14:01]cmd_close_receipt [19:14:01]MH_GetDate [19:14:01]Write to MH i2c: F0 00 00 9A 02 8B [19:14:01]Write i2c OK [19:14:01]MH_I2C_Read... [19:14:01]Read from MH i2c: F0 [19:14:01]MH_I2C_Read... [19:14:01]Read from MH i2c: F0 09 00 [19:14:01]MH_I2C_Read... [19:14:01]Read from MH i2c: F0 09 00 9A 02 00 F9 74 95 66 C9 DC B2 64 B7 [19:14:01]GetLastDocTimeStamp 1721070516 [19:14:01]current date 1721070841 [19:14:01]FM_GetShiftState [19:14:01]SAM_PROTO_GetShiftState [19:14:01]wFMCommunicate request_size=4 [19:14:01]MH_SAM_APDU [19:14:01]CAPDU: 80 13 01 00 [19:14:01]Write to MH i2c: E2 08 00 9B 02 80 13 01 00 00 00 00 00 1A [19:14:01]Write i2c OK [19:14:01]MH_I2C_Read... [19:14:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:14:01]Read from MH i2c: E2 [19:14:01]MH_I2C_Read... [19:14:01]Read from MH i2c: E2 0E 00 [19:14:01]MH_I2C_Read... [19:14:01]Read from MH i2c: E2 0E 00 9B 02 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 F3 [19:14:01]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [19:14:01]wFMCommunicate OK [19:14:01]SAM_PROTO_GetShiftState done [19:14:01]FM_GetShiftState done [19:14:01]opened in 1721003876 [19:14:01]opened+sec_in_day 1721090276 [19:14:01]quantity*price = 70011 [19:14:01]sum+1 = 70012 [19:14:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 297 15.07.2024 19:14 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165424 ФПД: 53289269175813 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T191401&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165424&fm=53289269175813&tin=02508201610067®Number=0000000000090829&sum=70000 [19:14:02]StoreToDocumentArchive [19:14:02]shift 448 fd 165424 [19:14:02]save to /storage/0448/doc_00165424 [19:14:02]save last doc name /storage/0448/doc_00165424 to /storage/kkm_last_doc_name [19:14:02]save OK [19:14:02]Clear old archive folders... [19:14:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:14:02]tlvbuf is 01BA75F0 [19:14:02]SAM_PROTO_ClearQueue [19:14:02]wFMCommunicate request_size=4 [19:14:02]MH_SAM_APDU [19:14:02]CAPDU: 80 09 00 00 [19:14:02]Write to MH i2c: E2 08 00 A8 02 80 09 00 00 00 00 00 00 1C [19:14:02]Write i2c OK [19:14:02]MH_I2C_Read... [19:14:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:14:02]Read from MH i2c: E2 [19:14:02]MH_I2C_Read... [19:14:02]Read from MH i2c: E2 03 00 [19:14:02]MH_I2C_Read... [19:14:02]Read from MH i2c: E2 03 00 A8 02 00 90 00 1E [19:14:02]RAPDU: 90 00 [19:14:02]wFMCommunicate OK [19:14:02]SAM_PROTO_ClearQueue done [19:14:02]KKMCreateOFDPacket [19:14:02]OFDProtocolAddRootSTLVToBuf [19:14:02]FM_MakeSignedData [19:14:02]FM_MakeSignedData [19:14:02]SAM_PROTO_SignData [19:14:02]wFMCommunicate request_size=4 [19:14:02]MH_SAM_APDU [19:14:02]CAPDU: 80 0D 01 02 [19:14:02]Write to MH i2c: E2 08 00 A9 02 80 0D 01 02 00 00 00 00 24 [19:14:02]Write i2c OK [19:14:02]MH_I2C_Read... [19:14:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:14:02]Read from MH i2c: E2 [19:14:02]MH_I2C_Read... [19:14:02]Read from MH i2c: E2 03 00 [19:14:02]MH_I2C_Read... [19:14:02]Read from MH i2c: E2 03 00 A9 02 00 90 00 1F [19:14:02]RAPDU: 90 00 [19:14:02]wFMCommunicate OK [19:14:02]wFMCommunicate request_size=255 [19:14:02]MH_SAM_APDU [19:14:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 29 01 00 00 F4 03 04 00 F9 74 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 30 86 02 00 35 04 06 00 30 [19:14:02]Write to MH i2c: E2 02 01 AA 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 29 01 00 00 F4 03 04 00 F9 74 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 30 86 02 00 35 04 06 00 30 00 00 1C [19:14:02]Write i2c OK [19:14:02]MH_I2C_Read... [19:14:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:14:02]Read from MH i2c: E2 [19:14:02]MH_I2C_Read... [19:14:02]Read from MH i2c: E2 03 00 [19:14:02]MH_I2C_Read... [19:14:02]Read from MH i2c: E2 03 00 AA 02 00 90 00 20 [19:14:02]RAPDU: 90 00 [19:14:02]wFMCommunicate OK [19:14:02]wFMCommunicate request_size=10 [19:14:02]MH_SAM_APDU [19:14:02]CAPDU: 80 0D 02 02 05 77 5F F5 A6 05 [19:14:02]Write to MH i2c: E2 0D 00 AB 02 80 0D 02 02 05 00 77 5F F5 A6 05 00 00 A7 [19:14:02]Write i2c OK [19:14:02]MH_I2C_Read... [19:14:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:14:02]Read from MH i2c: E2 [19:14:02]MH_I2C_Read... [19:14:02]Read from MH i2c: E2 03 00 [19:14:02]MH_I2C_Read... [19:14:02]Read from MH i2c: E2 03 00 AB 02 00 90 00 21 [19:14:02]RAPDU: 90 00 [19:14:02]wFMCommunicate OK [19:14:02]wFMCommunicate request_size=4 [19:14:02]MH_SAM_APDU [19:14:02]CAPDU: 80 0D 03 02 [19:14:02]Write to MH i2c: E2 08 00 AC 02 80 0D 03 02 00 00 00 00 29 [19:14:02]Write i2c OK [19:14:02]MH_I2C_Read... [19:14:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:14:02]Read from MH i2c: E2 [19:14:02]MH_I2C_Read... [19:14:02]Read from MH i2c: E2 0B 00 [19:14:02]MH_I2C_Read... [19:14:02]Read from MH i2c: E2 0B 00 AC 02 00 35 7C 88 E9 A0 BE 50 F6 90 00 F0 [19:14:02]RAPDU: 35 7C 88 E9 A0 BE 50 F6 90 00 [19:14:02]wFMCommunicate OK [19:14:02]SAM_PROTO_SignData done [19:14:02]FM_MakeSignedData done [19:14:02]CreateOFDProtocolMessage [19:14:02]wFMCommunicate request_size=4 [19:14:02]MH_SAM_APDU [19:14:02]CAPDU: 80 11 00 00 [19:14:02]Write to MH i2c: E2 08 00 AD 02 80 11 00 00 00 00 00 00 29 [19:14:02]Write i2c OK [19:14:02]MH_I2C_Read... [19:14:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:14:02]Read from MH i2c: E2 [19:14:02]MH_I2C_Read... [19:14:02]Read from MH i2c: E2 17 00 [19:14:02]MH_I2C_Read... [19:14:02]Read from MH i2c: E2 17 00 AD 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7F [19:14:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:14:02]wFMCommunicate OK [19:14:02]CreateOFDProtocolMessage done [19:14:02]OFDSenderStorePacket 165424 [19:14:02]StoreOFDPacket docnum=165424 [19:14:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 08 58 07 01 BB E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 29 01 00 00 F4 03 04 00 F9 74 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 30 86 02 00 35 04 06 00 30 77 5F F5 A6 05 35 7C 88 E9 A0 BE 50 F6 [19:14:02]CheckFolder [19:14:02]dirname=/storage/ofd_packets [19:14:02]CheckFolder done [19:14:02]ProducePacketName [19:14:02]name=ofd_packets/00165424 [19:14:02]NVStorageSaveData ofd_packets/00165424 [19:14:02]File name is /storage/ofd_packets/00165424 [19:14:02]Write 301 bytes [19:14:02]NVStorageSaveData done [19:14:02]OFDSenderStorePacket done [19:14:02]KKMCreateOFDPacket done [19:14:02]NVStorageSaveData kkm_last_timestamp [19:14:02]File name is /storage/kkm_last_timestamp [19:14:02]Write 4 bytes [19:14:02]NVStorageSaveData done [19:14:02]ExternCall_PrintAddStr [19:14:02]wPrintStart [19:14:02]Write to MH i2c: 01 00 00 AE 02 B0 [19:14:02]Write i2c OK [19:14:02]MH_I2C_Read... [19:14:02]Read from MH i2c: 01 [19:14:02]MH_I2C_Read... [19:14:02]Read from MH i2c: 01 07 00 [19:14:02]MH_I2C_Read... [19:14:02]Read from MH i2c: 01 07 00 AE 02 00 00 00 00 00 FF 0F C5 [19:14:02]RasterBufferAndPrint [19:14:02]line Счет N : (1)459540 [19:14:02]line ИНН: 02508201610067 [19:14:02]line Контрольно-Кассовый Чек [19:14:02]line ПРОДАЖА [19:14:02]line ТРК (МРК, ГНК) : 12 [19:14:02]line Товар: 2710124130 [19:14:02]line Аи-92-К-5 [19:14:02]line 10.640 * 65.80 [19:14:02]line = 700.11 [19:14:02]line НДС 12% НСП 1% [19:14:02]line > о реализуемом товаре [19:14:02]line ОКРУГЛЕНИЕ: -0.11 [19:14:02]line ИТОГО: 700.00 [19:14:02]line Внесено: 700.00 [19:14:02]line СДАЧА: 0.00 [19:14:02]line НСП 1% : 6.20 [19:14:02]line НДС 12% : 74.35 [19:14:02]line Наличными: 700.00 [19:14:02]line Безнал.: 0.00 [19:14:02]line Место: АЗС № 72 "Партнер Нефть" [19:14:02]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:14:02]line СНО: Общий режим [19:14:02]line Чек 297 15.07.2024 19:14 [19:14:02]line Смена: 448 ФФД: 1.0 [19:14:02]line ЗНМ: 0300000160 [19:14:02]line РНМ: 0000000000090829 [19:14:02]line Версия ККМ: 001 [19:14:02]line ФМ: 0000000000874718 [19:14:02]line ФД: 165424 [19:14:02]line ФПД: 53289269175813 [19:14:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T191401&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165424&fm=53289269175813&tin=02508201610067®Number=0000000000090829&sum=70000 [19:14:03]written 0, free lines is 4095 [19:14:03]OFD Sender: Processing packet 165424 [packets to send 106, broken 105] [19:14:03]ProducePacketName [19:14:03]name=ofd_packets/00165424 [19:14:03]OFD Sender: To server: pG, [19:14:03]CommunicateWithHost lk.salyk.kg:30040 [19:14:03]ConnectInit lk.salyk.kg [19:14:03]Connected sock=10 [19:14:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 08 58 07 01 BB E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 29 01 00 00 F4 03 04 00 F9 74 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 30 86 02 00 35 04 06 00 30 77 5F F5 A6 05 35 7C 88 E9 A0 BE 50 F6 [19:14:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 7C 49 47 00 69 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 30 86 02 00 F4 03 04 00 83 1B 95 66 B6 04 01 00 00 2C 1E 0B 7A 75 D8 68 5A [19:14:03]CommunicateWithHost err = 0 [19:14:03]CheckOFDResponse [19:14:03]1017 (14) - 77093643461234 [19:14:03]1041 (16) - 0000000000874718 [19:14:03]1040 (4) - 165424 [19:14:03]1012 (4) - 15.07.2024 12:52 [19:14:03]1206 (1) - 0 [19:14:03]OFD Sender: Remove packet 165424 [19:14:03]ProducePacketName [19:14:03]name=ofd_packets/00165424 [19:14:03]NVStorageDeleteData [19:14:03]Write to MH i2c: 01 00 00 D8 02 DA [19:14:03]Write i2c OK [19:14:03]MH_I2C_Read... [19:14:03]Read from MH i2c: 01 [19:14:03]MH_I2C_Read... [19:14:03]Read from MH i2c: 01 07 00 [19:14:03]MH_I2C_Read... [19:14:03]Read from MH i2c: 01 07 00 D8 02 00 00 00 00 00 F5 0C E2 [19:14:03]RasterBufferAndPrint [19:14:03]line [19:14:03]line [19:14:03]line [19:14:03]line [19:14:03]line [19:14:03]written 0, free lines is 3323 [19:14:03]MH_Cut [19:14:03]Write to MH i2c: D1 01 00 DF 02 01 B3 [19:14:03]Write i2c OK [19:14:03]MH_I2C_Read... [19:14:03]Read from MH i2c: D1 [19:14:03]MH_I2C_Read... [19:14:03]Read from MH i2c: D1 01 00 [19:14:03]MH_I2C_Read... [19:14:03]Read from MH i2c: D1 01 00 DF 02 00 B2 [19:14:03]Write to MH i2c: 01 00 00 E0 02 E2 [19:14:03]Write i2c OK [19:14:03]MH_I2C_Read... [19:14:04]OFD Sender: No OFD packet to send [19:14:04]*** Cut start [19:14:04]*** Partial cut [19:14:04]*** CUTSNS_PIN = 1 [19:14:04]*** CUTSNS_PIN = 0 [19:14:04]*** Brake cut motor [19:14:04]Read from MH i2c: 01 [19:14:04]MH_I2C_Read... [19:14:04]*** Stop cut motor [19:14:04]*** Cut end [19:14:04]Read from MH i2c: 01 07 00 [19:14:04]MH_I2C_Read... [19:14:04]Read from MH i2c: 01 07 00 E0 02 00 00 00 00 00 FF 0F F7 [19:14:04]process_action close_receipt done [19:14:04]requested_data is exist [19:14:04]produce_requested_data [19:14:04]requested_item fm.sn is exist - process it [19:14:04]wFMCommunicate request_size=4 [19:14:04]MH_SAM_APDU [19:14:04]CAPDU: 80 11 00 00 [19:14:04]Write to MH i2c: E2 08 00 E1 02 80 11 00 00 00 00 00 00 5D [19:14:04]Write i2c OK [19:14:04]MH_I2C_Read... [19:14:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:14:05]Read from MH i2c: E2 [19:14:05]MH_I2C_Read... [19:14:05]Read from MH i2c: E2 17 00 [19:14:05]MH_I2C_Read... [19:14:05]Read from MH i2c: E2 17 00 E1 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B3 [19:14:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:14:05]wFMCommunicate OK [19:14:05]requested_item fd.num is exist - process it [19:14:05]SAM_PROTO_GetFieldsCounters [19:14:05]wFMCommunicate request_size=4 [19:14:05]MH_SAM_APDU [19:14:05]CAPDU: 80 13 00 00 [19:14:05]Write to MH i2c: E2 08 00 E2 02 80 13 00 00 00 00 00 00 60 [19:14:05]Write i2c OK [19:14:05]MH_I2C_Read... [19:14:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:14:05]Read from MH i2c: E2 [19:14:05]MH_I2C_Read... [19:14:05]Read from MH i2c: E2 62 00 [19:14:05]MH_I2C_Read... [19:14:05]Read from MH i2c: E2 62 00 E2 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 30 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 7E [19:14:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 30 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:14:05]wFMCommunicate OK [19:14:05]SAM_PROTO_GetFieldsCounters done [19:14:05]requested_item shift.num is exist - process it [19:14:05]requested_item shift.opened is exist - process it [19:14:05]req_shift_opened [19:14:05]FM_GetShiftState [19:14:05]SAM_PROTO_GetShiftState [19:14:05]wFMCommunicate request_size=4 [19:14:05]MH_SAM_APDU [19:14:05]CAPDU: 80 13 01 00 [19:14:05]Write to MH i2c: E2 08 00 E3 02 80 13 01 00 00 00 00 00 62 [19:14:05]Write i2c OK [19:14:05]MH_I2C_Read... [19:14:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:14:05]Read from MH i2c: E2 [19:14:05]MH_I2C_Read... [19:14:05]Read from MH i2c: E2 0E 00 [19:14:05]MH_I2C_Read... [19:14:05]Read from MH i2c: E2 0E 00 E3 02 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 3B [19:14:05]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [19:14:05]wFMCommunicate OK [19:14:05]SAM_PROTO_GetShiftState done [19:14:05]FM_GetShiftState done [19:14:05]req_shift_opened done [19:14:05]requested_item shift.open_date is exist - process it [19:14:05]req_shift_open_date [19:14:05]req_shift_open_date done [19:14:05]produce_requested_data done [19:14:05]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165424,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [19:14:05]process_action_free close_receipt [19:14:05]json_value_free [19:14:05]json_value_free done [19:14:05]process_json_proto returns [19:14:05]Send response to host [19:14:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165424,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [19:14:05]free response buf [19:14:05]execute_script done [19:14:05]execute_script returns [19:14:05]free content buf [19:14:05]Sock 7.Close socket [19:14:05]Sock 7.Thread stoped [19:14:09]OFD Sender: No OFD packet to send [19:14:14]OFD Sender: No OFD packet to send [19:14:19]OFD Sender: No OFD packet to send [19:14:24]OFD Sender: No OFD packet to send [19:14:29]OFD Sender: No OFD packet to send [19:14:34]OFD Sender: No OFD packet to send [19:14:39]OFD Sender: No OFD packet to send [19:14:44]OFD Sender: No OFD packet to send [19:14:49]OFD Sender: No OFD packet to send [19:14:54]OFD Sender: No OFD packet to send [19:14:59]OFD Sender: No OFD packet to send [19:15:04]OFD Sender: No OFD packet to send [19:15:09]OFD Sender: No OFD packet to send [19:15:14]OFD Sender: No OFD packet to send [19:15:19]OFD Sender: No OFD packet to send [19:15:24]OFD Sender: No OFD packet to send [19:15:29]OFD Sender: No OFD packet to send [19:15:34]OFD Sender: No OFD packet to send [19:15:35]accept exits with 9 [19:15:35]New connection [19:15:35]New thread 3067333988 created [19:15:35]Thread 3067190628 joined [19:15:35]Waiting for new connection... [19:15:35] Sock 9.Parse request [19:15:35]Sock 9.Check first char [19:15:35]Sock 9.First char is OK [19:15:35]request: POST /json_proto HTTP/1.0 [19:15:35]Method: POST [19:15:35]URL: /json_proto [19:15:35]Method is POST - this is cgi request [19:15:35]url: /json_proto [19:15:35]query_string will be loaded in cgi processing [19:15:35]execute_cgi json_proto POST (null) [19:15:35]execute_cgi path=json_proto method=POST [19:15:35]POST find Content-Length [19:15:35]Host: 172.17.56.4:8080 [19:15:35]Content-Length: 677 [19:15:35]Content-Type: application/json [19:15:35] [19:15:35]POST finish read [19:15:35]Found Content-Length = 677 [19:15:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459541", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:15:35]execute_script... [19:15: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)459541", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:15:35]POST & json_proto [19:15:35]process_json_proto [19:15:35]json parsed OK: [19:15:35]protocol is kg_v1.0 [19:15:35]action value=close_receipt [19:15:35]process_action close_receipt [19:15:35]cmd_close_receipt [19:15:35]MH_GetDate [19:15:35]Write to MH i2c: F0 00 00 E4 02 D5 [19:15:35]Write i2c OK [19:15:35]MH_I2C_Read... [19:15:35]Read from MH i2c: F0 [19:15:35]MH_I2C_Read... [19:15:35]Read from MH i2c: F0 09 00 [19:15:35]MH_I2C_Read... [19:15:35]Read from MH i2c: F0 09 00 E4 02 00 57 75 95 66 C9 DC B2 64 60 [19:15:35]GetLastDocTimeStamp 1721070841 [19:15:35]current date 1721070935 [19:15:35]FM_GetShiftState [19:15:35]SAM_PROTO_GetShiftState [19:15:35]wFMCommunicate request_size=4 [19:15:35]MH_SAM_APDU [19:15:35]CAPDU: 80 13 01 00 [19:15:35]Write to MH i2c: E2 08 00 E5 02 80 13 01 00 00 00 00 00 64 [19:15:35]Write i2c OK [19:15:35]MH_I2C_Read... [19:15:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:35]Read from MH i2c: E2 [19:15:35]MH_I2C_Read... [19:15:35]Read from MH i2c: E2 0E 00 [19:15:35]MH_I2C_Read... [19:15:35]Read from MH i2c: E2 0E 00 E5 02 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 3D [19:15:35]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [19:15:35]wFMCommunicate OK [19:15:35]SAM_PROTO_GetShiftState done [19:15:35]FM_GetShiftState done [19:15:35]opened in 1721003876 [19:15:35]opened+sec_in_day 1721090276 [19:15:35]quantity*price = 50008 [19:15:35]sum+1 = 50009 [19:15:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 298 15.07.2024 19:15 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165425 ФПД: 260046720859511 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T191535&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165425&fm=260046720859511&tin=02508201610067®Number=0000000000090829&sum=50000 [19:15:36]StoreToDocumentArchive [19:15:36]shift 448 fd 165425 [19:15:36]save to /storage/0448/doc_00165425 [19:15:36]save last doc name /storage/0448/doc_00165425 to /storage/kkm_last_doc_name [19:15:36]save OK [19:15:36]Clear old archive folders... [19:15:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:15:36]tlvbuf is 01B8FD90 [19:15:36]SAM_PROTO_ClearQueue [19:15:36]wFMCommunicate request_size=4 [19:15:36]MH_SAM_APDU [19:15:36]CAPDU: 80 09 00 00 [19:15:36]Write to MH i2c: E2 08 00 F2 02 80 09 00 00 00 00 00 00 66 [19:15:36]Write i2c OK [19:15:36]MH_I2C_Read... [19:15:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:15:36]Read from MH i2c: E2 [19:15:36]MH_I2C_Read... [19:15:36]Read from MH i2c: E2 03 00 [19:15:36]MH_I2C_Read... [19:15:36]Read from MH i2c: E2 03 00 F2 02 00 90 00 68 [19:15:36]RAPDU: 90 00 [19:15:36]wFMCommunicate OK [19:15:36]SAM_PROTO_ClearQueue done [19:15:36]KKMCreateOFDPacket [19:15:36]OFDProtocolAddRootSTLVToBuf [19:15:36]FM_MakeSignedData [19:15:36]FM_MakeSignedData [19:15:36]SAM_PROTO_SignData [19:15:36]wFMCommunicate request_size=4 [19:15:36]MH_SAM_APDU [19:15:36]CAPDU: 80 0D 01 02 [19:15:36]Write to MH i2c: E2 08 00 F3 02 80 0D 01 02 00 00 00 00 6E [19:15:36]Write i2c OK [19:15:36]MH_I2C_Read... [19:15:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:15:36]Read from MH i2c: E2 [19:15:36]MH_I2C_Read... [19:15:36]Read from MH i2c: E2 03 00 [19:15:36]MH_I2C_Read... [19:15:36]Read from MH i2c: E2 03 00 F3 02 00 90 00 69 [19:15:36]RAPDU: 90 00 [19:15:36]wFMCommunicate OK [19:15:36]wFMCommunicate request_size=255 [19:15:36]MH_SAM_APDU [19:15:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 57 75 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 31 86 02 00 35 04 06 00 EC [19:15:36]Write to MH i2c: E2 02 01 F4 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 57 75 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 31 86 02 00 35 04 06 00 EC 00 00 3F [19:15:36]Write i2c OK [19:15:36]MH_I2C_Read... [19:15:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:36]Read from MH i2c: E2 [19:15:36]MH_I2C_Read... [19:15:36]Read from MH i2c: E2 03 00 [19:15:36]MH_I2C_Read... [19:15:36]Read from MH i2c: E2 03 00 F4 02 00 90 00 6A [19:15:36]RAPDU: 90 00 [19:15:36]wFMCommunicate OK [19:15:36]wFMCommunicate request_size=10 [19:15:36]MH_SAM_APDU [19:15:36]CAPDU: 80 0D 02 02 05 82 D8 6B FD 77 [19:15:36]Write to MH i2c: E2 0D 00 F5 02 80 0D 02 02 05 00 82 D8 6B FD 77 00 00 B4 [19:15:36]Write i2c OK [19:15:36]MH_I2C_Read... [19:15:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:36]Read from MH i2c: E2 [19:15:36]MH_I2C_Read... [19:15:36]Read from MH i2c: E2 03 00 [19:15:36]MH_I2C_Read... [19:15:36]Read from MH i2c: E2 03 00 F5 02 00 90 00 6B [19:15:36]RAPDU: 90 00 [19:15:36]wFMCommunicate OK [19:15:36]wFMCommunicate request_size=4 [19:15:36]MH_SAM_APDU [19:15:36]CAPDU: 80 0D 03 02 [19:15:36]Write to MH i2c: E2 08 00 F6 02 80 0D 03 02 00 00 00 00 73 [19:15:36]Write i2c OK [19:15:36]MH_I2C_Read... [19:15:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:15:36]Read from MH i2c: E2 [19:15:36]MH_I2C_Read... [19:15:36]Read from MH i2c: E2 0B 00 [19:15:36]MH_I2C_Read... [19:15:36]Read from MH i2c: E2 0B 00 F6 02 00 BF 52 5B 13 67 CF A4 A8 90 00 75 [19:15:36]RAPDU: BF 52 5B 13 67 CF A4 A8 90 00 [19:15:36]wFMCommunicate OK [19:15:36]SAM_PROTO_SignData done [19:15:36]FM_MakeSignedData done [19:15:36]CreateOFDProtocolMessage [19:15:36]wFMCommunicate request_size=4 [19:15:36]MH_SAM_APDU [19:15:36]CAPDU: 80 11 00 00 [19:15:36]Write to MH i2c: E2 08 00 F7 02 80 11 00 00 00 00 00 00 73 [19:15:36]Write i2c OK [19:15:36]MH_I2C_Read... [19:15:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:37]Read from MH i2c: E2 [19:15:37]MH_I2C_Read... [19:15:37]Read from MH i2c: E2 17 00 [19:15:37]MH_I2C_Read... [19:15:37]Read from MH i2c: E2 17 00 F7 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C9 [19:15:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:15:37]wFMCommunicate OK [19:15:37]CreateOFDProtocolMessage done [19:15:37]OFDSenderStorePacket 165425 [19:15:37]StoreOFDPacket docnum=165425 [19:15:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 AD F4 07 01 6A 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 57 75 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 31 86 02 00 35 04 06 00 EC 82 D8 6B FD 77 BF 52 5B 13 67 CF A4 A8 [19:15:37]CheckFolder [19:15:37]dirname=/storage/ofd_packets [19:15:37]CheckFolder done [19:15:37]ProducePacketName [19:15:37]name=ofd_packets/00165425 [19:15:37]NVStorageSaveData ofd_packets/00165425 [19:15:37]File name is /storage/ofd_packets/00165425 [19:15:37]Write 301 bytes [19:15:37]NVStorageSaveData done [19:15:37]OFDSenderStorePacket done [19:15:37]KKMCreateOFDPacket done [19:15:37]NVStorageSaveData kkm_last_timestamp [19:15:37]File name is /storage/kkm_last_timestamp [19:15:37]Write 4 bytes [19:15:37]NVStorageSaveData done [19:15:37]ExternCall_PrintAddStr [19:15:37]wPrintStart [19:15:37]Write to MH i2c: 01 00 00 F8 02 FA [19:15:37]Write i2c OK [19:15:37]MH_I2C_Read... [19:15:37]Read from MH i2c: 01 [19:15:37]MH_I2C_Read... [19:15:37]Read from MH i2c: 01 07 00 [19:15:37]MH_I2C_Read... [19:15:37]Read from MH i2c: 01 07 00 F8 02 00 00 00 00 00 FF 0F 0F [19:15:37]RasterBufferAndPrint [19:15:37]line Счет N : (1)459541 [19:15:37]line ИНН: 02508201610067 [19:15:37]line Контрольно-Кассовый Чек [19:15:37]line ПРОДАЖА [19:15:37]line ТРК (МРК, ГНК) : 22 [19:15:37]line Товар: 2710124130 [19:15:37]line Аи-92-К-5 [19:15:37]line 7.600 * 65.80 [19:15:37]line = 500.08 [19:15:37]line НДС 12% НСП 1% [19:15:37]line > о реализуемом товаре [19:15:37]line ОКРУГЛЕНИЕ: -0.08 [19:15:37]line ИТОГО: 500.00 [19:15:37]line Внесено: 500.00 [19:15:37]line СДАЧА: 0.00 [19:15:37]line НСП 1% : 4.42 [19:15:37]line НДС 12% : 53.11 [19:15:37]line Наличными: 500.00 [19:15:37]line Безнал.: 0.00 [19:15:37]line Место: АЗС № 72 "Партнер Нефть" [19:15:37]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:15:37]line СНО: Общий режим [19:15:37]line Чек 298 15.07.2024 19:15 [19:15:37]line Смена: 448 ФФД: 1.0 [19:15:37]line ЗНМ: 0300000160 [19:15:37]line РНМ: 0000000000090829 [19:15:37]line Версия ККМ: 001 [19:15:37]line ФМ: 0000000000874718 [19:15:37]line ФД: 165425 [19:15:37]line ФПД: 260046720859511 [19:15:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T191535&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165425&fm=260046720859511&tin=02508201610067®Number=0000000000090829&sum=50000 [19:15:37]written 0, free lines is 4095 [19:15:37]OFD Sender: Processing packet 165425 [packets to send 106, broken 105] [19:15:37]ProducePacketName [19:15:37]name=ofd_packets/00165425 [19:15:37]OFD Sender: To server: pG, [19:15:37]CommunicateWithHost lk.salyk.kg:30040 [19:15:37]ConnectInit lk.salyk.kg [19:15:37]Connected sock=10 [19:15: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 37 31 38 0F 01 00 00 AD F4 07 01 6A 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 57 75 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 31 86 02 00 35 04 06 00 EC 82 D8 6B FD 77 BF 52 5B 13 67 CF A4 A8 [19:15:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 73 7F 47 00 BD 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 37 31 38 10 04 04 00 31 86 02 00 F4 03 04 00 E1 1B 95 66 B6 04 01 00 00 E7 EE 15 A8 0C FC 5D 7E [19:15:37]CommunicateWithHost err = 0 [19:15:37]CheckOFDResponse [19:15:37]1017 (14) - 77093643461234 [19:15:37]1041 (16) - 0000000000874718 [19:15:37]1040 (4) - 165425 [19:15:37]1012 (4) - 15.07.2024 12:53 [19:15:37]1206 (1) - 0 [19:15:37]OFD Sender: Remove packet 165425 [19:15:37]ProducePacketName [19:15:37]name=ofd_packets/00165425 [19:15:37]NVStorageDeleteData [19:15:37]Write to MH i2c: 01 00 00 22 03 25 [19:15:37]Write i2c OK [19:15:37]MH_I2C_Read... [19:15:37]Read from MH i2c: 01 [19:15:37]MH_I2C_Read... [19:15:37]Read from MH i2c: 01 07 00 [19:15:37]MH_I2C_Read... [19:15:37]Read from MH i2c: 01 07 00 22 03 00 00 00 00 00 F6 0C 2E [19:15:37]RasterBufferAndPrint [19:15:37]line [19:15:37]line [19:15:37]line [19:15:37]line [19:15:37]line [19:15:37]written 0, free lines is 3325 [19:15:37]MH_Cut [19:15:37]Write to MH i2c: D1 01 00 29 03 01 FE [19:15:37]Write i2c OK [19:15:37]MH_I2C_Read... [19:15:37]Read from MH i2c: D1 [19:15:37]MH_I2C_Read... [19:15:37]Read from MH i2c: D1 01 00 [19:15:37]MH_I2C_Read... [19:15:37]Read from MH i2c: D1 01 00 29 03 00 FD [19:15:37]Write to MH i2c: 01 00 00 2A 03 2D [19:15:37]Write i2c OK [19:15:37]MH_I2C_Read... [19:15:38]OFD Sender: No OFD packet to send [19:15:38]*** Cut start [19:15:38]*** Partial cut [19:15:38]*** CUTSNS_PIN = 1 [19:15:38]*** CUTSNS_PIN = 0 [19:15:38]*** Brake cut motor [19:15:39]Read from MH i2c: 01 [19:15:39]MH_I2C_Read... [19:15:39]*** Stop cut motor [19:15:39]*** Cut end [19:15:39]Read from MH i2c: 01 07 00 [19:15:39]MH_I2C_Read... [19:15:39]Read from MH i2c: 01 07 00 2A 03 00 00 00 00 00 FF 0F 42 [19:15:39]process_action close_receipt done [19:15:39]requested_data is exist [19:15:39]produce_requested_data [19:15:39]requested_item fm.sn is exist - process it [19:15:39]wFMCommunicate request_size=4 [19:15:39]MH_SAM_APDU [19:15:39]CAPDU: 80 11 00 00 [19:15:39]Write to MH i2c: E2 08 00 2B 03 80 11 00 00 00 00 00 00 A8 [19:15:39]Write i2c OK [19:15:39]MH_I2C_Read... [19:15:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:39]Read from MH i2c: E2 [19:15:39]MH_I2C_Read... [19:15:39]Read from MH i2c: E2 17 00 [19:15:39]MH_I2C_Read... [19:15:39]Read from MH i2c: E2 17 00 2B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FE [19:15:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:15:39]wFMCommunicate OK [19:15:39]requested_item fd.num is exist - process it [19:15:39]SAM_PROTO_GetFieldsCounters [19:15:39]wFMCommunicate request_size=4 [19:15:39]MH_SAM_APDU [19:15:39]CAPDU: 80 13 00 00 [19:15:39]Write to MH i2c: E2 08 00 2C 03 80 13 00 00 00 00 00 00 AB [19:15:39]Write i2c OK [19:15:39]MH_I2C_Read... [19:15:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:15:39]Read from MH i2c: E2 [19:15:39]MH_I2C_Read... [19:15:39]Read from MH i2c: E2 62 00 [19:15:39]MH_I2C_Read... [19:15:39]Read from MH i2c: E2 62 00 2C 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 31 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 2A 01 00 00 5E 04 04 00 2A 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 CD [19:15: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 31 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 2A 01 00 00 5E 04 04 00 2A 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:15:39]wFMCommunicate OK [19:15:39]SAM_PROTO_GetFieldsCounters done [19:15:39]requested_item shift.num is exist - process it [19:15:39]requested_item shift.opened is exist - process it [19:15:39]req_shift_opened [19:15:39]FM_GetShiftState [19:15:39]SAM_PROTO_GetShiftState [19:15:39]wFMCommunicate request_size=4 [19:15:39]MH_SAM_APDU [19:15:39]CAPDU: 80 13 01 00 [19:15:39]Write to MH i2c: E2 08 00 2D 03 80 13 01 00 00 00 00 00 AD [19:15:39]Write i2c OK [19:15:39]MH_I2C_Read... [19:15:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:39]Read from MH i2c: E2 [19:15:39]MH_I2C_Read... [19:15:39]Read from MH i2c: E2 0E 00 [19:15:39]MH_I2C_Read... [19:15:39]Read from MH i2c: E2 0E 00 2D 03 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 86 [19:15:39]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [19:15:39]wFMCommunicate OK [19:15:39]SAM_PROTO_GetShiftState done [19:15:39]FM_GetShiftState done [19:15:39]req_shift_opened done [19:15:39]requested_item shift.open_date is exist - process it [19:15:39]req_shift_open_date [19:15:39]req_shift_open_date done [19:15:39]produce_requested_data done [19:15:39]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165425,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [19:15:39]process_action_free close_receipt [19:15:39]json_value_free [19:15:39]json_value_free done [19:15:39]process_json_proto returns [19:15:39]Send response to host [19:15:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165425,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [19:15:39]free response buf [19:15:39]execute_script done [19:15:39]execute_script returns [19:15:39]free content buf [19:15:39]Sock 9.Close socket [19:15:39]Sock 9.Thread stoped [19:15:43]OFD Sender: No OFD packet to send [19:15:48]OFD Sender: No OFD packet to send [19:15:53]OFD Sender: No OFD packet to send [19:15:58]OFD Sender: No OFD packet to send [19:16:03]OFD Sender: No OFD packet to send [19:16:08]OFD Sender: No OFD packet to send [19:16:13]OFD Sender: No OFD packet to send [19:16:18]OFD Sender: No OFD packet to send [19:16:23]OFD Sender: No OFD packet to send [19:16:28]OFD Sender: No OFD packet to send [19:16:33]OFD Sender: No OFD packet to send [19:16:38]OFD Sender: No OFD packet to send [19:16:43]OFD Sender: No OFD packet to send [19:16:48]OFD Sender: No OFD packet to send [19:16:53]OFD Sender: No OFD packet to send [19:16:58]OFD Sender: No OFD packet to send [19:17:03]OFD Sender: No OFD packet to send [19:17:08]OFD Sender: No OFD packet to send [19:17:13]OFD Sender: No OFD packet to send [19:17:18]OFD Sender: No OFD packet to send [19:17:23]OFD Sender: No OFD packet to send [19:17:28]OFD Sender: No OFD packet to send [19:17:33]OFD Sender: No OFD packet to send [19:17:38]OFD Sender: No OFD packet to send [19:17:43]OFD Sender: No OFD packet to send [19:17:48]OFD Sender: No OFD packet to send [19:17:53]OFD Sender: No OFD packet to send [19:17:58]OFD Sender: No OFD packet to send [19:18:03]OFD Sender: No OFD packet to send [19:18:08]OFD Sender: No OFD packet to send [19:18:13]OFD Sender: No OFD packet to send [19:18:18]OFD Sender: No OFD packet to send [19:18:23]OFD Sender: No OFD packet to send [19:18:28]OFD Sender: No OFD packet to send [19:18:33]OFD Sender: No OFD packet to send [19:18:38]OFD Sender: No OFD packet to send [19:18:43]OFD Sender: No OFD packet to send [19:18:48]OFD Sender: No OFD packet to send [19:18:53]OFD Sender: No OFD packet to send [19:18:58]OFD Sender: No OFD packet to send [19:19:03]OFD Sender: No OFD packet to send [19:19:08]OFD Sender: No OFD packet to send [19:19:13]OFD Sender: No OFD packet to send [19:19:18]OFD Sender: No OFD packet to send [19:19:23]OFD Sender: No OFD packet to send [19:19:28]OFD Sender: No OFD packet to send [19:19:33]OFD Sender: No OFD packet to send [19:19:38]OFD Sender: No OFD packet to send [19:19:43]OFD Sender: No OFD packet to send [19:19:48]OFD Sender: No OFD packet to send [19:19:53]OFD Sender: No OFD packet to send [19:19:54]accept exits with 7 [19:19:54]New connection [19:19:54]New thread 3067190628 created [19:19:54]Thread 3067333988 joined [19:19:54]Waiting for new connection... [19:19:54] Sock 7.Parse request [19:19:54]Sock 7.Check first char [19:19:54]Sock 7.First char is OK [19:19:54]request: POST /json_proto HTTP/1.0 [19:19:54]Method: POST [19:19:54]URL: /json_proto [19:19:54]Method is POST - this is cgi request [19:19:54]url: /json_proto [19:19:54]query_string will be loaded in cgi processing [19:19:54]execute_cgi json_proto POST (null) [19:19:54]execute_cgi path=json_proto method=POST [19:19:54]POST find Content-Length [19:19:54]Host: 172.17.56.4:8080 [19:19:54]Content-Length: 677 [19:19:54]Content-Type: application/json [19:19:54] [19:19:54]POST finish read [19:19:54]Found Content-Length = 677 [19:19:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459542", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:19:54]execute_script... [19:19: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)459542", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:19:54]POST & json_proto [19:19:54]process_json_proto [19:19:54]json parsed OK: [19:19:54]protocol is kg_v1.0 [19:19:54]action value=close_receipt [19:19:54]process_action close_receipt [19:19:54]cmd_close_receipt [19:19:54]MH_GetDate [19:19:54]Write to MH i2c: F0 00 00 2E 03 20 [19:19:54]Write i2c OK [19:19:54]MH_I2C_Read... [19:19:54]Read from MH i2c: F0 [19:19:54]MH_I2C_Read... [19:19:54]Read from MH i2c: F0 09 00 [19:19:54]MH_I2C_Read... [19:19:54]Read from MH i2c: F0 09 00 2E 03 00 5B 76 95 66 C9 DC B2 64 B0 [19:19:54]GetLastDocTimeStamp 1721070935 [19:19:54]current date 1721071195 [19:19:54]FM_GetShiftState [19:19:54]SAM_PROTO_GetShiftState [19:19:54]wFMCommunicate request_size=4 [19:19:54]MH_SAM_APDU [19:19:54]CAPDU: 80 13 01 00 [19:19:54]Write to MH i2c: E2 08 00 2F 03 80 13 01 00 00 00 00 00 AF [19:19:54]Write i2c OK [19:19:54]MH_I2C_Read... [19:19:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:19:54]Read from MH i2c: E2 [19:19:54]MH_I2C_Read... [19:19:54]Read from MH i2c: E2 0E 00 [19:19:54]MH_I2C_Read... [19:19:54]Read from MH i2c: E2 0E 00 2F 03 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 88 [19:19:54]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [19:19:54]wFMCommunicate OK [19:19:54]SAM_PROTO_GetShiftState done [19:19:54]FM_GetShiftState done [19:19:54]opened in 1721003876 [19:19:54]opened+sec_in_day 1721090276 [19:19:54]quantity*price = 40006 [19:19:54]sum+1 = 40007 [19:19:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 299 15.07.2024 19:19 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165426 ФПД: 231161710667070 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T191955&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165426&fm=231161710667070&tin=02508201610067®Number=0000000000090829&sum=40000 [19:19:55]StoreToDocumentArchive [19:19:55]shift 448 fd 165426 [19:19:55]save to /storage/0448/doc_00165426 [19:19:56]save last doc name /storage/0448/doc_00165426 to /storage/kkm_last_doc_name [19:19:56]save OK [19:19:56]Clear old archive folders... [19:19:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:19:56]tlvbuf is 01B91940 [19:19:56]SAM_PROTO_ClearQueue [19:19:56]wFMCommunicate request_size=4 [19:19:56]MH_SAM_APDU [19:19:56]CAPDU: 80 09 00 00 [19:19:56]Write to MH i2c: E2 08 00 3C 03 80 09 00 00 00 00 00 00 B1 [19:19:56]Write i2c OK [19:19:56]MH_I2C_Read... [19:19:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:19:56]Read from MH i2c: E2 [19:19:56]MH_I2C_Read... [19:19:56]Read from MH i2c: E2 03 00 [19:19:56]MH_I2C_Read... [19:19:56]Read from MH i2c: E2 03 00 3C 03 00 90 00 B3 [19:19:56]RAPDU: 90 00 [19:19:56]wFMCommunicate OK [19:19:56]SAM_PROTO_ClearQueue done [19:19:56]KKMCreateOFDPacket [19:19:56]OFDProtocolAddRootSTLVToBuf [19:19:56]FM_MakeSignedData [19:19:56]FM_MakeSignedData [19:19:56]SAM_PROTO_SignData [19:19:56]wFMCommunicate request_size=4 [19:19:56]MH_SAM_APDU [19:19:56]CAPDU: 80 0D 01 02 [19:19:56]Write to MH i2c: E2 08 00 3D 03 80 0D 01 02 00 00 00 00 B9 [19:19:56]Write i2c OK [19:19:56]MH_I2C_Read... [19:19:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:19:56]Read from MH i2c: E2 [19:19:56]MH_I2C_Read... [19:19:56]Read from MH i2c: E2 03 00 [19:19:56]MH_I2C_Read... [19:19:56]Read from MH i2c: E2 03 00 3D 03 00 90 00 B4 [19:19:56]RAPDU: 90 00 [19:19:56]wFMCommunicate OK [19:19:56]wFMCommunicate request_size=255 [19:19:56]MH_SAM_APDU [19:19: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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 5B 76 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 32 86 02 00 35 04 06 00 D2 [19:19:56]Write to MH i2c: E2 02 01 3E 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 5B 76 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 32 86 02 00 35 04 06 00 D2 00 00 57 [19:19:56]Write i2c OK [19:19:56]MH_I2C_Read... [19:19:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:56]Read from MH i2c: E2 [19:19:56]MH_I2C_Read... [19:19:56]Read from MH i2c: E2 03 00 [19:19:56]MH_I2C_Read... [19:19:56]Read from MH i2c: E2 03 00 3E 03 00 90 00 B5 [19:19:56]RAPDU: 90 00 [19:19:56]wFMCommunicate OK [19:19:56]wFMCommunicate request_size=10 [19:19:56]MH_SAM_APDU [19:19:56]CAPDU: 80 0D 02 02 05 3D 87 A6 65 3E [19:19:56]Write to MH i2c: E2 0D 00 3F 03 80 0D 02 02 05 00 3D 87 A6 65 3E 00 00 D3 [19:19:56]Write i2c OK [19:19:56]MH_I2C_Read... [19:19:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:56]Read from MH i2c: E2 [19:19:56]MH_I2C_Read... [19:19:56]Read from MH i2c: E2 03 00 [19:19:56]MH_I2C_Read... [19:19:56]Read from MH i2c: E2 03 00 3F 03 00 90 00 B6 [19:19:56]RAPDU: 90 00 [19:19:56]wFMCommunicate OK [19:19:56]wFMCommunicate request_size=4 [19:19:56]MH_SAM_APDU [19:19:56]CAPDU: 80 0D 03 02 [19:19:56]Write to MH i2c: E2 08 00 40 03 80 0D 03 02 00 00 00 00 BE [19:19:56]Write i2c OK [19:19:56]MH_I2C_Read... [19:19:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:19:56]Read from MH i2c: E2 [19:19:56]MH_I2C_Read... [19:19:56]Read from MH i2c: E2 0B 00 [19:19:56]MH_I2C_Read... [19:19:56]Read from MH i2c: E2 0B 00 40 03 00 7C EE E4 BD B3 25 DA 0B 90 00 87 [19:19:56]RAPDU: 7C EE E4 BD B3 25 DA 0B 90 00 [19:19:56]wFMCommunicate OK [19:19:56]SAM_PROTO_SignData done [19:19:56]FM_MakeSignedData done [19:19:56]CreateOFDProtocolMessage [19:19:56]wFMCommunicate request_size=4 [19:19:56]MH_SAM_APDU [19:19:56]CAPDU: 80 11 00 00 [19:19:56]Write to MH i2c: E2 08 00 41 03 80 11 00 00 00 00 00 00 BE [19:19:56]Write i2c OK [19:19:56]MH_I2C_Read... [19:19:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:19:56]Read from MH i2c: E2 [19:19:56]MH_I2C_Read... [19:19:56]Read from MH i2c: E2 17 00 [19:19:56]MH_I2C_Read... [19:19:56]Read from MH i2c: E2 17 00 41 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 14 [19:19:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:19:56]wFMCommunicate OK [19:19:56]CreateOFDProtocolMessage done [19:19:56]OFDSenderStorePacket 165426 [19:19:56]StoreOFDPacket docnum=165426 [19:19:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 85 16 07 01 D9 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 5B 76 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 32 86 02 00 35 04 06 00 D2 3D 87 A6 65 3E 7C EE E4 BD B3 25 DA 0B [19:19:56]CheckFolder [19:19:56]dirname=/storage/ofd_packets [19:19:56]CheckFolder done [19:19:56]ProducePacketName [19:19:56]name=ofd_packets/00165426 [19:19:56]NVStorageSaveData ofd_packets/00165426 [19:19:56]File name is /storage/ofd_packets/00165426 [19:19:56]Write 301 bytes [19:19:56]NVStorageSaveData done [19:19:56]OFDSenderStorePacket done [19:19:56]KKMCreateOFDPacket done [19:19:56]NVStorageSaveData kkm_last_timestamp [19:19:56]File name is /storage/kkm_last_timestamp [19:19:56]Write 4 bytes [19:19:56]NVStorageSaveData done [19:19:56]ExternCall_PrintAddStr [19:19:56]wPrintStart [19:19:56]Write to MH i2c: 01 00 00 42 03 45 [19:19:56]Write i2c OK [19:19:56]MH_I2C_Read... [19:19:56]Read from MH i2c: 01 [19:19:56]MH_I2C_Read... [19:19:56]Read from MH i2c: 01 07 00 [19:19:56]MH_I2C_Read... [19:19:56]Read from MH i2c: 01 07 00 42 03 00 00 00 00 00 FF 0F 5A [19:19:56]RasterBufferAndPrint [19:19:56]line Счет N : (1)459542 [19:19:56]line ИНН: 02508201610067 [19:19:56]line Контрольно-Кассовый Чек [19:19:56]line ПРОДАЖА [19:19:56]line ТРК (МРК, ГНК) : 12 [19:19:56]line Товар: 2710124130 [19:19:56]line Аи-92-К-5 [19:19:56]line 6.080 * 65.80 [19:19:56]line = 400.06 [19:19:56]line НДС 12% НСП 1% [19:19:56]line > о реализуемом товаре [19:19:56]line ОКРУГЛЕНИЕ: -0.06 [19:19:56]line ИТОГО: 400.00 [19:19:56]line Внесено: 400.00 [19:19:56]line СДАЧА: 0.00 [19:19:56]line НСП 1% : 3.54 [19:19:56]line НДС 12% : 42.48 [19:19:56]line Наличными: 400.00 [19:19:56]line Безнал.: 0.00 [19:19:56]line Место: АЗС № 72 "Партнер Нефть" [19:19:56]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:19:56]line СНО: Общий режим [19:19:56]line Чек 299 15.07.2024 19:19 [19:19:56]line Смена: 448 ФФД: 1.0 [19:19:56]line ЗНМ: 0300000160 [19:19:56]line РНМ: 0000000000090829 [19:19:56]line Версия ККМ: 001 [19:19:56]line ФМ: 0000000000874718 [19:19:56]line ФД: 165426 [19:19:56]line ФПД: 231161710667070 [19:19:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T191955&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165426&fm=231161710667070&tin=02508201610067®Number=0000000000090829&sum=40000 [19:19:56]OFD Sender: Processing packet 165426 [packets to send 106, broken 105] [19:19:56]ProducePacketName [19:19:56]name=ofd_packets/00165426 [19:19:56]OFD Sender: To server: pG, [19:19:56]CommunicateWithHost lk.salyk.kg:30040 [19:19:56]ConnectInit lk.salyk.kg [19:19:56]written 0, free lines is 4095 [19:19:56]Connected sock=10 [19:19: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 37 31 38 0F 01 00 00 85 16 07 01 D9 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 5B 76 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 32 86 02 00 35 04 06 00 D2 3D 87 A6 65 3E 7C EE E4 BD B3 25 DA 0B [19:19:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 D3 F4 47 00 9E 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 37 31 38 10 04 04 00 32 86 02 00 F4 03 04 00 E4 1C 95 66 B6 04 01 00 00 EF 46 6B 30 B8 C0 D2 DC [19:19:57]CommunicateWithHost err = 0 [19:19:57]CheckOFDResponse [19:19:57]1017 (14) - 77093643461234 [19:19:57]1041 (16) - 0000000000874718 [19:19:57]1040 (4) - 165426 [19:19:57]1012 (4) - 15.07.2024 12:58 [19:19:57]1206 (1) - 0 [19:19:57]OFD Sender: Remove packet 165426 [19:19:57]ProducePacketName [19:19:57]name=ofd_packets/00165426 [19:19:57]NVStorageDeleteData [19:19:57]Write to MH i2c: 01 00 00 6C 03 6F [19:19:57]Write i2c OK [19:19:57]MH_I2C_Read... [19:19:57]Read from MH i2c: 01 [19:19:57]MH_I2C_Read... [19:19:57]Read from MH i2c: 01 07 00 [19:19:57]MH_I2C_Read... [19:19:57]Read from MH i2c: 01 07 00 6C 03 00 00 00 00 00 FA 0C 7C [19:19:57]RasterBufferAndPrint [19:19:57]line [19:19:57]line [19:19:57]line [19:19:57]line [19:19:57]line [19:19:57]written 0, free lines is 3328 [19:19:57]MH_Cut [19:19:57]Write to MH i2c: D1 01 00 73 03 01 48 [19:19:57]Write i2c OK [19:19:57]MH_I2C_Read... [19:19:57]Read from MH i2c: D1 [19:19:57]MH_I2C_Read... [19:19:57]Read from MH i2c: D1 01 00 [19:19:57]MH_I2C_Read... [19:19:57]Read from MH i2c: D1 01 00 73 03 00 47 [19:19:57]Write to MH i2c: 01 00 00 74 03 77 [19:19:57]Write i2c OK [19:19:57]MH_I2C_Read... [19:19:57]OFD Sender: No OFD packet to send [19:19:58]*** Cut start [19:19:58]*** Partial cut [19:19:58]*** CUTSNS_PIN = 1 [19:19:58]*** CUTSNS_PIN = 0 [19:19:58]*** Brake cut motor [19:19:58]Read from MH i2c: 01 [19:19:58]MH_I2C_Read... [19:19:58]*** Stop cut motor [19:19:58]*** Cut end [19:19:58]Read from MH i2c: 01 07 00 [19:19:58]MH_I2C_Read... [19:19:58]Read from MH i2c: 01 07 00 74 03 00 00 00 00 00 FF 0F 8C [19:19:58]process_action close_receipt done [19:19:58]requested_data is exist [19:19:58]produce_requested_data [19:19:58]requested_item fm.sn is exist - process it [19:19:58]wFMCommunicate request_size=4 [19:19:58]MH_SAM_APDU [19:19:58]CAPDU: 80 11 00 00 [19:19:58]Write to MH i2c: E2 08 00 75 03 80 11 00 00 00 00 00 00 F2 [19:19:58]Write i2c OK [19:19:58]MH_I2C_Read... [19:19:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:19:58]Read from MH i2c: E2 [19:19:58]MH_I2C_Read... [19:19:58]Read from MH i2c: E2 17 00 [19:19:58]MH_I2C_Read... [19:19:58]Read from MH i2c: E2 17 00 75 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 48 [19:19:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:19:58]wFMCommunicate OK [19:19:58]requested_item fd.num is exist - process it [19:19:58]SAM_PROTO_GetFieldsCounters [19:19:58]wFMCommunicate request_size=4 [19:19:58]MH_SAM_APDU [19:19:58]CAPDU: 80 13 00 00 [19:19:58]Write to MH i2c: E2 08 00 76 03 80 13 00 00 00 00 00 00 F5 [19:19:58]Write i2c OK [19:19:58]MH_I2C_Read... [19:19:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:19:58]Read from MH i2c: E2 [19:19:58]MH_I2C_Read... [19:19:58]Read from MH i2c: E2 62 00 [19:19:58]MH_I2C_Read... [19:19:58]Read from MH i2c: E2 62 00 76 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 32 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 2B 01 00 00 5E 04 04 00 2B 01 00 00 57 04 04 00 2C 01 00 00 19 04 04 00 00 00 00 00 90 00 1B [19:19: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 32 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 2B 01 00 00 5E 04 04 00 2B 01 00 00 57 04 04 00 2C 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:19:58]wFMCommunicate OK [19:19:58]SAM_PROTO_GetFieldsCounters done [19:19:58]requested_item shift.num is exist - process it [19:19:58]requested_item shift.opened is exist - process it [19:19:58]req_shift_opened [19:19:58]FM_GetShiftState [19:19:58]SAM_PROTO_GetShiftState [19:19:58]wFMCommunicate request_size=4 [19:19:58]MH_SAM_APDU [19:19:58]CAPDU: 80 13 01 00 [19:19:58]Write to MH i2c: E2 08 00 77 03 80 13 01 00 00 00 00 00 F7 [19:19:58]Write i2c OK [19:19:58]MH_I2C_Read... [19:19:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:19:58]Read from MH i2c: E2 [19:19:58]MH_I2C_Read... [19:19:58]Read from MH i2c: E2 0E 00 [19:19:58]MH_I2C_Read... [19:19:58]Read from MH i2c: E2 0E 00 77 03 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 D0 [19:19:58]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [19:19:58]wFMCommunicate OK [19:19:58]SAM_PROTO_GetShiftState done [19:19:58]FM_GetShiftState done [19:19:58]req_shift_opened done [19:19:58]requested_item shift.open_date is exist - process it [19:19:58]req_shift_open_date [19:19:58]req_shift_open_date done [19:19:58]produce_requested_data done [19:19:58]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165426,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [19:19:58]process_action_free close_receipt [19:19:58]json_value_free [19:19:58]json_value_free done [19:19:58]process_json_proto returns [19:19:58]Send response to host [19:19:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165426,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [19:19:58]free response buf [19:19:58]execute_script done [19:19:58]execute_script returns [19:19:58]free content buf [19:19:58]Sock 7.Close socket [19:19:58]Sock 7.Thread stoped [19:20:02]OFD Sender: No OFD packet to send [19:20:07]OFD Sender: No OFD packet to send [19:20:12]OFD Sender: No OFD packet to send [19:20:17]OFD Sender: No OFD packet to send [19:20:22]OFD Sender: No OFD packet to send [19:20:27]OFD Sender: No OFD packet to send [19:20:32]OFD Sender: No OFD packet to send [19:20:37]OFD Sender: No OFD packet to send [19:20:42]OFD Sender: No OFD packet to send [19:20:47]OFD Sender: No OFD packet to send [19:20:52]OFD Sender: No OFD packet to send [19:20:57]OFD Sender: No OFD packet to send [19:21:02]OFD Sender: No OFD packet to send [19:21:07]OFD Sender: No OFD packet to send [19:21:12]OFD Sender: No OFD packet to send [19:21:17]accept exits with 9 [19:21:17]New connection [19:21:17]New thread 3067333988 created [19:21:17]Thread 3067190628 joined [19:21:17]Waiting for new connection... [19:21:17] Sock 9.Parse request [19:21:17]Sock 9.Check first char [19:21:17]Sock 9.First char is OK [19:21:17]request: POST /json_proto HTTP/1.0 [19:21:17]Method: POST [19:21:17]URL: /json_proto [19:21:17]Method is POST - this is cgi request [19:21:17]url: /json_proto [19:21:17]query_string will be loaded in cgi processing [19:21:17]execute_cgi json_proto POST (null) [19:21:17]execute_cgi path=json_proto method=POST [19:21:17]POST find Content-Length [19:21:17]Host: 172.17.56.4:8080 [19:21:17]Content-Length: 677 [19:21:17]Content-Type: application/json [19:21:17] [19:21:17]POST finish read [19:21:17]Found Content-Length = 677 [19:21:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459544", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.690, "sum" : 440.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 440.00, "total" : 440.00, "payments": [ { "type": 0, "sum" : 440.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:21:17]execute_script... [19:21:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459544", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.690, "sum" : 440.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 440.00, "total" : 440.00, "payments": [ { "type": 0, "sum" : 440.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:21:17]POST & json_proto [19:21:17]process_json_proto [19:21:17]json parsed OK: [19:21:17]protocol is kg_v1.0 [19:21:17]action value=close_receipt [19:21:17]process_action close_receipt [19:21:17]cmd_close_receipt [19:21:17]MH_GetDate [19:21:17]Write to MH i2c: F0 00 00 78 03 6A [19:21:17]Write i2c OK [19:21:17]MH_I2C_Read... [19:21:17]Read from MH i2c: F0 [19:21:17]MH_I2C_Read... [19:21:17]Read from MH i2c: F0 09 00 [19:21:17]MH_I2C_Read... [19:21:17]Read from MH i2c: F0 09 00 78 03 00 AE 76 95 66 C9 DC B2 64 4D [19:21:17]GetLastDocTimeStamp 1721071195 [19:21:17]current date 1721071278 [19:21:17]FM_GetShiftState [19:21:17]SAM_PROTO_GetShiftState [19:21:17]wFMCommunicate request_size=4 [19:21:17]MH_SAM_APDU [19:21:17]CAPDU: 80 13 01 00 [19:21:17]Write to MH i2c: E2 08 00 79 03 80 13 01 00 00 00 00 00 F9 [19:21:17]Write i2c OK [19:21:17]MH_I2C_Read... [19:21:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:17]Read from MH i2c: E2 [19:21:17]MH_I2C_Read... [19:21:17]Read from MH i2c: E2 0E 00 [19:21:17]MH_I2C_Read... [19:21:17]Read from MH i2c: E2 0E 00 79 03 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 D2 [19:21:17]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [19:21:17]wFMCommunicate OK [19:21:17]SAM_PROTO_GetShiftState done [19:21:17]FM_GetShiftState done [19:21:17]opened in 1721003876 [19:21:17]opened+sec_in_day 1721090276 [19:21:17]quantity*price = 44020 [19:21:17]sum+1 = 44021 [19:21:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 440.00 Внесено: 440.00 СДАЧА: 0.00 НСП 1% : 3.90 НДС 12% : 46.75 Наличными: 440.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 300 15.07.2024 19:21 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165427 ФПД: 95159536322690 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T192118&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165427&fm=95159536322690&tin=02508201610067®Number=0000000000090829&sum=44000 [19:21:18]StoreToDocumentArchive [19:21:18]shift 448 fd 165427 [19:21:18]save to /storage/0448/doc_00165427 [19:21:18]save last doc name /storage/0448/doc_00165427 to /storage/kkm_last_doc_name [19:21:18]save OK [19:21:18]Clear old archive folders... [19:21:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:21:18]tlvbuf is 01B403C0 [19:21:18]SAM_PROTO_ClearQueue [19:21:18]wFMCommunicate request_size=4 [19:21:18]MH_SAM_APDU [19:21:18]CAPDU: 80 09 00 00 [19:21:18]Write to MH i2c: E2 08 00 86 03 80 09 00 00 00 00 00 00 FB [19:21:18]Write i2c OK [19:21:18]MH_I2C_Read... [19:21:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:21:18]Read from MH i2c: E2 [19:21:18]MH_I2C_Read... [19:21:18]Read from MH i2c: E2 03 00 [19:21:18]MH_I2C_Read... [19:21:18]Read from MH i2c: E2 03 00 86 03 00 90 00 FD [19:21:18]RAPDU: 90 00 [19:21:18]wFMCommunicate OK [19:21:18]SAM_PROTO_ClearQueue done [19:21:18]KKMCreateOFDPacket [19:21:18]OFDProtocolAddRootSTLVToBuf [19:21:18]FM_MakeSignedData [19:21:18]FM_MakeSignedData [19:21:18]SAM_PROTO_SignData [19:21:18]wFMCommunicate request_size=4 [19:21:18]MH_SAM_APDU [19:21:18]CAPDU: 80 0D 01 02 [19:21:18]Write to MH i2c: E2 08 00 87 03 80 0D 01 02 00 00 00 00 03 [19:21:18]Write i2c OK [19:21:18]MH_I2C_Read... [19:21:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:21:18]Read from MH i2c: E2 [19:21:18]MH_I2C_Read... [19:21:18]Read from MH i2c: E2 03 00 [19:21:18]MH_I2C_Read... [19:21:18]Read from MH i2c: E2 03 00 87 03 00 90 00 FE [19:21:18]RAPDU: 90 00 [19:21:18]wFMCommunicate OK [19:21:18]wFMCommunicate request_size=255 [19:21:18]MH_SAM_APDU [19:21:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 1A 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 F4 AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 12 00 00 00 00 07 04 06 00 E0 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 AE 76 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 33 86 02 00 35 04 06 00 56 [19:21:18]Write to MH i2c: E2 02 01 88 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 1A 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 F4 AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 12 00 00 00 00 07 04 06 00 E0 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 AE 76 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 33 86 02 00 35 04 06 00 56 00 00 CB [19:21:18]Write i2c OK [19:21:18]MH_I2C_Read... [19:21:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:19]Read from MH i2c: E2 [19:21:19]MH_I2C_Read... [19:21:19]Read from MH i2c: E2 03 00 [19:21:19]MH_I2C_Read... [19:21:19]Read from MH i2c: E2 03 00 88 03 00 90 00 FF [19:21:19]RAPDU: 90 00 [19:21:19]wFMCommunicate OK [19:21:19]wFMCommunicate request_size=10 [19:21:19]MH_SAM_APDU [19:21:19]CAPDU: 80 0D 02 02 05 8C 0E 5C 08 82 [19:21:19]Write to MH i2c: E2 0D 00 89 03 80 0D 02 02 05 00 8C 0E 5C 08 82 00 00 90 [19:21:19]Write i2c OK [19:21:19]MH_I2C_Read... [19:21:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:19]Read from MH i2c: E2 [19:21:19]MH_I2C_Read... [19:21:19]Read from MH i2c: E2 03 00 [19:21:19]MH_I2C_Read... [19:21:19]Read from MH i2c: E2 03 00 89 03 00 90 00 00 [19:21:19]RAPDU: 90 00 [19:21:19]wFMCommunicate OK [19:21:19]wFMCommunicate request_size=4 [19:21:19]MH_SAM_APDU [19:21:19]CAPDU: 80 0D 03 02 [19:21:19]Write to MH i2c: E2 08 00 8A 03 80 0D 03 02 00 00 00 00 08 [19:21:19]Write i2c OK [19:21:19]MH_I2C_Read... [19:21:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:21:19]Read from MH i2c: E2 [19:21:19]MH_I2C_Read... [19:21:19]Read from MH i2c: E2 0B 00 [19:21:19]MH_I2C_Read... [19:21:19]Read from MH i2c: E2 0B 00 8A 03 00 D4 C7 FC DE 53 2C D3 E0 90 00 B0 [19:21:19]RAPDU: D4 C7 FC DE 53 2C D3 E0 90 00 [19:21:19]wFMCommunicate OK [19:21:19]SAM_PROTO_SignData done [19:21:19]FM_MakeSignedData done [19:21:19]CreateOFDProtocolMessage [19:21:19]wFMCommunicate request_size=4 [19:21:19]MH_SAM_APDU [19:21:19]CAPDU: 80 11 00 00 [19:21:19]Write to MH i2c: E2 08 00 8B 03 80 11 00 00 00 00 00 00 08 [19:21:19]Write i2c OK [19:21:19]MH_I2C_Read... [19:21:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:19]Read from MH i2c: E2 [19:21:19]MH_I2C_Read... [19:21:19]Read from MH i2c: E2 17 00 [19:21:19]MH_I2C_Read... [19:21:19]Read from MH i2c: E2 17 00 8B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5E [19:21:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:21:19]wFMCommunicate OK [19:21:19]CreateOFDProtocolMessage done [19:21:19]OFDSenderStorePacket 165427 [19:21:19]StoreOFDPacket docnum=165427 [19:21:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 6F BB 07 01 50 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 22 1A 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 F4 AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 12 00 00 00 00 07 04 06 00 E0 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 AE 76 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 33 86 02 00 35 04 06 00 56 8C 0E 5C 08 82 D4 C7 FC DE 53 2C D3 E0 [19:21:19]CheckFolder [19:21:19]dirname=/storage/ofd_packets [19:21:19]CheckFolder done [19:21:19]ProducePacketName [19:21:19]name=ofd_packets/00165427 [19:21:19]NVStorageSaveData ofd_packets/00165427 [19:21:19]File name is /storage/ofd_packets/00165427 [19:21:19]Write 301 bytes [19:21:19]NVStorageSaveData done [19:21:19]OFDSenderStorePacket done [19:21:19]KKMCreateOFDPacket done [19:21:19]NVStorageSaveData kkm_last_timestamp [19:21:19]File name is /storage/kkm_last_timestamp [19:21:19]Write 4 bytes [19:21:19]NVStorageSaveData done [19:21:19]ExternCall_PrintAddStr [19:21:19]wPrintStart [19:21:19]Write to MH i2c: 01 00 00 8C 03 8F [19:21:19]Write i2c OK [19:21:19]MH_I2C_Read... [19:21:19]Read from MH i2c: 01 [19:21:19]MH_I2C_Read... [19:21:19]Read from MH i2c: 01 07 00 [19:21:19]MH_I2C_Read... [19:21:19]Read from MH i2c: 01 07 00 8C 03 00 00 00 00 00 FF 0F A4 [19:21:19]RasterBufferAndPrint [19:21:19]line Счет N : (1)459544 [19:21:19]line ИНН: 02508201610067 [19:21:19]line Контрольно-Кассовый Чек [19:21:19]line ПРОДАЖА [19:21:19]line ТРК (МРК, ГНК) : 22 [19:21:19]line Товар: 2710124130 [19:21:19]line Аи-92-К-5 [19:21:19]line 6.690 * 65.80 [19:21:19]line = 440.20 [19:21:19]line НДС 12% НСП 1% [19:21:19]line > о реализуемом товаре [19:21:19]line ОКРУГЛЕНИЕ: -0.20 [19:21:19]line ИТОГО: 440.00 [19:21:19]line Внесено: 440.00 [19:21:19]line СДАЧА: 0.00 [19:21:19]line НСП 1% : 3.90 [19:21:19]line НДС 12% : 46.75 [19:21:19]line Наличными: 440.00 [19:21:19]line Безнал.: 0.00 [19:21:19]line Место: АЗС № 72 "Партнер Нефть" [19:21:19]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:21:19]line СНО: Общий режим [19:21:19]line Чек 300 15.07.2024 19:21 [19:21:19]line Смена: 448 ФФД: 1.0 [19:21:19]line ЗНМ: 0300000160 [19:21:19]line РНМ: 0000000000090829 [19:21:19]line Версия ККМ: 001 [19:21:19]line ФМ: 0000000000874718 [19:21:19]line ФД: 165427 [19:21:19]line ФПД: 95159536322690 [19:21:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T192118&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165427&fm=95159536322690&tin=02508201610067®Number=0000000000090829&sum=44000 [19:21:19]OFD Sender: Processing packet 165427 [packets to send 106, broken 105] [19:21:19]ProducePacketName [19:21:19]name=ofd_packets/00165427 [19:21:19]OFD Sender: To server: pG, [19:21:19]CommunicateWithHost lk.salyk.kg:30040 [19:21:19]ConnectInit lk.salyk.kg [19:21:19]written 0, free lines is 4095 [19:21:19]Connected sock=10 [19:21:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 6F BB 07 01 50 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 22 1A 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 F4 AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 12 00 00 00 00 07 04 06 00 E0 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 AE 76 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 33 86 02 00 35 04 06 00 56 8C 0E 5C 08 82 D4 C7 FC DE 53 2C D3 E0 [19:21:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 17 71 47 00 33 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 33 86 02 00 F4 03 04 00 37 1D 95 66 B6 04 01 00 00 D9 62 FD F0 22 57 F5 FE [19:21:19]CommunicateWithHost err = 0 [19:21:19]CheckOFDResponse [19:21:19]1017 (14) - 77093643461234 [19:21:19]1041 (16) - 0000000000874718 [19:21:19]1040 (4) - 165427 [19:21:19]1012 (4) - 15.07.2024 12:59 [19:21:19]1206 (1) - 0 [19:21:19]OFD Sender: Remove packet 165427 [19:21:19]ProducePacketName [19:21:19]name=ofd_packets/00165427 [19:21:19]NVStorageDeleteData [19:21:20]Write to MH i2c: 01 00 00 B6 03 B9 [19:21:20]Write i2c OK [19:21:20]MH_I2C_Read... [19:21:20]Read from MH i2c: 01 [19:21:20]MH_I2C_Read... [19:21:20]Read from MH i2c: 01 07 00 [19:21:20]MH_I2C_Read... [19:21:20]Read from MH i2c: 01 07 00 B6 03 00 00 00 00 00 05 0D D2 [19:21:20]RasterBufferAndPrint [19:21:20]line [19:21:20]line [19:21:20]line [19:21:20]line [19:21:20]line [19:21:20]written 0, free lines is 3339 [19:21:20]MH_Cut [19:21:20]Write to MH i2c: D1 01 00 BD 03 01 92 [19:21:20]Write i2c OK [19:21:20]MH_I2C_Read... [19:21:20]Read from MH i2c: D1 [19:21:20]MH_I2C_Read... [19:21:20]Read from MH i2c: D1 01 00 [19:21:20]MH_I2C_Read... [19:21:20]Read from MH i2c: D1 01 00 BD 03 00 91 [19:21:20]Write to MH i2c: 01 00 00 BE 03 C1 [19:21:20]Write i2c OK [19:21:20]MH_I2C_Read... [19:21:20]OFD Sender: No OFD packet to send [19:21:20]*** Cut start [19:21:20]*** Partial cut [19:21:20]*** CUTSNS_PIN = 1 [19:21:20]*** CUTSNS_PIN = 0 [19:21:20]*** Brake cut motor [19:21:21]Read from MH i2c: 01 [19:21:21]MH_I2C_Read... [19:21:21]*** Stop cut motor [19:21:21]*** Cut end [19:21:21]Read from MH i2c: 01 07 00 [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: 01 07 00 BE 03 00 00 00 00 00 FF 0F D6 [19:21:21]process_action close_receipt done [19:21:21]requested_data is exist [19:21:21]produce_requested_data [19:21:21]requested_item fm.sn is exist - process it [19:21:21]wFMCommunicate request_size=4 [19:21:21]MH_SAM_APDU [19:21:21]CAPDU: 80 11 00 00 [19:21:21]Write to MH i2c: E2 08 00 BF 03 80 11 00 00 00 00 00 00 3C [19:21:21]Write i2c OK [19:21:21]MH_I2C_Read... [19:21:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:21]Read from MH i2c: E2 [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: E2 17 00 [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: E2 17 00 BF 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 92 [19:21:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:21:21]wFMCommunicate OK [19:21:21]requested_item fd.num is exist - process it [19:21:21]SAM_PROTO_GetFieldsCounters [19:21:21]wFMCommunicate request_size=4 [19:21:21]MH_SAM_APDU [19:21:21]CAPDU: 80 13 00 00 [19:21:21]Write to MH i2c: E2 08 00 C0 03 80 13 00 00 00 00 00 00 3F [19:21:21]Write i2c OK [19:21:21]MH_I2C_Read... [19:21:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:21:21]Read from MH i2c: E2 [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: E2 62 00 [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: E2 62 00 C0 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 33 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 69 [19:21:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 33 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:21:21]wFMCommunicate OK [19:21:21]SAM_PROTO_GetFieldsCounters done [19:21:21]requested_item shift.num is exist - process it [19:21:21]requested_item shift.opened is exist - process it [19:21:21]req_shift_opened [19:21:21]FM_GetShiftState [19:21:21]SAM_PROTO_GetShiftState [19:21:21]wFMCommunicate request_size=4 [19:21:21]MH_SAM_APDU [19:21:21]CAPDU: 80 13 01 00 [19:21:21]Write to MH i2c: E2 08 00 C1 03 80 13 01 00 00 00 00 00 41 [19:21:21]Write i2c OK [19:21:21]MH_I2C_Read... [19:21:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:21]Read from MH i2c: E2 [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: E2 0E 00 [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: E2 0E 00 C1 03 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 1A [19:21:21]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [19:21:21]wFMCommunicate OK [19:21:21]SAM_PROTO_GetShiftState done [19:21:21]FM_GetShiftState done [19:21:21]req_shift_opened done [19:21:21]requested_item shift.open_date is exist - process it [19:21:21]req_shift_open_date [19:21:21]req_shift_open_date done [19:21:21]produce_requested_data done [19:21:21]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165427,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [19:21:21]process_action_free close_receipt [19:21:21]json_value_free [19:21:21]json_value_free done [19:21:21]process_json_proto returns [19:21:21]Send response to host [19:21:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165427,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [19:21:21]free response buf [19:21:21]execute_script done [19:21:21]execute_script returns [19:21:21]free content buf [19:21:21]Sock 9.Close socket [19:21:21]Sock 9.Thread stoped [19:21:25]OFD Sender: No OFD packet to send [19:21:30]OFD Sender: No OFD packet to send [19:21:35]OFD Sender: No OFD packet to send [19:21:40]OFD Sender: No OFD packet to send [19:21:45]OFD Sender: No OFD packet to send [19:21:50]OFD Sender: No OFD packet to send [19:21:55]OFD Sender: No OFD packet to send [19:22:00]OFD Sender: No OFD packet to send [19:22:05]OFD Sender: No OFD packet to send [19:22:10]accept exits with 7 [19:22:10]New connection [19:22:10]New thread 3067190628 created [19:22:10]Thread 3067333988 joined [19:22:10]Waiting for new connection... [19:22:10]OFD Sender: No OFD packet to send [19:22:10] Sock 7.Parse request [19:22:10]Sock 7.Check first char [19:22:10]Sock 7.First char is OK [19:22:10]request: POST /json_proto HTTP/1.0 [19:22:10]Method: POST [19:22:10]URL: /json_proto [19:22:10]Method is POST - this is cgi request [19:22:10]url: /json_proto [19:22:10]query_string will be loaded in cgi processing [19:22:10]execute_cgi json_proto POST (null) [19:22:10]execute_cgi path=json_proto method=POST [19:22:10]POST find Content-Length [19:22:10]Host: 172.17.56.4:8080 [19:22:10]Content-Length: 679 [19:22:10]Content-Type: application/json [19:22:10] [19:22:10]POST finish read [19:22:10]Found Content-Length = 679 [19:22:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459543", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 25.000, "sum" : 1797.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1797.00, "total" : 1797.00, "payments": [ { "type": 0, "sum" : 1797.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:22:10]execute_script... [19:22: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)459543", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 25.000, "sum" : 1797.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1797.00, "total" : 1797.00, "payments": [ { "type": 0, "sum" : 1797.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:22:10]POST & json_proto [19:22:10]process_json_proto [19:22:10]json parsed OK: [19:22:10]protocol is kg_v1.0 [19:22:10]action value=close_receipt [19:22:10]process_action close_receipt [19:22:10]cmd_close_receipt [19:22:10]MH_GetDate [19:22:10]Write to MH i2c: F0 00 00 C2 03 B4 [19:22:10]Write i2c OK [19:22:10]MH_I2C_Read... [19:22:10]Read from MH i2c: F0 [19:22:10]MH_I2C_Read... [19:22:10]Read from MH i2c: F0 09 00 [19:22:10]MH_I2C_Read... [19:22:10]Read from MH i2c: F0 09 00 C2 03 00 E3 76 95 66 C9 DC B2 64 CC [19:22:10]GetLastDocTimeStamp 1721071278 [19:22:10]current date 1721071331 [19:22:10]FM_GetShiftState [19:22:10]SAM_PROTO_GetShiftState [19:22:10]wFMCommunicate request_size=4 [19:22:10]MH_SAM_APDU [19:22:10]CAPDU: 80 13 01 00 [19:22:10]Write to MH i2c: E2 08 00 C3 03 80 13 01 00 00 00 00 00 43 [19:22:10]Write i2c OK [19:22:10]MH_I2C_Read... [19:22:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:10]Read from MH i2c: E2 [19:22:10]MH_I2C_Read... [19:22:10]Read from MH i2c: E2 0E 00 [19:22:10]MH_I2C_Read... [19:22:10]Read from MH i2c: E2 0E 00 C3 03 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 1C [19:22:10]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [19:22:10]wFMCommunicate OK [19:22:10]SAM_PROTO_GetShiftState done [19:22:10]FM_GetShiftState done [19:22:10]opened in 1721003876 [19:22:10]opened+sec_in_day 1721090276 [19:22:10]quantity*price = 179750 [19:22:10]sum+1 = 179751 [19:22:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 1797.00 Внесено: 1797.00 СДАЧА: 0.00 НСП 1% : 15.91 НДС 12% : 190.88 Наличными: 1797.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 301 15.07.2024 19:22 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165428 ФПД: 248684538683002 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T192211&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165428&fm=248684538683002&tin=02508201610067®Number=0000000000090829&sum=179700 [19:22:11]StoreToDocumentArchive [19:22:11]shift 448 fd 165428 [19:22:11]save to /storage/0448/doc_00165428 [19:22:11]save last doc name /storage/0448/doc_00165428 to /storage/kkm_last_doc_name [19:22:11]save OK [19:22:11]Clear old archive folders... [19:22:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:22:11]tlvbuf is 01B91BB0 [19:22:11]SAM_PROTO_ClearQueue [19:22:11]wFMCommunicate request_size=4 [19:22:11]MH_SAM_APDU [19:22:11]CAPDU: 80 09 00 00 [19:22:11]Write to MH i2c: E2 08 00 D0 03 80 09 00 00 00 00 00 00 45 [19:22:11]Write i2c OK [19:22:11]MH_I2C_Read... [19:22:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:22:11]Read from MH i2c: E2 [19:22:11]MH_I2C_Read... [19:22:11]Read from MH i2c: E2 03 00 [19:22:11]MH_I2C_Read... [19:22:11]Read from MH i2c: E2 03 00 D0 03 00 90 00 47 [19:22:11]RAPDU: 90 00 [19:22:11]wFMCommunicate OK [19:22:11]SAM_PROTO_ClearQueue done [19:22:11]KKMCreateOFDPacket [19:22:11]OFDProtocolAddRootSTLVToBuf [19:22:11]FM_MakeSignedData [19:22:11]FM_MakeSignedData [19:22:11]SAM_PROTO_SignData [19:22:11]wFMCommunicate request_size=4 [19:22:11]MH_SAM_APDU [19:22:11]CAPDU: 80 0D 01 02 [19:22:11]Write to MH i2c: E2 08 00 D1 03 80 0D 01 02 00 00 00 00 4D [19:22:11]Write i2c OK [19:22:11]MH_I2C_Read... [19:22:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:22:11]Read from MH i2c: E2 [19:22:11]MH_I2C_Read... [19:22:11]Read from MH i2c: E2 03 00 [19:22:11]MH_I2C_Read... [19:22:11]Read from MH i2c: E2 03 00 D1 03 00 90 00 48 [19:22:11]RAPDU: 90 00 [19:22:11]wFMCommunicate OK [19:22:11]wFMCommunicate request_size=255 [19:22:11]MH_SAM_APDU [19:22:11]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 26 BE 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 BD 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 4A 00 00 00 00 07 04 06 00 F4 BD 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 E3 76 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 34 86 02 00 35 04 06 00 E2 2D 61 96 [19:22:11]Write to MH i2c: E2 02 01 D2 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 26 BE 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 BD 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 4A 00 00 00 00 07 04 06 00 F4 BD 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 E3 76 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 34 86 02 00 35 04 06 00 E2 2D 61 96 00 00 53 [19:22:11]Write i2c OK [19:22:11]MH_I2C_Read... [19:22:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:12]Read from MH i2c: E2 [19:22:12]MH_I2C_Read... [19:22:12]Read from MH i2c: E2 03 00 [19:22:12]MH_I2C_Read... [19:22:12]Read from MH i2c: E2 03 00 D2 03 00 90 00 49 [19:22:12]RAPDU: 90 00 [19:22:12]wFMCommunicate OK [19:22:12]wFMCommunicate request_size=7 [19:22:12]MH_SAM_APDU [19:22:12]CAPDU: 80 0D 02 02 02 DE 7A [19:22:12]Write to MH i2c: E2 0A 00 D3 03 80 0D 02 02 02 00 DE 7A 00 00 AC [19:22:12]Write i2c OK [19:22:12]MH_I2C_Read... [19:22:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:12]Read from MH i2c: E2 [19:22:12]MH_I2C_Read... [19:22:12]Read from MH i2c: E2 03 00 [19:22:12]MH_I2C_Read... [19:22:12]Read from MH i2c: E2 03 00 D3 03 00 90 00 4A [19:22:12]RAPDU: 90 00 [19:22:12]wFMCommunicate OK [19:22:12]wFMCommunicate request_size=4 [19:22:12]MH_SAM_APDU [19:22:12]CAPDU: 80 0D 03 02 [19:22:12]Write to MH i2c: E2 08 00 D4 03 80 0D 03 02 00 00 00 00 52 [19:22:12]Write i2c OK [19:22:12]MH_I2C_Read... [19:22:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:22:12]Read from MH i2c: E2 [19:22:12]MH_I2C_Read... [19:22:12]Read from MH i2c: E2 0B 00 [19:22:12]MH_I2C_Read... [19:22:12]Read from MH i2c: E2 0B 00 D4 03 00 37 84 ED D9 13 2E 8E A4 90 00 47 [19:22:12]RAPDU: 37 84 ED D9 13 2E 8E A4 90 00 [19:22:12]wFMCommunicate OK [19:22:12]SAM_PROTO_SignData done [19:22:12]FM_MakeSignedData done [19:22:12]CreateOFDProtocolMessage [19:22:12]wFMCommunicate request_size=4 [19:22:12]MH_SAM_APDU [19:22:12]CAPDU: 80 11 00 00 [19:22:12]Write to MH i2c: E2 08 00 D5 03 80 11 00 00 00 00 00 00 52 [19:22:12]Write i2c OK [19:22:12]MH_I2C_Read... [19:22:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:12]Read from MH i2c: E2 [19:22:12]MH_I2C_Read... [19:22:12]Read from MH i2c: E2 17 00 [19:22:12]MH_I2C_Read... [19:22:12]Read from MH i2c: E2 17 00 D5 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A8 [19:22:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:22:12]wFMCommunicate OK [19:22:12]CreateOFDProtocolMessage done [19:22:12]OFDSenderStorePacket 165428 [19:22:12]StoreOFDPacket docnum=165428 [19:22:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 F5 77 04 01 75 F9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 26 BE 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 BD 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 4A 00 00 00 00 07 04 06 00 F4 BD 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 E3 76 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 34 86 02 00 35 04 06 00 E2 2D 61 96 DE 7A 37 84 ED D9 13 2E 8E A4 [19:22:12]CheckFolder [19:22:12]dirname=/storage/ofd_packets [19:22:12]CheckFolder done [19:22:12]ProducePacketName [19:22:12]name=ofd_packets/00165428 [19:22:12]NVStorageSaveData ofd_packets/00165428 [19:22:12]File name is /storage/ofd_packets/00165428 [19:22:12]Write 298 bytes [19:22:12]NVStorageSaveData done [19:22:12]OFDSenderStorePacket done [19:22:12]KKMCreateOFDPacket done [19:22:12]NVStorageSaveData kkm_last_timestamp [19:22:12]File name is /storage/kkm_last_timestamp [19:22:12]Write 4 bytes [19:22:12]NVStorageSaveData done [19:22:12]ExternCall_PrintAddStr [19:22:12]wPrintStart [19:22:12]Write to MH i2c: 01 00 00 D6 03 D9 [19:22:12]Write i2c OK [19:22:12]MH_I2C_Read... [19:22:12]Read from MH i2c: 01 [19:22:12]MH_I2C_Read... [19:22:12]Read from MH i2c: 01 07 00 [19:22:12]MH_I2C_Read... [19:22:12]Read from MH i2c: 01 07 00 D6 03 00 00 00 00 00 FF 0F EE [19:22:12]RasterBufferAndPrint [19:22:12]line Счет N : (1)459543 [19:22:12]line ИНН: 02508201610067 [19:22:12]line Контрольно-Кассовый Чек [19:22:12]line ПРОДАЖА [19:22:12]line ТРК (МРК, ГНК) : 11 [19:22:12]line Товар: 2710194210 [19:22:12]line ДТ-К-5 [19:22:12]line 25.000 * 71.90 [19:22:12]line = 1797.50 [19:22:12]line НДС 12% НСП 1% [19:22:12]line > о реализуемом товаре [19:22:12]line ОКРУГЛЕНИЕ: -0.50 [19:22:12]line ИТОГО: 1797.00 [19:22:12]line Внесено: 1797.00 [19:22:12]line СДАЧА: 0.00 [19:22:12]line НСП 1% : 15.91 [19:22:12]line НДС 12% : 190.88 [19:22:12]line Наличными: 1797.00 [19:22:12]line Безнал.: 0.00 [19:22:12]line Место: АЗС № 72 "Партнер Нефть" [19:22:12]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:22:12]line СНО: Общий режим [19:22:12]line Чек 301 15.07.2024 19:22 [19:22:12]line Смена: 448 ФФД: 1.0 [19:22:12]line ЗНМ: 0300000160 [19:22:12]line РНМ: 0000000000090829 [19:22:12]line Версия ККМ: 001 [19:22:12]line ФМ: 0000000000874718 [19:22:12]line ФД: 165428 [19:22:12]line ФПД: 248684538683002 [19:22:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T192211&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165428&fm=248684538683002&tin=02508201610067®Number=0000000000090829&sum=179700 [19:22:12]OFD Sender: Processing packet 165428 [packets to send 106, broken 105] [19:22:12]ProducePacketName [19:22:12]name=ofd_packets/00165428 [19:22:12]OFD Sender: To server: pG, [19:22:12]CommunicateWithHost lk.salyk.kg:30040 [19:22:12]ConnectInit lk.salyk.kg [19:22:12]written 0, free lines is 4095 [19:22:12]Connected sock=10 [19:22: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 37 31 38 0C 01 00 00 F5 77 04 01 75 F9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 26 BE 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 BD 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 4A 00 00 00 00 07 04 06 00 F4 BD 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 E3 76 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 34 86 02 00 35 04 06 00 E2 2D 61 96 DE 7A 37 84 ED D9 13 2E 8E A4 [19:22:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 95 A3 47 00 EE 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 34 86 02 00 F4 03 04 00 6C 1D 95 66 B6 04 01 00 00 B2 5C C6 E6 A9 FE 53 65 [19:22:12]CommunicateWithHost err = 0 [19:22:12]CheckOFDResponse [19:22:12]1017 (14) - 77093643461234 [19:22:12]1041 (16) - 0000000000874718 [19:22:12]1040 (4) - 165428 [19:22:12]1012 (4) - 15.07.2024 13:00 [19:22:12]1206 (1) - 0 [19:22:12]OFD Sender: Remove packet 165428 [19:22:12]ProducePacketName [19:22:12]name=ofd_packets/00165428 [19:22:12]NVStorageDeleteData [19:22:13]Write to MH i2c: 01 00 00 00 04 04 [19:22:13]Write i2c OK [19:22:13]MH_I2C_Read... [19:22:13]Read from MH i2c: 01 [19:22:13]MH_I2C_Read... [19:22:13]Read from MH i2c: 01 07 00 [19:22:13]MH_I2C_Read... [19:22:13]Read from MH i2c: 01 07 00 00 04 00 00 00 00 00 02 0D 1A [19:22:13]RasterBufferAndPrint [19:22:13]line [19:22:13]line [19:22:13]line [19:22:13]line [19:22:13]line [19:22:13]written 0, free lines is 3336 [19:22:13]MH_Cut [19:22:13]Write to MH i2c: D1 01 00 07 04 01 DD [19:22:13]Write i2c OK [19:22:13]MH_I2C_Read... [19:22:13]Read from MH i2c: D1 [19:22:13]MH_I2C_Read... [19:22:13]Read from MH i2c: D1 01 00 [19:22:13]MH_I2C_Read... [19:22:13]Read from MH i2c: D1 01 00 07 04 00 DC [19:22:13]Write to MH i2c: 01 00 00 08 04 0C [19:22:13]Write i2c OK [19:22:13]MH_I2C_Read... [19:22:13]OFD Sender: No OFD packet to send [19:22:13]*** Cut start [19:22:13]*** Partial cut [19:22:13]*** CUTSNS_PIN = 1 [19:22:13]*** CUTSNS_PIN = 0 [19:22:13]*** Brake cut motor [19:22:14]Read from MH i2c: 01 [19:22:14]MH_I2C_Read... [19:22:14]*** Stop cut motor [19:22:14]*** Cut end [19:22:14]Read from MH i2c: 01 07 00 [19:22:14]MH_I2C_Read... [19:22:14]Read from MH i2c: 01 07 00 08 04 00 00 00 00 00 FF 0F 21 [19:22:14]process_action close_receipt done [19:22:14]requested_data is exist [19:22:14]produce_requested_data [19:22:14]requested_item fm.sn is exist - process it [19:22:14]wFMCommunicate request_size=4 [19:22:14]MH_SAM_APDU [19:22:14]CAPDU: 80 11 00 00 [19:22:14]Write to MH i2c: E2 08 00 09 04 80 11 00 00 00 00 00 00 87 [19:22:14]Write i2c OK [19:22:14]MH_I2C_Read... [19:22:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:14]Read from MH i2c: E2 [19:22:14]MH_I2C_Read... [19:22:14]Read from MH i2c: E2 17 00 [19:22:14]MH_I2C_Read... [19:22:14]Read from MH i2c: E2 17 00 09 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DD [19:22:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:22:14]wFMCommunicate OK [19:22:14]requested_item fd.num is exist - process it [19:22:14]SAM_PROTO_GetFieldsCounters [19:22:14]wFMCommunicate request_size=4 [19:22:14]MH_SAM_APDU [19:22:14]CAPDU: 80 13 00 00 [19:22:14]Write to MH i2c: E2 08 00 0A 04 80 13 00 00 00 00 00 00 8A [19:22:14]Write i2c OK [19:22:14]MH_I2C_Read... [19:22:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:22:14]Read from MH i2c: E2 [19:22:14]MH_I2C_Read... [19:22:14]Read from MH i2c: E2 62 00 [19:22:14]MH_I2C_Read... [19:22:14]Read from MH i2c: E2 62 00 0A 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 34 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 2D 01 00 00 5E 04 04 00 2D 01 00 00 57 04 04 00 2E 01 00 00 19 04 04 00 00 00 00 00 90 00 B8 [19:22: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 34 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 2D 01 00 00 5E 04 04 00 2D 01 00 00 57 04 04 00 2E 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:22:14]wFMCommunicate OK [19:22:14]SAM_PROTO_GetFieldsCounters done [19:22:14]requested_item shift.num is exist - process it [19:22:14]requested_item shift.opened is exist - process it [19:22:14]req_shift_opened [19:22:14]FM_GetShiftState [19:22:14]SAM_PROTO_GetShiftState [19:22:14]wFMCommunicate request_size=4 [19:22:14]MH_SAM_APDU [19:22:14]CAPDU: 80 13 01 00 [19:22:14]Write to MH i2c: E2 08 00 0B 04 80 13 01 00 00 00 00 00 8C [19:22:14]Write i2c OK [19:22:14]MH_I2C_Read... [19:22:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:14]Read from MH i2c: E2 [19:22:14]MH_I2C_Read... [19:22:14]Read from MH i2c: E2 0E 00 [19:22:14]MH_I2C_Read... [19:22:14]Read from MH i2c: E2 0E 00 0B 04 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 65 [19:22:14]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [19:22:14]wFMCommunicate OK [19:22:14]SAM_PROTO_GetShiftState done [19:22:14]FM_GetShiftState done [19:22:14]req_shift_opened done [19:22:14]requested_item shift.open_date is exist - process it [19:22:14]req_shift_open_date [19:22:14]req_shift_open_date done [19:22:14]produce_requested_data done [19:22:14]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165428,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [19:22:14]process_action_free close_receipt [19:22:14]json_value_free [19:22:14]json_value_free done [19:22:14]process_json_proto returns [19:22:14]Send response to host [19:22:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165428,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [19:22:14]free response buf [19:22:14]execute_script done [19:22:14]execute_script returns [19:22:14]free content buf [19:22:14]Sock 7.Close socket [19:22:14]Sock 7.Thread stoped [19:22:18]OFD Sender: No OFD packet to send [19:22:23]OFD Sender: No OFD packet to send [19:22:28]OFD Sender: No OFD packet to send [19:22:33]OFD Sender: No OFD packet to send [19:22:38]OFD Sender: No OFD packet to send [19:22:39]accept exits with 9 [19:22:39]New connection [19:22:39]New thread 3067333988 created [19:22:39]Thread 3067190628 joined [19:22:39]Waiting for new connection... [19:22:39] Sock 9.Parse request [19:22:39]Sock 9.Check first char [19:22:39]Sock 9.First char is OK [19:22:39]request: POST /json_proto HTTP/1.0 [19:22:39]Method: POST [19:22:39]URL: /json_proto [19:22:39]Method is POST - this is cgi request [19:22:39]url: /json_proto [19:22:39]query_string will be loaded in cgi processing [19:22:39]execute_cgi json_proto POST (null) [19:22:39]execute_cgi path=json_proto method=POST [19:22:39]POST find Content-Length [19:22:39]Host: 172.17.56.4:8080 [19:22:39]Content-Length: 677 [19:22:39]Content-Type: application/json [19:22:39] [19:22:39]POST finish read [19:22:39]Found Content-Length = 677 [19:22:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459545", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:22:39]execute_script... [19:22:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459545", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:22:39]POST & json_proto [19:22:39]process_json_proto [19:22:39]json parsed OK: [19:22:39]protocol is kg_v1.0 [19:22:39]action value=close_receipt [19:22:39]process_action close_receipt [19:22:39]cmd_close_receipt [19:22:39]MH_GetDate [19:22:39]Write to MH i2c: F0 00 00 0C 04 FF [19:22:39]Write i2c OK [19:22:39]MH_I2C_Read... [19:22:39]Read from MH i2c: F0 [19:22:39]MH_I2C_Read... [19:22:39]Read from MH i2c: F0 09 00 [19:22:39]MH_I2C_Read... [19:22:39]Read from MH i2c: F0 09 00 0C 04 00 FF 76 95 66 C9 DC B2 64 33 [19:22:39]GetLastDocTimeStamp 1721071331 [19:22:39]current date 1721071359 [19:22:39]FM_GetShiftState [19:22:39]SAM_PROTO_GetShiftState [19:22:39]wFMCommunicate request_size=4 [19:22:39]MH_SAM_APDU [19:22:39]CAPDU: 80 13 01 00 [19:22:39]Write to MH i2c: E2 08 00 0D 04 80 13 01 00 00 00 00 00 8E [19:22:39]Write i2c OK [19:22:39]MH_I2C_Read... [19:22:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:39]Read from MH i2c: E2 [19:22:39]MH_I2C_Read... [19:22:39]Read from MH i2c: E2 0E 00 [19:22:39]MH_I2C_Read... [19:22:39]Read from MH i2c: E2 0E 00 0D 04 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 67 [19:22:39]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [19:22:39]wFMCommunicate OK [19:22:39]SAM_PROTO_GetShiftState done [19:22:39]FM_GetShiftState done [19:22:39]opened in 1721003876 [19:22:39]opened+sec_in_day 1721090276 [19:22:39]quantity*price = 30004 [19:22:39]sum+1 = 30006 [19:22:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 302 15.07.2024 19:22 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165429 ФПД: 167571049951128 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T192239&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165429&fm=167571049951128&tin=02508201610067®Number=0000000000090829&sum=30000 [19:22:40]StoreToDocumentArchive [19:22:40]shift 448 fd 165429 [19:22:40]save to /storage/0448/doc_00165429 [19:22:40]save last doc name /storage/0448/doc_00165429 to /storage/kkm_last_doc_name [19:22:40]save OK [19:22:40]Clear old archive folders... [19:22:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:22:40]tlvbuf is 01B403F0 [19:22:40]SAM_PROTO_ClearQueue [19:22:40]wFMCommunicate request_size=4 [19:22:40]MH_SAM_APDU [19:22:40]CAPDU: 80 09 00 00 [19:22:40]Write to MH i2c: E2 08 00 1A 04 80 09 00 00 00 00 00 00 90 [19:22:40]Write i2c OK [19:22:40]MH_I2C_Read... [19:22:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:22:40]Read from MH i2c: E2 [19:22:40]MH_I2C_Read... [19:22:40]Read from MH i2c: E2 03 00 [19:22:40]MH_I2C_Read... [19:22:40]Read from MH i2c: E2 03 00 1A 04 00 90 00 92 [19:22:40]RAPDU: 90 00 [19:22:40]wFMCommunicate OK [19:22:40]SAM_PROTO_ClearQueue done [19:22:40]KKMCreateOFDPacket [19:22:40]OFDProtocolAddRootSTLVToBuf [19:22:40]FM_MakeSignedData [19:22:40]FM_MakeSignedData [19:22:40]SAM_PROTO_SignData [19:22:40]wFMCommunicate request_size=4 [19:22:40]MH_SAM_APDU [19:22:40]CAPDU: 80 0D 01 02 [19:22:40]Write to MH i2c: E2 08 00 1B 04 80 0D 01 02 00 00 00 00 98 [19:22:40]Write i2c OK [19:22:40]MH_I2C_Read... [19:22:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:22:40]Read from MH i2c: E2 [19:22:40]MH_I2C_Read... [19:22:40]Read from MH i2c: E2 03 00 [19:22:40]MH_I2C_Read... [19:22:40]Read from MH i2c: E2 03 00 1B 04 00 90 00 93 [19:22:40]RAPDU: 90 00 [19:22:40]wFMCommunicate OK [19:22:40]wFMCommunicate request_size=255 [19:22:40]MH_SAM_APDU [19:22:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 FF 76 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 35 86 02 00 35 04 06 00 98 [19:22:40]Write to MH i2c: E2 02 01 1C 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 FF 76 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 35 86 02 00 35 04 06 00 98 00 00 87 [19:22:40]Write i2c OK [19:22:40]MH_I2C_Read... [19:22:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:40]Read from MH i2c: E2 [19:22:40]MH_I2C_Read... [19:22:40]Read from MH i2c: E2 03 00 [19:22:40]MH_I2C_Read... [19:22:40]Read from MH i2c: E2 03 00 1C 04 00 90 00 94 [19:22:40]RAPDU: 90 00 [19:22:40]wFMCommunicate OK [19:22:40]wFMCommunicate request_size=10 [19:22:40]MH_SAM_APDU [19:22:40]CAPDU: 80 0D 02 02 05 67 AC E8 2F 98 [19:22:40]Write to MH i2c: E2 0D 00 1D 04 80 0D 02 02 05 00 67 AC E8 2F 98 00 00 67 [19:22:40]Write i2c OK [19:22:40]MH_I2C_Read... [19:22:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:40]Read from MH i2c: E2 [19:22:40]MH_I2C_Read... [19:22:40]Read from MH i2c: E2 03 00 [19:22:40]MH_I2C_Read... [19:22:40]Read from MH i2c: E2 03 00 1D 04 00 90 00 95 [19:22:40]RAPDU: 90 00 [19:22:40]wFMCommunicate OK [19:22:40]wFMCommunicate request_size=4 [19:22:40]MH_SAM_APDU [19:22:40]CAPDU: 80 0D 03 02 [19:22:40]Write to MH i2c: E2 08 00 1E 04 80 0D 03 02 00 00 00 00 9D [19:22:40]Write i2c OK [19:22:40]MH_I2C_Read... [19:22:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:22:40]Read from MH i2c: E2 [19:22:40]MH_I2C_Read... [19:22:40]Read from MH i2c: E2 0B 00 [19:22:40]MH_I2C_Read... [19:22:40]Read from MH i2c: E2 0B 00 1E 04 00 83 1F 59 AE D3 2A 89 80 90 00 4D [19:22:40]RAPDU: 83 1F 59 AE D3 2A 89 80 90 00 [19:22:40]wFMCommunicate OK [19:22:40]SAM_PROTO_SignData done [19:22:40]FM_MakeSignedData done [19:22:40]CreateOFDProtocolMessage [19:22:40]wFMCommunicate request_size=4 [19:22:40]MH_SAM_APDU [19:22:40]CAPDU: 80 11 00 00 [19:22:40]Write to MH i2c: E2 08 00 1F 04 80 11 00 00 00 00 00 00 9D [19:22:40]Write i2c OK [19:22:40]MH_I2C_Read... [19:22:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:40]Read from MH i2c: E2 [19:22:40]MH_I2C_Read... [19:22:40]Read from MH i2c: E2 17 00 [19:22:40]MH_I2C_Read... [19:22:40]Read from MH i2c: E2 17 00 1F 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F3 [19:22:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:22:40]wFMCommunicate OK [19:22:40]CreateOFDProtocolMessage done [19:22:40]OFDSenderStorePacket 165429 [19:22:40]StoreOFDPacket docnum=165429 [19:22:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C9 82 07 01 50 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 FF 76 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 35 86 02 00 35 04 06 00 98 67 AC E8 2F 98 83 1F 59 AE D3 2A 89 80 [19:22:40]CheckFolder [19:22:40]dirname=/storage/ofd_packets [19:22:40]CheckFolder done [19:22:40]ProducePacketName [19:22:40]name=ofd_packets/00165429 [19:22:40]NVStorageSaveData ofd_packets/00165429 [19:22:40]File name is /storage/ofd_packets/00165429 [19:22:40]Write 301 bytes [19:22:40]NVStorageSaveData done [19:22:40]OFDSenderStorePacket done [19:22:40]KKMCreateOFDPacket done [19:22:40]NVStorageSaveData kkm_last_timestamp [19:22:40]File name is /storage/kkm_last_timestamp [19:22:40]Write 4 bytes [19:22:40]NVStorageSaveData done [19:22:40]ExternCall_PrintAddStr [19:22:40]wPrintStart [19:22:40]Write to MH i2c: 01 00 00 20 04 24 [19:22:40]Write i2c OK [19:22:40]MH_I2C_Read... [19:22:40]Read from MH i2c: 01 [19:22:40]MH_I2C_Read... [19:22:40]Read from MH i2c: 01 07 00 [19:22:40]MH_I2C_Read... [19:22:40]Read from MH i2c: 01 07 00 20 04 00 00 00 00 00 FF 0F 39 [19:22:40]RasterBufferAndPrint [19:22:40]line Счет N : (1)459545 [19:22:40]line ИНН: 02508201610067 [19:22:40]line Контрольно-Кассовый Чек [19:22:40]line ПРОДАЖА [19:22:40]line ТРК (МРК, ГНК) : 12 [19:22:40]line Товар: 2710124130 [19:22:40]line Аи-92-К-5 [19:22:40]line 4.560 * 65.80 [19:22:40]line = 300.05 [19:22:40]line НДС 12% НСП 1% [19:22:40]line > о реализуемом товаре [19:22:40]line ОКРУГЛЕНИЕ: -0.05 [19:22:40]line ИТОГО: 300.00 [19:22:40]line Внесено: 300.00 [19:22:40]line СДАЧА: 0.00 [19:22:40]line НСП 1% : 2.65 [19:22:40]line НДС 12% : 31.86 [19:22:40]line Наличными: 300.00 [19:22:40]line Безнал.: 0.00 [19:22:40]line Место: АЗС № 72 "Партнер Нефть" [19:22:40]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:22:40]line СНО: Общий режим [19:22:40]line Чек 302 15.07.2024 19:22 [19:22:40]line Смена: 448 ФФД: 1.0 [19:22:40]line ЗНМ: 0300000160 [19:22:40]line РНМ: 0000000000090829 [19:22:40]line Версия ККМ: 001 [19:22:40]line ФМ: 0000000000874718 [19:22:40]line ФД: 165429 [19:22:40]line ФПД: 167571049951128 [19:22:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T192239&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165429&fm=167571049951128&tin=02508201610067®Number=0000000000090829&sum=30000 [19:22:41]OFD Sender: Processing packet 165429 [packets to send 106, broken 105] [19:22:41]ProducePacketName [19:22:41]name=ofd_packets/00165429 [19:22:41]OFD Sender: To server: pG, [19:22:41]CommunicateWithHost lk.salyk.kg:30040 [19:22:41]ConnectInit lk.salyk.kg [19:22:41]written 0, free lines is 4095 [19:22:41]Connected sock=10 [19:22:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 C9 82 07 01 50 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 FF 76 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 35 86 02 00 35 04 06 00 98 67 AC E8 2F 98 83 1F 59 AE D3 2A 89 80 [19:22:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 0C 21 47 00 8C 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 37 31 38 10 04 04 00 35 86 02 00 F4 03 04 00 89 1D 95 66 B6 04 01 00 00 A7 62 28 DE B5 D3 13 2A [19:22:41]CommunicateWithHost err = 0 [19:22:41]CheckOFDResponse [19:22:41]1017 (14) - 77093643461234 [19:22:41]1041 (16) - 0000000000874718 [19:22:41]1040 (4) - 165429 [19:22:41]1012 (4) - 15.07.2024 13:00 [19:22:41]1206 (1) - 0 [19:22:41]OFD Sender: Remove packet 165429 [19:22:41]ProducePacketName [19:22:41]name=ofd_packets/00165429 [19:22:41]NVStorageDeleteData [19:22:41]Write to MH i2c: 01 00 00 4A 04 4E [19:22:41]Write i2c OK [19:22:41]MH_I2C_Read... [19:22:41]Read from MH i2c: 01 [19:22:41]MH_I2C_Read... [19:22:41]Read from MH i2c: 01 07 00 [19:22:41]MH_I2C_Read... [19:22:41]Read from MH i2c: 01 07 00 4A 04 00 00 00 00 00 F8 0C 59 [19:22:41]RasterBufferAndPrint [19:22:41]line [19:22:41]line [19:22:41]line [19:22:41]line [19:22:41]line [19:22:41]written 0, free lines is 3326 [19:22:41]MH_Cut [19:22:41]Write to MH i2c: D1 01 00 51 04 01 27 [19:22:41]Write i2c OK [19:22:41]MH_I2C_Read... [19:22:41]Read from MH i2c: D1 [19:22:41]MH_I2C_Read... [19:22:41]Read from MH i2c: D1 01 00 [19:22:41]MH_I2C_Read... [19:22:41]Read from MH i2c: D1 01 00 51 04 00 26 [19:22:41]Write to MH i2c: 01 00 00 52 04 56 [19:22:41]Write i2c OK [19:22:41]MH_I2C_Read... [19:22:41]OFD Sender: No OFD packet to send [19:22:42]*** Cut start [19:22:42]*** Partial cut [19:22:42]*** CUTSNS_PIN = 1 [19:22:42]*** CUTSNS_PIN = 0 [19:22:42]*** Brake cut motor [19:22:42]Read from MH i2c: 01 [19:22:42]MH_I2C_Read... [19:22:42]*** Stop cut motor [19:22:42]*** Cut end [19:22:42]Read from MH i2c: 01 07 00 [19:22:42]MH_I2C_Read... [19:22:42]Read from MH i2c: 01 07 00 52 04 00 00 00 00 00 FF 0F 6B [19:22:42]process_action close_receipt done [19:22:42]requested_data is exist [19:22:42]produce_requested_data [19:22:42]requested_item fm.sn is exist - process it [19:22:42]wFMCommunicate request_size=4 [19:22:42]MH_SAM_APDU [19:22:42]CAPDU: 80 11 00 00 [19:22:42]Write to MH i2c: E2 08 00 53 04 80 11 00 00 00 00 00 00 D1 [19:22:42]Write i2c OK [19:22:42]MH_I2C_Read... [19:22:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:42]Read from MH i2c: E2 [19:22:42]MH_I2C_Read... [19:22:42]Read from MH i2c: E2 17 00 [19:22:42]MH_I2C_Read... [19:22:42]Read from MH i2c: E2 17 00 53 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 27 [19:22:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:22:42]wFMCommunicate OK [19:22:42]requested_item fd.num is exist - process it [19:22:42]SAM_PROTO_GetFieldsCounters [19:22:42]wFMCommunicate request_size=4 [19:22:42]MH_SAM_APDU [19:22:42]CAPDU: 80 13 00 00 [19:22:42]Write to MH i2c: E2 08 00 54 04 80 13 00 00 00 00 00 00 D4 [19:22:42]Write i2c OK [19:22:42]MH_I2C_Read... [19:22:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:22:43]Read from MH i2c: E2 [19:22:43]MH_I2C_Read... [19:22:43]Read from MH i2c: E2 62 00 [19:22:43]MH_I2C_Read... [19:22:43]Read from MH i2c: E2 62 00 54 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 35 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 2E 01 00 00 5E 04 04 00 2E 01 00 00 57 04 04 00 2F 01 00 00 19 04 04 00 00 00 00 00 90 00 06 [19:22:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 35 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 2E 01 00 00 5E 04 04 00 2E 01 00 00 57 04 04 00 2F 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:22:43]wFMCommunicate OK [19:22:43]SAM_PROTO_GetFieldsCounters done [19:22:43]requested_item shift.num is exist - process it [19:22:43]requested_item shift.opened is exist - process it [19:22:43]req_shift_opened [19:22:43]FM_GetShiftState [19:22:43]SAM_PROTO_GetShiftState [19:22:43]wFMCommunicate request_size=4 [19:22:43]MH_SAM_APDU [19:22:43]CAPDU: 80 13 01 00 [19:22:43]Write to MH i2c: E2 08 00 55 04 80 13 01 00 00 00 00 00 D6 [19:22:43]Write i2c OK [19:22:43]MH_I2C_Read... [19:22:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:43]Read from MH i2c: E2 [19:22:43]MH_I2C_Read... [19:22:43]Read from MH i2c: E2 0E 00 [19:22:43]MH_I2C_Read... [19:22:43]Read from MH i2c: E2 0E 00 55 04 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 AF [19:22:43]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [19:22:43]wFMCommunicate OK [19:22:43]SAM_PROTO_GetShiftState done [19:22:43]FM_GetShiftState done [19:22:43]req_shift_opened done [19:22:43]requested_item shift.open_date is exist - process it [19:22:43]req_shift_open_date [19:22:43]req_shift_open_date done [19:22:43]produce_requested_data done [19:22:43]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165429,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [19:22:43]process_action_free close_receipt [19:22:43]json_value_free [19:22:43]json_value_free done [19:22:43]process_json_proto returns [19:22:43]Send response to host [19:22:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165429,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [19:22:43]free response buf [19:22:43]execute_script done [19:22:43]execute_script returns [19:22:43]free content buf [19:22:43]Sock 9.Close socket [19:22:43]Sock 9.Thread stoped [19:22:46]OFD Sender: No OFD packet to send [19:22:51]OFD Sender: No OFD packet to send [19:22:56]OFD Sender: No OFD packet to send [19:23:01]OFD Sender: No OFD packet to send [19:23:06]OFD Sender: No OFD packet to send [19:23:11]OFD Sender: No OFD packet to send [19:23:16]OFD Sender: No OFD packet to send [19:23:21]OFD Sender: No OFD packet to send [19:23:26]OFD Sender: No OFD packet to send [19:23:31]OFD Sender: No OFD packet to send [19:23:36]OFD Sender: No OFD packet to send [19:23:41]OFD Sender: No OFD packet to send [19:23:46]OFD Sender: No OFD packet to send [19:23:51]OFD Sender: No OFD packet to send [19:23:56]OFD Sender: No OFD packet to send [19:24:01]OFD Sender: No OFD packet to send [19:24:06]OFD Sender: No OFD packet to send [19:24:11]OFD Sender: No OFD packet to send [19:24:17]OFD Sender: No OFD packet to send [19:24:22]OFD Sender: No OFD packet to send [19:24:27]OFD Sender: No OFD packet to send [19:24:32]OFD Sender: No OFD packet to send [19:24:37]OFD Sender: No OFD packet to send [19:24:42]OFD Sender: No OFD packet to send [19:24:47]OFD Sender: No OFD packet to send [19:24:52]OFD Sender: No OFD packet to send [19:24:57]OFD Sender: No OFD packet to send [19:25:02]OFD Sender: No OFD packet to send [19:25:07]OFD Sender: No OFD packet to send [19:25:12]OFD Sender: No OFD packet to send [19:25:17]OFD Sender: No OFD packet to send [19:25:22]OFD Sender: No OFD packet to send [19:25:27]OFD Sender: No OFD packet to send [19:25:32]OFD Sender: No OFD packet to send [19:25:37]OFD Sender: No OFD packet to send [19:25:42]OFD Sender: No OFD packet to send [19:25:47]OFD Sender: No OFD packet to send [19:25:52]OFD Sender: No OFD packet to send [19:25:57]OFD Sender: No OFD packet to send [19:26:02]OFD Sender: No OFD packet to send [19:26:07]OFD Sender: No OFD packet to send [19:26:12]OFD Sender: No OFD packet to send [19:26:17]OFD Sender: No OFD packet to send [19:26:22]OFD Sender: No OFD packet to send [19:26:27]OFD Sender: No OFD packet to send [19:26:32]OFD Sender: No OFD packet to send [19:26:37]OFD Sender: No OFD packet to send [19:26:42]OFD Sender: No OFD packet to send [19:26:47]OFD Sender: No OFD packet to send [19:26:52]OFD Sender: No OFD packet to send [19:26:57]OFD Sender: No OFD packet to send [19:27:02]OFD Sender: No OFD packet to send [19:27:07]OFD Sender: No OFD packet to send [19:27:12]OFD Sender: No OFD packet to send [19:27:17]OFD Sender: No OFD packet to send [19:27:22]OFD Sender: No OFD packet to send [19:27:27]OFD Sender: No OFD packet to send [19:27:32]OFD Sender: No OFD packet to send [19:27:37]OFD Sender: No OFD packet to send [19:27:42]OFD Sender: No OFD packet to send [19:27:47]OFD Sender: No OFD packet to send [19:27:51]accept exits with 7 [19:27:51]New connection [19:27:51]New thread 3067190628 created [19:27:51]Thread 3067333988 joined [19:27:51]Waiting for new connection... [19:27:51] Sock 7.Parse request [19:27:51]Sock 7.Check first char [19:27:51]Sock 7.First char is OK [19:27:51]request: POST /json_proto HTTP/1.0 [19:27:51]Method: POST [19:27:51]URL: /json_proto [19:27:51]Method is POST - this is cgi request [19:27:51]url: /json_proto [19:27:51]query_string will be loaded in cgi processing [19:27:51]execute_cgi json_proto POST (null) [19:27:51]execute_cgi path=json_proto method=POST [19:27:51]POST find Content-Length [19:27:51]Host: 172.17.56.4:8080 [19:27:51]Content-Length: 790 [19:27:51]Content-Type: application/json [19:27:51] [19:27:51]POST finish read [19:27:51]Found Content-Length = 790 [19:27:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459546", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 28.070, "sum" : 2000.27, "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.27 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:27:51]execute_script... [19:27: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)459546", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 28.070, "sum" : 2000.27, "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.27 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:27:51]POST & json_proto [19:27:51]process_json_proto [19:27:51]json parsed OK: [19:27:51]protocol is kg_v1.0 [19:27:51]action value=close_receipt [19:27:51]process_action close_receipt [19:27:51]cmd_close_receipt [19:27:51]MH_GetDate [19:27:51]Write to MH i2c: F0 00 00 56 04 49 [19:27:51]Write i2c OK [19:27:51]MH_I2C_Read... [19:27:51]Read from MH i2c: F0 [19:27:51]MH_I2C_Read... [19:27:51]Read from MH i2c: F0 09 00 [19:27:51]MH_I2C_Read... [19:27:51]Read from MH i2c: F0 09 00 56 04 00 38 78 95 66 C9 DC B2 64 B8 [19:27:51]GetLastDocTimeStamp 1721071359 [19:27:51]current date 1721071672 [19:27:51]FM_GetShiftState [19:27:51]SAM_PROTO_GetShiftState [19:27:51]wFMCommunicate request_size=4 [19:27:51]MH_SAM_APDU [19:27:51]CAPDU: 80 13 01 00 [19:27:51]Write to MH i2c: E2 08 00 57 04 80 13 01 00 00 00 00 00 D8 [19:27:51]Write i2c OK [19:27:51]MH_I2C_Read... [19:27:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:51]Read from MH i2c: E2 [19:27:51]MH_I2C_Read... [19:27:51]Read from MH i2c: E2 0E 00 [19:27:51]MH_I2C_Read... [19:27:51]Read from MH i2c: E2 0E 00 57 04 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 B1 [19:27:51]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [19:27:51]wFMCommunicate OK [19:27:51]SAM_PROTO_GetShiftState done [19:27:51]FM_GetShiftState done [19:27:51]opened in 1721003876 [19:27:51]opened+sec_in_day 1721090276 [19:27:51]quantity*price = 200026 [19:27:51]sum+1 = 200028 [19:27:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.27 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.27 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 303 15.07.2024 19:27 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 165430 ФПД: 30076095220349 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T192752&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165430&fm=30076095220349&tin=02508201610067®Number=0000000000090829&sum=200027 [19:27:52]StoreToDocumentArchive [19:27:52]shift 448 fd 165430 [19:27:52]save to /storage/0448/doc_00165430 [19:27:52]save last doc name /storage/0448/doc_00165430 to /storage/kkm_last_doc_name [19:27:52]save OK [19:27:52]Clear old archive folders... [19:27:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:27:52]tlvbuf is 01BB54D0 [19:27:52]SAM_PROTO_ClearQueue [19:27:52]wFMCommunicate request_size=4 [19:27:52]MH_SAM_APDU [19:27:52]CAPDU: 80 09 00 00 [19:27:52]Write to MH i2c: E2 08 00 64 04 80 09 00 00 00 00 00 00 DA [19:27:52]Write i2c OK [19:27:52]MH_I2C_Read... [19:27:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:27:52]Read from MH i2c: E2 [19:27:52]MH_I2C_Read... [19:27:52]Read from MH i2c: E2 03 00 [19:27:52]MH_I2C_Read... [19:27:52]Read from MH i2c: E2 03 00 64 04 00 90 00 DC [19:27:52]RAPDU: 90 00 [19:27:52]wFMCommunicate OK [19:27:52]SAM_PROTO_ClearQueue done [19:27:52]KKMCreateOFDPacket [19:27:52]OFDProtocolAddRootSTLVToBuf [19:27:52]FM_MakeSignedData [19:27:52]FM_MakeSignedData [19:27:52]SAM_PROTO_SignData [19:27:52]wFMCommunicate request_size=4 [19:27:52]MH_SAM_APDU [19:27:52]CAPDU: 80 0D 01 02 [19:27:52]Write to MH i2c: E2 08 00 65 04 80 0D 01 02 00 00 00 00 E2 [19:27:52]Write i2c OK [19:27:52]MH_I2C_Read... [19:27:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:27:52]Read from MH i2c: E2 [19:27:52]MH_I2C_Read... [19:27:52]Read from MH i2c: E2 03 00 [19:27:52]MH_I2C_Read... [19:27:52]Read from MH i2c: E2 03 00 65 04 00 90 00 DD [19:27:52]RAPDU: 90 00 [19:27:52]wFMCommunicate OK [19:27:52]wFMCommunicate request_size=255 [19:27:52]MH_SAM_APDU [19:27:52]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A6 6D 00 00 00 00 00 37 04 06 00 D6 1B 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 5B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 38 78 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 36 86 02 00 35 04 06 00 1B 5A A2 F8 [19:27:53]Write to MH i2c: E2 02 01 66 04 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A6 6D 00 00 00 00 00 37 04 06 00 D6 1B 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 5B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 38 78 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 36 86 02 00 35 04 06 00 1B 5A A2 F8 00 00 2F [19:27:53]Write i2c OK [19:27:53]MH_I2C_Read... [19:27:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:53]Read from MH i2c: E2 [19:27:53]MH_I2C_Read... [19:27:53]Read from MH i2c: E2 03 00 [19:27:53]MH_I2C_Read... [19:27:53]Read from MH i2c: E2 03 00 66 04 00 90 00 DE [19:27:53]RAPDU: 90 00 [19:27:53]wFMCommunicate OK [19:27:53]wFMCommunicate request_size=7 [19:27:53]MH_SAM_APDU [19:27:53]CAPDU: 80 0D 02 02 02 CA 7D [19:27:53]Write to MH i2c: E2 0A 00 67 04 80 0D 02 02 02 00 CA 7D 00 00 30 [19:27:53]Write i2c OK [19:27:53]MH_I2C_Read... [19:27:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:53]Read from MH i2c: E2 [19:27:53]MH_I2C_Read... [19:27:53]Read from MH i2c: E2 03 00 [19:27:53]MH_I2C_Read... [19:27:53]Read from MH i2c: E2 03 00 67 04 00 90 00 DF [19:27:53]RAPDU: 90 00 [19:27:53]wFMCommunicate OK [19:27:53]wFMCommunicate request_size=4 [19:27:53]MH_SAM_APDU [19:27:53]CAPDU: 80 0D 03 02 [19:27:53]Write to MH i2c: E2 08 00 68 04 80 0D 03 02 00 00 00 00 E7 [19:27:53]Write i2c OK [19:27:53]MH_I2C_Read... [19:27:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:27:53]Read from MH i2c: E2 [19:27:53]MH_I2C_Read... [19:27:53]Read from MH i2c: E2 0B 00 [19:27:53]MH_I2C_Read... [19:27:53]Read from MH i2c: E2 0B 00 68 04 00 C5 43 6F 84 A7 44 A2 DA 90 00 4A [19:27:53]RAPDU: C5 43 6F 84 A7 44 A2 DA 90 00 [19:27:53]wFMCommunicate OK [19:27:53]SAM_PROTO_SignData done [19:27:53]FM_MakeSignedData done [19:27:53]CreateOFDProtocolMessage [19:27:53]wFMCommunicate request_size=4 [19:27:53]MH_SAM_APDU [19:27:53]CAPDU: 80 11 00 00 [19:27:53]Write to MH i2c: E2 08 00 69 04 80 11 00 00 00 00 00 00 E7 [19:27:53]Write i2c OK [19:27:53]MH_I2C_Read... [19:27:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:53]Read from MH i2c: E2 [19:27:53]MH_I2C_Read... [19:27:53]Read from MH i2c: E2 17 00 [19:27:53]MH_I2C_Read... [19:27:53]Read from MH i2c: E2 17 00 69 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3D [19:27:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:27:53]wFMCommunicate OK [19:27:53]CreateOFDProtocolMessage done [19:27:53]OFDSenderStorePacket 165430 [19:27:53]StoreOFDPacket docnum=165430 [19:27:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 18 53 04 01 12 7E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A6 6D 00 00 00 00 00 37 04 06 00 D6 1B 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 5B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 38 78 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 36 86 02 00 35 04 06 00 1B 5A A2 F8 CA 7D C5 43 6F 84 A7 44 A2 DA [19:27:53]CheckFolder [19:27:53]dirname=/storage/ofd_packets [19:27:53]CheckFolder done [19:27:53]ProducePacketName [19:27:53]name=ofd_packets/00165430 [19:27:53]NVStorageSaveData ofd_packets/00165430 [19:27:53]File name is /storage/ofd_packets/00165430 [19:27:53]Write 298 bytes [19:27:53]NVStorageSaveData done [19:27:53]OFDSenderStorePacket done [19:27:53]KKMCreateOFDPacket done [19:27:53]NVStorageSaveData kkm_last_timestamp [19:27:53]File name is /storage/kkm_last_timestamp [19:27:53]Write 4 bytes [19:27:53]NVStorageSaveData done [19:27:53]ExternCall_PrintAddStr [19:27:53]wPrintStart [19:27:53]Write to MH i2c: 01 00 00 6A 04 6E [19:27:53]Write i2c OK [19:27:53]MH_I2C_Read... [19:27:53]Read from MH i2c: 01 [19:27:53]MH_I2C_Read... [19:27:53]Read from MH i2c: 01 07 00 [19:27:53]MH_I2C_Read... [19:27:53]Read from MH i2c: 01 07 00 6A 04 00 00 00 00 00 FF 0F 83 [19:27:53]RasterBufferAndPrint [19:27:53]line Счет N : (1)459546 [19:27:53]line ИНН: 02508201610067 [19:27:53]line Контрольно-Кассовый Чек [19:27:53]line ПРОДАЖА [19:27:53]line ТРК (МРК, ГНК) : 21 [19:27:53]line Товар: 2710194210 [19:27:53]line ДТ-К-5 [19:27:53]line 28.070 * 71.26 [19:27:53]line = 2000.27 [19:27:53]line НДС 12% НСП 1% [19:27:53]line > о реализуемом товаре [19:27:53]line ИТОГО: 2000.27 [19:27:53]line НСП 1% : 17.70 [19:27:53]line НДС 12% : 212.42 [19:27:53]line Наличными: 0.00 [19:27:53]line Безнал.: 2000.27 [19:27:53]line Место: АЗС № 72 "Партнер Нефть" [19:27:53]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:27:53]line СНО: Общий режим [19:27:53]line Чек 303 15.07.2024 19:27 [19:27:53]line Смена: 448 ФФД: 1.0 [19:27:53]line ЗНМ: 0300000160 [19:27:53]line РНМ: 0000000000090829 [19:27:53]line Версия ККМ: 001 [19:27:53]line Платежная система: KICB Банк [19:27:53]line ФМ: 0000000000874718 [19:27:53]line ФД: 165430 [19:27:53]line ФПД: 30076095220349 [19:27:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T192752&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165430&fm=30076095220349&tin=02508201610067®Number=0000000000090829&sum=200027 [19:27:53]OFD Sender: Processing packet 165430 [packets to send 106, broken 105] [19:27:53]ProducePacketName [19:27:53]name=ofd_packets/00165430 [19:27:53]OFD Sender: To server: pG, [19:27:53]CommunicateWithHost lk.salyk.kg:30040 [19:27:53]ConnectInit lk.salyk.kg [19:27:53]written 0, free lines is 4095 [19:27:53]Connected sock=10 [19:27: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 37 31 38 0C 01 00 00 18 53 04 01 12 7E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A6 6D 00 00 00 00 00 37 04 06 00 D6 1B 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 5B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 38 78 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 36 86 02 00 35 04 06 00 1B 5A A2 F8 CA 7D C5 43 6F 84 A7 44 A2 DA [19:27:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 25 A8 47 00 39 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 36 86 02 00 F4 03 04 00 C1 1E 95 66 B6 04 01 00 00 97 2F 00 51 35 AC AA 72 [19:27:54]CommunicateWithHost err = 0 [19:27:54]CheckOFDResponse [19:27:54]1017 (14) - 77093643461234 [19:27:54]1041 (16) - 0000000000874718 [19:27:54]1040 (4) - 165430 [19:27:54]1012 (4) - 15.07.2024 13:06 [19:27:54]1206 (1) - 0 [19:27:54]OFD Sender: Remove packet 165430 [19:27:54]ProducePacketName [19:27:54]name=ofd_packets/00165430 [19:27:54]NVStorageDeleteData [19:27:54]Write to MH i2c: 01 00 00 93 04 97 [19:27:54]Write i2c OK [19:27:54]MH_I2C_Read... [19:27:54]Read from MH i2c: 01 [19:27:54]MH_I2C_Read... [19:27:54]Read from MH i2c: 01 07 00 [19:27:54]MH_I2C_Read... [19:27:54]Read from MH i2c: 01 07 00 93 04 00 00 00 00 00 10 0D BB [19:27:54]RasterBufferAndPrint [19:27:54]line [19:27:54]line [19:27:54]line [19:27:54]line [19:27:54]line [19:27:54]written 0, free lines is 3350 [19:27:54]MH_Cut [19:27:54]Write to MH i2c: D1 01 00 9A 04 01 70 [19:27:54]Write i2c OK [19:27:54]MH_I2C_Read... [19:27:54]Read from MH i2c: D1 [19:27:54]MH_I2C_Read... [19:27:54]Read from MH i2c: D1 01 00 [19:27:54]MH_I2C_Read... [19:27:54]Read from MH i2c: D1 01 00 9A 04 00 6F [19:27:54]Write to MH i2c: 01 00 00 9B 04 9F [19:27:54]Write i2c OK [19:27:54]MH_I2C_Read... [19:27:54]OFD Sender: No OFD packet to send [19:27:54]*** Cut start [19:27:54]*** Partial cut [19:27:54]*** CUTSNS_PIN = 1 [19:27:54]*** CUTSNS_PIN = 0 [19:27:55]*** Brake cut motor [19:27:55]Read from MH i2c: 01 [19:27:55]MH_I2C_Read... [19:27:55]*** Stop cut motor [19:27:55]*** Cut end [19:27:55]Read from MH i2c: 01 07 00 [19:27:55]MH_I2C_Read... [19:27:55]Read from MH i2c: 01 07 00 9B 04 00 00 00 00 00 FF 0F B4 [19:27:55]process_action close_receipt done [19:27:55]requested_data is exist [19:27:55]produce_requested_data [19:27:55]requested_item fm.sn is exist - process it [19:27:55]wFMCommunicate request_size=4 [19:27:55]MH_SAM_APDU [19:27:55]CAPDU: 80 11 00 00 [19:27:55]Write to MH i2c: E2 08 00 9C 04 80 11 00 00 00 00 00 00 1A [19:27:55]Write i2c OK [19:27:55]MH_I2C_Read... [19:27:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:55]Read from MH i2c: E2 [19:27:55]MH_I2C_Read... [19:27:55]Read from MH i2c: E2 17 00 [19:27:55]MH_I2C_Read... [19:27:55]Read from MH i2c: E2 17 00 9C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 70 [19:27:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:27:55]wFMCommunicate OK [19:27:55]requested_item fd.num is exist - process it [19:27:55]SAM_PROTO_GetFieldsCounters [19:27:55]wFMCommunicate request_size=4 [19:27:55]MH_SAM_APDU [19:27:55]CAPDU: 80 13 00 00 [19:27:55]Write to MH i2c: E2 08 00 9D 04 80 13 00 00 00 00 00 00 1D [19:27:55]Write i2c OK [19:27:55]MH_I2C_Read... [19:27:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:27:55]Read from MH i2c: E2 [19:27:55]MH_I2C_Read... [19:27:55]Read from MH i2c: E2 62 00 [19:27:55]MH_I2C_Read... [19:27:55]Read from MH i2c: E2 62 00 9D 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 36 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 2F 01 00 00 5E 04 04 00 2F 01 00 00 57 04 04 00 30 01 00 00 19 04 04 00 00 00 00 00 90 00 53 [19:27: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 36 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 2F 01 00 00 5E 04 04 00 2F 01 00 00 57 04 04 00 30 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:27:55]wFMCommunicate OK [19:27:55]SAM_PROTO_GetFieldsCounters done [19:27:55]requested_item shift.num is exist - process it [19:27:55]requested_item shift.opened is exist - process it [19:27:55]req_shift_opened [19:27:55]FM_GetShiftState [19:27:55]SAM_PROTO_GetShiftState [19:27:55]wFMCommunicate request_size=4 [19:27:55]MH_SAM_APDU [19:27:55]CAPDU: 80 13 01 00 [19:27:55]Write to MH i2c: E2 08 00 9E 04 80 13 01 00 00 00 00 00 1F [19:27:55]Write i2c OK [19:27:55]MH_I2C_Read... [19:27:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:55]Read from MH i2c: E2 [19:27:55]MH_I2C_Read... [19:27:55]Read from MH i2c: E2 0E 00 [19:27:55]MH_I2C_Read... [19:27:55]Read from MH i2c: E2 0E 00 9E 04 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 F8 [19:27:55]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [19:27:55]wFMCommunicate OK [19:27:55]SAM_PROTO_GetShiftState done [19:27:55]FM_GetShiftState done [19:27:55]req_shift_opened done [19:27:55]requested_item shift.open_date is exist - process it [19:27:55]req_shift_open_date [19:27:55]req_shift_open_date done [19:27:55]produce_requested_data done [19:27:55]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165430,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [19:27:55]process_action_free close_receipt [19:27:55]json_value_free [19:27:55]json_value_free done [19:27:55]process_json_proto returns [19:27:55]Send response to host [19:27:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165430,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [19:27:55]free response buf [19:27:55]execute_script done [19:27:55]execute_script returns [19:27:55]free content buf [19:27:55]Sock 7.Close socket [19:27:55]Sock 7.Thread stoped [19:27:59]OFD Sender: No OFD packet to send [19:28:04]OFD Sender: No OFD packet to send [19:28:09]OFD Sender: No OFD packet to send [19:28:14]OFD Sender: No OFD packet to send [19:28:19]OFD Sender: No OFD packet to send [19:28:24]OFD Sender: No OFD packet to send [19:28:29]OFD Sender: No OFD packet to send [19:28:34]OFD Sender: No OFD packet to send [19:28:39]OFD Sender: No OFD packet to send [19:28:43]accept exits with 9 [19:28:43]New connection [19:28:43]New thread 3067333988 created [19:28:43]Thread 3067190628 joined [19:28:43]Waiting for new connection... [19:28:43] Sock 9.Parse request [19:28:43]Sock 9.Check first char [19:28:43]Sock 9.First char is OK [19:28:43]request: POST /json_proto HTTP/1.0 [19:28:43]Method: POST [19:28:43]URL: /json_proto [19:28:43]Method is POST - this is cgi request [19:28:43]url: /json_proto [19:28:43]query_string will be loaded in cgi processing [19:28:43]execute_cgi json_proto POST (null) [19:28:43]execute_cgi path=json_proto method=POST [19:28:43]POST find Content-Length [19:28:43]Host: 172.17.56.4:8080 [19:28:43]Content-Length: 682 [19:28:43]Content-Type: application/json [19:28:43] [19:28:43]POST finish read [19:28:43]Found Content-Length = 682 [19:28:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459547", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:43]execute_script... [19:28:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459547", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:43]POST & json_proto [19:28:43]process_json_proto [19:28:43]json parsed OK: [19:28:43]protocol is kg_v1.0 [19:28:43]action value=close_receipt [19:28:43]process_action close_receipt [19:28:43]cmd_close_receipt [19:28:43]MH_GetDate [19:28:43]Write to MH i2c: F0 00 00 9F 04 92 [19:28:43]Write i2c OK [19:28:43]MH_I2C_Read... [19:28:43]Read from MH i2c: F0 [19:28:43]MH_I2C_Read... [19:28:43]Read from MH i2c: F0 09 00 [19:28:43]MH_I2C_Read... [19:28:43]Read from MH i2c: F0 09 00 9F 04 00 6B 78 95 66 C9 DC B2 64 34 [19:28:43]GetLastDocTimeStamp 1721071672 [19:28:43]current date 1721071723 [19:28:43]FM_GetShiftState [19:28:43]SAM_PROTO_GetShiftState [19:28:43]wFMCommunicate request_size=4 [19:28:43]MH_SAM_APDU [19:28:43]CAPDU: 80 13 01 00 [19:28:43]Write to MH i2c: E2 08 00 A0 04 80 13 01 00 00 00 00 00 21 [19:28:43]Write i2c OK [19:28:43]MH_I2C_Read... [19:28:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:43]Read from MH i2c: E2 [19:28:43]MH_I2C_Read... [19:28:43]Read from MH i2c: E2 0E 00 [19:28:43]MH_I2C_Read... [19:28:43]Read from MH i2c: E2 0E 00 A0 04 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 FA [19:28:43]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [19:28:43]wFMCommunicate OK [19:28:43]SAM_PROTO_GetShiftState done [19:28:43]FM_GetShiftState done [19:28:43]opened in 1721003876 [19:28:43]opened+sec_in_day 1721090276 [19:28:43]quantity*price = 100016 [19:28:43]sum+1 = 100017 [19:28:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 304 15.07.2024 19:28 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165431 ФПД: 200092576271945 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T192843&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165431&fm=200092576271945&tin=02508201610067®Number=0000000000090829&sum=100000 [19:28:44]StoreToDocumentArchive [19:28:44]shift 448 fd 165431 [19:28:44]save to /storage/0448/doc_00165431 [19:28:44]save last doc name /storage/0448/doc_00165431 to /storage/kkm_last_doc_name [19:28:44]save OK [19:28:44]Clear old archive folders... [19:28:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:28:44]tlvbuf is 01B99530 [19:28:44]SAM_PROTO_ClearQueue [19:28:44]wFMCommunicate request_size=4 [19:28:44]MH_SAM_APDU [19:28:44]CAPDU: 80 09 00 00 [19:28:44]Write to MH i2c: E2 08 00 AD 04 80 09 00 00 00 00 00 00 23 [19:28:44]Write i2c OK [19:28:44]MH_I2C_Read... [19:28:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:28:44]Read from MH i2c: E2 [19:28:44]MH_I2C_Read... [19:28:44]Read from MH i2c: E2 03 00 [19:28:44]MH_I2C_Read... [19:28:44]Read from MH i2c: E2 03 00 AD 04 00 90 00 25 [19:28:44]RAPDU: 90 00 [19:28:44]wFMCommunicate OK [19:28:44]SAM_PROTO_ClearQueue done [19:28:44]KKMCreateOFDPacket [19:28:44]OFDProtocolAddRootSTLVToBuf [19:28:44]FM_MakeSignedData [19:28:44]FM_MakeSignedData [19:28:44]SAM_PROTO_SignData [19:28:44]wFMCommunicate request_size=4 [19:28:44]MH_SAM_APDU [19:28:44]CAPDU: 80 0D 01 02 [19:28:44]Write to MH i2c: E2 08 00 AE 04 80 0D 01 02 00 00 00 00 2B [19:28:44]Write i2c OK [19:28:44]MH_I2C_Read... [19:28:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:28:44]Read from MH i2c: E2 [19:28:44]MH_I2C_Read... [19:28:44]Read from MH i2c: E2 03 00 [19:28:44]MH_I2C_Read... [19:28:44]Read from MH i2c: E2 03 00 AE 04 00 90 00 26 [19:28:44]RAPDU: 90 00 [19:28:44]wFMCommunicate OK [19:28:44]wFMCommunicate request_size=255 [19:28:44]MH_SAM_APDU [19:28:44]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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 6B 78 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 37 86 02 00 35 04 06 00 B5 [19:28:44]Write to MH i2c: E2 02 01 AF 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 6B 78 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 37 86 02 00 35 04 06 00 B5 00 00 8A [19:28:44]Write i2c OK [19:28:44]MH_I2C_Read... [19:28:44]OFD Sender: No OFD packet to send [19:28:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:44]Read from MH i2c: E2 [19:28:44]MH_I2C_Read... [19:28:44]Read from MH i2c: E2 03 00 [19:28:44]MH_I2C_Read... [19:28:44]Read from MH i2c: E2 03 00 AF 04 00 90 00 27 [19:28:44]RAPDU: 90 00 [19:28:44]wFMCommunicate OK [19:28:44]wFMCommunicate request_size=10 [19:28:44]MH_SAM_APDU [19:28:44]CAPDU: 80 0D 02 02 05 FB AE EE 4E 49 [19:28:44]Write to MH i2c: E2 0D 00 B0 04 80 0D 02 02 05 00 FB AE EE 4E 49 00 00 66 [19:28:44]Write i2c OK [19:28:44]MH_I2C_Read... [19:28:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:44]Read from MH i2c: E2 [19:28:44]MH_I2C_Read... [19:28:44]Read from MH i2c: E2 03 00 [19:28:44]MH_I2C_Read... [19:28:44]Read from MH i2c: E2 03 00 B0 04 00 90 00 28 [19:28:44]RAPDU: 90 00 [19:28:44]wFMCommunicate OK [19:28:44]wFMCommunicate request_size=4 [19:28:44]MH_SAM_APDU [19:28:44]CAPDU: 80 0D 03 02 [19:28:44]Write to MH i2c: E2 08 00 B1 04 80 0D 03 02 00 00 00 00 30 [19:28:44]Write i2c OK [19:28:44]MH_I2C_Read... [19:28:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:28:44]Read from MH i2c: E2 [19:28:44]MH_I2C_Read... [19:28:44]Read from MH i2c: E2 0B 00 [19:28:44]MH_I2C_Read... [19:28:44]Read from MH i2c: E2 0B 00 B1 04 00 F4 B3 BD 72 25 D4 6C AF 90 00 1B [19:28:44]RAPDU: F4 B3 BD 72 25 D4 6C AF 90 00 [19:28:44]wFMCommunicate OK [19:28:44]SAM_PROTO_SignData done [19:28:44]FM_MakeSignedData done [19:28:44]CreateOFDProtocolMessage [19:28:44]wFMCommunicate request_size=4 [19:28:44]MH_SAM_APDU [19:28:44]CAPDU: 80 11 00 00 [19:28:44]Write to MH i2c: E2 08 00 B2 04 80 11 00 00 00 00 00 00 30 [19:28:44]Write i2c OK [19:28:44]MH_I2C_Read... [19:28:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:44]Read from MH i2c: E2 [19:28:44]MH_I2C_Read... [19:28:44]Read from MH i2c: E2 17 00 [19:28:44]MH_I2C_Read... [19:28:44]Read from MH i2c: E2 17 00 B2 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 86 [19:28:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:28:44]wFMCommunicate OK [19:28:44]CreateOFDProtocolMessage done [19:28:44]OFDSenderStorePacket 165431 [19:28:44]StoreOFDPacket docnum=165431 [19:28:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E9 9B 07 01 8C E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 6B 78 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 37 86 02 00 35 04 06 00 B5 FB AE EE 4E 49 F4 B3 BD 72 25 D4 6C AF [19:28:44]CheckFolder [19:28:44]dirname=/storage/ofd_packets [19:28:44]CheckFolder done [19:28:44]ProducePacketName [19:28:44]name=ofd_packets/00165431 [19:28:44]NVStorageSaveData ofd_packets/00165431 [19:28:44]File name is /storage/ofd_packets/00165431 [19:28:44]Write 301 bytes [19:28:44]NVStorageSaveData done [19:28:44]OFDSenderStorePacket done [19:28:44]KKMCreateOFDPacket done [19:28:44]NVStorageSaveData kkm_last_timestamp [19:28:44]File name is /storage/kkm_last_timestamp [19:28:44]Write 4 bytes [19:28:44]NVStorageSaveData done [19:28:44]ExternCall_PrintAddStr [19:28:44]wPrintStart [19:28:44]Write to MH i2c: 01 00 00 B3 04 B7 [19:28:44]Write i2c OK [19:28:44]MH_I2C_Read... [19:28:44]Read from MH i2c: 01 [19:28:44]MH_I2C_Read... [19:28:44]Read from MH i2c: 01 07 00 [19:28:44]MH_I2C_Read... [19:28:44]Read from MH i2c: 01 07 00 B3 04 00 00 00 00 00 FF 0F CC [19:28:44]RasterBufferAndPrint [19:28:44]line Счет N : (1)459547 [19:28:44]line ИНН: 02508201610067 [19:28:44]line Контрольно-Кассовый Чек [19:28:44]line ПРОДАЖА [19:28:44]line ТРК (МРК, ГНК) : 12 [19:28:44]line Товар: 2710124130 [19:28:44]line Аи-92-К-5 [19:28:44]line 15.200 * 65.80 [19:28:44]line = 1000.16 [19:28:44]line НДС 12% НСП 1% [19:28:44]line > о реализуемом товаре [19:28:44]line ОКРУГЛЕНИЕ: -0.16 [19:28:44]line ИТОГО: 1000.00 [19:28:44]line Внесено: 1000.00 [19:28:44]line СДАЧА: 0.00 [19:28:44]line НСП 1% : 8.85 [19:28:44]line НДС 12% : 106.21 [19:28:44]line Наличными: 1000.00 [19:28:44]line Безнал.: 0.00 [19:28:44]line Место: АЗС № 72 "Партнер Нефть" [19:28:44]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:28:44]line СНО: Общий режим [19:28:44]line Чек 304 15.07.2024 19:28 [19:28:44]line Смена: 448 ФФД: 1.0 [19:28:44]line ЗНМ: 0300000160 [19:28:44]line РНМ: 0000000000090829 [19:28:44]line Версия ККМ: 001 [19:28:44]line ФМ: 0000000000874718 [19:28:44]line ФД: 165431 [19:28:44]line ФПД: 200092576271945 [19:28:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T192843&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165431&fm=200092576271945&tin=02508201610067®Number=0000000000090829&sum=100000 [19:28:45]OFD Sender: Processing packet 165431 [packets to send 106, broken 105] [19:28:45]ProducePacketName [19:28:45]name=ofd_packets/00165431 [19:28:45]OFD Sender: To server: pG, [19:28:45]CommunicateWithHost lk.salyk.kg:30040 [19:28:45]ConnectInit lk.salyk.kg [19:28:45]written 0, free lines is 4095 [19:28:45]Connected sock=10 [19:28:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E9 9B 07 01 8C E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 6B 78 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 37 86 02 00 35 04 06 00 B5 FB AE EE 4E 49 F4 B3 BD 72 25 D4 6C AF [19:28:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 A5 A6 47 00 8F 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 37 31 38 10 04 04 00 37 86 02 00 F4 03 04 00 F5 1E 95 66 B6 04 01 00 00 77 E9 66 02 20 C2 60 38 [19:28:45]CommunicateWithHost err = 0 [19:28:45]CheckOFDResponse [19:28:45]1017 (14) - 77093643461234 [19:28:45]1041 (16) - 0000000000874718 [19:28:45]1040 (4) - 165431 [19:28:45]1012 (4) - 15.07.2024 13:07 [19:28:45]1206 (1) - 0 [19:28:45]OFD Sender: Remove packet 165431 [19:28:45]ProducePacketName [19:28:45]name=ofd_packets/00165431 [19:28:45]NVStorageDeleteData [19:28:45]Write to MH i2c: 01 00 00 DD 04 E1 [19:28:45]Write i2c OK [19:28:45]MH_I2C_Read... [19:28:45]Read from MH i2c: 01 [19:28:45]MH_I2C_Read... [19:28:45]Read from MH i2c: 01 07 00 [19:28:45]MH_I2C_Read... [19:28:45]Read from MH i2c: 01 07 00 DD 04 00 00 00 00 00 FA 0C EE [19:28:45]RasterBufferAndPrint [19:28:45]line [19:28:45]line [19:28:45]line [19:28:45]line [19:28:45]line [19:28:45]written 0, free lines is 3329 [19:28:45]MH_Cut [19:28:45]Write to MH i2c: D1 01 00 E4 04 01 BA [19:28:45]Write i2c OK [19:28:45]MH_I2C_Read... [19:28:45]Read from MH i2c: D1 [19:28:45]MH_I2C_Read... [19:28:45]Read from MH i2c: D1 01 00 [19:28:45]MH_I2C_Read... [19:28:45]Read from MH i2c: D1 01 00 E4 04 00 B9 [19:28:45]Write to MH i2c: 01 00 00 E5 04 E9 [19:28:45]Write i2c OK [19:28:45]MH_I2C_Read... [19:28:46]OFD Sender: No OFD packet to send [19:28:46]*** Cut start [19:28:46]*** Partial cut [19:28:46]*** CUTSNS_PIN = 1 [19:28:46]*** CUTSNS_PIN = 0 [19:28:46]*** Brake cut motor [19:28:46]Read from MH i2c: 01 [19:28:46]MH_I2C_Read... [19:28:46]*** Stop cut motor [19:28:46]*** Cut end [19:28:46]Read from MH i2c: 01 07 00 [19:28:46]MH_I2C_Read... [19:28:46]Read from MH i2c: 01 07 00 E5 04 00 00 00 00 00 FF 0F FE [19:28:46]process_action close_receipt done [19:28:46]requested_data is exist [19:28:46]produce_requested_data [19:28:46]requested_item fm.sn is exist - process it [19:28:46]wFMCommunicate request_size=4 [19:28:46]MH_SAM_APDU [19:28:46]CAPDU: 80 11 00 00 [19:28:46]Write to MH i2c: E2 08 00 E6 04 80 11 00 00 00 00 00 00 64 [19:28:46]Write i2c OK [19:28:46]MH_I2C_Read... [19:28:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:46]Read from MH i2c: E2 [19:28:46]MH_I2C_Read... [19:28:46]Read from MH i2c: E2 17 00 [19:28:46]MH_I2C_Read... [19:28:46]Read from MH i2c: E2 17 00 E6 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 BA [19:28:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:28:46]wFMCommunicate OK [19:28:46]requested_item fd.num is exist - process it [19:28:46]SAM_PROTO_GetFieldsCounters [19:28:46]wFMCommunicate request_size=4 [19:28:46]MH_SAM_APDU [19:28:46]CAPDU: 80 13 00 00 [19:28:46]Write to MH i2c: E2 08 00 E7 04 80 13 00 00 00 00 00 00 67 [19:28:46]Write i2c OK [19:28:46]MH_I2C_Read... [19:28:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:28:47]Read from MH i2c: E2 [19:28:47]MH_I2C_Read... [19:28:47]Read from MH i2c: E2 62 00 [19:28:47]MH_I2C_Read... [19:28:47]Read from MH i2c: E2 62 00 E7 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 37 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 30 01 00 00 5E 04 04 00 30 01 00 00 57 04 04 00 31 01 00 00 19 04 04 00 00 00 00 00 90 00 A1 [19:28: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 37 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 30 01 00 00 5E 04 04 00 30 01 00 00 57 04 04 00 31 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:28:47]wFMCommunicate OK [19:28:47]SAM_PROTO_GetFieldsCounters done [19:28:47]requested_item shift.num is exist - process it [19:28:47]requested_item shift.opened is exist - process it [19:28:47]req_shift_opened [19:28:47]FM_GetShiftState [19:28:47]SAM_PROTO_GetShiftState [19:28:47]wFMCommunicate request_size=4 [19:28:47]MH_SAM_APDU [19:28:47]CAPDU: 80 13 01 00 [19:28:47]Write to MH i2c: E2 08 00 E8 04 80 13 01 00 00 00 00 00 69 [19:28:47]Write i2c OK [19:28:47]MH_I2C_Read... [19:28:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:47]Read from MH i2c: E2 [19:28:47]MH_I2C_Read... [19:28:47]Read from MH i2c: E2 0E 00 [19:28:47]MH_I2C_Read... [19:28:47]Read from MH i2c: E2 0E 00 E8 04 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 42 [19:28:47]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [19:28:47]wFMCommunicate OK [19:28:47]SAM_PROTO_GetShiftState done [19:28:47]FM_GetShiftState done [19:28:47]req_shift_opened done [19:28:47]requested_item shift.open_date is exist - process it [19:28:47]req_shift_open_date [19:28:47]req_shift_open_date done [19:28:47]produce_requested_data done [19:28:47]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165431,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [19:28:47]process_action_free close_receipt [19:28:47]json_value_free [19:28:47]json_value_free done [19:28:47]process_json_proto returns [19:28:47]Send response to host [19:28:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165431,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [19:28:47]free response buf [19:28:47]execute_script done [19:28:47]execute_script returns [19:28:47]free content buf [19:28:47]Sock 9.Close socket [19:28:47]Sock 9.Thread stoped [19:28:51]OFD Sender: No OFD packet to send [19:28:56]OFD Sender: No OFD packet to send [19:29:01]OFD Sender: No OFD packet to send [19:29:06]OFD Sender: No OFD packet to send [19:29:11]OFD Sender: No OFD packet to send [19:29:15]accept exits with 7 [19:29:15]New connection [19:29:15]New thread 3067190628 created [19:29:15]Thread 3067333988 joined [19:29:15]Waiting for new connection... [19:29:15] Sock 7.Parse request [19:29:15]Sock 7.Check first char [19:29:15]Sock 7.First char is OK [19:29:15]request: POST /json_proto HTTP/1.0 [19:29:15]Method: POST [19:29:15]URL: /json_proto [19:29:15]Method is POST - this is cgi request [19:29:15]url: /json_proto [19:29:15]query_string will be loaded in cgi processing [19:29:15]execute_cgi json_proto POST (null) [19:29:15]execute_cgi path=json_proto method=POST [19:29:15]POST find Content-Length [19:29:15]Host: 172.17.56.4:8080 [19:29:15]Content-Length: 787 [19:29:15]Content-Type: application/json [19:29:15] [19:29:15]POST finish read [19:29:15]Found Content-Length = 787 [19:29:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459548", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 9.830, "sum" : 700.49, "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 700.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:29:15]execute_script... [19:29:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459548", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 9.830, "sum" : 700.49, "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 700.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:29:15]POST & json_proto [19:29:15]process_json_proto [19:29:15]json parsed OK: [19:29:15]protocol is kg_v1.0 [19:29:15]action value=close_receipt [19:29:15]process_action close_receipt [19:29:15]cmd_close_receipt [19:29:15]MH_GetDate [19:29:15]Write to MH i2c: F0 00 00 E9 04 DC [19:29:15]Write i2c OK [19:29:15]MH_I2C_Read... [19:29:15]Read from MH i2c: F0 [19:29:15]MH_I2C_Read... [19:29:15]Read from MH i2c: F0 09 00 [19:29:15]MH_I2C_Read... [19:29:15]Read from MH i2c: F0 09 00 E9 04 00 8C 78 95 66 C9 DC B2 64 9F [19:29:15]GetLastDocTimeStamp 1721071723 [19:29:15]current date 1721071756 [19:29:15]FM_GetShiftState [19:29:15]SAM_PROTO_GetShiftState [19:29:15]wFMCommunicate request_size=4 [19:29:15]MH_SAM_APDU [19:29:15]CAPDU: 80 13 01 00 [19:29:15]Write to MH i2c: E2 08 00 EA 04 80 13 01 00 00 00 00 00 6B [19:29:15]Write i2c OK [19:29:15]MH_I2C_Read... [19:29:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:29:15]Read from MH i2c: E2 [19:29:15]MH_I2C_Read... [19:29:15]Read from MH i2c: E2 0E 00 [19:29:15]MH_I2C_Read... [19:29:15]Read from MH i2c: E2 0E 00 EA 04 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 44 [19:29:15]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [19:29:15]wFMCommunicate OK [19:29:15]SAM_PROTO_GetShiftState done [19:29:15]FM_GetShiftState done [19:29:15]opened in 1721003876 [19:29:15]opened+sec_in_day 1721090276 [19:29:15]quantity*price = 70048 [19:29:15]sum+1 = 70050 [19:29:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.49 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 0.00 Безнал.: 700.49 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 305 15.07.2024 19:29 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 165432 ФПД: 84510803631001 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T192916&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165432&fm=84510803631001&tin=02508201610067®Number=0000000000090829&sum=70049 [19:29:16]StoreToDocumentArchive [19:29:16]shift 448 fd 165432 [19:29:16]save to /storage/0448/doc_00165432 [19:29:16]save last doc name /storage/0448/doc_00165432 to /storage/kkm_last_doc_name [19:29:16]save OK [19:29:16]Clear old archive folders... [19:29:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:29:16]tlvbuf is 01B95010 [19:29:16]SAM_PROTO_ClearQueue [19:29:16]wFMCommunicate request_size=4 [19:29:16]MH_SAM_APDU [19:29:16]CAPDU: 80 09 00 00 [19:29:16]Write to MH i2c: E2 08 00 F7 04 80 09 00 00 00 00 00 00 6D [19:29:16]Write i2c OK [19:29:16]MH_I2C_Read... [19:29:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:29:16]Read from MH i2c: E2 [19:29:16]MH_I2C_Read... [19:29:16]Read from MH i2c: E2 03 00 [19:29:16]MH_I2C_Read... [19:29:16]Read from MH i2c: E2 03 00 F7 04 00 90 00 6F [19:29:16]RAPDU: 90 00 [19:29:16]wFMCommunicate OK [19:29:16]SAM_PROTO_ClearQueue done [19:29:16]KKMCreateOFDPacket [19:29:16]OFDProtocolAddRootSTLVToBuf [19:29:16]FM_MakeSignedData [19:29:16]FM_MakeSignedData [19:29:16]SAM_PROTO_SignData [19:29:16]wFMCommunicate request_size=4 [19:29:16]MH_SAM_APDU [19:29:16]CAPDU: 80 0D 01 02 [19:29:16]Write to MH i2c: E2 08 00 F8 04 80 0D 01 02 00 00 00 00 75 [19:29:16]Write i2c OK [19:29:16]MH_I2C_Read... [19:29:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:29:16]Read from MH i2c: E2 [19:29:16]MH_I2C_Read... [19:29:16]Read from MH i2c: E2 03 00 [19:29:16]MH_I2C_Read... [19:29:16]Read from MH i2c: E2 03 00 F8 04 00 90 00 70 [19:29:16]RAPDU: 90 00 [19:29:16]wFMCommunicate OK [19:29:16]wFMCommunicate request_size=255 [19:29:16]MH_SAM_APDU [19:29:16]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 66 26 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 A1 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A1 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 0F 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A1 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 8C 78 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 38 86 02 00 35 04 06 00 4C DC B4 6E [19:29:16]Write to MH i2c: E2 02 01 F9 04 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 66 26 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 A1 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A1 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 0F 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A1 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 8C 78 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 38 86 02 00 35 04 06 00 4C DC B4 6E 00 00 04 [19:29:17]Write i2c OK [19:29:17]MH_I2C_Read... [19:29:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:17]Read from MH i2c: E2 [19:29:17]MH_I2C_Read... [19:29:17]Read from MH i2c: E2 03 00 [19:29:17]MH_I2C_Read... [19:29:17]Read from MH i2c: E2 03 00 F9 04 00 90 00 71 [19:29:17]RAPDU: 90 00 [19:29:17]wFMCommunicate OK [19:29:17]wFMCommunicate request_size=7 [19:29:17]MH_SAM_APDU [19:29:17]CAPDU: 80 0D 02 02 02 1B 99 [19:29:17]Write to MH i2c: E2 0A 00 FA 04 80 0D 02 02 02 00 1B 99 00 00 30 [19:29:17]Write i2c OK [19:29:17]MH_I2C_Read... [19:29:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:17]Read from MH i2c: E2 [19:29:17]MH_I2C_Read... [19:29:17]Read from MH i2c: E2 03 00 [19:29:17]MH_I2C_Read... [19:29:17]Read from MH i2c: E2 03 00 FA 04 00 90 00 72 [19:29:17]RAPDU: 90 00 [19:29:17]wFMCommunicate OK [19:29:17]wFMCommunicate request_size=4 [19:29:17]MH_SAM_APDU [19:29:17]CAPDU: 80 0D 03 02 [19:29:17]Write to MH i2c: E2 08 00 FB 04 80 0D 03 02 00 00 00 00 7A [19:29:17]Write i2c OK [19:29:17]MH_I2C_Read... [19:29:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:29:17]Read from MH i2c: E2 [19:29:17]MH_I2C_Read... [19:29:17]Read from MH i2c: E2 0B 00 [19:29:17]MH_I2C_Read... [19:29:17]Read from MH i2c: E2 0B 00 FB 04 00 E9 A2 54 AF 2C 93 9E 57 90 00 BD [19:29:17]RAPDU: E9 A2 54 AF 2C 93 9E 57 90 00 [19:29:17]wFMCommunicate OK [19:29:17]SAM_PROTO_SignData done [19:29:17]FM_MakeSignedData done [19:29:17]CreateOFDProtocolMessage [19:29:17]wFMCommunicate request_size=4 [19:29:17]MH_SAM_APDU [19:29:17]CAPDU: 80 11 00 00 [19:29:17]Write to MH i2c: E2 08 00 FC 04 80 11 00 00 00 00 00 00 7A [19:29:17]Write i2c OK [19:29:17]MH_I2C_Read... [19:29:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:29:17]Read from MH i2c: E2 [19:29:17]MH_I2C_Read... [19:29:17]Read from MH i2c: E2 17 00 [19:29:17]MH_I2C_Read... [19:29:17]Read from MH i2c: E2 17 00 FC 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D0 [19:29:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:29:17]wFMCommunicate OK [19:29:17]CreateOFDProtocolMessage done [19:29:17]OFDSenderStorePacket 165432 [19:29:17]StoreOFDPacket docnum=165432 [19:29:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 93 7D 04 01 64 AA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 66 26 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 A1 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A1 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 0F 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A1 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 8C 78 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 38 86 02 00 35 04 06 00 4C DC B4 6E 1B 99 E9 A2 54 AF 2C 93 9E 57 [19:29:17]CheckFolder [19:29:17]dirname=/storage/ofd_packets [19:29:17]CheckFolder done [19:29:17]ProducePacketName [19:29:17]name=ofd_packets/00165432 [19:29:17]NVStorageSaveData ofd_packets/00165432 [19:29:17]File name is /storage/ofd_packets/00165432 [19:29:17]Write 298 bytes [19:29:17]NVStorageSaveData done [19:29:17]OFDSenderStorePacket done [19:29:17]KKMCreateOFDPacket done [19:29:17]NVStorageSaveData kkm_last_timestamp [19:29:17]File name is /storage/kkm_last_timestamp [19:29:17]Write 4 bytes [19:29:17]NVStorageSaveData done [19:29:17]ExternCall_PrintAddStr [19:29:17]wPrintStart [19:29:17]Write to MH i2c: 01 00 00 FD 04 01 [19:29:17]Write i2c OK [19:29:17]MH_I2C_Read... [19:29:17]Read from MH i2c: 01 [19:29:17]MH_I2C_Read... [19:29:17]Read from MH i2c: 01 07 00 [19:29:17]MH_I2C_Read... [19:29:17]Read from MH i2c: 01 07 00 FD 04 00 00 00 00 00 FF 0F 16 [19:29:17]RasterBufferAndPrint [19:29:17]line Счет N : (1)459548 [19:29:17]line ИНН: 02508201610067 [19:29:17]line Контрольно-Кассовый Чек [19:29:17]line ПРОДАЖА [19:29:17]line ТРК (МРК, ГНК) : 21 [19:29:17]line Товар: 2710194210 [19:29:17]line ДТ-К-5 [19:29:17]line 9.830 * 71.26 [19:29:17]line = 700.49 [19:29:17]line НДС 12% НСП 1% [19:29:17]line > о реализуемом товаре [19:29:17]line ИТОГО: 700.49 [19:29:17]line НСП 1% : 6.20 [19:29:17]line НДС 12% : 74.39 [19:29:17]line Наличными: 0.00 [19:29:17]line Безнал.: 700.49 [19:29:17]line Место: АЗС № 72 "Партнер Нефть" [19:29:17]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:29:17]line СНО: Общий режим [19:29:17]line Чек 305 15.07.2024 19:29 [19:29:17]line Смена: 448 ФФД: 1.0 [19:29:17]line ЗНМ: 0300000160 [19:29:17]line РНМ: 0000000000090829 [19:29:17]line Версия ККМ: 001 [19:29:17]line Платежная система: KICB Банк [19:29:17]line ФМ: 0000000000874718 [19:29:17]line ФД: 165432 [19:29:17]line ФПД: 84510803631001 [19:29:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T192916&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165432&fm=84510803631001&tin=02508201610067®Number=0000000000090829&sum=70049 [19:29:17]OFD Sender: Processing packet 165432 [packets to send 106, broken 105] [19:29:17]ProducePacketName [19:29:17]name=ofd_packets/00165432 [19:29:17]OFD Sender: To server: pG, [19:29:17]CommunicateWithHost lk.salyk.kg:30040 [19:29:17]ConnectInit lk.salyk.kg [19:29:17]written 0, free lines is 4095 [19:29:17]Connected sock=10 [19:29:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 93 7D 04 01 64 AA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 66 26 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 A1 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A1 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 0F 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A1 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 8C 78 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 38 86 02 00 35 04 06 00 4C DC B4 6E 1B 99 E9 A2 54 AF 2C 93 9E 57 [19:29:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 00 4B 47 00 70 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 38 86 02 00 F4 03 04 00 15 1F 95 66 B6 04 01 00 00 FA F2 66 55 E0 11 DD CB [19:29:18]CommunicateWithHost err = 0 [19:29:18]CheckOFDResponse [19:29:18]1017 (14) - 77093643461234 [19:29:18]1041 (16) - 0000000000874718 [19:29:18]1040 (4) - 165432 [19:29:18]1012 (4) - 15.07.2024 13:07 [19:29:18]1206 (1) - 0 [19:29:18]OFD Sender: Remove packet 165432 [19:29:18]ProducePacketName [19:29:18]name=ofd_packets/00165432 [19:29:18]NVStorageDeleteData [19:29:18]Write to MH i2c: 01 00 00 26 05 2B [19:29:18]Write i2c OK [19:29:18]MH_I2C_Read... [19:29:18]Read from MH i2c: 01 [19:29:18]MH_I2C_Read... [19:29:18]Read from MH i2c: 01 07 00 [19:29:18]MH_I2C_Read... [19:29:18]Read from MH i2c: 01 07 00 26 05 00 00 00 00 00 02 0D 41 [19:29:18]RasterBufferAndPrint [19:29:18]line [19:29:18]line [19:29:18]line [19:29:18]line [19:29:18]line [19:29:18]written 0, free lines is 3336 [19:29:18]MH_Cut [19:29:18]Write to MH i2c: D1 01 00 2D 05 01 04 [19:29:18]Write i2c OK [19:29:18]MH_I2C_Read... [19:29:18]Read from MH i2c: D1 [19:29:18]MH_I2C_Read... [19:29:18]Read from MH i2c: D1 01 00 [19:29:18]MH_I2C_Read... [19:29:18]Read from MH i2c: D1 01 00 2D 05 00 03 [19:29:18]Write to MH i2c: 01 00 00 2E 05 33 [19:29:18]Write i2c OK [19:29:18]MH_I2C_Read... [19:29:18]OFD Sender: No OFD packet to send [19:29:18]*** Cut start [19:29:18]*** Partial cut [19:29:18]*** CUTSNS_PIN = 1 [19:29:18]*** CUTSNS_PIN = 0 [19:29:19]*** Brake cut motor [19:29:19]Read from MH i2c: 01 [19:29:19]MH_I2C_Read... [19:29:19]*** Stop cut motor [19:29:19]*** Cut end [19:29:19]Read from MH i2c: 01 07 00 [19:29:19]MH_I2C_Read... [19:29:19]Read from MH i2c: 01 07 00 2E 05 00 00 00 00 00 FF 0F 48 [19:29:19]process_action close_receipt done [19:29:19]requested_data is exist [19:29:19]produce_requested_data [19:29:19]requested_item fm.sn is exist - process it [19:29:19]wFMCommunicate request_size=4 [19:29:19]MH_SAM_APDU [19:29:19]CAPDU: 80 11 00 00 [19:29:19]Write to MH i2c: E2 08 00 2F 05 80 11 00 00 00 00 00 00 AE [19:29:19]Write i2c OK [19:29:19]MH_I2C_Read... [19:29:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:29:19]Read from MH i2c: E2 [19:29:19]MH_I2C_Read... [19:29:19]Read from MH i2c: E2 17 00 [19:29:19]MH_I2C_Read... [19:29:19]Read from MH i2c: E2 17 00 2F 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 04 [19:29:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:29:19]wFMCommunicate OK [19:29:19]requested_item fd.num is exist - process it [19:29:19]SAM_PROTO_GetFieldsCounters [19:29:19]wFMCommunicate request_size=4 [19:29:19]MH_SAM_APDU [19:29:19]CAPDU: 80 13 00 00 [19:29:19]Write to MH i2c: E2 08 00 30 05 80 13 00 00 00 00 00 00 B1 [19:29:19]Write i2c OK [19:29:19]MH_I2C_Read... [19:29:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:29:19]Read from MH i2c: E2 [19:29:19]MH_I2C_Read... [19:29:19]Read from MH i2c: E2 62 00 [19:29:19]MH_I2C_Read... [19:29:19]Read from MH i2c: E2 62 00 30 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 38 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 32 01 00 00 19 04 04 00 00 00 00 00 90 00 EF [19:29:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 38 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 32 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:29:19]wFMCommunicate OK [19:29:19]SAM_PROTO_GetFieldsCounters done [19:29:19]requested_item shift.num is exist - process it [19:29:19]requested_item shift.opened is exist - process it [19:29:19]req_shift_opened [19:29:19]FM_GetShiftState [19:29:19]SAM_PROTO_GetShiftState [19:29:19]wFMCommunicate request_size=4 [19:29:19]MH_SAM_APDU [19:29:19]CAPDU: 80 13 01 00 [19:29:19]Write to MH i2c: E2 08 00 31 05 80 13 01 00 00 00 00 00 B3 [19:29:19]Write i2c OK [19:29:19]MH_I2C_Read... [19:29:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:29:19]Read from MH i2c: E2 [19:29:19]MH_I2C_Read... [19:29:19]Read from MH i2c: E2 0E 00 [19:29:19]MH_I2C_Read... [19:29:19]Read from MH i2c: E2 0E 00 31 05 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 8C [19:29:19]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [19:29:19]wFMCommunicate OK [19:29:19]SAM_PROTO_GetShiftState done [19:29:19]FM_GetShiftState done [19:29:19]req_shift_opened done [19:29:19]requested_item shift.open_date is exist - process it [19:29:19]req_shift_open_date [19:29:19]req_shift_open_date done [19:29:19]produce_requested_data done [19:29:19]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165432,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [19:29:19]process_action_free close_receipt [19:29:19]json_value_free [19:29:19]json_value_free done [19:29:19]process_json_proto returns [19:29:19]Send response to host [19:29:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165432,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [19:29:19]free response buf [19:29:19]execute_script done [19:29:19]execute_script returns [19:29:19]free content buf [19:29:19]Sock 7.Close socket [19:29:19]Sock 7.Thread stoped [19:29:23]OFD Sender: No OFD packet to send [19:29:28]OFD Sender: No OFD packet to send [19:29:33]OFD Sender: No OFD packet to send [19:29:38]OFD Sender: No OFD packet to send [19:29:43]OFD Sender: No OFD packet to send [19:29:48]OFD Sender: No OFD packet to send [19:29:53]OFD Sender: No OFD packet to send [19:29:58]OFD Sender: No OFD packet to send [19:30:03]OFD Sender: No OFD packet to send [19:30:08]OFD Sender: No OFD packet to send [19:30:13]OFD Sender: No OFD packet to send [19:30:18]OFD Sender: No OFD packet to send [19:30:23]OFD Sender: No OFD packet to send [19:30:28]OFD Sender: No OFD packet to send [19:30:33]OFD Sender: No OFD packet to send [19:30:38]OFD Sender: No OFD packet to send [19:30:43]OFD Sender: No OFD packet to send [19:30:48]OFD Sender: No OFD packet to send [19:30:53]OFD Sender: No OFD packet to send [19:30:58]OFD Sender: No OFD packet to send [19:31:03]OFD Sender: No OFD packet to send [19:31:08]OFD Sender: No OFD packet to send [19:31:13]OFD Sender: No OFD packet to send [19:31:18]OFD Sender: No OFD packet to send [19:31:23]OFD Sender: No OFD packet to send [19:31:28]OFD Sender: No OFD packet to send [19:31:33]OFD Sender: No OFD packet to send [19:31:38]OFD Sender: No OFD packet to send [19:31:39]accept exits with 9 [19:31:39]New connection [19:31:39]New thread 3067333988 created [19:31:39]Thread 3067190628 joined [19:31:39]Waiting for new connection... [19:31:39] Sock 9.Parse request [19:31:39]Sock 9.Check first char [19:31:39]Sock 9.First char is OK [19:31:39]request: POST /json_proto HTTP/1.0 [19:31:39]Method: POST [19:31:39]URL: /json_proto [19:31:39]Method is POST - this is cgi request [19:31:39]url: /json_proto [19:31:39]query_string will be loaded in cgi processing [19:31:39]execute_cgi json_proto POST (null) [19:31:39]execute_cgi path=json_proto method=POST [19:31:39]POST find Content-Length [19:31:39]Host: 172.17.56.4:8080 [19:31:39]Content-Length: 673 [19:31:39]Content-Type: application/json [19:31:39] [19:31:39]POST finish read [19:31:39]Found Content-Length = 673 [19:31:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459549", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.010, "sum" : 66.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 66.00, "total" : 66.00, "payments": [ { "type": 0, "sum" : 66.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:31:39]execute_script... [19:31:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459549", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.010, "sum" : 66.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 66.00, "total" : 66.00, "payments": [ { "type": 0, "sum" : 66.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:31:39]POST & json_proto [19:31:39]process_json_proto [19:31:39]json parsed OK: [19:31:39]protocol is kg_v1.0 [19:31:39]action value=close_receipt [19:31:39]process_action close_receipt [19:31:39]cmd_close_receipt [19:31:39]MH_GetDate [19:31:39]Write to MH i2c: F0 00 00 32 05 26 [19:31:39]Write i2c OK [19:31:39]MH_I2C_Read... [19:31:39]Read from MH i2c: F0 [19:31:39]MH_I2C_Read... [19:31:39]Read from MH i2c: F0 09 00 [19:31:39]MH_I2C_Read... [19:31:39]Read from MH i2c: F0 09 00 32 05 00 1B 79 95 66 C9 DC B2 64 79 [19:31:39]GetLastDocTimeStamp 1721071756 [19:31:39]current date 1721071899 [19:31:39]FM_GetShiftState [19:31:39]SAM_PROTO_GetShiftState [19:31:39]wFMCommunicate request_size=4 [19:31:39]MH_SAM_APDU [19:31:39]CAPDU: 80 13 01 00 [19:31:39]Write to MH i2c: E2 08 00 33 05 80 13 01 00 00 00 00 00 B5 [19:31:39]Write i2c OK [19:31:39]MH_I2C_Read... [19:31:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:31:39]Read from MH i2c: E2 [19:31:39]MH_I2C_Read... [19:31:39]Read from MH i2c: E2 0E 00 [19:31:39]MH_I2C_Read... [19:31:39]Read from MH i2c: E2 0E 00 33 05 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 8E [19:31:39]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [19:31:39]wFMCommunicate OK [19:31:39]SAM_PROTO_GetShiftState done [19:31:39]FM_GetShiftState done [19:31:39]opened in 1721003876 [19:31:39]opened+sec_in_day 1721090276 [19:31:39]quantity*price = 6645 [19:31:39]sum+1 = 6647 [19:31:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 66.00 Внесено: 66.00 СДАЧА: 0.00 НСП 1% : 0.59 НДС 12% : 7.06 Наличными: 66.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 306 15.07.2024 19:31 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165433 ФПД: 214466248369612 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T193139&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165433&fm=214466248369612&tin=02508201610067®Number=0000000000090829&sum=6600 [19:31:40]StoreToDocumentArchive [19:31:40]shift 448 fd 165433 [19:31:40]save to /storage/0448/doc_00165433 [19:31:40]save last doc name /storage/0448/doc_00165433 to /storage/kkm_last_doc_name [19:31:40]save OK [19:31:40]Clear old archive folders... [19:31:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:31:40]tlvbuf is 01BA25A0 [19:31:40]SAM_PROTO_ClearQueue [19:31:40]wFMCommunicate request_size=4 [19:31:40]MH_SAM_APDU [19:31:40]CAPDU: 80 09 00 00 [19:31:40]Write to MH i2c: E2 08 00 40 05 80 09 00 00 00 00 00 00 B7 [19:31:40]Write i2c OK [19:31:40]MH_I2C_Read... [19:31:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:31:40]Read from MH i2c: E2 [19:31:40]MH_I2C_Read... [19:31:40]Read from MH i2c: E2 03 00 [19:31:40]MH_I2C_Read... [19:31:40]Read from MH i2c: E2 03 00 40 05 00 90 00 B9 [19:31:40]RAPDU: 90 00 [19:31:40]wFMCommunicate OK [19:31:40]SAM_PROTO_ClearQueue done [19:31:40]KKMCreateOFDPacket [19:31:40]OFDProtocolAddRootSTLVToBuf [19:31:40]FM_MakeSignedData [19:31:40]FM_MakeSignedData [19:31:40]SAM_PROTO_SignData [19:31:40]wFMCommunicate request_size=4 [19:31:40]MH_SAM_APDU [19:31:40]CAPDU: 80 0D 01 02 [19:31:40]Write to MH i2c: E2 08 00 41 05 80 0D 01 02 00 00 00 00 BF [19:31:40]Write i2c OK [19:31:40]MH_I2C_Read... [19:31:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:31:40]Read from MH i2c: E2 [19:31:40]MH_I2C_Read... [19:31:40]Read from MH i2c: E2 03 00 [19:31:40]MH_I2C_Read... [19:31:40]Read from MH i2c: E2 03 00 41 05 00 90 00 BA [19:31:40]RAPDU: 90 00 [19:31:40]wFMCommunicate OK [19:31:40]wFMCommunicate request_size=255 [19:31:40]MH_SAM_APDU [19:31:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 03 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 F6 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 02 00 00 00 00 07 04 06 00 C8 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 1B 79 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 39 86 02 00 35 04 06 00 C3 [19:31:40]Write to MH i2c: E2 02 01 42 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 03 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 F6 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 02 00 00 00 00 07 04 06 00 C8 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 1B 79 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 39 86 02 00 35 04 06 00 C3 00 00 68 [19:31:40]Write i2c OK [19:31:40]MH_I2C_Read... [19:31:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:31:40]Read from MH i2c: E2 [19:31:40]MH_I2C_Read... [19:31:40]Read from MH i2c: E2 03 00 [19:31:40]MH_I2C_Read... [19:31:40]Read from MH i2c: E2 03 00 42 05 00 90 00 BB [19:31:40]RAPDU: 90 00 [19:31:40]wFMCommunicate OK [19:31:40]wFMCommunicate request_size=10 [19:31:40]MH_SAM_APDU [19:31:40]CAPDU: 80 0D 02 02 05 0E 50 8C E5 CC [19:31:40]Write to MH i2c: E2 0D 00 43 05 80 0D 02 02 05 00 0E 50 8C E5 CC 00 00 67 [19:31:40]Write i2c OK [19:31:40]MH_I2C_Read... [19:31:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:31:40]Read from MH i2c: E2 [19:31:40]MH_I2C_Read... [19:31:40]Read from MH i2c: E2 03 00 [19:31:40]MH_I2C_Read... [19:31:40]Read from MH i2c: E2 03 00 43 05 00 90 00 BC [19:31:40]RAPDU: 90 00 [19:31:40]wFMCommunicate OK [19:31:40]wFMCommunicate request_size=4 [19:31:40]MH_SAM_APDU [19:31:40]CAPDU: 80 0D 03 02 [19:31:40]Write to MH i2c: E2 08 00 44 05 80 0D 03 02 00 00 00 00 C4 [19:31:40]Write i2c OK [19:31:40]MH_I2C_Read... [19:31:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:31:40]Read from MH i2c: E2 [19:31:40]MH_I2C_Read... [19:31:40]Read from MH i2c: E2 0B 00 [19:31:40]MH_I2C_Read... [19:31:40]Read from MH i2c: E2 0B 00 44 05 00 79 51 8C AE F7 89 E1 70 90 00 9A [19:31:40]RAPDU: 79 51 8C AE F7 89 E1 70 90 00 [19:31:40]wFMCommunicate OK [19:31:40]SAM_PROTO_SignData done [19:31:40]FM_MakeSignedData done [19:31:40]CreateOFDProtocolMessage [19:31:40]wFMCommunicate request_size=4 [19:31:40]MH_SAM_APDU [19:31:40]CAPDU: 80 11 00 00 [19:31:40]Write to MH i2c: E2 08 00 45 05 80 11 00 00 00 00 00 00 C4 [19:31:40]Write i2c OK [19:31:40]MH_I2C_Read... [19:31:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:31:40]Read from MH i2c: E2 [19:31:40]MH_I2C_Read... [19:31:40]Read from MH i2c: E2 17 00 [19:31:40]MH_I2C_Read... [19:31:40]Read from MH i2c: E2 17 00 45 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1A [19:31:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:31:40]wFMCommunicate OK [19:31:40]CreateOFDProtocolMessage done [19:31:40]OFDSenderStorePacket 165433 [19:31:40]StoreOFDPacket docnum=165433 [19:31:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 96 5F 07 01 82 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 F2 03 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 F6 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 02 00 00 00 00 07 04 06 00 C8 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 1B 79 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 39 86 02 00 35 04 06 00 C3 0E 50 8C E5 CC 79 51 8C AE F7 89 E1 70 [19:31:40]CheckFolder [19:31:40]dirname=/storage/ofd_packets [19:31:40]CheckFolder done [19:31:40]ProducePacketName [19:31:40]name=ofd_packets/00165433 [19:31:40]NVStorageSaveData ofd_packets/00165433 [19:31:40]File name is /storage/ofd_packets/00165433 [19:31:40]Write 301 bytes [19:31:40]NVStorageSaveData done [19:31:40]OFDSenderStorePacket done [19:31:40]KKMCreateOFDPacket done [19:31:40]NVStorageSaveData kkm_last_timestamp [19:31:40]File name is /storage/kkm_last_timestamp [19:31:40]Write 4 bytes [19:31:40]NVStorageSaveData done [19:31:40]ExternCall_PrintAddStr [19:31:40]wPrintStart [19:31:40]Write to MH i2c: 01 00 00 46 05 4B [19:31:40]OFD Sender: Processing packet 165433 [packets to send 106, broken 105] [19:31:40]ProducePacketName [19:31:40]name=ofd_packets/00165433 [19:31:40]OFD Sender: To server: pG, [19:31:40]CommunicateWithHost lk.salyk.kg:30040 [19:31:40]ConnectInit lk.salyk.kg [19:31:40]Write i2c OK [19:31:40]MH_I2C_Read... [19:31:40]Read from MH i2c: 01 [19:31:40]MH_I2C_Read... [19:31:40]Read from MH i2c: 01 07 00 [19:31:40]MH_I2C_Read... [19:31:40]Read from MH i2c: 01 07 00 46 05 00 00 00 00 00 FF 0F 60 [19:31:40]RasterBufferAndPrint [19:31:40]line Счет N : (1)459549 [19:31:40]line ИНН: 02508201610067 [19:31:40]line Контрольно-Кассовый Чек [19:31:40]line ПРОДАЖА [19:31:40]line ТРК (МРК, ГНК) : 12 [19:31:40]line Товар: 2710124130 [19:31:40]line Аи-92-К-5 [19:31:40]line 1.010 * 65.80 [19:31:40]line = 66.46 [19:31:40]line НДС 12% НСП 1% [19:31:40]line > о реализуемом товаре [19:31:40]line ОКРУГЛЕНИЕ: -0.46 [19:31:40]line ИТОГО: 66.00 [19:31:40]line Внесено: 66.00 [19:31:40]line СДАЧА: 0.00 [19:31:40]line НСП 1% : 0.59 [19:31:40]line НДС 12% : 7.06 [19:31:40]line Наличными: 66.00 [19:31:40]line Безнал.: 0.00 [19:31:40]line Место: АЗС № 72 "Партнер Нефть" [19:31:40]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:31:40]line СНО: Общий режим [19:31:40]line Чек 306 15.07.2024 19:31 [19:31:40]line Смена: 448 ФФД: 1.0 [19:31:40]line ЗНМ: 0300000160 [19:31:40]line РНМ: 0000000000090829 [19:31:40]line Версия ККМ: 001 [19:31:40]line ФМ: 0000000000874718 [19:31:40]line ФД: 165433 [19:31:40]line ФПД: 214466248369612 [19:31:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T193139&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165433&fm=214466248369612&tin=02508201610067®Number=0000000000090829&sum=6600 [19:31:41]Connected sock=10 [19:31:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 96 5F 07 01 82 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 F2 03 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 F6 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 02 00 00 00 00 07 04 06 00 C8 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 1B 79 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 39 86 02 00 35 04 06 00 C3 0E 50 8C E5 CC 79 51 8C AE F7 89 E1 70 [19:31:41]written 0, free lines is 4095 [19:31:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 F7 5D 47 00 91 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 37 31 38 10 04 04 00 39 86 02 00 F4 03 04 00 A5 1F 95 66 B6 04 01 00 00 F0 0F 1C D2 DE D4 F4 25 [19:31:41]CommunicateWithHost err = 0 [19:31:41]CheckOFDResponse [19:31:41]1017 (14) - 77093643461234 [19:31:41]1041 (16) - 0000000000874718 [19:31:41]1040 (4) - 165433 [19:31:41]1012 (4) - 15.07.2024 13:09 [19:31:41]1206 (1) - 0 [19:31:41]OFD Sender: Remove packet 165433 [19:31:41]ProducePacketName [19:31:41]name=ofd_packets/00165433 [19:31:41]NVStorageDeleteData [19:31:41]Write to MH i2c: 01 00 00 70 05 75 [19:31:41]Write i2c OK [19:31:41]MH_I2C_Read... [19:31:41]Read from MH i2c: 01 [19:31:41]MH_I2C_Read... [19:31:41]Read from MH i2c: 01 07 00 [19:31:41]MH_I2C_Read... [19:31:41]Read from MH i2c: 01 07 00 70 05 00 00 00 00 00 FD 0C 85 [19:31:41]RasterBufferAndPrint [19:31:41]line [19:31:41]line [19:31:41]line [19:31:41]line [19:31:41]line [19:31:41]written 0, free lines is 3334 [19:31:41]MH_Cut [19:31:41]Write to MH i2c: D1 01 00 77 05 01 4E [19:31:41]Write i2c OK [19:31:41]MH_I2C_Read... [19:31:41]Read from MH i2c: D1 [19:31:41]MH_I2C_Read... [19:31:41]Read from MH i2c: D1 01 00 [19:31:41]MH_I2C_Read... [19:31:41]Read from MH i2c: D1 01 00 77 05 00 4D [19:31:41]Write to MH i2c: 01 00 00 78 05 7D [19:31:41]Write i2c OK [19:31:41]MH_I2C_Read... [19:31:41]OFD Sender: No OFD packet to send [19:31:42]*** Cut start [19:31:42]*** Partial cut [19:31:42]*** CUTSNS_PIN = 1 [19:31:42]*** CUTSNS_PIN = 0 [19:31:42]*** Brake cut motor [19:31:42]Read from MH i2c: 01 [19:31:42]MH_I2C_Read... [19:31:42]*** Stop cut motor [19:31:42]*** Cut end [19:31:42]Read from MH i2c: 01 07 00 [19:31:42]MH_I2C_Read... [19:31:42]Read from MH i2c: 01 07 00 78 05 00 00 00 00 00 FF 0F 92 [19:31:42]process_action close_receipt done [19:31:42]requested_data is exist [19:31:42]produce_requested_data [19:31:42]requested_item fm.sn is exist - process it [19:31:42]wFMCommunicate request_size=4 [19:31:42]MH_SAM_APDU [19:31:42]CAPDU: 80 11 00 00 [19:31:42]Write to MH i2c: E2 08 00 79 05 80 11 00 00 00 00 00 00 F8 [19:31:42]Write i2c OK [19:31:42]MH_I2C_Read... [19:31:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:31:42]Read from MH i2c: E2 [19:31:42]MH_I2C_Read... [19:31:42]Read from MH i2c: E2 17 00 [19:31:42]MH_I2C_Read... [19:31:42]Read from MH i2c: E2 17 00 79 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4E [19:31:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:31:42]wFMCommunicate OK [19:31:42]requested_item fd.num is exist - process it [19:31:42]SAM_PROTO_GetFieldsCounters [19:31:42]wFMCommunicate request_size=4 [19:31:42]MH_SAM_APDU [19:31:42]CAPDU: 80 13 00 00 [19:31:42]Write to MH i2c: E2 08 00 7A 05 80 13 00 00 00 00 00 00 FB [19:31:42]Write i2c OK [19:31:42]MH_I2C_Read... [19:31:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:31:43]Read from MH i2c: E2 [19:31:43]MH_I2C_Read... [19:31:43]Read from MH i2c: E2 62 00 [19:31:43]MH_I2C_Read... [19:31:43]Read from MH i2c: E2 62 00 7A 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 39 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 32 01 00 00 5E 04 04 00 32 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 3D [19:31:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 39 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 32 01 00 00 5E 04 04 00 32 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:31:43]wFMCommunicate OK [19:31:43]SAM_PROTO_GetFieldsCounters done [19:31:43]requested_item shift.num is exist - process it [19:31:43]requested_item shift.opened is exist - process it [19:31:43]req_shift_opened [19:31:43]FM_GetShiftState [19:31:43]SAM_PROTO_GetShiftState [19:31:43]wFMCommunicate request_size=4 [19:31:43]MH_SAM_APDU [19:31:43]CAPDU: 80 13 01 00 [19:31:43]Write to MH i2c: E2 08 00 7B 05 80 13 01 00 00 00 00 00 FD [19:31:43]Write i2c OK [19:31:43]MH_I2C_Read... [19:31:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:31:43]Read from MH i2c: E2 [19:31:43]MH_I2C_Read... [19:31:43]Read from MH i2c: E2 0E 00 [19:31:43]MH_I2C_Read... [19:31:43]Read from MH i2c: E2 0E 00 7B 05 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 D6 [19:31:43]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [19:31:43]wFMCommunicate OK [19:31:43]SAM_PROTO_GetShiftState done [19:31:43]FM_GetShiftState done [19:31:43]req_shift_opened done [19:31:43]requested_item shift.open_date is exist - process it [19:31:43]req_shift_open_date [19:31:43]req_shift_open_date done [19:31:43]produce_requested_data done [19:31:43]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165433,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [19:31:43]process_action_free close_receipt [19:31:43]json_value_free [19:31:43]json_value_free done [19:31:43]process_json_proto returns [19:31:43]Send response to host [19:31:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165433,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [19:31:43]free response buf [19:31:43]execute_script done [19:31:43]execute_script returns [19:31:43]free content buf [19:31:43]Sock 9.Close socket [19:31:43]Sock 9.Thread stoped [19:31:46]OFD Sender: No OFD packet to send [19:31:51]OFD Sender: No OFD packet to send [19:31:56]OFD Sender: No OFD packet to send [19:32:01]OFD Sender: No OFD packet to send [19:32:06]OFD Sender: No OFD packet to send [19:32:11]OFD Sender: No OFD packet to send [19:32:16]OFD Sender: No OFD packet to send [19:32:21]OFD Sender: No OFD packet to send [19:32:26]OFD Sender: No OFD packet to send [19:32:31]OFD Sender: No OFD packet to send [19:32:36]OFD Sender: No OFD packet to send [19:32:41]OFD Sender: No OFD packet to send [19:32:46]OFD Sender: No OFD packet to send [19:32:51]OFD Sender: No OFD packet to send [19:32:56]OFD Sender: No OFD packet to send [19:33:01]OFD Sender: No OFD packet to send [19:33:06]OFD Sender: No OFD packet to send [19:33:11]OFD Sender: No OFD packet to send [19:33:16]OFD Sender: No OFD packet to send [19:33:21]OFD Sender: No OFD packet to send [19:33:27]OFD Sender: No OFD packet to send [19:33:32]OFD Sender: No OFD packet to send [19:33:37]OFD Sender: No OFD packet to send [19:33:42]OFD Sender: No OFD packet to send [19:33:47]OFD Sender: No OFD packet to send [19:33:52]OFD Sender: No OFD packet to send [19:33:57]OFD Sender: No OFD packet to send [19:34:02]OFD Sender: No OFD packet to send [19:34:07]OFD Sender: No OFD packet to send [19:34:12]OFD Sender: No OFD packet to send [19:34:17]OFD Sender: No OFD packet to send [19:34:18]accept exits with 7 [19:34:18]New connection [19:34:18]New thread 3067190628 created [19:34:18]Thread 3067333988 joined [19:34:18]Waiting for new connection... [19:34:18] Sock 7.Parse request [19:34:18]Sock 7.Check first char [19:34:18]Sock 7.First char is OK [19:34:18]request: POST /json_proto HTTP/1.0 [19:34:18]Method: POST [19:34:18]URL: /json_proto [19:34:18]Method is POST - this is cgi request [19:34:18]url: /json_proto [19:34:18]query_string will be loaded in cgi processing [19:34:18]execute_cgi json_proto POST (null) [19:34:18]execute_cgi path=json_proto method=POST [19:34:18]POST find Content-Length [19:34:18]Host: 172.17.56.4:8080 [19:34:18]Content-Length: 677 [19:34:18]Content-Type: application/json [19:34:18] [19:34:18]POST finish read [19:34:18]Found Content-Length = 677 [19:34:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459550", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.500, "sum" : 230.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 230.00, "total" : 230.00, "payments": [ { "type": 0, "sum" : 230.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:18]execute_script... [19:34: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)459550", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.500, "sum" : 230.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 230.00, "total" : 230.00, "payments": [ { "type": 0, "sum" : 230.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:18]POST & json_proto [19:34:18]process_json_proto [19:34:18]json parsed OK: [19:34:18]protocol is kg_v1.0 [19:34:18]action value=close_receipt [19:34:18]process_action close_receipt [19:34:18]cmd_close_receipt [19:34:18]MH_GetDate [19:34:18]Write to MH i2c: F0 00 00 7C 05 70 [19:34:18]Write i2c OK [19:34:18]MH_I2C_Read... [19:34:18]Read from MH i2c: F0 [19:34:18]MH_I2C_Read... [19:34:18]Read from MH i2c: F0 09 00 [19:34:18]MH_I2C_Read... [19:34:18]Read from MH i2c: F0 09 00 7C 05 00 BA 79 95 66 C9 DC B2 64 62 [19:34:18]GetLastDocTimeStamp 1721071899 [19:34:18]current date 1721072058 [19:34:18]FM_GetShiftState [19:34:18]SAM_PROTO_GetShiftState [19:34:18]wFMCommunicate request_size=4 [19:34:18]MH_SAM_APDU [19:34:18]CAPDU: 80 13 01 00 [19:34:18]Write to MH i2c: E2 08 00 7D 05 80 13 01 00 00 00 00 00 FF [19:34:18]Write i2c OK [19:34:18]MH_I2C_Read... [19:34:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:18]Read from MH i2c: E2 [19:34:18]MH_I2C_Read... [19:34:18]Read from MH i2c: E2 0E 00 [19:34:18]MH_I2C_Read... [19:34:18]Read from MH i2c: E2 0E 00 7D 05 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 D8 [19:34:18]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [19:34:18]wFMCommunicate OK [19:34:18]SAM_PROTO_GetShiftState done [19:34:18]FM_GetShiftState done [19:34:18]opened in 1721003876 [19:34:18]opened+sec_in_day 1721090276 [19:34:18]quantity*price = 23030 [19:34:18]sum+1 = 23031 [19:34:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 230.00 Внесено: 230.00 СДАЧА: 0.00 НСП 1% : 2.04 НДС 12% : 24.46 Наличными: 230.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 307 15.07.2024 19:34 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165434 ФПД: 193284353289767 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T193418&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165434&fm=193284353289767&tin=02508201610067®Number=0000000000090829&sum=23000 [19:34:19]StoreToDocumentArchive [19:34:19]shift 448 fd 165434 [19:34:19]save to /storage/0448/doc_00165434 [19:34:19]save last doc name /storage/0448/doc_00165434 to /storage/kkm_last_doc_name [19:34:19]save OK [19:34:19]Clear old archive folders... [19:34:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:34:19]tlvbuf is 01B3F460 [19:34:19]SAM_PROTO_ClearQueue [19:34:19]wFMCommunicate request_size=4 [19:34:19]MH_SAM_APDU [19:34:19]CAPDU: 80 09 00 00 [19:34:19]Write to MH i2c: E2 08 00 8A 05 80 09 00 00 00 00 00 00 01 [19:34:19]Write i2c OK [19:34:19]MH_I2C_Read... [19:34:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:34:19]Read from MH i2c: E2 [19:34:19]MH_I2C_Read... [19:34:19]Read from MH i2c: E2 03 00 [19:34:19]MH_I2C_Read... [19:34:19]Read from MH i2c: E2 03 00 8A 05 00 90 00 03 [19:34:19]RAPDU: 90 00 [19:34:19]wFMCommunicate OK [19:34:19]SAM_PROTO_ClearQueue done [19:34:19]KKMCreateOFDPacket [19:34:19]OFDProtocolAddRootSTLVToBuf [19:34:19]FM_MakeSignedData [19:34:19]FM_MakeSignedData [19:34:19]SAM_PROTO_SignData [19:34:19]wFMCommunicate request_size=4 [19:34:19]MH_SAM_APDU [19:34:19]CAPDU: 80 0D 01 02 [19:34:19]Write to MH i2c: E2 08 00 8B 05 80 0D 01 02 00 00 00 00 09 [19:34:19]Write i2c OK [19:34:19]MH_I2C_Read... [19:34:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:34:19]Read from MH i2c: E2 [19:34:19]MH_I2C_Read... [19:34:19]Read from MH i2c: E2 03 00 [19:34:19]MH_I2C_Read... [19:34:19]Read from MH i2c: E2 03 00 8B 05 00 90 00 04 [19:34:19]RAPDU: 90 00 [19:34:19]wFMCommunicate OK [19:34:19]wFMCommunicate request_size=255 [19:34:19]MH_SAM_APDU [19:34: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 AC 0D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 F6 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 BA 79 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3A 86 02 00 35 04 06 00 AF [19:34:19]Write to MH i2c: E2 02 01 8C 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AC 0D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 F6 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 BA 79 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3A 86 02 00 35 04 06 00 AF 00 00 47 [19:34:19]Write i2c OK [19:34:19]MH_I2C_Read... [19:34:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:19]Read from MH i2c: E2 [19:34:19]MH_I2C_Read... [19:34:19]Read from MH i2c: E2 03 00 [19:34:19]MH_I2C_Read... [19:34:19]Read from MH i2c: E2 03 00 8C 05 00 90 00 05 [19:34:19]RAPDU: 90 00 [19:34:19]wFMCommunicate OK [19:34:19]wFMCommunicate request_size=10 [19:34:19]MH_SAM_APDU [19:34:19]CAPDU: 80 0D 02 02 05 CA 85 37 EE 27 [19:34:19]Write to MH i2c: E2 0D 00 8D 05 80 0D 02 02 05 00 CA 85 37 EE 27 00 00 B1 [19:34:19]Write i2c OK [19:34:19]MH_I2C_Read... [19:34:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:19]Read from MH i2c: E2 [19:34:19]MH_I2C_Read... [19:34:19]Read from MH i2c: E2 03 00 [19:34:19]MH_I2C_Read... [19:34:19]Read from MH i2c: E2 03 00 8D 05 00 90 00 06 [19:34:19]RAPDU: 90 00 [19:34:19]wFMCommunicate OK [19:34:19]wFMCommunicate request_size=4 [19:34:19]MH_SAM_APDU [19:34:19]CAPDU: 80 0D 03 02 [19:34:19]Write to MH i2c: E2 08 00 8E 05 80 0D 03 02 00 00 00 00 0E [19:34:19]Write i2c OK [19:34:19]MH_I2C_Read... [19:34:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:34:19]Read from MH i2c: E2 [19:34:19]MH_I2C_Read... [19:34:19]Read from MH i2c: E2 0B 00 [19:34:19]MH_I2C_Read... [19:34:19]Read from MH i2c: E2 0B 00 8E 05 00 DB 53 63 CE B0 83 EB D0 90 00 5C [19:34:19]RAPDU: DB 53 63 CE B0 83 EB D0 90 00 [19:34:19]wFMCommunicate OK [19:34:19]SAM_PROTO_SignData done [19:34:19]FM_MakeSignedData done [19:34:19]CreateOFDProtocolMessage [19:34:19]wFMCommunicate request_size=4 [19:34:19]MH_SAM_APDU [19:34:19]CAPDU: 80 11 00 00 [19:34:19]Write to MH i2c: E2 08 00 8F 05 80 11 00 00 00 00 00 00 0E [19:34:19]Write i2c OK [19:34:19]MH_I2C_Read... [19:34:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:19]Read from MH i2c: E2 [19:34:19]MH_I2C_Read... [19:34:19]Read from MH i2c: E2 17 00 [19:34:19]MH_I2C_Read... [19:34:19]Read from MH i2c: E2 17 00 8F 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 64 [19:34:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:34:19]wFMCommunicate OK [19:34:19]CreateOFDProtocolMessage done [19:34:19]OFDSenderStorePacket 165434 [19:34:19]StoreOFDPacket docnum=165434 [19:34:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 60 6C 07 01 82 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 AC 0D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 F6 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 BA 79 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3A 86 02 00 35 04 06 00 AF CA 85 37 EE 27 DB 53 63 CE B0 83 EB D0 [19:34:19]CheckFolder [19:34:19]dirname=/storage/ofd_packets [19:34:19]CheckFolder done [19:34:19]ProducePacketName [19:34:19]name=ofd_packets/00165434 [19:34:19]NVStorageSaveData ofd_packets/00165434 [19:34:19]File name is /storage/ofd_packets/00165434 [19:34:19]Write 301 bytes [19:34:19]NVStorageSaveData done [19:34:19]OFDSenderStorePacket done [19:34:19]KKMCreateOFDPacket done [19:34:19]NVStorageSaveData kkm_last_timestamp [19:34:19]File name is /storage/kkm_last_timestamp [19:34:19]Write 4 bytes [19:34:19]NVStorageSaveData done [19:34:19]ExternCall_PrintAddStr [19:34:19]wPrintStart [19:34:19]Write to MH i2c: 01 00 00 90 05 95 [19:34:19]Write i2c OK [19:34:19]MH_I2C_Read... [19:34:19]Read from MH i2c: 01 [19:34:19]MH_I2C_Read... [19:34:19]Read from MH i2c: 01 07 00 [19:34:19]MH_I2C_Read... [19:34:19]Read from MH i2c: 01 07 00 90 05 00 00 00 00 00 FF 0F AA [19:34:19]RasterBufferAndPrint [19:34:19]line Счет N : (1)459550 [19:34:19]line ИНН: 02508201610067 [19:34:19]line Контрольно-Кассовый Чек [19:34:19]line ПРОДАЖА [19:34:19]line ТРК (МРК, ГНК) : 22 [19:34:19]line Товар: 2710124130 [19:34:19]line Аи-92-К-5 [19:34:19]line 3.500 * 65.80 [19:34:19]line = 230.30 [19:34:19]line НДС 12% НСП 1% [19:34:19]line > о реализуемом товаре [19:34:19]line ОКРУГЛЕНИЕ: -0.30 [19:34:19]line ИТОГО: 230.00 [19:34:19]line Внесено: 230.00 [19:34:19]line СДАЧА: 0.00 [19:34:19]line НСП 1% : 2.04 [19:34:19]line НДС 12% : 24.46 [19:34:19]line Наличными: 230.00 [19:34:19]line Безнал.: 0.00 [19:34:19]line Место: АЗС № 72 "Партнер Нефть" [19:34:19]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:34:19]line СНО: Общий режим [19:34:19]line Чек 307 15.07.2024 19:34 [19:34:19]line Смена: 448 ФФД: 1.0 [19:34:19]line ЗНМ: 0300000160 [19:34:19]line РНМ: 0000000000090829 [19:34:19]line Версия ККМ: 001 [19:34:19]line ФМ: 0000000000874718 [19:34:19]line ФД: 165434 [19:34:19]line ФПД: 193284353289767 [19:34:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T193418&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165434&fm=193284353289767&tin=02508201610067®Number=0000000000090829&sum=23000 [19:34:20]written 0, free lines is 4095 [19:34:20]OFD Sender: Processing packet 165434 [packets to send 106, broken 105] [19:34:20]ProducePacketName [19:34:20]name=ofd_packets/00165434 [19:34:20]OFD Sender: To server: pG, [19:34:20]CommunicateWithHost lk.salyk.kg:30040 [19:34:20]ConnectInit lk.salyk.kg [19:34:20]Connected sock=10 [19:34: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 37 31 38 0F 01 00 00 60 6C 07 01 82 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 AC 0D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 F6 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 BA 79 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3A 86 02 00 35 04 06 00 AF CA 85 37 EE 27 DB 53 63 CE B0 83 EB D0 [19:34:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 14 71 47 00 F2 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3A 86 02 00 F4 03 04 00 44 20 95 66 B6 04 01 00 00 89 0D 4B 3E BB C1 31 01 [19:34:20]CommunicateWithHost err = 0 [19:34:20]CheckOFDResponse [19:34:20]1017 (14) - 77093643461234 [19:34:20]1041 (16) - 0000000000874718 [19:34:20]1040 (4) - 165434 [19:34:20]1012 (4) - 15.07.2024 13:12 [19:34:20]1206 (1) - 0 [19:34:20]OFD Sender: Remove packet 165434 [19:34:20]ProducePacketName [19:34:20]name=ofd_packets/00165434 [19:34:20]NVStorageDeleteData [19:34:20]Write to MH i2c: 01 00 00 BA 05 BF [19:34:20]Write i2c OK [19:34:20]MH_I2C_Read... [19:34:20]Read from MH i2c: 01 [19:34:20]MH_I2C_Read... [19:34:20]Read from MH i2c: 01 07 00 [19:34:20]MH_I2C_Read... [19:34:20]Read from MH i2c: 01 07 00 BA 05 00 00 00 00 00 14 0D E7 [19:34:20]RasterBufferAndPrint [19:34:20]line [19:34:20]line [19:34:20]line [19:34:20]line [19:34:20]line [19:34:20]written 0, free lines is 3354 [19:34:20]MH_Cut [19:34:20]Write to MH i2c: D1 01 00 C1 05 01 98 [19:34:20]Write i2c OK [19:34:20]MH_I2C_Read... [19:34:20]Read from MH i2c: D1 [19:34:20]MH_I2C_Read... [19:34:20]Read from MH i2c: D1 01 00 [19:34:20]MH_I2C_Read... [19:34:20]Read from MH i2c: D1 01 00 C1 05 00 97 [19:34:20]Write to MH i2c: 01 00 00 C2 05 C7 [19:34:20]Write i2c OK [19:34:20]MH_I2C_Read... [19:34:20]OFD Sender: No OFD packet to send [19:34:21]*** Cut start [19:34:21]*** Partial cut [19:34:21]*** CUTSNS_PIN = 1 [19:34:21]*** CUTSNS_PIN = 0 [19:34:21]*** Brake cut motor [19:34:21]Read from MH i2c: 01 [19:34:21]MH_I2C_Read... [19:34:21]*** Stop cut motor [19:34:21]*** Cut end [19:34:21]Read from MH i2c: 01 07 00 [19:34:21]MH_I2C_Read... [19:34:21]Read from MH i2c: 01 07 00 C2 05 00 00 00 00 00 FF 0F DC [19:34:21]process_action close_receipt done [19:34:21]requested_data is exist [19:34:21]produce_requested_data [19:34:21]requested_item fm.sn is exist - process it [19:34:21]wFMCommunicate request_size=4 [19:34:21]MH_SAM_APDU [19:34:21]CAPDU: 80 11 00 00 [19:34:21]Write to MH i2c: E2 08 00 C3 05 80 11 00 00 00 00 00 00 42 [19:34:21]Write i2c OK [19:34:21]MH_I2C_Read... [19:34:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:21]Read from MH i2c: E2 [19:34:21]MH_I2C_Read... [19:34:21]Read from MH i2c: E2 17 00 [19:34:21]MH_I2C_Read... [19:34:21]Read from MH i2c: E2 17 00 C3 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 98 [19:34:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:34:21]wFMCommunicate OK [19:34:21]requested_item fd.num is exist - process it [19:34:21]SAM_PROTO_GetFieldsCounters [19:34:21]wFMCommunicate request_size=4 [19:34:21]MH_SAM_APDU [19:34:21]CAPDU: 80 13 00 00 [19:34:21]Write to MH i2c: E2 08 00 C4 05 80 13 00 00 00 00 00 00 45 [19:34:21]Write i2c OK [19:34:21]MH_I2C_Read... [19:34:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:34:22]Read from MH i2c: E2 [19:34:22]MH_I2C_Read... [19:34:22]Read from MH i2c: E2 62 00 [19:34:22]MH_I2C_Read... [19:34:22]Read from MH i2c: E2 62 00 C4 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3A 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 33 01 00 00 5E 04 04 00 33 01 00 00 57 04 04 00 34 01 00 00 19 04 04 00 00 00 00 00 90 00 8B [19:34: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3A 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 33 01 00 00 5E 04 04 00 33 01 00 00 57 04 04 00 34 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:34:22]wFMCommunicate OK [19:34:22]SAM_PROTO_GetFieldsCounters done [19:34:22]requested_item shift.num is exist - process it [19:34:22]requested_item shift.opened is exist - process it [19:34:22]req_shift_opened [19:34:22]FM_GetShiftState [19:34:22]SAM_PROTO_GetShiftState [19:34:22]wFMCommunicate request_size=4 [19:34:22]MH_SAM_APDU [19:34:22]CAPDU: 80 13 01 00 [19:34:22]Write to MH i2c: E2 08 00 C5 05 80 13 01 00 00 00 00 00 47 [19:34:22]Write i2c OK [19:34:22]MH_I2C_Read... [19:34:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:22]Read from MH i2c: E2 [19:34:22]MH_I2C_Read... [19:34:22]Read from MH i2c: E2 0E 00 [19:34:22]MH_I2C_Read... [19:34:22]Read from MH i2c: E2 0E 00 C5 05 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 20 [19:34:22]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [19:34:22]wFMCommunicate OK [19:34:22]SAM_PROTO_GetShiftState done [19:34:22]FM_GetShiftState done [19:34:22]req_shift_opened done [19:34:22]requested_item shift.open_date is exist - process it [19:34:22]req_shift_open_date [19:34:22]req_shift_open_date done [19:34:22]produce_requested_data done [19:34:22]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165434,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [19:34:22]process_action_free close_receipt [19:34:22]json_value_free [19:34:22]json_value_free done [19:34:22]process_json_proto returns [19:34:22]Send response to host [19:34:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165434,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [19:34:22]free response buf [19:34:22]execute_script done [19:34:22]execute_script returns [19:34:22]free content buf [19:34:22]Sock 7.Close socket [19:34:22]Sock 7.Thread stoped [19:34:25]OFD Sender: No OFD packet to send [19:34:30]OFD Sender: No OFD packet to send [19:34:35]OFD Sender: No OFD packet to send [19:34:40]OFD Sender: No OFD packet to send [19:34:45]OFD Sender: No OFD packet to send [19:34:51]OFD Sender: No OFD packet to send [19:34:56]OFD Sender: No OFD packet to send [19:35:01]OFD Sender: No OFD packet to send [19:35:06]OFD Sender: No OFD packet to send [19:35:11]OFD Sender: No OFD packet to send [19:35:16]OFD Sender: No OFD packet to send [19:35:21]OFD Sender: No OFD packet to send [19:35:23]accept exits with 9 [19:35:23]New connection [19:35:23]New thread 3067333988 created [19:35:23]Thread 3067190628 joined [19:35:23]Waiting for new connection... [19:35:23] Sock 9.Parse request [19:35:23]Sock 9.Check first char [19:35:23]Sock 9.First char is OK [19:35:23]request: POST /json_proto HTTP/1.0 [19:35:23]Method: POST [19:35:23]URL: /json_proto [19:35:23]Method is POST - this is cgi request [19:35:23]url: /json_proto [19:35:23]query_string will be loaded in cgi processing [19:35:23]execute_cgi json_proto POST (null) [19:35:23]execute_cgi path=json_proto method=POST [19:35:23]POST find Content-Length [19:35:23]Host: 172.17.56.4:8080 [19:35:23]Content-Length: 790 [19:35:23]Content-Type: application/json [19:35:23] [19:35:23]POST finish read [19:35:23]Found Content-Length = 790 [19:35:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459552", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 4.140, "sum" : 270.01, "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 270.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:35:23]execute_script... [19:35:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459552", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 4.140, "sum" : 270.01, "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 270.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:35:23]POST & json_proto [19:35:23]process_json_proto [19:35:23]json parsed OK: [19:35:23]protocol is kg_v1.0 [19:35:23]action value=close_receipt [19:35:23]process_action close_receipt [19:35:23]cmd_close_receipt [19:35:23]MH_GetDate [19:35:23]Write to MH i2c: F0 00 00 C6 05 BA [19:35:23]Write i2c OK [19:35:23]MH_I2C_Read... [19:35:23]Read from MH i2c: F0 [19:35:23]MH_I2C_Read... [19:35:23]Read from MH i2c: F0 09 00 [19:35:23]MH_I2C_Read... [19:35:23]Read from MH i2c: F0 09 00 C6 05 00 FC 79 95 66 C9 DC B2 64 EE [19:35:23]GetLastDocTimeStamp 1721072058 [19:35:23]current date 1721072124 [19:35:23]FM_GetShiftState [19:35:23]SAM_PROTO_GetShiftState [19:35:23]wFMCommunicate request_size=4 [19:35:23]MH_SAM_APDU [19:35:23]CAPDU: 80 13 01 00 [19:35:23]Write to MH i2c: E2 08 00 C7 05 80 13 01 00 00 00 00 00 49 [19:35:23]Write i2c OK [19:35:23]MH_I2C_Read... [19:35:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:35:23]Read from MH i2c: E2 [19:35:23]MH_I2C_Read... [19:35:23]Read from MH i2c: E2 0E 00 [19:35:23]MH_I2C_Read... [19:35:23]Read from MH i2c: E2 0E 00 C7 05 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 22 [19:35:23]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [19:35:23]wFMCommunicate OK [19:35:23]SAM_PROTO_GetShiftState done [19:35:23]FM_GetShiftState done [19:35:23]opened in 1721003876 [19:35:23]opened+sec_in_day 1721090276 [19:35:23]quantity*price = 27001 [19:35:23]sum+1 = 27002 [19:35:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 270.01 НСП 1% : 2.39 НДС 12% : 28.67 Наличными: 0.00 Безнал.: 270.01 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 308 15.07.2024 19:35 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 165435 ФПД: 67177221689696 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T193524&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165435&fm=67177221689696&tin=02508201610067®Number=0000000000090829&sum=27001 [19:35:24]StoreToDocumentArchive [19:35:24]shift 448 fd 165435 [19:35:24]save to /storage/0448/doc_00165435 [19:35:24]save last doc name /storage/0448/doc_00165435 to /storage/kkm_last_doc_name [19:35:24]save OK [19:35:24]Clear old archive folders... [19:35:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:35:24]tlvbuf is 01BB1980 [19:35:24]SAM_PROTO_ClearQueue [19:35:24]wFMCommunicate request_size=4 [19:35:24]MH_SAM_APDU [19:35:24]CAPDU: 80 09 00 00 [19:35:24]Write to MH i2c: E2 08 00 D4 05 80 09 00 00 00 00 00 00 4B [19:35:24]Write i2c OK [19:35:24]MH_I2C_Read... [19:35:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:35:24]Read from MH i2c: E2 [19:35:24]MH_I2C_Read... [19:35:24]Read from MH i2c: E2 03 00 [19:35:24]MH_I2C_Read... [19:35:24]Read from MH i2c: E2 03 00 D4 05 00 90 00 4D [19:35:24]RAPDU: 90 00 [19:35:24]wFMCommunicate OK [19:35:24]SAM_PROTO_ClearQueue done [19:35:24]KKMCreateOFDPacket [19:35:24]OFDProtocolAddRootSTLVToBuf [19:35:24]FM_MakeSignedData [19:35:24]FM_MakeSignedData [19:35:24]SAM_PROTO_SignData [19:35:24]wFMCommunicate request_size=4 [19:35:24]MH_SAM_APDU [19:35:24]CAPDU: 80 0D 01 02 [19:35:24]Write to MH i2c: E2 08 00 D5 05 80 0D 01 02 00 00 00 00 53 [19:35:24]Write i2c OK [19:35:24]MH_I2C_Read... [19:35:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:35:24]Read from MH i2c: E2 [19:35:24]MH_I2C_Read... [19:35:24]Read from MH i2c: E2 03 00 [19:35:24]MH_I2C_Read... [19:35:24]Read from MH i2c: E2 03 00 D5 05 00 90 00 4E [19:35:24]RAPDU: 90 00 [19:35:24]wFMCommunicate OK [19:35:24]wFMCommunicate request_size=255 [19:35:24]MH_SAM_APDU [19:35:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2C 10 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 79 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 69 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 FC 79 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3B 86 02 00 35 04 06 00 3D [19:35:24]Write to MH i2c: E2 02 01 D6 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2C 10 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 79 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 69 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 FC 79 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3B 86 02 00 35 04 06 00 3D 00 00 6B [19:35:24]Write i2c OK [19:35:24]MH_I2C_Read... [19:35:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:35:25]Read from MH i2c: E2 [19:35:25]MH_I2C_Read... [19:35:25]Read from MH i2c: E2 03 00 [19:35:25]MH_I2C_Read... [19:35:25]Read from MH i2c: E2 03 00 D6 05 00 90 00 4F [19:35:25]RAPDU: 90 00 [19:35:25]wFMCommunicate OK [19:35:25]wFMCommunicate request_size=10 [19:35:25]MH_SAM_APDU [19:35:25]CAPDU: 80 0D 02 02 05 18 EA 6F 91 60 [19:35:25]Write to MH i2c: E2 0D 00 D7 05 80 0D 02 02 05 00 18 EA 6F 91 60 00 00 C2 [19:35:25]Write i2c OK [19:35:25]MH_I2C_Read... [19:35:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:35:25]Read from MH i2c: E2 [19:35:25]MH_I2C_Read... [19:35:25]Read from MH i2c: E2 03 00 [19:35:25]MH_I2C_Read... [19:35:25]Read from MH i2c: E2 03 00 D7 05 00 90 00 50 [19:35:25]RAPDU: 90 00 [19:35:25]wFMCommunicate OK [19:35:25]wFMCommunicate request_size=4 [19:35:25]MH_SAM_APDU [19:35:25]CAPDU: 80 0D 03 02 [19:35:25]Write to MH i2c: E2 08 00 D8 05 80 0D 03 02 00 00 00 00 58 [19:35:25]Write i2c OK [19:35:25]MH_I2C_Read... [19:35:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:35:25]Read from MH i2c: E2 [19:35:25]MH_I2C_Read... [19:35:25]Read from MH i2c: E2 0B 00 [19:35:25]MH_I2C_Read... [19:35:25]Read from MH i2c: E2 0B 00 D8 05 00 D7 1D BA 3C DB 01 B5 04 90 00 D8 [19:35:25]RAPDU: D7 1D BA 3C DB 01 B5 04 90 00 [19:35:25]wFMCommunicate OK [19:35:25]SAM_PROTO_SignData done [19:35:25]FM_MakeSignedData done [19:35:25]CreateOFDProtocolMessage [19:35:25]wFMCommunicate request_size=4 [19:35:25]MH_SAM_APDU [19:35:25]CAPDU: 80 11 00 00 [19:35:25]Write to MH i2c: E2 08 00 D9 05 80 11 00 00 00 00 00 00 58 [19:35:25]Write i2c OK [19:35:25]MH_I2C_Read... [19:35:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:35:25]Read from MH i2c: E2 [19:35:25]MH_I2C_Read... [19:35:25]Read from MH i2c: E2 17 00 [19:35:25]MH_I2C_Read... [19:35:25]Read from MH i2c: E2 17 00 D9 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AE [19:35:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:35:25]wFMCommunicate OK [19:35:25]CreateOFDProtocolMessage done [19:35:25]OFDSenderStorePacket 165435 [19:35:25]StoreOFDPacket docnum=165435 [19:35:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 28 6C 07 01 9F 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 2C 10 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 79 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 69 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 FC 79 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3B 86 02 00 35 04 06 00 3D 18 EA 6F 91 60 D7 1D BA 3C DB 01 B5 04 [19:35:25]CheckFolder [19:35:25]dirname=/storage/ofd_packets [19:35:25]CheckFolder done [19:35:25]ProducePacketName [19:35:25]name=ofd_packets/00165435 [19:35:25]NVStorageSaveData ofd_packets/00165435 [19:35:25]File name is /storage/ofd_packets/00165435 [19:35:25]Write 301 bytes [19:35:25]NVStorageSaveData done [19:35:25]OFDSenderStorePacket done [19:35:25]KKMCreateOFDPacket done [19:35:25]NVStorageSaveData kkm_last_timestamp [19:35:25]File name is /storage/kkm_last_timestamp [19:35:25]Write 4 bytes [19:35:25]NVStorageSaveData done [19:35:25]ExternCall_PrintAddStr [19:35:25]wPrintStart [19:35:25]Write to MH i2c: 01 00 00 DA 05 DF [19:35:25]Write i2c OK [19:35:25]MH_I2C_Read... [19:35:25]Read from MH i2c: 01 [19:35:25]MH_I2C_Read... [19:35:25]Read from MH i2c: 01 07 00 [19:35:25]MH_I2C_Read... [19:35:25]Read from MH i2c: 01 07 00 DA 05 00 00 00 00 00 FF 0F F4 [19:35:25]RasterBufferAndPrint [19:35:25]line Счет N : (1)459552 [19:35:25]line ИНН: 02508201610067 [19:35:25]line Контрольно-Кассовый Чек [19:35:25]line ПРОДАЖА [19:35:25]line ТРК (МРК, ГНК) : 12 [19:35:25]line Товар: 2710124130 [19:35:25]line Аи-92-К-5 [19:35:25]line 4.140 * 65.22 [19:35:25]line = 270.01 [19:35:25]line НДС 12% НСП 1% [19:35:25]line > о реализуемом товаре [19:35:25]line ИТОГО: 270.01 [19:35:25]line НСП 1% : 2.39 [19:35:25]line НДС 12% : 28.67 [19:35:25]line Наличными: 0.00 [19:35:25]line Безнал.: 270.01 [19:35:25]line Место: АЗС № 72 "Партнер Нефть" [19:35:25]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:35:25]line СНО: Общий режим [19:35:25]line Чек 308 15.07.2024 19:35 [19:35:25]line Смена: 448 ФФД: 1.0 [19:35:25]line ЗНМ: 0300000160 [19:35:25]line РНМ: 0000000000090829 [19:35:25]line Версия ККМ: 001 [19:35:25]line Платежная система: KICB Банк [19:35:25]line ФМ: 0000000000874718 [19:35:25]line ФД: 165435 [19:35:25]line ФПД: 67177221689696 [19:35:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T193524&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165435&fm=67177221689696&tin=02508201610067®Number=0000000000090829&sum=27001 [19:35:25]written 0, free lines is 4095 [19:35:25]OFD Sender: Processing packet 165435 [packets to send 106, broken 105] [19:35:25]ProducePacketName [19:35:25]name=ofd_packets/00165435 [19:35:25]OFD Sender: To server: pG, [19:35:25]CommunicateWithHost lk.salyk.kg:30040 [19:35:25]ConnectInit lk.salyk.kg [19:35:25]Connected sock=11 [19:35:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 28 6C 07 01 9F 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 2C 10 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 79 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 69 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 FC 79 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3B 86 02 00 35 04 06 00 3D 18 EA 6F 91 60 D7 1D BA 3C DB 01 B5 04 [19:35:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 62 AE 47 00 8B A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3B 86 02 00 F4 03 04 00 85 20 95 66 B6 04 01 00 00 FE C7 B9 79 5A 20 2C D0 [19:35:25]CommunicateWithHost err = 0 [19:35:25]CheckOFDResponse [19:35:25]1017 (14) - 77093643461234 [19:35:25]1041 (16) - 0000000000874718 [19:35:25]1040 (4) - 165435 [19:35:25]1012 (4) - 15.07.2024 13:13 [19:35:25]1206 (1) - 0 [19:35:25]OFD Sender: Remove packet 165435 [19:35:25]ProducePacketName [19:35:25]name=ofd_packets/00165435 [19:35:25]NVStorageDeleteData [19:35:25]Write to MH i2c: 01 00 00 03 06 09 [19:35:25]Write i2c OK [19:35:25]MH_I2C_Read... [19:35:25]Read from MH i2c: 01 [19:35:25]MH_I2C_Read... [19:35:25]Read from MH i2c: 01 07 00 [19:35:25]MH_I2C_Read... [19:35:25]Read from MH i2c: 01 07 00 03 06 00 00 00 00 00 0F 0D 2C [19:35:25]RasterBufferAndPrint [19:35:25]line [19:35:25]line [19:35:25]line [19:35:25]line [19:35:25]line [19:35:25]written 0, free lines is 3349 [19:35:25]MH_Cut [19:35:25]Write to MH i2c: D1 01 00 0A 06 01 E2 [19:35:25]Write i2c OK [19:35:25]MH_I2C_Read... [19:35:25]Read from MH i2c: D1 [19:35:25]MH_I2C_Read... [19:35:25]Read from MH i2c: D1 01 00 [19:35:25]MH_I2C_Read... [19:35:25]Read from MH i2c: D1 01 00 0A 06 00 E1 [19:35:25]Write to MH i2c: 01 00 00 0B 06 11 [19:35:25]Write i2c OK [19:35:25]MH_I2C_Read... [19:35:26]OFD Sender: No OFD packet to send [19:35:26]*** Cut start [19:35:26]*** Partial cut [19:35:26]*** CUTSNS_PIN = 1 [19:35:26]*** CUTSNS_PIN = 0 [19:35:26]*** Brake cut motor [19:35:27]Read from MH i2c: 01 [19:35:27]MH_I2C_Read... [19:35:27]*** Stop cut motor [19:35:27]*** Cut end [19:35:27]Read from MH i2c: 01 07 00 [19:35:27]MH_I2C_Read... [19:35:27]Read from MH i2c: 01 07 00 0B 06 00 00 00 00 00 FF 0F 26 [19:35:27]process_action close_receipt done [19:35:27]requested_data is exist [19:35:27]produce_requested_data [19:35:27]requested_item fm.sn is exist - process it [19:35:27]wFMCommunicate request_size=4 [19:35:27]MH_SAM_APDU [19:35:27]CAPDU: 80 11 00 00 [19:35:27]Write to MH i2c: E2 08 00 0C 06 80 11 00 00 00 00 00 00 8C [19:35:27]Write i2c OK [19:35:27]MH_I2C_Read... [19:35:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:35:27]Read from MH i2c: E2 [19:35:27]MH_I2C_Read... [19:35:27]Read from MH i2c: E2 17 00 [19:35:27]MH_I2C_Read... [19:35:27]Read from MH i2c: E2 17 00 0C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E2 [19:35:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:35:27]wFMCommunicate OK [19:35:27]requested_item fd.num is exist - process it [19:35:27]SAM_PROTO_GetFieldsCounters [19:35:27]wFMCommunicate request_size=4 [19:35:27]MH_SAM_APDU [19:35:27]CAPDU: 80 13 00 00 [19:35:27]Write to MH i2c: E2 08 00 0D 06 80 13 00 00 00 00 00 00 8F [19:35:27]Write i2c OK [19:35:27]MH_I2C_Read... [19:35:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:35:27]Read from MH i2c: E2 [19:35:27]MH_I2C_Read... [19:35:27]Read from MH i2c: E2 62 00 [19:35:27]MH_I2C_Read... [19:35:27]Read from MH i2c: E2 62 00 0D 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3B 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 34 01 00 00 5E 04 04 00 34 01 00 00 57 04 04 00 35 01 00 00 19 04 04 00 00 00 00 00 90 00 D9 [19:35:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3B 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 34 01 00 00 5E 04 04 00 34 01 00 00 57 04 04 00 35 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:35:27]wFMCommunicate OK [19:35:27]SAM_PROTO_GetFieldsCounters done [19:35:27]requested_item shift.num is exist - process it [19:35:27]requested_item shift.opened is exist - process it [19:35:27]req_shift_opened [19:35:27]FM_GetShiftState [19:35:27]SAM_PROTO_GetShiftState [19:35:27]wFMCommunicate request_size=4 [19:35:27]MH_SAM_APDU [19:35:27]CAPDU: 80 13 01 00 [19:35:27]Write to MH i2c: E2 08 00 0E 06 80 13 01 00 00 00 00 00 91 [19:35:27]Write i2c OK [19:35:27]MH_I2C_Read... [19:35:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:35:27]Read from MH i2c: E2 [19:35:27]MH_I2C_Read... [19:35:27]Read from MH i2c: E2 0E 00 [19:35:27]MH_I2C_Read... [19:35:27]Read from MH i2c: E2 0E 00 0E 06 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 6A [19:35:27]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [19:35:27]wFMCommunicate OK [19:35:27]SAM_PROTO_GetShiftState done [19:35:27]FM_GetShiftState done [19:35:27]req_shift_opened done [19:35:27]requested_item shift.open_date is exist - process it [19:35:27]req_shift_open_date [19:35:27]req_shift_open_date done [19:35:27]produce_requested_data done [19:35:27]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165435,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [19:35:27]process_action_free close_receipt [19:35:27]json_value_free [19:35:27]json_value_free done [19:35:27]process_json_proto returns [19:35:27]Send response to host [19:35:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165435,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [19:35:27]free response buf [19:35:27]execute_script done [19:35:27]execute_script returns [19:35:27]free content buf [19:35:27]Sock 9.Close socket [19:35:27]Sock 9.Thread stoped [19:35:27]accept exits with 7 [19:35:27]New connection [19:35:27]New thread 3067190628 created [19:35:27]Thread 3067333988 joined [19:35:27]Waiting for new connection... [19:35:27] Sock 7.Parse request [19:35:27]Sock 7.Check first char [19:35:27]Sock 7.First char is OK [19:35:27]request: POST /json_proto HTTP/1.0 [19:35:27]Method: POST [19:35:27]URL: /json_proto [19:35:27]Method is POST - this is cgi request [19:35:27]url: /json_proto [19:35:27]query_string will be loaded in cgi processing [19:35:27]execute_cgi json_proto POST (null) [19:35:27]execute_cgi path=json_proto method=POST [19:35:27]POST find Content-Length [19:35:27]Host: 172.17.56.4:8080 [19:35:27]Content-Length: 682 [19:35:27]Content-Type: application/json [19:35:27] [19:35:27]POST finish read [19:35:27]Found Content-Length = 682 [19:35:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459551", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 22.800, "sum" : 1500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:35:27]execute_script... [19:35:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459551", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 22.800, "sum" : 1500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:35:27]POST & json_proto [19:35:27]process_json_proto [19:35:27]json parsed OK: [19:35:27]protocol is kg_v1.0 [19:35:27]action value=close_receipt [19:35:27]process_action close_receipt [19:35:27]cmd_close_receipt [19:35:27]MH_GetDate [19:35:27]Write to MH i2c: F0 00 00 0F 06 04 [19:35:27]Write i2c OK [19:35:27]MH_I2C_Read... [19:35:27]Read from MH i2c: F0 [19:35:27]MH_I2C_Read... [19:35:27]Read from MH i2c: F0 09 00 [19:35:27]MH_I2C_Read... [19:35:27]Read from MH i2c: F0 09 00 0F 06 00 00 7A 95 66 C9 DC B2 64 3D [19:35:27]GetLastDocTimeStamp 1721072124 [19:35:27]current date 1721072128 [19:35:27]FM_GetShiftState [19:35:27]SAM_PROTO_GetShiftState [19:35:27]wFMCommunicate request_size=4 [19:35:27]MH_SAM_APDU [19:35:27]CAPDU: 80 13 01 00 [19:35:27]Write to MH i2c: E2 08 00 10 06 80 13 01 00 00 00 00 00 93 [19:35:27]Write i2c OK [19:35:27]MH_I2C_Read... [19:35:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:35:27]Read from MH i2c: E2 [19:35:27]MH_I2C_Read... [19:35:27]Read from MH i2c: E2 0E 00 [19:35:27]MH_I2C_Read... [19:35:27]Read from MH i2c: E2 0E 00 10 06 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 6C [19:35:27]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [19:35:27]wFMCommunicate OK [19:35:27]SAM_PROTO_GetShiftState done [19:35:27]FM_GetShiftState done [19:35:27]opened in 1721003876 [19:35:27]opened+sec_in_day 1721090276 [19:35:27]quantity*price = 150024 [19:35:27]sum+1 = 150025 [19:35:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 309 15.07.2024 19:35 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165436 ФПД: 226100139168630 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T193528&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165436&fm=226100139168630&tin=02508201610067®Number=0000000000090829&sum=150000 [19:35:29]StoreToDocumentArchive [19:35:29]shift 448 fd 165436 [19:35:29]save to /storage/0448/doc_00165436 [19:35:29]save last doc name /storage/0448/doc_00165436 to /storage/kkm_last_doc_name [19:35:29]save OK [19:35:29]Clear old archive folders... [19:35:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:35:29]tlvbuf is 01B60810 [19:35:29]SAM_PROTO_ClearQueue [19:35:29]wFMCommunicate request_size=4 [19:35:29]MH_SAM_APDU [19:35:29]CAPDU: 80 09 00 00 [19:35:29]Write to MH i2c: E2 08 00 1D 06 80 09 00 00 00 00 00 00 95 [19:35:29]Write i2c OK [19:35:29]MH_I2C_Read... [19:35:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:35:29]Read from MH i2c: E2 [19:35:29]MH_I2C_Read... [19:35:29]Read from MH i2c: E2 03 00 [19:35:29]MH_I2C_Read... [19:35:29]Read from MH i2c: E2 03 00 1D 06 00 90 00 97 [19:35:29]RAPDU: 90 00 [19:35:29]wFMCommunicate OK [19:35:29]SAM_PROTO_ClearQueue done [19:35:29]KKMCreateOFDPacket [19:35:29]OFDProtocolAddRootSTLVToBuf [19:35:29]FM_MakeSignedData [19:35:29]FM_MakeSignedData [19:35:29]SAM_PROTO_SignData [19:35:29]wFMCommunicate request_size=4 [19:35:29]MH_SAM_APDU [19:35:29]CAPDU: 80 0D 01 02 [19:35:29]Write to MH i2c: E2 08 00 1E 06 80 0D 01 02 00 00 00 00 9D [19:35:29]Write i2c OK [19:35:29]MH_I2C_Read... [19:35:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:35:29]Read from MH i2c: E2 [19:35:29]MH_I2C_Read... [19:35:29]Read from MH i2c: E2 03 00 [19:35:29]MH_I2C_Read... [19:35:29]Read from MH i2c: E2 03 00 1E 06 00 90 00 98 [19:35:29]RAPDU: 90 00 [19:35:29]wFMCommunicate OK [19:35:29]wFMCommunicate request_size=255 [19:35:29]MH_SAM_APDU [19:35:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 59 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 00 7A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3C 86 02 00 35 04 06 00 CD [19:35:29]Write to MH i2c: E2 02 01 1F 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 59 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 00 7A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3C 86 02 00 35 04 06 00 CD 00 00 59 [19:35:29]Write i2c OK [19:35:29]MH_I2C_Read... [19:35:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:35:29]Read from MH i2c: E2 [19:35:29]MH_I2C_Read... [19:35:29]Read from MH i2c: E2 03 00 [19:35:29]MH_I2C_Read... [19:35:29]Read from MH i2c: E2 03 00 1F 06 00 90 00 99 [19:35:29]RAPDU: 90 00 [19:35:29]wFMCommunicate OK [19:35:29]wFMCommunicate request_size=10 [19:35:29]MH_SAM_APDU [19:35:29]CAPDU: 80 0D 02 02 05 A3 0A 7A 93 76 [19:35:29]Write to MH i2c: E2 0D 00 20 06 80 0D 02 02 05 00 A3 0A 7A 93 76 00 00 DA [19:35:29]Write i2c OK [19:35:29]MH_I2C_Read... [19:35:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:35:29]Read from MH i2c: E2 [19:35:29]MH_I2C_Read... [19:35:29]Read from MH i2c: E2 03 00 [19:35:29]MH_I2C_Read... [19:35:29]Read from MH i2c: E2 03 00 20 06 00 90 00 9A [19:35:29]RAPDU: 90 00 [19:35:29]wFMCommunicate OK [19:35:29]wFMCommunicate request_size=4 [19:35:29]MH_SAM_APDU [19:35:29]CAPDU: 80 0D 03 02 [19:35:29]Write to MH i2c: E2 08 00 21 06 80 0D 03 02 00 00 00 00 A2 [19:35:29]Write i2c OK [19:35:29]MH_I2C_Read... [19:35:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:35:29]Read from MH i2c: E2 [19:35:29]MH_I2C_Read... [19:35:29]Read from MH i2c: E2 0B 00 [19:35:29]MH_I2C_Read... [19:35:29]Read from MH i2c: E2 0B 00 21 06 00 31 F1 29 E6 BC 74 70 E2 90 00 56 [19:35:29]RAPDU: 31 F1 29 E6 BC 74 70 E2 90 00 [19:35:29]wFMCommunicate OK [19:35:29]SAM_PROTO_SignData done [19:35:29]FM_MakeSignedData done [19:35:29]CreateOFDProtocolMessage [19:35:29]wFMCommunicate request_size=4 [19:35:29]MH_SAM_APDU [19:35:29]CAPDU: 80 11 00 00 [19:35:29]Write to MH i2c: E2 08 00 22 06 80 11 00 00 00 00 00 00 A2 [19:35:29]Write i2c OK [19:35:29]MH_I2C_Read... [19:35:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:35:29]Read from MH i2c: E2 [19:35:29]MH_I2C_Read... [19:35:29]Read from MH i2c: E2 17 00 [19:35:29]MH_I2C_Read... [19:35:29]Read from MH i2c: E2 17 00 22 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F8 [19:35:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:35:29]wFMCommunicate OK [19:35:29]CreateOFDProtocolMessage done [19:35:29]OFDSenderStorePacket 165436 [19:35:29]StoreOFDPacket docnum=165436 [19:35:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 CE 80 07 01 8C 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 59 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 00 7A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3C 86 02 00 35 04 06 00 CD A3 0A 7A 93 76 31 F1 29 E6 BC 74 70 E2 [19:35:29]CheckFolder [19:35:29]dirname=/storage/ofd_packets [19:35:29]CheckFolder done [19:35:29]ProducePacketName [19:35:29]name=ofd_packets/00165436 [19:35:29]NVStorageSaveData ofd_packets/00165436 [19:35:29]File name is /storage/ofd_packets/00165436 [19:35:29]Write 301 bytes [19:35:29]NVStorageSaveData done [19:35:29]OFDSenderStorePacket done [19:35:29]KKMCreateOFDPacket done [19:35:29]NVStorageSaveData kkm_last_timestamp [19:35:29]File name is /storage/kkm_last_timestamp [19:35:29]Write 4 bytes [19:35:29]NVStorageSaveData done [19:35:29]ExternCall_PrintAddStr [19:35:29]wPrintStart [19:35:29]Write to MH i2c: 01 00 00 23 06 29 [19:35:29]Write i2c OK [19:35:29]MH_I2C_Read... [19:35:29]Read from MH i2c: 01 [19:35:29]MH_I2C_Read... [19:35:29]Read from MH i2c: 01 07 00 [19:35:29]MH_I2C_Read... [19:35:29]Read from MH i2c: 01 07 00 23 06 00 00 00 00 00 FF 0F 3E [19:35:29]RasterBufferAndPrint [19:35:29]line Счет N : (1)459551 [19:35:29]line ИНН: 02508201610067 [19:35:29]line Контрольно-Кассовый Чек [19:35:29]line ПРОДАЖА [19:35:29]line ТРК (МРК, ГНК) : 22 [19:35:29]line Товар: 2710124130 [19:35:29]line Аи-92-К-5 [19:35:29]line 22.800 * 65.80 [19:35:29]line = 1500.24 [19:35:29]line НДС 12% НСП 1% [19:35:29]line > о реализуемом товаре [19:35:29]line ОКРУГЛЕНИЕ: -0.24 [19:35:29]line ИТОГО: 1500.00 [19:35:29]line Внесено: 1500.00 [19:35:29]line СДАЧА: 0.00 [19:35:29]line НСП 1% : 13.28 [19:35:29]line НДС 12% : 159.32 [19:35:29]line Наличными: 1500.00 [19:35:29]line Безнал.: 0.00 [19:35:29]line Место: АЗС № 72 "Партнер Нефть" [19:35:29]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:35:29]line СНО: Общий режим [19:35:29]line Чек 309 15.07.2024 19:35 [19:35:29]line Смена: 448 ФФД: 1.0 [19:35:29]line ЗНМ: 0300000160 [19:35:29]line РНМ: 0000000000090829 [19:35:29]line Версия ККМ: 001 [19:35:29]line ФМ: 0000000000874718 [19:35:30]line ФД: 165436 [19:35:30]line ФПД: 226100139168630 [19:35:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T193528&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165436&fm=226100139168630&tin=02508201610067®Number=0000000000090829&sum=150000 [19:35:30]OFD Sender: Processing packet 165436 [packets to send 106, broken 105] [19:35:30]ProducePacketName [19:35:30]name=ofd_packets/00165436 [19:35:30]OFD Sender: To server: pG, [19:35:30]CommunicateWithHost lk.salyk.kg:30040 [19:35:30]ConnectInit lk.salyk.kg [19:35:30]written 0, free lines is 4095 [19:35:30]Connected sock=10 [19:35:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 CE 80 07 01 8C 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 59 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 00 7A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3C 86 02 00 35 04 06 00 CD A3 0A 7A 93 76 31 F1 29 E6 BC 74 70 E2 [19:35:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 74 BD 47 00 E4 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3C 86 02 00 F4 03 04 00 8A 20 95 66 B6 04 01 00 00 D7 A8 5E A5 2E 27 14 E5 [19:35:30]CommunicateWithHost err = 0 [19:35:30]CheckOFDResponse [19:35:30]1017 (14) - 77093643461234 [19:35:30]1041 (16) - 0000000000874718 [19:35:30]1040 (4) - 165436 [19:35:30]1012 (4) - 15.07.2024 13:13 [19:35:30]1206 (1) - 0 [19:35:30]OFD Sender: Remove packet 165436 [19:35:30]ProducePacketName [19:35:30]name=ofd_packets/00165436 [19:35:30]NVStorageDeleteData [19:35:30]Write to MH i2c: 01 00 00 4D 06 53 [19:35:30]Write i2c OK [19:35:30]MH_I2C_Read... [19:35:30]Read from MH i2c: 01 [19:35:30]MH_I2C_Read... [19:35:30]Read from MH i2c: 01 07 00 [19:35:30]MH_I2C_Read... [19:35:30]Read from MH i2c: 01 07 00 4D 06 00 00 00 00 00 0A 0D 71 [19:35:30]RasterBufferAndPrint [19:35:30]line [19:35:30]line [19:35:30]line [19:35:30]line [19:35:30]line [19:35:30]written 0, free lines is 3353 [19:35:30]MH_Cut [19:35:30]Write to MH i2c: D1 01 00 54 06 01 2C [19:35:30]Write i2c OK [19:35:30]MH_I2C_Read... [19:35:30]Read from MH i2c: D1 [19:35:30]MH_I2C_Read... [19:35:30]Read from MH i2c: D1 01 00 [19:35:30]MH_I2C_Read... [19:35:30]Read from MH i2c: D1 01 00 54 06 00 2B [19:35:30]Write to MH i2c: 01 00 00 55 06 5B [19:35:30]Write i2c OK [19:35:30]MH_I2C_Read... [19:35:30]OFD Sender: No OFD packet to send [19:35:31]*** Cut start [19:35:31]*** Partial cut [19:35:31]*** CUTSNS_PIN = 1 [19:35:31]*** CUTSNS_PIN = 0 [19:35:31]*** Brake cut motor [19:35:31]Read from MH i2c: 01 [19:35:31]MH_I2C_Read... [19:35:31]*** Stop cut motor [19:35:31]*** Cut end [19:35:31]Read from MH i2c: 01 07 00 [19:35:31]MH_I2C_Read... [19:35:31]Read from MH i2c: 01 07 00 55 06 00 00 00 00 00 FF 0F 70 [19:35:31]process_action close_receipt done [19:35:31]requested_data is exist [19:35:31]produce_requested_data [19:35:31]requested_item fm.sn is exist - process it [19:35:31]wFMCommunicate request_size=4 [19:35:31]MH_SAM_APDU [19:35:31]CAPDU: 80 11 00 00 [19:35:31]Write to MH i2c: E2 08 00 56 06 80 11 00 00 00 00 00 00 D6 [19:35:31]Write i2c OK [19:35:31]MH_I2C_Read... [19:35:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:35:31]Read from MH i2c: E2 [19:35:31]MH_I2C_Read... [19:35:31]Read from MH i2c: E2 17 00 [19:35:31]MH_I2C_Read... [19:35:31]Read from MH i2c: E2 17 00 56 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2C [19:35:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:35:31]wFMCommunicate OK [19:35:31]requested_item fd.num is exist - process it [19:35:31]SAM_PROTO_GetFieldsCounters [19:35:31]wFMCommunicate request_size=4 [19:35:31]MH_SAM_APDU [19:35:31]CAPDU: 80 13 00 00 [19:35:31]Write to MH i2c: E2 08 00 57 06 80 13 00 00 00 00 00 00 D9 [19:35:31]Write i2c OK [19:35:31]MH_I2C_Read... [19:35:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:35:31]Read from MH i2c: E2 [19:35:31]MH_I2C_Read... [19:35:31]Read from MH i2c: E2 62 00 [19:35:31]MH_I2C_Read... [19:35:31]Read from MH i2c: E2 62 00 57 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3C 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 35 01 00 00 5E 04 04 00 35 01 00 00 57 04 04 00 36 01 00 00 19 04 04 00 00 00 00 00 90 00 27 [19:35: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3C 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 35 01 00 00 5E 04 04 00 35 01 00 00 57 04 04 00 36 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:35:31]wFMCommunicate OK [19:35:31]SAM_PROTO_GetFieldsCounters done [19:35:31]requested_item shift.num is exist - process it [19:35:31]requested_item shift.opened is exist - process it [19:35:31]req_shift_opened [19:35:31]FM_GetShiftState [19:35:31]SAM_PROTO_GetShiftState [19:35:31]wFMCommunicate request_size=4 [19:35:31]MH_SAM_APDU [19:35:31]CAPDU: 80 13 01 00 [19:35:31]Write to MH i2c: E2 08 00 58 06 80 13 01 00 00 00 00 00 DB [19:35:31]Write i2c OK [19:35:31]MH_I2C_Read... [19:35:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:35:32]Read from MH i2c: E2 [19:35:32]MH_I2C_Read... [19:35:32]Read from MH i2c: E2 0E 00 [19:35:32]MH_I2C_Read... [19:35:32]Read from MH i2c: E2 0E 00 58 06 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 B4 [19:35:32]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [19:35:32]wFMCommunicate OK [19:35:32]SAM_PROTO_GetShiftState done [19:35:32]FM_GetShiftState done [19:35:32]req_shift_opened done [19:35:32]requested_item shift.open_date is exist - process it [19:35:32]req_shift_open_date [19:35:32]req_shift_open_date done [19:35:32]produce_requested_data done [19:35:32]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165436,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [19:35:32]process_action_free close_receipt [19:35:32]json_value_free [19:35:32]json_value_free done [19:35:32]process_json_proto returns [19:35:32]Send response to host [19:35:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165436,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [19:35:32]free response buf [19:35:32]execute_script done [19:35:32]execute_script returns [19:35:32]free content buf [19:35:32]Sock 7.Close socket [19:35:32]Sock 7.Thread stoped [19:35:35]OFD Sender: No OFD packet to send [19:35:40]OFD Sender: No OFD packet to send [19:35:45]OFD Sender: No OFD packet to send [19:35:50]OFD Sender: No OFD packet to send [19:35:55]OFD Sender: No OFD packet to send [19:36:00]OFD Sender: No OFD packet to send [19:36:05]OFD Sender: No OFD packet to send [19:36:10]OFD Sender: No OFD packet to send [19:36:15]OFD Sender: No OFD packet to send [19:36:20]OFD Sender: No OFD packet to send [19:36:25]OFD Sender: No OFD packet to send [19:36:30]OFD Sender: No OFD packet to send [19:36:35]OFD Sender: No OFD packet to send [19:36:40]OFD Sender: No OFD packet to send [19:36:45]OFD Sender: No OFD packet to send [19:36:50]OFD Sender: No OFD packet to send [19:36:55]OFD Sender: No OFD packet to send [19:37:00]OFD Sender: No OFD packet to send [19:37:05]OFD Sender: No OFD packet to send [19:37:10]OFD Sender: No OFD packet to send [19:37:15]OFD Sender: No OFD packet to send [19:37:21]OFD Sender: No OFD packet to send [19:37:26]OFD Sender: No OFD packet to send [19:37:31]OFD Sender: No OFD packet to send [19:37:36]OFD Sender: No OFD packet to send [19:37:41]OFD Sender: No OFD packet to send [19:37:46]OFD Sender: No OFD packet to send [19:37:51]OFD Sender: No OFD packet to send [19:37:56]OFD Sender: No OFD packet to send [19:38:01]OFD Sender: No OFD packet to send [19:38:06]OFD Sender: No OFD packet to send [19:38:11]OFD Sender: No OFD packet to send [19:38:16]OFD Sender: No OFD packet to send [19:38:21]OFD Sender: No OFD packet to send [19:38:26]OFD Sender: No OFD packet to send [19:38:31]OFD Sender: No OFD packet to send [19:38:36]OFD Sender: No OFD packet to send [19:38:41]OFD Sender: No OFD packet to send [19:38:46]OFD Sender: No OFD packet to send [19:38:51]OFD Sender: No OFD packet to send [19:38:56]OFD Sender: No OFD packet to send [19:39:01]OFD Sender: No OFD packet to send [19:39:06]OFD Sender: No OFD packet to send [19:39:11]OFD Sender: No OFD packet to send [19:39:16]OFD Sender: No OFD packet to send [19:39:21]OFD Sender: No OFD packet to send [19:39:26]OFD Sender: No OFD packet to send [19:39:31]OFD Sender: No OFD packet to send [19:39:31]accept exits with 9 [19:39:31]New connection [19:39:31]New thread 3067333988 created [19:39:31]Thread 3067190628 joined [19:39:31]Waiting for new connection... [19:39:31] Sock 9.Parse request [19:39:31]Sock 9.Check first char [19:39:31]Sock 9.First char is OK [19:39:31]request: POST /json_proto HTTP/1.0 [19:39:31]Method: POST [19:39:31]URL: /json_proto [19:39:31]Method is POST - this is cgi request [19:39:31]url: /json_proto [19:39:31]query_string will be loaded in cgi processing [19:39:31]execute_cgi json_proto POST (null) [19:39:31]execute_cgi path=json_proto method=POST [19:39:31]POST find Content-Length [19:39:31]Host: 172.17.56.4:8080 [19:39:31]Content-Length: 674 [19:39:31]Content-Type: application/json [19:39:31] [19:39:31]POST finish read [19:39:31]Found Content-Length = 674 [19:39:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459553", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 9.740, "sum" : 700.31, "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" ] } } [19:39:31]execute_script... [19:39: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)459553", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 9.740, "sum" : 700.31, "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" ] } } [19:39:31]POST & json_proto [19:39:31]process_json_proto [19:39:31]json parsed OK: [19:39:31]protocol is kg_v1.0 [19:39:31]action value=close_receipt [19:39:31]process_action close_receipt [19:39:31]cmd_close_receipt [19:39:31]MH_GetDate [19:39:31]Write to MH i2c: F0 00 00 59 06 4E [19:39:31]Write i2c OK [19:39:31]MH_I2C_Read... [19:39:31]Read from MH i2c: F0 [19:39:31]MH_I2C_Read... [19:39:31]Read from MH i2c: F0 09 00 [19:39:31]MH_I2C_Read... [19:39:31]Read from MH i2c: F0 09 00 59 06 00 F3 7A 95 66 C9 DC B2 64 7A [19:39:31]GetLastDocTimeStamp 1721072128 [19:39:31]current date 1721072371 [19:39:31]FM_GetShiftState [19:39:31]SAM_PROTO_GetShiftState [19:39:31]wFMCommunicate request_size=4 [19:39:31]MH_SAM_APDU [19:39:31]CAPDU: 80 13 01 00 [19:39:31]Write to MH i2c: E2 08 00 5A 06 80 13 01 00 00 00 00 00 DD [19:39:31]Write i2c OK [19:39:31]MH_I2C_Read... [19:39:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:31]Read from MH i2c: E2 [19:39:31]MH_I2C_Read... [19:39:31]Read from MH i2c: E2 0E 00 [19:39:31]MH_I2C_Read... [19:39:31]Read from MH i2c: E2 0E 00 5A 06 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 B6 [19:39:31]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [19:39:31]wFMCommunicate OK [19:39:31]SAM_PROTO_GetShiftState done [19:39:31]FM_GetShiftState done [19:39:31]opened in 1721003876 [19:39:31]opened+sec_in_day 1721090276 [19:39:31]quantity*price = 70030 [19:39:31]sum+1 = 70032 [19:39:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 310 15.07.2024 19:39 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165437 ФПД: 86603425031349 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T193931&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165437&fm=86603425031349&tin=02508201610067®Number=0000000000090829&sum=70000 [19:39:32]StoreToDocumentArchive [19:39:32]shift 448 fd 165437 [19:39:32]save to /storage/0448/doc_00165437 [19:39:32]save last doc name /storage/0448/doc_00165437 to /storage/kkm_last_doc_name [19:39:32]save OK [19:39:32]Clear old archive folders... [19:39:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:39:32]tlvbuf is 01B46090 [19:39:32]SAM_PROTO_ClearQueue [19:39:32]wFMCommunicate request_size=4 [19:39:32]MH_SAM_APDU [19:39:32]CAPDU: 80 09 00 00 [19:39:32]Write to MH i2c: E2 08 00 67 06 80 09 00 00 00 00 00 00 DF [19:39:32]Write i2c OK [19:39:32]MH_I2C_Read... [19:39:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:39:32]Read from MH i2c: E2 [19:39:32]MH_I2C_Read... [19:39:32]Read from MH i2c: E2 03 00 [19:39:32]MH_I2C_Read... [19:39:32]Read from MH i2c: E2 03 00 67 06 00 90 00 E1 [19:39:32]RAPDU: 90 00 [19:39:32]wFMCommunicate OK [19:39:32]SAM_PROTO_ClearQueue done [19:39:32]KKMCreateOFDPacket [19:39:32]OFDProtocolAddRootSTLVToBuf [19:39:32]FM_MakeSignedData [19:39:32]FM_MakeSignedData [19:39:32]SAM_PROTO_SignData [19:39:32]wFMCommunicate request_size=4 [19:39:32]MH_SAM_APDU [19:39:32]CAPDU: 80 0D 01 02 [19:39:32]Write to MH i2c: E2 08 00 68 06 80 0D 01 02 00 00 00 00 E7 [19:39:32]Write i2c OK [19:39:32]MH_I2C_Read... [19:39:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:39:32]Read from MH i2c: E2 [19:39:32]MH_I2C_Read... [19:39:32]Read from MH i2c: E2 03 00 [19:39:32]MH_I2C_Read... [19:39:32]Read from MH i2c: E2 03 00 68 06 00 90 00 E2 [19:39:32]RAPDU: 90 00 [19:39:32]wFMCommunicate OK [19:39:32]wFMCommunicate request_size=255 [19:39:32]MH_SAM_APDU [19:39:32]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 26 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8F 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 0D 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 36 01 00 00 F4 03 04 00 F3 7A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3D 86 02 00 35 04 06 00 4E C3 EE 62 [19:39:32]Write to MH i2c: E2 02 01 69 06 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 26 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8F 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 0D 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 36 01 00 00 F4 03 04 00 F3 7A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3D 86 02 00 35 04 06 00 4E C3 EE 62 00 00 71 [19:39:32]Write i2c OK [19:39:32]MH_I2C_Read... [19:39:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:32]Read from MH i2c: E2 [19:39:32]MH_I2C_Read... [19:39:32]Read from MH i2c: E2 03 00 [19:39:32]MH_I2C_Read... [19:39:32]Read from MH i2c: E2 03 00 69 06 00 90 00 E3 [19:39:32]RAPDU: 90 00 [19:39:32]wFMCommunicate OK [19:39:32]wFMCommunicate request_size=7 [19:39:32]MH_SAM_APDU [19:39:32]CAPDU: 80 0D 02 02 02 A4 B5 [19:39:32]Write to MH i2c: E2 0A 00 6A 06 80 0D 02 02 02 00 A4 B5 00 00 47 [19:39:32]Write i2c OK [19:39:32]MH_I2C_Read... [19:39:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:32]Read from MH i2c: E2 [19:39:32]MH_I2C_Read... [19:39:32]Read from MH i2c: E2 03 00 [19:39:32]MH_I2C_Read... [19:39:32]Read from MH i2c: E2 03 00 6A 06 00 90 00 E4 [19:39:32]RAPDU: 90 00 [19:39:32]wFMCommunicate OK [19:39:32]wFMCommunicate request_size=4 [19:39:32]MH_SAM_APDU [19:39:32]CAPDU: 80 0D 03 02 [19:39:32]Write to MH i2c: E2 08 00 6B 06 80 0D 03 02 00 00 00 00 EC [19:39:32]Write i2c OK [19:39:32]MH_I2C_Read... [19:39:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:39:32]Read from MH i2c: E2 [19:39:32]MH_I2C_Read... [19:39:32]Read from MH i2c: E2 0B 00 [19:39:32]MH_I2C_Read... [19:39:32]Read from MH i2c: E2 0B 00 6B 06 00 D0 C8 92 6B 09 E7 B9 71 90 00 9C [19:39:32]RAPDU: D0 C8 92 6B 09 E7 B9 71 90 00 [19:39:32]wFMCommunicate OK [19:39:32]SAM_PROTO_SignData done [19:39:32]FM_MakeSignedData done [19:39:32]CreateOFDProtocolMessage [19:39:32]wFMCommunicate request_size=4 [19:39:32]MH_SAM_APDU [19:39:32]CAPDU: 80 11 00 00 [19:39:32]Write to MH i2c: E2 08 00 6C 06 80 11 00 00 00 00 00 00 EC [19:39:32]Write i2c OK [19:39:32]MH_I2C_Read... [19:39:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:32]Read from MH i2c: E2 [19:39:32]MH_I2C_Read... [19:39:32]Read from MH i2c: E2 17 00 [19:39:32]MH_I2C_Read... [19:39:32]Read from MH i2c: E2 17 00 6C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 42 [19:39:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:39:32]wFMCommunicate OK [19:39:32]CreateOFDProtocolMessage done [19:39:32]OFDSenderStorePacket 165437 [19:39:32]StoreOFDPacket docnum=165437 [19:39:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 75 8A 04 01 E3 99 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 26 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8F 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 0D 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 36 01 00 00 F4 03 04 00 F3 7A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3D 86 02 00 35 04 06 00 4E C3 EE 62 A4 B5 D0 C8 92 6B 09 E7 B9 71 [19:39:32]CheckFolder [19:39:32]dirname=/storage/ofd_packets [19:39:32]CheckFolder done [19:39:32]ProducePacketName [19:39:32]name=ofd_packets/00165437 [19:39:32]NVStorageSaveData ofd_packets/00165437 [19:39:32]File name is /storage/ofd_packets/00165437 [19:39:32]Write 298 bytes [19:39:32]NVStorageSaveData done [19:39:32]OFDSenderStorePacket done [19:39:32]KKMCreateOFDPacket done [19:39:32]NVStorageSaveData kkm_last_timestamp [19:39:32]File name is /storage/kkm_last_timestamp [19:39:32]Write 4 bytes [19:39:32]NVStorageSaveData done [19:39:32]ExternCall_PrintAddStr [19:39:32]wPrintStart [19:39:32]Write to MH i2c: 01 00 00 6D 06 73 [19:39:32]Write i2c OK [19:39:32]MH_I2C_Read... [19:39:32]Read from MH i2c: 01 [19:39:32]MH_I2C_Read... [19:39:32]Read from MH i2c: 01 07 00 [19:39:32]MH_I2C_Read... [19:39:32]Read from MH i2c: 01 07 00 6D 06 00 00 00 00 00 FF 0F 88 [19:39:32]RasterBufferAndPrint [19:39:32]line Счет N : (1)459553 [19:39:32]line ИНН: 02508201610067 [19:39:32]line Контрольно-Кассовый Чек [19:39:32]line ПРОДАЖА [19:39:32]line ТРК (МРК, ГНК) : 11 [19:39:32]line Товар: 2710194210 [19:39:32]line ДТ-К-5 [19:39:32]line 9.740 * 71.90 [19:39:32]line = 700.31 [19:39:32]line НДС 12% НСП 1% [19:39:32]line > о реализуемом товаре [19:39:32]line ОКРУГЛЕНИЕ: -0.31 [19:39:32]line ИТОГО: 700.00 [19:39:32]line Внесено: 700.00 [19:39:32]line СДАЧА: 0.00 [19:39:32]line НСП 1% : 6.20 [19:39:32]line НДС 12% : 74.37 [19:39:32]line Наличными: 700.00 [19:39:32]line Безнал.: 0.00 [19:39:32]line Место: АЗС № 72 "Партнер Нефть" [19:39:32]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:39:32]line СНО: Общий режим [19:39:32]line Чек 310 15.07.2024 19:39 [19:39:32]line Смена: 448 ФФД: 1.0 [19:39:32]line ЗНМ: 0300000160 [19:39:32]line РНМ: 0000000000090829 [19:39:32]line Версия ККМ: 001 [19:39:32]line ФМ: 0000000000874718 [19:39:32]line ФД: 165437 [19:39:32]line ФПД: 86603425031349 [19:39:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T193931&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165437&fm=86603425031349&tin=02508201610067®Number=0000000000090829&sum=70000 [19:39:33]OFD Sender: Processing packet 165437 [packets to send 106, broken 105] [19:39:33]ProducePacketName [19:39:33]name=ofd_packets/00165437 [19:39:33]OFD Sender: To server: pG, [19:39:33]CommunicateWithHost lk.salyk.kg:30040 [19:39:33]ConnectInit lk.salyk.kg [19:39:33]written 0, free lines is 4095 [19:39:33]Connected sock=11 [19:39: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 37 31 38 0C 01 00 00 75 8A 04 01 E3 99 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 26 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8F 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 0D 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 36 01 00 00 F4 03 04 00 F3 7A 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3D 86 02 00 35 04 06 00 4E C3 EE 62 A4 B5 D0 C8 92 6B 09 E7 B9 71 [19:39:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 5E BA 47 00 4A 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3D 86 02 00 F4 03 04 00 7D 21 95 66 B6 04 01 00 00 88 2B B5 7C 95 38 19 A7 [19:39:33]CommunicateWithHost err = 0 [19:39:33]CheckOFDResponse [19:39:33]1017 (14) - 77093643461234 [19:39:33]1041 (16) - 0000000000874718 [19:39:33]1040 (4) - 165437 [19:39:33]1012 (4) - 15.07.2024 13:17 [19:39:33]1206 (1) - 0 [19:39:33]OFD Sender: Remove packet 165437 [19:39:33]ProducePacketName [19:39:33]name=ofd_packets/00165437 [19:39:33]NVStorageDeleteData [19:39:33]Write to MH i2c: 01 00 00 97 06 9D [19:39:33]Write i2c OK [19:39:33]MH_I2C_Read... [19:39:33]Read from MH i2c: 01 [19:39:33]MH_I2C_Read... [19:39:33]Read from MH i2c: 01 07 00 [19:39:33]MH_I2C_Read... [19:39:33]Read from MH i2c: 01 07 00 97 06 00 00 00 00 00 F3 0C A3 [19:39:33]RasterBufferAndPrint [19:39:33]line [19:39:33]line [19:39:33]line [19:39:33]line [19:39:33]line [19:39:33]written 0, free lines is 3322 [19:39:33]MH_Cut [19:39:33]Write to MH i2c: D1 01 00 9E 06 01 76 [19:39:33]Write i2c OK [19:39:33]MH_I2C_Read... [19:39:33]Read from MH i2c: D1 [19:39:33]MH_I2C_Read... [19:39:33]Read from MH i2c: D1 01 00 [19:39:33]MH_I2C_Read... [19:39:33]Read from MH i2c: D1 01 00 9E 06 00 75 [19:39:33]Write to MH i2c: 01 00 00 9F 06 A5 [19:39:33]Write i2c OK [19:39:33]MH_I2C_Read... [19:39:33]OFD Sender: No OFD packet to send [19:39:34]*** Cut start [19:39:34]*** Partial cut [19:39:34]*** CUTSNS_PIN = 1 [19:39:34]*** CUTSNS_PIN = 0 [19:39:34]*** Brake cut motor [19:39:34]Read from MH i2c: 01 [19:39:34]MH_I2C_Read... [19:39:34]*** Stop cut motor [19:39:34]*** Cut end [19:39:34]Read from MH i2c: 01 07 00 [19:39:34]MH_I2C_Read... [19:39:34]Read from MH i2c: 01 07 00 9F 06 00 00 00 00 00 FF 0F BA [19:39:34]process_action close_receipt done [19:39:34]requested_data is exist [19:39:34]produce_requested_data [19:39:34]requested_item fm.sn is exist - process it [19:39:34]wFMCommunicate request_size=4 [19:39:34]MH_SAM_APDU [19:39:34]CAPDU: 80 11 00 00 [19:39:34]Write to MH i2c: E2 08 00 A0 06 80 11 00 00 00 00 00 00 20 [19:39:34]Write i2c OK [19:39:34]MH_I2C_Read... [19:39:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:34]Read from MH i2c: E2 [19:39:34]MH_I2C_Read... [19:39:34]Read from MH i2c: E2 17 00 [19:39:34]MH_I2C_Read... [19:39:34]Read from MH i2c: E2 17 00 A0 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 76 [19:39:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:39:34]wFMCommunicate OK [19:39:34]requested_item fd.num is exist - process it [19:39:34]SAM_PROTO_GetFieldsCounters [19:39:34]wFMCommunicate request_size=4 [19:39:34]MH_SAM_APDU [19:39:34]CAPDU: 80 13 00 00 [19:39:34]Write to MH i2c: E2 08 00 A1 06 80 13 00 00 00 00 00 00 23 [19:39:34]Write i2c OK [19:39:34]MH_I2C_Read... [19:39:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:39:35]Read from MH i2c: E2 [19:39:35]MH_I2C_Read... [19:39:35]Read from MH i2c: E2 62 00 [19:39:35]MH_I2C_Read... [19:39:35]Read from MH i2c: E2 62 00 A1 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3D 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 75 [19:39:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3D 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:39:35]wFMCommunicate OK [19:39:35]SAM_PROTO_GetFieldsCounters done [19:39:35]requested_item shift.num is exist - process it [19:39:35]requested_item shift.opened is exist - process it [19:39:35]req_shift_opened [19:39:35]FM_GetShiftState [19:39:35]SAM_PROTO_GetShiftState [19:39:35]wFMCommunicate request_size=4 [19:39:35]MH_SAM_APDU [19:39:35]CAPDU: 80 13 01 00 [19:39:35]Write to MH i2c: E2 08 00 A2 06 80 13 01 00 00 00 00 00 25 [19:39:35]Write i2c OK [19:39:35]MH_I2C_Read... [19:39:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:35]Read from MH i2c: E2 [19:39:35]MH_I2C_Read... [19:39:35]Read from MH i2c: E2 0E 00 [19:39:35]MH_I2C_Read... [19:39:35]Read from MH i2c: E2 0E 00 A2 06 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 FE [19:39:35]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [19:39:35]wFMCommunicate OK [19:39:35]SAM_PROTO_GetShiftState done [19:39:35]FM_GetShiftState done [19:39:35]req_shift_opened done [19:39:35]requested_item shift.open_date is exist - process it [19:39:35]req_shift_open_date [19:39:35]req_shift_open_date done [19:39:35]produce_requested_data done [19:39:35]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165437,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [19:39:35]process_action_free close_receipt [19:39:35]json_value_free [19:39:35]json_value_free done [19:39:35]process_json_proto returns [19:39:35]Send response to host [19:39:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165437,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [19:39:35]free response buf [19:39:35]execute_script done [19:39:35]execute_script returns [19:39:35]free content buf [19:39:35]Sock 9.Close socket [19:39:35]Sock 9.Thread stoped [19:39:38]OFD Sender: No OFD packet to send [19:39:43]OFD Sender: No OFD packet to send [19:39:48]OFD Sender: No OFD packet to send [19:39:53]OFD Sender: No OFD packet to send [19:39:58]OFD Sender: No OFD packet to send [19:40:03]OFD Sender: No OFD packet to send [19:40:08]OFD Sender: No OFD packet to send [19:40:14]OFD Sender: No OFD packet to send [19:40:19]OFD Sender: No OFD packet to send [19:40:24]OFD Sender: No OFD packet to send [19:40:29]OFD Sender: No OFD packet to send [19:40:34]OFD Sender: No OFD packet to send [19:40:39]OFD Sender: No OFD packet to send [19:40:44]OFD Sender: No OFD packet to send [19:40:49]OFD Sender: No OFD packet to send [19:40:54]OFD Sender: No OFD packet to send [19:40:59]OFD Sender: No OFD packet to send [19:41:04]OFD Sender: No OFD packet to send [19:41:09]OFD Sender: No OFD packet to send [19:41:14]OFD Sender: No OFD packet to send [19:41:19]OFD Sender: No OFD packet to send [19:41:24]OFD Sender: No OFD packet to send [19:41:29]OFD Sender: No OFD packet to send [19:41:34]OFD Sender: No OFD packet to send [19:41:39]OFD Sender: No OFD packet to send [19:41:44]OFD Sender: No OFD packet to send [19:41:49]OFD Sender: No OFD packet to send [19:41:54]OFD Sender: No OFD packet to send [19:41:59]OFD Sender: No OFD packet to send [19:42:04]OFD Sender: No OFD packet to send [19:42:09]OFD Sender: No OFD packet to send [19:42:14]OFD Sender: No OFD packet to send [19:42:19]OFD Sender: No OFD packet to send [19:42:24]OFD Sender: No OFD packet to send [19:42:29]OFD Sender: No OFD packet to send [19:42:34]OFD Sender: No OFD packet to send [19:42:39]OFD Sender: No OFD packet to send [19:42:44]OFD Sender: No OFD packet to send [19:42:49]OFD Sender: No OFD packet to send [19:42:54]OFD Sender: No OFD packet to send [19:42:59]OFD Sender: No OFD packet to send [19:43:04]OFD Sender: No OFD packet to send [19:43:09]OFD Sender: No OFD packet to send [19:43:14]OFD Sender: No OFD packet to send [19:43:19]OFD Sender: No OFD packet to send [19:43:24]OFD Sender: No OFD packet to send [19:43:29]OFD Sender: No OFD packet to send [19:43:34]OFD Sender: No OFD packet to send [19:43:39]OFD Sender: No OFD packet to send [19:43:44]OFD Sender: No OFD packet to send [19:43:49]OFD Sender: No OFD packet to send [19:43:54]OFD Sender: No OFD packet to send [19:43:59]OFD Sender: No OFD packet to send [19:44:04]OFD Sender: No OFD packet to send [19:44:09]OFD Sender: No OFD packet to send [19:44:14]OFD Sender: No OFD packet to send [19:44:19]OFD Sender: No OFD packet to send [19:44:24]OFD Sender: No OFD packet to send [19:44:29]OFD Sender: No OFD packet to send [19:44:34]OFD Sender: No OFD packet to send [19:44:39]OFD Sender: No OFD packet to send [19:44:44]OFD Sender: No OFD packet to send [19:44:49]OFD Sender: No OFD packet to send [19:44:54]OFD Sender: No OFD packet to send [19:44:59]OFD Sender: No OFD packet to send [19:45:04]OFD Sender: No OFD packet to send [19:45:09]OFD Sender: No OFD packet to send [19:45:14]OFD Sender: No OFD packet to send [19:45:19]OFD Sender: No OFD packet to send [19:45:24]OFD Sender: No OFD packet to send [19:45:29]OFD Sender: No OFD packet to send [19:45:34]OFD Sender: No OFD packet to send [19:45:39]OFD Sender: No OFD packet to send [19:45:44]OFD Sender: No OFD packet to send [19:45:49]OFD Sender: No OFD packet to send [19:45:54]OFD Sender: No OFD packet to send [19:45:59]OFD Sender: No OFD packet to send [19:46:04]OFD Sender: No OFD packet to send [19:46:09]OFD Sender: No OFD packet to send [19:46:14]OFD Sender: No OFD packet to send [19:46:19]OFD Sender: No OFD packet to send [19:46:24]OFD Sender: No OFD packet to send [19:46:29]OFD Sender: No OFD packet to send [19:46:34]OFD Sender: No OFD packet to send [19:46:39]OFD Sender: No OFD packet to send [19:46:44]OFD Sender: No OFD packet to send [19:46:49]OFD Sender: No OFD packet to send [19:46:54]OFD Sender: No OFD packet to send [19:46:59]OFD Sender: No OFD packet to send [19:47:04]OFD Sender: No OFD packet to send [19:47:09]OFD Sender: No OFD packet to send [19:47:14]OFD Sender: No OFD packet to send [19:47:19]OFD Sender: No OFD packet to send [19:47:24]OFD Sender: No OFD packet to send [19:47:29]OFD Sender: No OFD packet to send [19:47:34]OFD Sender: No OFD packet to send [19:47:39]OFD Sender: No OFD packet to send [19:47:44]OFD Sender: No OFD packet to send [19:47:49]OFD Sender: No OFD packet to send [19:47:54]OFD Sender: No OFD packet to send [19:47:59]OFD Sender: No OFD packet to send [19:48:04]OFD Sender: No OFD packet to send [19:48:09]OFD Sender: No OFD packet to send [19:48:14]OFD Sender: No OFD packet to send [19:48:19]OFD Sender: No OFD packet to send [19:48:24]OFD Sender: No OFD packet to send [19:48:29]OFD Sender: No OFD packet to send [19:48:34]OFD Sender: No OFD packet to send [19:48:39]OFD Sender: No OFD packet to send [19:48:44]OFD Sender: No OFD packet to send [19:48:49]OFD Sender: No OFD packet to send [19:48:54]OFD Sender: No OFD packet to send [19:48:59]OFD Sender: No OFD packet to send [19:49:04]OFD Sender: No OFD packet to send [19:49:09]OFD Sender: No OFD packet to send [19:49:14]OFD Sender: No OFD packet to send [19:49:19]OFD Sender: No OFD packet to send [19:49:24]OFD Sender: No OFD packet to send [19:49:29]OFD Sender: No OFD packet to send [19:49:34]OFD Sender: No OFD packet to send [19:49:39]OFD Sender: No OFD packet to send [19:49:44]OFD Sender: No OFD packet to send [19:49:49]OFD Sender: No OFD packet to send [19:49:54]OFD Sender: No OFD packet to send [19:49:59]OFD Sender: No OFD packet to send [19:50:04]OFD Sender: No OFD packet to send [19:50:09]OFD Sender: No OFD packet to send [19:50:13]accept exits with 7 [19:50:13]New connection [19:50:13]New thread 3067190628 created [19:50:13]Thread 3067333988 joined [19:50:13]Waiting for new connection... [19:50:13] Sock 7.Parse request [19:50:13]Sock 7.Check first char [19:50:13]Sock 7.First char is OK [19:50:13]request: POST /json_proto HTTP/1.0 [19:50:13]Method: POST [19:50:13]URL: /json_proto [19:50:13]Method is POST - this is cgi request [19:50:13]url: /json_proto [19:50:13]query_string will be loaded in cgi processing [19:50:13]execute_cgi json_proto POST (null) [19:50:13]execute_cgi path=json_proto method=POST [19:50:13]POST find Content-Length [19:50:13]Host: 172.17.56.4:8080 [19:50:13]Content-Length: 677 [19:50:13]Content-Type: application/json [19:50:13] [19:50:13]POST finish read [19:50:13]Found Content-Length = 677 [19:50:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459554", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:50:13]execute_script... [19:50:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459554", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:50:13]POST & json_proto [19:50:13]process_json_proto [19:50:13]json parsed OK: [19:50:13]protocol is kg_v1.0 [19:50:13]action value=close_receipt [19:50:13]process_action close_receipt [19:50:13]cmd_close_receipt [19:50:13]MH_GetDate [19:50:13]Write to MH i2c: F0 00 00 A3 06 98 [19:50:13]Write i2c OK [19:50:13]MH_I2C_Read... [19:50:13]Read from MH i2c: F0 [19:50:13]MH_I2C_Read... [19:50:13]Read from MH i2c: F0 09 00 [19:50:13]MH_I2C_Read... [19:50:13]Read from MH i2c: F0 09 00 A3 06 00 76 7D 95 66 C9 DC B2 64 4A [19:50:13]GetLastDocTimeStamp 1721072371 [19:50:13]current date 1721073014 [19:50:13]FM_GetShiftState [19:50:13]SAM_PROTO_GetShiftState [19:50:13]wFMCommunicate request_size=4 [19:50:13]MH_SAM_APDU [19:50:13]CAPDU: 80 13 01 00 [19:50:13]Write to MH i2c: E2 08 00 A4 06 80 13 01 00 00 00 00 00 27 [19:50:13]Write i2c OK [19:50:13]MH_I2C_Read... [19:50:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:50:13]Read from MH i2c: E2 [19:50:13]MH_I2C_Read... [19:50:13]Read from MH i2c: E2 0E 00 [19:50:13]MH_I2C_Read... [19:50:13]Read from MH i2c: E2 0E 00 A4 06 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 00 [19:50:13]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [19:50:13]wFMCommunicate OK [19:50:13]SAM_PROTO_GetShiftState done [19:50:13]FM_GetShiftState done [19:50:13]opened in 1721003876 [19:50:13]opened+sec_in_day 1721090276 [19:50:13]quantity*price = 40006 [19:50:13]sum+1 = 40007 [19:50:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 311 15.07.2024 19:50 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165438 ФПД: 143739758668412 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T195014&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165438&fm=143739758668412&tin=02508201610067®Number=0000000000090829&sum=40000 [19:50:14]StoreToDocumentArchive [19:50:14]shift 448 fd 165438 [19:50:14]save to /storage/0448/doc_00165438 [19:50:14]save last doc name /storage/0448/doc_00165438 to /storage/kkm_last_doc_name [19:50:14]save OK [19:50:14]Clear old archive folders... [19:50:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:50:14]tlvbuf is 01BA72B0 [19:50:14]SAM_PROTO_ClearQueue [19:50:14]wFMCommunicate request_size=4 [19:50:14]MH_SAM_APDU [19:50:14]CAPDU: 80 09 00 00 [19:50:14]Write to MH i2c: E2 08 00 B1 06 80 09 00 00 00 00 00 00 29 [19:50:14]Write i2c OK [19:50:14]MH_I2C_Read... [19:50:14]OFD Sender: No OFD packet to send [19:50:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:50:14]Read from MH i2c: E2 [19:50:14]MH_I2C_Read... [19:50:14]Read from MH i2c: E2 03 00 [19:50:14]MH_I2C_Read... [19:50:14]Read from MH i2c: E2 03 00 B1 06 00 90 00 2B [19:50:14]RAPDU: 90 00 [19:50:14]wFMCommunicate OK [19:50:14]SAM_PROTO_ClearQueue done [19:50:14]KKMCreateOFDPacket [19:50:14]OFDProtocolAddRootSTLVToBuf [19:50:14]FM_MakeSignedData [19:50:14]FM_MakeSignedData [19:50:14]SAM_PROTO_SignData [19:50:14]wFMCommunicate request_size=4 [19:50:14]MH_SAM_APDU [19:50:14]CAPDU: 80 0D 01 02 [19:50:14]Write to MH i2c: E2 08 00 B2 06 80 0D 01 02 00 00 00 00 31 [19:50:14]Write i2c OK [19:50:14]MH_I2C_Read... [19:50:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:50:14]Read from MH i2c: E2 [19:50:14]MH_I2C_Read... [19:50:14]Read from MH i2c: E2 03 00 [19:50:14]MH_I2C_Read... [19:50:14]Read from MH i2c: E2 03 00 B2 06 00 90 00 2C [19:50:14]RAPDU: 90 00 [19:50:14]wFMCommunicate OK [19:50:14]wFMCommunicate request_size=255 [19:50:14]MH_SAM_APDU [19:50:14]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 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 76 7D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3E 86 02 00 35 04 06 00 82 [19:50:14]Write to MH i2c: E2 02 01 B3 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 76 7D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3E 86 02 00 35 04 06 00 82 00 00 B9 [19:50:14]Write i2c OK [19:50:14]MH_I2C_Read... [19:50:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:50:15]Read from MH i2c: E2 [19:50:15]MH_I2C_Read... [19:50:15]Read from MH i2c: E2 03 00 [19:50:15]MH_I2C_Read... [19:50:15]Read from MH i2c: E2 03 00 B3 06 00 90 00 2D [19:50:15]RAPDU: 90 00 [19:50:15]wFMCommunicate OK [19:50:15]wFMCommunicate request_size=10 [19:50:15]MH_SAM_APDU [19:50:15]CAPDU: 80 0D 02 02 05 BB 05 41 6A 7C [19:50:15]Write to MH i2c: E2 0D 00 B4 06 80 0D 02 02 05 00 BB 05 41 6A 7C 00 00 25 [19:50:15]Write i2c OK [19:50:15]MH_I2C_Read... [19:50:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:50:15]Read from MH i2c: E2 [19:50:15]MH_I2C_Read... [19:50:15]Read from MH i2c: E2 03 00 [19:50:15]MH_I2C_Read... [19:50:15]Read from MH i2c: E2 03 00 B4 06 00 90 00 2E [19:50:15]RAPDU: 90 00 [19:50:15]wFMCommunicate OK [19:50:15]wFMCommunicate request_size=4 [19:50:15]MH_SAM_APDU [19:50:15]CAPDU: 80 0D 03 02 [19:50:15]Write to MH i2c: E2 08 00 B5 06 80 0D 03 02 00 00 00 00 36 [19:50:15]Write i2c OK [19:50:15]MH_I2C_Read... [19:50:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:50:15]Read from MH i2c: E2 [19:50:15]MH_I2C_Read... [19:50:15]Read from MH i2c: E2 0B 00 [19:50:15]MH_I2C_Read... [19:50:15]Read from MH i2c: E2 0B 00 B5 06 00 D1 A6 28 14 A9 0E 44 78 90 00 5D [19:50:15]RAPDU: D1 A6 28 14 A9 0E 44 78 90 00 [19:50:15]wFMCommunicate OK [19:50:15]SAM_PROTO_SignData done [19:50:15]FM_MakeSignedData done [19:50:15]CreateOFDProtocolMessage [19:50:15]wFMCommunicate request_size=4 [19:50:15]MH_SAM_APDU [19:50:15]CAPDU: 80 11 00 00 [19:50:15]Write to MH i2c: E2 08 00 B6 06 80 11 00 00 00 00 00 00 36 [19:50:15]Write i2c OK [19:50:15]MH_I2C_Read... [19:50:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:50:15]Read from MH i2c: E2 [19:50:15]MH_I2C_Read... [19:50:15]Read from MH i2c: E2 17 00 [19:50:15]MH_I2C_Read... [19:50:15]Read from MH i2c: E2 17 00 B6 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8C [19:50:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:50:15]wFMCommunicate OK [19:50:15]CreateOFDProtocolMessage done [19:50:15]OFDSenderStorePacket 165438 [19:50:15]StoreOFDPacket docnum=165438 [19:50:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E7 21 07 01 7F 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 76 7D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3E 86 02 00 35 04 06 00 82 BB 05 41 6A 7C D1 A6 28 14 A9 0E 44 78 [19:50:15]CheckFolder [19:50:15]dirname=/storage/ofd_packets [19:50:15]CheckFolder done [19:50:15]ProducePacketName [19:50:15]name=ofd_packets/00165438 [19:50:15]NVStorageSaveData ofd_packets/00165438 [19:50:15]File name is /storage/ofd_packets/00165438 [19:50:15]Write 301 bytes [19:50:15]NVStorageSaveData done [19:50:15]OFDSenderStorePacket done [19:50:15]KKMCreateOFDPacket done [19:50:15]NVStorageSaveData kkm_last_timestamp [19:50:15]File name is /storage/kkm_last_timestamp [19:50:15]Write 4 bytes [19:50:15]NVStorageSaveData done [19:50:15]ExternCall_PrintAddStr [19:50:15]wPrintStart [19:50:15]Write to MH i2c: 01 00 00 B7 06 BD [19:50:15]Write i2c OK [19:50:15]MH_I2C_Read... [19:50:15]Read from MH i2c: 01 [19:50:15]MH_I2C_Read... [19:50:15]Read from MH i2c: 01 07 00 [19:50:15]MH_I2C_Read... [19:50:15]Read from MH i2c: 01 07 00 B7 06 00 00 00 00 00 FF 0F D2 [19:50:15]RasterBufferAndPrint [19:50:15]line Счет N : (1)459554 [19:50:15]line ИНН: 02508201610067 [19:50:15]line Контрольно-Кассовый Чек [19:50:15]line ПРОДАЖА [19:50:15]line ТРК (МРК, ГНК) : 12 [19:50:15]line Товар: 2710124130 [19:50:15]line Аи-92-К-5 [19:50:15]line 6.080 * 65.80 [19:50:15]line = 400.06 [19:50:15]line НДС 12% НСП 1% [19:50:15]line > о реализуемом товаре [19:50:15]line ОКРУГЛЕНИЕ: -0.06 [19:50:15]line ИТОГО: 400.00 [19:50:15]line Внесено: 400.00 [19:50:15]line СДАЧА: 0.00 [19:50:15]line НСП 1% : 3.54 [19:50:15]line НДС 12% : 42.48 [19:50:15]line Наличными: 400.00 [19:50:15]line Безнал.: 0.00 [19:50:15]line Место: АЗС № 72 "Партнер Нефть" [19:50:15]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:50:15]line СНО: Общий режим [19:50:15]line Чек 311 15.07.2024 19:50 [19:50:15]line Смена: 448 ФФД: 1.0 [19:50:15]line ЗНМ: 0300000160 [19:50:15]line РНМ: 0000000000090829 [19:50:15]line Версия ККМ: 001 [19:50:15]line ФМ: 0000000000874718 [19:50:15]line ФД: 165438 [19:50:15]line ФПД: 143739758668412 [19:50:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T195014&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165438&fm=143739758668412&tin=02508201610067®Number=0000000000090829&sum=40000 [19:50:15]OFD Sender: Processing packet 165438 [packets to send 106, broken 105] [19:50:15]ProducePacketName [19:50:15]name=ofd_packets/00165438 [19:50:15]OFD Sender: To server: pG, [19:50:15]CommunicateWithHost lk.salyk.kg:30040 [19:50:15]ConnectInit lk.salyk.kg [19:50:15]written 0, free lines is 4095 [19:50:15]Connected sock=10 [19:50:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E7 21 07 01 7F 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 76 7D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3E 86 02 00 35 04 06 00 82 BB 05 41 6A 7C D1 A6 28 14 A9 0E 44 78 [19:50:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 95 F0 47 00 CB 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3E 86 02 00 F4 03 04 00 FF 23 95 66 B6 04 01 00 00 34 29 8B 02 53 AB 3A 95 [19:50:15]CommunicateWithHost err = 0 [19:50:15]CheckOFDResponse [19:50:15]1017 (14) - 77093643461234 [19:50:15]1041 (16) - 0000000000874718 [19:50:15]1040 (4) - 165438 [19:50:15]1012 (4) - 15.07.2024 13:28 [19:50:15]1206 (1) - 0 [19:50:15]OFD Sender: Remove packet 165438 [19:50:15]ProducePacketName [19:50:15]name=ofd_packets/00165438 [19:50:15]NVStorageDeleteData [19:50:15]Write to MH i2c: 01 00 00 E1 06 E7 [19:50:15]Write i2c OK [19:50:15]MH_I2C_Read... [19:50:15]Read from MH i2c: 01 [19:50:15]MH_I2C_Read... [19:50:15]Read from MH i2c: 01 07 00 [19:50:15]MH_I2C_Read... [19:50:15]Read from MH i2c: 01 07 00 E1 06 00 00 00 00 00 FE 0C F8 [19:50:15]RasterBufferAndPrint [19:50:15]line [19:50:15]line [19:50:15]line [19:50:15]line [19:50:15]line [19:50:15]written 0, free lines is 3332 [19:50:16]MH_Cut [19:50:16]Write to MH i2c: D1 01 00 E8 06 01 C0 [19:50:16]Write i2c OK [19:50:16]MH_I2C_Read... [19:50:16]Read from MH i2c: D1 [19:50:16]MH_I2C_Read... [19:50:16]Read from MH i2c: D1 01 00 [19:50:16]MH_I2C_Read... [19:50:16]Read from MH i2c: D1 01 00 E8 06 00 BF [19:50:16]Write to MH i2c: 01 00 00 E9 06 EF [19:50:16]Write i2c OK [19:50:16]MH_I2C_Read... [19:50:16]OFD Sender: No OFD packet to send [19:50:16]*** Cut start [19:50:16]*** Partial cut [19:50:16]*** CUTSNS_PIN = 1 [19:50:16]*** CUTSNS_PIN = 0 [19:50:16]*** Brake cut motor [19:50:17]Read from MH i2c: 01 [19:50:17]MH_I2C_Read... [19:50:17]*** Stop cut motor [19:50:17]*** Cut end [19:50:17]Read from MH i2c: 01 07 00 [19:50:17]MH_I2C_Read... [19:50:17]Read from MH i2c: 01 07 00 E9 06 00 00 00 00 00 FF 0F 04 [19:50:17]process_action close_receipt done [19:50:17]requested_data is exist [19:50:17]produce_requested_data [19:50:17]requested_item fm.sn is exist - process it [19:50:17]wFMCommunicate request_size=4 [19:50:17]MH_SAM_APDU [19:50:17]CAPDU: 80 11 00 00 [19:50:17]Write to MH i2c: E2 08 00 EA 06 80 11 00 00 00 00 00 00 6A [19:50:17]Write i2c OK [19:50:17]MH_I2C_Read... [19:50:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:50:17]Read from MH i2c: E2 [19:50:17]MH_I2C_Read... [19:50:17]Read from MH i2c: E2 17 00 [19:50:17]MH_I2C_Read... [19:50:17]Read from MH i2c: E2 17 00 EA 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C0 [19:50:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:50:17]wFMCommunicate OK [19:50:17]requested_item fd.num is exist - process it [19:50:17]SAM_PROTO_GetFieldsCounters [19:50:17]wFMCommunicate request_size=4 [19:50:17]MH_SAM_APDU [19:50:17]CAPDU: 80 13 00 00 [19:50:17]Write to MH i2c: E2 08 00 EB 06 80 13 00 00 00 00 00 00 6D [19:50:17]Write i2c OK [19:50:17]MH_I2C_Read... [19:50:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:50:17]Read from MH i2c: E2 [19:50:17]MH_I2C_Read... [19:50:17]Read from MH i2c: E2 62 00 [19:50:17]MH_I2C_Read... [19:50:17]Read from MH i2c: E2 62 00 EB 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3E 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 37 01 00 00 5E 04 04 00 37 01 00 00 57 04 04 00 38 01 00 00 19 04 04 00 00 00 00 00 90 00 C3 [19:50: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3E 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 37 01 00 00 5E 04 04 00 37 01 00 00 57 04 04 00 38 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:50:17]wFMCommunicate OK [19:50:17]SAM_PROTO_GetFieldsCounters done [19:50:17]requested_item shift.num is exist - process it [19:50:17]requested_item shift.opened is exist - process it [19:50:17]req_shift_opened [19:50:17]FM_GetShiftState [19:50:17]SAM_PROTO_GetShiftState [19:50:17]wFMCommunicate request_size=4 [19:50:17]MH_SAM_APDU [19:50:17]CAPDU: 80 13 01 00 [19:50:17]Write to MH i2c: E2 08 00 EC 06 80 13 01 00 00 00 00 00 6F [19:50:17]Write i2c OK [19:50:17]MH_I2C_Read... [19:50:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:50:17]Read from MH i2c: E2 [19:50:17]MH_I2C_Read... [19:50:17]Read from MH i2c: E2 0E 00 [19:50:17]MH_I2C_Read... [19:50:17]Read from MH i2c: E2 0E 00 EC 06 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 48 [19:50:17]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [19:50:17]wFMCommunicate OK [19:50:17]SAM_PROTO_GetShiftState done [19:50:17]FM_GetShiftState done [19:50:17]req_shift_opened done [19:50:17]requested_item shift.open_date is exist - process it [19:50:17]req_shift_open_date [19:50:17]req_shift_open_date done [19:50:17]produce_requested_data done [19:50:17]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165438,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [19:50:17]process_action_free close_receipt [19:50:17]json_value_free [19:50:17]json_value_free done [19:50:17]process_json_proto returns [19:50:17]Send response to host [19:50:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165438,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [19:50:17]free response buf [19:50:17]execute_script done [19:50:17]execute_script returns [19:50:17]free content buf [19:50:17]Sock 7.Close socket [19:50:17]Sock 7.Thread stoped [19:50:21]OFD Sender: No OFD packet to send [19:50:26]OFD Sender: No OFD packet to send [19:50:31]OFD Sender: No OFD packet to send [19:50:36]OFD Sender: No OFD packet to send [19:50:41]OFD Sender: No OFD packet to send [19:50:46]OFD Sender: No OFD packet to send [19:50:49]accept exits with 9 [19:50:49]New connection [19:50:49]New thread 3067333988 created [19:50:49]Thread 3067190628 joined [19:50:49]Waiting for new connection... [19:50:49] Sock 9.Parse request [19:50:49]Sock 9.Check first char [19:50:49]Sock 9.First char is OK [19:50:49]request: POST /json_proto HTTP/1.0 [19:50:49]Method: POST [19:50:49]URL: /json_proto [19:50:49]Method is POST - this is cgi request [19:50:49]url: /json_proto [19:50:49]query_string will be loaded in cgi processing [19:50:49]execute_cgi json_proto POST (null) [19:50:49]execute_cgi path=json_proto method=POST [19:50:49]POST find Content-Length [19:50:49]Host: 172.17.56.4:8080 [19:50:49]Content-Length: 679 [19:50:49]Content-Type: application/json [19:50:49] [19:50:49]POST finish read [19:50:49]Found Content-Length = 679 [19:50:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459555", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "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" ] } } [19:50:49]execute_script... [19:50:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459555", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "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" ] } } [19:50:49]POST & json_proto [19:50:49]process_json_proto [19:50:49]json parsed OK: [19:50:49]protocol is kg_v1.0 [19:50:49]action value=close_receipt [19:50:49]process_action close_receipt [19:50:49]cmd_close_receipt [19:50:49]MH_GetDate [19:50:49]Write to MH i2c: F0 00 00 ED 06 E2 [19:50:49]Write i2c OK [19:50:49]MH_I2C_Read... [19:50:49]Read from MH i2c: F0 [19:50:49]MH_I2C_Read... [19:50:49]Read from MH i2c: F0 09 00 [19:50:49]MH_I2C_Read... [19:50:49]Read from MH i2c: F0 09 00 ED 06 00 99 7D 95 66 C9 DC B2 64 B7 [19:50:49]GetLastDocTimeStamp 1721073014 [19:50:49]current date 1721073049 [19:50:49]FM_GetShiftState [19:50:49]SAM_PROTO_GetShiftState [19:50:49]wFMCommunicate request_size=4 [19:50:49]MH_SAM_APDU [19:50:49]CAPDU: 80 13 01 00 [19:50:49]Write to MH i2c: E2 08 00 EE 06 80 13 01 00 00 00 00 00 71 [19:50:49]Write i2c OK [19:50:49]MH_I2C_Read... [19:50:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:50:49]Read from MH i2c: E2 [19:50:49]MH_I2C_Read... [19:50:49]Read from MH i2c: E2 0E 00 [19:50:49]MH_I2C_Read... [19:50:49]Read from MH i2c: E2 0E 00 EE 06 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 4A [19:50:49]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [19:50:49]wFMCommunicate OK [19:50:49]SAM_PROTO_GetShiftState done [19:50:49]FM_GetShiftState done [19:50:49]opened in 1721003876 [19:50:49]opened+sec_in_day 1721090276 [19:50:49]quantity*price = 200025 [19:50:49]sum+1 = 200027 [19:50:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 312 15.07.2024 19:50 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165439 ФПД: 265633363343348 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T195049&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165439&fm=265633363343348&tin=02508201610067®Number=0000000000090829&sum=200000 [19:50:50]StoreToDocumentArchive [19:50:50]shift 448 fd 165439 [19:50:50]save to /storage/0448/doc_00165439 [19:50:50]save last doc name /storage/0448/doc_00165439 to /storage/kkm_last_doc_name [19:50:50]save OK [19:50:50]Clear old archive folders... [19:50:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:50:50]tlvbuf is 01B48040 [19:50:50]SAM_PROTO_ClearQueue [19:50:50]wFMCommunicate request_size=4 [19:50:50]MH_SAM_APDU [19:50:50]CAPDU: 80 09 00 00 [19:50:50]Write to MH i2c: E2 08 00 FB 06 80 09 00 00 00 00 00 00 73 [19:50:50]Write i2c OK [19:50:50]MH_I2C_Read... [19:50:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:50:50]Read from MH i2c: E2 [19:50:50]MH_I2C_Read... [19:50:50]Read from MH i2c: E2 03 00 [19:50:50]MH_I2C_Read... [19:50:50]Read from MH i2c: E2 03 00 FB 06 00 90 00 75 [19:50:50]RAPDU: 90 00 [19:50:50]wFMCommunicate OK [19:50:50]SAM_PROTO_ClearQueue done [19:50:50]KKMCreateOFDPacket [19:50:50]OFDProtocolAddRootSTLVToBuf [19:50:50]FM_MakeSignedData [19:50:50]FM_MakeSignedData [19:50:50]SAM_PROTO_SignData [19:50:50]wFMCommunicate request_size=4 [19:50:50]MH_SAM_APDU [19:50:50]CAPDU: 80 0D 01 02 [19:50:50]Write to MH i2c: E2 08 00 FC 06 80 0D 01 02 00 00 00 00 7B [19:50:50]Write i2c OK [19:50:50]MH_I2C_Read... [19:50:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:50:50]Read from MH i2c: E2 [19:50:50]MH_I2C_Read... [19:50:50]Read from MH i2c: E2 03 00 [19:50:50]MH_I2C_Read... [19:50:50]Read from MH i2c: E2 03 00 FC 06 00 90 00 76 [19:50:50]RAPDU: 90 00 [19:50:50]wFMCommunicate OK [19:50:50]wFMCommunicate request_size=255 [19:50:50]MH_SAM_APDU [19:50:50]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 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 38 01 00 00 F4 03 04 00 99 7D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3F 86 02 00 35 04 06 00 F1 97 96 43 [19:50:50]Write to MH i2c: E2 02 01 FD 06 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 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 38 01 00 00 F4 03 04 00 99 7D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3F 86 02 00 35 04 06 00 F1 97 96 43 00 00 A1 [19:50:50]Write i2c OK [19:50:50]MH_I2C_Read... [19:50:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:50:50]Read from MH i2c: E2 [19:50:50]MH_I2C_Read... [19:50:50]Read from MH i2c: E2 03 00 [19:50:50]MH_I2C_Read... [19:50:50]Read from MH i2c: E2 03 00 FD 06 00 90 00 77 [19:50:50]RAPDU: 90 00 [19:50:50]wFMCommunicate OK [19:50:50]wFMCommunicate request_size=7 [19:50:50]MH_SAM_APDU [19:50:50]CAPDU: 80 0D 02 02 02 37 F4 [19:50:50]Write to MH i2c: E2 0A 00 FE 06 80 0D 02 02 02 00 37 F4 00 00 AD [19:50:50]Write i2c OK [19:50:50]MH_I2C_Read... [19:50:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:50:50]Read from MH i2c: E2 [19:50:50]MH_I2C_Read... [19:50:50]Read from MH i2c: E2 03 00 [19:50:50]MH_I2C_Read... [19:50:50]Read from MH i2c: E2 03 00 FE 06 00 90 00 78 [19:50:50]RAPDU: 90 00 [19:50:50]wFMCommunicate OK [19:50:50]wFMCommunicate request_size=4 [19:50:50]MH_SAM_APDU [19:50:50]CAPDU: 80 0D 03 02 [19:50:50]Write to MH i2c: E2 08 00 FF 06 80 0D 03 02 00 00 00 00 80 [19:50:50]Write i2c OK [19:50:50]MH_I2C_Read... [19:50:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:50:50]Read from MH i2c: E2 [19:50:50]MH_I2C_Read... [19:50:50]Read from MH i2c: E2 0B 00 [19:50:50]MH_I2C_Read... [19:50:50]Read from MH i2c: E2 0B 00 FF 06 00 E7 50 96 5B 2C 7B 4B D3 90 00 6E [19:50:50]RAPDU: E7 50 96 5B 2C 7B 4B D3 90 00 [19:50:50]wFMCommunicate OK [19:50:50]SAM_PROTO_SignData done [19:50:50]FM_MakeSignedData done [19:50:50]CreateOFDProtocolMessage [19:50:50]wFMCommunicate request_size=4 [19:50:50]MH_SAM_APDU [19:50:50]CAPDU: 80 11 00 00 [19:50:50]Write to MH i2c: E2 08 00 00 07 80 11 00 00 00 00 00 00 81 [19:50:50]Write i2c OK [19:50:50]MH_I2C_Read... [19:50:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:50:50]Read from MH i2c: E2 [19:50:50]MH_I2C_Read... [19:50:50]Read from MH i2c: E2 17 00 [19:50:50]MH_I2C_Read... [19:50:50]Read from MH i2c: E2 17 00 00 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D7 [19:50:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:50:50]wFMCommunicate OK [19:50:50]CreateOFDProtocolMessage done [19:50:50]OFDSenderStorePacket 165439 [19:50:50]StoreOFDPacket docnum=165439 [19:50:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 B6 D5 04 01 39 1D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 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 38 01 00 00 F4 03 04 00 99 7D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3F 86 02 00 35 04 06 00 F1 97 96 43 37 F4 E7 50 96 5B 2C 7B 4B D3 [19:50:50]CheckFolder [19:50:50]dirname=/storage/ofd_packets [19:50:50]CheckFolder done [19:50:50]ProducePacketName [19:50:50]name=ofd_packets/00165439 [19:50:50]NVStorageSaveData ofd_packets/00165439 [19:50:50]File name is /storage/ofd_packets/00165439 [19:50:50]Write 298 bytes [19:50:50]NVStorageSaveData done [19:50:50]OFDSenderStorePacket done [19:50:50]KKMCreateOFDPacket done [19:50:50]NVStorageSaveData kkm_last_timestamp [19:50:50]File name is /storage/kkm_last_timestamp [19:50:50]Write 4 bytes [19:50:50]NVStorageSaveData done [19:50:50]ExternCall_PrintAddStr [19:50:50]wPrintStart [19:50:50]Write to MH i2c: 01 00 00 01 07 08 [19:50:50]Write i2c OK [19:50:50]MH_I2C_Read... [19:50:50]Read from MH i2c: 01 [19:50:50]MH_I2C_Read... [19:50:50]Read from MH i2c: 01 07 00 [19:50:50]MH_I2C_Read... [19:50:50]Read from MH i2c: 01 07 00 01 07 00 00 00 00 00 FF 0F 1D [19:50:50]RasterBufferAndPrint [19:50:50]line Счет N : (1)459555 [19:50:50]line ИНН: 02508201610067 [19:50:50]line Контрольно-Кассовый Чек [19:50:50]line ПРОДАЖА [19:50:50]line ТРК (МРК, ГНК) : 11 [19:50:50]line Товар: 2710194210 [19:50:50]line ДТ-К-5 [19:50:50]line 27.820 * 71.90 [19:50:50]line = 2000.26 [19:50:50]line НДС 12% НСП 1% [19:50:50]line > о реализуемом товаре [19:50:50]line ОКРУГЛЕНИЕ: -0.26 [19:50:50]line ИТОГО: 2000.00 [19:50:50]line Внесено: 2000.00 [19:50:50]line СДАЧА: 0.00 [19:50:50]line НСП 1% : 17.70 [19:50:50]line НДС 12% : 212.42 [19:50:50]line Наличными: 2000.00 [19:50:50]line Безнал.: 0.00 [19:50:50]line Место: АЗС № 72 "Партнер Нефть" [19:50:50]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:50:50]line СНО: Общий режим [19:50:50]line Чек 312 15.07.2024 19:50 [19:50:50]line Смена: 448 ФФД: 1.0 [19:50:50]line ЗНМ: 0300000160 [19:50:50]line РНМ: 0000000000090829 [19:50:50]line Версия ККМ: 001 [19:50:50]line ФМ: 0000000000874718 [19:50:50]line ФД: 165439 [19:50:50]line ФПД: 265633363343348 [19:50:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T195049&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165439&fm=265633363343348&tin=02508201610067®Number=0000000000090829&sum=200000 [19:50:51]OFD Sender: Processing packet 165439 [packets to send 106, broken 105] [19:50:51]ProducePacketName [19:50:51]name=ofd_packets/00165439 [19:50:51]OFD Sender: To server: pG, [19:50:51]CommunicateWithHost lk.salyk.kg:30040 [19:50:51]ConnectInit lk.salyk.kg [19:50:51]written 0, free lines is 4095 [19:50:51]Connected sock=10 [19:50:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 B6 D5 04 01 39 1D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 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 38 01 00 00 F4 03 04 00 99 7D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 3F 86 02 00 35 04 06 00 F1 97 96 43 37 F4 E7 50 96 5B 2C 7B 4B D3 [19:50:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 31 57 47 00 72 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 3F 86 02 00 F4 03 04 00 23 24 95 66 B6 04 01 00 00 15 E0 4A 3C 44 3C 70 E5 [19:50:51]CommunicateWithHost err = 0 [19:50:51]CheckOFDResponse [19:50:51]1017 (14) - 77093643461234 [19:50:51]1041 (16) - 0000000000874718 [19:50:51]1040 (4) - 165439 [19:50:51]1012 (4) - 15.07.2024 13:29 [19:50:51]1206 (1) - 0 [19:50:51]OFD Sender: Remove packet 165439 [19:50:51]ProducePacketName [19:50:51]name=ofd_packets/00165439 [19:50:51]NVStorageDeleteData [19:50:51]Write to MH i2c: 01 00 00 2B 07 32 [19:50:51]Write i2c OK [19:50:51]MH_I2C_Read... [19:50:51]Read from MH i2c: 01 [19:50:51]MH_I2C_Read... [19:50:51]Read from MH i2c: 01 07 00 [19:50:51]MH_I2C_Read... [19:50:51]Read from MH i2c: 01 07 00 2B 07 00 00 00 00 00 F7 0C 3C [19:50:51]RasterBufferAndPrint [19:50:51]line [19:50:51]line [19:50:51]line [19:50:51]line [19:50:51]line [19:50:51]written 0, free lines is 3326 [19:50:51]MH_Cut [19:50:51]Write to MH i2c: D1 01 00 32 07 01 0B [19:50:51]Write i2c OK [19:50:51]MH_I2C_Read... [19:50:51]Read from MH i2c: D1 [19:50:51]MH_I2C_Read... [19:50:51]Read from MH i2c: D1 01 00 [19:50:51]MH_I2C_Read... [19:50:51]Read from MH i2c: D1 01 00 32 07 00 0A [19:50:51]Write to MH i2c: 01 00 00 33 07 3A [19:50:51]Write i2c OK [19:50:51]MH_I2C_Read... [19:50:52]OFD Sender: No OFD packet to send [19:50:52]*** Cut start [19:50:52]*** Partial cut [19:50:52]*** CUTSNS_PIN = 1 [19:50:52]*** CUTSNS_PIN = 0 [19:50:52]*** Brake cut motor [19:50:52]Read from MH i2c: 01 [19:50:52]MH_I2C_Read... [19:50:52]*** Stop cut motor [19:50:52]*** Cut end [19:50:52]Read from MH i2c: 01 07 00 [19:50:52]MH_I2C_Read... [19:50:52]Read from MH i2c: 01 07 00 33 07 00 00 00 00 00 FF 0F 4F [19:50:52]process_action close_receipt done [19:50:52]requested_data is exist [19:50:52]produce_requested_data [19:50:52]requested_item fm.sn is exist - process it [19:50:52]wFMCommunicate request_size=4 [19:50:52]MH_SAM_APDU [19:50:52]CAPDU: 80 11 00 00 [19:50:52]Write to MH i2c: E2 08 00 34 07 80 11 00 00 00 00 00 00 B5 [19:50:52]Write i2c OK [19:50:52]MH_I2C_Read... [19:50:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:50:52]Read from MH i2c: E2 [19:50:52]MH_I2C_Read... [19:50:52]Read from MH i2c: E2 17 00 [19:50:52]MH_I2C_Read... [19:50:52]Read from MH i2c: E2 17 00 34 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0B [19:50:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:50:52]wFMCommunicate OK [19:50:52]requested_item fd.num is exist - process it [19:50:52]SAM_PROTO_GetFieldsCounters [19:50:52]wFMCommunicate request_size=4 [19:50:52]MH_SAM_APDU [19:50:52]CAPDU: 80 13 00 00 [19:50:52]Write to MH i2c: E2 08 00 35 07 80 13 00 00 00 00 00 00 B8 [19:50:52]Write i2c OK [19:50:52]MH_I2C_Read... [19:50:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:50:53]Read from MH i2c: E2 [19:50:53]MH_I2C_Read... [19:50:53]Read from MH i2c: E2 62 00 [19:50:53]MH_I2C_Read... [19:50:53]Read from MH i2c: E2 62 00 35 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3F 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 38 01 00 00 5E 04 04 00 38 01 00 00 57 04 04 00 39 01 00 00 19 04 04 00 00 00 00 00 90 00 12 [19:50: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 3F 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 38 01 00 00 5E 04 04 00 38 01 00 00 57 04 04 00 39 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:50:53]wFMCommunicate OK [19:50:53]SAM_PROTO_GetFieldsCounters done [19:50:53]requested_item shift.num is exist - process it [19:50:53]requested_item shift.opened is exist - process it [19:50:53]req_shift_opened [19:50:53]FM_GetShiftState [19:50:53]SAM_PROTO_GetShiftState [19:50:53]wFMCommunicate request_size=4 [19:50:53]MH_SAM_APDU [19:50:53]CAPDU: 80 13 01 00 [19:50:53]Write to MH i2c: E2 08 00 36 07 80 13 01 00 00 00 00 00 BA [19:50:53]Write i2c OK [19:50:53]MH_I2C_Read... [19:50:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:50:53]Read from MH i2c: E2 [19:50:53]MH_I2C_Read... [19:50:53]Read from MH i2c: E2 0E 00 [19:50:53]MH_I2C_Read... [19:50:53]Read from MH i2c: E2 0E 00 36 07 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 93 [19:50:53]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [19:50:53]wFMCommunicate OK [19:50:53]SAM_PROTO_GetShiftState done [19:50:53]FM_GetShiftState done [19:50:53]req_shift_opened done [19:50:53]requested_item shift.open_date is exist - process it [19:50:53]req_shift_open_date [19:50:53]req_shift_open_date done [19:50:53]produce_requested_data done [19:50:53]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165439,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [19:50:53]process_action_free close_receipt [19:50:53]json_value_free [19:50:53]json_value_free done [19:50:53]process_json_proto returns [19:50:53]Send response to host [19:50:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165439,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [19:50:53]free response buf [19:50:53]execute_script done [19:50:53]execute_script returns [19:50:53]free content buf [19:50:53]Sock 9.Close socket [19:50:53]Sock 9.Thread stoped [19:50:56]accept exits with 7 [19:50:56]New connection [19:50:56]New thread 3067190628 created [19:50:56]Thread 3067333988 joined [19:50:56]Waiting for new connection... [19:50:56] Sock 7.Parse request [19:50:56]Sock 7.Check first char [19:50:56]Sock 7.First char is OK [19:50:56]request: POST /json_proto HTTP/1.0 [19:50:56]Method: POST [19:50:56]URL: /json_proto [19:50:56]Method is POST - this is cgi request [19:50:56]url: /json_proto [19:50:56]query_string will be loaded in cgi processing [19:50:56]execute_cgi json_proto POST (null) [19:50:56]execute_cgi path=json_proto method=POST [19:50:56]POST find Content-Length [19:50:56]Host: 172.17.56.4:8080 [19:50:56]Content-Length: 677 [19:50:56]Content-Type: application/json [19:50:56] [19:50:56]POST finish read [19:50:56]Found Content-Length = 677 [19:50:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459556", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:50:56]execute_script... [19:50: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)459556", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:50:56]POST & json_proto [19:50:56]process_json_proto [19:50:56]json parsed OK: [19:50:56]protocol is kg_v1.0 [19:50:56]action value=close_receipt [19:50:56]process_action close_receipt [19:50:56]cmd_close_receipt [19:50:56]MH_GetDate [19:50:56]Write to MH i2c: F0 00 00 37 07 2D [19:50:56]Write i2c OK [19:50:56]MH_I2C_Read... [19:50:56]Read from MH i2c: F0 [19:50:56]MH_I2C_Read... [19:50:56]Read from MH i2c: F0 09 00 [19:50:56]MH_I2C_Read... [19:50:56]Read from MH i2c: F0 09 00 37 07 00 A1 7D 95 66 C9 DC B2 64 0A [19:50:56]GetLastDocTimeStamp 1721073049 [19:50:56]current date 1721073057 [19:50:56]FM_GetShiftState [19:50:56]SAM_PROTO_GetShiftState [19:50:56]wFMCommunicate request_size=4 [19:50:56]MH_SAM_APDU [19:50:56]CAPDU: 80 13 01 00 [19:50:56]Write to MH i2c: E2 08 00 38 07 80 13 01 00 00 00 00 00 BC [19:50:56]Write i2c OK [19:50:56]MH_I2C_Read... [19:50:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:50:57]Read from MH i2c: E2 [19:50:57]MH_I2C_Read... [19:50:57]Read from MH i2c: E2 0E 00 [19:50:57]MH_I2C_Read... [19:50:57]Read from MH i2c: E2 0E 00 38 07 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 95 [19:50:57]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [19:50:57]wFMCommunicate OK [19:50:57]SAM_PROTO_GetShiftState done [19:50:57]FM_GetShiftState done [19:50:57]opened in 1721003876 [19:50:57]opened+sec_in_day 1721090276 [19:50:57]quantity*price = 40006 [19:50:57]sum+1 = 40007 [19:50:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 313 15.07.2024 19:50 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165440 ФПД: 246022359616804 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T195057&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165440&fm=246022359616804&tin=02508201610067®Number=0000000000090829&sum=40000 [19:50:58]StoreToDocumentArchive [19:50:58]shift 448 fd 165440 [19:50:58]save to /storage/0448/doc_00165440 [19:50:58]save last doc name /storage/0448/doc_00165440 to /storage/kkm_last_doc_name [19:50:58]save OK [19:50:58]Clear old archive folders... [19:50:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:50:58]tlvbuf is 01B51D00 [19:50:58]SAM_PROTO_ClearQueue [19:50:58]wFMCommunicate request_size=4 [19:50:58]MH_SAM_APDU [19:50:58]CAPDU: 80 09 00 00 [19:50:58]Write to MH i2c: E2 08 00 45 07 80 09 00 00 00 00 00 00 BE [19:50:58]Write i2c OK [19:50:58]MH_I2C_Read... [19:50:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:50:58]Read from MH i2c: E2 [19:50:58]MH_I2C_Read... [19:50:58]Read from MH i2c: E2 03 00 [19:50:58]MH_I2C_Read... [19:50:58]Read from MH i2c: E2 03 00 45 07 00 90 00 C0 [19:50:58]RAPDU: 90 00 [19:50:58]wFMCommunicate OK [19:50:58]SAM_PROTO_ClearQueue done [19:50:58]KKMCreateOFDPacket [19:50:58]OFDProtocolAddRootSTLVToBuf [19:50:58]FM_MakeSignedData [19:50:58]FM_MakeSignedData [19:50:58]SAM_PROTO_SignData [19:50:58]wFMCommunicate request_size=4 [19:50:58]MH_SAM_APDU [19:50:58]CAPDU: 80 0D 01 02 [19:50:58]Write to MH i2c: E2 08 00 46 07 80 0D 01 02 00 00 00 00 C6 [19:50:58]Write i2c OK [19:50:58]MH_I2C_Read... [19:50:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:50:58]Read from MH i2c: E2 [19:50:58]MH_I2C_Read... [19:50:58]Read from MH i2c: E2 03 00 [19:50:58]MH_I2C_Read... [19:50:58]Read from MH i2c: E2 03 00 46 07 00 90 00 C1 [19:50:58]RAPDU: 90 00 [19:50:58]wFMCommunicate OK [19:50:58]wFMCommunicate request_size=255 [19:50:58]MH_SAM_APDU [19:50:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 A1 7D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 40 86 02 00 35 04 06 00 DF [19:50:58]Write to MH i2c: E2 02 01 47 07 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 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 A1 7D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 40 86 02 00 35 04 06 00 DF 00 00 DA [19:50:58]Write i2c OK [19:50:58]MH_I2C_Read... [19:50:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:50:58]Read from MH i2c: E2 [19:50:58]MH_I2C_Read... [19:50:58]Read from MH i2c: E2 03 00 [19:50:58]MH_I2C_Read... [19:50:58]Read from MH i2c: E2 03 00 47 07 00 90 00 C2 [19:50:58]RAPDU: 90 00 [19:50:58]wFMCommunicate OK [19:50:58]wFMCommunicate request_size=10 [19:50:58]MH_SAM_APDU [19:50:58]CAPDU: 80 0D 02 02 05 C1 8B 5A 0D 24 [19:50:58]Write to MH i2c: E2 0D 00 48 07 80 0D 02 02 05 00 C1 8B 5A 0D 24 00 00 AA [19:50:58]Write i2c OK [19:50:58]MH_I2C_Read... [19:50:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:50:58]Read from MH i2c: E2 [19:50:58]MH_I2C_Read... [19:50:58]Read from MH i2c: E2 03 00 [19:50:58]MH_I2C_Read... [19:50:58]Read from MH i2c: E2 03 00 48 07 00 90 00 C3 [19:50:58]RAPDU: 90 00 [19:50:58]wFMCommunicate OK [19:50:58]wFMCommunicate request_size=4 [19:50:58]MH_SAM_APDU [19:50:58]CAPDU: 80 0D 03 02 [19:50:58]Write to MH i2c: E2 08 00 49 07 80 0D 03 02 00 00 00 00 CB [19:50:58]Write i2c OK [19:50:58]MH_I2C_Read... [19:50:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:50:58]Read from MH i2c: E2 [19:50:58]MH_I2C_Read... [19:50:58]Read from MH i2c: E2 0B 00 [19:50:58]MH_I2C_Read... [19:50:58]Read from MH i2c: E2 0B 00 49 07 00 6C EE E3 24 2A FB 09 09 90 00 64 [19:50:58]RAPDU: 6C EE E3 24 2A FB 09 09 90 00 [19:50:58]wFMCommunicate OK [19:50:58]SAM_PROTO_SignData done [19:50:58]FM_MakeSignedData done [19:50:58]CreateOFDProtocolMessage [19:50:58]wFMCommunicate request_size=4 [19:50:58]MH_SAM_APDU [19:50:58]CAPDU: 80 11 00 00 [19:50:58]Write to MH i2c: E2 08 00 4A 07 80 11 00 00 00 00 00 00 CB [19:50:58]Write i2c OK [19:50:58]MH_I2C_Read... [19:50:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:50:58]Read from MH i2c: E2 [19:50:58]MH_I2C_Read... [19:50:58]Read from MH i2c: E2 17 00 [19:50:58]MH_I2C_Read... [19:50:58]Read from MH i2c: E2 17 00 4A 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 21 [19:50:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:50:58]wFMCommunicate OK [19:50:58]CreateOFDProtocolMessage done [19:50:58]OFDSenderStorePacket 165440 [19:50:58]StoreOFDPacket docnum=165440 [19:50:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E5 8F 07 01 8E 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 A1 7D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 40 86 02 00 35 04 06 00 DF C1 8B 5A 0D 24 6C EE E3 24 2A FB 09 09 [19:50:58]CheckFolder [19:50:58]dirname=/storage/ofd_packets [19:50:58]CheckFolder done [19:50:58]ProducePacketName [19:50:58]name=ofd_packets/00165440 [19:50:58]NVStorageSaveData ofd_packets/00165440 [19:50:58]File name is /storage/ofd_packets/00165440 [19:50:58]Write 301 bytes [19:50:58]NVStorageSaveData done [19:50:58]OFDSenderStorePacket done [19:50:58]KKMCreateOFDPacket done [19:50:58]NVStorageSaveData kkm_last_timestamp [19:50:58]File name is /storage/kkm_last_timestamp [19:50:58]Write 4 bytes [19:50:58]NVStorageSaveData done [19:50:58]ExternCall_PrintAddStr [19:50:58]wPrintStart [19:50:58]Write to MH i2c: 01 00 00 4B 07 52 [19:50:58]Write i2c OK [19:50:58]MH_I2C_Read... [19:50:58]Read from MH i2c: 01 [19:50:58]MH_I2C_Read... [19:50:58]Read from MH i2c: 01 07 00 [19:50:58]MH_I2C_Read... [19:50:58]Read from MH i2c: 01 07 00 4B 07 00 00 00 00 00 FF 0F 67 [19:50:58]RasterBufferAndPrint [19:50:58]line Счет N : (1)459556 [19:50:58]line ИНН: 02508201610067 [19:50:58]line Контрольно-Кассовый Чек [19:50:58]line ПРОДАЖА [19:50:58]line ТРК (МРК, ГНК) : 22 [19:50:58]line Товар: 2710124130 [19:50:58]line Аи-92-К-5 [19:50:58]line 6.080 * 65.80 [19:50:58]line = 400.06 [19:50:58]line НДС 12% НСП 1% [19:50:58]line > о реализуемом товаре [19:50:58]line ОКРУГЛЕНИЕ: -0.06 [19:50:58]line ИТОГО: 400.00 [19:50:58]line Внесено: 400.00 [19:50:58]line СДАЧА: 0.00 [19:50:58]line НСП 1% : 3.54 [19:50:58]line НДС 12% : 42.48 [19:50:58]line Наличными: 400.00 [19:50:58]line Безнал.: 0.00 [19:50:58]line Место: АЗС № 72 "Партнер Нефть" [19:50:58]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:50:58]line СНО: Общий режим [19:50:58]line Чек 313 15.07.2024 19:50 [19:50:58]line Смена: 448 ФФД: 1.0 [19:50:58]line ЗНМ: 0300000160 [19:50:58]line РНМ: 0000000000090829 [19:50:58]line Версия ККМ: 001 [19:50:58]line ФМ: 0000000000874718 [19:50:58]line ФД: 165440 [19:50:58]line ФПД: 246022359616804 [19:50:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T195057&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165440&fm=246022359616804&tin=02508201610067®Number=0000000000090829&sum=40000 [19:50:58]written 0, free lines is 4095 [19:50:58]OFD Sender: Processing packet 165440 [packets to send 106, broken 105] [19:50:58]ProducePacketName [19:50:58]name=ofd_packets/00165440 [19:50:58]OFD Sender: To server: pG, [19:50:58]CommunicateWithHost lk.salyk.kg:30040 [19:50:58]ConnectInit lk.salyk.kg [19:50:58]Connected sock=10 [19:50: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 37 31 38 0F 01 00 00 E5 8F 07 01 8E 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 A1 7D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 40 86 02 00 35 04 06 00 DF C1 8B 5A 0D 24 6C EE E3 24 2A FB 09 09 [19:50:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 07 68 47 00 82 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 40 86 02 00 F4 03 04 00 2A 24 95 66 B6 04 01 00 00 40 27 A3 73 E4 9C B7 9A [19:50:59]CommunicateWithHost err = 0 [19:50:59]CheckOFDResponse [19:50:59]1017 (14) - 77093643461234 [19:50:59]1041 (16) - 0000000000874718 [19:50:59]1040 (4) - 165440 [19:50:59]1012 (4) - 15.07.2024 13:29 [19:50:59]1206 (1) - 0 [19:50:59]OFD Sender: Remove packet 165440 [19:50:59]ProducePacketName [19:50:59]name=ofd_packets/00165440 [19:50:59]NVStorageDeleteData [19:50:59]Write to MH i2c: 01 00 00 75 07 7C [19:50:59]Write i2c OK [19:50:59]MH_I2C_Read... [19:50:59]Read from MH i2c: 01 [19:50:59]MH_I2C_Read... [19:50:59]Read from MH i2c: 01 07 00 [19:50:59]MH_I2C_Read... [19:50:59]Read from MH i2c: 01 07 00 75 07 00 00 00 00 00 05 0D 95 [19:50:59]RasterBufferAndPrint [19:50:59]line [19:50:59]line [19:50:59]line [19:50:59]line [19:50:59]line [19:50:59]written 0, free lines is 3342 [19:50:59]MH_Cut [19:50:59]Write to MH i2c: D1 01 00 7C 07 01 55 [19:50:59]Write i2c OK [19:50:59]MH_I2C_Read... [19:50:59]Read from MH i2c: D1 [19:50:59]MH_I2C_Read... [19:50:59]Read from MH i2c: D1 01 00 [19:50:59]MH_I2C_Read... [19:50:59]Read from MH i2c: D1 01 00 7C 07 00 54 [19:50:59]Write to MH i2c: 01 00 00 7D 07 84 [19:50:59]Write i2c OK [19:50:59]MH_I2C_Read... [19:50:59]OFD Sender: No OFD packet to send [19:50:59]*** Cut start [19:50:59]*** Partial cut [19:50:59]*** CUTSNS_PIN = 1 [19:50:59]*** CUTSNS_PIN = 0 [19:51:00]*** Brake cut motor [19:51:00]Read from MH i2c: 01 [19:51:00]MH_I2C_Read... [19:51:00]*** Stop cut motor [19:51:00]*** Cut end [19:51:00]Read from MH i2c: 01 07 00 [19:51:00]MH_I2C_Read... [19:51:00]Read from MH i2c: 01 07 00 7D 07 00 00 00 00 00 FF 0F 99 [19:51:00]process_action close_receipt done [19:51:00]requested_data is exist [19:51:00]produce_requested_data [19:51:00]requested_item fm.sn is exist - process it [19:51:00]wFMCommunicate request_size=4 [19:51:00]MH_SAM_APDU [19:51:00]CAPDU: 80 11 00 00 [19:51:00]Write to MH i2c: E2 08 00 7E 07 80 11 00 00 00 00 00 00 FF [19:51:00]Write i2c OK [19:51:00]MH_I2C_Read... [19:51:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:51:00]Read from MH i2c: E2 [19:51:00]MH_I2C_Read... [19:51:00]Read from MH i2c: E2 17 00 [19:51:00]MH_I2C_Read... [19:51:00]Read from MH i2c: E2 17 00 7E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 55 [19:51:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:51:00]wFMCommunicate OK [19:51:00]requested_item fd.num is exist - process it [19:51:00]SAM_PROTO_GetFieldsCounters [19:51:00]wFMCommunicate request_size=4 [19:51:00]MH_SAM_APDU [19:51:00]CAPDU: 80 13 00 00 [19:51:00]Write to MH i2c: E2 08 00 7F 07 80 13 00 00 00 00 00 00 02 [19:51:00]Write i2c OK [19:51:00]MH_I2C_Read... [19:51:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:51:00]Read from MH i2c: E2 [19:51:00]MH_I2C_Read... [19:51:00]Read from MH i2c: E2 62 00 [19:51:00]MH_I2C_Read... [19:51:00]Read from MH i2c: E2 62 00 7F 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 40 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 39 01 00 00 5E 04 04 00 39 01 00 00 57 04 04 00 3A 01 00 00 19 04 04 00 00 00 00 00 90 00 60 [19:51: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 40 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 39 01 00 00 5E 04 04 00 39 01 00 00 57 04 04 00 3A 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:51:00]wFMCommunicate OK [19:51:00]SAM_PROTO_GetFieldsCounters done [19:51:00]requested_item shift.num is exist - process it [19:51:00]requested_item shift.opened is exist - process it [19:51:00]req_shift_opened [19:51:00]FM_GetShiftState [19:51:00]SAM_PROTO_GetShiftState [19:51:00]wFMCommunicate request_size=4 [19:51:00]MH_SAM_APDU [19:51:00]CAPDU: 80 13 01 00 [19:51:00]Write to MH i2c: E2 08 00 80 07 80 13 01 00 00 00 00 00 04 [19:51:00]Write i2c OK [19:51:00]MH_I2C_Read... [19:51:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:51:00]Read from MH i2c: E2 [19:51:00]MH_I2C_Read... [19:51:00]Read from MH i2c: E2 0E 00 [19:51:00]MH_I2C_Read... [19:51:00]Read from MH i2c: E2 0E 00 80 07 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 DD [19:51:00]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [19:51:00]wFMCommunicate OK [19:51:00]SAM_PROTO_GetShiftState done [19:51:00]FM_GetShiftState done [19:51:00]req_shift_opened done [19:51:00]requested_item shift.open_date is exist - process it [19:51:00]req_shift_open_date [19:51:00]req_shift_open_date done [19:51:00]produce_requested_data done [19:51:00]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165440,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [19:51:00]process_action_free close_receipt [19:51:00]json_value_free [19:51:00]json_value_free done [19:51:00]process_json_proto returns [19:51:00]Send response to host [19:51:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165440,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [19:51:00]free response buf [19:51:00]execute_script done [19:51:00]execute_script returns [19:51:00]free content buf [19:51:00]Sock 7.Close socket [19:51:00]Sock 7.Thread stoped [19:51:04]OFD Sender: No OFD packet to send [19:51:09]OFD Sender: No OFD packet to send [19:51:14]OFD Sender: No OFD packet to send [19:51:19]OFD Sender: No OFD packet to send [19:51:24]OFD Sender: No OFD packet to send [19:51:29]OFD Sender: No OFD packet to send [19:51:34]OFD Sender: No OFD packet to send [19:51:39]OFD Sender: No OFD packet to send [19:51:44]OFD Sender: No OFD packet to send [19:51:49]OFD Sender: No OFD packet to send [19:51:54]OFD Sender: No OFD packet to send [19:51:59]OFD Sender: No OFD packet to send [19:52:04]OFD Sender: No OFD packet to send [19:52:09]OFD Sender: No OFD packet to send [19:52:14]OFD Sender: No OFD packet to send [19:52:19]OFD Sender: No OFD packet to send [19:52:24]OFD Sender: No OFD packet to send [19:52:29]OFD Sender: No OFD packet to send [19:52:34]OFD Sender: No OFD packet to send [19:52:39]OFD Sender: No OFD packet to send [19:52:44]OFD Sender: No OFD packet to send [19:52:49]OFD Sender: No OFD packet to send [19:52:54]OFD Sender: No OFD packet to send [19:52:59]OFD Sender: No OFD packet to send [19:53:04]OFD Sender: No OFD packet to send [19:53:09]OFD Sender: No OFD packet to send [19:53:14]OFD Sender: No OFD packet to send [19:53:19]OFD Sender: No OFD packet to send [19:53:24]OFD Sender: No OFD packet to send [19:53:29]OFD Sender: No OFD packet to send [19:53:34]OFD Sender: No OFD packet to send [19:53:39]OFD Sender: No OFD packet to send [19:53:44]OFD Sender: No OFD packet to send [19:53:49]OFD Sender: No OFD packet to send [19:53:54]OFD Sender: No OFD packet to send [19:53:59]OFD Sender: No OFD packet to send [19:54:04]OFD Sender: No OFD packet to send [19:54:09]OFD Sender: No OFD packet to send [19:54:14]OFD Sender: No OFD packet to send [19:54:19]OFD Sender: No OFD packet to send [19:54:24]OFD Sender: No OFD packet to send [19:54:29]OFD Sender: No OFD packet to send [19:54:31]accept exits with 9 [19:54:31]New connection [19:54:31]New thread 3067333988 created [19:54:31]Thread 3067190628 joined [19:54:31]Waiting for new connection... [19:54:31] Sock 9.Parse request [19:54:31]Sock 9.Check first char [19:54:31]Sock 9.First char is OK [19:54:31]request: POST /json_proto HTTP/1.0 [19:54:31]Method: POST [19:54:31]URL: /json_proto [19:54:31]Method is POST - this is cgi request [19:54:31]url: /json_proto [19:54:31]query_string will be loaded in cgi processing [19:54:31]execute_cgi json_proto POST (null) [19:54:31]execute_cgi path=json_proto method=POST [19:54:31]POST find Content-Length [19:54:31]Host: 172.17.56.4:8080 [19:54:31]Content-Length: 677 [19:54:31]Content-Type: application/json [19:54:31] [19:54:31]POST finish read [19:54:31]Found Content-Length = 677 [19:54:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459557", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:54:31]execute_script... [19:54: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)459557", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:54:31]POST & json_proto [19:54:31]process_json_proto [19:54:31]json parsed OK: [19:54:31]protocol is kg_v1.0 [19:54:31]action value=close_receipt [19:54:31]process_action close_receipt [19:54:31]cmd_close_receipt [19:54:31]MH_GetDate [19:54:31]Write to MH i2c: F0 00 00 81 07 77 [19:54:31]Write i2c OK [19:54:31]MH_I2C_Read... [19:54:31]Read from MH i2c: F0 [19:54:31]MH_I2C_Read... [19:54:31]Read from MH i2c: F0 09 00 [19:54:31]MH_I2C_Read... [19:54:31]Read from MH i2c: F0 09 00 81 07 00 78 7E 95 66 C9 DC B2 64 2C [19:54:31]GetLastDocTimeStamp 1721073057 [19:54:31]current date 1721073272 [19:54:31]FM_GetShiftState [19:54:31]SAM_PROTO_GetShiftState [19:54:31]wFMCommunicate request_size=4 [19:54:31]MH_SAM_APDU [19:54:31]CAPDU: 80 13 01 00 [19:54:31]Write to MH i2c: E2 08 00 82 07 80 13 01 00 00 00 00 00 06 [19:54:31]Write i2c OK [19:54:31]MH_I2C_Read... [19:54:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:54:31]Read from MH i2c: E2 [19:54:31]MH_I2C_Read... [19:54:31]Read from MH i2c: E2 0E 00 [19:54:31]MH_I2C_Read... [19:54:31]Read from MH i2c: E2 0E 00 82 07 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 DF [19:54:31]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [19:54:31]wFMCommunicate OK [19:54:31]SAM_PROTO_GetShiftState done [19:54:31]FM_GetShiftState done [19:54:31]opened in 1721003876 [19:54:31]opened+sec_in_day 1721090276 [19:54:31]quantity*price = 40006 [19:54:31]sum+1 = 40007 [19:54:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 314 15.07.2024 19:54 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165441 ФПД: 14851686640370 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T195432&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165441&fm=14851686640370&tin=02508201610067®Number=0000000000090829&sum=40000 [19:54:32]StoreToDocumentArchive [19:54:32]shift 448 fd 165441 [19:54:32]save to /storage/0448/doc_00165441 [19:54:32]save last doc name /storage/0448/doc_00165441 to /storage/kkm_last_doc_name [19:54:32]save OK [19:54:32]Clear old archive folders... [19:54:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:54:32]tlvbuf is 01BA79A0 [19:54:32]SAM_PROTO_ClearQueue [19:54:32]wFMCommunicate request_size=4 [19:54:32]MH_SAM_APDU [19:54:32]CAPDU: 80 09 00 00 [19:54:32]Write to MH i2c: E2 08 00 8F 07 80 09 00 00 00 00 00 00 08 [19:54:32]Write i2c OK [19:54:32]MH_I2C_Read... [19:54:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:54:32]Read from MH i2c: E2 [19:54:32]MH_I2C_Read... [19:54:32]Read from MH i2c: E2 03 00 [19:54:32]MH_I2C_Read... [19:54:32]Read from MH i2c: E2 03 00 8F 07 00 90 00 0A [19:54:32]RAPDU: 90 00 [19:54:32]wFMCommunicate OK [19:54:32]SAM_PROTO_ClearQueue done [19:54:32]KKMCreateOFDPacket [19:54:32]OFDProtocolAddRootSTLVToBuf [19:54:32]FM_MakeSignedData [19:54:32]FM_MakeSignedData [19:54:32]SAM_PROTO_SignData [19:54:32]wFMCommunicate request_size=4 [19:54:32]MH_SAM_APDU [19:54:32]CAPDU: 80 0D 01 02 [19:54:32]Write to MH i2c: E2 08 00 90 07 80 0D 01 02 00 00 00 00 10 [19:54:32]Write i2c OK [19:54:32]MH_I2C_Read... [19:54:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:54:32]Read from MH i2c: E2 [19:54:32]MH_I2C_Read... [19:54:32]Read from MH i2c: E2 03 00 [19:54:32]MH_I2C_Read... [19:54:32]Read from MH i2c: E2 03 00 90 07 00 90 00 0B [19:54:32]RAPDU: 90 00 [19:54:32]wFMCommunicate OK [19:54:32]wFMCommunicate request_size=255 [19:54:32]MH_SAM_APDU [19:54: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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 78 7E 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 41 86 02 00 35 04 06 00 0D [19:54:32]Write to MH i2c: E2 02 01 91 07 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 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 78 7E 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 41 86 02 00 35 04 06 00 0D 00 00 2C [19:54:32]Write i2c OK [19:54:32]MH_I2C_Read... [19:54:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:54:33]Read from MH i2c: E2 [19:54:33]MH_I2C_Read... [19:54:33]Read from MH i2c: E2 03 00 [19:54:33]MH_I2C_Read... [19:54:33]Read from MH i2c: E2 03 00 91 07 00 90 00 0C [19:54:33]RAPDU: 90 00 [19:54:33]wFMCommunicate OK [19:54:33]wFMCommunicate request_size=10 [19:54:33]MH_SAM_APDU [19:54:33]CAPDU: 80 0D 02 02 05 81 ED 81 AA F2 [19:54:33]Write to MH i2c: E2 0D 00 92 07 80 0D 02 02 05 00 81 ED 81 AA F2 00 00 A8 [19:54:33]Write i2c OK [19:54:33]MH_I2C_Read... [19:54:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:54:33]Read from MH i2c: E2 [19:54:33]MH_I2C_Read... [19:54:33]Read from MH i2c: E2 03 00 [19:54:33]MH_I2C_Read... [19:54:33]Read from MH i2c: E2 03 00 92 07 00 90 00 0D [19:54:33]RAPDU: 90 00 [19:54:33]wFMCommunicate OK [19:54:33]wFMCommunicate request_size=4 [19:54:33]MH_SAM_APDU [19:54:33]CAPDU: 80 0D 03 02 [19:54:33]Write to MH i2c: E2 08 00 93 07 80 0D 03 02 00 00 00 00 15 [19:54:33]Write i2c OK [19:54:33]MH_I2C_Read... [19:54:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:54:33]Read from MH i2c: E2 [19:54:33]MH_I2C_Read... [19:54:33]Read from MH i2c: E2 0B 00 [19:54:33]MH_I2C_Read... [19:54:33]Read from MH i2c: E2 0B 00 93 07 00 28 E7 C7 1E 22 2A CA CB 90 00 EB [19:54:33]RAPDU: 28 E7 C7 1E 22 2A CA CB 90 00 [19:54:33]wFMCommunicate OK [19:54:33]SAM_PROTO_SignData done [19:54:33]FM_MakeSignedData done [19:54:33]CreateOFDProtocolMessage [19:54:33]wFMCommunicate request_size=4 [19:54:33]MH_SAM_APDU [19:54:33]CAPDU: 80 11 00 00 [19:54:33]Write to MH i2c: E2 08 00 94 07 80 11 00 00 00 00 00 00 15 [19:54:33]Write i2c OK [19:54:33]MH_I2C_Read... [19:54:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:33]Read from MH i2c: E2 [19:54:33]MH_I2C_Read... [19:54:33]Read from MH i2c: E2 17 00 [19:54:33]MH_I2C_Read... [19:54:33]Read from MH i2c: E2 17 00 94 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6B [19:54:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:54:33]wFMCommunicate OK [19:54:33]CreateOFDProtocolMessage done [19:54:33]OFDSenderStorePacket 165441 [19:54:33]StoreOFDPacket docnum=165441 [19:54:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 36 36 07 01 47 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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 78 7E 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 41 86 02 00 35 04 06 00 0D 81 ED 81 AA F2 28 E7 C7 1E 22 2A CA CB [19:54:33]CheckFolder [19:54:33]dirname=/storage/ofd_packets [19:54:33]CheckFolder done [19:54:33]ProducePacketName [19:54:33]name=ofd_packets/00165441 [19:54:33]NVStorageSaveData ofd_packets/00165441 [19:54:33]File name is /storage/ofd_packets/00165441 [19:54:33]Write 301 bytes [19:54:33]NVStorageSaveData done [19:54:33]OFDSenderStorePacket done [19:54:33]KKMCreateOFDPacket done [19:54:33]NVStorageSaveData kkm_last_timestamp [19:54:33]File name is /storage/kkm_last_timestamp [19:54:33]Write 4 bytes [19:54:33]NVStorageSaveData done [19:54:33]ExternCall_PrintAddStr [19:54:33]wPrintStart [19:54:33]Write to MH i2c: 01 00 00 95 07 9C [19:54:33]Write i2c OK [19:54:33]MH_I2C_Read... [19:54:33]Read from MH i2c: 01 [19:54:33]MH_I2C_Read... [19:54:33]Read from MH i2c: 01 07 00 [19:54:33]MH_I2C_Read... [19:54:33]Read from MH i2c: 01 07 00 95 07 00 00 00 00 00 FF 0F B1 [19:54:33]RasterBufferAndPrint [19:54:33]line Счет N : (1)459557 [19:54:33]line ИНН: 02508201610067 [19:54:33]line Контрольно-Кассовый Чек [19:54:33]line ПРОДАЖА [19:54:33]line ТРК (МРК, ГНК) : 12 [19:54:33]line Товар: 2710124130 [19:54:33]line Аи-92-К-5 [19:54:33]line 6.080 * 65.80 [19:54:33]line = 400.06 [19:54:33]line НДС 12% НСП 1% [19:54:33]line > о реализуемом товаре [19:54:33]line ОКРУГЛЕНИЕ: -0.06 [19:54:33]line ИТОГО: 400.00 [19:54:33]line Внесено: 400.00 [19:54:33]line СДАЧА: 0.00 [19:54:33]line НСП 1% : 3.54 [19:54:33]line НДС 12% : 42.48 [19:54:33]line Наличными: 400.00 [19:54:33]line Безнал.: 0.00 [19:54:33]line Место: АЗС № 72 "Партнер Нефть" [19:54:33]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:54:33]line СНО: Общий режим [19:54:33]line Чек 314 15.07.2024 19:54 [19:54:33]line Смена: 448 ФФД: 1.0 [19:54:33]line ЗНМ: 0300000160 [19:54:33]line РНМ: 0000000000090829 [19:54:33]line Версия ККМ: 001 [19:54:33]line ФМ: 0000000000874718 [19:54:33]line ФД: 165441 [19:54:33]line ФПД: 14851686640370 [19:54:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T195432&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165441&fm=14851686640370&tin=02508201610067®Number=0000000000090829&sum=40000 [19:54:33]OFD Sender: Processing packet 165441 [packets to send 106, broken 105] [19:54:33]ProducePacketName [19:54:33]name=ofd_packets/00165441 [19:54:33]OFD Sender: To server: pG, [19:54:33]CommunicateWithHost lk.salyk.kg:30040 [19:54:33]ConnectInit lk.salyk.kg [19:54:33]written 0, free lines is 4095 [19:54:33]Connected sock=10 [19:54: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 37 31 38 0F 01 00 00 36 36 07 01 47 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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 78 7E 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 41 86 02 00 35 04 06 00 0D 81 ED 81 AA F2 28 E7 C7 1E 22 2A CA CB [19:54:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 E3 E5 47 00 94 C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 41 86 02 00 F4 03 04 00 01 25 95 66 B6 04 01 00 00 12 50 3C E3 9D 50 2D D2 [19:54:33]CommunicateWithHost err = 0 [19:54:33]CheckOFDResponse [19:54:33]1017 (14) - 77093643461234 [19:54:33]1041 (16) - 0000000000874718 [19:54:33]1040 (4) - 165441 [19:54:33]1012 (4) - 15.07.2024 13:32 [19:54:33]1206 (1) - 0 [19:54:33]OFD Sender: Remove packet 165441 [19:54:33]ProducePacketName [19:54:33]name=ofd_packets/00165441 [19:54:33]NVStorageDeleteData [19:54:34]Write to MH i2c: 01 00 00 BF 07 C6 [19:54:34]Write i2c OK [19:54:34]MH_I2C_Read... [19:54:34]Read from MH i2c: 01 [19:54:34]MH_I2C_Read... [19:54:34]Read from MH i2c: 01 07 00 [19:54:34]MH_I2C_Read... [19:54:34]Read from MH i2c: 01 07 00 BF 07 00 00 00 00 00 F5 0C CE [19:54:34]RasterBufferAndPrint [19:54:34]line [19:54:34]line [19:54:34]line [19:54:34]line [19:54:34]line [19:54:34]written 0, free lines is 3324 [19:54:34]MH_Cut [19:54:34]Write to MH i2c: D1 01 00 C6 07 01 9F [19:54:34]Write i2c OK [19:54:34]MH_I2C_Read... [19:54:34]Read from MH i2c: D1 [19:54:34]MH_I2C_Read... [19:54:34]Read from MH i2c: D1 01 00 [19:54:34]MH_I2C_Read... [19:54:34]Read from MH i2c: D1 01 00 C6 07 00 9E [19:54:34]Write to MH i2c: 01 00 00 C7 07 CE [19:54:34]Write i2c OK [19:54:34]MH_I2C_Read... [19:54:34]OFD Sender: No OFD packet to send [19:54:34]*** Cut start [19:54:34]*** Partial cut [19:54:34]*** CUTSNS_PIN = 1 [19:54:34]*** CUTSNS_PIN = 0 [19:54:34]*** Brake cut motor [19:54:35]Read from MH i2c: 01 [19:54:35]MH_I2C_Read... [19:54:35]*** Stop cut motor [19:54:35]*** Cut end [19:54:35]Read from MH i2c: 01 07 00 [19:54:35]MH_I2C_Read... [19:54:35]Read from MH i2c: 01 07 00 C7 07 00 00 00 00 00 FF 0F E3 [19:54:35]process_action close_receipt done [19:54:35]requested_data is exist [19:54:35]produce_requested_data [19:54:35]requested_item fm.sn is exist - process it [19:54:35]wFMCommunicate request_size=4 [19:54:35]MH_SAM_APDU [19:54:35]CAPDU: 80 11 00 00 [19:54:35]Write to MH i2c: E2 08 00 C8 07 80 11 00 00 00 00 00 00 49 [19:54:35]Write i2c OK [19:54:35]MH_I2C_Read... [19:54:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:35]Read from MH i2c: E2 [19:54:35]MH_I2C_Read... [19:54:35]Read from MH i2c: E2 17 00 [19:54:35]MH_I2C_Read... [19:54:35]Read from MH i2c: E2 17 00 C8 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 9F [19:54:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:54:35]wFMCommunicate OK [19:54:35]requested_item fd.num is exist - process it [19:54:35]SAM_PROTO_GetFieldsCounters [19:54:35]wFMCommunicate request_size=4 [19:54:35]MH_SAM_APDU [19:54:35]CAPDU: 80 13 00 00 [19:54:35]Write to MH i2c: E2 08 00 C9 07 80 13 00 00 00 00 00 00 4C [19:54:35]Write i2c OK [19:54:35]MH_I2C_Read... [19:54:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:54:35]Read from MH i2c: E2 [19:54:35]MH_I2C_Read... [19:54:35]Read from MH i2c: E2 62 00 [19:54:35]MH_I2C_Read... [19:54:35]Read from MH i2c: E2 62 00 C9 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 41 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 AE [19:54:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 41 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:54:35]wFMCommunicate OK [19:54:35]SAM_PROTO_GetFieldsCounters done [19:54:35]requested_item shift.num is exist - process it [19:54:35]requested_item shift.opened is exist - process it [19:54:35]req_shift_opened [19:54:35]FM_GetShiftState [19:54:35]SAM_PROTO_GetShiftState [19:54:35]wFMCommunicate request_size=4 [19:54:35]MH_SAM_APDU [19:54:35]CAPDU: 80 13 01 00 [19:54:35]Write to MH i2c: E2 08 00 CA 07 80 13 01 00 00 00 00 00 4E [19:54:35]Write i2c OK [19:54:35]MH_I2C_Read... [19:54:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:54:35]Read from MH i2c: E2 [19:54:35]MH_I2C_Read... [19:54:35]Read from MH i2c: E2 0E 00 [19:54:35]MH_I2C_Read... [19:54:35]Read from MH i2c: E2 0E 00 CA 07 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 27 [19:54:35]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [19:54:35]wFMCommunicate OK [19:54:35]SAM_PROTO_GetShiftState done [19:54:35]FM_GetShiftState done [19:54:35]req_shift_opened done [19:54:35]requested_item shift.open_date is exist - process it [19:54:35]req_shift_open_date [19:54:35]req_shift_open_date done [19:54:35]produce_requested_data done [19:54:35]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165441,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [19:54:35]process_action_free close_receipt [19:54:35]json_value_free [19:54:35]json_value_free done [19:54:35]process_json_proto returns [19:54:35]Send response to host [19:54:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165441,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [19:54:35]free response buf [19:54:35]execute_script done [19:54:35]execute_script returns [19:54:35]free content buf [19:54:35]Sock 9.Close socket [19:54:35]Sock 9.Thread stoped [19:54:39]OFD Sender: No OFD packet to send [19:54:44]OFD Sender: No OFD packet to send [19:54:49]OFD Sender: No OFD packet to send [19:54:54]OFD Sender: No OFD packet to send [19:54:59]OFD Sender: No OFD packet to send [19:55:04]OFD Sender: No OFD packet to send [19:55:09]OFD Sender: No OFD packet to send [19:55:14]OFD Sender: No OFD packet to send [19:55:19]OFD Sender: No OFD packet to send [19:55:24]OFD Sender: No OFD packet to send [19:55:29]OFD Sender: No OFD packet to send [19:55:34]OFD Sender: No OFD packet to send [19:55:39]OFD Sender: No OFD packet to send [19:55:44]OFD Sender: No OFD packet to send [19:55:49]OFD Sender: No OFD packet to send [19:55:54]OFD Sender: No OFD packet to send [19:55:59]OFD Sender: No OFD packet to send [19:56:04]OFD Sender: No OFD packet to send [19:56:09]OFD Sender: No OFD packet to send [19:56:14]OFD Sender: No OFD packet to send [19:56:19]OFD Sender: No OFD packet to send [19:56:24]OFD Sender: No OFD packet to send [19:56:29]OFD Sender: No OFD packet to send [19:56:34]OFD Sender: No OFD packet to send [19:56:39]OFD Sender: No OFD packet to send [19:56:44]OFD Sender: No OFD packet to send [19:56:49]OFD Sender: No OFD packet to send [19:56:54]OFD Sender: No OFD packet to send [19:56:59]OFD Sender: No OFD packet to send [19:57:04]OFD Sender: No OFD packet to send [19:57:09]OFD Sender: No OFD packet to send [19:57:14]OFD Sender: No OFD packet to send [19:57:19]OFD Sender: No OFD packet to send [19:57:24]OFD Sender: No OFD packet to send [19:57:29]OFD Sender: No OFD packet to send [19:57:34]OFD Sender: No OFD packet to send [19:57:39]OFD Sender: No OFD packet to send [19:57:44]OFD Sender: No OFD packet to send [19:57:49]OFD Sender: No OFD packet to send [19:57:54]OFD Sender: No OFD packet to send [19:57:59]OFD Sender: No OFD packet to send [19:58:04]accept exits with 7 [19:58:04]New connection [19:58:04]New thread 3067190628 created [19:58:04]Thread 3067333988 joined [19:58:04]Waiting for new connection... [19:58:04] Sock 7.Parse request [19:58:04]Sock 7.Check first char [19:58:04]Sock 7.First char is OK [19:58:04]request: POST /json_proto HTTP/1.0 [19:58:04]Method: POST [19:58:04]URL: /json_proto [19:58:04]Method is POST - this is cgi request [19:58:04]url: /json_proto [19:58:04]query_string will be loaded in cgi processing [19:58:04]execute_cgi json_proto POST (null) [19:58:04]execute_cgi path=json_proto method=POST [19:58:04]POST find Content-Length [19:58:04]Host: 172.17.56.4:8080 [19:58:04]Content-Length: 677 [19:58:04]Content-Type: application/json [19:58:04] [19:58:04]POST finish read [19:58:04]Found Content-Length = 677 [19:58:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459558", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:58:04]execute_script... [19:58: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)459558", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:58:04]POST & json_proto [19:58:04]process_json_proto [19:58:04]json parsed OK: [19:58:04]protocol is kg_v1.0 [19:58:04]action value=close_receipt [19:58:04]process_action close_receipt [19:58:04]cmd_close_receipt [19:58:04]MH_GetDate [19:58:04]Write to MH i2c: F0 00 00 CB 07 C1 [19:58:04]Write i2c OK [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: F0 [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: F0 09 00 [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: F0 09 00 CB 07 00 4C 7F 95 66 C9 DC B2 64 4B [19:58:04]GetLastDocTimeStamp 1721073272 [19:58:04]current date 1721073484 [19:58:04]FM_GetShiftState [19:58:04]SAM_PROTO_GetShiftState [19:58:04]wFMCommunicate request_size=4 [19:58:04]MH_SAM_APDU [19:58:04]CAPDU: 80 13 01 00 [19:58:04]Write to MH i2c: E2 08 00 CC 07 80 13 01 00 00 00 00 00 50 [19:58:04]Write i2c OK [19:58:04]MH_I2C_Read... [19:58:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:58:04]Read from MH i2c: E2 [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: E2 0E 00 [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: E2 0E 00 CC 07 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 29 [19:58:04]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [19:58:04]wFMCommunicate OK [19:58:04]SAM_PROTO_GetShiftState done [19:58:04]FM_GetShiftState done [19:58:04]opened in 1721003876 [19:58:04]opened+sec_in_day 1721090276 [19:58:04]quantity*price = 30004 [19:58:04]sum+1 = 30006 [19:58:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 315 15.07.2024 19:58 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165442 ФПД: 212726575985064 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T195805&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165442&fm=212726575985064&tin=02508201610067®Number=0000000000090829&sum=30000 [19:58:05]StoreToDocumentArchive [19:58:05]shift 448 fd 165442 [19:58:05]save to /storage/0448/doc_00165442 [19:58:05]save last doc name /storage/0448/doc_00165442 to /storage/kkm_last_doc_name [19:58:05]save OK [19:58:05]Clear old archive folders... [19:58:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:58:05]tlvbuf is B6E056D0 [19:58:05]SAM_PROTO_ClearQueue [19:58:05]wFMCommunicate request_size=4 [19:58:05]MH_SAM_APDU [19:58:05]CAPDU: 80 09 00 00 [19:58:05]Write to MH i2c: E2 08 00 D9 07 80 09 00 00 00 00 00 00 52 [19:58:05]Write i2c OK [19:58:05]MH_I2C_Read... [19:58:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:58:05]Read from MH i2c: E2 [19:58:05]MH_I2C_Read... [19:58:05]Read from MH i2c: E2 03 00 [19:58:05]MH_I2C_Read... [19:58:05]Read from MH i2c: E2 03 00 D9 07 00 90 00 54 [19:58:05]RAPDU: 90 00 [19:58:05]wFMCommunicate OK [19:58:05]SAM_PROTO_ClearQueue done [19:58:05]KKMCreateOFDPacket [19:58:05]OFDProtocolAddRootSTLVToBuf [19:58:05]FM_MakeSignedData [19:58:05]FM_MakeSignedData [19:58:05]SAM_PROTO_SignData [19:58:05]wFMCommunicate request_size=4 [19:58:05]MH_SAM_APDU [19:58:05]CAPDU: 80 0D 01 02 [19:58:05]Write to MH i2c: E2 08 00 DA 07 80 0D 01 02 00 00 00 00 5A [19:58:05]Write i2c OK [19:58:05]MH_I2C_Read... [19:58:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:58:05]Read from MH i2c: E2 [19:58:05]MH_I2C_Read... [19:58:05]Read from MH i2c: E2 03 00 [19:58:05]MH_I2C_Read... [19:58:05]Read from MH i2c: E2 03 00 DA 07 00 90 00 55 [19:58:05]RAPDU: 90 00 [19:58:05]wFMCommunicate OK [19:58:05]wFMCommunicate request_size=255 [19:58:05]MH_SAM_APDU [19:58:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 4D 7F 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 42 86 02 00 35 04 06 00 C1 [19:58:05]Write to MH i2c: E2 02 01 DB 07 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 4D 7F 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 42 86 02 00 35 04 06 00 C1 00 00 E3 [19:58:05]Write i2c OK [19:58:05]MH_I2C_Read... [19:58:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:58:05]Read from MH i2c: E2 [19:58:05]MH_I2C_Read... [19:58:05]Read from MH i2c: E2 03 00 [19:58:05]MH_I2C_Read... [19:58:05]Read from MH i2c: E2 03 00 DB 07 00 90 00 56 [19:58:05]RAPDU: 90 00 [19:58:05]wFMCommunicate OK [19:58:05]wFMCommunicate request_size=10 [19:58:05]MH_SAM_APDU [19:58:05]CAPDU: 80 0D 02 02 05 79 43 FE F1 A8 [19:58:05]Write to MH i2c: E2 0D 00 DC 07 80 0D 02 02 05 00 79 43 FE F1 A8 00 00 BA [19:58:05]Write i2c OK [19:58:05]MH_I2C_Read... [19:58:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:58:05]Read from MH i2c: E2 [19:58:05]MH_I2C_Read... [19:58:05]Read from MH i2c: E2 03 00 [19:58:05]MH_I2C_Read... [19:58:05]Read from MH i2c: E2 03 00 DC 07 00 90 00 57 [19:58:05]RAPDU: 90 00 [19:58:05]wFMCommunicate OK [19:58:05]wFMCommunicate request_size=4 [19:58:05]MH_SAM_APDU [19:58:05]CAPDU: 80 0D 03 02 [19:58:05]Write to MH i2c: E2 08 00 DD 07 80 0D 03 02 00 00 00 00 5F [19:58:05]Write i2c OK [19:58:05]MH_I2C_Read... [19:58:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:58:05]Read from MH i2c: E2 [19:58:05]MH_I2C_Read... [19:58:05]Read from MH i2c: E2 0B 00 [19:58:05]MH_I2C_Read... [19:58:05]Read from MH i2c: E2 0B 00 DD 07 00 8B 4B DA DF FA 92 16 FF 90 00 90 [19:58:05]RAPDU: 8B 4B DA DF FA 92 16 FF 90 00 [19:58:05]wFMCommunicate OK [19:58:05]SAM_PROTO_SignData done [19:58:05]FM_MakeSignedData done [19:58:05]CreateOFDProtocolMessage [19:58:05]wFMCommunicate request_size=4 [19:58:05]MH_SAM_APDU [19:58:05]CAPDU: 80 11 00 00 [19:58:05]Write to MH i2c: E2 08 00 DE 07 80 11 00 00 00 00 00 00 5F [19:58:05]Write i2c OK [19:58:05]MH_I2C_Read... [19:58:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:58:05]Read from MH i2c: E2 [19:58:05]MH_I2C_Read... [19:58:05]Read from MH i2c: E2 17 00 [19:58:05]MH_I2C_Read... [19:58:05]Read from MH i2c: E2 17 00 DE 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B5 [19:58:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:58:05]wFMCommunicate OK [19:58:05]CreateOFDProtocolMessage done [19:58:05]OFDSenderStorePacket 165442 [19:58:05]StoreOFDPacket docnum=165442 [19:58:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 BA F4 07 01 1A 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 4D 7F 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 42 86 02 00 35 04 06 00 C1 79 43 FE F1 A8 8B 4B DA DF FA 92 16 FF [19:58:05]CheckFolder [19:58:05]dirname=/storage/ofd_packets [19:58:05]CheckFolder done [19:58:05]ProducePacketName [19:58:05]name=ofd_packets/00165442 [19:58:05]NVStorageSaveData ofd_packets/00165442 [19:58:05]File name is /storage/ofd_packets/00165442 [19:58:05]Write 301 bytes [19:58:05]NVStorageSaveData done [19:58:05]OFDSenderStorePacket done [19:58:05]KKMCreateOFDPacket done [19:58:05]NVStorageSaveData kkm_last_timestamp [19:58:05]File name is /storage/kkm_last_timestamp [19:58:05]Write 4 bytes [19:58:05]NVStorageSaveData done [19:58:05]ExternCall_PrintAddStr [19:58:05]wPrintStart [19:58:05]Write to MH i2c: 01 00 00 DF 07 E6 [19:58:05]Write i2c OK [19:58:05]MH_I2C_Read... [19:58:05]Read from MH i2c: 01 [19:58:05]MH_I2C_Read... [19:58:05]Read from MH i2c: 01 07 00 [19:58:05]MH_I2C_Read... [19:58:05]Read from MH i2c: 01 07 00 DF 07 00 00 00 00 00 FF 0F FB [19:58:05]RasterBufferAndPrint [19:58:05]line Счет N : (1)459558 [19:58:05]line ИНН: 02508201610067 [19:58:05]line Контрольно-Кассовый Чек [19:58:05]line ПРОДАЖА [19:58:05]line ТРК (МРК, ГНК) : 22 [19:58:05]line Товар: 2710124130 [19:58:05]line Аи-92-К-5 [19:58:05]line 4.560 * 65.80 [19:58:05]line = 300.05 [19:58:05]line НДС 12% НСП 1% [19:58:05]line > о реализуемом товаре [19:58:05]line ОКРУГЛЕНИЕ: -0.05 [19:58:05]line ИТОГО: 300.00 [19:58:05]line Внесено: 300.00 [19:58:05]line СДАЧА: 0.00 [19:58:05]line НСП 1% : 2.65 [19:58:05]line НДС 12% : 31.86 [19:58:05]line Наличными: 300.00 [19:58:05]line Безнал.: 0.00 [19:58:05]line Место: АЗС № 72 "Партнер Нефть" [19:58:05]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [19:58:05]line СНО: Общий режим [19:58:05]line Чек 315 15.07.2024 19:58 [19:58:05]line Смена: 448 ФФД: 1.0 [19:58:05]line ЗНМ: 0300000160 [19:58:05]line РНМ: 0000000000090829 [19:58:05]line Версия ККМ: 001 [19:58:05]line ФМ: 0000000000874718 [19:58:05]line ФД: 165442 [19:58:05]line ФПД: 212726575985064 [19:58:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T195805&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165442&fm=212726575985064&tin=02508201610067®Number=0000000000090829&sum=30000 [19:58:06]OFD Sender: Processing packet 165442 [packets to send 106, broken 105] [19:58:06]ProducePacketName [19:58:06]name=ofd_packets/00165442 [19:58:06]OFD Sender: To server: pG, [19:58:06]CommunicateWithHost lk.salyk.kg:30040 [19:58:06]ConnectInit lk.salyk.kg [19:58:06]written 0, free lines is 4095 [19:58:06]Connected sock=10 [19:58: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 37 31 38 0F 01 00 00 BA F4 07 01 1A 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 4D 7F 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 42 86 02 00 35 04 06 00 C1 79 43 FE F1 A8 8B 4B DA DF FA 92 16 FF [19:58:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 1E 4E 47 00 8B A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 42 86 02 00 F4 03 04 00 D6 25 95 66 B6 04 01 00 00 D4 C4 35 94 0A 00 E5 BB [19:58:06]CommunicateWithHost err = 0 [19:58:06]CheckOFDResponse [19:58:06]1017 (14) - 77093643461234 [19:58:06]1041 (16) - 0000000000874718 [19:58:06]1040 (4) - 165442 [19:58:06]1012 (4) - 15.07.2024 13:36 [19:58:06]1206 (1) - 0 [19:58:06]OFD Sender: Remove packet 165442 [19:58:06]ProducePacketName [19:58:06]name=ofd_packets/00165442 [19:58:06]NVStorageDeleteData [19:58:06]Write to MH i2c: 01 00 00 09 08 11 [19:58:06]Write i2c OK [19:58:06]MH_I2C_Read... [19:58:06]Read from MH i2c: 01 [19:58:06]MH_I2C_Read... [19:58:06]Read from MH i2c: 01 07 00 [19:58:06]MH_I2C_Read... [19:58:06]Read from MH i2c: 01 07 00 09 08 00 00 00 00 00 01 0D 26 [19:58:06]RasterBufferAndPrint [19:58:06]line [19:58:06]line [19:58:06]line [19:58:06]line [19:58:06]line [19:58:06]written 0, free lines is 3335 [19:58:06]MH_Cut [19:58:06]Write to MH i2c: D1 01 00 10 08 01 EA [19:58:06]Write i2c OK [19:58:06]MH_I2C_Read... [19:58:06]Read from MH i2c: D1 [19:58:06]MH_I2C_Read... [19:58:06]Read from MH i2c: D1 01 00 [19:58:06]MH_I2C_Read... [19:58:06]Read from MH i2c: D1 01 00 10 08 00 E9 [19:58:06]Write to MH i2c: 01 00 00 11 08 19 [19:58:06]Write i2c OK [19:58:06]MH_I2C_Read... [19:58:07]OFD Sender: No OFD packet to send [19:58:07]*** Cut start [19:58:07]*** Partial cut [19:58:07]*** CUTSNS_PIN = 1 [19:58:07]*** CUTSNS_PIN = 0 [19:58:07]*** Brake cut motor [19:58:07]Read from MH i2c: 01 [19:58:07]MH_I2C_Read... [19:58:07]*** Stop cut motor [19:58:08]*** Cut end [19:58:08]Read from MH i2c: 01 07 00 [19:58:08]MH_I2C_Read... [19:58:08]Read from MH i2c: 01 07 00 11 08 00 00 00 00 00 FF 0F 2E [19:58:08]process_action close_receipt done [19:58:08]requested_data is exist [19:58:08]produce_requested_data [19:58:08]requested_item fm.sn is exist - process it [19:58:08]wFMCommunicate request_size=4 [19:58:08]MH_SAM_APDU [19:58:08]CAPDU: 80 11 00 00 [19:58:08]Write to MH i2c: E2 08 00 12 08 80 11 00 00 00 00 00 00 94 [19:58:08]Write i2c OK [19:58:08]MH_I2C_Read... [19:58:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:58:08]Read from MH i2c: E2 [19:58:08]MH_I2C_Read... [19:58:08]Read from MH i2c: E2 17 00 [19:58:08]MH_I2C_Read... [19:58:08]Read from MH i2c: E2 17 00 12 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 EA [19:58:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [19:58:08]wFMCommunicate OK [19:58:08]requested_item fd.num is exist - process it [19:58:08]SAM_PROTO_GetFieldsCounters [19:58:08]wFMCommunicate request_size=4 [19:58:08]MH_SAM_APDU [19:58:08]CAPDU: 80 13 00 00 [19:58:08]Write to MH i2c: E2 08 00 13 08 80 13 00 00 00 00 00 00 97 [19:58:08]Write i2c OK [19:58:08]MH_I2C_Read... [19:58:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:58:08]Read from MH i2c: E2 [19:58:08]MH_I2C_Read... [19:58:08]Read from MH i2c: E2 62 00 [19:58:08]MH_I2C_Read... [19:58:08]Read from MH i2c: E2 62 00 13 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 42 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 3B 01 00 00 5E 04 04 00 3B 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 FD [19:58: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 42 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 3B 01 00 00 5E 04 04 00 3B 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:58:08]wFMCommunicate OK [19:58:08]SAM_PROTO_GetFieldsCounters done [19:58:08]requested_item shift.num is exist - process it [19:58:08]requested_item shift.opened is exist - process it [19:58:08]req_shift_opened [19:58:08]FM_GetShiftState [19:58:08]SAM_PROTO_GetShiftState [19:58:08]wFMCommunicate request_size=4 [19:58:08]MH_SAM_APDU [19:58:08]CAPDU: 80 13 01 00 [19:58:08]Write to MH i2c: E2 08 00 14 08 80 13 01 00 00 00 00 00 99 [19:58:08]Write i2c OK [19:58:08]MH_I2C_Read... [19:58:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:58:08]Read from MH i2c: E2 [19:58:08]MH_I2C_Read... [19:58:08]Read from MH i2c: E2 0E 00 [19:58:08]MH_I2C_Read... [19:58:08]Read from MH i2c: E2 0E 00 14 08 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 72 [19:58:08]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [19:58:08]wFMCommunicate OK [19:58:08]SAM_PROTO_GetShiftState done [19:58:08]FM_GetShiftState done [19:58:08]req_shift_opened done [19:58:08]requested_item shift.open_date is exist - process it [19:58:08]req_shift_open_date [19:58:08]req_shift_open_date done [19:58:08]produce_requested_data done [19:58:08]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165442,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [19:58:08]process_action_free close_receipt [19:58:08]json_value_free [19:58:08]json_value_free done [19:58:08]process_json_proto returns [19:58:08]Send response to host [19:58:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165442,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [19:58:08]free response buf [19:58:08]execute_script done [19:58:08]execute_script returns [19:58:08]free content buf [19:58:08]Sock 7.Close socket [19:58:08]Sock 7.Thread stoped [19:58:12]OFD Sender: No OFD packet to send [19:58:17]OFD Sender: No OFD packet to send [19:58:22]OFD Sender: No OFD packet to send [19:58:27]OFD Sender: No OFD packet to send [19:58:32]OFD Sender: No OFD packet to send [19:58:37]OFD Sender: No OFD packet to send [19:58:42]OFD Sender: No OFD packet to send [19:58:47]OFD Sender: No OFD packet to send [19:58:52]OFD Sender: No OFD packet to send [19:58:57]OFD Sender: No OFD packet to send [19:59:02]OFD Sender: No OFD packet to send [19:59:07]OFD Sender: No OFD packet to send [19:59:12]OFD Sender: No OFD packet to send [19:59:17]OFD Sender: No OFD packet to send [19:59:22]OFD Sender: No OFD packet to send [19:59:27]OFD Sender: No OFD packet to send [19:59:32]OFD Sender: No OFD packet to send [19:59:37]OFD Sender: No OFD packet to send [19:59:42]OFD Sender: No OFD packet to send [19:59:47]OFD Sender: No OFD packet to send [19:59:52]OFD Sender: No OFD packet to send [19:59:57]OFD Sender: No OFD packet to send [20:00:02]OFD Sender: No OFD packet to send [20:00:07]OFD Sender: No OFD packet to send [20:00:12]OFD Sender: No OFD packet to send [20:00:17]OFD Sender: No OFD packet to send [20:00:22]OFD Sender: No OFD packet to send [20:00:27]OFD Sender: No OFD packet to send [20:00:32]OFD Sender: No OFD packet to send [20:00:37]OFD Sender: No OFD packet to send [20:00:42]OFD Sender: No OFD packet to send [20:00:47]OFD Sender: No OFD packet to send [20:00:52]OFD Sender: No OFD packet to send [20:00:57]OFD Sender: No OFD packet to send [20:01:02]OFD Sender: No OFD packet to send [20:01:07]OFD Sender: No OFD packet to send [20:01:12]OFD Sender: No OFD packet to send [20:01:17]OFD Sender: No OFD packet to send [20:01:22]OFD Sender: No OFD packet to send [20:01:27]OFD Sender: No OFD packet to send [20:01:32]OFD Sender: No OFD packet to send [20:01:37]OFD Sender: No OFD packet to send [20:01:42]OFD Sender: No OFD packet to send [20:01:47]OFD Sender: No OFD packet to send [20:01:52]OFD Sender: No OFD packet to send [20:01:57]OFD Sender: No OFD packet to send [20:02:02]OFD Sender: No OFD packet to send [20:02:07]OFD Sender: No OFD packet to send [20:02:12]OFD Sender: No OFD packet to send [20:02:17]OFD Sender: No OFD packet to send [20:02:22]OFD Sender: No OFD packet to send [20:02:27]OFD Sender: No OFD packet to send [20:02:32]OFD Sender: No OFD packet to send [20:02:37]OFD Sender: No OFD packet to send [20:02:42]OFD Sender: No OFD packet to send [20:02:47]OFD Sender: No OFD packet to send [20:02:52]OFD Sender: No OFD packet to send [20:02:57]OFD Sender: No OFD packet to send [20:03:02]OFD Sender: No OFD packet to send [20:03:07]OFD Sender: No OFD packet to send [20:03:12]OFD Sender: No OFD packet to send [20:03:17]OFD Sender: No OFD packet to send [20:03:22]OFD Sender: No OFD packet to send [20:03:27]OFD Sender: No OFD packet to send [20:03:32]OFD Sender: No OFD packet to send [20:03:37]OFD Sender: No OFD packet to send [20:03:42]OFD Sender: No OFD packet to send [20:03:47]OFD Sender: No OFD packet to send [20:03:52]OFD Sender: No OFD packet to send [20:03:57]OFD Sender: No OFD packet to send [20:04:02]OFD Sender: No OFD packet to send [20:04:07]OFD Sender: No OFD packet to send [20:04:12]OFD Sender: No OFD packet to send [20:04:17]OFD Sender: No OFD packet to send [20:04:22]OFD Sender: No OFD packet to send [20:04:27]OFD Sender: No OFD packet to send [20:04:32]OFD Sender: No OFD packet to send [20:04:37]OFD Sender: No OFD packet to send [20:04:42]OFD Sender: No OFD packet to send [20:04:47]OFD Sender: No OFD packet to send [20:04:52]OFD Sender: No OFD packet to send [20:04:57]OFD Sender: No OFD packet to send [20:05:02]OFD Sender: No OFD packet to send [20:05:07]OFD Sender: No OFD packet to send [20:05:12]OFD Sender: No OFD packet to send [20:05:17]OFD Sender: No OFD packet to send [20:05:22]OFD Sender: No OFD packet to send [20:05:27]OFD Sender: No OFD packet to send [20:05:32]OFD Sender: No OFD packet to send [20:05:37]OFD Sender: No OFD packet to send [20:05:42]OFD Sender: No OFD packet to send [20:05:47]OFD Sender: No OFD packet to send [20:05:52]OFD Sender: No OFD packet to send [20:05:57]OFD Sender: No OFD packet to send [20:06:02]OFD Sender: No OFD packet to send [20:06:07]OFD Sender: No OFD packet to send [20:06:12]OFD Sender: No OFD packet to send [20:06:17]OFD Sender: No OFD packet to send [20:06:22]OFD Sender: No OFD packet to send [20:06:27]OFD Sender: No OFD packet to send [20:06:32]OFD Sender: No OFD packet to send [20:06:37]OFD Sender: No OFD packet to send [20:06:42]OFD Sender: No OFD packet to send [20:06:47]OFD Sender: No OFD packet to send [20:06:52]OFD Sender: No OFD packet to send [20:06:57]OFD Sender: No OFD packet to send [20:07:02]OFD Sender: No OFD packet to send [20:07:07]OFD Sender: No OFD packet to send [20:07:12]OFD Sender: No OFD packet to send [20:07:17]OFD Sender: No OFD packet to send [20:07:22]OFD Sender: No OFD packet to send [20:07:27]OFD Sender: No OFD packet to send [20:07:32]OFD Sender: No OFD packet to send [20:07:37]OFD Sender: No OFD packet to send [20:07:42]OFD Sender: No OFD packet to send [20:07:47]OFD Sender: No OFD packet to send [20:07:52]OFD Sender: No OFD packet to send [20:07:57]OFD Sender: No OFD packet to send [20:08:02]OFD Sender: No OFD packet to send [20:08:07]OFD Sender: No OFD packet to send [20:08:12]OFD Sender: No OFD packet to send [20:08:17]OFD Sender: No OFD packet to send [20:08:22]OFD Sender: No OFD packet to send [20:08:27]OFD Sender: No OFD packet to send [20:08:32]OFD Sender: No OFD packet to send [20:08:37]OFD Sender: No OFD packet to send [20:08:42]OFD Sender: No OFD packet to send [20:08:47]OFD Sender: No OFD packet to send [20:08:52]OFD Sender: No OFD packet to send [20:08:57]OFD Sender: No OFD packet to send [20:09:02]OFD Sender: No OFD packet to send [20:09:07]OFD Sender: No OFD packet to send [20:09:12]OFD Sender: No OFD packet to send [20:09:17]OFD Sender: No OFD packet to send [20:09:22]OFD Sender: No OFD packet to send [20:09:27]OFD Sender: No OFD packet to send [20:09:32]OFD Sender: No OFD packet to send [20:09:37]OFD Sender: No OFD packet to send [20:09:42]OFD Sender: No OFD packet to send [20:09:47]OFD Sender: No OFD packet to send [20:09:52]OFD Sender: No OFD packet to send [20:09:57]OFD Sender: No OFD packet to send [20:10:02]OFD Sender: No OFD packet to send [20:10:07]OFD Sender: No OFD packet to send [20:10:12]OFD Sender: No OFD packet to send [20:10:17]OFD Sender: No OFD packet to send [20:10:22]OFD Sender: No OFD packet to send [20:10:27]OFD Sender: No OFD packet to send [20:10:32]OFD Sender: No OFD packet to send [20:10:37]OFD Sender: No OFD packet to send [20:10:42]OFD Sender: No OFD packet to send [20:10:47]OFD Sender: No OFD packet to send [20:10:52]OFD Sender: No OFD packet to send [20:10:57]OFD Sender: No OFD packet to send [20:11:02]OFD Sender: No OFD packet to send [20:11:07]OFD Sender: No OFD packet to send [20:11:12]OFD Sender: No OFD packet to send [20:11:17]OFD Sender: No OFD packet to send [20:11:22]OFD Sender: No OFD packet to send [20:11:27]OFD Sender: No OFD packet to send [20:11:32]OFD Sender: No OFD packet to send [20:11:37]OFD Sender: No OFD packet to send [20:11:42]OFD Sender: No OFD packet to send [20:11:47]OFD Sender: No OFD packet to send [20:11:52]OFD Sender: No OFD packet to send [20:11:58]OFD Sender: No OFD packet to send [20:12:03]OFD Sender: No OFD packet to send [20:12:08]OFD Sender: No OFD packet to send [20:12:13]OFD Sender: No OFD packet to send [20:12:18]OFD Sender: No OFD packet to send [20:12:23]OFD Sender: No OFD packet to send [20:12:28]OFD Sender: No OFD packet to send [20:12:33]OFD Sender: No OFD packet to send [20:12:38]OFD Sender: No OFD packet to send [20:12:43]OFD Sender: No OFD packet to send [20:12:48]OFD Sender: No OFD packet to send [20:12:53]OFD Sender: No OFD packet to send [20:12:58]OFD Sender: No OFD packet to send [20:13:03]OFD Sender: No OFD packet to send [20:13:08]OFD Sender: No OFD packet to send [20:13:13]OFD Sender: No OFD packet to send [20:13:18]OFD Sender: No OFD packet to send [20:13:19]accept exits with 9 [20:13:19]New connection [20:13:19]New thread 3067333988 created [20:13:19]Thread 3067190628 joined [20:13:19]Waiting for new connection... [20:13:19] Sock 9.Parse request [20:13:19]Sock 9.Check first char [20:13:19]Sock 9.First char is OK [20:13:19]request: POST /json_proto HTTP/1.0 [20:13:19]Method: POST [20:13:19]URL: /json_proto [20:13:19]Method is POST - this is cgi request [20:13:19]url: /json_proto [20:13:19]query_string will be loaded in cgi processing [20:13:19]execute_cgi json_proto POST (null) [20:13:19]execute_cgi path=json_proto method=POST [20:13:19]POST find Content-Length [20:13:19]Host: 172.17.56.4:8080 [20:13:19]Content-Length: 674 [20:13:19]Content-Type: application/json [20:13:19] [20:13:19]POST finish read [20:13:19]Found Content-Length = 674 [20:13:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459559", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 3.480, "sum" : 250.21, "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" ] } } [20:13:19]execute_script... [20:13: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)459559", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 3.480, "sum" : 250.21, "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" ] } } [20:13:19]POST & json_proto [20:13:19]process_json_proto [20:13:19]json parsed OK: [20:13:19]protocol is kg_v1.0 [20:13:19]action value=close_receipt [20:13:19]process_action close_receipt [20:13:19]cmd_close_receipt [20:13:19]MH_GetDate [20:13:19]Write to MH i2c: F0 00 00 15 08 0C [20:13:19]Write i2c OK [20:13:19]MH_I2C_Read... [20:13:19]Read from MH i2c: F0 [20:13:19]MH_I2C_Read... [20:13:19]Read from MH i2c: F0 09 00 [20:13:19]MH_I2C_Read... [20:13:19]Read from MH i2c: F0 09 00 15 08 00 DF 82 95 66 C9 DC B2 64 2C [20:13:19]GetLastDocTimeStamp 1721073485 [20:13:19]current date 1721074399 [20:13:19]FM_GetShiftState [20:13:19]SAM_PROTO_GetShiftState [20:13:19]wFMCommunicate request_size=4 [20:13:19]MH_SAM_APDU [20:13:19]CAPDU: 80 13 01 00 [20:13:19]Write to MH i2c: E2 08 00 16 08 80 13 01 00 00 00 00 00 9B [20:13:19]Write i2c OK [20:13:19]MH_I2C_Read... [20:13:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:13:19]Read from MH i2c: E2 [20:13:19]MH_I2C_Read... [20:13:19]Read from MH i2c: E2 0E 00 [20:13:19]MH_I2C_Read... [20:13:19]Read from MH i2c: E2 0E 00 16 08 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 74 [20:13:19]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [20:13:19]wFMCommunicate OK [20:13:19]SAM_PROTO_GetShiftState done [20:13:19]FM_GetShiftState done [20:13:19]opened in 1721003876 [20:13:19]opened+sec_in_day 1721090276 [20:13:19]quantity*price = 25021 [20:13:19]sum+1 = 25022 [20:13:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 316 15.07.2024 20:13 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165443 ФПД: 54127784623386 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T201319&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165443&fm=54127784623386&tin=02508201610067®Number=0000000000090829&sum=25000 [20:13:20]StoreToDocumentArchive [20:13:20]shift 448 fd 165443 [20:13:20]save to /storage/0448/doc_00165443 [20:13:20]save last doc name /storage/0448/doc_00165443 to /storage/kkm_last_doc_name [20:13:20]save OK [20:13:20]Clear old archive folders... [20:13:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:13:20]tlvbuf is 01B461A0 [20:13:20]SAM_PROTO_ClearQueue [20:13:20]wFMCommunicate request_size=4 [20:13:20]MH_SAM_APDU [20:13:20]CAPDU: 80 09 00 00 [20:13:20]Write to MH i2c: E2 08 00 23 08 80 09 00 00 00 00 00 00 9D [20:13:20]Write i2c OK [20:13:20]MH_I2C_Read... [20:13:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:13:20]Read from MH i2c: E2 [20:13:20]MH_I2C_Read... [20:13:20]Read from MH i2c: E2 03 00 [20:13:20]MH_I2C_Read... [20:13:20]Read from MH i2c: E2 03 00 23 08 00 90 00 9F [20:13:20]RAPDU: 90 00 [20:13:20]wFMCommunicate OK [20:13:20]SAM_PROTO_ClearQueue done [20:13:20]KKMCreateOFDPacket [20:13:20]OFDProtocolAddRootSTLVToBuf [20:13:20]FM_MakeSignedData [20:13:20]FM_MakeSignedData [20:13:20]SAM_PROTO_SignData [20:13:20]wFMCommunicate request_size=4 [20:13:20]MH_SAM_APDU [20:13:20]CAPDU: 80 0D 01 02 [20:13:20]Write to MH i2c: E2 08 00 24 08 80 0D 01 02 00 00 00 00 A5 [20:13:20]Write i2c OK [20:13:20]MH_I2C_Read... [20:13:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:13:20]Read from MH i2c: E2 [20:13:20]MH_I2C_Read... [20:13:20]Read from MH i2c: E2 03 00 [20:13:20]MH_I2C_Read... [20:13:20]Read from MH i2c: E2 03 00 24 08 00 90 00 A0 [20:13:20]RAPDU: 90 00 [20:13:20]wFMCommunicate OK [20:13:20]wFMCommunicate request_size=255 [20:13:20]MH_SAM_APDU [20:13:20]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 0D 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 BD 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 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 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 3C 01 00 00 F4 03 04 00 DF 82 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 43 86 02 00 35 04 06 00 31 3A 9B 5F [20:13:20]Write to MH i2c: E2 02 01 25 08 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 0D 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 BD 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 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 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 3C 01 00 00 F4 03 04 00 DF 82 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 43 86 02 00 35 04 06 00 31 3A 9B 5F 00 00 E1 [20:13:20]Write i2c OK [20:13:20]MH_I2C_Read... [20:13:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:13:20]Read from MH i2c: E2 [20:13:20]MH_I2C_Read... [20:13:20]Read from MH i2c: E2 03 00 [20:13:20]MH_I2C_Read... [20:13:20]Read from MH i2c: E2 03 00 25 08 00 90 00 A1 [20:13:20]RAPDU: 90 00 [20:13:20]wFMCommunicate OK [20:13:20]wFMCommunicate request_size=7 [20:13:20]MH_SAM_APDU [20:13:20]CAPDU: 80 0D 02 02 02 FD 1A [20:13:20]Write to MH i2c: E2 0A 00 26 08 80 0D 02 02 02 00 FD 1A 00 00 C3 [20:13:20]Write i2c OK [20:13:20]MH_I2C_Read... [20:13:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:13:20]Read from MH i2c: E2 [20:13:20]MH_I2C_Read... [20:13:20]Read from MH i2c: E2 03 00 [20:13:20]MH_I2C_Read... [20:13:20]Read from MH i2c: E2 03 00 26 08 00 90 00 A2 [20:13:20]RAPDU: 90 00 [20:13:20]wFMCommunicate OK [20:13:20]wFMCommunicate request_size=4 [20:13:20]MH_SAM_APDU [20:13:20]CAPDU: 80 0D 03 02 [20:13:20]Write to MH i2c: E2 08 00 27 08 80 0D 03 02 00 00 00 00 AA [20:13:20]Write i2c OK [20:13:20]MH_I2C_Read... [20:13:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:13:20]Read from MH i2c: E2 [20:13:20]MH_I2C_Read... [20:13:20]Read from MH i2c: E2 0B 00 [20:13:20]MH_I2C_Read... [20:13:20]Read from MH i2c: E2 0B 00 27 08 00 A8 E3 C0 53 FD 95 98 8B 90 00 FE [20:13:20]RAPDU: A8 E3 C0 53 FD 95 98 8B 90 00 [20:13:20]wFMCommunicate OK [20:13:20]SAM_PROTO_SignData done [20:13:20]FM_MakeSignedData done [20:13:20]CreateOFDProtocolMessage [20:13:20]wFMCommunicate request_size=4 [20:13:20]MH_SAM_APDU [20:13:20]CAPDU: 80 11 00 00 [20:13:20]Write to MH i2c: E2 08 00 28 08 80 11 00 00 00 00 00 00 AA [20:13:20]Write i2c OK [20:13:20]MH_I2C_Read... [20:13:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:13:20]Read from MH i2c: E2 [20:13:20]MH_I2C_Read... [20:13:20]Read from MH i2c: E2 17 00 [20:13:20]MH_I2C_Read... [20:13:20]Read from MH i2c: E2 17 00 28 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 00 [20:13:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:13:20]wFMCommunicate OK [20:13:20]CreateOFDProtocolMessage done [20:13:20]OFDSenderStorePacket 165443 [20:13:20]StoreOFDPacket docnum=165443 [20:13:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 3C 50 04 01 A1 58 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 0D 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 BD 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 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 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 3C 01 00 00 F4 03 04 00 DF 82 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 43 86 02 00 35 04 06 00 31 3A 9B 5F FD 1A A8 E3 C0 53 FD 95 98 8B [20:13:20]CheckFolder [20:13:20]dirname=/storage/ofd_packets [20:13:20]CheckFolder done [20:13:20]ProducePacketName [20:13:20]name=ofd_packets/00165443 [20:13:20]NVStorageSaveData ofd_packets/00165443 [20:13:20]File name is /storage/ofd_packets/00165443 [20:13:20]Write 298 bytes [20:13:20]NVStorageSaveData done [20:13:20]OFDSenderStorePacket done [20:13:20]KKMCreateOFDPacket done [20:13:20]NVStorageSaveData kkm_last_timestamp [20:13:20]File name is /storage/kkm_last_timestamp [20:13:20]Write 4 bytes [20:13:20]NVStorageSaveData done [20:13:20]ExternCall_PrintAddStr [20:13:20]wPrintStart [20:13:20]Write to MH i2c: 01 00 00 29 08 31 [20:13:20]Write i2c OK [20:13:20]MH_I2C_Read... [20:13:20]Read from MH i2c: 01 [20:13:20]MH_I2C_Read... [20:13:20]Read from MH i2c: 01 07 00 [20:13:20]MH_I2C_Read... [20:13:20]Read from MH i2c: 01 07 00 29 08 00 00 00 00 00 FF 0F 46 [20:13:20]RasterBufferAndPrint [20:13:20]line Счет N : (1)459559 [20:13:20]line ИНН: 02508201610067 [20:13:20]line Контрольно-Кассовый Чек [20:13:20]line ПРОДАЖА [20:13:20]line ТРК (МРК, ГНК) : 11 [20:13:20]line Товар: 2710194210 [20:13:20]line ДТ-К-5 [20:13:20]line 3.480 * 71.90 [20:13:20]line = 250.21 [20:13:20]line НДС 12% НСП 1% [20:13:20]line > о реализуемом товаре [20:13:20]line ОКРУГЛЕНИЕ: -0.21 [20:13:20]line ИТОГО: 250.00 [20:13:20]line Внесено: 250.00 [20:13:20]line СДАЧА: 0.00 [20:13:20]line НСП 1% : 2.21 [20:13:20]line НДС 12% : 26.57 [20:13:20]line Наличными: 250.00 [20:13:20]line Безнал.: 0.00 [20:13:20]line Место: АЗС № 72 "Партнер Нефть" [20:13:20]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:13:20]line СНО: Общий режим [20:13:20]line Чек 316 15.07.2024 20:13 [20:13:20]line Смена: 448 ФФД: 1.0 [20:13:20]line ЗНМ: 0300000160 [20:13:20]line РНМ: 0000000000090829 [20:13:20]line Версия ККМ: 001 [20:13:20]line ФМ: 0000000000874718 [20:13:20]line ФД: 165443 [20:13:20]line ФПД: 54127784623386 [20:13:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T201319&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165443&fm=54127784623386&tin=02508201610067®Number=0000000000090829&sum=25000 [20:13:21]OFD Sender: Processing packet 165443 [packets to send 106, broken 105] [20:13:21]ProducePacketName [20:13:21]name=ofd_packets/00165443 [20:13:21]OFD Sender: To server: pG, [20:13:21]CommunicateWithHost lk.salyk.kg:30040 [20:13:21]ConnectInit lk.salyk.kg [20:13:21]written 0, free lines is 4095 [20:13:21]Connected sock=10 [20:13: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 37 31 38 0C 01 00 00 3C 50 04 01 A1 58 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 0D 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 BD 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 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 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 3C 01 00 00 F4 03 04 00 DF 82 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 43 86 02 00 35 04 06 00 31 3A 9B 5F FD 1A A8 E3 C0 53 FD 95 98 8B [20:13:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 DE A0 47 00 F2 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 37 31 38 10 04 04 00 43 86 02 00 F4 03 04 00 69 29 95 66 B6 04 01 00 00 A5 EF 7C DF 10 DF 41 0F [20:13:21]CommunicateWithHost err = 0 [20:13:21]CheckOFDResponse [20:13:21]1017 (14) - 77093643461234 [20:13:21]1041 (16) - 0000000000874718 [20:13:21]1040 (4) - 165443 [20:13:21]1012 (4) - 15.07.2024 13:51 [20:13:21]1206 (1) - 0 [20:13:21]OFD Sender: Remove packet 165443 [20:13:21]ProducePacketName [20:13:21]name=ofd_packets/00165443 [20:13:21]NVStorageDeleteData [20:13:21]Write to MH i2c: 01 00 00 53 08 5B [20:13:21]Write i2c OK [20:13:21]MH_I2C_Read... [20:13:21]Read from MH i2c: 01 [20:13:21]MH_I2C_Read... [20:13:21]Read from MH i2c: 01 07 00 [20:13:21]MH_I2C_Read... [20:13:21]Read from MH i2c: 01 07 00 53 08 00 00 00 00 00 F3 0C 61 [20:13:21]RasterBufferAndPrint [20:13:21]line [20:13:21]line [20:13:21]line [20:13:21]line [20:13:21]line [20:13:21]written 0, free lines is 3322 [20:13:21]MH_Cut [20:13:21]Write to MH i2c: D1 01 00 5A 08 01 34 [20:13:21]Write i2c OK [20:13:21]MH_I2C_Read... [20:13:21]Read from MH i2c: D1 [20:13:21]MH_I2C_Read... [20:13:21]Read from MH i2c: D1 01 00 [20:13:21]MH_I2C_Read... [20:13:21]Read from MH i2c: D1 01 00 5A 08 00 33 [20:13:21]Write to MH i2c: 01 00 00 5B 08 63 [20:13:21]Write i2c OK [20:13:21]MH_I2C_Read... [20:13:21]OFD Sender: No OFD packet to send [20:13:22]*** Cut start [20:13:22]*** Partial cut [20:13:22]*** CUTSNS_PIN = 1 [20:13:22]*** CUTSNS_PIN = 0 [20:13:22]*** Brake cut motor [20:13:22]Read from MH i2c: 01 [20:13:22]MH_I2C_Read... [20:13:22]*** Stop cut motor [20:13:22]*** Cut end [20:13:22]Read from MH i2c: 01 07 00 [20:13:22]MH_I2C_Read... [20:13:22]Read from MH i2c: 01 07 00 5B 08 00 00 00 00 00 FF 0F 78 [20:13:22]process_action close_receipt done [20:13:22]requested_data is exist [20:13:22]produce_requested_data [20:13:22]requested_item fm.sn is exist - process it [20:13:22]wFMCommunicate request_size=4 [20:13:22]MH_SAM_APDU [20:13:22]CAPDU: 80 11 00 00 [20:13:22]Write to MH i2c: E2 08 00 5C 08 80 11 00 00 00 00 00 00 DE [20:13:22]Write i2c OK [20:13:22]MH_I2C_Read... [20:13:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:13:22]Read from MH i2c: E2 [20:13:22]MH_I2C_Read... [20:13:22]Read from MH i2c: E2 17 00 [20:13:22]MH_I2C_Read... [20:13:22]Read from MH i2c: E2 17 00 5C 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 34 [20:13:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:13:22]wFMCommunicate OK [20:13:22]requested_item fd.num is exist - process it [20:13:22]SAM_PROTO_GetFieldsCounters [20:13:22]wFMCommunicate request_size=4 [20:13:22]MH_SAM_APDU [20:13:22]CAPDU: 80 13 00 00 [20:13:22]Write to MH i2c: E2 08 00 5D 08 80 13 00 00 00 00 00 00 E1 [20:13:22]Write i2c OK [20:13:22]MH_I2C_Read... [20:13:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:13:23]Read from MH i2c: E2 [20:13:23]MH_I2C_Read... [20:13:23]Read from MH i2c: E2 62 00 [20:13:23]MH_I2C_Read... [20:13:23]Read from MH i2c: E2 62 00 5D 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 43 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 4B [20:13:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 43 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:13:23]wFMCommunicate OK [20:13:23]SAM_PROTO_GetFieldsCounters done [20:13:23]requested_item shift.num is exist - process it [20:13:23]requested_item shift.opened is exist - process it [20:13:23]req_shift_opened [20:13:23]FM_GetShiftState [20:13:23]SAM_PROTO_GetShiftState [20:13:23]wFMCommunicate request_size=4 [20:13:23]MH_SAM_APDU [20:13:23]CAPDU: 80 13 01 00 [20:13:23]Write to MH i2c: E2 08 00 5E 08 80 13 01 00 00 00 00 00 E3 [20:13:23]Write i2c OK [20:13:23]MH_I2C_Read... [20:13:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:13:23]Read from MH i2c: E2 [20:13:23]MH_I2C_Read... [20:13:23]Read from MH i2c: E2 0E 00 [20:13:23]MH_I2C_Read... [20:13:23]Read from MH i2c: E2 0E 00 5E 08 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 BC [20:13:23]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [20:13:23]wFMCommunicate OK [20:13:23]SAM_PROTO_GetShiftState done [20:13:23]FM_GetShiftState done [20:13:23]req_shift_opened done [20:13:23]requested_item shift.open_date is exist - process it [20:13:23]req_shift_open_date [20:13:23]req_shift_open_date done [20:13:23]produce_requested_data done [20:13:23]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165443,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [20:13:23]process_action_free close_receipt [20:13:23]json_value_free [20:13:23]json_value_free done [20:13:23]process_json_proto returns [20:13:23]Send response to host [20:13:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165443,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [20:13:23]free response buf [20:13:23]execute_script done [20:13:23]execute_script returns [20:13:23]free content buf [20:13:23]Sock 9.Close socket [20:13:23]Sock 9.Thread stoped [20:13:26]OFD Sender: No OFD packet to send [20:13:32]OFD Sender: No OFD packet to send [20:13:33]accept exits with 7 [20:13:33]New connection [20:13:33]New thread 3067190628 created [20:13:33]Thread 3067333988 joined [20:13:33]Waiting for new connection... [20:13:33] Sock 7.Parse request [20:13:33]Sock 7.Check first char [20:13:33]Sock 7.First char is OK [20:13:33]request: POST /json_proto HTTP/1.0 [20:13:33]Method: POST [20:13:33]URL: /json_proto [20:13:33]Method is POST - this is cgi request [20:13:33]url: /json_proto [20:13:33]query_string will be loaded in cgi processing [20:13:33]execute_cgi json_proto POST (null) [20:13:33]execute_cgi path=json_proto method=POST [20:13:33]POST find Content-Length [20:13:33]Host: 172.17.56.4:8080 [20:13:33]Content-Length: 679 [20:13:33]Content-Type: application/json [20:13:33] [20:13:33]POST finish read [20:13:33]Found Content-Length = 679 [20:13:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459560", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\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" ] } } [20:13:33]execute_script... [20:13: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)459560", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\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" ] } } [20:13:33]POST & json_proto [20:13:33]process_json_proto [20:13:33]json parsed OK: [20:13:33]protocol is kg_v1.0 [20:13:33]action value=close_receipt [20:13:33]process_action close_receipt [20:13:33]cmd_close_receipt [20:13:33]MH_GetDate [20:13:33]Write to MH i2c: F0 00 00 5F 08 56 [20:13:33]Write i2c OK [20:13:33]MH_I2C_Read... [20:13:33]Read from MH i2c: F0 [20:13:33]MH_I2C_Read... [20:13:33]Read from MH i2c: F0 09 00 [20:13:33]MH_I2C_Read... [20:13:33]Read from MH i2c: F0 09 00 5F 08 00 EE 82 95 66 C9 DC B2 64 85 [20:13:33]GetLastDocTimeStamp 1721074399 [20:13:33]current date 1721074414 [20:13:33]FM_GetShiftState [20:13:33]SAM_PROTO_GetShiftState [20:13:33]wFMCommunicate request_size=4 [20:13:33]MH_SAM_APDU [20:13:33]CAPDU: 80 13 01 00 [20:13:33]Write to MH i2c: E2 08 00 60 08 80 13 01 00 00 00 00 00 E5 [20:13:33]Write i2c OK [20:13:33]MH_I2C_Read... [20:13:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:13:33]Read from MH i2c: E2 [20:13:33]MH_I2C_Read... [20:13:33]Read from MH i2c: E2 0E 00 [20:13:33]MH_I2C_Read... [20:13:33]Read from MH i2c: E2 0E 00 60 08 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 BE [20:13:33]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [20:13:33]wFMCommunicate OK [20:13:33]SAM_PROTO_GetShiftState done [20:13:33]FM_GetShiftState done [20:13:33]opened in 1721003876 [20:13:33]opened+sec_in_day 1721090276 [20:13:33]quantity*price = 100012 [20:13:33]sum+1 = 100014 [20:13:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 317 15.07.2024 20:13 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165444 ФПД: 22452646938563 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T201334&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165444&fm=22452646938563&tin=02508201610067®Number=0000000000090829&sum=100000 [20:13:35]StoreToDocumentArchive [20:13:35]shift 448 fd 165444 [20:13:35]save to /storage/0448/doc_00165444 [20:13:35]save last doc name /storage/0448/doc_00165444 to /storage/kkm_last_doc_name [20:13:35]save OK [20:13:35]Clear old archive folders... [20:13:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:13:35]tlvbuf is 01B47DA0 [20:13:35]SAM_PROTO_ClearQueue [20:13:35]wFMCommunicate request_size=4 [20:13:35]MH_SAM_APDU [20:13:35]CAPDU: 80 09 00 00 [20:13:35]Write to MH i2c: E2 08 00 6D 08 80 09 00 00 00 00 00 00 E7 [20:13:35]Write i2c OK [20:13:35]MH_I2C_Read... [20:13:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:13:35]Read from MH i2c: E2 [20:13:35]MH_I2C_Read... [20:13:35]Read from MH i2c: E2 03 00 [20:13:35]MH_I2C_Read... [20:13:35]Read from MH i2c: E2 03 00 6D 08 00 90 00 E9 [20:13:35]RAPDU: 90 00 [20:13:35]wFMCommunicate OK [20:13:35]SAM_PROTO_ClearQueue done [20:13:35]KKMCreateOFDPacket [20:13:35]OFDProtocolAddRootSTLVToBuf [20:13:35]FM_MakeSignedData [20:13:35]FM_MakeSignedData [20:13:35]SAM_PROTO_SignData [20:13:35]wFMCommunicate request_size=4 [20:13:35]MH_SAM_APDU [20:13:35]CAPDU: 80 0D 01 02 [20:13:35]Write to MH i2c: E2 08 00 6E 08 80 0D 01 02 00 00 00 00 EF [20:13:35]Write i2c OK [20:13:35]MH_I2C_Read... [20:13:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:13:35]Read from MH i2c: E2 [20:13:35]MH_I2C_Read... [20:13:35]Read from MH i2c: E2 03 00 [20:13:35]MH_I2C_Read... [20:13:35]Read from MH i2c: E2 03 00 6E 08 00 90 00 EA [20:13:35]RAPDU: 90 00 [20:13:35]wFMCommunicate OK [20:13:35]wFMCommunicate request_size=255 [20:13:35]MH_SAM_APDU [20:13:35]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 3D 01 00 00 F4 03 04 00 EE 82 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 44 86 02 00 35 04 06 00 14 6B AA 0B [20:13:35]Write to MH i2c: E2 02 01 6F 08 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 3D 01 00 00 F4 03 04 00 EE 82 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 44 86 02 00 35 04 06 00 14 6B AA 0B 00 00 1A [20:13:35]Write i2c OK [20:13:35]MH_I2C_Read... [20:13:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:13:35]Read from MH i2c: E2 [20:13:35]MH_I2C_Read... [20:13:35]Read from MH i2c: E2 03 00 [20:13:35]MH_I2C_Read... [20:13:35]Read from MH i2c: E2 03 00 6F 08 00 90 00 EB [20:13:35]RAPDU: 90 00 [20:13:35]wFMCommunicate OK [20:13:35]wFMCommunicate request_size=7 [20:13:35]MH_SAM_APDU [20:13:35]CAPDU: 80 0D 02 02 02 87 C3 [20:13:35]Write to MH i2c: E2 0A 00 70 08 80 0D 02 02 02 00 87 C3 00 00 40 [20:13:35]Write i2c OK [20:13:35]MH_I2C_Read... [20:13:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:13:35]Read from MH i2c: E2 [20:13:35]MH_I2C_Read... [20:13:35]Read from MH i2c: E2 03 00 [20:13:35]MH_I2C_Read... [20:13:35]Read from MH i2c: E2 03 00 70 08 00 90 00 EC [20:13:35]RAPDU: 90 00 [20:13:35]wFMCommunicate OK [20:13:35]wFMCommunicate request_size=4 [20:13:35]MH_SAM_APDU [20:13:35]CAPDU: 80 0D 03 02 [20:13:35]Write to MH i2c: E2 08 00 71 08 80 0D 03 02 00 00 00 00 F4 [20:13:35]Write i2c OK [20:13:35]MH_I2C_Read... [20:13:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:13:35]Read from MH i2c: E2 [20:13:35]MH_I2C_Read... [20:13:35]Read from MH i2c: E2 0B 00 [20:13:35]MH_I2C_Read... [20:13:35]Read from MH i2c: E2 0B 00 71 08 00 7B 7A F0 67 F8 C1 C5 81 90 00 40 [20:13:35]RAPDU: 7B 7A F0 67 F8 C1 C5 81 90 00 [20:13:35]wFMCommunicate OK [20:13:35]SAM_PROTO_SignData done [20:13:35]FM_MakeSignedData done [20:13:35]CreateOFDProtocolMessage [20:13:35]wFMCommunicate request_size=4 [20:13:35]MH_SAM_APDU [20:13:35]CAPDU: 80 11 00 00 [20:13:35]Write to MH i2c: E2 08 00 72 08 80 11 00 00 00 00 00 00 F4 [20:13:35]Write i2c OK [20:13:35]MH_I2C_Read... [20:13:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:13:35]Read from MH i2c: E2 [20:13:35]MH_I2C_Read... [20:13:35]Read from MH i2c: E2 17 00 [20:13:35]MH_I2C_Read... [20:13:35]Read from MH i2c: E2 17 00 72 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4A [20:13:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:13:35]wFMCommunicate OK [20:13:35]CreateOFDProtocolMessage done [20:13:35]OFDSenderStorePacket 165444 [20:13:35]StoreOFDPacket docnum=165444 [20:13:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 13 10 04 01 34 37 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 3D 01 00 00 F4 03 04 00 EE 82 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 44 86 02 00 35 04 06 00 14 6B AA 0B 87 C3 7B 7A F0 67 F8 C1 C5 81 [20:13:35]CheckFolder [20:13:35]dirname=/storage/ofd_packets [20:13:35]CheckFolder done [20:13:35]ProducePacketName [20:13:35]name=ofd_packets/00165444 [20:13:35]NVStorageSaveData ofd_packets/00165444 [20:13:35]File name is /storage/ofd_packets/00165444 [20:13:35]Write 298 bytes [20:13:35]NVStorageSaveData done [20:13:35]OFDSenderStorePacket done [20:13:35]KKMCreateOFDPacket done [20:13:35]NVStorageSaveData kkm_last_timestamp [20:13:35]File name is /storage/kkm_last_timestamp [20:13:35]Write 4 bytes [20:13:35]NVStorageSaveData done [20:13:35]ExternCall_PrintAddStr [20:13:35]wPrintStart [20:13:35]Write to MH i2c: 01 00 00 73 08 7B [20:13:35]Write i2c OK [20:13:35]MH_I2C_Read... [20:13:35]Read from MH i2c: 01 [20:13:35]MH_I2C_Read... [20:13:35]Read from MH i2c: 01 07 00 [20:13:35]MH_I2C_Read... [20:13:35]Read from MH i2c: 01 07 00 73 08 00 00 00 00 00 FF 0F 90 [20:13:35]RasterBufferAndPrint [20:13:35]line Счет N : (1)459560 [20:13:35]line ИНН: 02508201610067 [20:13:35]line Контрольно-Кассовый Чек [20:13:35]line ПРОДАЖА [20:13:35]line ТРК (МРК, ГНК) : 21 [20:13:35]line Товар: 2710194210 [20:13:35]line ДТ-К-5 [20:13:35]line 13.910 * 71.90 [20:13:35]line = 1000.13 [20:13:35]line НДС 12% НСП 1% [20:13:35]line > о реализуемом товаре [20:13:35]line ОКРУГЛЕНИЕ: -0.13 [20:13:35]line ИТОГО: 1000.00 [20:13:35]line Внесено: 1000.00 [20:13:35]line СДАЧА: 0.00 [20:13:35]line НСП 1% : 8.85 [20:13:35]line НДС 12% : 106.21 [20:13:35]line Наличными: 1000.00 [20:13:35]line Безнал.: 0.00 [20:13:35]line Место: АЗС № 72 "Партнер Нефть" [20:13:35]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:13:35]line СНО: Общий режим [20:13:35]line Чек 317 15.07.2024 20:13 [20:13:35]line Смена: 448 ФФД: 1.0 [20:13:35]line ЗНМ: 0300000160 [20:13:35]line РНМ: 0000000000090829 [20:13:35]line Версия ККМ: 001 [20:13:35]line ФМ: 0000000000874718 [20:13:35]line ФД: 165444 [20:13:35]line ФПД: 22452646938563 [20:13:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T201334&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165444&fm=22452646938563&tin=02508201610067®Number=0000000000090829&sum=100000 [20:13:35]OFD Sender: Processing packet 165444 [packets to send 106, broken 105] [20:13:35]ProducePacketName [20:13:35]name=ofd_packets/00165444 [20:13:35]OFD Sender: To server: pG, [20:13:35]CommunicateWithHost lk.salyk.kg:30040 [20:13:35]ConnectInit lk.salyk.kg [20:13:35]written 0, free lines is 4095 [20:13:35]Connected sock=10 [20:13: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 37 31 38 0C 01 00 00 13 10 04 01 34 37 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 3D 01 00 00 F4 03 04 00 EE 82 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 44 86 02 00 35 04 06 00 14 6B AA 0B 87 C3 7B 7A F0 67 F8 C1 C5 81 [20:13:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 06 87 47 00 D5 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 44 86 02 00 F4 03 04 00 77 29 95 66 B6 04 01 00 00 CD 58 CE 41 5E 72 28 3E [20:13:36]CommunicateWithHost err = 0 [20:13:36]CheckOFDResponse [20:13:36]1017 (14) - 77093643461234 [20:13:36]1041 (16) - 0000000000874718 [20:13:36]1040 (4) - 165444 [20:13:36]1012 (4) - 15.07.2024 13:51 [20:13:36]1206 (1) - 0 [20:13:36]OFD Sender: Remove packet 165444 [20:13:36]ProducePacketName [20:13:36]name=ofd_packets/00165444 [20:13:36]NVStorageDeleteData [20:13:36]Write to MH i2c: 01 00 00 9D 08 A5 [20:13:36]Write i2c OK [20:13:36]MH_I2C_Read... [20:13:36]Read from MH i2c: 01 [20:13:36]MH_I2C_Read... [20:13:36]Read from MH i2c: 01 07 00 [20:13:36]MH_I2C_Read... [20:13:36]Read from MH i2c: 01 07 00 9D 08 00 00 00 00 00 E8 0C A0 [20:13:36]RasterBufferAndPrint [20:13:36]line [20:13:36]line [20:13:36]line [20:13:36]line [20:13:36]line [20:13:36]written 0, free lines is 3311 [20:13:36]MH_Cut [20:13:36]Write to MH i2c: D1 01 00 A4 08 01 7E [20:13:36]Write i2c OK [20:13:36]MH_I2C_Read... [20:13:36]Read from MH i2c: D1 [20:13:36]MH_I2C_Read... [20:13:36]Read from MH i2c: D1 01 00 [20:13:36]MH_I2C_Read... [20:13:36]Read from MH i2c: D1 01 00 A4 08 00 7D [20:13:36]Write to MH i2c: 01 00 00 A5 08 AD [20:13:36]Write i2c OK [20:13:36]MH_I2C_Read... [20:13:36]OFD Sender: No OFD packet to send [20:13:36]*** Cut start [20:13:36]*** Partial cut [20:13:36]*** CUTSNS_PIN = 1 [20:13:37]*** CUTSNS_PIN = 0 [20:13:37]*** Brake cut motor [20:13:37]Read from MH i2c: 01 [20:13:37]MH_I2C_Read... [20:13:37]*** Stop cut motor [20:13:37]*** Cut end [20:13:37]Read from MH i2c: 01 07 00 [20:13:37]MH_I2C_Read... [20:13:37]Read from MH i2c: 01 07 00 A5 08 00 00 00 00 00 FF 0F C2 [20:13:37]process_action close_receipt done [20:13:37]requested_data is exist [20:13:37]produce_requested_data [20:13:37]requested_item fm.sn is exist - process it [20:13:37]wFMCommunicate request_size=4 [20:13:37]MH_SAM_APDU [20:13:37]CAPDU: 80 11 00 00 [20:13:37]Write to MH i2c: E2 08 00 A6 08 80 11 00 00 00 00 00 00 28 [20:13:37]Write i2c OK [20:13:37]MH_I2C_Read... [20:13:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:13:37]Read from MH i2c: E2 [20:13:37]MH_I2C_Read... [20:13:37]Read from MH i2c: E2 17 00 [20:13:37]MH_I2C_Read... [20:13:37]Read from MH i2c: E2 17 00 A6 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7E [20:13:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:13:37]wFMCommunicate OK [20:13:37]requested_item fd.num is exist - process it [20:13:37]SAM_PROTO_GetFieldsCounters [20:13:37]wFMCommunicate request_size=4 [20:13:37]MH_SAM_APDU [20:13:37]CAPDU: 80 13 00 00 [20:13:37]Write to MH i2c: E2 08 00 A7 08 80 13 00 00 00 00 00 00 2B [20:13:37]Write i2c OK [20:13:37]MH_I2C_Read... [20:13:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:13:37]Read from MH i2c: E2 [20:13:37]MH_I2C_Read... [20:13:37]Read from MH i2c: E2 62 00 [20:13:37]MH_I2C_Read... [20:13:37]Read from MH i2c: E2 62 00 A7 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 44 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 3D 01 00 00 5E 04 04 00 3D 01 00 00 57 04 04 00 3E 01 00 00 19 04 04 00 00 00 00 00 90 00 99 [20:13:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 44 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 3D 01 00 00 5E 04 04 00 3D 01 00 00 57 04 04 00 3E 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:13:37]wFMCommunicate OK [20:13:37]SAM_PROTO_GetFieldsCounters done [20:13:37]requested_item shift.num is exist - process it [20:13:37]requested_item shift.opened is exist - process it [20:13:37]req_shift_opened [20:13:37]FM_GetShiftState [20:13:37]SAM_PROTO_GetShiftState [20:13:37]wFMCommunicate request_size=4 [20:13:37]MH_SAM_APDU [20:13:37]CAPDU: 80 13 01 00 [20:13:37]Write to MH i2c: E2 08 00 A8 08 80 13 01 00 00 00 00 00 2D [20:13:37]Write i2c OK [20:13:37]MH_I2C_Read... [20:13:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:13:37]Read from MH i2c: E2 [20:13:37]MH_I2C_Read... [20:13:37]Read from MH i2c: E2 0E 00 [20:13:37]MH_I2C_Read... [20:13:37]Read from MH i2c: E2 0E 00 A8 08 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 06 [20:13:37]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [20:13:37]wFMCommunicate OK [20:13:37]SAM_PROTO_GetShiftState done [20:13:37]FM_GetShiftState done [20:13:37]req_shift_opened done [20:13:37]requested_item shift.open_date is exist - process it [20:13:37]req_shift_open_date [20:13:37]req_shift_open_date done [20:13:37]produce_requested_data done [20:13:37]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165444,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [20:13:37]process_action_free close_receipt [20:13:37]json_value_free [20:13:37]json_value_free done [20:13:37]process_json_proto returns [20:13:37]Send response to host [20:13:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165444,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [20:13:37]free response buf [20:13:37]execute_script done [20:13:37]execute_script returns [20:13:37]free content buf [20:13:37]Sock 7.Close socket [20:13:37]Sock 7.Thread stoped [20:13:41]OFD Sender: No OFD packet to send [20:13:46]OFD Sender: No OFD packet to send [20:13:51]OFD Sender: No OFD packet to send [20:13:56]OFD Sender: No OFD packet to send [20:14:01]OFD Sender: No OFD packet to send [20:14:06]OFD Sender: No OFD packet to send [20:14:11]OFD Sender: No OFD packet to send [20:14:16]OFD Sender: No OFD packet to send [20:14:21]OFD Sender: No OFD packet to send [20:14:26]OFD Sender: No OFD packet to send [20:14:31]OFD Sender: No OFD packet to send [20:14:36]OFD Sender: No OFD packet to send [20:14:41]OFD Sender: No OFD packet to send [20:14:46]OFD Sender: No OFD packet to send [20:14:51]OFD Sender: No OFD packet to send [20:14:56]OFD Sender: No OFD packet to send [20:15:01]OFD Sender: No OFD packet to send [20:15:06]OFD Sender: No OFD packet to send [20:15:11]OFD Sender: No OFD packet to send [20:15:16]OFD Sender: No OFD packet to send [20:15:21]OFD Sender: No OFD packet to send [20:15:26]OFD Sender: No OFD packet to send [20:15:31]OFD Sender: No OFD packet to send [20:15:36]OFD Sender: No OFD packet to send [20:15:41]OFD Sender: No OFD packet to send [20:15:46]OFD Sender: No OFD packet to send [20:15:51]accept exits with 9 [20:15:51]New connection [20:15:51]New thread 3067333988 created [20:15:51]Thread 3067190628 joined [20:15:51]Waiting for new connection... [20:15:51] Sock 9.Parse request [20:15:51]Sock 9.Check first char [20:15:51]Sock 9.First char is OK [20:15:51]request: POST /json_proto HTTP/1.0 [20:15:51]Method: POST [20:15:51]URL: /json_proto [20:15:51]Method is POST - this is cgi request [20:15:51]url: /json_proto [20:15:51]query_string will be loaded in cgi processing [20:15:51]execute_cgi json_proto POST (null) [20:15:51]execute_cgi path=json_proto method=POST [20:15:51]POST find Content-Length [20:15:51]Host: 172.17.56.4:8080 [20:15:51]Content-Length: 682 [20:15:51]Content-Type: application/json [20:15:51] [20:15:51]POST finish read [20:15:51]Found Content-Length = 682 [20:15:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459561", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:15:51]execute_script... [20:15: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)459561", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:15:51]POST & json_proto [20:15:51]process_json_proto [20:15:51]json parsed OK: [20:15:51]protocol is kg_v1.0 [20:15:51]action value=close_receipt [20:15:51]process_action close_receipt [20:15:51]cmd_close_receipt [20:15:51]MH_GetDate [20:15:51]Write to MH i2c: F0 00 00 A9 08 A0 [20:15:51]Write i2c OK [20:15:51]MH_I2C_Read... [20:15:51]Read from MH i2c: F0 [20:15:51]MH_I2C_Read... [20:15:51]Read from MH i2c: F0 09 00 [20:15:51]MH_I2C_Read... [20:15:51]Read from MH i2c: F0 09 00 A9 08 00 78 83 95 66 C9 DC B2 64 5A [20:15:51]GetLastDocTimeStamp 1721074414 [20:15:51]current date 1721074552 [20:15:51]FM_GetShiftState [20:15:51]SAM_PROTO_GetShiftState [20:15:51]wFMCommunicate request_size=4 [20:15:51]MH_SAM_APDU [20:15:51]CAPDU: 80 13 01 00 [20:15:51]Write to MH i2c: E2 08 00 AA 08 80 13 01 00 00 00 00 00 2F [20:15:51]Write i2c OK [20:15:51]MH_I2C_Read... [20:15:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:51]Read from MH i2c: E2 [20:15:51]MH_I2C_Read... [20:15:51]Read from MH i2c: E2 0E 00 [20:15:51]MH_I2C_Read... [20:15:51]Read from MH i2c: E2 0E 00 AA 08 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 08 [20:15:51]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [20:15:51]wFMCommunicate OK [20:15:51]SAM_PROTO_GetShiftState done [20:15:51]FM_GetShiftState done [20:15:51]opened in 1721003876 [20:15:51]opened+sec_in_day 1721090276 [20:15:51]quantity*price = 100016 [20:15:51]sum+1 = 100017 [20:15:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 318 15.07.2024 20:15 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165445 ФПД: 43846489597758 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T201552&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165445&fm=43846489597758&tin=02508201610067®Number=0000000000090829&sum=100000 [20:15:52]StoreToDocumentArchive [20:15:52]shift 448 fd 165445 [20:15:52]save to /storage/0448/doc_00165445 [20:15:52]save last doc name /storage/0448/doc_00165445 to /storage/kkm_last_doc_name [20:15:52]save OK [20:15:52]Clear old archive folders... [20:15:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:15:52]tlvbuf is 01B46D70 [20:15:52]SAM_PROTO_ClearQueue [20:15:52]wFMCommunicate request_size=4 [20:15:52]MH_SAM_APDU [20:15:52]CAPDU: 80 09 00 00 [20:15:52]Write to MH i2c: E2 08 00 B7 08 80 09 00 00 00 00 00 00 31 [20:15:52]Write i2c OK [20:15:52]MH_I2C_Read... [20:15:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:15:52]Read from MH i2c: E2 [20:15:52]MH_I2C_Read... [20:15:52]Read from MH i2c: E2 03 00 [20:15:52]MH_I2C_Read... [20:15:52]Read from MH i2c: E2 03 00 B7 08 00 90 00 33 [20:15:52]RAPDU: 90 00 [20:15:52]wFMCommunicate OK [20:15:52]SAM_PROTO_ClearQueue done [20:15:52]KKMCreateOFDPacket [20:15:52]OFDProtocolAddRootSTLVToBuf [20:15:52]FM_MakeSignedData [20:15:52]FM_MakeSignedData [20:15:52]SAM_PROTO_SignData [20:15:52]wFMCommunicate request_size=4 [20:15:52]MH_SAM_APDU [20:15:52]CAPDU: 80 0D 01 02 [20:15:52]Write to MH i2c: E2 08 00 B8 08 80 0D 01 02 00 00 00 00 39 [20:15:52]Write i2c OK [20:15:52]MH_I2C_Read... [20:15:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:15:52]Read from MH i2c: E2 [20:15:52]MH_I2C_Read... [20:15:52]Read from MH i2c: E2 03 00 [20:15:52]MH_I2C_Read... [20:15:52]Read from MH i2c: E2 03 00 B8 08 00 90 00 34 [20:15:52]RAPDU: 90 00 [20:15:52]wFMCommunicate OK [20:15:52]wFMCommunicate request_size=255 [20:15:52]MH_SAM_APDU [20:15:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 78 83 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 45 86 02 00 35 04 06 00 27 [20:15:52]Write to MH i2c: E2 02 01 B9 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 78 83 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 45 86 02 00 35 04 06 00 27 00 00 3E [20:15:52]Write i2c OK [20:15:52]MH_I2C_Read... [20:15:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:52]Read from MH i2c: E2 [20:15:52]MH_I2C_Read... [20:15:52]Read from MH i2c: E2 03 00 [20:15:52]MH_I2C_Read... [20:15:52]Read from MH i2c: E2 03 00 B9 08 00 90 00 35 [20:15:52]RAPDU: 90 00 [20:15:52]wFMCommunicate OK [20:15:52]wFMCommunicate request_size=10 [20:15:52]MH_SAM_APDU [20:15:52]CAPDU: 80 0D 02 02 05 E0 CE 6F E7 3E [20:15:52]Write to MH i2c: E2 0D 00 BA 08 80 0D 02 02 05 00 E0 CE 6F E7 3E 00 00 88 [20:15:52]Write i2c OK [20:15:52]MH_I2C_Read... [20:15:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:52]Read from MH i2c: E2 [20:15:52]MH_I2C_Read... [20:15:52]Read from MH i2c: E2 03 00 [20:15:52]MH_I2C_Read... [20:15:52]Read from MH i2c: E2 03 00 BA 08 00 90 00 36 [20:15:52]RAPDU: 90 00 [20:15:52]wFMCommunicate OK [20:15:52]wFMCommunicate request_size=4 [20:15:52]MH_SAM_APDU [20:15:52]CAPDU: 80 0D 03 02 [20:15:52]Write to MH i2c: E2 08 00 BB 08 80 0D 03 02 00 00 00 00 3E [20:15:52]Write i2c OK [20:15:52]MH_I2C_Read... [20:15:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:15:53]Read from MH i2c: E2 [20:15:53]MH_I2C_Read... [20:15:53]Read from MH i2c: E2 0B 00 [20:15:53]MH_I2C_Read... [20:15:53]Read from MH i2c: E2 0B 00 BB 08 00 43 07 D0 74 F1 21 62 75 90 00 B6 [20:15:53]RAPDU: 43 07 D0 74 F1 21 62 75 90 00 [20:15:53]wFMCommunicate OK [20:15:53]SAM_PROTO_SignData done [20:15:53]FM_MakeSignedData done [20:15:53]CreateOFDProtocolMessage [20:15:53]wFMCommunicate request_size=4 [20:15:53]MH_SAM_APDU [20:15:53]CAPDU: 80 11 00 00 [20:15:53]Write to MH i2c: E2 08 00 BC 08 80 11 00 00 00 00 00 00 3E [20:15:53]Write i2c OK [20:15:53]MH_I2C_Read... [20:15:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:53]Read from MH i2c: E2 [20:15:53]MH_I2C_Read... [20:15:53]Read from MH i2c: E2 17 00 [20:15:53]MH_I2C_Read... [20:15:53]Read from MH i2c: E2 17 00 BC 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 94 [20:15:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:15:53]wFMCommunicate OK [20:15:53]CreateOFDProtocolMessage done [20:15:53]OFDSenderStorePacket 165445 [20:15:53]StoreOFDPacket docnum=165445 [20:15:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 48 E7 07 01 8F 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 78 83 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 45 86 02 00 35 04 06 00 27 E0 CE 6F E7 3E 43 07 D0 74 F1 21 62 75 [20:15:53]CheckFolder [20:15:53]dirname=/storage/ofd_packets [20:15:53]CheckFolder done [20:15:53]ProducePacketName [20:15:53]name=ofd_packets/00165445 [20:15:53]NVStorageSaveData ofd_packets/00165445 [20:15:53]File name is /storage/ofd_packets/00165445 [20:15:53]Write 301 bytes [20:15:53]NVStorageSaveData done [20:15:53]OFDSenderStorePacket done [20:15:53]KKMCreateOFDPacket done [20:15:53]NVStorageSaveData kkm_last_timestamp [20:15:53]File name is /storage/kkm_last_timestamp [20:15:53]Write 4 bytes [20:15:53]NVStorageSaveData done [20:15:53]OFD Sender: Processing packet 165445 [packets to send 106, broken 105] [20:15:53]ProducePacketName [20:15:53]name=ofd_packets/00165445 [20:15:53]OFD Sender: To server: pG, [20:15:53]CommunicateWithHost lk.salyk.kg:30040 [20:15:53]ConnectInit lk.salyk.kg [20:15:53]ExternCall_PrintAddStr [20:15:53]wPrintStart [20:15:53]Write to MH i2c: 01 00 00 BD 08 C5 [20:15:53]Write i2c OK [20:15:53]MH_I2C_Read... [20:15:53]Read from MH i2c: 01 [20:15:53]MH_I2C_Read... [20:15:53]Read from MH i2c: 01 07 00 [20:15:53]MH_I2C_Read... [20:15:53]Read from MH i2c: 01 07 00 BD 08 00 00 00 00 00 FF 0F DA [20:15:53]RasterBufferAndPrint [20:15:53]line Счет N : (1)459561 [20:15:53]line ИНН: 02508201610067 [20:15:53]line Контрольно-Кассовый Чек [20:15:53]line ПРОДАЖА [20:15:53]line ТРК (МРК, ГНК) : 12 [20:15:53]line Товар: 2710124130 [20:15:53]line Аи-92-К-5 [20:15:53]line 15.200 * 65.80 [20:15:53]line = 1000.16 [20:15:53]line НДС 12% НСП 1% [20:15:53]line > о реализуемом товаре [20:15:53]line ОКРУГЛЕНИЕ: -0.16 [20:15:53]line ИТОГО: 1000.00 [20:15:53]line Внесено: 1000.00 [20:15:53]line СДАЧА: 0.00 [20:15:53]line НСП 1% : 8.85 [20:15:53]line НДС 12% : 106.21 [20:15:53]line Наличными: 1000.00 [20:15:53]line Безнал.: 0.00 [20:15:53]line Место: АЗС № 72 "Партнер Нефть" [20:15:53]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:15:53]line СНО: Общий режим [20:15:53]line Чек 318 15.07.2024 20:15 [20:15:53]line Смена: 448 ФФД: 1.0 [20:15:53]line ЗНМ: 0300000160 [20:15:53]line РНМ: 0000000000090829 [20:15:53]line Версия ККМ: 001 [20:15:53]line ФМ: 0000000000874718 [20:15:53]line ФД: 165445 [20:15:53]line ФПД: 43846489597758 [20:15:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T201552&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165445&fm=43846489597758&tin=02508201610067®Number=0000000000090829&sum=100000 [20:15:53]Connected sock=11 [20:15: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 37 31 38 0F 01 00 00 48 E7 07 01 8F 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 78 83 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 45 86 02 00 35 04 06 00 27 E0 CE 6F E7 3E 43 07 D0 74 F1 21 62 75 [20:15:53]written 0, free lines is 4095 [20:15:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 82 3C 47 00 9F 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 45 86 02 00 F4 03 04 00 01 2A 95 66 B6 04 01 00 00 48 10 3C 84 CD 08 6B B6 [20:15:53]CommunicateWithHost err = 0 [20:15:53]CheckOFDResponse [20:15:53]1017 (14) - 77093643461234 [20:15:53]1041 (16) - 0000000000874718 [20:15:53]1040 (4) - 165445 [20:15:53]1012 (4) - 15.07.2024 13:54 [20:15:53]1206 (1) - 0 [20:15:53]OFD Sender: Remove packet 165445 [20:15:53]ProducePacketName [20:15:53]name=ofd_packets/00165445 [20:15:53]NVStorageDeleteData [20:15:53]Write to MH i2c: 01 00 00 E7 08 EF [20:15:53]Write i2c OK [20:15:53]MH_I2C_Read... [20:15:53]Read from MH i2c: 01 [20:15:53]MH_I2C_Read... [20:15:53]Read from MH i2c: 01 07 00 [20:15:53]MH_I2C_Read... [20:15:53]Read from MH i2c: 01 07 00 E7 08 00 00 00 00 00 F3 0C F5 [20:15:53]RasterBufferAndPrint [20:15:53]line [20:15:53]line [20:15:53]line [20:15:53]line [20:15:53]line [20:15:53]written 0, free lines is 3321 [20:15:53]MH_Cut [20:15:53]Write to MH i2c: D1 01 00 EE 08 01 C8 [20:15:53]Write i2c OK [20:15:53]MH_I2C_Read... [20:15:53]Read from MH i2c: D1 [20:15:53]MH_I2C_Read... [20:15:53]Read from MH i2c: D1 01 00 [20:15:53]MH_I2C_Read... [20:15:53]Read from MH i2c: D1 01 00 EE 08 00 C7 [20:15:53]Write to MH i2c: 01 00 00 EF 08 F7 [20:15:53]Write i2c OK [20:15:53]MH_I2C_Read... [20:15:54]OFD Sender: No OFD packet to send [20:15:54]*** Cut start [20:15:54]*** Partial cut [20:15:54]*** CUTSNS_PIN = 1 [20:15:54]*** CUTSNS_PIN = 0 [20:15:54]*** Brake cut motor [20:15:55]Read from MH i2c: 01 [20:15:55]MH_I2C_Read... [20:15:55]*** Stop cut motor [20:15:55]*** Cut end [20:15:55]Read from MH i2c: 01 07 00 [20:15:55]MH_I2C_Read... [20:15:55]Read from MH i2c: 01 07 00 EF 08 00 00 00 00 00 FF 0F 0C [20:15:55]process_action close_receipt done [20:15:55]requested_data is exist [20:15:55]produce_requested_data [20:15:55]requested_item fm.sn is exist - process it [20:15:55]wFMCommunicate request_size=4 [20:15:55]MH_SAM_APDU [20:15:55]CAPDU: 80 11 00 00 [20:15:55]Write to MH i2c: E2 08 00 F0 08 80 11 00 00 00 00 00 00 72 [20:15:55]Write i2c OK [20:15:55]MH_I2C_Read... [20:15:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:55]Read from MH i2c: E2 [20:15:55]MH_I2C_Read... [20:15:55]Read from MH i2c: E2 17 00 [20:15:55]MH_I2C_Read... [20:15:55]Read from MH i2c: E2 17 00 F0 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C8 [20:15:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:15:55]wFMCommunicate OK [20:15:55]requested_item fd.num is exist - process it [20:15:55]SAM_PROTO_GetFieldsCounters [20:15:55]wFMCommunicate request_size=4 [20:15:55]MH_SAM_APDU [20:15:55]CAPDU: 80 13 00 00 [20:15:55]Write to MH i2c: E2 08 00 F1 08 80 13 00 00 00 00 00 00 75 [20:15:55]Write i2c OK [20:15:55]MH_I2C_Read... [20:15:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:15:55]Read from MH i2c: E2 [20:15:55]MH_I2C_Read... [20:15:55]Read from MH i2c: E2 62 00 [20:15:55]MH_I2C_Read... [20:15:55]Read from MH i2c: E2 62 00 F1 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 45 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 E7 [20:15: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 45 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:15:55]wFMCommunicate OK [20:15:55]SAM_PROTO_GetFieldsCounters done [20:15:55]requested_item shift.num is exist - process it [20:15:55]requested_item shift.opened is exist - process it [20:15:55]req_shift_opened [20:15:55]FM_GetShiftState [20:15:55]SAM_PROTO_GetShiftState [20:15:55]wFMCommunicate request_size=4 [20:15:55]MH_SAM_APDU [20:15:55]CAPDU: 80 13 01 00 [20:15:55]Write to MH i2c: E2 08 00 F2 08 80 13 01 00 00 00 00 00 77 [20:15:55]Write i2c OK [20:15:55]MH_I2C_Read... [20:15:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:55]Read from MH i2c: E2 [20:15:55]MH_I2C_Read... [20:15:55]Read from MH i2c: E2 0E 00 [20:15:55]MH_I2C_Read... [20:15:55]Read from MH i2c: E2 0E 00 F2 08 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 50 [20:15:55]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [20:15:55]wFMCommunicate OK [20:15:55]SAM_PROTO_GetShiftState done [20:15:55]FM_GetShiftState done [20:15:55]req_shift_opened done [20:15:55]requested_item shift.open_date is exist - process it [20:15:55]req_shift_open_date [20:15:55]req_shift_open_date done [20:15:55]produce_requested_data done [20:15:55]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165445,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [20:15:55]process_action_free close_receipt [20:15:55]json_value_free [20:15:55]json_value_free done [20:15:55]process_json_proto returns [20:15:55]Send response to host [20:15:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165445,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [20:15:55]free response buf [20:15:55]execute_script done [20:15:55]execute_script returns [20:15:55]free content buf [20:15:55]Sock 9.Close socket [20:15:55]Sock 9.Thread stoped [20:15:59]OFD Sender: No OFD packet to send [20:16:04]OFD Sender: No OFD packet to send [20:16:09]OFD Sender: No OFD packet to send [20:16:14]OFD Sender: No OFD packet to send [20:16:19]OFD Sender: No OFD packet to send [20:16:24]OFD Sender: No OFD packet to send [20:16:29]OFD Sender: No OFD packet to send [20:16:34]OFD Sender: No OFD packet to send [20:16:39]OFD Sender: No OFD packet to send [20:16:44]OFD Sender: No OFD packet to send [20:16:49]OFD Sender: No OFD packet to send [20:16:54]OFD Sender: No OFD packet to send [20:16:59]OFD Sender: No OFD packet to send [20:17:04]OFD Sender: No OFD packet to send [20:17:08]accept exits with 7 [20:17:08]New connection [20:17:08]New thread 3067190628 created [20:17:08]Thread 3067333988 joined [20:17:08]Waiting for new connection... [20:17:08] Sock 7.Parse request [20:17:08]Sock 7.Check first char [20:17:08]Sock 7.First char is OK [20:17:08]request: POST /json_proto HTTP/1.0 [20:17:08]Method: POST [20:17:08]URL: /json_proto [20:17:08]Method is POST - this is cgi request [20:17:08]url: /json_proto [20:17:08]query_string will be loaded in cgi processing [20:17:08]execute_cgi json_proto POST (null) [20:17:08]execute_cgi path=json_proto method=POST [20:17:08]POST find Content-Length [20:17:08]Host: 172.17.56.4:8080 [20:17:08]Content-Length: 682 [20:17:08]Content-Type: application/json [20:17:08] [20:17:08]POST finish read [20:17:08]Found Content-Length = 682 [20:17:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459562", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:17:08]execute_script... [20:17: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)459562", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:17:08]POST & json_proto [20:17:08]process_json_proto [20:17:08]json parsed OK: [20:17:08]protocol is kg_v1.0 [20:17:08]action value=close_receipt [20:17:08]process_action close_receipt [20:17:08]cmd_close_receipt [20:17:08]MH_GetDate [20:17:08]Write to MH i2c: F0 00 00 F3 08 EA [20:17:08]Write i2c OK [20:17:08]MH_I2C_Read... [20:17:08]Read from MH i2c: F0 [20:17:08]MH_I2C_Read... [20:17:08]Read from MH i2c: F0 09 00 [20:17:08]MH_I2C_Read... [20:17:08]Read from MH i2c: F0 09 00 F3 08 00 C5 83 95 66 C9 DC B2 64 F1 [20:17:08]GetLastDocTimeStamp 1721074552 [20:17:08]current date 1721074629 [20:17:08]FM_GetShiftState [20:17:08]SAM_PROTO_GetShiftState [20:17:08]wFMCommunicate request_size=4 [20:17:08]MH_SAM_APDU [20:17:08]CAPDU: 80 13 01 00 [20:17:08]Write to MH i2c: E2 08 00 F4 08 80 13 01 00 00 00 00 00 79 [20:17:08]Write i2c OK [20:17:08]MH_I2C_Read... [20:17:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:17:08]Read from MH i2c: E2 [20:17:08]MH_I2C_Read... [20:17:08]Read from MH i2c: E2 0E 00 [20:17:08]MH_I2C_Read... [20:17:08]Read from MH i2c: E2 0E 00 F4 08 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 52 [20:17:08]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [20:17:08]wFMCommunicate OK [20:17:08]SAM_PROTO_GetShiftState done [20:17:08]FM_GetShiftState done [20:17:08]opened in 1721003876 [20:17:08]opened+sec_in_day 1721090276 [20:17:08]quantity*price = 100016 [20:17:08]sum+1 = 100017 [20:17:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 319 15.07.2024 20:17 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165446 ФПД: 221264364564673 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T201709&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165446&fm=221264364564673&tin=02508201610067®Number=0000000000090829&sum=100000 [20:17:10]StoreToDocumentArchive [20:17:10]shift 448 fd 165446 [20:17:10]save to /storage/0448/doc_00165446 [20:17:10]save last doc name /storage/0448/doc_00165446 to /storage/kkm_last_doc_name [20:17:10]save OK [20:17:10]Clear old archive folders... [20:17:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:17:10]tlvbuf is B6FB27E0 [20:17:10]SAM_PROTO_ClearQueue [20:17:10]wFMCommunicate request_size=4 [20:17:10]MH_SAM_APDU [20:17:10]CAPDU: 80 09 00 00 [20:17:10]Write to MH i2c: E2 08 00 01 09 80 09 00 00 00 00 00 00 7C [20:17:10]Write i2c OK [20:17:10]MH_I2C_Read... [20:17:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:17:10]Read from MH i2c: E2 [20:17:10]MH_I2C_Read... [20:17:10]Read from MH i2c: E2 03 00 [20:17:10]MH_I2C_Read... [20:17:10]Read from MH i2c: E2 03 00 01 09 00 90 00 7E [20:17:10]RAPDU: 90 00 [20:17:10]wFMCommunicate OK [20:17:10]SAM_PROTO_ClearQueue done [20:17:10]KKMCreateOFDPacket [20:17:10]OFDProtocolAddRootSTLVToBuf [20:17:10]FM_MakeSignedData [20:17:10]FM_MakeSignedData [20:17:10]SAM_PROTO_SignData [20:17:10]wFMCommunicate request_size=4 [20:17:10]MH_SAM_APDU [20:17:10]CAPDU: 80 0D 01 02 [20:17:10]Write to MH i2c: E2 08 00 02 09 80 0D 01 02 00 00 00 00 84 [20:17:10]Write i2c OK [20:17:10]MH_I2C_Read... [20:17:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:17:10]Read from MH i2c: E2 [20:17:10]MH_I2C_Read... [20:17:10]Read from MH i2c: E2 03 00 [20:17:10]MH_I2C_Read... [20:17:10]Read from MH i2c: E2 03 00 02 09 00 90 00 7F [20:17:10]RAPDU: 90 00 [20:17:10]wFMCommunicate OK [20:17:10]wFMCommunicate request_size=255 [20:17:10]MH_SAM_APDU [20:17: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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 C5 83 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 46 86 02 00 35 04 06 00 C9 [20:17:10]Write to MH i2c: E2 02 01 03 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 C5 83 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 46 86 02 00 35 04 06 00 C9 00 00 7A [20:17:10]Write i2c OK [20:17:10]MH_I2C_Read... [20:17:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:17:10]Read from MH i2c: E2 [20:17:10]MH_I2C_Read... [20:17:10]Read from MH i2c: E2 03 00 [20:17:10]MH_I2C_Read... [20:17:10]Read from MH i2c: E2 03 00 03 09 00 90 00 80 [20:17:10]RAPDU: 90 00 [20:17:10]wFMCommunicate OK [20:17:10]wFMCommunicate request_size=10 [20:17:10]MH_SAM_APDU [20:17:10]CAPDU: 80 0D 02 02 05 3D 1F D9 F0 C1 [20:17:10]Write to MH i2c: E2 0D 00 04 09 80 0D 02 02 05 00 3D 1F D9 F0 C1 00 00 77 [20:17:10]Write i2c OK [20:17:10]MH_I2C_Read... [20:17:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:17:10]Read from MH i2c: E2 [20:17:10]MH_I2C_Read... [20:17:10]Read from MH i2c: E2 03 00 [20:17:10]MH_I2C_Read... [20:17:10]Read from MH i2c: E2 03 00 04 09 00 90 00 81 [20:17:10]RAPDU: 90 00 [20:17:10]wFMCommunicate OK [20:17:10]wFMCommunicate request_size=4 [20:17:10]MH_SAM_APDU [20:17:10]CAPDU: 80 0D 03 02 [20:17:10]Write to MH i2c: E2 08 00 05 09 80 0D 03 02 00 00 00 00 89 [20:17:10]Write i2c OK [20:17:10]MH_I2C_Read... [20:17:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:17:10]Read from MH i2c: E2 [20:17:10]MH_I2C_Read... [20:17:10]Read from MH i2c: E2 0B 00 [20:17:10]MH_I2C_Read... [20:17:10]Read from MH i2c: E2 0B 00 05 09 00 E3 EE DD F8 01 76 EF 90 90 00 26 [20:17:10]RAPDU: E3 EE DD F8 01 76 EF 90 90 00 [20:17:10]wFMCommunicate OK [20:17:10]SAM_PROTO_SignData done [20:17:10]FM_MakeSignedData done [20:17:10]CreateOFDProtocolMessage [20:17:10]wFMCommunicate request_size=4 [20:17:10]MH_SAM_APDU [20:17:10]CAPDU: 80 11 00 00 [20:17:10]Write to MH i2c: E2 08 00 06 09 80 11 00 00 00 00 00 00 89 [20:17:10]Write i2c OK [20:17:10]MH_I2C_Read... [20:17:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:17:10]Read from MH i2c: E2 [20:17:10]MH_I2C_Read... [20:17:10]Read from MH i2c: E2 17 00 [20:17:10]MH_I2C_Read... [20:17:10]Read from MH i2c: E2 17 00 06 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DF [20:17:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:17:10]wFMCommunicate OK [20:17:10]CreateOFDProtocolMessage done [20:17:10]OFDSenderStorePacket 165446 [20:17:10]StoreOFDPacket docnum=165446 [20:17:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 BA 5D 07 01 16 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 C5 83 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 46 86 02 00 35 04 06 00 C9 3D 1F D9 F0 C1 E3 EE DD F8 01 76 EF 90 [20:17:10]CheckFolder [20:17:10]dirname=/storage/ofd_packets [20:17:10]CheckFolder done [20:17:10]ProducePacketName [20:17:10]name=ofd_packets/00165446 [20:17:10]NVStorageSaveData ofd_packets/00165446 [20:17:10]File name is /storage/ofd_packets/00165446 [20:17:10]Write 301 bytes [20:17:10]NVStorageSaveData done [20:17:10]OFDSenderStorePacket done [20:17:10]KKMCreateOFDPacket done [20:17:10]NVStorageSaveData kkm_last_timestamp [20:17:10]File name is /storage/kkm_last_timestamp [20:17:10]Write 4 bytes [20:17:10]NVStorageSaveData done [20:17:10]ExternCall_PrintAddStr [20:17:10]wPrintStart [20:17:10]Write to MH i2c: 01 00 00 07 09 10 [20:17:10]Write i2c OK [20:17:10]MH_I2C_Read... [20:17:10]Read from MH i2c: 01 [20:17:10]MH_I2C_Read... [20:17:10]Read from MH i2c: 01 07 00 [20:17:10]MH_I2C_Read... [20:17:10]Read from MH i2c: 01 07 00 07 09 00 00 00 00 00 FF 0F 25 [20:17:10]RasterBufferAndPrint [20:17:10]line Счет N : (1)459562 [20:17:10]line ИНН: 02508201610067 [20:17:10]line Контрольно-Кассовый Чек [20:17:10]line ПРОДАЖА [20:17:10]line ТРК (МРК, ГНК) : 22 [20:17:10]line Товар: 2710124130 [20:17:10]line Аи-92-К-5 [20:17:10]line 15.200 * 65.80 [20:17:10]line = 1000.16 [20:17:10]line НДС 12% НСП 1% [20:17:10]line > о реализуемом товаре [20:17:10]line ОКРУГЛЕНИЕ: -0.16 [20:17:10]line ИТОГО: 1000.00 [20:17:10]line Внесено: 1000.00 [20:17:10]line СДАЧА: 0.00 [20:17:10]line НСП 1% : 8.85 [20:17:10]line НДС 12% : 106.21 [20:17:10]line Наличными: 1000.00 [20:17:10]line Безнал.: 0.00 [20:17:10]line Место: АЗС № 72 "Партнер Нефть" [20:17:10]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:17:10]line СНО: Общий режим [20:17:10]line Чек 319 15.07.2024 20:17 [20:17:10]line Смена: 448 ФФД: 1.0 [20:17:10]line ЗНМ: 0300000160 [20:17:10]line РНМ: 0000000000090829 [20:17:10]line Версия ККМ: 001 [20:17:10]line ФМ: 0000000000874718 [20:17:10]line ФД: 165446 [20:17:10]line ФПД: 221264364564673 [20:17:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T201709&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165446&fm=221264364564673&tin=02508201610067®Number=0000000000090829&sum=100000 [20:17:10]OFD Sender: Processing packet 165446 [packets to send 106, broken 105] [20:17:10]ProducePacketName [20:17:10]name=ofd_packets/00165446 [20:17:10]OFD Sender: To server: pG, [20:17:10]CommunicateWithHost lk.salyk.kg:30040 [20:17:10]ConnectInit lk.salyk.kg [20:17:10]written 0, free lines is 4095 [20:17:10]Connected sock=10 [20:17: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 37 31 38 0F 01 00 00 BA 5D 07 01 16 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 C5 83 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 46 86 02 00 35 04 06 00 C9 3D 1F D9 F0 C1 E3 EE DD F8 01 76 EF 90 [20:17:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 AD 3D 47 00 73 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 46 86 02 00 F4 03 04 00 4F 2A 95 66 B6 04 01 00 00 85 05 2F EA 73 E4 8A 51 [20:17:11]CommunicateWithHost err = 0 [20:17:11]CheckOFDResponse [20:17:11]1017 (14) - 77093643461234 [20:17:11]1041 (16) - 0000000000874718 [20:17:11]1040 (4) - 165446 [20:17:11]1012 (4) - 15.07.2024 13:55 [20:17:11]1206 (1) - 0 [20:17:11]OFD Sender: Remove packet 165446 [20:17:11]ProducePacketName [20:17:11]name=ofd_packets/00165446 [20:17:11]NVStorageDeleteData [20:17:11]Write to MH i2c: 01 00 00 31 09 3A [20:17:11]Write i2c OK [20:17:11]MH_I2C_Read... [20:17:11]Read from MH i2c: 01 [20:17:11]MH_I2C_Read... [20:17:11]Read from MH i2c: 01 07 00 [20:17:11]MH_I2C_Read... [20:17:11]Read from MH i2c: 01 07 00 31 09 00 00 00 00 00 01 0D 4F [20:17:11]RasterBufferAndPrint [20:17:11]line [20:17:11]line [20:17:11]line [20:17:11]line [20:17:11]line [20:17:11]written 0, free lines is 3335 [20:17:11]MH_Cut [20:17:11]Write to MH i2c: D1 01 00 38 09 01 13 [20:17:11]Write i2c OK [20:17:11]MH_I2C_Read... [20:17:11]Read from MH i2c: D1 [20:17:11]MH_I2C_Read... [20:17:11]Read from MH i2c: D1 01 00 [20:17:11]MH_I2C_Read... [20:17:11]Read from MH i2c: D1 01 00 38 09 00 12 [20:17:11]Write to MH i2c: 01 00 00 39 09 42 [20:17:11]Write i2c OK [20:17:11]MH_I2C_Read... [20:17:11]OFD Sender: No OFD packet to send [20:17:12]*** Cut start [20:17:12]*** Partial cut [20:17:12]*** CUTSNS_PIN = 1 [20:17:12]*** CUTSNS_PIN = 0 [20:17:12]*** Brake cut motor [20:17:12]Read from MH i2c: 01 [20:17:12]MH_I2C_Read... [20:17:12]*** Stop cut motor [20:17:12]*** Cut end [20:17:12]Read from MH i2c: 01 07 00 [20:17:12]MH_I2C_Read... [20:17:12]Read from MH i2c: 01 07 00 39 09 00 00 00 00 00 FF 0F 57 [20:17:12]process_action close_receipt done [20:17:12]requested_data is exist [20:17:12]produce_requested_data [20:17:12]requested_item fm.sn is exist - process it [20:17:12]wFMCommunicate request_size=4 [20:17:12]MH_SAM_APDU [20:17:12]CAPDU: 80 11 00 00 [20:17:12]Write to MH i2c: E2 08 00 3A 09 80 11 00 00 00 00 00 00 BD [20:17:12]Write i2c OK [20:17:12]MH_I2C_Read... [20:17:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:17:12]Read from MH i2c: E2 [20:17:12]MH_I2C_Read... [20:17:12]Read from MH i2c: E2 17 00 [20:17:12]MH_I2C_Read... [20:17:12]Read from MH i2c: E2 17 00 3A 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 13 [20:17:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:17:12]wFMCommunicate OK [20:17:12]requested_item fd.num is exist - process it [20:17:12]SAM_PROTO_GetFieldsCounters [20:17:12]wFMCommunicate request_size=4 [20:17:12]MH_SAM_APDU [20:17:12]CAPDU: 80 13 00 00 [20:17:12]Write to MH i2c: E2 08 00 3B 09 80 13 00 00 00 00 00 00 C0 [20:17:12]Write i2c OK [20:17:12]MH_I2C_Read... [20:17:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:17:12]Read from MH i2c: E2 [20:17:12]MH_I2C_Read... [20:17:12]Read from MH i2c: E2 62 00 [20:17:12]MH_I2C_Read... [20:17:12]Read from MH i2c: E2 62 00 3B 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 46 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 36 [20:17: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 46 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:17:12]wFMCommunicate OK [20:17:12]SAM_PROTO_GetFieldsCounters done [20:17:12]requested_item shift.num is exist - process it [20:17:12]requested_item shift.opened is exist - process it [20:17:12]req_shift_opened [20:17:12]FM_GetShiftState [20:17:12]SAM_PROTO_GetShiftState [20:17:12]wFMCommunicate request_size=4 [20:17:12]MH_SAM_APDU [20:17:12]CAPDU: 80 13 01 00 [20:17:12]Write to MH i2c: E2 08 00 3C 09 80 13 01 00 00 00 00 00 C2 [20:17:12]Write i2c OK [20:17:12]MH_I2C_Read... [20:17:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:17:12]Read from MH i2c: E2 [20:17:12]MH_I2C_Read... [20:17:12]Read from MH i2c: E2 0E 00 [20:17:12]MH_I2C_Read... [20:17:12]Read from MH i2c: E2 0E 00 3C 09 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 9B [20:17:12]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [20:17:12]wFMCommunicate OK [20:17:12]SAM_PROTO_GetShiftState done [20:17:12]FM_GetShiftState done [20:17:12]req_shift_opened done [20:17:12]requested_item shift.open_date is exist - process it [20:17:12]req_shift_open_date [20:17:12]req_shift_open_date done [20:17:12]produce_requested_data done [20:17:12]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165446,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [20:17:12]process_action_free close_receipt [20:17:12]json_value_free [20:17:12]json_value_free done [20:17:12]process_json_proto returns [20:17:12]Send response to host [20:17:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165446,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [20:17:12]free response buf [20:17:12]execute_script done [20:17:12]execute_script returns [20:17:12]free content buf [20:17:12]Sock 7.Close socket [20:17:12]Sock 7.Thread stoped [20:17:16]OFD Sender: No OFD packet to send [20:17:21]OFD Sender: No OFD packet to send [20:17:26]OFD Sender: No OFD packet to send [20:17:31]OFD Sender: No OFD packet to send [20:17:36]OFD Sender: No OFD packet to send [20:17:41]OFD Sender: No OFD packet to send [20:17:46]OFD Sender: No OFD packet to send [20:17:51]OFD Sender: No OFD packet to send [20:17:56]OFD Sender: No OFD packet to send [20:18:01]OFD Sender: No OFD packet to send [20:18:06]OFD Sender: No OFD packet to send [20:18:11]OFD Sender: No OFD packet to send [20:18:16]OFD Sender: No OFD packet to send [20:18:21]OFD Sender: No OFD packet to send [20:18:26]OFD Sender: No OFD packet to send [20:18:31]OFD Sender: No OFD packet to send [20:18:36]OFD Sender: No OFD packet to send [20:18:41]OFD Sender: No OFD packet to send [20:18:46]OFD Sender: No OFD packet to send [20:18:51]OFD Sender: No OFD packet to send [20:18:56]OFD Sender: No OFD packet to send [20:19:01]OFD Sender: No OFD packet to send [20:19:06]OFD Sender: No OFD packet to send [20:19:11]OFD Sender: No OFD packet to send [20:19:16]OFD Sender: No OFD packet to send [20:19:21]OFD Sender: No OFD packet to send [20:19:26]OFD Sender: No OFD packet to send [20:19:31]OFD Sender: No OFD packet to send [20:19:36]OFD Sender: No OFD packet to send [20:19:41]OFD Sender: No OFD packet to send [20:19:46]OFD Sender: No OFD packet to send [20:19:51]OFD Sender: No OFD packet to send [20:19:56]OFD Sender: No OFD packet to send [20:20:01]OFD Sender: No OFD packet to send [20:20:06]OFD Sender: No OFD packet to send [20:20:11]OFD Sender: No OFD packet to send [20:20:16]OFD Sender: No OFD packet to send [20:20:21]OFD Sender: No OFD packet to send [20:20:26]OFD Sender: No OFD packet to send [20:20:31]OFD Sender: No OFD packet to send [20:20:36]OFD Sender: No OFD packet to send [20:20:41]OFD Sender: No OFD packet to send [20:20:46]OFD Sender: No OFD packet to send [20:20:51]OFD Sender: No OFD packet to send [20:20:56]OFD Sender: No OFD packet to send [20:21:01]OFD Sender: No OFD packet to send [20:21:06]OFD Sender: No OFD packet to send [20:21:11]accept exits with 9 [20:21:11]New connection [20:21:11]New thread 3067333988 created [20:21:11]Thread 3067190628 joined [20:21:11]Waiting for new connection... [20:21:11] Sock 9.Parse request [20:21:11]Sock 9.Check first char [20:21:11]Sock 9.First char is OK [20:21:11]request: POST /json_proto HTTP/1.0 [20:21:11]Method: POST [20:21:11]URL: /json_proto [20:21:11]Method is POST - this is cgi request [20:21:11]url: /json_proto [20:21:11]query_string will be loaded in cgi processing [20:21:11]execute_cgi json_proto POST (null) [20:21:11]execute_cgi path=json_proto method=POST [20:21:11]POST find Content-Length [20:21:11]Host: 172.17.56.4:8080 [20:21:11]Content-Length: 679 [20:21:11]Content-Type: application/json [20:21:11] [20:21:11]POST finish read [20:21:11]Found Content-Length = 679 [20:21:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459563", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 35.000, "sum" : 2516.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2516.00, "total" : 2516.00, "payments": [ { "type": 0, "sum" : 2516.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:21:11]execute_script... [20:21:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459563", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 35.000, "sum" : 2516.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2516.00, "total" : 2516.00, "payments": [ { "type": 0, "sum" : 2516.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:21:11]POST & json_proto [20:21:11]process_json_proto [20:21:11]json parsed OK: [20:21:11]protocol is kg_v1.0 [20:21:11]action value=close_receipt [20:21:11]process_action close_receipt [20:21:11]cmd_close_receipt [20:21:11]MH_GetDate [20:21:11]Write to MH i2c: F0 00 00 3D 09 35 [20:21:11]Write i2c OK [20:21:11]MH_I2C_Read... [20:21:11]Read from MH i2c: F0 [20:21:11]MH_I2C_Read... [20:21:11]Read from MH i2c: F0 09 00 [20:21:11]MH_I2C_Read... [20:21:11]Read from MH i2c: F0 09 00 3D 09 00 B7 84 95 66 C9 DC B2 64 2F [20:21:11]GetLastDocTimeStamp 1721074629 [20:21:11]current date 1721074871 [20:21:11]FM_GetShiftState [20:21:11]SAM_PROTO_GetShiftState [20:21:11]wFMCommunicate request_size=4 [20:21:11]MH_SAM_APDU [20:21:11]CAPDU: 80 13 01 00 [20:21:11]Write to MH i2c: E2 08 00 3E 09 80 13 01 00 00 00 00 00 C4 [20:21:11]Write i2c OK [20:21:11]MH_I2C_Read... [20:21:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:21:11]Read from MH i2c: E2 [20:21:11]MH_I2C_Read... [20:21:11]Read from MH i2c: E2 0E 00 [20:21:11]MH_I2C_Read... [20:21:11]Read from MH i2c: E2 0E 00 3E 09 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 9D [20:21:11]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [20:21:11]wFMCommunicate OK [20:21:11]SAM_PROTO_GetShiftState done [20:21:11]FM_GetShiftState done [20:21:11]opened in 1721003876 [20:21:11]opened+sec_in_day 1721090276 [20:21:11]quantity*price = 251650 [20:21:11]sum+1 = 251651 [20:21:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 2516.00 Внесено: 2516.00 СДАЧА: 0.00 НСП 1% : 22.27 НДС 12% : 267.24 Наличными: 2516.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 320 15.07.2024 20:21 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165447 ФПД: 201417381818647 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T202112&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165447&fm=201417381818647&tin=02508201610067®Number=0000000000090829&sum=251600 [20:21:12]StoreToDocumentArchive [20:21:12]shift 448 fd 165447 [20:21:12]save to /storage/0448/doc_00165447 [20:21:12]save last doc name /storage/0448/doc_00165447 to /storage/kkm_last_doc_name [20:21:12]save OK [20:21:12]Clear old archive folders... [20:21:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:21:12]tlvbuf is B6E05700 [20:21:12]SAM_PROTO_ClearQueue [20:21:12]wFMCommunicate request_size=4 [20:21:12]MH_SAM_APDU [20:21:12]CAPDU: 80 09 00 00 [20:21:12]Write to MH i2c: E2 08 00 4B 09 80 09 00 00 00 00 00 00 C6 [20:21:12]Write i2c OK [20:21:12]MH_I2C_Read... [20:21:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:21:12]Read from MH i2c: E2 [20:21:12]MH_I2C_Read... [20:21:12]Read from MH i2c: E2 03 00 [20:21:12]MH_I2C_Read... [20:21:12]Read from MH i2c: E2 03 00 4B 09 00 90 00 C8 [20:21:12]RAPDU: 90 00 [20:21:12]wFMCommunicate OK [20:21:12]SAM_PROTO_ClearQueue done [20:21:12]KKMCreateOFDPacket [20:21:12]OFDProtocolAddRootSTLVToBuf [20:21:12]FM_MakeSignedData [20:21:12]FM_MakeSignedData [20:21:12]SAM_PROTO_SignData [20:21:12]wFMCommunicate request_size=4 [20:21:12]MH_SAM_APDU [20:21:12]CAPDU: 80 0D 01 02 [20:21:12]Write to MH i2c: E2 08 00 4C 09 80 0D 01 02 00 00 00 00 CE [20:21:12]Write i2c OK [20:21:12]MH_I2C_Read... [20:21:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:21:12]Read from MH i2c: E2 [20:21:12]MH_I2C_Read... [20:21:12]Read from MH i2c: E2 03 00 [20:21:12]MH_I2C_Read... [20:21:12]Read from MH i2c: E2 03 00 4C 09 00 90 00 C9 [20:21:12]RAPDU: 90 00 [20:21:12]wFMCommunicate OK [20:21:12]wFMCommunicate request_size=255 [20:21:12]MH_SAM_APDU [20:21:12]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B8 88 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 02 D7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 D6 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B3 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 68 00 00 00 00 07 04 06 00 D0 D6 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 B8 84 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 47 86 02 00 35 04 06 00 B7 30 23 7E [20:21:12]Write to MH i2c: E2 02 01 4D 09 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B8 88 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 02 D7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 D6 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B3 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 68 00 00 00 00 07 04 06 00 D0 D6 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 B8 84 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 47 86 02 00 35 04 06 00 B7 30 23 7E 00 00 E8 [20:21:12]Write i2c OK [20:21:12]MH_I2C_Read... [20:21:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:21:12]Read from MH i2c: E2 [20:21:12]MH_I2C_Read... [20:21:12]Read from MH i2c: E2 03 00 [20:21:12]MH_I2C_Read... [20:21:12]Read from MH i2c: E2 03 00 4D 09 00 90 00 CA [20:21:12]RAPDU: 90 00 [20:21:12]wFMCommunicate OK [20:21:12]wFMCommunicate request_size=7 [20:21:12]MH_SAM_APDU [20:21:12]CAPDU: 80 0D 02 02 02 B1 17 [20:21:12]Write to MH i2c: E2 0A 00 4E 09 80 0D 02 02 02 00 B1 17 00 00 9D [20:21:12]Write i2c OK [20:21:12]MH_I2C_Read... [20:21:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:21:12]Read from MH i2c: E2 [20:21:12]MH_I2C_Read... [20:21:12]Read from MH i2c: E2 03 00 [20:21:12]MH_I2C_Read... [20:21:12]Read from MH i2c: E2 03 00 4E 09 00 90 00 CB [20:21:12]RAPDU: 90 00 [20:21:12]wFMCommunicate OK [20:21:12]wFMCommunicate request_size=4 [20:21:12]MH_SAM_APDU [20:21:12]CAPDU: 80 0D 03 02 [20:21:12]Write to MH i2c: E2 08 00 4F 09 80 0D 03 02 00 00 00 00 D3 [20:21:12]Write i2c OK [20:21:12]MH_I2C_Read... [20:21:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:21:12]Read from MH i2c: E2 [20:21:12]MH_I2C_Read... [20:21:12]Read from MH i2c: E2 0B 00 [20:21:12]MH_I2C_Read... [20:21:12]Read from MH i2c: E2 0B 00 4F 09 00 E3 B4 F8 98 A5 CD 5A 86 90 00 4D [20:21:12]RAPDU: E3 B4 F8 98 A5 CD 5A 86 90 00 [20:21:12]wFMCommunicate OK [20:21:12]SAM_PROTO_SignData done [20:21:12]FM_MakeSignedData done [20:21:12]CreateOFDProtocolMessage [20:21:12]wFMCommunicate request_size=4 [20:21:12]MH_SAM_APDU [20:21:12]CAPDU: 80 11 00 00 [20:21:12]Write to MH i2c: E2 08 00 50 09 80 11 00 00 00 00 00 00 D3 [20:21:12]Write i2c OK [20:21:12]MH_I2C_Read... [20:21:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:21:12]Read from MH i2c: E2 [20:21:12]MH_I2C_Read... [20:21:12]Read from MH i2c: E2 17 00 [20:21:12]MH_I2C_Read... [20:21:12]Read from MH i2c: E2 17 00 50 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 29 [20:21:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:21:12]wFMCommunicate OK [20:21:12]CreateOFDProtocolMessage done [20:21:12]OFDSenderStorePacket 165447 [20:21:12]StoreOFDPacket docnum=165447 [20:21:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 93 50 04 01 A0 D8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B8 88 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 02 D7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 D6 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B3 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 68 00 00 00 00 07 04 06 00 D0 D6 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 B8 84 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 47 86 02 00 35 04 06 00 B7 30 23 7E B1 17 E3 B4 F8 98 A5 CD 5A 86 [20:21:12]CheckFolder [20:21:12]dirname=/storage/ofd_packets [20:21:12]CheckFolder done [20:21:12]ProducePacketName [20:21:12]name=ofd_packets/00165447 [20:21:12]NVStorageSaveData ofd_packets/00165447 [20:21:12]File name is /storage/ofd_packets/00165447 [20:21:12]Write 298 bytes [20:21:12]NVStorageSaveData done [20:21:12]OFDSenderStorePacket done [20:21:12]KKMCreateOFDPacket done [20:21:12]NVStorageSaveData kkm_last_timestamp [20:21:12]File name is /storage/kkm_last_timestamp [20:21:12]Write 4 bytes [20:21:12]NVStorageSaveData done [20:21:12]ExternCall_PrintAddStr [20:21:12]wPrintStart [20:21:12]Write to MH i2c: 01 00 00 51 09 5A [20:21:12]Write i2c OK [20:21:12]MH_I2C_Read... [20:21:12]Read from MH i2c: 01 [20:21:12]MH_I2C_Read... [20:21:12]Read from MH i2c: 01 07 00 [20:21:12]MH_I2C_Read... [20:21:12]Read from MH i2c: 01 07 00 51 09 00 00 00 00 00 FF 0F 6F [20:21:12]RasterBufferAndPrint [20:21:12]line Счет N : (1)459563 [20:21:12]line ИНН: 02508201610067 [20:21:12]line Контрольно-Кассовый Чек [20:21:12]line ПРОДАЖА [20:21:12]line ТРК (МРК, ГНК) : 11 [20:21:12]line Товар: 2710194210 [20:21:12]line ДТ-К-5 [20:21:12]line 35.000 * 71.90 [20:21:12]line = 2516.50 [20:21:12]line НДС 12% НСП 1% [20:21:12]line > о реализуемом товаре [20:21:12]line ОКРУГЛЕНИЕ: -0.50 [20:21:12]line ИТОГО: 2516.00 [20:21:12]line Внесено: 2516.00 [20:21:12]line СДАЧА: 0.00 [20:21:12]line НСП 1% : 22.27 [20:21:12]line НДС 12% : 267.24 [20:21:12]line Наличными: 2516.00 [20:21:12]line Безнал.: 0.00 [20:21:12]line Место: АЗС № 72 "Партнер Нефть" [20:21:12]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:21:12]line СНО: Общий режим [20:21:12]line Чек 320 15.07.2024 20:21 [20:21:12]line Смена: 448 ФФД: 1.0 [20:21:12]line ЗНМ: 0300000160 [20:21:12]line РНМ: 0000000000090829 [20:21:12]line Версия ККМ: 001 [20:21:12]line ФМ: 0000000000874718 [20:21:12]line ФД: 165447 [20:21:12]line ФПД: 201417381818647 [20:21:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T202112&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165447&fm=201417381818647&tin=02508201610067®Number=0000000000090829&sum=251600 [20:21:13]OFD Sender: Processing packet 165447 [packets to send 106, broken 105] [20:21:13]ProducePacketName [20:21:13]name=ofd_packets/00165447 [20:21:13]OFD Sender: To server: pG, [20:21:13]CommunicateWithHost lk.salyk.kg:30040 [20:21:13]ConnectInit lk.salyk.kg [20:21:13]written 0, free lines is 4095 [20:21:13]Connected sock=10 [20:21:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 93 50 04 01 A0 D8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B8 88 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 02 D7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 D6 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B3 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 68 00 00 00 00 07 04 06 00 D0 D6 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 B8 84 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 47 86 02 00 35 04 06 00 B7 30 23 7E B1 17 E3 B4 F8 98 A5 CD 5A 86 [20:21:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 31 6B 47 00 60 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 37 31 38 10 04 04 00 47 86 02 00 F4 03 04 00 41 2B 95 66 B6 04 01 00 00 44 70 59 81 83 D5 0C 16 [20:21:13]CommunicateWithHost err = 0 [20:21:13]CheckOFDResponse [20:21:13]1017 (14) - 77093643461234 [20:21:13]1041 (16) - 0000000000874718 [20:21:13]1040 (4) - 165447 [20:21:13]1012 (4) - 15.07.2024 13:59 [20:21:13]1206 (1) - 0 [20:21:13]OFD Sender: Remove packet 165447 [20:21:13]ProducePacketName [20:21:13]name=ofd_packets/00165447 [20:21:13]NVStorageDeleteData [20:21:13]Write to MH i2c: 01 00 00 7B 09 84 [20:21:13]Write i2c OK [20:21:13]MH_I2C_Read... [20:21:13]Read from MH i2c: 01 [20:21:13]MH_I2C_Read... [20:21:13]Read from MH i2c: 01 07 00 [20:21:13]MH_I2C_Read... [20:21:13]Read from MH i2c: 01 07 00 7B 09 00 00 00 00 00 F2 0C 89 [20:21:13]RasterBufferAndPrint [20:21:13]line [20:21:13]line [20:21:13]line [20:21:13]line [20:21:13]line [20:21:13]written 0, free lines is 3320 [20:21:13]MH_Cut [20:21:13]Write to MH i2c: D1 01 00 82 09 01 5D [20:21:13]Write i2c OK [20:21:13]MH_I2C_Read... [20:21:13]Read from MH i2c: D1 [20:21:13]MH_I2C_Read... [20:21:13]Read from MH i2c: D1 01 00 [20:21:13]MH_I2C_Read... [20:21:13]Read from MH i2c: D1 01 00 82 09 00 5C [20:21:13]Write to MH i2c: 01 00 00 83 09 8C [20:21:13]Write i2c OK [20:21:13]MH_I2C_Read... [20:21:14]OFD Sender: No OFD packet to send [20:21:14]*** Cut start [20:21:14]*** Partial cut [20:21:14]*** CUTSNS_PIN = 1 [20:21:14]*** CUTSNS_PIN = 0 [20:21:14]*** Brake cut motor [20:21:14]Read from MH i2c: 01 [20:21:14]MH_I2C_Read... [20:21:14]*** Stop cut motor [20:21:14]*** Cut end [20:21:14]Read from MH i2c: 01 07 00 [20:21:14]MH_I2C_Read... [20:21:14]Read from MH i2c: 01 07 00 83 09 00 00 00 00 00 FF 0F A1 [20:21:14]process_action close_receipt done [20:21:14]requested_data is exist [20:21:14]produce_requested_data [20:21:14]requested_item fm.sn is exist - process it [20:21:14]wFMCommunicate request_size=4 [20:21:14]MH_SAM_APDU [20:21:14]CAPDU: 80 11 00 00 [20:21:14]Write to MH i2c: E2 08 00 84 09 80 11 00 00 00 00 00 00 07 [20:21:14]Write i2c OK [20:21:14]MH_I2C_Read... [20:21:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:21:14]Read from MH i2c: E2 [20:21:14]MH_I2C_Read... [20:21:14]Read from MH i2c: E2 17 00 [20:21:14]MH_I2C_Read... [20:21:14]Read from MH i2c: E2 17 00 84 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5D [20:21:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:21:14]wFMCommunicate OK [20:21:14]requested_item fd.num is exist - process it [20:21:14]SAM_PROTO_GetFieldsCounters [20:21:14]wFMCommunicate request_size=4 [20:21:14]MH_SAM_APDU [20:21:14]CAPDU: 80 13 00 00 [20:21:14]Write to MH i2c: E2 08 00 85 09 80 13 00 00 00 00 00 00 0A [20:21:15]Write i2c OK [20:21:15]MH_I2C_Read... [20:21:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:21:15]Read from MH i2c: E2 [20:21:15]MH_I2C_Read... [20:21:15]Read from MH i2c: E2 62 00 [20:21:15]MH_I2C_Read... [20:21:15]Read from MH i2c: E2 62 00 85 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 47 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 40 01 00 00 5E 04 04 00 40 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 84 [20:21:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 47 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 40 01 00 00 5E 04 04 00 40 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:21:15]wFMCommunicate OK [20:21:15]SAM_PROTO_GetFieldsCounters done [20:21:15]requested_item shift.num is exist - process it [20:21:15]requested_item shift.opened is exist - process it [20:21:15]req_shift_opened [20:21:15]FM_GetShiftState [20:21:15]SAM_PROTO_GetShiftState [20:21:15]wFMCommunicate request_size=4 [20:21:15]MH_SAM_APDU [20:21:15]CAPDU: 80 13 01 00 [20:21:15]Write to MH i2c: E2 08 00 86 09 80 13 01 00 00 00 00 00 0C [20:21:15]Write i2c OK [20:21:15]MH_I2C_Read... [20:21:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:21:15]Read from MH i2c: E2 [20:21:15]MH_I2C_Read... [20:21:15]Read from MH i2c: E2 0E 00 [20:21:15]MH_I2C_Read... [20:21:15]Read from MH i2c: E2 0E 00 86 09 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 E5 [20:21:15]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [20:21:15]wFMCommunicate OK [20:21:15]SAM_PROTO_GetShiftState done [20:21:15]FM_GetShiftState done [20:21:15]req_shift_opened done [20:21:15]requested_item shift.open_date is exist - process it [20:21:15]req_shift_open_date [20:21:15]req_shift_open_date done [20:21:15]produce_requested_data done [20:21:15]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165447,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [20:21:15]process_action_free close_receipt [20:21:15]json_value_free [20:21:15]json_value_free done [20:21:15]process_json_proto returns [20:21:15]Send response to host [20:21:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165447,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [20:21:15]free response buf [20:21:15]execute_script done [20:21:15]execute_script returns [20:21:15]free content buf [20:21:15]Sock 9.Close socket [20:21:15]Sock 9.Thread stoped [20:21:19]OFD Sender: No OFD packet to send [20:21:24]OFD Sender: No OFD packet to send [20:21:29]OFD Sender: No OFD packet to send [20:21:34]OFD Sender: No OFD packet to send [20:21:39]OFD Sender: No OFD packet to send [20:21:44]OFD Sender: No OFD packet to send [20:21:49]OFD Sender: No OFD packet to send [20:21:54]OFD Sender: No OFD packet to send [20:21:59]OFD Sender: No OFD packet to send [20:22:04]OFD Sender: No OFD packet to send [20:22:09]OFD Sender: No OFD packet to send [20:22:14]OFD Sender: No OFD packet to send [20:22:19]OFD Sender: No OFD packet to send [20:22:24]OFD Sender: No OFD packet to send [20:22:29]OFD Sender: No OFD packet to send [20:22:34]OFD Sender: No OFD packet to send [20:22:39]OFD Sender: No OFD packet to send [20:22:44]OFD Sender: No OFD packet to send [20:22:49]OFD Sender: No OFD packet to send [20:22:54]OFD Sender: No OFD packet to send [20:22:59]OFD Sender: No OFD packet to send [20:23:04]OFD Sender: No OFD packet to send [20:23:09]OFD Sender: No OFD packet to send [20:23:14]OFD Sender: No OFD packet to send [20:23:19]OFD Sender: No OFD packet to send [20:23:24]OFD Sender: No OFD packet to send [20:23:29]OFD Sender: No OFD packet to send [20:23:34]OFD Sender: No OFD packet to send [20:23:39]OFD Sender: No OFD packet to send [20:23:44]OFD Sender: No OFD packet to send [20:23:49]OFD Sender: No OFD packet to send [20:23:54]OFD Sender: No OFD packet to send [20:23:59]OFD Sender: No OFD packet to send [20:24:04]OFD Sender: No OFD packet to send [20:24:09]OFD Sender: No OFD packet to send [20:24:14]OFD Sender: No OFD packet to send [20:24:19]OFD Sender: No OFD packet to send [20:24:24]OFD Sender: No OFD packet to send [20:24:29]OFD Sender: No OFD packet to send [20:24:34]OFD Sender: No OFD packet to send [20:24:39]OFD Sender: No OFD packet to send [20:24:44]OFD Sender: No OFD packet to send [20:24:49]OFD Sender: No OFD packet to send [20:24:54]OFD Sender: No OFD packet to send [20:24:59]OFD Sender: No OFD packet to send [20:25:04]OFD Sender: No OFD packet to send [20:25:09]OFD Sender: No OFD packet to send [20:25:14]OFD Sender: No OFD packet to send [20:25:19]OFD Sender: No OFD packet to send [20:25:24]OFD Sender: No OFD packet to send [20:25:29]OFD Sender: No OFD packet to send [20:25:34]OFD Sender: No OFD packet to send [20:25:39]OFD Sender: No OFD packet to send [20:25:44]OFD Sender: No OFD packet to send [20:25:49]OFD Sender: No OFD packet to send [20:25:54]OFD Sender: No OFD packet to send [20:25:59]OFD Sender: No OFD packet to send [20:26:04]OFD Sender: No OFD packet to send [20:26:09]OFD Sender: No OFD packet to send [20:26:14]OFD Sender: No OFD packet to send [20:26:19]OFD Sender: No OFD packet to send [20:26:24]OFD Sender: No OFD packet to send [20:26:29]OFD Sender: No OFD packet to send [20:26:34]OFD Sender: No OFD packet to send [20:26:39]OFD Sender: No OFD packet to send [20:26:44]OFD Sender: No OFD packet to send [20:26:49]OFD Sender: No OFD packet to send [20:26:54]OFD Sender: No OFD packet to send [20:26:59]OFD Sender: No OFD packet to send [20:27:04]OFD Sender: No OFD packet to send [20:27:09]OFD Sender: No OFD packet to send [20:27:14]OFD Sender: No OFD packet to send [20:27:19]OFD Sender: No OFD packet to send [20:27:24]OFD Sender: No OFD packet to send [20:27:29]OFD Sender: No OFD packet to send [20:27:34]OFD Sender: No OFD packet to send [20:27:39]OFD Sender: No OFD packet to send [20:27:44]OFD Sender: No OFD packet to send [20:27:49]OFD Sender: No OFD packet to send [20:27:54]OFD Sender: No OFD packet to send [20:27:59]OFD Sender: No OFD packet to send [20:28:04]OFD Sender: No OFD packet to send [20:28:09]OFD Sender: No OFD packet to send [20:28:14]OFD Sender: No OFD packet to send [20:28:19]OFD Sender: No OFD packet to send [20:28:24]OFD Sender: No OFD packet to send [20:28:29]OFD Sender: No OFD packet to send [20:28:34]OFD Sender: No OFD packet to send [20:28:39]OFD Sender: No OFD packet to send [20:28:44]OFD Sender: No OFD packet to send [20:28:49]OFD Sender: No OFD packet to send [20:28:54]OFD Sender: No OFD packet to send [20:28:59]OFD Sender: No OFD packet to send [20:29:04]OFD Sender: No OFD packet to send [20:29:09]OFD Sender: No OFD packet to send [20:29:14]OFD Sender: No OFD packet to send [20:29:19]OFD Sender: No OFD packet to send [20:29:24]OFD Sender: No OFD packet to send [20:29:29]OFD Sender: No OFD packet to send [20:29:34]OFD Sender: No OFD packet to send [20:29:39]OFD Sender: No OFD packet to send [20:29:44]OFD Sender: No OFD packet to send [20:29:49]OFD Sender: No OFD packet to send [20:29:54]OFD Sender: No OFD packet to send [20:29:59]OFD Sender: No OFD packet to send [20:30:04]OFD Sender: No OFD packet to send [20:30:09]OFD Sender: No OFD packet to send [20:30:14]OFD Sender: No OFD packet to send [20:30:19]OFD Sender: No OFD packet to send [20:30:24]OFD Sender: No OFD packet to send [20:30:29]OFD Sender: No OFD packet to send [20:30:34]OFD Sender: No OFD packet to send [20:30:39]OFD Sender: No OFD packet to send [20:30:44]OFD Sender: No OFD packet to send [20:30:49]OFD Sender: No OFD packet to send [20:30:54]OFD Sender: No OFD packet to send [20:30:59]OFD Sender: No OFD packet to send [20:31:04]OFD Sender: No OFD packet to send [20:31:09]OFD Sender: No OFD packet to send [20:31:14]OFD Sender: No OFD packet to send [20:31:19]OFD Sender: No OFD packet to send [20:31:22]accept exits with 7 [20:31:22]New connection [20:31:22]New thread 3067190628 created [20:31:22]Thread 3067333988 joined [20:31:22]Waiting for new connection... [20:31:22] Sock 7.Parse request [20:31:22]Sock 7.Check first char [20:31:22]Sock 7.First char is OK [20:31:22]request: POST /json_proto HTTP/1.0 [20:31:22]Method: POST [20:31:22]URL: /json_proto [20:31:22]Method is POST - this is cgi request [20:31:22]url: /json_proto [20:31:22]query_string will be loaded in cgi processing [20:31:22]execute_cgi json_proto POST (null) [20:31:22]execute_cgi path=json_proto method=POST [20:31:22]POST find Content-Length [20:31:22]Host: 172.17.56.4:8080 [20:31:22]Content-Length: 677 [20:31:22]Content-Type: application/json [20:31:22] [20:31:22]POST finish read [20:31:22]Found Content-Length = 677 [20:31:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459564", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.520, "sum" : 100.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:31:22]execute_script... [20:31:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459564", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.520, "sum" : 100.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:31:22]POST & json_proto [20:31:22]process_json_proto [20:31:22]json parsed OK: [20:31:22]protocol is kg_v1.0 [20:31:22]action value=close_receipt [20:31:22]process_action close_receipt [20:31:22]cmd_close_receipt [20:31:22]MH_GetDate [20:31:22]Write to MH i2c: F0 00 00 87 09 7F [20:31:22]Write i2c OK [20:31:22]MH_I2C_Read... [20:31:22]Read from MH i2c: F0 [20:31:22]MH_I2C_Read... [20:31:22]Read from MH i2c: F0 09 00 [20:31:22]MH_I2C_Read... [20:31:22]Read from MH i2c: F0 09 00 87 09 00 1B 87 95 66 C9 DC B2 64 E0 [20:31:22]GetLastDocTimeStamp 1721074872 [20:31:22]current date 1721075483 [20:31:22]FM_GetShiftState [20:31:22]SAM_PROTO_GetShiftState [20:31:22]wFMCommunicate request_size=4 [20:31:22]MH_SAM_APDU [20:31:22]CAPDU: 80 13 01 00 [20:31:22]Write to MH i2c: E2 08 00 88 09 80 13 01 00 00 00 00 00 0E [20:31:22]Write i2c OK [20:31:22]MH_I2C_Read... [20:31:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:31:22]Read from MH i2c: E2 [20:31:22]MH_I2C_Read... [20:31:22]Read from MH i2c: E2 0E 00 [20:31:22]MH_I2C_Read... [20:31:22]Read from MH i2c: E2 0E 00 88 09 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 E7 [20:31:22]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [20:31:22]wFMCommunicate OK [20:31:22]SAM_PROTO_GetShiftState done [20:31:22]FM_GetShiftState done [20:31:22]opened in 1721003876 [20:31:22]opened+sec_in_day 1721090276 [20:31:22]quantity*price = 10001 [20:31:22]sum+1 = 10003 [20:31:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 321 15.07.2024 20:31 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165448 ФПД: 86707008751794 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T203123&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165448&fm=86707008751794&tin=02508201610067®Number=0000000000090829&sum=10000 [20:31:23]StoreToDocumentArchive [20:31:23]shift 448 fd 165448 [20:31:23]save to /storage/0448/doc_00165448 [20:31:23]save last doc name /storage/0448/doc_00165448 to /storage/kkm_last_doc_name [20:31:23]save OK [20:31:23]Clear old archive folders... [20:31:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:31:23]tlvbuf is 01B467C0 [20:31:23]SAM_PROTO_ClearQueue [20:31:23]wFMCommunicate request_size=4 [20:31:23]MH_SAM_APDU [20:31:23]CAPDU: 80 09 00 00 [20:31:23]Write to MH i2c: E2 08 00 95 09 80 09 00 00 00 00 00 00 10 [20:31:23]Write i2c OK [20:31:23]MH_I2C_Read... [20:31:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:31:23]Read from MH i2c: E2 [20:31:23]MH_I2C_Read... [20:31:23]Read from MH i2c: E2 03 00 [20:31:23]MH_I2C_Read... [20:31:23]Read from MH i2c: E2 03 00 95 09 00 90 00 12 [20:31:23]RAPDU: 90 00 [20:31:23]wFMCommunicate OK [20:31:23]SAM_PROTO_ClearQueue done [20:31:23]KKMCreateOFDPacket [20:31:23]OFDProtocolAddRootSTLVToBuf [20:31:23]FM_MakeSignedData [20:31:23]FM_MakeSignedData [20:31:23]SAM_PROTO_SignData [20:31:23]wFMCommunicate request_size=4 [20:31:23]MH_SAM_APDU [20:31:23]CAPDU: 80 0D 01 02 [20:31:23]Write to MH i2c: E2 08 00 96 09 80 0D 01 02 00 00 00 00 18 [20:31:23]Write i2c OK [20:31:23]MH_I2C_Read... [20:31:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:31:23]Read from MH i2c: E2 [20:31:23]MH_I2C_Read... [20:31:23]Read from MH i2c: E2 03 00 [20:31:23]MH_I2C_Read... [20:31:23]Read from MH i2c: E2 03 00 96 09 00 90 00 13 [20:31:23]RAPDU: 90 00 [20:31:23]wFMCommunicate OK [20:31:23]wFMCommunicate request_size=255 [20:31:23]MH_SAM_APDU [20:31:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 05 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 12 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 1B 87 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 48 86 02 00 35 04 06 00 4E [20:31:23]Write to MH i2c: E2 02 01 97 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 05 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 12 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 1B 87 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 48 86 02 00 35 04 06 00 4E 00 00 D1 [20:31:23]Write i2c OK [20:31:23]MH_I2C_Read... [20:31:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:31:23]Read from MH i2c: E2 [20:31:23]MH_I2C_Read... [20:31:23]Read from MH i2c: E2 03 00 [20:31:24]MH_I2C_Read... [20:31:24]Read from MH i2c: E2 03 00 97 09 00 90 00 14 [20:31:24]RAPDU: 90 00 [20:31:24]wFMCommunicate OK [20:31:24]wFMCommunicate request_size=10 [20:31:24]MH_SAM_APDU [20:31:24]CAPDU: 80 0D 02 02 05 DC 0C 74 C8 B2 [20:31:24]Write to MH i2c: E2 0D 00 98 09 80 0D 02 02 05 00 DC 0C 74 C8 B2 00 00 FB [20:31:24]Write i2c OK [20:31:24]MH_I2C_Read... [20:31:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:31:24]Read from MH i2c: E2 [20:31:24]MH_I2C_Read... [20:31:24]Read from MH i2c: E2 03 00 [20:31:24]MH_I2C_Read... [20:31:24]Read from MH i2c: E2 03 00 98 09 00 90 00 15 [20:31:24]RAPDU: 90 00 [20:31:24]wFMCommunicate OK [20:31:24]wFMCommunicate request_size=4 [20:31:24]MH_SAM_APDU [20:31:24]CAPDU: 80 0D 03 02 [20:31:24]Write to MH i2c: E2 08 00 99 09 80 0D 03 02 00 00 00 00 1D [20:31:24]Write i2c OK [20:31:24]MH_I2C_Read... [20:31:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:31:24]Read from MH i2c: E2 [20:31:24]MH_I2C_Read... [20:31:24]Read from MH i2c: E2 0B 00 [20:31:24]MH_I2C_Read... [20:31:24]Read from MH i2c: E2 0B 00 99 09 00 8B E8 C6 A3 3A BA 68 AB 90 00 01 [20:31:24]RAPDU: 8B E8 C6 A3 3A BA 68 AB 90 00 [20:31:24]wFMCommunicate OK [20:31:24]SAM_PROTO_SignData done [20:31:24]FM_MakeSignedData done [20:31:24]CreateOFDProtocolMessage [20:31:24]wFMCommunicate request_size=4 [20:31:24]MH_SAM_APDU [20:31:24]CAPDU: 80 11 00 00 [20:31:24]Write to MH i2c: E2 08 00 9A 09 80 11 00 00 00 00 00 00 1D [20:31:24]Write i2c OK [20:31:24]MH_I2C_Read... [20:31:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:31:24]Read from MH i2c: E2 [20:31:24]MH_I2C_Read... [20:31:24]Read from MH i2c: E2 17 00 [20:31:24]MH_I2C_Read... [20:31:24]Read from MH i2c: E2 17 00 9A 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 73 [20:31:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:31:24]wFMCommunicate OK [20:31:24]CreateOFDProtocolMessage done [20:31:24]OFDSenderStorePacket 165448 [20:31:24]StoreOFDPacket docnum=165448 [20:31:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A9 E2 07 01 36 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 05 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 12 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 1B 87 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 48 86 02 00 35 04 06 00 4E DC 0C 74 C8 B2 8B E8 C6 A3 3A BA 68 AB [20:31:24]CheckFolder [20:31:24]dirname=/storage/ofd_packets [20:31:24]CheckFolder done [20:31:24]ProducePacketName [20:31:24]name=ofd_packets/00165448 [20:31:24]NVStorageSaveData ofd_packets/00165448 [20:31:24]File name is /storage/ofd_packets/00165448 [20:31:24]Write 301 bytes [20:31:24]NVStorageSaveData done [20:31:24]OFDSenderStorePacket done [20:31:24]KKMCreateOFDPacket done [20:31:24]NVStorageSaveData kkm_last_timestamp [20:31:24]File name is /storage/kkm_last_timestamp [20:31:24]Write 4 bytes [20:31:24]NVStorageSaveData done [20:31:24]ExternCall_PrintAddStr [20:31:24]wPrintStart [20:31:24]Write to MH i2c: 01 00 00 9B 09 A4 [20:31:24]Write i2c OK [20:31:24]MH_I2C_Read... [20:31:24]Read from MH i2c: 01 [20:31:24]MH_I2C_Read... [20:31:24]Read from MH i2c: 01 07 00 [20:31:24]MH_I2C_Read... [20:31:24]Read from MH i2c: 01 07 00 9B 09 00 00 00 00 00 FF 0F B9 [20:31:24]RasterBufferAndPrint [20:31:24]line Счет N : (1)459564 [20:31:24]line ИНН: 02508201610067 [20:31:24]line Контрольно-Кассовый Чек [20:31:24]line ПРОДАЖА [20:31:24]line ТРК (МРК, ГНК) : 12 [20:31:24]line Товар: 2710124130 [20:31:24]line Аи-92-К-5 [20:31:24]line 1.520 * 65.80 [20:31:24]line = 100.02 [20:31:24]line НДС 12% НСП 1% [20:31:24]line > о реализуемом товаре [20:31:24]line ОКРУГЛЕНИЕ: -0.02 [20:31:24]line ИТОГО: 100.00 [20:31:24]line Внесено: 100.00 [20:31:24]line СДАЧА: 0.00 [20:31:24]line НСП 1% : 0.88 [20:31:24]line НДС 12% : 10.62 [20:31:24]line Наличными: 100.00 [20:31:24]line Безнал.: 0.00 [20:31:24]line Место: АЗС № 72 "Партнер Нефть" [20:31:24]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:31:24]line СНО: Общий режим [20:31:24]line Чек 321 15.07.2024 20:31 [20:31:24]line Смена: 448 ФФД: 1.0 [20:31:24]line ЗНМ: 0300000160 [20:31:24]line РНМ: 0000000000090829 [20:31:24]line Версия ККМ: 001 [20:31:24]line ФМ: 0000000000874718 [20:31:24]line ФД: 165448 [20:31:24]line ФПД: 86707008751794 [20:31:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T203123&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165448&fm=86707008751794&tin=02508201610067®Number=0000000000090829&sum=10000 [20:31:24]written 0, free lines is 4095 [20:31:24]OFD Sender: Processing packet 165448 [packets to send 106, broken 105] [20:31:24]ProducePacketName [20:31:24]name=ofd_packets/00165448 [20:31:24]OFD Sender: To server: pG, [20:31:24]CommunicateWithHost lk.salyk.kg:30040 [20:31:24]ConnectInit lk.salyk.kg [20:31:24]Connected sock=10 [20:31:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A9 E2 07 01 36 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 05 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 12 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 1B 87 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 48 86 02 00 35 04 06 00 4E DC 0C 74 C8 B2 8B E8 C6 A3 3A BA 68 AB [20:31:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 93 24 47 00 58 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 37 31 38 10 04 04 00 48 86 02 00 F4 03 04 00 A4 2D 95 66 B6 04 01 00 00 24 03 1D BC B6 21 F5 06 [20:31:24]CommunicateWithHost err = 0 [20:31:24]CheckOFDResponse [20:31:24]1017 (14) - 77093643461234 [20:31:24]1041 (16) - 0000000000874718 [20:31:24]1040 (4) - 165448 [20:31:24]1012 (4) - 15.07.2024 14:09 [20:31:24]1206 (1) - 0 [20:31:24]OFD Sender: Remove packet 165448 [20:31:24]ProducePacketName [20:31:24]name=ofd_packets/00165448 [20:31:24]NVStorageDeleteData [20:31:24]Write to MH i2c: 01 00 00 C5 09 CE [20:31:24]Write i2c OK [20:31:24]MH_I2C_Read... [20:31:24]Read from MH i2c: 01 [20:31:24]MH_I2C_Read... [20:31:24]Read from MH i2c: 01 07 00 [20:31:24]MH_I2C_Read... [20:31:24]Read from MH i2c: 01 07 00 C5 09 00 00 00 00 00 EF 0C D0 [20:31:24]RasterBufferAndPrint [20:31:24]line [20:31:24]line [20:31:24]line [20:31:24]line [20:31:24]line [20:31:24]written 0, free lines is 3317 [20:31:24]MH_Cut [20:31:24]Write to MH i2c: D1 01 00 CC 09 01 A7 [20:31:24]Write i2c OK [20:31:24]MH_I2C_Read... [20:31:24]Read from MH i2c: D1 [20:31:24]MH_I2C_Read... [20:31:24]Read from MH i2c: D1 01 00 [20:31:24]MH_I2C_Read... [20:31:24]Read from MH i2c: D1 01 00 CC 09 00 A6 [20:31:24]Write to MH i2c: 01 00 00 CD 09 D6 [20:31:24]Write i2c OK [20:31:24]MH_I2C_Read... [20:31:25]OFD Sender: No OFD packet to send [20:31:25]*** Cut start [20:31:25]*** Partial cut [20:31:25]*** CUTSNS_PIN = 1 [20:31:25]*** CUTSNS_PIN = 0 [20:31:25]*** Brake cut motor [20:31:26]Read from MH i2c: 01 [20:31:26]MH_I2C_Read... [20:31:26]*** Stop cut motor [20:31:26]*** Cut end [20:31:26]Read from MH i2c: 01 07 00 [20:31:26]MH_I2C_Read... [20:31:26]Read from MH i2c: 01 07 00 CD 09 00 00 00 00 00 FF 0F EB [20:31:26]process_action close_receipt done [20:31:26]requested_data is exist [20:31:26]produce_requested_data [20:31:26]requested_item fm.sn is exist - process it [20:31:26]wFMCommunicate request_size=4 [20:31:26]MH_SAM_APDU [20:31:26]CAPDU: 80 11 00 00 [20:31:26]Write to MH i2c: E2 08 00 CE 09 80 11 00 00 00 00 00 00 51 [20:31:26]Write i2c OK [20:31:26]MH_I2C_Read... [20:31:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:31:26]Read from MH i2c: E2 [20:31:26]MH_I2C_Read... [20:31:26]Read from MH i2c: E2 17 00 [20:31:26]MH_I2C_Read... [20:31:26]Read from MH i2c: E2 17 00 CE 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A7 [20:31:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:31:26]wFMCommunicate OK [20:31:26]requested_item fd.num is exist - process it [20:31:26]SAM_PROTO_GetFieldsCounters [20:31:26]wFMCommunicate request_size=4 [20:31:26]MH_SAM_APDU [20:31:26]CAPDU: 80 13 00 00 [20:31:26]Write to MH i2c: E2 08 00 CF 09 80 13 00 00 00 00 00 00 54 [20:31:26]Write i2c OK [20:31:26]MH_I2C_Read... [20:31:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:31:26]Read from MH i2c: E2 [20:31:26]MH_I2C_Read... [20:31:26]Read from MH i2c: E2 62 00 [20:31:26]MH_I2C_Read... [20:31:26]Read from MH i2c: E2 62 00 CF 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 48 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 D2 [20:31:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 48 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:31:26]wFMCommunicate OK [20:31:26]SAM_PROTO_GetFieldsCounters done [20:31:26]requested_item shift.num is exist - process it [20:31:26]requested_item shift.opened is exist - process it [20:31:26]req_shift_opened [20:31:26]FM_GetShiftState [20:31:26]SAM_PROTO_GetShiftState [20:31:26]wFMCommunicate request_size=4 [20:31:26]MH_SAM_APDU [20:31:26]CAPDU: 80 13 01 00 [20:31:26]Write to MH i2c: E2 08 00 D0 09 80 13 01 00 00 00 00 00 56 [20:31:26]Write i2c OK [20:31:26]MH_I2C_Read... [20:31:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:31:26]Read from MH i2c: E2 [20:31:26]MH_I2C_Read... [20:31:26]Read from MH i2c: E2 0E 00 [20:31:26]MH_I2C_Read... [20:31:26]Read from MH i2c: E2 0E 00 D0 09 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 2F [20:31:26]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [20:31:26]wFMCommunicate OK [20:31:26]SAM_PROTO_GetShiftState done [20:31:26]FM_GetShiftState done [20:31:26]req_shift_opened done [20:31:26]requested_item shift.open_date is exist - process it [20:31:26]req_shift_open_date [20:31:26]req_shift_open_date done [20:31:26]produce_requested_data done [20:31:26]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165448,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [20:31:26]process_action_free close_receipt [20:31:26]json_value_free [20:31:26]json_value_free done [20:31:26]process_json_proto returns [20:31:26]Send response to host [20:31:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165448,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [20:31:26]free response buf [20:31:26]execute_script done [20:31:26]execute_script returns [20:31:26]free content buf [20:31:26]Sock 7.Close socket [20:31:26]Sock 7.Thread stoped [20:31:30]OFD Sender: No OFD packet to send [20:31:35]OFD Sender: No OFD packet to send [20:31:40]OFD Sender: No OFD packet to send [20:31:45]OFD Sender: No OFD packet to send [20:31:50]OFD Sender: No OFD packet to send [20:31:55]OFD Sender: No OFD packet to send [20:32:00]OFD Sender: No OFD packet to send [20:32:05]OFD Sender: No OFD packet to send [20:32:10]OFD Sender: No OFD packet to send [20:32:15]OFD Sender: No OFD packet to send [20:32:20]OFD Sender: No OFD packet to send [20:32:25]OFD Sender: No OFD packet to send [20:32:30]OFD Sender: No OFD packet to send [20:32:35]OFD Sender: No OFD packet to send [20:32:40]OFD Sender: No OFD packet to send [20:32:45]OFD Sender: No OFD packet to send [20:32:50]OFD Sender: No OFD packet to send [20:32:55]OFD Sender: No OFD packet to send [20:33:00]OFD Sender: No OFD packet to send [20:33:05]OFD Sender: No OFD packet to send [20:33:10]OFD Sender: No OFD packet to send [20:33:15]OFD Sender: No OFD packet to send [20:33:20]OFD Sender: No OFD packet to send [20:33:25]OFD Sender: No OFD packet to send [20:33:30]OFD Sender: No OFD packet to send [20:33:35]OFD Sender: No OFD packet to send [20:33:40]OFD Sender: No OFD packet to send [20:33:45]OFD Sender: No OFD packet to send [20:33:50]OFD Sender: No OFD packet to send [20:33:55]OFD Sender: No OFD packet to send [20:34:00]OFD Sender: No OFD packet to send [20:34:05]OFD Sender: No OFD packet to send [20:34:10]OFD Sender: No OFD packet to send [20:34:15]OFD Sender: No OFD packet to send [20:34:20]OFD Sender: No OFD packet to send [20:34:25]OFD Sender: No OFD packet to send [20:34:30]OFD Sender: No OFD packet to send [20:34:35]OFD Sender: No OFD packet to send [20:34:40]OFD Sender: No OFD packet to send [20:34:45]OFD Sender: No OFD packet to send [20:34:50]OFD Sender: No OFD packet to send [20:34:55]OFD Sender: No OFD packet to send [20:35:00]OFD Sender: No OFD packet to send [20:35:05]OFD Sender: No OFD packet to send [20:35:10]OFD Sender: No OFD packet to send [20:35:15]OFD Sender: No OFD packet to send [20:35:20]OFD Sender: No OFD packet to send [20:35:25]OFD Sender: No OFD packet to send [20:35:30]OFD Sender: No OFD packet to send [20:35:35]OFD Sender: No OFD packet to send [20:35:40]OFD Sender: No OFD packet to send [20:35:45]OFD Sender: No OFD packet to send [20:35:50]OFD Sender: No OFD packet to send [20:35:55]OFD Sender: No OFD packet to send [20:35:58]accept exits with 9 [20:35:58]New connection [20:35:58]New thread 3067333988 created [20:35:58]Thread 3067190628 joined [20:35:58]Waiting for new connection... [20:35:58] Sock 9.Parse request [20:35:58]Sock 9.Check first char [20:35:58]Sock 9.First char is OK [20:35:58]request: POST /json_proto HTTP/1.0 [20:35:58]Method: POST [20:35:58]URL: /json_proto [20:35:58]Method is POST - this is cgi request [20:35:58]url: /json_proto [20:35:58]query_string will be loaded in cgi processing [20:35:58]execute_cgi json_proto POST (null) [20:35:58]execute_cgi path=json_proto method=POST [20:35:58]POST find Content-Length [20:35:58]Host: 172.17.56.4:8080 [20:35:58]Content-Length: 677 [20:35:58]Content-Type: application/json [20:35:58] [20:35:58]POST finish read [20:35:58]Found Content-Length = 677 [20:35:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459565", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.280, "sum" : 150.02, "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" ] } } [20:35:58]execute_script... [20:35: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)459565", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 2.280, "sum" : 150.02, "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" ] } } [20:35:58]POST & json_proto [20:35:58]process_json_proto [20:35:58]json parsed OK: [20:35:58]protocol is kg_v1.0 [20:35:58]action value=close_receipt [20:35:58]process_action close_receipt [20:35:58]cmd_close_receipt [20:35:58]MH_GetDate [20:35:58]Write to MH i2c: F0 00 00 D1 09 C9 [20:35:58]Write i2c OK [20:35:58]MH_I2C_Read... [20:35:58]Read from MH i2c: F0 [20:35:58]MH_I2C_Read... [20:35:58]Read from MH i2c: F0 09 00 [20:35:58]MH_I2C_Read... [20:35:58]Read from MH i2c: F0 09 00 D1 09 00 2F 88 95 66 C9 DC B2 64 3F [20:35:58]GetLastDocTimeStamp 1721075483 [20:35:58]current date 1721075759 [20:35:58]FM_GetShiftState [20:35:58]SAM_PROTO_GetShiftState [20:35:58]wFMCommunicate request_size=4 [20:35:58]MH_SAM_APDU [20:35:58]CAPDU: 80 13 01 00 [20:35:58]Write to MH i2c: E2 08 00 D2 09 80 13 01 00 00 00 00 00 58 [20:35:58]Write i2c OK [20:35:58]MH_I2C_Read... [20:35:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:35:59]Read from MH i2c: E2 [20:35:59]MH_I2C_Read... [20:35:59]Read from MH i2c: E2 0E 00 [20:35:59]MH_I2C_Read... [20:35:59]Read from MH i2c: E2 0E 00 D2 09 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 31 [20:35:59]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [20:35:59]wFMCommunicate OK [20:35:59]SAM_PROTO_GetShiftState done [20:35:59]FM_GetShiftState done [20:35:59]opened in 1721003876 [20:35:59]opened+sec_in_day 1721090276 [20:35:59]quantity*price = 15002 [20:35:59]sum+1 = 15003 [20:35:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 322 15.07.2024 20:35 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165449 ФПД: 13047177343825 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T203559&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165449&fm=13047177343825&tin=02508201610067®Number=0000000000090829&sum=15000 [20:36:00]StoreToDocumentArchive [20:36:00]shift 448 fd 165449 [20:36:00]save to /storage/0448/doc_00165449 [20:36:00]save last doc name /storage/0448/doc_00165449 to /storage/kkm_last_doc_name [20:36:00]save OK [20:36:00]Clear old archive folders... [20:36:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:36:00]tlvbuf is 01B455C0 [20:36:00]SAM_PROTO_ClearQueue [20:36:00]wFMCommunicate request_size=4 [20:36:00]MH_SAM_APDU [20:36:00]CAPDU: 80 09 00 00 [20:36:00]Write to MH i2c: E2 08 00 DF 09 80 09 00 00 00 00 00 00 5A [20:36:00]Write i2c OK [20:36:00]MH_I2C_Read... [20:36:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:36:00]Read from MH i2c: E2 [20:36:00]MH_I2C_Read... [20:36:00]Read from MH i2c: E2 03 00 [20:36:00]MH_I2C_Read... [20:36:00]Read from MH i2c: E2 03 00 DF 09 00 90 00 5C [20:36:00]RAPDU: 90 00 [20:36:00]wFMCommunicate OK [20:36:00]SAM_PROTO_ClearQueue done [20:36:00]KKMCreateOFDPacket [20:36:00]OFDProtocolAddRootSTLVToBuf [20:36:00]FM_MakeSignedData [20:36:00]FM_MakeSignedData [20:36:00]SAM_PROTO_SignData [20:36:00]wFMCommunicate request_size=4 [20:36:00]MH_SAM_APDU [20:36:00]CAPDU: 80 0D 01 02 [20:36:00]Write to MH i2c: E2 08 00 E0 09 80 0D 01 02 00 00 00 00 62 [20:36:00]Write i2c OK [20:36:00]MH_I2C_Read... [20:36:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:36:00]Read from MH i2c: E2 [20:36:00]MH_I2C_Read... [20:36:00]Read from MH i2c: E2 03 00 [20:36:00]MH_I2C_Read... [20:36:00]Read from MH i2c: E2 03 00 E0 09 00 90 00 5D [20:36:00]RAPDU: 90 00 [20:36:00]wFMCommunicate OK [20:36:00]wFMCommunicate request_size=255 [20:36:00]MH_SAM_APDU [20:36: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 E8 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 9A 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 2F 88 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 49 86 02 00 35 04 06 00 0B [20:36:00]Write to MH i2c: E2 02 01 E1 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 9A 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 2F 88 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 49 86 02 00 35 04 06 00 0B 00 00 FD [20:36:00]Write i2c OK [20:36:00]MH_I2C_Read... [20:36:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:36:00]Read from MH i2c: E2 [20:36:00]MH_I2C_Read... [20:36:00]Read from MH i2c: E2 03 00 [20:36:00]MH_I2C_Read... [20:36:00]Read from MH i2c: E2 03 00 E1 09 00 90 00 5E [20:36:00]RAPDU: 90 00 [20:36:00]wFMCommunicate OK [20:36:00]wFMCommunicate request_size=10 [20:36:00]MH_SAM_APDU [20:36:00]CAPDU: 80 0D 02 02 05 DD C8 5E F3 51 [20:36:00]Write to MH i2c: E2 0D 00 E2 09 80 0D 02 02 05 00 DD C8 5E F3 51 00 00 B6 [20:36:00]Write i2c OK [20:36:00]MH_I2C_Read... [20:36:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:36:00]Read from MH i2c: E2 [20:36:00]MH_I2C_Read... [20:36:00]Read from MH i2c: E2 03 00 [20:36:00]MH_I2C_Read... [20:36:00]Read from MH i2c: E2 03 00 E2 09 00 90 00 5F [20:36:00]RAPDU: 90 00 [20:36:00]wFMCommunicate OK [20:36:00]wFMCommunicate request_size=4 [20:36:00]MH_SAM_APDU [20:36:00]CAPDU: 80 0D 03 02 [20:36:00]Write to MH i2c: E2 08 00 E3 09 80 0D 03 02 00 00 00 00 67 [20:36:00]Write i2c OK [20:36:00]MH_I2C_Read... [20:36:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:36:00]OFD Sender: No OFD packet to send [20:36:00]Read from MH i2c: E2 [20:36:00]MH_I2C_Read... [20:36:00]Read from MH i2c: E2 0B 00 [20:36:00]MH_I2C_Read... [20:36:00]Read from MH i2c: E2 0B 00 E3 09 00 EB E2 72 B3 48 52 F8 6F 90 00 5B [20:36:00]RAPDU: EB E2 72 B3 48 52 F8 6F 90 00 [20:36:00]wFMCommunicate OK [20:36:00]SAM_PROTO_SignData done [20:36:00]FM_MakeSignedData done [20:36:00]CreateOFDProtocolMessage [20:36:00]wFMCommunicate request_size=4 [20:36:00]MH_SAM_APDU [20:36:00]CAPDU: 80 11 00 00 [20:36:00]Write to MH i2c: E2 08 00 E4 09 80 11 00 00 00 00 00 00 67 [20:36:00]Write i2c OK [20:36:00]MH_I2C_Read... [20:36:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:36:00]Read from MH i2c: E2 [20:36:00]MH_I2C_Read... [20:36:00]Read from MH i2c: E2 17 00 [20:36:00]MH_I2C_Read... [20:36:00]Read from MH i2c: E2 17 00 E4 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 BD [20:36:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:36:00]wFMCommunicate OK [20:36:00]CreateOFDProtocolMessage done [20:36:00]OFDSenderStorePacket 165449 [20:36:00]StoreOFDPacket docnum=165449 [20:36:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 60 88 07 01 39 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 9A 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 2F 88 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 49 86 02 00 35 04 06 00 0B DD C8 5E F3 51 EB E2 72 B3 48 52 F8 6F [20:36:00]CheckFolder [20:36:00]dirname=/storage/ofd_packets [20:36:00]CheckFolder done [20:36:00]ProducePacketName [20:36:00]name=ofd_packets/00165449 [20:36:00]NVStorageSaveData ofd_packets/00165449 [20:36:00]File name is /storage/ofd_packets/00165449 [20:36:00]Write 301 bytes [20:36:00]NVStorageSaveData done [20:36:00]OFDSenderStorePacket done [20:36:00]KKMCreateOFDPacket done [20:36:00]NVStorageSaveData kkm_last_timestamp [20:36:00]File name is /storage/kkm_last_timestamp [20:36:00]Write 4 bytes [20:36:00]NVStorageSaveData done [20:36:00]ExternCall_PrintAddStr [20:36:00]wPrintStart [20:36:00]Write to MH i2c: 01 00 00 E5 09 EE [20:36:00]Write i2c OK [20:36:00]MH_I2C_Read... [20:36:00]Read from MH i2c: 01 [20:36:00]MH_I2C_Read... [20:36:00]Read from MH i2c: 01 07 00 [20:36:00]MH_I2C_Read... [20:36:00]Read from MH i2c: 01 07 00 E5 09 00 00 00 00 00 FF 0F 03 [20:36:00]RasterBufferAndPrint [20:36:00]line Счет N : (1)459565 [20:36:00]line ИНН: 02508201610067 [20:36:00]line Контрольно-Кассовый Чек [20:36:00]line ПРОДАЖА [20:36:00]line ТРК (МРК, ГНК) : 12 [20:36:00]line Товар: 2710124130 [20:36:00]line Аи-92-К-5 [20:36:00]line 2.280 * 65.80 [20:36:00]line = 150.02 [20:36:00]line НДС 12% НСП 1% [20:36:00]line > о реализуемом товаре [20:36:00]line ОКРУГЛЕНИЕ: -0.02 [20:36:00]line ИТОГО: 150.00 [20:36:00]line Внесено: 150.00 [20:36:00]line СДАЧА: 0.00 [20:36:00]line НСП 1% : 1.33 [20:36:00]line НДС 12% : 15.93 [20:36:00]line Наличными: 150.00 [20:36:00]line Безнал.: 0.00 [20:36:00]line Место: АЗС № 72 "Партнер Нефть" [20:36:00]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:36:00]line СНО: Общий режим [20:36:00]line Чек 322 15.07.2024 20:35 [20:36:00]line Смена: 448 ФФД: 1.0 [20:36:00]line ЗНМ: 0300000160 [20:36:00]line РНМ: 0000000000090829 [20:36:00]line Версия ККМ: 001 [20:36:00]line ФМ: 0000000000874718 [20:36:00]line ФД: 165449 [20:36:00]line ФПД: 13047177343825 [20:36:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T203559&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165449&fm=13047177343825&tin=02508201610067®Number=0000000000090829&sum=15000 [20:36:01]OFD Sender: Processing packet 165449 [packets to send 106, broken 105] [20:36:01]ProducePacketName [20:36:01]name=ofd_packets/00165449 [20:36:01]OFD Sender: To server: pG, [20:36:01]CommunicateWithHost lk.salyk.kg:30040 [20:36:01]ConnectInit lk.salyk.kg [20:36:01]written 0, free lines is 4095 [20:36:01]Connected sock=10 [20:36: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 37 31 38 0F 01 00 00 60 88 07 01 39 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 08 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 9A 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 2F 88 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 49 86 02 00 35 04 06 00 0B DD C8 5E F3 51 EB E2 72 B3 48 52 F8 6F [20:36:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 DA 9B 47 00 B1 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 49 86 02 00 F4 03 04 00 B9 2E 95 66 B6 04 01 00 00 A0 69 D1 09 0A 79 AC 8C [20:36:01]CommunicateWithHost err = 0 [20:36:01]CheckOFDResponse [20:36:01]1017 (14) - 77093643461234 [20:36:01]1041 (16) - 0000000000874718 [20:36:01]1040 (4) - 165449 [20:36:01]1012 (4) - 15.07.2024 14:14 [20:36:01]1206 (1) - 0 [20:36:01]OFD Sender: Remove packet 165449 [20:36:01]ProducePacketName [20:36:01]name=ofd_packets/00165449 [20:36:01]NVStorageDeleteData [20:36:01]Write to MH i2c: 01 00 00 0F 0A 19 [20:36:01]Write i2c OK [20:36:01]MH_I2C_Read... [20:36:01]Read from MH i2c: 01 [20:36:01]MH_I2C_Read... [20:36:01]Read from MH i2c: 01 07 00 [20:36:01]MH_I2C_Read... [20:36:01]Read from MH i2c: 01 07 00 0F 0A 00 00 00 00 00 EF 0C 1B [20:36:01]RasterBufferAndPrint [20:36:01]line [20:36:01]line [20:36:01]line [20:36:01]line [20:36:01]line [20:36:01]written 0, free lines is 3318 [20:36:01]MH_Cut [20:36:01]Write to MH i2c: D1 01 00 16 0A 01 F2 [20:36:01]Write i2c OK [20:36:01]MH_I2C_Read... [20:36:01]Read from MH i2c: D1 [20:36:01]MH_I2C_Read... [20:36:01]Read from MH i2c: D1 01 00 [20:36:01]MH_I2C_Read... [20:36:01]Read from MH i2c: D1 01 00 16 0A 00 F1 [20:36:01]Write to MH i2c: 01 00 00 17 0A 21 [20:36:01]Write i2c OK [20:36:01]MH_I2C_Read... [20:36:01]OFD Sender: No OFD packet to send [20:36:02]*** Cut start [20:36:02]*** Partial cut [20:36:02]*** CUTSNS_PIN = 1 [20:36:02]*** CUTSNS_PIN = 0 [20:36:02]*** Brake cut motor [20:36:02]Read from MH i2c: 01 [20:36:02]MH_I2C_Read... [20:36:02]*** Stop cut motor [20:36:02]*** Cut end [20:36:02]Read from MH i2c: 01 07 00 [20:36:02]MH_I2C_Read... [20:36:02]Read from MH i2c: 01 07 00 17 0A 00 00 00 00 00 FF 0F 36 [20:36:02]process_action close_receipt done [20:36:02]requested_data is exist [20:36:02]produce_requested_data [20:36:02]requested_item fm.sn is exist - process it [20:36:02]wFMCommunicate request_size=4 [20:36:02]MH_SAM_APDU [20:36:02]CAPDU: 80 11 00 00 [20:36:02]Write to MH i2c: E2 08 00 18 0A 80 11 00 00 00 00 00 00 9C [20:36:02]Write i2c OK [20:36:02]MH_I2C_Read... [20:36:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:36:02]Read from MH i2c: E2 [20:36:02]MH_I2C_Read... [20:36:02]Read from MH i2c: E2 17 00 [20:36:02]MH_I2C_Read... [20:36:02]Read from MH i2c: E2 17 00 18 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F2 [20:36:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:36:02]wFMCommunicate OK [20:36:02]requested_item fd.num is exist - process it [20:36:02]SAM_PROTO_GetFieldsCounters [20:36:02]wFMCommunicate request_size=4 [20:36:02]MH_SAM_APDU [20:36:02]CAPDU: 80 13 00 00 [20:36:02]Write to MH i2c: E2 08 00 19 0A 80 13 00 00 00 00 00 00 9F [20:36:02]Write i2c OK [20:36:02]MH_I2C_Read... [20:36:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:36:02]Read from MH i2c: E2 [20:36:02]MH_I2C_Read... [20:36:02]Read from MH i2c: E2 62 00 [20:36:02]MH_I2C_Read... [20:36:02]Read from MH i2c: E2 62 00 19 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 49 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 21 [20:36:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 49 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:36:02]wFMCommunicate OK [20:36:02]SAM_PROTO_GetFieldsCounters done [20:36:02]requested_item shift.num is exist - process it [20:36:02]requested_item shift.opened is exist - process it [20:36:02]req_shift_opened [20:36:02]FM_GetShiftState [20:36:02]SAM_PROTO_GetShiftState [20:36:02]wFMCommunicate request_size=4 [20:36:02]MH_SAM_APDU [20:36:02]CAPDU: 80 13 01 00 [20:36:02]Write to MH i2c: E2 08 00 1A 0A 80 13 01 00 00 00 00 00 A1 [20:36:02]Write i2c OK [20:36:02]MH_I2C_Read... [20:36:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:36:03]Read from MH i2c: E2 [20:36:03]MH_I2C_Read... [20:36:03]Read from MH i2c: E2 0E 00 [20:36:03]MH_I2C_Read... [20:36:03]Read from MH i2c: E2 0E 00 1A 0A 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 7A [20:36:03]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [20:36:03]wFMCommunicate OK [20:36:03]SAM_PROTO_GetShiftState done [20:36:03]FM_GetShiftState done [20:36:03]req_shift_opened done [20:36:03]requested_item shift.open_date is exist - process it [20:36:03]req_shift_open_date [20:36:03]req_shift_open_date done [20:36:03]produce_requested_data done [20:36:03]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165449,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [20:36:03]process_action_free close_receipt [20:36:03]json_value_free [20:36:03]json_value_free done [20:36:03]process_json_proto returns [20:36:03]Send response to host [20:36:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165449,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [20:36:03]free response buf [20:36:03]execute_script done [20:36:03]execute_script returns [20:36:03]free content buf [20:36:03]Sock 9.Close socket [20:36:03]Sock 9.Thread stoped [20:36:06]OFD Sender: No OFD packet to send [20:36:11]OFD Sender: No OFD packet to send [20:36:16]OFD Sender: No OFD packet to send [20:36:21]OFD Sender: No OFD packet to send [20:36:26]OFD Sender: No OFD packet to send [20:36:31]OFD Sender: No OFD packet to send [20:36:36]OFD Sender: No OFD packet to send [20:36:41]OFD Sender: No OFD packet to send [20:36:46]OFD Sender: No OFD packet to send [20:36:51]OFD Sender: No OFD packet to send [20:36:56]OFD Sender: No OFD packet to send [20:37:01]OFD Sender: No OFD packet to send [20:37:06]OFD Sender: No OFD packet to send [20:37:11]OFD Sender: No OFD packet to send [20:37:16]OFD Sender: No OFD packet to send [20:37:21]OFD Sender: No OFD packet to send [20:37:26]OFD Sender: No OFD packet to send [20:37:31]OFD Sender: No OFD packet to send [20:37:36]OFD Sender: No OFD packet to send [20:37:41]OFD Sender: No OFD packet to send [20:37:46]OFD Sender: No OFD packet to send [20:37:51]OFD Sender: No OFD packet to send [20:37:56]OFD Sender: No OFD packet to send [20:38:01]OFD Sender: No OFD packet to send [20:38:06]OFD Sender: No OFD packet to send [20:38:11]OFD Sender: No OFD packet to send [20:38:16]OFD Sender: No OFD packet to send [20:38:22]OFD Sender: No OFD packet to send [20:38:27]OFD Sender: No OFD packet to send [20:38:32]OFD Sender: No OFD packet to send [20:38:37]OFD Sender: No OFD packet to send [20:38:42]OFD Sender: No OFD packet to send [20:38:47]OFD Sender: No OFD packet to send [20:38:52]OFD Sender: No OFD packet to send [20:38:57]OFD Sender: No OFD packet to send [20:39:02]OFD Sender: No OFD packet to send [20:39:07]OFD Sender: No OFD packet to send [20:39:12]OFD Sender: No OFD packet to send [20:39:17]OFD Sender: No OFD packet to send [20:39:22]OFD Sender: No OFD packet to send [20:39:27]OFD Sender: No OFD packet to send [20:39:32]OFD Sender: No OFD packet to send [20:39:37]OFD Sender: No OFD packet to send [20:39:42]OFD Sender: No OFD packet to send [20:39:47]OFD Sender: No OFD packet to send [20:39:52]OFD Sender: No OFD packet to send [20:39:57]OFD Sender: No OFD packet to send [20:40:02]OFD Sender: No OFD packet to send [20:40:07]OFD Sender: No OFD packet to send [20:40:12]OFD Sender: No OFD packet to send [20:40:17]OFD Sender: No OFD packet to send [20:40:22]OFD Sender: No OFD packet to send [20:40:27]OFD Sender: No OFD packet to send [20:40:32]OFD Sender: No OFD packet to send [20:40:37]OFD Sender: No OFD packet to send [20:40:42]OFD Sender: No OFD packet to send [20:40:47]OFD Sender: No OFD packet to send [20:40:52]OFD Sender: No OFD packet to send [20:40:57]OFD Sender: No OFD packet to send [20:41:02]OFD Sender: No OFD packet to send [20:41:07]OFD Sender: No OFD packet to send [20:41:12]OFD Sender: No OFD packet to send [20:41:17]OFD Sender: No OFD packet to send [20:41:22]OFD Sender: No OFD packet to send [20:41:27]OFD Sender: No OFD packet to send [20:41:32]OFD Sender: No OFD packet to send [20:41:37]OFD Sender: No OFD packet to send [20:41:42]OFD Sender: No OFD packet to send [20:41:47]OFD Sender: No OFD packet to send [20:41:52]OFD Sender: No OFD packet to send [20:41:57]OFD Sender: No OFD packet to send [20:42:02]OFD Sender: No OFD packet to send [20:42:07]OFD Sender: No OFD packet to send [20:42:08]accept exits with 7 [20:42:08]New connection [20:42:08]New thread 3067190628 created [20:42:08]Thread 3067333988 joined [20:42:08]Waiting for new connection... [20:42:08] Sock 7.Parse request [20:42:08]Sock 7.Check first char [20:42:08]Sock 7.First char is OK [20:42:08]request: POST /json_proto HTTP/1.0 [20:42:08]Method: POST [20:42:08]URL: /json_proto [20:42:08]Method is POST - this is cgi request [20:42:08]url: /json_proto [20:42:08]query_string will be loaded in cgi processing [20:42:08]execute_cgi json_proto POST (null) [20:42:08]execute_cgi path=json_proto method=POST [20:42:08]POST find Content-Length [20:42:08]Host: 172.17.56.4:8080 [20:42:08]Content-Length: 679 [20:42:08]Content-Type: application/json [20:42:08] [20:42:08]POST finish read [20:42:08]Found Content-Length = 679 [20:42:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459566", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "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" ] } } [20:42:08]execute_script... [20:42: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)459566", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "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" ] } } [20:42:08]POST & json_proto [20:42:08]process_json_proto [20:42:08]json parsed OK: [20:42:08]protocol is kg_v1.0 [20:42:08]action value=close_receipt [20:42:08]process_action close_receipt [20:42:08]cmd_close_receipt [20:42:08]MH_GetDate [20:42:08]Write to MH i2c: F0 00 00 1B 0A 14 [20:42:08]Write i2c OK [20:42:08]MH_I2C_Read... [20:42:08]Read from MH i2c: F0 [20:42:08]MH_I2C_Read... [20:42:08]Read from MH i2c: F0 09 00 [20:42:08]MH_I2C_Read... [20:42:08]Read from MH i2c: F0 09 00 1B 0A 00 A1 89 95 66 C9 DC B2 64 FD [20:42:08]GetLastDocTimeStamp 1721075759 [20:42:08]current date 1721076129 [20:42:08]FM_GetShiftState [20:42:08]SAM_PROTO_GetShiftState [20:42:08]wFMCommunicate request_size=4 [20:42:08]MH_SAM_APDU [20:42:08]CAPDU: 80 13 01 00 [20:42:08]Write to MH i2c: E2 08 00 1C 0A 80 13 01 00 00 00 00 00 A3 [20:42:08]Write i2c OK [20:42:08]MH_I2C_Read... [20:42:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:42:09]Read from MH i2c: E2 [20:42:09]MH_I2C_Read... [20:42:09]Read from MH i2c: E2 0E 00 [20:42:09]MH_I2C_Read... [20:42:09]Read from MH i2c: E2 0E 00 1C 0A 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 7C [20:42:09]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [20:42:09]wFMCommunicate OK [20:42:09]SAM_PROTO_GetShiftState done [20:42:09]FM_GetShiftState done [20:42:09]opened in 1721003876 [20:42:09]opened+sec_in_day 1721090276 [20:42:09]quantity*price = 200025 [20:42:09]sum+1 = 200027 [20:42:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 323 15.07.2024 20:42 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165450 ФПД: 77444250584133 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T204209&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165450&fm=77444250584133&tin=02508201610067®Number=0000000000090829&sum=200000 [20:42:10]StoreToDocumentArchive [20:42:10]shift 448 fd 165450 [20:42:10]save to /storage/0448/doc_00165450 [20:42:10]save last doc name /storage/0448/doc_00165450 to /storage/kkm_last_doc_name [20:42:10]save OK [20:42:10]Clear old archive folders... [20:42:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:42:10]tlvbuf is 01B93AD0 [20:42:10]SAM_PROTO_ClearQueue [20:42:10]wFMCommunicate request_size=4 [20:42:10]MH_SAM_APDU [20:42:10]CAPDU: 80 09 00 00 [20:42:10]Write to MH i2c: E2 08 00 29 0A 80 09 00 00 00 00 00 00 A5 [20:42:10]Write i2c OK [20:42:10]MH_I2C_Read... [20:42:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:42:10]Read from MH i2c: E2 [20:42:10]MH_I2C_Read... [20:42:10]Read from MH i2c: E2 03 00 [20:42:10]MH_I2C_Read... [20:42:10]Read from MH i2c: E2 03 00 29 0A 00 90 00 A7 [20:42:10]RAPDU: 90 00 [20:42:10]wFMCommunicate OK [20:42:10]SAM_PROTO_ClearQueue done [20:42:10]KKMCreateOFDPacket [20:42:10]OFDProtocolAddRootSTLVToBuf [20:42:10]FM_MakeSignedData [20:42:10]FM_MakeSignedData [20:42:10]SAM_PROTO_SignData [20:42:10]wFMCommunicate request_size=4 [20:42:10]MH_SAM_APDU [20:42:10]CAPDU: 80 0D 01 02 [20:42:10]Write to MH i2c: E2 08 00 2A 0A 80 0D 01 02 00 00 00 00 AD [20:42:10]Write i2c OK [20:42:10]MH_I2C_Read... [20:42:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:42:10]Read from MH i2c: E2 [20:42:10]MH_I2C_Read... [20:42:10]Read from MH i2c: E2 03 00 [20:42:10]MH_I2C_Read... [20:42:10]Read from MH i2c: E2 03 00 2A 0A 00 90 00 A8 [20:42:10]RAPDU: 90 00 [20:42:10]wFMCommunicate OK [20:42:10]wFMCommunicate request_size=255 [20:42:10]MH_SAM_APDU [20:42:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 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 43 01 00 00 F4 03 04 00 A1 89 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4A 86 02 00 35 04 06 00 46 6F 65 0B [20:42:10]Write to MH i2c: E2 02 01 2B 0A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 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 43 01 00 00 F4 03 04 00 A1 89 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4A 86 02 00 35 04 06 00 46 6F 65 0B 00 00 C1 [20:42:10]Write i2c OK [20:42:10]MH_I2C_Read... [20:42:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:42:10]Read from MH i2c: E2 [20:42:10]MH_I2C_Read... [20:42:10]Read from MH i2c: E2 03 00 [20:42:10]MH_I2C_Read... [20:42:10]Read from MH i2c: E2 03 00 2B 0A 00 90 00 A9 [20:42:10]RAPDU: 90 00 [20:42:10]wFMCommunicate OK [20:42:10]wFMCommunicate request_size=7 [20:42:10]MH_SAM_APDU [20:42:10]CAPDU: 80 0D 02 02 02 C4 45 [20:42:10]Write to MH i2c: E2 0A 00 2C 0A 80 0D 02 02 02 00 C4 45 00 00 BD [20:42:10]Write i2c OK [20:42:10]MH_I2C_Read... [20:42:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:42:10]Read from MH i2c: E2 [20:42:10]MH_I2C_Read... [20:42:10]Read from MH i2c: E2 03 00 [20:42:10]MH_I2C_Read... [20:42:10]Read from MH i2c: E2 03 00 2C 0A 00 90 00 AA [20:42:10]RAPDU: 90 00 [20:42:10]wFMCommunicate OK [20:42:10]wFMCommunicate request_size=4 [20:42:10]MH_SAM_APDU [20:42:10]CAPDU: 80 0D 03 02 [20:42:10]Write to MH i2c: E2 08 00 2D 0A 80 0D 03 02 00 00 00 00 B2 [20:42:10]Write i2c OK [20:42:10]MH_I2C_Read... [20:42:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:42:10]Read from MH i2c: E2 [20:42:10]MH_I2C_Read... [20:42:10]Read from MH i2c: E2 0B 00 [20:42:10]MH_I2C_Read... [20:42:10]Read from MH i2c: E2 0B 00 2D 0A 00 06 43 FE 05 A6 B7 E0 52 90 00 8E [20:42:10]RAPDU: 06 43 FE 05 A6 B7 E0 52 90 00 [20:42:10]wFMCommunicate OK [20:42:10]SAM_PROTO_SignData done [20:42:10]FM_MakeSignedData done [20:42:10]CreateOFDProtocolMessage [20:42:10]wFMCommunicate request_size=4 [20:42:10]MH_SAM_APDU [20:42:10]CAPDU: 80 11 00 00 [20:42:10]Write to MH i2c: E2 08 00 2E 0A 80 11 00 00 00 00 00 00 B2 [20:42:10]Write i2c OK [20:42:10]MH_I2C_Read... [20:42:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:42:10]Read from MH i2c: E2 [20:42:10]MH_I2C_Read... [20:42:10]Read from MH i2c: E2 17 00 [20:42:10]MH_I2C_Read... [20:42:10]Read from MH i2c: E2 17 00 2E 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 08 [20:42:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:42:10]wFMCommunicate OK [20:42:10]CreateOFDProtocolMessage done [20:42:10]OFDSenderStorePacket 165450 [20:42:10]StoreOFDPacket docnum=165450 [20:42:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 0F F9 04 01 AD 24 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 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 43 01 00 00 F4 03 04 00 A1 89 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4A 86 02 00 35 04 06 00 46 6F 65 0B C4 45 06 43 FE 05 A6 B7 E0 52 [20:42:10]CheckFolder [20:42:10]dirname=/storage/ofd_packets [20:42:10]CheckFolder done [20:42:10]ProducePacketName [20:42:10]name=ofd_packets/00165450 [20:42:10]NVStorageSaveData ofd_packets/00165450 [20:42:10]File name is /storage/ofd_packets/00165450 [20:42:10]Write 298 bytes [20:42:10]NVStorageSaveData done [20:42:10]OFDSenderStorePacket done [20:42:10]KKMCreateOFDPacket done [20:42:10]NVStorageSaveData kkm_last_timestamp [20:42:10]File name is /storage/kkm_last_timestamp [20:42:10]Write 4 bytes [20:42:10]NVStorageSaveData done [20:42:10]ExternCall_PrintAddStr [20:42:10]wPrintStart [20:42:10]Write to MH i2c: 01 00 00 2F 0A 39 [20:42:10]Write i2c OK [20:42:10]MH_I2C_Read... [20:42:10]Read from MH i2c: 01 [20:42:10]MH_I2C_Read... [20:42:10]Read from MH i2c: 01 07 00 [20:42:10]MH_I2C_Read... [20:42:10]Read from MH i2c: 01 07 00 2F 0A 00 00 00 00 00 FF 0F 4E [20:42:10]RasterBufferAndPrint [20:42:10]line Счет N : (1)459566 [20:42:10]line ИНН: 02508201610067 [20:42:10]line Контрольно-Кассовый Чек [20:42:10]line ПРОДАЖА [20:42:10]line ТРК (МРК, ГНК) : 11 [20:42:10]line Товар: 2710194210 [20:42:10]line ДТ-К-5 [20:42:10]line 27.820 * 71.90 [20:42:10]line = 2000.26 [20:42:10]line НДС 12% НСП 1% [20:42:10]line > о реализуемом товаре [20:42:10]line ОКРУГЛЕНИЕ: -0.26 [20:42:10]line ИТОГО: 2000.00 [20:42:10]line Внесено: 2000.00 [20:42:10]line СДАЧА: 0.00 [20:42:10]line НСП 1% : 17.70 [20:42:10]line НДС 12% : 212.42 [20:42:10]line Наличными: 2000.00 [20:42:10]line Безнал.: 0.00 [20:42:10]line Место: АЗС № 72 "Партнер Нефть" [20:42:10]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:42:10]line СНО: Общий режим [20:42:10]line Чек 323 15.07.2024 20:42 [20:42:10]line Смена: 448 ФФД: 1.0 [20:42:10]line ЗНМ: 0300000160 [20:42:10]line РНМ: 0000000000090829 [20:42:10]line Версия ККМ: 001 [20:42:10]line ФМ: 0000000000874718 [20:42:10]line ФД: 165450 [20:42:10]line ФПД: 77444250584133 [20:42:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T204209&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165450&fm=77444250584133&tin=02508201610067®Number=0000000000090829&sum=200000 [20:42:11]OFD Sender: Processing packet 165450 [packets to send 106, broken 105] [20:42:11]ProducePacketName [20:42:11]name=ofd_packets/00165450 [20:42:11]OFD Sender: To server: pG, [20:42:11]CommunicateWithHost lk.salyk.kg:30040 [20:42:11]ConnectInit lk.salyk.kg [20:42:11]written 0, free lines is 4095 [20:42:11]Connected sock=10 [20:42:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 0F F9 04 01 AD 24 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 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 43 01 00 00 F4 03 04 00 A1 89 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4A 86 02 00 35 04 06 00 46 6F 65 0B C4 45 06 43 FE 05 A6 B7 E0 52 [20:42:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 58 29 47 00 F2 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4A 86 02 00 F4 03 04 00 2B 30 95 66 B6 04 01 00 00 2F 2E 38 67 4C F0 AD D5 [20:42:11]CommunicateWithHost err = 0 [20:42:11]CheckOFDResponse [20:42:11]1017 (14) - 77093643461234 [20:42:11]1041 (16) - 0000000000874718 [20:42:11]1040 (4) - 165450 [20:42:11]1012 (4) - 15.07.2024 14:20 [20:42:11]1206 (1) - 0 [20:42:11]OFD Sender: Remove packet 165450 [20:42:11]ProducePacketName [20:42:11]name=ofd_packets/00165450 [20:42:11]NVStorageDeleteData [20:42:11]Write to MH i2c: 01 00 00 59 0A 63 [20:42:11]Write i2c OK [20:42:11]MH_I2C_Read... [20:42:11]Read from MH i2c: 01 [20:42:11]MH_I2C_Read... [20:42:11]Read from MH i2c: 01 07 00 [20:42:11]MH_I2C_Read... [20:42:11]Read from MH i2c: 01 07 00 59 0A 00 00 00 00 00 F3 0C 69 [20:42:11]RasterBufferAndPrint [20:42:11]line [20:42:11]line [20:42:11]line [20:42:11]line [20:42:11]line [20:42:11]written 0, free lines is 3322 [20:42:11]MH_Cut [20:42:11]Write to MH i2c: D1 01 00 60 0A 01 3C [20:42:11]Write i2c OK [20:42:11]MH_I2C_Read... [20:42:11]Read from MH i2c: D1 [20:42:11]MH_I2C_Read... [20:42:11]Read from MH i2c: D1 01 00 [20:42:11]MH_I2C_Read... [20:42:11]Read from MH i2c: D1 01 00 60 0A 00 3B [20:42:11]Write to MH i2c: 01 00 00 61 0A 6B [20:42:11]Write i2c OK [20:42:11]MH_I2C_Read... [20:42:11]OFD Sender: No OFD packet to send [20:42:12]*** Cut start [20:42:12]*** Partial cut [20:42:12]*** CUTSNS_PIN = 1 [20:42:12]*** CUTSNS_PIN = 0 [20:42:12]*** Brake cut motor [20:42:12]Read from MH i2c: 01 [20:42:12]MH_I2C_Read... [20:42:12]*** Stop cut motor [20:42:12]*** Cut end [20:42:12]Read from MH i2c: 01 07 00 [20:42:12]MH_I2C_Read... [20:42:12]Read from MH i2c: 01 07 00 61 0A 00 00 00 00 00 FF 0F 80 [20:42:12]process_action close_receipt done [20:42:12]requested_data is exist [20:42:12]produce_requested_data [20:42:12]requested_item fm.sn is exist - process it [20:42:12]wFMCommunicate request_size=4 [20:42:12]MH_SAM_APDU [20:42:12]CAPDU: 80 11 00 00 [20:42:12]Write to MH i2c: E2 08 00 62 0A 80 11 00 00 00 00 00 00 E6 [20:42:12]Write i2c OK [20:42:12]MH_I2C_Read... [20:42:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:42:12]Read from MH i2c: E2 [20:42:12]MH_I2C_Read... [20:42:12]Read from MH i2c: E2 17 00 [20:42:12]MH_I2C_Read... [20:42:12]Read from MH i2c: E2 17 00 62 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3C [20:42:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:42:12]wFMCommunicate OK [20:42:12]requested_item fd.num is exist - process it [20:42:12]SAM_PROTO_GetFieldsCounters [20:42:12]wFMCommunicate request_size=4 [20:42:12]MH_SAM_APDU [20:42:12]CAPDU: 80 13 00 00 [20:42:12]Write to MH i2c: E2 08 00 63 0A 80 13 00 00 00 00 00 00 E9 [20:42:12]Write i2c OK [20:42:12]MH_I2C_Read... [20:42:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:42:12]Read from MH i2c: E2 [20:42:12]MH_I2C_Read... [20:42:12]Read from MH i2c: E2 62 00 [20:42:12]MH_I2C_Read... [20:42:12]Read from MH i2c: E2 62 00 63 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4A 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 43 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 44 01 00 00 19 04 04 00 00 00 00 00 90 00 6F [20:42: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4A 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 43 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 44 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:42:12]wFMCommunicate OK [20:42:12]SAM_PROTO_GetFieldsCounters done [20:42:12]requested_item shift.num is exist - process it [20:42:12]requested_item shift.opened is exist - process it [20:42:12]req_shift_opened [20:42:12]FM_GetShiftState [20:42:12]SAM_PROTO_GetShiftState [20:42:12]wFMCommunicate request_size=4 [20:42:12]MH_SAM_APDU [20:42:12]CAPDU: 80 13 01 00 [20:42:12]Write to MH i2c: E2 08 00 64 0A 80 13 01 00 00 00 00 00 EB [20:42:12]Write i2c OK [20:42:12]MH_I2C_Read... [20:42:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:42:12]Read from MH i2c: E2 [20:42:12]MH_I2C_Read... [20:42:12]Read from MH i2c: E2 0E 00 [20:42:12]MH_I2C_Read... [20:42:12]Read from MH i2c: E2 0E 00 64 0A 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 C4 [20:42:12]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [20:42:12]wFMCommunicate OK [20:42:12]SAM_PROTO_GetShiftState done [20:42:12]FM_GetShiftState done [20:42:12]req_shift_opened done [20:42:12]requested_item shift.open_date is exist - process it [20:42:12]req_shift_open_date [20:42:12]req_shift_open_date done [20:42:12]produce_requested_data done [20:42:12]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165450,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [20:42:12]process_action_free close_receipt [20:42:12]json_value_free [20:42:12]json_value_free done [20:42:12]process_json_proto returns [20:42:12]Send response to host [20:42:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165450,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [20:42:12]free response buf [20:42:12]execute_script done [20:42:12]execute_script returns [20:42:12]free content buf [20:42:12]Sock 7.Close socket [20:42:12]Sock 7.Thread stoped [20:42:16]OFD Sender: No OFD packet to send [20:42:21]OFD Sender: No OFD packet to send [20:42:26]OFD Sender: No OFD packet to send [20:42:31]OFD Sender: No OFD packet to send [20:42:36]OFD Sender: No OFD packet to send [20:42:41]OFD Sender: No OFD packet to send [20:42:46]OFD Sender: No OFD packet to send [20:42:51]OFD Sender: No OFD packet to send [20:42:56]OFD Sender: No OFD packet to send [20:43:01]OFD Sender: No OFD packet to send [20:43:06]OFD Sender: No OFD packet to send [20:43:11]OFD Sender: No OFD packet to send [20:43:16]OFD Sender: No OFD packet to send [20:43:21]OFD Sender: No OFD packet to send [20:43:26]OFD Sender: No OFD packet to send [20:43:31]OFD Sender: No OFD packet to send [20:43:36]OFD Sender: No OFD packet to send [20:43:41]OFD Sender: No OFD packet to send [20:43:46]OFD Sender: No OFD packet to send [20:43:51]OFD Sender: No OFD packet to send [20:43:56]OFD Sender: No OFD packet to send [20:44:01]OFD Sender: No OFD packet to send [20:44:06]OFD Sender: No OFD packet to send [20:44:11]OFD Sender: No OFD packet to send [20:44:16]OFD Sender: No OFD packet to send [20:44:21]OFD Sender: No OFD packet to send [20:44:26]OFD Sender: No OFD packet to send [20:44:31]OFD Sender: No OFD packet to send [20:44:36]OFD Sender: No OFD packet to send [20:44:41]OFD Sender: No OFD packet to send [20:44:46]OFD Sender: No OFD packet to send [20:44:52]OFD Sender: No OFD packet to send [20:44:57]OFD Sender: No OFD packet to send [20:45:02]OFD Sender: No OFD packet to send [20:45:07]OFD Sender: No OFD packet to send [20:45:12]OFD Sender: No OFD packet to send [20:45:17]OFD Sender: No OFD packet to send [20:45:22]OFD Sender: No OFD packet to send [20:45:27]OFD Sender: No OFD packet to send [20:45:32]OFD Sender: No OFD packet to send [20:45:37]OFD Sender: No OFD packet to send [20:45:42]OFD Sender: No OFD packet to send [20:45:47]OFD Sender: No OFD packet to send [20:45:52]OFD Sender: No OFD packet to send [20:45:57]OFD Sender: No OFD packet to send [20:46:02]OFD Sender: No OFD packet to send [20:46:07]OFD Sender: No OFD packet to send [20:46:12]OFD Sender: No OFD packet to send [20:46:17]OFD Sender: No OFD packet to send [20:46:22]OFD Sender: No OFD packet to send [20:46:27]OFD Sender: No OFD packet to send [20:46:32]OFD Sender: No OFD packet to send [20:46:37]OFD Sender: No OFD packet to send [20:46:42]OFD Sender: No OFD packet to send [20:46:47]OFD Sender: No OFD packet to send [20:46:52]OFD Sender: No OFD packet to send [20:46:57]OFD Sender: No OFD packet to send [20:47:02]OFD Sender: No OFD packet to send [20:47:07]OFD Sender: No OFD packet to send [20:47:12]OFD Sender: No OFD packet to send [20:47:17]OFD Sender: No OFD packet to send [20:47:22]OFD Sender: No OFD packet to send [20:47:27]OFD Sender: No OFD packet to send [20:47:32]OFD Sender: No OFD packet to send [20:47:37]OFD Sender: No OFD packet to send [20:47:42]OFD Sender: No OFD packet to send [20:47:47]OFD Sender: No OFD packet to send [20:47:52]OFD Sender: No OFD packet to send [20:47:57]OFD Sender: No OFD packet to send [20:48:02]OFD Sender: No OFD packet to send [20:48:07]OFD Sender: No OFD packet to send [20:48:12]OFD Sender: No OFD packet to send [20:48:17]OFD Sender: No OFD packet to send [20:48:22]OFD Sender: No OFD packet to send [20:48:27]OFD Sender: No OFD packet to send [20:48:32]OFD Sender: No OFD packet to send [20:48:37]OFD Sender: No OFD packet to send [20:48:42]OFD Sender: No OFD packet to send [20:48:47]OFD Sender: No OFD packet to send [20:48:49]accept exits with 9 [20:48:49]New connection [20:48:49]New thread 3067333988 created [20:48:49]Thread 3067190628 joined [20:48:49]Waiting for new connection... [20:48:49] Sock 9.Parse request [20:48:49]Sock 9.Check first char [20:48:49]Sock 9.First char is OK [20:48:49]request: POST /json_proto HTTP/1.0 [20:48:49]Method: POST [20:48:49]URL: /json_proto [20:48:49]Method is POST - this is cgi request [20:48:49]url: /json_proto [20:48:49]query_string will be loaded in cgi processing [20:48:49]execute_cgi json_proto POST (null) [20:48:49]execute_cgi path=json_proto method=POST [20:48:49]POST find Content-Length [20:48:49]Host: 172.17.56.4:8080 [20:48:49]Content-Length: 790 [20:48:49]Content-Type: application/json [20:48:49] [20:48:49]POST finish read [20:48:49]Found Content-Length = 790 [20:48:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459567", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.670, "sum" : 500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:48:49]execute_script... [20:48:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459567", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.670, "sum" : 500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:48:49]POST & json_proto [20:48:49]process_json_proto [20:48:49]json parsed OK: [20:48:49]protocol is kg_v1.0 [20:48:49]action value=close_receipt [20:48:49]process_action close_receipt [20:48:49]cmd_close_receipt [20:48:49]MH_GetDate [20:48:49]Write to MH i2c: F0 00 00 65 0A 5E [20:48:49]Write i2c OK [20:48:49]MH_I2C_Read... [20:48:49]Read from MH i2c: F0 [20:48:49]MH_I2C_Read... [20:48:49]Read from MH i2c: F0 09 00 [20:48:49]MH_I2C_Read... [20:48:49]Read from MH i2c: F0 09 00 65 0A 00 32 8B 95 66 C9 DC B2 64 DA [20:48:49]GetLastDocTimeStamp 1721076129 [20:48:49]current date 1721076530 [20:48:49]FM_GetShiftState [20:48:49]SAM_PROTO_GetShiftState [20:48:49]wFMCommunicate request_size=4 [20:48:49]MH_SAM_APDU [20:48:49]CAPDU: 80 13 01 00 [20:48:49]Write to MH i2c: E2 08 00 66 0A 80 13 01 00 00 00 00 00 ED [20:48:49]Write i2c OK [20:48:49]MH_I2C_Read... [20:48:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:48:49]Read from MH i2c: E2 [20:48:49]MH_I2C_Read... [20:48:49]Read from MH i2c: E2 0E 00 [20:48:49]MH_I2C_Read... [20:48:49]Read from MH i2c: E2 0E 00 66 0A 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 C6 [20:48:49]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [20:48:49]wFMCommunicate OK [20:48:49]SAM_PROTO_GetShiftState done [20:48:49]FM_GetShiftState done [20:48:49]opened in 1721003876 [20:48:49]opened+sec_in_day 1721090276 [20:48:49]quantity*price = 50023 [20:48:49]sum+1 = 50025 [20:48:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.24 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.24 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 324 15.07.2024 20:48 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 165451 ФПД: 265117125736881 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T204850&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165451&fm=265117125736881&tin=02508201610067®Number=0000000000090829&sum=50024 [20:48:50]StoreToDocumentArchive [20:48:50]shift 448 fd 165451 [20:48:50]save to /storage/0448/doc_00165451 [20:48:50]save last doc name /storage/0448/doc_00165451 to /storage/kkm_last_doc_name [20:48:50]save OK [20:48:50]Clear old archive folders... [20:48:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:48:50]tlvbuf is 01B44000 [20:48:50]SAM_PROTO_ClearQueue [20:48:50]wFMCommunicate request_size=4 [20:48:50]MH_SAM_APDU [20:48:50]CAPDU: 80 09 00 00 [20:48:50]Write to MH i2c: E2 08 00 73 0A 80 09 00 00 00 00 00 00 EF [20:48:50]Write i2c OK [20:48:50]MH_I2C_Read... [20:48:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:48:51]Read from MH i2c: E2 [20:48:51]MH_I2C_Read... [20:48:51]Read from MH i2c: E2 03 00 [20:48:51]MH_I2C_Read... [20:48:51]Read from MH i2c: E2 03 00 73 0A 00 90 00 F1 [20:48:51]RAPDU: 90 00 [20:48:51]wFMCommunicate OK [20:48:51]SAM_PROTO_ClearQueue done [20:48:51]KKMCreateOFDPacket [20:48:51]OFDProtocolAddRootSTLVToBuf [20:48:51]FM_MakeSignedData [20:48:51]FM_MakeSignedData [20:48:51]SAM_PROTO_SignData [20:48:51]wFMCommunicate request_size=4 [20:48:51]MH_SAM_APDU [20:48:51]CAPDU: 80 0D 01 02 [20:48:51]Write to MH i2c: E2 08 00 74 0A 80 0D 01 02 00 00 00 00 F7 [20:48:51]Write i2c OK [20:48:51]MH_I2C_Read... [20:48:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:48:51]Read from MH i2c: E2 [20:48:51]MH_I2C_Read... [20:48:51]Read from MH i2c: E2 03 00 [20:48:51]MH_I2C_Read... [20:48:51]Read from MH i2c: E2 03 00 74 0A 00 90 00 F2 [20:48:51]RAPDU: 90 00 [20:48:51]wFMCommunicate OK [20:48:51]wFMCommunicate request_size=255 [20:48:51]MH_SAM_APDU [20:48:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 32 8B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4B 86 02 00 35 04 06 00 F1 [20:48:51]Write to MH i2c: E2 02 01 75 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 32 8B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4B 86 02 00 35 04 06 00 F1 00 00 40 [20:48:51]Write i2c OK [20:48:51]MH_I2C_Read... [20:48:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:48:51]Read from MH i2c: E2 [20:48:51]MH_I2C_Read... [20:48:51]Read from MH i2c: E2 03 00 [20:48:51]MH_I2C_Read... [20:48:51]Read from MH i2c: E2 03 00 75 0A 00 90 00 F3 [20:48:51]RAPDU: 90 00 [20:48:51]wFMCommunicate OK [20:48:51]wFMCommunicate request_size=10 [20:48:51]MH_SAM_APDU [20:48:51]CAPDU: 80 0D 02 02 05 1F 64 1A 79 B1 [20:48:51]Write to MH i2c: E2 0D 00 76 0A 80 0D 02 02 05 00 1F 64 1A 79 B1 00 00 CB [20:48:51]Write i2c OK [20:48:51]MH_I2C_Read... [20:48:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:48:51]Read from MH i2c: E2 [20:48:51]MH_I2C_Read... [20:48:51]Read from MH i2c: E2 03 00 [20:48:51]MH_I2C_Read... [20:48:51]Read from MH i2c: E2 03 00 76 0A 00 90 00 F4 [20:48:51]RAPDU: 90 00 [20:48:51]wFMCommunicate OK [20:48:51]wFMCommunicate request_size=4 [20:48:51]MH_SAM_APDU [20:48:51]CAPDU: 80 0D 03 02 [20:48:51]Write to MH i2c: E2 08 00 77 0A 80 0D 03 02 00 00 00 00 FC [20:48:51]Write i2c OK [20:48:51]MH_I2C_Read... [20:48:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:48:51]Read from MH i2c: E2 [20:48:51]MH_I2C_Read... [20:48:51]Read from MH i2c: E2 0B 00 [20:48:51]MH_I2C_Read... [20:48:51]Read from MH i2c: E2 0B 00 77 0A 00 AC 68 0B 1D 7C 66 E5 C2 90 00 C2 [20:48:51]RAPDU: AC 68 0B 1D 7C 66 E5 C2 90 00 [20:48:51]wFMCommunicate OK [20:48:51]SAM_PROTO_SignData done [20:48:51]FM_MakeSignedData done [20:48:51]CreateOFDProtocolMessage [20:48:51]wFMCommunicate request_size=4 [20:48:51]MH_SAM_APDU [20:48:51]CAPDU: 80 11 00 00 [20:48:51]Write to MH i2c: E2 08 00 78 0A 80 11 00 00 00 00 00 00 FC [20:48:51]Write i2c OK [20:48:51]MH_I2C_Read... [20:48:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:48:51]Read from MH i2c: E2 [20:48:51]MH_I2C_Read... [20:48:51]Read from MH i2c: E2 17 00 [20:48:51]MH_I2C_Read... [20:48:51]Read from MH i2c: E2 17 00 78 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 52 [20:48:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:48:51]wFMCommunicate OK [20:48:51]CreateOFDProtocolMessage done [20:48:51]OFDSenderStorePacket 165451 [20:48:51]StoreOFDPacket docnum=165451 [20:48:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 9E 43 07 01 48 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 32 8B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4B 86 02 00 35 04 06 00 F1 1F 64 1A 79 B1 AC 68 0B 1D 7C 66 E5 C2 [20:48:51]CheckFolder [20:48:51]dirname=/storage/ofd_packets [20:48:51]CheckFolder done [20:48:51]ProducePacketName [20:48:51]name=ofd_packets/00165451 [20:48:51]NVStorageSaveData ofd_packets/00165451 [20:48:51]File name is /storage/ofd_packets/00165451 [20:48:51]Write 301 bytes [20:48:51]NVStorageSaveData done [20:48:51]OFDSenderStorePacket done [20:48:51]KKMCreateOFDPacket done [20:48:51]NVStorageSaveData kkm_last_timestamp [20:48:51]File name is /storage/kkm_last_timestamp [20:48:51]Write 4 bytes [20:48:51]NVStorageSaveData done [20:48:51]ExternCall_PrintAddStr [20:48:51]wPrintStart [20:48:51]Write to MH i2c: 01 00 00 79 0A 83 [20:48:51]Write i2c OK [20:48:51]MH_I2C_Read... [20:48:51]Read from MH i2c: 01 [20:48:51]MH_I2C_Read... [20:48:51]Read from MH i2c: 01 07 00 [20:48:51]MH_I2C_Read... [20:48:51]Read from MH i2c: 01 07 00 79 0A 00 00 00 00 00 FF 0F 98 [20:48:51]RasterBufferAndPrint [20:48:51]line Счет N : (1)459567 [20:48:51]line ИНН: 02508201610067 [20:48:51]line Контрольно-Кассовый Чек [20:48:51]line ПРОДАЖА [20:48:51]line ТРК (МРК, ГНК) : 12 [20:48:51]line Товар: 2710124130 [20:48:51]line Аи-92-К-5 [20:48:51]line 7.670 * 65.22 [20:48:51]line = 500.24 [20:48:51]line НДС 12% НСП 1% [20:48:51]line > о реализуемом товаре [20:48:51]line ИТОГО: 500.24 [20:48:51]line НСП 1% : 4.43 [20:48:51]line НДС 12% : 53.12 [20:48:51]line Наличными: 0.00 [20:48:51]line Безнал.: 500.24 [20:48:51]line Место: АЗС № 72 "Партнер Нефть" [20:48:51]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:48:51]line СНО: Общий режим [20:48:51]line Чек 324 15.07.2024 20:48 [20:48:51]line Смена: 448 ФФД: 1.0 [20:48:51]line ЗНМ: 0300000160 [20:48:51]line РНМ: 0000000000090829 [20:48:51]line Версия ККМ: 001 [20:48:51]line Платежная система: KICB Банк [20:48:51]line ФМ: 0000000000874718 [20:48:51]line ФД: 165451 [20:48:51]line ФПД: 265117125736881 [20:48:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T204850&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165451&fm=265117125736881&tin=02508201610067®Number=0000000000090829&sum=50024 [20:48:51]written 0, free lines is 4095 [20:48:51]OFD Sender: Processing packet 165451 [packets to send 106, broken 105] [20:48:51]ProducePacketName [20:48:51]name=ofd_packets/00165451 [20:48:51]OFD Sender: To server: pG, [20:48:51]CommunicateWithHost lk.salyk.kg:30040 [20:48:51]ConnectInit lk.salyk.kg [20:48:51]Connected sock=10 [20:48:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 9E 43 07 01 48 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 32 8B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4B 86 02 00 35 04 06 00 F1 1F 64 1A 79 B1 AC 68 0B 1D 7C 66 E5 C2 [20:48:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 88 AA 47 00 CF 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 4B 86 02 00 F4 03 04 00 BB 31 95 66 B6 04 01 00 00 A8 89 E8 DA DE 86 5F EC [20:48:51]CommunicateWithHost err = 0 [20:48:51]CheckOFDResponse [20:48:51]1017 (14) - 77093643461234 [20:48:51]1041 (16) - 0000000000874718 [20:48:51]1040 (4) - 165451 [20:48:51]1012 (4) - 15.07.2024 14:27 [20:48:51]1206 (1) - 0 [20:48:51]OFD Sender: Remove packet 165451 [20:48:51]ProducePacketName [20:48:51]name=ofd_packets/00165451 [20:48:51]NVStorageDeleteData [20:48:51]Write to MH i2c: 01 00 00 A2 0A AC [20:48:51]Write i2c OK [20:48:51]MH_I2C_Read... [20:48:51]Read from MH i2c: 01 [20:48:51]MH_I2C_Read... [20:48:51]Read from MH i2c: 01 07 00 [20:48:51]MH_I2C_Read... [20:48:51]Read from MH i2c: 01 07 00 A2 0A 00 00 00 00 00 09 0D C9 [20:48:51]RasterBufferAndPrint [20:48:51]line [20:48:51]line [20:48:51]line [20:48:51]line [20:48:51]line [20:48:51]written 0, free lines is 3346 [20:48:51]MH_Cut [20:48:51]Write to MH i2c: D1 01 00 A9 0A 01 85 [20:48:51]Write i2c OK [20:48:51]MH_I2C_Read... [20:48:51]Read from MH i2c: D1 [20:48:51]MH_I2C_Read... [20:48:51]Read from MH i2c: D1 01 00 [20:48:51]MH_I2C_Read... [20:48:51]Read from MH i2c: D1 01 00 A9 0A 00 84 [20:48:51]Write to MH i2c: 01 00 00 AA 0A B4 [20:48:51]Write i2c OK [20:48:51]MH_I2C_Read... [20:48:52]OFD Sender: No OFD packet to send [20:48:52]*** Cut start [20:48:52]*** Partial cut [20:48:52]*** CUTSNS_PIN = 1 [20:48:52]*** CUTSNS_PIN = 0 [20:48:52]*** Brake cut motor [20:48:53]Read from MH i2c: 01 [20:48:53]MH_I2C_Read... [20:48:53]*** Stop cut motor [20:48:53]*** Cut end [20:48:53]Read from MH i2c: 01 07 00 [20:48:53]MH_I2C_Read... [20:48:53]Read from MH i2c: 01 07 00 AA 0A 00 00 00 00 00 FF 0F C9 [20:48:53]process_action close_receipt done [20:48:53]requested_data is exist [20:48:53]produce_requested_data [20:48:53]requested_item fm.sn is exist - process it [20:48:53]wFMCommunicate request_size=4 [20:48:53]MH_SAM_APDU [20:48:53]CAPDU: 80 11 00 00 [20:48:53]Write to MH i2c: E2 08 00 AB 0A 80 11 00 00 00 00 00 00 2F [20:48:53]Write i2c OK [20:48:53]MH_I2C_Read... [20:48:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:48:53]Read from MH i2c: E2 [20:48:53]MH_I2C_Read... [20:48:53]Read from MH i2c: E2 17 00 [20:48:53]MH_I2C_Read... [20:48:53]Read from MH i2c: E2 17 00 AB 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 85 [20:48:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:48:53]wFMCommunicate OK [20:48:53]requested_item fd.num is exist - process it [20:48:53]SAM_PROTO_GetFieldsCounters [20:48:53]wFMCommunicate request_size=4 [20:48:53]MH_SAM_APDU [20:48:53]CAPDU: 80 13 00 00 [20:48:53]Write to MH i2c: E2 08 00 AC 0A 80 13 00 00 00 00 00 00 32 [20:48:53]Write i2c OK [20:48:53]MH_I2C_Read... [20:48:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:48:53]Read from MH i2c: E2 [20:48:53]MH_I2C_Read... [20:48:53]Read from MH i2c: E2 62 00 [20:48:53]MH_I2C_Read... [20:48:53]Read from MH i2c: E2 62 00 AC 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4B 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 44 01 00 00 5E 04 04 00 44 01 00 00 57 04 04 00 45 01 00 00 19 04 04 00 00 00 00 00 90 00 BC [20:48:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4B 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 44 01 00 00 5E 04 04 00 44 01 00 00 57 04 04 00 45 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:48:53]wFMCommunicate OK [20:48:53]SAM_PROTO_GetFieldsCounters done [20:48:53]requested_item shift.num is exist - process it [20:48:53]requested_item shift.opened is exist - process it [20:48:53]req_shift_opened [20:48:53]FM_GetShiftState [20:48:53]SAM_PROTO_GetShiftState [20:48:53]wFMCommunicate request_size=4 [20:48:53]MH_SAM_APDU [20:48:53]CAPDU: 80 13 01 00 [20:48:53]Write to MH i2c: E2 08 00 AD 0A 80 13 01 00 00 00 00 00 34 [20:48:53]Write i2c OK [20:48:53]MH_I2C_Read... [20:48:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:48:53]Read from MH i2c: E2 [20:48:53]MH_I2C_Read... [20:48:53]Read from MH i2c: E2 0E 00 [20:48:53]MH_I2C_Read... [20:48:53]Read from MH i2c: E2 0E 00 AD 0A 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 0D [20:48:53]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [20:48:53]wFMCommunicate OK [20:48:53]SAM_PROTO_GetShiftState done [20:48:53]FM_GetShiftState done [20:48:53]req_shift_opened done [20:48:53]requested_item shift.open_date is exist - process it [20:48:53]req_shift_open_date [20:48:53]req_shift_open_date done [20:48:53]produce_requested_data done [20:48:53]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165451,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [20:48:53]process_action_free close_receipt [20:48:53]json_value_free [20:48:53]json_value_free done [20:48:53]process_json_proto returns [20:48:53]Send response to host [20:48:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165451,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [20:48:53]free response buf [20:48:53]execute_script done [20:48:53]execute_script returns [20:48:53]free content buf [20:48:53]Sock 9.Close socket [20:48:53]Sock 9.Thread stoped [20:48:57]OFD Sender: No OFD packet to send [20:49:02]OFD Sender: No OFD packet to send [20:49:07]OFD Sender: No OFD packet to send [20:49:12]OFD Sender: No OFD packet to send [20:49:17]OFD Sender: No OFD packet to send [20:49:22]OFD Sender: No OFD packet to send [20:49:27]OFD Sender: No OFD packet to send [20:49:32]OFD Sender: No OFD packet to send [20:49:37]OFD Sender: No OFD packet to send [20:49:42]OFD Sender: No OFD packet to send [20:49:47]OFD Sender: No OFD packet to send [20:49:52]OFD Sender: No OFD packet to send [20:49:57]OFD Sender: No OFD packet to send [20:50:02]OFD Sender: No OFD packet to send [20:50:07]OFD Sender: No OFD packet to send [20:50:12]OFD Sender: No OFD packet to send [20:50:17]OFD Sender: No OFD packet to send [20:50:22]OFD Sender: No OFD packet to send [20:50:27]OFD Sender: No OFD packet to send [20:50:32]OFD Sender: No OFD packet to send [20:50:37]OFD Sender: No OFD packet to send [20:50:42]OFD Sender: No OFD packet to send [20:50:47]OFD Sender: No OFD packet to send [20:50:52]OFD Sender: No OFD packet to send [20:50:57]OFD Sender: No OFD packet to send [20:51:02]OFD Sender: No OFD packet to send [20:51:07]OFD Sender: No OFD packet to send [20:51:12]OFD Sender: No OFD packet to send [20:51:17]OFD Sender: No OFD packet to send [20:51:22]OFD Sender: No OFD packet to send [20:51:27]OFD Sender: No OFD packet to send [20:51:32]OFD Sender: No OFD packet to send [20:51:37]OFD Sender: No OFD packet to send [20:51:39]accept exits with 7 [20:51:39]New connection [20:51:39]New thread 3067190628 created [20:51:39]Thread 3067333988 joined [20:51:39]Waiting for new connection... [20:51:39] Sock 7.Parse request [20:51:39]Sock 7.Check first char [20:51:39]Sock 7.First char is OK [20:51:39]request: POST /json_proto HTTP/1.0 [20:51:39]Method: POST [20:51:39]URL: /json_proto [20:51:39]Method is POST - this is cgi request [20:51:39]url: /json_proto [20:51:39]query_string will be loaded in cgi processing [20:51:39]execute_cgi json_proto POST (null) [20:51:39]execute_cgi path=json_proto method=POST [20:51:39]POST find Content-Length [20:51:39]Host: 172.17.56.4:8080 [20:51:39]Content-Length: 677 [20:51:39]Content-Type: application/json [20:51:39] [20:51:39]POST finish read [20:51:39]Found Content-Length = 677 [20:51:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459569", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.800, "sum" : 250.04, "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" ] } } [20:51:39]execute_script... [20:51: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)459569", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.800, "sum" : 250.04, "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" ] } } [20:51:39]POST & json_proto [20:51:39]process_json_proto [20:51:39]json parsed OK: [20:51:39]protocol is kg_v1.0 [20:51:39]action value=close_receipt [20:51:39]process_action close_receipt [20:51:39]cmd_close_receipt [20:51:39]MH_GetDate [20:51:39]Write to MH i2c: F0 00 00 AE 0A A7 [20:51:39]Write i2c OK [20:51:39]MH_I2C_Read... [20:51:39]Read from MH i2c: F0 [20:51:39]MH_I2C_Read... [20:51:39]Read from MH i2c: F0 09 00 [20:51:39]MH_I2C_Read... [20:51:39]Read from MH i2c: F0 09 00 AE 0A 00 DB 8B 95 66 C9 DC B2 64 CC [20:51:39]GetLastDocTimeStamp 1721076530 [20:51:39]current date 1721076699 [20:51:39]FM_GetShiftState [20:51:39]SAM_PROTO_GetShiftState [20:51:39]wFMCommunicate request_size=4 [20:51:39]MH_SAM_APDU [20:51:39]CAPDU: 80 13 01 00 [20:51:39]Write to MH i2c: E2 08 00 AF 0A 80 13 01 00 00 00 00 00 36 [20:51:39]Write i2c OK [20:51:39]MH_I2C_Read... [20:51:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:51:39]Read from MH i2c: E2 [20:51:39]MH_I2C_Read... [20:51:39]Read from MH i2c: E2 0E 00 [20:51:39]MH_I2C_Read... [20:51:39]Read from MH i2c: E2 0E 00 AF 0A 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 0F [20:51:39]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [20:51:39]wFMCommunicate OK [20:51:39]SAM_PROTO_GetShiftState done [20:51:39]FM_GetShiftState done [20:51:39]opened in 1721003876 [20:51:39]opened+sec_in_day 1721090276 [20:51:39]quantity*price = 25004 [20:51:39]sum+1 = 25005 [20:51:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 325 15.07.2024 20:51 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165452 ФПД: 269813600944566 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T205140&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165452&fm=269813600944566&tin=02508201610067®Number=0000000000090829&sum=25000 [20:51:40]StoreToDocumentArchive [20:51:40]shift 448 fd 165452 [20:51:40]save to /storage/0448/doc_00165452 [20:51:40]save last doc name /storage/0448/doc_00165452 to /storage/kkm_last_doc_name [20:51:40]save OK [20:51:40]Clear old archive folders... [20:51:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:51:40]tlvbuf is 01B26AF0 [20:51:40]SAM_PROTO_ClearQueue [20:51:40]wFMCommunicate request_size=4 [20:51:40]MH_SAM_APDU [20:51:40]CAPDU: 80 09 00 00 [20:51:40]Write to MH i2c: E2 08 00 BC 0A 80 09 00 00 00 00 00 00 38 [20:51:40]Write i2c OK [20:51:40]MH_I2C_Read... [20:51:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:51:40]Read from MH i2c: E2 [20:51:40]MH_I2C_Read... [20:51:40]Read from MH i2c: E2 03 00 [20:51:40]MH_I2C_Read... [20:51:40]Read from MH i2c: E2 03 00 BC 0A 00 90 00 3A [20:51:40]RAPDU: 90 00 [20:51:40]wFMCommunicate OK [20:51:40]SAM_PROTO_ClearQueue done [20:51:40]KKMCreateOFDPacket [20:51:40]OFDProtocolAddRootSTLVToBuf [20:51:40]FM_MakeSignedData [20:51:40]FM_MakeSignedData [20:51:40]SAM_PROTO_SignData [20:51:40]wFMCommunicate request_size=4 [20:51:40]MH_SAM_APDU [20:51:40]CAPDU: 80 0D 01 02 [20:51:40]Write to MH i2c: E2 08 00 BD 0A 80 0D 01 02 00 00 00 00 40 [20:51:40]Write i2c OK [20:51:40]MH_I2C_Read... [20:51:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:51:40]Read from MH i2c: E2 [20:51:40]MH_I2C_Read... [20:51:40]Read from MH i2c: E2 03 00 [20:51:40]MH_I2C_Read... [20:51:40]Read from MH i2c: E2 03 00 BD 0A 00 90 00 3B [20:51:40]RAPDU: 90 00 [20:51:40]wFMCommunicate OK [20:51:40]wFMCommunicate request_size=255 [20:51:40]MH_SAM_APDU [20:51:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 AC 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 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 DC 8B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4C 86 02 00 35 04 06 00 F5 [20:51:40]Write to MH i2c: E2 02 01 BE 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 AC 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 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 DC 8B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4C 86 02 00 35 04 06 00 F5 00 00 9A [20:51:40]Write i2c OK [20:51:40]MH_I2C_Read... [20:51:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:51:40]Read from MH i2c: E2 [20:51:40]MH_I2C_Read... [20:51:40]Read from MH i2c: E2 03 00 [20:51:40]MH_I2C_Read... [20:51:40]Read from MH i2c: E2 03 00 BE 0A 00 90 00 3C [20:51:40]RAPDU: 90 00 [20:51:40]wFMCommunicate OK [20:51:40]wFMCommunicate request_size=10 [20:51:40]MH_SAM_APDU [20:51:40]CAPDU: 80 0D 02 02 05 64 DF D7 01 B6 [20:51:40]Write to MH i2c: E2 0D 00 BF 0A 80 0D 02 02 05 00 64 DF D7 01 B6 00 00 1E [20:51:40]Write i2c OK [20:51:40]MH_I2C_Read... [20:51:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:51:40]Read from MH i2c: E2 [20:51:40]MH_I2C_Read... [20:51:40]Read from MH i2c: E2 03 00 [20:51:40]MH_I2C_Read... [20:51:40]Read from MH i2c: E2 03 00 BF 0A 00 90 00 3D [20:51:40]RAPDU: 90 00 [20:51:40]wFMCommunicate OK [20:51:40]wFMCommunicate request_size=4 [20:51:40]MH_SAM_APDU [20:51:40]CAPDU: 80 0D 03 02 [20:51:40]Write to MH i2c: E2 08 00 C0 0A 80 0D 03 02 00 00 00 00 45 [20:51:40]Write i2c OK [20:51:40]MH_I2C_Read... [20:51:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:51:40]Read from MH i2c: E2 [20:51:40]MH_I2C_Read... [20:51:40]Read from MH i2c: E2 0B 00 [20:51:40]MH_I2C_Read... [20:51:40]Read from MH i2c: E2 0B 00 C0 0A 00 3B 23 FE 46 3D 06 A0 66 90 00 31 [20:51:40]RAPDU: 3B 23 FE 46 3D 06 A0 66 90 00 [20:51:40]wFMCommunicate OK [20:51:40]SAM_PROTO_SignData done [20:51:40]FM_MakeSignedData done [20:51:40]CreateOFDProtocolMessage [20:51:40]wFMCommunicate request_size=4 [20:51:40]MH_SAM_APDU [20:51:40]CAPDU: 80 11 00 00 [20:51:40]Write to MH i2c: E2 08 00 C1 0A 80 11 00 00 00 00 00 00 45 [20:51:40]Write i2c OK [20:51:40]MH_I2C_Read... [20:51:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:51:40]Read from MH i2c: E2 [20:51:40]MH_I2C_Read... [20:51:40]Read from MH i2c: E2 17 00 [20:51:40]MH_I2C_Read... [20:51:40]Read from MH i2c: E2 17 00 C1 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 9B [20:51:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:51:40]wFMCommunicate OK [20:51:40]CreateOFDProtocolMessage done [20:51:40]OFDSenderStorePacket 165452 [20:51:40]StoreOFDPacket docnum=165452 [20:51:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 87 17 07 01 9F EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 D8 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 AC 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 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 DC 8B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4C 86 02 00 35 04 06 00 F5 64 DF D7 01 B6 3B 23 FE 46 3D 06 A0 66 [20:51:40]CheckFolder [20:51:40]dirname=/storage/ofd_packets [20:51:40]CheckFolder done [20:51:40]ProducePacketName [20:51:40]name=ofd_packets/00165452 [20:51:40]NVStorageSaveData ofd_packets/00165452 [20:51:40]File name is /storage/ofd_packets/00165452 [20:51:40]Write 301 bytes [20:51:40]NVStorageSaveData done [20:51:40]OFDSenderStorePacket done [20:51:40]KKMCreateOFDPacket done [20:51:40]NVStorageSaveData kkm_last_timestamp [20:51:40]File name is /storage/kkm_last_timestamp [20:51:40]Write 4 bytes [20:51:40]NVStorageSaveData done [20:51:40]ExternCall_PrintAddStr [20:51:40]wPrintStart [20:51:40]Write to MH i2c: 01 00 00 C2 0A CC [20:51:40]Write i2c OK [20:51:40]MH_I2C_Read... [20:51:40]Read from MH i2c: 01 [20:51:40]MH_I2C_Read... [20:51:40]Read from MH i2c: 01 07 00 [20:51:40]MH_I2C_Read... [20:51:40]Read from MH i2c: 01 07 00 C2 0A 00 00 00 00 00 FF 0F E1 [20:51:40]RasterBufferAndPrint [20:51:40]line Счет N : (1)459569 [20:51:40]line ИНН: 02508201610067 [20:51:40]line Контрольно-Кассовый Чек [20:51:40]line ПРОДАЖА [20:51:40]line ТРК (МРК, ГНК) : 22 [20:51:40]line Товар: 2710124130 [20:51:40]line Аи-92-К-5 [20:51:40]line 3.800 * 65.80 [20:51:40]line = 250.04 [20:51:40]line НДС 12% НСП 1% [20:51:40]line > о реализуемом товаре [20:51:40]line ОКРУГЛЕНИЕ: -0.04 [20:51:40]line ИТОГО: 250.00 [20:51:40]line Внесено: 250.00 [20:51:40]line СДАЧА: 0.00 [20:51:40]line НСП 1% : 2.21 [20:51:40]line НДС 12% : 26.55 [20:51:40]line Наличными: 250.00 [20:51:40]line Безнал.: 0.00 [20:51:40]line Место: АЗС № 72 "Партнер Нефть" [20:51:40]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:51:40]line СНО: Общий режим [20:51:40]line Чек 325 15.07.2024 20:51 [20:51:40]line Смена: 448 ФФД: 1.0 [20:51:40]line ЗНМ: 0300000160 [20:51:40]line РНМ: 0000000000090829 [20:51:40]line Версия ККМ: 001 [20:51:40]line ФМ: 0000000000874718 [20:51:40]line ФД: 165452 [20:51:40]line ФПД: 269813600944566 [20:51:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T205140&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165452&fm=269813600944566&tin=02508201610067®Number=0000000000090829&sum=25000 [20:51:41]OFD Sender: Processing packet 165452 [packets to send 106, broken 105] [20:51:41]ProducePacketName [20:51:41]name=ofd_packets/00165452 [20:51:41]OFD Sender: To server: pG, [20:51:41]CommunicateWithHost lk.salyk.kg:30040 [20:51:41]ConnectInit lk.salyk.kg [20:51:41]written 0, free lines is 4095 [20:51:41]Connected sock=10 [20:51: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 37 31 38 0F 01 00 00 87 17 07 01 9F EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 D8 0E 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 AC 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 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 DC 8B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4C 86 02 00 35 04 06 00 F5 64 DF D7 01 B6 3B 23 FE 46 3D 06 A0 66 [20:51:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 64 97 47 00 A8 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4C 86 02 00 F4 03 04 00 65 32 95 66 B6 04 01 00 00 33 3F 20 94 79 1D D6 D3 [20:51:41]CommunicateWithHost err = 0 [20:51:41]CheckOFDResponse [20:51:41]1017 (14) - 77093643461234 [20:51:41]1041 (16) - 0000000000874718 [20:51:41]1040 (4) - 165452 [20:51:41]1012 (4) - 15.07.2024 14:29 [20:51:41]1206 (1) - 0 [20:51:41]OFD Sender: Remove packet 165452 [20:51:41]ProducePacketName [20:51:41]name=ofd_packets/00165452 [20:51:41]NVStorageDeleteData [20:51:41]Write to MH i2c: 01 00 00 EC 0A F6 [20:51:41]Write i2c OK [20:51:41]MH_I2C_Read... [20:51:41]Read from MH i2c: 01 [20:51:41]MH_I2C_Read... [20:51:41]Read from MH i2c: 01 07 00 [20:51:41]MH_I2C_Read... [20:51:41]Read from MH i2c: 01 07 00 EC 0A 00 00 00 00 00 03 0D 0D [20:51:41]RasterBufferAndPrint [20:51:41]line [20:51:41]line [20:51:41]line [20:51:41]line [20:51:41]line [20:51:41]written 0, free lines is 3337 [20:51:41]MH_Cut [20:51:41]Write to MH i2c: D1 01 00 F3 0A 01 CF [20:51:41]Write i2c OK [20:51:41]MH_I2C_Read... [20:51:41]Read from MH i2c: D1 [20:51:41]MH_I2C_Read... [20:51:41]Read from MH i2c: D1 01 00 [20:51:41]MH_I2C_Read... [20:51:41]Read from MH i2c: D1 01 00 F3 0A 00 CE [20:51:41]Write to MH i2c: 01 00 00 F4 0A FE [20:51:41]Write i2c OK [20:51:41]MH_I2C_Read... [20:51:41]OFD Sender: No OFD packet to send [20:51:42]*** Cut start [20:51:42]*** Partial cut [20:51:42]*** CUTSNS_PIN = 1 [20:51:42]*** CUTSNS_PIN = 0 [20:51:42]*** Brake cut motor [20:51:42]Read from MH i2c: 01 [20:51:42]MH_I2C_Read... [20:51:42]*** Stop cut motor [20:51:42]*** Cut end [20:51:42]Read from MH i2c: 01 07 00 [20:51:42]MH_I2C_Read... [20:51:42]Read from MH i2c: 01 07 00 F4 0A 00 00 00 00 00 FF 0F 13 [20:51:42]process_action close_receipt done [20:51:42]requested_data is exist [20:51:42]produce_requested_data [20:51:42]requested_item fm.sn is exist - process it [20:51:42]wFMCommunicate request_size=4 [20:51:42]MH_SAM_APDU [20:51:42]CAPDU: 80 11 00 00 [20:51:42]Write to MH i2c: E2 08 00 F5 0A 80 11 00 00 00 00 00 00 79 [20:51:42]Write i2c OK [20:51:42]MH_I2C_Read... [20:51:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:51:42]Read from MH i2c: E2 [20:51:42]MH_I2C_Read... [20:51:42]Read from MH i2c: E2 17 00 [20:51:42]MH_I2C_Read... [20:51:42]Read from MH i2c: E2 17 00 F5 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CF [20:51:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:51:42]wFMCommunicate OK [20:51:42]requested_item fd.num is exist - process it [20:51:42]SAM_PROTO_GetFieldsCounters [20:51:42]wFMCommunicate request_size=4 [20:51:42]MH_SAM_APDU [20:51:42]CAPDU: 80 13 00 00 [20:51:42]Write to MH i2c: E2 08 00 F6 0A 80 13 00 00 00 00 00 00 7C [20:51:42]Write i2c OK [20:51:42]MH_I2C_Read... [20:51:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:51:43]Read from MH i2c: E2 [20:51:43]MH_I2C_Read... [20:51:43]Read from MH i2c: E2 62 00 [20:51:43]MH_I2C_Read... [20:51:43]Read from MH i2c: E2 62 00 F6 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4C 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 45 01 00 00 5E 04 04 00 45 01 00 00 57 04 04 00 46 01 00 00 19 04 04 00 00 00 00 00 90 00 0A [20:51:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4C 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 45 01 00 00 5E 04 04 00 45 01 00 00 57 04 04 00 46 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:51:43]wFMCommunicate OK [20:51:43]SAM_PROTO_GetFieldsCounters done [20:51:43]requested_item shift.num is exist - process it [20:51:43]requested_item shift.opened is exist - process it [20:51:43]req_shift_opened [20:51:43]FM_GetShiftState [20:51:43]SAM_PROTO_GetShiftState [20:51:43]wFMCommunicate request_size=4 [20:51:43]MH_SAM_APDU [20:51:43]CAPDU: 80 13 01 00 [20:51:43]Write to MH i2c: E2 08 00 F7 0A 80 13 01 00 00 00 00 00 7E [20:51:43]Write i2c OK [20:51:43]MH_I2C_Read... [20:51:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:51:43]Read from MH i2c: E2 [20:51:43]MH_I2C_Read... [20:51:43]Read from MH i2c: E2 0E 00 [20:51:43]MH_I2C_Read... [20:51:43]Read from MH i2c: E2 0E 00 F7 0A 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 57 [20:51:43]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [20:51:43]wFMCommunicate OK [20:51:43]SAM_PROTO_GetShiftState done [20:51:43]FM_GetShiftState done [20:51:43]req_shift_opened done [20:51:43]requested_item shift.open_date is exist - process it [20:51:43]req_shift_open_date [20:51:43]req_shift_open_date done [20:51:43]produce_requested_data done [20:51:43]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165452,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [20:51:43]process_action_free close_receipt [20:51:43]json_value_free [20:51:43]json_value_free done [20:51:43]process_json_proto returns [20:51:43]Send response to host [20:51:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165452,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [20:51:43]free response buf [20:51:43]execute_script done [20:51:43]execute_script returns [20:51:43]free content buf [20:51:43]Sock 7.Close socket [20:51:43]Sock 7.Thread stoped [20:51:46]OFD Sender: No OFD packet to send [20:51:51]OFD Sender: No OFD packet to send [20:51:53]accept exits with 9 [20:51:53]New connection [20:51:53]New thread 3067333988 created [20:51:53]Thread 3067190628 joined [20:51:53]Waiting for new connection... [20:51:53] Sock 9.Parse request [20:51:53]Sock 9.Check first char [20:51:53]Sock 9.First char is OK [20:51:53]request: POST /json_proto HTTP/1.0 [20:51:53]Method: POST [20:51:53]URL: /json_proto [20:51:53]Method is POST - this is cgi request [20:51:53]url: /json_proto [20:51:53]query_string will be loaded in cgi processing [20:51:53]execute_cgi json_proto POST (null) [20:51:53]execute_cgi path=json_proto method=POST [20:51:53]POST find Content-Length [20:51:53]Host: 172.17.56.4:8080 [20:51:53]Content-Length: 679 [20:51:53]Content-Type: application/json [20:51:53] [20:51:53]POST finish read [20:51:53]Found Content-Length = 679 [20:51:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459568", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 26.430, "sum" : 1900.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1900.00, "total" : 1900.00, "payments": [ { "type": 0, "sum" : 1900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:51:53]execute_script... [20:51:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459568", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 26.430, "sum" : 1900.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1900.00, "total" : 1900.00, "payments": [ { "type": 0, "sum" : 1900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:51:53]POST & json_proto [20:51:53]process_json_proto [20:51:53]json parsed OK: [20:51:53]protocol is kg_v1.0 [20:51:53]action value=close_receipt [20:51:53]process_action close_receipt [20:51:53]cmd_close_receipt [20:51:53]MH_GetDate [20:51:53]Write to MH i2c: F0 00 00 F8 0A F1 [20:51:53]Write i2c OK [20:51:53]MH_I2C_Read... [20:51:53]Read from MH i2c: F0 [20:51:53]MH_I2C_Read... [20:51:53]Read from MH i2c: F0 09 00 [20:51:53]MH_I2C_Read... [20:51:53]Read from MH i2c: F0 09 00 F8 0A 00 EA 8B 95 66 C9 DC B2 64 25 [20:51:53]GetLastDocTimeStamp 1721076700 [20:51:53]current date 1721076714 [20:51:53]FM_GetShiftState [20:51:53]SAM_PROTO_GetShiftState [20:51:53]wFMCommunicate request_size=4 [20:51:53]MH_SAM_APDU [20:51:53]CAPDU: 80 13 01 00 [20:51:53]Write to MH i2c: E2 08 00 F9 0A 80 13 01 00 00 00 00 00 80 [20:51:53]Write i2c OK [20:51:53]MH_I2C_Read... [20:51:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:51:53]Read from MH i2c: E2 [20:51:53]MH_I2C_Read... [20:51:53]Read from MH i2c: E2 0E 00 [20:51:53]MH_I2C_Read... [20:51:53]Read from MH i2c: E2 0E 00 F9 0A 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 59 [20:51:53]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [20:51:53]wFMCommunicate OK [20:51:53]SAM_PROTO_GetShiftState done [20:51:53]FM_GetShiftState done [20:51:53]opened in 1721003876 [20:51:53]opened+sec_in_day 1721090276 [20:51:53]quantity*price = 190031 [20:51:53]sum+1 = 190033 [20:51:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1900.00 Внесено: 1900.00 СДАЧА: 0.00 НСП 1% : 16.82 НДС 12% : 201.80 Наличными: 1900.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 326 15.07.2024 20:51 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165453 ФПД: 102722404441763 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T205154&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165453&fm=102722404441763&tin=02508201610067®Number=0000000000090829&sum=190000 [20:51:54]StoreToDocumentArchive [20:51:54]shift 448 fd 165453 [20:51:54]save to /storage/0448/doc_00165453 [20:51:54]save last doc name /storage/0448/doc_00165453 to /storage/kkm_last_doc_name [20:51:54]save OK [20:51:54]Clear old archive folders... [20:51:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:51:54]tlvbuf is 01B86840 [20:51:54]SAM_PROTO_ClearQueue [20:51:54]wFMCommunicate request_size=4 [20:51:54]MH_SAM_APDU [20:51:54]CAPDU: 80 09 00 00 [20:51:54]Write to MH i2c: E2 08 00 06 0B 80 09 00 00 00 00 00 00 83 [20:51:54]Write i2c OK [20:51:54]MH_I2C_Read... [20:51:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:51:54]Read from MH i2c: E2 [20:51:54]MH_I2C_Read... [20:51:54]Read from MH i2c: E2 03 00 [20:51:54]MH_I2C_Read... [20:51:54]Read from MH i2c: E2 03 00 06 0B 00 90 00 85 [20:51:54]RAPDU: 90 00 [20:51:54]wFMCommunicate OK [20:51:54]SAM_PROTO_ClearQueue done [20:51:54]KKMCreateOFDPacket [20:51:54]OFDProtocolAddRootSTLVToBuf [20:51:54]FM_MakeSignedData [20:51:54]FM_MakeSignedData [20:51:54]SAM_PROTO_SignData [20:51:54]wFMCommunicate request_size=4 [20:51:54]MH_SAM_APDU [20:51:54]CAPDU: 80 0D 01 02 [20:51:54]Write to MH i2c: E2 08 00 07 0B 80 0D 01 02 00 00 00 00 8B [20:51:54]Write i2c OK [20:51:54]MH_I2C_Read... [20:51:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:51:55]Read from MH i2c: E2 [20:51:55]MH_I2C_Read... [20:51:55]Read from MH i2c: E2 03 00 [20:51:55]MH_I2C_Read... [20:51:55]Read from MH i2c: E2 03 00 07 0B 00 90 00 86 [20:51:55]RAPDU: 90 00 [20:51:55]wFMCommunicate OK [20:51:55]wFMCommunicate request_size=255 [20:51:55]MH_SAM_APDU [20:51:55]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 67 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 50 E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 4E 00 00 00 00 07 04 06 00 30 E6 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 EA 8B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4D 86 02 00 35 04 06 00 5D 6C EC 6D [20:51:55]Write to MH i2c: E2 02 01 08 0B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 67 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 50 E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 4E 00 00 00 00 07 04 06 00 30 E6 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 EA 8B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4D 86 02 00 35 04 06 00 5D 6C EC 6D 00 00 56 [20:51:55]Write i2c OK [20:51:55]MH_I2C_Read... [20:51:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:51:55]Read from MH i2c: E2 [20:51:55]MH_I2C_Read... [20:51:55]Read from MH i2c: E2 03 00 [20:51:55]MH_I2C_Read... [20:51:55]Read from MH i2c: E2 03 00 08 0B 00 90 00 87 [20:51:55]RAPDU: 90 00 [20:51:55]wFMCommunicate OK [20:51:55]wFMCommunicate request_size=7 [20:51:55]MH_SAM_APDU [20:51:55]CAPDU: 80 0D 02 02 02 5E A3 [20:51:55]Write to MH i2c: E2 0A 00 09 0B 80 0D 02 02 02 00 5E A3 00 00 93 [20:51:55]Write i2c OK [20:51:55]MH_I2C_Read... [20:51:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:51:55]Read from MH i2c: E2 [20:51:55]MH_I2C_Read... [20:51:55]Read from MH i2c: E2 03 00 [20:51:55]MH_I2C_Read... [20:51:55]Read from MH i2c: E2 03 00 09 0B 00 90 00 88 [20:51:55]RAPDU: 90 00 [20:51:55]wFMCommunicate OK [20:51:55]wFMCommunicate request_size=4 [20:51:55]MH_SAM_APDU [20:51:55]CAPDU: 80 0D 03 02 [20:51:55]Write to MH i2c: E2 08 00 0A 0B 80 0D 03 02 00 00 00 00 90 [20:51:55]Write i2c OK [20:51:55]MH_I2C_Read... [20:51:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:51:55]Read from MH i2c: E2 [20:51:55]MH_I2C_Read... [20:51:55]Read from MH i2c: E2 0B 00 [20:51:55]MH_I2C_Read... [20:51:55]Read from MH i2c: E2 0B 00 0A 0B 00 E3 2A 92 81 F1 AF 25 B7 90 00 2D [20:51:55]RAPDU: E3 2A 92 81 F1 AF 25 B7 90 00 [20:51:55]wFMCommunicate OK [20:51:55]SAM_PROTO_SignData done [20:51:55]FM_MakeSignedData done [20:51:55]CreateOFDProtocolMessage [20:51:55]wFMCommunicate request_size=4 [20:51:55]MH_SAM_APDU [20:51:55]CAPDU: 80 11 00 00 [20:51:55]Write to MH i2c: E2 08 00 0B 0B 80 11 00 00 00 00 00 00 90 [20:51:55]Write i2c OK [20:51:55]MH_I2C_Read... [20:51:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:51:55]Read from MH i2c: E2 [20:51:55]MH_I2C_Read... [20:51:55]Read from MH i2c: E2 17 00 [20:51:55]MH_I2C_Read... [20:51:55]Read from MH i2c: E2 17 00 0B 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E6 [20:51:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:51:55]wFMCommunicate OK [20:51:55]CreateOFDProtocolMessage done [20:51:55]OFDSenderStorePacket 165453 [20:51:55]StoreOFDPacket docnum=165453 [20:51:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 86 D9 04 01 84 E7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 67 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 50 E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 4E 00 00 00 00 07 04 06 00 30 E6 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 EA 8B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4D 86 02 00 35 04 06 00 5D 6C EC 6D 5E A3 E3 2A 92 81 F1 AF 25 B7 [20:51:55]CheckFolder [20:51:55]dirname=/storage/ofd_packets [20:51:55]CheckFolder done [20:51:55]ProducePacketName [20:51:55]name=ofd_packets/00165453 [20:51:55]NVStorageSaveData ofd_packets/00165453 [20:51:55]File name is /storage/ofd_packets/00165453 [20:51:55]Write 298 bytes [20:51:55]NVStorageSaveData done [20:51:55]OFDSenderStorePacket done [20:51:55]KKMCreateOFDPacket done [20:51:55]NVStorageSaveData kkm_last_timestamp [20:51:55]File name is /storage/kkm_last_timestamp [20:51:55]Write 4 bytes [20:51:55]NVStorageSaveData done [20:51:55]ExternCall_PrintAddStr [20:51:55]wPrintStart [20:51:55]Write to MH i2c: 01 00 00 0C 0B 17 [20:51:55]Write i2c OK [20:51:55]MH_I2C_Read... [20:51:55]Read from MH i2c: 01 [20:51:55]MH_I2C_Read... [20:51:55]Read from MH i2c: 01 07 00 [20:51:55]MH_I2C_Read... [20:51:55]Read from MH i2c: 01 07 00 0C 0B 00 00 00 00 00 FF 0F 2C [20:51:55]RasterBufferAndPrint [20:51:55]line Счет N : (1)459568 [20:51:55]line ИНН: 02508201610067 [20:51:55]line Контрольно-Кассовый Чек [20:51:55]line ПРОДАЖА [20:51:55]line ТРК (МРК, ГНК) : 11 [20:51:55]line Товар: 2710194210 [20:51:55]line ДТ-К-5 [20:51:55]line 26.430 * 71.90 [20:51:55]line = 1900.32 [20:51:55]line НДС 12% НСП 1% [20:51:55]line > о реализуемом товаре [20:51:55]line ОКРУГЛЕНИЕ: -0.32 [20:51:55]line ИТОГО: 1900.00 [20:51:55]line Внесено: 1900.00 [20:51:55]line СДАЧА: 0.00 [20:51:55]line НСП 1% : 16.82 [20:51:55]line НДС 12% : 201.80 [20:51:55]line Наличными: 1900.00 [20:51:55]line Безнал.: 0.00 [20:51:55]line Место: АЗС № 72 "Партнер Нефть" [20:51:55]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:51:55]line СНО: Общий режим [20:51:55]line Чек 326 15.07.2024 20:51 [20:51:55]line Смена: 448 ФФД: 1.0 [20:51:55]line ЗНМ: 0300000160 [20:51:55]line РНМ: 0000000000090829 [20:51:55]line Версия ККМ: 001 [20:51:55]line ФМ: 0000000000874718 [20:51:55]line ФД: 165453 [20:51:55]line ФПД: 102722404441763 [20:51:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T205154&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165453&fm=102722404441763&tin=02508201610067®Number=0000000000090829&sum=190000 [20:51:55]OFD Sender: Processing packet 165453 [packets to send 106, broken 105] [20:51:55]ProducePacketName [20:51:55]name=ofd_packets/00165453 [20:51:55]OFD Sender: To server: pG, [20:51:55]CommunicateWithHost lk.salyk.kg:30040 [20:51:55]ConnectInit lk.salyk.kg [20:51:55]written 0, free lines is 4095 [20:51:55]Connected sock=10 [20:51:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 86 D9 04 01 84 E7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 67 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 50 E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 4E 00 00 00 00 07 04 06 00 30 E6 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 EA 8B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4D 86 02 00 35 04 06 00 5D 6C EC 6D 5E A3 E3 2A 92 81 F1 AF 25 B7 [20:51:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 19 5D 47 00 70 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4D 86 02 00 F4 03 04 00 73 32 95 66 B6 04 01 00 00 6F 40 03 E7 4A 7C A8 EE [20:51:56]CommunicateWithHost err = 0 [20:51:56]CheckOFDResponse [20:51:56]1017 (14) - 77093643461234 [20:51:56]1041 (16) - 0000000000874718 [20:51:56]1040 (4) - 165453 [20:51:56]1012 (4) - 15.07.2024 14:30 [20:51:56]1206 (1) - 0 [20:51:56]OFD Sender: Remove packet 165453 [20:51:56]ProducePacketName [20:51:56]name=ofd_packets/00165453 [20:51:56]NVStorageDeleteData [20:51:56]Write to MH i2c: 01 00 00 36 0B 41 [20:51:56]Write i2c OK [20:51:56]MH_I2C_Read... [20:51:56]Read from MH i2c: 01 [20:51:56]MH_I2C_Read... [20:51:56]Read from MH i2c: 01 07 00 [20:51:56]MH_I2C_Read... [20:51:56]Read from MH i2c: 01 07 00 36 0B 00 00 00 00 00 0A 0D 5F [20:51:56]RasterBufferAndPrint [20:51:56]line [20:51:56]line [20:51:56]line [20:51:56]line [20:51:56]line [20:51:56]written 0, free lines is 3344 [20:51:56]MH_Cut [20:51:56]Write to MH i2c: D1 01 00 3D 0B 01 1A [20:51:56]Write i2c OK [20:51:56]MH_I2C_Read... [20:51:56]Read from MH i2c: D1 [20:51:56]MH_I2C_Read... [20:51:56]Read from MH i2c: D1 01 00 [20:51:56]MH_I2C_Read... [20:51:56]Read from MH i2c: D1 01 00 3D 0B 00 19 [20:51:56]Write to MH i2c: 01 00 00 3E 0B 49 [20:51:56]Write i2c OK [20:51:56]MH_I2C_Read... [20:51:56]OFD Sender: No OFD packet to send [20:51:56]*** Cut start [20:51:56]*** Partial cut [20:51:56]*** CUTSNS_PIN = 1 [20:51:56]*** CUTSNS_PIN = 0 [20:51:57]*** Brake cut motor [20:51:57]Read from MH i2c: 01 [20:51:57]MH_I2C_Read... [20:51:57]*** Stop cut motor [20:51:57]*** Cut end [20:51:57]Read from MH i2c: 01 07 00 [20:51:57]MH_I2C_Read... [20:51:57]Read from MH i2c: 01 07 00 3E 0B 00 00 00 00 00 FF 0F 5E [20:51:57]process_action close_receipt done [20:51:57]requested_data is exist [20:51:57]produce_requested_data [20:51:57]requested_item fm.sn is exist - process it [20:51:57]wFMCommunicate request_size=4 [20:51:57]MH_SAM_APDU [20:51:57]CAPDU: 80 11 00 00 [20:51:57]Write to MH i2c: E2 08 00 3F 0B 80 11 00 00 00 00 00 00 C4 [20:51:57]Write i2c OK [20:51:57]MH_I2C_Read... [20:51:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:51:57]Read from MH i2c: E2 [20:51:57]MH_I2C_Read... [20:51:57]Read from MH i2c: E2 17 00 [20:51:57]MH_I2C_Read... [20:51:57]Read from MH i2c: E2 17 00 3F 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1A [20:51:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:51:57]wFMCommunicate OK [20:51:57]requested_item fd.num is exist - process it [20:51:57]SAM_PROTO_GetFieldsCounters [20:51:57]wFMCommunicate request_size=4 [20:51:57]MH_SAM_APDU [20:51:57]CAPDU: 80 13 00 00 [20:51:57]Write to MH i2c: E2 08 00 40 0B 80 13 00 00 00 00 00 00 C7 [20:51:57]Write i2c OK [20:51:57]MH_I2C_Read... [20:51:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:51:57]Read from MH i2c: E2 [20:51:57]MH_I2C_Read... [20:51:57]Read from MH i2c: E2 62 00 [20:51:57]MH_I2C_Read... [20:51:57]Read from MH i2c: E2 62 00 40 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4D 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 46 01 00 00 5E 04 04 00 46 01 00 00 57 04 04 00 47 01 00 00 19 04 04 00 00 00 00 00 90 00 59 [20:51:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4D 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 46 01 00 00 5E 04 04 00 46 01 00 00 57 04 04 00 47 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:51:57]wFMCommunicate OK [20:51:57]SAM_PROTO_GetFieldsCounters done [20:51:57]requested_item shift.num is exist - process it [20:51:57]requested_item shift.opened is exist - process it [20:51:57]req_shift_opened [20:51:57]FM_GetShiftState [20:51:57]SAM_PROTO_GetShiftState [20:51:57]wFMCommunicate request_size=4 [20:51:57]MH_SAM_APDU [20:51:57]CAPDU: 80 13 01 00 [20:51:57]Write to MH i2c: E2 08 00 41 0B 80 13 01 00 00 00 00 00 C9 [20:51:57]Write i2c OK [20:51:57]MH_I2C_Read... [20:51:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:51:57]Read from MH i2c: E2 [20:51:57]MH_I2C_Read... [20:51:57]Read from MH i2c: E2 0E 00 [20:51:57]MH_I2C_Read... [20:51:57]Read from MH i2c: E2 0E 00 41 0B 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 A2 [20:51:57]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [20:51:57]wFMCommunicate OK [20:51:57]SAM_PROTO_GetShiftState done [20:51:57]FM_GetShiftState done [20:51:57]req_shift_opened done [20:51:57]requested_item shift.open_date is exist - process it [20:51:57]req_shift_open_date [20:51:57]req_shift_open_date done [20:51:57]produce_requested_data done [20:51:57]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165453,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [20:51:57]process_action_free close_receipt [20:51:57]json_value_free [20:51:57]json_value_free done [20:51:57]process_json_proto returns [20:51:57]Send response to host [20:51:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165453,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [20:51:57]free response buf [20:51:57]execute_script done [20:51:57]execute_script returns [20:51:57]free content buf [20:51:57]Sock 9.Close socket [20:51:57]Sock 9.Thread stoped [20:52:01]OFD Sender: No OFD packet to send [20:52:06]OFD Sender: No OFD packet to send [20:52:11]OFD Sender: No OFD packet to send [20:52:13]accept exits with 7 [20:52:13]New connection [20:52:13]New thread 3067190628 created [20:52:13]Thread 3067333988 joined [20:52:13]Waiting for new connection... [20:52:13] Sock 7.Parse request [20:52:13]Sock 7.Check first char [20:52:13]Sock 7.First char is OK [20:52:13]request: POST /json_proto HTTP/1.0 [20:52:13]Method: POST [20:52:13]URL: /json_proto [20:52:13]Method is POST - this is cgi request [20:52:13]url: /json_proto [20:52:13]query_string will be loaded in cgi processing [20:52:13]execute_cgi json_proto POST (null) [20:52:13]execute_cgi path=json_proto method=POST [20:52:13]POST find Content-Length [20:52:13]Host: 172.17.56.4:8080 [20:52:13]Content-Length: 677 [20:52:13]Content-Type: application/json [20:52:13] [20:52:13]POST finish read [20:52:13]Found Content-Length = 677 [20:52:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459570", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:52:13]execute_script... [20:52:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459570", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:52:13]POST & json_proto [20:52:13]process_json_proto [20:52:13]json parsed OK: [20:52:13]protocol is kg_v1.0 [20:52:13]action value=close_receipt [20:52:13]process_action close_receipt [20:52:13]cmd_close_receipt [20:52:13]MH_GetDate [20:52:13]Write to MH i2c: F0 00 00 42 0B 3C [20:52:13]Write i2c OK [20:52:13]MH_I2C_Read... [20:52:13]Read from MH i2c: F0 [20:52:13]MH_I2C_Read... [20:52:13]Read from MH i2c: F0 09 00 [20:52:13]MH_I2C_Read... [20:52:13]Read from MH i2c: F0 09 00 42 0B 00 FE 8B 95 66 C9 DC B2 64 84 [20:52:13]GetLastDocTimeStamp 1721076714 [20:52:13]current date 1721076734 [20:52:13]FM_GetShiftState [20:52:13]SAM_PROTO_GetShiftState [20:52:13]wFMCommunicate request_size=4 [20:52:13]MH_SAM_APDU [20:52:13]CAPDU: 80 13 01 00 [20:52:13]Write to MH i2c: E2 08 00 43 0B 80 13 01 00 00 00 00 00 CB [20:52:13]Write i2c OK [20:52:13]MH_I2C_Read... [20:52:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:52:13]Read from MH i2c: E2 [20:52:13]MH_I2C_Read... [20:52:13]Read from MH i2c: E2 0E 00 [20:52:13]MH_I2C_Read... [20:52:13]Read from MH i2c: E2 0E 00 43 0B 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 A4 [20:52:13]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [20:52:13]wFMCommunicate OK [20:52:13]SAM_PROTO_GetShiftState done [20:52:13]FM_GetShiftState done [20:52:13]opened in 1721003876 [20:52:13]opened+sec_in_day 1721090276 [20:52:13]quantity*price = 50008 [20:52:13]sum+1 = 50009 [20:52:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 327 15.07.2024 20:52 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165454 ФПД: 228706447748956 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T205214&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165454&fm=228706447748956&tin=02508201610067®Number=0000000000090829&sum=50000 [20:52:14]StoreToDocumentArchive [20:52:14]shift 448 fd 165454 [20:52:14]save to /storage/0448/doc_00165454 [20:52:14]save last doc name /storage/0448/doc_00165454 to /storage/kkm_last_doc_name [20:52:14]save OK [20:52:14]Clear old archive folders... [20:52:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:52:14]tlvbuf is 01B94070 [20:52:14]SAM_PROTO_ClearQueue [20:52:14]wFMCommunicate request_size=4 [20:52:14]MH_SAM_APDU [20:52:14]CAPDU: 80 09 00 00 [20:52:14]Write to MH i2c: E2 08 00 50 0B 80 09 00 00 00 00 00 00 CD [20:52:14]Write i2c OK [20:52:14]MH_I2C_Read... [20:52:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:52:14]Read from MH i2c: E2 [20:52:14]MH_I2C_Read... [20:52:14]Read from MH i2c: E2 03 00 [20:52:14]MH_I2C_Read... [20:52:14]Read from MH i2c: E2 03 00 50 0B 00 90 00 CF [20:52:14]RAPDU: 90 00 [20:52:14]wFMCommunicate OK [20:52:14]SAM_PROTO_ClearQueue done [20:52:14]KKMCreateOFDPacket [20:52:14]OFDProtocolAddRootSTLVToBuf [20:52:14]FM_MakeSignedData [20:52:14]FM_MakeSignedData [20:52:14]SAM_PROTO_SignData [20:52:14]wFMCommunicate request_size=4 [20:52:14]MH_SAM_APDU [20:52:14]CAPDU: 80 0D 01 02 [20:52:14]Write to MH i2c: E2 08 00 51 0B 80 0D 01 02 00 00 00 00 D5 [20:52:14]Write i2c OK [20:52:14]MH_I2C_Read... [20:52:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:52:14]Read from MH i2c: E2 [20:52:14]MH_I2C_Read... [20:52:14]Read from MH i2c: E2 03 00 [20:52:14]MH_I2C_Read... [20:52:14]Read from MH i2c: E2 03 00 51 0B 00 90 00 D0 [20:52:14]RAPDU: 90 00 [20:52:14]wFMCommunicate OK [20:52:14]wFMCommunicate request_size=255 [20:52:14]MH_SAM_APDU [20:52:14]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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 FE 8B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4E 86 02 00 35 04 06 00 D0 [20:52:14]Write to MH i2c: E2 02 01 52 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 FE 8B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4E 86 02 00 35 04 06 00 D0 00 00 81 [20:52:14]Write i2c OK [20:52:14]MH_I2C_Read... [20:52:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:52:15]Read from MH i2c: E2 [20:52:15]MH_I2C_Read... [20:52:15]Read from MH i2c: E2 03 00 [20:52:15]MH_I2C_Read... [20:52:15]Read from MH i2c: E2 03 00 52 0B 00 90 00 D1 [20:52:15]RAPDU: 90 00 [20:52:15]wFMCommunicate OK [20:52:15]wFMCommunicate request_size=10 [20:52:15]MH_SAM_APDU [20:52:15]CAPDU: 80 0D 02 02 05 01 DE 93 6F 5C [20:52:15]Write to MH i2c: E2 0D 00 53 0B 80 0D 02 02 05 00 01 DE 93 6F 5C 00 00 1F [20:52:15]Write i2c OK [20:52:15]MH_I2C_Read... [20:52:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:52:15]Read from MH i2c: E2 [20:52:15]MH_I2C_Read... [20:52:15]Read from MH i2c: E2 03 00 [20:52:15]MH_I2C_Read... [20:52:15]Read from MH i2c: E2 03 00 53 0B 00 90 00 D2 [20:52:15]RAPDU: 90 00 [20:52:15]wFMCommunicate OK [20:52:15]wFMCommunicate request_size=4 [20:52:15]MH_SAM_APDU [20:52:15]CAPDU: 80 0D 03 02 [20:52:15]Write to MH i2c: E2 08 00 54 0B 80 0D 03 02 00 00 00 00 DA [20:52:15]Write i2c OK [20:52:15]MH_I2C_Read... [20:52:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:52:15]Read from MH i2c: E2 [20:52:15]MH_I2C_Read... [20:52:15]Read from MH i2c: E2 0B 00 [20:52:15]MH_I2C_Read... [20:52:15]Read from MH i2c: E2 0B 00 54 0B 00 37 7C 27 95 3C FE 76 A9 90 00 A3 [20:52:15]RAPDU: 37 7C 27 95 3C FE 76 A9 90 00 [20:52:15]wFMCommunicate OK [20:52:15]SAM_PROTO_SignData done [20:52:15]FM_MakeSignedData done [20:52:15]CreateOFDProtocolMessage [20:52:15]wFMCommunicate request_size=4 [20:52:15]MH_SAM_APDU [20:52:15]CAPDU: 80 11 00 00 [20:52:15]Write to MH i2c: E2 08 00 55 0B 80 11 00 00 00 00 00 00 DA [20:52:15]Write i2c OK [20:52:15]MH_I2C_Read... [20:52:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:52:15]Read from MH i2c: E2 [20:52:15]MH_I2C_Read... [20:52:15]Read from MH i2c: E2 17 00 [20:52:15]MH_I2C_Read... [20:52:15]Read from MH i2c: E2 17 00 55 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 30 [20:52:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:52:15]wFMCommunicate OK [20:52:15]CreateOFDProtocolMessage done [20:52:15]OFDSenderStorePacket 165454 [20:52:15]StoreOFDPacket docnum=165454 [20:52:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 08 83 07 01 BF 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 FE 8B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4E 86 02 00 35 04 06 00 D0 01 DE 93 6F 5C 37 7C 27 95 3C FE 76 A9 [20:52:15]CheckFolder [20:52:15]dirname=/storage/ofd_packets [20:52:15]CheckFolder done [20:52:15]ProducePacketName [20:52:15]name=ofd_packets/00165454 [20:52:15]NVStorageSaveData ofd_packets/00165454 [20:52:15]File name is /storage/ofd_packets/00165454 [20:52:15]Write 301 bytes [20:52:15]NVStorageSaveData done [20:52:15]OFDSenderStorePacket done [20:52:15]KKMCreateOFDPacket done [20:52:15]NVStorageSaveData kkm_last_timestamp [20:52:15]File name is /storage/kkm_last_timestamp [20:52:15]Write 4 bytes [20:52:15]NVStorageSaveData done [20:52:15]ExternCall_PrintAddStr [20:52:15]wPrintStart [20:52:15]Write to MH i2c: 01 00 00 56 0B 61 [20:52:15]Write i2c OK [20:52:15]MH_I2C_Read... [20:52:15]Read from MH i2c: 01 [20:52:15]MH_I2C_Read... [20:52:15]Read from MH i2c: 01 07 00 [20:52:15]MH_I2C_Read... [20:52:15]Read from MH i2c: 01 07 00 56 0B 00 00 00 00 00 FF 0F 76 [20:52:15]RasterBufferAndPrint [20:52:15]line Счет N : (1)459570 [20:52:15]line ИНН: 02508201610067 [20:52:15]line Контрольно-Кассовый Чек [20:52:15]line ПРОДАЖА [20:52:15]line ТРК (МРК, ГНК) : 12 [20:52:15]line Товар: 2710124130 [20:52:15]line Аи-92-К-5 [20:52:15]line 7.600 * 65.80 [20:52:15]line = 500.08 [20:52:15]line НДС 12% НСП 1% [20:52:15]line > о реализуемом товаре [20:52:15]line ОКРУГЛЕНИЕ: -0.08 [20:52:15]line ИТОГО: 500.00 [20:52:15]line Внесено: 500.00 [20:52:15]line СДАЧА: 0.00 [20:52:15]line НСП 1% : 4.42 [20:52:15]line НДС 12% : 53.11 [20:52:15]line Наличными: 500.00 [20:52:15]line Безнал.: 0.00 [20:52:15]line Место: АЗС № 72 "Партнер Нефть" [20:52:15]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:52:15]line СНО: Общий режим [20:52:15]line Чек 327 15.07.2024 20:52 [20:52:15]line Смена: 448 ФФД: 1.0 [20:52:15]line ЗНМ: 0300000160 [20:52:15]line РНМ: 0000000000090829 [20:52:15]line Версия ККМ: 001 [20:52:15]line ФМ: 0000000000874718 [20:52:15]line ФД: 165454 [20:52:15]line ФПД: 228706447748956 [20:52:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T205214&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165454&fm=228706447748956&tin=02508201610067®Number=0000000000090829&sum=50000 [20:52:15]written 0, free lines is 4095 [20:52:15]OFD Sender: Processing packet 165454 [packets to send 106, broken 105] [20:52:15]ProducePacketName [20:52:15]name=ofd_packets/00165454 [20:52:15]OFD Sender: To server: pG, [20:52:15]CommunicateWithHost lk.salyk.kg:30040 [20:52:15]ConnectInit lk.salyk.kg [20:52:15]Connected sock=9 [20:52:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 08 83 07 01 BF 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 FE 8B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4E 86 02 00 35 04 06 00 D0 01 DE 93 6F 5C 37 7C 27 95 3C FE 76 A9 [20:52:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 F3 05 47 00 9B 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4E 86 02 00 F4 03 04 00 87 32 95 66 B6 04 01 00 00 41 DF 31 AD EB 25 8B 66 [20:52:15]CommunicateWithHost err = 0 [20:52:15]CheckOFDResponse [20:52:15]1017 (14) - 77093643461234 [20:52:15]1041 (16) - 0000000000874718 [20:52:15]1040 (4) - 165454 [20:52:15]1012 (4) - 15.07.2024 14:30 [20:52:15]1206 (1) - 0 [20:52:15]OFD Sender: Remove packet 165454 [20:52:15]ProducePacketName [20:52:15]name=ofd_packets/00165454 [20:52:15]NVStorageDeleteData [20:52:15]Write to MH i2c: 01 00 00 80 0B 8B [20:52:15]Write i2c OK [20:52:15]MH_I2C_Read... [20:52:15]Read from MH i2c: 01 [20:52:15]MH_I2C_Read... [20:52:15]Read from MH i2c: 01 07 00 [20:52:15]MH_I2C_Read... [20:52:15]Read from MH i2c: 01 07 00 80 0B 00 00 00 00 00 F0 0C 8E [20:52:15]RasterBufferAndPrint [20:52:15]line [20:52:15]line [20:52:15]line [20:52:15]line [20:52:15]line [20:52:15]written 0, free lines is 3319 [20:52:16]MH_Cut [20:52:16]Write to MH i2c: D1 01 00 87 0B 01 64 [20:52:16]Write i2c OK [20:52:16]MH_I2C_Read... [20:52:16]Read from MH i2c: D1 [20:52:16]MH_I2C_Read... [20:52:16]Read from MH i2c: D1 01 00 [20:52:16]MH_I2C_Read... [20:52:16]Read from MH i2c: D1 01 00 87 0B 00 63 [20:52:16]Write to MH i2c: 01 00 00 88 0B 93 [20:52:16]Write i2c OK [20:52:16]MH_I2C_Read... [20:52:16]OFD Sender: No OFD packet to send [20:52:16]*** Cut start [20:52:16]*** Partial cut [20:52:16]*** CUTSNS_PIN = 1 [20:52:16]*** CUTSNS_PIN = 0 [20:52:16]*** Brake cut motor [20:52:17]Read from MH i2c: 01 [20:52:17]MH_I2C_Read... [20:52:17]*** Stop cut motor [20:52:17]*** Cut end [20:52:17]Read from MH i2c: 01 07 00 [20:52:17]MH_I2C_Read... [20:52:17]Read from MH i2c: 01 07 00 88 0B 00 00 00 00 00 FF 0F A8 [20:52:17]process_action close_receipt done [20:52:17]requested_data is exist [20:52:17]produce_requested_data [20:52:17]requested_item fm.sn is exist - process it [20:52:17]wFMCommunicate request_size=4 [20:52:17]MH_SAM_APDU [20:52:17]CAPDU: 80 11 00 00 [20:52:17]Write to MH i2c: E2 08 00 89 0B 80 11 00 00 00 00 00 00 0E [20:52:17]Write i2c OK [20:52:17]MH_I2C_Read... [20:52:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:52:17]Read from MH i2c: E2 [20:52:17]MH_I2C_Read... [20:52:17]Read from MH i2c: E2 17 00 [20:52:17]MH_I2C_Read... [20:52:17]Read from MH i2c: E2 17 00 89 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 64 [20:52:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:52:17]wFMCommunicate OK [20:52:17]requested_item fd.num is exist - process it [20:52:17]SAM_PROTO_GetFieldsCounters [20:52:17]wFMCommunicate request_size=4 [20:52:17]MH_SAM_APDU [20:52:17]CAPDU: 80 13 00 00 [20:52:17]Write to MH i2c: E2 08 00 8A 0B 80 13 00 00 00 00 00 00 11 [20:52:17]Write i2c OK [20:52:17]MH_I2C_Read... [20:52:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:52:17]Read from MH i2c: E2 [20:52:17]MH_I2C_Read... [20:52:17]Read from MH i2c: E2 62 00 [20:52:17]MH_I2C_Read... [20:52:17]Read from MH i2c: E2 62 00 8A 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4E 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 47 01 00 00 5E 04 04 00 47 01 00 00 57 04 04 00 48 01 00 00 19 04 04 00 00 00 00 00 90 00 A7 [20:52: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4E 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 47 01 00 00 5E 04 04 00 47 01 00 00 57 04 04 00 48 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:52:17]wFMCommunicate OK [20:52:17]SAM_PROTO_GetFieldsCounters done [20:52:17]requested_item shift.num is exist - process it [20:52:17]requested_item shift.opened is exist - process it [20:52:17]req_shift_opened [20:52:17]FM_GetShiftState [20:52:17]SAM_PROTO_GetShiftState [20:52:17]wFMCommunicate request_size=4 [20:52:17]MH_SAM_APDU [20:52:17]CAPDU: 80 13 01 00 [20:52:17]Write to MH i2c: E2 08 00 8B 0B 80 13 01 00 00 00 00 00 13 [20:52:17]Write i2c OK [20:52:17]MH_I2C_Read... [20:52:17]Read from MH i2c: E2 [20:52:17]MH_I2C_Read... [20:52:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:52:17]Read from MH i2c: E2 0E 00 [20:52:17]MH_I2C_Read... [20:52:17]Read from MH i2c: E2 0E 00 8B 0B 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 EC [20:52:17]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [20:52:17]wFMCommunicate OK [20:52:17]SAM_PROTO_GetShiftState done [20:52:17]FM_GetShiftState done [20:52:17]req_shift_opened done [20:52:17]requested_item shift.open_date is exist - process it [20:52:17]req_shift_open_date [20:52:17]req_shift_open_date done [20:52:17]produce_requested_data done [20:52:17]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165454,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [20:52:17]process_action_free close_receipt [20:52:17]json_value_free [20:52:17]json_value_free done [20:52:17]process_json_proto returns [20:52:17]Send response to host [20:52:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165454,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [20:52:17]free response buf [20:52:17]execute_script done [20:52:17]execute_script returns [20:52:17]free content buf [20:52:17]Sock 7.Close socket [20:52:17]Sock 7.Thread stoped [20:52:21]OFD Sender: No OFD packet to send [20:52:26]OFD Sender: No OFD packet to send [20:52:31]OFD Sender: No OFD packet to send [20:52:36]OFD Sender: No OFD packet to send [20:52:41]OFD Sender: No OFD packet to send [20:52:46]OFD Sender: No OFD packet to send [20:52:51]OFD Sender: No OFD packet to send [20:52:56]OFD Sender: No OFD packet to send [20:53:01]OFD Sender: No OFD packet to send [20:53:06]OFD Sender: No OFD packet to send [20:53:11]OFD Sender: No OFD packet to send [20:53:16]OFD Sender: No OFD packet to send [20:53:21]OFD Sender: No OFD packet to send [20:53:26]OFD Sender: No OFD packet to send [20:53:31]OFD Sender: No OFD packet to send [20:53:36]OFD Sender: No OFD packet to send [20:53:41]OFD Sender: No OFD packet to send [20:53:46]OFD Sender: No OFD packet to send [20:53:51]OFD Sender: No OFD packet to send [20:53:56]OFD Sender: No OFD packet to send [20:54:01]OFD Sender: No OFD packet to send [20:54:06]OFD Sender: No OFD packet to send [20:54:11]OFD Sender: No OFD packet to send [20:54:16]OFD Sender: No OFD packet to send [20:54:21]OFD Sender: No OFD packet to send [20:54:26]OFD Sender: No OFD packet to send [20:54:31]OFD Sender: No OFD packet to send [20:54:36]OFD Sender: No OFD packet to send [20:54:41]OFD Sender: No OFD packet to send [20:54:46]OFD Sender: No OFD packet to send [20:54:51]OFD Sender: No OFD packet to send [20:54:56]OFD Sender: No OFD packet to send [20:55:01]OFD Sender: No OFD packet to send [20:55:06]OFD Sender: No OFD packet to send [20:55:11]OFD Sender: No OFD packet to send [20:55:16]OFD Sender: No OFD packet to send [20:55:21]OFD Sender: No OFD packet to send [20:55:26]OFD Sender: No OFD packet to send [20:55:31]OFD Sender: No OFD packet to send [20:55:36]OFD Sender: No OFD packet to send [20:55:41]OFD Sender: No OFD packet to send [20:55:46]OFD Sender: No OFD packet to send [20:55:51]OFD Sender: No OFD packet to send [20:55:56]OFD Sender: No OFD packet to send [20:56:01]OFD Sender: No OFD packet to send [20:56:06]OFD Sender: No OFD packet to send [20:56:11]OFD Sender: No OFD packet to send [20:56:16]OFD Sender: No OFD packet to send [20:56:21]OFD Sender: No OFD packet to send [20:56:26]OFD Sender: No OFD packet to send [20:56:31]OFD Sender: No OFD packet to send [20:56:36]OFD Sender: No OFD packet to send [20:56:41]OFD Sender: No OFD packet to send [20:56:45]accept exits with 10 [20:56:45]New connection [20:56:45]New thread 3067333988 created [20:56:45]Thread 3067190628 joined [20:56:45]Waiting for new connection... [20:56:45] Sock 10.Parse request [20:56:45]Sock 10.Check first char [20:56:45]Sock 10.First char is OK [20:56:45]request: POST /json_proto HTTP/1.0 [20:56:45]Method: POST [20:56:45]URL: /json_proto [20:56:45]Method is POST - this is cgi request [20:56:45]url: /json_proto [20:56:45]query_string will be loaded in cgi processing [20:56:45]execute_cgi json_proto POST (null) [20:56:45]execute_cgi path=json_proto method=POST [20:56:45]POST find Content-Length [20:56:45]Host: 172.17.56.4:8080 [20:56:45]Content-Length: 840 [20:56:45]Content-Type: application/json [20:56:45] [20:56:45]POST finish read [20:56:45]Found Content-Length = 840 [20:56:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459571", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.670, "sum" : 500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:56:45]execute_script... [20:56: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)459571", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.670, "sum" : 500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:56:45]POST & json_proto [20:56:45]process_json_proto [20:56:45]json parsed OK: [20:56:45]protocol is kg_v1.0 [20:56:45]action value=close_receipt [20:56:45]process_action close_receipt [20:56:45]cmd_close_receipt [20:56:45]MH_GetDate [20:56:45]Write to MH i2c: F0 00 00 8C 0B 86 [20:56:45]Write i2c OK [20:56:45]MH_I2C_Read... [20:56:45]Read from MH i2c: F0 [20:56:45]MH_I2C_Read... [20:56:45]Read from MH i2c: F0 09 00 [20:56:45]MH_I2C_Read... [20:56:45]Read from MH i2c: F0 09 00 8C 0B 00 0D 8D 95 66 C9 DC B2 64 DF [20:56:45]GetLastDocTimeStamp 1721076734 [20:56:45]current date 1721077005 [20:56:45]FM_GetShiftState [20:56:45]SAM_PROTO_GetShiftState [20:56:45]wFMCommunicate request_size=4 [20:56:45]MH_SAM_APDU [20:56:45]CAPDU: 80 13 01 00 [20:56:45]Write to MH i2c: E2 08 00 8D 0B 80 13 01 00 00 00 00 00 15 [20:56:45]Write i2c OK [20:56:45]MH_I2C_Read... [20:56:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:56:45]Read from MH i2c: E2 [20:56:45]MH_I2C_Read... [20:56:45]Read from MH i2c: E2 0E 00 [20:56:45]MH_I2C_Read... [20:56:45]Read from MH i2c: E2 0E 00 8D 0B 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 EE [20:56:45]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [20:56:45]wFMCommunicate OK [20:56:45]SAM_PROTO_GetShiftState done [20:56:45]FM_GetShiftState done [20:56:45]opened in 1721003876 [20:56:45]opened+sec_in_day 1721090276 [20:56:45]quantity*price = 50023 [20:56:45]sum+1 = 50025 [20:56:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.24 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.24 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 328 15.07.2024 20:56 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874718 ФД: 165455 ФПД: 255645427104463 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T205645&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165455&fm=255645427104463&tin=02508201610067®Number=0000000000090829&sum=50024 [20:56:46]StoreToDocumentArchive [20:56:46]shift 448 fd 165455 [20:56:46]save to /storage/0448/doc_00165455 [20:56:46]save last doc name /storage/0448/doc_00165455 to /storage/kkm_last_doc_name [20:56:46]save OK [20:56:46]Clear old archive folders... [20:56:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:56:46]tlvbuf is 01B866C0 [20:56:46]SAM_PROTO_ClearQueue [20:56:46]wFMCommunicate request_size=4 [20:56:46]MH_SAM_APDU [20:56:46]CAPDU: 80 09 00 00 [20:56:46]Write to MH i2c: E2 08 00 9A 0B 80 09 00 00 00 00 00 00 17 [20:56:46]Write i2c OK [20:56:46]MH_I2C_Read... [20:56:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:56:46]Read from MH i2c: E2 [20:56:46]MH_I2C_Read... [20:56:46]Read from MH i2c: E2 03 00 [20:56:46]MH_I2C_Read... [20:56:46]Read from MH i2c: E2 03 00 9A 0B 00 90 00 19 [20:56:46]RAPDU: 90 00 [20:56:46]wFMCommunicate OK [20:56:46]SAM_PROTO_ClearQueue done [20:56:46]KKMCreateOFDPacket [20:56:46]OFDProtocolAddRootSTLVToBuf [20:56:46]FM_MakeSignedData [20:56:46]FM_MakeSignedData [20:56:46]SAM_PROTO_SignData [20:56:46]wFMCommunicate request_size=4 [20:56:46]MH_SAM_APDU [20:56:46]CAPDU: 80 0D 01 02 [20:56:46]Write to MH i2c: E2 08 00 9B 0B 80 0D 01 02 00 00 00 00 1F [20:56:46]Write i2c OK [20:56:46]MH_I2C_Read... [20:56:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:56:46]Read from MH i2c: E2 [20:56:46]MH_I2C_Read... [20:56:46]Read from MH i2c: E2 03 00 [20:56:46]MH_I2C_Read... [20:56:46]Read from MH i2c: E2 03 00 9B 0B 00 90 00 1A [20:56:46]RAPDU: 90 00 [20:56:46]wFMCommunicate OK [20:56:46]wFMCommunicate request_size=255 [20:56:46]MH_SAM_APDU [20:56: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 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 0D 8D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4F 86 02 00 35 04 06 00 E8 [20:56:46]Write to MH i2c: E2 02 01 9C 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 0D 8D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4F 86 02 00 35 04 06 00 E8 00 00 44 [20:56:46]Write i2c OK [20:56:46]MH_I2C_Read... [20:56:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:56:46]Read from MH i2c: E2 [20:56:46]MH_I2C_Read... [20:56:46]Read from MH i2c: E2 03 00 [20:56:46]MH_I2C_Read... [20:56:46]Read from MH i2c: E2 03 00 9C 0B 00 90 00 1B [20:56:46]RAPDU: 90 00 [20:56:46]wFMCommunicate OK [20:56:46]wFMCommunicate request_size=10 [20:56:46]MH_SAM_APDU [20:56:46]CAPDU: 80 0D 02 02 05 82 16 DE FA CF [20:56:46]Write to MH i2c: E2 0D 00 9D 0B 80 0D 02 02 05 00 82 16 DE FA CF 00 00 6B [20:56:46]Write i2c OK [20:56:46]MH_I2C_Read... [20:56:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:56:46]Read from MH i2c: E2 [20:56:46]MH_I2C_Read... [20:56:46]Read from MH i2c: E2 03 00 [20:56:46]MH_I2C_Read... [20:56:46]Read from MH i2c: E2 03 00 9D 0B 00 90 00 1C [20:56:46]RAPDU: 90 00 [20:56:46]wFMCommunicate OK [20:56:46]wFMCommunicate request_size=4 [20:56:46]MH_SAM_APDU [20:56:46]CAPDU: 80 0D 03 02 [20:56:46]Write to MH i2c: E2 08 00 9E 0B 80 0D 03 02 00 00 00 00 24 [20:56:46]Write i2c OK [20:56:46]MH_I2C_Read... [20:56:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:56:46]OFD Sender: No OFD packet to send [20:56:46]Read from MH i2c: E2 [20:56:46]MH_I2C_Read... [20:56:46]Read from MH i2c: E2 0B 00 [20:56:46]MH_I2C_Read... [20:56:46]Read from MH i2c: E2 0B 00 9E 0B 00 20 B2 B1 2E 78 DB 4A BE 90 00 31 [20:56:46]RAPDU: 20 B2 B1 2E 78 DB 4A BE 90 00 [20:56:46]wFMCommunicate OK [20:56:46]SAM_PROTO_SignData done [20:56:46]FM_MakeSignedData done [20:56:46]CreateOFDProtocolMessage [20:56:46]wFMCommunicate request_size=4 [20:56:46]MH_SAM_APDU [20:56:46]CAPDU: 80 11 00 00 [20:56:46]Write to MH i2c: E2 08 00 9F 0B 80 11 00 00 00 00 00 00 24 [20:56:46]Write i2c OK [20:56:46]MH_I2C_Read... [20:56:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:56:46]Read from MH i2c: E2 [20:56:46]MH_I2C_Read... [20:56:46]Read from MH i2c: E2 17 00 [20:56:46]MH_I2C_Read... [20:56:46]Read from MH i2c: E2 17 00 9F 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7A [20:56:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:56:46]wFMCommunicate OK [20:56:46]CreateOFDProtocolMessage done [20:56:46]OFDSenderStorePacket 165455 [20:56:46]StoreOFDPacket docnum=165455 [20:56:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 57 45 07 01 DB 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 0D 8D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4F 86 02 00 35 04 06 00 E8 82 16 DE FA CF 20 B2 B1 2E 78 DB 4A BE [20:56:46]CheckFolder [20:56:46]dirname=/storage/ofd_packets [20:56:46]CheckFolder done [20:56:46]ProducePacketName [20:56:46]name=ofd_packets/00165455 [20:56:46]NVStorageSaveData ofd_packets/00165455 [20:56:46]File name is /storage/ofd_packets/00165455 [20:56:46]Write 301 bytes [20:56:46]NVStorageSaveData done [20:56:46]OFDSenderStorePacket done [20:56:46]KKMCreateOFDPacket done [20:56:46]NVStorageSaveData kkm_last_timestamp [20:56:46]File name is /storage/kkm_last_timestamp [20:56:46]Write 4 bytes [20:56:46]NVStorageSaveData done [20:56:46]ExternCall_PrintAddStr [20:56:46]wPrintStart [20:56:46]Write to MH i2c: 01 00 00 A0 0B AB [20:56:46]Write i2c OK [20:56:46]MH_I2C_Read... [20:56:46]Read from MH i2c: 01 [20:56:46]MH_I2C_Read... [20:56:46]Read from MH i2c: 01 07 00 [20:56:46]MH_I2C_Read... [20:56:46]Read from MH i2c: 01 07 00 A0 0B 00 00 00 00 00 FF 0F C0 [20:56:46]RasterBufferAndPrint [20:56:46]line Счет N : (1)459571 [20:56:46]line ИНН: 02508201610067 [20:56:46]line Контрольно-Кассовый Чек [20:56:46]line ПРОДАЖА [20:56:46]line ТРК (МРК, ГНК) : 12 [20:56:46]line Товар: 2710124130 [20:56:46]line Аи-92-К-5 [20:56:46]line 7.670 * 65.22 [20:56:46]line = 500.24 [20:56:46]line НДС 12% НСП 1% [20:56:46]line > о реализуемом товаре [20:56:46]line ИТОГО: 500.24 [20:56:46]line НСП 1% : 4.43 [20:56:46]line НДС 12% : 53.12 [20:56:46]line Наличными: 0.00 [20:56:46]line Безнал.: 500.24 [20:56:46]line Место: АЗС № 72 "Партнер Нефть" [20:56:46]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [20:56:46]line СНО: Общий режим [20:56:46]line Чек 328 15.07.2024 20:56 [20:56:46]line Смена: 448 ФФД: 1.0 [20:56:46]line ЗНМ: 0300000160 [20:56:46]line РНМ: 0000000000090829 [20:56:46]line Версия ККМ: 001 [20:56:46]line Платежная система: АКБ Кыргызстан [20:56:46]line ФМ: 0000000000874718 [20:56:46]line ФД: 165455 [20:56:46]line ФПД: 255645427104463 [20:56:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T205645&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165455&fm=255645427104463&tin=02508201610067®Number=0000000000090829&sum=50024 [20:56:47]written 0, free lines is 4095 [20:56:47]OFD Sender: Processing packet 165455 [packets to send 106, broken 105] [20:56:47]ProducePacketName [20:56:47]name=ofd_packets/00165455 [20:56:47]OFD Sender: To server: pG, [20:56:47]CommunicateWithHost lk.salyk.kg:30040 [20:56:47]ConnectInit lk.salyk.kg [20:56:47]Connected sock=9 [20:56: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 37 31 38 0F 01 00 00 57 45 07 01 DB 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 0D 8D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4F 86 02 00 35 04 06 00 E8 82 16 DE FA CF 20 B2 B1 2E 78 DB 4A BE [20:56:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 BE 50 47 00 93 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 4F 86 02 00 F4 03 04 00 97 33 95 66 B6 04 01 00 00 BF FC 9F EB 28 8F C1 FA [20:56:47]CommunicateWithHost err = 0 [20:56:47]CheckOFDResponse [20:56:47]1017 (14) - 77093643461234 [20:56:47]1041 (16) - 0000000000874718 [20:56:47]1040 (4) - 165455 [20:56:47]1012 (4) - 15.07.2024 14:35 [20:56:47]1206 (1) - 0 [20:56:47]OFD Sender: Remove packet 165455 [20:56:47]ProducePacketName [20:56:47]name=ofd_packets/00165455 [20:56:47]NVStorageDeleteData [20:56:47]Write to MH i2c: 01 00 00 C9 0B D4 [20:56:47]Write i2c OK [20:56:47]MH_I2C_Read... [20:56:47]Read from MH i2c: 01 [20:56:47]MH_I2C_Read... [20:56:47]Read from MH i2c: 01 07 00 [20:56:47]MH_I2C_Read... [20:56:47]Read from MH i2c: 01 07 00 C9 0B 00 00 00 00 00 0A 0D F2 [20:56:47]RasterBufferAndPrint [20:56:47]line [20:56:47]line [20:56:47]line [20:56:47]line [20:56:47]line [20:56:47]written 0, free lines is 3344 [20:56:47]MH_Cut [20:56:47]Write to MH i2c: D1 01 00 D0 0B 01 AD [20:56:47]Write i2c OK [20:56:47]MH_I2C_Read... [20:56:47]Read from MH i2c: D1 [20:56:47]MH_I2C_Read... [20:56:47]Read from MH i2c: D1 01 00 [20:56:47]MH_I2C_Read... [20:56:47]Read from MH i2c: D1 01 00 D0 0B 00 AC [20:56:47]Write to MH i2c: 01 00 00 D1 0B DC [20:56:47]Write i2c OK [20:56:47]MH_I2C_Read... [20:56:47]OFD Sender: No OFD packet to send [20:56:48]*** Cut start [20:56:48]*** Partial cut [20:56:48]*** CUTSNS_PIN = 1 [20:56:48]*** CUTSNS_PIN = 0 [20:56:48]*** Brake cut motor [20:56:48]Read from MH i2c: 01 [20:56:48]MH_I2C_Read... [20:56:48]*** Stop cut motor [20:56:48]*** Cut end [20:56:48]Read from MH i2c: 01 07 00 [20:56:48]MH_I2C_Read... [20:56:48]Read from MH i2c: 01 07 00 D1 0B 00 00 00 00 00 FF 0F F1 [20:56:48]process_action close_receipt done [20:56:48]requested_data is exist [20:56:48]produce_requested_data [20:56:48]requested_item fm.sn is exist - process it [20:56:48]wFMCommunicate request_size=4 [20:56:48]MH_SAM_APDU [20:56:48]CAPDU: 80 11 00 00 [20:56:48]Write to MH i2c: E2 08 00 D2 0B 80 11 00 00 00 00 00 00 57 [20:56:48]Write i2c OK [20:56:48]MH_I2C_Read... [20:56:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:56:48]Read from MH i2c: E2 [20:56:48]MH_I2C_Read... [20:56:48]Read from MH i2c: E2 17 00 [20:56:48]MH_I2C_Read... [20:56:48]Read from MH i2c: E2 17 00 D2 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AD [20:56:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [20:56:48]wFMCommunicate OK [20:56:48]requested_item fd.num is exist - process it [20:56:48]SAM_PROTO_GetFieldsCounters [20:56:48]wFMCommunicate request_size=4 [20:56:48]MH_SAM_APDU [20:56:48]CAPDU: 80 13 00 00 [20:56:48]Write to MH i2c: E2 08 00 D3 0B 80 13 00 00 00 00 00 00 5A [20:56:48]Write i2c OK [20:56:48]MH_I2C_Read... [20:56:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:56:48]Read from MH i2c: E2 [20:56:48]MH_I2C_Read... [20:56:48]Read from MH i2c: E2 62 00 [20:56:48]MH_I2C_Read... [20:56:48]Read from MH i2c: E2 62 00 D3 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4F 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 48 01 00 00 5E 04 04 00 48 01 00 00 57 04 04 00 49 01 00 00 19 04 04 00 00 00 00 00 90 00 F4 [20:56:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 4F 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 48 01 00 00 5E 04 04 00 48 01 00 00 57 04 04 00 49 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:56:48]wFMCommunicate OK [20:56:48]SAM_PROTO_GetFieldsCounters done [20:56:48]requested_item shift.num is exist - process it [20:56:48]requested_item shift.opened is exist - process it [20:56:48]req_shift_opened [20:56:48]FM_GetShiftState [20:56:48]SAM_PROTO_GetShiftState [20:56:48]wFMCommunicate request_size=4 [20:56:48]MH_SAM_APDU [20:56:48]CAPDU: 80 13 01 00 [20:56:48]Write to MH i2c: E2 08 00 D4 0B 80 13 01 00 00 00 00 00 5C [20:56:48]Write i2c OK [20:56:48]MH_I2C_Read... [20:56:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:56:48]Read from MH i2c: E2 [20:56:48]MH_I2C_Read... [20:56:48]Read from MH i2c: E2 0E 00 [20:56:48]MH_I2C_Read... [20:56:48]Read from MH i2c: E2 0E 00 D4 0B 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 35 [20:56:48]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [20:56:48]wFMCommunicate OK [20:56:48]SAM_PROTO_GetShiftState done [20:56:48]FM_GetShiftState done [20:56:48]req_shift_opened done [20:56:48]requested_item shift.open_date is exist - process it [20:56:48]req_shift_open_date [20:56:48]req_shift_open_date done [20:56:48]produce_requested_data done [20:56:48]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165455,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [20:56:48]process_action_free close_receipt [20:56:48]json_value_free [20:56:48]json_value_free done [20:56:48]process_json_proto returns [20:56:48]Send response to host [20:56:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165455,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [20:56:48]free response buf [20:56:48]execute_script done [20:56:48]execute_script returns [20:56:48]free content buf [20:56:48]Sock 10.Close socket [20:56:48]Sock 10.Thread stoped [20:56:52]OFD Sender: No OFD packet to send [20:56:57]OFD Sender: No OFD packet to send [20:57:02]OFD Sender: No OFD packet to send [20:57:07]OFD Sender: No OFD packet to send [20:57:12]OFD Sender: No OFD packet to send [20:57:17]OFD Sender: No OFD packet to send [20:57:22]OFD Sender: No OFD packet to send [20:57:27]OFD Sender: No OFD packet to send [20:57:32]OFD Sender: No OFD packet to send [20:57:37]OFD Sender: No OFD packet to send [20:57:42]OFD Sender: No OFD packet to send [20:57:47]OFD Sender: No OFD packet to send [20:57:52]OFD Sender: No OFD packet to send [20:57:57]OFD Sender: No OFD packet to send [20:58:02]OFD Sender: No OFD packet to send [20:58:07]OFD Sender: No OFD packet to send [20:58:12]OFD Sender: No OFD packet to send [20:58:17]OFD Sender: No OFD packet to send [20:58:22]OFD Sender: No OFD packet to send [20:58:27]OFD Sender: No OFD packet to send [20:58:32]OFD Sender: No OFD packet to send [20:58:37]OFD Sender: No OFD packet to send [20:58:42]OFD Sender: No OFD packet to send [20:58:48]OFD Sender: No OFD packet to send [20:58:53]OFD Sender: No OFD packet to send [20:58:58]OFD Sender: No OFD packet to send [20:59:03]OFD Sender: No OFD packet to send [20:59:08]OFD Sender: No OFD packet to send [20:59:13]OFD Sender: No OFD packet to send [20:59:18]OFD Sender: No OFD packet to send [20:59:23]OFD Sender: No OFD packet to send [20:59:28]OFD Sender: No OFD packet to send [20:59:33]OFD Sender: No OFD packet to send [20:59:38]OFD Sender: No OFD packet to send [20:59:43]OFD Sender: No OFD packet to send [20:59:48]OFD Sender: No OFD packet to send [20:59:53]OFD Sender: No OFD packet to send [20:59:58]OFD Sender: No OFD packet to send [21:00:03]OFD Sender: No OFD packet to send [21:00:08]OFD Sender: No OFD packet to send [21:00:13]OFD Sender: No OFD packet to send [21:00:18]OFD Sender: No OFD packet to send [21:00:23]OFD Sender: No OFD packet to send [21:00:28]OFD Sender: No OFD packet to send [21:00:33]OFD Sender: No OFD packet to send [21:00:38]OFD Sender: No OFD packet to send [21:00:43]OFD Sender: No OFD packet to send [21:00:48]OFD Sender: No OFD packet to send [21:00:53]OFD Sender: No OFD packet to send [21:00:58]OFD Sender: No OFD packet to send [21:01:03]OFD Sender: No OFD packet to send [21:01:08]OFD Sender: No OFD packet to send [21:01:13]OFD Sender: No OFD packet to send [21:01:18]OFD Sender: No OFD packet to send [21:01:20]accept exits with 7 [21:01:20]New connection [21:01:20]New thread 3067190628 created [21:01:20]Thread 3067333988 joined [21:01:20]Waiting for new connection... [21:01:20] Sock 7.Parse request [21:01:20]Sock 7.Check first char [21:01:20]Sock 7.First char is OK [21:01:20]request: POST /json_proto HTTP/1.0 [21:01:20]Method: POST [21:01:20]URL: /json_proto [21:01:20]Method is POST - this is cgi request [21:01:20]url: /json_proto [21:01:20]query_string will be loaded in cgi processing [21:01:20]execute_cgi json_proto POST (null) [21:01:20]execute_cgi path=json_proto method=POST [21:01:20]POST find Content-Length [21:01:20]Host: 172.17.56.4:8080 [21:01:20]Content-Length: 790 [21:01:20]Content-Type: application/json [21:01:20] [21:01:20]POST finish read [21:01:20]Found Content-Length = 790 [21:01:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459572", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.670, "sum" : 500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:01:20]execute_script... [21:01: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)459572", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.670, "sum" : 500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:01:20]POST & json_proto [21:01:20]process_json_proto [21:01:20]json parsed OK: [21:01:20]protocol is kg_v1.0 [21:01:20]action value=close_receipt [21:01:20]process_action close_receipt [21:01:20]cmd_close_receipt [21:01:20]MH_GetDate [21:01:20]Write to MH i2c: F0 00 00 D5 0B CF [21:01:20]Write i2c OK [21:01:20]MH_I2C_Read... [21:01:20]Read from MH i2c: F0 [21:01:20]MH_I2C_Read... [21:01:20]Read from MH i2c: F0 09 00 [21:01:20]MH_I2C_Read... [21:01:20]Read from MH i2c: F0 09 00 D5 0B 00 21 8E 95 66 C9 DC B2 64 3D [21:01:20]GetLastDocTimeStamp 1721077005 [21:01:20]current date 1721077281 [21:01:20]FM_GetShiftState [21:01:20]SAM_PROTO_GetShiftState [21:01:20]wFMCommunicate request_size=4 [21:01:20]MH_SAM_APDU [21:01:20]CAPDU: 80 13 01 00 [21:01:20]Write to MH i2c: E2 08 00 D6 0B 80 13 01 00 00 00 00 00 5E [21:01:20]Write i2c OK [21:01:20]MH_I2C_Read... [21:01:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:01:20]Read from MH i2c: E2 [21:01:20]MH_I2C_Read... [21:01:20]Read from MH i2c: E2 0E 00 [21:01:20]MH_I2C_Read... [21:01:20]Read from MH i2c: E2 0E 00 D6 0B 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 37 [21:01:20]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [21:01:20]wFMCommunicate OK [21:01:20]SAM_PROTO_GetShiftState done [21:01:20]FM_GetShiftState done [21:01:20]opened in 1721003876 [21:01:20]opened+sec_in_day 1721090276 [21:01:20]quantity*price = 50023 [21:01:20]sum+1 = 50025 [21:01:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.24 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.24 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 329 15.07.2024 21:01 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 165456 ФПД: 114403350963088 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T210121&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165456&fm=114403350963088&tin=02508201610067®Number=0000000000090829&sum=50024 [21:01:21]StoreToDocumentArchive [21:01:21]shift 448 fd 165456 [21:01:21]save to /storage/0448/doc_00165456 [21:01:21]save last doc name /storage/0448/doc_00165456 to /storage/kkm_last_doc_name [21:01:21]save OK [21:01:21]Clear old archive folders... [21:01:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:01:21]tlvbuf is 01B52CA0 [21:01:21]SAM_PROTO_ClearQueue [21:01:21]wFMCommunicate request_size=4 [21:01:21]MH_SAM_APDU [21:01:21]CAPDU: 80 09 00 00 [21:01:21]Write to MH i2c: E2 08 00 E3 0B 80 09 00 00 00 00 00 00 60 [21:01:21]Write i2c OK [21:01:21]MH_I2C_Read... [21:01:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:01:21]Read from MH i2c: E2 [21:01:21]MH_I2C_Read... [21:01:21]Read from MH i2c: E2 03 00 [21:01:21]MH_I2C_Read... [21:01:21]Read from MH i2c: E2 03 00 E3 0B 00 90 00 62 [21:01:21]RAPDU: 90 00 [21:01:21]wFMCommunicate OK [21:01:21]SAM_PROTO_ClearQueue done [21:01:21]KKMCreateOFDPacket [21:01:21]OFDProtocolAddRootSTLVToBuf [21:01:21]FM_MakeSignedData [21:01:21]FM_MakeSignedData [21:01:21]SAM_PROTO_SignData [21:01:21]wFMCommunicate request_size=4 [21:01:21]MH_SAM_APDU [21:01:21]CAPDU: 80 0D 01 02 [21:01:21]Write to MH i2c: E2 08 00 E4 0B 80 0D 01 02 00 00 00 00 68 [21:01:21]Write i2c OK [21:01:21]MH_I2C_Read... [21:01:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:01:21]Read from MH i2c: E2 [21:01:21]MH_I2C_Read... [21:01:21]Read from MH i2c: E2 03 00 [21:01:21]MH_I2C_Read... [21:01:21]Read from MH i2c: E2 03 00 E4 0B 00 90 00 63 [21:01:21]RAPDU: 90 00 [21:01:21]wFMCommunicate OK [21:01:21]wFMCommunicate request_size=255 [21:01:21]MH_SAM_APDU [21:01:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 21 8E 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 50 86 02 00 35 04 06 00 68 [21:01:21]Write to MH i2c: E2 02 01 E5 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 21 8E 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 50 86 02 00 35 04 06 00 68 00 00 24 [21:01:21]Write i2c OK [21:01:21]MH_I2C_Read... [21:01:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:01:22]Read from MH i2c: E2 [21:01:22]MH_I2C_Read... [21:01:22]Read from MH i2c: E2 03 00 [21:01:22]MH_I2C_Read... [21:01:22]Read from MH i2c: E2 03 00 E5 0B 00 90 00 64 [21:01:22]RAPDU: 90 00 [21:01:22]wFMCommunicate OK [21:01:22]wFMCommunicate request_size=10 [21:01:22]MH_SAM_APDU [21:01:22]CAPDU: 80 0D 02 02 05 0C 9B 18 63 90 [21:01:22]Write to MH i2c: E2 0D 00 E6 0B 80 0D 02 02 05 00 0C 9B 18 63 90 00 00 27 [21:01:22]Write i2c OK [21:01:22]MH_I2C_Read... [21:01:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:01:22]Read from MH i2c: E2 [21:01:22]MH_I2C_Read... [21:01:22]Read from MH i2c: E2 03 00 [21:01:22]MH_I2C_Read... [21:01:22]Read from MH i2c: E2 03 00 E6 0B 00 90 00 65 [21:01:22]RAPDU: 90 00 [21:01:22]wFMCommunicate OK [21:01:22]wFMCommunicate request_size=4 [21:01:22]MH_SAM_APDU [21:01:22]CAPDU: 80 0D 03 02 [21:01:22]Write to MH i2c: E2 08 00 E7 0B 80 0D 03 02 00 00 00 00 6D [21:01:22]Write i2c OK [21:01:22]MH_I2C_Read... [21:01:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:01:22]Read from MH i2c: E2 [21:01:22]MH_I2C_Read... [21:01:22]Read from MH i2c: E2 0B 00 [21:01:22]MH_I2C_Read... [21:01:22]Read from MH i2c: E2 0B 00 E7 0B 00 0A 36 E5 A0 6B 23 ED 34 90 00 E2 [21:01:22]RAPDU: 0A 36 E5 A0 6B 23 ED 34 90 00 [21:01:22]wFMCommunicate OK [21:01:22]SAM_PROTO_SignData done [21:01:22]FM_MakeSignedData done [21:01:22]CreateOFDProtocolMessage [21:01:22]wFMCommunicate request_size=4 [21:01:22]MH_SAM_APDU [21:01:22]CAPDU: 80 11 00 00 [21:01:22]Write to MH i2c: E2 08 00 E8 0B 80 11 00 00 00 00 00 00 6D [21:01:22]Write i2c OK [21:01:22]MH_I2C_Read... [21:01:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:01:22]Read from MH i2c: E2 [21:01:22]MH_I2C_Read... [21:01:22]Read from MH i2c: E2 17 00 [21:01:22]MH_I2C_Read... [21:01:22]Read from MH i2c: E2 17 00 E8 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C3 [21:01:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:01:22]wFMCommunicate OK [21:01:22]CreateOFDProtocolMessage done [21:01:22]OFDSenderStorePacket 165456 [21:01:22]StoreOFDPacket docnum=165456 [21:01:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 00 AF 07 01 80 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 21 8E 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 50 86 02 00 35 04 06 00 68 0C 9B 18 63 90 0A 36 E5 A0 6B 23 ED 34 [21:01:22]CheckFolder [21:01:22]dirname=/storage/ofd_packets [21:01:22]CheckFolder done [21:01:22]ProducePacketName [21:01:22]name=ofd_packets/00165456 [21:01:22]NVStorageSaveData ofd_packets/00165456 [21:01:22]File name is /storage/ofd_packets/00165456 [21:01:22]Write 301 bytes [21:01:22]NVStorageSaveData done [21:01:22]OFDSenderStorePacket done [21:01:22]KKMCreateOFDPacket done [21:01:22]NVStorageSaveData kkm_last_timestamp [21:01:22]File name is /storage/kkm_last_timestamp [21:01:22]Write 4 bytes [21:01:22]NVStorageSaveData done [21:01:22]ExternCall_PrintAddStr [21:01:22]wPrintStart [21:01:22]Write to MH i2c: 01 00 00 E9 0B F4 [21:01:22]Write i2c OK [21:01:22]MH_I2C_Read... [21:01:22]Read from MH i2c: 01 [21:01:22]MH_I2C_Read... [21:01:22]Read from MH i2c: 01 07 00 [21:01:22]MH_I2C_Read... [21:01:22]Read from MH i2c: 01 07 00 E9 0B 00 00 00 00 00 FF 0F 09 [21:01:22]RasterBufferAndPrint [21:01:22]line Счет N : (1)459572 [21:01:22]line ИНН: 02508201610067 [21:01:22]line Контрольно-Кассовый Чек [21:01:22]line ПРОДАЖА [21:01:22]line ТРК (МРК, ГНК) : 12 [21:01:22]line Товар: 2710124130 [21:01:22]line Аи-92-К-5 [21:01:22]line 7.670 * 65.22 [21:01:22]line = 500.24 [21:01:22]line НДС 12% НСП 1% [21:01:22]line > о реализуемом товаре [21:01:22]line ИТОГО: 500.24 [21:01:22]line НСП 1% : 4.43 [21:01:22]line НДС 12% : 53.12 [21:01:22]line Наличными: 0.00 [21:01:22]line Безнал.: 500.24 [21:01:22]line Место: АЗС № 72 "Партнер Нефть" [21:01:22]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [21:01:22]line СНО: Общий режим [21:01:22]line Чек 329 15.07.2024 21:01 [21:01:22]line Смена: 448 ФФД: 1.0 [21:01:22]line ЗНМ: 0300000160 [21:01:22]line РНМ: 0000000000090829 [21:01:22]line Версия ККМ: 001 [21:01:22]line Платежная система: KICB Банк [21:01:22]line ФМ: 0000000000874718 [21:01:22]line ФД: 165456 [21:01:22]line ФПД: 114403350963088 [21:01:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T210121&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165456&fm=114403350963088&tin=02508201610067®Number=0000000000090829&sum=50024 [21:01:22]OFD Sender: Processing packet 165456 [packets to send 106, broken 105] [21:01:22]ProducePacketName [21:01:22]name=ofd_packets/00165456 [21:01:22]OFD Sender: To server: pG, [21:01:22]CommunicateWithHost lk.salyk.kg:30040 [21:01:22]ConnectInit lk.salyk.kg [21:01:22]written 0, free lines is 4095 [21:01:22]Connected sock=10 [21:01: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 37 31 38 0F 01 00 00 00 AF 07 01 80 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 21 8E 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 50 86 02 00 35 04 06 00 68 0C 9B 18 63 90 0A 36 E5 A0 6B 23 ED 34 [21:01:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 F7 1A 47 00 FC 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 50 86 02 00 F4 03 04 00 AA 34 95 66 B6 04 01 00 00 96 4C 2E 5A 10 A1 5B E2 [21:01:23]CommunicateWithHost err = 0 [21:01:23]CheckOFDResponse [21:01:23]1017 (14) - 77093643461234 [21:01:23]1041 (16) - 0000000000874718 [21:01:23]1040 (4) - 165456 [21:01:23]1012 (4) - 15.07.2024 14:39 [21:01:23]1206 (1) - 0 [21:01:23]OFD Sender: Remove packet 165456 [21:01:23]ProducePacketName [21:01:23]name=ofd_packets/00165456 [21:01:23]NVStorageDeleteData [21:01:23]Write to MH i2c: 01 00 00 12 0C 1E [21:01:23]Write i2c OK [21:01:23]MH_I2C_Read... [21:01:23]Read from MH i2c: 01 [21:01:23]MH_I2C_Read... [21:01:23]Read from MH i2c: 01 07 00 [21:01:23]MH_I2C_Read... [21:01:23]Read from MH i2c: 01 07 00 12 0C 00 00 00 00 00 05 0D 37 [21:01:23]RasterBufferAndPrint [21:01:23]line [21:01:23]line [21:01:23]line [21:01:23]line [21:01:23]line [21:01:23]written 0, free lines is 3340 [21:01:23]MH_Cut [21:01:23]Write to MH i2c: D1 01 00 19 0C 01 F7 [21:01:23]Write i2c OK [21:01:23]MH_I2C_Read... [21:01:23]Read from MH i2c: D1 [21:01:23]MH_I2C_Read... [21:01:23]Read from MH i2c: D1 01 00 [21:01:23]MH_I2C_Read... [21:01:23]Read from MH i2c: D1 01 00 19 0C 00 F6 [21:01:23]Write to MH i2c: 01 00 00 1A 0C 26 [21:01:23]Write i2c OK [21:01:23]MH_I2C_Read... [21:01:23]OFD Sender: No OFD packet to send [21:01:23]*** Cut start [21:01:23]*** Partial cut [21:01:23]*** CUTSNS_PIN = 1 [21:01:23]*** CUTSNS_PIN = 0 [21:01:24]*** Brake cut motor [21:01:24]Read from MH i2c: 01 [21:01:24]MH_I2C_Read... [21:01:24]*** Stop cut motor [21:01:24]*** Cut end [21:01:24]Read from MH i2c: 01 07 00 [21:01:24]MH_I2C_Read... [21:01:24]Read from MH i2c: 01 07 00 1A 0C 00 00 00 00 00 FF 0F 3B [21:01:24]process_action close_receipt done [21:01:24]requested_data is exist [21:01:24]produce_requested_data [21:01:24]requested_item fm.sn is exist - process it [21:01:24]wFMCommunicate request_size=4 [21:01:24]MH_SAM_APDU [21:01:24]CAPDU: 80 11 00 00 [21:01:24]Write to MH i2c: E2 08 00 1B 0C 80 11 00 00 00 00 00 00 A1 [21:01:24]Write i2c OK [21:01:24]MH_I2C_Read... [21:01:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:01:24]Read from MH i2c: E2 [21:01:24]MH_I2C_Read... [21:01:24]Read from MH i2c: E2 17 00 [21:01:24]MH_I2C_Read... [21:01:24]Read from MH i2c: E2 17 00 1B 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F7 [21:01:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:01:24]wFMCommunicate OK [21:01:24]requested_item fd.num is exist - process it [21:01:24]SAM_PROTO_GetFieldsCounters [21:01:24]wFMCommunicate request_size=4 [21:01:24]MH_SAM_APDU [21:01:24]CAPDU: 80 13 00 00 [21:01:24]Write to MH i2c: E2 08 00 1C 0C 80 13 00 00 00 00 00 00 A4 [21:01:24]Write i2c OK [21:01:24]MH_I2C_Read... [21:01:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:01:24]Read from MH i2c: E2 [21:01:24]MH_I2C_Read... [21:01:24]Read from MH i2c: E2 62 00 [21:01:24]MH_I2C_Read... [21:01:24]Read from MH i2c: E2 62 00 1C 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 50 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 42 [21:01: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 50 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:01:24]wFMCommunicate OK [21:01:24]SAM_PROTO_GetFieldsCounters done [21:01:24]requested_item shift.num is exist - process it [21:01:24]requested_item shift.opened is exist - process it [21:01:24]req_shift_opened [21:01:24]FM_GetShiftState [21:01:24]SAM_PROTO_GetShiftState [21:01:24]wFMCommunicate request_size=4 [21:01:24]MH_SAM_APDU [21:01:24]CAPDU: 80 13 01 00 [21:01:24]Write to MH i2c: E2 08 00 1D 0C 80 13 01 00 00 00 00 00 A6 [21:01:24]Write i2c OK [21:01:24]MH_I2C_Read... [21:01:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:01:24]Read from MH i2c: E2 [21:01:24]MH_I2C_Read... [21:01:24]Read from MH i2c: E2 0E 00 [21:01:24]MH_I2C_Read... [21:01:24]Read from MH i2c: E2 0E 00 1D 0C 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 7F [21:01:24]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [21:01:24]wFMCommunicate OK [21:01:24]SAM_PROTO_GetShiftState done [21:01:24]FM_GetShiftState done [21:01:24]req_shift_opened done [21:01:24]requested_item shift.open_date is exist - process it [21:01:24]req_shift_open_date [21:01:24]req_shift_open_date done [21:01:24]produce_requested_data done [21:01:24]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165456,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [21:01:24]process_action_free close_receipt [21:01:24]json_value_free [21:01:24]json_value_free done [21:01:24]process_json_proto returns [21:01:24]Send response to host [21:01:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165456,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [21:01:24]free response buf [21:01:24]execute_script done [21:01:24]execute_script returns [21:01:24]free content buf [21:01:24]Sock 7.Close socket [21:01:24]Sock 7.Thread stoped [21:01:28]OFD Sender: No OFD packet to send [21:01:33]OFD Sender: No OFD packet to send [21:01:38]OFD Sender: No OFD packet to send [21:01:43]OFD Sender: No OFD packet to send [21:01:48]OFD Sender: No OFD packet to send [21:01:53]OFD Sender: No OFD packet to send [21:01:58]OFD Sender: No OFD packet to send [21:02:03]OFD Sender: No OFD packet to send [21:02:08]OFD Sender: No OFD packet to send [21:02:13]OFD Sender: No OFD packet to send [21:02:18]OFD Sender: No OFD packet to send [21:02:23]OFD Sender: No OFD packet to send [21:02:28]OFD Sender: No OFD packet to send [21:02:33]OFD Sender: No OFD packet to send [21:02:38]OFD Sender: No OFD packet to send [21:02:43]OFD Sender: No OFD packet to send [21:02:48]OFD Sender: No OFD packet to send [21:02:53]OFD Sender: No OFD packet to send [21:02:58]OFD Sender: No OFD packet to send [21:03:03]OFD Sender: No OFD packet to send [21:03:08]OFD Sender: No OFD packet to send [21:03:13]OFD Sender: No OFD packet to send [21:03:18]OFD Sender: No OFD packet to send [21:03:23]OFD Sender: No OFD packet to send [21:03:28]OFD Sender: No OFD packet to send [21:03:33]OFD Sender: No OFD packet to send [21:03:38]OFD Sender: No OFD packet to send [21:03:43]OFD Sender: No OFD packet to send [21:03:48]OFD Sender: No OFD packet to send [21:03:53]OFD Sender: No OFD packet to send [21:03:58]OFD Sender: No OFD packet to send [21:04:03]OFD Sender: No OFD packet to send [21:04:08]OFD Sender: No OFD packet to send [21:04:13]OFD Sender: No OFD packet to send [21:04:18]OFD Sender: No OFD packet to send [21:04:23]OFD Sender: No OFD packet to send [21:04:28]OFD Sender: No OFD packet to send [21:04:33]OFD Sender: No OFD packet to send [21:04:38]OFD Sender: No OFD packet to send [21:04:43]OFD Sender: No OFD packet to send [21:04:48]OFD Sender: No OFD packet to send [21:04:53]OFD Sender: No OFD packet to send [21:04:58]OFD Sender: No OFD packet to send [21:05:03]OFD Sender: No OFD packet to send [21:05:08]OFD Sender: No OFD packet to send [21:05:13]OFD Sender: No OFD packet to send [21:05:18]OFD Sender: No OFD packet to send [21:05:23]OFD Sender: No OFD packet to send [21:05:28]OFD Sender: No OFD packet to send [21:05:33]OFD Sender: No OFD packet to send [21:05:38]OFD Sender: No OFD packet to send [21:05:43]OFD Sender: No OFD packet to send [21:05:48]OFD Sender: No OFD packet to send [21:05:53]OFD Sender: No OFD packet to send [21:05:58]OFD Sender: No OFD packet to send [21:06:03]OFD Sender: No OFD packet to send [21:06:08]OFD Sender: No OFD packet to send [21:06:13]OFD Sender: No OFD packet to send [21:06:18]OFD Sender: No OFD packet to send [21:06:23]OFD Sender: No OFD packet to send [21:06:28]OFD Sender: No OFD packet to send [21:06:33]OFD Sender: No OFD packet to send [21:06:38]OFD Sender: No OFD packet to send [21:06:43]OFD Sender: No OFD packet to send [21:06:48]OFD Sender: No OFD packet to send [21:06:53]OFD Sender: No OFD packet to send [21:06:55]accept exits with 9 [21:06:55]New connection [21:06:55]New thread 3067333988 created [21:06:55]Thread 3067190628 joined [21:06:55]Waiting for new connection... [21:06:55] Sock 9.Parse request [21:06:55]Sock 9.Check first char [21:06:55]Sock 9.First char is OK [21:06:55]request: POST /json_proto HTTP/1.0 [21:06:55]Method: POST [21:06:55]URL: /json_proto [21:06:55]Method is POST - this is cgi request [21:06:55]url: /json_proto [21:06:55]query_string will be loaded in cgi processing [21:06:55]execute_cgi json_proto POST (null) [21:06:55]execute_cgi path=json_proto method=POST [21:06:55]POST find Content-Length [21:06:55]Host: 172.17.56.4:8080 [21:06:55]Content-Length: 790 [21:06:55]Content-Type: application/json [21:06:55] [21:06:55]POST finish read [21:06:55]Found Content-Length = 790 [21:06:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459573", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 6.140, "sum" : 400.45, "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 400.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:06:55]execute_script... [21:06: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)459573", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 6.140, "sum" : 400.45, "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 400.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:06:55]POST & json_proto [21:06:55]process_json_proto [21:06:55]json parsed OK: [21:06:55]protocol is kg_v1.0 [21:06:55]action value=close_receipt [21:06:55]process_action close_receipt [21:06:55]cmd_close_receipt [21:06:55]MH_GetDate [21:06:55]Write to MH i2c: F0 00 00 1E 0C 19 [21:06:55]Write i2c OK [21:06:55]MH_I2C_Read... [21:06:55]Read from MH i2c: F0 [21:06:55]MH_I2C_Read... [21:06:55]Read from MH i2c: F0 09 00 [21:06:55]MH_I2C_Read... [21:06:55]Read from MH i2c: F0 09 00 1E 0C 00 70 8F 95 66 C9 DC B2 64 D7 [21:06:55]GetLastDocTimeStamp 1721077281 [21:06:55]current date 1721077616 [21:06:55]FM_GetShiftState [21:06:55]SAM_PROTO_GetShiftState [21:06:55]wFMCommunicate request_size=4 [21:06:55]MH_SAM_APDU [21:06:55]CAPDU: 80 13 01 00 [21:06:55]Write to MH i2c: E2 08 00 1F 0C 80 13 01 00 00 00 00 00 A8 [21:06:55]Write i2c OK [21:06:55]MH_I2C_Read... [21:06:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:06:55]Read from MH i2c: E2 [21:06:55]MH_I2C_Read... [21:06:55]Read from MH i2c: E2 0E 00 [21:06:55]MH_I2C_Read... [21:06:55]Read from MH i2c: E2 0E 00 1F 0C 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 81 [21:06:55]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [21:06:55]wFMCommunicate OK [21:06:55]SAM_PROTO_GetShiftState done [21:06:55]FM_GetShiftState done [21:06:55]opened in 1721003876 [21:06:55]opened+sec_in_day 1721090276 [21:06:55]quantity*price = 40045 [21:06:55]sum+1 = 40046 [21:06:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.45 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 0.00 Безнал.: 400.45 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 330 15.07.2024 21:06 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 165457 ФПД: 132798007888198 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T210656&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165457&fm=132798007888198&tin=02508201610067®Number=0000000000090829&sum=40045 [21:06:56]StoreToDocumentArchive [21:06:56]shift 448 fd 165457 [21:06:56]save to /storage/0448/doc_00165457 [21:06:56]save last doc name /storage/0448/doc_00165457 to /storage/kkm_last_doc_name [21:06:56]save OK [21:06:56]Clear old archive folders... [21:06:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:06:56]tlvbuf is 01BA1ED0 [21:06:56]SAM_PROTO_ClearQueue [21:06:56]wFMCommunicate request_size=4 [21:06:56]MH_SAM_APDU [21:06:56]CAPDU: 80 09 00 00 [21:06:56]Write to MH i2c: E2 08 00 2C 0C 80 09 00 00 00 00 00 00 AA [21:06:56]Write i2c OK [21:06:56]MH_I2C_Read... [21:06:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:06:56]Read from MH i2c: E2 [21:06:56]MH_I2C_Read... [21:06:56]Read from MH i2c: E2 03 00 [21:06:56]MH_I2C_Read... [21:06:56]Read from MH i2c: E2 03 00 2C 0C 00 90 00 AC [21:06:56]RAPDU: 90 00 [21:06:56]wFMCommunicate OK [21:06:56]SAM_PROTO_ClearQueue done [21:06:56]KKMCreateOFDPacket [21:06:56]OFDProtocolAddRootSTLVToBuf [21:06:56]FM_MakeSignedData [21:06:56]FM_MakeSignedData [21:06:56]SAM_PROTO_SignData [21:06:56]wFMCommunicate request_size=4 [21:06:56]MH_SAM_APDU [21:06:56]CAPDU: 80 0D 01 02 [21:06:56]Write to MH i2c: E2 08 00 2D 0C 80 0D 01 02 00 00 00 00 B2 [21:06:56]Write i2c OK [21:06:56]MH_I2C_Read... [21:06:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:06:56]Read from MH i2c: E2 [21:06:56]MH_I2C_Read... [21:06:56]Read from MH i2c: E2 03 00 [21:06:56]MH_I2C_Read... [21:06:56]Read from MH i2c: E2 03 00 2D 0C 00 90 00 AD [21:06:56]RAPDU: 90 00 [21:06:56]wFMCommunicate OK [21:06:56]wFMCommunicate request_size=255 [21:06:56]MH_SAM_APDU [21:06: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 FC 17 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6D 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 00 00 00 00 00 00 39 04 06 00 6D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 70 8F 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 51 86 02 00 35 04 06 00 78 [21:06:56]Write to MH i2c: E2 02 01 2E 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 17 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6D 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 00 00 00 00 00 00 39 04 06 00 6D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 70 8F 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 51 86 02 00 35 04 06 00 78 00 00 EA [21:06:56]Write i2c OK [21:06:56]MH_I2C_Read... [21:06:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:06:56]Read from MH i2c: E2 [21:06:56]MH_I2C_Read... [21:06:56]Read from MH i2c: E2 03 00 [21:06:56]MH_I2C_Read... [21:06:56]Read from MH i2c: E2 03 00 2E 0C 00 90 00 AE [21:06:56]RAPDU: 90 00 [21:06:56]wFMCommunicate OK [21:06:56]wFMCommunicate request_size=10 [21:06:56]MH_SAM_APDU [21:06:56]CAPDU: 80 0D 02 02 05 C7 72 16 49 46 [21:06:56]Write to MH i2c: E2 0D 00 2F 0C 80 0D 02 02 05 00 C7 72 16 49 46 00 00 9D [21:06:56]Write i2c OK [21:06:56]MH_I2C_Read... [21:06:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:06:57]Read from MH i2c: E2 [21:06:57]MH_I2C_Read... [21:06:57]Read from MH i2c: E2 03 00 [21:06:57]MH_I2C_Read... [21:06:57]Read from MH i2c: E2 03 00 2F 0C 00 90 00 AF [21:06:57]RAPDU: 90 00 [21:06:57]wFMCommunicate OK [21:06:57]wFMCommunicate request_size=4 [21:06:57]MH_SAM_APDU [21:06:57]CAPDU: 80 0D 03 02 [21:06:57]Write to MH i2c: E2 08 00 30 0C 80 0D 03 02 00 00 00 00 B7 [21:06:57]Write i2c OK [21:06:57]MH_I2C_Read... [21:06:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:06:57]Read from MH i2c: E2 [21:06:57]MH_I2C_Read... [21:06:57]Read from MH i2c: E2 0B 00 [21:06:57]MH_I2C_Read... [21:06:57]Read from MH i2c: E2 0B 00 30 0C 00 CE EB 1E DC 11 DE F5 54 90 00 A3 [21:06:57]RAPDU: CE EB 1E DC 11 DE F5 54 90 00 [21:06:57]wFMCommunicate OK [21:06:57]SAM_PROTO_SignData done [21:06:57]FM_MakeSignedData done [21:06:57]CreateOFDProtocolMessage [21:06:57]wFMCommunicate request_size=4 [21:06:57]MH_SAM_APDU [21:06:57]CAPDU: 80 11 00 00 [21:06:57]Write to MH i2c: E2 08 00 31 0C 80 11 00 00 00 00 00 00 B7 [21:06:57]Write i2c OK [21:06:57]MH_I2C_Read... [21:06:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:06:57]Read from MH i2c: E2 [21:06:57]MH_I2C_Read... [21:06:57]Read from MH i2c: E2 17 00 [21:06:57]MH_I2C_Read... [21:06:57]Read from MH i2c: E2 17 00 31 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0D [21:06:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:06:57]wFMCommunicate OK [21:06:57]CreateOFDProtocolMessage done [21:06:57]OFDSenderStorePacket 165457 [21:06:57]StoreOFDPacket docnum=165457 [21:06:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 35 AA 07 01 67 EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 FC 17 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6D 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 00 00 00 00 00 00 39 04 06 00 6D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 70 8F 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 51 86 02 00 35 04 06 00 78 C7 72 16 49 46 CE EB 1E DC 11 DE F5 54 [21:06:57]CheckFolder [21:06:57]dirname=/storage/ofd_packets [21:06:57]CheckFolder done [21:06:57]ProducePacketName [21:06:57]name=ofd_packets/00165457 [21:06:57]NVStorageSaveData ofd_packets/00165457 [21:06:57]File name is /storage/ofd_packets/00165457 [21:06:57]Write 301 bytes [21:06:57]NVStorageSaveData done [21:06:57]OFDSenderStorePacket done [21:06:57]KKMCreateOFDPacket done [21:06:57]NVStorageSaveData kkm_last_timestamp [21:06:57]File name is /storage/kkm_last_timestamp [21:06:57]Write 4 bytes [21:06:57]NVStorageSaveData done [21:06:57]ExternCall_PrintAddStr [21:06:57]wPrintStart [21:06:57]Write to MH i2c: 01 00 00 32 0C 3E [21:06:57]Write i2c OK [21:06:57]MH_I2C_Read... [21:06:57]Read from MH i2c: 01 [21:06:57]MH_I2C_Read... [21:06:57]Read from MH i2c: 01 07 00 [21:06:57]MH_I2C_Read... [21:06:57]Read from MH i2c: 01 07 00 32 0C 00 00 00 00 00 FF 0F 53 [21:06:57]RasterBufferAndPrint [21:06:57]line Счет N : (1)459573 [21:06:57]line ИНН: 02508201610067 [21:06:57]line Контрольно-Кассовый Чек [21:06:57]line ПРОДАЖА [21:06:57]line ТРК (МРК, ГНК) : 12 [21:06:57]line Товар: 2710124130 [21:06:57]line Аи-92-К-5 [21:06:57]line 6.140 * 65.22 [21:06:57]line = 400.45 [21:06:57]line НДС 12% НСП 1% [21:06:57]line > о реализуемом товаре [21:06:57]line ИТОГО: 400.45 [21:06:57]line НСП 1% : 3.54 [21:06:57]line НДС 12% : 42.53 [21:06:57]line Наличными: 0.00 [21:06:57]line Безнал.: 400.45 [21:06:57]line Место: АЗС № 72 "Партнер Нефть" [21:06:57]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [21:06:57]line СНО: Общий режим [21:06:57]line Чек 330 15.07.2024 21:06 [21:06:57]line Смена: 448 ФФД: 1.0 [21:06:57]line ЗНМ: 0300000160 [21:06:57]line РНМ: 0000000000090829 [21:06:57]line Версия ККМ: 001 [21:06:57]line Платежная система: KICB Банк [21:06:57]line ФМ: 0000000000874718 [21:06:57]line ФД: 165457 [21:06:57]line ФПД: 132798007888198 [21:06:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T210656&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165457&fm=132798007888198&tin=02508201610067®Number=0000000000090829&sum=40045 [21:06:57]OFD Sender: Processing packet 165457 [packets to send 106, broken 105] [21:06:57]ProducePacketName [21:06:57]name=ofd_packets/00165457 [21:06:57]OFD Sender: To server: pG, [21:06:57]CommunicateWithHost lk.salyk.kg:30040 [21:06:57]ConnectInit lk.salyk.kg [21:06:57]written 0, free lines is 4095 [21:06:57]Connected sock=10 [21:06: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 37 31 38 0F 01 00 00 35 AA 07 01 67 EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 FC 17 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6D 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 00 00 00 00 00 00 39 04 06 00 6D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 70 8F 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 51 86 02 00 35 04 06 00 78 C7 72 16 49 46 CE EB 1E DC 11 DE F5 54 [21:06:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 4D A3 47 00 19 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 51 86 02 00 F4 03 04 00 F9 35 95 66 B6 04 01 00 00 6D 32 7F C7 2A E0 C3 A2 [21:06:57]CommunicateWithHost err = 0 [21:06:57]CheckOFDResponse [21:06:57]1017 (14) - 77093643461234 [21:06:57]1041 (16) - 0000000000874718 [21:06:57]1040 (4) - 165457 [21:06:57]1012 (4) - 15.07.2024 14:45 [21:06:57]1206 (1) - 0 [21:06:57]OFD Sender: Remove packet 165457 [21:06:57]ProducePacketName [21:06:57]name=ofd_packets/00165457 [21:06:57]NVStorageDeleteData [21:06:57]Write to MH i2c: 01 00 00 5B 0C 67 [21:06:57]Write i2c OK [21:06:57]MH_I2C_Read... [21:06:57]Read from MH i2c: 01 [21:06:57]MH_I2C_Read... [21:06:57]Read from MH i2c: 01 07 00 [21:06:57]MH_I2C_Read... [21:06:57]Read from MH i2c: 01 07 00 5B 0C 00 00 00 00 00 FF 0C 79 [21:06:57]RasterBufferAndPrint [21:06:57]line [21:06:57]line [21:06:57]line [21:06:57]line [21:06:57]line [21:06:57]written 0, free lines is 3335 [21:06:57]MH_Cut [21:06:57]Write to MH i2c: D1 01 00 62 0C 01 40 [21:06:57]Write i2c OK [21:06:57]MH_I2C_Read... [21:06:57]Read from MH i2c: D1 [21:06:57]MH_I2C_Read... [21:06:57]Read from MH i2c: D1 01 00 [21:06:57]MH_I2C_Read... [21:06:57]Read from MH i2c: D1 01 00 62 0C 00 3F [21:06:57]Write to MH i2c: 01 00 00 63 0C 6F [21:06:57]Write i2c OK [21:06:57]MH_I2C_Read... [21:06:58]OFD Sender: No OFD packet to send [21:06:58]*** Cut start [21:06:58]*** Partial cut [21:06:58]*** CUTSNS_PIN = 1 [21:06:58]*** CUTSNS_PIN = 0 [21:06:58]*** Brake cut motor [21:06:59]Read from MH i2c: 01 [21:06:59]MH_I2C_Read... [21:06:59]*** Stop cut motor [21:06:59]*** Cut end [21:06:59]Read from MH i2c: 01 07 00 [21:06:59]MH_I2C_Read... [21:06:59]Read from MH i2c: 01 07 00 63 0C 00 00 00 00 00 FF 0F 84 [21:06:59]process_action close_receipt done [21:06:59]requested_data is exist [21:06:59]produce_requested_data [21:06:59]requested_item fm.sn is exist - process it [21:06:59]wFMCommunicate request_size=4 [21:06:59]MH_SAM_APDU [21:06:59]CAPDU: 80 11 00 00 [21:06:59]Write to MH i2c: E2 08 00 64 0C 80 11 00 00 00 00 00 00 EA [21:06:59]Write i2c OK [21:06:59]MH_I2C_Read... [21:06:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:06:59]Read from MH i2c: E2 [21:06:59]MH_I2C_Read... [21:06:59]Read from MH i2c: E2 17 00 [21:06:59]MH_I2C_Read... [21:06:59]Read from MH i2c: E2 17 00 64 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 40 [21:06:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:06:59]wFMCommunicate OK [21:06:59]requested_item fd.num is exist - process it [21:06:59]SAM_PROTO_GetFieldsCounters [21:06:59]wFMCommunicate request_size=4 [21:06:59]MH_SAM_APDU [21:06:59]CAPDU: 80 13 00 00 [21:06:59]Write to MH i2c: E2 08 00 65 0C 80 13 00 00 00 00 00 00 ED [21:06:59]Write i2c OK [21:06:59]MH_I2C_Read... [21:06:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:06:59]Read from MH i2c: E2 [21:06:59]MH_I2C_Read... [21:06:59]Read from MH i2c: E2 62 00 [21:06:59]MH_I2C_Read... [21:06:59]Read from MH i2c: E2 62 00 65 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 51 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 4A 01 00 00 5E 04 04 00 4A 01 00 00 57 04 04 00 4B 01 00 00 19 04 04 00 00 00 00 00 90 00 8F [21:06: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 51 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 4A 01 00 00 5E 04 04 00 4A 01 00 00 57 04 04 00 4B 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:06:59]wFMCommunicate OK [21:06:59]SAM_PROTO_GetFieldsCounters done [21:06:59]requested_item shift.num is exist - process it [21:06:59]requested_item shift.opened is exist - process it [21:06:59]req_shift_opened [21:06:59]FM_GetShiftState [21:06:59]SAM_PROTO_GetShiftState [21:06:59]wFMCommunicate request_size=4 [21:06:59]MH_SAM_APDU [21:06:59]CAPDU: 80 13 01 00 [21:06:59]Write to MH i2c: E2 08 00 66 0C 80 13 01 00 00 00 00 00 EF [21:06:59]Write i2c OK [21:06:59]MH_I2C_Read... [21:06:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:06:59]Read from MH i2c: E2 [21:06:59]MH_I2C_Read... [21:06:59]Read from MH i2c: E2 0E 00 [21:06:59]MH_I2C_Read... [21:06:59]Read from MH i2c: E2 0E 00 66 0C 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 C8 [21:06:59]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [21:06:59]wFMCommunicate OK [21:06:59]SAM_PROTO_GetShiftState done [21:06:59]FM_GetShiftState done [21:06:59]req_shift_opened done [21:06:59]requested_item shift.open_date is exist - process it [21:06:59]req_shift_open_date [21:06:59]req_shift_open_date done [21:06:59]produce_requested_data done [21:06:59]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165457,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [21:06:59]process_action_free close_receipt [21:06:59]json_value_free [21:06:59]json_value_free done [21:06:59]process_json_proto returns [21:06:59]Send response to host [21:06:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165457,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [21:06:59]free response buf [21:06:59]execute_script done [21:06:59]execute_script returns [21:06:59]free content buf [21:06:59]Sock 9.Close socket [21:06:59]Sock 9.Thread stoped [21:07:03]OFD Sender: No OFD packet to send [21:07:08]OFD Sender: No OFD packet to send [21:07:13]OFD Sender: No OFD packet to send [21:07:18]OFD Sender: No OFD packet to send [21:07:23]OFD Sender: No OFD packet to send [21:07:28]OFD Sender: No OFD packet to send [21:07:33]OFD Sender: No OFD packet to send [21:07:38]OFD Sender: No OFD packet to send [21:07:43]OFD Sender: No OFD packet to send [21:07:48]OFD Sender: No OFD packet to send [21:07:51]accept exits with 7 [21:07:51]New connection [21:07:51]New thread 3067190628 created [21:07:51]Thread 3067333988 joined [21:07:51]Waiting for new connection... [21:07:51] Sock 7.Parse request [21:07:51]Sock 7.Check first char [21:07:51]Sock 7.First char is OK [21:07:51]request: POST /json_proto HTTP/1.0 [21:07:51]Method: POST [21:07:51]URL: /json_proto [21:07:51]Method is POST - this is cgi request [21:07:51]url: /json_proto [21:07:51]query_string will be loaded in cgi processing [21:07:51]execute_cgi json_proto POST (null) [21:07:51]execute_cgi path=json_proto method=POST [21:07:51]POST find Content-Length [21:07:51]Host: 172.17.56.4:8080 [21:07:51]Content-Length: 674 [21:07:51]Content-Type: application/json [21:07:51] [21:07:51]POST finish read [21:07:51]Found Content-Length = 674 [21:07:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459574", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 8.350, "sum" : 600.37, "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" ] } } [21:07:51]execute_script... [21:07: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)459574", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 8.350, "sum" : 600.37, "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" ] } } [21:07:51]POST & json_proto [21:07:51]process_json_proto [21:07:51]json parsed OK: [21:07:51]protocol is kg_v1.0 [21:07:51]action value=close_receipt [21:07:51]process_action close_receipt [21:07:51]cmd_close_receipt [21:07:51]MH_GetDate [21:07:51]Write to MH i2c: F0 00 00 67 0C 62 [21:07:51]Write i2c OK [21:07:51]MH_I2C_Read... [21:07:51]Read from MH i2c: F0 [21:07:51]MH_I2C_Read... [21:07:51]Read from MH i2c: F0 09 00 [21:07:51]MH_I2C_Read... [21:07:51]Read from MH i2c: F0 09 00 67 0C 00 A8 8F 95 66 C9 DC B2 64 58 [21:07:51]GetLastDocTimeStamp 1721077616 [21:07:51]current date 1721077672 [21:07:51]FM_GetShiftState [21:07:51]SAM_PROTO_GetShiftState [21:07:51]wFMCommunicate request_size=4 [21:07:51]MH_SAM_APDU [21:07:51]CAPDU: 80 13 01 00 [21:07:51]Write to MH i2c: E2 08 00 68 0C 80 13 01 00 00 00 00 00 F1 [21:07:51]Write i2c OK [21:07:51]MH_I2C_Read... [21:07:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:07:51]Read from MH i2c: E2 [21:07:51]MH_I2C_Read... [21:07:51]Read from MH i2c: E2 0E 00 [21:07:51]MH_I2C_Read... [21:07:51]Read from MH i2c: E2 0E 00 68 0C 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 CA [21:07:51]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [21:07:51]wFMCommunicate OK [21:07:51]SAM_PROTO_GetShiftState done [21:07:51]FM_GetShiftState done [21:07:51]opened in 1721003876 [21:07:51]opened+sec_in_day 1721090276 [21:07:51]quantity*price = 60036 [21:07:51]sum+1 = 60038 [21:07:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.76 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 331 15.07.2024 21:07 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165458 ФПД: 213600880481359 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T210752&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165458&fm=213600880481359&tin=02508201610067®Number=0000000000090829&sum=60000 [21:07:52]StoreToDocumentArchive [21:07:52]shift 448 fd 165458 [21:07:52]save to /storage/0448/doc_00165458 [21:07:52]save last doc name /storage/0448/doc_00165458 to /storage/kkm_last_doc_name [21:07:52]save OK [21:07:52]Clear old archive folders... [21:07:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:07:52]tlvbuf is 01BA1DB0 [21:07:52]SAM_PROTO_ClearQueue [21:07:52]wFMCommunicate request_size=4 [21:07:52]MH_SAM_APDU [21:07:52]CAPDU: 80 09 00 00 [21:07:52]Write to MH i2c: E2 08 00 75 0C 80 09 00 00 00 00 00 00 F3 [21:07:52]Write i2c OK [21:07:52]MH_I2C_Read... [21:07:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:07:52]Read from MH i2c: E2 [21:07:52]MH_I2C_Read... [21:07:52]Read from MH i2c: E2 03 00 [21:07:52]MH_I2C_Read... [21:07:52]Read from MH i2c: E2 03 00 75 0C 00 90 00 F5 [21:07:52]RAPDU: 90 00 [21:07:52]wFMCommunicate OK [21:07:52]SAM_PROTO_ClearQueue done [21:07:52]KKMCreateOFDPacket [21:07:52]OFDProtocolAddRootSTLVToBuf [21:07:52]FM_MakeSignedData [21:07:52]FM_MakeSignedData [21:07:52]SAM_PROTO_SignData [21:07:52]wFMCommunicate request_size=4 [21:07:52]MH_SAM_APDU [21:07:52]CAPDU: 80 0D 01 02 [21:07:52]Write to MH i2c: E2 08 00 76 0C 80 0D 01 02 00 00 00 00 FB [21:07:52]Write i2c OK [21:07:52]MH_I2C_Read... [21:07:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:07:52]Read from MH i2c: E2 [21:07:52]MH_I2C_Read... [21:07:52]Read from MH i2c: E2 03 00 [21:07:52]MH_I2C_Read... [21:07:52]Read from MH i2c: E2 03 00 76 0C 00 90 00 F6 [21:07:52]RAPDU: 90 00 [21:07:52]wFMCommunicate OK [21:07:52]wFMCommunicate request_size=255 [21:07:52]MH_SAM_APDU [21:07:52]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 20 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 85 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 4B 01 00 00 F4 03 04 00 A8 8F 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 52 86 02 00 35 04 06 00 C2 44 D4 9A [21:07:52]Write to MH i2c: E2 02 01 77 0C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 20 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 85 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 4B 01 00 00 F4 03 04 00 A8 8F 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 52 86 02 00 35 04 06 00 C2 44 D4 9A 00 00 F3 [21:07:52]Write i2c OK [21:07:52]MH_I2C_Read... [21:07:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:07:53]Read from MH i2c: E2 [21:07:53]MH_I2C_Read... [21:07:53]Read from MH i2c: E2 03 00 [21:07:53]MH_I2C_Read... [21:07:53]Read from MH i2c: E2 03 00 77 0C 00 90 00 F7 [21:07:53]RAPDU: 90 00 [21:07:53]wFMCommunicate OK [21:07:53]wFMCommunicate request_size=7 [21:07:53]MH_SAM_APDU [21:07:53]CAPDU: 80 0D 02 02 02 D4 4F [21:07:53]Write to MH i2c: E2 0A 00 78 0C 80 0D 02 02 02 00 D4 4F 00 00 25 [21:07:53]Write i2c OK [21:07:53]MH_I2C_Read... [21:07:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:07:53]Read from MH i2c: E2 [21:07:53]MH_I2C_Read... [21:07:53]Read from MH i2c: E2 03 00 [21:07:53]MH_I2C_Read... [21:07:53]Read from MH i2c: E2 03 00 78 0C 00 90 00 F8 [21:07:53]RAPDU: 90 00 [21:07:53]wFMCommunicate OK [21:07:53]wFMCommunicate request_size=4 [21:07:53]MH_SAM_APDU [21:07:53]CAPDU: 80 0D 03 02 [21:07:53]Write to MH i2c: E2 08 00 79 0C 80 0D 03 02 00 00 00 00 00 [21:07:53]Write i2c OK [21:07:53]MH_I2C_Read... [21:07:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:07:53]Read from MH i2c: E2 [21:07:53]MH_I2C_Read... [21:07:53]Read from MH i2c: E2 0B 00 [21:07:53]MH_I2C_Read... [21:07:53]Read from MH i2c: E2 0B 00 79 0C 00 CF 32 9D F3 85 B3 42 35 90 00 41 [21:07:53]RAPDU: CF 32 9D F3 85 B3 42 35 90 00 [21:07:53]wFMCommunicate OK [21:07:53]SAM_PROTO_SignData done [21:07:53]FM_MakeSignedData done [21:07:53]CreateOFDProtocolMessage [21:07:53]wFMCommunicate request_size=4 [21:07:53]MH_SAM_APDU [21:07:53]CAPDU: 80 11 00 00 [21:07:53]Write to MH i2c: E2 08 00 7A 0C 80 11 00 00 00 00 00 00 00 [21:07:53]Write i2c OK [21:07:53]MH_I2C_Read... [21:07:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:07:53]Read from MH i2c: E2 [21:07:53]MH_I2C_Read... [21:07:53]Read from MH i2c: E2 17 00 [21:07:53]MH_I2C_Read... [21:07:53]Read from MH i2c: E2 17 00 7A 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 56 [21:07:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:07:53]wFMCommunicate OK [21:07:53]CreateOFDProtocolMessage done [21:07:53]OFDSenderStorePacket 165458 [21:07:53]StoreOFDPacket docnum=165458 [21:07:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 E5 64 04 01 C5 0B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 20 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 85 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 4B 01 00 00 F4 03 04 00 A8 8F 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 52 86 02 00 35 04 06 00 C2 44 D4 9A D4 4F CF 32 9D F3 85 B3 42 35 [21:07:53]CheckFolder [21:07:53]dirname=/storage/ofd_packets [21:07:53]CheckFolder done [21:07:53]ProducePacketName [21:07:53]name=ofd_packets/00165458 [21:07:53]NVStorageSaveData ofd_packets/00165458 [21:07:53]File name is /storage/ofd_packets/00165458 [21:07:53]Write 298 bytes [21:07:53]NVStorageSaveData done [21:07:53]OFDSenderStorePacket done [21:07:53]KKMCreateOFDPacket done [21:07:53]NVStorageSaveData kkm_last_timestamp [21:07:53]File name is /storage/kkm_last_timestamp [21:07:53]Write 4 bytes [21:07:53]NVStorageSaveData done [21:07:53]ExternCall_PrintAddStr [21:07:53]wPrintStart [21:07:53]Write to MH i2c: 01 00 00 7B 0C 87 [21:07:53]Write i2c OK [21:07:53]MH_I2C_Read... [21:07:53]Read from MH i2c: 01 [21:07:53]MH_I2C_Read... [21:07:53]Read from MH i2c: 01 07 00 [21:07:53]MH_I2C_Read... [21:07:53]Read from MH i2c: 01 07 00 7B 0C 00 00 00 00 00 FF 0F 9C [21:07:53]RasterBufferAndPrint [21:07:53]line Счет N : (1)459574 [21:07:53]line ИНН: 02508201610067 [21:07:53]line Контрольно-Кассовый Чек [21:07:53]line ПРОДАЖА [21:07:53]line ТРК (МРК, ГНК) : 21 [21:07:53]line Товар: 2710194210 [21:07:53]line ДТ-К-5 [21:07:53]line 8.350 * 71.90 [21:07:53]line = 600.37 [21:07:53]line НДС 12% НСП 1% [21:07:53]line > о реализуемом товаре [21:07:53]line ОКРУГЛЕНИЕ: -0.37 [21:07:53]line ИТОГО: 600.00 [21:07:53]line Внесено: 600.00 [21:07:53]line СДАЧА: 0.00 [21:07:53]line НСП 1% : 5.31 [21:07:53]line НДС 12% : 63.76 [21:07:53]line Наличными: 600.00 [21:07:53]line Безнал.: 0.00 [21:07:53]line Место: АЗС № 72 "Партнер Нефть" [21:07:53]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [21:07:53]line СНО: Общий режим [21:07:53]line Чек 331 15.07.2024 21:07 [21:07:53]line Смена: 448 ФФД: 1.0 [21:07:53]line ЗНМ: 0300000160 [21:07:53]line РНМ: 0000000000090829 [21:07:53]line Версия ККМ: 001 [21:07:53]line ФМ: 0000000000874718 [21:07:53]line ФД: 165458 [21:07:53]line ФПД: 213600880481359 [21:07:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T210752&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165458&fm=213600880481359&tin=02508201610067®Number=0000000000090829&sum=60000 [21:07:53]OFD Sender: Processing packet 165458 [packets to send 106, broken 105] [21:07:53]ProducePacketName [21:07:53]name=ofd_packets/00165458 [21:07:53]OFD Sender: To server: pG, [21:07:53]CommunicateWithHost lk.salyk.kg:30040 [21:07:53]ConnectInit lk.salyk.kg [21:07:53]written 0, free lines is 4095 [21:07:53]Connected sock=10 [21:07: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 37 31 38 0C 01 00 00 E5 64 04 01 C5 0B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 20 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 85 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 4B 01 00 00 F4 03 04 00 A8 8F 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 52 86 02 00 35 04 06 00 C2 44 D4 9A D4 4F CF 32 9D F3 85 B3 42 35 [21:07:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 F9 CC 47 00 B3 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 52 86 02 00 F4 03 04 00 31 36 95 66 B6 04 01 00 00 B9 94 1C 57 44 DA 36 61 [21:07:53]CommunicateWithHost err = 0 [21:07:53]CheckOFDResponse [21:07:53]1017 (14) - 77093643461234 [21:07:53]1041 (16) - 0000000000874718 [21:07:53]1040 (4) - 165458 [21:07:53]1012 (4) - 15.07.2024 14:46 [21:07:53]1206 (1) - 0 [21:07:53]OFD Sender: Remove packet 165458 [21:07:53]ProducePacketName [21:07:53]name=ofd_packets/00165458 [21:07:53]NVStorageDeleteData [21:07:53]Write to MH i2c: 01 00 00 A5 0C B1 [21:07:53]Write i2c OK [21:07:53]MH_I2C_Read... [21:07:53]Read from MH i2c: 01 [21:07:53]MH_I2C_Read... [21:07:53]Read from MH i2c: 01 07 00 [21:07:53]MH_I2C_Read... [21:07:53]Read from MH i2c: 01 07 00 A5 0C 00 00 00 00 00 F6 0C BA [21:07:53]RasterBufferAndPrint [21:07:53]line [21:07:53]line [21:07:53]line [21:07:53]line [21:07:53]line [21:07:53]written 0, free lines is 3324 [21:07:53]MH_Cut [21:07:53]Write to MH i2c: D1 01 00 AC 0C 01 8A [21:07:53]Write i2c OK [21:07:53]MH_I2C_Read... [21:07:53]Read from MH i2c: D1 [21:07:53]MH_I2C_Read... [21:07:53]Read from MH i2c: D1 01 00 [21:07:53]MH_I2C_Read... [21:07:53]Read from MH i2c: D1 01 00 AC 0C 00 89 [21:07:53]Write to MH i2c: 01 00 00 AD 0C B9 [21:07:53]Write i2c OK [21:07:53]MH_I2C_Read... [21:07:54]OFD Sender: No OFD packet to send [21:07:54]*** Cut start [21:07:54]*** Partial cut [21:07:54]*** CUTSNS_PIN = 1 [21:07:54]*** CUTSNS_PIN = 0 [21:07:54]*** Brake cut motor [21:07:55]Read from MH i2c: 01 [21:07:55]MH_I2C_Read... [21:07:55]*** Stop cut motor [21:07:55]*** Cut end [21:07:55]Read from MH i2c: 01 07 00 [21:07:55]MH_I2C_Read... [21:07:55]Read from MH i2c: 01 07 00 AD 0C 00 00 00 00 00 FF 0F CE [21:07:55]process_action close_receipt done [21:07:55]requested_data is exist [21:07:55]produce_requested_data [21:07:55]requested_item fm.sn is exist - process it [21:07:55]wFMCommunicate request_size=4 [21:07:55]MH_SAM_APDU [21:07:55]CAPDU: 80 11 00 00 [21:07:55]Write to MH i2c: E2 08 00 AE 0C 80 11 00 00 00 00 00 00 34 [21:07:55]Write i2c OK [21:07:55]MH_I2C_Read... [21:07:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:07:55]Read from MH i2c: E2 [21:07:55]MH_I2C_Read... [21:07:55]Read from MH i2c: E2 17 00 [21:07:55]MH_I2C_Read... [21:07:55]Read from MH i2c: E2 17 00 AE 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8A [21:07:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:07:55]wFMCommunicate OK [21:07:55]requested_item fd.num is exist - process it [21:07:55]SAM_PROTO_GetFieldsCounters [21:07:55]wFMCommunicate request_size=4 [21:07:55]MH_SAM_APDU [21:07:55]CAPDU: 80 13 00 00 [21:07:55]Write to MH i2c: E2 08 00 AF 0C 80 13 00 00 00 00 00 00 37 [21:07:55]Write i2c OK [21:07:55]MH_I2C_Read... [21:07:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:07:55]Read from MH i2c: E2 [21:07:55]MH_I2C_Read... [21:07:55]Read from MH i2c: E2 62 00 [21:07:55]MH_I2C_Read... [21:07:55]Read from MH i2c: E2 62 00 AF 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 52 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 4B 01 00 00 5E 04 04 00 4B 01 00 00 57 04 04 00 4C 01 00 00 19 04 04 00 00 00 00 00 90 00 DD [21:07: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 52 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 4B 01 00 00 5E 04 04 00 4B 01 00 00 57 04 04 00 4C 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:07:55]wFMCommunicate OK [21:07:55]SAM_PROTO_GetFieldsCounters done [21:07:55]requested_item shift.num is exist - process it [21:07:55]requested_item shift.opened is exist - process it [21:07:55]req_shift_opened [21:07:55]FM_GetShiftState [21:07:55]SAM_PROTO_GetShiftState [21:07:55]wFMCommunicate request_size=4 [21:07:55]MH_SAM_APDU [21:07:55]CAPDU: 80 13 01 00 [21:07:55]Write to MH i2c: E2 08 00 B0 0C 80 13 01 00 00 00 00 00 39 [21:07:55]Write i2c OK [21:07:55]MH_I2C_Read... [21:07:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:07:55]Read from MH i2c: E2 [21:07:55]MH_I2C_Read... [21:07:55]Read from MH i2c: E2 0E 00 [21:07:55]MH_I2C_Read... [21:07:55]Read from MH i2c: E2 0E 00 B0 0C 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 12 [21:07:55]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [21:07:55]wFMCommunicate OK [21:07:55]SAM_PROTO_GetShiftState done [21:07:55]FM_GetShiftState done [21:07:55]req_shift_opened done [21:07:55]requested_item shift.open_date is exist - process it [21:07:55]req_shift_open_date [21:07:55]req_shift_open_date done [21:07:55]produce_requested_data done [21:07:55]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165458,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [21:07:55]process_action_free close_receipt [21:07:55]json_value_free [21:07:55]json_value_free done [21:07:55]process_json_proto returns [21:07:55]Send response to host [21:07:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165458,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [21:07:55]free response buf [21:07:55]execute_script done [21:07:55]execute_script returns [21:07:55]free content buf [21:07:55]Sock 7.Close socket [21:07:55]Sock 7.Thread stoped [21:07:59]OFD Sender: No OFD packet to send [21:08:04]OFD Sender: No OFD packet to send [21:08:09]OFD Sender: No OFD packet to send [21:08:14]OFD Sender: No OFD packet to send [21:08:19]OFD Sender: No OFD packet to send [21:08:24]OFD Sender: No OFD packet to send [21:08:29]OFD Sender: No OFD packet to send [21:08:34]OFD Sender: No OFD packet to send [21:08:39]OFD Sender: No OFD packet to send [21:08:44]OFD Sender: No OFD packet to send [21:08:49]OFD Sender: No OFD packet to send [21:08:54]OFD Sender: No OFD packet to send [21:08:59]OFD Sender: No OFD packet to send [21:09:04]OFD Sender: No OFD packet to send [21:09:09]OFD Sender: No OFD packet to send [21:09:14]OFD Sender: No OFD packet to send [21:09:19]OFD Sender: No OFD packet to send [21:09:24]OFD Sender: No OFD packet to send [21:09:29]OFD Sender: No OFD packet to send [21:09:34]OFD Sender: No OFD packet to send [21:09:39]OFD Sender: No OFD packet to send [21:09:44]OFD Sender: No OFD packet to send [21:09:49]OFD Sender: No OFD packet to send [21:09:54]OFD Sender: No OFD packet to send [21:09:59]OFD Sender: No OFD packet to send [21:10:04]OFD Sender: No OFD packet to send [21:10:09]OFD Sender: No OFD packet to send [21:10:14]OFD Sender: No OFD packet to send [21:10:19]OFD Sender: No OFD packet to send [21:10:24]OFD Sender: No OFD packet to send [21:10:29]OFD Sender: No OFD packet to send [21:10:34]OFD Sender: No OFD packet to send [21:10:39]OFD Sender: No OFD packet to send [21:10:44]OFD Sender: No OFD packet to send [21:10:49]OFD Sender: No OFD packet to send [21:10:54]OFD Sender: No OFD packet to send [21:10:59]OFD Sender: No OFD packet to send [21:11:04]OFD Sender: No OFD packet to send [21:11:09]OFD Sender: No OFD packet to send [21:11:14]OFD Sender: No OFD packet to send [21:11:19]OFD Sender: No OFD packet to send [21:11:24]OFD Sender: No OFD packet to send [21:11:29]OFD Sender: No OFD packet to send [21:11:34]OFD Sender: No OFD packet to send [21:11:39]OFD Sender: No OFD packet to send [21:11:44]OFD Sender: No OFD packet to send [21:11:49]OFD Sender: No OFD packet to send [21:11:54]OFD Sender: No OFD packet to send [21:11:59]OFD Sender: No OFD packet to send [21:12:04]OFD Sender: No OFD packet to send [21:12:09]OFD Sender: No OFD packet to send [21:12:14]OFD Sender: No OFD packet to send [21:12:19]OFD Sender: No OFD packet to send [21:12:24]OFD Sender: No OFD packet to send [21:12:29]OFD Sender: No OFD packet to send [21:12:34]OFD Sender: No OFD packet to send [21:12:39]OFD Sender: No OFD packet to send [21:12:44]OFD Sender: No OFD packet to send [21:12:49]OFD Sender: No OFD packet to send [21:12:54]OFD Sender: No OFD packet to send [21:12:59]OFD Sender: No OFD packet to send [21:13:04]OFD Sender: No OFD packet to send [21:13:09]OFD Sender: No OFD packet to send [21:13:14]OFD Sender: No OFD packet to send [21:13:19]OFD Sender: No OFD packet to send [21:13:24]OFD Sender: No OFD packet to send [21:13:29]OFD Sender: No OFD packet to send [21:13:34]OFD Sender: No OFD packet to send [21:13:39]OFD Sender: No OFD packet to send [21:13:44]OFD Sender: No OFD packet to send [21:13:49]OFD Sender: No OFD packet to send [21:13:54]OFD Sender: No OFD packet to send [21:13:59]OFD Sender: No OFD packet to send [21:14:04]OFD Sender: No OFD packet to send [21:14:09]OFD Sender: No OFD packet to send [21:14:14]OFD Sender: No OFD packet to send [21:14:19]OFD Sender: No OFD packet to send [21:14:24]OFD Sender: No OFD packet to send [21:14:29]OFD Sender: No OFD packet to send [21:14:34]OFD Sender: No OFD packet to send [21:14:39]OFD Sender: No OFD packet to send [21:14:44]OFD Sender: No OFD packet to send [21:14:49]OFD Sender: No OFD packet to send [21:14:54]OFD Sender: No OFD packet to send [21:14:59]OFD Sender: No OFD packet to send [21:15:04]OFD Sender: No OFD packet to send [21:15:09]OFD Sender: No OFD packet to send [21:15:14]OFD Sender: No OFD packet to send [21:15:19]OFD Sender: No OFD packet to send [21:15:24]OFD Sender: No OFD packet to send [21:15:29]OFD Sender: No OFD packet to send [21:15:34]OFD Sender: No OFD packet to send [21:15:39]OFD Sender: No OFD packet to send [21:15:44]OFD Sender: No OFD packet to send [21:15:49]OFD Sender: No OFD packet to send [21:15:54]OFD Sender: No OFD packet to send [21:15:59]OFD Sender: No OFD packet to send [21:16:04]OFD Sender: No OFD packet to send [21:16:09]OFD Sender: No OFD packet to send [21:16:14]OFD Sender: No OFD packet to send [21:16:19]OFD Sender: No OFD packet to send [21:16:24]OFD Sender: No OFD packet to send [21:16:29]OFD Sender: No OFD packet to send [21:16:34]OFD Sender: No OFD packet to send [21:16:39]OFD Sender: No OFD packet to send [21:16:44]OFD Sender: No OFD packet to send [21:16:49]OFD Sender: No OFD packet to send [21:16:54]OFD Sender: No OFD packet to send [21:16:59]OFD Sender: No OFD packet to send [21:17:04]OFD Sender: No OFD packet to send [21:17:09]OFD Sender: No OFD packet to send [21:17:14]OFD Sender: No OFD packet to send [21:17:19]OFD Sender: No OFD packet to send [21:17:24]OFD Sender: No OFD packet to send [21:17:29]OFD Sender: No OFD packet to send [21:17:34]OFD Sender: No OFD packet to send [21:17:39]OFD Sender: No OFD packet to send [21:17:44]OFD Sender: No OFD packet to send [21:17:49]OFD Sender: No OFD packet to send [21:17:54]OFD Sender: No OFD packet to send [21:17:59]OFD Sender: No OFD packet to send [21:18:04]OFD Sender: No OFD packet to send [21:18:09]OFD Sender: No OFD packet to send [21:18:15]OFD Sender: No OFD packet to send [21:18:20]OFD Sender: No OFD packet to send [21:18:25]OFD Sender: No OFD packet to send [21:18:30]OFD Sender: No OFD packet to send [21:18:35]OFD Sender: No OFD packet to send [21:18:40]OFD Sender: No OFD packet to send [21:18:45]OFD Sender: No OFD packet to send [21:18:50]OFD Sender: No OFD packet to send [21:18:55]OFD Sender: No OFD packet to send [21:19:00]OFD Sender: No OFD packet to send [21:19:05]OFD Sender: No OFD packet to send [21:19:10]OFD Sender: No OFD packet to send [21:19:15]OFD Sender: No OFD packet to send [21:19:20]OFD Sender: No OFD packet to send [21:19:25]OFD Sender: No OFD packet to send [21:19:30]OFD Sender: No OFD packet to send [21:19:35]OFD Sender: No OFD packet to send [21:19:40]OFD Sender: No OFD packet to send [21:19:45]OFD Sender: No OFD packet to send [21:19:50]OFD Sender: No OFD packet to send [21:19:55]OFD Sender: No OFD packet to send [21:20:00]OFD Sender: No OFD packet to send [21:20:05]OFD Sender: No OFD packet to send [21:20:10]OFD Sender: No OFD packet to send [21:20:15]OFD Sender: No OFD packet to send [21:20:20]OFD Sender: No OFD packet to send [21:20:25]OFD Sender: No OFD packet to send [21:20:30]OFD Sender: No OFD packet to send [21:20:35]OFD Sender: No OFD packet to send [21:20:40]OFD Sender: No OFD packet to send [21:20:45]OFD Sender: No OFD packet to send [21:20:50]OFD Sender: No OFD packet to send [21:20:55]OFD Sender: No OFD packet to send [21:21:00]OFD Sender: No OFD packet to send [21:21:05]OFD Sender: No OFD packet to send [21:21:10]OFD Sender: No OFD packet to send [21:21:15]OFD Sender: No OFD packet to send [21:21:20]OFD Sender: No OFD packet to send [21:21:25]OFD Sender: No OFD packet to send [21:21:30]OFD Sender: No OFD packet to send [21:21:35]OFD Sender: No OFD packet to send [21:21:40]OFD Sender: No OFD packet to send [21:21:45]OFD Sender: No OFD packet to send [21:21:50]OFD Sender: No OFD packet to send [21:21:55]OFD Sender: No OFD packet to send [21:22:00]OFD Sender: No OFD packet to send [21:22:05]OFD Sender: No OFD packet to send [21:22:10]OFD Sender: No OFD packet to send [21:22:15]OFD Sender: No OFD packet to send [21:22:20]OFD Sender: No OFD packet to send [21:22:25]OFD Sender: No OFD packet to send [21:22:30]OFD Sender: No OFD packet to send [21:22:35]OFD Sender: No OFD packet to send [21:22:40]OFD Sender: No OFD packet to send [21:22:45]OFD Sender: No OFD packet to send [21:22:50]OFD Sender: No OFD packet to send [21:22:55]OFD Sender: No OFD packet to send [21:23:00]OFD Sender: No OFD packet to send [21:23:03]accept exits with 9 [21:23:03]New connection [21:23:03]New thread 3067333988 created [21:23:03]Thread 3067190628 joined [21:23:03]Waiting for new connection... [21:23:03] Sock 9.Parse request [21:23:03]Sock 9.Check first char [21:23:03]Sock 9.First char is OK [21:23:03]request: POST /json_proto HTTP/1.0 [21:23:03]Method: POST [21:23:03]URL: /json_proto [21:23:03]Method is POST - this is cgi request [21:23:03]url: /json_proto [21:23:03]query_string will be loaded in cgi processing [21:23:03]execute_cgi json_proto POST (null) [21:23:03]execute_cgi path=json_proto method=POST [21:23:03]POST find Content-Length [21:23:03]Host: 172.17.56.4:8080 [21:23:03]Content-Length: 677 [21:23:03]Content-Type: application/json [21:23:03] [21:23:03]POST finish read [21:23:03]Found Content-Length = 677 [21:23:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459575", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "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" ] } } [21:23:03]execute_script... [21:23: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)459575", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 9.120, "sum" : 600.10, "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" ] } } [21:23:03]POST & json_proto [21:23:03]process_json_proto [21:23:03]json parsed OK: [21:23:03]protocol is kg_v1.0 [21:23:03]action value=close_receipt [21:23:03]process_action close_receipt [21:23:03]cmd_close_receipt [21:23:03]MH_GetDate [21:23:03]Write to MH i2c: F0 00 00 B1 0C AC [21:23:03]Write i2c OK [21:23:03]MH_I2C_Read... [21:23:03]Read from MH i2c: F0 [21:23:03]MH_I2C_Read... [21:23:03]Read from MH i2c: F0 09 00 [21:23:03]MH_I2C_Read... [21:23:03]Read from MH i2c: F0 09 00 B1 0C 00 38 93 95 66 C9 DC B2 64 36 [21:23:03]GetLastDocTimeStamp 1721077672 [21:23:03]current date 1721078584 [21:23:03]FM_GetShiftState [21:23:03]SAM_PROTO_GetShiftState [21:23:03]wFMCommunicate request_size=4 [21:23:03]MH_SAM_APDU [21:23:03]CAPDU: 80 13 01 00 [21:23:03]Write to MH i2c: E2 08 00 B2 0C 80 13 01 00 00 00 00 00 3B [21:23:03]Write i2c OK [21:23:03]MH_I2C_Read... [21:23:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:23:03]Read from MH i2c: E2 [21:23:03]MH_I2C_Read... [21:23:03]Read from MH i2c: E2 0E 00 [21:23:03]MH_I2C_Read... [21:23:03]Read from MH i2c: E2 0E 00 B2 0C 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 14 [21:23:03]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [21:23:03]wFMCommunicate OK [21:23:03]SAM_PROTO_GetShiftState done [21:23:03]FM_GetShiftState done [21:23:03]opened in 1721003876 [21:23:03]opened+sec_in_day 1721090276 [21:23:03]quantity*price = 60009 [21:23:03]sum+1 = 60011 [21:23:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 332 15.07.2024 21:23 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165459 ФПД: 179908830089955 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T212304&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165459&fm=179908830089955&tin=02508201610067®Number=0000000000090829&sum=60000 [21:23:04]StoreToDocumentArchive [21:23:04]shift 448 fd 165459 [21:23:04]save to /storage/0448/doc_00165459 [21:23:04]save last doc name /storage/0448/doc_00165459 to /storage/kkm_last_doc_name [21:23:04]save OK [21:23:04]Clear old archive folders... [21:23:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:23:04]tlvbuf is 01BAFA90 [21:23:04]SAM_PROTO_ClearQueue [21:23:04]wFMCommunicate request_size=4 [21:23:04]MH_SAM_APDU [21:23:04]CAPDU: 80 09 00 00 [21:23:04]Write to MH i2c: E2 08 00 BF 0C 80 09 00 00 00 00 00 00 3D [21:23:04]Write i2c OK [21:23:04]MH_I2C_Read... [21:23:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:23:04]Read from MH i2c: E2 [21:23:04]MH_I2C_Read... [21:23:04]Read from MH i2c: E2 03 00 [21:23:04]MH_I2C_Read... [21:23:04]Read from MH i2c: E2 03 00 BF 0C 00 90 00 3F [21:23:04]RAPDU: 90 00 [21:23:04]wFMCommunicate OK [21:23:04]SAM_PROTO_ClearQueue done [21:23:04]KKMCreateOFDPacket [21:23:04]OFDProtocolAddRootSTLVToBuf [21:23:04]FM_MakeSignedData [21:23:04]FM_MakeSignedData [21:23:04]SAM_PROTO_SignData [21:23:04]wFMCommunicate request_size=4 [21:23:04]MH_SAM_APDU [21:23:04]CAPDU: 80 0D 01 02 [21:23:04]Write to MH i2c: E2 08 00 C0 0C 80 0D 01 02 00 00 00 00 45 [21:23:04]Write i2c OK [21:23:04]MH_I2C_Read... [21:23:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:23:04]Read from MH i2c: E2 [21:23:04]MH_I2C_Read... [21:23:04]Read from MH i2c: E2 03 00 [21:23:04]MH_I2C_Read... [21:23:04]Read from MH i2c: E2 03 00 C0 0C 00 90 00 40 [21:23:04]RAPDU: 90 00 [21:23:04]wFMCommunicate OK [21:23:04]wFMCommunicate request_size=255 [21:23:04]MH_SAM_APDU [21:23: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 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 38 93 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 53 86 02 00 35 04 06 00 A3 [21:23:04]Write to MH i2c: E2 02 01 C1 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 38 93 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 53 86 02 00 35 04 06 00 A3 00 00 31 [21:23:04]Write i2c OK [21:23:04]MH_I2C_Read... [21:23:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:23:05]Read from MH i2c: E2 [21:23:05]MH_I2C_Read... [21:23:05]Read from MH i2c: E2 03 00 [21:23:05]MH_I2C_Read... [21:23:05]Read from MH i2c: E2 03 00 C1 0C 00 90 00 41 [21:23:05]RAPDU: 90 00 [21:23:05]wFMCommunicate OK [21:23:05]wFMCommunicate request_size=10 [21:23:05]MH_SAM_APDU [21:23:05]CAPDU: 80 0D 02 02 05 A0 49 E8 D2 E3 [21:23:05]Write to MH i2c: E2 0D 00 C2 0C 80 0D 02 02 05 00 A0 49 E8 D2 E3 00 00 D8 [21:23:05]Write i2c OK [21:23:05]MH_I2C_Read... [21:23:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:23:05]Read from MH i2c: E2 [21:23:05]MH_I2C_Read... [21:23:05]Read from MH i2c: E2 03 00 [21:23:05]MH_I2C_Read... [21:23:05]Read from MH i2c: E2 03 00 C2 0C 00 90 00 42 [21:23:05]RAPDU: 90 00 [21:23:05]wFMCommunicate OK [21:23:05]wFMCommunicate request_size=4 [21:23:05]MH_SAM_APDU [21:23:05]CAPDU: 80 0D 03 02 [21:23:05]Write to MH i2c: E2 08 00 C3 0C 80 0D 03 02 00 00 00 00 4A [21:23:05]Write i2c OK [21:23:05]MH_I2C_Read... [21:23:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:23:05]Read from MH i2c: E2 [21:23:05]MH_I2C_Read... [21:23:05]Read from MH i2c: E2 0B 00 [21:23:05]MH_I2C_Read... [21:23:05]Read from MH i2c: E2 0B 00 C3 0C 00 08 C6 14 C3 DE A0 AF 54 90 00 71 [21:23:05]RAPDU: 08 C6 14 C3 DE A0 AF 54 90 00 [21:23:05]wFMCommunicate OK [21:23:05]SAM_PROTO_SignData done [21:23:05]FM_MakeSignedData done [21:23:05]CreateOFDProtocolMessage [21:23:05]wFMCommunicate request_size=4 [21:23:05]MH_SAM_APDU [21:23:05]CAPDU: 80 11 00 00 [21:23:05]Write to MH i2c: E2 08 00 C4 0C 80 11 00 00 00 00 00 00 4A [21:23:05]Write i2c OK [21:23:05]MH_I2C_Read... [21:23:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:23:05]Read from MH i2c: E2 [21:23:05]MH_I2C_Read... [21:23:05]Read from MH i2c: E2 17 00 [21:23:05]MH_I2C_Read... [21:23:05]Read from MH i2c: E2 17 00 C4 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A0 [21:23:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:23:05]wFMCommunicate OK [21:23:05]CreateOFDProtocolMessage done [21:23:05]OFDSenderStorePacket 165459 [21:23:05]StoreOFDPacket docnum=165459 [21:23:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 4C 43 07 01 69 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 38 93 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 53 86 02 00 35 04 06 00 A3 A0 49 E8 D2 E3 08 C6 14 C3 DE A0 AF 54 [21:23:05]CheckFolder [21:23:05]dirname=/storage/ofd_packets [21:23:05]CheckFolder done [21:23:05]ProducePacketName [21:23:05]name=ofd_packets/00165459 [21:23:05]NVStorageSaveData ofd_packets/00165459 [21:23:05]File name is /storage/ofd_packets/00165459 [21:23:05]Write 301 bytes [21:23:05]NVStorageSaveData done [21:23:05]OFDSenderStorePacket done [21:23:05]KKMCreateOFDPacket done [21:23:05]NVStorageSaveData kkm_last_timestamp [21:23:05]File name is /storage/kkm_last_timestamp [21:23:05]Write 4 bytes [21:23:05]NVStorageSaveData done [21:23:05]ExternCall_PrintAddStr [21:23:05]wPrintStart [21:23:05]Write to MH i2c: 01 00 00 C5 0C D1 [21:23:05]Write i2c OK [21:23:05]MH_I2C_Read... [21:23:05]Read from MH i2c: 01 [21:23:05]MH_I2C_Read... [21:23:05]Read from MH i2c: 01 07 00 [21:23:05]MH_I2C_Read... [21:23:05]Read from MH i2c: 01 07 00 C5 0C 00 00 00 00 00 FF 0F E6 [21:23:05]RasterBufferAndPrint [21:23:05]line Счет N : (1)459575 [21:23:05]line ИНН: 02508201610067 [21:23:05]line Контрольно-Кассовый Чек [21:23:05]line ПРОДАЖА [21:23:05]line ТРК (МРК, ГНК) : 22 [21:23:05]line Товар: 2710124130 [21:23:05]line Аи-92-К-5 [21:23:05]line 9.120 * 65.80 [21:23:05]line = 600.10 [21:23:05]line НДС 12% НСП 1% [21:23:05]line > о реализуемом товаре [21:23:05]line ОКРУГЛЕНИЕ: -0.10 [21:23:05]line ИТОГО: 600.00 [21:23:05]line Внесено: 600.00 [21:23:05]line СДАЧА: 0.00 [21:23:05]line НСП 1% : 5.31 [21:23:05]line НДС 12% : 63.73 [21:23:05]line Наличными: 600.00 [21:23:05]line Безнал.: 0.00 [21:23:05]line Место: АЗС № 72 "Партнер Нефть" [21:23:05]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [21:23:05]line СНО: Общий режим [21:23:05]line Чек 332 15.07.2024 21:23 [21:23:05]line Смена: 448 ФФД: 1.0 [21:23:05]line ЗНМ: 0300000160 [21:23:05]line РНМ: 0000000000090829 [21:23:05]line Версия ККМ: 001 [21:23:05]line ФМ: 0000000000874718 [21:23:05]line ФД: 165459 [21:23:05]line ФПД: 179908830089955 [21:23:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T212304&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165459&fm=179908830089955&tin=02508201610067®Number=0000000000090829&sum=60000 [21:23:05]OFD Sender: Processing packet 165459 [packets to send 106, broken 105] [21:23:05]ProducePacketName [21:23:05]name=ofd_packets/00165459 [21:23:05]OFD Sender: To server: pG, [21:23:05]CommunicateWithHost lk.salyk.kg:30040 [21:23:05]ConnectInit lk.salyk.kg [21:23:05]written 0, free lines is 4095 [21:23:05]Connected sock=10 [21:23: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 37 31 38 0F 01 00 00 4C 43 07 01 69 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 23 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 6A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 38 93 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 53 86 02 00 35 04 06 00 A3 A0 49 E8 D2 E3 08 C6 14 C3 DE A0 AF 54 [21:23:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 FF 0F 47 00 F9 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 53 86 02 00 F4 03 04 00 C1 39 95 66 B6 04 01 00 00 54 62 42 75 57 04 3E A1 [21:23:05]CommunicateWithHost err = 0 [21:23:05]CheckOFDResponse [21:23:05]1017 (14) - 77093643461234 [21:23:05]1041 (16) - 0000000000874718 [21:23:05]1040 (4) - 165459 [21:23:05]1012 (4) - 15.07.2024 15:01 [21:23:05]1206 (1) - 0 [21:23:05]OFD Sender: Remove packet 165459 [21:23:05]ProducePacketName [21:23:05]name=ofd_packets/00165459 [21:23:05]NVStorageDeleteData [21:23:06]Write to MH i2c: 01 00 00 EF 0C FB [21:23:06]Write i2c OK [21:23:06]MH_I2C_Read... [21:23:06]Read from MH i2c: 01 [21:23:06]MH_I2C_Read... [21:23:06]Read from MH i2c: 01 07 00 [21:23:06]MH_I2C_Read... [21:23:06]Read from MH i2c: 01 07 00 EF 0C 00 00 00 00 00 F6 0C 04 [21:23:06]RasterBufferAndPrint [21:23:06]line [21:23:06]line [21:23:06]line [21:23:06]line [21:23:06]line [21:23:06]written 0, free lines is 3324 [21:23:06]MH_Cut [21:23:06]Write to MH i2c: D1 01 00 F6 0C 01 D4 [21:23:06]Write i2c OK [21:23:06]MH_I2C_Read... [21:23:06]Read from MH i2c: D1 [21:23:06]MH_I2C_Read... [21:23:06]Read from MH i2c: D1 01 00 [21:23:06]MH_I2C_Read... [21:23:06]Read from MH i2c: D1 01 00 F6 0C 00 D3 [21:23:06]Write to MH i2c: 01 00 00 F7 0C 03 [21:23:06]Write i2c OK [21:23:06]MH_I2C_Read... [21:23:06]OFD Sender: No OFD packet to send [21:23:06]*** Cut start [21:23:06]*** Partial cut [21:23:06]*** CUTSNS_PIN = 1 [21:23:06]*** CUTSNS_PIN = 0 [21:23:07]*** Brake cut motor [21:23:07]Read from MH i2c: 01 [21:23:07]MH_I2C_Read... [21:23:07]*** Stop cut motor [21:23:07]*** Cut end [21:23:07]Read from MH i2c: 01 07 00 [21:23:07]MH_I2C_Read... [21:23:07]Read from MH i2c: 01 07 00 F7 0C 00 00 00 00 00 FF 0F 18 [21:23:07]process_action close_receipt done [21:23:07]requested_data is exist [21:23:07]produce_requested_data [21:23:07]requested_item fm.sn is exist - process it [21:23:07]wFMCommunicate request_size=4 [21:23:07]MH_SAM_APDU [21:23:07]CAPDU: 80 11 00 00 [21:23:07]Write to MH i2c: E2 08 00 F8 0C 80 11 00 00 00 00 00 00 7E [21:23:07]Write i2c OK [21:23:07]MH_I2C_Read... [21:23:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:23:07]Read from MH i2c: E2 [21:23:07]MH_I2C_Read... [21:23:07]Read from MH i2c: E2 17 00 [21:23:07]MH_I2C_Read... [21:23:07]Read from MH i2c: E2 17 00 F8 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D4 [21:23:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:23:07]wFMCommunicate OK [21:23:07]requested_item fd.num is exist - process it [21:23:07]SAM_PROTO_GetFieldsCounters [21:23:07]wFMCommunicate request_size=4 [21:23:07]MH_SAM_APDU [21:23:07]CAPDU: 80 13 00 00 [21:23:07]Write to MH i2c: E2 08 00 F9 0C 80 13 00 00 00 00 00 00 81 [21:23:07]Write i2c OK [21:23:07]MH_I2C_Read... [21:23:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:23:07]Read from MH i2c: E2 [21:23:07]MH_I2C_Read... [21:23:07]Read from MH i2c: E2 62 00 [21:23:07]MH_I2C_Read... [21:23:07]Read from MH i2c: E2 62 00 F9 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 53 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 4C 01 00 00 5E 04 04 00 4C 01 00 00 57 04 04 00 4D 01 00 00 19 04 04 00 00 00 00 00 90 00 2B [21:23:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 53 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 4C 01 00 00 5E 04 04 00 4C 01 00 00 57 04 04 00 4D 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:23:07]wFMCommunicate OK [21:23:07]SAM_PROTO_GetFieldsCounters done [21:23:07]requested_item shift.num is exist - process it [21:23:07]requested_item shift.opened is exist - process it [21:23:07]req_shift_opened [21:23:07]FM_GetShiftState [21:23:07]SAM_PROTO_GetShiftState [21:23:07]wFMCommunicate request_size=4 [21:23:07]MH_SAM_APDU [21:23:07]CAPDU: 80 13 01 00 [21:23:07]Write to MH i2c: E2 08 00 FA 0C 80 13 01 00 00 00 00 00 83 [21:23:07]Write i2c OK [21:23:07]MH_I2C_Read... [21:23:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:23:07]Read from MH i2c: E2 [21:23:07]MH_I2C_Read... [21:23:07]Read from MH i2c: E2 0E 00 [21:23:07]MH_I2C_Read... [21:23:07]Read from MH i2c: E2 0E 00 FA 0C 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 5C [21:23:07]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [21:23:07]wFMCommunicate OK [21:23:07]SAM_PROTO_GetShiftState done [21:23:07]FM_GetShiftState done [21:23:07]req_shift_opened done [21:23:07]requested_item shift.open_date is exist - process it [21:23:07]req_shift_open_date [21:23:07]req_shift_open_date done [21:23:07]produce_requested_data done [21:23:07]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165459,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [21:23:07]process_action_free close_receipt [21:23:07]json_value_free [21:23:07]json_value_free done [21:23:07]process_json_proto returns [21:23:07]Send response to host [21:23:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165459,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [21:23:07]free response buf [21:23:07]execute_script done [21:23:07]execute_script returns [21:23:07]free content buf [21:23:07]Sock 9.Close socket [21:23:07]Sock 9.Thread stoped [21:23:11]OFD Sender: No OFD packet to send [21:23:16]OFD Sender: No OFD packet to send [21:23:21]OFD Sender: No OFD packet to send [21:23:26]OFD Sender: No OFD packet to send [21:23:31]OFD Sender: No OFD packet to send [21:23:36]OFD Sender: No OFD packet to send [21:23:41]OFD Sender: No OFD packet to send [21:23:46]OFD Sender: No OFD packet to send [21:23:51]OFD Sender: No OFD packet to send [21:23:56]OFD Sender: No OFD packet to send [21:24:01]OFD Sender: No OFD packet to send [21:24:06]OFD Sender: No OFD packet to send [21:24:11]OFD Sender: No OFD packet to send [21:24:16]OFD Sender: No OFD packet to send [21:24:21]OFD Sender: No OFD packet to send [21:24:26]OFD Sender: No OFD packet to send [21:24:31]OFD Sender: No OFD packet to send [21:24:36]OFD Sender: No OFD packet to send [21:24:41]OFD Sender: No OFD packet to send [21:24:42]accept exits with 7 [21:24:42]New connection [21:24:42]New thread 3067190628 created [21:24:42]Thread 3067333988 joined [21:24:42]Waiting for new connection... [21:24:42] Sock 7.Parse request [21:24:42]Sock 7.Check first char [21:24:42]Sock 7.First char is OK [21:24:42]request: POST /json_proto HTTP/1.0 [21:24:42]Method: POST [21:24:42]URL: /json_proto [21:24:42]Method is POST - this is cgi request [21:24:42]url: /json_proto [21:24:42]query_string will be loaded in cgi processing [21:24:42]execute_cgi json_proto POST (null) [21:24:42]execute_cgi path=json_proto method=POST [21:24:42]POST find Content-Length [21:24:42]Host: 172.17.56.4:8080 [21:24:42]Content-Length: 677 [21:24:42]Content-Type: application/json [21:24:42] [21:24:42]POST finish read [21:24:42]Found Content-Length = 677 [21:24:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459576", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:24:42]execute_script... [21:24: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)459576", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:24:42]POST & json_proto [21:24:42]process_json_proto [21:24:42]json parsed OK: [21:24:42]protocol is kg_v1.0 [21:24:42]action value=close_receipt [21:24:42]process_action close_receipt [21:24:42]cmd_close_receipt [21:24:42]MH_GetDate [21:24:42]Write to MH i2c: F0 00 00 FB 0C F6 [21:24:42]Write i2c OK [21:24:42]MH_I2C_Read... [21:24:42]Read from MH i2c: F0 [21:24:42]MH_I2C_Read... [21:24:42]Read from MH i2c: F0 09 00 [21:24:42]MH_I2C_Read... [21:24:42]Read from MH i2c: F0 09 00 FB 0C 00 9B 93 95 66 C9 DC B2 64 E3 [21:24:42]GetLastDocTimeStamp 1721078584 [21:24:42]current date 1721078683 [21:24:42]FM_GetShiftState [21:24:42]SAM_PROTO_GetShiftState [21:24:42]wFMCommunicate request_size=4 [21:24:42]MH_SAM_APDU [21:24:42]CAPDU: 80 13 01 00 [21:24:42]Write to MH i2c: E2 08 00 FC 0C 80 13 01 00 00 00 00 00 85 [21:24:42]Write i2c OK [21:24:42]MH_I2C_Read... [21:24:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:24:42]Read from MH i2c: E2 [21:24:42]MH_I2C_Read... [21:24:42]Read from MH i2c: E2 0E 00 [21:24:42]MH_I2C_Read... [21:24:42]Read from MH i2c: E2 0E 00 FC 0C 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 5E [21:24:42]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [21:24:42]wFMCommunicate OK [21:24:42]SAM_PROTO_GetShiftState done [21:24:42]FM_GetShiftState done [21:24:42]opened in 1721003876 [21:24:42]opened+sec_in_day 1721090276 [21:24:42]quantity*price = 40006 [21:24:42]sum+1 = 40007 [21:24:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 333 15.07.2024 21:24 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165460 ФПД: 180712400291209 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T212443&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165460&fm=180712400291209&tin=02508201610067®Number=0000000000090829&sum=40000 [21:24:43]StoreToDocumentArchive [21:24:43]shift 448 fd 165460 [21:24:43]save to /storage/0448/doc_00165460 [21:24:43]save last doc name /storage/0448/doc_00165460 to /storage/kkm_last_doc_name [21:24:43]save OK [21:24:43]Clear old archive folders... [21:24:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:24:43]tlvbuf is 01B94ED0 [21:24:43]SAM_PROTO_ClearQueue [21:24:43]wFMCommunicate request_size=4 [21:24:43]MH_SAM_APDU [21:24:43]CAPDU: 80 09 00 00 [21:24:43]Write to MH i2c: E2 08 00 09 0D 80 09 00 00 00 00 00 00 88 [21:24:43]Write i2c OK [21:24:43]MH_I2C_Read... [21:24:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:24:43]Read from MH i2c: E2 [21:24:43]MH_I2C_Read... [21:24:43]Read from MH i2c: E2 03 00 [21:24:43]MH_I2C_Read... [21:24:43]Read from MH i2c: E2 03 00 09 0D 00 90 00 8A [21:24:43]RAPDU: 90 00 [21:24:43]wFMCommunicate OK [21:24:43]SAM_PROTO_ClearQueue done [21:24:43]KKMCreateOFDPacket [21:24:43]OFDProtocolAddRootSTLVToBuf [21:24:43]FM_MakeSignedData [21:24:43]FM_MakeSignedData [21:24:43]SAM_PROTO_SignData [21:24:43]wFMCommunicate request_size=4 [21:24:43]MH_SAM_APDU [21:24:43]CAPDU: 80 0D 01 02 [21:24:43]Write to MH i2c: E2 08 00 0A 0D 80 0D 01 02 00 00 00 00 90 [21:24:43]Write i2c OK [21:24:43]MH_I2C_Read... [21:24:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:24:43]Read from MH i2c: E2 [21:24:43]MH_I2C_Read... [21:24:43]Read from MH i2c: E2 03 00 [21:24:43]MH_I2C_Read... [21:24:43]Read from MH i2c: E2 03 00 0A 0D 00 90 00 8B [21:24:43]RAPDU: 90 00 [21:24:43]wFMCommunicate OK [21:24:43]wFMCommunicate request_size=255 [21:24:43]MH_SAM_APDU [21:24: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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 9B 93 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 54 86 02 00 35 04 06 00 A4 [21:24:43]Write to MH i2c: E2 02 01 0B 0D 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 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 9B 93 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 54 86 02 00 35 04 06 00 A4 00 00 A1 [21:24:43]Write i2c OK [21:24:43]MH_I2C_Read... [21:24:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:24:43]Read from MH i2c: E2 [21:24:43]MH_I2C_Read... [21:24:43]Read from MH i2c: E2 03 00 [21:24:43]MH_I2C_Read... [21:24:43]Read from MH i2c: E2 03 00 0B 0D 00 90 00 8C [21:24:43]RAPDU: 90 00 [21:24:43]wFMCommunicate OK [21:24:43]wFMCommunicate request_size=10 [21:24:43]MH_SAM_APDU [21:24:43]CAPDU: 80 0D 02 02 05 5B 62 6D 05 89 [21:24:43]Write to MH i2c: E2 0D 00 0C 0D 80 0D 02 02 05 00 5B 62 6D 05 89 00 00 55 [21:24:43]Write i2c OK [21:24:43]MH_I2C_Read... [21:24:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:24:43]Read from MH i2c: E2 [21:24:43]MH_I2C_Read... [21:24:43]Read from MH i2c: E2 03 00 [21:24:43]MH_I2C_Read... [21:24:43]Read from MH i2c: E2 03 00 0C 0D 00 90 00 8D [21:24:43]RAPDU: 90 00 [21:24:43]wFMCommunicate OK [21:24:43]wFMCommunicate request_size=4 [21:24:43]MH_SAM_APDU [21:24:43]CAPDU: 80 0D 03 02 [21:24:43]Write to MH i2c: E2 08 00 0D 0D 80 0D 03 02 00 00 00 00 95 [21:24:43]Write i2c OK [21:24:43]MH_I2C_Read... [21:24:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:24:43]Read from MH i2c: E2 [21:24:43]MH_I2C_Read... [21:24:43]Read from MH i2c: E2 0B 00 [21:24:43]MH_I2C_Read... [21:24:43]Read from MH i2c: E2 0B 00 0D 0D 00 19 C8 C4 51 4A F2 35 3A 90 00 37 [21:24:43]RAPDU: 19 C8 C4 51 4A F2 35 3A 90 00 [21:24:43]wFMCommunicate OK [21:24:43]SAM_PROTO_SignData done [21:24:43]FM_MakeSignedData done [21:24:43]CreateOFDProtocolMessage [21:24:43]wFMCommunicate request_size=4 [21:24:43]MH_SAM_APDU [21:24:43]CAPDU: 80 11 00 00 [21:24:43]Write to MH i2c: E2 08 00 0E 0D 80 11 00 00 00 00 00 00 95 [21:24:43]Write i2c OK [21:24:43]MH_I2C_Read... [21:24:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:24:43]Read from MH i2c: E2 [21:24:43]MH_I2C_Read... [21:24:43]Read from MH i2c: E2 17 00 [21:24:43]MH_I2C_Read... [21:24:43]Read from MH i2c: E2 17 00 0E 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 EB [21:24:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:24:43]wFMCommunicate OK [21:24:43]CreateOFDProtocolMessage done [21:24:43]OFDSenderStorePacket 165460 [21:24:43]StoreOFDPacket docnum=165460 [21:24:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 81 CA 07 01 D8 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 9B 93 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 54 86 02 00 35 04 06 00 A4 5B 62 6D 05 89 19 C8 C4 51 4A F2 35 3A [21:24:43]CheckFolder [21:24:43]dirname=/storage/ofd_packets [21:24:43]CheckFolder done [21:24:43]ProducePacketName [21:24:43]name=ofd_packets/00165460 [21:24:43]NVStorageSaveData ofd_packets/00165460 [21:24:43]File name is /storage/ofd_packets/00165460 [21:24:43]Write 301 bytes [21:24:43]NVStorageSaveData done [21:24:43]OFDSenderStorePacket done [21:24:43]KKMCreateOFDPacket done [21:24:43]NVStorageSaveData kkm_last_timestamp [21:24:43]File name is /storage/kkm_last_timestamp [21:24:43]Write 4 bytes [21:24:43]NVStorageSaveData done [21:24:43]ExternCall_PrintAddStr [21:24:43]wPrintStart [21:24:43]Write to MH i2c: 01 00 00 0F 0D 1C [21:24:43]Write i2c OK [21:24:43]MH_I2C_Read... [21:24:43]Read from MH i2c: 01 [21:24:43]MH_I2C_Read... [21:24:43]Read from MH i2c: 01 07 00 [21:24:43]MH_I2C_Read... [21:24:43]Read from MH i2c: 01 07 00 0F 0D 00 00 00 00 00 FF 0F 31 [21:24:43]RasterBufferAndPrint [21:24:43]line Счет N : (1)459576 [21:24:43]line ИНН: 02508201610067 [21:24:43]line Контрольно-Кассовый Чек [21:24:43]line ПРОДАЖА [21:24:43]line ТРК (МРК, ГНК) : 12 [21:24:43]line Товар: 2710124130 [21:24:43]line Аи-92-К-5 [21:24:43]line 6.080 * 65.80 [21:24:43]line = 400.06 [21:24:43]line НДС 12% НСП 1% [21:24:43]line > о реализуемом товаре [21:24:43]line ОКРУГЛЕНИЕ: -0.06 [21:24:43]line ИТОГО: 400.00 [21:24:43]line Внесено: 400.00 [21:24:43]line СДАЧА: 0.00 [21:24:43]line НСП 1% : 3.54 [21:24:43]line НДС 12% : 42.48 [21:24:43]line Наличными: 400.00 [21:24:43]line Безнал.: 0.00 [21:24:43]line Место: АЗС № 72 "Партнер Нефть" [21:24:43]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [21:24:43]line СНО: Общий режим [21:24:43]line Чек 333 15.07.2024 21:24 [21:24:43]line Смена: 448 ФФД: 1.0 [21:24:43]line ЗНМ: 0300000160 [21:24:43]line РНМ: 0000000000090829 [21:24:43]line Версия ККМ: 001 [21:24:43]line ФМ: 0000000000874718 [21:24:43]line ФД: 165460 [21:24:43]line ФПД: 180712400291209 [21:24:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T212443&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165460&fm=180712400291209&tin=02508201610067®Number=0000000000090829&sum=40000 [21:24:44]written 0, free lines is 4095 [21:24:44]OFD Sender: Processing packet 165460 [packets to send 106, broken 105] [21:24:44]ProducePacketName [21:24:44]name=ofd_packets/00165460 [21:24:44]OFD Sender: To server: pG, [21:24:44]CommunicateWithHost lk.salyk.kg:30040 [21:24:44]ConnectInit lk.salyk.kg [21:24:44]Connected sock=10 [21:24: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 37 31 38 0F 01 00 00 81 CA 07 01 D8 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 9B 93 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 54 86 02 00 35 04 06 00 A4 5B 62 6D 05 89 19 C8 C4 51 4A F2 35 3A [21:24:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 64 B0 47 00 78 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 54 86 02 00 F4 03 04 00 24 3A 95 66 B6 04 01 00 00 E9 63 3E 5D C7 C0 E8 F6 [21:24:44]CommunicateWithHost err = 0 [21:24:44]CheckOFDResponse [21:24:44]1017 (14) - 77093643461234 [21:24:44]1041 (16) - 0000000000874718 [21:24:44]1040 (4) - 165460 [21:24:44]1012 (4) - 15.07.2024 15:03 [21:24:44]1206 (1) - 0 [21:24:44]OFD Sender: Remove packet 165460 [21:24:44]ProducePacketName [21:24:44]name=ofd_packets/00165460 [21:24:44]NVStorageDeleteData [21:24:44]Write to MH i2c: 01 00 00 39 0D 46 [21:24:44]Write i2c OK [21:24:44]MH_I2C_Read... [21:24:44]Read from MH i2c: 01 [21:24:44]MH_I2C_Read... [21:24:44]Read from MH i2c: 01 07 00 [21:24:44]MH_I2C_Read... [21:24:44]Read from MH i2c: 01 07 00 39 0D 00 00 00 00 00 F4 0C 4D [21:24:44]RasterBufferAndPrint [21:24:44]line [21:24:44]line [21:24:44]line [21:24:44]line [21:24:44]line [21:24:44]written 0, free lines is 3323 [21:24:44]MH_Cut [21:24:44]Write to MH i2c: D1 01 00 40 0D 01 1F [21:24:44]Write i2c OK [21:24:44]MH_I2C_Read... [21:24:44]Read from MH i2c: D1 [21:24:44]MH_I2C_Read... [21:24:44]Read from MH i2c: D1 01 00 [21:24:44]MH_I2C_Read... [21:24:44]Read from MH i2c: D1 01 00 40 0D 00 1E [21:24:44]Write to MH i2c: 01 00 00 41 0D 4E [21:24:44]Write i2c OK [21:24:44]MH_I2C_Read... [21:24:44]OFD Sender: No OFD packet to send [21:24:45]*** Cut start [21:24:45]*** Partial cut [21:24:45]*** CUTSNS_PIN = 1 [21:24:45]*** CUTSNS_PIN = 0 [21:24:45]*** Brake cut motor [21:24:45]Read from MH i2c: 01 [21:24:45]MH_I2C_Read... [21:24:45]*** Stop cut motor [21:24:45]*** Cut end [21:24:45]Read from MH i2c: 01 07 00 [21:24:45]MH_I2C_Read... [21:24:45]Read from MH i2c: 01 07 00 41 0D 00 00 00 00 00 FF 0F 63 [21:24:45]process_action close_receipt done [21:24:45]requested_data is exist [21:24:45]produce_requested_data [21:24:45]requested_item fm.sn is exist - process it [21:24:45]wFMCommunicate request_size=4 [21:24:45]MH_SAM_APDU [21:24:45]CAPDU: 80 11 00 00 [21:24:45]Write to MH i2c: E2 08 00 42 0D 80 11 00 00 00 00 00 00 C9 [21:24:45]Write i2c OK [21:24:45]MH_I2C_Read... [21:24:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:24:45]Read from MH i2c: E2 [21:24:45]MH_I2C_Read... [21:24:45]Read from MH i2c: E2 17 00 [21:24:45]MH_I2C_Read... [21:24:45]Read from MH i2c: E2 17 00 42 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1F [21:24:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:24:45]wFMCommunicate OK [21:24:45]requested_item fd.num is exist - process it [21:24:45]SAM_PROTO_GetFieldsCounters [21:24:45]wFMCommunicate request_size=4 [21:24:45]MH_SAM_APDU [21:24:45]CAPDU: 80 13 00 00 [21:24:45]Write to MH i2c: E2 08 00 43 0D 80 13 00 00 00 00 00 00 CC [21:24:45]Write i2c OK [21:24:45]MH_I2C_Read... [21:24:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:24:46]Read from MH i2c: E2 [21:24:46]MH_I2C_Read... [21:24:46]Read from MH i2c: E2 62 00 [21:24:46]MH_I2C_Read... [21:24:46]Read from MH i2c: E2 62 00 43 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 54 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 4D 01 00 00 5E 04 04 00 4D 01 00 00 57 04 04 00 4E 01 00 00 19 04 04 00 00 00 00 00 90 00 7A [21:24: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 54 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 4D 01 00 00 5E 04 04 00 4D 01 00 00 57 04 04 00 4E 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:24:46]wFMCommunicate OK [21:24:46]SAM_PROTO_GetFieldsCounters done [21:24:46]requested_item shift.num is exist - process it [21:24:46]requested_item shift.opened is exist - process it [21:24:46]req_shift_opened [21:24:46]FM_GetShiftState [21:24:46]SAM_PROTO_GetShiftState [21:24:46]wFMCommunicate request_size=4 [21:24:46]MH_SAM_APDU [21:24:46]CAPDU: 80 13 01 00 [21:24:46]Write to MH i2c: E2 08 00 44 0D 80 13 01 00 00 00 00 00 CE [21:24:46]Write i2c OK [21:24:46]MH_I2C_Read... [21:24:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:24:46]Read from MH i2c: E2 [21:24:46]MH_I2C_Read... [21:24:46]Read from MH i2c: E2 0E 00 [21:24:46]MH_I2C_Read... [21:24:46]Read from MH i2c: E2 0E 00 44 0D 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 A7 [21:24:46]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [21:24:46]wFMCommunicate OK [21:24:46]SAM_PROTO_GetShiftState done [21:24:46]FM_GetShiftState done [21:24:46]req_shift_opened done [21:24:46]requested_item shift.open_date is exist - process it [21:24:46]req_shift_open_date [21:24:46]req_shift_open_date done [21:24:46]produce_requested_data done [21:24:46]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165460,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [21:24:46]process_action_free close_receipt [21:24:46]json_value_free [21:24:46]json_value_free done [21:24:46]process_json_proto returns [21:24:46]Send response to host [21:24:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165460,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [21:24:46]free response buf [21:24:46]execute_script done [21:24:46]execute_script returns [21:24:46]free content buf [21:24:46]Sock 7.Close socket [21:24:46]Sock 7.Thread stoped [21:24:49]OFD Sender: No OFD packet to send [21:24:54]OFD Sender: No OFD packet to send [21:24:59]OFD Sender: No OFD packet to send [21:25:04]OFD Sender: No OFD packet to send [21:25:10]OFD Sender: No OFD packet to send [21:25:15]OFD Sender: No OFD packet to send [21:25:20]OFD Sender: No OFD packet to send [21:25:25]OFD Sender: No OFD packet to send [21:25:30]OFD Sender: No OFD packet to send [21:25:35]OFD Sender: No OFD packet to send [21:25:40]OFD Sender: No OFD packet to send [21:25:45]OFD Sender: No OFD packet to send [21:25:49]accept exits with 9 [21:25:49]New connection [21:25:49]New thread 3067333988 created [21:25:49]Thread 3067190628 joined [21:25:49]Waiting for new connection... [21:25:49] Sock 9.Parse request [21:25:49]Sock 9.Check first char [21:25:49]Sock 9.First char is OK [21:25:49]request: POST /json_proto HTTP/1.0 [21:25:49]Method: POST [21:25:49]URL: /json_proto [21:25:49]Method is POST - this is cgi request [21:25:49]url: /json_proto [21:25:49]query_string will be loaded in cgi processing [21:25:49]execute_cgi json_proto POST (null) [21:25:49]execute_cgi path=json_proto method=POST [21:25:49]POST find Content-Length [21:25:49]Host: 172.17.56.4:8080 [21:25:49]Content-Length: 787 [21:25:49]Content-Type: application/json [21:25:49] [21:25:49]POST finish read [21:25:49]Found Content-Length = 787 [21:25:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459577", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 5.040, "sum" : 359.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 359.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:25:49]execute_script... [21:25:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459577", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 5.040, "sum" : 359.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 359.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:25:49]POST & json_proto [21:25:49]process_json_proto [21:25:49]json parsed OK: [21:25:49]protocol is kg_v1.0 [21:25:49]action value=close_receipt [21:25:49]process_action close_receipt [21:25:49]cmd_close_receipt [21:25:49]MH_GetDate [21:25:49]Write to MH i2c: F0 00 00 45 0D 41 [21:25:49]Write i2c OK [21:25:49]MH_I2C_Read... [21:25:49]Read from MH i2c: F0 [21:25:49]MH_I2C_Read... [21:25:49]Read from MH i2c: F0 09 00 [21:25:49]MH_I2C_Read... [21:25:49]Read from MH i2c: F0 09 00 45 0D 00 DE 93 95 66 C9 DC B2 64 71 [21:25:49]GetLastDocTimeStamp 1721078683 [21:25:49]current date 1721078750 [21:25:49]FM_GetShiftState [21:25:49]SAM_PROTO_GetShiftState [21:25:49]wFMCommunicate request_size=4 [21:25:49]MH_SAM_APDU [21:25:49]CAPDU: 80 13 01 00 [21:25:49]Write to MH i2c: E2 08 00 46 0D 80 13 01 00 00 00 00 00 D0 [21:25:49]Write i2c OK [21:25:49]MH_I2C_Read... [21:25:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:25:49]Read from MH i2c: E2 [21:25:49]MH_I2C_Read... [21:25:49]Read from MH i2c: E2 0E 00 [21:25:49]MH_I2C_Read... [21:25:49]Read from MH i2c: E2 0E 00 46 0D 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 A9 [21:25:49]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [21:25:49]wFMCommunicate OK [21:25:49]SAM_PROTO_GetShiftState done [21:25:49]FM_GetShiftState done [21:25:49]opened in 1721003876 [21:25:49]opened+sec_in_day 1721090276 [21:25:49]quantity*price = 35915 [21:25:49]sum+1 = 35916 [21:25:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 359.15 НСП 1% : 3.18 НДС 12% : 38.14 Наличными: 0.00 Безнал.: 359.15 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 334 15.07.2024 21:25 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 165461 ФПД: 105986101913414 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T212550&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165461&fm=105986101913414&tin=02508201610067®Number=0000000000090829&sum=35915 [21:25:50]StoreToDocumentArchive [21:25:50]shift 448 fd 165461 [21:25:50]save to /storage/0448/doc_00165461 [21:25:50]save last doc name /storage/0448/doc_00165461 to /storage/kkm_last_doc_name [21:25:50]save OK [21:25:50]Clear old archive folders... [21:25:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:25:50]tlvbuf is 01B26E30 [21:25:50]SAM_PROTO_ClearQueue [21:25:50]wFMCommunicate request_size=4 [21:25:50]MH_SAM_APDU [21:25:50]CAPDU: 80 09 00 00 [21:25:50]Write to MH i2c: E2 08 00 53 0D 80 09 00 00 00 00 00 00 D2 [21:25:50]Write i2c OK [21:25:50]MH_I2C_Read... [21:25:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:25:50]Read from MH i2c: E2 [21:25:50]MH_I2C_Read... [21:25:50]Read from MH i2c: E2 03 00 [21:25:50]MH_I2C_Read... [21:25:50]Read from MH i2c: E2 03 00 53 0D 00 90 00 D4 [21:25:50]RAPDU: 90 00 [21:25:50]wFMCommunicate OK [21:25:50]SAM_PROTO_ClearQueue done [21:25:50]KKMCreateOFDPacket [21:25:50]OFDProtocolAddRootSTLVToBuf [21:25:50]FM_MakeSignedData [21:25:50]FM_MakeSignedData [21:25:50]SAM_PROTO_SignData [21:25:50]wFMCommunicate request_size=4 [21:25:50]MH_SAM_APDU [21:25:50]CAPDU: 80 0D 01 02 [21:25:50]Write to MH i2c: E2 08 00 54 0D 80 0D 01 02 00 00 00 00 DA [21:25:50]Write i2c OK [21:25:50]MH_I2C_Read... [21:25:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:25:50]Read from MH i2c: E2 [21:25:50]MH_I2C_Read... [21:25:50]Read from MH i2c: E2 03 00 [21:25:50]MH_I2C_Read... [21:25:50]Read from MH i2c: E2 03 00 54 0D 00 90 00 D5 [21:25:50]RAPDU: 90 00 [21:25:50]wFMCommunicate OK [21:25:50]wFMCommunicate request_size=255 [21:25:50]MH_SAM_APDU [21:25:50]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B0 13 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 4B 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4B 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4B 8C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 DE 93 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 55 86 02 00 35 04 06 00 60 64 CF F4 [21:25:50]Write to MH i2c: E2 02 01 55 0D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B0 13 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 4B 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4B 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4B 8C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 DE 93 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 55 86 02 00 35 04 06 00 60 64 CF F4 00 00 89 [21:25:50]Write i2c OK [21:25:50]MH_I2C_Read... [21:25:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:25:51]Read from MH i2c: E2 [21:25:51]MH_I2C_Read... [21:25:51]Read from MH i2c: E2 03 00 [21:25:51]MH_I2C_Read... [21:25:51]Read from MH i2c: E2 03 00 55 0D 00 90 00 D6 [21:25:51]RAPDU: 90 00 [21:25:51]wFMCommunicate OK [21:25:51]wFMCommunicate request_size=7 [21:25:51]MH_SAM_APDU [21:25:51]CAPDU: 80 0D 02 02 02 A7 46 [21:25:51]Write to MH i2c: E2 0A 00 56 0D 80 0D 02 02 02 00 A7 46 00 00 CE [21:25:51]Write i2c OK [21:25:51]MH_I2C_Read... [21:25:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:25:51]Read from MH i2c: E2 [21:25:51]MH_I2C_Read... [21:25:51]Read from MH i2c: E2 03 00 [21:25:51]MH_I2C_Read... [21:25:51]Read from MH i2c: E2 03 00 56 0D 00 90 00 D7 [21:25:51]RAPDU: 90 00 [21:25:51]wFMCommunicate OK [21:25:51]wFMCommunicate request_size=4 [21:25:51]MH_SAM_APDU [21:25:51]CAPDU: 80 0D 03 02 [21:25:51]Write to MH i2c: E2 08 00 57 0D 80 0D 03 02 00 00 00 00 DF [21:25:51]Write i2c OK [21:25:51]MH_I2C_Read... [21:25:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:25:51]Read from MH i2c: E2 [21:25:51]MH_I2C_Read... [21:25:51]Read from MH i2c: E2 0B 00 [21:25:51]MH_I2C_Read... [21:25:51]Read from MH i2c: E2 0B 00 57 0D 00 A5 65 D4 F4 EC CF B9 8C 90 00 B2 [21:25:51]RAPDU: A5 65 D4 F4 EC CF B9 8C 90 00 [21:25:51]wFMCommunicate OK [21:25:51]SAM_PROTO_SignData done [21:25:51]FM_MakeSignedData done [21:25:51]CreateOFDProtocolMessage [21:25:51]wFMCommunicate request_size=4 [21:25:51]MH_SAM_APDU [21:25:51]CAPDU: 80 11 00 00 [21:25:51]Write to MH i2c: E2 08 00 58 0D 80 11 00 00 00 00 00 00 DF [21:25:51]Write i2c OK [21:25:51]MH_I2C_Read... [21:25:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:25:51]Read from MH i2c: E2 [21:25:51]MH_I2C_Read... [21:25:51]Read from MH i2c: E2 17 00 [21:25:51]MH_I2C_Read... [21:25:51]Read from MH i2c: E2 17 00 58 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 35 [21:25:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:25:51]wFMCommunicate OK [21:25:51]CreateOFDProtocolMessage done [21:25:51]OFDSenderStorePacket 165461 [21:25:51]StoreOFDPacket docnum=165461 [21:25:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 19 57 04 01 21 3C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B0 13 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 4B 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4B 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4B 8C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 DE 93 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 55 86 02 00 35 04 06 00 60 64 CF F4 A7 46 A5 65 D4 F4 EC CF B9 8C [21:25:51]CheckFolder [21:25:51]dirname=/storage/ofd_packets [21:25:51]CheckFolder done [21:25:51]ProducePacketName [21:25:51]name=ofd_packets/00165461 [21:25:51]NVStorageSaveData ofd_packets/00165461 [21:25:51]File name is /storage/ofd_packets/00165461 [21:25:51]Write 298 bytes [21:25:51]NVStorageSaveData done [21:25:51]OFDSenderStorePacket done [21:25:51]KKMCreateOFDPacket done [21:25:51]NVStorageSaveData kkm_last_timestamp [21:25:51]File name is /storage/kkm_last_timestamp [21:25:51]Write 4 bytes [21:25:51]NVStorageSaveData done [21:25:51]ExternCall_PrintAddStr [21:25:51]wPrintStart [21:25:51]Write to MH i2c: 01 00 00 59 0D 66 [21:25:51]Write i2c OK [21:25:51]MH_I2C_Read... [21:25:51]Read from MH i2c: 01 [21:25:51]MH_I2C_Read... [21:25:51]Read from MH i2c: 01 07 00 [21:25:51]MH_I2C_Read... [21:25:51]Read from MH i2c: 01 07 00 59 0D 00 00 00 00 00 FF 0F 7B [21:25:51]RasterBufferAndPrint [21:25:51]line Счет N : (1)459577 [21:25:51]line ИНН: 02508201610067 [21:25:51]line Контрольно-Кассовый Чек [21:25:51]line ПРОДАЖА [21:25:51]line ТРК (МРК, ГНК) : 21 [21:25:51]line Товар: 2710194210 [21:25:51]line ДТ-К-5 [21:25:51]line 5.040 * 71.26 [21:25:51]line = 359.15 [21:25:51]line НДС 12% НСП 1% [21:25:51]line > о реализуемом товаре [21:25:51]line ИТОГО: 359.15 [21:25:51]line НСП 1% : 3.18 [21:25:51]line НДС 12% : 38.14 [21:25:51]line Наличными: 0.00 [21:25:51]line Безнал.: 359.15 [21:25:51]line Место: АЗС № 72 "Партнер Нефть" [21:25:51]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [21:25:51]line СНО: Общий режим [21:25:51]line Чек 334 15.07.2024 21:25 [21:25:51]line Смена: 448 ФФД: 1.0 [21:25:51]line ЗНМ: 0300000160 [21:25:51]line РНМ: 0000000000090829 [21:25:51]line Версия ККМ: 001 [21:25:51]line Платежная система: KICB Банк [21:25:51]line ФМ: 0000000000874718 [21:25:51]line ФД: 165461 [21:25:51]line ФПД: 105986101913414 [21:25:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T212550&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165461&fm=105986101913414&tin=02508201610067®Number=0000000000090829&sum=35915 [21:25:51]OFD Sender: Processing packet 165461 [packets to send 106, broken 105] [21:25:51]ProducePacketName [21:25:51]name=ofd_packets/00165461 [21:25:51]OFD Sender: To server: pG, [21:25:51]CommunicateWithHost lk.salyk.kg:30040 [21:25:51]ConnectInit lk.salyk.kg [21:25:51]written 0, free lines is 4095 [21:25:51]Connected sock=10 [21:25:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 19 57 04 01 21 3C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B0 13 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 4B 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4B 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4B 8C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 DE 93 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 55 86 02 00 35 04 06 00 60 64 CF F4 A7 46 A5 65 D4 F4 EC CF B9 8C [21:25:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 27 BE 47 00 57 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 55 86 02 00 F4 03 04 00 67 3A 95 66 B6 04 01 00 00 D7 5A 06 8D 31 99 F6 DA [21:25:51]CommunicateWithHost err = 0 [21:25:51]CheckOFDResponse [21:25:51]1017 (14) - 77093643461234 [21:25:51]1041 (16) - 0000000000874718 [21:25:51]1040 (4) - 165461 [21:25:51]1012 (4) - 15.07.2024 15:04 [21:25:51]1206 (1) - 0 [21:25:51]OFD Sender: Remove packet 165461 [21:25:51]ProducePacketName [21:25:51]name=ofd_packets/00165461 [21:25:51]NVStorageDeleteData [21:25:51]Write to MH i2c: 01 00 00 82 0D 8F [21:25:51]Write i2c OK [21:25:51]MH_I2C_Read... [21:25:51]Read from MH i2c: 01 [21:25:51]MH_I2C_Read... [21:25:51]Read from MH i2c: 01 07 00 [21:25:51]MH_I2C_Read... [21:25:51]Read from MH i2c: 01 07 00 82 0D 00 00 00 00 00 FD 0C 9F [21:25:51]RasterBufferAndPrint [21:25:51]line [21:25:51]line [21:25:51]line [21:25:51]line [21:25:51]line [21:25:51]written 0, free lines is 3331 [21:25:52]MH_Cut [21:25:52]Write to MH i2c: D1 01 00 89 0D 01 68 [21:25:52]Write i2c OK [21:25:52]MH_I2C_Read... [21:25:52]Read from MH i2c: D1 [21:25:52]MH_I2C_Read... [21:25:52]Read from MH i2c: D1 01 00 [21:25:52]MH_I2C_Read... [21:25:52]Read from MH i2c: D1 01 00 89 0D 00 67 [21:25:52]Write to MH i2c: 01 00 00 8A 0D 97 [21:25:52]Write i2c OK [21:25:52]MH_I2C_Read... [21:25:52]OFD Sender: No OFD packet to send [21:25:52]*** Cut start [21:25:52]*** Partial cut [21:25:52]*** CUTSNS_PIN = 1 [21:25:52]*** CUTSNS_PIN = 0 [21:25:52]*** Brake cut motor [21:25:53]Read from MH i2c: 01 [21:25:53]MH_I2C_Read... [21:25:53]*** Stop cut motor [21:25:53]*** Cut end [21:25:53]Read from MH i2c: 01 07 00 [21:25:53]MH_I2C_Read... [21:25:53]Read from MH i2c: 01 07 00 8A 0D 00 00 00 00 00 FF 0F AC [21:25:53]process_action close_receipt done [21:25:53]requested_data is exist [21:25:53]produce_requested_data [21:25:53]requested_item fm.sn is exist - process it [21:25:53]wFMCommunicate request_size=4 [21:25:53]MH_SAM_APDU [21:25:53]CAPDU: 80 11 00 00 [21:25:53]Write to MH i2c: E2 08 00 8B 0D 80 11 00 00 00 00 00 00 12 [21:25:53]Write i2c OK [21:25:53]MH_I2C_Read... [21:25:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:25:53]Read from MH i2c: E2 [21:25:53]MH_I2C_Read... [21:25:53]Read from MH i2c: E2 17 00 [21:25:53]MH_I2C_Read... [21:25:53]Read from MH i2c: E2 17 00 8B 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 68 [21:25:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:25:53]wFMCommunicate OK [21:25:53]requested_item fd.num is exist - process it [21:25:53]SAM_PROTO_GetFieldsCounters [21:25:53]wFMCommunicate request_size=4 [21:25:53]MH_SAM_APDU [21:25:53]CAPDU: 80 13 00 00 [21:25:53]Write to MH i2c: E2 08 00 8C 0D 80 13 00 00 00 00 00 00 15 [21:25:53]Write i2c OK [21:25:53]MH_I2C_Read... [21:25:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:25:53]Read from MH i2c: E2 [21:25:53]MH_I2C_Read... [21:25:53]Read from MH i2c: E2 62 00 [21:25:53]MH_I2C_Read... [21:25:53]Read from MH i2c: E2 62 00 8C 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 55 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 4E 01 00 00 5E 04 04 00 4E 01 00 00 57 04 04 00 4F 01 00 00 19 04 04 00 00 00 00 00 90 00 C7 [21:25: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 55 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 4E 01 00 00 5E 04 04 00 4E 01 00 00 57 04 04 00 4F 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:25:53]wFMCommunicate OK [21:25:53]SAM_PROTO_GetFieldsCounters done [21:25:53]requested_item shift.num is exist - process it [21:25:53]requested_item shift.opened is exist - process it [21:25:53]req_shift_opened [21:25:53]FM_GetShiftState [21:25:53]SAM_PROTO_GetShiftState [21:25:53]wFMCommunicate request_size=4 [21:25:53]MH_SAM_APDU [21:25:53]CAPDU: 80 13 01 00 [21:25:53]Write to MH i2c: E2 08 00 8D 0D 80 13 01 00 00 00 00 00 17 [21:25:53]Write i2c OK [21:25:53]MH_I2C_Read... [21:25:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:25:53]Read from MH i2c: E2 [21:25:53]MH_I2C_Read... [21:25:53]Read from MH i2c: E2 0E 00 [21:25:53]MH_I2C_Read... [21:25:53]Read from MH i2c: E2 0E 00 8D 0D 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 F0 [21:25:53]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [21:25:53]wFMCommunicate OK [21:25:53]SAM_PROTO_GetShiftState done [21:25:53]FM_GetShiftState done [21:25:53]req_shift_opened done [21:25:53]requested_item shift.open_date is exist - process it [21:25:53]req_shift_open_date [21:25:53]req_shift_open_date done [21:25:53]produce_requested_data done [21:25:53]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165461,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [21:25:53]process_action_free close_receipt [21:25:53]json_value_free [21:25:53]json_value_free done [21:25:53]process_json_proto returns [21:25:53]Send response to host [21:25:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165461,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [21:25:53]free response buf [21:25:53]execute_script done [21:25:53]execute_script returns [21:25:53]free content buf [21:25:53]Sock 9.Close socket [21:25:53]Sock 9.Thread stoped [21:25:57]OFD Sender: No OFD packet to send [21:26:02]OFD Sender: No OFD packet to send [21:26:07]OFD Sender: No OFD packet to send [21:26:12]OFD Sender: No OFD packet to send [21:26:17]OFD Sender: No OFD packet to send [21:26:22]OFD Sender: No OFD packet to send [21:26:27]OFD Sender: No OFD packet to send [21:26:32]OFD Sender: No OFD packet to send [21:26:37]OFD Sender: No OFD packet to send [21:26:40]accept exits with 7 [21:26:40]New connection [21:26:40]New thread 3067190628 created [21:26:40]Thread 3067333988 joined [21:26:40]Waiting for new connection... [21:26:40] Sock 7.Parse request [21:26:40]Sock 7.Check first char [21:26:40]Sock 7.First char is OK [21:26:40]request: POST /json_proto HTTP/1.0 [21:26:40]Method: POST [21:26:40]URL: /json_proto [21:26:40]Method is POST - this is cgi request [21:26:40]url: /json_proto [21:26:40]query_string will be loaded in cgi processing [21:26:40]execute_cgi json_proto POST (null) [21:26:40]execute_cgi path=json_proto method=POST [21:26:40]POST find Content-Length [21:26:40]Host: 172.17.56.4:8080 [21:26:40]Content-Length: 682 [21:26:40]Content-Type: application/json [21:26:40] [21:26:40]POST finish read [21:26:40]Found Content-Length = 682 [21:26:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459578", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:26:40]execute_script... [21:26:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459578", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:26:40]POST & json_proto [21:26:40]process_json_proto [21:26:40]json parsed OK: [21:26:40]protocol is kg_v1.0 [21:26:40]action value=close_receipt [21:26:40]process_action close_receipt [21:26:40]cmd_close_receipt [21:26:40]MH_GetDate [21:26:40]Write to MH i2c: F0 00 00 8E 0D 8A [21:26:40]Write i2c OK [21:26:40]MH_I2C_Read... [21:26:40]Read from MH i2c: F0 [21:26:40]MH_I2C_Read... [21:26:40]Read from MH i2c: F0 09 00 [21:26:40]MH_I2C_Read... [21:26:40]Read from MH i2c: F0 09 00 8E 0D 00 11 94 95 66 C9 DC B2 64 EE [21:26:40]GetLastDocTimeStamp 1721078750 [21:26:40]current date 1721078801 [21:26:40]FM_GetShiftState [21:26:40]SAM_PROTO_GetShiftState [21:26:40]wFMCommunicate request_size=4 [21:26:40]MH_SAM_APDU [21:26:40]CAPDU: 80 13 01 00 [21:26:40]Write to MH i2c: E2 08 00 8F 0D 80 13 01 00 00 00 00 00 19 [21:26:40]Write i2c OK [21:26:40]MH_I2C_Read... [21:26:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:26:40]Read from MH i2c: E2 [21:26:40]MH_I2C_Read... [21:26:40]Read from MH i2c: E2 0E 00 [21:26:40]MH_I2C_Read... [21:26:40]Read from MH i2c: E2 0E 00 8F 0D 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 F2 [21:26:40]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [21:26:40]wFMCommunicate OK [21:26:40]SAM_PROTO_GetShiftState done [21:26:40]FM_GetShiftState done [21:26:40]opened in 1721003876 [21:26:40]opened+sec_in_day 1721090276 [21:26:40]quantity*price = 100016 [21:26:40]sum+1 = 100017 [21:26:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 335 15.07.2024 21:26 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165462 ФПД: 75308089820615 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T212641&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165462&fm=75308089820615&tin=02508201610067®Number=0000000000090829&sum=100000 [21:26:41]StoreToDocumentArchive [21:26:41]shift 448 fd 165462 [21:26:41]save to /storage/0448/doc_00165462 [21:26:41]save last doc name /storage/0448/doc_00165462 to /storage/kkm_last_doc_name [21:26:41]save OK [21:26:41]Clear old archive folders... [21:26:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:26:41]tlvbuf is 01B25980 [21:26:41]SAM_PROTO_ClearQueue [21:26:41]wFMCommunicate request_size=4 [21:26:41]MH_SAM_APDU [21:26:41]CAPDU: 80 09 00 00 [21:26:41]Write to MH i2c: E2 08 00 9C 0D 80 09 00 00 00 00 00 00 1B [21:26:41]Write i2c OK [21:26:41]MH_I2C_Read... [21:26:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:26:41]Read from MH i2c: E2 [21:26:41]MH_I2C_Read... [21:26:41]Read from MH i2c: E2 03 00 [21:26:41]MH_I2C_Read... [21:26:41]Read from MH i2c: E2 03 00 9C 0D 00 90 00 1D [21:26:41]RAPDU: 90 00 [21:26:41]wFMCommunicate OK [21:26:41]SAM_PROTO_ClearQueue done [21:26:41]KKMCreateOFDPacket [21:26:41]OFDProtocolAddRootSTLVToBuf [21:26:41]FM_MakeSignedData [21:26:41]FM_MakeSignedData [21:26:41]SAM_PROTO_SignData [21:26:41]wFMCommunicate request_size=4 [21:26:41]MH_SAM_APDU [21:26:41]CAPDU: 80 0D 01 02 [21:26:41]Write to MH i2c: E2 08 00 9D 0D 80 0D 01 02 00 00 00 00 23 [21:26:41]Write i2c OK [21:26:41]MH_I2C_Read... [21:26:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:26:41]Read from MH i2c: E2 [21:26:41]MH_I2C_Read... [21:26:41]Read from MH i2c: E2 03 00 [21:26:41]MH_I2C_Read... [21:26:41]Read from MH i2c: E2 03 00 9D 0D 00 90 00 1E [21:26:41]RAPDU: 90 00 [21:26:41]wFMCommunicate OK [21:26:41]wFMCommunicate request_size=255 [21:26:41]MH_SAM_APDU [21:26:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 11 94 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 56 86 02 00 35 04 06 00 44 [21:26:41]Write to MH i2c: E2 02 01 9E 0D 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 11 94 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 56 86 02 00 35 04 06 00 44 00 00 11 [21:26:41]Write i2c OK [21:26:41]MH_I2C_Read... [21:26:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:26:41]Read from MH i2c: E2 [21:26:41]MH_I2C_Read... [21:26:41]Read from MH i2c: E2 03 00 [21:26:41]MH_I2C_Read... [21:26:41]Read from MH i2c: E2 03 00 9E 0D 00 90 00 1F [21:26:41]RAPDU: 90 00 [21:26:41]wFMCommunicate OK [21:26:41]wFMCommunicate request_size=10 [21:26:41]MH_SAM_APDU [21:26:41]CAPDU: 80 0D 02 02 05 7E 07 F1 45 C7 [21:26:41]Write to MH i2c: E2 0D 00 9F 0D 80 0D 02 02 05 00 7E 07 F1 45 C7 00 00 B2 [21:26:41]Write i2c OK [21:26:41]MH_I2C_Read... [21:26:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:26:41]Read from MH i2c: E2 [21:26:41]MH_I2C_Read... [21:26:41]Read from MH i2c: E2 03 00 [21:26:41]MH_I2C_Read... [21:26:41]Read from MH i2c: E2 03 00 9F 0D 00 90 00 20 [21:26:41]RAPDU: 90 00 [21:26:41]wFMCommunicate OK [21:26:41]wFMCommunicate request_size=4 [21:26:41]MH_SAM_APDU [21:26:41]CAPDU: 80 0D 03 02 [21:26:41]Write to MH i2c: E2 08 00 A0 0D 80 0D 03 02 00 00 00 00 28 [21:26:41]Write i2c OK [21:26:41]MH_I2C_Read... [21:26:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:26:41]Read from MH i2c: E2 [21:26:41]MH_I2C_Read... [21:26:41]Read from MH i2c: E2 0B 00 [21:26:41]MH_I2C_Read... [21:26:41]Read from MH i2c: E2 0B 00 A0 0D 00 8C 46 3C C1 21 98 52 8A 90 00 8D [21:26:41]RAPDU: 8C 46 3C C1 21 98 52 8A 90 00 [21:26:41]wFMCommunicate OK [21:26:41]SAM_PROTO_SignData done [21:26:41]FM_MakeSignedData done [21:26:41]CreateOFDProtocolMessage [21:26:41]wFMCommunicate request_size=4 [21:26:41]MH_SAM_APDU [21:26:41]CAPDU: 80 11 00 00 [21:26:41]Write to MH i2c: E2 08 00 A1 0D 80 11 00 00 00 00 00 00 28 [21:26:41]Write i2c OK [21:26:41]MH_I2C_Read... [21:26:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:26:42]Read from MH i2c: E2 [21:26:42]MH_I2C_Read... [21:26:42]Read from MH i2c: E2 17 00 [21:26:42]MH_I2C_Read... [21:26:42]Read from MH i2c: E2 17 00 A1 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7E [21:26:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:26:42]wFMCommunicate OK [21:26:42]CreateOFDProtocolMessage done [21:26:42]OFDSenderStorePacket 165462 [21:26:42]StoreOFDPacket docnum=165462 [21:26:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 30 59 07 01 BA DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 11 94 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 56 86 02 00 35 04 06 00 44 7E 07 F1 45 C7 8C 46 3C C1 21 98 52 8A [21:26:42]CheckFolder [21:26:42]dirname=/storage/ofd_packets [21:26:42]CheckFolder done [21:26:42]ProducePacketName [21:26:42]name=ofd_packets/00165462 [21:26:42]NVStorageSaveData ofd_packets/00165462 [21:26:42]File name is /storage/ofd_packets/00165462 [21:26:42]Write 301 bytes [21:26:42]NVStorageSaveData done [21:26:42]OFDSenderStorePacket done [21:26:42]KKMCreateOFDPacket done [21:26:42]NVStorageSaveData kkm_last_timestamp [21:26:42]File name is /storage/kkm_last_timestamp [21:26:42]Write 4 bytes [21:26:42]NVStorageSaveData done [21:26:42]ExternCall_PrintAddStr [21:26:42]wPrintStart [21:26:42]Write to MH i2c: 01 00 00 A2 0D AF [21:26:42]Write i2c OK [21:26:42]MH_I2C_Read... [21:26:42]Read from MH i2c: 01 [21:26:42]MH_I2C_Read... [21:26:42]Read from MH i2c: 01 07 00 [21:26:42]MH_I2C_Read... [21:26:42]Read from MH i2c: 01 07 00 A2 0D 00 00 00 00 00 FF 0F C4 [21:26:42]RasterBufferAndPrint [21:26:42]line Счет N : (1)459578 [21:26:42]line ИНН: 02508201610067 [21:26:42]line Контрольно-Кассовый Чек [21:26:42]line ПРОДАЖА [21:26:42]line ТРК (МРК, ГНК) : 22 [21:26:42]line Товар: 2710124130 [21:26:42]line Аи-92-К-5 [21:26:42]line 15.200 * 65.80 [21:26:42]line = 1000.16 [21:26:42]line НДС 12% НСП 1% [21:26:42]line > о реализуемом товаре [21:26:42]line ОКРУГЛЕНИЕ: -0.16 [21:26:42]line ИТОГО: 1000.00 [21:26:42]line Внесено: 1000.00 [21:26:42]line СДАЧА: 0.00 [21:26:42]line НСП 1% : 8.85 [21:26:42]line НДС 12% : 106.21 [21:26:42]line Наличными: 1000.00 [21:26:42]line Безнал.: 0.00 [21:26:42]line Место: АЗС № 72 "Партнер Нефть" [21:26:42]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [21:26:42]line СНО: Общий режим [21:26:42]line Чек 335 15.07.2024 21:26 [21:26:42]line Смена: 448 ФФД: 1.0 [21:26:42]line ЗНМ: 0300000160 [21:26:42]line РНМ: 0000000000090829 [21:26:42]line Версия ККМ: 001 [21:26:42]line ФМ: 0000000000874718 [21:26:42]line ФД: 165462 [21:26:42]line ФПД: 75308089820615 [21:26:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T212641&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165462&fm=75308089820615&tin=02508201610067®Number=0000000000090829&sum=100000 [21:26:42]OFD Sender: Processing packet 165462 [packets to send 106, broken 105] [21:26:42]ProducePacketName [21:26:42]name=ofd_packets/00165462 [21:26:42]OFD Sender: To server: pG, [21:26:42]CommunicateWithHost lk.salyk.kg:30040 [21:26:42]ConnectInit lk.salyk.kg [21:26:42]written 0, free lines is 4095 [21:26:42]Connected sock=10 [21:26:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 30 59 07 01 BA DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 11 94 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 56 86 02 00 35 04 06 00 44 7E 07 F1 45 C7 8C 46 3C C1 21 98 52 8A [21:26:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 D1 00 47 00 AF 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 37 31 38 10 04 04 00 56 86 02 00 F4 03 04 00 9A 3A 95 66 B6 04 01 00 00 8F 1B 20 CA EE 3D AD 73 [21:26:42]CommunicateWithHost err = 0 [21:26:42]CheckOFDResponse [21:26:42]1017 (14) - 77093643461234 [21:26:42]1041 (16) - 0000000000874718 [21:26:42]1040 (4) - 165462 [21:26:42]1012 (4) - 15.07.2024 15:04 [21:26:42]1206 (1) - 0 [21:26:42]OFD Sender: Remove packet 165462 [21:26:42]ProducePacketName [21:26:42]name=ofd_packets/00165462 [21:26:42]NVStorageDeleteData [21:26:42]Write to MH i2c: 01 00 00 CC 0D D9 [21:26:42]Write i2c OK [21:26:42]MH_I2C_Read... [21:26:42]Read from MH i2c: 01 [21:26:42]MH_I2C_Read... [21:26:42]Read from MH i2c: 01 07 00 [21:26:42]MH_I2C_Read... [21:26:42]Read from MH i2c: 01 07 00 CC 0D 00 00 00 00 00 EF 0C DB [21:26:42]RasterBufferAndPrint [21:26:42]line [21:26:42]line [21:26:42]line [21:26:42]line [21:26:42]line [21:26:42]written 0, free lines is 3318 [21:26:42]MH_Cut [21:26:42]Write to MH i2c: D1 01 00 D3 0D 01 B2 [21:26:42]Write i2c OK [21:26:42]MH_I2C_Read... [21:26:42]Read from MH i2c: D1 [21:26:42]MH_I2C_Read... [21:26:42]Read from MH i2c: D1 01 00 [21:26:42]MH_I2C_Read... [21:26:42]Read from MH i2c: D1 01 00 D3 0D 00 B1 [21:26:42]Write to MH i2c: 01 00 00 D4 0D E1 [21:26:42]Write i2c OK [21:26:42]MH_I2C_Read... [21:26:43]OFD Sender: No OFD packet to send [21:26:43]*** Cut start [21:26:43]*** Partial cut [21:26:43]*** CUTSNS_PIN = 1 [21:26:43]*** CUTSNS_PIN = 0 [21:26:43]*** Brake cut motor [21:26:44]Read from MH i2c: 01 [21:26:44]MH_I2C_Read... [21:26:44]*** Stop cut motor [21:26:44]*** Cut end [21:26:44]Read from MH i2c: 01 07 00 [21:26:44]MH_I2C_Read... [21:26:44]Read from MH i2c: 01 07 00 D4 0D 00 00 00 00 00 FF 0F F6 [21:26:44]process_action close_receipt done [21:26:44]requested_data is exist [21:26:44]produce_requested_data [21:26:44]requested_item fm.sn is exist - process it [21:26:44]wFMCommunicate request_size=4 [21:26:44]MH_SAM_APDU [21:26:44]CAPDU: 80 11 00 00 [21:26:44]Write to MH i2c: E2 08 00 D5 0D 80 11 00 00 00 00 00 00 5C [21:26:44]Write i2c OK [21:26:44]MH_I2C_Read... [21:26:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:26:44]Read from MH i2c: E2 [21:26:44]MH_I2C_Read... [21:26:44]Read from MH i2c: E2 17 00 [21:26:44]MH_I2C_Read... [21:26:44]Read from MH i2c: E2 17 00 D5 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B2 [21:26:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:26:44]wFMCommunicate OK [21:26:44]requested_item fd.num is exist - process it [21:26:44]SAM_PROTO_GetFieldsCounters [21:26:44]wFMCommunicate request_size=4 [21:26:44]MH_SAM_APDU [21:26:44]CAPDU: 80 13 00 00 [21:26:44]Write to MH i2c: E2 08 00 D6 0D 80 13 00 00 00 00 00 00 5F [21:26:44]Write i2c OK [21:26:44]MH_I2C_Read... [21:26:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:26:44]Read from MH i2c: E2 [21:26:44]MH_I2C_Read... [21:26:44]Read from MH i2c: E2 62 00 [21:26:44]MH_I2C_Read... [21:26:44]Read from MH i2c: E2 62 00 D6 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 56 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 4F 01 00 00 5E 04 04 00 4F 01 00 00 57 04 04 00 50 01 00 00 19 04 04 00 00 00 00 00 90 00 15 [21:26: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 56 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 4F 01 00 00 5E 04 04 00 4F 01 00 00 57 04 04 00 50 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:26:44]wFMCommunicate OK [21:26:44]SAM_PROTO_GetFieldsCounters done [21:26:44]requested_item shift.num is exist - process it [21:26:44]requested_item shift.opened is exist - process it [21:26:44]req_shift_opened [21:26:44]FM_GetShiftState [21:26:44]SAM_PROTO_GetShiftState [21:26:44]wFMCommunicate request_size=4 [21:26:44]MH_SAM_APDU [21:26:44]CAPDU: 80 13 01 00 [21:26:44]Write to MH i2c: E2 08 00 D7 0D 80 13 01 00 00 00 00 00 61 [21:26:44]Write i2c OK [21:26:44]MH_I2C_Read... [21:26:44]Read from MH i2c: E2 [21:26:44]MH_I2C_Read... [21:26:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:26:44]Read from MH i2c: E2 0E 00 [21:26:44]MH_I2C_Read... [21:26:44]Read from MH i2c: E2 0E 00 D7 0D 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 3A [21:26:44]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [21:26:44]wFMCommunicate OK [21:26:44]SAM_PROTO_GetShiftState done [21:26:44]FM_GetShiftState done [21:26:44]req_shift_opened done [21:26:44]requested_item shift.open_date is exist - process it [21:26:44]req_shift_open_date [21:26:44]req_shift_open_date done [21:26:44]produce_requested_data done [21:26:44]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165462,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [21:26:44]process_action_free close_receipt [21:26:44]json_value_free [21:26:44]json_value_free done [21:26:44]process_json_proto returns [21:26:44]Send response to host [21:26:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165462,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [21:26:44]free response buf [21:26:44]execute_script done [21:26:44]execute_script returns [21:26:44]free content buf [21:26:44]Sock 7.Close socket [21:26:44]Sock 7.Thread stoped [21:26:48]OFD Sender: No OFD packet to send [21:26:53]OFD Sender: No OFD packet to send [21:26:58]OFD Sender: No OFD packet to send [21:27:03]OFD Sender: No OFD packet to send [21:27:08]OFD Sender: No OFD packet to send [21:27:13]OFD Sender: No OFD packet to send [21:27:18]OFD Sender: No OFD packet to send [21:27:23]OFD Sender: No OFD packet to send [21:27:28]OFD Sender: No OFD packet to send [21:27:33]OFD Sender: No OFD packet to send [21:27:38]OFD Sender: No OFD packet to send [21:27:43]OFD Sender: No OFD packet to send [21:27:48]OFD Sender: No OFD packet to send [21:27:53]OFD Sender: No OFD packet to send [21:27:58]OFD Sender: No OFD packet to send [21:28:03]OFD Sender: No OFD packet to send [21:28:08]OFD Sender: No OFD packet to send [21:28:13]OFD Sender: No OFD packet to send [21:28:18]OFD Sender: No OFD packet to send [21:28:23]OFD Sender: No OFD packet to send [21:28:28]OFD Sender: No OFD packet to send [21:28:33]OFD Sender: No OFD packet to send [21:28:38]OFD Sender: No OFD packet to send [21:28:43]OFD Sender: No OFD packet to send [21:28:48]OFD Sender: No OFD packet to send [21:28:53]OFD Sender: No OFD packet to send [21:28:58]OFD Sender: No OFD packet to send [21:29:03]OFD Sender: No OFD packet to send [21:29:08]OFD Sender: No OFD packet to send [21:29:13]OFD Sender: No OFD packet to send [21:29:18]OFD Sender: No OFD packet to send [21:29:23]OFD Sender: No OFD packet to send [21:29:28]OFD Sender: No OFD packet to send [21:29:33]OFD Sender: No OFD packet to send [21:29:38]OFD Sender: No OFD packet to send [21:29:43]OFD Sender: No OFD packet to send [21:29:47]accept exits with 9 [21:29:47]New connection [21:29:47]New thread 3067333988 created [21:29:47]Thread 3067190628 joined [21:29:47]Waiting for new connection... [21:29:47] Sock 9.Parse request [21:29:47]Sock 9.Check first char [21:29:47]Sock 9.First char is OK [21:29:47]request: POST /json_proto HTTP/1.0 [21:29:47]Method: POST [21:29:47]URL: /json_proto [21:29:47]Method is POST - this is cgi request [21:29:47]url: /json_proto [21:29:47]query_string will be loaded in cgi processing [21:29:47]execute_cgi json_proto POST (null) [21:29:47]execute_cgi path=json_proto method=POST [21:29:47]POST find Content-Length [21:29:47]Host: 172.17.56.4:8080 [21:29:47]Content-Length: 675 [21:29:47]Content-Type: application/json [21:29:47] [21:29:47]POST finish read [21:29:47]Found Content-Length = 675 [21:29:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459579", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 11.130, "sum" : 800.25, "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" ] } } [21:29:47]execute_script... [21:29: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)459579", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 11.130, "sum" : 800.25, "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" ] } } [21:29:47]POST & json_proto [21:29:47]process_json_proto [21:29:47]json parsed OK: [21:29:47]protocol is kg_v1.0 [21:29:47]action value=close_receipt [21:29:47]process_action close_receipt [21:29:47]cmd_close_receipt [21:29:47]MH_GetDate [21:29:47]Write to MH i2c: F0 00 00 D8 0D D4 [21:29:47]Write i2c OK [21:29:47]MH_I2C_Read... [21:29:47]Read from MH i2c: F0 [21:29:47]MH_I2C_Read... [21:29:47]Read from MH i2c: F0 09 00 [21:29:47]MH_I2C_Read... [21:29:47]Read from MH i2c: F0 09 00 D8 0D 00 CC 94 95 66 C9 DC B2 64 F3 [21:29:47]GetLastDocTimeStamp 1721078801 [21:29:47]current date 1721078988 [21:29:47]FM_GetShiftState [21:29:47]SAM_PROTO_GetShiftState [21:29:47]wFMCommunicate request_size=4 [21:29:47]MH_SAM_APDU [21:29:47]CAPDU: 80 13 01 00 [21:29:47]Write to MH i2c: E2 08 00 D9 0D 80 13 01 00 00 00 00 00 63 [21:29:47]Write i2c OK [21:29:47]MH_I2C_Read... [21:29:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:29:47]Read from MH i2c: E2 [21:29:47]MH_I2C_Read... [21:29:47]Read from MH i2c: E2 0E 00 [21:29:47]MH_I2C_Read... [21:29:47]Read from MH i2c: E2 0E 00 D9 0D 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 3C [21:29:47]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [21:29:47]wFMCommunicate OK [21:29:47]SAM_PROTO_GetShiftState done [21:29:47]FM_GetShiftState done [21:29:47]opened in 1721003876 [21:29:47]opened+sec_in_day 1721090276 [21:29:47]quantity*price = 80024 [21:29:47]sum+1 = 80026 [21:29:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.98 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 336 15.07.2024 21:29 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165463 ФПД: 84180951853690 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T212948&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165463&fm=84180951853690&tin=02508201610067®Number=0000000000090829&sum=80000 [21:29:49]StoreToDocumentArchive [21:29:49]shift 448 fd 165463 [21:29:49]save to /storage/0448/doc_00165463 [21:29:49]save last doc name /storage/0448/doc_00165463 to /storage/kkm_last_doc_name [21:29:49]save OK [21:29:49]Clear old archive folders... [21:29:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:29:49]tlvbuf is 01B52AC0 [21:29:49]SAM_PROTO_ClearQueue [21:29:49]wFMCommunicate request_size=4 [21:29:49]MH_SAM_APDU [21:29:49]CAPDU: 80 09 00 00 [21:29:49]Write to MH i2c: E2 08 00 E6 0D 80 09 00 00 00 00 00 00 65 [21:29:49]Write i2c OK [21:29:49]MH_I2C_Read... [21:29:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:29:49]Read from MH i2c: E2 [21:29:49]MH_I2C_Read... [21:29:49]Read from MH i2c: E2 03 00 [21:29:49]MH_I2C_Read... [21:29:49]Read from MH i2c: E2 03 00 E6 0D 00 90 00 67 [21:29:49]RAPDU: 90 00 [21:29:49]wFMCommunicate OK [21:29:49]SAM_PROTO_ClearQueue done [21:29:49]KKMCreateOFDPacket [21:29:49]OFDProtocolAddRootSTLVToBuf [21:29:49]FM_MakeSignedData [21:29:49]FM_MakeSignedData [21:29:49]SAM_PROTO_SignData [21:29:49]wFMCommunicate request_size=4 [21:29:49]MH_SAM_APDU [21:29:49]CAPDU: 80 0D 01 02 [21:29:49]Write to MH i2c: E2 08 00 E7 0D 80 0D 01 02 00 00 00 00 6D [21:29:49]Write i2c OK [21:29:49]MH_I2C_Read... [21:29:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:29:49]Read from MH i2c: E2 [21:29:49]MH_I2C_Read... [21:29:49]Read from MH i2c: E2 03 00 [21:29:49]MH_I2C_Read... [21:29:49]Read from MH i2c: E2 03 00 E7 0D 00 90 00 68 [21:29:49]RAPDU: 90 00 [21:29:49]wFMCommunicate OK [21:29:49]wFMCommunicate request_size=255 [21:29:49]MH_SAM_APDU [21:29:49]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 99 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 32 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 50 01 00 00 F4 03 04 00 CC 94 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 57 86 02 00 35 04 06 00 4C 8F E7 BB [21:29:49]Write to MH i2c: E2 02 01 E8 0D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 99 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 32 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 50 01 00 00 F4 03 04 00 CC 94 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 57 86 02 00 35 04 06 00 4C 8F E7 BB 00 00 CD [21:29:49]Write i2c OK [21:29:49]MH_I2C_Read... [21:29:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:29:49]Read from MH i2c: E2 [21:29:49]MH_I2C_Read... [21:29:49]Read from MH i2c: E2 03 00 [21:29:49]MH_I2C_Read... [21:29:49]Read from MH i2c: E2 03 00 E8 0D 00 90 00 69 [21:29:49]RAPDU: 90 00 [21:29:49]wFMCommunicate OK [21:29:49]wFMCommunicate request_size=7 [21:29:49]MH_SAM_APDU [21:29:49]CAPDU: 80 0D 02 02 02 6A 7A [21:29:49]Write to MH i2c: E2 0A 00 E9 0D 80 0D 02 02 02 00 6A 7A 00 00 58 [21:29:49]Write i2c OK [21:29:49]MH_I2C_Read... [21:29:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:29:49]Read from MH i2c: E2 [21:29:49]MH_I2C_Read... [21:29:49]Read from MH i2c: E2 03 00 [21:29:49]MH_I2C_Read... [21:29:49]Read from MH i2c: E2 03 00 E9 0D 00 90 00 6A [21:29:49]RAPDU: 90 00 [21:29:49]wFMCommunicate OK [21:29:49]wFMCommunicate request_size=4 [21:29:49]MH_SAM_APDU [21:29:49]CAPDU: 80 0D 03 02 [21:29:49]Write to MH i2c: E2 08 00 EA 0D 80 0D 03 02 00 00 00 00 72 [21:29:49]Write i2c OK [21:29:49]MH_I2C_Read... [21:29:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:29:49]Read from MH i2c: E2 [21:29:49]MH_I2C_Read... [21:29:49]Read from MH i2c: E2 0B 00 [21:29:49]MH_I2C_Read... [21:29:49]Read from MH i2c: E2 0B 00 EA 0D 00 93 15 CF B6 43 10 ED C4 90 00 A4 [21:29:49]RAPDU: 93 15 CF B6 43 10 ED C4 90 00 [21:29:49]wFMCommunicate OK [21:29:49]SAM_PROTO_SignData done [21:29:49]FM_MakeSignedData done [21:29:49]CreateOFDProtocolMessage [21:29:49]wFMCommunicate request_size=4 [21:29:49]MH_SAM_APDU [21:29:49]CAPDU: 80 11 00 00 [21:29:49]Write to MH i2c: E2 08 00 EB 0D 80 11 00 00 00 00 00 00 72 [21:29:49]Write i2c OK [21:29:49]MH_I2C_Read... [21:29:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:29:49]Read from MH i2c: E2 [21:29:49]MH_I2C_Read... [21:29:49]Read from MH i2c: E2 17 00 [21:29:49]MH_I2C_Read... [21:29:49]Read from MH i2c: E2 17 00 EB 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C8 [21:29:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:29:49]wFMCommunicate OK [21:29:49]CreateOFDProtocolMessage done [21:29:49]OFDSenderStorePacket 165463 [21:29:49]StoreOFDPacket docnum=165463 [21:29:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 94 46 04 01 31 E6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 99 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 32 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 50 01 00 00 F4 03 04 00 CC 94 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 57 86 02 00 35 04 06 00 4C 8F E7 BB 6A 7A 93 15 CF B6 43 10 ED C4 [21:29:49]CheckFolder [21:29:49]dirname=/storage/ofd_packets [21:29:49]CheckFolder done [21:29:49]ProducePacketName [21:29:49]name=ofd_packets/00165463 [21:29:49]NVStorageSaveData ofd_packets/00165463 [21:29:49]File name is /storage/ofd_packets/00165463 [21:29:49]Write 298 bytes [21:29:49]NVStorageSaveData done [21:29:49]OFDSenderStorePacket done [21:29:49]KKMCreateOFDPacket done [21:29:49]NVStorageSaveData kkm_last_timestamp [21:29:49]File name is /storage/kkm_last_timestamp [21:29:49]Write 4 bytes [21:29:49]NVStorageSaveData done [21:29:49]ExternCall_PrintAddStr [21:29:49]wPrintStart [21:29:49]Write to MH i2c: 01 00 00 EC 0D F9 [21:29:49]Write i2c OK [21:29:49]MH_I2C_Read... [21:29:49]Read from MH i2c: 01 [21:29:49]MH_I2C_Read... [21:29:49]Read from MH i2c: 01 07 00 [21:29:49]MH_I2C_Read... [21:29:49]Read from MH i2c: 01 07 00 EC 0D 00 00 00 00 00 FF 0F 0E [21:29:49]RasterBufferAndPrint [21:29:49]line Счет N : (1)459579 [21:29:49]line ИНН: 02508201610067 [21:29:49]line Контрольно-Кассовый Чек [21:29:49]line ПРОДАЖА [21:29:49]line ТРК (МРК, ГНК) : 21 [21:29:49]line Товар: 2710194210 [21:29:49]line ДТ-К-5 [21:29:49]line 11.130 * 71.90 [21:29:49]line = 800.25 [21:29:49]line НДС 12% НСП 1% [21:29:49]line > о реализуемом товаре [21:29:49]line ОКРУГЛЕНИЕ: -0.25 [21:29:49]line ИТОГО: 800.00 [21:29:49]line Внесено: 800.00 [21:29:49]line СДАЧА: 0.00 [21:29:49]line НСП 1% : 7.08 [21:29:49]line НДС 12% : 84.98 [21:29:49]line Наличными: 800.00 [21:29:49]line Безнал.: 0.00 [21:29:49]line Место: АЗС № 72 "Партнер Нефть" [21:29:49]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [21:29:49]line СНО: Общий режим [21:29:49]line Чек 336 15.07.2024 21:29 [21:29:49]line Смена: 448 ФФД: 1.0 [21:29:49]line ЗНМ: 0300000160 [21:29:49]line РНМ: 0000000000090829 [21:29:49]line Версия ККМ: 001 [21:29:49]line ФМ: 0000000000874718 [21:29:49]line ФД: 165463 [21:29:49]line ФПД: 84180951853690 [21:29:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T212948&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165463&fm=84180951853690&tin=02508201610067®Number=0000000000090829&sum=80000 [21:29:49]OFD Sender: Processing packet 165463 [packets to send 106, broken 105] [21:29:49]ProducePacketName [21:29:49]name=ofd_packets/00165463 [21:29:49]OFD Sender: To server: pG, [21:29:49]CommunicateWithHost lk.salyk.kg:30040 [21:29:49]ConnectInit lk.salyk.kg [21:29:49]written 0, free lines is 4095 [21:29:49]Connected sock=10 [21:29:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 94 46 04 01 31 E6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 99 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 32 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 50 01 00 00 F4 03 04 00 CC 94 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 57 86 02 00 35 04 06 00 4C 8F E7 BB 6A 7A 93 15 CF B6 43 10 ED C4 [21:29:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 02 E3 47 00 CD 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 57 86 02 00 F4 03 04 00 56 3B 95 66 B6 04 01 00 00 B3 F7 9E 76 BD 72 85 B4 [21:29:50]CommunicateWithHost err = 0 [21:29:50]CheckOFDResponse [21:29:50]1017 (14) - 77093643461234 [21:29:50]1041 (16) - 0000000000874718 [21:29:50]1040 (4) - 165463 [21:29:50]1012 (4) - 15.07.2024 15:08 [21:29:50]1206 (1) - 0 [21:29:50]OFD Sender: Remove packet 165463 [21:29:50]ProducePacketName [21:29:50]name=ofd_packets/00165463 [21:29:50]NVStorageDeleteData [21:29:50]Write to MH i2c: 01 00 00 16 0E 24 [21:29:50]Write i2c OK [21:29:50]MH_I2C_Read... [21:29:50]Read from MH i2c: 01 [21:29:50]MH_I2C_Read... [21:29:50]Read from MH i2c: 01 07 00 [21:29:50]MH_I2C_Read... [21:29:50]Read from MH i2c: 01 07 00 16 0E 00 00 00 00 00 10 0D 48 [21:29:50]RasterBufferAndPrint [21:29:50]line [21:29:50]line [21:29:50]line [21:29:50]line [21:29:50]line [21:29:50]written 0, free lines is 3350 [21:29:50]MH_Cut [21:29:50]Write to MH i2c: D1 01 00 1D 0E 01 FD [21:29:50]Write i2c OK [21:29:50]MH_I2C_Read... [21:29:50]Read from MH i2c: D1 [21:29:50]MH_I2C_Read... [21:29:50]Read from MH i2c: D1 01 00 [21:29:50]MH_I2C_Read... [21:29:50]Read from MH i2c: D1 01 00 1D 0E 00 FC [21:29:50]Write to MH i2c: 01 00 00 1E 0E 2C [21:29:50]Write i2c OK [21:29:50]MH_I2C_Read... [21:29:50]OFD Sender: No OFD packet to send [21:29:51]*** Cut start [21:29:51]*** Partial cut [21:29:51]*** CUTSNS_PIN = 1 [21:29:51]*** CUTSNS_PIN = 0 [21:29:51]*** Brake cut motor [21:29:51]Read from MH i2c: 01 [21:29:51]MH_I2C_Read... [21:29:51]*** Stop cut motor [21:29:51]*** Cut end [21:29:51]Read from MH i2c: 01 07 00 [21:29:51]MH_I2C_Read... [21:29:51]Read from MH i2c: 01 07 00 1E 0E 00 00 00 00 00 FF 0F 41 [21:29:51]process_action close_receipt done [21:29:51]requested_data is exist [21:29:51]produce_requested_data [21:29:51]requested_item fm.sn is exist - process it [21:29:51]wFMCommunicate request_size=4 [21:29:51]MH_SAM_APDU [21:29:51]CAPDU: 80 11 00 00 [21:29:51]Write to MH i2c: E2 08 00 1F 0E 80 11 00 00 00 00 00 00 A7 [21:29:51]Write i2c OK [21:29:51]MH_I2C_Read... [21:29:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:29:51]Read from MH i2c: E2 [21:29:51]MH_I2C_Read... [21:29:51]Read from MH i2c: E2 17 00 [21:29:51]MH_I2C_Read... [21:29:51]Read from MH i2c: E2 17 00 1F 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FD [21:29:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:29:51]wFMCommunicate OK [21:29:51]requested_item fd.num is exist - process it [21:29:51]SAM_PROTO_GetFieldsCounters [21:29:51]wFMCommunicate request_size=4 [21:29:51]MH_SAM_APDU [21:29:51]CAPDU: 80 13 00 00 [21:29:51]Write to MH i2c: E2 08 00 20 0E 80 13 00 00 00 00 00 00 AA [21:29:51]Write i2c OK [21:29:51]MH_I2C_Read... [21:29:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:29:51]Read from MH i2c: E2 [21:29:51]MH_I2C_Read... [21:29:51]Read from MH i2c: E2 62 00 [21:29:51]MH_I2C_Read... [21:29:51]Read from MH i2c: E2 62 00 20 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 57 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 50 01 00 00 5E 04 04 00 50 01 00 00 57 04 04 00 51 01 00 00 19 04 04 00 00 00 00 00 90 00 64 [21:29:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 57 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 50 01 00 00 5E 04 04 00 50 01 00 00 57 04 04 00 51 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:29:51]wFMCommunicate OK [21:29:51]SAM_PROTO_GetFieldsCounters done [21:29:51]requested_item shift.num is exist - process it [21:29:51]requested_item shift.opened is exist - process it [21:29:51]req_shift_opened [21:29:51]FM_GetShiftState [21:29:51]SAM_PROTO_GetShiftState [21:29:51]wFMCommunicate request_size=4 [21:29:51]MH_SAM_APDU [21:29:51]CAPDU: 80 13 01 00 [21:29:51]Write to MH i2c: E2 08 00 21 0E 80 13 01 00 00 00 00 00 AC [21:29:51]Write i2c OK [21:29:51]MH_I2C_Read... [21:29:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:29:51]Read from MH i2c: E2 [21:29:51]MH_I2C_Read... [21:29:51]Read from MH i2c: E2 0E 00 [21:29:51]MH_I2C_Read... [21:29:51]Read from MH i2c: E2 0E 00 21 0E 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 85 [21:29:51]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [21:29:51]wFMCommunicate OK [21:29:51]SAM_PROTO_GetShiftState done [21:29:51]FM_GetShiftState done [21:29:51]req_shift_opened done [21:29:51]requested_item shift.open_date is exist - process it [21:29:51]req_shift_open_date [21:29:51]req_shift_open_date done [21:29:51]produce_requested_data done [21:29:51]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165463,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [21:29:51]process_action_free close_receipt [21:29:51]json_value_free [21:29:51]json_value_free done [21:29:51]process_json_proto returns [21:29:51]Send response to host [21:29:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165463,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [21:29:51]free response buf [21:29:51]execute_script done [21:29:51]execute_script returns [21:29:51]free content buf [21:29:51]Sock 9.Close socket [21:29:51]Sock 9.Thread stoped [21:29:55]OFD Sender: No OFD packet to send [21:30:00]OFD Sender: No OFD packet to send [21:30:05]OFD Sender: No OFD packet to send [21:30:10]OFD Sender: No OFD packet to send [21:30:15]OFD Sender: No OFD packet to send [21:30:20]OFD Sender: No OFD packet to send [21:30:25]OFD Sender: No OFD packet to send [21:30:30]OFD Sender: No OFD packet to send [21:30:35]OFD Sender: No OFD packet to send [21:30:40]OFD Sender: No OFD packet to send [21:30:45]OFD Sender: No OFD packet to send [21:30:50]OFD Sender: No OFD packet to send [21:30:55]OFD Sender: No OFD packet to send [21:31:00]OFD Sender: No OFD packet to send [21:31:05]OFD Sender: No OFD packet to send [21:31:10]OFD Sender: No OFD packet to send [21:31:15]OFD Sender: No OFD packet to send [21:31:20]OFD Sender: No OFD packet to send [21:31:25]OFD Sender: No OFD packet to send [21:31:30]OFD Sender: No OFD packet to send [21:31:35]OFD Sender: No OFD packet to send [21:31:40]OFD Sender: No OFD packet to send [21:31:45]OFD Sender: No OFD packet to send [21:31:50]OFD Sender: No OFD packet to send [21:31:55]OFD Sender: No OFD packet to send [21:32:00]OFD Sender: No OFD packet to send [21:32:05]OFD Sender: No OFD packet to send [21:32:10]OFD Sender: No OFD packet to send [21:32:15]OFD Sender: No OFD packet to send [21:32:20]OFD Sender: No OFD packet to send [21:32:25]OFD Sender: No OFD packet to send [21:32:30]OFD Sender: No OFD packet to send [21:32:35]OFD Sender: No OFD packet to send [21:32:40]OFD Sender: No OFD packet to send [21:32:45]OFD Sender: No OFD packet to send [21:32:50]OFD Sender: No OFD packet to send [21:32:55]OFD Sender: No OFD packet to send [21:33:00]OFD Sender: No OFD packet to send [21:33:05]OFD Sender: No OFD packet to send [21:33:10]OFD Sender: No OFD packet to send [21:33:15]OFD Sender: No OFD packet to send [21:33:20]OFD Sender: No OFD packet to send [21:33:25]OFD Sender: No OFD packet to send [21:33:30]OFD Sender: No OFD packet to send [21:33:35]OFD Sender: No OFD packet to send [21:33:40]OFD Sender: No OFD packet to send [21:33:45]OFD Sender: No OFD packet to send [21:33:50]OFD Sender: No OFD packet to send [21:33:55]OFD Sender: No OFD packet to send [21:34:00]OFD Sender: No OFD packet to send [21:34:05]OFD Sender: No OFD packet to send [21:34:10]OFD Sender: No OFD packet to send [21:34:15]OFD Sender: No OFD packet to send [21:34:21]OFD Sender: No OFD packet to send [21:34:26]OFD Sender: No OFD packet to send [21:34:31]OFD Sender: No OFD packet to send [21:34:36]OFD Sender: No OFD packet to send [21:34:41]OFD Sender: No OFD packet to send [21:34:46]OFD Sender: No OFD packet to send [21:34:51]OFD Sender: No OFD packet to send [21:34:56]OFD Sender: No OFD packet to send [21:35:01]OFD Sender: No OFD packet to send [21:35:06]OFD Sender: No OFD packet to send [21:35:11]OFD Sender: No OFD packet to send [21:35:16]OFD Sender: No OFD packet to send [21:35:21]OFD Sender: No OFD packet to send [21:35:26]OFD Sender: No OFD packet to send [21:35:31]OFD Sender: No OFD packet to send [21:35:36]OFD Sender: No OFD packet to send [21:35:41]OFD Sender: No OFD packet to send [21:35:46]OFD Sender: No OFD packet to send [21:35:51]OFD Sender: No OFD packet to send [21:35:56]OFD Sender: No OFD packet to send [21:36:01]OFD Sender: No OFD packet to send [21:36:06]OFD Sender: No OFD packet to send [21:36:11]OFD Sender: No OFD packet to send [21:36:16]OFD Sender: No OFD packet to send [21:36:21]OFD Sender: No OFD packet to send [21:36:26]OFD Sender: No OFD packet to send [21:36:31]OFD Sender: No OFD packet to send [21:36:36]OFD Sender: No OFD packet to send [21:36:41]OFD Sender: No OFD packet to send [21:36:46]OFD Sender: No OFD packet to send [21:36:51]OFD Sender: No OFD packet to send [21:36:56]OFD Sender: No OFD packet to send [21:37:01]OFD Sender: No OFD packet to send [21:37:06]OFD Sender: No OFD packet to send [21:37:11]OFD Sender: No OFD packet to send [21:37:16]OFD Sender: No OFD packet to send [21:37:21]OFD Sender: No OFD packet to send [21:37:26]OFD Sender: No OFD packet to send [21:37:31]OFD Sender: No OFD packet to send [21:37:36]OFD Sender: No OFD packet to send [21:37:41]OFD Sender: No OFD packet to send [21:37:46]OFD Sender: No OFD packet to send [21:37:51]OFD Sender: No OFD packet to send [21:37:56]OFD Sender: No OFD packet to send [21:38:01]OFD Sender: No OFD packet to send [21:38:06]OFD Sender: No OFD packet to send [21:38:11]OFD Sender: No OFD packet to send [21:38:16]OFD Sender: No OFD packet to send [21:38:21]OFD Sender: No OFD packet to send [21:38:26]OFD Sender: No OFD packet to send [21:38:31]OFD Sender: No OFD packet to send [21:38:32]accept exits with 7 [21:38:32]New connection [21:38:32]New thread 3067190628 created [21:38:32]Thread 3067333988 joined [21:38:32]Waiting for new connection... [21:38:32] Sock 7.Parse request [21:38:32]Sock 7.Check first char [21:38:32]Sock 7.First char is OK [21:38:32]request: POST /json_proto HTTP/1.0 [21:38:32]Method: POST [21:38:32]URL: /json_proto [21:38:32]Method is POST - this is cgi request [21:38:32]url: /json_proto [21:38:32]query_string will be loaded in cgi processing [21:38:32]execute_cgi json_proto POST (null) [21:38:32]execute_cgi path=json_proto method=POST [21:38:32]POST find Content-Length [21:38:32]Host: 172.17.56.4:8080 [21:38:32]Content-Length: 677 [21:38:32]Content-Type: application/json [21:38:32] [21:38:32]POST finish read [21:38:32]Found Content-Length = 677 [21:38:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459580", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.350, "sum" : 220.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:38:32]execute_script... [21:38:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459580", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.350, "sum" : 220.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:38:32]POST & json_proto [21:38:32]process_json_proto [21:38:32]json parsed OK: [21:38:32]protocol is kg_v1.0 [21:38:32]action value=close_receipt [21:38:32]process_action close_receipt [21:38:32]cmd_close_receipt [21:38:32]MH_GetDate [21:38:32]Write to MH i2c: F0 00 00 22 0E 1F [21:38:32]Write i2c OK [21:38:32]MH_I2C_Read... [21:38:32]Read from MH i2c: F0 [21:38:32]MH_I2C_Read... [21:38:32]Read from MH i2c: F0 09 00 [21:38:32]MH_I2C_Read... [21:38:32]Read from MH i2c: F0 09 00 22 0E 00 D9 96 95 66 C9 DC B2 64 4D [21:38:32]GetLastDocTimeStamp 1721078988 [21:38:32]current date 1721079513 [21:38:32]FM_GetShiftState [21:38:32]SAM_PROTO_GetShiftState [21:38:32]wFMCommunicate request_size=4 [21:38:32]MH_SAM_APDU [21:38:32]CAPDU: 80 13 01 00 [21:38:32]Write to MH i2c: E2 08 00 23 0E 80 13 01 00 00 00 00 00 AE [21:38:32]Write i2c OK [21:38:32]MH_I2C_Read... [21:38:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:38:32]Read from MH i2c: E2 [21:38:32]MH_I2C_Read... [21:38:32]Read from MH i2c: E2 0E 00 [21:38:32]MH_I2C_Read... [21:38:32]Read from MH i2c: E2 0E 00 23 0E 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 87 [21:38:32]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [21:38:32]wFMCommunicate OK [21:38:32]SAM_PROTO_GetShiftState done [21:38:32]FM_GetShiftState done [21:38:32]opened in 1721003876 [21:38:32]opened+sec_in_day 1721090276 [21:38:32]quantity*price = 22043 [21:38:32]sum+1 = 22044 [21:38:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.41 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 337 15.07.2024 21:38 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165464 ФПД: 100808653176126 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T213833&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165464&fm=100808653176126&tin=02508201610067®Number=0000000000090829&sum=22000 [21:38:33]StoreToDocumentArchive [21:38:33]shift 448 fd 165464 [21:38:33]save to /storage/0448/doc_00165464 [21:38:33]save last doc name /storage/0448/doc_00165464 to /storage/kkm_last_doc_name [21:38:33]save OK [21:38:33]Clear old archive folders... [21:38:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:38:33]tlvbuf is 01B52AF0 [21:38:33]SAM_PROTO_ClearQueue [21:38:33]wFMCommunicate request_size=4 [21:38:33]MH_SAM_APDU [21:38:33]CAPDU: 80 09 00 00 [21:38:33]Write to MH i2c: E2 08 00 30 0E 80 09 00 00 00 00 00 00 B0 [21:38:33]Write i2c OK [21:38:33]MH_I2C_Read... [21:38:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:38:33]Read from MH i2c: E2 [21:38:33]MH_I2C_Read... [21:38:33]Read from MH i2c: E2 03 00 [21:38:33]MH_I2C_Read... [21:38:33]Read from MH i2c: E2 03 00 30 0E 00 90 00 B2 [21:38:33]RAPDU: 90 00 [21:38:33]wFMCommunicate OK [21:38:33]SAM_PROTO_ClearQueue done [21:38:33]KKMCreateOFDPacket [21:38:33]OFDProtocolAddRootSTLVToBuf [21:38:33]FM_MakeSignedData [21:38:33]FM_MakeSignedData [21:38:33]SAM_PROTO_SignData [21:38:33]wFMCommunicate request_size=4 [21:38:33]MH_SAM_APDU [21:38:33]CAPDU: 80 0D 01 02 [21:38:33]Write to MH i2c: E2 08 00 31 0E 80 0D 01 02 00 00 00 00 B8 [21:38:33]Write i2c OK [21:38:33]MH_I2C_Read... [21:38:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:38:33]Read from MH i2c: E2 [21:38:33]MH_I2C_Read... [21:38:33]Read from MH i2c: E2 03 00 [21:38:33]MH_I2C_Read... [21:38:33]Read from MH i2c: E2 03 00 31 0E 00 90 00 B3 [21:38:33]RAPDU: 90 00 [21:38:33]wFMCommunicate OK [21:38:33]wFMCommunicate request_size=255 [21:38:33]MH_SAM_APDU [21:38:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 16 0D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 1B 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 D9 96 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 58 86 02 00 35 04 06 00 5B [21:38:33]Write to MH i2c: E2 02 01 32 0E 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 16 0D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 1B 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 D9 96 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 58 86 02 00 35 04 06 00 5B 00 00 5C [21:38:33]Write i2c OK [21:38:33]MH_I2C_Read... [21:38:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:38:33]Read from MH i2c: E2 [21:38:33]MH_I2C_Read... [21:38:33]Read from MH i2c: E2 03 00 [21:38:33]MH_I2C_Read... [21:38:33]Read from MH i2c: E2 03 00 32 0E 00 90 00 B4 [21:38:33]RAPDU: 90 00 [21:38:33]wFMCommunicate OK [21:38:33]wFMCommunicate request_size=10 [21:38:33]MH_SAM_APDU [21:38:33]CAPDU: 80 0D 02 02 05 AF 57 F6 7D 3E [21:38:33]Write to MH i2c: E2 0D 00 33 0E 80 0D 02 02 05 00 AF 57 F6 7D 3E 00 00 7C [21:38:33]Write i2c OK [21:38:33]MH_I2C_Read... [21:38:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:38:33]Read from MH i2c: E2 [21:38:33]MH_I2C_Read... [21:38:33]Read from MH i2c: E2 03 00 [21:38:33]MH_I2C_Read... [21:38:33]Read from MH i2c: E2 03 00 33 0E 00 90 00 B5 [21:38:33]RAPDU: 90 00 [21:38:33]wFMCommunicate OK [21:38:33]wFMCommunicate request_size=4 [21:38:33]MH_SAM_APDU [21:38:33]CAPDU: 80 0D 03 02 [21:38:33]Write to MH i2c: E2 08 00 34 0E 80 0D 03 02 00 00 00 00 BD [21:38:33]Write i2c OK [21:38:33]MH_I2C_Read... [21:38:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:38:34]Read from MH i2c: E2 [21:38:34]MH_I2C_Read... [21:38:34]Read from MH i2c: E2 0B 00 [21:38:34]MH_I2C_Read... [21:38:34]Read from MH i2c: E2 0B 00 34 0E 00 AD 1F 5F 2B 1C AF 62 DC 90 00 1D [21:38:34]RAPDU: AD 1F 5F 2B 1C AF 62 DC 90 00 [21:38:34]wFMCommunicate OK [21:38:34]SAM_PROTO_SignData done [21:38:34]FM_MakeSignedData done [21:38:34]CreateOFDProtocolMessage [21:38:34]wFMCommunicate request_size=4 [21:38:34]MH_SAM_APDU [21:38:34]CAPDU: 80 11 00 00 [21:38:34]Write to MH i2c: E2 08 00 35 0E 80 11 00 00 00 00 00 00 BD [21:38:34]Write i2c OK [21:38:34]MH_I2C_Read... [21:38:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:38:34]Read from MH i2c: E2 [21:38:34]MH_I2C_Read... [21:38:34]Read from MH i2c: E2 17 00 [21:38:34]MH_I2C_Read... [21:38:34]Read from MH i2c: E2 17 00 35 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 13 [21:38:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:38:34]wFMCommunicate OK [21:38:34]CreateOFDProtocolMessage done [21:38:34]OFDSenderStorePacket 165464 [21:38:34]StoreOFDPacket docnum=165464 [21:38:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 32 D3 07 01 42 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 16 0D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 1B 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 D9 96 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 58 86 02 00 35 04 06 00 5B AF 57 F6 7D 3E AD 1F 5F 2B 1C AF 62 DC [21:38:34]CheckFolder [21:38:34]dirname=/storage/ofd_packets [21:38:34]CheckFolder done [21:38:34]ProducePacketName [21:38:34]name=ofd_packets/00165464 [21:38:34]NVStorageSaveData ofd_packets/00165464 [21:38:34]File name is /storage/ofd_packets/00165464 [21:38:34]Write 301 bytes [21:38:34]NVStorageSaveData done [21:38:34]OFDSenderStorePacket done [21:38:34]KKMCreateOFDPacket done [21:38:34]NVStorageSaveData kkm_last_timestamp [21:38:34]File name is /storage/kkm_last_timestamp [21:38:34]Write 4 bytes [21:38:34]NVStorageSaveData done [21:38:34]ExternCall_PrintAddStr [21:38:34]wPrintStart [21:38:34]Write to MH i2c: 01 00 00 36 0E 44 [21:38:34]Write i2c OK [21:38:34]MH_I2C_Read... [21:38:34]Read from MH i2c: 01 [21:38:34]MH_I2C_Read... [21:38:34]Read from MH i2c: 01 07 00 [21:38:34]MH_I2C_Read... [21:38:34]Read from MH i2c: 01 07 00 36 0E 00 00 00 00 00 FF 0F 59 [21:38:34]RasterBufferAndPrint [21:38:34]line Счет N : (1)459580 [21:38:34]line ИНН: 02508201610067 [21:38:34]line Контрольно-Кассовый Чек [21:38:34]line ПРОДАЖА [21:38:34]line ТРК (МРК, ГНК) : 12 [21:38:34]line Товар: 2710124130 [21:38:34]line Аи-92-К-5 [21:38:34]line 3.350 * 65.80 [21:38:34]line = 220.43 [21:38:34]line НДС 12% НСП 1% [21:38:34]line > о реализуемом товаре [21:38:34]line ОКРУГЛЕНИЕ: -0.43 [21:38:34]line ИТОГО: 220.00 [21:38:34]line Внесено: 220.00 [21:38:34]line СДАЧА: 0.00 [21:38:34]line НСП 1% : 1.95 [21:38:34]line НДС 12% : 23.41 [21:38:34]line Наличными: 220.00 [21:38:34]line Безнал.: 0.00 [21:38:34]line Место: АЗС № 72 "Партнер Нефть" [21:38:34]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [21:38:34]line СНО: Общий режим [21:38:34]line Чек 337 15.07.2024 21:38 [21:38:34]line Смена: 448 ФФД: 1.0 [21:38:34]line ЗНМ: 0300000160 [21:38:34]line РНМ: 0000000000090829 [21:38:34]line Версия ККМ: 001 [21:38:34]line ФМ: 0000000000874718 [21:38:34]line ФД: 165464 [21:38:34]line ФПД: 100808653176126 [21:38:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T213833&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165464&fm=100808653176126&tin=02508201610067®Number=0000000000090829&sum=22000 [21:38:34]written 0, free lines is 4095 [21:38:34]OFD Sender: Processing packet 165464 [packets to send 106, broken 105] [21:38:34]ProducePacketName [21:38:34]name=ofd_packets/00165464 [21:38:34]OFD Sender: To server: pG, [21:38:34]CommunicateWithHost lk.salyk.kg:30040 [21:38:34]ConnectInit lk.salyk.kg [21:38:34]Connected sock=10 [21:38:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 32 D3 07 01 42 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 16 0D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 1B 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 D9 96 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 58 86 02 00 35 04 06 00 5B AF 57 F6 7D 3E AD 1F 5F 2B 1C AF 62 DC [21:38:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 1B 63 47 00 21 EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 58 86 02 00 F4 03 04 00 62 3D 95 66 B6 04 01 00 00 C4 6C A1 8F 58 33 2A 64 [21:38:34]CommunicateWithHost err = 0 [21:38:34]CheckOFDResponse [21:38:34]1017 (14) - 77093643461234 [21:38:34]1041 (16) - 0000000000874718 [21:38:34]1040 (4) - 165464 [21:38:34]1012 (4) - 15.07.2024 15:16 [21:38:34]1206 (1) - 0 [21:38:34]OFD Sender: Remove packet 165464 [21:38:34]ProducePacketName [21:38:34]name=ofd_packets/00165464 [21:38:34]NVStorageDeleteData [21:38:34]Write to MH i2c: 01 00 00 60 0E 6E [21:38:34]Write i2c OK [21:38:34]MH_I2C_Read... [21:38:34]Read from MH i2c: 01 [21:38:34]MH_I2C_Read... [21:38:34]Read from MH i2c: 01 07 00 [21:38:34]MH_I2C_Read... [21:38:34]Read from MH i2c: 01 07 00 60 0E 00 00 00 00 00 00 0D 82 [21:38:34]RasterBufferAndPrint [21:38:34]line [21:38:34]line [21:38:34]line [21:38:34]line [21:38:34]line [21:38:34]written 0, free lines is 3334 [21:38:34]MH_Cut [21:38:34]Write to MH i2c: D1 01 00 67 0E 01 47 [21:38:34]Write i2c OK [21:38:34]MH_I2C_Read... [21:38:34]Read from MH i2c: D1 [21:38:34]MH_I2C_Read... [21:38:34]Read from MH i2c: D1 01 00 [21:38:34]MH_I2C_Read... [21:38:34]Read from MH i2c: D1 01 00 67 0E 00 46 [21:38:34]Write to MH i2c: 01 00 00 68 0E 76 [21:38:34]Write i2c OK [21:38:34]MH_I2C_Read... [21:38:35]OFD Sender: No OFD packet to send [21:38:35]*** Cut start [21:38:35]*** Partial cut [21:38:35]*** CUTSNS_PIN = 1 [21:38:35]*** CUTSNS_PIN = 0 [21:38:35]*** Brake cut motor [21:38:36]Read from MH i2c: 01 [21:38:36]MH_I2C_Read... [21:38:36]*** Stop cut motor [21:38:36]*** Cut end [21:38:36]Read from MH i2c: 01 07 00 [21:38:36]MH_I2C_Read... [21:38:36]Read from MH i2c: 01 07 00 68 0E 00 00 00 00 00 FF 0F 8B [21:38:36]process_action close_receipt done [21:38:36]requested_data is exist [21:38:36]produce_requested_data [21:38:36]requested_item fm.sn is exist - process it [21:38:36]wFMCommunicate request_size=4 [21:38:36]MH_SAM_APDU [21:38:36]CAPDU: 80 11 00 00 [21:38:36]Write to MH i2c: E2 08 00 69 0E 80 11 00 00 00 00 00 00 F1 [21:38:36]Write i2c OK [21:38:36]MH_I2C_Read... [21:38:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:38:36]Read from MH i2c: E2 [21:38:36]MH_I2C_Read... [21:38:36]Read from MH i2c: E2 17 00 [21:38:36]MH_I2C_Read... [21:38:36]Read from MH i2c: E2 17 00 69 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 47 [21:38:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:38:36]wFMCommunicate OK [21:38:36]requested_item fd.num is exist - process it [21:38:36]SAM_PROTO_GetFieldsCounters [21:38:36]wFMCommunicate request_size=4 [21:38:36]MH_SAM_APDU [21:38:36]CAPDU: 80 13 00 00 [21:38:36]Write to MH i2c: E2 08 00 6A 0E 80 13 00 00 00 00 00 00 F4 [21:38:36]Write i2c OK [21:38:36]MH_I2C_Read... [21:38:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:38:36]Read from MH i2c: E2 [21:38:36]MH_I2C_Read... [21:38:36]Read from MH i2c: E2 62 00 [21:38:36]MH_I2C_Read... [21:38:36]Read from MH i2c: E2 62 00 6A 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 58 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 51 01 00 00 5E 04 04 00 51 01 00 00 57 04 04 00 52 01 00 00 19 04 04 00 00 00 00 00 90 00 B2 [21:38: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 58 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 51 01 00 00 5E 04 04 00 51 01 00 00 57 04 04 00 52 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:38:36]wFMCommunicate OK [21:38:36]SAM_PROTO_GetFieldsCounters done [21:38:36]requested_item shift.num is exist - process it [21:38:36]requested_item shift.opened is exist - process it [21:38:36]req_shift_opened [21:38:36]FM_GetShiftState [21:38:36]SAM_PROTO_GetShiftState [21:38:36]wFMCommunicate request_size=4 [21:38:36]MH_SAM_APDU [21:38:36]CAPDU: 80 13 01 00 [21:38:36]Write to MH i2c: E2 08 00 6B 0E 80 13 01 00 00 00 00 00 F6 [21:38:36]Write i2c OK [21:38:36]MH_I2C_Read... [21:38:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:38:36]Read from MH i2c: E2 [21:38:36]MH_I2C_Read... [21:38:36]Read from MH i2c: E2 0E 00 [21:38:36]MH_I2C_Read... [21:38:36]Read from MH i2c: E2 0E 00 6B 0E 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 CF [21:38:36]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [21:38:36]wFMCommunicate OK [21:38:36]SAM_PROTO_GetShiftState done [21:38:36]FM_GetShiftState done [21:38:36]req_shift_opened done [21:38:36]requested_item shift.open_date is exist - process it [21:38:36]req_shift_open_date [21:38:36]req_shift_open_date done [21:38:36]produce_requested_data done [21:38:36]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165464,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [21:38:36]process_action_free close_receipt [21:38:36]json_value_free [21:38:36]json_value_free done [21:38:36]process_json_proto returns [21:38:36]Send response to host [21:38:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165464,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [21:38:36]free response buf [21:38:36]execute_script done [21:38:36]execute_script returns [21:38:36]free content buf [21:38:36]Sock 7.Close socket [21:38:36]Sock 7.Thread stoped [21:38:40]OFD Sender: No OFD packet to send [21:38:45]OFD Sender: No OFD packet to send [21:38:50]OFD Sender: No OFD packet to send [21:38:55]OFD Sender: No OFD packet to send [21:39:00]OFD Sender: No OFD packet to send [21:39:05]OFD Sender: No OFD packet to send [21:39:10]OFD Sender: No OFD packet to send [21:39:15]OFD Sender: No OFD packet to send [21:39:20]OFD Sender: No OFD packet to send [21:39:25]OFD Sender: No OFD packet to send [21:39:30]OFD Sender: No OFD packet to send [21:39:35]OFD Sender: No OFD packet to send [21:39:40]OFD Sender: No OFD packet to send [21:39:45]OFD Sender: No OFD packet to send [21:39:50]OFD Sender: No OFD packet to send [21:39:55]OFD Sender: No OFD packet to send [21:40:00]OFD Sender: No OFD packet to send [21:40:05]OFD Sender: No OFD packet to send [21:40:10]OFD Sender: No OFD packet to send [21:40:15]OFD Sender: No OFD packet to send [21:40:20]OFD Sender: No OFD packet to send [21:40:25]OFD Sender: No OFD packet to send [21:40:30]OFD Sender: No OFD packet to send [21:40:35]OFD Sender: No OFD packet to send [21:40:40]OFD Sender: No OFD packet to send [21:40:45]OFD Sender: No OFD packet to send [21:40:50]OFD Sender: No OFD packet to send [21:40:55]OFD Sender: No OFD packet to send [21:41:00]OFD Sender: No OFD packet to send [21:41:05]OFD Sender: No OFD packet to send [21:41:10]OFD Sender: No OFD packet to send [21:41:15]OFD Sender: No OFD packet to send [21:41:20]OFD Sender: No OFD packet to send [21:41:25]OFD Sender: No OFD packet to send [21:41:30]OFD Sender: No OFD packet to send [21:41:35]OFD Sender: No OFD packet to send [21:41:40]OFD Sender: No OFD packet to send [21:41:45]OFD Sender: No OFD packet to send [21:41:50]OFD Sender: No OFD packet to send [21:41:55]OFD Sender: No OFD packet to send [21:42:00]OFD Sender: No OFD packet to send [21:42:05]OFD Sender: No OFD packet to send [21:42:10]OFD Sender: No OFD packet to send [21:42:15]OFD Sender: No OFD packet to send [21:42:19]accept exits with 9 [21:42:19]New connection [21:42:19]New thread 3067333988 created [21:42:19]Thread 3067190628 joined [21:42:19]Waiting for new connection... [21:42:19] Sock 9.Parse request [21:42:19]Sock 9.Check first char [21:42:19]Sock 9.First char is OK [21:42:19]request: POST /json_proto HTTP/1.0 [21:42:19]Method: POST [21:42:19]URL: /json_proto [21:42:19]Method is POST - this is cgi request [21:42:19]url: /json_proto [21:42:19]query_string will be loaded in cgi processing [21:42:19]execute_cgi json_proto POST (null) [21:42:19]execute_cgi path=json_proto method=POST [21:42:19]POST find Content-Length [21:42:19]Host: 172.17.56.4:8080 [21:42:19]Content-Length: 677 [21:42:19]Content-Type: application/json [21:42:19] [21:42:19]POST finish read [21:42:19]Found Content-Length = 677 [21:42:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459581", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:42:19]execute_script... [21:42: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)459581", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:42:19]POST & json_proto [21:42:19]process_json_proto [21:42:19]json parsed OK: [21:42:19]protocol is kg_v1.0 [21:42:19]action value=close_receipt [21:42:19]process_action close_receipt [21:42:19]cmd_close_receipt [21:42:19]MH_GetDate [21:42:19]Write to MH i2c: F0 00 00 6C 0E 69 [21:42:19]Write i2c OK [21:42:19]MH_I2C_Read... [21:42:19]Read from MH i2c: F0 [21:42:19]MH_I2C_Read... [21:42:19]Read from MH i2c: F0 09 00 [21:42:19]MH_I2C_Read... [21:42:19]Read from MH i2c: F0 09 00 6C 0E 00 BC 97 95 66 C9 DC B2 64 7B [21:42:19]GetLastDocTimeStamp 1721079513 [21:42:19]current date 1721079740 [21:42:19]FM_GetShiftState [21:42:19]SAM_PROTO_GetShiftState [21:42:19]wFMCommunicate request_size=4 [21:42:19]MH_SAM_APDU [21:42:19]CAPDU: 80 13 01 00 [21:42:19]Write to MH i2c: E2 08 00 6D 0E 80 13 01 00 00 00 00 00 F8 [21:42:19]Write i2c OK [21:42:19]MH_I2C_Read... [21:42:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:42:19]Read from MH i2c: E2 [21:42:19]MH_I2C_Read... [21:42:19]Read from MH i2c: E2 0E 00 [21:42:19]MH_I2C_Read... [21:42:19]Read from MH i2c: E2 0E 00 6D 0E 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 D1 [21:42:19]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [21:42:19]wFMCommunicate OK [21:42:19]SAM_PROTO_GetShiftState done [21:42:19]FM_GetShiftState done [21:42:19]opened in 1721003876 [21:42:19]opened+sec_in_day 1721090276 [21:42:19]quantity*price = 30004 [21:42:19]sum+1 = 30006 [21:42:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 338 15.07.2024 21:42 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165465 ФПД: 228464825499603 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T214220&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165465&fm=228464825499603&tin=02508201610067®Number=0000000000090829&sum=30000 [21:42:20]StoreToDocumentArchive [21:42:20]shift 448 fd 165465 [21:42:20]save to /storage/0448/doc_00165465 [21:42:20]save last doc name /storage/0448/doc_00165465 to /storage/kkm_last_doc_name [21:42:20]save OK [21:42:20]Clear old archive folders... [21:42:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:42:20]tlvbuf is 01BB02F0 [21:42:20]SAM_PROTO_ClearQueue [21:42:20]wFMCommunicate request_size=4 [21:42:20]MH_SAM_APDU [21:42:20]CAPDU: 80 09 00 00 [21:42:20]Write to MH i2c: E2 08 00 7A 0E 80 09 00 00 00 00 00 00 FA [21:42:20]Write i2c OK [21:42:20]MH_I2C_Read... [21:42:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:42:21]Read from MH i2c: E2 [21:42:21]MH_I2C_Read... [21:42:21]Read from MH i2c: E2 03 00 [21:42:21]MH_I2C_Read... [21:42:21]Read from MH i2c: E2 03 00 7A 0E 00 90 00 FC [21:42:21]RAPDU: 90 00 [21:42:21]wFMCommunicate OK [21:42:21]SAM_PROTO_ClearQueue done [21:42:21]KKMCreateOFDPacket [21:42:21]OFDProtocolAddRootSTLVToBuf [21:42:21]FM_MakeSignedData [21:42:21]FM_MakeSignedData [21:42:21]SAM_PROTO_SignData [21:42:21]wFMCommunicate request_size=4 [21:42:21]MH_SAM_APDU [21:42:21]CAPDU: 80 0D 01 02 [21:42:21]Write to MH i2c: E2 08 00 7B 0E 80 0D 01 02 00 00 00 00 02 [21:42:21]Write i2c OK [21:42:21]MH_I2C_Read... [21:42:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:42:21]Read from MH i2c: E2 [21:42:21]MH_I2C_Read... [21:42:21]Read from MH i2c: E2 03 00 [21:42:21]MH_I2C_Read... [21:42:21]Read from MH i2c: E2 03 00 7B 0E 00 90 00 FD [21:42:21]RAPDU: 90 00 [21:42:21]wFMCommunicate OK [21:42:21]wFMCommunicate request_size=255 [21:42:21]MH_SAM_APDU [21: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 BC 97 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 59 86 02 00 35 04 06 00 CF [21:42:21]Write to MH i2c: E2 02 01 7C 0E 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 BC 97 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 59 86 02 00 35 04 06 00 CF 00 00 4E [21:42:21]Write i2c OK [21:42:21]MH_I2C_Read... [21:42:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:42:21]Read from MH i2c: E2 [21:42:21]MH_I2C_Read... [21:42:21]Read from MH i2c: E2 03 00 [21:42:21]MH_I2C_Read... [21:42:21]Read from MH i2c: E2 03 00 7C 0E 00 90 00 FE [21:42:21]RAPDU: 90 00 [21:42:21]wFMCommunicate OK [21:42:21]wFMCommunicate request_size=10 [21:42:21]MH_SAM_APDU [21:42:21]CAPDU: 80 0D 02 02 05 C9 9C C4 7F D3 [21:42:21]Write to MH i2c: E2 0D 00 7D 0E 80 0D 02 02 05 00 C9 9C C4 7F D3 00 00 8A [21:42:21]Write i2c OK [21:42:21]MH_I2C_Read... [21:42:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:42:21]Read from MH i2c: E2 [21:42:21]MH_I2C_Read... [21:42:21]Read from MH i2c: E2 03 00 [21:42:21]MH_I2C_Read... [21:42:21]Read from MH i2c: E2 03 00 7D 0E 00 90 00 FF [21:42:21]RAPDU: 90 00 [21:42:21]wFMCommunicate OK [21:42:21]wFMCommunicate request_size=4 [21:42:21]MH_SAM_APDU [21:42:21]CAPDU: 80 0D 03 02 [21:42:21]Write to MH i2c: E2 08 00 7E 0E 80 0D 03 02 00 00 00 00 07 [21:42:21]Write i2c OK [21:42:21]MH_I2C_Read... [21:42:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:42:21]Read from MH i2c: E2 [21:42:21]MH_I2C_Read... [21:42:21]Read from MH i2c: E2 0B 00 [21:42:21]MH_I2C_Read... [21:42:21]Read from MH i2c: E2 0B 00 7E 0E 00 73 AF 75 22 C4 C2 46 2E 90 00 BB [21:42:21]RAPDU: 73 AF 75 22 C4 C2 46 2E 90 00 [21:42:21]wFMCommunicate OK [21:42:21]SAM_PROTO_SignData done [21:42:21]FM_MakeSignedData done [21:42:21]CreateOFDProtocolMessage [21:42:21]wFMCommunicate request_size=4 [21:42:21]MH_SAM_APDU [21:42:21]CAPDU: 80 11 00 00 [21:42:21]Write to MH i2c: E2 08 00 7F 0E 80 11 00 00 00 00 00 00 07 [21:42:21]Write i2c OK [21:42:21]MH_I2C_Read... [21:42:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:42:21]Read from MH i2c: E2 [21:42:21]MH_I2C_Read... [21:42:21]Read from MH i2c: E2 17 00 [21:42:21]MH_I2C_Read... [21:42:21]Read from MH i2c: E2 17 00 7F 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5D [21:42:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:42:21]wFMCommunicate OK [21:42:21]CreateOFDProtocolMessage done [21:42:21]OFDSenderStorePacket 165465 [21:42:21]StoreOFDPacket docnum=165465 [21:42:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 CF FA 07 01 4F BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 BC 97 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 59 86 02 00 35 04 06 00 CF C9 9C C4 7F D3 73 AF 75 22 C4 C2 46 2E [21:42:21]CheckFolder [21:42:21]dirname=/storage/ofd_packets [21:42:21]CheckFolder done [21:42:21]ProducePacketName [21:42:21]name=ofd_packets/00165465 [21:42:21]NVStorageSaveData ofd_packets/00165465 [21:42:21]File name is /storage/ofd_packets/00165465 [21:42:21]Write 301 bytes [21:42:21]NVStorageSaveData done [21:42:21]OFDSenderStorePacket done [21:42:21]KKMCreateOFDPacket done [21:42:21]NVStorageSaveData kkm_last_timestamp [21:42:21]File name is /storage/kkm_last_timestamp [21:42:21]Write 4 bytes [21:42:21]NVStorageSaveData done [21:42:21]ExternCall_PrintAddStr [21:42:21]wPrintStart [21:42:21]Write to MH i2c: 01 00 00 80 0E 8E [21:42:21]Write i2c OK [21:42:21]MH_I2C_Read... [21:42:21]Read from MH i2c: 01 [21:42:21]MH_I2C_Read... [21:42:21]Read from MH i2c: 01 07 00 [21:42:21]MH_I2C_Read... [21:42:21]Read from MH i2c: 01 07 00 80 0E 00 00 00 00 00 FF 0F A3 [21:42:21]RasterBufferAndPrint [21:42:21]line Счет N : (1)459581 [21:42:21]line ИНН: 02508201610067 [21:42:21]line Контрольно-Кассовый Чек [21:42:21]line ПРОДАЖА [21:42:21]line ТРК (МРК, ГНК) : 12 [21:42:21]line Товар: 2710124130 [21:42:21]line Аи-92-К-5 [21:42:21]line 4.560 * 65.80 [21:42:21]line = 300.05 [21:42:21]line НДС 12% НСП 1% [21:42:21]line > о реализуемом товаре [21:42:21]line ОКРУГЛЕНИЕ: -0.05 [21:42:21]line ИТОГО: 300.00 [21:42:21]line Внесено: 300.00 [21:42:21]line СДАЧА: 0.00 [21:42:21]line НСП 1% : 2.65 [21:42:21]line НДС 12% : 31.86 [21:42:21]line Наличными: 300.00 [21:42:21]line Безнал.: 0.00 [21:42:21]line Место: АЗС № 72 "Партнер Нефть" [21:42:21]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [21:42:21]line СНО: Общий режим [21:42:21]line Чек 338 15.07.2024 21:42 [21:42:21]line Смена: 448 ФФД: 1.0 [21:42:21]line ЗНМ: 0300000160 [21:42:21]line РНМ: 0000000000090829 [21:42:21]line Версия ККМ: 001 [21:42:21]line ФМ: 0000000000874718 [21:42:21]line ФД: 165465 [21:42:21]line ФПД: 228464825499603 [21:42:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T214220&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165465&fm=228464825499603&tin=02508201610067®Number=0000000000090829&sum=30000 [21:42:21]written 0, free lines is 4095 [21:42:21]OFD Sender: Processing packet 165465 [packets to send 106, broken 105] [21:42:21]ProducePacketName [21:42:21]name=ofd_packets/00165465 [21:42:21]OFD Sender: To server: pG, [21:42:21]CommunicateWithHost lk.salyk.kg:30040 [21:42:21]ConnectInit lk.salyk.kg [21:42:21]Connected sock=10 [21:42: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 37 31 38 0F 01 00 00 CF FA 07 01 4F BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 BC 97 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 59 86 02 00 35 04 06 00 CF C9 9C C4 7F D3 73 AF 75 22 C4 C2 46 2E [21:42:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 17 E8 47 00 13 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 59 86 02 00 F4 03 04 00 45 3E 95 66 B6 04 01 00 00 27 90 F8 B7 F5 BA A3 FB [21:42:21]CommunicateWithHost err = 0 [21:42:21]CheckOFDResponse [21:42:21]1017 (14) - 77093643461234 [21:42:21]1041 (16) - 0000000000874718 [21:42:21]1040 (4) - 165465 [21:42:21]1012 (4) - 15.07.2024 15:20 [21:42:21]1206 (1) - 0 [21:42:21]OFD Sender: Remove packet 165465 [21:42:21]ProducePacketName [21:42:21]name=ofd_packets/00165465 [21:42:21]NVStorageDeleteData [21:42:21]Write to MH i2c: 01 00 00 AA 0E B8 [21:42:21]Write i2c OK [21:42:21]MH_I2C_Read... [21:42:21]Read from MH i2c: 01 [21:42:21]MH_I2C_Read... [21:42:21]Read from MH i2c: 01 07 00 [21:42:21]MH_I2C_Read... [21:42:21]Read from MH i2c: 01 07 00 AA 0E 00 00 00 00 00 02 0D CE [21:42:21]RasterBufferAndPrint [21:42:21]line [21:42:21]line [21:42:21]line [21:42:21]line [21:42:21]line [21:42:21]written 0, free lines is 3336 [21:42:21]MH_Cut [21:42:21]Write to MH i2c: D1 01 00 B1 0E 01 91 [21:42:21]Write i2c OK [21:42:21]MH_I2C_Read... [21:42:21]Read from MH i2c: D1 [21:42:21]MH_I2C_Read... [21:42:21]Read from MH i2c: D1 01 00 [21:42:21]MH_I2C_Read... [21:42:21]Read from MH i2c: D1 01 00 B1 0E 00 90 [21:42:21]Write to MH i2c: 01 00 00 B2 0E C0 [21:42:21]Write i2c OK [21:42:21]MH_I2C_Read... [21:42:22]OFD Sender: No OFD packet to send [21:42:22]*** Cut start [21:42:22]*** Partial cut [21:42:22]*** CUTSNS_PIN = 1 [21:42:22]*** CUTSNS_PIN = 0 [21:42:22]*** Brake cut motor [21:42:23]Read from MH i2c: 01 [21:42:23]MH_I2C_Read... [21:42:23]*** Stop cut motor [21:42:23]*** Cut end [21:42:23]Read from MH i2c: 01 07 00 [21:42:23]MH_I2C_Read... [21:42:23]Read from MH i2c: 01 07 00 B2 0E 00 00 00 00 00 FF 0F D5 [21:42:23]process_action close_receipt done [21:42:23]requested_data is exist [21:42:23]produce_requested_data [21:42:23]requested_item fm.sn is exist - process it [21:42:23]wFMCommunicate request_size=4 [21:42:23]MH_SAM_APDU [21:42:23]CAPDU: 80 11 00 00 [21:42:23]Write to MH i2c: E2 08 00 B3 0E 80 11 00 00 00 00 00 00 3B [21:42:23]Write i2c OK [21:42:23]MH_I2C_Read... [21:42:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:42:23]Read from MH i2c: E2 [21:42:23]MH_I2C_Read... [21:42:23]Read from MH i2c: E2 17 00 [21:42:23]MH_I2C_Read... [21:42:23]Read from MH i2c: E2 17 00 B3 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 91 [21:42:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:42:23]wFMCommunicate OK [21:42:23]requested_item fd.num is exist - process it [21:42:23]SAM_PROTO_GetFieldsCounters [21:42:23]wFMCommunicate request_size=4 [21:42:23]MH_SAM_APDU [21:42:23]CAPDU: 80 13 00 00 [21:42:23]Write to MH i2c: E2 08 00 B4 0E 80 13 00 00 00 00 00 00 3E [21:42:23]Write i2c OK [21:42:23]MH_I2C_Read... [21:42:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:42:23]Read from MH i2c: E2 [21:42:23]MH_I2C_Read... [21:42:23]Read from MH i2c: E2 62 00 [21:42:23]MH_I2C_Read... [21:42:23]Read from MH i2c: E2 62 00 B4 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 59 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 53 01 00 00 19 04 04 00 00 00 00 00 90 00 00 [21:42:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 59 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 53 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:42:23]wFMCommunicate OK [21:42:23]SAM_PROTO_GetFieldsCounters done [21:42:23]requested_item shift.num is exist - process it [21:42:23]requested_item shift.opened is exist - process it [21:42:23]req_shift_opened [21:42:23]FM_GetShiftState [21:42:23]SAM_PROTO_GetShiftState [21:42:23]wFMCommunicate request_size=4 [21:42:23]MH_SAM_APDU [21:42:23]CAPDU: 80 13 01 00 [21:42:23]Write to MH i2c: E2 08 00 B5 0E 80 13 01 00 00 00 00 00 40 [21:42:23]Write i2c OK [21:42:23]MH_I2C_Read... [21:42:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:42:23]Read from MH i2c: E2 [21:42:23]MH_I2C_Read... [21:42:23]Read from MH i2c: E2 0E 00 [21:42:23]MH_I2C_Read... [21:42:23]Read from MH i2c: E2 0E 00 B5 0E 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 19 [21:42:23]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [21:42:23]wFMCommunicate OK [21:42:23]SAM_PROTO_GetShiftState done [21:42:23]FM_GetShiftState done [21:42:23]req_shift_opened done [21:42:23]requested_item shift.open_date is exist - process it [21:42:23]req_shift_open_date [21:42:23]req_shift_open_date done [21:42:23]produce_requested_data done [21:42:23]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165465,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [21:42:23]process_action_free close_receipt [21:42:23]json_value_free [21:42:23]json_value_free done [21:42:23]process_json_proto returns [21:42:23]Send response to host [21:42:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165465,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [21:42:23]free response buf [21:42:23]execute_script done [21:42:23]execute_script returns [21:42:23]free content buf [21:42:23]Sock 9.Close socket [21:42:23]Sock 9.Thread stoped [21:42:27]OFD Sender: No OFD packet to send [21:42:32]OFD Sender: No OFD packet to send [21:42:37]OFD Sender: No OFD packet to send [21:42:42]OFD Sender: No OFD packet to send [21:42:47]OFD Sender: No OFD packet to send [21:42:52]OFD Sender: No OFD packet to send [21:42:57]OFD Sender: No OFD packet to send [21:43:02]OFD Sender: No OFD packet to send [21:43:07]OFD Sender: No OFD packet to send [21:43:12]OFD Sender: No OFD packet to send [21:43:17]OFD Sender: No OFD packet to send [21:43:22]OFD Sender: No OFD packet to send [21:43:27]OFD Sender: No OFD packet to send [21:43:32]OFD Sender: No OFD packet to send [21:43:37]OFD Sender: No OFD packet to send [21:43:42]OFD Sender: No OFD packet to send [21:43:47]OFD Sender: No OFD packet to send [21:43:52]OFD Sender: No OFD packet to send [21:43:57]OFD Sender: No OFD packet to send [21:44:02]OFD Sender: No OFD packet to send [21:44:07]OFD Sender: No OFD packet to send [21:44:12]OFD Sender: No OFD packet to send [21:44:17]OFD Sender: No OFD packet to send [21:44:22]OFD Sender: No OFD packet to send [21:44:27]OFD Sender: No OFD packet to send [21:44:32]OFD Sender: No OFD packet to send [21:44:37]OFD Sender: No OFD packet to send [21:44:42]OFD Sender: No OFD packet to send [21:44:47]OFD Sender: No OFD packet to send [21:44:52]OFD Sender: No OFD packet to send [21:44:57]OFD Sender: No OFD packet to send [21:45:02]OFD Sender: No OFD packet to send [21:45:07]OFD Sender: No OFD packet to send [21:45:12]OFD Sender: No OFD packet to send [21:45:17]OFD Sender: No OFD packet to send [21:45:22]OFD Sender: No OFD packet to send [21:45:27]OFD Sender: No OFD packet to send [21:45:32]OFD Sender: No OFD packet to send [21:45:35]accept exits with 7 [21:45:35]New connection [21:45:35]New thread 3067190628 created [21:45:35]Thread 3067333988 joined [21:45:35]Waiting for new connection... [21:45:35] Sock 7.Parse request [21:45:35]Sock 7.Check first char [21:45:35]Sock 7.First char is OK [21:45:35]request: POST /json_proto HTTP/1.0 [21:45:35]Method: POST [21:45:35]URL: /json_proto [21:45:35]Method is POST - this is cgi request [21:45:35]url: /json_proto [21:45:35]query_string will be loaded in cgi processing [21:45:35]execute_cgi json_proto POST (null) [21:45:35]execute_cgi path=json_proto method=POST [21:45:35]POST find Content-Length [21:45:35]Host: 172.17.56.4:8080 [21:45:35]Content-Length: 840 [21:45:35]Content-Type: application/json [21:45:35] [21:45:35]POST finish read [21:45:35]Found Content-Length = 840 [21:45:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459582", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.670, "sum" : 500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:45:35]execute_script... [21:45: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)459582", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.670, "sum" : 500.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:45:35]POST & json_proto [21:45:35]process_json_proto [21:45:35]json parsed OK: [21:45:35]protocol is kg_v1.0 [21:45:35]action value=close_receipt [21:45:35]process_action close_receipt [21:45:35]cmd_close_receipt [21:45:35]MH_GetDate [21:45:35]Write to MH i2c: F0 00 00 B6 0E B3 [21:45:35]Write i2c OK [21:45:35]MH_I2C_Read... [21:45:35]Read from MH i2c: F0 [21:45:35]MH_I2C_Read... [21:45:35]Read from MH i2c: F0 09 00 [21:45:35]MH_I2C_Read... [21:45:35]Read from MH i2c: F0 09 00 B6 0E 00 81 98 95 66 C9 DC B2 64 8B [21:45:35]GetLastDocTimeStamp 1721079740 [21:45:35]current date 1721079937 [21:45:35]FM_GetShiftState [21:45:35]SAM_PROTO_GetShiftState [21:45:35]wFMCommunicate request_size=4 [21:45:35]MH_SAM_APDU [21:45:35]CAPDU: 80 13 01 00 [21:45:35]Write to MH i2c: E2 08 00 B7 0E 80 13 01 00 00 00 00 00 42 [21:45:35]Write i2c OK [21:45:35]MH_I2C_Read... [21:45:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:45:35]Read from MH i2c: E2 [21:45:35]MH_I2C_Read... [21:45:35]Read from MH i2c: E2 0E 00 [21:45:35]MH_I2C_Read... [21:45:35]Read from MH i2c: E2 0E 00 B7 0E 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 1B [21:45:35]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [21:45:35]wFMCommunicate OK [21:45:35]SAM_PROTO_GetShiftState done [21:45:35]FM_GetShiftState done [21:45:35]opened in 1721003876 [21:45:35]opened+sec_in_day 1721090276 [21:45:35]quantity*price = 50023 [21:45:35]sum+1 = 50025 [21:45:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.24 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.24 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 339 15.07.2024 21:45 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874718 ФД: 165466 ФПД: 159533380448939 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T214537&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165466&fm=159533380448939&tin=02508201610067®Number=0000000000090829&sum=50024 [21:45:37]StoreToDocumentArchive [21:45:37]shift 448 fd 165466 [21:45:37]save to /storage/0448/doc_00165466 [21:45:37]save last doc name /storage/0448/doc_00165466 to /storage/kkm_last_doc_name [21:45:37]save OK [21:45:37]Clear old archive folders... [21:45:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:45:37]tlvbuf is 01B86600 [21:45:37]SAM_PROTO_ClearQueue [21:45:37]wFMCommunicate request_size=4 [21:45:37]MH_SAM_APDU [21:45:37]CAPDU: 80 09 00 00 [21:45:37]Write to MH i2c: E2 08 00 C4 0E 80 09 00 00 00 00 00 00 44 [21:45:37]Write i2c OK [21:45:37]MH_I2C_Read... [21:45:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:45:37]Read from MH i2c: E2 [21:45:37]MH_I2C_Read... [21:45:37]Read from MH i2c: E2 03 00 [21:45:37]MH_I2C_Read... [21:45:37]Read from MH i2c: E2 03 00 C4 0E 00 90 00 46 [21:45:37]RAPDU: 90 00 [21:45:37]wFMCommunicate OK [21:45:37]SAM_PROTO_ClearQueue done [21:45:37]KKMCreateOFDPacket [21:45:37]OFDProtocolAddRootSTLVToBuf [21:45:37]FM_MakeSignedData [21:45:37]FM_MakeSignedData [21:45:37]SAM_PROTO_SignData [21:45:37]wFMCommunicate request_size=4 [21:45:37]MH_SAM_APDU [21:45:37]CAPDU: 80 0D 01 02 [21:45:37]Write to MH i2c: E2 08 00 C5 0E 80 0D 01 02 00 00 00 00 4C [21:45:37]Write i2c OK [21:45:37]MH_I2C_Read... [21:45:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:45:37]Read from MH i2c: E2 [21:45:37]MH_I2C_Read... [21:45:37]Read from MH i2c: E2 03 00 [21:45:37]MH_I2C_Read... [21:45:37]Read from MH i2c: E2 03 00 C5 0E 00 90 00 47 [21:45:37]RAPDU: 90 00 [21:45:37]wFMCommunicate OK [21:45:37]wFMCommunicate request_size=255 [21:45:37]MH_SAM_APDU [21:45: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 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 81 98 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5A 86 02 00 35 04 06 00 91 [21:45:37]Write to MH i2c: E2 02 01 C6 0E 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 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 81 98 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5A 86 02 00 35 04 06 00 91 00 00 AF [21:45:37]Write i2c OK [21:45:37]MH_I2C_Read... [21:45:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:45:37]Read from MH i2c: E2 [21:45:37]MH_I2C_Read... [21:45:37]Read from MH i2c: E2 03 00 [21:45:37]MH_I2C_Read... [21:45:37]Read from MH i2c: E2 03 00 C6 0E 00 90 00 48 [21:45:37]RAPDU: 90 00 [21:45:37]wFMCommunicate OK [21:45:37]wFMCommunicate request_size=10 [21:45:37]MH_SAM_APDU [21:45:37]CAPDU: 80 0D 02 02 05 18 42 78 B2 AB [21:45:37]Write to MH i2c: E2 0D 00 C7 0E 80 0D 02 02 05 00 18 42 78 B2 AB 00 00 88 [21:45:37]Write i2c OK [21:45:37]MH_I2C_Read... [21:45:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:45:37]Read from MH i2c: E2 [21:45:37]MH_I2C_Read... [21:45:37]Read from MH i2c: E2 03 00 [21:45:37]MH_I2C_Read... [21:45:37]Read from MH i2c: E2 03 00 C7 0E 00 90 00 49 [21:45:37]RAPDU: 90 00 [21:45:37]wFMCommunicate OK [21:45:37]wFMCommunicate request_size=4 [21:45:37]MH_SAM_APDU [21:45:37]CAPDU: 80 0D 03 02 [21:45:37]Write to MH i2c: E2 08 00 C8 0E 80 0D 03 02 00 00 00 00 51 [21:45:37]Write i2c OK [21:45:37]MH_I2C_Read... [21:45:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:45:37]OFD Sender: No OFD packet to send [21:45:37]Read from MH i2c: E2 [21:45:37]MH_I2C_Read... [21:45:37]Read from MH i2c: E2 0B 00 [21:45:37]MH_I2C_Read... [21:45:37]Read from MH i2c: E2 0B 00 C8 0E 00 FE EB A8 C2 58 F6 C6 47 90 00 00 [21:45:37]RAPDU: FE EB A8 C2 58 F6 C6 47 90 00 [21:45:37]wFMCommunicate OK [21:45:37]SAM_PROTO_SignData done [21:45:37]FM_MakeSignedData done [21:45:37]CreateOFDProtocolMessage [21:45:37]wFMCommunicate request_size=4 [21:45:37]MH_SAM_APDU [21:45:37]CAPDU: 80 11 00 00 [21:45:37]Write to MH i2c: E2 08 00 C9 0E 80 11 00 00 00 00 00 00 51 [21:45:37]Write i2c OK [21:45:37]MH_I2C_Read... [21:45:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:45:37]Read from MH i2c: E2 [21:45:37]MH_I2C_Read... [21:45:37]Read from MH i2c: E2 17 00 [21:45:37]MH_I2C_Read... [21:45:37]Read from MH i2c: E2 17 00 C9 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A7 [21:45:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:45:37]wFMCommunicate OK [21:45:37]CreateOFDProtocolMessage done [21:45:37]OFDSenderStorePacket 165466 [21:45:37]StoreOFDPacket docnum=165466 [21:45:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 5F 0C 07 01 0E 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 81 98 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5A 86 02 00 35 04 06 00 91 18 42 78 B2 AB FE EB A8 C2 58 F6 C6 47 [21:45:37]CheckFolder [21:45:37]dirname=/storage/ofd_packets [21:45:37]CheckFolder done [21:45:37]ProducePacketName [21:45:37]name=ofd_packets/00165466 [21:45:37]NVStorageSaveData ofd_packets/00165466 [21:45:37]File name is /storage/ofd_packets/00165466 [21:45:37]Write 301 bytes [21:45:37]NVStorageSaveData done [21:45:37]OFDSenderStorePacket done [21:45:37]KKMCreateOFDPacket done [21:45:37]NVStorageSaveData kkm_last_timestamp [21:45:37]File name is /storage/kkm_last_timestamp [21:45:37]Write 4 bytes [21:45:37]NVStorageSaveData done [21:45:37]ExternCall_PrintAddStr [21:45:37]wPrintStart [21:45:37]Write to MH i2c: 01 00 00 CA 0E D8 [21:45:37]Write i2c OK [21:45:37]MH_I2C_Read... [21:45:37]Read from MH i2c: 01 [21:45:37]MH_I2C_Read... [21:45:37]Read from MH i2c: 01 07 00 [21:45:37]MH_I2C_Read... [21:45:37]Read from MH i2c: 01 07 00 CA 0E 00 00 00 00 00 FF 0F ED [21:45:37]RasterBufferAndPrint [21:45:37]line Счет N : (1)459582 [21:45:37]line ИНН: 02508201610067 [21:45:37]line Контрольно-Кассовый Чек [21:45:37]line ПРОДАЖА [21:45:37]line ТРК (МРК, ГНК) : 22 [21:45:37]line Товар: 2710124130 [21:45:37]line Аи-92-К-5 [21:45:37]line 7.670 * 65.22 [21:45:37]line = 500.24 [21:45:37]line НДС 12% НСП 1% [21:45:37]line > о реализуемом товаре [21:45:37]line ИТОГО: 500.24 [21:45:37]line НСП 1% : 4.43 [21:45:37]line НДС 12% : 53.12 [21:45:37]line Наличными: 0.00 [21:45:37]line Безнал.: 500.24 [21:45:37]line Место: АЗС № 72 "Партнер Нефть" [21:45:37]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [21:45:37]line СНО: Общий режим [21:45:37]line Чек 339 15.07.2024 21:45 [21:45:37]line Смена: 448 ФФД: 1.0 [21:45:37]line ЗНМ: 0300000160 [21:45:37]line РНМ: 0000000000090829 [21:45:37]line Версия ККМ: 001 [21:45:37]line Платежная система: АКБ Кыргызстан [21:45:37]line ФМ: 0000000000874718 [21:45:37]line ФД: 165466 [21:45:37]line ФПД: 159533380448939 [21:45:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T214537&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165466&fm=159533380448939&tin=02508201610067®Number=0000000000090829&sum=50024 [21:45:37]written 0, free lines is 4095 [21:45:37]OFD Sender: Processing packet 165466 [packets to send 106, broken 105] [21:45:37]ProducePacketName [21:45:37]name=ofd_packets/00165466 [21:45:37]OFD Sender: To server: pG, [21:45:37]CommunicateWithHost lk.salyk.kg:30040 [21:45:37]ConnectInit lk.salyk.kg [21:45:38]Connected sock=10 [21:45: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 37 31 38 0F 01 00 00 5F 0C 07 01 0E 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 F6 1D 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 68 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 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 68 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 81 98 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5A 86 02 00 35 04 06 00 91 18 42 78 B2 AB FE EB A8 C2 58 F6 C6 47 [21:45:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 09 3F 47 00 9D 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5A 86 02 00 F4 03 04 00 0A 3F 95 66 B6 04 01 00 00 6E A8 6D BA 1C F1 EE 2D [21:45:38]CommunicateWithHost err = 0 [21:45:38]CheckOFDResponse [21:45:38]1017 (14) - 77093643461234 [21:45:38]1041 (16) - 0000000000874718 [21:45:38]1040 (4) - 165466 [21:45:38]1012 (4) - 15.07.2024 15:23 [21:45:38]1206 (1) - 0 [21:45:38]OFD Sender: Remove packet 165466 [21:45:38]ProducePacketName [21:45:38]name=ofd_packets/00165466 [21:45:38]NVStorageDeleteData [21:45:38]Write to MH i2c: 01 00 00 F3 0E 01 [21:45:38]Write i2c OK [21:45:38]MH_I2C_Read... [21:45:38]Read from MH i2c: 01 [21:45:38]MH_I2C_Read... [21:45:38]Read from MH i2c: 01 07 00 [21:45:38]MH_I2C_Read... [21:45:38]Read from MH i2c: 01 07 00 F3 0E 00 00 00 00 00 0C 0D 21 [21:45:38]RasterBufferAndPrint [21:45:38]line [21:45:38]line [21:45:38]line [21:45:38]line [21:45:38]line [21:45:38]written 0, free lines is 3346 [21:45:38]MH_Cut [21:45:38]Write to MH i2c: D1 01 00 FA 0E 01 DA [21:45:38]Write i2c OK [21:45:38]MH_I2C_Read... [21:45:38]Read from MH i2c: D1 [21:45:38]MH_I2C_Read... [21:45:38]Read from MH i2c: D1 01 00 [21:45:38]MH_I2C_Read... [21:45:38]Read from MH i2c: D1 01 00 FA 0E 00 D9 [21:45:38]Write to MH i2c: 01 00 00 FB 0E 09 [21:45:38]Write i2c OK [21:45:38]MH_I2C_Read... [21:45:38]OFD Sender: No OFD packet to send [21:45:39]*** Cut start [21:45:39]*** Partial cut [21:45:39]*** CUTSNS_PIN = 1 [21:45:39]*** CUTSNS_PIN = 0 [21:45:39]*** Brake cut motor [21:45:39]Read from MH i2c: 01 [21:45:39]MH_I2C_Read... [21:45:39]*** Stop cut motor [21:45:39]*** Cut end [21:45:39]Read from MH i2c: 01 07 00 [21:45:39]MH_I2C_Read... [21:45:39]Read from MH i2c: 01 07 00 FB 0E 00 00 00 00 00 FF 0F 1E [21:45:39]process_action close_receipt done [21:45:39]requested_data is exist [21:45:39]produce_requested_data [21:45:39]requested_item fm.sn is exist - process it [21:45:39]wFMCommunicate request_size=4 [21:45:39]MH_SAM_APDU [21:45:39]CAPDU: 80 11 00 00 [21:45:39]Write to MH i2c: E2 08 00 FC 0E 80 11 00 00 00 00 00 00 84 [21:45:39]Write i2c OK [21:45:39]MH_I2C_Read... [21:45:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:45:39]Read from MH i2c: E2 [21:45:39]MH_I2C_Read... [21:45:39]Read from MH i2c: E2 17 00 [21:45:39]MH_I2C_Read... [21:45:39]Read from MH i2c: E2 17 00 FC 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DA [21:45:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:45:39]wFMCommunicate OK [21:45:39]requested_item fd.num is exist - process it [21:45:39]SAM_PROTO_GetFieldsCounters [21:45:39]wFMCommunicate request_size=4 [21:45:39]MH_SAM_APDU [21:45:39]CAPDU: 80 13 00 00 [21:45:39]Write to MH i2c: E2 08 00 FD 0E 80 13 00 00 00 00 00 00 87 [21:45:39]Write i2c OK [21:45:39]MH_I2C_Read... [21:45:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:45:39]Read from MH i2c: E2 [21:45:39]MH_I2C_Read... [21:45:39]Read from MH i2c: E2 62 00 [21:45:39]MH_I2C_Read... [21:45:39]Read from MH i2c: E2 62 00 FD 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5A 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 53 01 00 00 5E 04 04 00 53 01 00 00 57 04 04 00 54 01 00 00 19 04 04 00 00 00 00 00 90 00 4D [21:45: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5A 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 53 01 00 00 5E 04 04 00 53 01 00 00 57 04 04 00 54 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:45:39]wFMCommunicate OK [21:45:39]SAM_PROTO_GetFieldsCounters done [21:45:39]requested_item shift.num is exist - process it [21:45:39]requested_item shift.opened is exist - process it [21:45:39]req_shift_opened [21:45:39]FM_GetShiftState [21:45:39]SAM_PROTO_GetShiftState [21:45:39]wFMCommunicate request_size=4 [21:45:39]MH_SAM_APDU [21:45:39]CAPDU: 80 13 01 00 [21:45:39]Write to MH i2c: E2 08 00 FE 0E 80 13 01 00 00 00 00 00 89 [21:45:39]Write i2c OK [21:45:39]MH_I2C_Read... [21:45:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:45:39]Read from MH i2c: E2 [21:45:39]MH_I2C_Read... [21:45:39]Read from MH i2c: E2 0E 00 [21:45:39]MH_I2C_Read... [21:45:39]Read from MH i2c: E2 0E 00 FE 0E 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 62 [21:45:39]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [21:45:39]wFMCommunicate OK [21:45:39]SAM_PROTO_GetShiftState done [21:45:39]FM_GetShiftState done [21:45:39]req_shift_opened done [21:45:39]requested_item shift.open_date is exist - process it [21:45:39]req_shift_open_date [21:45:39]req_shift_open_date done [21:45:39]produce_requested_data done [21:45:39]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165466,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [21:45:39]process_action_free close_receipt [21:45:39]json_value_free [21:45:39]json_value_free done [21:45:39]process_json_proto returns [21:45:39]Send response to host [21:45:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165466,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [21:45:39]free response buf [21:45:39]execute_script done [21:45:39]execute_script returns [21:45:39]free content buf [21:45:39]Sock 7.Close socket [21:45:39]Sock 7.Thread stoped [21:45:43]OFD Sender: No OFD packet to send [21:45:48]OFD Sender: No OFD packet to send [21:45:53]OFD Sender: No OFD packet to send [21:45:58]OFD Sender: No OFD packet to send [21:46:03]OFD Sender: No OFD packet to send [21:46:08]OFD Sender: No OFD packet to send [21:46:13]OFD Sender: No OFD packet to send [21:46:18]OFD Sender: No OFD packet to send [21:46:23]OFD Sender: No OFD packet to send [21:46:28]OFD Sender: No OFD packet to send [21:46:33]OFD Sender: No OFD packet to send [21:46:38]OFD Sender: No OFD packet to send [21:46:43]OFD Sender: No OFD packet to send [21:46:48]OFD Sender: No OFD packet to send [21:46:53]OFD Sender: No OFD packet to send [21:46:58]OFD Sender: No OFD packet to send [21:47:03]OFD Sender: No OFD packet to send [21:47:08]OFD Sender: No OFD packet to send [21:47:13]OFD Sender: No OFD packet to send [21:47:18]OFD Sender: No OFD packet to send [21:47:23]OFD Sender: No OFD packet to send [21:47:28]OFD Sender: No OFD packet to send [21:47:33]OFD Sender: No OFD packet to send [21:47:38]OFD Sender: No OFD packet to send [21:47:43]OFD Sender: No OFD packet to send [21:47:48]OFD Sender: No OFD packet to send [21:47:53]OFD Sender: No OFD packet to send [21:47:58]OFD Sender: No OFD packet to send [21:48:03]OFD Sender: No OFD packet to send [21:48:08]OFD Sender: No OFD packet to send [21:48:13]OFD Sender: No OFD packet to send [21:48:18]OFD Sender: No OFD packet to send [21:48:23]OFD Sender: No OFD packet to send [21:48:28]OFD Sender: No OFD packet to send [21:48:33]OFD Sender: No OFD packet to send [21:48:38]OFD Sender: No OFD packet to send [21:48:43]OFD Sender: No OFD packet to send [21:48:49]OFD Sender: No OFD packet to send [21:48:54]OFD Sender: No OFD packet to send [21:48:59]OFD Sender: No OFD packet to send [21:49:04]OFD Sender: No OFD packet to send [21:49:09]OFD Sender: No OFD packet to send [21:49:14]OFD Sender: No OFD packet to send [21:49:19]OFD Sender: No OFD packet to send [21:49:24]OFD Sender: No OFD packet to send [21:49:29]OFD Sender: No OFD packet to send [21:49:34]OFD Sender: No OFD packet to send [21:49:39]OFD Sender: No OFD packet to send [21:49:44]OFD Sender: No OFD packet to send [21:49:49]OFD Sender: No OFD packet to send [21:49:54]OFD Sender: No OFD packet to send [21:49:59]OFD Sender: No OFD packet to send [21:50:04]OFD Sender: No OFD packet to send [21:50:09]OFD Sender: No OFD packet to send [21:50:14]OFD Sender: No OFD packet to send [21:50:19]OFD Sender: No OFD packet to send [21:50:24]OFD Sender: No OFD packet to send [21:50:29]OFD Sender: No OFD packet to send [21:50:34]OFD Sender: No OFD packet to send [21:50:39]OFD Sender: No OFD packet to send [21:50:44]OFD Sender: No OFD packet to send [21:50:49]OFD Sender: No OFD packet to send [21:50:54]OFD Sender: No OFD packet to send [21:50:59]OFD Sender: No OFD packet to send [21:51:04]OFD Sender: No OFD packet to send [21:51:09]OFD Sender: No OFD packet to send [21:51:14]OFD Sender: No OFD packet to send [21:51:19]OFD Sender: No OFD packet to send [21:51:24]OFD Sender: No OFD packet to send [21:51:29]OFD Sender: No OFD packet to send [21:51:34]OFD Sender: No OFD packet to send [21:51:39]OFD Sender: No OFD packet to send [21:51:44]OFD Sender: No OFD packet to send [21:51:49]OFD Sender: No OFD packet to send [21:51:54]OFD Sender: No OFD packet to send [21:51:59]OFD Sender: No OFD packet to send [21:52:04]OFD Sender: No OFD packet to send [21:52:09]OFD Sender: No OFD packet to send [21:52:14]OFD Sender: No OFD packet to send [21:52:19]OFD Sender: No OFD packet to send [21:52:24]OFD Sender: No OFD packet to send [21:52:29]OFD Sender: No OFD packet to send [21:52:34]OFD Sender: No OFD packet to send [21:52:39]OFD Sender: No OFD packet to send [21:52:44]OFD Sender: No OFD packet to send [21:52:49]OFD Sender: No OFD packet to send [21:52:54]OFD Sender: No OFD packet to send [21:52:59]OFD Sender: No OFD packet to send [21:53:04]OFD Sender: No OFD packet to send [21:53:09]OFD Sender: No OFD packet to send [21:53:14]OFD Sender: No OFD packet to send [21:53:19]OFD Sender: No OFD packet to send [21:53:24]OFD Sender: No OFD packet to send [21:53:29]OFD Sender: No OFD packet to send [21:53:34]OFD Sender: No OFD packet to send [21:53:39]OFD Sender: No OFD packet to send [21:53:44]OFD Sender: No OFD packet to send [21:53:49]OFD Sender: No OFD packet to send [21:53:54]OFD Sender: No OFD packet to send [21:53:59]OFD Sender: No OFD packet to send [21:54:04]OFD Sender: No OFD packet to send [21:54:09]OFD Sender: No OFD packet to send [21:54:14]OFD Sender: No OFD packet to send [21:54:19]OFD Sender: No OFD packet to send [21:54:24]OFD Sender: No OFD packet to send [21:54:29]OFD Sender: No OFD packet to send [21:54:34]OFD Sender: No OFD packet to send [21:54:39]OFD Sender: No OFD packet to send [21:54:44]OFD Sender: No OFD packet to send [21:54:49]OFD Sender: No OFD packet to send [21:54:54]OFD Sender: No OFD packet to send [21:54:59]OFD Sender: No OFD packet to send [21:55:04]OFD Sender: No OFD packet to send [21:55:09]OFD Sender: No OFD packet to send [21:55:14]OFD Sender: No OFD packet to send [21:55:19]OFD Sender: No OFD packet to send [21:55:24]OFD Sender: No OFD packet to send [21:55:29]OFD Sender: No OFD packet to send [21:55:34]OFD Sender: No OFD packet to send [21:55:39]OFD Sender: No OFD packet to send [21:55:44]OFD Sender: No OFD packet to send [21:55:49]OFD Sender: No OFD packet to send [21:55:54]OFD Sender: No OFD packet to send [21:55:59]OFD Sender: No OFD packet to send [21:56:04]OFD Sender: No OFD packet to send [21:56:09]OFD Sender: No OFD packet to send [21:56:14]OFD Sender: No OFD packet to send [21:56:19]OFD Sender: No OFD packet to send [21:56:24]OFD Sender: No OFD packet to send [21:56:29]OFD Sender: No OFD packet to send [21:56:34]OFD Sender: No OFD packet to send [21:56:39]OFD Sender: No OFD packet to send [21:56:44]OFD Sender: No OFD packet to send [21:56:49]OFD Sender: No OFD packet to send [21:56:53]accept exits with 9 [21:56:53]New connection [21:56:53]New thread 3067333988 created [21:56:53]Thread 3067190628 joined [21:56:53]Waiting for new connection... [21:56:53] Sock 9.Parse request [21:56:53]Sock 9.Check first char [21:56:53]Sock 9.First char is OK [21:56:53]request: POST /json_proto HTTP/1.0 [21:56:53]Method: POST [21:56:53]URL: /json_proto [21:56:53]Method is POST - this is cgi request [21:56:53]url: /json_proto [21:56:53]query_string will be loaded in cgi processing [21:56:53]execute_cgi json_proto POST (null) [21:56:53]execute_cgi path=json_proto method=POST [21:56:53]POST find Content-Length [21:56:53]Host: 172.17.56.4:8080 [21:56:53]Content-Length: 791 [21:56:53]Content-Type: application/json [21:56:53] [21:56:53]POST finish read [21:56:53]Found Content-Length = 791 [21:56:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459583", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 10.000, "sum" : 652.20, "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 652.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:56:53]execute_script... [21:56:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459583", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 10.000, "sum" : 652.20, "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 652.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:56:53]POST & json_proto [21:56:53]process_json_proto [21:56:53]json parsed OK: [21:56:53]protocol is kg_v1.0 [21:56:53]action value=close_receipt [21:56:53]process_action close_receipt [21:56:53]cmd_close_receipt [21:56:53]MH_GetDate [21:56:53]Write to MH i2c: F0 00 00 FF 0E FC [21:56:53]Write i2c OK [21:56:53]MH_I2C_Read... [21:56:53]Read from MH i2c: F0 [21:56:53]MH_I2C_Read... [21:56:53]Read from MH i2c: F0 09 00 [21:56:53]MH_I2C_Read... [21:56:53]Read from MH i2c: F0 09 00 FF 0E 00 26 9B 95 66 C9 DC B2 64 7C [21:56:53]GetLastDocTimeStamp 1721079937 [21:56:53]current date 1721080614 [21:56:53]FM_GetShiftState [21:56:53]SAM_PROTO_GetShiftState [21:56:53]wFMCommunicate request_size=4 [21:56:53]MH_SAM_APDU [21:56:53]CAPDU: 80 13 01 00 [21:56:53]Write to MH i2c: E2 08 00 00 0F 80 13 01 00 00 00 00 00 8C [21:56:53]Write i2c OK [21:56:53]MH_I2C_Read... [21:56:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:56:53]Read from MH i2c: E2 [21:56:53]MH_I2C_Read... [21:56:53]Read from MH i2c: E2 0E 00 [21:56:53]MH_I2C_Read... [21:56:53]Read from MH i2c: E2 0E 00 00 0F 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 65 [21:56:53]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [21:56:53]wFMCommunicate OK [21:56:53]SAM_PROTO_GetShiftState done [21:56:53]FM_GetShiftState done [21:56:53]opened in 1721003876 [21:56:53]opened+sec_in_day 1721090276 [21:56:53]quantity*price = 65220 [21:56:53]sum+1 = 65221 [21:56:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 652.20 НСП 1% : 5.77 НДС 12% : 69.26 Наличными: 0.00 Безнал.: 652.20 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 340 15.07.2024 21:56 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 165467 ФПД: 146745325534845 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T215654&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165467&fm=146745325534845&tin=02508201610067®Number=0000000000090829&sum=65220 [21:56:54]StoreToDocumentArchive [21:56:54]shift 448 fd 165467 [21:56:54]save to /storage/0448/doc_00165467 [21:56:54]save last doc name /storage/0448/doc_00165467 to /storage/kkm_last_doc_name [21:56:54]save OK [21:56:54]Clear old archive folders... [21:56:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:56:54]tlvbuf is 01BB0240 [21:56:54]SAM_PROTO_ClearQueue [21:56:54]wFMCommunicate request_size=4 [21:56:54]MH_SAM_APDU [21:56:54]CAPDU: 80 09 00 00 [21:56:54]Write to MH i2c: E2 08 00 0D 0F 80 09 00 00 00 00 00 00 8E [21:56:54]Write i2c OK [21:56:54]MH_I2C_Read... [21:56:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:56:54]Read from MH i2c: E2 [21:56:54]MH_I2C_Read... [21:56:54]Read from MH i2c: E2 03 00 [21:56:54]MH_I2C_Read... [21:56:54]Read from MH i2c: E2 03 00 0D 0F 00 90 00 90 [21:56:54]RAPDU: 90 00 [21:56:54]wFMCommunicate OK [21:56:54]SAM_PROTO_ClearQueue done [21:56:54]KKMCreateOFDPacket [21:56:54]OFDProtocolAddRootSTLVToBuf [21:56:54]FM_MakeSignedData [21:56:54]FM_MakeSignedData [21:56:54]SAM_PROTO_SignData [21:56:54]wFMCommunicate request_size=4 [21:56:54]MH_SAM_APDU [21:56:54]CAPDU: 80 0D 01 02 [21:56:54]Write to MH i2c: E2 08 00 0E 0F 80 0D 01 02 00 00 00 00 96 [21:56:54]Write i2c OK [21:56:54]MH_I2C_Read... [21:56:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:56:55]Read from MH i2c: E2 [21:56:55]MH_I2C_Read... [21:56:55]Read from MH i2c: E2 03 00 [21:56:55]MH_I2C_Read... [21:56:55]Read from MH i2c: E2 03 00 0E 0F 00 90 00 91 [21:56:55]RAPDU: 90 00 [21:56:55]wFMCommunicate OK [21:56:55]wFMCommunicate request_size=255 [21:56:55]MH_SAM_APDU [21:56: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 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 26 9B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5B 86 02 00 35 04 06 00 85 [21:56:55]Write to MH i2c: E2 02 01 0F 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 26 9B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5B 86 02 00 35 04 06 00 85 00 00 5C [21:56:55]Write i2c OK [21:56:55]MH_I2C_Read... [21:56:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:56:55]Read from MH i2c: E2 [21:56:55]MH_I2C_Read... [21:56:55]Read from MH i2c: E2 03 00 [21:56:55]MH_I2C_Read... [21:56:55]Read from MH i2c: E2 03 00 0F 0F 00 90 00 92 [21:56:55]RAPDU: 90 00 [21:56:55]wFMCommunicate OK [21:56:55]wFMCommunicate request_size=10 [21:56:55]MH_SAM_APDU [21:56:55]CAPDU: 80 0D 02 02 05 76 CF 00 3E 7D [21:56:55]Write to MH i2c: E2 0D 00 10 0F 80 0D 02 02 05 00 76 CF 00 3E 7D 00 00 A3 [21:56:55]Write i2c OK [21:56:55]MH_I2C_Read... [21:56:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:56:55]Read from MH i2c: E2 [21:56:55]MH_I2C_Read... [21:56:55]Read from MH i2c: E2 03 00 [21:56:55]MH_I2C_Read... [21:56:55]Read from MH i2c: E2 03 00 10 0F 00 90 00 93 [21:56:55]RAPDU: 90 00 [21:56:55]wFMCommunicate OK [21:56:55]wFMCommunicate request_size=4 [21:56:55]MH_SAM_APDU [21:56:55]CAPDU: 80 0D 03 02 [21:56:55]Write to MH i2c: E2 08 00 11 0F 80 0D 03 02 00 00 00 00 9B [21:56:55]Write i2c OK [21:56:55]MH_I2C_Read... [21:56:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:56:55]Read from MH i2c: E2 [21:56:55]MH_I2C_Read... [21:56:55]Read from MH i2c: E2 0B 00 [21:56:55]MH_I2C_Read... [21:56:55]Read from MH i2c: E2 0B 00 11 0F 00 41 E3 21 DC A9 F6 DB 5C 90 00 93 [21:56:55]RAPDU: 41 E3 21 DC A9 F6 DB 5C 90 00 [21:56:55]wFMCommunicate OK [21:56:55]SAM_PROTO_SignData done [21:56:55]FM_MakeSignedData done [21:56:55]CreateOFDProtocolMessage [21:56:55]wFMCommunicate request_size=4 [21:56:55]MH_SAM_APDU [21:56:55]CAPDU: 80 11 00 00 [21:56:55]Write to MH i2c: E2 08 00 12 0F 80 11 00 00 00 00 00 00 9B [21:56:55]Write i2c OK [21:56:55]MH_I2C_Read... [21:56:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:56:55]Read from MH i2c: E2 [21:56:55]MH_I2C_Read... [21:56:55]Read from MH i2c: E2 17 00 [21:56:55]MH_I2C_Read... [21:56:55]Read from MH i2c: E2 17 00 12 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F1 [21:56:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:56:55]wFMCommunicate OK [21:56:55]CreateOFDProtocolMessage done [21:56:55]OFDSenderStorePacket 165467 [21:56:55]StoreOFDPacket docnum=165467 [21:56:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 26 46 07 01 E3 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 26 9B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5B 86 02 00 35 04 06 00 85 76 CF 00 3E 7D 41 E3 21 DC A9 F6 DB 5C [21:56:55]CheckFolder [21:56:55]dirname=/storage/ofd_packets [21:56:55]CheckFolder done [21:56:55]ProducePacketName [21:56:55]name=ofd_packets/00165467 [21:56:55]NVStorageSaveData ofd_packets/00165467 [21:56:55]File name is /storage/ofd_packets/00165467 [21:56:55]Write 301 bytes [21:56:55]NVStorageSaveData done [21:56:55]OFDSenderStorePacket done [21:56:55]KKMCreateOFDPacket done [21:56:55]NVStorageSaveData kkm_last_timestamp [21:56:55]File name is /storage/kkm_last_timestamp [21:56:55]Write 4 bytes [21:56:55]NVStorageSaveData done [21:56:55]ExternCall_PrintAddStr [21:56:55]wPrintStart [21:56:55]Write to MH i2c: 01 00 00 13 0F 22 [21:56:55]Write i2c OK [21:56:55]MH_I2C_Read... [21:56:55]Read from MH i2c: 01 [21:56:55]MH_I2C_Read... [21:56:55]Read from MH i2c: 01 07 00 [21:56:55]MH_I2C_Read... [21:56:55]Read from MH i2c: 01 07 00 13 0F 00 00 00 00 00 FF 0F 37 [21:56:55]RasterBufferAndPrint [21:56:55]line Счет N : (1)459583 [21:56:55]line ИНН: 02508201610067 [21:56:55]line Контрольно-Кассовый Чек [21:56:55]line ПРОДАЖА [21:56:55]line ТРК (МРК, ГНК) : 22 [21:56:55]line Товар: 2710124130 [21:56:55]line Аи-92-К-5 [21:56:55]line 10.000 * 65.22 [21:56:55]line = 652.20 [21:56:55]line НДС 12% НСП 1% [21:56:55]line > о реализуемом товаре [21:56:55]line ИТОГО: 652.20 [21:56:55]line НСП 1% : 5.77 [21:56:55]line НДС 12% : 69.26 [21:56:55]line Наличными: 0.00 [21:56:55]line Безнал.: 652.20 [21:56:55]line Место: АЗС № 72 "Партнер Нефть" [21:56:55]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [21:56:55]line СНО: Общий режим [21:56:55]line Чек 340 15.07.2024 21:56 [21:56:55]line Смена: 448 ФФД: 1.0 [21:56:55]line ЗНМ: 0300000160 [21:56:55]line РНМ: 0000000000090829 [21:56:55]line Версия ККМ: 001 [21:56:55]line Платежная система: KICB Банк [21:56:55]line ФМ: 0000000000874718 [21:56:55]line ФД: 165467 [21:56:55]line ФПД: 146745325534845 [21:56:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T215654&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165467&fm=146745325534845&tin=02508201610067®Number=0000000000090829&sum=65220 [21:56:55]written 0, free lines is 4095 [21:56:55]OFD Sender: Processing packet 165467 [packets to send 106, broken 105] [21:56:55]ProducePacketName [21:56:55]name=ofd_packets/00165467 [21:56:55]OFD Sender: To server: pG, [21:56:55]CommunicateWithHost lk.salyk.kg:30040 [21:56:55]ConnectInit lk.salyk.kg [21:56:55]Connected sock=10 [21:56:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 26 46 07 01 E3 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 C4 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 26 9B 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5B 86 02 00 35 04 06 00 85 76 CF 00 3E 7D 41 E3 21 DC A9 F6 DB 5C [21:56:55]Write to MH i2c: 01 00 00 3C 0F 4B [21:56:55]Write i2c OK [21:56:55]MH_I2C_Read... [21:56:55]Read from MH i2c: 01 [21:56:55]MH_I2C_Read... [21:56:55]Read from MH i2c: 01 07 00 [21:56:55]MH_I2C_Read... [21:56:55]Read from MH i2c: 01 07 00 3C 0F 00 00 00 00 00 1C 0D 7B [21:56:55]RasterBufferAndPrint [21:56:55]line [21:56:55]line [21:56:55]line [21:56:55]line [21:56:55]line [21:56:55]written 0, free lines is 3362 [21:56:55]MH_Cut [21:56:55]Write to MH i2c: D1 01 00 43 0F 01 24 [21:56:55]Write i2c OK [21:56:55]MH_I2C_Read... [21:56:55]Read from MH i2c: D1 [21:56:55]MH_I2C_Read... [21:56:55]Read from MH i2c: D1 01 00 [21:56:55]MH_I2C_Read... [21:56:55]Read from MH i2c: D1 01 00 43 0F 00 23 [21:56:55]Write to MH i2c: 01 00 00 44 0F 53 [21:56:55]Write i2c OK [21:56:55]MH_I2C_Read... [21:56:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 CB 98 47 00 F2 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5B 86 02 00 F4 03 04 00 B0 41 95 66 B6 04 01 00 00 82 AF CC 4B 28 F5 B7 5C [21:56:56]CommunicateWithHost err = 0 [21:56:56]CheckOFDResponse [21:56:56]1017 (14) - 77093643461234 [21:56:56]1041 (16) - 0000000000874718 [21:56:56]1040 (4) - 165467 [21:56:56]1012 (4) - 15.07.2024 15:35 [21:56:56]1206 (1) - 0 [21:56:56]OFD Sender: Remove packet 165467 [21:56:56]ProducePacketName [21:56:56]name=ofd_packets/00165467 [21:56:56]NVStorageDeleteData [21:56:56]*** Cut start [21:56:56]*** Partial cut [21:56:56]*** CUTSNS_PIN = 1 [21:56:56]*** CUTSNS_PIN = 0 [21:56:56]OFD Sender: No OFD packet to send [21:56:56]*** Brake cut motor [21:56:57]Read from MH i2c: 01 [21:56:57]MH_I2C_Read... [21:56:57]*** Stop cut motor [21:56:57]*** Cut end [21:56:57]Read from MH i2c: 01 07 00 [21:56:57]MH_I2C_Read... [21:56:57]Read from MH i2c: 01 07 00 44 0F 00 00 00 00 00 FF 0F 68 [21:56:57]process_action close_receipt done [21:56:57]requested_data is exist [21:56:57]produce_requested_data [21:56:57]requested_item fm.sn is exist - process it [21:56:57]wFMCommunicate request_size=4 [21:56:57]MH_SAM_APDU [21:56:57]CAPDU: 80 11 00 00 [21:56:57]Write to MH i2c: E2 08 00 45 0F 80 11 00 00 00 00 00 00 CE [21:56:57]Write i2c OK [21:56:57]MH_I2C_Read... [21:56:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:56:57]Read from MH i2c: E2 [21:56:57]MH_I2C_Read... [21:56:57]Read from MH i2c: E2 17 00 [21:56:57]MH_I2C_Read... [21:56:57]Read from MH i2c: E2 17 00 45 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 24 [21:56:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [21:56:57]wFMCommunicate OK [21:56:57]requested_item fd.num is exist - process it [21:56:57]SAM_PROTO_GetFieldsCounters [21:56:57]wFMCommunicate request_size=4 [21:56:57]MH_SAM_APDU [21:56:57]CAPDU: 80 13 00 00 [21:56:57]Write to MH i2c: E2 08 00 46 0F 80 13 00 00 00 00 00 00 D1 [21:56:57]Write i2c OK [21:56:57]MH_I2C_Read... [21:56:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:56:57]Read from MH i2c: E2 [21:56:57]MH_I2C_Read... [21:56:57]Read from MH i2c: E2 62 00 [21:56:57]MH_I2C_Read... [21:56:57]Read from MH i2c: E2 62 00 46 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5B 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 54 01 00 00 5E 04 04 00 54 01 00 00 57 04 04 00 55 01 00 00 19 04 04 00 00 00 00 00 90 00 9B [21:56:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5B 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 54 01 00 00 5E 04 04 00 54 01 00 00 57 04 04 00 55 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:56:57]wFMCommunicate OK [21:56:57]SAM_PROTO_GetFieldsCounters done [21:56:57]requested_item shift.num is exist - process it [21:56:57]requested_item shift.opened is exist - process it [21:56:57]req_shift_opened [21:56:57]FM_GetShiftState [21:56:57]SAM_PROTO_GetShiftState [21:56:57]wFMCommunicate request_size=4 [21:56:57]MH_SAM_APDU [21:56:57]CAPDU: 80 13 01 00 [21:56:57]Write to MH i2c: E2 08 00 47 0F 80 13 01 00 00 00 00 00 D3 [21:56:57]Write i2c OK [21:56:57]MH_I2C_Read... [21:56:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:56:57]Read from MH i2c: E2 [21:56:57]MH_I2C_Read... [21:56:57]Read from MH i2c: E2 0E 00 [21:56:57]MH_I2C_Read... [21:56:57]Read from MH i2c: E2 0E 00 47 0F 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 AC [21:56:57]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [21:56:57]wFMCommunicate OK [21:56:57]SAM_PROTO_GetShiftState done [21:56:57]FM_GetShiftState done [21:56:57]req_shift_opened done [21:56:57]requested_item shift.open_date is exist - process it [21:56:57]req_shift_open_date [21:56:57]req_shift_open_date done [21:56:57]produce_requested_data done [21:56:57]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165467,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [21:56:57]process_action_free close_receipt [21:56:57]json_value_free [21:56:57]json_value_free done [21:56:57]process_json_proto returns [21:56:57]Send response to host [21:56:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165467,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [21:56:57]free response buf [21:56:57]execute_script done [21:56:57]execute_script returns [21:56:57]free content buf [21:56:57]Sock 9.Close socket [21:56:57]Sock 9.Thread stoped [21:57:01]OFD Sender: No OFD packet to send [21:57:06]OFD Sender: No OFD packet to send [21:57:11]OFD Sender: No OFD packet to send [21:57:16]OFD Sender: No OFD packet to send [21:57:21]OFD Sender: No OFD packet to send [21:57:26]OFD Sender: No OFD packet to send [21:57:31]OFD Sender: No OFD packet to send [21:57:36]OFD Sender: No OFD packet to send [21:57:41]OFD Sender: No OFD packet to send [21:57:46]OFD Sender: No OFD packet to send [21:57:51]OFD Sender: No OFD packet to send [21:57:56]OFD Sender: No OFD packet to send [21:58:01]OFD Sender: No OFD packet to send [21:58:06]OFD Sender: No OFD packet to send [21:58:11]OFD Sender: No OFD packet to send [21:58:16]OFD Sender: No OFD packet to send [21:58:21]OFD Sender: No OFD packet to send [21:58:26]OFD Sender: No OFD packet to send [21:58:31]OFD Sender: No OFD packet to send [21:58:36]OFD Sender: No OFD packet to send [21:58:41]OFD Sender: No OFD packet to send [21:58:46]OFD Sender: No OFD packet to send [21:58:51]OFD Sender: No OFD packet to send [21:58:56]OFD Sender: No OFD packet to send [21:59:01]OFD Sender: No OFD packet to send [21:59:06]OFD Sender: No OFD packet to send [21:59:11]OFD Sender: No OFD packet to send [21:59:16]OFD Sender: No OFD packet to send [21:59:21]OFD Sender: No OFD packet to send [21:59:26]OFD Sender: No OFD packet to send [21:59:31]OFD Sender: No OFD packet to send [21:59:36]OFD Sender: No OFD packet to send [21:59:41]OFD Sender: No OFD packet to send [21:59:46]OFD Sender: No OFD packet to send [21:59:51]OFD Sender: No OFD packet to send [21:59:56]OFD Sender: No OFD packet to send [22:00:01]OFD Sender: No OFD packet to send [22:00:06]OFD Sender: No OFD packet to send [22:00:11]OFD Sender: No OFD packet to send [22:00:16]OFD Sender: No OFD packet to send [22:00:21]OFD Sender: No OFD packet to send [22:00:26]OFD Sender: No OFD packet to send [22:00:31]OFD Sender: No OFD packet to send [22:00:36]OFD Sender: No OFD packet to send [22:00:41]OFD Sender: No OFD packet to send [22:00:46]OFD Sender: No OFD packet to send [22:00:51]OFD Sender: No OFD packet to send [22:00:56]OFD Sender: No OFD packet to send [22:01:01]OFD Sender: No OFD packet to send [22:01:06]OFD Sender: No OFD packet to send [22:01:11]OFD Sender: No OFD packet to send [22:01:16]OFD Sender: No OFD packet to send [22:01:21]OFD Sender: No OFD packet to send [22:01:26]OFD Sender: No OFD packet to send [22:01:31]OFD Sender: No OFD packet to send [22:01:36]OFD Sender: No OFD packet to send [22:01:41]OFD Sender: No OFD packet to send [22:01:46]OFD Sender: No OFD packet to send [22:01:51]OFD Sender: No OFD packet to send [22:01:56]OFD Sender: No OFD packet to send [22:02:01]OFD Sender: No OFD packet to send [22:02:06]OFD Sender: No OFD packet to send [22:02:11]OFD Sender: No OFD packet to send [22:02:16]OFD Sender: No OFD packet to send [22:02:21]OFD Sender: No OFD packet to send [22:02:26]OFD Sender: No OFD packet to send [22:02:31]OFD Sender: No OFD packet to send [22:02:36]OFD Sender: No OFD packet to send [22:02:41]OFD Sender: No OFD packet to send [22:02:46]OFD Sender: No OFD packet to send [22:02:51]OFD Sender: No OFD packet to send [22:02:56]OFD Sender: No OFD packet to send [22:03:02]OFD Sender: No OFD packet to send [22:03:07]OFD Sender: No OFD packet to send [22:03:12]OFD Sender: No OFD packet to send [22:03:17]OFD Sender: No OFD packet to send [22:03:22]OFD Sender: No OFD packet to send [22:03:27]OFD Sender: No OFD packet to send [22:03:32]OFD Sender: No OFD packet to send [22:03:37]OFD Sender: No OFD packet to send [22:03:42]OFD Sender: No OFD packet to send [22:03:47]OFD Sender: No OFD packet to send [22:03:52]OFD Sender: No OFD packet to send [22:03:57]OFD Sender: No OFD packet to send [22:04:02]OFD Sender: No OFD packet to send [22:04:07]OFD Sender: No OFD packet to send [22:04:12]OFD Sender: No OFD packet to send [22:04:17]OFD Sender: No OFD packet to send [22:04:22]OFD Sender: No OFD packet to send [22:04:27]OFD Sender: No OFD packet to send [22:04:32]OFD Sender: No OFD packet to send [22:04:37]OFD Sender: No OFD packet to send [22:04:42]OFD Sender: No OFD packet to send [22:04:47]OFD Sender: No OFD packet to send [22:04:52]OFD Sender: No OFD packet to send [22:04:57]OFD Sender: No OFD packet to send [22:05:02]OFD Sender: No OFD packet to send [22:05:07]OFD Sender: No OFD packet to send [22:05:12]OFD Sender: No OFD packet to send [22:05:17]OFD Sender: No OFD packet to send [22:05:22]OFD Sender: No OFD packet to send [22:05:27]OFD Sender: No OFD packet to send [22:05:32]OFD Sender: No OFD packet to send [22:05:37]OFD Sender: No OFD packet to send [22:05:42]OFD Sender: No OFD packet to send [22:05:47]OFD Sender: No OFD packet to send [22:05:52]OFD Sender: No OFD packet to send [22:05:57]OFD Sender: No OFD packet to send [22:06:02]OFD Sender: No OFD packet to send [22:06:07]OFD Sender: No OFD packet to send [22:06:12]OFD Sender: No OFD packet to send [22:06:17]OFD Sender: No OFD packet to send [22:06:22]OFD Sender: No OFD packet to send [22:06:27]OFD Sender: No OFD packet to send [22:06:32]OFD Sender: No OFD packet to send [22:06:37]OFD Sender: No OFD packet to send [22:06:42]OFD Sender: No OFD packet to send [22:06:47]OFD Sender: No OFD packet to send [22:06:52]OFD Sender: No OFD packet to send [22:06:57]OFD Sender: No OFD packet to send [22:07:02]OFD Sender: No OFD packet to send [22:07:07]OFD Sender: No OFD packet to send [22:07:12]OFD Sender: No OFD packet to send [22:07:17]OFD Sender: No OFD packet to send [22:07:22]OFD Sender: No OFD packet to send [22:07:27]OFD Sender: No OFD packet to send [22:07:27]accept exits with 7 [22:07:27]New connection [22:07:27]New thread 3067190628 created [22:07:27]Thread 3067333988 joined [22:07:27]Waiting for new connection... [22:07:27] Sock 7.Parse request [22:07:27]Sock 7.Check first char [22:07:27]Sock 7.First char is OK [22:07:27]request: POST /json_proto HTTP/1.0 [22:07:27]Method: POST [22:07:27]URL: /json_proto [22:07:27]Method is POST - this is cgi request [22:07:27]url: /json_proto [22:07:27]query_string will be loaded in cgi processing [22:07:27]execute_cgi json_proto POST (null) [22:07:27]execute_cgi path=json_proto method=POST [22:07:27]POST find Content-Length [22:07:27]Host: 172.17.56.4:8080 [22:07:27]Content-Length: 677 [22:07:27]Content-Type: application/json [22:07:27] [22:07:27]POST finish read [22:07:27]Found Content-Length = 677 [22:07:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459584", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:07:27]execute_script... [22:07:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459584", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:07:27]POST & json_proto [22:07:27]process_json_proto [22:07:27]json parsed OK: [22:07:27]protocol is kg_v1.0 [22:07:27]action value=close_receipt [22:07:27]process_action close_receipt [22:07:27]cmd_close_receipt [22:07:27]MH_GetDate [22:07:27]Write to MH i2c: F0 00 00 48 0F 46 [22:07:27]Write i2c OK [22:07:27]MH_I2C_Read... [22:07:27]Read from MH i2c: F0 [22:07:27]MH_I2C_Read... [22:07:27]Read from MH i2c: F0 09 00 [22:07:27]MH_I2C_Read... [22:07:27]Read from MH i2c: F0 09 00 48 0F 00 A1 9D 95 66 C9 DC B2 64 43 [22:07:27]GetLastDocTimeStamp 1721080614 [22:07:27]current date 1721081249 [22:07:27]FM_GetShiftState [22:07:27]SAM_PROTO_GetShiftState [22:07:27]wFMCommunicate request_size=4 [22:07:27]MH_SAM_APDU [22:07:27]CAPDU: 80 13 01 00 [22:07:27]Write to MH i2c: E2 08 00 49 0F 80 13 01 00 00 00 00 00 D5 [22:07:27]Write i2c OK [22:07:27]MH_I2C_Read... [22:07:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:07:27]Read from MH i2c: E2 [22:07:27]MH_I2C_Read... [22:07:27]Read from MH i2c: E2 0E 00 [22:07:27]MH_I2C_Read... [22:07:27]Read from MH i2c: E2 0E 00 49 0F 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 AE [22:07:27]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [22:07:27]wFMCommunicate OK [22:07:27]SAM_PROTO_GetShiftState done [22:07:27]FM_GetShiftState done [22:07:27]opened in 1721003876 [22:07:27]opened+sec_in_day 1721090276 [22:07:27]quantity*price = 50008 [22:07:27]sum+1 = 50009 [22:07:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 341 15.07.2024 22:07 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165468 ФПД: 149755962561594 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T220729&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165468&fm=149755962561594&tin=02508201610067®Number=0000000000090829&sum=50000 [22:07:29]StoreToDocumentArchive [22:07:29]shift 448 fd 165468 [22:07:29]save to /storage/0448/doc_00165468 [22:07:29]save last doc name /storage/0448/doc_00165468 to /storage/kkm_last_doc_name [22:07:29]save OK [22:07:29]Clear old archive folders... [22:07:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:07:29]tlvbuf is 01B4E3B0 [22:07:29]SAM_PROTO_ClearQueue [22:07:29]wFMCommunicate request_size=4 [22:07:29]MH_SAM_APDU [22:07:29]CAPDU: 80 09 00 00 [22:07:29]Write to MH i2c: E2 08 00 56 0F 80 09 00 00 00 00 00 00 D7 [22:07:29]Write i2c OK [22:07:29]MH_I2C_Read... [22:07:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:07:29]Read from MH i2c: E2 [22:07:29]MH_I2C_Read... [22:07:29]Read from MH i2c: E2 03 00 [22:07:29]MH_I2C_Read... [22:07:29]Read from MH i2c: E2 03 00 56 0F 00 90 00 D9 [22:07:29]RAPDU: 90 00 [22:07:29]wFMCommunicate OK [22:07:29]SAM_PROTO_ClearQueue done [22:07:29]KKMCreateOFDPacket [22:07:29]OFDProtocolAddRootSTLVToBuf [22:07:29]FM_MakeSignedData [22:07:29]FM_MakeSignedData [22:07:29]SAM_PROTO_SignData [22:07:29]wFMCommunicate request_size=4 [22:07:29]MH_SAM_APDU [22:07:29]CAPDU: 80 0D 01 02 [22:07:29]Write to MH i2c: E2 08 00 57 0F 80 0D 01 02 00 00 00 00 DF [22:07:29]Write i2c OK [22:07:29]MH_I2C_Read... [22:07:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:07:29]Read from MH i2c: E2 [22:07:29]MH_I2C_Read... [22:07:29]Read from MH i2c: E2 03 00 [22:07:29]MH_I2C_Read... [22:07:29]Read from MH i2c: E2 03 00 57 0F 00 90 00 DA [22:07:29]RAPDU: 90 00 [22:07:29]wFMCommunicate OK [22:07:29]wFMCommunicate request_size=255 [22:07:29]MH_SAM_APDU [22:07:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 A1 9D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5C 86 02 00 35 04 06 00 88 [22:07:29]Write to MH i2c: E2 02 01 58 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 A1 9D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5C 86 02 00 35 04 06 00 88 00 00 14 [22:07:29]Write i2c OK [22:07:29]MH_I2C_Read... [22:07:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:07:29]Read from MH i2c: E2 [22:07:29]MH_I2C_Read... [22:07:29]Read from MH i2c: E2 03 00 [22:07:29]MH_I2C_Read... [22:07:29]Read from MH i2c: E2 03 00 58 0F 00 90 00 DB [22:07:29]RAPDU: 90 00 [22:07:29]wFMCommunicate OK [22:07:29]wFMCommunicate request_size=10 [22:07:29]MH_SAM_APDU [22:07:29]CAPDU: 80 0D 02 02 05 33 C6 F3 94 3A [22:07:29]Write to MH i2c: E2 0D 00 59 0F 80 0D 02 02 05 00 33 C6 F3 94 3A 00 00 A6 [22:07:29]Write i2c OK [22:07:29]MH_I2C_Read... [22:07:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:07:29]Read from MH i2c: E2 [22:07:29]MH_I2C_Read... [22:07:29]Read from MH i2c: E2 03 00 [22:07:29]MH_I2C_Read... [22:07:29]Read from MH i2c: E2 03 00 59 0F 00 90 00 DC [22:07:29]RAPDU: 90 00 [22:07:29]wFMCommunicate OK [22:07:29]wFMCommunicate request_size=4 [22:07:29]MH_SAM_APDU [22:07:29]CAPDU: 80 0D 03 02 [22:07:29]Write to MH i2c: E2 08 00 5A 0F 80 0D 03 02 00 00 00 00 E4 [22:07:29]Write i2c OK [22:07:29]MH_I2C_Read... [22:07:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:07:29]Read from MH i2c: E2 [22:07:29]MH_I2C_Read... [22:07:29]Read from MH i2c: E2 0B 00 [22:07:29]MH_I2C_Read... [22:07:29]Read from MH i2c: E2 0B 00 5A 0F 00 4E 69 5B 0B 67 60 34 96 90 00 93 [22:07:29]RAPDU: 4E 69 5B 0B 67 60 34 96 90 00 [22:07:29]wFMCommunicate OK [22:07:29]SAM_PROTO_SignData done [22:07:29]FM_MakeSignedData done [22:07:29]CreateOFDProtocolMessage [22:07:29]wFMCommunicate request_size=4 [22:07:29]MH_SAM_APDU [22:07:29]CAPDU: 80 11 00 00 [22:07:29]Write to MH i2c: E2 08 00 5B 0F 80 11 00 00 00 00 00 00 E4 [22:07:29]Write i2c OK [22:07:29]MH_I2C_Read... [22:07:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:07:29]Read from MH i2c: E2 [22:07:29]MH_I2C_Read... [22:07:29]Read from MH i2c: E2 17 00 [22:07:29]MH_I2C_Read... [22:07:29]Read from MH i2c: E2 17 00 5B 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 3A [22:07:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:07:29]wFMCommunicate OK [22:07:29]CreateOFDProtocolMessage done [22:07:29]OFDSenderStorePacket 165468 [22:07:29]StoreOFDPacket docnum=165468 [22:07:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 73 7C 07 01 15 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 A1 9D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5C 86 02 00 35 04 06 00 88 33 C6 F3 94 3A 4E 69 5B 0B 67 60 34 96 [22:07:29]CheckFolder [22:07:29]dirname=/storage/ofd_packets [22:07:29]CheckFolder done [22:07:29]ProducePacketName [22:07:29]name=ofd_packets/00165468 [22:07:29]NVStorageSaveData ofd_packets/00165468 [22:07:29]File name is /storage/ofd_packets/00165468 [22:07:29]Write 301 bytes [22:07:29]NVStorageSaveData done [22:07:29]OFDSenderStorePacket done [22:07:29]KKMCreateOFDPacket done [22:07:29]NVStorageSaveData kkm_last_timestamp [22:07:29]File name is /storage/kkm_last_timestamp [22:07:29]Write 4 bytes [22:07:29]NVStorageSaveData done [22:07:29]ExternCall_PrintAddStr [22:07:29]wPrintStart [22:07:29]Write to MH i2c: 01 00 00 5C 0F 6B [22:07:29]Write i2c OK [22:07:29]MH_I2C_Read... [22:07:29]Read from MH i2c: 01 [22:07:29]MH_I2C_Read... [22:07:29]Read from MH i2c: 01 07 00 [22:07:29]MH_I2C_Read... [22:07:29]Read from MH i2c: 01 07 00 5C 0F 00 00 00 00 00 FF 0F 80 [22:07:29]RasterBufferAndPrint [22:07:29]line Счет N : (1)459584 [22:07:29]line ИНН: 02508201610067 [22:07:29]line Контрольно-Кассовый Чек [22:07:29]line ПРОДАЖА [22:07:29]line ТРК (МРК, ГНК) : 22 [22:07:29]line Товар: 2710124130 [22:07:29]line Аи-92-К-5 [22:07:29]line 7.600 * 65.80 [22:07:29]line = 500.08 [22:07:29]line НДС 12% НСП 1% [22:07:29]line > о реализуемом товаре [22:07:29]line ОКРУГЛЕНИЕ: -0.08 [22:07:29]line ИТОГО: 500.00 [22:07:29]line Внесено: 500.00 [22:07:29]line СДАЧА: 0.00 [22:07:29]line НСП 1% : 4.42 [22:07:29]line НДС 12% : 53.11 [22:07:29]line Наличными: 500.00 [22:07:29]line Безнал.: 0.00 [22:07:29]line Место: АЗС № 72 "Партнер Нефть" [22:07:29]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:07:29]line СНО: Общий режим [22:07:29]line Чек 341 15.07.2024 22:07 [22:07:29]line Смена: 448 ФФД: 1.0 [22:07:29]line ЗНМ: 0300000160 [22:07:29]line РНМ: 0000000000090829 [22:07:29]line Версия ККМ: 001 [22:07:29]line ФМ: 0000000000874718 [22:07:29]line ФД: 165468 [22:07:29]line ФПД: 149755962561594 [22:07:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T220729&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165468&fm=149755962561594&tin=02508201610067®Number=0000000000090829&sum=50000 [22:07:29]written 0, free lines is 4095 [22:07:29]OFD Sender: Processing packet 165468 [packets to send 106, broken 105] [22:07:29]ProducePacketName [22:07:29]name=ofd_packets/00165468 [22:07:29]OFD Sender: To server: pG, [22:07:29]CommunicateWithHost lk.salyk.kg:30040 [22:07:29]ConnectInit lk.salyk.kg [22:07:30]Connected sock=10 [22:07:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 73 7C 07 01 15 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 A1 9D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5C 86 02 00 35 04 06 00 88 33 C6 F3 94 3A 4E 69 5B 0B 67 60 34 96 [22:07:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 BA 8A 47 00 7B 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5C 86 02 00 F4 03 04 00 2A 44 95 66 B6 04 01 00 00 CF 89 48 0B 46 1D 25 C5 [22:07:30]CommunicateWithHost err = 0 [22:07:30]CheckOFDResponse [22:07:30]1017 (14) - 77093643461234 [22:07:30]1041 (16) - 0000000000874718 [22:07:30]1040 (4) - 165468 [22:07:30]1012 (4) - 15.07.2024 15:45 [22:07:30]1206 (1) - 0 [22:07:30]OFD Sender: Remove packet 165468 [22:07:30]ProducePacketName [22:07:30]name=ofd_packets/00165468 [22:07:30]NVStorageDeleteData [22:07:30]Write to MH i2c: 01 00 00 86 0F 95 [22:07:30]Write i2c OK [22:07:30]MH_I2C_Read... [22:07:30]Read from MH i2c: 01 [22:07:30]MH_I2C_Read... [22:07:30]Read from MH i2c: 01 07 00 [22:07:30]MH_I2C_Read... [22:07:30]Read from MH i2c: 01 07 00 86 0F 00 00 00 00 00 02 0D AB [22:07:30]RasterBufferAndPrint [22:07:30]line [22:07:30]line [22:07:30]line [22:07:30]line [22:07:30]line [22:07:30]written 0, free lines is 3336 [22:07:30]MH_Cut [22:07:30]Write to MH i2c: D1 01 00 8D 0F 01 6E [22:07:30]Write i2c OK [22:07:30]MH_I2C_Read... [22:07:30]Read from MH i2c: D1 [22:07:30]MH_I2C_Read... [22:07:30]Read from MH i2c: D1 01 00 [22:07:30]MH_I2C_Read... [22:07:30]Read from MH i2c: D1 01 00 8D 0F 00 6D [22:07:30]Write to MH i2c: 01 00 00 8E 0F 9D [22:07:30]Write i2c OK [22:07:30]MH_I2C_Read... [22:07:30]OFD Sender: No OFD packet to send [22:07:31]*** Cut start [22:07:31]*** Partial cut [22:07:31]*** CUTSNS_PIN = 1 [22:07:31]*** CUTSNS_PIN = 0 [22:07:31]*** Brake cut motor [22:07:31]Read from MH i2c: 01 [22:07:31]MH_I2C_Read... [22:07:31]*** Stop cut motor [22:07:31]*** Cut end [22:07:31]Read from MH i2c: 01 07 00 [22:07:31]MH_I2C_Read... [22:07:31]Read from MH i2c: 01 07 00 8E 0F 00 00 00 00 00 FF 0F B2 [22:07:31]process_action close_receipt done [22:07:31]requested_data is exist [22:07:31]produce_requested_data [22:07:31]requested_item fm.sn is exist - process it [22:07:31]wFMCommunicate request_size=4 [22:07:31]MH_SAM_APDU [22:07:31]CAPDU: 80 11 00 00 [22:07:31]Write to MH i2c: E2 08 00 8F 0F 80 11 00 00 00 00 00 00 18 [22:07:31]Write i2c OK [22:07:31]MH_I2C_Read... [22:07:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:07:31]Read from MH i2c: E2 [22:07:31]MH_I2C_Read... [22:07:31]Read from MH i2c: E2 17 00 [22:07:31]MH_I2C_Read... [22:07:31]Read from MH i2c: E2 17 00 8F 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6E [22:07:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:07:31]wFMCommunicate OK [22:07:31]requested_item fd.num is exist - process it [22:07:31]SAM_PROTO_GetFieldsCounters [22:07:31]wFMCommunicate request_size=4 [22:07:31]MH_SAM_APDU [22:07:31]CAPDU: 80 13 00 00 [22:07:31]Write to MH i2c: E2 08 00 90 0F 80 13 00 00 00 00 00 00 1B [22:07:31]Write i2c OK [22:07:31]MH_I2C_Read... [22:07:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:07:31]Read from MH i2c: E2 [22:07:31]MH_I2C_Read... [22:07:31]Read from MH i2c: E2 62 00 [22:07:31]MH_I2C_Read... [22:07:31]Read from MH i2c: E2 62 00 90 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5C 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 55 01 00 00 5E 04 04 00 55 01 00 00 57 04 04 00 56 01 00 00 19 04 04 00 00 00 00 00 90 00 E9 [22:07: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5C 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 55 01 00 00 5E 04 04 00 55 01 00 00 57 04 04 00 56 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:07:31]wFMCommunicate OK [22:07:31]SAM_PROTO_GetFieldsCounters done [22:07:31]requested_item shift.num is exist - process it [22:07:31]requested_item shift.opened is exist - process it [22:07:31]req_shift_opened [22:07:31]FM_GetShiftState [22:07:31]SAM_PROTO_GetShiftState [22:07:31]wFMCommunicate request_size=4 [22:07:31]MH_SAM_APDU [22:07:31]CAPDU: 80 13 01 00 [22:07:31]Write to MH i2c: E2 08 00 91 0F 80 13 01 00 00 00 00 00 1D [22:07:31]Write i2c OK [22:07:31]MH_I2C_Read... [22:07:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:07:31]Read from MH i2c: E2 [22:07:31]MH_I2C_Read... [22:07:31]Read from MH i2c: E2 0E 00 [22:07:31]MH_I2C_Read... [22:07:31]Read from MH i2c: E2 0E 00 91 0F 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 F6 [22:07:31]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [22:07:31]wFMCommunicate OK [22:07:31]SAM_PROTO_GetShiftState done [22:07:31]FM_GetShiftState done [22:07:31]req_shift_opened done [22:07:31]requested_item shift.open_date is exist - process it [22:07:31]req_shift_open_date [22:07:31]req_shift_open_date done [22:07:31]produce_requested_data done [22:07:31]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165468,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [22:07:31]process_action_free close_receipt [22:07:31]json_value_free [22:07:31]json_value_free done [22:07:31]process_json_proto returns [22:07:31]Send response to host [22:07:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165468,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [22:07:31]free response buf [22:07:31]execute_script done [22:07:31]execute_script returns [22:07:31]free content buf [22:07:31]Sock 7.Close socket [22:07:31]Sock 7.Thread stoped [22:07:35]OFD Sender: No OFD packet to send [22:07:40]OFD Sender: No OFD packet to send [22:07:45]OFD Sender: No OFD packet to send [22:07:50]OFD Sender: No OFD packet to send [22:07:55]OFD Sender: No OFD packet to send [22:07:58]accept exits with 9 [22:07:58]New connection [22:07:58]New thread 3067333988 created [22:07:58]Thread 3067190628 joined [22:07:58]Waiting for new connection... [22:07:58] Sock 9.Parse request [22:07:58]Sock 9.Check first char [22:07:58]Sock 9.First char is OK [22:07:58]request: POST /json_proto HTTP/1.0 [22:07:58]Method: POST [22:07:58]URL: /json_proto [22:07:58]Method is POST - this is cgi request [22:07:58]url: /json_proto [22:07:58]query_string will be loaded in cgi processing [22:07:58]execute_cgi json_proto POST (null) [22:07:58]execute_cgi path=json_proto method=POST [22:07:58]POST find Content-Length [22:07:58]Host: 172.17.56.4:8080 [22:07:58]Content-Length: 677 [22:07:58]Content-Type: application/json [22:07:58] [22:07:58]POST finish read [22:07:58]Found Content-Length = 677 [22:07:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459585", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:07:58]execute_script... [22: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)459585", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:07:58]POST & json_proto [22:07:58]process_json_proto [22:07:58]json parsed OK: [22:07:58]protocol is kg_v1.0 [22:07:58]action value=close_receipt [22:07:58]process_action close_receipt [22:07:58]cmd_close_receipt [22:07:58]MH_GetDate [22:07:58]Write to MH i2c: F0 00 00 92 0F 90 [22:07:58]Write i2c OK [22:07:58]MH_I2C_Read... [22:07:58]Read from MH i2c: F0 [22:07:58]MH_I2C_Read... [22:07:58]Read from MH i2c: F0 09 00 [22:07:58]MH_I2C_Read... [22:07:58]Read from MH i2c: F0 09 00 92 0F 00 BF 9D 95 66 C9 DC B2 64 AB [22:07:58]GetLastDocTimeStamp 1721081249 [22:07:58]current date 1721081279 [22:07:58]FM_GetShiftState [22:07:58]SAM_PROTO_GetShiftState [22:07:58]wFMCommunicate request_size=4 [22:07:58]MH_SAM_APDU [22:07:58]CAPDU: 80 13 01 00 [22:07:58]Write to MH i2c: E2 08 00 93 0F 80 13 01 00 00 00 00 00 1F [22:07:58]Write i2c OK [22:07:58]MH_I2C_Read... [22:07:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:07:58]Read from MH i2c: E2 [22:07:58]MH_I2C_Read... [22:07:58]Read from MH i2c: E2 0E 00 [22:07:58]MH_I2C_Read... [22:07:58]Read from MH i2c: E2 0E 00 93 0F 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 F8 [22:07:58]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [22:07:58]wFMCommunicate OK [22:07:58]SAM_PROTO_GetShiftState done [22:07:58]FM_GetShiftState done [22:07:58]opened in 1721003876 [22:07:58]opened+sec_in_day 1721090276 [22:07:58]quantity*price = 20003 [22:07:58]sum+1 = 20004 [22:07:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 342 15.07.2024 22:07 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165469 ФПД: 76509312354072 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T220759&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165469&fm=76509312354072&tin=02508201610067®Number=0000000000090829&sum=20000 [22:07:59]StoreToDocumentArchive [22:07:59]shift 448 fd 165469 [22:07:59]save to /storage/0448/doc_00165469 [22:07:59]save last doc name /storage/0448/doc_00165469 to /storage/kkm_last_doc_name [22:07:59]save OK [22:07:59]Clear old archive folders... [22:07:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:07:59]tlvbuf is 01BA5120 [22:07:59]SAM_PROTO_ClearQueue [22:07:59]wFMCommunicate request_size=4 [22:07:59]MH_SAM_APDU [22:07:59]CAPDU: 80 09 00 00 [22:07:59]Write to MH i2c: E2 08 00 A0 0F 80 09 00 00 00 00 00 00 21 [22:07:59]Write i2c OK [22:07:59]MH_I2C_Read... [22:07:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:07:59]Read from MH i2c: E2 [22:07:59]MH_I2C_Read... [22:07:59]Read from MH i2c: E2 03 00 [22:07:59]MH_I2C_Read... [22:07:59]Read from MH i2c: E2 03 00 A0 0F 00 90 00 23 [22:07:59]RAPDU: 90 00 [22:07:59]wFMCommunicate OK [22:07:59]SAM_PROTO_ClearQueue done [22:07:59]KKMCreateOFDPacket [22:07:59]OFDProtocolAddRootSTLVToBuf [22:07:59]FM_MakeSignedData [22:07:59]FM_MakeSignedData [22:07:59]SAM_PROTO_SignData [22:07:59]wFMCommunicate request_size=4 [22:07:59]MH_SAM_APDU [22:07:59]CAPDU: 80 0D 01 02 [22:07:59]Write to MH i2c: E2 08 00 A1 0F 80 0D 01 02 00 00 00 00 29 [22:07:59]Write i2c OK [22:07:59]MH_I2C_Read... [22:07:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:07:59]Read from MH i2c: E2 [22:07:59]MH_I2C_Read... [22:07:59]Read from MH i2c: E2 03 00 [22:07:59]MH_I2C_Read... [22:07:59]Read from MH i2c: E2 03 00 A1 0F 00 90 00 24 [22:07:59]RAPDU: 90 00 [22:07:59]wFMCommunicate OK [22:07:59]wFMCommunicate request_size=255 [22:07:59]MH_SAM_APDU [22:07:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 BF 9D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5D 86 02 00 35 04 06 00 45 [22:07:59]Write to MH i2c: E2 02 01 A2 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 BF 9D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5D 86 02 00 35 04 06 00 45 00 00 DC [22:07:59]Write i2c OK [22:07:59]MH_I2C_Read... [22:07:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:07:59]Read from MH i2c: E2 [22:07:59]MH_I2C_Read... [22:07:59]Read from MH i2c: E2 03 00 [22:07:59]MH_I2C_Read... [22:07:59]Read from MH i2c: E2 03 00 A2 0F 00 90 00 25 [22:07:59]RAPDU: 90 00 [22:07:59]wFMCommunicate OK [22:07:59]wFMCommunicate request_size=10 [22:07:59]MH_SAM_APDU [22:07:59]CAPDU: 80 0D 02 02 05 95 B6 62 87 18 [22:07:59]Write to MH i2c: E2 0D 00 A3 0F 80 0D 02 02 05 00 95 B6 62 87 18 00 00 82 [22:07:59]Write i2c OK [22:07:59]MH_I2C_Read... [22:07:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:07:59]Read from MH i2c: E2 [22:07:59]MH_I2C_Read... [22:07:59]Read from MH i2c: E2 03 00 [22:07:59]MH_I2C_Read... [22:07:59]Read from MH i2c: E2 03 00 A3 0F 00 90 00 26 [22:07:59]RAPDU: 90 00 [22:07:59]wFMCommunicate OK [22:07:59]wFMCommunicate request_size=4 [22:07:59]MH_SAM_APDU [22:07:59]CAPDU: 80 0D 03 02 [22:07:59]Write to MH i2c: E2 08 00 A4 0F 80 0D 03 02 00 00 00 00 2E [22:07:59]Write i2c OK [22:07:59]MH_I2C_Read... [22:07:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:07:59]Read from MH i2c: E2 [22:07:59]MH_I2C_Read... [22:07:59]Read from MH i2c: E2 0B 00 [22:07:59]MH_I2C_Read... [22:07:59]Read from MH i2c: E2 0B 00 A4 0F 00 CF C3 31 35 64 F7 F3 B1 90 00 26 [22:07:59]RAPDU: CF C3 31 35 64 F7 F3 B1 90 00 [22:07:59]wFMCommunicate OK [22:07:59]SAM_PROTO_SignData done [22:07:59]FM_MakeSignedData done [22:07:59]CreateOFDProtocolMessage [22:07:59]wFMCommunicate request_size=4 [22:07:59]MH_SAM_APDU [22:07:59]CAPDU: 80 11 00 00 [22:07:59]Write to MH i2c: E2 08 00 A5 0F 80 11 00 00 00 00 00 00 2E [22:07:59]Write i2c OK [22:07:59]MH_I2C_Read... [22:08:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:08:00]Read from MH i2c: E2 [22:08:00]MH_I2C_Read... [22:08:00]Read from MH i2c: E2 17 00 [22:08:00]MH_I2C_Read... [22:08:00]Read from MH i2c: E2 17 00 A5 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 84 [22:08:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:08:00]wFMCommunicate OK [22:08:00]CreateOFDProtocolMessage done [22:08:00]OFDSenderStorePacket 165469 [22:08:00]StoreOFDPacket docnum=165469 [22:08:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 63 8B 07 01 DC 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 BF 9D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5D 86 02 00 35 04 06 00 45 95 B6 62 87 18 CF C3 31 35 64 F7 F3 B1 [22:08:00]CheckFolder [22:08:00]dirname=/storage/ofd_packets [22:08:00]CheckFolder done [22:08:00]ProducePacketName [22:08:00]name=ofd_packets/00165469 [22:08:00]NVStorageSaveData ofd_packets/00165469 [22:08:00]File name is /storage/ofd_packets/00165469 [22:08:00]Write 301 bytes [22:08:00]NVStorageSaveData done [22:08:00]OFDSenderStorePacket done [22:08:00]KKMCreateOFDPacket done [22:08:00]NVStorageSaveData kkm_last_timestamp [22:08:00]File name is /storage/kkm_last_timestamp [22:08:00]Write 4 bytes [22:08:00]NVStorageSaveData done [22:08:00]ExternCall_PrintAddStr [22:08:00]wPrintStart [22:08:00]Write to MH i2c: 01 00 00 A6 0F B5 [22:08:00]Write i2c OK [22:08:00]MH_I2C_Read... [22:08:00]Read from MH i2c: 01 [22:08:00]MH_I2C_Read... [22:08:00]Read from MH i2c: 01 07 00 [22:08:00]MH_I2C_Read... [22:08:00]Read from MH i2c: 01 07 00 A6 0F 00 00 00 00 00 FF 0F CA [22:08:00]RasterBufferAndPrint [22:08:00]line Счет N : (1)459585 [22:08:00]line ИНН: 02508201610067 [22:08:00]line Контрольно-Кассовый Чек [22:08:00]line ПРОДАЖА [22:08:00]line ТРК (МРК, ГНК) : 12 [22:08:00]line Товар: 2710124130 [22:08:00]line Аи-92-К-5 [22:08:00]line 3.040 * 65.80 [22:08:00]line = 200.03 [22:08:00]line НДС 12% НСП 1% [22:08:00]line > о реализуемом товаре [22:08:00]line ОКРУГЛЕНИЕ: -0.03 [22:08:00]line ИТОГО: 200.00 [22:08:00]line Внесено: 200.00 [22:08:00]line СДАЧА: 0.00 [22:08:00]line НСП 1% : 1.77 [22:08:00]line НДС 12% : 21.24 [22:08:00]line Наличными: 200.00 [22:08:00]line Безнал.: 0.00 [22:08:00]line Место: АЗС № 72 "Партнер Нефть" [22:08:00]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:08:00]line СНО: Общий режим [22:08:00]line Чек 342 15.07.2024 22:07 [22:08:00]line Смена: 448 ФФД: 1.0 [22:08:00]line ЗНМ: 0300000160 [22:08:00]line РНМ: 0000000000090829 [22:08:00]line Версия ККМ: 001 [22:08:00]line ФМ: 0000000000874718 [22:08:00]line ФД: 165469 [22:08:00]line ФПД: 76509312354072 [22:08:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T220759&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165469&fm=76509312354072&tin=02508201610067®Number=0000000000090829&sum=20000 [22:08:00]written 0, free lines is 4095 [22:08:00]OFD Sender: Processing packet 165469 [packets to send 106, broken 105] [22:08:00]ProducePacketName [22:08:00]name=ofd_packets/00165469 [22:08:00]OFD Sender: To server: pG, [22:08:00]CommunicateWithHost lk.salyk.kg:30040 [22:08:00]ConnectInit lk.salyk.kg [22:08:00]Connected sock=10 [22: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 37 31 38 0F 01 00 00 63 8B 07 01 DC 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 BF 9D 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5D 86 02 00 35 04 06 00 45 95 B6 62 87 18 CF C3 31 35 64 F7 F3 B1 [22:08:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 08 01 47 00 68 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 5D 86 02 00 F4 03 04 00 48 44 95 66 B6 04 01 00 00 E1 88 71 6E 0B 48 92 2D [22:08:00]CommunicateWithHost err = 0 [22:08:00]CheckOFDResponse [22:08:00]1017 (14) - 77093643461234 [22:08:00]1041 (16) - 0000000000874718 [22:08:00]1040 (4) - 165469 [22:08:00]1012 (4) - 15.07.2024 15:46 [22:08:00]1206 (1) - 0 [22:08:00]OFD Sender: Remove packet 165469 [22:08:00]ProducePacketName [22:08:00]name=ofd_packets/00165469 [22:08:00]NVStorageDeleteData [22:08:00]Write to MH i2c: 01 00 00 D0 0F DF [22:08:00]Write i2c OK [22:08:00]MH_I2C_Read... [22:08:00]Read from MH i2c: 01 [22:08:00]MH_I2C_Read... [22:08:00]Read from MH i2c: 01 07 00 [22:08:00]MH_I2C_Read... [22:08:00]Read from MH i2c: 01 07 00 D0 0F 00 00 00 00 00 F2 0C E4 [22:08:00]RasterBufferAndPrint [22:08:00]line [22:08:00]line [22:08:00]line [22:08:00]line [22:08:00]line [22:08:00]written 0, free lines is 3320 [22:08:00]MH_Cut [22:08:00]Write to MH i2c: D1 01 00 D7 0F 01 B8 [22:08:00]Write i2c OK [22:08:00]MH_I2C_Read... [22:08:00]Read from MH i2c: D1 [22:08:00]MH_I2C_Read... [22:08:00]Read from MH i2c: D1 01 00 [22:08:00]MH_I2C_Read... [22:08:00]Read from MH i2c: D1 01 00 D7 0F 00 B7 [22:08:00]Write to MH i2c: 01 00 00 D8 0F E7 [22:08:00]Write i2c OK [22:08:00]MH_I2C_Read... [22:08:01]OFD Sender: No OFD packet to send [22:08:01]*** Cut start [22:08:01]*** Partial cut [22:08:01]*** CUTSNS_PIN = 1 [22:08:01]*** CUTSNS_PIN = 0 [22:08:01]*** Brake cut motor [22:08:02]Read from MH i2c: 01 [22:08:02]MH_I2C_Read... [22:08:02]*** Stop cut motor [22:08:02]*** Cut end [22:08:02]Read from MH i2c: 01 07 00 [22:08:02]MH_I2C_Read... [22:08:02]Read from MH i2c: 01 07 00 D8 0F 00 00 00 00 00 FF 0F FC [22:08:02]process_action close_receipt done [22:08:02]requested_data is exist [22:08:02]produce_requested_data [22:08:02]requested_item fm.sn is exist - process it [22:08:02]wFMCommunicate request_size=4 [22:08:02]MH_SAM_APDU [22:08:02]CAPDU: 80 11 00 00 [22:08:02]Write to MH i2c: E2 08 00 D9 0F 80 11 00 00 00 00 00 00 62 [22:08:02]Write i2c OK [22:08:02]MH_I2C_Read... [22:08:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:08:02]Read from MH i2c: E2 [22:08:02]MH_I2C_Read... [22:08:02]Read from MH i2c: E2 17 00 [22:08:02]MH_I2C_Read... [22:08:02]Read from MH i2c: E2 17 00 D9 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B8 [22:08:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:08:02]wFMCommunicate OK [22:08:02]requested_item fd.num is exist - process it [22:08:02]SAM_PROTO_GetFieldsCounters [22:08:02]wFMCommunicate request_size=4 [22:08:02]MH_SAM_APDU [22:08:02]CAPDU: 80 13 00 00 [22:08:02]Write to MH i2c: E2 08 00 DA 0F 80 13 00 00 00 00 00 00 65 [22:08:02]Write i2c OK [22:08:02]MH_I2C_Read... [22:08:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:08:02]Read from MH i2c: E2 [22:08:02]MH_I2C_Read... [22:08:02]Read from MH i2c: E2 62 00 [22:08:02]MH_I2C_Read... [22:08:02]Read from MH i2c: E2 62 00 DA 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5D 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 56 01 00 00 5E 04 04 00 56 01 00 00 57 04 04 00 57 01 00 00 19 04 04 00 00 00 00 00 90 00 37 [22:08:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5D 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 56 01 00 00 5E 04 04 00 56 01 00 00 57 04 04 00 57 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:08:02]wFMCommunicate OK [22:08:02]SAM_PROTO_GetFieldsCounters done [22:08:02]requested_item shift.num is exist - process it [22:08:02]requested_item shift.opened is exist - process it [22:08:02]req_shift_opened [22:08:02]FM_GetShiftState [22:08:02]SAM_PROTO_GetShiftState [22:08:02]wFMCommunicate request_size=4 [22:08:02]MH_SAM_APDU [22:08:02]CAPDU: 80 13 01 00 [22:08:02]Write to MH i2c: E2 08 00 DB 0F 80 13 01 00 00 00 00 00 67 [22:08:02]Write i2c OK [22:08:02]MH_I2C_Read... [22:08:02]Read from MH i2c: E2 [22:08:02]MH_I2C_Read... [22:08:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:08:02]Read from MH i2c: E2 0E 00 [22:08:02]MH_I2C_Read... [22:08:02]Read from MH i2c: E2 0E 00 DB 0F 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 40 [22:08:02]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [22:08:02]wFMCommunicate OK [22:08:02]SAM_PROTO_GetShiftState done [22:08:02]FM_GetShiftState done [22:08:02]req_shift_opened done [22:08:02]requested_item shift.open_date is exist - process it [22:08:02]req_shift_open_date [22:08:02]req_shift_open_date done [22:08:02]produce_requested_data done [22:08:02]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165469,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [22:08:02]process_action_free close_receipt [22:08:02]json_value_free [22:08:02]json_value_free done [22:08:02]process_json_proto returns [22:08:02]Send response to host [22:08:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165469,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [22:08:02]free response buf [22:08:02]execute_script done [22:08:02]execute_script returns [22:08:02]free content buf [22:08:02]Sock 9.Close socket [22:08:02]Sock 9.Thread stoped [22:08:06]OFD Sender: No OFD packet to send [22:08:11]OFD Sender: No OFD packet to send [22:08:16]OFD Sender: No OFD packet to send [22:08:21]OFD Sender: No OFD packet to send [22:08:26]OFD Sender: No OFD packet to send [22:08:31]OFD Sender: No OFD packet to send [22:08:36]OFD Sender: No OFD packet to send [22:08:41]OFD Sender: No OFD packet to send [22:08:46]OFD Sender: No OFD packet to send [22:08:51]OFD Sender: No OFD packet to send [22:08:56]OFD Sender: No OFD packet to send [22:09:01]OFD Sender: No OFD packet to send [22:09:06]OFD Sender: No OFD packet to send [22:09:11]OFD Sender: No OFD packet to send [22:09:16]OFD Sender: No OFD packet to send [22:09:21]OFD Sender: No OFD packet to send [22:09:26]OFD Sender: No OFD packet to send [22:09:31]OFD Sender: No OFD packet to send [22:09:36]OFD Sender: No OFD packet to send [22:09:41]OFD Sender: No OFD packet to send [22:09:46]OFD Sender: No OFD packet to send [22:09:51]OFD Sender: No OFD packet to send [22:09:56]OFD Sender: No OFD packet to send [22:10:01]OFD Sender: No OFD packet to send [22:10:06]OFD Sender: No OFD packet to send [22:10:11]OFD Sender: No OFD packet to send [22:10:16]OFD Sender: No OFD packet to send [22:10:21]OFD Sender: No OFD packet to send [22:10:26]OFD Sender: No OFD packet to send [22:10:31]OFD Sender: No OFD packet to send [22:10:36]OFD Sender: No OFD packet to send [22:10:41]OFD Sender: No OFD packet to send [22:10:46]OFD Sender: No OFD packet to send [22:10:51]OFD Sender: No OFD packet to send [22:10:56]OFD Sender: No OFD packet to send [22:11:01]OFD Sender: No OFD packet to send [22:11:05]accept exits with 7 [22:11:05]New connection [22:11:05]New thread 3067190628 created [22:11:05]Thread 3067333988 joined [22:11:05]Waiting for new connection... [22:11:05] Sock 7.Parse request [22:11:05]Sock 7.Check first char [22:11:05]Sock 7.First char is OK [22:11:05]request: POST /json_proto HTTP/1.0 [22:11:05]Method: POST [22:11:05]URL: /json_proto [22:11:05]Method is POST - this is cgi request [22:11:05]url: /json_proto [22:11:05]query_string will be loaded in cgi processing [22:11:05]execute_cgi json_proto POST (null) [22:11:05]execute_cgi path=json_proto method=POST [22:11:05]POST find Content-Length [22:11:05]Host: 172.17.56.4:8080 [22:11:05]Content-Length: 677 [22:11:05]Content-Type: application/json [22:11:05] [22:11:05]POST finish read [22:11:05]Found Content-Length = 677 [22:11:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459586", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:11:05]execute_script... [22:11: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)459586", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:11:05]POST & json_proto [22:11:05]process_json_proto [22:11:05]json parsed OK: [22:11:05]protocol is kg_v1.0 [22:11:05]action value=close_receipt [22:11:05]process_action close_receipt [22:11:05]cmd_close_receipt [22:11:05]MH_GetDate [22:11:05]Write to MH i2c: F0 00 00 DC 0F DA [22:11:05]Write i2c OK [22:11:05]MH_I2C_Read... [22:11:05]Read from MH i2c: F0 [22:11:05]MH_I2C_Read... [22:11:05]Read from MH i2c: F0 09 00 [22:11:05]MH_I2C_Read... [22:11:05]Read from MH i2c: F0 09 00 DC 0F 00 7A 9E 95 66 C9 DC B2 64 B1 [22:11:05]GetLastDocTimeStamp 1721081279 [22:11:05]current date 1721081466 [22:11:05]FM_GetShiftState [22:11:05]SAM_PROTO_GetShiftState [22:11:05]wFMCommunicate request_size=4 [22:11:05]MH_SAM_APDU [22:11:05]CAPDU: 80 13 01 00 [22:11:05]Write to MH i2c: E2 08 00 DD 0F 80 13 01 00 00 00 00 00 69 [22:11:05]Write i2c OK [22:11:05]MH_I2C_Read... [22:11:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:11:05]Read from MH i2c: E2 [22:11:05]MH_I2C_Read... [22:11:05]Read from MH i2c: E2 0E 00 [22:11:05]MH_I2C_Read... [22:11:05]Read from MH i2c: E2 0E 00 DD 0F 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 42 [22:11:05]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [22:11:05]wFMCommunicate OK [22:11:05]SAM_PROTO_GetShiftState done [22:11:05]FM_GetShiftState done [22:11:05]opened in 1721003876 [22:11:05]opened+sec_in_day 1721090276 [22:11:05]quantity*price = 50008 [22:11:05]sum+1 = 50009 [22:11:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 343 15.07.2024 22:11 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165470 ФПД: 255826731458591 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T221106&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165470&fm=255826731458591&tin=02508201610067®Number=0000000000090829&sum=50000 [22:11:06]StoreToDocumentArchive [22:11:06]shift 448 fd 165470 [22:11:06]save to /storage/0448/doc_00165470 [22:11:06]save last doc name /storage/0448/doc_00165470 to /storage/kkm_last_doc_name [22:11:06]save OK [22:11:06]Clear old archive folders... [22:11:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:11:06]tlvbuf is 01B86C40 [22:11:06]SAM_PROTO_ClearQueue [22:11:06]wFMCommunicate request_size=4 [22:11:06]MH_SAM_APDU [22:11:06]CAPDU: 80 09 00 00 [22:11:06]Write to MH i2c: E2 08 00 EA 0F 80 09 00 00 00 00 00 00 6B [22:11:06]Write i2c OK [22:11:06]MH_I2C_Read... [22:11:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:11:06]Read from MH i2c: E2 [22:11:06]MH_I2C_Read... [22:11:06]Read from MH i2c: E2 03 00 [22:11:06]MH_I2C_Read... [22:11:06]Read from MH i2c: E2 03 00 EA 0F 00 90 00 6D [22:11:06]RAPDU: 90 00 [22:11:06]wFMCommunicate OK [22:11:06]SAM_PROTO_ClearQueue done [22:11:06]KKMCreateOFDPacket [22:11:06]OFDProtocolAddRootSTLVToBuf [22:11:06]FM_MakeSignedData [22:11:06]FM_MakeSignedData [22:11:06]SAM_PROTO_SignData [22:11:06]wFMCommunicate request_size=4 [22:11:06]MH_SAM_APDU [22:11:06]CAPDU: 80 0D 01 02 [22:11:06]Write to MH i2c: E2 08 00 EB 0F 80 0D 01 02 00 00 00 00 73 [22:11:06]Write i2c OK [22:11:06]MH_I2C_Read... [22:11:06]OFD Sender: No OFD packet to send [22:11:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:11:06]Read from MH i2c: E2 [22:11:06]MH_I2C_Read... [22:11:06]Read from MH i2c: E2 03 00 [22:11:06]MH_I2C_Read... [22:11:06]Read from MH i2c: E2 03 00 EB 0F 00 90 00 6E [22:11:06]RAPDU: 90 00 [22:11:06]wFMCommunicate OK [22:11:06]wFMCommunicate request_size=255 [22:11:06]MH_SAM_APDU [22:11: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 7A 9E 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5E 86 02 00 35 04 06 00 E8 [22:11:06]Write to MH i2c: E2 02 01 EC 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 7A 9E 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5E 86 02 00 35 04 06 00 E8 00 00 E6 [22:11:06]Write i2c OK [22:11:06]MH_I2C_Read... [22:11:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:11:06]Read from MH i2c: E2 [22:11:06]MH_I2C_Read... [22:11:06]Read from MH i2c: E2 03 00 [22:11:06]MH_I2C_Read... [22:11:06]Read from MH i2c: E2 03 00 EC 0F 00 90 00 6F [22:11:06]RAPDU: 90 00 [22:11:06]wFMCommunicate OK [22:11:06]wFMCommunicate request_size=10 [22:11:06]MH_SAM_APDU [22:11:06]CAPDU: 80 0D 02 02 05 AC 4D 73 E0 1F [22:11:06]Write to MH i2c: E2 0D 00 ED 0F 80 0D 02 02 05 00 AC 4D 73 E0 1F 00 00 EB [22:11:06]Write i2c OK [22:11:06]MH_I2C_Read... [22:11:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:11:06]Read from MH i2c: E2 [22:11:06]MH_I2C_Read... [22:11:06]Read from MH i2c: E2 03 00 [22:11:06]MH_I2C_Read... [22:11:06]Read from MH i2c: E2 03 00 ED 0F 00 90 00 70 [22:11:06]RAPDU: 90 00 [22:11:06]wFMCommunicate OK [22:11:06]wFMCommunicate request_size=4 [22:11:06]MH_SAM_APDU [22:11:06]CAPDU: 80 0D 03 02 [22:11:06]Write to MH i2c: E2 08 00 EE 0F 80 0D 03 02 00 00 00 00 78 [22:11:06]Write i2c OK [22:11:06]MH_I2C_Read... [22:11:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:11:06]Read from MH i2c: E2 [22:11:06]MH_I2C_Read... [22:11:06]Read from MH i2c: E2 0B 00 [22:11:06]MH_I2C_Read... [22:11:06]Read from MH i2c: E2 0B 00 EE 0F 00 35 3B 84 3C 80 45 01 36 90 00 A5 [22:11:06]RAPDU: 35 3B 84 3C 80 45 01 36 90 00 [22:11:06]wFMCommunicate OK [22:11:06]SAM_PROTO_SignData done [22:11:06]FM_MakeSignedData done [22:11:06]CreateOFDProtocolMessage [22:11:06]wFMCommunicate request_size=4 [22:11:06]MH_SAM_APDU [22:11:06]CAPDU: 80 11 00 00 [22:11:06]Write to MH i2c: E2 08 00 EF 0F 80 11 00 00 00 00 00 00 78 [22:11:06]Write i2c OK [22:11:06]MH_I2C_Read... [22:11:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:11:06]Read from MH i2c: E2 [22:11:06]MH_I2C_Read... [22:11:06]Read from MH i2c: E2 17 00 [22:11:06]MH_I2C_Read... [22:11:06]Read from MH i2c: E2 17 00 EF 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CE [22:11:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:11:06]wFMCommunicate OK [22:11:06]CreateOFDProtocolMessage done [22:11:06]OFDSenderStorePacket 165470 [22:11:06]StoreOFDPacket docnum=165470 [22:11:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 04 C4 07 01 9E 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 7A 9E 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5E 86 02 00 35 04 06 00 E8 AC 4D 73 E0 1F 35 3B 84 3C 80 45 01 36 [22:11:06]CheckFolder [22:11:06]dirname=/storage/ofd_packets [22:11:06]CheckFolder done [22:11:06]ProducePacketName [22:11:06]name=ofd_packets/00165470 [22:11:06]NVStorageSaveData ofd_packets/00165470 [22:11:06]File name is /storage/ofd_packets/00165470 [22:11:06]Write 301 bytes [22:11:06]NVStorageSaveData done [22:11:06]OFDSenderStorePacket done [22:11:06]KKMCreateOFDPacket done [22:11:06]NVStorageSaveData kkm_last_timestamp [22:11:06]File name is /storage/kkm_last_timestamp [22:11:06]Write 4 bytes [22:11:06]NVStorageSaveData done [22:11:06]ExternCall_PrintAddStr [22:11:06]wPrintStart [22:11:06]Write to MH i2c: 01 00 00 F0 0F FF [22:11:06]Write i2c OK [22:11:06]MH_I2C_Read... [22:11:06]Read from MH i2c: 01 [22:11:06]MH_I2C_Read... [22:11:06]Read from MH i2c: 01 07 00 [22:11:06]MH_I2C_Read... [22:11:06]Read from MH i2c: 01 07 00 F0 0F 00 00 00 00 00 FF 0F 14 [22:11:06]RasterBufferAndPrint [22:11:06]line Счет N : (1)459586 [22:11:06]line ИНН: 02508201610067 [22:11:06]line Контрольно-Кассовый Чек [22:11:06]line ПРОДАЖА [22:11:06]line ТРК (МРК, ГНК) : 12 [22:11:06]line Товар: 2710124130 [22:11:06]line Аи-92-К-5 [22:11:06]line 7.600 * 65.80 [22:11:06]line = 500.08 [22:11:06]line НДС 12% НСП 1% [22:11:06]line > о реализуемом товаре [22:11:06]line ОКРУГЛЕНИЕ: -0.08 [22:11:06]line ИТОГО: 500.00 [22:11:06]line Внесено: 500.00 [22:11:06]line СДАЧА: 0.00 [22:11:06]line НСП 1% : 4.42 [22:11:06]line НДС 12% : 53.11 [22:11:06]line Наличными: 500.00 [22:11:06]line Безнал.: 0.00 [22:11:06]line Место: АЗС № 72 "Партнер Нефть" [22:11:06]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:11:06]line СНО: Общий режим [22:11:06]line Чек 343 15.07.2024 22:11 [22:11:06]line Смена: 448 ФФД: 1.0 [22:11:06]line ЗНМ: 0300000160 [22:11:06]line РНМ: 0000000000090829 [22:11:06]line Версия ККМ: 001 [22:11:06]line ФМ: 0000000000874718 [22:11:06]line ФД: 165470 [22:11:06]line ФПД: 255826731458591 [22:11:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T221106&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165470&fm=255826731458591&tin=02508201610067®Number=0000000000090829&sum=50000 [22:11:07]OFD Sender: Processing packet 165470 [packets to send 106, broken 105] [22:11:07]ProducePacketName [22:11:07]name=ofd_packets/00165470 [22:11:07]OFD Sender: To server: pG, [22:11:07]CommunicateWithHost lk.salyk.kg:30040 [22:11:07]ConnectInit lk.salyk.kg [22:11:07]written 0, free lines is 4095 [22:11:07]Connected sock=10 [22:11: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 37 31 38 0F 01 00 00 04 C4 07 01 9E 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 7A 9E 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5E 86 02 00 35 04 06 00 E8 AC 4D 73 E0 1F 35 3B 84 3C 80 45 01 36 [22:11:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 23 08 47 00 5F 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5E 86 02 00 F4 03 04 00 03 45 95 66 B6 04 01 00 00 22 10 B3 2D 22 6B F1 8D [22:11:07]CommunicateWithHost err = 0 [22:11:07]CheckOFDResponse [22:11:07]1017 (14) - 77093643461234 [22:11:07]1041 (16) - 0000000000874718 [22:11:07]1040 (4) - 165470 [22:11:07]1012 (4) - 15.07.2024 15:49 [22:11:07]1206 (1) - 0 [22:11:07]OFD Sender: Remove packet 165470 [22:11:07]ProducePacketName [22:11:07]name=ofd_packets/00165470 [22:11:07]NVStorageDeleteData [22:11:07]Write to MH i2c: 01 00 00 1A 10 2A [22:11:07]Write i2c OK [22:11:07]MH_I2C_Read... [22:11:07]Read from MH i2c: 01 [22:11:07]MH_I2C_Read... [22:11:07]Read from MH i2c: 01 07 00 [22:11:07]MH_I2C_Read... [22:11:07]Read from MH i2c: 01 07 00 1A 10 00 00 00 00 00 F7 0C 34 [22:11:07]RasterBufferAndPrint [22:11:07]line [22:11:07]line [22:11:07]line [22:11:07]line [22:11:07]line [22:11:07]written 0, free lines is 3326 [22:11:07]MH_Cut [22:11:07]Write to MH i2c: D1 01 00 21 10 01 03 [22:11:07]Write i2c OK [22:11:07]MH_I2C_Read... [22:11:07]Read from MH i2c: D1 [22:11:07]MH_I2C_Read... [22:11:07]Read from MH i2c: D1 01 00 [22:11:07]MH_I2C_Read... [22:11:07]Read from MH i2c: D1 01 00 21 10 00 02 [22:11:07]Write to MH i2c: 01 00 00 22 10 32 [22:11:07]Write i2c OK [22:11:07]MH_I2C_Read... [22:11:08]OFD Sender: No OFD packet to send [22:11:08]*** Cut start [22:11:08]*** Partial cut [22:11:08]*** CUTSNS_PIN = 1 [22:11:08]*** CUTSNS_PIN = 0 [22:11:08]*** Brake cut motor [22:11:08]Read from MH i2c: 01 [22:11:08]MH_I2C_Read... [22:11:08]*** Stop cut motor [22:11:08]*** Cut end [22:11:08]Read from MH i2c: 01 07 00 [22:11:08]MH_I2C_Read... [22:11:08]Read from MH i2c: 01 07 00 22 10 00 00 00 00 00 FF 0F 47 [22:11:08]process_action close_receipt done [22:11:08]requested_data is exist [22:11:08]produce_requested_data [22:11:08]requested_item fm.sn is exist - process it [22:11:08]wFMCommunicate request_size=4 [22:11:08]MH_SAM_APDU [22:11:08]CAPDU: 80 11 00 00 [22:11:08]Write to MH i2c: E2 08 00 23 10 80 11 00 00 00 00 00 00 AD [22:11:08]Write i2c OK [22:11:08]MH_I2C_Read... [22:11:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:11:08]Read from MH i2c: E2 [22:11:08]MH_I2C_Read... [22:11:08]Read from MH i2c: E2 17 00 [22:11:08]MH_I2C_Read... [22:11:09]Read from MH i2c: E2 17 00 23 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 03 [22:11:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:11:09]wFMCommunicate OK [22:11:09]requested_item fd.num is exist - process it [22:11:09]SAM_PROTO_GetFieldsCounters [22:11:09]wFMCommunicate request_size=4 [22:11:09]MH_SAM_APDU [22:11:09]CAPDU: 80 13 00 00 [22:11:09]Write to MH i2c: E2 08 00 24 10 80 13 00 00 00 00 00 00 B0 [22:11:09]Write i2c OK [22:11:09]MH_I2C_Read... [22:11:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:11:09]Read from MH i2c: E2 [22:11:09]MH_I2C_Read... [22:11:09]Read from MH i2c: E2 62 00 [22:11:09]MH_I2C_Read... [22:11:09]Read from MH i2c: E2 62 00 24 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5E 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 57 01 00 00 5E 04 04 00 57 01 00 00 57 04 04 00 58 01 00 00 19 04 04 00 00 00 00 00 90 00 86 [22:11: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5E 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 57 01 00 00 5E 04 04 00 57 01 00 00 57 04 04 00 58 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:11:09]wFMCommunicate OK [22:11:09]SAM_PROTO_GetFieldsCounters done [22:11:09]requested_item shift.num is exist - process it [22:11:09]requested_item shift.opened is exist - process it [22:11:09]req_shift_opened [22:11:09]FM_GetShiftState [22:11:09]SAM_PROTO_GetShiftState [22:11:09]wFMCommunicate request_size=4 [22:11:09]MH_SAM_APDU [22:11:09]CAPDU: 80 13 01 00 [22:11:09]Write to MH i2c: E2 08 00 25 10 80 13 01 00 00 00 00 00 B2 [22:11:09]Write i2c OK [22:11:09]MH_I2C_Read... [22:11:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:11:09]Read from MH i2c: E2 [22:11:09]MH_I2C_Read... [22:11:09]Read from MH i2c: E2 0E 00 [22:11:09]MH_I2C_Read... [22:11:09]Read from MH i2c: E2 0E 00 25 10 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 8B [22:11:09]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [22:11:09]wFMCommunicate OK [22:11:09]SAM_PROTO_GetShiftState done [22:11:09]FM_GetShiftState done [22:11:09]req_shift_opened done [22:11:09]requested_item shift.open_date is exist - process it [22:11:09]req_shift_open_date [22:11:09]req_shift_open_date done [22:11:09]produce_requested_data done [22:11:09]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165470,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [22:11:09]process_action_free close_receipt [22:11:09]json_value_free [22:11:09]json_value_free done [22:11:09]process_json_proto returns [22:11:09]Send response to host [22:11:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165470,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [22:11:09]free response buf [22:11:09]execute_script done [22:11:09]execute_script returns [22:11:09]free content buf [22:11:09]Sock 7.Close socket [22:11:09]Sock 7.Thread stoped [22:11:13]OFD Sender: No OFD packet to send [22:11:18]OFD Sender: No OFD packet to send [22:11:23]OFD Sender: No OFD packet to send [22:11:28]OFD Sender: No OFD packet to send [22:11:33]OFD Sender: No OFD packet to send [22:11:38]OFD Sender: No OFD packet to send [22:11:43]OFD Sender: No OFD packet to send [22:11:48]OFD Sender: No OFD packet to send [22:11:53]OFD Sender: No OFD packet to send [22:11:58]OFD Sender: No OFD packet to send [22:12:03]OFD Sender: No OFD packet to send [22:12:08]OFD Sender: No OFD packet to send [22:12:13]OFD Sender: No OFD packet to send [22:12:18]OFD Sender: No OFD packet to send [22:12:23]OFD Sender: No OFD packet to send [22:12:28]OFD Sender: No OFD packet to send [22:12:33]OFD Sender: No OFD packet to send [22:12:38]OFD Sender: No OFD packet to send [22:12:43]OFD Sender: No OFD packet to send [22:12:48]OFD Sender: No OFD packet to send [22:12:53]OFD Sender: No OFD packet to send [22:12:58]OFD Sender: No OFD packet to send [22:13:03]OFD Sender: No OFD packet to send [22:13:08]OFD Sender: No OFD packet to send [22:13:13]OFD Sender: No OFD packet to send [22:13:18]OFD Sender: No OFD packet to send [22:13:23]OFD Sender: No OFD packet to send [22:13:28]OFD Sender: No OFD packet to send [22:13:33]OFD Sender: No OFD packet to send [22:13:38]OFD Sender: No OFD packet to send [22:13:43]OFD Sender: No OFD packet to send [22:13:48]OFD Sender: No OFD packet to send [22:13:53]OFD Sender: No OFD packet to send [22:13:58]OFD Sender: No OFD packet to send [22:14:03]OFD Sender: No OFD packet to send [22:14:08]OFD Sender: No OFD packet to send [22:14:13]OFD Sender: No OFD packet to send [22:14:18]OFD Sender: No OFD packet to send [22:14:23]OFD Sender: No OFD packet to send [22:14:28]OFD Sender: No OFD packet to send [22:14:33]OFD Sender: No OFD packet to send [22:14:38]OFD Sender: No OFD packet to send [22:14:43]OFD Sender: No OFD packet to send [22:14:48]OFD Sender: No OFD packet to send [22:14:53]OFD Sender: No OFD packet to send [22:14:58]OFD Sender: No OFD packet to send [22:15:03]OFD Sender: No OFD packet to send [22:15:08]OFD Sender: No OFD packet to send [22:15:13]OFD Sender: No OFD packet to send [22:15:18]OFD Sender: No OFD packet to send [22:15:23]OFD Sender: No OFD packet to send [22:15:26]accept exits with 9 [22:15:26]New connection [22:15:26]New thread 3067333988 created [22:15:26]Thread 3067190628 joined [22:15:26]Waiting for new connection... [22:15:26] Sock 9.Parse request [22:15:26]Sock 9.Check first char [22:15:26]Sock 9.First char is OK [22:15:26]request: POST /json_proto HTTP/1.0 [22:15:26]Method: POST [22:15:26]URL: /json_proto [22:15:26]Method is POST - this is cgi request [22:15:26]url: /json_proto [22:15:26]query_string will be loaded in cgi processing [22:15:26]execute_cgi json_proto POST (null) [22:15:26]execute_cgi path=json_proto method=POST [22:15:26]POST find Content-Length [22:15:26]Host: 172.17.56.4:8080 [22:15:26]Content-Length: 793 [22:15:26]Content-Type: application/json [22:15:26] [22:15:26]POST finish read [22:15:26]Found Content-Length = 793 [22:15:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459587", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 15.340, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:15:26]execute_script... [22:15:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459587", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 15.340, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:15:26]POST & json_proto [22:15:26]process_json_proto [22:15:26]json parsed OK: [22:15:26]protocol is kg_v1.0 [22:15:26]action value=close_receipt [22:15:26]process_action close_receipt [22:15:26]cmd_close_receipt [22:15:26]MH_GetDate [22:15:26]Write to MH i2c: F0 00 00 26 10 25 [22:15:26]Write i2c OK [22:15:26]MH_I2C_Read... [22:15:26]Read from MH i2c: F0 [22:15:26]MH_I2C_Read... [22:15:26]Read from MH i2c: F0 09 00 [22:15:26]MH_I2C_Read... [22:15:26]Read from MH i2c: F0 09 00 26 10 00 7F 9F 95 66 C9 DC B2 64 02 [22:15:26]GetLastDocTimeStamp 1721081466 [22:15:26]current date 1721081727 [22:15:26]FM_GetShiftState [22:15:26]SAM_PROTO_GetShiftState [22:15:26]wFMCommunicate request_size=4 [22:15:26]MH_SAM_APDU [22:15:26]CAPDU: 80 13 01 00 [22:15:26]Write to MH i2c: E2 08 00 27 10 80 13 01 00 00 00 00 00 B4 [22:15:26]Write i2c OK [22:15:26]MH_I2C_Read... [22:15:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:15:26]Read from MH i2c: E2 [22:15:26]MH_I2C_Read... [22:15:26]Read from MH i2c: E2 0E 00 [22:15:26]MH_I2C_Read... [22:15:26]Read from MH i2c: E2 0E 00 27 10 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 8D [22:15:26]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [22:15:26]wFMCommunicate OK [22:15:26]SAM_PROTO_GetShiftState done [22:15:26]FM_GetShiftState done [22:15:26]opened in 1721003876 [22:15:26]opened+sec_in_day 1721090276 [22:15:26]quantity*price = 100047 [22:15:26]sum+1 = 100048 [22:15:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.47 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 0.00 Безнал.: 1000.47 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 344 15.07.2024 22:15 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 165471 ФПД: 67842611089728 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T221527&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165471&fm=67842611089728&tin=02508201610067®Number=0000000000090829&sum=100047 [22:15:27]StoreToDocumentArchive [22:15:27]shift 448 fd 165471 [22:15:27]save to /storage/0448/doc_00165471 [22:15:27]save last doc name /storage/0448/doc_00165471 to /storage/kkm_last_doc_name [22:15:27]save OK [22:15:27]Clear old archive folders... [22:15:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:15:27]tlvbuf is 01B4D300 [22:15:27]SAM_PROTO_ClearQueue [22:15:27]wFMCommunicate request_size=4 [22:15:27]MH_SAM_APDU [22:15:27]CAPDU: 80 09 00 00 [22:15:27]Write to MH i2c: E2 08 00 34 10 80 09 00 00 00 00 00 00 B6 [22:15:27]Write i2c OK [22:15:27]MH_I2C_Read... [22:15:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:15:27]Read from MH i2c: E2 [22:15:27]MH_I2C_Read... [22:15:27]Read from MH i2c: E2 03 00 [22:15:27]MH_I2C_Read... [22:15:27]Read from MH i2c: E2 03 00 34 10 00 90 00 B8 [22:15:27]RAPDU: 90 00 [22:15:27]wFMCommunicate OK [22:15:27]SAM_PROTO_ClearQueue done [22:15:27]KKMCreateOFDPacket [22:15:27]OFDProtocolAddRootSTLVToBuf [22:15:27]FM_MakeSignedData [22:15:27]FM_MakeSignedData [22:15:27]SAM_PROTO_SignData [22:15:27]wFMCommunicate request_size=4 [22:15:27]MH_SAM_APDU [22:15:27]CAPDU: 80 0D 01 02 [22:15:27]Write to MH i2c: E2 08 00 35 10 80 0D 01 02 00 00 00 00 BE [22:15:27]Write i2c OK [22:15:27]MH_I2C_Read... [22:15:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:15:27]Read from MH i2c: E2 [22:15:27]MH_I2C_Read... [22:15:27]Read from MH i2c: E2 03 00 [22:15:27]MH_I2C_Read... [22:15:27]Read from MH i2c: E2 03 00 35 10 00 90 00 B9 [22:15:27]RAPDU: 90 00 [22:15:27]wFMCommunicate OK [22:15:27]wFMCommunicate request_size=255 [22:15:27]MH_SAM_APDU [22:15: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 EC 3B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 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 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 01 00 00 F4 03 04 00 7F 9F 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5F 86 02 00 35 04 06 00 3D [22:15:27]Write to MH i2c: E2 02 01 36 10 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 EC 3B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 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 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 01 00 00 F4 03 04 00 7F 9F 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5F 86 02 00 35 04 06 00 3D 00 00 02 [22:15:27]Write i2c OK [22:15:27]MH_I2C_Read... [22:15:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:15:27]Read from MH i2c: E2 [22:15:27]MH_I2C_Read... [22:15:27]Read from MH i2c: E2 03 00 [22:15:27]MH_I2C_Read... [22:15:27]Read from MH i2c: E2 03 00 36 10 00 90 00 BA [22:15:27]RAPDU: 90 00 [22:15:27]wFMCommunicate OK [22:15:27]wFMCommunicate request_size=10 [22:15:27]MH_SAM_APDU [22:15:27]CAPDU: 80 0D 02 02 05 B3 D6 BC 11 40 [22:15:27]Write to MH i2c: E2 0D 00 37 10 80 0D 02 02 05 00 B3 D6 BC 11 40 00 00 61 [22:15:27]Write i2c OK [22:15:27]MH_I2C_Read... [22:15:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:15:27]Read from MH i2c: E2 [22:15:27]MH_I2C_Read... [22:15:27]Read from MH i2c: E2 03 00 [22:15:27]MH_I2C_Read... [22:15:27]Read from MH i2c: E2 03 00 37 10 00 90 00 BB [22:15:27]RAPDU: 90 00 [22:15:27]wFMCommunicate OK [22:15:27]wFMCommunicate request_size=4 [22:15:27]MH_SAM_APDU [22:15:27]CAPDU: 80 0D 03 02 [22:15:27]Write to MH i2c: E2 08 00 38 10 80 0D 03 02 00 00 00 00 C3 [22:15:27]Write i2c OK [22:15:27]MH_I2C_Read... [22:15:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:15:27]Read from MH i2c: E2 [22:15:27]MH_I2C_Read... [22:15:27]Read from MH i2c: E2 0B 00 [22:15:27]MH_I2C_Read... [22:15:27]Read from MH i2c: E2 0B 00 38 10 00 6C 23 B8 4F 4C F5 5E 3D 90 00 36 [22:15:27]RAPDU: 6C 23 B8 4F 4C F5 5E 3D 90 00 [22:15:27]wFMCommunicate OK [22:15:27]SAM_PROTO_SignData done [22:15:27]FM_MakeSignedData done [22:15:27]CreateOFDProtocolMessage [22:15:27]wFMCommunicate request_size=4 [22:15:27]MH_SAM_APDU [22:15:27]CAPDU: 80 11 00 00 [22:15:27]Write to MH i2c: E2 08 00 39 10 80 11 00 00 00 00 00 00 C3 [22:15:27]Write i2c OK [22:15:27]MH_I2C_Read... [22:15:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:15:27]Read from MH i2c: E2 [22:15:27]MH_I2C_Read... [22:15:27]Read from MH i2c: E2 17 00 [22:15:27]MH_I2C_Read... [22:15:27]Read from MH i2c: E2 17 00 39 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 19 [22:15:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:15:27]wFMCommunicate OK [22:15:27]CreateOFDProtocolMessage done [22:15:27]OFDSenderStorePacket 165471 [22:15:27]StoreOFDPacket docnum=165471 [22:15:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 17 88 07 01 E7 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 EC 3B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 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 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 01 00 00 F4 03 04 00 7F 9F 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5F 86 02 00 35 04 06 00 3D B3 D6 BC 11 40 6C 23 B8 4F 4C F5 5E 3D [22:15:27]CheckFolder [22:15:27]dirname=/storage/ofd_packets [22:15:27]CheckFolder done [22:15:27]ProducePacketName [22:15:27]name=ofd_packets/00165471 [22:15:27]NVStorageSaveData ofd_packets/00165471 [22:15:27]File name is /storage/ofd_packets/00165471 [22:15:27]Write 301 bytes [22:15:27]NVStorageSaveData done [22:15:27]OFDSenderStorePacket done [22:15:27]KKMCreateOFDPacket done [22:15:27]NVStorageSaveData kkm_last_timestamp [22:15:27]File name is /storage/kkm_last_timestamp [22:15:27]Write 4 bytes [22:15:27]NVStorageSaveData done [22:15:27]ExternCall_PrintAddStr [22:15:27]wPrintStart [22:15:27]Write to MH i2c: 01 00 00 3A 10 4A [22:15:27]Write i2c OK [22:15:27]MH_I2C_Read... [22:15:27]Read from MH i2c: 01 [22:15:27]MH_I2C_Read... [22:15:27]Read from MH i2c: 01 07 00 [22:15:27]MH_I2C_Read... [22:15:27]Read from MH i2c: 01 07 00 3A 10 00 00 00 00 00 FF 0F 5F [22:15:27]RasterBufferAndPrint [22:15:27]line Счет N : (1)459587 [22:15:27]line ИНН: 02508201610067 [22:15:27]line Контрольно-Кассовый Чек [22:15:27]line ПРОДАЖА [22:15:27]line ТРК (МРК, ГНК) : 22 [22:15:27]line Товар: 2710124130 [22:15:27]line Аи-92-К-5 [22:15:27]line 15.340 * 65.22 [22:15:27]line = 1000.47 [22:15:27]line НДС 12% НСП 1% [22:15:27]line > о реализуемом товаре [22:15:27]line ИТОГО: 1000.47 [22:15:27]line НСП 1% : 8.85 [22:15:27]line НДС 12% : 106.24 [22:15:27]line Наличными: 0.00 [22:15:27]line Безнал.: 1000.47 [22:15:27]line Место: АЗС № 72 "Партнер Нефть" [22:15:27]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:15:27]line СНО: Общий режим [22:15:27]line Чек 344 15.07.2024 22:15 [22:15:27]line Смена: 448 ФФД: 1.0 [22:15:27]line ЗНМ: 0300000160 [22:15:27]line РНМ: 0000000000090829 [22:15:27]line Версия ККМ: 001 [22:15:27]line Платежная система: KICB Банк [22:15:27]line ФМ: 0000000000874718 [22:15:27]line ФД: 165471 [22:15:27]line ФПД: 67842611089728 [22:15:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T221527&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165471&fm=67842611089728&tin=02508201610067®Number=0000000000090829&sum=100047 [22:15:28]OFD Sender: Processing packet 165471 [packets to send 106, broken 105] [22:15:28]ProducePacketName [22:15:28]name=ofd_packets/00165471 [22:15:28]OFD Sender: To server: pG, [22:15:28]CommunicateWithHost lk.salyk.kg:30040 [22:15:28]ConnectInit lk.salyk.kg [22:15:28]written 0, free lines is 4095 [22:15:28]Connected sock=7 [22:15:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 17 88 07 01 E7 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 EC 3B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 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 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 01 00 00 F4 03 04 00 7F 9F 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 5F 86 02 00 35 04 06 00 3D B3 D6 BC 11 40 6C 23 B8 4F 4C F5 5E 3D [22:15:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 89 2A 47 00 AF D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 5F 86 02 00 F4 03 04 00 08 46 95 66 B6 04 01 00 00 F4 59 BF 46 4A CD 18 B8 [22:15:28]CommunicateWithHost err = 0 [22:15:28]CheckOFDResponse [22:15:28]1017 (14) - 77093643461234 [22:15:28]1041 (16) - 0000000000874718 [22:15:28]1040 (4) - 165471 [22:15:28]1012 (4) - 15.07.2024 15:53 [22:15:28]1206 (1) - 0 [22:15:28]OFD Sender: Remove packet 165471 [22:15:28]ProducePacketName [22:15:28]name=ofd_packets/00165471 [22:15:28]NVStorageDeleteData [22:15:28]Write to MH i2c: 01 00 00 63 10 73 [22:15:28]Write i2c OK [22:15:28]MH_I2C_Read... [22:15:28]Read from MH i2c: 01 [22:15:28]MH_I2C_Read... [22:15:28]Read from MH i2c: 01 07 00 [22:15:28]MH_I2C_Read... [22:15:28]Read from MH i2c: 01 07 00 63 10 00 00 00 00 00 15 0D 9C [22:15:28]RasterBufferAndPrint [22:15:28]line [22:15:28]line [22:15:28]line [22:15:28]line [22:15:28]line [22:15:28]written 0, free lines is 3356 [22:15:28]MH_Cut [22:15:28]Write to MH i2c: D1 01 00 6A 10 01 4C [22:15:28]Write i2c OK [22:15:28]MH_I2C_Read... [22:15:28]Read from MH i2c: D1 [22:15:28]MH_I2C_Read... [22:15:28]Read from MH i2c: D1 01 00 [22:15:28]MH_I2C_Read... [22:15:28]Read from MH i2c: D1 01 00 6A 10 00 4B [22:15:28]Write to MH i2c: 01 00 00 6B 10 7B [22:15:28]Write i2c OK [22:15:28]MH_I2C_Read... [22:15:29]OFD Sender: No OFD packet to send [22:15:29]*** Cut start [22:15:29]*** Partial cut [22:15:29]*** CUTSNS_PIN = 1 [22:15:29]*** CUTSNS_PIN = 0 [22:15:29]*** Brake cut motor [22:15:29]Read from MH i2c: 01 [22:15:29]MH_I2C_Read... [22:15:29]*** Stop cut motor [22:15:29]*** Cut end [22:15:29]Read from MH i2c: 01 07 00 [22:15:29]MH_I2C_Read... [22:15:29]Read from MH i2c: 01 07 00 6B 10 00 00 00 00 00 FF 0F 90 [22:15:29]process_action close_receipt done [22:15:29]requested_data is exist [22:15:29]produce_requested_data [22:15:29]requested_item fm.sn is exist - process it [22:15:29]wFMCommunicate request_size=4 [22:15:29]MH_SAM_APDU [22:15:29]CAPDU: 80 11 00 00 [22:15:29]Write to MH i2c: E2 08 00 6C 10 80 11 00 00 00 00 00 00 F6 [22:15:29]Write i2c OK [22:15:29]MH_I2C_Read... [22:15:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:15:30]Read from MH i2c: E2 [22:15:30]MH_I2C_Read... [22:15:30]Read from MH i2c: E2 17 00 [22:15:30]MH_I2C_Read... [22:15:30]Read from MH i2c: E2 17 00 6C 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4C [22:15:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:15:30]wFMCommunicate OK [22:15:30]requested_item fd.num is exist - process it [22:15:30]SAM_PROTO_GetFieldsCounters [22:15:30]wFMCommunicate request_size=4 [22:15:30]MH_SAM_APDU [22:15:30]CAPDU: 80 13 00 00 [22:15:30]Write to MH i2c: E2 08 00 6D 10 80 13 00 00 00 00 00 00 F9 [22:15:30]Write i2c OK [22:15:30]MH_I2C_Read... [22:15:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:15:30]Read from MH i2c: E2 [22:15:30]MH_I2C_Read... [22:15:30]Read from MH i2c: E2 62 00 [22:15:30]MH_I2C_Read... [22:15:30]Read from MH i2c: E2 62 00 6D 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5F 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 58 01 00 00 5E 04 04 00 58 01 00 00 57 04 04 00 59 01 00 00 19 04 04 00 00 00 00 00 90 00 D3 [22:15: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 5F 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 58 01 00 00 5E 04 04 00 58 01 00 00 57 04 04 00 59 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:15:30]wFMCommunicate OK [22:15:30]SAM_PROTO_GetFieldsCounters done [22:15:30]requested_item shift.num is exist - process it [22:15:30]requested_item shift.opened is exist - process it [22:15:30]req_shift_opened [22:15:30]FM_GetShiftState [22:15:30]SAM_PROTO_GetShiftState [22:15:30]wFMCommunicate request_size=4 [22:15:30]MH_SAM_APDU [22:15:30]CAPDU: 80 13 01 00 [22:15:30]Write to MH i2c: E2 08 00 6E 10 80 13 01 00 00 00 00 00 FB [22:15:30]Write i2c OK [22:15:30]MH_I2C_Read... [22:15:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:15:30]Read from MH i2c: E2 [22:15:30]MH_I2C_Read... [22:15:30]Read from MH i2c: E2 0E 00 [22:15:30]MH_I2C_Read... [22:15:30]Read from MH i2c: E2 0E 00 6E 10 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 D4 [22:15:30]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [22:15:30]wFMCommunicate OK [22:15:30]SAM_PROTO_GetShiftState done [22:15:30]FM_GetShiftState done [22:15:30]req_shift_opened done [22:15:30]requested_item shift.open_date is exist - process it [22:15:30]req_shift_open_date [22:15:30]req_shift_open_date done [22:15:30]produce_requested_data done [22:15:30]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165471,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [22:15:30]process_action_free close_receipt [22:15:30]json_value_free [22:15:30]json_value_free done [22:15:30]process_json_proto returns [22:15:30]Send response to host [22:15:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165471,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [22:15:30]free response buf [22:15:30]execute_script done [22:15:30]execute_script returns [22:15:30]free content buf [22:15:30]Sock 9.Close socket [22:15:30]Sock 9.Thread stoped [22:15:30]accept exits with 10 [22:15:30]New connection [22:15:30]New thread 3067190628 created [22:15:30]Thread 3067333988 joined [22:15:30]Waiting for new connection... [22:15:30] Sock 10.Parse request [22:15:30]Sock 10.Check first char [22:15:30]Sock 10.First char is OK [22:15:30]request: POST /json_proto HTTP/1.0 [22:15:30]Method: POST [22:15:30]URL: /json_proto [22:15:30]Method is POST - this is cgi request [22:15:30]url: /json_proto [22:15:30]query_string will be loaded in cgi processing [22:15:30]execute_cgi json_proto POST (null) [22:15:30]execute_cgi path=json_proto method=POST [22:15:30]POST find Content-Length [22:15:30]Host: 172.17.56.4:8080 [22:15:30]Content-Length: 674 [22:15:30]Content-Type: application/json [22:15:30] [22:15:30]POST finish read [22:15:30]Found Content-Length = 674 [22:15:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459588", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "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" ] } } [22:15:30]execute_script... [22:15:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459588", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "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" ] } } [22:15:30]POST & json_proto [22:15:30]process_json_proto [22:15:30]json parsed OK: [22:15:30]protocol is kg_v1.0 [22:15:30]action value=close_receipt [22:15:30]process_action close_receipt [22:15:30]cmd_close_receipt [22:15:30]MH_GetDate [22:15:30]Write to MH i2c: F0 00 00 6F 10 6E [22:15:30]Write i2c OK [22:15:30]MH_I2C_Read... [22:15:30]Read from MH i2c: F0 [22:15:30]MH_I2C_Read... [22:15:30]Read from MH i2c: F0 09 00 [22:15:30]MH_I2C_Read... [22:15:30]Read from MH i2c: F0 09 00 6F 10 00 83 9F 95 66 C9 DC B2 64 4F [22:15:30]GetLastDocTimeStamp 1721081727 [22:15:30]current date 1721081731 [22:15:30]FM_GetShiftState [22:15:30]SAM_PROTO_GetShiftState [22:15:30]wFMCommunicate request_size=4 [22:15:30]MH_SAM_APDU [22:15:30]CAPDU: 80 13 01 00 [22:15:30]Write to MH i2c: E2 08 00 70 10 80 13 01 00 00 00 00 00 FD [22:15:30]Write i2c OK [22:15:30]MH_I2C_Read... [22:15:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:15:30]Read from MH i2c: E2 [22:15:30]MH_I2C_Read... [22:15:30]Read from MH i2c: E2 0E 00 [22:15:30]MH_I2C_Read... [22:15:30]Read from MH i2c: E2 0E 00 70 10 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 D6 [22:15:30]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [22:15:30]wFMCommunicate OK [22:15:30]SAM_PROTO_GetShiftState done [22:15:30]FM_GetShiftState done [22:15:30]opened in 1721003876 [22:15:30]opened+sec_in_day 1721090276 [22:15:30]quantity*price = 50042 [22:15:30]sum+1 = 50043 [22:15:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 345 15.07.2024 22:15 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165472 ФПД: 126026012457012 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T221531&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165472&fm=126026012457012&tin=02508201610067®Number=0000000000090829&sum=50000 [22:15:31]StoreToDocumentArchive [22:15:31]shift 448 fd 165472 [22:15:31]save to /storage/0448/doc_00165472 [22:15:31]save last doc name /storage/0448/doc_00165472 to /storage/kkm_last_doc_name [22:15:31]save OK [22:15:31]Clear old archive folders... [22:15:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:15:31]tlvbuf is 01B98F30 [22:15:31]SAM_PROTO_ClearQueue [22:15:31]wFMCommunicate request_size=4 [22:15:31]MH_SAM_APDU [22:15:31]CAPDU: 80 09 00 00 [22:15:31]Write to MH i2c: E2 08 00 7D 10 80 09 00 00 00 00 00 00 FF [22:15:31]Write i2c OK [22:15:31]MH_I2C_Read... [22:15:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:15:31]Read from MH i2c: E2 [22:15:31]MH_I2C_Read... [22:15:31]Read from MH i2c: E2 03 00 [22:15:31]MH_I2C_Read... [22:15:31]Read from MH i2c: E2 03 00 7D 10 00 90 00 01 [22:15:31]RAPDU: 90 00 [22:15:31]wFMCommunicate OK [22:15:31]SAM_PROTO_ClearQueue done [22:15:31]KKMCreateOFDPacket [22:15:31]OFDProtocolAddRootSTLVToBuf [22:15:31]FM_MakeSignedData [22:15:31]FM_MakeSignedData [22:15:31]SAM_PROTO_SignData [22:15:31]wFMCommunicate request_size=4 [22:15:31]MH_SAM_APDU [22:15:31]CAPDU: 80 0D 01 02 [22:15:31]Write to MH i2c: E2 08 00 7E 10 80 0D 01 02 00 00 00 00 07 [22:15:31]Write i2c OK [22:15:31]MH_I2C_Read... [22:15:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:15:32]Read from MH i2c: E2 [22:15:32]MH_I2C_Read... [22:15:32]Read from MH i2c: E2 03 00 [22:15:32]MH_I2C_Read... [22:15:32]Read from MH i2c: E2 03 00 7E 10 00 90 00 02 [22:15:32]RAPDU: 90 00 [22:15:32]wFMCommunicate OK [22:15:32]wFMCommunicate request_size=255 [22:15:32]MH_SAM_APDU [22:15:32]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A 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 59 01 00 00 F4 03 04 00 83 9F 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 60 86 02 00 35 04 06 00 72 9E B7 B4 [22:15:32]Write to MH i2c: E2 02 01 7F 10 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A 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 59 01 00 00 F4 03 04 00 83 9F 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 60 86 02 00 35 04 06 00 72 9E B7 B4 00 00 77 [22:15:32]Write i2c OK [22:15:32]MH_I2C_Read... [22:15:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:15:32]Read from MH i2c: E2 [22:15:32]MH_I2C_Read... [22:15:32]Read from MH i2c: E2 03 00 [22:15:32]MH_I2C_Read... [22:15:32]Read from MH i2c: E2 03 00 7F 10 00 90 00 03 [22:15:32]RAPDU: 90 00 [22:15:32]wFMCommunicate OK [22:15:32]wFMCommunicate request_size=7 [22:15:32]MH_SAM_APDU [22:15:32]CAPDU: 80 0D 02 02 02 78 34 [22:15:32]Write to MH i2c: E2 0A 00 80 10 80 0D 02 02 02 00 78 34 00 00 BA [22:15:32]Write i2c OK [22:15:32]MH_I2C_Read... [22:15:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:15:32]Read from MH i2c: E2 [22:15:32]MH_I2C_Read... [22:15:32]Read from MH i2c: E2 03 00 [22:15:32]MH_I2C_Read... [22:15:32]Read from MH i2c: E2 03 00 80 10 00 90 00 04 [22:15:32]RAPDU: 90 00 [22:15:32]wFMCommunicate OK [22:15:32]wFMCommunicate request_size=4 [22:15:32]MH_SAM_APDU [22:15:32]CAPDU: 80 0D 03 02 [22:15:32]Write to MH i2c: E2 08 00 81 10 80 0D 03 02 00 00 00 00 0C [22:15:32]Write i2c OK [22:15:32]MH_I2C_Read... [22:15:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:15:32]Read from MH i2c: E2 [22:15:32]MH_I2C_Read... [22:15:32]Read from MH i2c: E2 0B 00 [22:15:32]MH_I2C_Read... [22:15:32]Read from MH i2c: E2 0B 00 81 10 00 B9 91 DD 9A A9 F5 7A CA 90 00 B0 [22:15:32]RAPDU: B9 91 DD 9A A9 F5 7A CA 90 00 [22:15:32]wFMCommunicate OK [22:15:32]SAM_PROTO_SignData done [22:15:32]FM_MakeSignedData done [22:15:32]CreateOFDProtocolMessage [22:15:32]wFMCommunicate request_size=4 [22:15:32]MH_SAM_APDU [22:15:32]CAPDU: 80 11 00 00 [22:15:32]Write to MH i2c: E2 08 00 82 10 80 11 00 00 00 00 00 00 0C [22:15:32]Write i2c OK [22:15:32]MH_I2C_Read... [22:15:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:15:32]Read from MH i2c: E2 [22:15:32]MH_I2C_Read... [22:15:32]Read from MH i2c: E2 17 00 [22:15:32]MH_I2C_Read... [22:15:32]Read from MH i2c: E2 17 00 82 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 62 [22:15:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:15:32]wFMCommunicate OK [22:15:32]CreateOFDProtocolMessage done [22:15:32]OFDSenderStorePacket 165472 [22:15:32]StoreOFDPacket docnum=165472 [22:15:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 0E 3E 04 01 E9 F0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A 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 59 01 00 00 F4 03 04 00 83 9F 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 60 86 02 00 35 04 06 00 72 9E B7 B4 78 34 B9 91 DD 9A A9 F5 7A CA [22:15:32]CheckFolder [22:15:32]dirname=/storage/ofd_packets [22:15:32]CheckFolder done [22:15:32]ProducePacketName [22:15:32]name=ofd_packets/00165472 [22:15:32]NVStorageSaveData ofd_packets/00165472 [22:15:32]File name is /storage/ofd_packets/00165472 [22:15:32]Write 298 bytes [22:15:32]NVStorageSaveData done [22:15:32]OFDSenderStorePacket done [22:15:32]KKMCreateOFDPacket done [22:15:32]NVStorageSaveData kkm_last_timestamp [22:15:32]File name is /storage/kkm_last_timestamp [22:15:32]Write 4 bytes [22:15:32]NVStorageSaveData done [22:15:32]ExternCall_PrintAddStr [22:15:32]wPrintStart [22:15:32]Write to MH i2c: 01 00 00 83 10 93 [22:15:32]Write i2c OK [22:15:32]MH_I2C_Read... [22:15:32]Read from MH i2c: 01 [22:15:32]MH_I2C_Read... [22:15:32]Read from MH i2c: 01 07 00 [22:15:32]MH_I2C_Read... [22:15:32]Read from MH i2c: 01 07 00 83 10 00 00 00 00 00 FF 0F A8 [22:15:32]RasterBufferAndPrint [22:15:32]line Счет N : (1)459588 [22:15:32]line ИНН: 02508201610067 [22:15:32]line Контрольно-Кассовый Чек [22:15:32]line ПРОДАЖА [22:15:32]line ТРК (МРК, ГНК) : 11 [22:15:32]line Товар: 2710194210 [22:15:32]line ДТ-К-5 [22:15:32]line 6.960 * 71.90 [22:15:32]line = 500.42 [22:15:32]line НДС 12% НСП 1% [22:15:32]line > о реализуемом товаре [22:15:32]line ОКРУГЛЕНИЕ: -0.42 [22:15:32]line ИТОГО: 500.00 [22:15:32]line Внесено: 500.00 [22:15:32]line СДАЧА: 0.00 [22:15:32]line НСП 1% : 4.43 [22:15:32]line НДС 12% : 53.14 [22:15:32]line Наличными: 500.00 [22:15:32]line Безнал.: 0.00 [22:15:32]line Место: АЗС № 72 "Партнер Нефть" [22:15:32]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:15:32]line СНО: Общий режим [22:15:33]line Чек 345 15.07.2024 22:15 [22:15:33]line Смена: 448 ФФД: 1.0 [22:15:33]line ЗНМ: 0300000160 [22:15:33]line РНМ: 0000000000090829 [22:15:33]line Версия ККМ: 001 [22:15:33]line ФМ: 0000000000874718 [22:15:33]line ФД: 165472 [22:15:33]line ФПД: 126026012457012 [22:15:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T221531&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165472&fm=126026012457012&tin=02508201610067®Number=0000000000090829&sum=50000 [22:15:33]OFD Sender: Processing packet 165472 [packets to send 106, broken 105] [22:15:33]ProducePacketName [22:15:33]name=ofd_packets/00165472 [22:15:33]OFD Sender: To server: pG, [22:15:33]CommunicateWithHost lk.salyk.kg:30040 [22:15:33]ConnectInit lk.salyk.kg [22:15:33]written 0, free lines is 4095 [22:15:33]Connected sock=9 [22:15: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 37 31 38 0C 01 00 00 0E 3E 04 01 E9 F0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A 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 59 01 00 00 F4 03 04 00 83 9F 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 60 86 02 00 35 04 06 00 72 9E B7 B4 78 34 B9 91 DD 9A A9 F5 7A CA [22:15:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 BB 1D 47 00 A7 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 60 86 02 00 F4 03 04 00 0D 46 95 66 B6 04 01 00 00 85 3F A3 2D 77 FB F2 27 [22:15:33]CommunicateWithHost err = 0 [22:15:33]CheckOFDResponse [22:15:33]1017 (14) - 77093643461234 [22:15:33]1041 (16) - 0000000000874718 [22:15:33]1040 (4) - 165472 [22:15:33]1012 (4) - 15.07.2024 15:53 [22:15:33]1206 (1) - 0 [22:15:33]OFD Sender: Remove packet 165472 [22:15:33]ProducePacketName [22:15:33]name=ofd_packets/00165472 [22:15:33]NVStorageDeleteData [22:15:33]Write to MH i2c: 01 00 00 AD 10 BD [22:15:33]Write i2c OK [22:15:33]MH_I2C_Read... [22:15:33]Read from MH i2c: 01 [22:15:33]MH_I2C_Read... [22:15:33]Read from MH i2c: 01 07 00 [22:15:33]MH_I2C_Read... [22:15:33]Read from MH i2c: 01 07 00 AD 10 00 00 00 00 00 05 0D D6 [22:15:33]RasterBufferAndPrint [22:15:33]line [22:15:33]line [22:15:33]line [22:15:33]line [22:15:33]line [22:15:33]written 0, free lines is 3345 [22:15:33]MH_Cut [22:15:33]Write to MH i2c: D1 01 00 B4 10 01 96 [22:15:33]Write i2c OK [22:15:33]MH_I2C_Read... [22:15:33]Read from MH i2c: D1 [22:15:33]MH_I2C_Read... [22:15:33]Read from MH i2c: D1 01 00 [22:15:33]MH_I2C_Read... [22:15:33]Read from MH i2c: D1 01 00 B4 10 00 95 [22:15:33]Write to MH i2c: 01 00 00 B5 10 C5 [22:15:33]Write i2c OK [22:15:33]MH_I2C_Read... [22:15:33]OFD Sender: No OFD packet to send [22:15:34]*** Cut start [22:15:34]*** Partial cut [22:15:34]*** CUTSNS_PIN = 1 [22:15:34]*** CUTSNS_PIN = 0 [22:15:34]*** Brake cut motor [22:15:34]Read from MH i2c: 01 [22:15:34]MH_I2C_Read... [22:15:34]*** Stop cut motor [22:15:34]*** Cut end [22:15:34]Read from MH i2c: 01 07 00 [22:15:34]MH_I2C_Read... [22:15:34]Read from MH i2c: 01 07 00 B5 10 00 00 00 00 00 FF 0F DA [22:15:34]process_action close_receipt done [22:15:34]requested_data is exist [22:15:34]produce_requested_data [22:15:34]requested_item fm.sn is exist - process it [22:15:34]wFMCommunicate request_size=4 [22:15:34]MH_SAM_APDU [22:15:34]CAPDU: 80 11 00 00 [22:15:34]Write to MH i2c: E2 08 00 B6 10 80 11 00 00 00 00 00 00 40 [22:15:34]Write i2c OK [22:15:34]MH_I2C_Read... [22:15:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:15:34]Read from MH i2c: E2 [22:15:34]MH_I2C_Read... [22:15:34]Read from MH i2c: E2 17 00 [22:15:34]MH_I2C_Read... [22:15:34]Read from MH i2c: E2 17 00 B6 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 96 [22:15:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:15:34]wFMCommunicate OK [22:15:34]requested_item fd.num is exist - process it [22:15:34]SAM_PROTO_GetFieldsCounters [22:15:34]wFMCommunicate request_size=4 [22:15:34]MH_SAM_APDU [22:15:34]CAPDU: 80 13 00 00 [22:15:34]Write to MH i2c: E2 08 00 B7 10 80 13 00 00 00 00 00 00 43 [22:15:34]Write i2c OK [22:15:34]MH_I2C_Read... [22:15:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:15:35]Read from MH i2c: E2 [22:15:35]MH_I2C_Read... [22:15:35]Read from MH i2c: E2 62 00 [22:15:35]MH_I2C_Read... [22:15:35]Read from MH i2c: E2 62 00 B7 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 60 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 59 01 00 00 5E 04 04 00 59 01 00 00 57 04 04 00 5A 01 00 00 19 04 04 00 00 00 00 00 90 00 21 [22:15:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 60 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 59 01 00 00 5E 04 04 00 59 01 00 00 57 04 04 00 5A 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:15:35]wFMCommunicate OK [22:15:35]SAM_PROTO_GetFieldsCounters done [22:15:35]requested_item shift.num is exist - process it [22:15:35]requested_item shift.opened is exist - process it [22:15:35]req_shift_opened [22:15:35]FM_GetShiftState [22:15:35]SAM_PROTO_GetShiftState [22:15:35]wFMCommunicate request_size=4 [22:15:35]MH_SAM_APDU [22:15:35]CAPDU: 80 13 01 00 [22:15:35]Write to MH i2c: E2 08 00 B8 10 80 13 01 00 00 00 00 00 45 [22:15:35]Write i2c OK [22:15:35]MH_I2C_Read... [22:15:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:15:35]Read from MH i2c: E2 [22:15:35]MH_I2C_Read... [22:15:35]Read from MH i2c: E2 0E 00 [22:15:35]MH_I2C_Read... [22:15:35]Read from MH i2c: E2 0E 00 B8 10 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 1E [22:15:35]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [22:15:35]wFMCommunicate OK [22:15:35]SAM_PROTO_GetShiftState done [22:15:35]FM_GetShiftState done [22:15:35]req_shift_opened done [22:15:35]requested_item shift.open_date is exist - process it [22:15:35]req_shift_open_date [22:15:35]req_shift_open_date done [22:15:35]produce_requested_data done [22:15:35]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165472,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [22:15:35]process_action_free close_receipt [22:15:35]json_value_free [22:15:35]json_value_free done [22:15:35]process_json_proto returns [22:15:35]Send response to host [22:15:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165472,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [22:15:35]free response buf [22:15:35]execute_script done [22:15:35]execute_script returns [22:15:35]free content buf [22:15:35]Sock 10.Close socket [22:15:35]Sock 10.Thread stoped [22:15:38]OFD Sender: No OFD packet to send [22:15:43]OFD Sender: No OFD packet to send [22:15:48]OFD Sender: No OFD packet to send [22:15:53]OFD Sender: No OFD packet to send [22:15:58]OFD Sender: No OFD packet to send [22:16:03]OFD Sender: No OFD packet to send [22:16:08]OFD Sender: No OFD packet to send [22:16:14]OFD Sender: No OFD packet to send [22:16:19]OFD Sender: No OFD packet to send [22:16:24]OFD Sender: No OFD packet to send [22:16:29]OFD Sender: No OFD packet to send [22:16:34]OFD Sender: No OFD packet to send [22:16:39]OFD Sender: No OFD packet to send [22:16:44]OFD Sender: No OFD packet to send [22:16:49]OFD Sender: No OFD packet to send [22:16:54]OFD Sender: No OFD packet to send [22:16:59]OFD Sender: No OFD packet to send [22:17:04]OFD Sender: No OFD packet to send [22:17:09]OFD Sender: No OFD packet to send [22:17:14]OFD Sender: No OFD packet to send [22:17:19]OFD Sender: No OFD packet to send [22:17:24]OFD Sender: No OFD packet to send [22:17:29]OFD Sender: No OFD packet to send [22:17:34]OFD Sender: No OFD packet to send [22:17:39]OFD Sender: No OFD packet to send [22:17:44]OFD Sender: No OFD packet to send [22:17:49]OFD Sender: No OFD packet to send [22:17:54]OFD Sender: No OFD packet to send [22:17:59]OFD Sender: No OFD packet to send [22:18:04]OFD Sender: No OFD packet to send [22:18:09]OFD Sender: No OFD packet to send [22:18:14]OFD Sender: No OFD packet to send [22:18:19]OFD Sender: No OFD packet to send [22:18:24]OFD Sender: No OFD packet to send [22:18:29]OFD Sender: No OFD packet to send [22:18:34]OFD Sender: No OFD packet to send [22:18:39]OFD Sender: No OFD packet to send [22:18:44]OFD Sender: No OFD packet to send [22:18:49]OFD Sender: No OFD packet to send [22:18:54]OFD Sender: No OFD packet to send [22:18:59]OFD Sender: No OFD packet to send [22:19:04]OFD Sender: No OFD packet to send [22:19:09]OFD Sender: No OFD packet to send [22:19:14]OFD Sender: No OFD packet to send [22:19:19]OFD Sender: No OFD packet to send [22:19:24]OFD Sender: No OFD packet to send [22:19:29]OFD Sender: No OFD packet to send [22:19:34]OFD Sender: No OFD packet to send [22:19:39]OFD Sender: No OFD packet to send [22:19:44]OFD Sender: No OFD packet to send [22:19:49]OFD Sender: No OFD packet to send [22:19:54]OFD Sender: No OFD packet to send [22:19:59]OFD Sender: No OFD packet to send [22:20:04]OFD Sender: No OFD packet to send [22:20:09]OFD Sender: No OFD packet to send [22:20:14]OFD Sender: No OFD packet to send [22:20:19]OFD Sender: No OFD packet to send [22:20:24]OFD Sender: No OFD packet to send [22:20:29]OFD Sender: No OFD packet to send [22:20:34]OFD Sender: No OFD packet to send [22:20:39]OFD Sender: No OFD packet to send [22:20:44]OFD Sender: No OFD packet to send [22:20:49]OFD Sender: No OFD packet to send [22:20:54]OFD Sender: No OFD packet to send [22:20:59]OFD Sender: No OFD packet to send [22:21:04]OFD Sender: No OFD packet to send [22:21:09]OFD Sender: No OFD packet to send [22:21:14]OFD Sender: No OFD packet to send [22:21:19]OFD Sender: No OFD packet to send [22:21:24]OFD Sender: No OFD packet to send [22:21:29]OFD Sender: No OFD packet to send [22:21:34]OFD Sender: No OFD packet to send [22:21:39]OFD Sender: No OFD packet to send [22:21:44]OFD Sender: No OFD packet to send [22:21:49]OFD Sender: No OFD packet to send [22:21:54]OFD Sender: No OFD packet to send [22:21:59]OFD Sender: No OFD packet to send [22:22:04]OFD Sender: No OFD packet to send [22:22:09]OFD Sender: No OFD packet to send [22:22:14]OFD Sender: No OFD packet to send [22:22:19]OFD Sender: No OFD packet to send [22:22:24]OFD Sender: No OFD packet to send [22:22:29]OFD Sender: No OFD packet to send [22:22:34]OFD Sender: No OFD packet to send [22:22:39]OFD Sender: No OFD packet to send [22:22:44]OFD Sender: No OFD packet to send [22:22:49]OFD Sender: No OFD packet to send [22:22:54]OFD Sender: No OFD packet to send [22:22:59]OFD Sender: No OFD packet to send [22:23:04]OFD Sender: No OFD packet to send [22:23:09]OFD Sender: No OFD packet to send [22:23:14]OFD Sender: No OFD packet to send [22:23:19]OFD Sender: No OFD packet to send [22:23:24]OFD Sender: No OFD packet to send [22:23:29]OFD Sender: No OFD packet to send [22:23:34]OFD Sender: No OFD packet to send [22:23:39]OFD Sender: No OFD packet to send [22:23:44]OFD Sender: No OFD packet to send [22:23:49]OFD Sender: No OFD packet to send [22:23:54]OFD Sender: No OFD packet to send [22:23:59]OFD Sender: No OFD packet to send [22:24:04]OFD Sender: No OFD packet to send [22:24:09]OFD Sender: No OFD packet to send [22:24:14]OFD Sender: No OFD packet to send [22:24:19]OFD Sender: No OFD packet to send [22:24:24]OFD Sender: No OFD packet to send [22:24:29]OFD Sender: No OFD packet to send [22:24:34]OFD Sender: No OFD packet to send [22:24:39]OFD Sender: No OFD packet to send [22:24:44]OFD Sender: No OFD packet to send [22:24:49]OFD Sender: No OFD packet to send [22:24:54]OFD Sender: No OFD packet to send [22:24:59]OFD Sender: No OFD packet to send [22:25:04]OFD Sender: No OFD packet to send [22:25:09]OFD Sender: No OFD packet to send [22:25:14]OFD Sender: No OFD packet to send [22:25:19]OFD Sender: No OFD packet to send [22:25:24]OFD Sender: No OFD packet to send [22:25:29]OFD Sender: No OFD packet to send [22:25:34]OFD Sender: No OFD packet to send [22:25:39]OFD Sender: No OFD packet to send [22:25:44]OFD Sender: No OFD packet to send [22:25:49]OFD Sender: No OFD packet to send [22:25:54]OFD Sender: No OFD packet to send [22:25:59]OFD Sender: No OFD packet to send [22:26:04]OFD Sender: No OFD packet to send [22:26:09]OFD Sender: No OFD packet to send [22:26:14]OFD Sender: No OFD packet to send [22:26:19]OFD Sender: No OFD packet to send [22:26:24]OFD Sender: No OFD packet to send [22:26:29]OFD Sender: No OFD packet to send [22:26:34]OFD Sender: No OFD packet to send [22:26:39]OFD Sender: No OFD packet to send [22:26:44]OFD Sender: No OFD packet to send [22:26:49]OFD Sender: No OFD packet to send [22:26:54]OFD Sender: No OFD packet to send [22:26:59]OFD Sender: No OFD packet to send [22:27:04]OFD Sender: No OFD packet to send [22:27:09]OFD Sender: No OFD packet to send [22:27:14]OFD Sender: No OFD packet to send [22:27:19]OFD Sender: No OFD packet to send [22:27:24]OFD Sender: No OFD packet to send [22:27:29]OFD Sender: No OFD packet to send [22:27:34]OFD Sender: No OFD packet to send [22:27:39]OFD Sender: No OFD packet to send [22:27:44]OFD Sender: No OFD packet to send [22:27:49]OFD Sender: No OFD packet to send [22:27:54]OFD Sender: No OFD packet to send [22:27:59]OFD Sender: No OFD packet to send [22:28:04]OFD Sender: No OFD packet to send [22:28:09]OFD Sender: No OFD packet to send [22:28:14]OFD Sender: No OFD packet to send [22:28:19]OFD Sender: No OFD packet to send [22:28:24]OFD Sender: No OFD packet to send [22:28:29]OFD Sender: No OFD packet to send [22:28:34]OFD Sender: No OFD packet to send [22:28:39]OFD Sender: No OFD packet to send [22:28:44]OFD Sender: No OFD packet to send [22:28:49]OFD Sender: No OFD packet to send [22:28:54]OFD Sender: No OFD packet to send [22:28:59]OFD Sender: No OFD packet to send [22:29:04]OFD Sender: No OFD packet to send [22:29:09]OFD Sender: No OFD packet to send [22:29:14]OFD Sender: No OFD packet to send [22:29:19]OFD Sender: No OFD packet to send [22:29:24]OFD Sender: No OFD packet to send [22:29:29]OFD Sender: No OFD packet to send [22:29:34]OFD Sender: No OFD packet to send [22:29:39]OFD Sender: No OFD packet to send [22:29:44]OFD Sender: No OFD packet to send [22:29:49]OFD Sender: No OFD packet to send [22:29:54]OFD Sender: No OFD packet to send [22:29:59]OFD Sender: No OFD packet to send [22:30:04]OFD Sender: No OFD packet to send [22:30:09]OFD Sender: No OFD packet to send [22:30:14]OFD Sender: No OFD packet to send [22:30:19]OFD Sender: No OFD packet to send [22:30:24]OFD Sender: No OFD packet to send [22:30:28]accept exits with 7 [22:30:28]New connection [22:30:28]New thread 3067333988 created [22:30:28]Thread 3067190628 joined [22:30:28]Waiting for new connection... [22:30:28] Sock 7.Parse request [22:30:28]Sock 7.Check first char [22:30:28]Sock 7.First char is OK [22:30:28]request: POST /json_proto HTTP/1.0 [22:30:28]Method: POST [22:30:28]URL: /json_proto [22:30:28]Method is POST - this is cgi request [22:30:28]url: /json_proto [22:30:28]query_string will be loaded in cgi processing [22:30:28]execute_cgi json_proto POST (null) [22:30:28]execute_cgi path=json_proto method=POST [22:30:28]POST find Content-Length [22:30:28]Host: 172.17.56.4:8080 [22:30:28]Content-Length: 790 [22:30:28]Content-Type: application/json [22:30:28] [22:30:28]POST finish read [22:30:28]Found Content-Length = 790 [22:30:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459589", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 9.200, "sum" : 600.02, "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 600.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:30:28]execute_script... [22:30:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459589", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 9.200, "sum" : 600.02, "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 600.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:30:28]POST & json_proto [22:30:28]process_json_proto [22:30:28]json parsed OK: [22:30:28]protocol is kg_v1.0 [22:30:28]action value=close_receipt [22:30:28]process_action close_receipt [22:30:28]cmd_close_receipt [22:30:28]MH_GetDate [22:30:28]Write to MH i2c: F0 00 00 B9 10 B8 [22:30:28]Write i2c OK [22:30:28]MH_I2C_Read... [22:30:28]Read from MH i2c: F0 [22:30:28]MH_I2C_Read... [22:30:28]Read from MH i2c: F0 09 00 [22:30:28]MH_I2C_Read... [22:30:28]Read from MH i2c: F0 09 00 B9 10 00 05 A3 95 66 C9 DC B2 64 1F [22:30:28]GetLastDocTimeStamp 1721081731 [22:30:28]current date 1721082629 [22:30:28]FM_GetShiftState [22:30:28]SAM_PROTO_GetShiftState [22:30:28]wFMCommunicate request_size=4 [22:30:28]MH_SAM_APDU [22:30:28]CAPDU: 80 13 01 00 [22:30:28]Write to MH i2c: E2 08 00 BA 10 80 13 01 00 00 00 00 00 47 [22:30:28]Write i2c OK [22:30:28]MH_I2C_Read... [22:30:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:30:28]Read from MH i2c: E2 [22:30:28]MH_I2C_Read... [22:30:28]Read from MH i2c: E2 0E 00 [22:30:28]MH_I2C_Read... [22:30:28]Read from MH i2c: E2 0E 00 BA 10 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 20 [22:30:28]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [22:30:28]wFMCommunicate OK [22:30:28]SAM_PROTO_GetShiftState done [22:30:28]FM_GetShiftState done [22:30:28]opened in 1721003876 [22:30:28]opened+sec_in_day 1721090276 [22:30:28]quantity*price = 60002 [22:30:28]sum+1 = 60003 [22:30:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.02 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 0.00 Безнал.: 600.02 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 346 15.07.2024 22:30 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 165473 ФПД: 278574099571240 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T223029&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165473&fm=278574099571240&tin=02508201610067®Number=0000000000090829&sum=60002 [22:30:29]StoreToDocumentArchive [22:30:29]shift 448 fd 165473 [22:30:29]save to /storage/0448/doc_00165473 [22:30:29]save last doc name /storage/0448/doc_00165473 to /storage/kkm_last_doc_name [22:30:29]save OK [22:30:29]Clear old archive folders... [22:30:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:30:29]tlvbuf is 01B86E50 [22:30:29]SAM_PROTO_ClearQueue [22:30:29]wFMCommunicate request_size=4 [22:30:29]MH_SAM_APDU [22:30:29]CAPDU: 80 09 00 00 [22:30:29]Write to MH i2c: E2 08 00 C7 10 80 09 00 00 00 00 00 00 49 [22:30:29]Write i2c OK [22:30:29]MH_I2C_Read... [22:30:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:30:29]Read from MH i2c: E2 [22:30:29]MH_I2C_Read... [22:30:29]Read from MH i2c: E2 03 00 [22:30:29]MH_I2C_Read... [22:30:29]Read from MH i2c: E2 03 00 C7 10 00 90 00 4B [22:30:29]RAPDU: 90 00 [22:30:29]wFMCommunicate OK [22:30:29]SAM_PROTO_ClearQueue done [22:30:29]KKMCreateOFDPacket [22:30:29]OFDProtocolAddRootSTLVToBuf [22:30:29]FM_MakeSignedData [22:30:29]FM_MakeSignedData [22:30:29]SAM_PROTO_SignData [22:30:29]wFMCommunicate request_size=4 [22:30:29]MH_SAM_APDU [22:30:29]CAPDU: 80 0D 01 02 [22:30:29]Write to MH i2c: E2 08 00 C8 10 80 0D 01 02 00 00 00 00 51 [22:30:29]Write i2c OK [22:30:29]MH_I2C_Read... [22:30:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:30:29]Read from MH i2c: E2 [22:30:29]MH_I2C_Read... [22:30:29]Read from MH i2c: E2 03 00 [22:30:29]MH_I2C_Read... [22:30:29]Read from MH i2c: E2 03 00 C8 10 00 90 00 4C [22:30:29]RAPDU: 90 00 [22:30:29]wFMCommunicate OK [22:30:29]wFMCommunicate request_size=255 [22:30:29]MH_SAM_APDU [22:30:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 23 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 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 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 01 00 00 F4 03 04 00 05 A3 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 61 86 02 00 35 04 06 00 FD [22:30:29]Write to MH i2c: E2 02 01 C9 10 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 F0 23 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 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 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 01 00 00 F4 03 04 00 05 A3 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 61 86 02 00 35 04 06 00 FD 00 00 A1 [22:30:29]Write i2c OK [22:30:29]MH_I2C_Read... [22:30:29]OFD Sender: No OFD packet to send [22:30:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:30:30]Read from MH i2c: E2 [22:30:30]MH_I2C_Read... [22:30:30]Read from MH i2c: E2 03 00 [22:30:30]MH_I2C_Read... [22:30:30]Read from MH i2c: E2 03 00 C9 10 00 90 00 4D [22:30:30]RAPDU: 90 00 [22:30:30]wFMCommunicate OK [22:30:30]wFMCommunicate request_size=10 [22:30:30]MH_SAM_APDU [22:30:30]CAPDU: 80 0D 02 02 05 5C 96 3F A2 28 [22:30:30]Write to MH i2c: E2 0D 00 CA 10 80 0D 02 02 05 00 5C 96 3F A2 28 00 00 59 [22:30:30]Write i2c OK [22:30:30]MH_I2C_Read... [22:30:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:30:30]Read from MH i2c: E2 [22:30:30]MH_I2C_Read... [22:30:30]Read from MH i2c: E2 03 00 [22:30:30]MH_I2C_Read... [22:30:30]Read from MH i2c: E2 03 00 CA 10 00 90 00 4E [22:30:30]RAPDU: 90 00 [22:30:30]wFMCommunicate OK [22:30:30]wFMCommunicate request_size=4 [22:30:30]MH_SAM_APDU [22:30:30]CAPDU: 80 0D 03 02 [22:30:30]Write to MH i2c: E2 08 00 CB 10 80 0D 03 02 00 00 00 00 56 [22:30:30]Write i2c OK [22:30:30]MH_I2C_Read... [22:30:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:30:30]Read from MH i2c: E2 [22:30:30]MH_I2C_Read... [22:30:30]Read from MH i2c: E2 0B 00 [22:30:30]MH_I2C_Read... [22:30:30]Read from MH i2c: E2 0B 00 CB 10 00 7E 44 A1 FB 48 D1 90 DD 90 00 3B [22:30:30]RAPDU: 7E 44 A1 FB 48 D1 90 DD 90 00 [22:30:30]wFMCommunicate OK [22:30:30]SAM_PROTO_SignData done [22:30:30]FM_MakeSignedData done [22:30:30]CreateOFDProtocolMessage [22:30:30]wFMCommunicate request_size=4 [22:30:30]MH_SAM_APDU [22:30:30]CAPDU: 80 11 00 00 [22:30:30]Write to MH i2c: E2 08 00 CC 10 80 11 00 00 00 00 00 00 56 [22:30:30]Write i2c OK [22:30:30]MH_I2C_Read... [22:30:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:30:30]Read from MH i2c: E2 [22:30:30]MH_I2C_Read... [22:30:30]Read from MH i2c: E2 17 00 [22:30:30]MH_I2C_Read... [22:30:30]Read from MH i2c: E2 17 00 CC 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 AC [22:30:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:30:30]wFMCommunicate OK [22:30:30]CreateOFDProtocolMessage done [22:30:30]OFDSenderStorePacket 165473 [22:30:30]StoreOFDPacket docnum=165473 [22:30:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 1F C4 07 01 97 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 F0 23 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 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 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 01 00 00 F4 03 04 00 05 A3 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 61 86 02 00 35 04 06 00 FD 5C 96 3F A2 28 7E 44 A1 FB 48 D1 90 DD [22:30:30]CheckFolder [22:30:30]dirname=/storage/ofd_packets [22:30:30]CheckFolder done [22:30:30]ProducePacketName [22:30:30]name=ofd_packets/00165473 [22:30:30]NVStorageSaveData ofd_packets/00165473 [22:30:30]File name is /storage/ofd_packets/00165473 [22:30:30]Write 301 bytes [22:30:30]NVStorageSaveData done [22:30:30]OFDSenderStorePacket done [22:30:30]KKMCreateOFDPacket done [22:30:30]NVStorageSaveData kkm_last_timestamp [22:30:30]File name is /storage/kkm_last_timestamp [22:30:30]Write 4 bytes [22:30:30]NVStorageSaveData done [22:30:30]ExternCall_PrintAddStr [22:30:30]wPrintStart [22:30:30]Write to MH i2c: 01 00 00 CD 10 DD [22:30:30]Write i2c OK [22:30:30]MH_I2C_Read... [22:30:30]Read from MH i2c: 01 [22:30:30]MH_I2C_Read... [22:30:30]Read from MH i2c: 01 07 00 [22:30:30]MH_I2C_Read... [22:30:30]Read from MH i2c: 01 07 00 CD 10 00 00 00 00 00 FF 0F F2 [22:30:30]RasterBufferAndPrint [22:30:30]line Счет N : (1)459589 [22:30:30]line ИНН: 02508201610067 [22:30:30]line Контрольно-Кассовый Чек [22:30:30]line ПРОДАЖА [22:30:30]line ТРК (МРК, ГНК) : 22 [22:30:30]line Товар: 2710124130 [22:30:30]line Аи-92-К-5 [22:30:30]line 9.200 * 65.22 [22:30:30]line = 600.02 [22:30:30]line НДС 12% НСП 1% [22:30:30]line > о реализуемом товаре [22:30:30]line ИТОГО: 600.02 [22:30:30]line НСП 1% : 5.31 [22:30:30]line НДС 12% : 63.72 [22:30:30]line Наличными: 0.00 [22:30:30]line Безнал.: 600.02 [22:30:30]line Место: АЗС № 72 "Партнер Нефть" [22:30:30]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:30:30]line СНО: Общий режим [22:30:30]line Чек 346 15.07.2024 22:30 [22:30:30]line Смена: 448 ФФД: 1.0 [22:30:30]line ЗНМ: 0300000160 [22:30:30]line РНМ: 0000000000090829 [22:30:30]line Версия ККМ: 001 [22:30:30]line Платежная система: KICB Банк [22:30:30]line ФМ: 0000000000874718 [22:30:30]line ФД: 165473 [22:30:30]line ФПД: 278574099571240 [22:30:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T223029&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165473&fm=278574099571240&tin=02508201610067®Number=0000000000090829&sum=60002 [22:30:30]OFD Sender: Processing packet 165473 [packets to send 106, broken 105] [22:30:30]ProducePacketName [22:30:30]name=ofd_packets/00165473 [22:30:30]OFD Sender: To server: pG, [22:30:30]CommunicateWithHost lk.salyk.kg:30040 [22:30:30]ConnectInit lk.salyk.kg [22:30:30]written 0, free lines is 4095 [22:30:30]Connected sock=10 [22:30:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 1F C4 07 01 97 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 F0 23 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 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 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 01 00 00 F4 03 04 00 05 A3 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 61 86 02 00 35 04 06 00 FD 5C 96 3F A2 28 7E 44 A1 FB 48 D1 90 DD [22:30:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 89 02 47 00 D6 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 61 86 02 00 F4 03 04 00 8E 49 95 66 B6 04 01 00 00 01 DC 10 C5 55 DC DB D7 [22:30:30]CommunicateWithHost err = 0 [22:30:30]CheckOFDResponse [22:30:30]1017 (14) - 77093643461234 [22:30:30]1041 (16) - 0000000000874718 [22:30:30]1040 (4) - 165473 [22:30:30]1012 (4) - 15.07.2024 16:08 [22:30:30]1206 (1) - 0 [22:30:30]OFD Sender: Remove packet 165473 [22:30:30]ProducePacketName [22:30:30]name=ofd_packets/00165473 [22:30:30]NVStorageDeleteData [22:30:30]Write to MH i2c: 01 00 00 F6 10 06 [22:30:30]Write i2c OK [22:30:30]MH_I2C_Read... [22:30:30]Read from MH i2c: 01 [22:30:30]MH_I2C_Read... [22:30:30]Read from MH i2c: 01 07 00 [22:30:30]MH_I2C_Read... [22:30:30]Read from MH i2c: 01 07 00 F6 10 00 00 00 00 00 19 0D 33 [22:30:30]RasterBufferAndPrint [22:30:30]line [22:30:30]line [22:30:30]line [22:30:30]line [22:30:30]line [22:30:30]written 0, free lines is 3359 [22:30:30]MH_Cut [22:30:30]Write to MH i2c: D1 01 00 FD 10 01 DF [22:30:30]Write i2c OK [22:30:30]MH_I2C_Read... [22:30:30]Read from MH i2c: D1 [22:30:30]MH_I2C_Read... [22:30:30]Read from MH i2c: D1 01 00 [22:30:30]MH_I2C_Read... [22:30:31]Read from MH i2c: D1 01 00 FD 10 00 DE [22:30:31]Write to MH i2c: 01 00 00 FE 10 0E [22:30:31]Write i2c OK [22:30:31]MH_I2C_Read... [22:30:31]OFD Sender: No OFD packet to send [22:30:31]*** Cut start [22:30:31]*** Partial cut [22:30:31]*** CUTSNS_PIN = 1 [22:30:31]*** CUTSNS_PIN = 0 [22:30:31]*** Brake cut motor [22:30:32]Read from MH i2c: 01 [22:30:32]MH_I2C_Read... [22:30:32]*** Stop cut motor [22:30:32]*** Cut end [22:30:32]Read from MH i2c: 01 07 00 [22:30:32]MH_I2C_Read... [22:30:32]Read from MH i2c: 01 07 00 FE 10 00 00 00 00 00 FF 0F 23 [22:30:32]process_action close_receipt done [22:30:32]requested_data is exist [22:30:32]produce_requested_data [22:30:32]requested_item fm.sn is exist - process it [22:30:32]wFMCommunicate request_size=4 [22:30:32]MH_SAM_APDU [22:30:32]CAPDU: 80 11 00 00 [22:30:32]Write to MH i2c: E2 08 00 FF 10 80 11 00 00 00 00 00 00 89 [22:30:32]Write i2c OK [22:30:32]MH_I2C_Read... [22:30:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:30:32]Read from MH i2c: E2 [22:30:32]MH_I2C_Read... [22:30:32]Read from MH i2c: E2 17 00 [22:30:32]MH_I2C_Read... [22:30:32]Read from MH i2c: E2 17 00 FF 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DF [22:30:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:30:32]wFMCommunicate OK [22:30:32]requested_item fd.num is exist - process it [22:30:32]SAM_PROTO_GetFieldsCounters [22:30:32]wFMCommunicate request_size=4 [22:30:32]MH_SAM_APDU [22:30:32]CAPDU: 80 13 00 00 [22:30:32]Write to MH i2c: E2 08 00 00 11 80 13 00 00 00 00 00 00 8D [22:30:32]Write i2c OK [22:30:32]MH_I2C_Read... [22:30:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:30:32]Read from MH i2c: E2 [22:30:32]MH_I2C_Read... [22:30:32]Read from MH i2c: E2 62 00 [22:30:32]MH_I2C_Read... [22:30:32]Read from MH i2c: E2 62 00 00 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 61 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 5A 01 00 00 5E 04 04 00 5A 01 00 00 57 04 04 00 5B 01 00 00 19 04 04 00 00 00 00 00 90 00 6F [22:30:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 61 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 5A 01 00 00 5E 04 04 00 5A 01 00 00 57 04 04 00 5B 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:30:32]wFMCommunicate OK [22:30:32]SAM_PROTO_GetFieldsCounters done [22:30:32]requested_item shift.num is exist - process it [22:30:32]requested_item shift.opened is exist - process it [22:30:32]req_shift_opened [22:30:32]FM_GetShiftState [22:30:32]SAM_PROTO_GetShiftState [22:30:32]wFMCommunicate request_size=4 [22:30:32]MH_SAM_APDU [22:30:32]CAPDU: 80 13 01 00 [22:30:32]Write to MH i2c: E2 08 00 01 11 80 13 01 00 00 00 00 00 8F [22:30:32]Write i2c OK [22:30:32]MH_I2C_Read... [22:30:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:30:32]Read from MH i2c: E2 [22:30:32]MH_I2C_Read... [22:30:32]Read from MH i2c: E2 0E 00 [22:30:32]MH_I2C_Read... [22:30:32]Read from MH i2c: E2 0E 00 01 11 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 68 [22:30:32]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [22:30:32]wFMCommunicate OK [22:30:32]SAM_PROTO_GetShiftState done [22:30:32]FM_GetShiftState done [22:30:32]req_shift_opened done [22:30:32]requested_item shift.open_date is exist - process it [22:30:32]req_shift_open_date [22:30:32]req_shift_open_date done [22:30:32]produce_requested_data done [22:30:32]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165473,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [22:30:32]process_action_free close_receipt [22:30:32]json_value_free [22:30:32]json_value_free done [22:30:32]process_json_proto returns [22:30:32]Send response to host [22:30:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165473,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [22:30:32]free response buf [22:30:32]execute_script done [22:30:32]execute_script returns [22:30:32]free content buf [22:30:32]Sock 7.Close socket [22:30:32]Sock 7.Thread stoped [22:30:36]OFD Sender: No OFD packet to send [22:30:41]OFD Sender: No OFD packet to send [22:30:46]OFD Sender: No OFD packet to send [22:30:51]OFD Sender: No OFD packet to send [22:30:56]OFD Sender: No OFD packet to send [22:31:01]OFD Sender: No OFD packet to send [22:31:06]OFD Sender: No OFD packet to send [22:31:11]OFD Sender: No OFD packet to send [22:31:16]OFD Sender: No OFD packet to send [22:31:21]OFD Sender: No OFD packet to send [22:31:26]OFD Sender: No OFD packet to send [22:31:31]OFD Sender: No OFD packet to send [22:31:36]OFD Sender: No OFD packet to send [22:31:41]OFD Sender: No OFD packet to send [22:31:46]OFD Sender: No OFD packet to send [22:31:51]OFD Sender: No OFD packet to send [22:31:56]OFD Sender: No OFD packet to send [22:32:01]OFD Sender: No OFD packet to send [22:32:06]OFD Sender: No OFD packet to send [22:32:11]OFD Sender: No OFD packet to send [22:32:16]OFD Sender: No OFD packet to send [22:32:21]OFD Sender: No OFD packet to send [22:32:26]OFD Sender: No OFD packet to send [22:32:31]OFD Sender: No OFD packet to send [22:32:36]OFD Sender: No OFD packet to send [22:32:41]OFD Sender: No OFD packet to send [22:32:46]OFD Sender: No OFD packet to send [22:32:51]OFD Sender: No OFD packet to send [22:32:56]OFD Sender: No OFD packet to send [22:32:57]accept exits with 9 [22:32:57]New connection [22:32:57]New thread 3067190628 created [22:32:57]Thread 3067333988 joined [22:32:57]Waiting for new connection... [22:32:57] Sock 9.Parse request [22:32:57]Sock 9.Check first char [22:32:57]Sock 9.First char is OK [22:32:57]request: POST /json_proto HTTP/1.0 [22:32:57]Method: POST [22:32:57]URL: /json_proto [22:32:57]Method is POST - this is cgi request [22:32:57]url: /json_proto [22:32:57]query_string will be loaded in cgi processing [22:32:57]execute_cgi json_proto POST (null) [22:32:57]execute_cgi path=json_proto method=POST [22:32:57]POST find Content-Length [22:32:57]Host: 172.17.56.4:8080 [22:32:57]Content-Length: 677 [22:32:57]Content-Type: application/json [22:32:57] [22:32:57]POST finish read [22:32:57]Found Content-Length = 677 [22:32:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459590", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:32:57]execute_script... [22:32:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459590", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:32:57]POST & json_proto [22:32:57]process_json_proto [22:32:57]json parsed OK: [22:32:57]protocol is kg_v1.0 [22:32:57]action value=close_receipt [22:32:57]process_action close_receipt [22:32:57]cmd_close_receipt [22:32:57]MH_GetDate [22:32:57]Write to MH i2c: F0 00 00 02 11 02 [22:32:57]Write i2c OK [22:32:57]MH_I2C_Read... [22:32:57]Read from MH i2c: F0 [22:32:57]MH_I2C_Read... [22:32:57]Read from MH i2c: F0 09 00 [22:32:57]MH_I2C_Read... [22:32:57]Read from MH i2c: F0 09 00 02 11 00 9A A3 95 66 C9 DC B2 64 FE [22:32:57]GetLastDocTimeStamp 1721082629 [22:32:57]current date 1721082778 [22:32:57]FM_GetShiftState [22:32:57]SAM_PROTO_GetShiftState [22:32:57]wFMCommunicate request_size=4 [22:32:57]MH_SAM_APDU [22:32:57]CAPDU: 80 13 01 00 [22:32:57]Write to MH i2c: E2 08 00 03 11 80 13 01 00 00 00 00 00 91 [22:32:57]Write i2c OK [22:32:57]MH_I2C_Read... [22:32:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:32:57]Read from MH i2c: E2 [22:32:57]MH_I2C_Read... [22:32:57]Read from MH i2c: E2 0E 00 [22:32:57]MH_I2C_Read... [22:32:57]Read from MH i2c: E2 0E 00 03 11 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 6A [22:32:57]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [22:32:57]wFMCommunicate OK [22:32:57]SAM_PROTO_GetShiftState done [22:32:57]FM_GetShiftState done [22:32:57]opened in 1721003876 [22:32:57]opened+sec_in_day 1721090276 [22:32:57]quantity*price = 30004 [22:32:57]sum+1 = 30006 [22:32:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 347 15.07.2024 22:32 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165474 ФПД: 105717363892811 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T223258&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165474&fm=105717363892811&tin=02508201610067®Number=0000000000090829&sum=30000 [22:32:58]StoreToDocumentArchive [22:32:58]shift 448 fd 165474 [22:32:58]save to /storage/0448/doc_00165474 [22:32:58]save last doc name /storage/0448/doc_00165474 to /storage/kkm_last_doc_name [22:32:58]save OK [22:32:58]Clear old archive folders... [22:32:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:32:58]tlvbuf is 01BC0E70 [22:32:58]SAM_PROTO_ClearQueue [22:32:58]wFMCommunicate request_size=4 [22:32:58]MH_SAM_APDU [22:32:58]CAPDU: 80 09 00 00 [22:32:58]Write to MH i2c: E2 08 00 10 11 80 09 00 00 00 00 00 00 93 [22:32:58]Write i2c OK [22:32:58]MH_I2C_Read... [22:32:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:32:58]Read from MH i2c: E2 [22:32:58]MH_I2C_Read... [22:32:58]Read from MH i2c: E2 03 00 [22:32:58]MH_I2C_Read... [22:32:58]Read from MH i2c: E2 03 00 10 11 00 90 00 95 [22:32:58]RAPDU: 90 00 [22:32:58]wFMCommunicate OK [22:32:58]SAM_PROTO_ClearQueue done [22:32:58]KKMCreateOFDPacket [22:32:58]OFDProtocolAddRootSTLVToBuf [22:32:58]FM_MakeSignedData [22:32:58]FM_MakeSignedData [22:32:58]SAM_PROTO_SignData [22:32:58]wFMCommunicate request_size=4 [22:32:58]MH_SAM_APDU [22:32:58]CAPDU: 80 0D 01 02 [22:32:58]Write to MH i2c: E2 08 00 11 11 80 0D 01 02 00 00 00 00 9B [22:32:58]Write i2c OK [22:32:58]MH_I2C_Read... [22:32:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:32:58]Read from MH i2c: E2 [22:32:58]MH_I2C_Read... [22:32:58]Read from MH i2c: E2 03 00 [22:32:58]MH_I2C_Read... [22:32:58]Read from MH i2c: E2 03 00 11 11 00 90 00 96 [22:32:58]RAPDU: 90 00 [22:32:58]wFMCommunicate OK [22:32:58]wFMCommunicate request_size=255 [22:32:58]MH_SAM_APDU [22:32:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 9A A3 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 62 86 02 00 35 04 06 00 60 [22:32:58]Write to MH i2c: E2 02 01 12 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 9A A3 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 62 86 02 00 35 04 06 00 60 00 00 74 [22:32:58]Write i2c OK [22:32:58]MH_I2C_Read... [22:32:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:32:58]Read from MH i2c: E2 [22:32:58]MH_I2C_Read... [22:32:58]Read from MH i2c: E2 03 00 [22:32:58]MH_I2C_Read... [22:32:58]Read from MH i2c: E2 03 00 12 11 00 90 00 97 [22:32:58]RAPDU: 90 00 [22:32:58]wFMCommunicate OK [22:32:58]wFMCommunicate request_size=10 [22:32:58]MH_SAM_APDU [22:32:58]CAPDU: 80 0D 02 02 05 26 3D EB E2 4B [22:32:58]Write to MH i2c: E2 0D 00 13 11 80 0D 02 02 05 00 26 3D EB E2 4B 00 00 23 [22:32:58]Write i2c OK [22:32:58]MH_I2C_Read... [22:32:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:32:58]Read from MH i2c: E2 [22:32:58]MH_I2C_Read... [22:32:58]Read from MH i2c: E2 03 00 [22:32:58]MH_I2C_Read... [22:32:58]Read from MH i2c: E2 03 00 13 11 00 90 00 98 [22:32:58]RAPDU: 90 00 [22:32:58]wFMCommunicate OK [22:32:58]wFMCommunicate request_size=4 [22:32:58]MH_SAM_APDU [22:32:58]CAPDU: 80 0D 03 02 [22:32:58]Write to MH i2c: E2 08 00 14 11 80 0D 03 02 00 00 00 00 A0 [22:32:58]Write i2c OK [22:32:58]MH_I2C_Read... [22:32:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:32:58]Read from MH i2c: E2 [22:32:58]MH_I2C_Read... [22:32:58]Read from MH i2c: E2 0B 00 [22:32:58]MH_I2C_Read... [22:32:58]Read from MH i2c: E2 0B 00 14 11 00 22 B5 2B 09 2C 48 17 E7 90 00 1E [22:32:58]RAPDU: 22 B5 2B 09 2C 48 17 E7 90 00 [22:32:58]wFMCommunicate OK [22:32:58]SAM_PROTO_SignData done [22:32:58]FM_MakeSignedData done [22:32:58]CreateOFDProtocolMessage [22:32:58]wFMCommunicate request_size=4 [22:32:58]MH_SAM_APDU [22:32:58]CAPDU: 80 11 00 00 [22:32:58]Write to MH i2c: E2 08 00 15 11 80 11 00 00 00 00 00 00 A0 [22:32:58]Write i2c OK [22:32:58]MH_I2C_Read... [22:32:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:32:58]Read from MH i2c: E2 [22:32:58]MH_I2C_Read... [22:32:58]Read from MH i2c: E2 17 00 [22:32:58]MH_I2C_Read... [22:32:58]Read from MH i2c: E2 17 00 15 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F6 [22:32:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:32:58]wFMCommunicate OK [22:32:58]CreateOFDProtocolMessage done [22:32:58]OFDSenderStorePacket 165474 [22:32:58]StoreOFDPacket docnum=165474 [22:32:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D8 4E 07 01 B9 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 9A A3 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 62 86 02 00 35 04 06 00 60 26 3D EB E2 4B 22 B5 2B 09 2C 48 17 E7 [22:32:58]CheckFolder [22:32:58]dirname=/storage/ofd_packets [22:32:58]CheckFolder done [22:32:58]ProducePacketName [22:32:58]name=ofd_packets/00165474 [22:32:58]NVStorageSaveData ofd_packets/00165474 [22:32:58]File name is /storage/ofd_packets/00165474 [22:32:58]Write 301 bytes [22:32:58]NVStorageSaveData done [22:32:58]OFDSenderStorePacket done [22:32:58]KKMCreateOFDPacket done [22:32:58]NVStorageSaveData kkm_last_timestamp [22:32:58]File name is /storage/kkm_last_timestamp [22:32:58]Write 4 bytes [22:32:58]NVStorageSaveData done [22:32:58]ExternCall_PrintAddStr [22:32:58]wPrintStart [22:32:58]Write to MH i2c: 01 00 00 16 11 27 [22:32:58]Write i2c OK [22:32:58]MH_I2C_Read... [22:32:58]Read from MH i2c: 01 [22:32:58]MH_I2C_Read... [22:32:58]Read from MH i2c: 01 07 00 [22:32:58]MH_I2C_Read... [22:32:58]Read from MH i2c: 01 07 00 16 11 00 00 00 00 00 FF 0F 3C [22:32:58]RasterBufferAndPrint [22:32:58]line Счет N : (1)459590 [22:32:58]line ИНН: 02508201610067 [22:32:58]line Контрольно-Кассовый Чек [22:32:58]line ПРОДАЖА [22:32:58]line ТРК (МРК, ГНК) : 12 [22:32:58]line Товар: 2710124130 [22:32:58]line Аи-92-К-5 [22:32:58]line 4.560 * 65.80 [22:32:58]line = 300.05 [22:32:58]line НДС 12% НСП 1% [22:32:58]line > о реализуемом товаре [22:32:58]line ОКРУГЛЕНИЕ: -0.05 [22:32:58]line ИТОГО: 300.00 [22:32:58]line Внесено: 300.00 [22:32:58]line СДАЧА: 0.00 [22:32:58]line НСП 1% : 2.65 [22:32:58]line НДС 12% : 31.86 [22:32:58]line Наличными: 300.00 [22:32:58]line Безнал.: 0.00 [22:32:58]line Место: АЗС № 72 "Партнер Нефть" [22:32:58]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:32:58]line СНО: Общий режим [22:32:58]line Чек 347 15.07.2024 22:32 [22:32:58]line Смена: 448 ФФД: 1.0 [22:32:58]line ЗНМ: 0300000160 [22:32:58]line РНМ: 0000000000090829 [22:32:58]line Версия ККМ: 001 [22:32:58]line ФМ: 0000000000874718 [22:32:58]line ФД: 165474 [22:32:58]line ФПД: 105717363892811 [22:32:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T223258&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165474&fm=105717363892811&tin=02508201610067®Number=0000000000090829&sum=30000 [22:32:59]written 0, free lines is 4095 [22:32:59]OFD Sender: Processing packet 165474 [packets to send 106, broken 105] [22:32:59]ProducePacketName [22:32:59]name=ofd_packets/00165474 [22:32:59]OFD Sender: To server: pG, [22:32:59]CommunicateWithHost lk.salyk.kg:30040 [22:32:59]ConnectInit lk.salyk.kg [22:32:59]Connected sock=10 [22:32:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D8 4E 07 01 B9 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 9A A3 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 62 86 02 00 35 04 06 00 60 26 3D EB E2 4B 22 B5 2B 09 2C 48 17 E7 [22:32:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 38 10 47 00 24 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 62 86 02 00 F4 03 04 00 23 4A 95 66 B6 04 01 00 00 DE 75 43 27 2B 1A C6 EF [22:32:59]CommunicateWithHost err = 0 [22:32:59]CheckOFDResponse [22:32:59]1017 (14) - 77093643461234 [22:32:59]1041 (16) - 0000000000874718 [22:32:59]1040 (4) - 165474 [22:32:59]1012 (4) - 15.07.2024 16:11 [22:32:59]1206 (1) - 0 [22:32:59]OFD Sender: Remove packet 165474 [22:32:59]ProducePacketName [22:32:59]name=ofd_packets/00165474 [22:32:59]NVStorageDeleteData [22:32:59]Write to MH i2c: 01 00 00 40 11 51 [22:32:59]Write i2c OK [22:32:59]MH_I2C_Read... [22:32:59]Read from MH i2c: 01 [22:32:59]MH_I2C_Read... [22:32:59]Read from MH i2c: 01 07 00 [22:32:59]MH_I2C_Read... [22:32:59]Read from MH i2c: 01 07 00 40 11 00 00 00 00 00 F6 0C 5A [22:32:59]RasterBufferAndPrint [22:32:59]line [22:32:59]line [22:32:59]line [22:32:59]line [22:32:59]line [22:32:59]written 0, free lines is 3324 [22:32:59]MH_Cut [22:32:59]Write to MH i2c: D1 01 00 47 11 01 2A [22:32:59]Write i2c OK [22:32:59]MH_I2C_Read... [22:32:59]Read from MH i2c: D1 [22:32:59]MH_I2C_Read... [22:32:59]Read from MH i2c: D1 01 00 [22:32:59]MH_I2C_Read... [22:32:59]Read from MH i2c: D1 01 00 47 11 00 29 [22:32:59]Write to MH i2c: 01 00 00 48 11 59 [22:32:59]Write i2c OK [22:32:59]MH_I2C_Read... [22:33:00]OFD Sender: No OFD packet to send [22:33:00]*** Cut start [22:33:00]*** Partial cut [22:33:00]*** CUTSNS_PIN = 1 [22:33:00]*** CUTSNS_PIN = 0 [22:33:00]*** Brake cut motor [22:33:00]Read from MH i2c: 01 [22:33:00]MH_I2C_Read... [22:33:00]*** Stop cut motor [22:33:00]*** Cut end [22:33:00]Read from MH i2c: 01 07 00 [22:33:00]MH_I2C_Read... [22:33:00]Read from MH i2c: 01 07 00 48 11 00 00 00 00 00 FF 0F 6E [22:33:00]process_action close_receipt done [22:33:00]requested_data is exist [22:33:00]produce_requested_data [22:33:00]requested_item fm.sn is exist - process it [22:33:00]wFMCommunicate request_size=4 [22:33:00]MH_SAM_APDU [22:33:00]CAPDU: 80 11 00 00 [22:33:00]Write to MH i2c: E2 08 00 49 11 80 11 00 00 00 00 00 00 D4 [22:33:00]Write i2c OK [22:33:00]MH_I2C_Read... [22:33:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:33:00]Read from MH i2c: E2 [22:33:00]MH_I2C_Read... [22:33:00]Read from MH i2c: E2 17 00 [22:33:00]MH_I2C_Read... [22:33:00]Read from MH i2c: E2 17 00 49 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 2A [22:33:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:33:00]wFMCommunicate OK [22:33:00]requested_item fd.num is exist - process it [22:33:00]SAM_PROTO_GetFieldsCounters [22:33:00]wFMCommunicate request_size=4 [22:33:00]MH_SAM_APDU [22:33:00]CAPDU: 80 13 00 00 [22:33:00]Write to MH i2c: E2 08 00 4A 11 80 13 00 00 00 00 00 00 D7 [22:33:00]Write i2c OK [22:33:00]MH_I2C_Read... [22:33:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:33:01]Read from MH i2c: E2 [22:33:01]MH_I2C_Read... [22:33:01]Read from MH i2c: E2 62 00 [22:33:01]MH_I2C_Read... [22:33:01]Read from MH i2c: E2 62 00 4A 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 62 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 5B 01 00 00 5E 04 04 00 5B 01 00 00 57 04 04 00 5C 01 00 00 19 04 04 00 00 00 00 00 90 00 BD [22:33:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 62 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 5B 01 00 00 5E 04 04 00 5B 01 00 00 57 04 04 00 5C 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:33:01]wFMCommunicate OK [22:33:01]SAM_PROTO_GetFieldsCounters done [22:33:01]requested_item shift.num is exist - process it [22:33:01]requested_item shift.opened is exist - process it [22:33:01]req_shift_opened [22:33:01]FM_GetShiftState [22:33:01]SAM_PROTO_GetShiftState [22:33:01]wFMCommunicate request_size=4 [22:33:01]MH_SAM_APDU [22:33:01]CAPDU: 80 13 01 00 [22:33:01]Write to MH i2c: E2 08 00 4B 11 80 13 01 00 00 00 00 00 D9 [22:33:01]Write i2c OK [22:33:01]MH_I2C_Read... [22:33:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:33:01]Read from MH i2c: E2 [22:33:01]MH_I2C_Read... [22:33:01]Read from MH i2c: E2 0E 00 [22:33:01]MH_I2C_Read... [22:33:01]Read from MH i2c: E2 0E 00 4B 11 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 B2 [22:33:01]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [22:33:01]wFMCommunicate OK [22:33:01]SAM_PROTO_GetShiftState done [22:33:01]FM_GetShiftState done [22:33:01]req_shift_opened done [22:33:01]requested_item shift.open_date is exist - process it [22:33:01]req_shift_open_date [22:33:01]req_shift_open_date done [22:33:01]produce_requested_data done [22:33:01]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165474,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [22:33:01]process_action_free close_receipt [22:33:01]json_value_free [22:33:01]json_value_free done [22:33:01]process_json_proto returns [22:33:01]Send response to host [22:33:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165474,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [22:33:01]free response buf [22:33:01]execute_script done [22:33:01]execute_script returns [22:33:01]free content buf [22:33:01]Sock 9.Close socket [22:33:01]Sock 9.Thread stoped [22:33:05]OFD Sender: No OFD packet to send [22:33:10]OFD Sender: No OFD packet to send [22:33:15]OFD Sender: No OFD packet to send [22:33:20]OFD Sender: No OFD packet to send [22:33:25]OFD Sender: No OFD packet to send [22:33:30]OFD Sender: No OFD packet to send [22:33:35]OFD Sender: No OFD packet to send [22:33:40]OFD Sender: No OFD packet to send [22:33:45]OFD Sender: No OFD packet to send [22:33:50]OFD Sender: No OFD packet to send [22:33:55]OFD Sender: No OFD packet to send [22:34:00]OFD Sender: No OFD packet to send [22:34:05]OFD Sender: No OFD packet to send [22:34:10]OFD Sender: No OFD packet to send [22:34:15]OFD Sender: No OFD packet to send [22:34:20]OFD Sender: No OFD packet to send [22:34:25]OFD Sender: No OFD packet to send [22:34:30]OFD Sender: No OFD packet to send [22:34:35]OFD Sender: No OFD packet to send [22:34:40]OFD Sender: No OFD packet to send [22:34:45]OFD Sender: No OFD packet to send [22:34:50]OFD Sender: No OFD packet to send [22:34:55]OFD Sender: No OFD packet to send [22:35:00]OFD Sender: No OFD packet to send [22:35:05]OFD Sender: No OFD packet to send [22:35:10]OFD Sender: No OFD packet to send [22:35:15]OFD Sender: No OFD packet to send [22:35:20]OFD Sender: No OFD packet to send [22:35:25]OFD Sender: No OFD packet to send [22:35:30]OFD Sender: No OFD packet to send [22:35:35]OFD Sender: No OFD packet to send [22:35:40]OFD Sender: No OFD packet to send [22:35:45]OFD Sender: No OFD packet to send [22:35:50]OFD Sender: No OFD packet to send [22:35:55]OFD Sender: No OFD packet to send [22:36:00]OFD Sender: No OFD packet to send [22:36:05]OFD Sender: No OFD packet to send [22:36:10]OFD Sender: No OFD packet to send [22:36:15]OFD Sender: No OFD packet to send [22:36:20]OFD Sender: No OFD packet to send [22:36:25]OFD Sender: No OFD packet to send [22:36:30]OFD Sender: No OFD packet to send [22:36:35]OFD Sender: No OFD packet to send [22:36:40]OFD Sender: No OFD packet to send [22:36:45]OFD Sender: No OFD packet to send [22:36:50]OFD Sender: No OFD packet to send [22:36:55]OFD Sender: No OFD packet to send [22:37:00]OFD Sender: No OFD packet to send [22:37:05]OFD Sender: No OFD packet to send [22:37:10]OFD Sender: No OFD packet to send [22:37:15]OFD Sender: No OFD packet to send [22:37:20]OFD Sender: No OFD packet to send [22:37:25]OFD Sender: No OFD packet to send [22:37:30]OFD Sender: No OFD packet to send [22:37:35]OFD Sender: No OFD packet to send [22:37:40]OFD Sender: No OFD packet to send [22:37:45]OFD Sender: No OFD packet to send [22:37:50]OFD Sender: No OFD packet to send [22:37:55]OFD Sender: No OFD packet to send [22:38:00]OFD Sender: No OFD packet to send [22:38:05]OFD Sender: No OFD packet to send [22:38:10]OFD Sender: No OFD packet to send [22:38:15]OFD Sender: No OFD packet to send [22:38:20]OFD Sender: No OFD packet to send [22:38:25]OFD Sender: No OFD packet to send [22:38:30]OFD Sender: No OFD packet to send [22:38:35]OFD Sender: No OFD packet to send [22:38:40]OFD Sender: No OFD packet to send [22:38:45]OFD Sender: No OFD packet to send [22:38:50]OFD Sender: No OFD packet to send [22:38:55]OFD Sender: No OFD packet to send [22:39:00]OFD Sender: No OFD packet to send [22:39:05]OFD Sender: No OFD packet to send [22:39:10]OFD Sender: No OFD packet to send [22:39:15]OFD Sender: No OFD packet to send [22:39:20]OFD Sender: No OFD packet to send [22:39:25]OFD Sender: No OFD packet to send [22:39:30]OFD Sender: No OFD packet to send [22:39:35]OFD Sender: No OFD packet to send [22:39:37]accept exits with 7 [22:39:37]New connection [22:39:37]New thread 3067333988 created [22:39:37]Thread 3067190628 joined [22:39:37]Waiting for new connection... [22:39:37] Sock 7.Parse request [22:39:37]Sock 7.Check first char [22:39:37]Sock 7.First char is OK [22:39:37]request: POST /json_proto HTTP/1.0 [22:39:37]Method: POST [22:39:37]URL: /json_proto [22:39:37]Method is POST - this is cgi request [22:39:37]url: /json_proto [22:39:37]query_string will be loaded in cgi processing [22:39:37]execute_cgi json_proto POST (null) [22:39:37]execute_cgi path=json_proto method=POST [22:39:37]POST find Content-Length [22:39:37]Host: 172.17.56.4:8080 [22:39:37]Content-Length: 677 [22:39:37]Content-Type: application/json [22:39:37] [22:39:37]POST finish read [22:39:37]Found Content-Length = 677 [22:39:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459591", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:39:37]execute_script... [22:39:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459591", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:39:37]POST & json_proto [22:39:37]process_json_proto [22:39:37]json parsed OK: [22:39:37]protocol is kg_v1.0 [22:39:37]action value=close_receipt [22:39:37]process_action close_receipt [22:39:37]cmd_close_receipt [22:39:37]MH_GetDate [22:39:37]Write to MH i2c: F0 00 00 4C 11 4C [22:39:37]Write i2c OK [22:39:37]MH_I2C_Read... [22:39:37]Read from MH i2c: F0 [22:39:37]MH_I2C_Read... [22:39:37]Read from MH i2c: F0 09 00 [22:39:37]MH_I2C_Read... [22:39:37]Read from MH i2c: F0 09 00 4C 11 00 2A A5 95 66 C9 DC B2 64 DA [22:39:37]GetLastDocTimeStamp 1721082778 [22:39:37]current date 1721083178 [22:39:37]FM_GetShiftState [22:39:37]SAM_PROTO_GetShiftState [22:39:37]wFMCommunicate request_size=4 [22:39:37]MH_SAM_APDU [22:39:37]CAPDU: 80 13 01 00 [22:39:37]Write to MH i2c: E2 08 00 4D 11 80 13 01 00 00 00 00 00 DB [22:39:37]Write i2c OK [22:39:37]MH_I2C_Read... [22:39:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:39:37]Read from MH i2c: E2 [22:39:37]MH_I2C_Read... [22:39:37]Read from MH i2c: E2 0E 00 [22:39:37]MH_I2C_Read... [22:39:37]Read from MH i2c: E2 0E 00 4D 11 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 B4 [22:39:37]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [22:39:37]wFMCommunicate OK [22:39:37]SAM_PROTO_GetShiftState done [22:39:37]FM_GetShiftState done [22:39:37]opened in 1721003876 [22:39:37]opened+sec_in_day 1721090276 [22:39:37]quantity*price = 20003 [22:39:37]sum+1 = 20004 [22:39:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 348 15.07.2024 22:39 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165475 ФПД: 13093704467880 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T223938&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165475&fm=13093704467880&tin=02508201610067®Number=0000000000090829&sum=20000 [22:39:38]StoreToDocumentArchive [22:39:38]shift 448 fd 165475 [22:39:38]save to /storage/0448/doc_00165475 [22:39:38]save last doc name /storage/0448/doc_00165475 to /storage/kkm_last_doc_name [22:39:38]save OK [22:39:38]Clear old archive folders... [22:39:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:39:38]tlvbuf is 01BC03D0 [22:39:38]SAM_PROTO_ClearQueue [22:39:38]wFMCommunicate request_size=4 [22:39:38]MH_SAM_APDU [22:39:38]CAPDU: 80 09 00 00 [22:39:38]Write to MH i2c: E2 08 00 5A 11 80 09 00 00 00 00 00 00 DD [22:39:38]Write i2c OK [22:39:38]MH_I2C_Read... [22:39:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:39:38]Read from MH i2c: E2 [22:39:38]MH_I2C_Read... [22:39:38]Read from MH i2c: E2 03 00 [22:39:38]MH_I2C_Read... [22:39:38]Read from MH i2c: E2 03 00 5A 11 00 90 00 DF [22:39:38]RAPDU: 90 00 [22:39:38]wFMCommunicate OK [22:39:38]SAM_PROTO_ClearQueue done [22:39:38]KKMCreateOFDPacket [22:39:38]OFDProtocolAddRootSTLVToBuf [22:39:38]FM_MakeSignedData [22:39:38]FM_MakeSignedData [22:39:38]SAM_PROTO_SignData [22:39:38]wFMCommunicate request_size=4 [22:39:38]MH_SAM_APDU [22:39:38]CAPDU: 80 0D 01 02 [22:39:38]Write to MH i2c: E2 08 00 5B 11 80 0D 01 02 00 00 00 00 E5 [22:39:38]Write i2c OK [22:39:38]MH_I2C_Read... [22:39:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:39:38]Read from MH i2c: E2 [22:39:38]MH_I2C_Read... [22:39:38]Read from MH i2c: E2 03 00 [22:39:38]MH_I2C_Read... [22:39:38]Read from MH i2c: E2 03 00 5B 11 00 90 00 E0 [22:39:38]RAPDU: 90 00 [22:39:38]wFMCommunicate OK [22:39:38]wFMCommunicate request_size=255 [22:39:38]MH_SAM_APDU [22:39: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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 2A A5 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 63 86 02 00 35 04 06 00 0B [22:39:38]Write to MH i2c: E2 02 01 5C 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 2A A5 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 63 86 02 00 35 04 06 00 0B 00 00 DD [22:39:38]Write i2c OK [22:39:38]MH_I2C_Read... [22:39:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:39:38]Read from MH i2c: E2 [22:39:38]MH_I2C_Read... [22:39:38]Read from MH i2c: E2 03 00 [22:39:38]MH_I2C_Read... [22:39:38]Read from MH i2c: E2 03 00 5C 11 00 90 00 E1 [22:39:38]RAPDU: 90 00 [22:39:38]wFMCommunicate OK [22:39:38]wFMCommunicate request_size=10 [22:39:38]MH_SAM_APDU [22:39:38]CAPDU: 80 0D 02 02 05 E8 9D 9A 85 A8 [22:39:38]Write to MH i2c: E2 0D 00 5D 11 80 0D 02 02 05 00 E8 9D 9A 85 A8 00 00 3E [22:39:38]Write i2c OK [22:39:38]MH_I2C_Read... [22:39:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:39:38]Read from MH i2c: E2 [22:39:38]MH_I2C_Read... [22:39:38]Read from MH i2c: E2 03 00 [22:39:38]MH_I2C_Read... [22:39:38]Read from MH i2c: E2 03 00 5D 11 00 90 00 E2 [22:39:38]RAPDU: 90 00 [22:39:38]wFMCommunicate OK [22:39:38]wFMCommunicate request_size=4 [22:39:38]MH_SAM_APDU [22:39:38]CAPDU: 80 0D 03 02 [22:39:38]Write to MH i2c: E2 08 00 5E 11 80 0D 03 02 00 00 00 00 EA [22:39:38]Write i2c OK [22:39:38]MH_I2C_Read... [22:39:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:39:38]Read from MH i2c: E2 [22:39:38]MH_I2C_Read... [22:39:38]Read from MH i2c: E2 0B 00 [22:39:38]MH_I2C_Read... [22:39:38]Read from MH i2c: E2 0B 00 5E 11 00 85 7B 80 4C 45 46 1E 36 90 00 96 [22:39:38]RAPDU: 85 7B 80 4C 45 46 1E 36 90 00 [22:39:38]wFMCommunicate OK [22:39:38]SAM_PROTO_SignData done [22:39:38]FM_MakeSignedData done [22:39:38]CreateOFDProtocolMessage [22:39:38]wFMCommunicate request_size=4 [22:39:38]MH_SAM_APDU [22:39:38]CAPDU: 80 11 00 00 [22:39:38]Write to MH i2c: E2 08 00 5F 11 80 11 00 00 00 00 00 00 EA [22:39:38]Write i2c OK [22:39:38]MH_I2C_Read... [22:39:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:39:38]Read from MH i2c: E2 [22:39:38]MH_I2C_Read... [22:39:38]Read from MH i2c: E2 17 00 [22:39:38]MH_I2C_Read... [22:39:38]Read from MH i2c: E2 17 00 5F 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 40 [22:39:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:39:38]wFMCommunicate OK [22:39:38]CreateOFDProtocolMessage done [22:39:38]OFDSenderStorePacket 165475 [22:39:38]StoreOFDPacket docnum=165475 [22:39:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 9D 98 07 01 B7 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 2A A5 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 63 86 02 00 35 04 06 00 0B E8 9D 9A 85 A8 85 7B 80 4C 45 46 1E 36 [22:39:38]CheckFolder [22:39:38]dirname=/storage/ofd_packets [22:39:38]CheckFolder done [22:39:38]ProducePacketName [22:39:38]name=ofd_packets/00165475 [22:39:38]NVStorageSaveData ofd_packets/00165475 [22:39:38]File name is /storage/ofd_packets/00165475 [22:39:38]Write 301 bytes [22:39:38]NVStorageSaveData done [22:39:38]OFDSenderStorePacket done [22:39:38]KKMCreateOFDPacket done [22:39:38]NVStorageSaveData kkm_last_timestamp [22:39:38]File name is /storage/kkm_last_timestamp [22:39:38]Write 4 bytes [22:39:38]NVStorageSaveData done [22:39:38]ExternCall_PrintAddStr [22:39:38]wPrintStart [22:39:38]Write to MH i2c: 01 00 00 60 11 71 [22:39:38]Write i2c OK [22:39:38]MH_I2C_Read... [22:39:38]Read from MH i2c: 01 [22:39:38]MH_I2C_Read... [22:39:38]Read from MH i2c: 01 07 00 [22:39:38]MH_I2C_Read... [22:39:38]Read from MH i2c: 01 07 00 60 11 00 00 00 00 00 FF 0F 86 [22:39:38]RasterBufferAndPrint [22:39:38]line Счет N : (1)459591 [22:39:38]line ИНН: 02508201610067 [22:39:38]line Контрольно-Кассовый Чек [22:39:38]line ПРОДАЖА [22:39:38]line ТРК (МРК, ГНК) : 22 [22:39:38]line Товар: 2710124130 [22:39:38]line Аи-92-К-5 [22:39:38]line 3.040 * 65.80 [22:39:38]line = 200.03 [22:39:38]line НДС 12% НСП 1% [22:39:38]line > о реализуемом товаре [22:39:38]line ОКРУГЛЕНИЕ: -0.03 [22:39:38]line ИТОГО: 200.00 [22:39:38]line Внесено: 200.00 [22:39:38]line СДАЧА: 0.00 [22:39:38]line НСП 1% : 1.77 [22:39:38]line НДС 12% : 21.24 [22:39:38]line Наличными: 200.00 [22:39:38]line Безнал.: 0.00 [22:39:38]line Место: АЗС № 72 "Партнер Нефть" [22:39:38]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:39:38]line СНО: Общий режим [22:39:38]line Чек 348 15.07.2024 22:39 [22:39:38]line Смена: 448 ФФД: 1.0 [22:39:38]line ЗНМ: 0300000160 [22:39:38]line РНМ: 0000000000090829 [22:39:38]line Версия ККМ: 001 [22:39:38]line ФМ: 0000000000874718 [22:39:38]line ФД: 165475 [22:39:38]line ФПД: 13093704467880 [22:39:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T223938&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165475&fm=13093704467880&tin=02508201610067®Number=0000000000090829&sum=20000 [22:39:39]written 0, free lines is 4095 [22:39:39]OFD Sender: Processing packet 165475 [packets to send 106, broken 105] [22:39:39]ProducePacketName [22:39:39]name=ofd_packets/00165475 [22:39:39]OFD Sender: To server: pG, [22:39:39]CommunicateWithHost lk.salyk.kg:30040 [22:39:39]ConnectInit lk.salyk.kg [22:39:39]Connected sock=10 [22:39:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 9D 98 07 01 B7 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 2A A5 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 63 86 02 00 35 04 06 00 0B E8 9D 9A 85 A8 85 7B 80 4C 45 46 1E 36 [22:39:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 4B 53 47 00 AE 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 63 86 02 00 F4 03 04 00 B3 4B 95 66 B6 04 01 00 00 36 5B 94 6E 9C 39 CC E1 [22:39:39]CommunicateWithHost err = 0 [22:39:39]CheckOFDResponse [22:39:39]1017 (14) - 77093643461234 [22:39:39]1041 (16) - 0000000000874718 [22:39:39]1040 (4) - 165475 [22:39:39]1012 (4) - 15.07.2024 16:17 [22:39:39]1206 (1) - 0 [22:39:39]OFD Sender: Remove packet 165475 [22:39:39]ProducePacketName [22:39:39]name=ofd_packets/00165475 [22:39:39]NVStorageDeleteData [22:39:39]Write to MH i2c: 01 00 00 8A 11 9B [22:39:39]Write i2c OK [22:39:39]MH_I2C_Read... [22:39:39]Read from MH i2c: 01 [22:39:39]MH_I2C_Read... [22:39:39]Read from MH i2c: 01 07 00 [22:39:39]MH_I2C_Read... [22:39:39]Read from MH i2c: 01 07 00 8A 11 00 00 00 00 00 F3 0C A1 [22:39:39]RasterBufferAndPrint [22:39:39]line [22:39:39]line [22:39:39]line [22:39:39]line [22:39:39]line [22:39:39]written 0, free lines is 3323 [22:39:39]MH_Cut [22:39:39]Write to MH i2c: D1 01 00 91 11 01 74 [22:39:39]Write i2c OK [22:39:39]MH_I2C_Read... [22:39:39]Read from MH i2c: D1 [22:39:39]MH_I2C_Read... [22:39:39]Read from MH i2c: D1 01 00 [22:39:39]MH_I2C_Read... [22:39:39]Read from MH i2c: D1 01 00 91 11 00 73 [22:39:39]Write to MH i2c: 01 00 00 92 11 A3 [22:39:39]Write i2c OK [22:39:39]MH_I2C_Read... [22:39:40]OFD Sender: No OFD packet to send [22:39:40]*** Cut start [22:39:40]*** Partial cut [22:39:40]*** CUTSNS_PIN = 1 [22:39:40]*** CUTSNS_PIN = 0 [22:39:40]*** Brake cut motor [22:39:40]Read from MH i2c: 01 [22:39:40]MH_I2C_Read... [22:39:40]*** Stop cut motor [22:39:40]*** Cut end [22:39:40]Read from MH i2c: 01 07 00 [22:39:40]MH_I2C_Read... [22:39:40]Read from MH i2c: 01 07 00 92 11 00 00 00 00 00 FF 0F B8 [22:39:40]process_action close_receipt done [22:39:40]requested_data is exist [22:39:40]produce_requested_data [22:39:40]requested_item fm.sn is exist - process it [22:39:40]wFMCommunicate request_size=4 [22:39:40]MH_SAM_APDU [22:39:40]CAPDU: 80 11 00 00 [22:39:40]Write to MH i2c: E2 08 00 93 11 80 11 00 00 00 00 00 00 1E [22:39:40]Write i2c OK [22:39:40]MH_I2C_Read... [22:39:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:39:40]Read from MH i2c: E2 [22:39:40]MH_I2C_Read... [22:39:40]Read from MH i2c: E2 17 00 [22:39:40]MH_I2C_Read... [22:39:40]Read from MH i2c: E2 17 00 93 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 74 [22:39:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:39:40]wFMCommunicate OK [22:39:40]requested_item fd.num is exist - process it [22:39:40]SAM_PROTO_GetFieldsCounters [22:39:40]wFMCommunicate request_size=4 [22:39:40]MH_SAM_APDU [22:39:40]CAPDU: 80 13 00 00 [22:39:40]Write to MH i2c: E2 08 00 94 11 80 13 00 00 00 00 00 00 21 [22:39:40]Write i2c OK [22:39:40]MH_I2C_Read... [22:39:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:39:41]Read from MH i2c: E2 [22:39:41]MH_I2C_Read... [22:39:41]Read from MH i2c: E2 62 00 [22:39:41]MH_I2C_Read... [22:39:41]Read from MH i2c: E2 62 00 94 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 63 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 5C 01 00 00 5E 04 04 00 5C 01 00 00 57 04 04 00 5D 01 00 00 19 04 04 00 00 00 00 00 90 00 0B [22:39: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 63 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 5C 01 00 00 5E 04 04 00 5C 01 00 00 57 04 04 00 5D 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:39:41]wFMCommunicate OK [22:39:41]SAM_PROTO_GetFieldsCounters done [22:39:41]requested_item shift.num is exist - process it [22:39:41]requested_item shift.opened is exist - process it [22:39:41]req_shift_opened [22:39:41]FM_GetShiftState [22:39:41]SAM_PROTO_GetShiftState [22:39:41]wFMCommunicate request_size=4 [22:39:41]MH_SAM_APDU [22:39:41]CAPDU: 80 13 01 00 [22:39:41]Write to MH i2c: E2 08 00 95 11 80 13 01 00 00 00 00 00 23 [22:39:41]Write i2c OK [22:39:41]MH_I2C_Read... [22:39:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:39:41]Read from MH i2c: E2 [22:39:41]MH_I2C_Read... [22:39:41]Read from MH i2c: E2 0E 00 [22:39:41]MH_I2C_Read... [22:39:41]Read from MH i2c: E2 0E 00 95 11 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 FC [22:39:41]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [22:39:41]wFMCommunicate OK [22:39:41]SAM_PROTO_GetShiftState done [22:39:41]FM_GetShiftState done [22:39:41]req_shift_opened done [22:39:41]requested_item shift.open_date is exist - process it [22:39:41]req_shift_open_date [22:39:41]req_shift_open_date done [22:39:41]produce_requested_data done [22:39:41]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165475,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [22:39:41]process_action_free close_receipt [22:39:41]json_value_free [22:39:41]json_value_free done [22:39:41]process_json_proto returns [22:39:41]Send response to host [22:39:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165475,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [22:39:41]free response buf [22:39:41]execute_script done [22:39:41]execute_script returns [22:39:41]free content buf [22:39:41]Sock 7.Close socket [22:39:41]Sock 7.Thread stoped [22:39:45]OFD Sender: No OFD packet to send [22:39:50]OFD Sender: No OFD packet to send [22:39:55]OFD Sender: No OFD packet to send [22:40:00]OFD Sender: No OFD packet to send [22:40:05]OFD Sender: No OFD packet to send [22:40:10]OFD Sender: No OFD packet to send [22:40:15]OFD Sender: No OFD packet to send [22:40:20]OFD Sender: No OFD packet to send [22:40:25]OFD Sender: No OFD packet to send [22:40:30]OFD Sender: No OFD packet to send [22:40:35]OFD Sender: No OFD packet to send [22:40:40]OFD Sender: No OFD packet to send [22:40:45]OFD Sender: No OFD packet to send [22:40:50]OFD Sender: No OFD packet to send [22:40:54]accept exits with 9 [22:40:54]New connection [22:40:54]New thread 3067190628 created [22:40:54]Thread 3067333988 joined [22:40:54]Waiting for new connection... [22:40:54] Sock 9.Parse request [22:40:54]Sock 9.Check first char [22:40:54]Sock 9.First char is OK [22:40:54]request: POST /json_proto HTTP/1.0 [22:40:54]Method: POST [22:40:54]URL: /json_proto [22:40:54]Method is POST - this is cgi request [22:40:54]url: /json_proto [22:40:54]query_string will be loaded in cgi processing [22:40:54]execute_cgi json_proto POST (null) [22:40:54]execute_cgi path=json_proto method=POST [22:40:54]POST find Content-Length [22:40:54]Host: 172.17.56.4:8080 [22:40:54]Content-Length: 674 [22:40:54]Content-Type: application/json [22:40:54] [22:40:54]POST finish read [22:40:54]Found Content-Length = 674 [22:40:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459592", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 4.870, "sum" : 350.15, "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" ] } } [22:40:54]execute_script... [22:40: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)459592", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 4.870, "sum" : 350.15, "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" ] } } [22:40:54]POST & json_proto [22:40:54]process_json_proto [22:40:54]json parsed OK: [22:40:54]protocol is kg_v1.0 [22:40:54]action value=close_receipt [22:40:54]process_action close_receipt [22:40:54]cmd_close_receipt [22:40:54]MH_GetDate [22:40:54]Write to MH i2c: F0 00 00 96 11 96 [22:40:54]Write i2c OK [22:40:54]MH_I2C_Read... [22:40:54]Read from MH i2c: F0 [22:40:54]MH_I2C_Read... [22:40:54]Read from MH i2c: F0 09 00 [22:40:54]MH_I2C_Read... [22:40:54]Read from MH i2c: F0 09 00 96 11 00 77 A5 95 66 C9 DC B2 64 71 [22:40:54]GetLastDocTimeStamp 1721083178 [22:40:54]current date 1721083255 [22:40:54]FM_GetShiftState [22:40:54]SAM_PROTO_GetShiftState [22:40:54]wFMCommunicate request_size=4 [22:40:54]MH_SAM_APDU [22:40:54]CAPDU: 80 13 01 00 [22:40:54]Write to MH i2c: E2 08 00 97 11 80 13 01 00 00 00 00 00 25 [22:40:54]Write i2c OK [22:40:54]MH_I2C_Read... [22:40:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:40:54]Read from MH i2c: E2 [22:40:54]MH_I2C_Read... [22:40:54]Read from MH i2c: E2 0E 00 [22:40:54]MH_I2C_Read... [22:40:54]Read from MH i2c: E2 0E 00 97 11 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 FE [22:40:54]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [22:40:54]wFMCommunicate OK [22:40:54]SAM_PROTO_GetShiftState done [22:40:54]FM_GetShiftState done [22:40:54]opened in 1721003876 [22:40:54]opened+sec_in_day 1721090276 [22:40:54]quantity*price = 35015 [22:40:54]sum+1 = 35016 [22:40:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.18 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 349 15.07.2024 22:40 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165476 ФПД: 78075462647618 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T224055&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165476&fm=78075462647618&tin=02508201610067®Number=0000000000090829&sum=35000 [22:40:55]StoreToDocumentArchive [22:40:55]shift 448 fd 165476 [22:40:55]save to /storage/0448/doc_00165476 [22:40:55]save last doc name /storage/0448/doc_00165476 to /storage/kkm_last_doc_name [22:40:55]save OK [22:40:55]Clear old archive folders... [22:40:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:40:55]tlvbuf is 01B87120 [22:40:55]SAM_PROTO_ClearQueue [22:40:55]wFMCommunicate request_size=4 [22:40:55]MH_SAM_APDU [22:40:55]CAPDU: 80 09 00 00 [22:40:55]Write to MH i2c: E2 08 00 A4 11 80 09 00 00 00 00 00 00 27 [22:40:55]Write i2c OK [22:40:55]MH_I2C_Read... [22:40:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:40:55]Read from MH i2c: E2 [22:40:55]MH_I2C_Read... [22:40:55]Read from MH i2c: E2 03 00 [22:40:55]MH_I2C_Read... [22:40:55]Read from MH i2c: E2 03 00 A4 11 00 90 00 29 [22:40:55]RAPDU: 90 00 [22:40:55]wFMCommunicate OK [22:40:55]SAM_PROTO_ClearQueue done [22:40:55]KKMCreateOFDPacket [22:40:55]OFDProtocolAddRootSTLVToBuf [22:40:55]FM_MakeSignedData [22:40:55]FM_MakeSignedData [22:40:55]SAM_PROTO_SignData [22:40:55]wFMCommunicate request_size=4 [22:40:55]MH_SAM_APDU [22:40:55]CAPDU: 80 0D 01 02 [22:40:55]Write to MH i2c: E2 08 00 A5 11 80 0D 01 02 00 00 00 00 2F [22:40:55]Write i2c OK [22:40:55]MH_I2C_Read... [22:40:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:40:55]Read from MH i2c: E2 [22:40:55]MH_I2C_Read... [22:40:55]Read from MH i2c: E2 03 00 [22:40:55]MH_I2C_Read... [22:40:55]Read from MH i2c: E2 03 00 A5 11 00 90 00 2A [22:40:55]RAPDU: 90 00 [22:40:55]wFMCommunicate OK [22:40:55]wFMCommunicate request_size=255 [22:40:55]MH_SAM_APDU [22:40:55]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 06 13 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C7 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 86 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 5D 01 00 00 F4 03 04 00 77 A5 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 64 86 02 00 35 04 06 00 47 02 5C 37 [22:40:55]Write to MH i2c: E2 02 01 A6 11 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 06 13 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C7 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 86 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 5D 01 00 00 F4 03 04 00 77 A5 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 64 86 02 00 35 04 06 00 47 02 5C 37 00 00 75 [22:40:55]Write i2c OK [22:40:55]MH_I2C_Read... [22:40:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:40:55]Read from MH i2c: E2 [22:40:55]MH_I2C_Read... [22:40:55]Read from MH i2c: E2 03 00 [22:40:55]MH_I2C_Read... [22:40:55]Read from MH i2c: E2 03 00 A6 11 00 90 00 2B [22:40:55]RAPDU: 90 00 [22:40:55]wFMCommunicate OK [22:40:55]wFMCommunicate request_size=7 [22:40:55]MH_SAM_APDU [22:40:55]CAPDU: 80 0D 02 02 02 7F 42 [22:40:55]Write to MH i2c: E2 0A 00 A7 11 80 0D 02 02 02 00 7F 42 00 00 F7 [22:40:55]Write i2c OK [22:40:55]MH_I2C_Read... [22:40:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:40:55]Read from MH i2c: E2 [22:40:55]MH_I2C_Read... [22:40:55]Read from MH i2c: E2 03 00 [22:40:55]MH_I2C_Read... [22:40:55]Read from MH i2c: E2 03 00 A7 11 00 90 00 2C [22:40:55]RAPDU: 90 00 [22:40:55]wFMCommunicate OK [22:40:55]wFMCommunicate request_size=4 [22:40:55]MH_SAM_APDU [22:40:55]CAPDU: 80 0D 03 02 [22:40:55]Write to MH i2c: E2 08 00 A8 11 80 0D 03 02 00 00 00 00 34 [22:40:55]Write i2c OK [22:40:55]MH_I2C_Read... [22:40:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:40:55]Read from MH i2c: E2 [22:40:55]MH_I2C_Read... [22:40:55]Read from MH i2c: E2 0B 00 [22:40:55]MH_I2C_Read... [22:40:55]Read from MH i2c: E2 0B 00 A8 11 00 FF 63 64 1B CB 64 D3 FB 90 00 13 [22:40:55]RAPDU: FF 63 64 1B CB 64 D3 FB 90 00 [22:40:55]wFMCommunicate OK [22:40:55]SAM_PROTO_SignData done [22:40:55]FM_MakeSignedData done [22:40:55]CreateOFDProtocolMessage [22:40:55]wFMCommunicate request_size=4 [22:40:55]MH_SAM_APDU [22:40:55]CAPDU: 80 11 00 00 [22:40:55]Write to MH i2c: E2 08 00 A9 11 80 11 00 00 00 00 00 00 34 [22:40:55]Write i2c OK [22:40:55]MH_I2C_Read... [22:40:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:40:55]Read from MH i2c: E2 [22:40:55]MH_I2C_Read... [22:40:55]Read from MH i2c: E2 17 00 [22:40:55]MH_I2C_Read... [22:40:55]Read from MH i2c: E2 17 00 A9 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8A [22:40:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:40:55]wFMCommunicate OK [22:40:55]CreateOFDProtocolMessage done [22:40:55]OFDSenderStorePacket 165476 [22:40:55]StoreOFDPacket docnum=165476 [22:40:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 52 FD 04 01 49 F3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 06 13 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C7 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 86 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 5D 01 00 00 F4 03 04 00 77 A5 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 64 86 02 00 35 04 06 00 47 02 5C 37 7F 42 FF 63 64 1B CB 64 D3 FB [22:40:55]CheckFolder [22:40:55]dirname=/storage/ofd_packets [22:40:55]CheckFolder done [22:40:55]ProducePacketName [22:40:55]name=ofd_packets/00165476 [22:40:55]NVStorageSaveData ofd_packets/00165476 [22:40:55]File name is /storage/ofd_packets/00165476 [22:40:55]Write 298 bytes [22:40:55]NVStorageSaveData done [22:40:55]OFDSenderStorePacket done [22:40:55]KKMCreateOFDPacket done [22:40:55]NVStorageSaveData kkm_last_timestamp [22:40:55]File name is /storage/kkm_last_timestamp [22:40:55]Write 4 bytes [22:40:55]NVStorageSaveData done [22:40:55]ExternCall_PrintAddStr [22:40:55]wPrintStart [22:40:55]Write to MH i2c: 01 00 00 AA 11 BB [22:40:55]Write i2c OK [22:40:55]MH_I2C_Read... [22:40:55]Read from MH i2c: 01 [22:40:55]MH_I2C_Read... [22:40:55]Read from MH i2c: 01 07 00 [22:40:55]MH_I2C_Read... [22:40:55]Read from MH i2c: 01 07 00 AA 11 00 00 00 00 00 FF 0F D0 [22:40:55]RasterBufferAndPrint [22:40:55]line Счет N : (1)459592 [22:40:55]line ИНН: 02508201610067 [22:40:55]line Контрольно-Кассовый Чек [22:40:55]line ПРОДАЖА [22:40:55]line ТРК (МРК, ГНК) : 11 [22:40:55]line Товар: 2710194210 [22:40:55]line ДТ-К-5 [22:40:55]line 4.870 * 71.90 [22:40:55]line = 350.15 [22:40:55]line НДС 12% НСП 1% [22:40:55]line > о реализуемом товаре [22:40:55]line ОКРУГЛЕНИЕ: -0.15 [22:40:55]line ИТОГО: 350.00 [22:40:55]line Внесено: 350.00 [22:40:55]line СДАЧА: 0.00 [22:40:55]line НСП 1% : 3.10 [22:40:55]line НДС 12% : 37.18 [22:40:55]line Наличными: 350.00 [22:40:55]line Безнал.: 0.00 [22:40:55]line Место: АЗС № 72 "Партнер Нефть" [22:40:55]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:40:55]line СНО: Общий режим [22:40:55]line Чек 349 15.07.2024 22:40 [22:40:55]line Смена: 448 ФФД: 1.0 [22:40:55]line ЗНМ: 0300000160 [22:40:55]line РНМ: 0000000000090829 [22:40:55]line Версия ККМ: 001 [22:40:55]line ФМ: 0000000000874718 [22:40:55]line ФД: 165476 [22:40:55]line ФПД: 78075462647618 [22:40:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T224055&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165476&fm=78075462647618&tin=02508201610067®Number=0000000000090829&sum=35000 [22:40:56]OFD Sender: Processing packet 165476 [packets to send 106, broken 105] [22:40:56]ProducePacketName [22:40:56]name=ofd_packets/00165476 [22:40:56]OFD Sender: To server: pG, [22:40:56]CommunicateWithHost lk.salyk.kg:30040 [22:40:56]ConnectInit lk.salyk.kg [22:40:56]written 0, free lines is 4095 [22:40:56]Connected sock=10 [22:40: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 37 31 38 0C 01 00 00 52 FD 04 01 49 F3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 06 13 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C7 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 86 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 5D 01 00 00 F4 03 04 00 77 A5 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 64 86 02 00 35 04 06 00 47 02 5C 37 7F 42 FF 63 64 1B CB 64 D3 FB [22:40:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 C1 BF 47 00 D8 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 64 86 02 00 F4 03 04 00 00 4C 95 66 B6 04 01 00 00 2C 83 96 EB 96 E8 6F 08 [22:40:56]CommunicateWithHost err = 0 [22:40:56]CheckOFDResponse [22:40:56]1017 (14) - 77093643461234 [22:40:56]1041 (16) - 0000000000874718 [22:40:56]1040 (4) - 165476 [22:40:56]1012 (4) - 15.07.2024 16:19 [22:40:56]1206 (1) - 0 [22:40:56]OFD Sender: Remove packet 165476 [22:40:56]ProducePacketName [22:40:56]name=ofd_packets/00165476 [22:40:56]NVStorageDeleteData [22:40:56]Write to MH i2c: 01 00 00 D4 11 E5 [22:40:56]Write i2c OK [22:40:56]MH_I2C_Read... [22:40:56]Read from MH i2c: 01 [22:40:56]MH_I2C_Read... [22:40:56]Read from MH i2c: 01 07 00 [22:40:56]MH_I2C_Read... [22:40:56]Read from MH i2c: 01 07 00 D4 11 00 00 00 00 00 02 0D FB [22:40:56]RasterBufferAndPrint [22:40:56]line [22:40:56]line [22:40:56]line [22:40:56]line [22:40:56]line [22:40:56]written 0, free lines is 3336 [22:40:56]MH_Cut [22:40:56]Write to MH i2c: D1 01 00 DB 11 01 BE [22:40:56]Write i2c OK [22:40:56]MH_I2C_Read... [22:40:56]Read from MH i2c: D1 [22:40:56]MH_I2C_Read... [22:40:56]Read from MH i2c: D1 01 00 [22:40:56]MH_I2C_Read... [22:40:56]Read from MH i2c: D1 01 00 DB 11 00 BD [22:40:56]Write to MH i2c: 01 00 00 DC 11 ED [22:40:56]Write i2c OK [22:40:56]MH_I2C_Read... [22:40:57]OFD Sender: No OFD packet to send [22:40:57]*** Cut start [22:40:57]*** Partial cut [22:40:57]*** CUTSNS_PIN = 1 [22:40:57]*** CUTSNS_PIN = 0 [22:40:57]*** Brake cut motor [22:40:57]Read from MH i2c: 01 [22:40:57]MH_I2C_Read... [22:40:57]*** Stop cut motor [22:40:57]*** Cut end [22:40:57]Read from MH i2c: 01 07 00 [22:40:57]MH_I2C_Read... [22:40:57]Read from MH i2c: 01 07 00 DC 11 00 00 00 00 00 FF 0F 02 [22:40:57]process_action close_receipt done [22:40:57]requested_data is exist [22:40:57]produce_requested_data [22:40:57]requested_item fm.sn is exist - process it [22:40:57]wFMCommunicate request_size=4 [22:40:57]MH_SAM_APDU [22:40:57]CAPDU: 80 11 00 00 [22:40:57]Write to MH i2c: E2 08 00 DD 11 80 11 00 00 00 00 00 00 68 [22:40:57]Write i2c OK [22:40:57]MH_I2C_Read... [22:40:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:40:58]Read from MH i2c: E2 [22:40:58]MH_I2C_Read... [22:40:58]Read from MH i2c: E2 17 00 [22:40:58]MH_I2C_Read... [22:40:58]Read from MH i2c: E2 17 00 DD 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 BE [22:40:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:40:58]wFMCommunicate OK [22:40:58]requested_item fd.num is exist - process it [22:40:58]SAM_PROTO_GetFieldsCounters [22:40:58]wFMCommunicate request_size=4 [22:40:58]MH_SAM_APDU [22:40:58]CAPDU: 80 13 00 00 [22:40:58]Write to MH i2c: E2 08 00 DE 11 80 13 00 00 00 00 00 00 6B [22:40:58]Write i2c OK [22:40:58]MH_I2C_Read... [22:40:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:40:58]Read from MH i2c: E2 [22:40:58]MH_I2C_Read... [22:40:58]Read from MH i2c: E2 62 00 [22:40:58]MH_I2C_Read... [22:40:58]Read from MH i2c: E2 62 00 DE 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 64 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 5D 01 00 00 5E 04 04 00 5D 01 00 00 57 04 04 00 5E 01 00 00 19 04 04 00 00 00 00 00 90 00 59 [22:40: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 64 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 5D 01 00 00 5E 04 04 00 5D 01 00 00 57 04 04 00 5E 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:40:58]wFMCommunicate OK [22:40:58]SAM_PROTO_GetFieldsCounters done [22:40:58]requested_item shift.num is exist - process it [22:40:58]requested_item shift.opened is exist - process it [22:40:58]req_shift_opened [22:40:58]FM_GetShiftState [22:40:58]SAM_PROTO_GetShiftState [22:40:58]wFMCommunicate request_size=4 [22:40:58]MH_SAM_APDU [22:40:58]CAPDU: 80 13 01 00 [22:40:58]Write to MH i2c: E2 08 00 DF 11 80 13 01 00 00 00 00 00 6D [22:40:58]Write i2c OK [22:40:58]MH_I2C_Read... [22:40:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:40:58]Read from MH i2c: E2 [22:40:58]MH_I2C_Read... [22:40:58]Read from MH i2c: E2 0E 00 [22:40:58]MH_I2C_Read... [22:40:58]Read from MH i2c: E2 0E 00 DF 11 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 46 [22:40:58]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [22:40:58]wFMCommunicate OK [22:40:58]SAM_PROTO_GetShiftState done [22:40:58]FM_GetShiftState done [22:40:58]req_shift_opened done [22:40:58]requested_item shift.open_date is exist - process it [22:40:58]req_shift_open_date [22:40:58]req_shift_open_date done [22:40:58]produce_requested_data done [22:40:58]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165476,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [22:40:58]process_action_free close_receipt [22:40:58]json_value_free [22:40:58]json_value_free done [22:40:58]process_json_proto returns [22:40:58]Send response to host [22:40:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165476,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [22:40:58]free response buf [22:40:58]execute_script done [22:40:58]execute_script returns [22:40:58]free content buf [22:40:58]Sock 9.Close socket [22:40:58]Sock 9.Thread stoped [22:41:02]OFD Sender: No OFD packet to send [22:41:07]OFD Sender: No OFD packet to send [22:41:12]OFD Sender: No OFD packet to send [22:41:17]OFD Sender: No OFD packet to send [22:41:22]OFD Sender: No OFD packet to send [22:41:27]OFD Sender: No OFD packet to send [22:41:32]OFD Sender: No OFD packet to send [22:41:37]OFD Sender: No OFD packet to send [22:41:42]OFD Sender: No OFD packet to send [22:41:47]OFD Sender: No OFD packet to send [22:41:52]OFD Sender: No OFD packet to send [22:41:57]OFD Sender: No OFD packet to send [22:42:02]OFD Sender: No OFD packet to send [22:42:07]OFD Sender: No OFD packet to send [22:42:12]OFD Sender: No OFD packet to send [22:42:17]OFD Sender: No OFD packet to send [22:42:22]OFD Sender: No OFD packet to send [22:42:27]OFD Sender: No OFD packet to send [22:42:32]OFD Sender: No OFD packet to send [22:42:37]OFD Sender: No OFD packet to send [22:42:42]OFD Sender: No OFD packet to send [22:42:47]OFD Sender: No OFD packet to send [22:42:52]OFD Sender: No OFD packet to send [22:42:57]OFD Sender: No OFD packet to send [22:43:02]OFD Sender: No OFD packet to send [22:43:07]OFD Sender: No OFD packet to send [22:43:12]OFD Sender: No OFD packet to send [22:43:17]OFD Sender: No OFD packet to send [22:43:22]OFD Sender: No OFD packet to send [22:43:27]OFD Sender: No OFD packet to send [22:43:32]OFD Sender: No OFD packet to send [22:43:37]OFD Sender: No OFD packet to send [22:43:42]OFD Sender: No OFD packet to send [22:43:47]OFD Sender: No OFD packet to send [22:43:52]OFD Sender: No OFD packet to send [22:43:57]OFD Sender: No OFD packet to send [22:44:02]OFD Sender: No OFD packet to send [22:44:07]OFD Sender: No OFD packet to send [22:44:12]OFD Sender: No OFD packet to send [22:44:17]OFD Sender: No OFD packet to send [22:44:22]OFD Sender: No OFD packet to send [22:44:27]OFD Sender: No OFD packet to send [22:44:32]OFD Sender: No OFD packet to send [22:44:37]OFD Sender: No OFD packet to send [22:44:38]accept exits with 7 [22:44:38]New connection [22:44:38]New thread 3067333988 created [22:44:38]Thread 3067190628 joined [22:44:38]Waiting for new connection... [22:44:38] Sock 7.Parse request [22:44:38]Sock 7.Check first char [22:44:38]Sock 7.First char is OK [22:44:38]request: POST /json_proto HTTP/1.0 [22:44:38]Method: POST [22:44:38]URL: /json_proto [22:44:38]Method is POST - this is cgi request [22:44:38]url: /json_proto [22:44:38]query_string will be loaded in cgi processing [22:44:38]execute_cgi json_proto POST (null) [22:44:38]execute_cgi path=json_proto method=POST [22:44:38]POST find Content-Length [22:44:38]Host: 172.17.56.4:8080 [22:44:38]Content-Length: 677 [22:44:38]Content-Type: application/json [22:44:38] [22:44:38]POST finish read [22:44:38]Found Content-Length = 677 [22:44:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459593", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:44:38]execute_script... [22:44:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459593", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:44:38]POST & json_proto [22:44:38]process_json_proto [22:44:38]json parsed OK: [22:44:38]protocol is kg_v1.0 [22:44:38]action value=close_receipt [22:44:38]process_action close_receipt [22:44:38]cmd_close_receipt [22:44:38]MH_GetDate [22:44:38]Write to MH i2c: F0 00 00 E0 11 E0 [22:44:38]Write i2c OK [22:44:38]MH_I2C_Read... [22:44:38]Read from MH i2c: F0 [22:44:38]MH_I2C_Read... [22:44:38]Read from MH i2c: F0 09 00 [22:44:38]MH_I2C_Read... [22:44:38]Read from MH i2c: F0 09 00 E0 11 00 58 A6 95 66 C9 DC B2 64 9D [22:44:38]GetLastDocTimeStamp 1721083255 [22:44:38]current date 1721083480 [22:44:38]FM_GetShiftState [22:44:38]SAM_PROTO_GetShiftState [22:44:38]wFMCommunicate request_size=4 [22:44:38]MH_SAM_APDU [22:44:38]CAPDU: 80 13 01 00 [22:44:38]Write to MH i2c: E2 08 00 E1 11 80 13 01 00 00 00 00 00 6F [22:44:38]Write i2c OK [22:44:38]MH_I2C_Read... [22:44:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:44:38]Read from MH i2c: E2 [22:44:38]MH_I2C_Read... [22:44:38]Read from MH i2c: E2 0E 00 [22:44:38]MH_I2C_Read... [22:44:38]Read from MH i2c: E2 0E 00 E1 11 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 48 [22:44:38]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [22:44:38]wFMCommunicate OK [22:44:38]SAM_PROTO_GetShiftState done [22:44:38]FM_GetShiftState done [22:44:38]opened in 1721003876 [22:44:38]opened+sec_in_day 1721090276 [22:44:38]quantity*price = 30004 [22:44:38]sum+1 = 30006 [22:44:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 350 15.07.2024 22:44 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165477 ФПД: 223094377696213 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T224440&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165477&fm=223094377696213&tin=02508201610067®Number=0000000000090829&sum=30000 [22:44:39]StoreToDocumentArchive [22:44:39]shift 448 fd 165477 [22:44:39]save to /storage/0448/doc_00165477 [22:44:39]save last doc name /storage/0448/doc_00165477 to /storage/kkm_last_doc_name [22:44:39]save OK [22:44:39]Clear old archive folders... [22:44:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:44:39]tlvbuf is 01B86840 [22:44:39]SAM_PROTO_ClearQueue [22:44:39]wFMCommunicate request_size=4 [22:44:39]MH_SAM_APDU [22:44:39]CAPDU: 80 09 00 00 [22:44:39]Write to MH i2c: E2 08 00 EE 11 80 09 00 00 00 00 00 00 71 [22:44:39]Write i2c OK [22:44:39]MH_I2C_Read... [22:44:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:44:39]Read from MH i2c: E2 [22:44:39]MH_I2C_Read... [22:44:39]Read from MH i2c: E2 03 00 [22:44:39]MH_I2C_Read... [22:44:39]Read from MH i2c: E2 03 00 EE 11 00 90 00 73 [22:44:39]RAPDU: 90 00 [22:44:39]wFMCommunicate OK [22:44:39]SAM_PROTO_ClearQueue done [22:44:39]KKMCreateOFDPacket [22:44:39]OFDProtocolAddRootSTLVToBuf [22:44:39]FM_MakeSignedData [22:44:39]FM_MakeSignedData [22:44:39]SAM_PROTO_SignData [22:44:39]wFMCommunicate request_size=4 [22:44:39]MH_SAM_APDU [22:44:39]CAPDU: 80 0D 01 02 [22:44:39]Write to MH i2c: E2 08 00 EF 11 80 0D 01 02 00 00 00 00 79 [22:44:39]Write i2c OK [22:44:39]MH_I2C_Read... [22:44:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:44:39]Read from MH i2c: E2 [22:44:39]MH_I2C_Read... [22:44:39]Read from MH i2c: E2 03 00 [22:44:39]MH_I2C_Read... [22:44:39]Read from MH i2c: E2 03 00 EF 11 00 90 00 74 [22:44:39]RAPDU: 90 00 [22:44:39]wFMCommunicate OK [22:44:39]wFMCommunicate request_size=255 [22:44:39]MH_SAM_APDU [22:44:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 58 A6 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 65 86 02 00 35 04 06 00 CA [22:44:39]Write to MH i2c: E2 02 01 F0 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 58 A6 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 65 86 02 00 35 04 06 00 CA 00 00 83 [22:44:39]Write i2c OK [22:44:39]MH_I2C_Read... [22:44:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:44:40]Read from MH i2c: E2 [22:44:40]MH_I2C_Read... [22:44:40]Read from MH i2c: E2 03 00 [22:44:40]MH_I2C_Read... [22:44:40]Read from MH i2c: E2 03 00 F0 11 00 90 00 75 [22:44:40]RAPDU: 90 00 [22:44:40]wFMCommunicate OK [22:44:40]wFMCommunicate request_size=10 [22:44:40]MH_SAM_APDU [22:44:40]CAPDU: 80 0D 02 02 05 E7 35 22 4B D5 [22:44:40]Write to MH i2c: E2 0D 00 F1 11 80 0D 02 02 05 00 E7 35 22 4B D5 00 00 E4 [22:44:40]Write i2c OK [22:44:40]MH_I2C_Read... [22:44:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:44:40]Read from MH i2c: E2 [22:44:40]MH_I2C_Read... [22:44:40]Read from MH i2c: E2 03 00 [22:44:40]MH_I2C_Read... [22:44:40]Read from MH i2c: E2 03 00 F1 11 00 90 00 76 [22:44:40]RAPDU: 90 00 [22:44:40]wFMCommunicate OK [22:44:40]wFMCommunicate request_size=4 [22:44:40]MH_SAM_APDU [22:44:40]CAPDU: 80 0D 03 02 [22:44:40]Write to MH i2c: E2 08 00 F2 11 80 0D 03 02 00 00 00 00 7E [22:44:40]Write i2c OK [22:44:40]MH_I2C_Read... [22:44:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:44:40]Read from MH i2c: E2 [22:44:40]MH_I2C_Read... [22:44:40]Read from MH i2c: E2 0B 00 [22:44:40]MH_I2C_Read... [22:44:40]Read from MH i2c: E2 0B 00 F2 11 00 9D 0C 4B 60 B8 5A 87 39 90 00 A5 [22:44:40]RAPDU: 9D 0C 4B 60 B8 5A 87 39 90 00 [22:44:40]wFMCommunicate OK [22:44:40]SAM_PROTO_SignData done [22:44:40]FM_MakeSignedData done [22:44:40]CreateOFDProtocolMessage [22:44:40]wFMCommunicate request_size=4 [22:44:40]MH_SAM_APDU [22:44:40]CAPDU: 80 11 00 00 [22:44:40]Write to MH i2c: E2 08 00 F3 11 80 11 00 00 00 00 00 00 7E [22:44:40]Write i2c OK [22:44:40]MH_I2C_Read... [22:44:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:44:40]Read from MH i2c: E2 [22:44:40]MH_I2C_Read... [22:44:40]Read from MH i2c: E2 17 00 [22:44:40]MH_I2C_Read... [22:44:40]Read from MH i2c: E2 17 00 F3 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D4 [22:44:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:44:40]wFMCommunicate OK [22:44:40]CreateOFDProtocolMessage done [22:44:40]OFDSenderStorePacket 165477 [22:44:40]StoreOFDPacket docnum=165477 [22:44:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 78 00 07 01 EC 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 58 A6 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 65 86 02 00 35 04 06 00 CA E7 35 22 4B D5 9D 0C 4B 60 B8 5A 87 39 [22:44:40]CheckFolder [22:44:40]dirname=/storage/ofd_packets [22:44:40]CheckFolder done [22:44:40]ProducePacketName [22:44:40]name=ofd_packets/00165477 [22:44:40]NVStorageSaveData ofd_packets/00165477 [22:44:40]File name is /storage/ofd_packets/00165477 [22:44:40]Write 301 bytes [22:44:40]NVStorageSaveData done [22:44:40]OFDSenderStorePacket done [22:44:40]KKMCreateOFDPacket done [22:44:40]NVStorageSaveData kkm_last_timestamp [22:44:40]File name is /storage/kkm_last_timestamp [22:44:40]Write 4 bytes [22:44:40]NVStorageSaveData done [22:44:40]ExternCall_PrintAddStr [22:44:40]wPrintStart [22:44:40]Write to MH i2c: 01 00 00 F4 11 05 [22:44:40]Write i2c OK [22:44:40]MH_I2C_Read... [22:44:40]Read from MH i2c: 01 [22:44:40]MH_I2C_Read... [22:44:40]Read from MH i2c: 01 07 00 [22:44:40]MH_I2C_Read... [22:44:40]Read from MH i2c: 01 07 00 F4 11 00 00 00 00 00 FF 0F 1A [22:44:40]RasterBufferAndPrint [22:44:40]line Счет N : (1)459593 [22:44:40]line ИНН: 02508201610067 [22:44:40]line Контрольно-Кассовый Чек [22:44:40]line ПРОДАЖА [22:44:40]line ТРК (МРК, ГНК) : 22 [22:44:40]line Товар: 2710124130 [22:44:40]line Аи-92-К-5 [22:44:40]line 4.560 * 65.80 [22:44:40]line = 300.05 [22:44:40]line НДС 12% НСП 1% [22:44:40]line > о реализуемом товаре [22:44:40]line ОКРУГЛЕНИЕ: -0.05 [22:44:40]line ИТОГО: 300.00 [22:44:40]line Внесено: 300.00 [22:44:40]line СДАЧА: 0.00 [22:44:40]line НСП 1% : 2.65 [22:44:40]line НДС 12% : 31.86 [22:44:40]line Наличными: 300.00 [22:44:40]line Безнал.: 0.00 [22:44:40]line Место: АЗС № 72 "Партнер Нефть" [22:44:40]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:44:40]line СНО: Общий режим [22:44:40]line Чек 350 15.07.2024 22:44 [22:44:40]line Смена: 448 ФФД: 1.0 [22:44:40]line ЗНМ: 0300000160 [22:44:40]line РНМ: 0000000000090829 [22:44:40]line Версия ККМ: 001 [22:44:40]line ФМ: 0000000000874718 [22:44:40]line ФД: 165477 [22:44:40]line ФПД: 223094377696213 [22:44:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T224440&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165477&fm=223094377696213&tin=02508201610067®Number=0000000000090829&sum=30000 [22:44:40]written 0, free lines is 4095 [22:44:40]OFD Sender: Processing packet 165477 [packets to send 106, broken 105] [22:44:40]ProducePacketName [22:44:40]name=ofd_packets/00165477 [22:44:40]OFD Sender: To server: pG, [22:44:40]CommunicateWithHost lk.salyk.kg:30040 [22:44:40]ConnectInit lk.salyk.kg [22:44:40]Connected sock=10 [22:44:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 78 00 07 01 EC 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 58 A6 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 65 86 02 00 35 04 06 00 CA E7 35 22 4B D5 9D 0C 4B 60 B8 5A 87 39 [22:44:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 DE FF 47 00 CC A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 65 86 02 00 F4 03 04 00 E1 4C 95 66 B6 04 01 00 00 58 32 58 B3 F9 0B DF 6A [22:44:41]CommunicateWithHost err = 0 [22:44:41]CheckOFDResponse [22:44:41]1017 (14) - 77093643461234 [22:44:41]1041 (16) - 0000000000874718 [22:44:41]1040 (4) - 165477 [22:44:41]1012 (4) - 15.07.2024 16:22 [22:44:41]1206 (1) - 0 [22:44:41]OFD Sender: Remove packet 165477 [22:44:41]ProducePacketName [22:44:41]name=ofd_packets/00165477 [22:44:41]NVStorageDeleteData [22:44:41]Write to MH i2c: 01 00 00 1E 12 30 [22:44:41]Write i2c OK [22:44:41]MH_I2C_Read... [22:44:41]Read from MH i2c: 01 [22:44:41]MH_I2C_Read... [22:44:41]Read from MH i2c: 01 07 00 [22:44:41]MH_I2C_Read... [22:44:41]Read from MH i2c: 01 07 00 1E 12 00 00 00 00 00 F7 0C 3A [22:44:41]RasterBufferAndPrint [22:44:41]line [22:44:41]line [22:44:41]line [22:44:41]line [22:44:41]line [22:44:41]written 0, free lines is 3326 [22:44:41]MH_Cut [22:44:41]Write to MH i2c: D1 01 00 25 12 01 09 [22:44:41]Write i2c OK [22:44:41]MH_I2C_Read... [22:44:41]Read from MH i2c: D1 [22:44:41]MH_I2C_Read... [22:44:41]Read from MH i2c: D1 01 00 [22:44:41]MH_I2C_Read... [22:44:41]Read from MH i2c: D1 01 00 25 12 00 08 [22:44:41]Write to MH i2c: 01 00 00 26 12 38 [22:44:41]Write i2c OK [22:44:41]MH_I2C_Read... [22:44:41]OFD Sender: No OFD packet to send [22:44:41]*** Cut start [22:44:41]*** Partial cut [22:44:41]*** CUTSNS_PIN = 1 [22:44:41]*** CUTSNS_PIN = 0 [22:44:42]*** Brake cut motor [22:44:42]Read from MH i2c: 01 [22:44:42]MH_I2C_Read... [22:44:42]*** Stop cut motor [22:44:42]*** Cut end [22:44:42]Read from MH i2c: 01 07 00 [22:44:42]MH_I2C_Read... [22:44:42]Read from MH i2c: 01 07 00 26 12 00 00 00 00 00 FF 0F 4D [22:44:42]process_action close_receipt done [22:44:42]requested_data is exist [22:44:42]produce_requested_data [22:44:42]requested_item fm.sn is exist - process it [22:44:42]wFMCommunicate request_size=4 [22:44:42]MH_SAM_APDU [22:44:42]CAPDU: 80 11 00 00 [22:44:42]Write to MH i2c: E2 08 00 27 12 80 11 00 00 00 00 00 00 B3 [22:44:42]Write i2c OK [22:44:42]MH_I2C_Read... [22:44:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:44:42]Read from MH i2c: E2 [22:44:42]MH_I2C_Read... [22:44:42]Read from MH i2c: E2 17 00 [22:44:42]MH_I2C_Read... [22:44:42]Read from MH i2c: E2 17 00 27 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 09 [22:44:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:44:42]wFMCommunicate OK [22:44:42]requested_item fd.num is exist - process it [22:44:42]SAM_PROTO_GetFieldsCounters [22:44:42]wFMCommunicate request_size=4 [22:44:42]MH_SAM_APDU [22:44:42]CAPDU: 80 13 00 00 [22:44:42]Write to MH i2c: E2 08 00 28 12 80 13 00 00 00 00 00 00 B6 [22:44:42]Write i2c OK [22:44:42]MH_I2C_Read... [22:44:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:44:42]Read from MH i2c: E2 [22:44:42]MH_I2C_Read... [22:44:42]Read from MH i2c: E2 62 00 [22:44:42]MH_I2C_Read... [22:44:42]Read from MH i2c: E2 62 00 28 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 65 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 5E 01 00 00 5E 04 04 00 5E 01 00 00 57 04 04 00 5F 01 00 00 19 04 04 00 00 00 00 00 90 00 A8 [22:44: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 65 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 5E 01 00 00 5E 04 04 00 5E 01 00 00 57 04 04 00 5F 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:44:42]wFMCommunicate OK [22:44:42]SAM_PROTO_GetFieldsCounters done [22:44:42]requested_item shift.num is exist - process it [22:44:42]requested_item shift.opened is exist - process it [22:44:42]req_shift_opened [22:44:42]FM_GetShiftState [22:44:42]SAM_PROTO_GetShiftState [22:44:42]wFMCommunicate request_size=4 [22:44:42]MH_SAM_APDU [22:44:42]CAPDU: 80 13 01 00 [22:44:42]Write to MH i2c: E2 08 00 29 12 80 13 01 00 00 00 00 00 B8 [22:44:42]Write i2c OK [22:44:42]MH_I2C_Read... [22:44:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:44:42]Read from MH i2c: E2 [22:44:42]MH_I2C_Read... [22:44:42]Read from MH i2c: E2 0E 00 [22:44:42]MH_I2C_Read... [22:44:42]Read from MH i2c: E2 0E 00 29 12 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 91 [22:44:42]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [22:44:42]wFMCommunicate OK [22:44:42]SAM_PROTO_GetShiftState done [22:44:42]FM_GetShiftState done [22:44:42]req_shift_opened done [22:44:42]requested_item shift.open_date is exist - process it [22:44:42]req_shift_open_date [22:44:42]req_shift_open_date done [22:44:42]produce_requested_data done [22:44:42]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165477,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [22:44:42]process_action_free close_receipt [22:44:42]json_value_free [22:44:42]json_value_free done [22:44:42]process_json_proto returns [22:44:42]Send response to host [22:44:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165477,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [22:44:42]free response buf [22:44:42]execute_script done [22:44:42]execute_script returns [22:44:42]free content buf [22:44:42]Sock 7.Close socket [22:44:42]Sock 7.Thread stoped [22:44:46]OFD Sender: No OFD packet to send [22:44:51]OFD Sender: No OFD packet to send [22:44:56]OFD Sender: No OFD packet to send [22:45:01]OFD Sender: No OFD packet to send [22:45:06]OFD Sender: No OFD packet to send [22:45:11]OFD Sender: No OFD packet to send [22:45:16]OFD Sender: No OFD packet to send [22:45:21]OFD Sender: No OFD packet to send [22:45:26]OFD Sender: No OFD packet to send [22:45:31]OFD Sender: No OFD packet to send [22:45:36]OFD Sender: No OFD packet to send [22:45:41]OFD Sender: No OFD packet to send [22:45:46]OFD Sender: No OFD packet to send [22:45:51]OFD Sender: No OFD packet to send [22:45:56]OFD Sender: No OFD packet to send [22:46:01]OFD Sender: No OFD packet to send [22:46:06]OFD Sender: No OFD packet to send [22:46:11]OFD Sender: No OFD packet to send [22:46:16]OFD Sender: No OFD packet to send [22:46:21]OFD Sender: No OFD packet to send [22:46:26]OFD Sender: No OFD packet to send [22:46:31]OFD Sender: No OFD packet to send [22:46:36]OFD Sender: No OFD packet to send [22:46:41]OFD Sender: No OFD packet to send [22:46:46]OFD Sender: No OFD packet to send [22:46:51]OFD Sender: No OFD packet to send [22:46:56]OFD Sender: No OFD packet to send [22:47:01]OFD Sender: No OFD packet to send [22:47:06]OFD Sender: No OFD packet to send [22:47:11]OFD Sender: No OFD packet to send [22:47:16]OFD Sender: No OFD packet to send [22:47:21]OFD Sender: No OFD packet to send [22:47:26]OFD Sender: No OFD packet to send [22:47:31]OFD Sender: No OFD packet to send [22:47:36]OFD Sender: No OFD packet to send [22:47:41]OFD Sender: No OFD packet to send [22:47:46]OFD Sender: No OFD packet to send [22:47:51]OFD Sender: No OFD packet to send [22:47:56]OFD Sender: No OFD packet to send [22:48:01]OFD Sender: No OFD packet to send [22:48:06]OFD Sender: No OFD packet to send [22:48:11]OFD Sender: No OFD packet to send [22:48:16]OFD Sender: No OFD packet to send [22:48:21]OFD Sender: No OFD packet to send [22:48:26]OFD Sender: No OFD packet to send [22:48:31]OFD Sender: No OFD packet to send [22:48:36]OFD Sender: No OFD packet to send [22:48:41]OFD Sender: No OFD packet to send [22:48:46]OFD Sender: No OFD packet to send [22:48:51]OFD Sender: No OFD packet to send [22:48:56]OFD Sender: No OFD packet to send [22:49:01]OFD Sender: No OFD packet to send [22:49:06]OFD Sender: No OFD packet to send [22:49:11]OFD Sender: No OFD packet to send [22:49:16]OFD Sender: No OFD packet to send [22:49:21]OFD Sender: No OFD packet to send [22:49:26]OFD Sender: No OFD packet to send [22:49:31]OFD Sender: No OFD packet to send [22:49:36]OFD Sender: No OFD packet to send [22:49:41]OFD Sender: No OFD packet to send [22:49:46]OFD Sender: No OFD packet to send [22:49:51]OFD Sender: No OFD packet to send [22:49:56]OFD Sender: No OFD packet to send [22:50:01]OFD Sender: No OFD packet to send [22:50:06]OFD Sender: No OFD packet to send [22:50:11]OFD Sender: No OFD packet to send [22:50:16]OFD Sender: No OFD packet to send [22:50:21]OFD Sender: No OFD packet to send [22:50:26]OFD Sender: No OFD packet to send [22:50:31]OFD Sender: No OFD packet to send [22:50:36]OFD Sender: No OFD packet to send [22:50:41]OFD Sender: No OFD packet to send [22:50:46]OFD Sender: No OFD packet to send [22:50:51]OFD Sender: No OFD packet to send [22:50:56]OFD Sender: No OFD packet to send [22:50:58]accept exits with 9 [22:50:58]New connection [22:50:58]New thread 3067190628 created [22:50:58]Thread 3067333988 joined [22:50:58]Waiting for new connection... [22:50:58] Sock 9.Parse request [22:50:58]Sock 9.Check first char [22:50:58]Sock 9.First char is OK [22:50:58]request: POST /json_proto HTTP/1.0 [22:50:58]Method: POST [22:50:58]URL: /json_proto [22:50:58]Method is POST - this is cgi request [22:50:58]url: /json_proto [22:50:58]query_string will be loaded in cgi processing [22:50:58]execute_cgi json_proto POST (null) [22:50:58]execute_cgi path=json_proto method=POST [22:50:58]POST find Content-Length [22:50:58]Host: 172.17.56.4:8080 [22:50:58]Content-Length: 677 [22:50:58]Content-Type: application/json [22:50:58] [22:50:58]POST finish read [22:50:58]Found Content-Length = 677 [22:50:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459594", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:50:58]execute_script... [22:50: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)459594", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:50:58]POST & json_proto [22:50:58]process_json_proto [22:50:58]json parsed OK: [22:50:58]protocol is kg_v1.0 [22:50:58]action value=close_receipt [22:50:58]process_action close_receipt [22:50:58]cmd_close_receipt [22:50:58]MH_GetDate [22:50:58]Write to MH i2c: F0 00 00 2A 12 2B [22:50:58]Write i2c OK [22:50:58]MH_I2C_Read... [22:50:58]Read from MH i2c: F0 [22:50:58]MH_I2C_Read... [22:50:58]Read from MH i2c: F0 09 00 [22:50:58]MH_I2C_Read... [22:50:58]Read from MH i2c: F0 09 00 2A 12 00 D4 A7 95 66 C9 DC B2 64 65 [22:50:58]GetLastDocTimeStamp 1721083480 [22:50:58]current date 1721083860 [22:50:58]FM_GetShiftState [22:50:58]SAM_PROTO_GetShiftState [22:50:58]wFMCommunicate request_size=4 [22:50:58]MH_SAM_APDU [22:50:58]CAPDU: 80 13 01 00 [22:50:58]Write to MH i2c: E2 08 00 2B 12 80 13 01 00 00 00 00 00 BA [22:50:58]Write i2c OK [22:50:58]MH_I2C_Read... [22:50:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:50:58]Read from MH i2c: E2 [22:50:58]MH_I2C_Read... [22:50:58]Read from MH i2c: E2 0E 00 [22:50:58]MH_I2C_Read... [22:50:58]Read from MH i2c: E2 0E 00 2B 12 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 93 [22:50:58]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [22:50:58]wFMCommunicate OK [22:50:58]SAM_PROTO_GetShiftState done [22:50:58]FM_GetShiftState done [22:50:58]opened in 1721003876 [22:50:58]opened+sec_in_day 1721090276 [22:50:58]quantity*price = 30004 [22:50:58]sum+1 = 30006 [22:50:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 351 15.07.2024 22:51 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165478 ФПД: 220592718777605 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T225100&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165478&fm=220592718777605&tin=02508201610067®Number=0000000000090829&sum=30000 [22:50:59]StoreToDocumentArchive [22:50:59]shift 448 fd 165478 [22:50:59]save to /storage/0448/doc_00165478 [22:50:59]save last doc name /storage/0448/doc_00165478 to /storage/kkm_last_doc_name [22:50:59]save OK [22:50:59]Clear old archive folders... [22:50:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:50:59]tlvbuf is 01B86550 [22:50:59]SAM_PROTO_ClearQueue [22:50:59]wFMCommunicate request_size=4 [22:50:59]MH_SAM_APDU [22:50:59]CAPDU: 80 09 00 00 [22:50:59]Write to MH i2c: E2 08 00 38 12 80 09 00 00 00 00 00 00 BC [22:50:59]Write i2c OK [22:50:59]MH_I2C_Read... [22:50:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:50:59]Read from MH i2c: E2 [22:50:59]MH_I2C_Read... [22:50:59]Read from MH i2c: E2 03 00 [22:50:59]MH_I2C_Read... [22:50:59]Read from MH i2c: E2 03 00 38 12 00 90 00 BE [22:50:59]RAPDU: 90 00 [22:50:59]wFMCommunicate OK [22:50:59]SAM_PROTO_ClearQueue done [22:50:59]KKMCreateOFDPacket [22:50:59]OFDProtocolAddRootSTLVToBuf [22:50:59]FM_MakeSignedData [22:50:59]FM_MakeSignedData [22:50:59]SAM_PROTO_SignData [22:50:59]wFMCommunicate request_size=4 [22:50:59]MH_SAM_APDU [22:50:59]CAPDU: 80 0D 01 02 [22:50:59]Write to MH i2c: E2 08 00 39 12 80 0D 01 02 00 00 00 00 C4 [22:50:59]Write i2c OK [22:50:59]MH_I2C_Read... [22:51:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:51:00]Read from MH i2c: E2 [22:51:00]MH_I2C_Read... [22:51:00]Read from MH i2c: E2 03 00 [22:51:00]MH_I2C_Read... [22:51:00]Read from MH i2c: E2 03 00 39 12 00 90 00 BF [22:51:00]RAPDU: 90 00 [22:51:00]wFMCommunicate OK [22:51:00]wFMCommunicate request_size=255 [22:51:00]MH_SAM_APDU [22:51: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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 01 00 00 F4 03 04 00 D4 A7 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 66 86 02 00 35 04 06 00 C8 [22:51:00]Write to MH i2c: E2 02 01 3A 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 01 00 00 F4 03 04 00 D4 A7 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 66 86 02 00 35 04 06 00 C8 00 00 4B [22:51:00]Write i2c OK [22:51:00]MH_I2C_Read... [22:51:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:51:00]Read from MH i2c: E2 [22:51:00]MH_I2C_Read... [22:51:00]Read from MH i2c: E2 03 00 [22:51:00]MH_I2C_Read... [22:51:00]Read from MH i2c: E2 03 00 3A 12 00 90 00 C0 [22:51:00]RAPDU: 90 00 [22:51:00]wFMCommunicate OK [22:51:00]wFMCommunicate request_size=10 [22:51:00]MH_SAM_APDU [22:51:00]CAPDU: 80 0D 02 02 05 A0 BE A4 8D 05 [22:51:00]Write to MH i2c: E2 0D 00 3B 12 80 0D 02 02 05 00 A0 BE A4 8D 05 00 00 65 [22:51:00]Write i2c OK [22:51:00]MH_I2C_Read... [22:51:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:51:00]Read from MH i2c: E2 [22:51:00]MH_I2C_Read... [22:51:00]Read from MH i2c: E2 03 00 [22:51:00]MH_I2C_Read... [22:51:00]Read from MH i2c: E2 03 00 3B 12 00 90 00 C1 [22:51:00]RAPDU: 90 00 [22:51:00]wFMCommunicate OK [22:51:00]wFMCommunicate request_size=4 [22:51:00]MH_SAM_APDU [22:51:00]CAPDU: 80 0D 03 02 [22:51:00]Write to MH i2c: E2 08 00 3C 12 80 0D 03 02 00 00 00 00 C9 [22:51:00]Write i2c OK [22:51:00]MH_I2C_Read... [22:51:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:51:00]Read from MH i2c: E2 [22:51:00]MH_I2C_Read... [22:51:00]Read from MH i2c: E2 0B 00 [22:51:00]MH_I2C_Read... [22:51:00]Read from MH i2c: E2 0B 00 3C 12 00 4D 0A 51 00 7F 57 D2 C1 90 00 DB [22:51:00]RAPDU: 4D 0A 51 00 7F 57 D2 C1 90 00 [22:51:00]wFMCommunicate OK [22:51:00]SAM_PROTO_SignData done [22:51:00]FM_MakeSignedData done [22:51:00]CreateOFDProtocolMessage [22:51:00]wFMCommunicate request_size=4 [22:51:00]MH_SAM_APDU [22:51:00]CAPDU: 80 11 00 00 [22:51:00]Write to MH i2c: E2 08 00 3D 12 80 11 00 00 00 00 00 00 C9 [22:51:00]Write i2c OK [22:51:00]MH_I2C_Read... [22:51:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:51:00]Read from MH i2c: E2 [22:51:00]MH_I2C_Read... [22:51:00]Read from MH i2c: E2 17 00 [22:51:00]MH_I2C_Read... [22:51:00]Read from MH i2c: E2 17 00 3D 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 1F [22:51:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:51:00]wFMCommunicate OK [22:51:00]CreateOFDProtocolMessage done [22:51:00]OFDSenderStorePacket 165478 [22:51:00]StoreOFDPacket docnum=165478 [22:51:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 5B 37 07 01 AA D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 01 00 00 F4 03 04 00 D4 A7 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 66 86 02 00 35 04 06 00 C8 A0 BE A4 8D 05 4D 0A 51 00 7F 57 D2 C1 [22:51:00]CheckFolder [22:51:00]dirname=/storage/ofd_packets [22:51:00]CheckFolder done [22:51:00]ProducePacketName [22:51:00]name=ofd_packets/00165478 [22:51:00]NVStorageSaveData ofd_packets/00165478 [22:51:00]File name is /storage/ofd_packets/00165478 [22:51:00]Write 301 bytes [22:51:00]NVStorageSaveData done [22:51:00]OFDSenderStorePacket done [22:51:00]KKMCreateOFDPacket done [22:51:00]NVStorageSaveData kkm_last_timestamp [22:51:00]File name is /storage/kkm_last_timestamp [22:51:00]Write 4 bytes [22:51:00]NVStorageSaveData done [22:51:00]ExternCall_PrintAddStr [22:51:00]wPrintStart [22:51:00]Write to MH i2c: 01 00 00 3E 12 50 [22:51:00]Write i2c OK [22:51:00]MH_I2C_Read... [22:51:00]Read from MH i2c: 01 [22:51:00]MH_I2C_Read... [22:51:00]Read from MH i2c: 01 07 00 [22:51:00]MH_I2C_Read... [22:51:00]Read from MH i2c: 01 07 00 3E 12 00 00 00 00 00 FF 0F 65 [22:51:00]RasterBufferAndPrint [22:51:00]line Счет N : (1)459594 [22:51:00]line ИНН: 02508201610067 [22:51:00]line Контрольно-Кассовый Чек [22:51:00]line ПРОДАЖА [22:51:00]line ТРК (МРК, ГНК) : 12 [22:51:00]line Товар: 2710124130 [22:51:00]line Аи-92-К-5 [22:51:00]line 4.560 * 65.80 [22:51:00]line = 300.05 [22:51:00]line НДС 12% НСП 1% [22:51:00]line > о реализуемом товаре [22:51:00]line ОКРУГЛЕНИЕ: -0.05 [22:51:00]line ИТОГО: 300.00 [22:51:00]line Внесено: 300.00 [22:51:00]line СДАЧА: 0.00 [22:51:00]line НСП 1% : 2.65 [22:51:00]line НДС 12% : 31.86 [22:51:00]line Наличными: 300.00 [22:51:00]line Безнал.: 0.00 [22:51:00]line Место: АЗС № 72 "Партнер Нефть" [22:51:00]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:51:00]line СНО: Общий режим [22:51:00]line Чек 351 15.07.2024 22:51 [22:51:00]line Смена: 448 ФФД: 1.0 [22:51:00]line ЗНМ: 0300000160 [22:51:00]line РНМ: 0000000000090829 [22:51:00]line Версия ККМ: 001 [22:51:00]line ФМ: 0000000000874718 [22:51:00]line ФД: 165478 [22:51:00]line ФПД: 220592718777605 [22:51:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T225100&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165478&fm=220592718777605&tin=02508201610067®Number=0000000000090829&sum=30000 [22:51:00]written 0, free lines is 4095 [22:51:00]OFD Sender: Processing packet 165478 [packets to send 106, broken 105] [22:51:00]ProducePacketName [22:51:00]name=ofd_packets/00165478 [22:51:00]OFD Sender: To server: pG, [22:51:00]CommunicateWithHost lk.salyk.kg:30040 [22:51:00]ConnectInit lk.salyk.kg [22:51:00]Connected sock=10 [22:51: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 37 31 38 0F 01 00 00 5B 37 07 01 AA D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 01 00 00 F4 03 04 00 D4 A7 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 66 86 02 00 35 04 06 00 C8 A0 BE A4 8D 05 4D 0A 51 00 7F 57 D2 C1 [22:51:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 16 07 47 00 44 F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 66 86 02 00 F4 03 04 00 5C 4E 95 66 B6 04 01 00 00 3A 12 49 C2 4F A5 27 CA [22:51:00]CommunicateWithHost err = 0 [22:51:00]CheckOFDResponse [22:51:00]1017 (14) - 77093643461234 [22:51:00]1041 (16) - 0000000000874718 [22:51:00]1040 (4) - 165478 [22:51:00]1012 (4) - 15.07.2024 16:29 [22:51:00]1206 (1) - 0 [22:51:00]OFD Sender: Remove packet 165478 [22:51:00]ProducePacketName [22:51:00]name=ofd_packets/00165478 [22:51:00]NVStorageDeleteData [22:51:00]Write to MH i2c: 01 00 00 68 12 7A [22:51:00]Write i2c OK [22:51:00]MH_I2C_Read... [22:51:00]Read from MH i2c: 01 [22:51:00]MH_I2C_Read... [22:51:00]Read from MH i2c: 01 07 00 [22:51:00]MH_I2C_Read... [22:51:00]Read from MH i2c: 01 07 00 68 12 00 00 00 00 00 12 0D A0 [22:51:00]RasterBufferAndPrint [22:51:00]line [22:51:00]line [22:51:00]line [22:51:00]line [22:51:00]line [22:51:00]written 0, free lines is 3352 [22:51:00]MH_Cut [22:51:00]Write to MH i2c: D1 01 00 6F 12 01 53 [22:51:00]Write i2c OK [22:51:00]MH_I2C_Read... [22:51:00]Read from MH i2c: D1 [22:51:00]MH_I2C_Read... [22:51:00]Read from MH i2c: D1 01 00 [22:51:00]MH_I2C_Read... [22:51:00]Read from MH i2c: D1 01 00 6F 12 00 52 [22:51:00]Write to MH i2c: 01 00 00 70 12 82 [22:51:00]Write i2c OK [22:51:00]MH_I2C_Read... [22:51:01]OFD Sender: No OFD packet to send [22:51:01]*** Cut start [22:51:01]*** Partial cut [22:51:01]*** CUTSNS_PIN = 1 [22:51:01]*** CUTSNS_PIN = 0 [22:51:01]*** Brake cut motor [22:51:02]Read from MH i2c: 01 [22:51:02]MH_I2C_Read... [22:51:02]*** Stop cut motor [22:51:02]*** Cut end [22:51:02]Read from MH i2c: 01 07 00 [22:51:02]MH_I2C_Read... [22:51:02]Read from MH i2c: 01 07 00 70 12 00 00 00 00 00 FF 0F 97 [22:51:02]process_action close_receipt done [22:51:02]requested_data is exist [22:51:02]produce_requested_data [22:51:02]requested_item fm.sn is exist - process it [22:51:02]wFMCommunicate request_size=4 [22:51:02]MH_SAM_APDU [22:51:02]CAPDU: 80 11 00 00 [22:51:02]Write to MH i2c: E2 08 00 71 12 80 11 00 00 00 00 00 00 FD [22:51:02]Write i2c OK [22:51:02]MH_I2C_Read... [22:51:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:51:02]Read from MH i2c: E2 [22:51:02]MH_I2C_Read... [22:51:02]Read from MH i2c: E2 17 00 [22:51:02]MH_I2C_Read... [22:51:02]Read from MH i2c: E2 17 00 71 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 53 [22:51:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:51:02]wFMCommunicate OK [22:51:02]requested_item fd.num is exist - process it [22:51:02]SAM_PROTO_GetFieldsCounters [22:51:02]wFMCommunicate request_size=4 [22:51:02]MH_SAM_APDU [22:51:02]CAPDU: 80 13 00 00 [22:51:02]Write to MH i2c: E2 08 00 72 12 80 13 00 00 00 00 00 00 00 [22:51:02]Write i2c OK [22:51:02]MH_I2C_Read... [22:51:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:51:02]Read from MH i2c: E2 [22:51:02]MH_I2C_Read... [22:51:02]Read from MH i2c: E2 62 00 [22:51:02]MH_I2C_Read... [22:51:02]Read from MH i2c: E2 62 00 72 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 66 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 5F 01 00 00 5E 04 04 00 5F 01 00 00 57 04 04 00 60 01 00 00 19 04 04 00 00 00 00 00 90 00 F6 [22:51:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 66 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 5F 01 00 00 5E 04 04 00 5F 01 00 00 57 04 04 00 60 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:51:02]wFMCommunicate OK [22:51:02]SAM_PROTO_GetFieldsCounters done [22:51:02]requested_item shift.num is exist - process it [22:51:02]requested_item shift.opened is exist - process it [22:51:02]req_shift_opened [22:51:02]FM_GetShiftState [22:51:02]SAM_PROTO_GetShiftState [22:51:02]wFMCommunicate request_size=4 [22:51:02]MH_SAM_APDU [22:51:02]CAPDU: 80 13 01 00 [22:51:02]Write to MH i2c: E2 08 00 73 12 80 13 01 00 00 00 00 00 02 [22:51:02]Write i2c OK [22:51:02]MH_I2C_Read... [22:51:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:51:02]Read from MH i2c: E2 [22:51:02]MH_I2C_Read... [22:51:02]Read from MH i2c: E2 0E 00 [22:51:02]MH_I2C_Read... [22:51:02]Read from MH i2c: E2 0E 00 73 12 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 DB [22:51:02]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [22:51:02]wFMCommunicate OK [22:51:02]SAM_PROTO_GetShiftState done [22:51:02]FM_GetShiftState done [22:51:02]req_shift_opened done [22:51:02]requested_item shift.open_date is exist - process it [22:51:02]req_shift_open_date [22:51:02]req_shift_open_date done [22:51:02]produce_requested_data done [22:51:02]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165478,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [22:51:02]process_action_free close_receipt [22:51:02]json_value_free [22:51:02]json_value_free done [22:51:02]process_json_proto returns [22:51:02]Send response to host [22:51:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165478,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [22:51:02]free response buf [22:51:02]execute_script done [22:51:02]execute_script returns [22:51:02]free content buf [22:51:02]Sock 9.Close socket [22:51:02]Sock 9.Thread stoped [22:51:06]OFD Sender: No OFD packet to send [22:51:11]OFD Sender: No OFD packet to send [22:51:16]OFD Sender: No OFD packet to send [22:51:21]OFD Sender: No OFD packet to send [22:51:26]OFD Sender: No OFD packet to send [22:51:31]OFD Sender: No OFD packet to send [22:51:36]OFD Sender: No OFD packet to send [22:51:41]OFD Sender: No OFD packet to send [22:51:46]OFD Sender: No OFD packet to send [22:51:51]OFD Sender: No OFD packet to send [22:51:56]OFD Sender: No OFD packet to send [22:52:01]OFD Sender: No OFD packet to send [22:52:06]OFD Sender: No OFD packet to send [22:52:11]OFD Sender: No OFD packet to send [22:52:16]OFD Sender: No OFD packet to send [22:52:21]OFD Sender: No OFD packet to send [22:52:26]OFD Sender: No OFD packet to send [22:52:31]OFD Sender: No OFD packet to send [22:52:36]OFD Sender: No OFD packet to send [22:52:41]OFD Sender: No OFD packet to send [22:52:46]OFD Sender: No OFD packet to send [22:52:51]OFD Sender: No OFD packet to send [22:52:56]OFD Sender: No OFD packet to send [22:52:57]accept exits with 7 [22:52:57]New connection [22:52:57]New thread 3067333988 created [22:52:57]Thread 3067190628 joined [22:52:57]Waiting for new connection... [22:52:57] Sock 7.Parse request [22:52:57]Sock 7.Check first char [22:52:57]Sock 7.First char is OK [22:52:57]request: POST /json_proto HTTP/1.0 [22:52:57]Method: POST [22:52:57]URL: /json_proto [22:52:57]Method is POST - this is cgi request [22:52:57]url: /json_proto [22:52:57]query_string will be loaded in cgi processing [22:52:57]execute_cgi json_proto POST (null) [22:52:57]execute_cgi path=json_proto method=POST [22:52:57]POST find Content-Length [22:52:57]Host: 172.17.56.4:8080 [22:52:57]Content-Length: 790 [22:52:57]Content-Type: application/json [22:52:57] [22:52:57]POST finish read [22:52:57]Found Content-Length = 790 [22:52:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459595", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 9.200, "sum" : 600.02, "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 600.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:52:57]execute_script... [22:52:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459595", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 9.200, "sum" : 600.02, "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 600.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:52:57]POST & json_proto [22:52:57]process_json_proto [22:52:57]json parsed OK: [22:52:57]protocol is kg_v1.0 [22:52:57]action value=close_receipt [22:52:57]process_action close_receipt [22:52:57]cmd_close_receipt [22:52:57]MH_GetDate [22:52:57]Write to MH i2c: F0 00 00 74 12 75 [22:52:57]Write i2c OK [22:52:57]MH_I2C_Read... [22:52:57]Read from MH i2c: F0 [22:52:57]MH_I2C_Read... [22:52:57]Read from MH i2c: F0 09 00 [22:52:57]MH_I2C_Read... [22:52:57]Read from MH i2c: F0 09 00 74 12 00 4B A8 95 66 C9 DC B2 64 27 [22:52:57]GetLastDocTimeStamp 1721083860 [22:52:57]current date 1721083979 [22:52:57]FM_GetShiftState [22:52:57]SAM_PROTO_GetShiftState [22:52:57]wFMCommunicate request_size=4 [22:52:57]MH_SAM_APDU [22:52:57]CAPDU: 80 13 01 00 [22:52:57]Write to MH i2c: E2 08 00 75 12 80 13 01 00 00 00 00 00 04 [22:52:57]Write i2c OK [22:52:57]MH_I2C_Read... [22:52:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:52:57]Read from MH i2c: E2 [22:52:57]MH_I2C_Read... [22:52:57]Read from MH i2c: E2 0E 00 [22:52:57]MH_I2C_Read... [22:52:57]Read from MH i2c: E2 0E 00 75 12 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 DD [22:52:57]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [22:52:57]wFMCommunicate OK [22:52:57]SAM_PROTO_GetShiftState done [22:52:57]FM_GetShiftState done [22:52:57]opened in 1721003876 [22:52:57]opened+sec_in_day 1721090276 [22:52:57]quantity*price = 60002 [22:52:57]sum+1 = 60003 [22:52:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.02 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 0.00 Безнал.: 600.02 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 352 15.07.2024 22:52 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 165479 ФПД: 185554690741473 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T225259&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165479&fm=185554690741473&tin=02508201610067®Number=0000000000090829&sum=60002 [22:52:58]StoreToDocumentArchive [22:52:58]shift 448 fd 165479 [22:52:58]save to /storage/0448/doc_00165479 [22:52:58]save last doc name /storage/0448/doc_00165479 to /storage/kkm_last_doc_name [22:52:58]save OK [22:52:58]Clear old archive folders... [22:52:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:52:59]tlvbuf is 01BA94C0 [22:52:59]SAM_PROTO_ClearQueue [22:52:59]wFMCommunicate request_size=4 [22:52:59]MH_SAM_APDU [22:52:59]CAPDU: 80 09 00 00 [22:52:59]Write to MH i2c: E2 08 00 82 12 80 09 00 00 00 00 00 00 06 [22:52:59]Write i2c OK [22:52:59]MH_I2C_Read... [22:52:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:52:59]Read from MH i2c: E2 [22:52:59]MH_I2C_Read... [22:52:59]Read from MH i2c: E2 03 00 [22:52:59]MH_I2C_Read... [22:52:59]Read from MH i2c: E2 03 00 82 12 00 90 00 08 [22:52:59]RAPDU: 90 00 [22:52:59]wFMCommunicate OK [22:52:59]SAM_PROTO_ClearQueue done [22:52:59]KKMCreateOFDPacket [22:52:59]OFDProtocolAddRootSTLVToBuf [22:52:59]FM_MakeSignedData [22:52:59]FM_MakeSignedData [22:52:59]SAM_PROTO_SignData [22:52:59]wFMCommunicate request_size=4 [22:52:59]MH_SAM_APDU [22:52:59]CAPDU: 80 0D 01 02 [22:52:59]Write to MH i2c: E2 08 00 83 12 80 0D 01 02 00 00 00 00 0E [22:52:59]Write i2c OK [22:52:59]MH_I2C_Read... [22:52:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:52:59]Read from MH i2c: E2 [22:52:59]MH_I2C_Read... [22:52:59]Read from MH i2c: E2 03 00 [22:52:59]MH_I2C_Read... [22:52:59]Read from MH i2c: E2 03 00 83 12 00 90 00 09 [22:52:59]RAPDU: 90 00 [22:52:59]wFMCommunicate OK [22:52:59]wFMCommunicate request_size=255 [22:52:59]MH_SAM_APDU [22:52:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 23 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 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 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 01 00 00 F4 03 04 00 4B A8 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 67 86 02 00 35 04 06 00 A8 [22:52:59]Write to MH i2c: E2 02 01 84 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 23 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 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 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 01 00 00 F4 03 04 00 4B A8 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 67 86 02 00 35 04 06 00 A8 00 00 60 [22:52:59]Write i2c OK [22:52:59]MH_I2C_Read... [22:52:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:52:59]Read from MH i2c: E2 [22:52:59]MH_I2C_Read... [22:52:59]Read from MH i2c: E2 03 00 [22:52:59]MH_I2C_Read... [22:52:59]Read from MH i2c: E2 03 00 84 12 00 90 00 0A [22:52:59]RAPDU: 90 00 [22:52:59]wFMCommunicate OK [22:52:59]wFMCommunicate request_size=10 [22:52:59]MH_SAM_APDU [22:52:59]CAPDU: 80 0D 02 02 05 C2 D1 6D 94 E1 [22:52:59]Write to MH i2c: E2 0D 00 85 12 80 0D 02 02 05 00 C2 D1 6D 94 E1 00 00 90 [22:52:59]Write i2c OK [22:52:59]MH_I2C_Read... [22:52:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:52:59]Read from MH i2c: E2 [22:52:59]MH_I2C_Read... [22:52:59]Read from MH i2c: E2 03 00 [22:52:59]MH_I2C_Read... [22:52:59]Read from MH i2c: E2 03 00 85 12 00 90 00 0B [22:52:59]RAPDU: 90 00 [22:52:59]wFMCommunicate OK [22:52:59]wFMCommunicate request_size=4 [22:52:59]MH_SAM_APDU [22:52:59]CAPDU: 80 0D 03 02 [22:52:59]Write to MH i2c: E2 08 00 86 12 80 0D 03 02 00 00 00 00 13 [22:52:59]Write i2c OK [22:52:59]MH_I2C_Read... [22:52:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:52:59]Read from MH i2c: E2 [22:52:59]MH_I2C_Read... [22:52:59]Read from MH i2c: E2 0B 00 [22:52:59]MH_I2C_Read... [22:52:59]Read from MH i2c: E2 0B 00 86 12 00 29 2A 79 C1 0A FB CE C6 90 00 3A [22:52:59]RAPDU: 29 2A 79 C1 0A FB CE C6 90 00 [22:52:59]wFMCommunicate OK [22:52:59]SAM_PROTO_SignData done [22:52:59]FM_MakeSignedData done [22:52:59]CreateOFDProtocolMessage [22:52:59]wFMCommunicate request_size=4 [22:52:59]MH_SAM_APDU [22:52:59]CAPDU: 80 11 00 00 [22:52:59]Write to MH i2c: E2 08 00 87 12 80 11 00 00 00 00 00 00 13 [22:52:59]Write i2c OK [22:52:59]MH_I2C_Read... [22:52:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:52:59]Read from MH i2c: E2 [22:52:59]MH_I2C_Read... [22:52:59]Read from MH i2c: E2 17 00 [22:52:59]MH_I2C_Read... [22:52:59]Read from MH i2c: E2 17 00 87 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 69 [22:52:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:52:59]wFMCommunicate OK [22:52:59]CreateOFDProtocolMessage done [22:52:59]OFDSenderStorePacket 165479 [22:52:59]StoreOFDPacket docnum=165479 [22:52:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 DE AC 07 01 41 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 F0 23 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 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 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 01 00 00 F4 03 04 00 4B A8 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 67 86 02 00 35 04 06 00 A8 C2 D1 6D 94 E1 29 2A 79 C1 0A FB CE C6 [22:52:59]CheckFolder [22:52:59]dirname=/storage/ofd_packets [22:52:59]CheckFolder done [22:52:59]ProducePacketName [22:52:59]name=ofd_packets/00165479 [22:52:59]NVStorageSaveData ofd_packets/00165479 [22:52:59]File name is /storage/ofd_packets/00165479 [22:52:59]Write 301 bytes [22:52:59]NVStorageSaveData done [22:52:59]OFDSenderStorePacket done [22:52:59]KKMCreateOFDPacket done [22:52:59]NVStorageSaveData kkm_last_timestamp [22:52:59]File name is /storage/kkm_last_timestamp [22:52:59]Write 4 bytes [22:52:59]NVStorageSaveData done [22:52:59]ExternCall_PrintAddStr [22:52:59]wPrintStart [22:52:59]Write to MH i2c: 01 00 00 88 12 9A [22:52:59]Write i2c OK [22:52:59]MH_I2C_Read... [22:52:59]Read from MH i2c: 01 [22:52:59]MH_I2C_Read... [22:52:59]Read from MH i2c: 01 07 00 [22:52:59]MH_I2C_Read... [22:52:59]Read from MH i2c: 01 07 00 88 12 00 00 00 00 00 FF 0F AF [22:52:59]RasterBufferAndPrint [22:52:59]line Счет N : (1)459595 [22:52:59]line ИНН: 02508201610067 [22:52:59]line Контрольно-Кассовый Чек [22:52:59]line ПРОДАЖА [22:52:59]line ТРК (МРК, ГНК) : 12 [22:52:59]line Товар: 2710124130 [22:52:59]line Аи-92-К-5 [22:52:59]line 9.200 * 65.22 [22:52:59]line = 600.02 [22:52:59]line НДС 12% НСП 1% [22:52:59]line > о реализуемом товаре [22:52:59]line ИТОГО: 600.02 [22:52:59]line НСП 1% : 5.31 [22:52:59]line НДС 12% : 63.72 [22:52:59]line Наличными: 0.00 [22:52:59]line Безнал.: 600.02 [22:52:59]line Место: АЗС № 72 "Партнер Нефть" [22:52:59]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [22:52:59]line СНО: Общий режим [22:52:59]line Чек 352 15.07.2024 22:52 [22:52:59]line Смена: 448 ФФД: 1.0 [22:52:59]line ЗНМ: 0300000160 [22:52:59]line РНМ: 0000000000090829 [22:52:59]line Версия ККМ: 001 [22:52:59]line Платежная система: KICB Банк [22:52:59]line ФМ: 0000000000874718 [22:52:59]line ФД: 165479 [22:52:59]line ФПД: 185554690741473 [22:52:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T225259&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165479&fm=185554690741473&tin=02508201610067®Number=0000000000090829&sum=60002 [22:52:59]OFD Sender: Processing packet 165479 [packets to send 106, broken 105] [22:52:59]ProducePacketName [22:52:59]name=ofd_packets/00165479 [22:52:59]OFD Sender: To server: pG, [22:52:59]CommunicateWithHost lk.salyk.kg:30040 [22:52:59]ConnectInit lk.salyk.kg [22:52:59]written 0, free lines is 4095 [22:52:59]Connected sock=10 [22:52:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 DE AC 07 01 41 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 F0 23 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 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 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 01 00 00 F4 03 04 00 4B A8 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 67 86 02 00 35 04 06 00 A8 C2 D1 6D 94 E1 29 2A 79 C1 0A FB CE C6 [22:53:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 A2 67 47 00 22 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 37 31 38 10 04 04 00 67 86 02 00 F4 03 04 00 D4 4E 95 66 B6 04 01 00 00 E0 EA 73 06 FA 6C 7B 77 [22:53:00]CommunicateWithHost err = 0 [22:53:00]CheckOFDResponse [22:53:00]1017 (14) - 77093643461234 [22:53:00]1041 (16) - 0000000000874718 [22:53:00]1040 (4) - 165479 [22:53:00]1012 (4) - 15.07.2024 16:31 [22:53:00]1206 (1) - 0 [22:53:00]OFD Sender: Remove packet 165479 [22:53:00]ProducePacketName [22:53:00]name=ofd_packets/00165479 [22:53:00]NVStorageDeleteData [22:53:00]Write to MH i2c: 01 00 00 B1 12 C3 [22:53:00]Write i2c OK [22:53:00]MH_I2C_Read... [22:53:00]Read from MH i2c: 01 [22:53:00]MH_I2C_Read... [22:53:00]Read from MH i2c: 01 07 00 [22:53:00]MH_I2C_Read... [22:53:00]Read from MH i2c: 01 07 00 B1 12 00 00 00 00 00 1C 0D F3 [22:53:00]RasterBufferAndPrint [22:53:00]line [22:53:00]line [22:53:00]line [22:53:00]line [22:53:00]line [22:53:00]written 0, free lines is 3362 [22:53:00]MH_Cut [22:53:00]Write to MH i2c: D1 01 00 B8 12 01 9C [22:53:00]Write i2c OK [22:53:00]MH_I2C_Read... [22:53:00]Read from MH i2c: D1 [22:53:00]MH_I2C_Read... [22:53:00]Read from MH i2c: D1 01 00 [22:53:00]MH_I2C_Read... [22:53:00]Read from MH i2c: D1 01 00 B8 12 00 9B [22:53:00]Write to MH i2c: 01 00 00 B9 12 CB [22:53:00]Write i2c OK [22:53:00]MH_I2C_Read... [22:53:00]OFD Sender: No OFD packet to send [22:53:00]*** Cut start [22:53:00]*** Partial cut [22:53:00]*** CUTSNS_PIN = 1 [22:53:00]*** CUTSNS_PIN = 0 [22:53:01]*** Brake cut motor [22:53:01]Read from MH i2c: 01 [22:53:01]MH_I2C_Read... [22:53:01]*** Stop cut motor [22:53:01]*** Cut end [22:53:01]Read from MH i2c: 01 07 00 [22:53:01]MH_I2C_Read... [22:53:01]Read from MH i2c: 01 07 00 B9 12 00 00 00 00 00 FF 0F E0 [22:53:01]process_action close_receipt done [22:53:01]requested_data is exist [22:53:01]produce_requested_data [22:53:01]requested_item fm.sn is exist - process it [22:53:01]wFMCommunicate request_size=4 [22:53:01]MH_SAM_APDU [22:53:01]CAPDU: 80 11 00 00 [22:53:01]Write to MH i2c: E2 08 00 BA 12 80 11 00 00 00 00 00 00 46 [22:53:01]Write i2c OK [22:53:01]MH_I2C_Read... [22:53:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:53:01]Read from MH i2c: E2 [22:53:01]MH_I2C_Read... [22:53:01]Read from MH i2c: E2 17 00 [22:53:01]MH_I2C_Read... [22:53:01]Read from MH i2c: E2 17 00 BA 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 9C [22:53:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [22:53:01]wFMCommunicate OK [22:53:01]requested_item fd.num is exist - process it [22:53:01]SAM_PROTO_GetFieldsCounters [22:53:01]wFMCommunicate request_size=4 [22:53:01]MH_SAM_APDU [22:53:01]CAPDU: 80 13 00 00 [22:53:01]Write to MH i2c: E2 08 00 BB 12 80 13 00 00 00 00 00 00 49 [22:53:01]Write i2c OK [22:53:01]MH_I2C_Read... [22:53:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:53:01]Read from MH i2c: E2 [22:53:01]MH_I2C_Read... [22:53:01]Read from MH i2c: E2 62 00 [22:53:01]MH_I2C_Read... [22:53:01]Read from MH i2c: E2 62 00 BB 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 67 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 60 01 00 00 5E 04 04 00 60 01 00 00 57 04 04 00 61 01 00 00 19 04 04 00 00 00 00 00 90 00 43 [22:53:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 67 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 60 01 00 00 5E 04 04 00 60 01 00 00 57 04 04 00 61 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:53:01]wFMCommunicate OK [22:53:01]SAM_PROTO_GetFieldsCounters done [22:53:01]requested_item shift.num is exist - process it [22:53:01]requested_item shift.opened is exist - process it [22:53:01]req_shift_opened [22:53:01]FM_GetShiftState [22:53:01]SAM_PROTO_GetShiftState [22:53:01]wFMCommunicate request_size=4 [22:53:01]MH_SAM_APDU [22:53:01]CAPDU: 80 13 01 00 [22:53:01]Write to MH i2c: E2 08 00 BC 12 80 13 01 00 00 00 00 00 4B [22:53:01]Write i2c OK [22:53:01]MH_I2C_Read... [22:53:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:53:01]Read from MH i2c: E2 [22:53:01]MH_I2C_Read... [22:53:01]Read from MH i2c: E2 0E 00 [22:53:01]MH_I2C_Read... [22:53:01]Read from MH i2c: E2 0E 00 BC 12 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 24 [22:53:01]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [22:53:01]wFMCommunicate OK [22:53:01]SAM_PROTO_GetShiftState done [22:53:01]FM_GetShiftState done [22:53:01]req_shift_opened done [22:53:01]requested_item shift.open_date is exist - process it [22:53:01]req_shift_open_date [22:53:01]req_shift_open_date done [22:53:01]produce_requested_data done [22:53:01]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165479,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [22:53:01]process_action_free close_receipt [22:53:01]json_value_free [22:53:01]json_value_free done [22:53:01]process_json_proto returns [22:53:01]Send response to host [22:53:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165479,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [22:53:01]free response buf [22:53:01]execute_script done [22:53:01]execute_script returns [22:53:01]free content buf [22:53:01]Sock 7.Close socket [22:53:01]Sock 7.Thread stoped [22:53:05]OFD Sender: No OFD packet to send [22:53:10]OFD Sender: No OFD packet to send [22:53:15]OFD Sender: No OFD packet to send [22:53:20]OFD Sender: No OFD packet to send [22:53:25]OFD Sender: No OFD packet to send [22:53:30]OFD Sender: No OFD packet to send [22:53:35]OFD Sender: No OFD packet to send [22:53:40]OFD Sender: No OFD packet to send [22:53:45]OFD Sender: No OFD packet to send [22:53:50]OFD Sender: No OFD packet to send [22:53:55]OFD Sender: No OFD packet to send [22:54:00]OFD Sender: No OFD packet to send [22:54:05]OFD Sender: No OFD packet to send [22:54:10]OFD Sender: No OFD packet to send [22:54:15]OFD Sender: No OFD packet to send [22:54:20]OFD Sender: No OFD packet to send [22:54:25]OFD Sender: No OFD packet to send [22:54:30]OFD Sender: No OFD packet to send [22:54:35]OFD Sender: No OFD packet to send [22:54:40]OFD Sender: No OFD packet to send [22:54:45]OFD Sender: No OFD packet to send [22:54:50]OFD Sender: No OFD packet to send [22:54:55]OFD Sender: No OFD packet to send [22:55:00]OFD Sender: No OFD packet to send [22:55:05]OFD Sender: No OFD packet to send [22:55:10]OFD Sender: No OFD packet to send [22:55:15]OFD Sender: No OFD packet to send [22:55:20]OFD Sender: No OFD packet to send [22:55:25]OFD Sender: No OFD packet to send [22:55:30]OFD Sender: No OFD packet to send [22:55:35]OFD Sender: No OFD packet to send [22:55:40]OFD Sender: No OFD packet to send [22:55:45]OFD Sender: No OFD packet to send [22:55:50]OFD Sender: No OFD packet to send [22:55:55]OFD Sender: No OFD packet to send [22:56:00]OFD Sender: No OFD packet to send [22:56:05]OFD Sender: No OFD packet to send [22:56:10]OFD Sender: No OFD packet to send [22:56:15]OFD Sender: No OFD packet to send [22:56:20]OFD Sender: No OFD packet to send [22:56:25]OFD Sender: No OFD packet to send [22:56:30]OFD Sender: No OFD packet to send [22:56:35]OFD Sender: No OFD packet to send [22:56:40]OFD Sender: No OFD packet to send [22:56:45]OFD Sender: No OFD packet to send [22:56:50]OFD Sender: No OFD packet to send [22:56:55]OFD Sender: No OFD packet to send [22:57:00]OFD Sender: No OFD packet to send [22:57:05]OFD Sender: No OFD packet to send [22:57:10]OFD Sender: No OFD packet to send [22:57:15]OFD Sender: No OFD packet to send [22:57:20]OFD Sender: No OFD packet to send [22:57:25]OFD Sender: No OFD packet to send [22:57:30]OFD Sender: No OFD packet to send [22:57:35]OFD Sender: No OFD packet to send [22:57:40]OFD Sender: No OFD packet to send [22:57:45]OFD Sender: No OFD packet to send [22:57:50]OFD Sender: No OFD packet to send [22:57:55]OFD Sender: No OFD packet to send [22:58:00]OFD Sender: No OFD packet to send [22:58:06]OFD Sender: No OFD packet to send [22:58:11]OFD Sender: No OFD packet to send [22:58:16]OFD Sender: No OFD packet to send [22:58:21]OFD Sender: No OFD packet to send [22:58:26]OFD Sender: No OFD packet to send [22:58:31]OFD Sender: No OFD packet to send [22:58:36]OFD Sender: No OFD packet to send [22:58:41]OFD Sender: No OFD packet to send [22:58:46]OFD Sender: No OFD packet to send [22:58:51]OFD Sender: No OFD packet to send [22:58:56]OFD Sender: No OFD packet to send [22:59:01]OFD Sender: No OFD packet to send [22:59:06]OFD Sender: No OFD packet to send [22:59:11]OFD Sender: No OFD packet to send [22:59:16]OFD Sender: No OFD packet to send [22:59:21]OFD Sender: No OFD packet to send [22:59:26]OFD Sender: No OFD packet to send [22:59:31]OFD Sender: No OFD packet to send [22:59:36]OFD Sender: No OFD packet to send [22:59:41]OFD Sender: No OFD packet to send [22:59:46]OFD Sender: No OFD packet to send [22:59:51]OFD Sender: No OFD packet to send [22:59:56]OFD Sender: No OFD packet to send [23:00:01]OFD Sender: No OFD packet to send [23:00:06]OFD Sender: No OFD packet to send [23:00:11]OFD Sender: No OFD packet to send [23:00:16]OFD Sender: No OFD packet to send [23:00:21]OFD Sender: No OFD packet to send [23:00:26]OFD Sender: No OFD packet to send [23:00:31]OFD Sender: No OFD packet to send [23:00:36]OFD Sender: No OFD packet to send [23:00:41]OFD Sender: No OFD packet to send [23:00:46]OFD Sender: No OFD packet to send [23:00:51]OFD Sender: No OFD packet to send [23:00:56]OFD Sender: No OFD packet to send [23:01:01]OFD Sender: No OFD packet to send [23:01:06]OFD Sender: No OFD packet to send [23:01:11]OFD Sender: No OFD packet to send [23:01:16]OFD Sender: No OFD packet to send [23:01:21]OFD Sender: No OFD packet to send [23:01:26]OFD Sender: No OFD packet to send [23:01:31]OFD Sender: No OFD packet to send [23:01:36]OFD Sender: No OFD packet to send [23:01:41]OFD Sender: No OFD packet to send [23:01:46]OFD Sender: No OFD packet to send [23:01:51]OFD Sender: No OFD packet to send [23:01:56]OFD Sender: No OFD packet to send [23:02:01]OFD Sender: No OFD packet to send [23:02:06]OFD Sender: No OFD packet to send [23:02:11]OFD Sender: No OFD packet to send [23:02:16]OFD Sender: No OFD packet to send [23:02:21]OFD Sender: No OFD packet to send [23:02:26]OFD Sender: No OFD packet to send [23:02:31]OFD Sender: No OFD packet to send [23:02:36]OFD Sender: No OFD packet to send [23:02:41]OFD Sender: No OFD packet to send [23:02:46]OFD Sender: No OFD packet to send [23:02:51]OFD Sender: No OFD packet to send [23:02:56]OFD Sender: No OFD packet to send [23:03:01]OFD Sender: No OFD packet to send [23:03:06]OFD Sender: No OFD packet to send [23:03:11]OFD Sender: No OFD packet to send [23:03:16]OFD Sender: No OFD packet to send [23:03:21]OFD Sender: No OFD packet to send [23:03:26]OFD Sender: No OFD packet to send [23:03:31]OFD Sender: No OFD packet to send [23:03:36]OFD Sender: No OFD packet to send [23:03:41]OFD Sender: No OFD packet to send [23:03:46]OFD Sender: No OFD packet to send [23:03:51]OFD Sender: No OFD packet to send [23:03:56]OFD Sender: No OFD packet to send [23:04:01]OFD Sender: No OFD packet to send [23:04:06]OFD Sender: No OFD packet to send [23:04:11]OFD Sender: No OFD packet to send [23:04:13]accept exits with 9 [23:04:13]New connection [23:04:13]New thread 3067190628 created [23:04:13]Thread 3067333988 joined [23:04:13]Waiting for new connection... [23:04:13] Sock 9.Parse request [23:04:13]Sock 9.Check first char [23:04:13]Sock 9.First char is OK [23:04:13]request: POST /json_proto HTTP/1.0 [23:04:13]Method: POST [23:04:13]URL: /json_proto [23:04:13]Method is POST - this is cgi request [23:04:13]url: /json_proto [23:04:13]query_string will be loaded in cgi processing [23:04:13]execute_cgi json_proto POST (null) [23:04:13]execute_cgi path=json_proto method=POST [23:04:13]POST find Content-Length [23:04:13]Host: 172.17.56.4:8080 [23:04:13]Content-Length: 840 [23:04:13]Content-Type: application/json [23:04:13] [23:04:13]POST finish read [23:04:13]Found Content-Length = 840 [23:04:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459596", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 30.000, "sum" : 2137.80, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2137.80 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:04:13]execute_script... [23:04:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459596", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 30.000, "sum" : 2137.80, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2137.80 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:04:13]POST & json_proto [23:04:13]process_json_proto [23:04:13]json parsed OK: [23:04:13]protocol is kg_v1.0 [23:04:13]action value=close_receipt [23:04:13]process_action close_receipt [23:04:13]cmd_close_receipt [23:04:13]MH_GetDate [23:04:13]Write to MH i2c: F0 00 00 BD 12 BE [23:04:13]Write i2c OK [23:04:13]MH_I2C_Read... [23:04:13]Read from MH i2c: F0 [23:04:13]MH_I2C_Read... [23:04:13]Read from MH i2c: F0 09 00 [23:04:13]MH_I2C_Read... [23:04:13]Read from MH i2c: F0 09 00 BD 12 00 EE AA 95 66 C9 DC B2 64 15 [23:04:13]GetLastDocTimeStamp 1721083979 [23:04:13]current date 1721084654 [23:04:13]FM_GetShiftState [23:04:13]SAM_PROTO_GetShiftState [23:04:13]wFMCommunicate request_size=4 [23:04:13]MH_SAM_APDU [23:04:13]CAPDU: 80 13 01 00 [23:04:13]Write to MH i2c: E2 08 00 BE 12 80 13 01 00 00 00 00 00 4D [23:04:13]Write i2c OK [23:04:13]MH_I2C_Read... [23:04:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:04:13]Read from MH i2c: E2 [23:04:13]MH_I2C_Read... [23:04:13]Read from MH i2c: E2 0E 00 [23:04:13]MH_I2C_Read... [23:04:13]Read from MH i2c: E2 0E 00 BE 12 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 26 [23:04:13]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [23:04:13]wFMCommunicate OK [23:04:13]SAM_PROTO_GetShiftState done [23:04:13]FM_GetShiftState done [23:04:13]opened in 1721003876 [23:04:13]opened+sec_in_day 1721090276 [23:04:13]quantity*price = 213780 [23:04:13]sum+1 = 213781 [23:04:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2137.80 НСП 1% : 18.92 НДС 12% : 227.02 Наличными: 0.00 Безнал.: 2137.80 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 353 15.07.2024 23:04 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874718 ФД: 165480 ФПД: 164196104015024 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T230414&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165480&fm=164196104015024&tin=02508201610067®Number=0000000000090829&sum=213780 [23:04:14]StoreToDocumentArchive [23:04:14]shift 448 fd 165480 [23:04:14]save to /storage/0448/doc_00165480 [23:04:14]save last doc name /storage/0448/doc_00165480 to /storage/kkm_last_doc_name [23:04:14]save OK [23:04:14]Clear old archive folders... [23:04:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:04:14]tlvbuf is 01BA9320 [23:04:14]SAM_PROTO_ClearQueue [23:04:14]wFMCommunicate request_size=4 [23:04:14]MH_SAM_APDU [23:04:14]CAPDU: 80 09 00 00 [23:04:14]Write to MH i2c: E2 08 00 CB 12 80 09 00 00 00 00 00 00 4F [23:04:14]Write i2c OK [23:04:14]MH_I2C_Read... [23:04:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:04:14]Read from MH i2c: E2 [23:04:14]MH_I2C_Read... [23:04:14]Read from MH i2c: E2 03 00 [23:04:14]MH_I2C_Read... [23:04:14]Read from MH i2c: E2 03 00 CB 12 00 90 00 51 [23:04:14]RAPDU: 90 00 [23:04:14]wFMCommunicate OK [23:04:14]SAM_PROTO_ClearQueue done [23:04:14]KKMCreateOFDPacket [23:04:14]OFDProtocolAddRootSTLVToBuf [23:04:14]FM_MakeSignedData [23:04:14]FM_MakeSignedData [23:04:14]SAM_PROTO_SignData [23:04:14]wFMCommunicate request_size=4 [23:04:14]MH_SAM_APDU [23:04:14]CAPDU: 80 0D 01 02 [23:04:14]Write to MH i2c: E2 08 00 CC 12 80 0D 01 02 00 00 00 00 57 [23:04:14]Write i2c OK [23:04:14]MH_I2C_Read... [23:04:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:04:14]Read from MH i2c: E2 [23:04:14]MH_I2C_Read... [23:04:14]Read from MH i2c: E2 03 00 [23:04:14]MH_I2C_Read... [23:04:14]Read from MH i2c: E2 03 00 CC 12 00 90 00 52 [23:04:14]RAPDU: 90 00 [23:04:14]wFMCommunicate OK [23:04:14]wFMCommunicate request_size=255 [23:04:14]MH_SAM_APDU [23:04:14]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 14 43 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 43 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 58 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 43 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 01 00 00 F4 03 04 00 EE AA 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 68 86 02 00 35 04 06 00 95 55 E2 74 [23:04:14]Write to MH i2c: E2 02 01 CD 12 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 14 43 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 43 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 58 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 43 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 01 00 00 F4 03 04 00 EE AA 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 68 86 02 00 35 04 06 00 95 55 E2 74 00 00 B5 [23:04:14]Write i2c OK [23:04:14]MH_I2C_Read... [23:04:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:04:14]Read from MH i2c: E2 [23:04:14]MH_I2C_Read... [23:04:14]Read from MH i2c: E2 03 00 [23:04:14]MH_I2C_Read... [23:04:14]Read from MH i2c: E2 03 00 CD 12 00 90 00 53 [23:04:14]RAPDU: 90 00 [23:04:14]wFMCommunicate OK [23:04:14]wFMCommunicate request_size=7 [23:04:14]MH_SAM_APDU [23:04:14]CAPDU: 80 0D 02 02 02 0C B0 [23:04:14]Write to MH i2c: E2 0A 00 CE 12 80 0D 02 02 02 00 0C B0 00 00 1A [23:04:14]Write i2c OK [23:04:14]MH_I2C_Read... [23:04:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:04:14]Read from MH i2c: E2 [23:04:14]MH_I2C_Read... [23:04:14]Read from MH i2c: E2 03 00 [23:04:14]MH_I2C_Read... [23:04:14]Read from MH i2c: E2 03 00 CE 12 00 90 00 54 [23:04:14]RAPDU: 90 00 [23:04:14]wFMCommunicate OK [23:04:14]wFMCommunicate request_size=4 [23:04:14]MH_SAM_APDU [23:04:14]CAPDU: 80 0D 03 02 [23:04:14]Write to MH i2c: E2 08 00 CF 12 80 0D 03 02 00 00 00 00 5C [23:04:14]Write i2c OK [23:04:14]MH_I2C_Read... [23:04:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:04:14]Read from MH i2c: E2 [23:04:14]MH_I2C_Read... [23:04:14]Read from MH i2c: E2 0B 00 [23:04:14]MH_I2C_Read... [23:04:14]Read from MH i2c: E2 0B 00 CF 12 00 87 9B 51 39 AE D5 DF D5 90 00 40 [23:04:14]RAPDU: 87 9B 51 39 AE D5 DF D5 90 00 [23:04:14]wFMCommunicate OK [23:04:14]SAM_PROTO_SignData done [23:04:14]FM_MakeSignedData done [23:04:14]CreateOFDProtocolMessage [23:04:14]wFMCommunicate request_size=4 [23:04:14]MH_SAM_APDU [23:04:14]CAPDU: 80 11 00 00 [23:04:14]Write to MH i2c: E2 08 00 D0 12 80 11 00 00 00 00 00 00 5C [23:04:14]Write i2c OK [23:04:14]MH_I2C_Read... [23:04:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:04:15]Read from MH i2c: E2 [23:04:15]MH_I2C_Read... [23:04:15]Read from MH i2c: E2 17 00 [23:04:15]MH_I2C_Read... [23:04:15]Read from MH i2c: E2 17 00 D0 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B2 [23:04:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:04:15]wFMCommunicate OK [23:04:15]CreateOFDProtocolMessage done [23:04:15]OFDSenderStorePacket 165480 [23:04:15]StoreOFDPacket docnum=165480 [23:04:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 B2 0C 04 01 0C F9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 14 43 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 43 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 58 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 43 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 01 00 00 F4 03 04 00 EE AA 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 68 86 02 00 35 04 06 00 95 55 E2 74 0C B0 87 9B 51 39 AE D5 DF D5 [23:04:15]CheckFolder [23:04:15]dirname=/storage/ofd_packets [23:04:15]CheckFolder done [23:04:15]ProducePacketName [23:04:15]name=ofd_packets/00165480 [23:04:15]NVStorageSaveData ofd_packets/00165480 [23:04:15]File name is /storage/ofd_packets/00165480 [23:04:15]Write 298 bytes [23:04:15]NVStorageSaveData done [23:04:15]OFDSenderStorePacket done [23:04:15]KKMCreateOFDPacket done [23:04:15]NVStorageSaveData kkm_last_timestamp [23:04:15]File name is /storage/kkm_last_timestamp [23:04:15]Write 4 bytes [23:04:15]NVStorageSaveData done [23:04:15]ExternCall_PrintAddStr [23:04:15]wPrintStart [23:04:15]Write to MH i2c: 01 00 00 D1 12 E3 [23:04:15]Write i2c OK [23:04:15]MH_I2C_Read... [23:04:15]Read from MH i2c: 01 [23:04:15]MH_I2C_Read... [23:04:15]Read from MH i2c: 01 07 00 [23:04:15]MH_I2C_Read... [23:04:15]Read from MH i2c: 01 07 00 D1 12 00 00 00 00 00 FF 0F F8 [23:04:15]RasterBufferAndPrint [23:04:15]line Счет N : (1)459596 [23:04:15]line ИНН: 02508201610067 [23:04:15]line Контрольно-Кассовый Чек [23:04:15]line ПРОДАЖА [23:04:15]line ТРК (МРК, ГНК) : 11 [23:04:15]line Товар: 2710194210 [23:04:15]line ДТ-К-5 [23:04:15]line 30.000 * 71.26 [23:04:15]line = 2137.80 [23:04:15]line НДС 12% НСП 1% [23:04:15]line > о реализуемом товаре [23:04:15]line ИТОГО: 2137.80 [23:04:15]line НСП 1% : 18.92 [23:04:15]line НДС 12% : 227.02 [23:04:15]line Наличными: 0.00 [23:04:15]line Безнал.: 2137.80 [23:04:15]line Место: АЗС № 72 "Партнер Нефть" [23:04:15]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [23:04:15]line СНО: Общий режим [23:04:15]line Чек 353 15.07.2024 23:04 [23:04:15]line Смена: 448 ФФД: 1.0 [23:04:15]line ЗНМ: 0300000160 [23:04:15]line РНМ: 0000000000090829 [23:04:15]line Версия ККМ: 001 [23:04:15]line Платежная система: АКБ Кыргызстан [23:04:15]line ФМ: 0000000000874718 [23:04:15]line ФД: 165480 [23:04:15]line ФПД: 164196104015024 [23:04:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T230414&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165480&fm=164196104015024&tin=02508201610067®Number=0000000000090829&sum=213780 [23:04:15]OFD Sender: Processing packet 165480 [packets to send 106, broken 105] [23:04:15]ProducePacketName [23:04:15]name=ofd_packets/00165480 [23:04:15]OFD Sender: To server: pG, [23:04:15]CommunicateWithHost lk.salyk.kg:30040 [23:04:15]ConnectInit lk.salyk.kg [23:04:15]written 0, free lines is 4095 [23:04:15]Connected sock=10 [23:04:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 B2 0C 04 01 0C F9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 14 43 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 43 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 58 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 43 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 01 00 00 F4 03 04 00 EE AA 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 68 86 02 00 35 04 06 00 95 55 E2 74 0C B0 87 9B 51 39 AE D5 DF D5 [23:04:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 75 01 47 00 96 D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 68 86 02 00 F4 03 04 00 77 51 95 66 B6 04 01 00 00 DF 3D F2 2A 03 BD BA 07 [23:04:15]CommunicateWithHost err = 0 [23:04:15]CheckOFDResponse [23:04:15]1017 (14) - 77093643461234 [23:04:15]1041 (16) - 0000000000874718 [23:04:15]1040 (4) - 165480 [23:04:15]1012 (4) - 15.07.2024 16:42 [23:04:15]1206 (1) - 0 [23:04:15]OFD Sender: Remove packet 165480 [23:04:15]ProducePacketName [23:04:15]name=ofd_packets/00165480 [23:04:15]NVStorageDeleteData [23:04:15]Write to MH i2c: 01 00 00 FA 12 0C [23:04:15]Write i2c OK [23:04:15]MH_I2C_Read... [23:04:15]Read from MH i2c: 01 [23:04:15]MH_I2C_Read... [23:04:15]Read from MH i2c: 01 07 00 [23:04:15]MH_I2C_Read... [23:04:15]Read from MH i2c: 01 07 00 FA 12 00 00 00 00 00 19 0D 39 [23:04:15]RasterBufferAndPrint [23:04:15]line [23:04:15]line [23:04:15]line [23:04:15]line [23:04:15]line [23:04:15]written 0, free lines is 3360 [23:04:15]MH_Cut [23:04:15]Write to MH i2c: D1 01 00 01 13 01 E6 [23:04:15]Write i2c OK [23:04:15]MH_I2C_Read... [23:04:15]Read from MH i2c: D1 [23:04:15]MH_I2C_Read... [23:04:15]Read from MH i2c: D1 01 00 [23:04:15]MH_I2C_Read... [23:04:15]Read from MH i2c: D1 01 00 01 13 00 E5 [23:04:15]Write to MH i2c: 01 00 00 02 13 15 [23:04:15]Write i2c OK [23:04:15]MH_I2C_Read... [23:04:16]OFD Sender: No OFD packet to send [23:04:16]*** Cut start [23:04:16]*** Partial cut [23:04:16]*** CUTSNS_PIN = 1 [23:04:16]*** CUTSNS_PIN = 0 [23:04:16]*** Brake cut motor [23:04:17]Read from MH i2c: 01 [23:04:17]MH_I2C_Read... [23:04:17]*** Stop cut motor [23:04:17]*** Cut end [23:04:17]Read from MH i2c: 01 07 00 [23:04:17]MH_I2C_Read... [23:04:17]Read from MH i2c: 01 07 00 02 13 00 00 00 00 00 FF 0F 2A [23:04:17]process_action close_receipt done [23:04:17]requested_data is exist [23:04:17]produce_requested_data [23:04:17]requested_item fm.sn is exist - process it [23:04:17]wFMCommunicate request_size=4 [23:04:17]MH_SAM_APDU [23:04:17]CAPDU: 80 11 00 00 [23:04:17]Write to MH i2c: E2 08 00 03 13 80 11 00 00 00 00 00 00 90 [23:04:17]Write i2c OK [23:04:17]MH_I2C_Read... [23:04:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:04:17]Read from MH i2c: E2 [23:04:17]MH_I2C_Read... [23:04:17]Read from MH i2c: E2 17 00 [23:04:17]MH_I2C_Read... [23:04:17]Read from MH i2c: E2 17 00 03 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E6 [23:04:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:04:17]wFMCommunicate OK [23:04:17]requested_item fd.num is exist - process it [23:04:17]SAM_PROTO_GetFieldsCounters [23:04:17]wFMCommunicate request_size=4 [23:04:17]MH_SAM_APDU [23:04:17]CAPDU: 80 13 00 00 [23:04:17]Write to MH i2c: E2 08 00 04 13 80 13 00 00 00 00 00 00 93 [23:04:17]Write i2c OK [23:04:17]MH_I2C_Read... [23:04:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:04:17]Read from MH i2c: E2 [23:04:17]MH_I2C_Read... [23:04:17]Read from MH i2c: E2 62 00 [23:04:17]MH_I2C_Read... [23:04:17]Read from MH i2c: E2 62 00 04 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 68 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 61 01 00 00 5E 04 04 00 61 01 00 00 57 04 04 00 62 01 00 00 19 04 04 00 00 00 00 00 90 00 91 [23:04: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 68 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 61 01 00 00 5E 04 04 00 61 01 00 00 57 04 04 00 62 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:04:17]wFMCommunicate OK [23:04:17]SAM_PROTO_GetFieldsCounters done [23:04:17]requested_item shift.num is exist - process it [23:04:17]requested_item shift.opened is exist - process it [23:04:17]req_shift_opened [23:04:17]FM_GetShiftState [23:04:17]SAM_PROTO_GetShiftState [23:04:17]wFMCommunicate request_size=4 [23:04:17]MH_SAM_APDU [23:04:17]CAPDU: 80 13 01 00 [23:04:17]Write to MH i2c: E2 08 00 05 13 80 13 01 00 00 00 00 00 95 [23:04:17]Write i2c OK [23:04:17]MH_I2C_Read... [23:04:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:04:17]Read from MH i2c: E2 [23:04:17]MH_I2C_Read... [23:04:17]Read from MH i2c: E2 0E 00 [23:04:17]MH_I2C_Read... [23:04:17]Read from MH i2c: E2 0E 00 05 13 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 6E [23:04:17]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [23:04:17]wFMCommunicate OK [23:04:17]SAM_PROTO_GetShiftState done [23:04:17]FM_GetShiftState done [23:04:17]req_shift_opened done [23:04:17]requested_item shift.open_date is exist - process it [23:04:17]req_shift_open_date [23:04:17]req_shift_open_date done [23:04:17]produce_requested_data done [23:04:17]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165480,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [23:04:17]process_action_free close_receipt [23:04:17]json_value_free [23:04:17]json_value_free done [23:04:17]process_json_proto returns [23:04:17]Send response to host [23:04:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165480,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [23:04:17]free response buf [23:04:17]execute_script done [23:04:17]execute_script returns [23:04:17]free content buf [23:04:17]Sock 9.Close socket [23:04:17]Sock 9.Thread stoped [23:04:21]OFD Sender: No OFD packet to send [23:04:26]OFD Sender: No OFD packet to send [23:04:31]OFD Sender: No OFD packet to send [23:04:36]OFD Sender: No OFD packet to send [23:04:41]OFD Sender: No OFD packet to send [23:04:46]OFD Sender: No OFD packet to send [23:04:51]OFD Sender: No OFD packet to send [23:04:56]OFD Sender: No OFD packet to send [23:05:01]OFD Sender: No OFD packet to send [23:05:06]OFD Sender: No OFD packet to send [23:05:11]OFD Sender: No OFD packet to send [23:05:16]OFD Sender: No OFD packet to send [23:05:16]accept exits with 7 [23:05:16]New connection [23:05:16]New thread 3067333988 created [23:05:16]Thread 3067190628 joined [23:05:16]Waiting for new connection... [23:05:16] Sock 7.Parse request [23:05:16]Sock 7.Check first char [23:05:16]Sock 7.First char is OK [23:05:16]request: POST /json_proto HTTP/1.0 [23:05:16]Method: POST [23:05:16]URL: /json_proto [23:05:16]Method is POST - this is cgi request [23:05:16]url: /json_proto [23:05:16]query_string will be loaded in cgi processing [23:05:16]execute_cgi json_proto POST (null) [23:05:16]execute_cgi path=json_proto method=POST [23:05:16]POST find Content-Length [23:05:16]Host: 172.17.56.4:8080 [23:05:16]Content-Length: 677 [23:05:16]Content-Type: application/json [23:05:16] [23:05:16]POST finish read [23:05:16]Found Content-Length = 677 [23:05:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459597", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:05:16]execute_script... [23:05: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)459597", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 7.600, "sum" : 500.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:05:16]POST & json_proto [23:05:16]process_json_proto [23:05:16]json parsed OK: [23:05:16]protocol is kg_v1.0 [23:05:16]action value=close_receipt [23:05:16]process_action close_receipt [23:05:16]cmd_close_receipt [23:05:16]MH_GetDate [23:05:16]Write to MH i2c: F0 00 00 06 13 08 [23:05:16]Write i2c OK [23:05:16]MH_I2C_Read... [23:05:16]Read from MH i2c: F0 [23:05:16]MH_I2C_Read... [23:05:16]Read from MH i2c: F0 09 00 [23:05:16]MH_I2C_Read... [23:05:16]Read from MH i2c: F0 09 00 06 13 00 2D AB 95 66 C9 DC B2 64 9F [23:05:16]GetLastDocTimeStamp 1721084654 [23:05:16]current date 1721084717 [23:05:16]FM_GetShiftState [23:05:16]SAM_PROTO_GetShiftState [23:05:16]wFMCommunicate request_size=4 [23:05:16]MH_SAM_APDU [23:05:16]CAPDU: 80 13 01 00 [23:05:16]Write to MH i2c: E2 08 00 07 13 80 13 01 00 00 00 00 00 97 [23:05:16]Write i2c OK [23:05:16]MH_I2C_Read... [23:05:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:05:16]Read from MH i2c: E2 [23:05:16]MH_I2C_Read... [23:05:16]Read from MH i2c: E2 0E 00 [23:05:16]MH_I2C_Read... [23:05:16]Read from MH i2c: E2 0E 00 07 13 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 70 [23:05:16]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [23:05:16]wFMCommunicate OK [23:05:16]SAM_PROTO_GetShiftState done [23:05:16]FM_GetShiftState done [23:05:16]opened in 1721003876 [23:05:16]opened+sec_in_day 1721090276 [23:05:16]quantity*price = 50008 [23:05:16]sum+1 = 50009 [23:05:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 354 15.07.2024 23:05 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165481 ФПД: 245500263908511 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T230517&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165481&fm=245500263908511&tin=02508201610067®Number=0000000000090829&sum=50000 [23:05:17]StoreToDocumentArchive [23:05:17]shift 448 fd 165481 [23:05:17]save to /storage/0448/doc_00165481 [23:05:17]save last doc name /storage/0448/doc_00165481 to /storage/kkm_last_doc_name [23:05:17]save OK [23:05:17]Clear old archive folders... [23:05:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:05:17]tlvbuf is 01B80FB0 [23:05:17]SAM_PROTO_ClearQueue [23:05:17]wFMCommunicate request_size=4 [23:05:17]MH_SAM_APDU [23:05:17]CAPDU: 80 09 00 00 [23:05:17]Write to MH i2c: E2 08 00 14 13 80 09 00 00 00 00 00 00 99 [23:05:17]Write i2c OK [23:05:17]MH_I2C_Read... [23:05:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:05:17]Read from MH i2c: E2 [23:05:17]MH_I2C_Read... [23:05:17]Read from MH i2c: E2 03 00 [23:05:17]MH_I2C_Read... [23:05:17]Read from MH i2c: E2 03 00 14 13 00 90 00 9B [23:05:17]RAPDU: 90 00 [23:05:17]wFMCommunicate OK [23:05:17]SAM_PROTO_ClearQueue done [23:05:17]KKMCreateOFDPacket [23:05:17]OFDProtocolAddRootSTLVToBuf [23:05:17]FM_MakeSignedData [23:05:17]FM_MakeSignedData [23:05:17]SAM_PROTO_SignData [23:05:17]wFMCommunicate request_size=4 [23:05:17]MH_SAM_APDU [23:05:17]CAPDU: 80 0D 01 02 [23:05:17]Write to MH i2c: E2 08 00 15 13 80 0D 01 02 00 00 00 00 A1 [23:05:17]Write i2c OK [23:05:17]MH_I2C_Read... [23:05:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:05:17]Read from MH i2c: E2 [23:05:17]MH_I2C_Read... [23:05:17]Read from MH i2c: E2 03 00 [23:05:17]MH_I2C_Read... [23:05:17]Read from MH i2c: E2 03 00 15 13 00 90 00 9C [23:05:17]RAPDU: 90 00 [23:05:17]wFMCommunicate OK [23:05:17]wFMCommunicate request_size=255 [23:05:17]MH_SAM_APDU [23:05: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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 2D AB 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 69 86 02 00 35 04 06 00 DF [23:05:17]Write to MH i2c: E2 02 01 16 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 2D AB 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 69 86 02 00 35 04 06 00 DF 00 00 E1 [23:05:17]Write i2c OK [23:05:17]MH_I2C_Read... [23:05:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:05:17]Read from MH i2c: E2 [23:05:17]MH_I2C_Read... [23:05:17]Read from MH i2c: E2 03 00 [23:05:17]MH_I2C_Read... [23:05:17]Read from MH i2c: E2 03 00 16 13 00 90 00 9D [23:05:17]RAPDU: 90 00 [23:05:17]wFMCommunicate OK [23:05:17]wFMCommunicate request_size=10 [23:05:17]MH_SAM_APDU [23:05:17]CAPDU: 80 0D 02 02 05 47 FC 05 C4 9F [23:05:17]Write to MH i2c: E2 0D 00 17 13 80 0D 02 02 05 00 47 FC 05 C4 9F 00 00 59 [23:05:17]Write i2c OK [23:05:17]MH_I2C_Read... [23:05:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:05:17]Read from MH i2c: E2 [23:05:17]MH_I2C_Read... [23:05:17]Read from MH i2c: E2 03 00 [23:05:17]MH_I2C_Read... [23:05:17]Read from MH i2c: E2 03 00 17 13 00 90 00 9E [23:05:17]RAPDU: 90 00 [23:05:17]wFMCommunicate OK [23:05:17]wFMCommunicate request_size=4 [23:05:17]MH_SAM_APDU [23:05:17]CAPDU: 80 0D 03 02 [23:05:17]Write to MH i2c: E2 08 00 18 13 80 0D 03 02 00 00 00 00 A6 [23:05:17]Write i2c OK [23:05:17]MH_I2C_Read... [23:05:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:05:17]Read from MH i2c: E2 [23:05:17]MH_I2C_Read... [23:05:17]Read from MH i2c: E2 0B 00 [23:05:17]MH_I2C_Read... [23:05:17]Read from MH i2c: E2 0B 00 18 13 00 97 77 0B EE D4 5E 55 24 90 00 59 [23:05:17]RAPDU: 97 77 0B EE D4 5E 55 24 90 00 [23:05:17]wFMCommunicate OK [23:05:17]SAM_PROTO_SignData done [23:05:17]FM_MakeSignedData done [23:05:17]CreateOFDProtocolMessage [23:05:17]wFMCommunicate request_size=4 [23:05:17]MH_SAM_APDU [23:05:17]CAPDU: 80 11 00 00 [23:05:17]Write to MH i2c: E2 08 00 19 13 80 11 00 00 00 00 00 00 A6 [23:05:17]Write i2c OK [23:05:17]MH_I2C_Read... [23:05:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:05:18]Read from MH i2c: E2 [23:05:18]MH_I2C_Read... [23:05:18]Read from MH i2c: E2 17 00 [23:05:18]MH_I2C_Read... [23:05:18]Read from MH i2c: E2 17 00 19 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FC [23:05:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:05:18]wFMCommunicate OK [23:05:18]CreateOFDProtocolMessage done [23:05:18]OFDSenderStorePacket 165481 [23:05:18]StoreOFDPacket docnum=165481 [23:05:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 58 85 07 01 EB D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 2D AB 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 69 86 02 00 35 04 06 00 DF 47 FC 05 C4 9F 97 77 0B EE D4 5E 55 24 [23:05:18]CheckFolder [23:05:18]dirname=/storage/ofd_packets [23:05:18]CheckFolder done [23:05:18]ProducePacketName [23:05:18]name=ofd_packets/00165481 [23:05:18]NVStorageSaveData ofd_packets/00165481 [23:05:18]File name is /storage/ofd_packets/00165481 [23:05:18]Write 301 bytes [23:05:18]NVStorageSaveData done [23:05:18]OFDSenderStorePacket done [23:05:18]KKMCreateOFDPacket done [23:05:18]NVStorageSaveData kkm_last_timestamp [23:05:18]File name is /storage/kkm_last_timestamp [23:05:18]Write 4 bytes [23:05:18]NVStorageSaveData done [23:05:18]ExternCall_PrintAddStr [23:05:18]wPrintStart [23:05:18]Write to MH i2c: 01 00 00 1A 13 2D [23:05:18]Write i2c OK [23:05:18]MH_I2C_Read... [23:05:18]Read from MH i2c: 01 [23:05:18]MH_I2C_Read... [23:05:18]Read from MH i2c: 01 07 00 [23:05:18]MH_I2C_Read... [23:05:18]Read from MH i2c: 01 07 00 1A 13 00 00 00 00 00 FF 0F 42 [23:05:18]RasterBufferAndPrint [23:05:18]line Счет N : (1)459597 [23:05:18]line ИНН: 02508201610067 [23:05:18]line Контрольно-Кассовый Чек [23:05:18]line ПРОДАЖА [23:05:18]line ТРК (МРК, ГНК) : 12 [23:05:18]line Товар: 2710124130 [23:05:18]line Аи-92-К-5 [23:05:18]line 7.600 * 65.80 [23:05:18]line = 500.08 [23:05:18]line НДС 12% НСП 1% [23:05:18]line > о реализуемом товаре [23:05:18]line ОКРУГЛЕНИЕ: -0.08 [23:05:18]line ИТОГО: 500.00 [23:05:18]line Внесено: 500.00 [23:05:18]line СДАЧА: 0.00 [23:05:18]line НСП 1% : 4.42 [23:05:18]line НДС 12% : 53.11 [23:05:18]line Наличными: 500.00 [23:05:18]line Безнал.: 0.00 [23:05:18]line Место: АЗС № 72 "Партнер Нефть" [23:05:18]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [23:05:18]line СНО: Общий режим [23:05:18]line Чек 354 15.07.2024 23:05 [23:05:18]line Смена: 448 ФФД: 1.0 [23:05:18]line ЗНМ: 0300000160 [23:05:18]line РНМ: 0000000000090829 [23:05:18]line Версия ККМ: 001 [23:05:18]line ФМ: 0000000000874718 [23:05:18]line ФД: 165481 [23:05:18]line ФПД: 245500263908511 [23:05:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T230517&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165481&fm=245500263908511&tin=02508201610067®Number=0000000000090829&sum=50000 [23:05:18]written 0, free lines is 4095 [23:05:18]OFD Sender: Processing packet 165481 [packets to send 106, broken 105] [23:05:18]ProducePacketName [23:05:18]name=ofd_packets/00165481 [23:05:18]OFD Sender: To server: pG, [23:05:18]CommunicateWithHost lk.salyk.kg:30040 [23:05:18]ConnectInit lk.salyk.kg [23:05:18]Connected sock=10 [23:05: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 37 31 38 0F 01 00 00 58 85 07 01 EB D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 B0 1D 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 58 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 2D AB 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 69 86 02 00 35 04 06 00 DF 47 FC 05 C4 9F 97 77 0B EE D4 5E 55 24 [23:05:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 10 7A 47 00 DD BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 69 86 02 00 F4 03 04 00 B6 51 95 66 B6 04 01 00 00 BD CA B9 3F 46 5A 3B 1B [23:05:18]CommunicateWithHost err = 0 [23:05:18]CheckOFDResponse [23:05:18]1017 (14) - 77093643461234 [23:05:18]1041 (16) - 0000000000874718 [23:05:18]1040 (4) - 165481 [23:05:18]1012 (4) - 15.07.2024 16:43 [23:05:18]1206 (1) - 0 [23:05:18]OFD Sender: Remove packet 165481 [23:05:18]ProducePacketName [23:05:18]name=ofd_packets/00165481 [23:05:18]NVStorageDeleteData [23:05:18]Write to MH i2c: 01 00 00 44 13 57 [23:05:18]Write i2c OK [23:05:18]MH_I2C_Read... [23:05:18]Read from MH i2c: 01 [23:05:18]MH_I2C_Read... [23:05:18]Read from MH i2c: 01 07 00 [23:05:18]MH_I2C_Read... [23:05:18]Read from MH i2c: 01 07 00 44 13 00 00 00 00 00 02 0D 6D [23:05:18]RasterBufferAndPrint [23:05:18]line [23:05:18]line [23:05:18]line [23:05:18]line [23:05:18]line [23:05:18]written 0, free lines is 3336 [23:05:18]MH_Cut [23:05:18]Write to MH i2c: D1 01 00 4B 13 01 30 [23:05:18]Write i2c OK [23:05:18]MH_I2C_Read... [23:05:18]Read from MH i2c: D1 [23:05:18]MH_I2C_Read... [23:05:18]Read from MH i2c: D1 01 00 [23:05:18]MH_I2C_Read... [23:05:18]Read from MH i2c: D1 01 00 4B 13 00 2F [23:05:18]Write to MH i2c: 01 00 00 4C 13 5F [23:05:18]Write i2c OK [23:05:18]MH_I2C_Read... [23:05:19]OFD Sender: No OFD packet to send [23:05:19]*** Cut start [23:05:19]*** Partial cut [23:05:19]*** CUTSNS_PIN = 1 [23:05:19]*** CUTSNS_PIN = 0 [23:05:19]*** Brake cut motor [23:05:20]Read from MH i2c: 01 [23:05:20]MH_I2C_Read... [23:05:20]*** Stop cut motor [23:05:20]*** Cut end [23:05:20]Read from MH i2c: 01 07 00 [23:05:20]MH_I2C_Read... [23:05:20]Read from MH i2c: 01 07 00 4C 13 00 00 00 00 00 FF 0F 74 [23:05:20]process_action close_receipt done [23:05:20]requested_data is exist [23:05:20]produce_requested_data [23:05:20]requested_item fm.sn is exist - process it [23:05:20]wFMCommunicate request_size=4 [23:05:20]MH_SAM_APDU [23:05:20]CAPDU: 80 11 00 00 [23:05:20]Write to MH i2c: E2 08 00 4D 13 80 11 00 00 00 00 00 00 DA [23:05:20]Write i2c OK [23:05:20]MH_I2C_Read... [23:05:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:05:20]Read from MH i2c: E2 [23:05:20]MH_I2C_Read... [23:05:20]Read from MH i2c: E2 17 00 [23:05:20]MH_I2C_Read... [23:05:20]Read from MH i2c: E2 17 00 4D 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 30 [23:05:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:05:20]wFMCommunicate OK [23:05:20]requested_item fd.num is exist - process it [23:05:20]SAM_PROTO_GetFieldsCounters [23:05:20]wFMCommunicate request_size=4 [23:05:20]MH_SAM_APDU [23:05:20]CAPDU: 80 13 00 00 [23:05:20]Write to MH i2c: E2 08 00 4E 13 80 13 00 00 00 00 00 00 DD [23:05:20]Write i2c OK [23:05:20]MH_I2C_Read... [23:05:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:05:20]Read from MH i2c: E2 [23:05:20]MH_I2C_Read... [23:05:20]Read from MH i2c: E2 62 00 [23:05:20]MH_I2C_Read... [23:05:20]Read from MH i2c: E2 62 00 4E 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 69 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 63 01 00 00 19 04 04 00 00 00 00 00 90 00 DF [23:05: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 69 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 63 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:05:20]wFMCommunicate OK [23:05:20]SAM_PROTO_GetFieldsCounters done [23:05:20]requested_item shift.num is exist - process it [23:05:20]requested_item shift.opened is exist - process it [23:05:20]req_shift_opened [23:05:20]FM_GetShiftState [23:05:20]SAM_PROTO_GetShiftState [23:05:20]wFMCommunicate request_size=4 [23:05:20]MH_SAM_APDU [23:05:20]CAPDU: 80 13 01 00 [23:05:20]Write to MH i2c: E2 08 00 4F 13 80 13 01 00 00 00 00 00 DF [23:05:20]Write i2c OK [23:05:20]MH_I2C_Read... [23:05:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:05:20]Read from MH i2c: E2 [23:05:20]MH_I2C_Read... [23:05:20]Read from MH i2c: E2 0E 00 [23:05:20]MH_I2C_Read... [23:05:20]Read from MH i2c: E2 0E 00 4F 13 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 B8 [23:05:20]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [23:05:20]wFMCommunicate OK [23:05:20]SAM_PROTO_GetShiftState done [23:05:20]FM_GetShiftState done [23:05:20]req_shift_opened done [23:05:20]requested_item shift.open_date is exist - process it [23:05:20]req_shift_open_date [23:05:20]req_shift_open_date done [23:05:20]produce_requested_data done [23:05:20]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165481,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [23:05:20]process_action_free close_receipt [23:05:20]json_value_free [23:05:20]json_value_free done [23:05:20]process_json_proto returns [23:05:20]Send response to host [23:05:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165481,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [23:05:20]free response buf [23:05:20]execute_script done [23:05:20]execute_script returns [23:05:20]free content buf [23:05:20]Sock 7.Close socket [23:05:20]Sock 7.Thread stoped [23:05:24]OFD Sender: No OFD packet to send [23:05:29]OFD Sender: No OFD packet to send [23:05:34]OFD Sender: No OFD packet to send [23:05:39]OFD Sender: No OFD packet to send [23:05:44]OFD Sender: No OFD packet to send [23:05:49]OFD Sender: No OFD packet to send [23:05:54]OFD Sender: No OFD packet to send [23:05:59]OFD Sender: No OFD packet to send [23:06:04]OFD Sender: No OFD packet to send [23:06:09]OFD Sender: No OFD packet to send [23:06:14]OFD Sender: No OFD packet to send [23:06:19]OFD Sender: No OFD packet to send [23:06:24]OFD Sender: No OFD packet to send [23:06:29]OFD Sender: No OFD packet to send [23:06:34]OFD Sender: No OFD packet to send [23:06:39]OFD Sender: No OFD packet to send [23:06:44]OFD Sender: No OFD packet to send [23:06:49]OFD Sender: No OFD packet to send [23:06:54]OFD Sender: No OFD packet to send [23:06:59]OFD Sender: No OFD packet to send [23:07:04]OFD Sender: No OFD packet to send [23:07:09]OFD Sender: No OFD packet to send [23:07:14]OFD Sender: No OFD packet to send [23:07:19]OFD Sender: No OFD packet to send [23:07:24]OFD Sender: No OFD packet to send [23:07:29]OFD Sender: No OFD packet to send [23:07:34]OFD Sender: No OFD packet to send [23:07:39]OFD Sender: No OFD packet to send [23:07:44]OFD Sender: No OFD packet to send [23:07:49]OFD Sender: No OFD packet to send [23:07:54]OFD Sender: No OFD packet to send [23:07:59]OFD Sender: No OFD packet to send [23:08:04]OFD Sender: No OFD packet to send [23:08:09]OFD Sender: No OFD packet to send [23:08:14]OFD Sender: No OFD packet to send [23:08:19]OFD Sender: No OFD packet to send [23:08:24]OFD Sender: No OFD packet to send [23:08:29]OFD Sender: No OFD packet to send [23:08:34]OFD Sender: No OFD packet to send [23:08:39]OFD Sender: No OFD packet to send [23:08:44]OFD Sender: No OFD packet to send [23:08:49]OFD Sender: No OFD packet to send [23:08:54]OFD Sender: No OFD packet to send [23:08:59]OFD Sender: No OFD packet to send [23:09:04]OFD Sender: No OFD packet to send [23:09:09]OFD Sender: No OFD packet to send [23:09:14]OFD Sender: No OFD packet to send [23:09:19]OFD Sender: No OFD packet to send [23:09:24]OFD Sender: No OFD packet to send [23:09:29]OFD Sender: No OFD packet to send [23:09:34]OFD Sender: No OFD packet to send [23:09:39]OFD Sender: No OFD packet to send [23:09:44]OFD Sender: No OFD packet to send [23:09:49]OFD Sender: No OFD packet to send [23:09:54]OFD Sender: No OFD packet to send [23:09:59]OFD Sender: No OFD packet to send [23:10:04]OFD Sender: No OFD packet to send [23:10:09]OFD Sender: No OFD packet to send [23:10:14]OFD Sender: No OFD packet to send [23:10:19]OFD Sender: No OFD packet to send [23:10:24]OFD Sender: No OFD packet to send [23:10:29]OFD Sender: No OFD packet to send [23:10:34]OFD Sender: No OFD packet to send [23:10:39]OFD Sender: No OFD packet to send [23:10:44]OFD Sender: No OFD packet to send [23:10:49]OFD Sender: No OFD packet to send [23:10:54]OFD Sender: No OFD packet to send [23:10:59]OFD Sender: No OFD packet to send [23:11:04]OFD Sender: No OFD packet to send [23:11:09]OFD Sender: No OFD packet to send [23:11:14]OFD Sender: No OFD packet to send [23:11:19]OFD Sender: No OFD packet to send [23:11:24]OFD Sender: No OFD packet to send [23:11:29]OFD Sender: No OFD packet to send [23:11:34]OFD Sender: No OFD packet to send [23:11:39]OFD Sender: No OFD packet to send [23:11:44]OFD Sender: No OFD packet to send [23:11:49]OFD Sender: No OFD packet to send [23:11:54]OFD Sender: No OFD packet to send [23:11:59]OFD Sender: No OFD packet to send [23:12:04]OFD Sender: No OFD packet to send [23:12:09]OFD Sender: No OFD packet to send [23:12:14]OFD Sender: No OFD packet to send [23:12:19]OFD Sender: No OFD packet to send [23:12:24]OFD Sender: No OFD packet to send [23:12:29]OFD Sender: No OFD packet to send [23:12:34]OFD Sender: No OFD packet to send [23:12:39]OFD Sender: No OFD packet to send [23:12:44]OFD Sender: No OFD packet to send [23:12:49]OFD Sender: No OFD packet to send [23:12:54]OFD Sender: No OFD packet to send [23:12:59]OFD Sender: No OFD packet to send [23:13:04]OFD Sender: No OFD packet to send [23:13:09]OFD Sender: No OFD packet to send [23:13:14]OFD Sender: No OFD packet to send [23:13:19]OFD Sender: No OFD packet to send [23:13:24]OFD Sender: No OFD packet to send [23:13:29]OFD Sender: No OFD packet to send [23:13:34]OFD Sender: No OFD packet to send [23:13:39]OFD Sender: No OFD packet to send [23:13:44]OFD Sender: No OFD packet to send [23:13:49]OFD Sender: No OFD packet to send [23:13:54]OFD Sender: No OFD packet to send [23:13:59]OFD Sender: No OFD packet to send [23:14:04]OFD Sender: No OFD packet to send [23:14:09]OFD Sender: No OFD packet to send [23:14:14]OFD Sender: No OFD packet to send [23:14:19]OFD Sender: No OFD packet to send [23:14:24]OFD Sender: No OFD packet to send [23:14:29]OFD Sender: No OFD packet to send [23:14:34]OFD Sender: No OFD packet to send [23:14:39]OFD Sender: No OFD packet to send [23:14:44]OFD Sender: No OFD packet to send [23:14:49]OFD Sender: No OFD packet to send [23:14:54]OFD Sender: No OFD packet to send [23:14:59]OFD Sender: No OFD packet to send [23:15:04]OFD Sender: No OFD packet to send [23:15:09]OFD Sender: No OFD packet to send [23:15:14]OFD Sender: No OFD packet to send [23:15:19]OFD Sender: No OFD packet to send [23:15:24]OFD Sender: No OFD packet to send [23:15:29]OFD Sender: No OFD packet to send [23:15:34]OFD Sender: No OFD packet to send [23:15:39]OFD Sender: No OFD packet to send [23:15:44]OFD Sender: No OFD packet to send [23:15:49]OFD Sender: No OFD packet to send [23:15:54]OFD Sender: No OFD packet to send [23:15:59]OFD Sender: No OFD packet to send [23:16:04]OFD Sender: No OFD packet to send [23:16:09]accept exits with 9 [23:16:09]New connection [23:16:09]New thread 3067190628 created [23:16:09]Thread 3067333988 joined [23:16:09]Waiting for new connection... [23:16:09] Sock 9.Parse request [23:16:09]Sock 9.Check first char [23:16:09]Sock 9.First char is OK [23:16:09]request: POST /json_proto HTTP/1.0 [23:16:09]Method: POST [23:16:09]URL: /json_proto [23:16:09]Method is POST - this is cgi request [23:16:09]url: /json_proto [23:16:09]query_string will be loaded in cgi processing [23:16:09]execute_cgi json_proto POST (null) [23:16:09]execute_cgi path=json_proto method=POST [23:16:09]POST find Content-Length [23:16:09]Host: 172.17.56.4:8080 [23:16:09]Content-Length: 840 [23:16:09]Content-Type: application/json [23:16:09] [23:16:09]POST finish read [23:16:09]Found Content-Length = 840 [23:16:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459598", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.890, "sum" : 514.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 514.59 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:16:09]execute_script... [23:16: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)459598", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 7.890, "sum" : 514.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 514.59 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:16:09]POST & json_proto [23:16:09]process_json_proto [23:16:09]json parsed OK: [23:16:09]protocol is kg_v1.0 [23:16:09]action value=close_receipt [23:16:09]process_action close_receipt [23:16:09]cmd_close_receipt [23:16:09]MH_GetDate [23:16:09]Write to MH i2c: F0 00 00 50 13 52 [23:16:09]Write i2c OK [23:16:09]MH_I2C_Read... [23:16:09]Read from MH i2c: F0 [23:16:09]MH_I2C_Read... [23:16:09]Read from MH i2c: F0 09 00 [23:16:09]MH_I2C_Read... [23:16:09]Read from MH i2c: F0 09 00 50 13 00 BB AD 95 66 C9 DC B2 64 79 [23:16:09]GetLastDocTimeStamp 1721084717 [23:16:09]current date 1721085371 [23:16:09]FM_GetShiftState [23:16:09]SAM_PROTO_GetShiftState [23:16:09]wFMCommunicate request_size=4 [23:16:09]MH_SAM_APDU [23:16:09]CAPDU: 80 13 01 00 [23:16:09]Write to MH i2c: E2 08 00 51 13 80 13 01 00 00 00 00 00 E1 [23:16:09]Write i2c OK [23:16:09]MH_I2C_Read... [23:16:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:16:09]Read from MH i2c: E2 [23:16:09]MH_I2C_Read... [23:16:09]Read from MH i2c: E2 0E 00 [23:16:09]MH_I2C_Read... [23:16:09]Read from MH i2c: E2 0E 00 51 13 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 BA [23:16:09]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [23:16:09]wFMCommunicate OK [23:16:09]SAM_PROTO_GetShiftState done [23:16:09]FM_GetShiftState done [23:16:09]opened in 1721003876 [23:16:09]opened+sec_in_day 1721090276 [23:16:09]quantity*price = 51458 [23:16:09]sum+1 = 51460 [23:16:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 514.59 НСП 1% : 4.55 НДС 12% : 54.65 Наличными: 0.00 Безнал.: 514.59 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 355 15.07.2024 23:16 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874718 ФД: 165482 ФПД: 49572583459668 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T231611&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165482&fm=49572583459668&tin=02508201610067®Number=0000000000090829&sum=51459 [23:16:10]StoreToDocumentArchive [23:16:10]shift 448 fd 165482 [23:16:10]save to /storage/0448/doc_00165482 [23:16:10]save last doc name /storage/0448/doc_00165482 to /storage/kkm_last_doc_name [23:16:10]save OK [23:16:10]Clear old archive folders... [23:16:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:16:10]tlvbuf is 01B7C0F0 [23:16:10]SAM_PROTO_ClearQueue [23:16:10]wFMCommunicate request_size=4 [23:16:10]MH_SAM_APDU [23:16:10]CAPDU: 80 09 00 00 [23:16:10]Write to MH i2c: E2 08 00 5E 13 80 09 00 00 00 00 00 00 E3 [23:16:10]Write i2c OK [23:16:10]MH_I2C_Read... [23:16:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:16:10]Read from MH i2c: E2 [23:16:10]MH_I2C_Read... [23:16:10]Read from MH i2c: E2 03 00 [23:16:10]MH_I2C_Read... [23:16:10]Read from MH i2c: E2 03 00 5E 13 00 90 00 E5 [23:16:10]RAPDU: 90 00 [23:16:10]wFMCommunicate OK [23:16:10]SAM_PROTO_ClearQueue done [23:16:10]KKMCreateOFDPacket [23:16:10]OFDProtocolAddRootSTLVToBuf [23:16:10]FM_MakeSignedData [23:16:10]FM_MakeSignedData [23:16:10]SAM_PROTO_SignData [23:16:10]wFMCommunicate request_size=4 [23:16:10]MH_SAM_APDU [23:16:10]CAPDU: 80 0D 01 02 [23:16:10]Write to MH i2c: E2 08 00 5F 13 80 0D 01 02 00 00 00 00 EB [23:16:10]Write i2c OK [23:16:10]MH_I2C_Read... [23:16:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:16:11]Read from MH i2c: E2 [23:16:11]MH_I2C_Read... [23:16:11]Read from MH i2c: E2 03 00 [23:16:11]MH_I2C_Read... [23:16:11]Read from MH i2c: E2 03 00 5F 13 00 90 00 E6 [23:16:11]RAPDU: 90 00 [23:16:11]wFMCommunicate OK [23:16:11]wFMCommunicate request_size=255 [23:16:11]MH_SAM_APDU [23:16: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 D2 1E 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 03 C9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 03 C9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 15 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 03 C9 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 BB AD 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6A 86 02 00 35 04 06 00 2D [23:16:11]Write to MH i2c: E2 02 01 60 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D2 1E 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 03 C9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 03 C9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 15 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 03 C9 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 BB AD 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6A 86 02 00 35 04 06 00 2D 00 00 BF [23:16:11]Write i2c OK [23:16:11]MH_I2C_Read... [23:16:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:16:11]Read from MH i2c: E2 [23:16:11]MH_I2C_Read... [23:16:11]Read from MH i2c: E2 03 00 [23:16:11]MH_I2C_Read... [23:16:11]Read from MH i2c: E2 03 00 60 13 00 90 00 E7 [23:16:11]RAPDU: 90 00 [23:16:11]wFMCommunicate OK [23:16:11]wFMCommunicate request_size=10 [23:16:11]MH_SAM_APDU [23:16:11]CAPDU: 80 0D 02 02 05 16 04 3A 4B 54 [23:16:11]Write to MH i2c: E2 0D 00 61 13 80 0D 02 02 05 00 16 04 3A 4B 54 00 00 EB [23:16:11]Write i2c OK [23:16:11]MH_I2C_Read... [23:16:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:16:11]Read from MH i2c: E2 [23:16:11]MH_I2C_Read... [23:16:11]Read from MH i2c: E2 03 00 [23:16:11]MH_I2C_Read... [23:16:11]Read from MH i2c: E2 03 00 61 13 00 90 00 E8 [23:16:11]RAPDU: 90 00 [23:16:11]wFMCommunicate OK [23:16:11]wFMCommunicate request_size=4 [23:16:11]MH_SAM_APDU [23:16:11]CAPDU: 80 0D 03 02 [23:16:11]Write to MH i2c: E2 08 00 62 13 80 0D 03 02 00 00 00 00 F0 [23:16:11]Write i2c OK [23:16:11]MH_I2C_Read... [23:16:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:16:11]Read from MH i2c: E2 [23:16:11]MH_I2C_Read... [23:16:11]Read from MH i2c: E2 0B 00 [23:16:11]MH_I2C_Read... [23:16:11]Read from MH i2c: E2 0B 00 62 13 00 28 D6 98 46 B3 1A CD D1 90 00 38 [23:16:11]RAPDU: 28 D6 98 46 B3 1A CD D1 90 00 [23:16:11]wFMCommunicate OK [23:16:11]SAM_PROTO_SignData done [23:16:11]FM_MakeSignedData done [23:16:11]CreateOFDProtocolMessage [23:16:11]wFMCommunicate request_size=4 [23:16:11]MH_SAM_APDU [23:16:11]CAPDU: 80 11 00 00 [23:16:11]Write to MH i2c: E2 08 00 63 13 80 11 00 00 00 00 00 00 F0 [23:16:11]Write i2c OK [23:16:11]MH_I2C_Read... [23:16:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:16:11]Read from MH i2c: E2 [23:16:11]MH_I2C_Read... [23:16:11]Read from MH i2c: E2 17 00 [23:16:11]MH_I2C_Read... [23:16:11]Read from MH i2c: E2 17 00 63 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 46 [23:16:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:16:11]wFMCommunicate OK [23:16:11]CreateOFDProtocolMessage done [23:16:11]OFDSenderStorePacket 165482 [23:16:11]StoreOFDPacket docnum=165482 [23:16:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 73 A2 07 01 B4 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 7A 19 00 00 00 00 13 04 06 00 03 C9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 03 C9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 15 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 03 C9 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 BB AD 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6A 86 02 00 35 04 06 00 2D 16 04 3A 4B 54 28 D6 98 46 B3 1A CD D1 [23:16:11]CheckFolder [23:16:11]dirname=/storage/ofd_packets [23:16:11]CheckFolder done [23:16:11]ProducePacketName [23:16:11]name=ofd_packets/00165482 [23:16:11]NVStorageSaveData ofd_packets/00165482 [23:16:11]File name is /storage/ofd_packets/00165482 [23:16:11]Write 301 bytes [23:16:11]NVStorageSaveData done [23:16:11]OFDSenderStorePacket done [23:16:11]KKMCreateOFDPacket done [23:16:11]NVStorageSaveData kkm_last_timestamp [23:16:11]File name is /storage/kkm_last_timestamp [23:16:11]Write 4 bytes [23:16:11]NVStorageSaveData done [23:16:11]ExternCall_PrintAddStr [23:16:11]wPrintStart [23:16:11]Write to MH i2c: 01 00 00 64 13 77 [23:16:11]Write i2c OK [23:16:11]MH_I2C_Read... [23:16:11]Read from MH i2c: 01 [23:16:11]MH_I2C_Read... [23:16:11]Read from MH i2c: 01 07 00 [23:16:11]MH_I2C_Read... [23:16:11]Read from MH i2c: 01 07 00 64 13 00 00 00 00 00 FF 0F 8C [23:16:11]RasterBufferAndPrint [23:16:11]line Счет N : (1)459598 [23:16:11]line ИНН: 02508201610067 [23:16:11]line Контрольно-Кассовый Чек [23:16:11]line ПРОДАЖА [23:16:11]line ТРК (МРК, ГНК) : 12 [23:16:11]line Товар: 2710124130 [23:16:11]line Аи-92-К-5 [23:16:11]line 7.890 * 65.22 [23:16:11]line = 514.59 [23:16:11]line НДС 12% НСП 1% [23:16:11]line > о реализуемом товаре [23:16:11]line ИТОГО: 514.59 [23:16:11]line НСП 1% : 4.55 [23:16:11]line НДС 12% : 54.65 [23:16:11]line Наличными: 0.00 [23:16:11]line Безнал.: 514.59 [23:16:11]line Место: АЗС № 72 "Партнер Нефть" [23:16:11]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [23:16:11]line СНО: Общий режим [23:16:11]line Чек 355 15.07.2024 23:16 [23:16:11]line Смена: 448 ФФД: 1.0 [23:16:11]line ЗНМ: 0300000160 [23:16:11]line РНМ: 0000000000090829 [23:16:11]line Версия ККМ: 001 [23:16:11]line Платежная система: АКБ Кыргызстан [23:16:11]line ФМ: 0000000000874718 [23:16:11]line ФД: 165482 [23:16:11]line ФПД: 49572583459668 [23:16:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T231611&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165482&fm=49572583459668&tin=02508201610067®Number=0000000000090829&sum=51459 [23:16:11]written 0, free lines is 4095 [23:16:11]OFD Sender: Processing packet 165482 [packets to send 106, broken 105] [23:16:11]ProducePacketName [23:16:11]name=ofd_packets/00165482 [23:16:11]OFD Sender: To server: pG, [23:16:11]CommunicateWithHost lk.salyk.kg:30040 [23:16:11]ConnectInit lk.salyk.kg [23:16:11]Connected sock=11 [23:16: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 37 31 38 0F 01 00 00 73 A2 07 01 B4 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 7A 19 00 00 00 00 13 04 06 00 03 C9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 03 C9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 15 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 03 C9 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 BB AD 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6A 86 02 00 35 04 06 00 2D 16 04 3A 4B 54 28 D6 98 46 B3 1A CD D1 [23:16:11]Write to MH i2c: 01 00 00 8D 13 A0 [23:16:11]Write i2c OK [23:16:11]MH_I2C_Read... [23:16:11]Read from MH i2c: 01 [23:16:11]MH_I2C_Read... [23:16:11]Read from MH i2c: 01 07 00 [23:16:11]MH_I2C_Read... [23:16:11]Read from MH i2c: 01 07 00 8D 13 00 00 00 00 00 1E 0D D2 [23:16:11]RasterBufferAndPrint [23:16:11]line [23:16:11]line [23:16:11]line [23:16:11]line [23:16:11]line [23:16:11]written 0, free lines is 3363 [23:16:11]MH_Cut [23:16:11]Write to MH i2c: D1 01 00 94 13 01 79 [23:16:11]Write i2c OK [23:16:11]MH_I2C_Read... [23:16:11]Read from MH i2c: D1 [23:16:11]MH_I2C_Read... [23:16:11]Read from MH i2c: D1 01 00 [23:16:11]MH_I2C_Read... [23:16:11]Read from MH i2c: D1 01 00 94 13 00 78 [23:16:11]Write to MH i2c: 01 00 00 95 13 A8 [23:16:11]Write i2c OK [23:16:11]MH_I2C_Read... [23:16:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 29 2F 47 00 56 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6A 86 02 00 F4 03 04 00 44 54 95 66 B6 04 01 00 00 56 27 E1 90 8E F5 FA C7 [23:16:12]CommunicateWithHost err = 0 [23:16:12]CheckOFDResponse [23:16:12]1017 (14) - 77093643461234 [23:16:12]1041 (16) - 0000000000874718 [23:16:12]1040 (4) - 165482 [23:16:12]1012 (4) - 15.07.2024 16:54 [23:16:12]1206 (1) - 0 [23:16:12]OFD Sender: Remove packet 165482 [23:16:12]ProducePacketName [23:16:12]name=ofd_packets/00165482 [23:16:12]NVStorageDeleteData [23:16:12]*** Cut start [23:16:12]*** Partial cut [23:16:12]*** CUTSNS_PIN = 1 [23:16:12]OFD Sender: No OFD packet to send [23:16:12]*** CUTSNS_PIN = 0 [23:16:12]*** Brake cut motor [23:16:13]Read from MH i2c: 01 [23:16:13]MH_I2C_Read... [23:16:13]*** Stop cut motor [23:16:13]*** Cut end [23:16:13]Read from MH i2c: 01 07 00 [23:16:13]MH_I2C_Read... [23:16:13]Read from MH i2c: 01 07 00 95 13 00 00 00 00 00 FF 0F BD [23:16:13]process_action close_receipt done [23:16:13]requested_data is exist [23:16:13]produce_requested_data [23:16:13]requested_item fm.sn is exist - process it [23:16:13]wFMCommunicate request_size=4 [23:16:13]MH_SAM_APDU [23:16:13]CAPDU: 80 11 00 00 [23:16:13]Write to MH i2c: E2 08 00 96 13 80 11 00 00 00 00 00 00 23 [23:16:13]Write i2c OK [23:16:13]MH_I2C_Read... [23:16:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:16:13]Read from MH i2c: E2 [23:16:13]MH_I2C_Read... [23:16:13]Read from MH i2c: E2 17 00 [23:16:13]MH_I2C_Read... [23:16:13]Read from MH i2c: E2 17 00 96 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 79 [23:16:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:16:13]wFMCommunicate OK [23:16:13]requested_item fd.num is exist - process it [23:16:13]SAM_PROTO_GetFieldsCounters [23:16:13]wFMCommunicate request_size=4 [23:16:13]MH_SAM_APDU [23:16:13]CAPDU: 80 13 00 00 [23:16:13]Write to MH i2c: E2 08 00 97 13 80 13 00 00 00 00 00 00 26 [23:16:13]Write i2c OK [23:16:13]MH_I2C_Read... [23:16:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:16:13]Read from MH i2c: E2 [23:16:13]MH_I2C_Read... [23:16:13]Read from MH i2c: E2 62 00 [23:16:13]MH_I2C_Read... [23:16:13]Read from MH i2c: E2 62 00 97 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6A 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 63 01 00 00 5E 04 04 00 63 01 00 00 57 04 04 00 64 01 00 00 19 04 04 00 00 00 00 00 90 00 2C [23:16: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6A 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 63 01 00 00 5E 04 04 00 63 01 00 00 57 04 04 00 64 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:16:13]wFMCommunicate OK [23:16:13]SAM_PROTO_GetFieldsCounters done [23:16:13]requested_item shift.num is exist - process it [23:16:13]requested_item shift.opened is exist - process it [23:16:13]req_shift_opened [23:16:13]FM_GetShiftState [23:16:13]SAM_PROTO_GetShiftState [23:16:13]wFMCommunicate request_size=4 [23:16:13]MH_SAM_APDU [23:16:13]CAPDU: 80 13 01 00 [23:16:13]Write to MH i2c: E2 08 00 98 13 80 13 01 00 00 00 00 00 28 [23:16:13]Write i2c OK [23:16:13]MH_I2C_Read... [23:16:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:16:13]Read from MH i2c: E2 [23:16:13]MH_I2C_Read... [23:16:13]Read from MH i2c: E2 0E 00 [23:16:13]MH_I2C_Read... [23:16:13]Read from MH i2c: E2 0E 00 98 13 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 01 [23:16:13]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [23:16:13]wFMCommunicate OK [23:16:13]SAM_PROTO_GetShiftState done [23:16:13]FM_GetShiftState done [23:16:13]req_shift_opened done [23:16:13]requested_item shift.open_date is exist - process it [23:16:13]req_shift_open_date [23:16:13]req_shift_open_date done [23:16:13]produce_requested_data done [23:16:13]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165482,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [23:16:13]process_action_free close_receipt [23:16:13]json_value_free [23:16:13]json_value_free done [23:16:13]process_json_proto returns [23:16:13]Send response to host [23:16:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165482,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [23:16:13]free response buf [23:16:13]execute_script done [23:16:13]execute_script returns [23:16:13]free content buf [23:16:13]Sock 9.Close socket [23:16:13]Sock 9.Thread stoped [23:16:17]OFD Sender: No OFD packet to send [23:16:22]OFD Sender: No OFD packet to send [23:16:27]OFD Sender: No OFD packet to send [23:16:32]OFD Sender: No OFD packet to send [23:16:37]OFD Sender: No OFD packet to send [23:16:42]OFD Sender: No OFD packet to send [23:16:47]OFD Sender: No OFD packet to send [23:16:52]OFD Sender: No OFD packet to send [23:16:57]OFD Sender: No OFD packet to send [23:17:02]OFD Sender: No OFD packet to send [23:17:07]OFD Sender: No OFD packet to send [23:17:12]OFD Sender: No OFD packet to send [23:17:17]OFD Sender: No OFD packet to send [23:17:22]OFD Sender: No OFD packet to send [23:17:27]OFD Sender: No OFD packet to send [23:17:32]OFD Sender: No OFD packet to send [23:17:37]OFD Sender: No OFD packet to send [23:17:42]OFD Sender: No OFD packet to send [23:17:47]OFD Sender: No OFD packet to send [23:17:52]OFD Sender: No OFD packet to send [23:17:57]OFD Sender: No OFD packet to send [23:18:02]OFD Sender: No OFD packet to send [23:18:07]OFD Sender: No OFD packet to send [23:18:12]OFD Sender: No OFD packet to send [23:18:17]OFD Sender: No OFD packet to send [23:18:22]OFD Sender: No OFD packet to send [23:18:27]OFD Sender: No OFD packet to send [23:18:32]OFD Sender: No OFD packet to send [23:18:37]OFD Sender: No OFD packet to send [23:18:42]OFD Sender: No OFD packet to send [23:18:47]OFD Sender: No OFD packet to send [23:18:52]OFD Sender: No OFD packet to send [23:18:57]OFD Sender: No OFD packet to send [23:19:02]OFD Sender: No OFD packet to send [23:19:07]OFD Sender: No OFD packet to send [23:19:09]accept exits with 7 [23:19:09]New connection [23:19:09]New thread 3067333988 created [23:19:09]Thread 3067190628 joined [23:19:09]Waiting for new connection... [23:19:09] Sock 7.Parse request [23:19:09]Sock 7.Check first char [23:19:09]Sock 7.First char is OK [23:19:09]request: POST /json_proto HTTP/1.0 [23:19:09]Method: POST [23:19:09]URL: /json_proto [23:19:09]Method is POST - this is cgi request [23:19:09]url: /json_proto [23:19:09]query_string will be loaded in cgi processing [23:19:09]execute_cgi json_proto POST (null) [23:19:09]execute_cgi path=json_proto method=POST [23:19:09]POST find Content-Length [23:19:09]Host: 172.17.56.4:8080 [23:19:09]Content-Length: 790 [23:19:09]Content-Type: application/json [23:19:09] [23:19:09]POST finish read [23:19:09]Found Content-Length = 790 [23:19:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459599", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 5.000, "sum" : 326.10, "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 326.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:19:09]execute_script... [23:19: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)459599", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 5.000, "sum" : 326.10, "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 326.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:19:09]POST & json_proto [23:19:09]process_json_proto [23:19:09]json parsed OK: [23:19:09]protocol is kg_v1.0 [23:19:09]action value=close_receipt [23:19:09]process_action close_receipt [23:19:09]cmd_close_receipt [23:19:09]MH_GetDate [23:19:09]Write to MH i2c: F0 00 00 99 13 9B [23:19:09]Write i2c OK [23:19:09]MH_I2C_Read... [23:19:09]Read from MH i2c: F0 [23:19:09]MH_I2C_Read... [23:19:09]Read from MH i2c: F0 09 00 [23:19:09]MH_I2C_Read... [23:19:09]Read from MH i2c: F0 09 00 99 13 00 6E AE 95 66 C9 DC B2 64 76 [23:19:09]GetLastDocTimeStamp 1721085371 [23:19:09]current date 1721085550 [23:19:09]FM_GetShiftState [23:19:09]SAM_PROTO_GetShiftState [23:19:09]wFMCommunicate request_size=4 [23:19:09]MH_SAM_APDU [23:19:09]CAPDU: 80 13 01 00 [23:19:09]Write to MH i2c: E2 08 00 9A 13 80 13 01 00 00 00 00 00 2A [23:19:09]Write i2c OK [23:19:09]MH_I2C_Read... [23:19:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:19:09]Read from MH i2c: E2 [23:19:09]MH_I2C_Read... [23:19:09]Read from MH i2c: E2 0E 00 [23:19:09]MH_I2C_Read... [23:19:09]Read from MH i2c: E2 0E 00 9A 13 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 03 [23:19:09]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [23:19:09]wFMCommunicate OK [23:19:09]SAM_PROTO_GetShiftState done [23:19:09]FM_GetShiftState done [23:19:09]opened in 1721003876 [23:19:09]opened+sec_in_day 1721090276 [23:19:09]quantity*price = 32610 [23:19:09]sum+1 = 32611 [23:19:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 326.10 НСП 1% : 2.89 НДС 12% : 34.63 Наличными: 0.00 Безнал.: 326.10 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 356 15.07.2024 23:19 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 165483 ФПД: 1905678663145 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T231910&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165483&fm=1905678663145&tin=02508201610067®Number=0000000000090829&sum=32610 [23:19:10]StoreToDocumentArchive [23:19:10]shift 448 fd 165483 [23:19:10]save to /storage/0448/doc_00165483 [23:19:10]save last doc name /storage/0448/doc_00165483 to /storage/kkm_last_doc_name [23:19:10]save OK [23:19:10]Clear old archive folders... [23:19:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:19:10]tlvbuf is 01B7BB60 [23:19:10]SAM_PROTO_ClearQueue [23:19:10]wFMCommunicate request_size=4 [23:19:10]MH_SAM_APDU [23:19:10]CAPDU: 80 09 00 00 [23:19:10]Write to MH i2c: E2 08 00 A7 13 80 09 00 00 00 00 00 00 2C [23:19:10]Write i2c OK [23:19:10]MH_I2C_Read... [23:19:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:19:10]Read from MH i2c: E2 [23:19:10]MH_I2C_Read... [23:19:10]Read from MH i2c: E2 03 00 [23:19:10]MH_I2C_Read... [23:19:10]Read from MH i2c: E2 03 00 A7 13 00 90 00 2E [23:19:10]RAPDU: 90 00 [23:19:10]wFMCommunicate OK [23:19:10]SAM_PROTO_ClearQueue done [23:19:10]KKMCreateOFDPacket [23:19:10]OFDProtocolAddRootSTLVToBuf [23:19:10]FM_MakeSignedData [23:19:10]FM_MakeSignedData [23:19:10]SAM_PROTO_SignData [23:19:10]wFMCommunicate request_size=4 [23:19:10]MH_SAM_APDU [23:19:10]CAPDU: 80 0D 01 02 [23:19:10]Write to MH i2c: E2 08 00 A8 13 80 0D 01 02 00 00 00 00 34 [23:19:10]Write i2c OK [23:19:10]MH_I2C_Read... [23:19:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:19:10]Read from MH i2c: E2 [23:19:10]MH_I2C_Read... [23:19:10]Read from MH i2c: E2 03 00 [23:19:10]MH_I2C_Read... [23:19:10]Read from MH i2c: E2 03 00 A8 13 00 90 00 2F [23:19:10]RAPDU: 90 00 [23:19:10]wFMCommunicate OK [23:19:10]wFMCommunicate request_size=255 [23:19:10]MH_SAM_APDU [23:19: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 88 13 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 7F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 7F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 7F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 01 00 00 F4 03 04 00 6E AE 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6B 86 02 00 35 04 06 00 01 [23:19:10]Write to MH i2c: E2 02 01 A9 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 7F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 7F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 7F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 01 00 00 F4 03 04 00 6E AE 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6B 86 02 00 35 04 06 00 01 00 00 FC [23:19:10]Write i2c OK [23:19:10]MH_I2C_Read... [23:19:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:19:10]Read from MH i2c: E2 [23:19:10]MH_I2C_Read... [23:19:10]Read from MH i2c: E2 03 00 [23:19:10]MH_I2C_Read... [23:19:10]Read from MH i2c: E2 03 00 A9 13 00 90 00 30 [23:19:10]RAPDU: 90 00 [23:19:10]wFMCommunicate OK [23:19:10]wFMCommunicate request_size=10 [23:19:10]MH_SAM_APDU [23:19:10]CAPDU: 80 0D 02 02 05 BB B3 4C BD E9 [23:19:10]Write to MH i2c: E2 0D 00 AA 13 80 0D 02 02 05 00 BB B3 4C BD E9 00 00 A1 [23:19:10]Write i2c OK [23:19:10]MH_I2C_Read... [23:19:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:19:10]Read from MH i2c: E2 [23:19:10]MH_I2C_Read... [23:19:10]Read from MH i2c: E2 03 00 [23:19:10]MH_I2C_Read... [23:19:10]Read from MH i2c: E2 03 00 AA 13 00 90 00 31 [23:19:10]RAPDU: 90 00 [23:19:10]wFMCommunicate OK [23:19:10]wFMCommunicate request_size=4 [23:19:10]MH_SAM_APDU [23:19:10]CAPDU: 80 0D 03 02 [23:19:10]Write to MH i2c: E2 08 00 AB 13 80 0D 03 02 00 00 00 00 39 [23:19:10]Write i2c OK [23:19:10]MH_I2C_Read... [23:19:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:19:10]Read from MH i2c: E2 [23:19:10]MH_I2C_Read... [23:19:10]Read from MH i2c: E2 0B 00 [23:19:10]MH_I2C_Read... [23:19:10]Read from MH i2c: E2 0B 00 AB 13 00 25 5E 85 3F 6F 09 BB 94 90 00 48 [23:19:10]RAPDU: 25 5E 85 3F 6F 09 BB 94 90 00 [23:19:10]wFMCommunicate OK [23:19:10]SAM_PROTO_SignData done [23:19:10]FM_MakeSignedData done [23:19:10]CreateOFDProtocolMessage [23:19:10]wFMCommunicate request_size=4 [23:19:10]MH_SAM_APDU [23:19:10]CAPDU: 80 11 00 00 [23:19:10]Write to MH i2c: E2 08 00 AC 13 80 11 00 00 00 00 00 00 39 [23:19:10]Write i2c OK [23:19:10]MH_I2C_Read... [23:19:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:19:10]Read from MH i2c: E2 [23:19:10]MH_I2C_Read... [23:19:10]Read from MH i2c: E2 17 00 [23:19:10]MH_I2C_Read... [23:19:10]Read from MH i2c: E2 17 00 AC 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 8F [23:19:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:19:10]wFMCommunicate OK [23:19:10]CreateOFDProtocolMessage done [23:19:10]OFDSenderStorePacket 165483 [23:19:10]StoreOFDPacket docnum=165483 [23:19:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 6B D0 07 01 4E F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 88 13 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 7F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 7F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 7F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 01 00 00 F4 03 04 00 6E AE 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6B 86 02 00 35 04 06 00 01 BB B3 4C BD E9 25 5E 85 3F 6F 09 BB 94 [23:19:10]CheckFolder [23:19:10]dirname=/storage/ofd_packets [23:19:10]CheckFolder done [23:19:10]ProducePacketName [23:19:10]name=ofd_packets/00165483 [23:19:10]NVStorageSaveData ofd_packets/00165483 [23:19:10]File name is /storage/ofd_packets/00165483 [23:19:10]Write 301 bytes [23:19:10]NVStorageSaveData done [23:19:10]OFDSenderStorePacket done [23:19:10]KKMCreateOFDPacket done [23:19:10]NVStorageSaveData kkm_last_timestamp [23:19:10]File name is /storage/kkm_last_timestamp [23:19:10]Write 4 bytes [23:19:10]NVStorageSaveData done [23:19:10]ExternCall_PrintAddStr [23:19:10]wPrintStart [23:19:10]Write to MH i2c: 01 00 00 AD 13 C0 [23:19:10]Write i2c OK [23:19:10]MH_I2C_Read... [23:19:10]Read from MH i2c: 01 [23:19:10]MH_I2C_Read... [23:19:10]Read from MH i2c: 01 07 00 [23:19:10]MH_I2C_Read... [23:19:10]Read from MH i2c: 01 07 00 AD 13 00 00 00 00 00 FF 0F D5 [23:19:10]RasterBufferAndPrint [23:19:10]line Счет N : (1)459599 [23:19:10]line ИНН: 02508201610067 [23:19:10]line Контрольно-Кассовый Чек [23:19:10]line ПРОДАЖА [23:19:10]line ТРК (МРК, ГНК) : 22 [23:19:10]line Товар: 2710124130 [23:19:10]line Аи-92-К-5 [23:19:10]line 5.000 * 65.22 [23:19:10]line = 326.10 [23:19:10]line НДС 12% НСП 1% [23:19:10]line > о реализуемом товаре [23:19:10]line ИТОГО: 326.10 [23:19:10]line НСП 1% : 2.89 [23:19:10]line НДС 12% : 34.63 [23:19:10]line Наличными: 0.00 [23:19:10]line Безнал.: 326.10 [23:19:10]line Место: АЗС № 72 "Партнер Нефть" [23:19:10]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [23:19:10]line СНО: Общий режим [23:19:10]line Чек 356 15.07.2024 23:19 [23:19:10]line Смена: 448 ФФД: 1.0 [23:19:10]line ЗНМ: 0300000160 [23:19:10]line РНМ: 0000000000090829 [23:19:10]line Версия ККМ: 001 [23:19:10]line Платежная система: KICB Банк [23:19:10]line ФМ: 0000000000874718 [23:19:10]line ФД: 165483 [23:19:10]line ФПД: 1905678663145 [23:19:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T231910&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165483&fm=1905678663145&tin=02508201610067®Number=0000000000090829&sum=32610 [23:19:10]written 0, free lines is 4095 [23:19:10]OFD Sender: Processing packet 165483 [packets to send 106, broken 105] [23:19:10]ProducePacketName [23:19:10]name=ofd_packets/00165483 [23:19:10]OFD Sender: To server: pG, [23:19:11]CommunicateWithHost lk.salyk.kg:30040 [23:19:11]ConnectInit lk.salyk.kg [23:19:11]Write to MH i2c: 01 00 00 D6 13 E9 [23:19:11]Write i2c OK [23:19:11]MH_I2C_Read... [23:19:11]Read from MH i2c: 01 [23:19:11]MH_I2C_Read... [23:19:11]Read from MH i2c: 01 07 00 [23:19:11]MH_I2C_Read... [23:19:11]Read from MH i2c: 01 07 00 D6 13 00 00 00 00 00 0F 0D 0C [23:19:11]RasterBufferAndPrint [23:19:11]line [23:19:11]line [23:19:11]line [23:19:11]line [23:19:11]line [23:19:11]written 0, free lines is 3349 [23:19:11]Connected sock=11 [23:19: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 37 31 38 0F 01 00 00 6B D0 07 01 4E F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 88 13 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 62 7F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 7F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 7F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 01 00 00 F4 03 04 00 6E AE 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6B 86 02 00 35 04 06 00 01 BB B3 4C BD E9 25 5E 85 3F 6F 09 BB 94 [23:19:11]MH_Cut [23:19:11]Write to MH i2c: D1 01 00 DD 13 01 C2 [23:19:11]Write i2c OK [23:19:11]MH_I2C_Read... [23:19:11]Read from MH i2c: D1 [23:19:11]MH_I2C_Read... [23:19:11]Read from MH i2c: D1 01 00 [23:19:11]MH_I2C_Read... [23:19:11]Read from MH i2c: D1 01 00 DD 13 00 C1 [23:19:11]Write to MH i2c: 01 00 00 DE 13 F1 [23:19:11]Write i2c OK [23:19:11]MH_I2C_Read... [23:19:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 CE 1F 47 00 E0 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6B 86 02 00 F4 03 04 00 F7 54 95 66 B6 04 01 00 00 03 86 95 1E 09 5B 14 44 [23:19:11]CommunicateWithHost err = 0 [23:19:11]CheckOFDResponse [23:19:11]1017 (14) - 77093643461234 [23:19:11]1041 (16) - 0000000000874718 [23:19:11]1040 (4) - 165483 [23:19:11]1012 (4) - 15.07.2024 16:57 [23:19:11]1206 (1) - 0 [23:19:11]OFD Sender: Remove packet 165483 [23:19:11]ProducePacketName [23:19:11]name=ofd_packets/00165483 [23:19:11]NVStorageDeleteData [23:19:11]*** Cut start [23:19:11]*** Partial cut [23:19:11]*** CUTSNS_PIN = 1 [23:19:11]OFD Sender: No OFD packet to send [23:19:11]*** CUTSNS_PIN = 0 [23:19:12]*** Brake cut motor [23:19:12]Read from MH i2c: 01 [23:19:12]MH_I2C_Read... [23:19:12]*** Stop cut motor [23:19:12]*** Cut end [23:19:12]Read from MH i2c: 01 07 00 [23:19:12]MH_I2C_Read... [23:19:12]Read from MH i2c: 01 07 00 DE 13 00 00 00 00 00 FF 0F 06 [23:19:12]process_action close_receipt done [23:19:12]requested_data is exist [23:19:12]produce_requested_data [23:19:12]requested_item fm.sn is exist - process it [23:19:12]wFMCommunicate request_size=4 [23:19:12]MH_SAM_APDU [23:19:12]CAPDU: 80 11 00 00 [23:19:12]Write to MH i2c: E2 08 00 DF 13 80 11 00 00 00 00 00 00 6C [23:19:12]Write i2c OK [23:19:12]MH_I2C_Read... [23:19:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:19:12]Read from MH i2c: E2 [23:19:12]MH_I2C_Read... [23:19:12]Read from MH i2c: E2 17 00 [23:19:12]MH_I2C_Read... [23:19:12]Read from MH i2c: E2 17 00 DF 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C2 [23:19:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:19:12]wFMCommunicate OK [23:19:12]requested_item fd.num is exist - process it [23:19:12]SAM_PROTO_GetFieldsCounters [23:19:12]wFMCommunicate request_size=4 [23:19:12]MH_SAM_APDU [23:19:12]CAPDU: 80 13 00 00 [23:19:12]Write to MH i2c: E2 08 00 E0 13 80 13 00 00 00 00 00 00 6F [23:19:12]Write i2c OK [23:19:12]MH_I2C_Read... [23:19:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:19:12]Read from MH i2c: E2 [23:19:12]MH_I2C_Read... [23:19:12]Read from MH i2c: E2 62 00 [23:19:12]MH_I2C_Read... [23:19:12]Read from MH i2c: E2 62 00 E0 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6B 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 64 01 00 00 5E 04 04 00 64 01 00 00 57 04 04 00 65 01 00 00 19 04 04 00 00 00 00 00 90 00 79 [23:19: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6B 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 64 01 00 00 5E 04 04 00 64 01 00 00 57 04 04 00 65 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:19:12]wFMCommunicate OK [23:19:12]SAM_PROTO_GetFieldsCounters done [23:19:12]requested_item shift.num is exist - process it [23:19:12]requested_item shift.opened is exist - process it [23:19:12]req_shift_opened [23:19:12]FM_GetShiftState [23:19:12]SAM_PROTO_GetShiftState [23:19:12]wFMCommunicate request_size=4 [23:19:12]MH_SAM_APDU [23:19:12]CAPDU: 80 13 01 00 [23:19:12]Write to MH i2c: E2 08 00 E1 13 80 13 01 00 00 00 00 00 71 [23:19:12]Write i2c OK [23:19:12]MH_I2C_Read... [23:19:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:19:12]Read from MH i2c: E2 [23:19:12]MH_I2C_Read... [23:19:12]Read from MH i2c: E2 0E 00 [23:19:12]MH_I2C_Read... [23:19:12]Read from MH i2c: E2 0E 00 E1 13 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 4A [23:19:12]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [23:19:12]wFMCommunicate OK [23:19:12]SAM_PROTO_GetShiftState done [23:19:12]FM_GetShiftState done [23:19:12]req_shift_opened done [23:19:12]requested_item shift.open_date is exist - process it [23:19:12]req_shift_open_date [23:19:12]req_shift_open_date done [23:19:12]produce_requested_data done [23:19:12]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165483,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [23:19:12]process_action_free close_receipt [23:19:12]json_value_free [23:19:12]json_value_free done [23:19:12]process_json_proto returns [23:19:12]Send response to host [23:19:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165483,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [23:19:12]free response buf [23:19:12]execute_script done [23:19:12]execute_script returns [23:19:12]free content buf [23:19:12]Sock 7.Close socket [23:19:12]Sock 7.Thread stoped [23:19:16]OFD Sender: No OFD packet to send [23:19:21]OFD Sender: No OFD packet to send [23:19:26]OFD Sender: No OFD packet to send [23:19:31]OFD Sender: No OFD packet to send [23:19:36]OFD Sender: No OFD packet to send [23:19:41]OFD Sender: No OFD packet to send [23:19:46]OFD Sender: No OFD packet to send [23:19:51]OFD Sender: No OFD packet to send [23:19:56]OFD Sender: No OFD packet to send [23:20:01]OFD Sender: No OFD packet to send [23:20:06]OFD Sender: No OFD packet to send [23:20:11]OFD Sender: No OFD packet to send [23:20:16]OFD Sender: No OFD packet to send [23:20:21]OFD Sender: No OFD packet to send [23:20:26]OFD Sender: No OFD packet to send [23:20:32]OFD Sender: No OFD packet to send [23:20:37]OFD Sender: No OFD packet to send [23:20:42]OFD Sender: No OFD packet to send [23:20:47]OFD Sender: No OFD packet to send [23:20:52]OFD Sender: No OFD packet to send [23:20:57]OFD Sender: No OFD packet to send [23:21:02]OFD Sender: No OFD packet to send [23:21:07]OFD Sender: No OFD packet to send [23:21:12]OFD Sender: No OFD packet to send [23:21:17]OFD Sender: No OFD packet to send [23:21:22]OFD Sender: No OFD packet to send [23:21:27]OFD Sender: No OFD packet to send [23:21:32]OFD Sender: No OFD packet to send [23:21:37]OFD Sender: No OFD packet to send [23:21:42]OFD Sender: No OFD packet to send [23:21:47]OFD Sender: No OFD packet to send [23:21:52]OFD Sender: No OFD packet to send [23:21:57]OFD Sender: No OFD packet to send [23:22:02]OFD Sender: No OFD packet to send [23:22:07]OFD Sender: No OFD packet to send [23:22:12]OFD Sender: No OFD packet to send [23:22:17]OFD Sender: No OFD packet to send [23:22:22]OFD Sender: No OFD packet to send [23:22:27]OFD Sender: No OFD packet to send [23:22:30]accept exits with 9 [23:22:30]New connection [23:22:30]New thread 3067190628 created [23:22:30]Thread 3067333988 joined [23:22:30]Waiting for new connection... [23:22:30] Sock 9.Parse request [23:22:30]Sock 9.Check first char [23:22:30]Sock 9.First char is OK [23:22:30]request: POST /json_proto HTTP/1.0 [23:22:30]Method: POST [23:22:30]URL: /json_proto [23:22:30]Method is POST - this is cgi request [23:22:30]url: /json_proto [23:22:30]query_string will be loaded in cgi processing [23:22:30]execute_cgi json_proto POST (null) [23:22:30]execute_cgi path=json_proto method=POST [23:22:30]POST find Content-Length [23:22:30]Host: 172.17.56.4:8080 [23:22:30]Content-Length: 682 [23:22:30]Content-Type: application/json [23:22:30] [23:22:30]POST finish read [23:22:30]Found Content-Length = 682 [23:22:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459600", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:22:30]execute_script... [23:22:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459600", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 15.200, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:22:30]POST & json_proto [23:22:30]process_json_proto [23:22:30]json parsed OK: [23:22:30]protocol is kg_v1.0 [23:22:30]action value=close_receipt [23:22:30]process_action close_receipt [23:22:30]cmd_close_receipt [23:22:30]MH_GetDate [23:22:30]Write to MH i2c: F0 00 00 E2 13 E4 [23:22:30]Write i2c OK [23:22:30]MH_I2C_Read... [23:22:30]Read from MH i2c: F0 [23:22:30]MH_I2C_Read... [23:22:30]Read from MH i2c: F0 09 00 [23:22:30]MH_I2C_Read... [23:22:30]Read from MH i2c: F0 09 00 E2 13 00 37 AF 95 66 C9 DC B2 64 89 [23:22:30]GetLastDocTimeStamp 1721085550 [23:22:30]current date 1721085751 [23:22:30]FM_GetShiftState [23:22:30]SAM_PROTO_GetShiftState [23:22:30]wFMCommunicate request_size=4 [23:22:30]MH_SAM_APDU [23:22:30]CAPDU: 80 13 01 00 [23:22:30]Write to MH i2c: E2 08 00 E3 13 80 13 01 00 00 00 00 00 73 [23:22:30]Write i2c OK [23:22:30]MH_I2C_Read... [23:22:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:22:30]Read from MH i2c: E2 [23:22:30]MH_I2C_Read... [23:22:30]Read from MH i2c: E2 0E 00 [23:22:30]MH_I2C_Read... [23:22:30]Read from MH i2c: E2 0E 00 E3 13 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 4C [23:22:30]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [23:22:30]wFMCommunicate OK [23:22:30]SAM_PROTO_GetShiftState done [23:22:30]FM_GetShiftState done [23:22:30]opened in 1721003876 [23:22:30]opened+sec_in_day 1721090276 [23:22:30]quantity*price = 100016 [23:22:30]sum+1 = 100017 [23:22:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 357 15.07.2024 23:22 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165484 ФПД: 118165833546218 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T232231&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165484&fm=118165833546218&tin=02508201610067®Number=0000000000090829&sum=100000 [23:22:31]StoreToDocumentArchive [23:22:31]shift 448 fd 165484 [23:22:31]save to /storage/0448/doc_00165484 [23:22:31]save last doc name /storage/0448/doc_00165484 to /storage/kkm_last_doc_name [23:22:31]save OK [23:22:31]Clear old archive folders... [23:22:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:22:31]tlvbuf is 01BC4F60 [23:22:31]SAM_PROTO_ClearQueue [23:22:31]wFMCommunicate request_size=4 [23:22:31]MH_SAM_APDU [23:22:31]CAPDU: 80 09 00 00 [23:22:31]Write to MH i2c: E2 08 00 F0 13 80 09 00 00 00 00 00 00 75 [23:22:31]Write i2c OK [23:22:31]MH_I2C_Read... [23:22:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:22:31]Read from MH i2c: E2 [23:22:31]MH_I2C_Read... [23:22:31]Read from MH i2c: E2 03 00 [23:22:31]MH_I2C_Read... [23:22:31]Read from MH i2c: E2 03 00 F0 13 00 90 00 77 [23:22:31]RAPDU: 90 00 [23:22:31]wFMCommunicate OK [23:22:31]SAM_PROTO_ClearQueue done [23:22:31]KKMCreateOFDPacket [23:22:31]OFDProtocolAddRootSTLVToBuf [23:22:31]FM_MakeSignedData [23:22:31]FM_MakeSignedData [23:22:31]SAM_PROTO_SignData [23:22:31]wFMCommunicate request_size=4 [23:22:31]MH_SAM_APDU [23:22:31]CAPDU: 80 0D 01 02 [23:22:31]Write to MH i2c: E2 08 00 F1 13 80 0D 01 02 00 00 00 00 7D [23:22:31]Write i2c OK [23:22:31]MH_I2C_Read... [23:22:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:22:31]Read from MH i2c: E2 [23:22:31]MH_I2C_Read... [23:22:31]Read from MH i2c: E2 03 00 [23:22:31]MH_I2C_Read... [23:22:31]Read from MH i2c: E2 03 00 F1 13 00 90 00 78 [23:22:31]RAPDU: 90 00 [23:22:31]wFMCommunicate OK [23:22:31]wFMCommunicate request_size=255 [23:22:31]MH_SAM_APDU [23:22:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 01 00 00 F4 03 04 00 37 AF 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6C 86 02 00 35 04 06 00 6B [23:22:31]Write to MH i2c: E2 02 01 F2 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 01 00 00 F4 03 04 00 37 AF 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6C 86 02 00 35 04 06 00 6B 00 00 FF [23:22:31]Write i2c OK [23:22:31]MH_I2C_Read... [23:22:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:22:31]Read from MH i2c: E2 [23:22:31]MH_I2C_Read... [23:22:31]Read from MH i2c: E2 03 00 [23:22:31]MH_I2C_Read... [23:22:31]Read from MH i2c: E2 03 00 F2 13 00 90 00 79 [23:22:31]RAPDU: 90 00 [23:22:31]wFMCommunicate OK [23:22:31]wFMCommunicate request_size=10 [23:22:31]MH_SAM_APDU [23:22:31]CAPDU: 80 0D 02 02 05 78 A0 88 79 EA [23:22:31]Write to MH i2c: E2 0D 00 F3 13 80 0D 02 02 05 00 78 A0 88 79 EA 00 00 8D [23:22:31]Write i2c OK [23:22:31]MH_I2C_Read... [23:22:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:22:31]Read from MH i2c: E2 [23:22:31]MH_I2C_Read... [23:22:31]Read from MH i2c: E2 03 00 [23:22:31]MH_I2C_Read... [23:22:31]Read from MH i2c: E2 03 00 F3 13 00 90 00 7A [23:22:31]RAPDU: 90 00 [23:22:31]wFMCommunicate OK [23:22:31]wFMCommunicate request_size=4 [23:22:31]MH_SAM_APDU [23:22:31]CAPDU: 80 0D 03 02 [23:22:31]Write to MH i2c: E2 08 00 F4 13 80 0D 03 02 00 00 00 00 82 [23:22:31]Write i2c OK [23:22:31]MH_I2C_Read... [23:22:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:22:31]Read from MH i2c: E2 [23:22:31]MH_I2C_Read... [23:22:31]Read from MH i2c: E2 0B 00 [23:22:31]MH_I2C_Read... [23:22:31]Read from MH i2c: E2 0B 00 F4 13 00 2A 91 3C E0 41 36 CB C5 90 00 61 [23:22:31]RAPDU: 2A 91 3C E0 41 36 CB C5 90 00 [23:22:31]wFMCommunicate OK [23:22:31]SAM_PROTO_SignData done [23:22:31]FM_MakeSignedData done [23:22:31]CreateOFDProtocolMessage [23:22:31]wFMCommunicate request_size=4 [23:22:31]MH_SAM_APDU [23:22:31]CAPDU: 80 11 00 00 [23:22:31]Write to MH i2c: E2 08 00 F5 13 80 11 00 00 00 00 00 00 82 [23:22:31]Write i2c OK [23:22:31]MH_I2C_Read... [23:22:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:22:31]Read from MH i2c: E2 [23:22:31]MH_I2C_Read... [23:22:31]Read from MH i2c: E2 17 00 [23:22:31]MH_I2C_Read... [23:22:31]Read from MH i2c: E2 17 00 F5 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 D8 [23:22:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:22:31]wFMCommunicate OK [23:22:31]CreateOFDProtocolMessage done [23:22:31]OFDSenderStorePacket 165484 [23:22:31]StoreOFDPacket docnum=165484 [23:22:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 82 DE 07 01 DF AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 01 00 00 F4 03 04 00 37 AF 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6C 86 02 00 35 04 06 00 6B 78 A0 88 79 EA 2A 91 3C E0 41 36 CB C5 [23:22:31]CheckFolder [23:22:31]dirname=/storage/ofd_packets [23:22:31]CheckFolder done [23:22:31]ProducePacketName [23:22:31]name=ofd_packets/00165484 [23:22:31]NVStorageSaveData ofd_packets/00165484 [23:22:31]File name is /storage/ofd_packets/00165484 [23:22:31]Write 301 bytes [23:22:31]NVStorageSaveData done [23:22:31]OFDSenderStorePacket done [23:22:31]KKMCreateOFDPacket done [23:22:31]NVStorageSaveData kkm_last_timestamp [23:22:31]File name is /storage/kkm_last_timestamp [23:22:31]Write 4 bytes [23:22:31]NVStorageSaveData done [23:22:31]ExternCall_PrintAddStr [23:22:31]wPrintStart [23:22:31]Write to MH i2c: 01 00 00 F6 13 09 [23:22:31]Write i2c OK [23:22:31]MH_I2C_Read... [23:22:31]Read from MH i2c: 01 [23:22:31]MH_I2C_Read... [23:22:31]Read from MH i2c: 01 07 00 [23:22:31]MH_I2C_Read... [23:22:31]Read from MH i2c: 01 07 00 F6 13 00 00 00 00 00 FF 0F 1E [23:22:31]RasterBufferAndPrint [23:22:31]line Счет N : (1)459600 [23:22:31]line ИНН: 02508201610067 [23:22:31]line Контрольно-Кассовый Чек [23:22:31]line ПРОДАЖА [23:22:31]line ТРК (МРК, ГНК) : 22 [23:22:31]line Товар: 2710124130 [23:22:31]line Аи-92-К-5 [23:22:31]line 15.200 * 65.80 [23:22:31]line = 1000.16 [23:22:31]line НДС 12% НСП 1% [23:22:31]line > о реализуемом товаре [23:22:31]line ОКРУГЛЕНИЕ: -0.16 [23:22:31]line ИТОГО: 1000.00 [23:22:31]line Внесено: 1000.00 [23:22:31]line СДАЧА: 0.00 [23:22:31]line НСП 1% : 8.85 [23:22:31]line НДС 12% : 106.21 [23:22:31]line Наличными: 1000.00 [23:22:31]line Безнал.: 0.00 [23:22:31]line Место: АЗС № 72 "Партнер Нефть" [23:22:31]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [23:22:31]line СНО: Общий режим [23:22:31]line Чек 357 15.07.2024 23:22 [23:22:31]line Смена: 448 ФФД: 1.0 [23:22:31]line ЗНМ: 0300000160 [23:22:31]line РНМ: 0000000000090829 [23:22:31]line Версия ККМ: 001 [23:22:31]line ФМ: 0000000000874718 [23:22:31]line ФД: 165484 [23:22:32]line ФПД: 118165833546218 [23:22:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T232231&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165484&fm=118165833546218&tin=02508201610067®Number=0000000000090829&sum=100000 [23:22:32]OFD Sender: Processing packet 165484 [packets to send 106, broken 105] [23:22:32]ProducePacketName [23:22:32]name=ofd_packets/00165484 [23:22:32]OFD Sender: To server: pG, [23:22:32]CommunicateWithHost lk.salyk.kg:30040 [23:22:32]ConnectInit lk.salyk.kg [23:22:32]written 0, free lines is 4095 [23:22:32]Connected sock=10 [23:22:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 82 DE 07 01 DF AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 60 3B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 01 00 00 F4 03 04 00 37 AF 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6C 86 02 00 35 04 06 00 6B 78 A0 88 79 EA 2A 91 3C E0 41 36 CB C5 [23:22:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 66 C6 47 00 AB 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 6C 86 02 00 F4 03 04 00 C0 55 95 66 B6 04 01 00 00 64 3D 97 D7 DF 60 DA EB [23:22:32]CommunicateWithHost err = 0 [23:22:32]CheckOFDResponse [23:22:32]1017 (14) - 77093643461234 [23:22:32]1041 (16) - 0000000000874718 [23:22:32]1040 (4) - 165484 [23:22:32]1012 (4) - 15.07.2024 17:00 [23:22:32]1206 (1) - 0 [23:22:32]OFD Sender: Remove packet 165484 [23:22:32]ProducePacketName [23:22:32]name=ofd_packets/00165484 [23:22:32]NVStorageDeleteData [23:22:32]Write to MH i2c: 01 00 00 20 14 34 [23:22:32]Write i2c OK [23:22:32]MH_I2C_Read... [23:22:32]Read from MH i2c: 01 [23:22:32]MH_I2C_Read... [23:22:32]Read from MH i2c: 01 07 00 [23:22:32]MH_I2C_Read... [23:22:32]Read from MH i2c: 01 07 00 20 14 00 00 00 00 00 F1 0C 38 [23:22:32]RasterBufferAndPrint [23:22:32]line [23:22:32]line [23:22:32]line [23:22:32]line [23:22:32]line [23:22:32]written 0, free lines is 3320 [23:22:32]MH_Cut [23:22:32]Write to MH i2c: D1 01 00 27 14 01 0D [23:22:32]Write i2c OK [23:22:32]MH_I2C_Read... [23:22:32]Read from MH i2c: D1 [23:22:32]MH_I2C_Read... [23:22:32]Read from MH i2c: D1 01 00 [23:22:32]MH_I2C_Read... [23:22:32]Read from MH i2c: D1 01 00 27 14 00 0C [23:22:32]Write to MH i2c: 01 00 00 28 14 3C [23:22:32]Write i2c OK [23:22:32]MH_I2C_Read... [23:22:33]OFD Sender: No OFD packet to send [23:22:33]*** Cut start [23:22:33]*** Partial cut [23:22:33]*** CUTSNS_PIN = 1 [23:22:33]*** CUTSNS_PIN = 0 [23:22:33]*** Brake cut motor [23:22:33]Read from MH i2c: 01 [23:22:33]MH_I2C_Read... [23:22:33]*** Stop cut motor [23:22:33]*** Cut end [23:22:33]Read from MH i2c: 01 07 00 [23:22:33]MH_I2C_Read... [23:22:33]Read from MH i2c: 01 07 00 28 14 00 00 00 00 00 FF 0F 51 [23:22:33]process_action close_receipt done [23:22:33]requested_data is exist [23:22:33]produce_requested_data [23:22:33]requested_item fm.sn is exist - process it [23:22:33]wFMCommunicate request_size=4 [23:22:33]MH_SAM_APDU [23:22:33]CAPDU: 80 11 00 00 [23:22:33]Write to MH i2c: E2 08 00 29 14 80 11 00 00 00 00 00 00 B7 [23:22:33]Write i2c OK [23:22:33]MH_I2C_Read... [23:22:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:22:33]Read from MH i2c: E2 [23:22:33]MH_I2C_Read... [23:22:33]Read from MH i2c: E2 17 00 [23:22:33]MH_I2C_Read... [23:22:33]Read from MH i2c: E2 17 00 29 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0D [23:22:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:22:33]wFMCommunicate OK [23:22:33]requested_item fd.num is exist - process it [23:22:33]SAM_PROTO_GetFieldsCounters [23:22:33]wFMCommunicate request_size=4 [23:22:33]MH_SAM_APDU [23:22:33]CAPDU: 80 13 00 00 [23:22:33]Write to MH i2c: E2 08 00 2A 14 80 13 00 00 00 00 00 00 BA [23:22:33]Write i2c OK [23:22:33]MH_I2C_Read... [23:22:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:22:34]Read from MH i2c: E2 [23:22:34]MH_I2C_Read... [23:22:34]Read from MH i2c: E2 62 00 [23:22:34]MH_I2C_Read... [23:22:34]Read from MH i2c: E2 62 00 2A 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6C 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 65 01 00 00 5E 04 04 00 65 01 00 00 57 04 04 00 66 01 00 00 19 04 04 00 00 00 00 00 90 00 C8 [23:22: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6C 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 65 01 00 00 5E 04 04 00 65 01 00 00 57 04 04 00 66 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:22:34]wFMCommunicate OK [23:22:34]SAM_PROTO_GetFieldsCounters done [23:22:34]requested_item shift.num is exist - process it [23:22:34]requested_item shift.opened is exist - process it [23:22:34]req_shift_opened [23:22:34]FM_GetShiftState [23:22:34]SAM_PROTO_GetShiftState [23:22:34]wFMCommunicate request_size=4 [23:22:34]MH_SAM_APDU [23:22:34]CAPDU: 80 13 01 00 [23:22:34]Write to MH i2c: E2 08 00 2B 14 80 13 01 00 00 00 00 00 BC [23:22:34]Write i2c OK [23:22:34]MH_I2C_Read... [23:22:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:22:34]Read from MH i2c: E2 [23:22:34]MH_I2C_Read... [23:22:34]Read from MH i2c: E2 0E 00 [23:22:34]MH_I2C_Read... [23:22:34]Read from MH i2c: E2 0E 00 2B 14 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 95 [23:22:34]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [23:22:34]wFMCommunicate OK [23:22:34]SAM_PROTO_GetShiftState done [23:22:34]FM_GetShiftState done [23:22:34]req_shift_opened done [23:22:34]requested_item shift.open_date is exist - process it [23:22:34]req_shift_open_date [23:22:34]req_shift_open_date done [23:22:34]produce_requested_data done [23:22:34]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165484,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [23:22:34]process_action_free close_receipt [23:22:34]json_value_free [23:22:34]json_value_free done [23:22:34]process_json_proto returns [23:22:34]Send response to host [23:22:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165484,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [23:22:34]free response buf [23:22:34]execute_script done [23:22:34]execute_script returns [23:22:34]free content buf [23:22:34]Sock 9.Close socket [23:22:34]Sock 9.Thread stoped [23:22:38]OFD Sender: No OFD packet to send [23:22:43]OFD Sender: No OFD packet to send [23:22:48]OFD Sender: No OFD packet to send [23:22:53]OFD Sender: No OFD packet to send [23:22:58]OFD Sender: No OFD packet to send [23:23:03]OFD Sender: No OFD packet to send [23:23:08]OFD Sender: No OFD packet to send [23:23:13]OFD Sender: No OFD packet to send [23:23:18]OFD Sender: No OFD packet to send [23:23:23]OFD Sender: No OFD packet to send [23:23:28]OFD Sender: No OFD packet to send [23:23:33]OFD Sender: No OFD packet to send [23:23:38]OFD Sender: No OFD packet to send [23:23:43]OFD Sender: No OFD packet to send [23:23:48]OFD Sender: No OFD packet to send [23:23:53]OFD Sender: No OFD packet to send [23:23:58]OFD Sender: No OFD packet to send [23:24:03]OFD Sender: No OFD packet to send [23:24:08]OFD Sender: No OFD packet to send [23:24:13]OFD Sender: No OFD packet to send [23:24:18]OFD Sender: No OFD packet to send [23:24:23]OFD Sender: No OFD packet to send [23:24:28]OFD Sender: No OFD packet to send [23:24:33]OFD Sender: No OFD packet to send [23:24:38]OFD Sender: No OFD packet to send [23:24:43]OFD Sender: No OFD packet to send [23:24:48]OFD Sender: No OFD packet to send [23:24:53]OFD Sender: No OFD packet to send [23:24:58]OFD Sender: No OFD packet to send [23:25:03]OFD Sender: No OFD packet to send [23:25:08]OFD Sender: No OFD packet to send [23:25:13]OFD Sender: No OFD packet to send [23:25:18]OFD Sender: No OFD packet to send [23:25:23]OFD Sender: No OFD packet to send [23:25:28]OFD Sender: No OFD packet to send [23:25:33]OFD Sender: No OFD packet to send [23:25:38]OFD Sender: No OFD packet to send [23:25:43]OFD Sender: No OFD packet to send [23:25:44]accept exits with 7 [23:25:44]New connection [23:25:44]New thread 3067333988 created [23:25:44]Thread 3067190628 joined [23:25:44]Waiting for new connection... [23:25:44] Sock 7.Parse request [23:25:44]Sock 7.Check first char [23:25:44]Sock 7.First char is OK [23:25:44]request: POST /json_proto HTTP/1.0 [23:25:44]Method: POST [23:25:44]URL: /json_proto [23:25:44]Method is POST - this is cgi request [23:25:44]url: /json_proto [23:25:44]query_string will be loaded in cgi processing [23:25:44]execute_cgi json_proto POST (null) [23:25:44]execute_cgi path=json_proto method=POST [23:25:44]POST find Content-Length [23:25:44]Host: 172.17.56.4:8080 [23:25:44]Content-Length: 790 [23:25:44]Content-Type: application/json [23:25:44] [23:25:44]POST finish read [23:25:44]Found Content-Length = 790 [23:25:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459601", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 3.000, "sum" : 195.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 195.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:25:44]execute_script... [23:25:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459601", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 3.000, "sum" : 195.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 195.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:25:44]POST & json_proto [23:25:44]process_json_proto [23:25:44]json parsed OK: [23:25:44]protocol is kg_v1.0 [23:25:44]action value=close_receipt [23:25:44]process_action close_receipt [23:25:44]cmd_close_receipt [23:25:44]MH_GetDate [23:25:44]Write to MH i2c: F0 00 00 2C 14 2F [23:25:44]Write i2c OK [23:25:44]MH_I2C_Read... [23:25:44]Read from MH i2c: F0 [23:25:44]MH_I2C_Read... [23:25:44]Read from MH i2c: F0 09 00 [23:25:44]MH_I2C_Read... [23:25:44]Read from MH i2c: F0 09 00 2C 14 00 F9 AF 95 66 C9 DC B2 64 96 [23:25:44]GetLastDocTimeStamp 1721085751 [23:25:44]current date 1721085945 [23:25:44]FM_GetShiftState [23:25:44]SAM_PROTO_GetShiftState [23:25:44]wFMCommunicate request_size=4 [23:25:44]MH_SAM_APDU [23:25:44]CAPDU: 80 13 01 00 [23:25:44]Write to MH i2c: E2 08 00 2D 14 80 13 01 00 00 00 00 00 BE [23:25:44]Write i2c OK [23:25:44]MH_I2C_Read... [23:25:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:25:44]Read from MH i2c: E2 [23:25:44]MH_I2C_Read... [23:25:44]Read from MH i2c: E2 0E 00 [23:25:44]MH_I2C_Read... [23:25:44]Read from MH i2c: E2 0E 00 2D 14 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 97 [23:25:44]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [23:25:44]wFMCommunicate OK [23:25:44]SAM_PROTO_GetShiftState done [23:25:44]FM_GetShiftState done [23:25:44]opened in 1721003876 [23:25:44]opened+sec_in_day 1721090276 [23:25:44]quantity*price = 19566 [23:25:44]sum+1 = 19567 [23:25:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 195.66 НСП 1% : 1.73 НДС 12% : 20.78 Наличными: 0.00 Безнал.: 195.66 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 358 15.07.2024 23:25 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 165485 ФПД: 211089536156597 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T232545&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165485&fm=211089536156597&tin=02508201610067®Number=0000000000090829&sum=19566 [23:25:45]StoreToDocumentArchive [23:25:45]shift 448 fd 165485 [23:25:45]save to /storage/0448/doc_00165485 [23:25:45]save last doc name /storage/0448/doc_00165485 to /storage/kkm_last_doc_name [23:25:45]save OK [23:25:45]Clear old archive folders... [23:25:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:25:45]tlvbuf is 01B52200 [23:25:45]SAM_PROTO_ClearQueue [23:25:45]wFMCommunicate request_size=4 [23:25:45]MH_SAM_APDU [23:25:45]CAPDU: 80 09 00 00 [23:25:45]Write to MH i2c: E2 08 00 3A 14 80 09 00 00 00 00 00 00 C0 [23:25:45]Write i2c OK [23:25:45]MH_I2C_Read... [23:25:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:25:45]Read from MH i2c: E2 [23:25:45]MH_I2C_Read... [23:25:45]Read from MH i2c: E2 03 00 [23:25:45]MH_I2C_Read... [23:25:45]Read from MH i2c: E2 03 00 3A 14 00 90 00 C2 [23:25:45]RAPDU: 90 00 [23:25:45]wFMCommunicate OK [23:25:45]SAM_PROTO_ClearQueue done [23:25:45]KKMCreateOFDPacket [23:25:45]OFDProtocolAddRootSTLVToBuf [23:25:45]FM_MakeSignedData [23:25:45]FM_MakeSignedData [23:25:45]SAM_PROTO_SignData [23:25:45]wFMCommunicate request_size=4 [23:25:45]MH_SAM_APDU [23:25:45]CAPDU: 80 0D 01 02 [23:25:45]Write to MH i2c: E2 08 00 3B 14 80 0D 01 02 00 00 00 00 C8 [23:25:45]Write i2c OK [23:25:45]MH_I2C_Read... [23:25:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:25:45]Read from MH i2c: E2 [23:25:45]MH_I2C_Read... [23:25:45]Read from MH i2c: E2 03 00 [23:25:45]MH_I2C_Read... [23:25:45]Read from MH i2c: E2 03 00 3B 14 00 90 00 C3 [23:25:45]RAPDU: 90 00 [23:25:45]wFMCommunicate OK [23:25:45]wFMCommunicate request_size=255 [23:25:45]MH_SAM_APDU [23:25:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 6E 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E 4C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 F9 AF 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6D 86 02 00 35 04 06 00 BF [23:25:45]Write to MH i2c: E2 02 01 3C 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 6E 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E 4C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 F9 AF 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6D 86 02 00 35 04 06 00 BF 00 00 AE [23:25:45]Write i2c OK [23:25:45]MH_I2C_Read... [23:25:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:25:45]Read from MH i2c: E2 [23:25:45]MH_I2C_Read... [23:25:45]Read from MH i2c: E2 03 00 [23:25:45]MH_I2C_Read... [23:25:45]Read from MH i2c: E2 03 00 3C 14 00 90 00 C4 [23:25:45]RAPDU: 90 00 [23:25:45]wFMCommunicate OK [23:25:45]wFMCommunicate request_size=10 [23:25:45]MH_SAM_APDU [23:25:45]CAPDU: 80 0D 02 02 05 FC 1C D1 83 B5 [23:25:45]Write to MH i2c: E2 0D 00 3D 14 80 0D 02 02 05 00 FC 1C D1 83 B5 00 00 F6 [23:25:45]Write i2c OK [23:25:45]MH_I2C_Read... [23:25:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:25:45]Read from MH i2c: E2 [23:25:45]MH_I2C_Read... [23:25:45]Read from MH i2c: E2 03 00 [23:25:45]MH_I2C_Read... [23:25:45]Read from MH i2c: E2 03 00 3D 14 00 90 00 C5 [23:25:45]RAPDU: 90 00 [23:25:45]wFMCommunicate OK [23:25:45]wFMCommunicate request_size=4 [23:25:45]MH_SAM_APDU [23:25:45]CAPDU: 80 0D 03 02 [23:25:45]Write to MH i2c: E2 08 00 3E 14 80 0D 03 02 00 00 00 00 CD [23:25:45]Write i2c OK [23:25:45]MH_I2C_Read... [23:25:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:25:45]Read from MH i2c: E2 [23:25:45]MH_I2C_Read... [23:25:45]Read from MH i2c: E2 0B 00 [23:25:45]MH_I2C_Read... [23:25:45]Read from MH i2c: E2 0B 00 3E 14 00 99 A2 A8 49 B1 B7 BE 4F 90 00 6F [23:25:45]RAPDU: 99 A2 A8 49 B1 B7 BE 4F 90 00 [23:25:45]wFMCommunicate OK [23:25:45]SAM_PROTO_SignData done [23:25:45]FM_MakeSignedData done [23:25:45]CreateOFDProtocolMessage [23:25:45]wFMCommunicate request_size=4 [23:25:45]MH_SAM_APDU [23:25:45]CAPDU: 80 11 00 00 [23:25:45]Write to MH i2c: E2 08 00 3F 14 80 11 00 00 00 00 00 00 CD [23:25:45]Write i2c OK [23:25:45]MH_I2C_Read... [23:25:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:25:45]Read from MH i2c: E2 [23:25:45]MH_I2C_Read... [23:25:45]Read from MH i2c: E2 17 00 [23:25:45]MH_I2C_Read... [23:25:45]Read from MH i2c: E2 17 00 3F 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 23 [23:25:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:25:45]wFMCommunicate OK [23:25:45]CreateOFDProtocolMessage done [23:25:45]OFDSenderStorePacket 165485 [23:25:45]StoreOFDPacket docnum=165485 [23:25:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A1 01 07 01 F1 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 B8 0B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 6E 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E 4C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 F9 AF 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6D 86 02 00 35 04 06 00 BF FC 1C D1 83 B5 99 A2 A8 49 B1 B7 BE 4F [23:25:45]CheckFolder [23:25:45]dirname=/storage/ofd_packets [23:25:45]CheckFolder done [23:25:45]ProducePacketName [23:25:45]name=ofd_packets/00165485 [23:25:45]NVStorageSaveData ofd_packets/00165485 [23:25:45]File name is /storage/ofd_packets/00165485 [23:25:45]Write 301 bytes [23:25:45]NVStorageSaveData done [23:25:45]OFDSenderStorePacket done [23:25:45]KKMCreateOFDPacket done [23:25:45]NVStorageSaveData kkm_last_timestamp [23:25:45]File name is /storage/kkm_last_timestamp [23:25:45]Write 4 bytes [23:25:45]NVStorageSaveData done [23:25:45]ExternCall_PrintAddStr [23:25:45]wPrintStart [23:25:45]Write to MH i2c: 01 00 00 40 14 54 [23:25:45]Write i2c OK [23:25:45]MH_I2C_Read... [23:25:45]Read from MH i2c: 01 [23:25:45]MH_I2C_Read... [23:25:45]Read from MH i2c: 01 07 00 [23:25:45]MH_I2C_Read... [23:25:45]Read from MH i2c: 01 07 00 40 14 00 00 00 00 00 FF 0F 69 [23:25:45]RasterBufferAndPrint [23:25:45]line Счет N : (1)459601 [23:25:45]line ИНН: 02508201610067 [23:25:45]line Контрольно-Кассовый Чек [23:25:45]line ПРОДАЖА [23:25:45]line ТРК (МРК, ГНК) : 22 [23:25:45]line Товар: 2710124130 [23:25:45]line Аи-92-К-5 [23:25:45]line 3.000 * 65.22 [23:25:45]line = 195.66 [23:25:45]line НДС 12% НСП 1% [23:25:45]line > о реализуемом товаре [23:25:45]line ИТОГО: 195.66 [23:25:45]line НСП 1% : 1.73 [23:25:45]line НДС 12% : 20.78 [23:25:45]line Наличными: 0.00 [23:25:45]line Безнал.: 195.66 [23:25:45]line Место: АЗС № 72 "Партнер Нефть" [23:25:45]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [23:25:45]line СНО: Общий режим [23:25:45]line Чек 358 15.07.2024 23:25 [23:25:45]line Смена: 448 ФФД: 1.0 [23:25:45]line ЗНМ: 0300000160 [23:25:45]line РНМ: 0000000000090829 [23:25:45]line Версия ККМ: 001 [23:25:45]line Платежная система: KICB Банк [23:25:45]line ФМ: 0000000000874718 [23:25:45]line ФД: 165485 [23:25:45]line ФПД: 211089536156597 [23:25:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T232545&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165485&fm=211089536156597&tin=02508201610067®Number=0000000000090829&sum=19566 [23:25:45]written 0, free lines is 4095 [23:25:45]OFD Sender: Processing packet 165485 [packets to send 106, broken 105] [23:25:45]ProducePacketName [23:25:45]name=ofd_packets/00165485 [23:25:45]OFD Sender: To server: pG, [23:25:46]CommunicateWithHost lk.salyk.kg:30040 [23:25:46]ConnectInit lk.salyk.kg [23:25:46]Connected sock=10 [23:25:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A1 01 07 01 F1 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 B8 0B 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 6E 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E 4C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 F9 AF 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6D 86 02 00 35 04 06 00 BF FC 1C D1 83 B5 99 A2 A8 49 B1 B7 BE 4F [23:25:46]Write to MH i2c: 01 00 00 69 14 7D [23:25:46]Write i2c OK [23:25:46]MH_I2C_Read... [23:25:46]Read from MH i2c: 01 [23:25:46]MH_I2C_Read... [23:25:46]Read from MH i2c: 01 07 00 [23:25:46]MH_I2C_Read... [23:25:46]Read from MH i2c: 01 07 00 69 14 00 00 00 00 00 08 0D 99 [23:25:46]RasterBufferAndPrint [23:25:46]line [23:25:46]line [23:25:46]line [23:25:46]line [23:25:46]line [23:25:46]written 0, free lines is 3342 [23:25:46]MH_Cut [23:25:46]Write to MH i2c: D1 01 00 70 14 01 56 [23:25:46]Write i2c OK [23:25:46]MH_I2C_Read... [23:25:46]Read from MH i2c: D1 [23:25:46]MH_I2C_Read... [23:25:46]Read from MH i2c: D1 01 00 [23:25:46]MH_I2C_Read... [23:25:46]Read from MH i2c: D1 01 00 70 14 00 55 [23:25:46]Write to MH i2c: 01 00 00 71 14 85 [23:25:46]Write i2c OK [23:25:46]MH_I2C_Read... [23:25:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 4F 5B 47 00 75 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6D 86 02 00 F4 03 04 00 82 56 95 66 B6 04 01 00 00 2B E6 3B C1 CF 30 8E 16 [23:25:46]CommunicateWithHost err = 0 [23:25:46]CheckOFDResponse [23:25:46]1017 (14) - 77093643461234 [23:25:46]1041 (16) - 0000000000874718 [23:25:46]1040 (4) - 165485 [23:25:46]1012 (4) - 15.07.2024 17:04 [23:25:46]1206 (1) - 0 [23:25:46]OFD Sender: Remove packet 165485 [23:25:46]ProducePacketName [23:25:46]name=ofd_packets/00165485 [23:25:46]NVStorageDeleteData [23:25:46]*** Cut start [23:25:46]*** Partial cut [23:25:46]*** CUTSNS_PIN = 1 [23:25:46]OFD Sender: No OFD packet to send [23:25:46]*** CUTSNS_PIN = 0 [23:25:47]*** Brake cut motor [23:25:47]Read from MH i2c: 01 [23:25:47]MH_I2C_Read... [23:25:47]*** Stop cut motor [23:25:47]*** Cut end [23:25:47]Read from MH i2c: 01 07 00 [23:25:47]MH_I2C_Read... [23:25:47]Read from MH i2c: 01 07 00 71 14 00 00 00 00 00 FF 0F 9A [23:25:47]process_action close_receipt done [23:25:47]requested_data is exist [23:25:47]produce_requested_data [23:25:47]requested_item fm.sn is exist - process it [23:25:47]wFMCommunicate request_size=4 [23:25:47]MH_SAM_APDU [23:25:47]CAPDU: 80 11 00 00 [23:25:47]Write to MH i2c: E2 08 00 72 14 80 11 00 00 00 00 00 00 00 [23:25:47]Write i2c OK [23:25:47]MH_I2C_Read... [23:25:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:25:47]Read from MH i2c: E2 [23:25:47]MH_I2C_Read... [23:25:47]Read from MH i2c: E2 17 00 [23:25:47]MH_I2C_Read... [23:25:47]Read from MH i2c: E2 17 00 72 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 56 [23:25:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:25:47]wFMCommunicate OK [23:25:47]requested_item fd.num is exist - process it [23:25:47]SAM_PROTO_GetFieldsCounters [23:25:47]wFMCommunicate request_size=4 [23:25:47]MH_SAM_APDU [23:25:47]CAPDU: 80 13 00 00 [23:25:47]Write to MH i2c: E2 08 00 73 14 80 13 00 00 00 00 00 00 03 [23:25:47]Write i2c OK [23:25:47]MH_I2C_Read... [23:25:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:25:47]Read from MH i2c: E2 [23:25:47]MH_I2C_Read... [23:25:47]Read from MH i2c: E2 62 00 [23:25:47]MH_I2C_Read... [23:25:47]Read from MH i2c: E2 62 00 73 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6D 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 66 01 00 00 5E 04 04 00 66 01 00 00 57 04 04 00 67 01 00 00 19 04 04 00 00 00 00 00 90 00 15 [23:25: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6D 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 66 01 00 00 5E 04 04 00 66 01 00 00 57 04 04 00 67 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:25:47]wFMCommunicate OK [23:25:47]SAM_PROTO_GetFieldsCounters done [23:25:47]requested_item shift.num is exist - process it [23:25:47]requested_item shift.opened is exist - process it [23:25:47]req_shift_opened [23:25:47]FM_GetShiftState [23:25:47]SAM_PROTO_GetShiftState [23:25:47]wFMCommunicate request_size=4 [23:25:47]MH_SAM_APDU [23:25:47]CAPDU: 80 13 01 00 [23:25:47]Write to MH i2c: E2 08 00 74 14 80 13 01 00 00 00 00 00 05 [23:25:47]Write i2c OK [23:25:47]MH_I2C_Read... [23:25:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:25:47]Read from MH i2c: E2 [23:25:47]MH_I2C_Read... [23:25:47]Read from MH i2c: E2 0E 00 [23:25:47]MH_I2C_Read... [23:25:47]Read from MH i2c: E2 0E 00 74 14 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 DE [23:25:47]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [23:25:47]wFMCommunicate OK [23:25:47]SAM_PROTO_GetShiftState done [23:25:47]FM_GetShiftState done [23:25:47]req_shift_opened done [23:25:47]requested_item shift.open_date is exist - process it [23:25:47]req_shift_open_date [23:25:47]req_shift_open_date done [23:25:47]produce_requested_data done [23:25:47]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165485,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [23:25:47]process_action_free close_receipt [23:25:47]json_value_free [23:25:47]json_value_free done [23:25:47]process_json_proto returns [23:25:47]Send response to host [23:25:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165485,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [23:25:47]free response buf [23:25:47]execute_script done [23:25:47]execute_script returns [23:25:47]free content buf [23:25:47]Sock 7.Close socket [23:25:47]Sock 7.Thread stoped [23:25:51]OFD Sender: No OFD packet to send [23:25:56]OFD Sender: No OFD packet to send [23:26:01]OFD Sender: No OFD packet to send [23:26:06]OFD Sender: No OFD packet to send [23:26:11]OFD Sender: No OFD packet to send [23:26:16]OFD Sender: No OFD packet to send [23:26:21]OFD Sender: No OFD packet to send [23:26:26]OFD Sender: No OFD packet to send [23:26:31]OFD Sender: No OFD packet to send [23:26:36]OFD Sender: No OFD packet to send [23:26:41]OFD Sender: No OFD packet to send [23:26:46]OFD Sender: No OFD packet to send [23:26:52]OFD Sender: No OFD packet to send [23:26:57]OFD Sender: No OFD packet to send [23:27:02]OFD Sender: No OFD packet to send [23:27:05]accept exits with 9 [23:27:05]New connection [23:27:05]New thread 3067190628 created [23:27:05]Thread 3067333988 joined [23:27:05]Waiting for new connection... [23:27:05] Sock 9.Parse request [23:27:05]Sock 9.Check first char [23:27:05]Sock 9.First char is OK [23:27:05]request: POST /json_proto HTTP/1.0 [23:27:05]Method: POST [23:27:05]URL: /json_proto [23:27:05]Method is POST - this is cgi request [23:27:05]url: /json_proto [23:27:05]query_string will be loaded in cgi processing [23:27:05]execute_cgi json_proto POST (null) [23:27:05]execute_cgi path=json_proto method=POST [23:27:05]POST find Content-Length [23:27:05]Host: 172.17.56.4:8080 [23:27:05]Content-Length: 677 [23:27:05]Content-Type: application/json [23:27:05] [23:27:05]POST finish read [23:27:05]Found Content-Length = 677 [23:27:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459603", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:27:05]execute_script... [23:27:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459603", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 6.080, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:27:05]POST & json_proto [23:27:05]process_json_proto [23:27:05]json parsed OK: [23:27:05]protocol is kg_v1.0 [23:27:05]action value=close_receipt [23:27:05]process_action close_receipt [23:27:05]cmd_close_receipt [23:27:05]MH_GetDate [23:27:05]Write to MH i2c: F0 00 00 75 14 78 [23:27:05]Write i2c OK [23:27:05]MH_I2C_Read... [23:27:05]Read from MH i2c: F0 [23:27:05]MH_I2C_Read... [23:27:05]Read from MH i2c: F0 09 00 [23:27:05]MH_I2C_Read... [23:27:05]Read from MH i2c: F0 09 00 75 14 00 4B B0 95 66 C9 DC B2 64 32 [23:27:05]GetLastDocTimeStamp 1721085945 [23:27:05]current date 1721086027 [23:27:05]FM_GetShiftState [23:27:05]SAM_PROTO_GetShiftState [23:27:05]wFMCommunicate request_size=4 [23:27:05]MH_SAM_APDU [23:27:05]CAPDU: 80 13 01 00 [23:27:05]Write to MH i2c: E2 08 00 76 14 80 13 01 00 00 00 00 00 07 [23:27:05]Write i2c OK [23:27:05]MH_I2C_Read... [23:27:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:27:06]Read from MH i2c: E2 [23:27:06]MH_I2C_Read... [23:27:06]Read from MH i2c: E2 0E 00 [23:27:06]MH_I2C_Read... [23:27:06]Read from MH i2c: E2 0E 00 76 14 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 E0 [23:27:06]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [23:27:06]wFMCommunicate OK [23:27:06]SAM_PROTO_GetShiftState done [23:27:06]FM_GetShiftState done [23:27:06]opened in 1721003876 [23:27:06]opened+sec_in_day 1721090276 [23:27:06]quantity*price = 40006 [23:27:06]sum+1 = 40007 [23:27:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 359 15.07.2024 23:27 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165486 ФПД: 29860550529371 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T232707&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165486&fm=29860550529371&tin=02508201610067®Number=0000000000090829&sum=40000 [23:27:07]StoreToDocumentArchive [23:27:07]shift 448 fd 165486 [23:27:07]save to /storage/0448/doc_00165486 [23:27:07]save last doc name /storage/0448/doc_00165486 to /storage/kkm_last_doc_name [23:27:07]save OK [23:27:07]Clear old archive folders... [23:27:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:27:07]tlvbuf is 01B7C2E0 [23:27:07]SAM_PROTO_ClearQueue [23:27:07]wFMCommunicate request_size=4 [23:27:07]MH_SAM_APDU [23:27:07]CAPDU: 80 09 00 00 [23:27:07]Write to MH i2c: E2 08 00 83 14 80 09 00 00 00 00 00 00 09 [23:27:07]Write i2c OK [23:27:07]MH_I2C_Read... [23:27:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:27:07]Read from MH i2c: E2 [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: E2 03 00 [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: E2 03 00 83 14 00 90 00 0B [23:27:07]RAPDU: 90 00 [23:27:07]wFMCommunicate OK [23:27:07]SAM_PROTO_ClearQueue done [23:27:07]KKMCreateOFDPacket [23:27:07]OFDProtocolAddRootSTLVToBuf [23:27:07]FM_MakeSignedData [23:27:07]FM_MakeSignedData [23:27:07]SAM_PROTO_SignData [23:27:07]wFMCommunicate request_size=4 [23:27:07]MH_SAM_APDU [23:27:07]CAPDU: 80 0D 01 02 [23:27:07]Write to MH i2c: E2 08 00 84 14 80 0D 01 02 00 00 00 00 11 [23:27:07]Write i2c OK [23:27:07]MH_I2C_Read... [23:27:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:27:07]Read from MH i2c: E2 [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: E2 03 00 [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: E2 03 00 84 14 00 90 00 0C [23:27:07]RAPDU: 90 00 [23:27:07]wFMCommunicate OK [23:27:07]wFMCommunicate request_size=255 [23:27:07]MH_SAM_APDU [23:27: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 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 4B B0 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6E 86 02 00 35 04 06 00 1B [23:27:07]Write to MH i2c: E2 02 01 85 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 4B B0 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6E 86 02 00 35 04 06 00 1B 00 00 9A [23:27:07]Write i2c OK [23:27:07]MH_I2C_Read... [23:27:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:27:07]Read from MH i2c: E2 [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: E2 03 00 [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: E2 03 00 85 14 00 90 00 0D [23:27:07]RAPDU: 90 00 [23:27:07]wFMCommunicate OK [23:27:07]wFMCommunicate request_size=10 [23:27:07]MH_SAM_APDU [23:27:07]CAPDU: 80 0D 02 02 05 28 73 81 D1 5B [23:27:07]Write to MH i2c: E2 0D 00 86 14 80 0D 02 02 05 00 28 73 81 D1 5B 00 00 66 [23:27:07]Write i2c OK [23:27:07]MH_I2C_Read... [23:27:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:27:07]Read from MH i2c: E2 [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: E2 03 00 [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: E2 03 00 86 14 00 90 00 0E [23:27:07]RAPDU: 90 00 [23:27:07]wFMCommunicate OK [23:27:07]wFMCommunicate request_size=4 [23:27:07]MH_SAM_APDU [23:27:07]CAPDU: 80 0D 03 02 [23:27:07]Write to MH i2c: E2 08 00 87 14 80 0D 03 02 00 00 00 00 16 [23:27:07]Write i2c OK [23:27:07]MH_I2C_Read... [23:27:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:27:07]Read from MH i2c: E2 [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: E2 0B 00 [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: E2 0B 00 87 14 00 6C 18 52 14 48 08 BB FD 90 00 09 [23:27:07]RAPDU: 6C 18 52 14 48 08 BB FD 90 00 [23:27:07]wFMCommunicate OK [23:27:07]SAM_PROTO_SignData done [23:27:07]FM_MakeSignedData done [23:27:07]CreateOFDProtocolMessage [23:27:07]wFMCommunicate request_size=4 [23:27:07]MH_SAM_APDU [23:27:07]CAPDU: 80 11 00 00 [23:27:07]Write to MH i2c: E2 08 00 88 14 80 11 00 00 00 00 00 00 16 [23:27:07]Write i2c OK [23:27:07]MH_I2C_Read... [23:27:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:27:07]Read from MH i2c: E2 [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: E2 17 00 [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: E2 17 00 88 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6C [23:27:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:27:07]wFMCommunicate OK [23:27:07]CreateOFDProtocolMessage done [23:27:07]OFDSenderStorePacket 165486 [23:27:07]StoreOFDPacket docnum=165486 [23:27:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 9C C9 07 01 37 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 4B B0 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6E 86 02 00 35 04 06 00 1B 28 73 81 D1 5B 6C 18 52 14 48 08 BB FD [23:27:07]CheckFolder [23:27:07]dirname=/storage/ofd_packets [23:27:07]CheckFolder done [23:27:07]ProducePacketName [23:27:07]name=ofd_packets/00165486 [23:27:07]NVStorageSaveData ofd_packets/00165486 [23:27:07]File name is /storage/ofd_packets/00165486 [23:27:07]Write 301 bytes [23:27:07]NVStorageSaveData done [23:27:07]OFDSenderStorePacket done [23:27:07]KKMCreateOFDPacket done [23:27:07]NVStorageSaveData kkm_last_timestamp [23:27:07]File name is /storage/kkm_last_timestamp [23:27:07]Write 4 bytes [23:27:07]NVStorageSaveData done [23:27:07]ExternCall_PrintAddStr [23:27:07]wPrintStart [23:27:07]Write to MH i2c: 01 00 00 89 14 9D [23:27:07]Write i2c OK [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: 01 [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: 01 07 00 [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: 01 07 00 89 14 00 00 00 00 00 FF 0F B2 [23:27:07]RasterBufferAndPrint [23:27:07]line Счет N : (1)459603 [23:27:07]line ИНН: 02508201610067 [23:27:07]line Контрольно-Кассовый Чек [23:27:07]line ПРОДАЖА [23:27:07]line ТРК (МРК, ГНК) : 12 [23:27:07]line Товар: 2710124130 [23:27:07]line Аи-92-К-5 [23:27:07]line 6.080 * 65.80 [23:27:07]line = 400.06 [23:27:07]line НДС 12% НСП 1% [23:27:07]line > о реализуемом товаре [23:27:07]line ОКРУГЛЕНИЕ: -0.06 [23:27:07]line ИТОГО: 400.00 [23:27:07]line Внесено: 400.00 [23:27:07]line СДАЧА: 0.00 [23:27:07]line НСП 1% : 3.54 [23:27:07]line НДС 12% : 42.48 [23:27:07]line Наличными: 400.00 [23:27:07]line Безнал.: 0.00 [23:27:07]line Место: АЗС № 72 "Партнер Нефть" [23:27:07]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [23:27:07]line СНО: Общий режим [23:27:07]line Чек 359 15.07.2024 23:27 [23:27:07]line Смена: 448 ФФД: 1.0 [23:27:07]line ЗНМ: 0300000160 [23:27:07]line РНМ: 0000000000090829 [23:27:07]line Версия ККМ: 001 [23:27:07]line ФМ: 0000000000874718 [23:27:07]line ФД: 165486 [23:27:07]line ФПД: 29860550529371 [23:27:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T232707&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165486&fm=29860550529371&tin=02508201610067®Number=0000000000090829&sum=40000 [23:27:07]OFD Sender: Processing packet 165486 [packets to send 106, broken 105] [23:27:07]ProducePacketName [23:27:07]name=ofd_packets/00165486 [23:27:07]OFD Sender: To server: pG, [23:27:07]CommunicateWithHost lk.salyk.kg:30040 [23:27:07]ConnectInit lk.salyk.kg [23:27:07]written 0, free lines is 4095 [23:27:08]Connected sock=10 [23:27:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 9C C9 07 01 37 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 17 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 4B B0 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6E 86 02 00 35 04 06 00 1B 28 73 81 D1 5B 6C 18 52 14 48 08 BB FD [23:27:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 65 3F 47 00 D4 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6E 86 02 00 F4 03 04 00 D4 56 95 66 B6 04 01 00 00 F3 5C B8 64 C8 66 A5 28 [23:27:08]CommunicateWithHost err = 0 [23:27:08]CheckOFDResponse [23:27:08]1017 (14) - 77093643461234 [23:27:08]1041 (16) - 0000000000874718 [23:27:08]1040 (4) - 165486 [23:27:08]1012 (4) - 15.07.2024 17:05 [23:27:08]1206 (1) - 0 [23:27:08]OFD Sender: Remove packet 165486 [23:27:08]ProducePacketName [23:27:08]name=ofd_packets/00165486 [23:27:08]NVStorageDeleteData [23:27:08]Write to MH i2c: 01 00 00 B3 14 C7 [23:27:08]Write i2c OK [23:27:08]MH_I2C_Read... [23:27:08]Read from MH i2c: 01 [23:27:08]MH_I2C_Read... [23:27:08]Read from MH i2c: 01 07 00 [23:27:08]MH_I2C_Read... [23:27:08]Read from MH i2c: 01 07 00 B3 14 00 00 00 00 00 FE 0C D8 [23:27:08]RasterBufferAndPrint [23:27:08]line [23:27:08]line [23:27:08]line [23:27:08]line [23:27:08]line [23:27:08]written 0, free lines is 3335 [23:27:08]MH_Cut [23:27:08]Write to MH i2c: D1 01 00 BA 14 01 A0 [23:27:08]Write i2c OK [23:27:08]MH_I2C_Read... [23:27:08]Read from MH i2c: D1 [23:27:08]MH_I2C_Read... [23:27:08]Read from MH i2c: D1 01 00 [23:27:08]MH_I2C_Read... [23:27:08]Read from MH i2c: D1 01 00 BA 14 00 9F [23:27:08]Write to MH i2c: 01 00 00 BB 14 CF [23:27:08]Write i2c OK [23:27:08]MH_I2C_Read... [23:27:08]OFD Sender: No OFD packet to send [23:27:09]*** Cut start [23:27:09]*** Partial cut [23:27:09]*** CUTSNS_PIN = 1 [23:27:09]*** CUTSNS_PIN = 0 [23:27:09]*** Brake cut motor [23:27:09]Read from MH i2c: 01 [23:27:09]MH_I2C_Read... [23:27:09]*** Stop cut motor [23:27:09]*** Cut end [23:27:09]Read from MH i2c: 01 07 00 [23:27:09]MH_I2C_Read... [23:27:09]Read from MH i2c: 01 07 00 BB 14 00 00 00 00 00 FF 0F E4 [23:27:09]process_action close_receipt done [23:27:09]requested_data is exist [23:27:09]produce_requested_data [23:27:09]requested_item fm.sn is exist - process it [23:27:09]wFMCommunicate request_size=4 [23:27:09]MH_SAM_APDU [23:27:09]CAPDU: 80 11 00 00 [23:27:09]Write to MH i2c: E2 08 00 BC 14 80 11 00 00 00 00 00 00 4A [23:27:09]Write i2c OK [23:27:09]MH_I2C_Read... [23:27:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:27:09]Read from MH i2c: E2 [23:27:09]MH_I2C_Read... [23:27:09]Read from MH i2c: E2 17 00 [23:27:09]MH_I2C_Read... [23:27:09]Read from MH i2c: E2 17 00 BC 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A0 [23:27:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:27:09]wFMCommunicate OK [23:27:09]requested_item fd.num is exist - process it [23:27:09]SAM_PROTO_GetFieldsCounters [23:27:09]wFMCommunicate request_size=4 [23:27:09]MH_SAM_APDU [23:27:09]CAPDU: 80 13 00 00 [23:27:09]Write to MH i2c: E2 08 00 BD 14 80 13 00 00 00 00 00 00 4D [23:27:09]Write i2c OK [23:27:09]MH_I2C_Read... [23:27:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:27:09]Read from MH i2c: E2 [23:27:09]MH_I2C_Read... [23:27:09]Read from MH i2c: E2 62 00 [23:27:09]MH_I2C_Read... [23:27:09]Read from MH i2c: E2 62 00 BD 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6E 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 67 01 00 00 5E 04 04 00 67 01 00 00 57 04 04 00 68 01 00 00 19 04 04 00 00 00 00 00 90 00 63 [23:27:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6E 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 67 01 00 00 5E 04 04 00 67 01 00 00 57 04 04 00 68 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:27:09]wFMCommunicate OK [23:27:09]SAM_PROTO_GetFieldsCounters done [23:27:09]requested_item shift.num is exist - process it [23:27:09]requested_item shift.opened is exist - process it [23:27:09]req_shift_opened [23:27:09]FM_GetShiftState [23:27:09]SAM_PROTO_GetShiftState [23:27:09]wFMCommunicate request_size=4 [23:27:09]MH_SAM_APDU [23:27:09]CAPDU: 80 13 01 00 [23:27:09]Write to MH i2c: E2 08 00 BE 14 80 13 01 00 00 00 00 00 4F [23:27:09]Write i2c OK [23:27:09]MH_I2C_Read... [23:27:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:27:09]Read from MH i2c: E2 [23:27:09]MH_I2C_Read... [23:27:09]Read from MH i2c: E2 0E 00 [23:27:09]MH_I2C_Read... [23:27:09]Read from MH i2c: E2 0E 00 BE 14 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 28 [23:27:09]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [23:27:09]wFMCommunicate OK [23:27:09]SAM_PROTO_GetShiftState done [23:27:09]FM_GetShiftState done [23:27:09]req_shift_opened done [23:27:09]requested_item shift.open_date is exist - process it [23:27:09]req_shift_open_date [23:27:09]req_shift_open_date done [23:27:09]produce_requested_data done [23:27:09]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165486,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [23:27:09]process_action_free close_receipt [23:27:09]json_value_free [23:27:09]json_value_free done [23:27:09]process_json_proto returns [23:27:09]Send response to host [23:27:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165486,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [23:27:09]free response buf [23:27:09]execute_script done [23:27:09]execute_script returns [23:27:09]free content buf [23:27:09]Sock 9.Close socket [23:27:09]Sock 9.Thread stoped [23:27:10]accept exits with 7 [23:27:10]New connection [23:27:10]New thread 3067333988 created [23:27:10]Thread 3067190628 joined [23:27:10]Waiting for new connection... [23:27:10] Sock 7.Parse request [23:27:10]Sock 7.Check first char [23:27:10]Sock 7.First char is OK [23:27:10]request: POST /json_proto HTTP/1.0 [23:27:10]Method: POST [23:27:10]URL: /json_proto [23:27:10]Method is POST - this is cgi request [23:27:10]url: /json_proto [23:27:10]query_string will be loaded in cgi processing [23:27:10]execute_cgi json_proto POST (null) [23:27:10]execute_cgi path=json_proto method=POST [23:27:10]POST find Content-Length [23:27:10]Host: 172.17.56.4:8080 [23:27:10]Content-Length: 679 [23:27:10]Content-Type: application/json [23:27:10] [23:27:10]POST finish read [23:27:10]Found Content-Length = 679 [23:27:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459602", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 14.000, "sum" : 1006.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1006.00, "total" : 1006.00, "payments": [ { "type": 0, "sum" : 1006.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:27:10]execute_script... [23:27: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)459602", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.90, "quantity" : 14.000, "sum" : 1006.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1006.00, "total" : 1006.00, "payments": [ { "type": 0, "sum" : 1006.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:27:10]POST & json_proto [23:27:10]process_json_proto [23:27:10]json parsed OK: [23:27:10]protocol is kg_v1.0 [23:27:10]action value=close_receipt [23:27:10]process_action close_receipt [23:27:10]cmd_close_receipt [23:27:10]MH_GetDate [23:27:10]Write to MH i2c: F0 00 00 BF 14 C2 [23:27:10]Write i2c OK [23:27:10]MH_I2C_Read... [23:27:10]Read from MH i2c: F0 [23:27:10]MH_I2C_Read... [23:27:10]Read from MH i2c: F0 09 00 [23:27:10]MH_I2C_Read... [23:27:10]Read from MH i2c: F0 09 00 BF 14 00 4F B0 95 66 C9 DC B2 64 80 [23:27:10]GetLastDocTimeStamp 1721086027 [23:27:10]current date 1721086031 [23:27:10]FM_GetShiftState [23:27:10]SAM_PROTO_GetShiftState [23:27:10]wFMCommunicate request_size=4 [23:27:10]MH_SAM_APDU [23:27:10]CAPDU: 80 13 01 00 [23:27:10]Write to MH i2c: E2 08 00 C0 14 80 13 01 00 00 00 00 00 51 [23:27:10]Write i2c OK [23:27:10]MH_I2C_Read... [23:27:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:27:10]Read from MH i2c: E2 [23:27:10]MH_I2C_Read... [23:27:10]Read from MH i2c: E2 0E 00 [23:27:10]MH_I2C_Read... [23:27:10]Read from MH i2c: E2 0E 00 C0 14 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 2A [23:27:10]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [23:27:10]wFMCommunicate OK [23:27:10]SAM_PROTO_GetShiftState done [23:27:10]FM_GetShiftState done [23:27:10]opened in 1721003876 [23:27:10]opened+sec_in_day 1721090276 [23:27:10]quantity*price = 100660 [23:27:10]sum+1 = 100661 [23:27:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 1006.00 Внесено: 1006.00 СДАЧА: 0.00 НСП 1% : 8.91 НДС 12% : 106.90 Наличными: 1006.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 360 15.07.2024 23:27 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165487 ФПД: 1309777783085 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T232711&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165487&fm=1309777783085&tin=02508201610067®Number=0000000000090829&sum=100600 [23:27:11]StoreToDocumentArchive [23:27:11]shift 448 fd 165487 [23:27:11]save to /storage/0448/doc_00165487 [23:27:11]save last doc name /storage/0448/doc_00165487 to /storage/kkm_last_doc_name [23:27:11]save OK [23:27:11]Clear old archive folders... [23:27:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:27:11]tlvbuf is 01B66BD0 [23:27:11]SAM_PROTO_ClearQueue [23:27:11]wFMCommunicate request_size=4 [23:27:11]MH_SAM_APDU [23:27:11]CAPDU: 80 09 00 00 [23:27:11]Write to MH i2c: E2 08 00 CD 14 80 09 00 00 00 00 00 00 53 [23:27:11]Write i2c OK [23:27:11]MH_I2C_Read... [23:27:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:27:11]Read from MH i2c: E2 [23:27:11]MH_I2C_Read... [23:27:11]Read from MH i2c: E2 03 00 [23:27:11]MH_I2C_Read... [23:27:11]Read from MH i2c: E2 03 00 CD 14 00 90 00 55 [23:27:11]RAPDU: 90 00 [23:27:11]wFMCommunicate OK [23:27:11]SAM_PROTO_ClearQueue done [23:27:11]KKMCreateOFDPacket [23:27:11]OFDProtocolAddRootSTLVToBuf [23:27:11]FM_MakeSignedData [23:27:11]FM_MakeSignedData [23:27:11]SAM_PROTO_SignData [23:27:11]wFMCommunicate request_size=4 [23:27:11]MH_SAM_APDU [23:27:11]CAPDU: 80 0D 01 02 [23:27:11]Write to MH i2c: E2 08 00 CE 14 80 0D 01 02 00 00 00 00 5B [23:27:11]Write i2c OK [23:27:11]MH_I2C_Read... [23:27:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:27:12]Read from MH i2c: E2 [23:27:12]MH_I2C_Read... [23:27:12]Read from MH i2c: E2 03 00 [23:27:12]MH_I2C_Read... [23:27:12]Read from MH i2c: E2 03 00 CE 14 00 90 00 56 [23:27:12]RAPDU: 90 00 [23:27:12]wFMCommunicate OK [23:27:12]wFMCommunicate request_size=255 [23:27:12]MH_SAM_APDU [23:27:12]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B0 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 34 89 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 88 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 29 00 00 00 00 07 04 06 00 F8 88 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 01 00 00 F4 03 04 00 4F B0 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6F 86 02 00 35 04 06 00 01 30 F4 D6 [23:27:12]Write to MH i2c: E2 02 01 CF 14 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B0 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 34 89 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 88 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 29 00 00 00 00 07 04 06 00 F8 88 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 01 00 00 F4 03 04 00 4F B0 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6F 86 02 00 35 04 06 00 01 30 F4 D6 00 00 15 [23:27:12]Write i2c OK [23:27:12]MH_I2C_Read... [23:27:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:27:12]Read from MH i2c: E2 [23:27:12]MH_I2C_Read... [23:27:12]Read from MH i2c: E2 03 00 [23:27:12]MH_I2C_Read... [23:27:12]Read from MH i2c: E2 03 00 CF 14 00 90 00 57 [23:27:12]RAPDU: 90 00 [23:27:12]wFMCommunicate OK [23:27:12]wFMCommunicate request_size=7 [23:27:12]MH_SAM_APDU [23:27:12]CAPDU: 80 0D 02 02 02 E9 2D [23:27:12]Write to MH i2c: E2 0A 00 D0 14 80 0D 02 02 02 00 E9 2D 00 00 78 [23:27:12]Write i2c OK [23:27:12]MH_I2C_Read... [23:27:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:27:12]Read from MH i2c: E2 [23:27:12]MH_I2C_Read... [23:27:12]Read from MH i2c: E2 03 00 [23:27:12]MH_I2C_Read... [23:27:12]Read from MH i2c: E2 03 00 D0 14 00 90 00 58 [23:27:12]RAPDU: 90 00 [23:27:12]wFMCommunicate OK [23:27:12]wFMCommunicate request_size=4 [23:27:12]MH_SAM_APDU [23:27:12]CAPDU: 80 0D 03 02 [23:27:12]Write to MH i2c: E2 08 00 D1 14 80 0D 03 02 00 00 00 00 60 [23:27:12]Write i2c OK [23:27:12]MH_I2C_Read... [23:27:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:27:12]Read from MH i2c: E2 [23:27:12]MH_I2C_Read... [23:27:12]Read from MH i2c: E2 0B 00 [23:27:12]MH_I2C_Read... [23:27:12]Read from MH i2c: E2 0B 00 D1 14 00 3E 8E E6 55 6A 1A 7E FE 90 00 68 [23:27:12]RAPDU: 3E 8E E6 55 6A 1A 7E FE 90 00 [23:27:12]wFMCommunicate OK [23:27:12]SAM_PROTO_SignData done [23:27:12]FM_MakeSignedData done [23:27:12]CreateOFDProtocolMessage [23:27:12]wFMCommunicate request_size=4 [23:27:12]MH_SAM_APDU [23:27:12]CAPDU: 80 11 00 00 [23:27:12]Write to MH i2c: E2 08 00 D2 14 80 11 00 00 00 00 00 00 60 [23:27:12]Write i2c OK [23:27:12]MH_I2C_Read... [23:27:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:27:12]Read from MH i2c: E2 [23:27:12]MH_I2C_Read... [23:27:12]Read from MH i2c: E2 17 00 [23:27:12]MH_I2C_Read... [23:27:12]Read from MH i2c: E2 17 00 D2 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B6 [23:27:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:27:12]wFMCommunicate OK [23:27:12]CreateOFDProtocolMessage done [23:27:12]OFDSenderStorePacket 165487 [23:27:12]StoreOFDPacket docnum=165487 [23:27:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 78 18 04 01 10 3A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B0 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 34 89 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 88 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 29 00 00 00 00 07 04 06 00 F8 88 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 01 00 00 F4 03 04 00 4F B0 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6F 86 02 00 35 04 06 00 01 30 F4 D6 E9 2D 3E 8E E6 55 6A 1A 7E FE [23:27:12]CheckFolder [23:27:12]dirname=/storage/ofd_packets [23:27:12]CheckFolder done [23:27:12]ProducePacketName [23:27:12]name=ofd_packets/00165487 [23:27:12]NVStorageSaveData ofd_packets/00165487 [23:27:12]File name is /storage/ofd_packets/00165487 [23:27:12]Write 298 bytes [23:27:12]NVStorageSaveData done [23:27:12]OFDSenderStorePacket done [23:27:12]KKMCreateOFDPacket done [23:27:12]NVStorageSaveData kkm_last_timestamp [23:27:12]File name is /storage/kkm_last_timestamp [23:27:12]Write 4 bytes [23:27:12]NVStorageSaveData done [23:27:12]ExternCall_PrintAddStr [23:27:12]wPrintStart [23:27:12]Write to MH i2c: 01 00 00 D3 14 E7 [23:27:12]Write i2c OK [23:27:12]MH_I2C_Read... [23:27:12]Read from MH i2c: 01 [23:27:12]MH_I2C_Read... [23:27:12]OFD Sender: Processing packet 165487 [packets to send 106, broken 105] [23:27:12]ProducePacketName [23:27:12]name=ofd_packets/00165487 [23:27:12]OFD Sender: To server: pG, [23:27:12]CommunicateWithHost lk.salyk.kg:30040 [23:27:12]ConnectInit lk.salyk.kg [23:27:12]Read from MH i2c: 01 07 00 [23:27:12]MH_I2C_Read... [23:27:12]Read from MH i2c: 01 07 00 D3 14 00 00 00 00 00 FF 0F FC [23:27:12]RasterBufferAndPrint [23:27:12]line Счет N : (1)459602 [23:27:12]line ИНН: 02508201610067 [23:27:12]line Контрольно-Кассовый Чек [23:27:12]line ПРОДАЖА [23:27:12]line ТРК (МРК, ГНК) : 11 [23:27:12]line Товар: 2710194210 [23:27:12]line ДТ-К-5 [23:27:12]line 14.000 * 71.90 [23:27:12]line = 1006.60 [23:27:12]line НДС 12% НСП 1% [23:27:12]line > о реализуемом товаре [23:27:12]line ОКРУГЛЕНИЕ: -0.60 [23:27:12]line ИТОГО: 1006.00 [23:27:12]line Внесено: 1006.00 [23:27:12]line СДАЧА: 0.00 [23:27:12]line НСП 1% : 8.91 [23:27:12]line НДС 12% : 106.90 [23:27:12]line Наличными: 1006.00 [23:27:12]line Безнал.: 0.00 [23:27:12]line Место: АЗС № 72 "Партнер Нефть" [23:27:12]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [23:27:12]line СНО: Общий режим [23:27:12]line Чек 360 15.07.2024 23:27 [23:27:12]line Смена: 448 ФФД: 1.0 [23:27:12]line ЗНМ: 0300000160 [23:27:12]line РНМ: 0000000000090829 [23:27:12]line Версия ККМ: 001 [23:27:12]line ФМ: 0000000000874718 [23:27:12]line ФД: 165487 [23:27:12]line ФПД: 1309777783085 [23:27:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T232711&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165487&fm=1309777783085&tin=02508201610067®Number=0000000000090829&sum=100600 [23:27:12]Connected sock=10 [23:27: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 37 31 38 0C 01 00 00 78 18 04 01 10 3A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B0 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 34 89 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 88 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 29 00 00 00 00 07 04 06 00 F8 88 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 01 00 00 F4 03 04 00 4F B0 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6F 86 02 00 35 04 06 00 01 30 F4 D6 E9 2D 3E 8E E6 55 6A 1A 7E FE [23:27:12]written 0, free lines is 4095 [23:27:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 3A FC 47 00 46 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 6F 86 02 00 F4 03 04 00 D9 56 95 66 B6 04 01 00 00 DF 58 45 10 CE D4 2F AF [23:27:13]CommunicateWithHost err = 0 [23:27:13]CheckOFDResponse [23:27:13]1017 (14) - 77093643461234 [23:27:13]1041 (16) - 0000000000874718 [23:27:13]1040 (4) - 165487 [23:27:13]1012 (4) - 15.07.2024 17:05 [23:27:13]1206 (1) - 0 [23:27:13]OFD Sender: Remove packet 165487 [23:27:13]ProducePacketName [23:27:13]name=ofd_packets/00165487 [23:27:13]NVStorageDeleteData [23:27:13]Write to MH i2c: 01 00 00 FD 14 11 [23:27:13]Write i2c OK [23:27:13]MH_I2C_Read... [23:27:13]Read from MH i2c: 01 [23:27:13]MH_I2C_Read... [23:27:13]Read from MH i2c: 01 07 00 [23:27:13]MH_I2C_Read... [23:27:13]Read from MH i2c: 01 07 00 FD 14 00 00 00 00 00 0D 0D 32 [23:27:13]RasterBufferAndPrint [23:27:13]line [23:27:13]line [23:27:13]line [23:27:13]line [23:27:13]line [23:27:13]written 0, free lines is 3353 [23:27:13]MH_Cut [23:27:13]Write to MH i2c: D1 01 00 04 15 01 EB [23:27:13]Write i2c OK [23:27:13]MH_I2C_Read... [23:27:13]Read from MH i2c: D1 [23:27:13]MH_I2C_Read... [23:27:13]Read from MH i2c: D1 01 00 [23:27:13]MH_I2C_Read... [23:27:13]Read from MH i2c: D1 01 00 04 15 00 EA [23:27:13]Write to MH i2c: 01 00 00 05 15 1A [23:27:13]Write i2c OK [23:27:13]MH_I2C_Read... [23:27:13]OFD Sender: No OFD packet to send [23:27:14]*** Cut start [23:27:14]*** Partial cut [23:27:14]*** CUTSNS_PIN = 1 [23:27:14]*** CUTSNS_PIN = 0 [23:27:14]*** Brake cut motor [23:27:14]Read from MH i2c: 01 [23:27:14]MH_I2C_Read... [23:27:14]*** Stop cut motor [23:27:14]*** Cut end [23:27:14]Read from MH i2c: 01 07 00 [23:27:14]MH_I2C_Read... [23:27:14]Read from MH i2c: 01 07 00 05 15 00 00 00 00 00 FF 0F 2F [23:27:14]process_action close_receipt done [23:27:14]requested_data is exist [23:27:14]produce_requested_data [23:27:14]requested_item fm.sn is exist - process it [23:27:14]wFMCommunicate request_size=4 [23:27:14]MH_SAM_APDU [23:27:14]CAPDU: 80 11 00 00 [23:27:14]Write to MH i2c: E2 08 00 06 15 80 11 00 00 00 00 00 00 95 [23:27:14]Write i2c OK [23:27:14]MH_I2C_Read... [23:27:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:27:14]Read from MH i2c: E2 [23:27:14]MH_I2C_Read... [23:27:14]Read from MH i2c: E2 17 00 [23:27:14]MH_I2C_Read... [23:27:14]Read from MH i2c: E2 17 00 06 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 EB [23:27:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:27:14]wFMCommunicate OK [23:27:14]requested_item fd.num is exist - process it [23:27:14]SAM_PROTO_GetFieldsCounters [23:27:14]wFMCommunicate request_size=4 [23:27:14]MH_SAM_APDU [23:27:14]CAPDU: 80 13 00 00 [23:27:14]Write to MH i2c: E2 08 00 07 15 80 13 00 00 00 00 00 00 98 [23:27:14]Write i2c OK [23:27:14]MH_I2C_Read... [23:27:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:27:14]Read from MH i2c: E2 [23:27:14]MH_I2C_Read... [23:27:14]Read from MH i2c: E2 62 00 [23:27:14]MH_I2C_Read... [23:27:14]Read from MH i2c: E2 62 00 07 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6F 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 68 01 00 00 5E 04 04 00 68 01 00 00 57 04 04 00 69 01 00 00 19 04 04 00 00 00 00 00 90 00 B2 [23:27: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 6F 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 68 01 00 00 5E 04 04 00 68 01 00 00 57 04 04 00 69 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:27:14]wFMCommunicate OK [23:27:14]SAM_PROTO_GetFieldsCounters done [23:27:14]requested_item shift.num is exist - process it [23:27:14]requested_item shift.opened is exist - process it [23:27:14]req_shift_opened [23:27:14]FM_GetShiftState [23:27:14]SAM_PROTO_GetShiftState [23:27:14]wFMCommunicate request_size=4 [23:27:14]MH_SAM_APDU [23:27:14]CAPDU: 80 13 01 00 [23:27:14]Write to MH i2c: E2 08 00 08 15 80 13 01 00 00 00 00 00 9A [23:27:14]Write i2c OK [23:27:14]MH_I2C_Read... [23:27:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:27:14]Read from MH i2c: E2 [23:27:14]MH_I2C_Read... [23:27:14]Read from MH i2c: E2 0E 00 [23:27:14]MH_I2C_Read... [23:27:14]Read from MH i2c: E2 0E 00 08 15 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 73 [23:27:15]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [23:27:15]wFMCommunicate OK [23:27:15]SAM_PROTO_GetShiftState done [23:27:15]FM_GetShiftState done [23:27:15]req_shift_opened done [23:27:15]requested_item shift.open_date is exist - process it [23:27:15]req_shift_open_date [23:27:15]req_shift_open_date done [23:27:15]produce_requested_data done [23:27:15]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165487,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [23:27:15]process_action_free close_receipt [23:27:15]json_value_free [23:27:15]json_value_free done [23:27:15]process_json_proto returns [23:27:15]Send response to host [23:27:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165487,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [23:27:15]free response buf [23:27:15]execute_script done [23:27:15]execute_script returns [23:27:15]free content buf [23:27:15]Sock 7.Close socket [23:27:15]Sock 7.Thread stoped [23:27:18]OFD Sender: No OFD packet to send [23:27:23]OFD Sender: No OFD packet to send [23:27:28]OFD Sender: No OFD packet to send [23:27:33]OFD Sender: No OFD packet to send [23:27:38]OFD Sender: No OFD packet to send [23:27:43]OFD Sender: No OFD packet to send [23:27:48]accept exits with 9 [23:27:48]New connection [23:27:48]New thread 3067190628 created [23:27:48]Thread 3067333988 joined [23:27:48]Waiting for new connection... [23:27:48] Sock 9.Parse request [23:27:48]Sock 9.Check first char [23:27:48]Sock 9.First char is OK [23:27:48]request: POST /json_proto HTTP/1.0 [23:27:48]Method: POST [23:27:48]URL: /json_proto [23:27:48]Method is POST - this is cgi request [23:27:48]url: /json_proto [23:27:48]query_string will be loaded in cgi processing [23:27:48]execute_cgi json_proto POST (null) [23:27:48]execute_cgi path=json_proto method=POST [23:27:48]POST find Content-Length [23:27:48]Host: 172.17.56.4:8080 [23:27:48]Content-Length: 838 [23:27:48]Content-Type: application/json [23:27:48] [23:27:48]POST finish read [23:27:48]Found Content-Length = 838 [23:27:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459604", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 10.380, "sum" : 739.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 739.68 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:27:48]execute_script... [23:27:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459604", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 71.26, "quantity" : 10.380, "sum" : 739.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 739.68 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:27:48]POST & json_proto [23:27:48]process_json_proto [23:27:48]json parsed OK: [23:27:48]protocol is kg_v1.0 [23:27:48]action value=close_receipt [23:27:48]process_action close_receipt [23:27:48]cmd_close_receipt [23:27:48]MH_GetDate [23:27:48]Write to MH i2c: F0 00 00 09 15 0D [23:27:48]Write i2c OK [23:27:48]MH_I2C_Read... [23:27:48]Read from MH i2c: F0 [23:27:48]MH_I2C_Read... [23:27:48]Read from MH i2c: F0 09 00 [23:27:48]MH_I2C_Read... [23:27:48]Read from MH i2c: F0 09 00 09 15 00 76 B0 95 66 C9 DC B2 64 F2 [23:27:48]GetLastDocTimeStamp 1721086031 [23:27:48]current date 1721086070 [23:27:48]FM_GetShiftState [23:27:48]SAM_PROTO_GetShiftState [23:27:48]wFMCommunicate request_size=4 [23:27:48]MH_SAM_APDU [23:27:48]CAPDU: 80 13 01 00 [23:27:48]Write to MH i2c: E2 08 00 0A 15 80 13 01 00 00 00 00 00 9C [23:27:48]Write i2c OK [23:27:48]MH_I2C_Read... [23:27:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:27:48]Read from MH i2c: E2 [23:27:48]MH_I2C_Read... [23:27:48]Read from MH i2c: E2 0E 00 [23:27:48]MH_I2C_Read... [23:27:48]Read from MH i2c: E2 0E 00 0A 15 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 75 [23:27:48]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [23:27:48]wFMCommunicate OK [23:27:48]SAM_PROTO_GetShiftState done [23:27:48]FM_GetShiftState done [23:27:48]opened in 1721003876 [23:27:48]opened+sec_in_day 1721090276 [23:27:48]quantity*price = 73967 [23:27:48]sum+1 = 73969 [23:27:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 739.68 НСП 1% : 6.55 НДС 12% : 78.55 Наличными: 0.00 Безнал.: 739.68 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 361 15.07.2024 23:27 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874718 ФД: 165488 ФПД: 220104268264877 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T232750&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165488&fm=220104268264877&tin=02508201610067®Number=0000000000090829&sum=73968 [23:27:49]StoreToDocumentArchive [23:27:49]shift 448 fd 165488 [23:27:49]save to /storage/0448/doc_00165488 [23:27:49]save last doc name /storage/0448/doc_00165488 to /storage/kkm_last_doc_name [23:27:49]save OK [23:27:49]Clear old archive folders... [23:27:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:27:49]tlvbuf is 01B6C780 [23:27:49]SAM_PROTO_ClearQueue [23:27:49]wFMCommunicate request_size=4 [23:27:49]MH_SAM_APDU [23:27:49]CAPDU: 80 09 00 00 [23:27:49]Write to MH i2c: E2 08 00 17 15 80 09 00 00 00 00 00 00 9E [23:27:49]Write i2c OK [23:27:49]MH_I2C_Read... [23:27:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:27:49]Read from MH i2c: E2 [23:27:49]MH_I2C_Read... [23:27:49]Read from MH i2c: E2 03 00 [23:27:49]MH_I2C_Read... [23:27:49]Read from MH i2c: E2 03 00 17 15 00 90 00 A0 [23:27:49]RAPDU: 90 00 [23:27:49]wFMCommunicate OK [23:27:49]SAM_PROTO_ClearQueue done [23:27:49]KKMCreateOFDPacket [23:27:49]OFDProtocolAddRootSTLVToBuf [23:27:49]FM_MakeSignedData [23:27:49]FM_MakeSignedData [23:27:49]SAM_PROTO_SignData [23:27:49]wFMCommunicate request_size=4 [23:27:49]MH_SAM_APDU [23:27:49]CAPDU: 80 0D 01 02 [23:27:49]Write to MH i2c: E2 08 00 18 15 80 0D 01 02 00 00 00 00 A6 [23:27:49]Write i2c OK [23:27:49]MH_I2C_Read... [23:27:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:27:49]Read from MH i2c: E2 [23:27:49]MH_I2C_Read... [23:27:49]Read from MH i2c: E2 03 00 [23:27:49]MH_I2C_Read... [23:27:49]Read from MH i2c: E2 03 00 18 15 00 90 00 A1 [23:27:49]RAPDU: 90 00 [23:27:49]wFMCommunicate OK [23:27:49]wFMCommunicate request_size=255 [23:27:49]MH_SAM_APDU [23:27:49]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8C 28 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 F0 20 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 20 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 20 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 76 B0 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 70 86 02 00 35 04 06 00 C8 2F 04 B9 [23:27:49]Write to MH i2c: E2 02 01 19 15 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8C 28 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 F0 20 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 20 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 20 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 76 B0 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 70 86 02 00 35 04 06 00 C8 2F 04 B9 00 00 37 [23:27:49]Write i2c OK [23:27:49]MH_I2C_Read... [23:27:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:27:50]Read from MH i2c: E2 [23:27:50]MH_I2C_Read... [23:27:50]Read from MH i2c: E2 03 00 [23:27:50]MH_I2C_Read... [23:27:50]Read from MH i2c: E2 03 00 19 15 00 90 00 A2 [23:27:50]RAPDU: 90 00 [23:27:50]wFMCommunicate OK [23:27:50]wFMCommunicate request_size=7 [23:27:50]MH_SAM_APDU [23:27:50]CAPDU: 80 0D 02 02 02 35 AD [23:27:50]Write to MH i2c: E2 0A 00 1A 15 80 0D 02 02 02 00 35 AD 00 00 8F [23:27:50]Write i2c OK [23:27:50]MH_I2C_Read... [23:27:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:27:50]Read from MH i2c: E2 [23:27:50]MH_I2C_Read... [23:27:50]Read from MH i2c: E2 03 00 [23:27:50]MH_I2C_Read... [23:27:50]Read from MH i2c: E2 03 00 1A 15 00 90 00 A3 [23:27:50]RAPDU: 90 00 [23:27:50]wFMCommunicate OK [23:27:50]wFMCommunicate request_size=4 [23:27:50]MH_SAM_APDU [23:27:50]CAPDU: 80 0D 03 02 [23:27:50]Write to MH i2c: E2 08 00 1B 15 80 0D 03 02 00 00 00 00 AB [23:27:50]Write i2c OK [23:27:50]MH_I2C_Read... [23:27:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:27:50]Read from MH i2c: E2 [23:27:50]MH_I2C_Read... [23:27:50]Read from MH i2c: E2 0B 00 [23:27:50]MH_I2C_Read... [23:27:50]Read from MH i2c: E2 0B 00 1B 15 00 08 91 42 40 A1 24 7F 5E 90 00 69 [23:27:50]RAPDU: 08 91 42 40 A1 24 7F 5E 90 00 [23:27:50]wFMCommunicate OK [23:27:50]SAM_PROTO_SignData done [23:27:50]FM_MakeSignedData done [23:27:50]CreateOFDProtocolMessage [23:27:50]wFMCommunicate request_size=4 [23:27:50]MH_SAM_APDU [23:27:50]CAPDU: 80 11 00 00 [23:27:50]Write to MH i2c: E2 08 00 1C 15 80 11 00 00 00 00 00 00 AB [23:27:50]Write i2c OK [23:27:50]MH_I2C_Read... [23:27:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:27:50]Read from MH i2c: E2 [23:27:50]MH_I2C_Read... [23:27:50]Read from MH i2c: E2 17 00 [23:27:50]MH_I2C_Read... [23:27:50]Read from MH i2c: E2 17 00 1C 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 01 [23:27:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:27:50]wFMCommunicate OK [23:27:50]CreateOFDProtocolMessage done [23:27:50]OFDSenderStorePacket 165488 [23:27:50]StoreOFDPacket docnum=165488 [23:27:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 16 76 04 01 09 8D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8C 28 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 F0 20 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 20 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 20 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 76 B0 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 70 86 02 00 35 04 06 00 C8 2F 04 B9 35 AD 08 91 42 40 A1 24 7F 5E [23:27:50]CheckFolder [23:27:50]dirname=/storage/ofd_packets [23:27:50]CheckFolder done [23:27:50]ProducePacketName [23:27:50]name=ofd_packets/00165488 [23:27:50]NVStorageSaveData ofd_packets/00165488 [23:27:50]File name is /storage/ofd_packets/00165488 [23:27:50]Write 298 bytes [23:27:50]NVStorageSaveData done [23:27:50]OFDSenderStorePacket done [23:27:50]KKMCreateOFDPacket done [23:27:50]NVStorageSaveData kkm_last_timestamp [23:27:50]File name is /storage/kkm_last_timestamp [23:27:50]Write 4 bytes [23:27:50]NVStorageSaveData done [23:27:50]ExternCall_PrintAddStr [23:27:50]wPrintStart [23:27:50]Write to MH i2c: 01 00 00 1D 15 32 [23:27:50]Write i2c OK [23:27:50]MH_I2C_Read... [23:27:50]Read from MH i2c: 01 [23:27:50]MH_I2C_Read... [23:27:50]Read from MH i2c: 01 07 00 [23:27:50]MH_I2C_Read... [23:27:50]Read from MH i2c: 01 07 00 1D 15 00 00 00 00 00 FF 0F 47 [23:27:50]RasterBufferAndPrint [23:27:50]line Счет N : (1)459604 [23:27:50]line ИНН: 02508201610067 [23:27:50]line Контрольно-Кассовый Чек [23:27:50]line ПРОДАЖА [23:27:50]line ТРК (МРК, ГНК) : 11 [23:27:50]line Товар: 2710194210 [23:27:50]line ДТ-К-5 [23:27:50]line 10.380 * 71.26 [23:27:50]line = 739.68 [23:27:50]line НДС 12% НСП 1% [23:27:50]line > о реализуемом товаре [23:27:50]line ИТОГО: 739.68 [23:27:50]line НСП 1% : 6.55 [23:27:50]line НДС 12% : 78.55 [23:27:50]line Наличными: 0.00 [23:27:50]line Безнал.: 739.68 [23:27:50]line Место: АЗС № 72 "Партнер Нефть" [23:27:50]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [23:27:50]line СНО: Общий режим [23:27:50]line Чек 361 15.07.2024 23:27 [23:27:50]line Смена: 448 ФФД: 1.0 [23:27:50]line ЗНМ: 0300000160 [23:27:50]line РНМ: 0000000000090829 [23:27:50]line Версия ККМ: 001 [23:27:50]line Платежная система: АКБ Кыргызстан [23:27:50]line ФМ: 0000000000874718 [23:27:50]line ФД: 165488 [23:27:50]line ФПД: 220104268264877 [23:27:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T232750&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165488&fm=220104268264877&tin=02508201610067®Number=0000000000090829&sum=73968 [23:27:50]OFD Sender: Processing packet 165488 [packets to send 106, broken 105] [23:27:50]ProducePacketName [23:27:50]name=ofd_packets/00165488 [23:27:50]OFD Sender: To server: pG, [23:27:50]CommunicateWithHost lk.salyk.kg:30040 [23:27:50]ConnectInit lk.salyk.kg [23:27:50]written 0, free lines is 4095 [23:27:50]Connected sock=10 [23:27: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 37 31 38 0C 01 00 00 16 76 04 01 09 8D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8C 28 00 00 00 00 00 37 04 06 00 D6 1B 00 00 00 00 13 04 06 00 F0 20 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 20 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 20 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 01 00 00 F4 03 04 00 76 B0 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 70 86 02 00 35 04 06 00 C8 2F 04 B9 35 AD 08 91 42 40 A1 24 7F 5E [23:27:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 01 52 47 00 30 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 70 86 02 00 F4 03 04 00 FF 56 95 66 B6 04 01 00 00 14 B1 E6 11 B3 F3 E8 19 [23:27:50]CommunicateWithHost err = 0 [23:27:50]CheckOFDResponse [23:27:50]1017 (14) - 77093643461234 [23:27:50]1041 (16) - 0000000000874718 [23:27:50]1040 (4) - 165488 [23:27:50]1012 (4) - 15.07.2024 17:06 [23:27:50]1206 (1) - 0 [23:27:50]OFD Sender: Remove packet 165488 [23:27:50]ProducePacketName [23:27:50]name=ofd_packets/00165488 [23:27:50]NVStorageDeleteData [23:27:51]Write to MH i2c: 01 00 00 46 15 5B [23:27:51]Write i2c OK [23:27:51]MH_I2C_Read... [23:27:51]Read from MH i2c: 01 [23:27:51]MH_I2C_Read... [23:27:51]Read from MH i2c: 01 07 00 [23:27:51]MH_I2C_Read... [23:27:51]Read from MH i2c: 01 07 00 46 15 00 00 00 00 00 0C 0D 7B [23:27:51]RasterBufferAndPrint [23:27:51]line [23:27:51]line [23:27:51]line [23:27:51]line [23:27:51]line [23:27:51]written 0, free lines is 3346 [23:27:51]MH_Cut [23:27:51]Write to MH i2c: D1 01 00 4D 15 01 34 [23:27:51]Write i2c OK [23:27:51]MH_I2C_Read... [23:27:51]Read from MH i2c: D1 [23:27:51]MH_I2C_Read... [23:27:51]Read from MH i2c: D1 01 00 [23:27:51]MH_I2C_Read... [23:27:51]Read from MH i2c: D1 01 00 4D 15 00 33 [23:27:51]Write to MH i2c: 01 00 00 4E 15 63 [23:27:51]Write i2c OK [23:27:51]MH_I2C_Read... [23:27:51]OFD Sender: No OFD packet to send [23:27:51]*** Cut start [23:27:51]*** Partial cut [23:27:51]*** CUTSNS_PIN = 1 [23:27:51]*** CUTSNS_PIN = 0 [23:27:51]*** Brake cut motor [23:27:52]Read from MH i2c: 01 [23:27:52]MH_I2C_Read... [23:27:52]Read from MH i2c: 01 07 00 [23:27:52]MH_I2C_Read... [23:27:52]*** Stop cut motor [23:27:52]*** Cut end [23:27:52]Read from MH i2c: 01 07 00 4E 15 00 00 00 00 00 FF 0F 78 [23:27:52]process_action close_receipt done [23:27:52]requested_data is exist [23:27:52]produce_requested_data [23:27:52]requested_item fm.sn is exist - process it [23:27:52]wFMCommunicate request_size=4 [23:27:52]MH_SAM_APDU [23:27:52]CAPDU: 80 11 00 00 [23:27:52]Write to MH i2c: E2 08 00 4F 15 80 11 00 00 00 00 00 00 DE [23:27:52]Write i2c OK [23:27:52]MH_I2C_Read... [23:27:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:27:52]Read from MH i2c: E2 [23:27:52]MH_I2C_Read... [23:27:52]Read from MH i2c: E2 17 00 [23:27:52]MH_I2C_Read... [23:27:52]Read from MH i2c: E2 17 00 4F 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 34 [23:27:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:27:52]wFMCommunicate OK [23:27:52]requested_item fd.num is exist - process it [23:27:52]SAM_PROTO_GetFieldsCounters [23:27:52]wFMCommunicate request_size=4 [23:27:52]MH_SAM_APDU [23:27:52]CAPDU: 80 13 00 00 [23:27:52]Write to MH i2c: E2 08 00 50 15 80 13 00 00 00 00 00 00 E1 [23:27:52]Write i2c OK [23:27:52]MH_I2C_Read... [23:27:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:27:52]Read from MH i2c: E2 [23:27:52]MH_I2C_Read... [23:27:52]Read from MH i2c: E2 62 00 [23:27:52]MH_I2C_Read... [23:27:52]Read from MH i2c: E2 62 00 50 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 70 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 69 01 00 00 5E 04 04 00 69 01 00 00 57 04 04 00 6A 01 00 00 19 04 04 00 00 00 00 00 90 00 FF [23:27: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 70 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 69 01 00 00 5E 04 04 00 69 01 00 00 57 04 04 00 6A 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:27:52]wFMCommunicate OK [23:27:52]SAM_PROTO_GetFieldsCounters done [23:27:52]requested_item shift.num is exist - process it [23:27:52]requested_item shift.opened is exist - process it [23:27:52]req_shift_opened [23:27:52]FM_GetShiftState [23:27:52]SAM_PROTO_GetShiftState [23:27:52]wFMCommunicate request_size=4 [23:27:52]MH_SAM_APDU [23:27:52]CAPDU: 80 13 01 00 [23:27:52]Write to MH i2c: E2 08 00 51 15 80 13 01 00 00 00 00 00 E3 [23:27:52]Write i2c OK [23:27:52]MH_I2C_Read... [23:27:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:27:52]Read from MH i2c: E2 [23:27:52]MH_I2C_Read... [23:27:52]Read from MH i2c: E2 0E 00 [23:27:52]MH_I2C_Read... [23:27:52]Read from MH i2c: E2 0E 00 51 15 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 BC [23:27:52]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [23:27:52]wFMCommunicate OK [23:27:52]SAM_PROTO_GetShiftState done [23:27:52]FM_GetShiftState done [23:27:52]req_shift_opened done [23:27:52]requested_item shift.open_date is exist - process it [23:27:52]req_shift_open_date [23:27:52]req_shift_open_date done [23:27:52]produce_requested_data done [23:27:52]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165488,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [23:27:52]process_action_free close_receipt [23:27:52]json_value_free [23:27:52]json_value_free done [23:27:52]process_json_proto returns [23:27:52]Send response to host [23:27:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165488,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [23:27:52]free response buf [23:27:52]execute_script done [23:27:52]execute_script returns [23:27:52]free content buf [23:27:52]Sock 9.Close socket [23:27:52]Sock 9.Thread stoped [23:27:56]OFD Sender: No OFD packet to send [23:28:01]OFD Sender: No OFD packet to send [23:28:06]OFD Sender: No OFD packet to send [23:28:11]OFD Sender: No OFD packet to send [23:28:16]OFD Sender: No OFD packet to send [23:28:21]OFD Sender: No OFD packet to send [23:28:26]OFD Sender: No OFD packet to send [23:28:31]OFD Sender: No OFD packet to send [23:28:36]OFD Sender: No OFD packet to send [23:28:41]OFD Sender: No OFD packet to send [23:28:46]OFD Sender: No OFD packet to send [23:28:51]OFD Sender: No OFD packet to send [23:28:56]OFD Sender: No OFD packet to send [23:29:01]OFD Sender: No OFD packet to send [23:29:06]OFD Sender: No OFD packet to send [23:29:11]OFD Sender: No OFD packet to send [23:29:16]OFD Sender: No OFD packet to send [23:29:21]OFD Sender: No OFD packet to send [23:29:26]OFD Sender: No OFD packet to send [23:29:31]OFD Sender: No OFD packet to send [23:29:36]OFD Sender: No OFD packet to send [23:29:41]OFD Sender: No OFD packet to send [23:29:46]OFD Sender: No OFD packet to send [23:29:51]OFD Sender: No OFD packet to send [23:29:56]OFD Sender: No OFD packet to send [23:30:01]OFD Sender: No OFD packet to send [23:30:06]OFD Sender: No OFD packet to send [23:30:11]OFD Sender: No OFD packet to send [23:30:16]OFD Sender: No OFD packet to send [23:30:21]OFD Sender: No OFD packet to send [23:30:26]OFD Sender: No OFD packet to send [23:30:31]OFD Sender: No OFD packet to send [23:30:36]OFD Sender: No OFD packet to send [23:30:41]OFD Sender: No OFD packet to send [23:30:46]OFD Sender: No OFD packet to send [23:30:51]OFD Sender: No OFD packet to send [23:30:56]OFD Sender: No OFD packet to send [23:31:01]OFD Sender: No OFD packet to send [23:31:06]OFD Sender: No OFD packet to send [23:31:11]OFD Sender: No OFD packet to send [23:31:16]OFD Sender: No OFD packet to send [23:31:21]OFD Sender: No OFD packet to send [23:31:26]OFD Sender: No OFD packet to send [23:31:31]OFD Sender: No OFD packet to send [23:31:36]OFD Sender: No OFD packet to send [23:31:41]OFD Sender: No OFD packet to send [23:31:46]OFD Sender: No OFD packet to send [23:31:51]OFD Sender: No OFD packet to send [23:31:56]OFD Sender: No OFD packet to send [23:32:01]OFD Sender: No OFD packet to send [23:32:06]OFD Sender: No OFD packet to send [23:32:11]OFD Sender: No OFD packet to send [23:32:16]OFD Sender: No OFD packet to send [23:32:21]OFD Sender: No OFD packet to send [23:32:26]OFD Sender: No OFD packet to send [23:32:31]OFD Sender: No OFD packet to send [23:32:36]OFD Sender: No OFD packet to send [23:32:41]OFD Sender: No OFD packet to send [23:32:46]OFD Sender: No OFD packet to send [23:32:51]OFD Sender: No OFD packet to send [23:32:56]OFD Sender: No OFD packet to send [23:33:01]OFD Sender: No OFD packet to send [23:33:06]OFD Sender: No OFD packet to send [23:33:11]OFD Sender: No OFD packet to send [23:33:16]OFD Sender: No OFD packet to send [23:33:21]OFD Sender: No OFD packet to send [23:33:26]OFD Sender: No OFD packet to send [23:33:31]OFD Sender: No OFD packet to send [23:33:36]OFD Sender: No OFD packet to send [23:33:41]OFD Sender: No OFD packet to send [23:33:46]OFD Sender: No OFD packet to send [23:33:51]OFD Sender: No OFD packet to send [23:33:56]OFD Sender: No OFD packet to send [23:34:01]OFD Sender: No OFD packet to send [23:34:06]OFD Sender: No OFD packet to send [23:34:11]OFD Sender: No OFD packet to send [23:34:16]OFD Sender: No OFD packet to send [23:34:21]OFD Sender: No OFD packet to send [23:34:26]OFD Sender: No OFD packet to send [23:34:31]OFD Sender: No OFD packet to send [23:34:36]OFD Sender: No OFD packet to send [23:34:41]OFD Sender: No OFD packet to send [23:34:46]OFD Sender: No OFD packet to send [23:34:51]OFD Sender: No OFD packet to send [23:34:56]OFD Sender: No OFD packet to send [23:35:01]OFD Sender: No OFD packet to send [23:35:06]OFD Sender: No OFD packet to send [23:35:11]OFD Sender: No OFD packet to send [23:35:16]OFD Sender: No OFD packet to send [23:35:21]OFD Sender: No OFD packet to send [23:35:26]OFD Sender: No OFD packet to send [23:35:31]OFD Sender: No OFD packet to send [23:35:36]OFD Sender: No OFD packet to send [23:35:41]OFD Sender: No OFD packet to send [23:35:46]OFD Sender: No OFD packet to send [23:35:51]OFD Sender: No OFD packet to send [23:35:56]OFD Sender: No OFD packet to send [23:36:01]OFD Sender: No OFD packet to send [23:36:06]OFD Sender: No OFD packet to send [23:36:11]OFD Sender: No OFD packet to send [23:36:16]OFD Sender: No OFD packet to send [23:36:21]OFD Sender: No OFD packet to send [23:36:26]OFD Sender: No OFD packet to send [23:36:31]OFD Sender: No OFD packet to send [23:36:37]OFD Sender: No OFD packet to send [23:36:42]OFD Sender: No OFD packet to send [23:36:47]OFD Sender: No OFD packet to send [23:36:52]OFD Sender: No OFD packet to send [23:36:57]OFD Sender: No OFD packet to send [23:37:02]OFD Sender: No OFD packet to send [23:37:07]OFD Sender: No OFD packet to send [23:37:12]OFD Sender: No OFD packet to send [23:37:17]OFD Sender: No OFD packet to send [23:37:22]OFD Sender: No OFD packet to send [23:37:27]OFD Sender: No OFD packet to send [23:37:32]OFD Sender: No OFD packet to send [23:37:37]OFD Sender: No OFD packet to send [23:37:42]OFD Sender: No OFD packet to send [23:37:47]OFD Sender: No OFD packet to send [23:37:52]OFD Sender: No OFD packet to send [23:37:57]OFD Sender: No OFD packet to send [23:38:02]OFD Sender: No OFD packet to send [23:38:07]OFD Sender: No OFD packet to send [23:38:12]OFD Sender: No OFD packet to send [23:38:17]OFD Sender: No OFD packet to send [23:38:22]OFD Sender: No OFD packet to send [23:38:27]OFD Sender: No OFD packet to send [23:38:32]OFD Sender: No OFD packet to send [23:38:37]OFD Sender: No OFD packet to send [23:38:42]OFD Sender: No OFD packet to send [23:38:47]OFD Sender: No OFD packet to send [23:38:52]OFD Sender: No OFD packet to send [23:38:57]OFD Sender: No OFD packet to send [23:39:02]OFD Sender: No OFD packet to send [23:39:07]OFD Sender: No OFD packet to send [23:39:12]OFD Sender: No OFD packet to send [23:39:17]OFD Sender: No OFD packet to send [23:39:22]OFD Sender: No OFD packet to send [23:39:27]OFD Sender: No OFD packet to send [23:39:32]OFD Sender: No OFD packet to send [23:39:37]OFD Sender: No OFD packet to send [23:39:42]OFD Sender: No OFD packet to send [23:39:47]OFD Sender: No OFD packet to send [23:39:52]OFD Sender: No OFD packet to send [23:39:57]OFD Sender: No OFD packet to send [23:40:02]OFD Sender: No OFD packet to send [23:40:07]OFD Sender: No OFD packet to send [23:40:12]OFD Sender: No OFD packet to send [23:40:17]OFD Sender: No OFD packet to send [23:40:22]OFD Sender: No OFD packet to send [23:40:27]OFD Sender: No OFD packet to send [23:40:32]OFD Sender: No OFD packet to send [23:40:37]OFD Sender: No OFD packet to send [23:40:42]OFD Sender: No OFD packet to send [23:40:47]OFD Sender: No OFD packet to send [23:40:52]OFD Sender: No OFD packet to send [23:40:57]OFD Sender: No OFD packet to send [23:41:02]OFD Sender: No OFD packet to send [23:41:07]OFD Sender: No OFD packet to send [23:41:12]OFD Sender: No OFD packet to send [23:41:17]OFD Sender: No OFD packet to send [23:41:22]OFD Sender: No OFD packet to send [23:41:27]OFD Sender: No OFD packet to send [23:41:32]OFD Sender: No OFD packet to send [23:41:37]OFD Sender: No OFD packet to send [23:41:42]OFD Sender: No OFD packet to send [23:41:47]OFD Sender: No OFD packet to send [23:41:52]OFD Sender: No OFD packet to send [23:41:57]OFD Sender: No OFD packet to send [23:42:02]OFD Sender: No OFD packet to send [23:42:07]OFD Sender: No OFD packet to send [23:42:12]OFD Sender: No OFD packet to send [23:42:17]OFD Sender: No OFD packet to send [23:42:22]OFD Sender: No OFD packet to send [23:42:27]OFD Sender: No OFD packet to send [23:42:32]OFD Sender: No OFD packet to send [23:42:37]OFD Sender: No OFD packet to send [23:42:42]OFD Sender: No OFD packet to send [23:42:47]OFD Sender: No OFD packet to send [23:42:52]OFD Sender: No OFD packet to send [23:42:57]OFD Sender: No OFD packet to send [23:43:02]OFD Sender: No OFD packet to send [23:43:07]OFD Sender: No OFD packet to send [23:43:12]OFD Sender: No OFD packet to send [23:43:17]OFD Sender: No OFD packet to send [23:43:22]OFD Sender: No OFD packet to send [23:43:27]OFD Sender: No OFD packet to send [23:43:32]OFD Sender: No OFD packet to send [23:43:37]OFD Sender: No OFD packet to send [23:43:42]OFD Sender: No OFD packet to send [23:43:47]OFD Sender: No OFD packet to send [23:43:52]OFD Sender: No OFD packet to send [23:43:57]OFD Sender: No OFD packet to send [23:44:02]OFD Sender: No OFD packet to send [23:44:07]OFD Sender: No OFD packet to send [23:44:12]OFD Sender: No OFD packet to send [23:44:17]OFD Sender: No OFD packet to send [23:44:22]OFD Sender: No OFD packet to send [23:44:27]OFD Sender: No OFD packet to send [23:44:32]OFD Sender: No OFD packet to send [23:44:37]OFD Sender: No OFD packet to send [23:44:42]OFD Sender: No OFD packet to send [23:44:47]OFD Sender: No OFD packet to send [23:44:52]OFD Sender: No OFD packet to send [23:44:57]OFD Sender: No OFD packet to send [23:45:02]OFD Sender: No OFD packet to send [23:45:07]OFD Sender: No OFD packet to send [23:45:12]OFD Sender: No OFD packet to send [23:45:17]OFD Sender: No OFD packet to send [23:45:22]OFD Sender: No OFD packet to send [23:45:27]OFD Sender: No OFD packet to send [23:45:32]OFD Sender: No OFD packet to send [23:45:37]OFD Sender: No OFD packet to send [23:45:42]OFD Sender: No OFD packet to send [23:45:47]OFD Sender: No OFD packet to send [23:45:52]OFD Sender: No OFD packet to send [23:45:57]OFD Sender: No OFD packet to send [23:46:02]OFD Sender: No OFD packet to send [23:46:07]OFD Sender: No OFD packet to send [23:46:12]OFD Sender: No OFD packet to send [23:46:17]OFD Sender: No OFD packet to send [23:46:22]OFD Sender: No OFD packet to send [23:46:27]OFD Sender: No OFD packet to send [23:46:32]OFD Sender: No OFD packet to send [23:46:37]OFD Sender: No OFD packet to send [23:46:42]OFD Sender: No OFD packet to send [23:46:47]OFD Sender: No OFD packet to send [23:46:52]OFD Sender: No OFD packet to send [23:46:57]OFD Sender: No OFD packet to send [23:47:02]OFD Sender: No OFD packet to send [23:47:07]OFD Sender: No OFD packet to send [23:47:12]OFD Sender: No OFD packet to send [23:47:17]OFD Sender: No OFD packet to send [23:47:22]OFD Sender: No OFD packet to send [23:47:27]OFD Sender: No OFD packet to send [23:47:32]OFD Sender: No OFD packet to send [23:47:37]OFD Sender: No OFD packet to send [23:47:42]OFD Sender: No OFD packet to send [23:47:47]OFD Sender: No OFD packet to send [23:47:52]OFD Sender: No OFD packet to send [23:47:57]OFD Sender: No OFD packet to send [23:48:02]OFD Sender: No OFD packet to send [23:48:07]OFD Sender: No OFD packet to send [23:48:12]OFD Sender: No OFD packet to send [23:48:17]OFD Sender: No OFD packet to send [23:48:22]OFD Sender: No OFD packet to send [23:48:27]OFD Sender: No OFD packet to send [23:48:32]OFD Sender: No OFD packet to send [23:48:37]OFD Sender: No OFD packet to send [23:48:42]OFD Sender: No OFD packet to send [23:48:47]OFD Sender: No OFD packet to send [23:48:52]OFD Sender: No OFD packet to send [23:48:57]OFD Sender: No OFD packet to send [23:49:02]OFD Sender: No OFD packet to send [23:49:07]OFD Sender: No OFD packet to send [23:49:12]OFD Sender: No OFD packet to send [23:49:17]OFD Sender: No OFD packet to send [23:49:22]OFD Sender: No OFD packet to send [23:49:27]OFD Sender: No OFD packet to send [23:49:32]OFD Sender: No OFD packet to send [23:49:37]OFD Sender: No OFD packet to send [23:49:42]OFD Sender: No OFD packet to send [23:49:47]OFD Sender: No OFD packet to send [23:49:52]OFD Sender: No OFD packet to send [23:49:57]OFD Sender: No OFD packet to send [23:50:02]OFD Sender: No OFD packet to send [23:50:07]OFD Sender: No OFD packet to send [23:50:12]OFD Sender: No OFD packet to send [23:50:17]OFD Sender: No OFD packet to send [23:50:22]OFD Sender: No OFD packet to send [23:50:27]OFD Sender: No OFD packet to send [23:50:32]OFD Sender: No OFD packet to send [23:50:37]OFD Sender: No OFD packet to send [23:50:42]OFD Sender: No OFD packet to send [23:50:47]OFD Sender: No OFD packet to send [23:50:52]OFD Sender: No OFD packet to send [23:50:57]OFD Sender: No OFD packet to send [23:51:02]OFD Sender: No OFD packet to send [23:51:07]OFD Sender: No OFD packet to send [23:51:12]OFD Sender: No OFD packet to send [23:51:17]OFD Sender: No OFD packet to send [23:51:22]OFD Sender: No OFD packet to send [23:51:27]OFD Sender: No OFD packet to send [23:51:32]OFD Sender: No OFD packet to send [23:51:37]OFD Sender: No OFD packet to send [23:51:42]OFD Sender: No OFD packet to send [23:51:47]OFD Sender: No OFD packet to send [23:51:52]OFD Sender: No OFD packet to send [23:51:58]OFD Sender: No OFD packet to send [23:52:03]OFD Sender: No OFD packet to send [23:52:08]OFD Sender: No OFD packet to send [23:52:13]OFD Sender: No OFD packet to send [23:52:18]OFD Sender: No OFD packet to send [23:52:23]OFD Sender: No OFD packet to send [23:52:28]OFD Sender: No OFD packet to send [23:52:33]OFD Sender: No OFD packet to send [23:52:38]OFD Sender: No OFD packet to send [23:52:43]OFD Sender: No OFD packet to send [23:52:48]OFD Sender: No OFD packet to send [23:52:53]OFD Sender: No OFD packet to send [23:52:58]OFD Sender: No OFD packet to send [23:53:03]OFD Sender: No OFD packet to send [23:53:08]OFD Sender: No OFD packet to send [23:53:13]OFD Sender: No OFD packet to send [23:53:18]OFD Sender: No OFD packet to send [23:53:23]OFD Sender: No OFD packet to send [23:53:28]OFD Sender: No OFD packet to send [23:53:33]OFD Sender: No OFD packet to send [23:53:38]OFD Sender: No OFD packet to send [23:53:43]OFD Sender: No OFD packet to send [23:53:48]OFD Sender: No OFD packet to send [23:53:53]OFD Sender: No OFD packet to send [23:53:58]OFD Sender: No OFD packet to send [23:54:03]OFD Sender: No OFD packet to send [23:54:08]OFD Sender: No OFD packet to send [23:54:13]OFD Sender: No OFD packet to send [23:54:18]OFD Sender: No OFD packet to send [23:54:23]OFD Sender: No OFD packet to send [23:54:28]accept exits with 7 [23:54:28]New connection [23:54:28]New thread 3067333988 created [23:54:28] Sock 7.Parse request [23:54:28]Thread 3067190628 joined [23:54:28]Sock 7.Check first char [23:54:28]Waiting for new connection... [23:54:28]Sock 7.First char is OK [23:54:28]request: POST /json_proto HTTP/1.0 [23:54:28]Method: POST [23:54:28]URL: /json_proto [23:54:28]Method is POST - this is cgi request [23:54:28]url: /json_proto [23:54:28]query_string will be loaded in cgi processing [23:54:28]execute_cgi json_proto POST (null) [23:54:28]execute_cgi path=json_proto method=POST [23:54:28]POST find Content-Length [23:54:28]Host: 172.17.56.4:8080 [23:54:28]Content-Length: 678 [23:54:28]Content-Type: application/json [23:54:28] [23:54:28]POST finish read [23:54:28]Found Content-Length = 678 [23:54:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459605", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.040, "sum" : 660.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:54:28]execute_script... [23:54:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459605", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.040, "sum" : 660.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:54:28]POST & json_proto [23:54:28]process_json_proto [23:54:28]json parsed OK: [23:54:28]protocol is kg_v1.0 [23:54:28]action value=close_receipt [23:54:28]process_action close_receipt [23:54:28]cmd_close_receipt [23:54:28]MH_GetDate [23:54:28]Write to MH i2c: F0 00 00 52 15 56 [23:54:28]Write i2c OK [23:54:28]MH_I2C_Read... [23:54:28]Read from MH i2c: F0 [23:54:28]MH_I2C_Read... [23:54:28]Read from MH i2c: F0 09 00 [23:54:28]MH_I2C_Read... [23:54:28]Read from MH i2c: F0 09 00 52 15 00 B5 B6 95 66 C9 DC B2 64 80 [23:54:28]GetLastDocTimeStamp 1721086070 [23:54:28]current date 1721087669 [23:54:28]FM_GetShiftState [23:54:28]SAM_PROTO_GetShiftState [23:54:28]wFMCommunicate request_size=4 [23:54:28]MH_SAM_APDU [23:54:28]CAPDU: 80 13 01 00 [23:54:28]Write to MH i2c: E2 08 00 53 15 80 13 01 00 00 00 00 00 E5 [23:54:28]Write i2c OK [23:54:28]MH_I2C_Read... [23:54:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:54:28]Read from MH i2c: E2 [23:54:28]MH_I2C_Read... [23:54:28]Read from MH i2c: E2 0E 00 [23:54:28]MH_I2C_Read... [23:54:28]Read from MH i2c: E2 0E 00 53 15 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 BE [23:54:28]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [23:54:28]wFMCommunicate OK [23:54:28]SAM_PROTO_GetShiftState done [23:54:28]FM_GetShiftState done [23:54:28]opened in 1721003876 [23:54:28]opened+sec_in_day 1721090276 [23:54:28]quantity*price = 66063 [23:54:28]sum+1 = 66064 [23:54:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 660.00 Внесено: 660.00 СДАЧА: 0.00 НСП 1% : 5.85 НДС 12% : 70.15 Наличными: 660.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 362 15.07.2024 23:54 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165489 ФПД: 267844826908546 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T235429&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165489&fm=267844826908546&tin=02508201610067®Number=0000000000090829&sum=66000 [23:54:29]StoreToDocumentArchive [23:54:29]shift 448 fd 165489 [23:54:29]save to /storage/0448/doc_00165489 [23:54:29]save last doc name /storage/0448/doc_00165489 to /storage/kkm_last_doc_name [23:54:29]save OK [23:54:29]Clear old archive folders... [23:54:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:54:29]tlvbuf is 01BAF7E0 [23:54:29]SAM_PROTO_ClearQueue [23:54:29]wFMCommunicate request_size=4 [23:54:29]MH_SAM_APDU [23:54:29]CAPDU: 80 09 00 00 [23:54:29]Write to MH i2c: E2 08 00 60 15 80 09 00 00 00 00 00 00 E7 [23:54:29]Write i2c OK [23:54:29]MH_I2C_Read... [23:54:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:54:29]Read from MH i2c: E2 [23:54:29]MH_I2C_Read... [23:54:29]Read from MH i2c: E2 03 00 [23:54:29]MH_I2C_Read... [23:54:29]Read from MH i2c: E2 03 00 60 15 00 90 00 E9 [23:54:29]RAPDU: 90 00 [23:54:29]wFMCommunicate OK [23:54:29]SAM_PROTO_ClearQueue done [23:54:29]KKMCreateOFDPacket [23:54:29]OFDProtocolAddRootSTLVToBuf [23:54:29]FM_MakeSignedData [23:54:29]FM_MakeSignedData [23:54:29]SAM_PROTO_SignData [23:54:29]wFMCommunicate request_size=4 [23:54:29]MH_SAM_APDU [23:54:29]CAPDU: 80 0D 01 02 [23:54:29]Write to MH i2c: E2 08 00 61 15 80 0D 01 02 00 00 00 00 EF [23:54:29]Write i2c OK [23:54:29]MH_I2C_Read... [23:54:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:54:29]Read from MH i2c: E2 [23:54:29]MH_I2C_Read... [23:54:29]Read from MH i2c: E2 03 00 [23:54:29]MH_I2C_Read... [23:54:29]Read from MH i2c: E2 03 00 61 15 00 90 00 EA [23:54:29]RAPDU: 90 00 [23:54:29]wFMCommunicate OK [23:54:29]wFMCommunicate request_size=255 [23:54:29]MH_SAM_APDU [23:54:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 B5 B6 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 71 86 02 00 35 04 06 00 F3 [23:54:29]Write to MH i2c: E2 02 01 62 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 B5 B6 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 71 86 02 00 35 04 06 00 F3 00 00 2C [23:54:29]Write i2c OK [23:54:29]MH_I2C_Read... [23:54:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:54:29]Read from MH i2c: E2 [23:54:29]MH_I2C_Read... [23:54:29]Read from MH i2c: E2 03 00 [23:54:29]MH_I2C_Read... [23:54:29]Read from MH i2c: E2 03 00 62 15 00 90 00 EB [23:54:29]RAPDU: 90 00 [23:54:29]wFMCommunicate OK [23:54:29]wFMCommunicate request_size=10 [23:54:29]MH_SAM_APDU [23:54:29]CAPDU: 80 0D 02 02 05 9A 7B C3 47 82 [23:54:29]Write to MH i2c: E2 0D 00 63 15 80 0D 02 02 05 00 9A 7B C3 47 82 00 00 9D [23:54:29]Write i2c OK [23:54:29]MH_I2C_Read... [23:54:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:54:29]Read from MH i2c: E2 [23:54:29]MH_I2C_Read... [23:54:29]Read from MH i2c: E2 03 00 [23:54:29]MH_I2C_Read... [23:54:29]Read from MH i2c: E2 03 00 63 15 00 90 00 EC [23:54:29]RAPDU: 90 00 [23:54:29]wFMCommunicate OK [23:54:29]wFMCommunicate request_size=4 [23:54:29]MH_SAM_APDU [23:54:29]CAPDU: 80 0D 03 02 [23:54:29]Write to MH i2c: E2 08 00 64 15 80 0D 03 02 00 00 00 00 F4 [23:54:29]Write i2c OK [23:54:29]MH_I2C_Read... [23:54:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:54:29]Read from MH i2c: E2 [23:54:29]MH_I2C_Read... [23:54:29]Read from MH i2c: E2 0B 00 [23:54:29]MH_I2C_Read... [23:54:29]Read from MH i2c: E2 0B 00 64 15 00 2D F8 58 98 7C AA FE 90 90 00 BE [23:54:29]RAPDU: 2D F8 58 98 7C AA FE 90 90 00 [23:54:29]wFMCommunicate OK [23:54:29]SAM_PROTO_SignData done [23:54:29]FM_MakeSignedData done [23:54:29]CreateOFDProtocolMessage [23:54:29]wFMCommunicate request_size=4 [23:54:29]MH_SAM_APDU [23:54:29]CAPDU: 80 11 00 00 [23:54:29]Write to MH i2c: E2 08 00 65 15 80 11 00 00 00 00 00 00 F4 [23:54:29]Write i2c OK [23:54:29]MH_I2C_Read... [23:54:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:54:29]Read from MH i2c: E2 [23:54:29]MH_I2C_Read... [23:54:29]Read from MH i2c: E2 17 00 [23:54:29]MH_I2C_Read... [23:54:29]Read from MH i2c: E2 17 00 65 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4A [23:54:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:54:29]wFMCommunicate OK [23:54:29]CreateOFDProtocolMessage done [23:54:29]OFDSenderStorePacket 165489 [23:54:29]StoreOFDPacket docnum=165489 [23:54:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 03 7D 07 01 8E 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 B5 B6 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 71 86 02 00 35 04 06 00 F3 9A 7B C3 47 82 2D F8 58 98 7C AA FE 90 [23:54:29]CheckFolder [23:54:29]dirname=/storage/ofd_packets [23:54:29]CheckFolder done [23:54:29]ProducePacketName [23:54:29]name=ofd_packets/00165489 [23:54:29]NVStorageSaveData ofd_packets/00165489 [23:54:29]File name is /storage/ofd_packets/00165489 [23:54:29]Write 301 bytes [23:54:29]NVStorageSaveData done [23:54:29]OFDSenderStorePacket done [23:54:29]KKMCreateOFDPacket done [23:54:29]NVStorageSaveData kkm_last_timestamp [23:54:29]File name is /storage/kkm_last_timestamp [23:54:29]Write 4 bytes [23:54:29]NVStorageSaveData done [23:54:29]OFD Sender: Processing packet 165489 [packets to send 106, broken 105] [23:54:29]ProducePacketName [23:54:29]name=ofd_packets/00165489 [23:54:29]OFD Sender: To server: pG, [23:54:29]CommunicateWithHost lk.salyk.kg:30040 [23:54:29]ConnectInit lk.salyk.kg [23:54:29]ExternCall_PrintAddStr [23:54:29]wPrintStart [23:54:29]Write to MH i2c: 01 00 00 66 15 7B [23:54:29]Write i2c OK [23:54:29]MH_I2C_Read... [23:54:29]Read from MH i2c: 01 [23:54:29]MH_I2C_Read... [23:54:29]Read from MH i2c: 01 07 00 [23:54:29]MH_I2C_Read... [23:54:29]Read from MH i2c: 01 07 00 66 15 00 00 00 00 00 FF 0F 90 [23:54:29]RasterBufferAndPrint [23:54:29]line Счет N : (1)459605 [23:54:29]line ИНН: 02508201610067 [23:54:29]line Контрольно-Кассовый Чек [23:54:29]line ПРОДАЖА [23:54:29]line ТРК (МРК, ГНК) : 12 [23:54:29]line Товар: 2710124130 [23:54:29]line Аи-92-К-5 [23:54:29]line 10.040 * 65.80 [23:54:29]line = 660.63 [23:54:29]line НДС 12% НСП 1% [23:54:29]line > о реализуемом товаре [23:54:29]line ОКРУГЛЕНИЕ: -0.63 [23:54:29]line ИТОГО: 660.00 [23:54:29]line Внесено: 660.00 [23:54:29]line СДАЧА: 0.00 [23:54:29]line НСП 1% : 5.85 [23:54:29]line НДС 12% : 70.15 [23:54:29]line Наличными: 660.00 [23:54:29]line Безнал.: 0.00 [23:54:29]line Место: АЗС № 72 "Партнер Нефть" [23:54:29]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [23:54:29]line СНО: Общий режим [23:54:29]line Чек 362 15.07.2024 23:54 [23:54:29]line Смена: 448 ФФД: 1.0 [23:54:29]line ЗНМ: 0300000160 [23:54:29]line РНМ: 0000000000090829 [23:54:29]line Версия ККМ: 001 [23:54:29]line ФМ: 0000000000874718 [23:54:29]line ФД: 165489 [23:54:29]line ФПД: 267844826908546 [23:54:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T235429&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165489&fm=267844826908546&tin=02508201610067®Number=0000000000090829&sum=66000 [23:54:30]Connected sock=11 [23:54:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 03 7D 07 01 8E 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 0F 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 B5 B6 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 71 86 02 00 35 04 06 00 F3 9A 7B C3 47 82 2D F8 58 98 7C AA FE 90 [23:54:30]written 0, free lines is 4095 [23:54:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 52 98 47 00 51 BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 71 86 02 00 F4 03 04 00 3E 5D 95 66 B6 04 01 00 00 19 74 05 12 DB C5 F9 45 [23:54:30]CommunicateWithHost err = 0 [23:54:30]CheckOFDResponse [23:54:30]1017 (14) - 77093643461234 [23:54:30]1041 (16) - 0000000000874718 [23:54:30]1040 (4) - 165489 [23:54:30]1012 (4) - 15.07.2024 17:32 [23:54:30]1206 (1) - 0 [23:54:30]OFD Sender: Remove packet 165489 [23:54:30]ProducePacketName [23:54:30]name=ofd_packets/00165489 [23:54:30]NVStorageDeleteData [23:54:30]Write to MH i2c: 01 00 00 90 15 A5 [23:54:30]Write i2c OK [23:54:30]MH_I2C_Read... [23:54:30]Read from MH i2c: 01 [23:54:30]MH_I2C_Read... [23:54:30]Read from MH i2c: 01 07 00 [23:54:30]MH_I2C_Read... [23:54:30]Read from MH i2c: 01 07 00 90 15 00 00 00 00 00 03 0D BC [23:54:30]RasterBufferAndPrint [23:54:30]line [23:54:30]line [23:54:30]line [23:54:30]line [23:54:30]line [23:54:30]written 0, free lines is 3337 [23:54:30]MH_Cut [23:54:30]Write to MH i2c: D1 01 00 97 15 01 7E [23:54:30]Write i2c OK [23:54:30]MH_I2C_Read... [23:54:30]Read from MH i2c: D1 [23:54:30]MH_I2C_Read... [23:54:30]Read from MH i2c: D1 01 00 [23:54:30]MH_I2C_Read... [23:54:30]Read from MH i2c: D1 01 00 97 15 00 7D [23:54:30]Write to MH i2c: 01 00 00 98 15 AD [23:54:30]Write i2c OK [23:54:30]MH_I2C_Read... [23:54:30]OFD Sender: No OFD packet to send [23:54:31]*** Cut start [23:54:31]*** Partial cut [23:54:31]*** CUTSNS_PIN = 1 [23:54:31]*** CUTSNS_PIN = 0 [23:54:31]*** Brake cut motor [23:54:31]Read from MH i2c: 01 [23:54:31]MH_I2C_Read... [23:54:31]*** Stop cut motor [23:54:31]*** Cut end [23:54:31]Read from MH i2c: 01 07 00 [23:54:31]MH_I2C_Read... [23:54:31]Read from MH i2c: 01 07 00 98 15 00 00 00 00 00 FF 0F C2 [23:54:31]process_action close_receipt done [23:54:31]requested_data is exist [23:54:31]produce_requested_data [23:54:31]requested_item fm.sn is exist - process it [23:54:31]wFMCommunicate request_size=4 [23:54:31]MH_SAM_APDU [23:54:31]CAPDU: 80 11 00 00 [23:54:31]Write to MH i2c: E2 08 00 99 15 80 11 00 00 00 00 00 00 28 [23:54:31]Write i2c OK [23:54:31]MH_I2C_Read... [23:54:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:54:31]Read from MH i2c: E2 [23:54:31]MH_I2C_Read... [23:54:31]Read from MH i2c: E2 17 00 [23:54:31]MH_I2C_Read... [23:54:31]Read from MH i2c: E2 17 00 99 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7E [23:54:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:54:31]wFMCommunicate OK [23:54:31]requested_item fd.num is exist - process it [23:54:31]SAM_PROTO_GetFieldsCounters [23:54:31]wFMCommunicate request_size=4 [23:54:31]MH_SAM_APDU [23:54:31]CAPDU: 80 13 00 00 [23:54:31]Write to MH i2c: E2 08 00 9A 15 80 13 00 00 00 00 00 00 2B [23:54:31]Write i2c OK [23:54:31]MH_I2C_Read... [23:54:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:54:31]Read from MH i2c: E2 [23:54:31]MH_I2C_Read... [23:54:31]Read from MH i2c: E2 62 00 [23:54:31]MH_I2C_Read... [23:54:32]Read from MH i2c: E2 62 00 9A 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 71 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 6A 01 00 00 5E 04 04 00 6A 01 00 00 57 04 04 00 6B 01 00 00 19 04 04 00 00 00 00 00 90 00 4D [23:54:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 71 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 6A 01 00 00 5E 04 04 00 6A 01 00 00 57 04 04 00 6B 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:54:32]wFMCommunicate OK [23:54:32]SAM_PROTO_GetFieldsCounters done [23:54:32]requested_item shift.num is exist - process it [23:54:32]requested_item shift.opened is exist - process it [23:54:32]req_shift_opened [23:54:32]FM_GetShiftState [23:54:32]SAM_PROTO_GetShiftState [23:54:32]wFMCommunicate request_size=4 [23:54:32]MH_SAM_APDU [23:54:32]CAPDU: 80 13 01 00 [23:54:32]Write to MH i2c: E2 08 00 9B 15 80 13 01 00 00 00 00 00 2D [23:54:32]Write i2c OK [23:54:32]MH_I2C_Read... [23:54:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:54:32]Read from MH i2c: E2 [23:54:32]MH_I2C_Read... [23:54:32]Read from MH i2c: E2 0E 00 [23:54:32]MH_I2C_Read... [23:54:32]Read from MH i2c: E2 0E 00 9B 15 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 06 [23:54:32]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [23:54:32]wFMCommunicate OK [23:54:32]SAM_PROTO_GetShiftState done [23:54:32]FM_GetShiftState done [23:54:32]req_shift_opened done [23:54:32]requested_item shift.open_date is exist - process it [23:54:32]req_shift_open_date [23:54:32]req_shift_open_date done [23:54:32]produce_requested_data done [23:54:32]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165489,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [23:54:32]process_action_free close_receipt [23:54:32]json_value_free [23:54:32]json_value_free done [23:54:32]process_json_proto returns [23:54:32]Send response to host [23:54:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165489,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [23:54:32]free response buf [23:54:32]execute_script done [23:54:32]execute_script returns [23:54:32]free content buf [23:54:32]Sock 7.Close socket [23:54:32]Sock 7.Thread stoped [23:54:35]OFD Sender: No OFD packet to send [23:54:40]OFD Sender: No OFD packet to send [23:54:45]OFD Sender: No OFD packet to send [23:54:50]OFD Sender: No OFD packet to send [23:54:55]OFD Sender: No OFD packet to send [23:55:00]OFD Sender: No OFD packet to send [23:55:05]OFD Sender: No OFD packet to send [23:55:10]OFD Sender: No OFD packet to send [23:55:15]OFD Sender: No OFD packet to send [23:55:20]OFD Sender: No OFD packet to send [23:55:25]OFD Sender: No OFD packet to send [23:55:30]OFD Sender: No OFD packet to send [23:55:35]OFD Sender: No OFD packet to send [23:55:40]OFD Sender: No OFD packet to send [23:55:45]OFD Sender: No OFD packet to send [23:55:50]OFD Sender: No OFD packet to send [23:55:55]OFD Sender: No OFD packet to send [23:56:00]OFD Sender: No OFD packet to send [23:56:05]OFD Sender: No OFD packet to send [23:56:10]OFD Sender: No OFD packet to send [23:56:15]OFD Sender: No OFD packet to send [23:56:20]OFD Sender: No OFD packet to send [23:56:25]OFD Sender: No OFD packet to send [23:56:30]OFD Sender: No OFD packet to send [23:56:35]OFD Sender: No OFD packet to send [23:56:38]accept exits with 9 [23:56:38]New connection [23:56:38]New thread 3067190628 created [23:56:38]Thread 3067333988 joined [23:56:38]Waiting for new connection... [23:56:38] Sock 9.Parse request [23:56:38]Sock 9.Check first char [23:56:38]Sock 9.First char is OK [23:56:38]request: POST /json_proto HTTP/1.0 [23:56:38]Method: POST [23:56:38]URL: /json_proto [23:56:38]Method is POST - this is cgi request [23:56:38]url: /json_proto [23:56:38]query_string will be loaded in cgi processing [23:56:38]execute_cgi json_proto POST (null) [23:56:38]execute_cgi path=json_proto method=POST [23:56:38]POST find Content-Length [23:56:38]Host: 172.17.56.4:8080 [23:56:38]Content-Length: 677 [23:56:38]Content-Type: application/json [23:56:38] [23:56:38]POST finish read [23:56:38]Found Content-Length = 677 [23:56:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459606", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.960, "sum" : 260.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 260.00, "total" : 260.00, "payments": [ { "type": 0, "sum" : 260.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:56:38]execute_script... [23:56:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459606", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.960, "sum" : 260.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 260.00, "total" : 260.00, "payments": [ { "type": 0, "sum" : 260.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:56:38]POST & json_proto [23:56:38]process_json_proto [23:56:38]json parsed OK: [23:56:38]protocol is kg_v1.0 [23:56:38]action value=close_receipt [23:56:38]process_action close_receipt [23:56:38]cmd_close_receipt [23:56:38]MH_GetDate [23:56:38]Write to MH i2c: F0 00 00 9C 15 A0 [23:56:38]Write i2c OK [23:56:38]MH_I2C_Read... [23:56:38]Read from MH i2c: F0 [23:56:38]MH_I2C_Read... [23:56:38]Read from MH i2c: F0 09 00 [23:56:38]MH_I2C_Read... [23:56:38]Read from MH i2c: F0 09 00 9C 15 00 38 B7 95 66 C9 DC B2 64 4E [23:56:38]GetLastDocTimeStamp 1721087669 [23:56:38]current date 1721087800 [23:56:38]FM_GetShiftState [23:56:38]SAM_PROTO_GetShiftState [23:56:38]wFMCommunicate request_size=4 [23:56:38]MH_SAM_APDU [23:56:38]CAPDU: 80 13 01 00 [23:56:38]Write to MH i2c: E2 08 00 9D 15 80 13 01 00 00 00 00 00 2F [23:56:38]Write i2c OK [23:56:38]MH_I2C_Read... [23:56:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:56:38]Read from MH i2c: E2 [23:56:38]MH_I2C_Read... [23:56:38]Read from MH i2c: E2 0E 00 [23:56:38]MH_I2C_Read... [23:56:38]Read from MH i2c: E2 0E 00 9D 15 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 08 [23:56:38]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [23:56:38]wFMCommunicate OK [23:56:38]SAM_PROTO_GetShiftState done [23:56:38]FM_GetShiftState done [23:56:38]opened in 1721003876 [23:56:38]opened+sec_in_day 1721090276 [23:56:38]quantity*price = 26056 [23:56:38]sum+1 = 26058 [23:56:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 260.00 Внесено: 260.00 СДАЧА: 0.00 НСП 1% : 2.31 НДС 12% : 27.67 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 363 15.07.2024 23:56 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165490 ФПД: 199238609117047 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T235640&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165490&fm=199238609117047&tin=02508201610067®Number=0000000000090829&sum=26000 [23:56:40]StoreToDocumentArchive [23:56:40]shift 448 fd 165490 [23:56:40]save to /storage/0448/doc_00165490 [23:56:40]save last doc name /storage/0448/doc_00165490 to /storage/kkm_last_doc_name [23:56:40]save OK [23:56:40]Clear old archive folders... [23:56:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:56:40]tlvbuf is 01BAF4F0 [23:56:40]SAM_PROTO_ClearQueue [23:56:40]wFMCommunicate request_size=4 [23:56:40]MH_SAM_APDU [23:56:40]CAPDU: 80 09 00 00 [23:56:40]Write to MH i2c: E2 08 00 AA 15 80 09 00 00 00 00 00 00 31 [23:56:40]Write i2c OK [23:56:40]MH_I2C_Read... [23:56:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:56:40]Read from MH i2c: E2 [23:56:40]MH_I2C_Read... [23:56:40]Read from MH i2c: E2 03 00 [23:56:40]MH_I2C_Read... [23:56:40]Read from MH i2c: E2 03 00 AA 15 00 90 00 33 [23:56:40]RAPDU: 90 00 [23:56:40]wFMCommunicate OK [23:56:40]SAM_PROTO_ClearQueue done [23:56:40]KKMCreateOFDPacket [23:56:40]OFDProtocolAddRootSTLVToBuf [23:56:40]FM_MakeSignedData [23:56:40]FM_MakeSignedData [23:56:40]SAM_PROTO_SignData [23:56:40]wFMCommunicate request_size=4 [23:56:40]MH_SAM_APDU [23:56:40]CAPDU: 80 0D 01 02 [23:56:40]Write to MH i2c: E2 08 00 AB 15 80 0D 01 02 00 00 00 00 39 [23:56:40]Write i2c OK [23:56:40]MH_I2C_Read... [23:56:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:56:40]Read from MH i2c: E2 [23:56:40]MH_I2C_Read... [23:56:40]Read from MH i2c: E2 03 00 [23:56:40]MH_I2C_Read... [23:56:40]Read from MH i2c: E2 03 00 AB 15 00 90 00 34 [23:56:40]RAPDU: 90 00 [23:56:40]wFMCommunicate OK [23:56:40]wFMCommunicate request_size=255 [23:56:40]MH_SAM_APDU [23:56:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 0F 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 C9 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 01 00 00 F4 03 04 00 38 B7 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 72 86 02 00 35 04 06 00 B5 [23:56:40]Write to MH i2c: E2 02 01 AC 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 0F 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 C9 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 01 00 00 F4 03 04 00 38 B7 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 72 86 02 00 35 04 06 00 B5 00 00 3B [23:56:40]Write i2c OK [23:56:40]MH_I2C_Read... [23:56:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:56:40]Read from MH i2c: E2 [23:56:40]MH_I2C_Read... [23:56:40]Read from MH i2c: E2 03 00 [23:56:40]MH_I2C_Read... [23:56:40]Read from MH i2c: E2 03 00 AC 15 00 90 00 35 [23:56:40]RAPDU: 90 00 [23:56:40]wFMCommunicate OK [23:56:40]wFMCommunicate request_size=10 [23:56:40]MH_SAM_APDU [23:56:40]CAPDU: 80 0D 02 02 05 34 DA 85 9F 77 [23:56:40]Write to MH i2c: E2 0D 00 AD 15 80 0D 02 02 05 00 34 DA 85 9F 77 00 00 EF [23:56:40]Write i2c OK [23:56:40]MH_I2C_Read... [23:56:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:56:40]Read from MH i2c: E2 [23:56:40]MH_I2C_Read... [23:56:40]Read from MH i2c: E2 03 00 [23:56:40]MH_I2C_Read... [23:56:40]Read from MH i2c: E2 03 00 AD 15 00 90 00 36 [23:56:40]RAPDU: 90 00 [23:56:40]wFMCommunicate OK [23:56:40]wFMCommunicate request_size=4 [23:56:40]MH_SAM_APDU [23:56:40]CAPDU: 80 0D 03 02 [23:56:40]Write to MH i2c: E2 08 00 AE 15 80 0D 03 02 00 00 00 00 3E [23:56:40]Write i2c OK [23:56:40]MH_I2C_Read... [23:56:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:56:40]Read from MH i2c: E2 [23:56:40]MH_I2C_Read... [23:56:40]Read from MH i2c: E2 0B 00 [23:56:40]MH_I2C_Read... [23:56:40]Read from MH i2c: E2 0B 00 AE 15 00 D0 62 06 D7 02 CA 90 EA 90 00 94 [23:56:40]RAPDU: D0 62 06 D7 02 CA 90 EA 90 00 [23:56:40]wFMCommunicate OK [23:56:40]SAM_PROTO_SignData done [23:56:40]FM_MakeSignedData done [23:56:40]CreateOFDProtocolMessage [23:56:40]wFMCommunicate request_size=4 [23:56:40]MH_SAM_APDU [23:56:40]CAPDU: 80 11 00 00 [23:56:40]Write to MH i2c: E2 08 00 AF 15 80 11 00 00 00 00 00 00 3E [23:56:40]Write i2c OK [23:56:40]MH_I2C_Read... [23:56:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:56:40]Read from MH i2c: E2 [23:56:40]MH_I2C_Read... [23:56:40]Read from MH i2c: E2 17 00 [23:56:40]MH_I2C_Read... [23:56:40]Read from MH i2c: E2 17 00 AF 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 94 [23:56:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:56:40]wFMCommunicate OK [23:56:40]CreateOFDProtocolMessage done [23:56:40]OFDSenderStorePacket 165490 [23:56:40]StoreOFDPacket docnum=165490 [23:56:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 3B DF 07 01 EB 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 78 0F 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 C9 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 01 00 00 F4 03 04 00 38 B7 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 72 86 02 00 35 04 06 00 B5 34 DA 85 9F 77 D0 62 06 D7 02 CA 90 EA [23:56:40]CheckFolder [23:56:40]dirname=/storage/ofd_packets [23:56:40]CheckFolder done [23:56:40]ProducePacketName [23:56:40]name=ofd_packets/00165490 [23:56:40]NVStorageSaveData ofd_packets/00165490 [23:56:40]File name is /storage/ofd_packets/00165490 [23:56:40]Write 301 bytes [23:56:40]NVStorageSaveData done [23:56:40]OFDSenderStorePacket done [23:56:40]KKMCreateOFDPacket done [23:56:40]NVStorageSaveData kkm_last_timestamp [23:56:40]File name is /storage/kkm_last_timestamp [23:56:40]Write 4 bytes [23:56:40]NVStorageSaveData done [23:56:40]OFD Sender: Processing packet 165490 [packets to send 106, broken 105] [23:56:40]ProducePacketName [23:56:40]name=ofd_packets/00165490 [23:56:40]OFD Sender: To server: pG, [23:56:40]CommunicateWithHost lk.salyk.kg:30040 [23:56:40]ConnectInit lk.salyk.kg [23:56:40]ExternCall_PrintAddStr [23:56:40]wPrintStart [23:56:40]Write to MH i2c: 01 00 00 B0 15 C5 [23:56:40]Write i2c OK [23:56:40]MH_I2C_Read... [23:56:40]Read from MH i2c: 01 [23:56:40]MH_I2C_Read... [23:56:40]Read from MH i2c: 01 07 00 [23:56:40]MH_I2C_Read... [23:56:40]Read from MH i2c: 01 07 00 B0 15 00 00 00 00 00 FF 0F DA [23:56:40]RasterBufferAndPrint [23:56:40]line Счет N : (1)459606 [23:56:40]line ИНН: 02508201610067 [23:56:40]line Контрольно-Кассовый Чек [23:56:40]line ПРОДАЖА [23:56:40]line ТРК (МРК, ГНК) : 22 [23:56:40]line Товар: 2710124130 [23:56:40]line Аи-92-К-5 [23:56:40]line 3.960 * 65.80 [23:56:40]line = 260.57 [23:56:40]line НДС 12% НСП 1% [23:56:40]line > о реализуемом товаре [23:56:40]line ОКРУГЛЕНИЕ: -0.57 [23:56:40]line ИТОГО: 260.00 [23:56:40]line Внесено: 260.00 [23:56:40]line СДАЧА: 0.00 [23:56:40]line НСП 1% : 2.31 [23:56:40]line НДС 12% : 27.67 [23:56:40]line Наличными: 260.00 [23:56:40]line Безнал.: 0.00 [23:56:40]line Место: АЗС № 72 "Партнер Нефть" [23:56:40]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [23:56:40]line СНО: Общий режим [23:56:40]line Чек 363 15.07.2024 23:56 [23:56:40]line Смена: 448 ФФД: 1.0 [23:56:40]line ЗНМ: 0300000160 [23:56:40]line РНМ: 0000000000090829 [23:56:40]line Версия ККМ: 001 [23:56:40]line ФМ: 0000000000874718 [23:56:40]line ФД: 165490 [23:56:40]line ФПД: 199238609117047 [23:56:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T235640&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165490&fm=199238609117047&tin=02508201610067®Number=0000000000090829&sum=26000 [23:56:40]Connected sock=11 [23:56:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 3B DF 07 01 EB 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 78 0F 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 C9 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 01 00 00 F4 03 04 00 38 B7 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 72 86 02 00 35 04 06 00 B5 34 DA 85 9F 77 D0 62 06 D7 02 CA 90 EA [23:56:40]written 0, free lines is 4095 [23:56:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 A6 A6 47 00 6D BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 72 86 02 00 F4 03 04 00 C1 5D 95 66 B6 04 01 00 00 43 70 10 7E B9 AF 06 12 [23:56:41]CommunicateWithHost err = 0 [23:56:41]CheckOFDResponse [23:56:41]1017 (14) - 77093643461234 [23:56:41]1041 (16) - 0000000000874718 [23:56:41]1040 (4) - 165490 [23:56:41]1012 (4) - 15.07.2024 17:34 [23:56:41]1206 (1) - 0 [23:56:41]OFD Sender: Remove packet 165490 [23:56:41]ProducePacketName [23:56:41]name=ofd_packets/00165490 [23:56:41]NVStorageDeleteData [23:56:41]Write to MH i2c: 01 00 00 DA 15 EF [23:56:41]Write i2c OK [23:56:41]MH_I2C_Read... [23:56:41]Read from MH i2c: 01 [23:56:41]MH_I2C_Read... [23:56:41]Read from MH i2c: 01 07 00 [23:56:41]MH_I2C_Read... [23:56:41]Read from MH i2c: 01 07 00 DA 15 00 00 00 00 00 FE 0C 00 [23:56:41]RasterBufferAndPrint [23:56:41]line [23:56:41]line [23:56:41]line [23:56:41]line [23:56:41]line [23:56:41]written 0, free lines is 3335 [23:56:41]MH_Cut [23:56:41]Write to MH i2c: D1 01 00 E1 15 01 C8 [23:56:41]Write i2c OK [23:56:41]MH_I2C_Read... [23:56:41]Read from MH i2c: D1 [23:56:41]MH_I2C_Read... [23:56:41]Read from MH i2c: D1 01 00 [23:56:41]MH_I2C_Read... [23:56:41]Read from MH i2c: D1 01 00 E1 15 00 C7 [23:56:41]Write to MH i2c: 01 00 00 E2 15 F7 [23:56:41]Write i2c OK [23:56:41]MH_I2C_Read... [23:56:41]OFD Sender: No OFD packet to send [23:56:42]*** Cut start [23:56:42]*** Partial cut [23:56:42]*** CUTSNS_PIN = 1 [23:56:42]*** CUTSNS_PIN = 0 [23:56:42]*** Brake cut motor [23:56:42]Read from MH i2c: 01 [23:56:42]MH_I2C_Read... [23:56:42]*** Stop cut motor [23:56:42]*** Cut end [23:56:42]Read from MH i2c: 01 07 00 [23:56:42]MH_I2C_Read... [23:56:42]Read from MH i2c: 01 07 00 E2 15 00 00 00 00 00 FF 0F 0C [23:56:42]process_action close_receipt done [23:56:42]requested_data is exist [23:56:42]produce_requested_data [23:56:42]requested_item fm.sn is exist - process it [23:56:42]wFMCommunicate request_size=4 [23:56:42]MH_SAM_APDU [23:56:42]CAPDU: 80 11 00 00 [23:56:42]Write to MH i2c: E2 08 00 E3 15 80 11 00 00 00 00 00 00 72 [23:56:42]Write i2c OK [23:56:42]MH_I2C_Read... [23:56:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:56:42]Read from MH i2c: E2 [23:56:42]MH_I2C_Read... [23:56:42]Read from MH i2c: E2 17 00 [23:56:42]MH_I2C_Read... [23:56:42]Read from MH i2c: E2 17 00 E3 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C8 [23:56:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:56:42]wFMCommunicate OK [23:56:42]requested_item fd.num is exist - process it [23:56:42]SAM_PROTO_GetFieldsCounters [23:56:42]wFMCommunicate request_size=4 [23:56:42]MH_SAM_APDU [23:56:42]CAPDU: 80 13 00 00 [23:56:42]Write to MH i2c: E2 08 00 E4 15 80 13 00 00 00 00 00 00 75 [23:56:42]Write i2c OK [23:56:42]MH_I2C_Read... [23:56:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:56:42]Read from MH i2c: E2 [23:56:42]MH_I2C_Read... [23:56:42]Read from MH i2c: E2 62 00 [23:56:42]MH_I2C_Read... [23:56:42]Read from MH i2c: E2 62 00 E4 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 72 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 6B 01 00 00 5E 04 04 00 6B 01 00 00 57 04 04 00 6C 01 00 00 19 04 04 00 00 00 00 00 90 00 9B [23:56: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 72 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 6B 01 00 00 5E 04 04 00 6B 01 00 00 57 04 04 00 6C 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:56:42]wFMCommunicate OK [23:56:42]SAM_PROTO_GetFieldsCounters done [23:56:42]requested_item shift.num is exist - process it [23:56:42]requested_item shift.opened is exist - process it [23:56:42]req_shift_opened [23:56:42]FM_GetShiftState [23:56:42]SAM_PROTO_GetShiftState [23:56:42]wFMCommunicate request_size=4 [23:56:42]MH_SAM_APDU [23:56:42]CAPDU: 80 13 01 00 [23:56:42]Write to MH i2c: E2 08 00 E5 15 80 13 01 00 00 00 00 00 77 [23:56:42]Write i2c OK [23:56:42]MH_I2C_Read... [23:56:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:56:42]Read from MH i2c: E2 [23:56:42]MH_I2C_Read... [23:56:42]Read from MH i2c: E2 0E 00 [23:56:42]MH_I2C_Read... [23:56:42]Read from MH i2c: E2 0E 00 E5 15 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 50 [23:56:42]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [23:56:42]wFMCommunicate OK [23:56:42]SAM_PROTO_GetShiftState done [23:56:42]FM_GetShiftState done [23:56:42]req_shift_opened done [23:56:42]requested_item shift.open_date is exist - process it [23:56:42]req_shift_open_date [23:56:42]req_shift_open_date done [23:56:42]produce_requested_data done [23:56:42]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165490,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [23:56:42]process_action_free close_receipt [23:56:42]json_value_free [23:56:42]json_value_free done [23:56:42]process_json_proto returns [23:56:42]Send response to host [23:56:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165490,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [23:56:42]free response buf [23:56:42]execute_script done [23:56:42]execute_script returns [23:56:42]free content buf [23:56:42]Sock 9.Close socket [23:56:42]Sock 9.Thread stoped [23:56:46]OFD Sender: No OFD packet to send [23:56:51]OFD Sender: No OFD packet to send [23:56:56]OFD Sender: No OFD packet to send [23:57:01]OFD Sender: No OFD packet to send [23:57:06]OFD Sender: No OFD packet to send [23:57:11]OFD Sender: No OFD packet to send [23:57:16]OFD Sender: No OFD packet to send [23:57:21]OFD Sender: No OFD packet to send [23:57:26]OFD Sender: No OFD packet to send [23:57:31]OFD Sender: No OFD packet to send [23:57:36]OFD Sender: No OFD packet to send [23:57:41]OFD Sender: No OFD packet to send [23:57:46]OFD Sender: No OFD packet to send [23:57:51]OFD Sender: No OFD packet to send [23:57:56]OFD Sender: No OFD packet to send [23:58:01]OFD Sender: No OFD packet to send [23:58:06]OFD Sender: No OFD packet to send [23:58:11]OFD Sender: No OFD packet to send [23:58:12]accept exits with 10 [23:58:12]New connection [23:58:12]New thread 3067333988 created [23:58:12]Thread 3067190628 joined [23:58:12]Waiting for new connection... [23:58:12] Sock 10.Parse request [23:58:12]Sock 10.Check first char [23:58:12]Sock 10.First char is OK [23:58:12]request: POST /json_proto HTTP/1.0 [23:58:12]Method: POST [23:58:12]URL: /json_proto [23:58:12]Method is POST - this is cgi request [23:58:12]url: /json_proto [23:58:12]query_string will be loaded in cgi processing [23:58:12]execute_cgi json_proto POST (null) [23:58:12]execute_cgi path=json_proto method=POST [23:58:12]POST find Content-Length [23:58:12]Host: 172.17.56.4:8080 [23:58:12]Content-Length: 677 [23:58:12]Content-Type: application/json [23:58:12] [23:58:12]POST finish read [23:58:12]Found Content-Length = 677 [23:58:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459607", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 8.360, "sum" : 550.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:58:12]execute_script... [23:58:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459607", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 8.360, "sum" : 550.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:58:12]POST & json_proto [23:58:12]process_json_proto [23:58:12]json parsed OK: [23:58:12]protocol is kg_v1.0 [23:58:12]action value=close_receipt [23:58:12]process_action close_receipt [23:58:12]cmd_close_receipt [23:58:12]MH_GetDate [23:58:12]Write to MH i2c: F0 00 00 E6 15 EA [23:58:12]Write i2c OK [23:58:12]MH_I2C_Read... [23:58:12]Read from MH i2c: F0 [23:58:12]MH_I2C_Read... [23:58:12]Read from MH i2c: F0 09 00 [23:58:12]MH_I2C_Read... [23:58:12]Read from MH i2c: F0 09 00 E6 15 00 96 B7 95 66 C9 DC B2 64 F6 [23:58:12]GetLastDocTimeStamp 1721087800 [23:58:12]current date 1721087894 [23:58:12]FM_GetShiftState [23:58:12]SAM_PROTO_GetShiftState [23:58:12]wFMCommunicate request_size=4 [23:58:12]MH_SAM_APDU [23:58:12]CAPDU: 80 13 01 00 [23:58:12]Write to MH i2c: E2 08 00 E7 15 80 13 01 00 00 00 00 00 79 [23:58:12]Write i2c OK [23:58:12]MH_I2C_Read... [23:58:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:58:12]Read from MH i2c: E2 [23:58:12]MH_I2C_Read... [23:58:12]Read from MH i2c: E2 0E 00 [23:58:12]MH_I2C_Read... [23:58:12]Read from MH i2c: E2 0E 00 E7 15 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 52 [23:58:12]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [23:58:12]wFMCommunicate OK [23:58:12]SAM_PROTO_GetShiftState done [23:58:12]FM_GetShiftState done [23:58:12]opened in 1721003876 [23:58:12]opened+sec_in_day 1721090276 [23:58:12]quantity*price = 55008 [23:58:12]sum+1 = 55010 [23:58:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 550.00 Внесено: 550.00 СДАЧА: 0.00 НСП 1% : 4.87 НДС 12% : 58.42 Наличными: 550.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 364 15.07.2024 23:58 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165491 ФПД: 141759952081192 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T235814&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165491&fm=141759952081192&tin=02508201610067®Number=0000000000090829&sum=55000 [23:58:14]StoreToDocumentArchive [23:58:14]shift 448 fd 165491 [23:58:14]save to /storage/0448/doc_00165491 [23:58:14]save last doc name /storage/0448/doc_00165491 to /storage/kkm_last_doc_name [23:58:14]save OK [23:58:14]Clear old archive folders... [23:58:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:58:14]tlvbuf is B6FB55B0 [23:58:14]SAM_PROTO_ClearQueue [23:58:14]wFMCommunicate request_size=4 [23:58:14]MH_SAM_APDU [23:58:14]CAPDU: 80 09 00 00 [23:58:14]Write to MH i2c: E2 08 00 F4 15 80 09 00 00 00 00 00 00 7B [23:58:14]Write i2c OK [23:58:14]MH_I2C_Read... [23:58:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:58:14]Read from MH i2c: E2 [23:58:14]MH_I2C_Read... [23:58:14]Read from MH i2c: E2 03 00 [23:58:14]MH_I2C_Read... [23:58:14]Read from MH i2c: E2 03 00 F4 15 00 90 00 7D [23:58:14]RAPDU: 90 00 [23:58:14]wFMCommunicate OK [23:58:14]SAM_PROTO_ClearQueue done [23:58:14]KKMCreateOFDPacket [23:58:14]OFDProtocolAddRootSTLVToBuf [23:58:14]FM_MakeSignedData [23:58:14]FM_MakeSignedData [23:58:14]SAM_PROTO_SignData [23:58:14]wFMCommunicate request_size=4 [23:58:14]MH_SAM_APDU [23:58:14]CAPDU: 80 0D 01 02 [23:58:14]Write to MH i2c: E2 08 00 F5 15 80 0D 01 02 00 00 00 00 83 [23:58:14]Write i2c OK [23:58:14]MH_I2C_Read... [23:58:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:58:14]Read from MH i2c: E2 [23:58:14]MH_I2C_Read... [23:58:14]Read from MH i2c: E2 03 00 [23:58:14]MH_I2C_Read... [23:58:14]Read from MH i2c: E2 03 00 F5 15 00 90 00 7E [23:58:14]RAPDU: 90 00 [23:58:14]wFMCommunicate OK [23:58:14]wFMCommunicate request_size=255 [23:58:14]MH_SAM_APDU [23:58:14]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 A8 20 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E1 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 01 00 00 F4 03 04 00 96 B7 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 73 86 02 00 35 04 06 00 80 [23:58:14]Write to MH i2c: E2 02 01 F6 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 20 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E1 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 01 00 00 F4 03 04 00 96 B7 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 73 86 02 00 35 04 06 00 80 00 00 FC [23:58:14]Write i2c OK [23:58:14]MH_I2C_Read... [23:58:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:58:14]Read from MH i2c: E2 [23:58:14]MH_I2C_Read... [23:58:14]Read from MH i2c: E2 03 00 [23:58:14]MH_I2C_Read... [23:58:14]Read from MH i2c: E2 03 00 F6 15 00 90 00 7F [23:58:14]RAPDU: 90 00 [23:58:14]wFMCommunicate OK [23:58:14]wFMCommunicate request_size=10 [23:58:14]MH_SAM_APDU [23:58:14]CAPDU: 80 0D 02 02 05 EE 0F 96 51 28 [23:58:14]Write to MH i2c: E2 0D 00 F7 15 80 0D 02 02 05 00 EE 0F 96 51 28 00 00 9C [23:58:14]Write i2c OK [23:58:14]MH_I2C_Read... [23:58:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:58:14]Read from MH i2c: E2 [23:58:14]MH_I2C_Read... [23:58:14]Read from MH i2c: E2 03 00 [23:58:14]MH_I2C_Read... [23:58:14]Read from MH i2c: E2 03 00 F7 15 00 90 00 80 [23:58:14]RAPDU: 90 00 [23:58:14]wFMCommunicate OK [23:58:14]wFMCommunicate request_size=4 [23:58:14]MH_SAM_APDU [23:58:14]CAPDU: 80 0D 03 02 [23:58:14]Write to MH i2c: E2 08 00 F8 15 80 0D 03 02 00 00 00 00 88 [23:58:14]Write i2c OK [23:58:14]MH_I2C_Read... [23:58:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:58:14]Read from MH i2c: E2 [23:58:14]MH_I2C_Read... [23:58:14]Read from MH i2c: E2 0B 00 [23:58:14]MH_I2C_Read... [23:58:14]Read from MH i2c: E2 0B 00 F8 15 00 14 6B 37 9E ED C9 B6 B8 90 00 01 [23:58:14]RAPDU: 14 6B 37 9E ED C9 B6 B8 90 00 [23:58:14]wFMCommunicate OK [23:58:14]SAM_PROTO_SignData done [23:58:14]FM_MakeSignedData done [23:58:14]CreateOFDProtocolMessage [23:58:14]wFMCommunicate request_size=4 [23:58:14]MH_SAM_APDU [23:58:14]CAPDU: 80 11 00 00 [23:58:14]Write to MH i2c: E2 08 00 F9 15 80 11 00 00 00 00 00 00 88 [23:58:14]Write i2c OK [23:58:14]MH_I2C_Read... [23:58:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:58:14]Read from MH i2c: E2 [23:58:14]MH_I2C_Read... [23:58:14]Read from MH i2c: E2 17 00 [23:58:14]MH_I2C_Read... [23:58:14]Read from MH i2c: E2 17 00 F9 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DE [23:58:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:58:14]wFMCommunicate OK [23:58:14]CreateOFDProtocolMessage done [23:58:14]OFDSenderStorePacket 165491 [23:58:14]StoreOFDPacket docnum=165491 [23:58:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 4C 58 07 01 58 ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 20 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E1 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 01 00 00 F4 03 04 00 96 B7 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 73 86 02 00 35 04 06 00 80 EE 0F 96 51 28 14 6B 37 9E ED C9 B6 B8 [23:58:14]CheckFolder [23:58:14]dirname=/storage/ofd_packets [23:58:14]CheckFolder done [23:58:14]ProducePacketName [23:58:14]name=ofd_packets/00165491 [23:58:14]NVStorageSaveData ofd_packets/00165491 [23:58:14]File name is /storage/ofd_packets/00165491 [23:58:14]Write 301 bytes [23:58:14]NVStorageSaveData done [23:58:14]OFDSenderStorePacket done [23:58:14]KKMCreateOFDPacket done [23:58:14]NVStorageSaveData kkm_last_timestamp [23:58:14]File name is /storage/kkm_last_timestamp [23:58:14]Write 4 bytes [23:58:14]NVStorageSaveData done [23:58:14]ExternCall_PrintAddStr [23:58:14]wPrintStart [23:58:14]Write to MH i2c: 01 00 00 FA 15 0F [23:58:14]Write i2c OK [23:58:14]MH_I2C_Read... [23:58:14]Read from MH i2c: 01 [23:58:14]MH_I2C_Read... [23:58:14]Read from MH i2c: 01 07 00 [23:58:14]MH_I2C_Read... [23:58:14]Read from MH i2c: 01 07 00 FA 15 00 00 00 00 00 FF 0F 24 [23:58:14]RasterBufferAndPrint [23:58:14]line Счет N : (1)459607 [23:58:14]line ИНН: 02508201610067 [23:58:14]line Контрольно-Кассовый Чек [23:58:14]line ПРОДАЖА [23:58:14]line ТРК (МРК, ГНК) : 12 [23:58:14]line Товар: 2710124130 [23:58:14]line Аи-92-К-5 [23:58:14]line 8.360 * 65.80 [23:58:14]line = 550.09 [23:58:14]line НДС 12% НСП 1% [23:58:14]line > о реализуемом товаре [23:58:14]line ОКРУГЛЕНИЕ: -0.09 [23:58:14]line ИТОГО: 550.00 [23:58:14]line Внесено: 550.00 [23:58:14]line СДАЧА: 0.00 [23:58:14]line НСП 1% : 4.87 [23:58:14]line НДС 12% : 58.42 [23:58:14]line Наличными: 550.00 [23:58:14]line Безнал.: 0.00 [23:58:14]line Место: АЗС № 72 "Партнер Нефть" [23:58:14]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [23:58:14]line СНО: Общий режим [23:58:14]line Чек 364 15.07.2024 23:58 [23:58:14]line Смена: 448 ФФД: 1.0 [23:58:14]line ЗНМ: 0300000160 [23:58:14]line РНМ: 0000000000090829 [23:58:14]line Версия ККМ: 001 [23:58:14]line ФМ: 0000000000874718 [23:58:14]line ФД: 165491 [23:58:14]line ФПД: 141759952081192 [23:58:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240715T235814&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165491&fm=141759952081192&tin=02508201610067®Number=0000000000090829&sum=55000 [23:58:14]OFD Sender: Processing packet 165491 [packets to send 106, broken 105] [23:58:14]ProducePacketName [23:58:14]name=ofd_packets/00165491 [23:58:14]OFD Sender: To server: pG, [23:58:14]CommunicateWithHost lk.salyk.kg:30040 [23:58:14]ConnectInit lk.salyk.kg [23:58:14]written 0, free lines is 4095 [23:58:15]Connected sock=9 [23:58:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 4C 58 07 01 58 ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 20 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 E1 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 01 00 00 F4 03 04 00 96 B7 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 73 86 02 00 35 04 06 00 80 EE 0F 96 51 28 14 6B 37 9E ED C9 B6 B8 [23:58:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 49 F4 47 00 DF E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 73 86 02 00 F4 03 04 00 1F 5E 95 66 B6 04 01 00 00 C6 F3 22 36 5C 9B DD DE [23:58:15]CommunicateWithHost err = 0 [23:58:15]CheckOFDResponse [23:58:15]1017 (14) - 77093643461234 [23:58:15]1041 (16) - 0000000000874718 [23:58:15]1040 (4) - 165491 [23:58:15]1012 (4) - 15.07.2024 17:36 [23:58:15]1206 (1) - 0 [23:58:15]OFD Sender: Remove packet 165491 [23:58:15]ProducePacketName [23:58:15]name=ofd_packets/00165491 [23:58:15]NVStorageDeleteData [23:58:15]Write to MH i2c: 01 00 00 24 16 3A [23:58:15]Write i2c OK [23:58:15]MH_I2C_Read... [23:58:15]Read from MH i2c: 01 [23:58:15]MH_I2C_Read... [23:58:15]Read from MH i2c: 01 07 00 [23:58:15]MH_I2C_Read... [23:58:15]Read from MH i2c: 01 07 00 24 16 00 00 00 00 00 F2 0C 3F [23:58:15]RasterBufferAndPrint [23:58:15]line [23:58:15]line [23:58:15]line [23:58:15]line [23:58:15]line [23:58:15]written 0, free lines is 3320 [23:58:15]MH_Cut [23:58:15]Write to MH i2c: D1 01 00 2B 16 01 13 [23:58:15]Write i2c OK [23:58:15]MH_I2C_Read... [23:58:15]Read from MH i2c: D1 [23:58:15]MH_I2C_Read... [23:58:15]Read from MH i2c: D1 01 00 [23:58:15]MH_I2C_Read... [23:58:15]Read from MH i2c: D1 01 00 2B 16 00 12 [23:58:15]Write to MH i2c: 01 00 00 2C 16 42 [23:58:15]Write i2c OK [23:58:15]MH_I2C_Read... [23:58:15]OFD Sender: No OFD packet to send [23:58:16]*** Cut start [23:58:16]*** Partial cut [23:58:16]*** CUTSNS_PIN = 1 [23:58:16]*** CUTSNS_PIN = 0 [23:58:16]*** Brake cut motor [23:58:16]Read from MH i2c: 01 [23:58:16]MH_I2C_Read... [23:58:16]*** Stop cut motor [23:58:16]*** Cut end [23:58:16]Read from MH i2c: 01 07 00 [23:58:16]MH_I2C_Read... [23:58:16]Read from MH i2c: 01 07 00 2C 16 00 00 00 00 00 FF 0F 57 [23:58:16]process_action close_receipt done [23:58:16]requested_data is exist [23:58:16]produce_requested_data [23:58:16]requested_item fm.sn is exist - process it [23:58:16]wFMCommunicate request_size=4 [23:58:16]MH_SAM_APDU [23:58:16]CAPDU: 80 11 00 00 [23:58:16]Write to MH i2c: E2 08 00 2D 16 80 11 00 00 00 00 00 00 BD [23:58:16]Write i2c OK [23:58:16]MH_I2C_Read... [23:58:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:58:16]Read from MH i2c: E2 [23:58:16]MH_I2C_Read... [23:58:16]Read from MH i2c: E2 17 00 [23:58:16]MH_I2C_Read... [23:58:16]Read from MH i2c: E2 17 00 2D 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 13 [23:58:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [23:58:16]wFMCommunicate OK [23:58:16]requested_item fd.num is exist - process it [23:58:16]SAM_PROTO_GetFieldsCounters [23:58:16]wFMCommunicate request_size=4 [23:58:16]MH_SAM_APDU [23:58:16]CAPDU: 80 13 00 00 [23:58:16]Write to MH i2c: E2 08 00 2E 16 80 13 00 00 00 00 00 00 C0 [23:58:16]Write i2c OK [23:58:16]MH_I2C_Read... [23:58:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:58:16]Read from MH i2c: E2 [23:58:16]MH_I2C_Read... [23:58:16]Read from MH i2c: E2 62 00 [23:58:16]MH_I2C_Read... [23:58:16]Read from MH i2c: E2 62 00 2E 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 73 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 6C 01 00 00 5E 04 04 00 6C 01 00 00 57 04 04 00 6D 01 00 00 19 04 04 00 00 00 00 00 90 00 EA [23:58:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 73 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 6C 01 00 00 5E 04 04 00 6C 01 00 00 57 04 04 00 6D 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:58:16]wFMCommunicate OK [23:58:16]SAM_PROTO_GetFieldsCounters done [23:58:16]requested_item shift.num is exist - process it [23:58:16]requested_item shift.opened is exist - process it [23:58:16]req_shift_opened [23:58:16]FM_GetShiftState [23:58:16]SAM_PROTO_GetShiftState [23:58:16]wFMCommunicate request_size=4 [23:58:16]MH_SAM_APDU [23:58:16]CAPDU: 80 13 01 00 [23:58:16]Write to MH i2c: E2 08 00 2F 16 80 13 01 00 00 00 00 00 C2 [23:58:16]Write i2c OK [23:58:16]MH_I2C_Read... [23:58:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:58:16]Read from MH i2c: E2 [23:58:16]MH_I2C_Read... [23:58:16]Read from MH i2c: E2 0E 00 [23:58:16]MH_I2C_Read... [23:58:16]Read from MH i2c: E2 0E 00 2F 16 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 9B [23:58:16]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [23:58:16]wFMCommunicate OK [23:58:16]SAM_PROTO_GetShiftState done [23:58:16]FM_GetShiftState done [23:58:16]req_shift_opened done [23:58:16]requested_item shift.open_date is exist - process it [23:58:16]req_shift_open_date [23:58:16]req_shift_open_date done [23:58:16]produce_requested_data done [23:58:16]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165491,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [23:58:16]process_action_free close_receipt [23:58:16]json_value_free [23:58:16]json_value_free done [23:58:16]process_json_proto returns [23:58:16]Send response to host [23:58:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165491,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [23:58:16]free response buf [23:58:16]execute_script done [23:58:16]execute_script returns [23:58:16]free content buf [23:58:16]Sock 10.Close socket [23:58:16]Sock 10.Thread stoped [23:58:20]OFD Sender: No OFD packet to send [23:58:25]OFD Sender: No OFD packet to send [23:58:30]OFD Sender: No OFD packet to send [23:58:35]OFD Sender: No OFD packet to send [23:58:40]OFD Sender: No OFD packet to send [23:58:45]OFD Sender: No OFD packet to send [23:58:50]OFD Sender: No OFD packet to send [23:58:55]OFD Sender: No OFD packet to send [23:59:00]OFD Sender: No OFD packet to send [23:59:05]OFD Sender: No OFD packet to send [23:59:10]OFD Sender: No OFD packet to send [23:59:15]OFD Sender: No OFD packet to send [23:59:20]OFD Sender: No OFD packet to send [23:59:25]OFD Sender: No OFD packet to send [23:59:30]OFD Sender: No OFD packet to send [23:59:35]OFD Sender: No OFD packet to send [23:59:40]OFD Sender: No OFD packet to send [23:59:45]OFD Sender: No OFD packet to send [23:59:50]OFD Sender: No OFD packet to send [23:59:55]OFD Sender: No OFD packet to send [00:00:00]OFD Sender: No OFD packet to send [00:00:05]OFD Sender: No OFD packet to send [00:00:10]OFD Sender: No OFD packet to send [00:00:15]OFD Sender: No OFD packet to send [00:00:20]OFD Sender: No OFD packet to send [00:00:25]OFD Sender: No OFD packet to send [00:00:30]OFD Sender: No OFD packet to send [00:00:35]OFD Sender: No OFD packet to send [00:00:40]OFD Sender: No OFD packet to send [00:00:45]OFD Sender: No OFD packet to send [00:00:50]OFD Sender: No OFD packet to send [00:00:55]OFD Sender: No OFD packet to send [00:01:00]OFD Sender: No OFD packet to send [00:01:05]OFD Sender: No OFD packet to send [00:01:10]OFD Sender: No OFD packet to send [00:01:15]OFD Sender: No OFD packet to send [00:01:20]OFD Sender: No OFD packet to send [00:01:25]OFD Sender: No OFD packet to send [00:01:30]OFD Sender: No OFD packet to send [00:01:35]OFD Sender: No OFD packet to send [00:01:40]OFD Sender: No OFD packet to send [00:01:43]accept exits with 7 [00:01:43]New connection [00:01:43]New thread 3067190628 created [00:01:43]Thread 3067333988 joined [00:01:43]Waiting for new connection... [00:01:43] Sock 7.Parse request [00:01:43]Sock 7.Check first char [00:01:43]Sock 7.First char is OK [00:01:43]request: POST /json_proto HTTP/1.0 [00:01:43]Method: POST [00:01:43]URL: /json_proto [00:01:43]Method is POST - this is cgi request [00:01:43]url: /json_proto [00:01:43]query_string will be loaded in cgi processing [00:01:43]execute_cgi json_proto POST (null) [00:01:43]execute_cgi path=json_proto method=POST [00:01:43]POST find Content-Length [00:01:43]Host: 172.17.56.4:8080 [00:01:43]Content-Length: 677 [00:01:43]Content-Type: application/json [00:01:43] [00:01:43]POST finish read [00:01:43]Found Content-Length = 677 [00:01:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459608", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.020, "sum" : 330.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 330.00, "total" : 330.00, "payments": [ { "type": 0, "sum" : 330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:01:43]execute_script... [00:01:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459608", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 5.020, "sum" : 330.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 330.00, "total" : 330.00, "payments": [ { "type": 0, "sum" : 330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:01:43]POST & json_proto [00:01:43]process_json_proto [00:01:43]json parsed OK: [00:01:43]protocol is kg_v1.0 [00:01:43]action value=close_receipt [00:01:43]process_action close_receipt [00:01:43]cmd_close_receipt [00:01:43]MH_GetDate [00:01:43]Write to MH i2c: F0 00 00 30 16 35 [00:01:43]Write i2c OK [00:01:43]MH_I2C_Read... [00:01:43]Read from MH i2c: F0 [00:01:43]MH_I2C_Read... [00:01:43]Read from MH i2c: F0 09 00 [00:01:43]MH_I2C_Read... [00:01:43]Read from MH i2c: F0 09 00 30 16 00 68 B8 95 66 C9 DC B2 64 14 [00:01:43]GetLastDocTimeStamp 1721087894 [00:01:43]current date 1721088104 [00:01:43]FM_GetShiftState [00:01:43]SAM_PROTO_GetShiftState [00:01:43]wFMCommunicate request_size=4 [00:01:43]MH_SAM_APDU [00:01:43]CAPDU: 80 13 01 00 [00:01:43]Write to MH i2c: E2 08 00 31 16 80 13 01 00 00 00 00 00 C4 [00:01:43]Write i2c OK [00:01:43]MH_I2C_Read... [00:01:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:01:43]Read from MH i2c: E2 [00:01:43]MH_I2C_Read... [00:01:43]Read from MH i2c: E2 0E 00 [00:01:43]MH_I2C_Read... [00:01:43]Read from MH i2c: E2 0E 00 31 16 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 9D [00:01:43]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [00:01:43]wFMCommunicate OK [00:01:43]SAM_PROTO_GetShiftState done [00:01:43]FM_GetShiftState done [00:01:43]opened in 1721003876 [00:01:43]opened+sec_in_day 1721090276 [00:01:43]quantity*price = 33031 [00:01:43]sum+1 = 33033 [00:01:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 330.00 Внесено: 330.00 СДАЧА: 0.00 НСП 1% : 2.92 НДС 12% : 35.08 Наличными: 330.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 365 16.07.2024 00:01 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165492 ФПД: 12754647315494 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T000145&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165492&fm=12754647315494&tin=02508201610067®Number=0000000000090829&sum=33000 [00:01:44]StoreToDocumentArchive [00:01:44]shift 448 fd 165492 [00:01:44]save to /storage/0448/doc_00165492 [00:01:44]save last doc name /storage/0448/doc_00165492 to /storage/kkm_last_doc_name [00:01:44]save OK [00:01:44]Clear old archive folders... [00:01:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:01:44]tlvbuf is 01B72930 [00:01:44]SAM_PROTO_ClearQueue [00:01:44]wFMCommunicate request_size=4 [00:01:44]MH_SAM_APDU [00:01:44]CAPDU: 80 09 00 00 [00:01:44]Write to MH i2c: E2 08 00 3E 16 80 09 00 00 00 00 00 00 C6 [00:01:44]Write i2c OK [00:01:44]MH_I2C_Read... [00:01:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:01:44]Read from MH i2c: E2 [00:01:44]MH_I2C_Read... [00:01:44]Read from MH i2c: E2 03 00 [00:01:44]MH_I2C_Read... [00:01:44]Read from MH i2c: E2 03 00 3E 16 00 90 00 C8 [00:01:44]RAPDU: 90 00 [00:01:44]wFMCommunicate OK [00:01:44]SAM_PROTO_ClearQueue done [00:01:44]KKMCreateOFDPacket [00:01:44]OFDProtocolAddRootSTLVToBuf [00:01:44]FM_MakeSignedData [00:01:44]FM_MakeSignedData [00:01:44]SAM_PROTO_SignData [00:01:44]wFMCommunicate request_size=4 [00:01:44]MH_SAM_APDU [00:01:44]CAPDU: 80 0D 01 02 [00:01:44]Write to MH i2c: E2 08 00 3F 16 80 0D 01 02 00 00 00 00 CE [00:01:44]Write i2c OK [00:01:44]MH_I2C_Read... [00:01:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:01:44]Read from MH i2c: E2 [00:01:44]MH_I2C_Read... [00:01:44]Read from MH i2c: E2 03 00 [00:01:44]MH_I2C_Read... [00:01:44]Read from MH i2c: E2 03 00 3F 16 00 90 00 C9 [00:01:44]RAPDU: 90 00 [00:01:44]wFMCommunicate OK [00:01:44]wFMCommunicate request_size=255 [00:01:44]MH_SAM_APDU [00:01:44]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 9C 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 01 00 00 F4 03 04 00 69 B8 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 74 86 02 00 35 04 06 00 0B [00:01:44]Write to MH i2c: E2 02 01 40 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 01 00 00 F4 03 04 00 69 B8 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 74 86 02 00 35 04 06 00 0B 00 00 EB [00:01:44]Write i2c OK [00:01:44]MH_I2C_Read... [00:01:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:01:44]Read from MH i2c: E2 [00:01:44]MH_I2C_Read... [00:01:44]Read from MH i2c: E2 03 00 [00:01:44]MH_I2C_Read... [00:01:44]Read from MH i2c: E2 03 00 40 16 00 90 00 CA [00:01:44]RAPDU: 90 00 [00:01:44]wFMCommunicate OK [00:01:44]wFMCommunicate request_size=10 [00:01:44]MH_SAM_APDU [00:01:44]CAPDU: 80 0D 02 02 05 99 AC 38 F4 26 [00:01:44]Write to MH i2c: E2 0D 00 41 16 80 0D 02 02 05 00 99 AC 38 F4 26 00 00 72 [00:01:44]Write i2c OK [00:01:44]MH_I2C_Read... [00:01:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:01:44]Read from MH i2c: E2 [00:01:44]MH_I2C_Read... [00:01:44]Read from MH i2c: E2 03 00 [00:01:44]MH_I2C_Read... [00:01:44]Read from MH i2c: E2 03 00 41 16 00 90 00 CB [00:01:44]RAPDU: 90 00 [00:01:44]wFMCommunicate OK [00:01:44]wFMCommunicate request_size=4 [00:01:44]MH_SAM_APDU [00:01:44]CAPDU: 80 0D 03 02 [00:01:44]Write to MH i2c: E2 08 00 42 16 80 0D 03 02 00 00 00 00 D3 [00:01:44]Write i2c OK [00:01:44]MH_I2C_Read... [00:01:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:01:44]Read from MH i2c: E2 [00:01:44]MH_I2C_Read... [00:01:44]Read from MH i2c: E2 0B 00 [00:01:44]MH_I2C_Read... [00:01:44]Read from MH i2c: E2 0B 00 42 16 00 13 38 66 CC E7 3D B5 57 90 00 81 [00:01:44]RAPDU: 13 38 66 CC E7 3D B5 57 90 00 [00:01:44]wFMCommunicate OK [00:01:44]SAM_PROTO_SignData done [00:01:44]FM_MakeSignedData done [00:01:44]CreateOFDProtocolMessage [00:01:44]wFMCommunicate request_size=4 [00:01:44]MH_SAM_APDU [00:01:44]CAPDU: 80 11 00 00 [00:01:44]Write to MH i2c: E2 08 00 43 16 80 11 00 00 00 00 00 00 D3 [00:01:44]Write i2c OK [00:01:44]MH_I2C_Read... [00:01:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:01:44]Read from MH i2c: E2 [00:01:44]MH_I2C_Read... [00:01:44]Read from MH i2c: E2 17 00 [00:01:44]MH_I2C_Read... [00:01:44]Read from MH i2c: E2 17 00 43 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 29 [00:01:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [00:01:44]wFMCommunicate OK [00:01:44]CreateOFDProtocolMessage done [00:01:44]OFDSenderStorePacket 165492 [00:01:44]StoreOFDPacket docnum=165492 [00:01:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F5 D1 07 01 CC 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 9C 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 01 00 00 F4 03 04 00 69 B8 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 74 86 02 00 35 04 06 00 0B 99 AC 38 F4 26 13 38 66 CC E7 3D B5 57 [00:01:44]CheckFolder [00:01:44]dirname=/storage/ofd_packets [00:01:44]CheckFolder done [00:01:44]ProducePacketName [00:01:44]name=ofd_packets/00165492 [00:01:44]NVStorageSaveData ofd_packets/00165492 [00:01:44]File name is /storage/ofd_packets/00165492 [00:01:44]Write 301 bytes [00:01:44]NVStorageSaveData done [00:01:44]OFDSenderStorePacket done [00:01:44]KKMCreateOFDPacket done [00:01:44]NVStorageSaveData kkm_last_timestamp [00:01:44]File name is /storage/kkm_last_timestamp [00:01:44]Write 4 bytes [00:01:44]NVStorageSaveData done [00:01:44]ExternCall_PrintAddStr [00:01:44]wPrintStart [00:01:44]Write to MH i2c: 01 00 00 44 16 5A [00:01:44]Write i2c OK [00:01:44]MH_I2C_Read... [00:01:44]Read from MH i2c: 01 [00:01:44]MH_I2C_Read... [00:01:44]Read from MH i2c: 01 07 00 [00:01:44]MH_I2C_Read... [00:01:44]Read from MH i2c: 01 07 00 44 16 00 00 00 00 00 FF 0F 6F [00:01:44]RasterBufferAndPrint [00:01:44]line Счет N : (1)459608 [00:01:44]line ИНН: 02508201610067 [00:01:44]line Контрольно-Кассовый Чек [00:01:44]line ПРОДАЖА [00:01:44]line ТРК (МРК, ГНК) : 22 [00:01:44]line Товар: 2710124130 [00:01:44]line Аи-92-К-5 [00:01:44]line 5.020 * 65.80 [00:01:44]line = 330.32 [00:01:44]line НДС 12% НСП 1% [00:01:44]line > о реализуемом товаре [00:01:44]line ОКРУГЛЕНИЕ: -0.32 [00:01:44]line ИТОГО: 330.00 [00:01:44]line Внесено: 330.00 [00:01:44]line СДАЧА: 0.00 [00:01:44]line НСП 1% : 2.92 [00:01:44]line НДС 12% : 35.08 [00:01:44]line Наличными: 330.00 [00:01:44]line Безнал.: 0.00 [00:01:44]line Место: АЗС № 72 "Партнер Нефть" [00:01:44]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [00:01:44]line СНО: Общий режим [00:01:44]line Чек 365 16.07.2024 00:01 [00:01:44]line Смена: 448 ФФД: 1.0 [00:01:44]line ЗНМ: 0300000160 [00:01:44]line РНМ: 0000000000090829 [00:01:44]line Версия ККМ: 001 [00:01:44]line ФМ: 0000000000874718 [00:01:44]line ФД: 165492 [00:01:45]line ФПД: 12754647315494 [00:01:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T000145&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165492&fm=12754647315494&tin=02508201610067®Number=0000000000090829&sum=33000 [00:01:45]OFD Sender: Processing packet 165492 [packets to send 106, broken 105] [00:01:45]ProducePacketName [00:01:45]name=ofd_packets/00165492 [00:01:45]OFD Sender: To server: pG, [00:01:45]CommunicateWithHost lk.salyk.kg:30040 [00:01:45]ConnectInit lk.salyk.kg [00:01:45]written 0, free lines is 4095 [00:01:45]Connected sock=10 [00:01:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 F5 D1 07 01 CC 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 9C 13 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 01 00 00 F4 03 04 00 69 B8 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 74 86 02 00 35 04 06 00 0B 99 AC 38 F4 26 13 38 66 CC E7 3D B5 57 [00:01:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 28 B8 47 00 A9 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 74 86 02 00 F4 03 04 00 F1 5E 95 66 B6 04 01 00 00 4A 62 6C F4 E5 60 5E 09 [00:01:45]CommunicateWithHost err = 0 [00:01:45]CheckOFDResponse [00:01:45]1017 (14) - 77093643461234 [00:01:45]1041 (16) - 0000000000874718 [00:01:45]1040 (4) - 165492 [00:01:45]1012 (4) - 15.07.2024 17:40 [00:01:45]1206 (1) - 0 [00:01:45]OFD Sender: Remove packet 165492 [00:01:45]ProducePacketName [00:01:45]name=ofd_packets/00165492 [00:01:45]NVStorageDeleteData [00:01:45]Write to MH i2c: 01 00 00 6E 16 84 [00:01:45]Write i2c OK [00:01:45]MH_I2C_Read... [00:01:45]Read from MH i2c: 01 [00:01:45]MH_I2C_Read... [00:01:45]Read from MH i2c: 01 07 00 [00:01:45]MH_I2C_Read... [00:01:45]Read from MH i2c: 01 07 00 6E 16 00 00 00 00 00 F3 0C 8A [00:01:45]RasterBufferAndPrint [00:01:45]line [00:01:45]line [00:01:45]line [00:01:45]line [00:01:45]line [00:01:45]written 0, free lines is 3322 [00:01:45]MH_Cut [00:01:45]Write to MH i2c: D1 01 00 75 16 01 5D [00:01:45]Write i2c OK [00:01:45]MH_I2C_Read... [00:01:45]Read from MH i2c: D1 [00:01:45]MH_I2C_Read... [00:01:45]Read from MH i2c: D1 01 00 [00:01:45]MH_I2C_Read... [00:01:45]Read from MH i2c: D1 01 00 75 16 00 5C [00:01:45]Write to MH i2c: 01 00 00 76 16 8C [00:01:45]Write i2c OK [00:01:45]MH_I2C_Read... [00:01:46]OFD Sender: No OFD packet to send [00:01:46]*** Cut start [00:01:46]*** Partial cut [00:01:46]*** CUTSNS_PIN = 1 [00:01:46]*** CUTSNS_PIN = 0 [00:01:46]*** Brake cut motor [00:01:47]Read from MH i2c: 01 [00:01:47]MH_I2C_Read... [00:01:47]*** Stop cut motor [00:01:47]*** Cut end [00:01:47]Read from MH i2c: 01 07 00 [00:01:47]MH_I2C_Read... [00:01:47]Read from MH i2c: 01 07 00 76 16 00 00 00 00 00 FF 0F A1 [00:01:47]process_action close_receipt done [00:01:47]requested_data is exist [00:01:47]produce_requested_data [00:01:47]requested_item fm.sn is exist - process it [00:01:47]wFMCommunicate request_size=4 [00:01:47]MH_SAM_APDU [00:01:47]CAPDU: 80 11 00 00 [00:01:47]Write to MH i2c: E2 08 00 77 16 80 11 00 00 00 00 00 00 07 [00:01:47]Write i2c OK [00:01:47]MH_I2C_Read... [00:01:47]Read from MH i2c: E2 [00:01:47]MH_I2C_Read... [00:01:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:01:47]Read from MH i2c: E2 17 00 [00:01:47]MH_I2C_Read... [00:01:47]Read from MH i2c: E2 17 00 77 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5D [00:01:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [00:01:47]wFMCommunicate OK [00:01:47]requested_item fd.num is exist - process it [00:01:47]SAM_PROTO_GetFieldsCounters [00:01:47]wFMCommunicate request_size=4 [00:01:47]MH_SAM_APDU [00:01:47]CAPDU: 80 13 00 00 [00:01:47]Write to MH i2c: E2 08 00 78 16 80 13 00 00 00 00 00 00 0A [00:01:47]Write i2c OK [00:01:47]MH_I2C_Read... [00:01:47]Read from MH i2c: E2 [00:01:47]MH_I2C_Read... [00:01:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:01:47]Read from MH i2c: E2 62 00 [00:01:47]MH_I2C_Read... [00:01:47]Read from MH i2c: E2 62 00 78 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 74 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 6D 01 00 00 5E 04 04 00 6D 01 00 00 57 04 04 00 6E 01 00 00 19 04 04 00 00 00 00 00 90 00 38 [00:01: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 74 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 6D 01 00 00 5E 04 04 00 6D 01 00 00 57 04 04 00 6E 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:01:47]wFMCommunicate OK [00:01:47]SAM_PROTO_GetFieldsCounters done [00:01:47]requested_item shift.num is exist - process it [00:01:47]requested_item shift.opened is exist - process it [00:01:47]req_shift_opened [00:01:47]FM_GetShiftState [00:01:47]SAM_PROTO_GetShiftState [00:01:47]wFMCommunicate request_size=4 [00:01:47]MH_SAM_APDU [00:01:47]CAPDU: 80 13 01 00 [00:01:47]Write to MH i2c: E2 08 00 79 16 80 13 01 00 00 00 00 00 0C [00:01:47]Write i2c OK [00:01:47]MH_I2C_Read... [00:01:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:01:47]Read from MH i2c: E2 [00:01:47]MH_I2C_Read... [00:01:47]Read from MH i2c: E2 0E 00 [00:01:47]MH_I2C_Read... [00:01:47]Read from MH i2c: E2 0E 00 79 16 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 E5 [00:01:47]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [00:01:47]wFMCommunicate OK [00:01:47]SAM_PROTO_GetShiftState done [00:01:47]FM_GetShiftState done [00:01:47]req_shift_opened done [00:01:47]requested_item shift.open_date is exist - process it [00:01:47]req_shift_open_date [00:01:47]req_shift_open_date done [00:01:47]produce_requested_data done [00:01:47]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165492,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [00:01:47]process_action_free close_receipt [00:01:47]json_value_free [00:01:47]json_value_free done [00:01:47]process_json_proto returns [00:01:47]Send response to host [00:01:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165492,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [00:01:47]free response buf [00:01:47]execute_script done [00:01:47]execute_script returns [00:01:47]free content buf [00:01:47]Sock 7.Close socket [00:01:47]Sock 7.Thread stoped [00:01:51]OFD Sender: No OFD packet to send [00:01:56]OFD Sender: No OFD packet to send [00:02:01]OFD Sender: No OFD packet to send [00:02:06]OFD Sender: No OFD packet to send [00:02:11]OFD Sender: No OFD packet to send [00:02:16]OFD Sender: No OFD packet to send [00:02:21]OFD Sender: No OFD packet to send [00:02:26]OFD Sender: No OFD packet to send [00:02:31]OFD Sender: No OFD packet to send [00:02:36]OFD Sender: No OFD packet to send [00:02:41]OFD Sender: No OFD packet to send [00:02:46]OFD Sender: No OFD packet to send [00:02:51]OFD Sender: No OFD packet to send [00:02:56]OFD Sender: No OFD packet to send [00:03:01]OFD Sender: No OFD packet to send [00:03:06]OFD Sender: No OFD packet to send [00:03:11]OFD Sender: No OFD packet to send [00:03:16]OFD Sender: No OFD packet to send [00:03:21]OFD Sender: No OFD packet to send [00:03:26]OFD Sender: No OFD packet to send [00:03:31]OFD Sender: No OFD packet to send [00:03:36]OFD Sender: No OFD packet to send [00:03:41]OFD Sender: No OFD packet to send [00:03:46]OFD Sender: No OFD packet to send [00:03:51]OFD Sender: No OFD packet to send [00:03:56]OFD Sender: No OFD packet to send [00:04:01]OFD Sender: No OFD packet to send [00:04:06]OFD Sender: No OFD packet to send [00:04:11]OFD Sender: No OFD packet to send [00:04:16]OFD Sender: No OFD packet to send [00:04:21]OFD Sender: No OFD packet to send [00:04:26]OFD Sender: No OFD packet to send [00:04:31]OFD Sender: No OFD packet to send [00:04:36]OFD Sender: No OFD packet to send [00:04:41]OFD Sender: No OFD packet to send [00:04:46]OFD Sender: No OFD packet to send [00:04:51]OFD Sender: No OFD packet to send [00:04:56]OFD Sender: No OFD packet to send [00:05:01]OFD Sender: No OFD packet to send [00:05:06]OFD Sender: No OFD packet to send [00:05:11]OFD Sender: No OFD packet to send [00:05:16]OFD Sender: No OFD packet to send [00:05:21]OFD Sender: No OFD packet to send [00:05:26]OFD Sender: No OFD packet to send [00:05:31]OFD Sender: No OFD packet to send [00:05:36]OFD Sender: No OFD packet to send [00:05:41]OFD Sender: No OFD packet to send [00:05:46]OFD Sender: No OFD packet to send [00:05:51]OFD Sender: No OFD packet to send [00:05:56]OFD Sender: No OFD packet to send [00:06:01]OFD Sender: No OFD packet to send [00:06:06]OFD Sender: No OFD packet to send [00:06:11]OFD Sender: No OFD packet to send [00:06:16]OFD Sender: No OFD packet to send [00:06:21]OFD Sender: No OFD packet to send [00:06:26]OFD Sender: No OFD packet to send [00:06:31]OFD Sender: No OFD packet to send [00:06:36]OFD Sender: No OFD packet to send [00:06:41]OFD Sender: No OFD packet to send [00:06:46]OFD Sender: No OFD packet to send [00:06:51]OFD Sender: No OFD packet to send [00:06:56]OFD Sender: No OFD packet to send [00:07:01]OFD Sender: No OFD packet to send [00:07:06]OFD Sender: No OFD packet to send [00:07:11]OFD Sender: No OFD packet to send [00:07:16]OFD Sender: No OFD packet to send [00:07:21]OFD Sender: No OFD packet to send [00:07:26]OFD Sender: No OFD packet to send [00:07:31]OFD Sender: No OFD packet to send [00:07:36]OFD Sender: No OFD packet to send [00:07:41]OFD Sender: No OFD packet to send [00:07:46]OFD Sender: No OFD packet to send [00:07:51]OFD Sender: No OFD packet to send [00:07:56]OFD Sender: No OFD packet to send [00:08:01]OFD Sender: No OFD packet to send [00:08:06]OFD Sender: No OFD packet to send [00:08:11]OFD Sender: No OFD packet to send [00:08:16]OFD Sender: No OFD packet to send [00:08:21]OFD Sender: No OFD packet to send [00:08:26]OFD Sender: No OFD packet to send [00:08:31]OFD Sender: No OFD packet to send [00:08:36]OFD Sender: No OFD packet to send [00:08:41]OFD Sender: No OFD packet to send [00:08:46]OFD Sender: No OFD packet to send [00:08:51]OFD Sender: No OFD packet to send [00:08:56]OFD Sender: No OFD packet to send [00:09:01]OFD Sender: No OFD packet to send [00:09:06]OFD Sender: No OFD packet to send [00:09:11]OFD Sender: No OFD packet to send [00:09:16]OFD Sender: No OFD packet to send [00:09:21]OFD Sender: No OFD packet to send [00:09:26]OFD Sender: No OFD packet to send [00:09:31]OFD Sender: No OFD packet to send [00:09:36]OFD Sender: No OFD packet to send [00:09:41]OFD Sender: No OFD packet to send [00:09:46]OFD Sender: No OFD packet to send [00:09:51]OFD Sender: No OFD packet to send [00:09:56]OFD Sender: No OFD packet to send [00:10:01]OFD Sender: No OFD packet to send [00:10:06]OFD Sender: No OFD packet to send [00:10:11]OFD Sender: No OFD packet to send [00:10:16]OFD Sender: No OFD packet to send [00:10:21]OFD Sender: No OFD packet to send [00:10:26]OFD Sender: No OFD packet to send [00:10:31]OFD Sender: No OFD packet to send [00:10:36]OFD Sender: No OFD packet to send [00:10:41]OFD Sender: No OFD packet to send [00:10:46]OFD Sender: No OFD packet to send [00:10:51]OFD Sender: No OFD packet to send [00:10:56]OFD Sender: No OFD packet to send [00:10:58]accept exits with 9 [00:10:58]New connection [00:10:58]New thread 3067333988 created [00:10:58]Thread 3067190628 joined [00:10:58]Waiting for new connection... [00:10:58] Sock 9.Parse request [00:10:58]Sock 9.Check first char [00:10:58]Sock 9.First char is OK [00:10:58]request: POST /json_proto HTTP/1.0 [00:10:58]Method: POST [00:10:58]URL: /json_proto [00:10:58]Method is POST - this is cgi request [00:10:58]url: /json_proto [00:10:58]query_string will be loaded in cgi processing [00:10:58]execute_cgi json_proto POST (null) [00:10:58]execute_cgi path=json_proto method=POST [00:10:58]POST find Content-Length [00:10:58]Host: 172.17.56.4:8080 [00:10:58]Content-Length: 677 [00:10:58]Content-Type: application/json [00:10:58] [00:10:58]POST finish read [00:10:58]Found Content-Length = 677 [00:10:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459609", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:10:58]execute_script... [00:10: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)459609", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:10:58]POST & json_proto [00:10:58]process_json_proto [00:10:58]json parsed OK: [00:10:58]protocol is kg_v1.0 [00:10:58]action value=close_receipt [00:10:58]process_action close_receipt [00:10:58]cmd_close_receipt [00:10:58]MH_GetDate [00:10:58]Write to MH i2c: F0 00 00 7A 16 7F [00:10:58]Write i2c OK [00:10:58]MH_I2C_Read... [00:10:58]Read from MH i2c: F0 [00:10:58]MH_I2C_Read... [00:10:58]Read from MH i2c: F0 09 00 [00:10:58]MH_I2C_Read... [00:10:58]Read from MH i2c: F0 09 00 7A 16 00 94 BA 95 66 C9 DC B2 64 8C [00:10:58]GetLastDocTimeStamp 1721088105 [00:10:58]current date 1721088660 [00:10:58]FM_GetShiftState [00:10:58]SAM_PROTO_GetShiftState [00:10:58]wFMCommunicate request_size=4 [00:10:58]MH_SAM_APDU [00:10:58]CAPDU: 80 13 01 00 [00:10:58]Write to MH i2c: E2 08 00 7B 16 80 13 01 00 00 00 00 00 0E [00:10:58]Write i2c OK [00:10:58]MH_I2C_Read... [00:10:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:10:58]Read from MH i2c: E2 [00:10:58]MH_I2C_Read... [00:10:58]Read from MH i2c: E2 0E 00 [00:10:58]MH_I2C_Read... [00:10:58]Read from MH i2c: E2 0E 00 7B 16 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 E7 [00:10:58]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [00:10:58]wFMCommunicate OK [00:10:58]SAM_PROTO_GetShiftState done [00:10:58]FM_GetShiftState done [00:10:58]opened in 1721003876 [00:10:58]opened+sec_in_day 1721090276 [00:10:58]quantity*price = 20003 [00:10:58]sum+1 = 20004 [00:10:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 366 16.07.2024 00:11 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165493 ФПД: 9940589661646 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T001100&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165493&fm=9940589661646&tin=02508201610067®Number=0000000000090829&sum=20000 [00:10:59]StoreToDocumentArchive [00:10:59]shift 448 fd 165493 [00:10:59]save to /storage/0448/doc_00165493 [00:10:59]save last doc name /storage/0448/doc_00165493 to /storage/kkm_last_doc_name [00:10:59]save OK [00:10:59]Clear old archive folders... [00:10:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:10:59]tlvbuf is 01B808C0 [00:10:59]SAM_PROTO_ClearQueue [00:10:59]wFMCommunicate request_size=4 [00:10:59]MH_SAM_APDU [00:10:59]CAPDU: 80 09 00 00 [00:10:59]Write to MH i2c: E2 08 00 88 16 80 09 00 00 00 00 00 00 10 [00:10:59]Write i2c OK [00:10:59]MH_I2C_Read... [00:10:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:10:59]Read from MH i2c: E2 [00:10:59]MH_I2C_Read... [00:10:59]Read from MH i2c: E2 03 00 [00:10:59]MH_I2C_Read... [00:10:59]Read from MH i2c: E2 03 00 88 16 00 90 00 12 [00:10:59]RAPDU: 90 00 [00:10:59]wFMCommunicate OK [00:10:59]SAM_PROTO_ClearQueue done [00:10:59]KKMCreateOFDPacket [00:10:59]OFDProtocolAddRootSTLVToBuf [00:10:59]FM_MakeSignedData [00:10:59]FM_MakeSignedData [00:10:59]SAM_PROTO_SignData [00:10:59]wFMCommunicate request_size=4 [00:10:59]MH_SAM_APDU [00:10:59]CAPDU: 80 0D 01 02 [00:10:59]Write to MH i2c: E2 08 00 89 16 80 0D 01 02 00 00 00 00 18 [00:10:59]Write i2c OK [00:10:59]MH_I2C_Read... [00:10:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:10:59]Read from MH i2c: E2 [00:10:59]MH_I2C_Read... [00:10:59]Read from MH i2c: E2 03 00 [00:10:59]MH_I2C_Read... [00:10:59]Read from MH i2c: E2 03 00 89 16 00 90 00 13 [00:10:59]RAPDU: 90 00 [00:10:59]wFMCommunicate OK [00:10:59]wFMCommunicate request_size=255 [00:10:59]MH_SAM_APDU [00:10:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 01 00 00 F4 03 04 00 94 BA 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 75 86 02 00 35 04 06 00 09 [00:10:59]Write to MH i2c: E2 02 01 8A 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 01 00 00 F4 03 04 00 94 BA 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 75 86 02 00 35 04 06 00 09 00 00 B1 [00:11:00]Write i2c OK [00:11:00]MH_I2C_Read... [00:11:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:11:00]Read from MH i2c: E2 [00:11:00]MH_I2C_Read... [00:11:00]Read from MH i2c: E2 03 00 [00:11:00]MH_I2C_Read... [00:11:00]Read from MH i2c: E2 03 00 8A 16 00 90 00 14 [00:11:00]RAPDU: 90 00 [00:11:00]wFMCommunicate OK [00:11:00]wFMCommunicate request_size=10 [00:11:00]MH_SAM_APDU [00:11:00]CAPDU: 80 0D 02 02 05 0A 79 50 CD CE [00:11:00]Write to MH i2c: E2 0D 00 8B 16 80 0D 02 02 05 00 0A 79 50 CD CE 00 00 93 [00:11:00]Write i2c OK [00:11:00]MH_I2C_Read... [00:11:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:11:00]Read from MH i2c: E2 [00:11:00]MH_I2C_Read... [00:11:00]Read from MH i2c: E2 03 00 [00:11:00]MH_I2C_Read... [00:11:00]Read from MH i2c: E2 03 00 8B 16 00 90 00 15 [00:11:00]RAPDU: 90 00 [00:11:00]wFMCommunicate OK [00:11:00]wFMCommunicate request_size=4 [00:11:00]MH_SAM_APDU [00:11:00]CAPDU: 80 0D 03 02 [00:11:00]Write to MH i2c: E2 08 00 8C 16 80 0D 03 02 00 00 00 00 1D [00:11:00]Write i2c OK [00:11:00]MH_I2C_Read... [00:11:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:11:00]Read from MH i2c: E2 [00:11:00]MH_I2C_Read... [00:11:00]Read from MH i2c: E2 0B 00 [00:11:00]MH_I2C_Read... [00:11:00]Read from MH i2c: E2 0B 00 8C 16 00 BC A0 2D 88 54 EE 9A AC 90 00 B7 [00:11:00]RAPDU: BC A0 2D 88 54 EE 9A AC 90 00 [00:11:00]wFMCommunicate OK [00:11:00]SAM_PROTO_SignData done [00:11:00]FM_MakeSignedData done [00:11:00]CreateOFDProtocolMessage [00:11:00]wFMCommunicate request_size=4 [00:11:00]MH_SAM_APDU [00:11:00]CAPDU: 80 11 00 00 [00:11:00]Write to MH i2c: E2 08 00 8D 16 80 11 00 00 00 00 00 00 1D [00:11:00]Write i2c OK [00:11:00]MH_I2C_Read... [00:11:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:11:00]Read from MH i2c: E2 [00:11:00]MH_I2C_Read... [00:11:00]Read from MH i2c: E2 17 00 [00:11:00]MH_I2C_Read... [00:11:00]Read from MH i2c: E2 17 00 8D 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 73 [00:11:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [00:11:00]wFMCommunicate OK [00:11:00]CreateOFDProtocolMessage done [00:11:00]OFDSenderStorePacket 165493 [00:11:00]StoreOFDPacket docnum=165493 [00:11:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 D6 91 07 01 A0 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 01 00 00 F4 03 04 00 94 BA 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 75 86 02 00 35 04 06 00 09 0A 79 50 CD CE BC A0 2D 88 54 EE 9A AC [00:11:00]CheckFolder [00:11:00]dirname=/storage/ofd_packets [00:11:00]CheckFolder done [00:11:00]ProducePacketName [00:11:00]name=ofd_packets/00165493 [00:11:00]NVStorageSaveData ofd_packets/00165493 [00:11:00]File name is /storage/ofd_packets/00165493 [00:11:00]Write 301 bytes [00:11:00]NVStorageSaveData done [00:11:00]OFDSenderStorePacket done [00:11:00]KKMCreateOFDPacket done [00:11:00]NVStorageSaveData kkm_last_timestamp [00:11:00]File name is /storage/kkm_last_timestamp [00:11:00]Write 4 bytes [00:11:00]NVStorageSaveData done [00:11:00]ExternCall_PrintAddStr [00:11:00]wPrintStart [00:11:00]Write to MH i2c: 01 00 00 8E 16 A4 [00:11:00]Write i2c OK [00:11:00]MH_I2C_Read... [00:11:00]Read from MH i2c: 01 [00:11:00]MH_I2C_Read... [00:11:00]Read from MH i2c: 01 07 00 [00:11:00]MH_I2C_Read... [00:11:00]Read from MH i2c: 01 07 00 8E 16 00 00 00 00 00 FF 0F B9 [00:11:00]RasterBufferAndPrint [00:11:00]line Счет N : (1)459609 [00:11:00]line ИНН: 02508201610067 [00:11:00]line Контрольно-Кассовый Чек [00:11:00]line ПРОДАЖА [00:11:00]line ТРК (МРК, ГНК) : 22 [00:11:00]line Товар: 2710124130 [00:11:00]line Аи-92-К-5 [00:11:00]line 3.040 * 65.80 [00:11:00]line = 200.03 [00:11:00]line НДС 12% НСП 1% [00:11:00]line > о реализуемом товаре [00:11:00]line ОКРУГЛЕНИЕ: -0.03 [00:11:00]line ИТОГО: 200.00 [00:11:00]line Внесено: 200.00 [00:11:00]line СДАЧА: 0.00 [00:11:00]line НСП 1% : 1.77 [00:11:00]line НДС 12% : 21.24 [00:11:00]line Наличными: 200.00 [00:11:00]line Безнал.: 0.00 [00:11:00]line Место: АЗС № 72 "Партнер Нефть" [00:11:00]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [00:11:00]line СНО: Общий режим [00:11:00]line Чек 366 16.07.2024 00:11 [00:11:00]line Смена: 448 ФФД: 1.0 [00:11:00]line ЗНМ: 0300000160 [00:11:00]line РНМ: 0000000000090829 [00:11:00]line Версия ККМ: 001 [00:11:00]line ФМ: 0000000000874718 [00:11:00]line ФД: 165493 [00:11:00]line ФПД: 9940589661646 [00:11:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T001100&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165493&fm=9940589661646&tin=02508201610067®Number=0000000000090829&sum=20000 [00:11:00]written 0, free lines is 4095 [00:11:00]OFD Sender: Processing packet 165493 [packets to send 106, broken 105] [00:11:00]ProducePacketName [00:11:00]name=ofd_packets/00165493 [00:11:00]OFD Sender: To server: pG, [00:11:00]CommunicateWithHost lk.salyk.kg:30040 [00:11:00]ConnectInit lk.salyk.kg [00:11:00]Connected sock=10 [00:11: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 37 31 38 0F 01 00 00 D6 91 07 01 A0 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 01 00 00 F4 03 04 00 94 BA 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 75 86 02 00 35 04 06 00 09 0A 79 50 CD CE BC A0 2D 88 54 EE 9A AC [00:11:00]Write to MH i2c: 01 00 00 B8 16 CE [00:11:00]Write i2c OK [00:11:00]MH_I2C_Read... [00:11:00]Read from MH i2c: 01 [00:11:00]MH_I2C_Read... [00:11:00]Read from MH i2c: 01 07 00 [00:11:00]MH_I2C_Read... [00:11:00]Read from MH i2c: 01 07 00 B8 16 00 00 00 00 00 02 0D E4 [00:11:00]RasterBufferAndPrint [00:11:00]line [00:11:00]line [00:11:00]line [00:11:00]line [00:11:00]line [00:11:00]written 0, free lines is 3336 [00:11:00]MH_Cut [00:11:00]Write to MH i2c: D1 01 00 BF 16 01 A7 [00:11:00]Write i2c OK [00:11:00]MH_I2C_Read... [00:11:00]Read from MH i2c: D1 [00:11:00]MH_I2C_Read... [00:11:00]Read from MH i2c: D1 01 00 [00:11:00]MH_I2C_Read... [00:11:00]Read from MH i2c: D1 01 00 BF 16 00 A6 [00:11:00]Write to MH i2c: 01 00 00 C0 16 D6 [00:11:00]Write i2c OK [00:11:00]MH_I2C_Read... [00:11:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 A7 8C 47 00 B5 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 37 31 38 10 04 04 00 75 86 02 00 F4 03 04 00 1D 61 95 66 B6 04 01 00 00 1A A6 D1 BF 01 67 97 F4 [00:11:01]CommunicateWithHost err = 0 [00:11:01]CheckOFDResponse [00:11:01]1017 (14) - 77093643461234 [00:11:01]1041 (16) - 0000000000874718 [00:11:01]1040 (4) - 165493 [00:11:01]1012 (4) - 15.07.2024 17:49 [00:11:01]1206 (1) - 0 [00:11:01]OFD Sender: Remove packet 165493 [00:11:01]ProducePacketName [00:11:01]name=ofd_packets/00165493 [00:11:01]NVStorageDeleteData [00:11:01]*** Cut start [00:11:01]*** Partial cut [00:11:01]*** CUTSNS_PIN = 1 [00:11:01]OFD Sender: No OFD packet to send [00:11:01]*** CUTSNS_PIN = 0 [00:11:01]*** Brake cut motor [00:11:02]Read from MH i2c: 01 [00:11:02]MH_I2C_Read... [00:11:02]*** Stop cut motor [00:11:02]*** Cut end [00:11:02]Read from MH i2c: 01 07 00 [00:11:02]MH_I2C_Read... [00:11:02]Read from MH i2c: 01 07 00 C0 16 00 00 00 00 00 FF 0F EB [00:11:02]process_action close_receipt done [00:11:02]requested_data is exist [00:11:02]produce_requested_data [00:11:02]requested_item fm.sn is exist - process it [00:11:02]wFMCommunicate request_size=4 [00:11:02]MH_SAM_APDU [00:11:02]CAPDU: 80 11 00 00 [00:11:02]Write to MH i2c: E2 08 00 C1 16 80 11 00 00 00 00 00 00 51 [00:11:02]Write i2c OK [00:11:02]MH_I2C_Read... [00:11:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:11:02]Read from MH i2c: E2 [00:11:02]MH_I2C_Read... [00:11:02]Read from MH i2c: E2 17 00 [00:11:02]MH_I2C_Read... [00:11:02]Read from MH i2c: E2 17 00 C1 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A7 [00:11:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [00:11:02]wFMCommunicate OK [00:11:02]requested_item fd.num is exist - process it [00:11:02]SAM_PROTO_GetFieldsCounters [00:11:02]wFMCommunicate request_size=4 [00:11:02]MH_SAM_APDU [00:11:02]CAPDU: 80 13 00 00 [00:11:02]Write to MH i2c: E2 08 00 C2 16 80 13 00 00 00 00 00 00 54 [00:11:02]Write i2c OK [00:11:02]MH_I2C_Read... [00:11:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:11:02]Read from MH i2c: E2 [00:11:02]MH_I2C_Read... [00:11:02]Read from MH i2c: E2 62 00 [00:11:02]MH_I2C_Read... [00:11:02]Read from MH i2c: E2 62 00 C2 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 75 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 6E 01 00 00 5E 04 04 00 6E 01 00 00 57 04 04 00 6F 01 00 00 19 04 04 00 00 00 00 00 90 00 86 [00:11:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 75 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 6E 01 00 00 5E 04 04 00 6E 01 00 00 57 04 04 00 6F 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:11:02]wFMCommunicate OK [00:11:02]SAM_PROTO_GetFieldsCounters done [00:11:02]requested_item shift.num is exist - process it [00:11:02]requested_item shift.opened is exist - process it [00:11:02]req_shift_opened [00:11:02]FM_GetShiftState [00:11:02]SAM_PROTO_GetShiftState [00:11:02]wFMCommunicate request_size=4 [00:11:02]MH_SAM_APDU [00:11:02]CAPDU: 80 13 01 00 [00:11:02]Write to MH i2c: E2 08 00 C3 16 80 13 01 00 00 00 00 00 56 [00:11:02]Write i2c OK [00:11:02]MH_I2C_Read... [00:11:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:11:02]Read from MH i2c: E2 [00:11:02]MH_I2C_Read... [00:11:02]Read from MH i2c: E2 0E 00 [00:11:02]MH_I2C_Read... [00:11:02]Read from MH i2c: E2 0E 00 C3 16 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 2F [00:11:02]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [00:11:02]wFMCommunicate OK [00:11:02]SAM_PROTO_GetShiftState done [00:11:02]FM_GetShiftState done [00:11:02]req_shift_opened done [00:11:02]requested_item shift.open_date is exist - process it [00:11:02]req_shift_open_date [00:11:02]req_shift_open_date done [00:11:02]produce_requested_data done [00:11:02]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165493,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [00:11:02]process_action_free close_receipt [00:11:02]json_value_free [00:11:02]json_value_free done [00:11:02]process_json_proto returns [00:11:02]Send response to host [00:11:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165493,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [00:11:02]free response buf [00:11:02]execute_script done [00:11:02]execute_script returns [00:11:02]free content buf [00:11:02]Sock 9.Close socket [00:11:02]Sock 9.Thread stoped [00:11:06]OFD Sender: No OFD packet to send [00:11:11]OFD Sender: No OFD packet to send [00:11:16]OFD Sender: No OFD packet to send [00:11:21]OFD Sender: No OFD packet to send [00:11:26]OFD Sender: No OFD packet to send [00:11:31]OFD Sender: No OFD packet to send [00:11:36]OFD Sender: No OFD packet to send [00:11:41]OFD Sender: No OFD packet to send [00:11:46]OFD Sender: No OFD packet to send [00:11:51]OFD Sender: No OFD packet to send [00:11:56]OFD Sender: No OFD packet to send [00:12:01]OFD Sender: No OFD packet to send [00:12:06]OFD Sender: No OFD packet to send [00:12:11]OFD Sender: No OFD packet to send [00:12:16]OFD Sender: No OFD packet to send [00:12:21]OFD Sender: No OFD packet to send [00:12:26]OFD Sender: No OFD packet to send [00:12:31]OFD Sender: No OFD packet to send [00:12:36]OFD Sender: No OFD packet to send [00:12:41]OFD Sender: No OFD packet to send [00:12:46]OFD Sender: No OFD packet to send [00:12:51]OFD Sender: No OFD packet to send [00:12:56]OFD Sender: No OFD packet to send [00:13:01]OFD Sender: No OFD packet to send [00:13:06]OFD Sender: No OFD packet to send [00:13:11]OFD Sender: No OFD packet to send [00:13:16]OFD Sender: No OFD packet to send [00:13:21]OFD Sender: No OFD packet to send [00:13:26]OFD Sender: No OFD packet to send [00:13:31]OFD Sender: No OFD packet to send [00:13:36]OFD Sender: No OFD packet to send [00:13:41]OFD Sender: No OFD packet to send [00:13:46]OFD Sender: No OFD packet to send [00:13:51]OFD Sender: No OFD packet to send [00:13:56]OFD Sender: No OFD packet to send [00:14:01]OFD Sender: No OFD packet to send [00:14:06]OFD Sender: No OFD packet to send [00:14:11]OFD Sender: No OFD packet to send [00:14:16]OFD Sender: No OFD packet to send [00:14:21]OFD Sender: No OFD packet to send [00:14:26]OFD Sender: No OFD packet to send [00:14:31]OFD Sender: No OFD packet to send [00:14:36]OFD Sender: No OFD packet to send [00:14:41]OFD Sender: No OFD packet to send [00:14:46]OFD Sender: No OFD packet to send [00:14:51]OFD Sender: No OFD packet to send [00:14:56]OFD Sender: No OFD packet to send [00:15:01]OFD Sender: No OFD packet to send [00:15:06]OFD Sender: No OFD packet to send [00:15:11]OFD Sender: No OFD packet to send [00:15:16]OFD Sender: No OFD packet to send [00:15:21]OFD Sender: No OFD packet to send [00:15:26]OFD Sender: No OFD packet to send [00:15:31]OFD Sender: No OFD packet to send [00:15:36]OFD Sender: No OFD packet to send [00:15:41]OFD Sender: No OFD packet to send [00:15:46]OFD Sender: No OFD packet to send [00:15:51]OFD Sender: No OFD packet to send [00:15:56]OFD Sender: No OFD packet to send [00:16:01]OFD Sender: No OFD packet to send [00:16:06]OFD Sender: No OFD packet to send [00:16:11]OFD Sender: No OFD packet to send [00:16:16]OFD Sender: No OFD packet to send [00:16:21]OFD Sender: No OFD packet to send [00:16:26]OFD Sender: No OFD packet to send [00:16:31]OFD Sender: No OFD packet to send [00:16:36]OFD Sender: No OFD packet to send [00:16:41]OFD Sender: No OFD packet to send [00:16:46]OFD Sender: No OFD packet to send [00:16:51]OFD Sender: No OFD packet to send [00:16:56]OFD Sender: No OFD packet to send [00:17:01]OFD Sender: No OFD packet to send [00:17:06]OFD Sender: No OFD packet to send [00:17:11]OFD Sender: No OFD packet to send [00:17:16]OFD Sender: No OFD packet to send [00:17:21]OFD Sender: No OFD packet to send [00:17:27]OFD Sender: No OFD packet to send [00:17:32]OFD Sender: No OFD packet to send [00:17:37]OFD Sender: No OFD packet to send [00:17:42]OFD Sender: No OFD packet to send [00:17:47]OFD Sender: No OFD packet to send [00:17:52]OFD Sender: No OFD packet to send [00:17:57]OFD Sender: No OFD packet to send [00:18:02]OFD Sender: No OFD packet to send [00:18:07]OFD Sender: No OFD packet to send [00:18:12]OFD Sender: No OFD packet to send [00:18:17]OFD Sender: No OFD packet to send [00:18:22]OFD Sender: No OFD packet to send [00:18:27]OFD Sender: No OFD packet to send [00:18:32]OFD Sender: No OFD packet to send [00:18:37]OFD Sender: No OFD packet to send [00:18:42]OFD Sender: No OFD packet to send [00:18:47]OFD Sender: No OFD packet to send [00:18:52]OFD Sender: No OFD packet to send [00:18:57]OFD Sender: No OFD packet to send [00:19:02]OFD Sender: No OFD packet to send [00:19:07]OFD Sender: No OFD packet to send [00:19:12]OFD Sender: No OFD packet to send [00:19:17]OFD Sender: No OFD packet to send [00:19:22]OFD Sender: No OFD packet to send [00:19:27]OFD Sender: No OFD packet to send [00:19:32]OFD Sender: No OFD packet to send [00:19:37]OFD Sender: No OFD packet to send [00:19:42]OFD Sender: No OFD packet to send [00:19:47]OFD Sender: No OFD packet to send [00:19:52]OFD Sender: No OFD packet to send [00:19:57]OFD Sender: No OFD packet to send [00:20:02]OFD Sender: No OFD packet to send [00:20:07]OFD Sender: No OFD packet to send [00:20:12]OFD Sender: No OFD packet to send [00:20:17]OFD Sender: No OFD packet to send [00:20:18]accept exits with 7 [00:20:18]New connection [00:20:18]New thread 3067190628 created [00:20:18]Thread 3067333988 joined [00:20:18]Waiting for new connection... [00:20:18] Sock 7.Parse request [00:20:18]Sock 7.Check first char [00:20:18]Sock 7.First char is OK [00:20:18]request: POST /json_proto HTTP/1.0 [00:20:18]Method: POST [00:20:18]URL: /json_proto [00:20:18]Method is POST - this is cgi request [00:20:18]url: /json_proto [00:20:18]query_string will be loaded in cgi processing [00:20:18]execute_cgi json_proto POST (null) [00:20:18]execute_cgi path=json_proto method=POST [00:20:18]POST find Content-Length [00:20:18]Host: 172.17.56.4:8080 [00:20:18]Content-Length: 678 [00:20:18]Content-Type: application/json [00:20:18] [00:20:18]POST finish read [00:20:18]Found Content-Length = 678 [00:20:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459610", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 13.680, "sum" : 900.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:20:18]execute_script... [00:20: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)459610", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 13.680, "sum" : 900.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:20:18]POST & json_proto [00:20:18]process_json_proto [00:20:18]json parsed OK: [00:20:18]protocol is kg_v1.0 [00:20:18]action value=close_receipt [00:20:18]process_action close_receipt [00:20:18]cmd_close_receipt [00:20:18]MH_GetDate [00:20:18]Write to MH i2c: F0 00 00 C4 16 C9 [00:20:18]Write i2c OK [00:20:18]MH_I2C_Read... [00:20:18]Read from MH i2c: F0 [00:20:18]MH_I2C_Read... [00:20:18]Read from MH i2c: F0 09 00 [00:20:18]MH_I2C_Read... [00:20:18]Read from MH i2c: F0 09 00 C4 16 00 C3 BC 95 66 C9 DC B2 64 07 [00:20:18]GetLastDocTimeStamp 1721088660 [00:20:18]current date 1721089219 [00:20:18]FM_GetShiftState [00:20:18]SAM_PROTO_GetShiftState [00:20:18]wFMCommunicate request_size=4 [00:20:18]MH_SAM_APDU [00:20:18]CAPDU: 80 13 01 00 [00:20:18]Write to MH i2c: E2 08 00 C5 16 80 13 01 00 00 00 00 00 58 [00:20:18]Write i2c OK [00:20:18]MH_I2C_Read... [00:20:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:18]Read from MH i2c: E2 [00:20:18]MH_I2C_Read... [00:20:18]Read from MH i2c: E2 0E 00 [00:20:18]MH_I2C_Read... [00:20:18]Read from MH i2c: E2 0E 00 C5 16 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 31 [00:20:18]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [00:20:18]wFMCommunicate OK [00:20:18]SAM_PROTO_GetShiftState done [00:20:18]FM_GetShiftState done [00:20:18]opened in 1721003876 [00:20:18]opened+sec_in_day 1721090276 [00:20:18]quantity*price = 90014 [00:20:18]sum+1 = 90015 [00:20:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.59 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 367 16.07.2024 00:20 Смена: 448 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165494 ФПД: 111292249641024 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T002019&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165494&fm=111292249641024&tin=02508201610067®Number=0000000000090829&sum=90000 [00:20:19]StoreToDocumentArchive [00:20:19]shift 448 fd 165494 [00:20:19]save to /storage/0448/doc_00165494 [00:20:19]save last doc name /storage/0448/doc_00165494 to /storage/kkm_last_doc_name [00:20:19]save OK [00:20:19]Clear old archive folders... [00:20:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:20:19]tlvbuf is 01BE0C10 [00:20:19]SAM_PROTO_ClearQueue [00:20:19]wFMCommunicate request_size=4 [00:20:19]MH_SAM_APDU [00:20:19]CAPDU: 80 09 00 00 [00:20:19]Write to MH i2c: E2 08 00 D2 16 80 09 00 00 00 00 00 00 5A [00:20:19]Write i2c OK [00:20:19]MH_I2C_Read... [00:20:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:20:19]Read from MH i2c: E2 [00:20:19]MH_I2C_Read... [00:20:19]Read from MH i2c: E2 03 00 [00:20:19]MH_I2C_Read... [00:20:19]Read from MH i2c: E2 03 00 D2 16 00 90 00 5C [00:20:19]RAPDU: 90 00 [00:20:19]wFMCommunicate OK [00:20:19]SAM_PROTO_ClearQueue done [00:20:19]KKMCreateOFDPacket [00:20:19]OFDProtocolAddRootSTLVToBuf [00:20:19]FM_MakeSignedData [00:20:19]FM_MakeSignedData [00:20:19]SAM_PROTO_SignData [00:20:19]wFMCommunicate request_size=4 [00:20:19]MH_SAM_APDU [00:20:19]CAPDU: 80 0D 01 02 [00:20:19]Write to MH i2c: E2 08 00 D3 16 80 0D 01 02 00 00 00 00 62 [00:20:19]Write i2c OK [00:20:19]MH_I2C_Read... [00:20:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:20:19]Read from MH i2c: E2 [00:20:19]MH_I2C_Read... [00:20:19]Read from MH i2c: E2 03 00 [00:20:19]MH_I2C_Read... [00:20:19]Read from MH i2c: E2 03 00 D3 16 00 90 00 5D [00:20:19]RAPDU: 90 00 [00:20:19]wFMCommunicate OK [00:20:19]wFMCommunicate request_size=255 [00:20:19]MH_SAM_APDU [00:20: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 70 35 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 9E 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 C3 BC 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 76 86 02 00 35 04 06 00 65 [00:20:19]Write to MH i2c: E2 02 01 D4 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 35 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 9E 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 C3 BC 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 76 86 02 00 35 04 06 00 65 00 00 6C [00:20:19]Write i2c OK [00:20:19]MH_I2C_Read... [00:20:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:20:19]Read from MH i2c: E2 [00:20:19]MH_I2C_Read... [00:20:19]Read from MH i2c: E2 03 00 [00:20:19]MH_I2C_Read... [00:20:19]Read from MH i2c: E2 03 00 D4 16 00 90 00 5E [00:20:19]RAPDU: 90 00 [00:20:19]wFMCommunicate OK [00:20:19]wFMCommunicate request_size=10 [00:20:19]MH_SAM_APDU [00:20:19]CAPDU: 80 0D 02 02 05 38 3F 01 90 40 [00:20:19]Write to MH i2c: E2 0D 00 D5 16 80 0D 02 02 05 00 38 3F 01 90 40 00 00 B7 [00:20:19]Write i2c OK [00:20:19]MH_I2C_Read... [00:20:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:20:19]Read from MH i2c: E2 [00:20:19]MH_I2C_Read... [00:20:19]Read from MH i2c: E2 03 00 [00:20:19]MH_I2C_Read... [00:20:19]Read from MH i2c: E2 03 00 D5 16 00 90 00 5F [00:20:19]RAPDU: 90 00 [00:20:19]wFMCommunicate OK [00:20:19]wFMCommunicate request_size=4 [00:20:19]MH_SAM_APDU [00:20:19]CAPDU: 80 0D 03 02 [00:20:19]Write to MH i2c: E2 08 00 D6 16 80 0D 03 02 00 00 00 00 67 [00:20:19]Write i2c OK [00:20:19]MH_I2C_Read... [00:20:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:20:19]Read from MH i2c: E2 [00:20:19]MH_I2C_Read... [00:20:19]Read from MH i2c: E2 0B 00 [00:20:19]MH_I2C_Read... [00:20:19]Read from MH i2c: E2 0B 00 D6 16 00 57 97 27 52 84 52 57 8E 90 00 8A [00:20:19]RAPDU: 57 97 27 52 84 52 57 8E 90 00 [00:20:19]wFMCommunicate OK [00:20:19]SAM_PROTO_SignData done [00:20:19]FM_MakeSignedData done [00:20:19]CreateOFDProtocolMessage [00:20:19]wFMCommunicate request_size=4 [00:20:19]MH_SAM_APDU [00:20:19]CAPDU: 80 11 00 00 [00:20:19]Write to MH i2c: E2 08 00 D7 16 80 11 00 00 00 00 00 00 67 [00:20:19]Write i2c OK [00:20:19]MH_I2C_Read... [00:20:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:20:19]Read from MH i2c: E2 [00:20:19]MH_I2C_Read... [00:20:19]Read from MH i2c: E2 17 00 [00:20:19]MH_I2C_Read... [00:20:19]Read from MH i2c: E2 17 00 D7 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 BD [00:20:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [00:20:19]wFMCommunicate OK [00:20:19]CreateOFDProtocolMessage done [00:20:19]OFDSenderStorePacket 165494 [00:20:19]StoreOFDPacket docnum=165494 [00:20:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 A2 85 07 01 79 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 70 35 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 9E 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 C3 BC 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 76 86 02 00 35 04 06 00 65 38 3F 01 90 40 57 97 27 52 84 52 57 8E [00:20:19]CheckFolder [00:20:19]dirname=/storage/ofd_packets [00:20:19]CheckFolder done [00:20:19]ProducePacketName [00:20:19]name=ofd_packets/00165494 [00:20:19]NVStorageSaveData ofd_packets/00165494 [00:20:19]File name is /storage/ofd_packets/00165494 [00:20:19]Write 301 bytes [00:20:19]NVStorageSaveData done [00:20:19]OFDSenderStorePacket done [00:20:19]KKMCreateOFDPacket done [00:20:19]NVStorageSaveData kkm_last_timestamp [00:20:19]File name is /storage/kkm_last_timestamp [00:20:19]Write 4 bytes [00:20:19]NVStorageSaveData done [00:20:19]ExternCall_PrintAddStr [00:20:19]wPrintStart [00:20:19]Write to MH i2c: 01 00 00 D8 16 EE [00:20:19]Write i2c OK [00:20:19]MH_I2C_Read... [00:20:19]Read from MH i2c: 01 [00:20:19]MH_I2C_Read... [00:20:19]Read from MH i2c: 01 07 00 [00:20:19]MH_I2C_Read... [00:20:19]Read from MH i2c: 01 07 00 D8 16 00 00 00 00 00 FF 0F 03 [00:20:19]RasterBufferAndPrint [00:20:19]line Счет N : (1)459610 [00:20:19]line ИНН: 02508201610067 [00:20:19]line Контрольно-Кассовый Чек [00:20:19]line ПРОДАЖА [00:20:19]line ТРК (МРК, ГНК) : 22 [00:20:19]line Товар: 2710124130 [00:20:19]line Аи-92-К-5 [00:20:19]line 13.680 * 65.80 [00:20:19]line = 900.14 [00:20:19]line НДС 12% НСП 1% [00:20:19]line > о реализуемом товаре [00:20:19]line ОКРУГЛЕНИЕ: -0.14 [00:20:19]line ИТОГО: 900.00 [00:20:19]line Внесено: 900.00 [00:20:19]line СДАЧА: 0.00 [00:20:19]line НСП 1% : 7.97 [00:20:19]line НДС 12% : 95.59 [00:20:19]line Наличными: 900.00 [00:20:19]line Безнал.: 0.00 [00:20:19]line Место: АЗС № 72 "Партнер Нефть" [00:20:19]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [00:20:19]line СНО: Общий режим [00:20:19]line Чек 367 16.07.2024 00:20 [00:20:19]line Смена: 448 ФФД: 1.0 [00:20:19]line ЗНМ: 0300000160 [00:20:19]line РНМ: 0000000000090829 [00:20:19]line Версия ККМ: 001 [00:20:19]line ФМ: 0000000000874718 [00:20:19]line ФД: 165494 [00:20:19]line ФПД: 111292249641024 [00:20:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T002019&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165494&fm=111292249641024&tin=02508201610067®Number=0000000000090829&sum=90000 [00:20:20]OFD Sender: Processing packet 165494 [packets to send 106, broken 105] [00:20:20]ProducePacketName [00:20:20]name=ofd_packets/00165494 [00:20:20]OFD Sender: To server: pG, [00:20:20]CommunicateWithHost lk.salyk.kg:30040 [00:20:20]ConnectInit lk.salyk.kg [00:20:20]written 0, free lines is 4095 [00:20:20]Connected sock=10 [00:20: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 37 31 38 0F 01 00 00 A2 85 07 01 79 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 70 35 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 9E 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 C3 BC 95 66 0E 04 04 00 C0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 76 86 02 00 35 04 06 00 65 38 3F 01 90 40 57 97 27 52 84 52 57 8E [00:20:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 6A 11 47 00 36 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 76 86 02 00 F4 03 04 00 4C 63 95 66 B6 04 01 00 00 BF F2 D0 DD F9 95 A7 D7 [00:20:20]CommunicateWithHost err = 0 [00:20:20]CheckOFDResponse [00:20:20]1017 (14) - 77093643461234 [00:20:20]1041 (16) - 0000000000874718 [00:20:20]1040 (4) - 165494 [00:20:20]1012 (4) - 15.07.2024 17:58 [00:20:20]1206 (1) - 0 [00:20:20]OFD Sender: Remove packet 165494 [00:20:20]ProducePacketName [00:20:20]name=ofd_packets/00165494 [00:20:20]NVStorageDeleteData [00:20:20]Write to MH i2c: 01 00 00 02 17 19 [00:20:20]Write i2c OK [00:20:20]MH_I2C_Read... [00:20:20]Read from MH i2c: 01 [00:20:20]MH_I2C_Read... [00:20:20]Read from MH i2c: 01 07 00 [00:20:20]MH_I2C_Read... [00:20:20]Read from MH i2c: 01 07 00 02 17 00 00 00 00 00 F5 0C 21 [00:20:20]RasterBufferAndPrint [00:20:20]line [00:20:20]line [00:20:20]line [00:20:20]line [00:20:20]line [00:20:20]written 0, free lines is 3323 [00:20:20]MH_Cut [00:20:20]Write to MH i2c: D1 01 00 09 17 01 F2 [00:20:20]Write i2c OK [00:20:20]MH_I2C_Read... [00:20:20]Read from MH i2c: D1 [00:20:20]MH_I2C_Read... [00:20:20]Read from MH i2c: D1 01 00 [00:20:20]MH_I2C_Read... [00:20:20]Read from MH i2c: D1 01 00 09 17 00 F1 [00:20:20]Write to MH i2c: 01 00 00 0A 17 21 [00:20:20]Write i2c OK [00:20:20]MH_I2C_Read... [00:20:20]OFD Sender: No OFD packet to send [00:20:21]*** Cut start [00:20:21]*** Partial cut [00:20:21]*** CUTSNS_PIN = 1 [00:20:21]*** CUTSNS_PIN = 0 [00:20:21]*** Brake cut motor [00:20:21]Read from MH i2c: 01 [00:20:21]MH_I2C_Read... [00:20:21]*** Stop cut motor [00:20:21]*** Cut end [00:20:21]Read from MH i2c: 01 07 00 [00:20:21]MH_I2C_Read... [00:20:21]Read from MH i2c: 01 07 00 0A 17 00 00 00 00 00 FF 0F 36 [00:20:21]process_action close_receipt done [00:20:21]requested_data is exist [00:20:21]produce_requested_data [00:20:21]requested_item fm.sn is exist - process it [00:20:21]wFMCommunicate request_size=4 [00:20:21]MH_SAM_APDU [00:20:21]CAPDU: 80 11 00 00 [00:20:21]Write to MH i2c: E2 08 00 0B 17 80 11 00 00 00 00 00 00 9C [00:20:21]Write i2c OK [00:20:21]MH_I2C_Read... [00:20:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:20:21]Read from MH i2c: E2 [00:20:21]MH_I2C_Read... [00:20:21]Read from MH i2c: E2 17 00 [00:20:21]MH_I2C_Read... [00:20:21]Read from MH i2c: E2 17 00 0B 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F2 [00:20:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [00:20:21]wFMCommunicate OK [00:20:21]requested_item fd.num is exist - process it [00:20:21]SAM_PROTO_GetFieldsCounters [00:20:21]wFMCommunicate request_size=4 [00:20:21]MH_SAM_APDU [00:20:21]CAPDU: 80 13 00 00 [00:20:21]Write to MH i2c: E2 08 00 0C 17 80 13 00 00 00 00 00 00 9F [00:20:21]Write i2c OK [00:20:21]MH_I2C_Read... [00:20:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:20:22]Read from MH i2c: E2 [00:20:22]MH_I2C_Read... [00:20:22]Read from MH i2c: E2 62 00 [00:20:22]MH_I2C_Read... [00:20:22]Read from MH i2c: E2 62 00 0C 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 76 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 6F 01 00 00 5E 04 04 00 6F 01 00 00 57 04 04 00 70 01 00 00 19 04 04 00 00 00 00 00 90 00 D5 [00:20: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 76 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 6F 01 00 00 5E 04 04 00 6F 01 00 00 57 04 04 00 70 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:20:22]wFMCommunicate OK [00:20:22]SAM_PROTO_GetFieldsCounters done [00:20:22]requested_item shift.num is exist - process it [00:20:22]requested_item shift.opened is exist - process it [00:20:22]req_shift_opened [00:20:22]FM_GetShiftState [00:20:22]SAM_PROTO_GetShiftState [00:20:22]wFMCommunicate request_size=4 [00:20:22]MH_SAM_APDU [00:20:22]CAPDU: 80 13 01 00 [00:20:22]Write to MH i2c: E2 08 00 0D 17 80 13 01 00 00 00 00 00 A1 [00:20:22]Write i2c OK [00:20:22]MH_I2C_Read... [00:20:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:22]Read from MH i2c: E2 [00:20:22]MH_I2C_Read... [00:20:22]Read from MH i2c: E2 0E 00 [00:20:22]MH_I2C_Read... [00:20:22]Read from MH i2c: E2 0E 00 0D 17 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 7A [00:20:22]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [00:20:22]wFMCommunicate OK [00:20:22]SAM_PROTO_GetShiftState done [00:20:22]FM_GetShiftState done [00:20:22]req_shift_opened done [00:20:22]requested_item shift.open_date is exist - process it [00:20:22]req_shift_open_date [00:20:22]req_shift_open_date done [00:20:22]produce_requested_data done [00:20:22]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165494,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [00:20:22]process_action_free close_receipt [00:20:22]json_value_free [00:20:22]json_value_free done [00:20:22]process_json_proto returns [00:20:22]Send response to host [00:20:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165494,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [00:20:22]free response buf [00:20:22]execute_script done [00:20:22]execute_script returns [00:20:22]free content buf [00:20:22]Sock 7.Close socket [00:20:22]Sock 7.Thread stoped [00:20:25]OFD Sender: No OFD packet to send [00:20:30]OFD Sender: No OFD packet to send [00:20:35]OFD Sender: No OFD packet to send [00:20:40]OFD Sender: No OFD packet to send [00:20:45]OFD Sender: No OFD packet to send [00:20:50]OFD Sender: No OFD packet to send [00:20:56]OFD Sender: No OFD packet to send [00:21:01]OFD Sender: No OFD packet to send [00:21:06]OFD Sender: No OFD packet to send [00:21:11]OFD Sender: No OFD packet to send [00:21:16]OFD Sender: No OFD packet to send [00:21:21]OFD Sender: No OFD packet to send [00:21:26]OFD Sender: No OFD packet to send [00:21:31]OFD Sender: No OFD packet to send [00:21:36]OFD Sender: No OFD packet to send [00:21:41]OFD Sender: No OFD packet to send [00:21:46]OFD Sender: No OFD packet to send [00:21:51]OFD Sender: No OFD packet to send [00:21:56]OFD Sender: No OFD packet to send [00:22:01]OFD Sender: No OFD packet to send [00:22:06]OFD Sender: No OFD packet to send [00:22:11]OFD Sender: No OFD packet to send [00:22:16]OFD Sender: No OFD packet to send [00:22:21]OFD Sender: No OFD packet to send [00:22:26]OFD Sender: No OFD packet to send [00:22:31]OFD Sender: No OFD packet to send [00:22:36]OFD Sender: No OFD packet to send [00:22:41]OFD Sender: No OFD packet to send [00:22:46]OFD Sender: No OFD packet to send [00:22:51]OFD Sender: No OFD packet to send [00:22:56]OFD Sender: No OFD packet to send [00:23:01]OFD Sender: No OFD packet to send [00:23:06]OFD Sender: No OFD packet to send [00:23:11]OFD Sender: No OFD packet to send [00:23:16]OFD Sender: No OFD packet to send [00:23:21]OFD Sender: No OFD packet to send [00:23:26]OFD Sender: No OFD packet to send [00:23:31]OFD Sender: No OFD packet to send [00:23:36]OFD Sender: No OFD packet to send [00:23:41]OFD Sender: No OFD packet to send [00:23:46]OFD Sender: No OFD packet to send [00:23:51]OFD Sender: No OFD packet to send [00:23:56]OFD Sender: No OFD packet to send [00:24:01]OFD Sender: No OFD packet to send [00:24:06]OFD Sender: No OFD packet to send [00:24:11]OFD Sender: No OFD packet to send [00:24:16]OFD Sender: No OFD packet to send [00:24:21]OFD Sender: No OFD packet to send [00:24:26]OFD Sender: No OFD packet to send [00:24:31]OFD Sender: No OFD packet to send [00:24:36]OFD Sender: No OFD packet to send [00:24:41]OFD Sender: No OFD packet to send [00:24:46]OFD Sender: No OFD packet to send [00:24:51]OFD Sender: No OFD packet to send [00:24:56]OFD Sender: No OFD packet to send [00:25:01]OFD Sender: No OFD packet to send [00:25:06]OFD Sender: No OFD packet to send [00:25:11]OFD Sender: No OFD packet to send [00:25:16]OFD Sender: No OFD packet to send [00:25:21]OFD Sender: No OFD packet to send [00:25:26]OFD Sender: No OFD packet to send [00:25:31]OFD Sender: No OFD packet to send [00:25:36]OFD Sender: No OFD packet to send [00:25:41]OFD Sender: No OFD packet to send [00:25:46]OFD Sender: No OFD packet to send [00:25:51]OFD Sender: No OFD packet to send [00:25:56]OFD Sender: No OFD packet to send [00:26:01]OFD Sender: No OFD packet to send [00:26:06]OFD Sender: No OFD packet to send [00:26:11]OFD Sender: No OFD packet to send [00:26:16]OFD Sender: No OFD packet to send [00:26:21]OFD Sender: No OFD packet to send [00:26:26]OFD Sender: No OFD packet to send [00:26:31]OFD Sender: No OFD packet to send [00:26:36]OFD Sender: No OFD packet to send [00:26:41]OFD Sender: No OFD packet to send [00:26:46]OFD Sender: No OFD packet to send [00:26:51]OFD Sender: No OFD packet to send [00:26:56]OFD Sender: No OFD packet to send [00:27:01]OFD Sender: No OFD packet to send [00:27:06]OFD Sender: No OFD packet to send [00:27:11]OFD Sender: No OFD packet to send [00:27:16]OFD Sender: No OFD packet to send [00:27:21]OFD Sender: No OFD packet to send [00:27:26]OFD Sender: No OFD packet to send [00:27:31]OFD Sender: No OFD packet to send [00:27:36]OFD Sender: No OFD packet to send [00:27:41]OFD Sender: No OFD packet to send [00:27:46]OFD Sender: No OFD packet to send [00:27:51]OFD Sender: No OFD packet to send [00:27:56]OFD Sender: No OFD packet to send [00:28:01]OFD Sender: No OFD packet to send [00:28:06]OFD Sender: No OFD packet to send [00:28:11]OFD Sender: No OFD packet to send [00:28:16]OFD Sender: No OFD packet to send [00:28:21]OFD Sender: No OFD packet to send [00:28:26]OFD Sender: No OFD packet to send [00:28:31]OFD Sender: No OFD packet to send [00:28:36]OFD Sender: No OFD packet to send [00:28:41]OFD Sender: No OFD packet to send [00:28:46]OFD Sender: No OFD packet to send [00:28:51]OFD Sender: No OFD packet to send [00:28:56]OFD Sender: No OFD packet to send [00:29:01]OFD Sender: No OFD packet to send [00:29:06]OFD Sender: No OFD packet to send [00:29:11]OFD Sender: No OFD packet to send [00:29:16]OFD Sender: No OFD packet to send [00:29:21]OFD Sender: No OFD packet to send [00:29:26]OFD Sender: No OFD packet to send [00:29:31]OFD Sender: No OFD packet to send [00:29:36]OFD Sender: No OFD packet to send [00:29:41]OFD Sender: No OFD packet to send [00:29:46]OFD Sender: No OFD packet to send [00:29:51]OFD Sender: No OFD packet to send [00:29:56]OFD Sender: No OFD packet to send [00:30:01]OFD Sender: No OFD packet to send [00:30:06]OFD Sender: No OFD packet to send [00:30:11]OFD Sender: No OFD packet to send [00:30:16]OFD Sender: No OFD packet to send [00:30:21]OFD Sender: No OFD packet to send [00:30:26]OFD Sender: No OFD packet to send [00:30:31]OFD Sender: No OFD packet to send [00:30:36]OFD Sender: No OFD packet to send [00:30:41]OFD Sender: No OFD packet to send [00:30:46]OFD Sender: No OFD packet to send [00:30:51]OFD Sender: No OFD packet to send [00:30:56]OFD Sender: No OFD packet to send [00:31:00]accept exits with 9 [00:31:00]New connection [00:31:00]New thread 3067333988 created [00:31:00]Thread 3067190628 joined [00:31:00]Waiting for new connection... [00:31:00] Sock 9.Parse request [00:31:00]Sock 9.Check first char [00:31:00]Sock 9.First char is OK [00:31:00]request: POST /json_proto HTTP/1.0 [00:31:00]Method: POST [00:31:00]URL: /json_proto [00:31:00]Method is POST - this is cgi request [00:31:00]url: /json_proto [00:31:00]query_string will be loaded in cgi processing [00:31:00]execute_cgi json_proto POST (null) [00:31:00]execute_cgi path=json_proto method=POST [00:31:00]POST find Content-Length [00:31:00]Host: 172.17.56.4:8080 [00:31:00]Content-Length: 215 [00:31:00]Content-Type: application/json [00:31:00] [00:31:00]POST finish read [00:31:00]Found Content-Length = 215 [00:31:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:31:00]execute_script... [00:31:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:31:00]POST & json_proto [00:31:00]process_json_proto [00:31:00]json parsed OK: [00:31:00]protocol is kg_v1.0 [00:31:00]action value=get_value [00:31:00]process_action get_value [00:31:00]cmd_get_value [00:31:00]process_action get_value done [00:31:00]requested_data is exist [00:31:00]produce_requested_data [00:31:00]requested_item kkm.sn is exist - process it [00:31:00]requested_item kkm.ver is exist - process it [00:31:00]requested_item fm.sn is exist - process it [00:31:00]wFMCommunicate request_size=4 [00:31:00]MH_SAM_APDU [00:31:00]CAPDU: 80 11 00 00 [00:31:00]Write to MH i2c: E2 08 00 0E 17 80 11 00 00 00 00 00 00 9F [00:31:00]Write i2c OK [00:31:00]MH_I2C_Read... [00:31:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:31:00]Read from MH i2c: E2 [00:31:00]MH_I2C_Read... [00:31:00]Read from MH i2c: E2 17 00 [00:31:00]MH_I2C_Read... [00:31:00]Read from MH i2c: E2 17 00 0E 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 F5 [00:31:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [00:31:00]wFMCommunicate OK [00:31:00]requested_item fd.num is exist - process it [00:31:00]SAM_PROTO_GetFieldsCounters [00:31:00]wFMCommunicate request_size=4 [00:31:00]MH_SAM_APDU [00:31:00]CAPDU: 80 13 00 00 [00:31:00]Write to MH i2c: E2 08 00 0F 17 80 13 00 00 00 00 00 00 A2 [00:31:00]Write i2c OK [00:31:00]MH_I2C_Read... [00:31:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:31:00]Read from MH i2c: E2 [00:31:00]MH_I2C_Read... [00:31:00]Read from MH i2c: E2 62 00 [00:31:00]MH_I2C_Read... [00:31:00]Read from MH i2c: E2 62 00 0F 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 76 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 6F 01 00 00 5E 04 04 00 6F 01 00 00 57 04 04 00 70 01 00 00 19 04 04 00 00 00 00 00 90 00 D8 [00:31: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 76 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 6F 01 00 00 5E 04 04 00 6F 01 00 00 57 04 04 00 70 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:31:00]wFMCommunicate OK [00:31:00]SAM_PROTO_GetFieldsCounters done [00:31:00]requested_item shift.num is exist - process it [00:31:00]requested_item shift.opened is exist - process it [00:31:00]req_shift_opened [00:31:00]FM_GetShiftState [00:31:00]SAM_PROTO_GetShiftState [00:31:00]wFMCommunicate request_size=4 [00:31:00]MH_SAM_APDU [00:31:00]CAPDU: 80 13 01 00 [00:31:00]Write to MH i2c: E2 08 00 10 17 80 13 01 00 00 00 00 00 A4 [00:31:00]Write i2c OK [00:31:00]MH_I2C_Read... [00:31:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:31:00]Read from MH i2c: E2 [00:31:00]MH_I2C_Read... [00:31:00]Read from MH i2c: E2 0E 00 [00:31:00]MH_I2C_Read... [00:31:00]Read from MH i2c: E2 0E 00 10 17 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 7D [00:31:00]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [00:31:00]wFMCommunicate OK [00:31:00]SAM_PROTO_GetShiftState done [00:31:00]FM_GetShiftState done [00:31:00]req_shift_opened done [00:31:00]requested_item shift.open_date is exist - process it [00:31:00]req_shift_open_date [00:31:00]req_shift_open_date done [00:31:00]produce_requested_data done [00:31:00]produce_requested_data return {"kkm.sn":"0300000160","kkm.ver":"001","fm.sn":"0000000000874718","fd.num":165494,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [00:31:00]process_action_free get_value [00:31:00]json_value_free [00:31:00]json_value_free done [00:31:00]process_json_proto returns [00:31:00]Send response to host [00:31:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000160","kkm.ver":"001","fm.sn":"0000000000874718","fd.num":165494,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [00:31:00]free response buf [00:31:00]execute_script done [00:31:00]execute_script returns [00:31:00]free content buf [00:31:00]Sock 9.Close socket [00:31:00]Sock 9.Thread stoped [00:31:00]accept exits with 7 [00:31:00]New connection [00:31:00]New thread 3067190628 created [00:31:00]Thread 3067333988 joined [00:31:00]Waiting for new connection... [00:31:00] Sock 7.Parse request [00:31:00]Sock 7.Check first char [00:31:00]Sock 7.First char is OK [00:31:00]request: POST /json_proto HTTP/1.0 [00:31:00]Method: POST [00:31:00]URL: /json_proto [00:31:00]Method is POST - this is cgi request [00:31:00]url: /json_proto [00:31:00]query_string will be loaded in cgi processing [00:31:00]execute_cgi json_proto POST (null) [00:31:00]execute_cgi path=json_proto method=POST [00:31:00]POST find Content-Length [00:31:00]Host: 172.17.56.4:8080 [00:31:00]Content-Length: 331 [00:31:00]Content-Type: application/json [00:31:00] [00:31:00]POST finish read [00:31:00]Found Content-Length = 331 [00:31:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:31:00]execute_script... [00:31:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:31:01]POST & json_proto [00:31:01]process_json_proto [00:31:01]json parsed OK: [00:31:01]protocol is kg_v1.0 [00:31:01]action value=get_value [00:31:01]process_action get_value [00:31:01]cmd_get_value [00:31:01]process_action get_value done [00:31:01]requested_data is exist [00:31:01]produce_requested_data [00:31:01]requested_item fm.sale.total is exist - process it [00:31:01]SAM_PROTO_GetFMData [00:31:01]wFMCommunicate request_size=4 [00:31:01]MH_SAM_APDU [00:31:01]CAPDU: 80 13 03 00 [00:31:01]Write to MH i2c: E2 08 00 11 17 80 13 03 00 00 00 00 00 A7 [00:31:01]Write i2c OK [00:31:01]MH_I2C_Read... [00:31:01]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:31:01]Read from MH i2c: E2 [00:31:01]MH_I2C_Read... [00:31:01]Read from MH i2c: E2 FD 00 [00:31:01]MH_I2C_Read... [00:31:01]Read from MH i2c: E2 FD 00 11 17 00 C4 04 85 04 C0 04 6E 04 04 00 F3 82 02 00 69 04 A3 00 6F 04 04 00 E5 81 02 00 B1 04 05 00 CD 52 D1 5A 02 70 04 05 00 7D EA 33 38 02 72 04 04 00 50 68 9D 22 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 AB 6E 0A 40 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 0D 03 56 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 0E 01 00 00 B1 04 04 00 6C E5 46 03 70 04 04 00 6C E5 46 03 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 23 19 59 EF 03 09 00 90 00 E1 [00:31:01]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 F3 82 02 00 69 04 A3 00 6F 04 04 00 E5 81 02 00 B1 04 05 00 CD 52 D1 5A 02 70 04 05 00 7D EA 33 38 02 72 04 04 00 50 68 9D 22 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 AB 6E 0A 40 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 0D 03 56 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 0E 01 00 00 B1 04 04 00 6C E5 46 03 70 04 04 00 6C E5 46 03 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 23 19 59 EF 03 09 00 90 00 [00:31:01]wFMCommunicate OK [00:31:01]wFMCommunicate request_size=4 [00:31:01]MH_SAM_APDU [00:31:01]CAPDU: 80 17 00 00 [00:31:01]Write to MH i2c: E2 08 00 12 17 80 17 00 00 00 00 00 00 A9 [00:31:01]Write i2c OK [00:31:01]MH_I2C_Read... [00:31:01]OFD Sender: No OFD packet to send [00:31:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:01]Read from MH i2c: E2 [00:31:01]MH_I2C_Read... [00:31:01]Read from MH i2c: E2 FD 00 [00:31:01]MH_I2C_Read... [00:31:01]Read from MH i2c: E2 FD 00 12 17 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B1 6C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 83 [00:31:01]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B1 6C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:31:01]wFMCommunicate OK [00:31:01]wFMCommunicate request_size=4 [00:31:01]MH_SAM_APDU [00:31:01]CAPDU: 80 17 00 00 [00:31:01]Write to MH i2c: E2 08 00 13 17 80 17 00 00 00 00 00 00 AA [00:31:01]Write i2c OK [00:31:01]MH_I2C_Read... [00:31:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:02]Read from MH i2c: E2 [00:31:02]MH_I2C_Read... [00:31:02]Read from MH i2c: E2 FD 00 [00:31:02]MH_I2C_Read... [00:31:02]Read from MH i2c: E2 FD 00 13 17 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BF [00:31:02]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:31:02]wFMCommunicate OK [00:31:02]wFMCommunicate request_size=4 [00:31:02]MH_SAM_APDU [00:31:02]CAPDU: 80 17 00 00 [00:31:02]Write to MH i2c: E2 08 00 14 17 80 17 00 00 00 00 00 00 AB [00:31:02]Write i2c OK [00:31:02]MH_I2C_Read... [00:31:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:02]Read from MH i2c: E2 [00:31:02]MH_I2C_Read... [00:31:02]Read from MH i2c: E2 FD 00 [00:31:02]MH_I2C_Read... [00:31:02]Read from MH i2c: E2 FD 00 14 17 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 23 [00:31:02]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:31:02]wFMCommunicate OK [00:31:02]wFMCommunicate request_size=4 [00:31:02]MH_SAM_APDU [00:31:02]CAPDU: 80 17 00 00 [00:31:02]Write to MH i2c: E2 08 00 15 17 80 17 00 00 00 00 00 00 AC [00:31:02]Write i2c OK [00:31:02]MH_I2C_Read... [00:31:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:31:02]Read from MH i2c: E2 [00:31:02]MH_I2C_Read... [00:31:02]Read from MH i2c: E2 E1 00 [00:31:02]MH_I2C_Read... [00:31:02]Read from MH i2c: E2 E1 00 15 17 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A [00:31:02]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:31:02]wFMCommunicate OK [00:31:02]SAM_PROTO_GetFMData done [00:31:02]requested_item fm.sale_refund.total is exist - process it [00:31:02]requested_item fm.buy.total is exist - process it [00:31:02]requested_item shift.sale.total is exist - process it [00:31:02]SAM_PROTO_GetShiftData [00:31:02]wFMCommunicate request_size=4 [00:31:02]MH_SAM_APDU [00:31:02]CAPDU: 80 13 02 00 [00:31:02]Write to MH i2c: E2 08 00 16 17 80 13 02 00 00 00 00 00 AB [00:31:02]Write i2c OK [00:31:02]MH_I2C_Read... [00:31:03]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:31:03]Read from MH i2c: E2 [00:31:03]MH_I2C_Read... [00:31:03]Read from MH i2c: E2 FD 00 [00:31:03]MH_I2C_Read... [00:31:03]Read from MH i2c: E2 FD 00 16 17 00 B1 04 AA 04 AD 04 6E 04 04 00 6F 01 00 00 69 04 9E 00 6F 04 04 00 6F 01 00 00 B1 04 04 00 48 0D 80 01 70 04 04 00 20 EC 33 01 72 04 03 00 28 21 4C 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 22 CB 28 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 0F 66 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 9A [00:31:03]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 6F 01 00 00 69 04 9E 00 6F 04 04 00 6F 01 00 00 B1 04 04 00 48 0D 80 01 70 04 04 00 20 EC 33 01 72 04 03 00 28 21 4C 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 22 CB 28 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 0F 66 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:31:03]wFMCommunicate OK [00:31:03]wFMCommunicate request_size=4 [00:31:03]MH_SAM_APDU [00:31:03]CAPDU: 80 17 00 00 [00:31:03]Write to MH i2c: E2 08 00 17 17 80 17 00 00 00 00 00 00 AE [00:31:03]Write i2c OK [00:31:03]MH_I2C_Read... [00:31:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:03]Read from MH i2c: E2 [00:31:03]MH_I2C_Read... [00:31:03]Read from MH i2c: E2 FD 00 [00:31:03]MH_I2C_Read... [00:31:03]Read from MH i2c: E2 FD 00 17 17 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C7 [00:31:03]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:31:03]wFMCommunicate OK [00:31:03]wFMCommunicate request_size=4 [00:31:03]MH_SAM_APDU [00:31:03]CAPDU: 80 17 00 00 [00:31:03]Write to MH i2c: E2 08 00 18 17 80 17 00 00 00 00 00 00 AF [00:31:03]Write i2c OK [00:31:03]MH_I2C_Read... [00:31:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:03]Read from MH i2c: E2 [00:31:03]MH_I2C_Read... [00:31:03]Read from MH i2c: E2 FD 00 [00:31:03]MH_I2C_Read... [00:31:03]Read from MH i2c: E2 FD 00 18 17 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 68 [00:31:03]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:31:03]wFMCommunicate OK [00:31:03]wFMCommunicate request_size=4 [00:31:03]MH_SAM_APDU [00:31:03]CAPDU: 80 17 00 00 [00:31:03]Write to MH i2c: E2 08 00 19 17 80 17 00 00 00 00 00 00 B0 [00:31:03]Write i2c OK [00:31:03]MH_I2C_Read... [00:31:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:04]Read from MH i2c: E2 [00:31:04]MH_I2C_Read... [00:31:04]Read from MH i2c: E2 FD 00 [00:31:04]MH_I2C_Read... [00:31:04]Read from MH i2c: E2 FD 00 19 17 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 90 00 28 [00:31:04]RAPDU: 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 90 00 [00:31:04]wFMCommunicate OK [00:31:04]wFMCommunicate request_size=4 [00:31:04]MH_SAM_APDU [00:31:04]CAPDU: 80 17 00 00 [00:31:04]Write to MH i2c: E2 08 00 1A 17 80 17 00 00 00 00 00 00 B1 [00:31:04]Write i2c OK [00:31:04]MH_I2C_Read... [00:31:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:31:04]Read from MH i2c: E2 [00:31:04]MH_I2C_Read... [00:31:04]Read from MH i2c: E2 CE 00 [00:31:04]MH_I2C_Read... [00:31:04]Read from MH i2c: E2 CE 00 1A 17 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 96 [00:31:04]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:31:04]wFMCommunicate OK [00:31:04]SAM_PROTO_GetShiftData done [00:31:04]requested_item shift.sale.total_cash is exist - process it [00:31:04]requested_item shift.sale_refund.total is exist - process it [00:31:04]requested_item shift.sale_refund.total_cash is exist - process it [00:31:04]requested_item shift.buy.total is exist - process it [00:31:04]requested_item shift.buy.total_cash is exist - process it [00:31:04]produce_requested_data done [00:31:04]produce_requested_data return {"fm.sale.total":101136022.53,"fm.sale_refund.total":549779.00,"fm.buy.total":0.00,"shift.sale.total":251692.24,"shift.sale.total_cash":201800.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:31:04]process_action_free get_value [00:31:04]json_value_free [00:31:04]json_value_free done [00:31:04]process_json_proto returns [00:31:04]Send response to host [00:31:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":101136022.53,"fm.sale_refund.total":549779.00,"fm.buy.total":0.00,"shift.sale.total":251692.24,"shift.sale.total_cash":201800.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:31:04]free response buf [00:31:04]execute_script done [00:31:04]execute_script returns [00:31:04]free content buf [00:31:04]Sock 7.Close socket [00:31:04]Sock 7.Thread stoped [00:31:04]accept exits with 9 [00:31:04]New connection [00:31:04]New thread 3067333988 created [00:31:04]Thread 3067190628 joined [00:31:04]Waiting for new connection... [00:31:04] Sock 9.Parse request [00:31:04]Sock 9.Check first char [00:31:04]Sock 9.First char is OK [00:31:04]request: POST /json_proto HTTP/1.0 [00:31:04]Method: POST [00:31:04]URL: /json_proto [00:31:04]Method is POST - this is cgi request [00:31:04]url: /json_proto [00:31:04]query_string will be loaded in cgi processing [00:31:04]execute_cgi json_proto POST (null) [00:31:04]execute_cgi path=json_proto method=POST [00:31:04]POST find Content-Length [00:31:04]Host: 172.17.56.4:8080 [00:31:04]Content-Length: 331 [00:31:04]Content-Type: application/json [00:31:04] [00:31:04]POST finish read [00:31:04]Found Content-Length = 331 [00:31: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" ] } } [00:31:04]execute_script... [00:31: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" ] } } [00:31:04]POST & json_proto [00:31:04]process_json_proto [00:31:04]json parsed OK: [00:31:04]protocol is kg_v1.0 [00:31:04]action value=get_value [00:31:04]process_action get_value [00:31:04]cmd_get_value [00:31:04]process_action get_value done [00:31:04]requested_data is exist [00:31:04]produce_requested_data [00:31:04]requested_item fm.sale.total is exist - process it [00:31:04]SAM_PROTO_GetFMData [00:31:04]wFMCommunicate request_size=4 [00:31:04]MH_SAM_APDU [00:31:04]CAPDU: 80 13 03 00 [00:31:04]Write to MH i2c: E2 08 00 1B 17 80 13 03 00 00 00 00 00 B1 [00:31:04]Write i2c OK [00:31:04]MH_I2C_Read... [00:31:04]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:31:04]Read from MH i2c: E2 [00:31:04]MH_I2C_Read... [00:31:04]Read from MH i2c: E2 FD 00 [00:31:04]MH_I2C_Read... [00:31:04]Read from MH i2c: E2 FD 00 1B 17 00 C4 04 85 04 C0 04 6E 04 04 00 F3 82 02 00 69 04 A3 00 6F 04 04 00 E5 81 02 00 B1 04 05 00 CD 52 D1 5A 02 70 04 05 00 7D EA 33 38 02 72 04 04 00 50 68 9D 22 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 AB 6E 0A 40 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 0D 03 56 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 0E 01 00 00 B1 04 04 00 6C E5 46 03 70 04 04 00 6C E5 46 03 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 23 19 59 EF 03 09 00 90 00 EB [00:31:04]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 F3 82 02 00 69 04 A3 00 6F 04 04 00 E5 81 02 00 B1 04 05 00 CD 52 D1 5A 02 70 04 05 00 7D EA 33 38 02 72 04 04 00 50 68 9D 22 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 AB 6E 0A 40 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 0D 03 56 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 0E 01 00 00 B1 04 04 00 6C E5 46 03 70 04 04 00 6C E5 46 03 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 23 19 59 EF 03 09 00 90 00 [00:31:04]wFMCommunicate OK [00:31:04]wFMCommunicate request_size=4 [00:31:04]MH_SAM_APDU [00:31:04]CAPDU: 80 17 00 00 [00:31:04]Write to MH i2c: E2 08 00 1C 17 80 17 00 00 00 00 00 00 B3 [00:31:04]Write i2c OK [00:31:04]MH_I2C_Read... [00:31:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:05]Read from MH i2c: E2 [00:31:05]MH_I2C_Read... [00:31:05]Read from MH i2c: E2 FD 00 [00:31:05]MH_I2C_Read... [00:31:05]Read from MH i2c: E2 FD 00 1C 17 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B1 6C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 8D [00:31:05]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B1 6C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:31:05]wFMCommunicate OK [00:31:05]wFMCommunicate request_size=4 [00:31:05]MH_SAM_APDU [00:31:05]CAPDU: 80 17 00 00 [00:31:05]Write to MH i2c: E2 08 00 1D 17 80 17 00 00 00 00 00 00 B4 [00:31:05]Write i2c OK [00:31:05]MH_I2C_Read... [00:31:05]Read from MH i2c: E2 [00:31:05]MH_I2C_Read... [00:31:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:05]Read from MH i2c: E2 FD 00 [00:31:05]MH_I2C_Read... [00:31:05]Read from MH i2c: E2 FD 00 1D 17 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C9 [00:31:05]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:31:05]wFMCommunicate OK [00:31:05]wFMCommunicate request_size=4 [00:31:05]MH_SAM_APDU [00:31:05]CAPDU: 80 17 00 00 [00:31:05]Write to MH i2c: E2 08 00 1E 17 80 17 00 00 00 00 00 00 B5 [00:31:05]Write i2c OK [00:31:05]MH_I2C_Read... [00:31:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:05]Read from MH i2c: E2 [00:31:05]MH_I2C_Read... [00:31:05]Read from MH i2c: E2 FD 00 [00:31:05]MH_I2C_Read... [00:31:05]Read from MH i2c: E2 FD 00 1E 17 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2D [00:31:06]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:31:06]wFMCommunicate OK [00:31:06]wFMCommunicate request_size=4 [00:31:06]MH_SAM_APDU [00:31:06]CAPDU: 80 17 00 00 [00:31:06]Write to MH i2c: E2 08 00 1F 17 80 17 00 00 00 00 00 00 B6 [00:31:06]Write i2c OK [00:31:06]MH_I2C_Read... [00:31:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:31:06]Read from MH i2c: E2 [00:31:06]MH_I2C_Read... [00:31:06]Read from MH i2c: E2 E1 00 [00:31:06]MH_I2C_Read... [00:31:06]Read from MH i2c: E2 E1 00 1F 17 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A4 [00:31:06]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:31:06]wFMCommunicate OK [00:31:06]SAM_PROTO_GetFMData done [00:31:06]requested_item fm.sale_refund.total is exist - process it [00:31:06]requested_item fm.buy.total is exist - process it [00:31:06]requested_item shift.sale.total is exist - process it [00:31:06]SAM_PROTO_GetShiftData [00:31:06]wFMCommunicate request_size=4 [00:31:06]MH_SAM_APDU [00:31:06]CAPDU: 80 13 02 00 [00:31:06]Write to MH i2c: E2 08 00 20 17 80 13 02 00 00 00 00 00 B5 [00:31:06]Write i2c OK [00:31:06]MH_I2C_Read... [00:31:06]OFD Sender: No OFD packet to send [00:31:06]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:31:06]Read from MH i2c: E2 [00:31:06]MH_I2C_Read... [00:31:06]Read from MH i2c: E2 FD 00 [00:31:06]MH_I2C_Read... [00:31:06]Read from MH i2c: E2 FD 00 20 17 00 B1 04 AA 04 AD 04 6E 04 04 00 6F 01 00 00 69 04 9E 00 6F 04 04 00 6F 01 00 00 B1 04 04 00 48 0D 80 01 70 04 04 00 20 EC 33 01 72 04 03 00 28 21 4C 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 22 CB 28 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 0F 66 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 A4 [00:31:06]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 6F 01 00 00 69 04 9E 00 6F 04 04 00 6F 01 00 00 B1 04 04 00 48 0D 80 01 70 04 04 00 20 EC 33 01 72 04 03 00 28 21 4C 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 22 CB 28 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 0F 66 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:31:07]wFMCommunicate OK [00:31:07]wFMCommunicate request_size=4 [00:31:07]MH_SAM_APDU [00:31:07]CAPDU: 80 17 00 00 [00:31:07]Write to MH i2c: E2 08 00 21 17 80 17 00 00 00 00 00 00 B8 [00:31:07]Write i2c OK [00:31:07]MH_I2C_Read... [00:31:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:07]Read from MH i2c: E2 [00:31:07]MH_I2C_Read... [00:31:07]Read from MH i2c: E2 FD 00 [00:31:07]MH_I2C_Read... [00:31:07]Read from MH i2c: E2 FD 00 21 17 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D1 [00:31:07]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:31:07]wFMCommunicate OK [00:31:07]wFMCommunicate request_size=4 [00:31:07]MH_SAM_APDU [00:31:07]CAPDU: 80 17 00 00 [00:31:07]Write to MH i2c: E2 08 00 22 17 80 17 00 00 00 00 00 00 B9 [00:31:07]Write i2c OK [00:31:07]MH_I2C_Read... [00:31:07]Read from MH i2c: E2 [00:31:07]MH_I2C_Read... [00:31:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:07]Read from MH i2c: E2 FD 00 [00:31:07]MH_I2C_Read... [00:31:07]Read from MH i2c: E2 FD 00 22 17 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 72 [00:31:07]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:31:07]wFMCommunicate OK [00:31:07]wFMCommunicate request_size=4 [00:31:07]MH_SAM_APDU [00:31:07]CAPDU: 80 17 00 00 [00:31:07]Write to MH i2c: E2 08 00 23 17 80 17 00 00 00 00 00 00 BA [00:31:07]Write i2c OK [00:31:07]MH_I2C_Read... [00:31:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:08]Read from MH i2c: E2 [00:31:08]MH_I2C_Read... [00:31:08]Read from MH i2c: E2 FD 00 [00:31:08]MH_I2C_Read... [00:31:08]Read from MH i2c: E2 FD 00 23 17 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 90 00 32 [00:31:08]RAPDU: 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 90 00 [00:31:08]wFMCommunicate OK [00:31:08]wFMCommunicate request_size=4 [00:31:08]MH_SAM_APDU [00:31:08]CAPDU: 80 17 00 00 [00:31:08]Write to MH i2c: E2 08 00 24 17 80 17 00 00 00 00 00 00 BB [00:31:08]Write i2c OK [00:31:08]MH_I2C_Read... [00:31:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:31:08]Read from MH i2c: E2 [00:31:08]MH_I2C_Read... [00:31:08]Read from MH i2c: E2 CE 00 [00:31:08]MH_I2C_Read... [00:31:08]Read from MH i2c: E2 CE 00 24 17 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 A0 [00:31:08]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:31:08]wFMCommunicate OK [00:31:08]SAM_PROTO_GetShiftData done [00:31:08]requested_item shift.sale.total_cash is exist - process it [00:31:08]requested_item shift.sale_refund.total is exist - process it [00:31:08]requested_item shift.sale_refund.total_cash is exist - process it [00:31:08]requested_item shift.buy.total is exist - process it [00:31:08]requested_item shift.buy.total_cash is exist - process it [00:31:08]produce_requested_data done [00:31:08]produce_requested_data return {"fm.sale.total":101136022.53,"fm.sale_refund.total":549779.00,"fm.buy.total":0.00,"shift.sale.total":251692.24,"shift.sale.total_cash":201800.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:31:08]process_action_free get_value [00:31:08]json_value_free [00:31:08]json_value_free done [00:31:08]process_json_proto returns [00:31:08]Send response to host [00:31:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":101136022.53,"fm.sale_refund.total":549779.00,"fm.buy.total":0.00,"shift.sale.total":251692.24,"shift.sale.total_cash":201800.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:31:08]free response buf [00:31:08]execute_script done [00:31:08]execute_script returns [00:31:08]free content buf [00:31:08]Sock 9.Close socket [00:31:08]Sock 9.Thread stoped [00:31:08]accept exits with 7 [00:31:08]New connection [00:31:08]New thread 3067190628 created [00:31:08]Thread 3067333988 joined [00:31:08]Waiting for new connection... [00:31:08] Sock 7.Parse request [00:31:08]Sock 7.Check first char [00:31:08]Sock 7.First char is OK [00:31:08]request: POST /json_proto HTTP/1.0 [00:31:08]Method: POST [00:31:08]URL: /json_proto [00:31:08]Method is POST - this is cgi request [00:31:08]url: /json_proto [00:31:08]query_string will be loaded in cgi processing [00:31:08]execute_cgi json_proto POST (null) [00:31:08]execute_cgi path=json_proto method=POST [00:31:08]POST find Content-Length [00:31:08]Host: 172.17.56.4:8080 [00:31:08]Content-Length: 251 [00:31:08]Content-Type: application/json [00:31:08] [00:31:08]POST finish read [00:31:08]Found Content-Length = 251 [00:31:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0421\u0430\u0434\u044B\u043A\u043E\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:31:08]execute_script... [00:31:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0421\u0430\u0434\u044B\u043A\u043E\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:31:08]POST & json_proto [00:31:08]process_json_proto [00:31:08]json parsed OK: [00:31:08]protocol is kg_v1.0 [00:31:08]action value=x_report [00:31:08]process_action x_report [00:31:08]cmd_x_report [00:31:08]MH_GetDate [00:31:08]Write to MH i2c: F0 00 00 25 17 2B [00:31:08]Write i2c OK [00:31:08]MH_I2C_Read... [00:31:08]Read from MH i2c: F0 [00:31:08]MH_I2C_Read... [00:31:08]Read from MH i2c: F0 09 00 [00:31:08]MH_I2C_Read... [00:31:08]Read from MH i2c: F0 09 00 25 17 00 4E BF 95 66 C9 DC B2 64 F7 [00:31:08]GetLastDocTimeStamp 1721089219 [00:31:08]current date 1721089870 [00:31:08]FM_GetShiftState [00:31:08]SAM_PROTO_GetShiftState [00:31:08]wFMCommunicate request_size=4 [00:31:08]MH_SAM_APDU [00:31:08]CAPDU: 80 13 01 00 [00:31:08]Write to MH i2c: E2 08 00 26 17 80 13 01 00 00 00 00 00 BA [00:31:08]Write i2c OK [00:31:08]MH_I2C_Read... [00:31:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:31:08]Read from MH i2c: E2 [00:31:08]MH_I2C_Read... [00:31:08]Read from MH i2c: E2 0E 00 [00:31:08]MH_I2C_Read... [00:31:08]Read from MH i2c: E2 0E 00 26 17 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 93 [00:31:08]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [00:31:08]wFMCommunicate OK [00:31:08]SAM_PROTO_GetShiftState done [00:31:08]FM_GetShiftState done [00:31:08]KKMCreateXReportDocument [00:31:08]Load OK [00:31:08]Malloc new data [00:31:08]MH_GetDate [00:31:08]Write to MH i2c: F0 00 00 27 17 2D [00:31:08]Write i2c OK [00:31:08]MH_I2C_Read... [00:31:08]Read from MH i2c: F0 [00:31:08]MH_I2C_Read... [00:31:08]Read from MH i2c: F0 09 00 [00:31:08]MH_I2C_Read... [00:31:08]Read from MH i2c: F0 09 00 27 17 00 4E BF 95 66 C9 DC B2 64 F9 [00:31:08]Malloc new data [00:31:08]Malloc new data [00:31:08]wFMCommunicate request_size=4 [00:31:08]MH_SAM_APDU [00:31:08]CAPDU: 80 11 00 00 [00:31:08]Write to MH i2c: E2 08 00 28 17 80 11 00 00 00 00 00 00 B9 [00:31:08]Write i2c OK [00:31:08]MH_I2C_Read... [00:31:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:31:08]Read from MH i2c: E2 [00:31:08]MH_I2C_Read... [00:31:08]Read from MH i2c: E2 17 00 [00:31:08]MH_I2C_Read... [00:31:08]Read from MH i2c: E2 17 00 28 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 0F [00:31:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [00:31:08]wFMCommunicate OK [00:31:08]SAM_PROTO_GetFieldsCounters [00:31:08]wFMCommunicate request_size=4 [00:31:08]MH_SAM_APDU [00:31:08]CAPDU: 80 13 00 00 [00:31:08]Write to MH i2c: E2 08 00 29 17 80 13 00 00 00 00 00 00 BC [00:31:08]Write i2c OK [00:31:08]MH_I2C_Read... [00:31:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:31:09]Read from MH i2c: E2 [00:31:09]MH_I2C_Read... [00:31:09]Read from MH i2c: E2 62 00 [00:31:09]MH_I2C_Read... [00:31:09]Read from MH i2c: E2 62 00 29 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 76 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 6F 01 00 00 5E 04 04 00 6F 01 00 00 57 04 04 00 70 01 00 00 19 04 04 00 00 00 00 00 90 00 F2 [00:31: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 76 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 6F 01 00 00 5E 04 04 00 6F 01 00 00 57 04 04 00 70 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:31:09]wFMCommunicate OK [00:31:09]SAM_PROTO_GetFieldsCounters done [00:31:09]Malloc new data [00:31:09]Malloc new data [00:31:09]Malloc new data [00:31:09]KKMCreateXReportDocument OK [00:31:09]KKMSetXReportData OK [00:31:09]KKMPrepareXReportFMData [00:31:09]SAM_PROTO_GetShiftData [00:31:09]wFMCommunicate request_size=4 [00:31:09]MH_SAM_APDU [00:31:09]CAPDU: 80 13 02 00 [00:31:09]Write to MH i2c: E2 08 00 2A 17 80 13 02 00 00 00 00 00 BF [00:31:09]Write i2c OK [00:31:09]MH_I2C_Read... [00:31:09]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:31:09]Read from MH i2c: E2 [00:31:09]MH_I2C_Read... [00:31:09]Read from MH i2c: E2 FD 00 [00:31:09]MH_I2C_Read... [00:31:09]Read from MH i2c: E2 FD 00 2A 17 00 B1 04 AA 04 AD 04 6E 04 04 00 6F 01 00 00 69 04 9E 00 6F 04 04 00 6F 01 00 00 B1 04 04 00 48 0D 80 01 70 04 04 00 20 EC 33 01 72 04 03 00 28 21 4C 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 22 CB 28 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 0F 66 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 AE [00:31:09]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 6F 01 00 00 69 04 9E 00 6F 04 04 00 6F 01 00 00 B1 04 04 00 48 0D 80 01 70 04 04 00 20 EC 33 01 72 04 03 00 28 21 4C 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 22 CB 28 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 0F 66 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:31:09]wFMCommunicate OK [00:31:09]wFMCommunicate request_size=4 [00:31:09]MH_SAM_APDU [00:31:09]CAPDU: 80 17 00 00 [00:31:09]Write to MH i2c: E2 08 00 2B 17 80 17 00 00 00 00 00 00 C2 [00:31:09]Write i2c OK [00:31:09]MH_I2C_Read... [00:31:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:10]Read from MH i2c: E2 [00:31:10]MH_I2C_Read... [00:31:10]Read from MH i2c: E2 FD 00 [00:31:10]MH_I2C_Read... [00:31:10]Read from MH i2c: E2 FD 00 2B 17 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DB [00:31:10]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:31:10]wFMCommunicate OK [00:31:10]wFMCommunicate request_size=4 [00:31:10]MH_SAM_APDU [00:31:10]CAPDU: 80 17 00 00 [00:31:10]Write to MH i2c: E2 08 00 2C 17 80 17 00 00 00 00 00 00 C3 [00:31:10]Write i2c OK [00:31:10]MH_I2C_Read... [00:31:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:10]Read from MH i2c: E2 [00:31:10]MH_I2C_Read... [00:31:10]Read from MH i2c: E2 FD 00 [00:31:10]MH_I2C_Read... [00:31:10]Read from MH i2c: E2 FD 00 2C 17 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 7C [00:31:10]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:31:10]wFMCommunicate OK [00:31:10]wFMCommunicate request_size=4 [00:31:10]MH_SAM_APDU [00:31:10]CAPDU: 80 17 00 00 [00:31:10]Write to MH i2c: E2 08 00 2D 17 80 17 00 00 00 00 00 00 C4 [00:31:10]Write i2c OK [00:31:10]MH_I2C_Read... [00:31:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:11]Read from MH i2c: E2 [00:31:11]MH_I2C_Read... [00:31:11]Read from MH i2c: E2 FD 00 [00:31:11]MH_I2C_Read... [00:31:11]Read from MH i2c: E2 FD 00 2D 17 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 90 00 3C [00:31:11]RAPDU: 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 90 00 [00:31:11]wFMCommunicate OK [00:31:11]wFMCommunicate request_size=4 [00:31:11]MH_SAM_APDU [00:31:11]CAPDU: 80 17 00 00 [00:31:11]Write to MH i2c: E2 08 00 2E 17 80 17 00 00 00 00 00 00 C5 [00:31:11]Write i2c OK [00:31:11]MH_I2C_Read... [00:31:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:31:11]Read from MH i2c: E2 [00:31:11]MH_I2C_Read... [00:31:11]Read from MH i2c: E2 CE 00 [00:31:11]MH_I2C_Read... [00:31:11]Read from MH i2c: E2 CE 00 2E 17 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 AA [00:31:11]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:31:11]wFMCommunicate OK [00:31:11]SAM_PROTO_GetShiftData done [00:31:11]1194 (1197) - счетчики итогов смены [00:31:11] 1134 (4) - 367 - количество чеков со всеми признаками расчетов [00:31:11] 1129 (158) - счетчики операций «приход» [00:31:11] 1135 (4) - 367 - количество чеков по признаку расчетов [00:31:11] 1201 (4) - 251692.24 - общая итоговая сумма в чеках [00:31:11] 1136 (4) - 201800.00 - итоговая сумма в чеках наличными [00:31:11] 1138 (3) - 49892.24 - итоговая сумма в чеках безналичными [00:31:11] 1024 (123) - суммы налогов [00:31:11] 1006 (9) - суммы НДС [00:31:11] 1010 (1) - 0% - код ставки НДС [00:31:11] 1011 (0) - 0.00 - сумма НДС по ставке [00:31:11] 1006 (12) - суммы НДС [00:31:11] 1010 (1) - 12% - код ставки НДС [00:31:11] 1011 (3) - 26734.42 - сумма НДС по ставке [00:31:11] 1007 (9) - суммы НСП [00:31:11] 1014 (1) - 0% - код ставки НСП [00:31:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:11] 1007 (12) - суммы НСП [00:31:11] 1014 (1) - 1% - код ставки НСП [00:31:11] 1015 (3) - 2227.35 - сумма НСП по ставке [00:31:11] 1007 (9) - суммы НСП [00:31:11] 1014 (1) - 2% - код ставки НСП [00:31:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:11] 1007 (9) - суммы НСП [00:31:11] 1014 (1) - 3% - код ставки НСП [00:31:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:11] 1007 (9) - суммы НСП [00:31:11] 1014 (1) - 5% - код ставки НСП [00:31:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:11] 1007 (9) - суммы НСП [00:31:11] 1014 (1) - 0,50% - код ставки НСП [00:31:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:11] 1007 (9) - суммы НСП [00:31:11] 1014 (1) - 1,50% - код ставки НСП [00:31:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:11] 1130 (141) - счетчики операций «возврат прихода» [00:31:11] 1135 (4) - 0 - количество чеков по признаку расчетов [00:31:11] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:31:11] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:31:11] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:31:11] 1024 (117) - суммы налогов [00:31:11] 1006 (9) - суммы НДС [00:31:11] 1010 (1) - 0% - код ставки НДС [00:31:11] 1011 (0) - 0.00 - сумма НДС по ставке [00:31:11] 1006 (9) - суммы НДС [00:31:11] 1010 (1) - 12% - код ставки НДС [00:31:11] 1011 (0) - 0.00 - сумма НДС по ставке [00:31:11] 1007 (9) - суммы НСП [00:31:11] 1014 (1) - 0% - код ставки НСП [00:31:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:11] 1007 (9) - суммы НСП [00:31:11] 1014 (1) - 1% - код ставки НСП [00:31:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:11] 1007 (9) - суммы НСП [00:31:11] 1014 (1) - 2% - код ставки НСП [00:31:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:11] 1007 (9) - суммы НСП [00:31:11] 1014 (1) - 3% - код ставки НСП [00:31:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:11] 1007 (9) - суммы НСП [00:31:11] 1014 (1) - 5% - код ставки НСП [00:31:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:11] 1007 (9) - суммы НСП [00:31:11] 1014 (1) - 0,50% - код ставки НСП [00:31:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:11] 1007 (9) - суммы НСП [00:31:11] 1014 (1) - 1,50% - код ставки НСП [00:31:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:11] 1131 (141) - счетчики операций «расход» [00:31:11] 1135 (4) - 0 - количество чеков по признаку расчетов [00:31:11] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:31:11] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:31:11] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:31:11] 1024 (117) - суммы налогов [00:31:11] 1006 (9) - суммы НДС [00:31:11] 1010 (1) - 0% - код ставки НДС [00:31:11] OFD Sender: No OFD packet to send [00:31:11]1011 (0) - 0.00 - сумма НДС по ставке [00:31:11] 1006 (9) - суммы НДС [00:31:11] 1010 (1) - 12% - код ставки НДС [00:31:11] 1011 (0) - 0.00 - сумма НДС по ставке [00:31:11] 1007 (9) - суммы НСП [00:31:11] 1014 (1) - 0% - код ставки НСП [00:31:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:11] 1007 (9) - суммы НСП [00:31:11] 1014 (1) - 1% - код ставки НСП [00:31:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:11] 1007 (9) - суммы НСП [00:31:11] 1014 (1) - 2% - код ставки НСП [00:31:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:11] 1007 (9) - суммы НСП [00:31:11] 1014 (1) - 3% - код ставки НСП [00:31:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:11] 1007 (9) - суммы НСП [00:31:11] 1014 (1) - 5% - код ставки НСП [00:31:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:11] 1007 (9) - суммы НСП [00:31:11] 1014 (1) - 0,50% - код ставки НСП [00:31:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:11] 1007 (9) - суммы НСП [00:31:11] 1014 (1) - 1,50% - код ставки НСП [00:31:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:11] 1132 (141) - счетчики операций «возврат расхода» [00:31:11] 1135 (4) - 0 - количество чеков по признаку расчетов [00:31:11] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:31:11] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:31:11] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:31:11] 1024 (117) - суммы налогов [00:31:11] 1006 (9) - суммы НДС [00:31:11] 1010 (1) - 0% - код ставки НДС [00:31:11] 1011 (0) - 0.00 - сумма НДС по ставке [00:31:11] 1006 (9) - суммы НДС [00:31:11] 1010 (1) - 12% - код ставки НДС [00:31:11] 1011 (0) - 0.00 - сумма НДС по ставке [00:31:11] 1007 (9) - суммы НСП [00:31:11] 1014 (1) - 0% - код ставки НСП [00:31:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:11] 1007 (9) - суммы НСП [00:31:11] 1014 (1) - 1% - код ставки НСП [00:31:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:11] 1007 (9) - суммы НСП [00:31:11] 1014 (1) - 2% - код ставки НСП [00:31:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:11] 1007 (9) - суммы НСП [00:31:11] 1014 (1) - 3% - код ставки НСП [00:31:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:11] 1007 (9) - суммы НСП [00:31:11] 1014 (1) - 5% - код ставки НСП [00:31:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:11] 1007 (9) - суммы НСП [00:31:11] 1014 (1) - 0,50% - код ставки НСП [00:31:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:11] 1007 (9) - суммы НСП [00:31:11] 1014 (1) - 1,50% - код ставки НСП [00:31:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:31:11] 1133 (588) - - счетчики коррекции - не используются [00:31:11]SetTLVBufToDocument [00:31:11]Processing tag 1194 (04AA) [00:31:11]Load OK [00:31:11]SetTLVBufToDocument [00:31:11]Processing tag 1134 (046E) [00:31:11]Malloc new data [00:31:11]Processing tag 1129 (0469) [00:31:11]Load OK [00:31:11]SetTLVBufToDocument [00:31:11]Processing tag 1135 (046F) [00:31:11]Malloc new data [00:31:11]Processing tag 1201 (04B1) [00:31:11]Malloc new data [00:31:11]Processing tag 1136 (0470) [00:31:11]Malloc new data [00:31:11]Processing tag 1138 (0472) [00:31:11]Malloc new data [00:31:11]Processing tag 1024 (0400) [00:31:11]Load OK [00:31:11]SetTLVBufToDocument [00:31:11]Processing tag 1006 (03EE) [00:31:11]Load OK [00:31:11]SetTLVBufToDocument [00:31:11]Processing tag 1010 (03F2) [00:31:11]Malloc new data [00:31:11]Processing tag 1011 (03F3) [00:31:11]Malloc new data [00:31:12]SetTLVBufToDocument err=0 [00:31:12]Processing tag 1006 (03EE) [00:31:12]Load OK [00:31:12]SetTLVBufToDocument [00:31:12]Processing tag 1010 (03F2) [00:31:12]Malloc new data [00:31:12]Processing tag 1011 (03F3) [00:31:12]Malloc new data [00:31:12]SetTLVBufToDocument err=0 [00:31:12]Processing tag 1007 (03EF) [00:31:12]Load OK [00:31:12]SetTLVBufToDocument [00:31:12]Processing tag 1014 (03F6) [00:31:12]Malloc new data [00:31:12]Processing tag 1015 (03F7) [00:31:12]Malloc new data [00:31:12]SetTLVBufToDocument err=0 [00:31:12]Processing tag 1007 (03EF) [00:31:12]Load OK [00:31:12]SetTLVBufToDocument [00:31:12]Processing tag 1014 (03F6) [00:31:12]Malloc new data [00:31:12]Processing tag 1015 (03F7) [00:31:12]Malloc new data [00:31:12]SetTLVBufToDocument err=0 [00:31:12]Processing tag 1007 (03EF) [00:31:12]Load OK [00:31:12]SetTLVBufToDocument [00:31:12]Processing tag 1014 (03F6) [00:31:12]Malloc new data [00:31:12]Processing tag 1015 (03F7) [00:31:12]Malloc new data [00:31:12]SetTLVBufToDocument err=0 [00:31:12]Processing tag 1007 (03EF) [00:31:12]Load OK [00:31:12]SetTLVBufToDocument [00:31:12]Processing tag 1014 (03F6) [00:31:12]Malloc new data [00:31:12]Processing tag 1015 (03F7) [00:31:12]Malloc new data [00:31:12]SetTLVBufToDocument err=0 [00:31:12]Processing tag 1007 (03EF) [00:31:12]Load OK [00:31:12]SetTLVBufToDocument [00:31:12]Processing tag 1014 (03F6) [00:31:12]Malloc new data [00:31:12]Processing tag 1015 (03F7) [00:31:12]Malloc new data [00:31:12]SetTLVBufToDocument err=0 [00:31:12]Processing tag 1007 (03EF) [00:31:12]Load OK [00:31:12]SetTLVBufToDocument [00:31:12]Processing tag 1014 (03F6) [00:31:12]Malloc new data [00:31:12]Processing tag 1015 (03F7) [00:31:12]Malloc new data [00:31:12]SetTLVBufToDocument err=0 [00:31:12]Processing tag 1007 (03EF) [00:31:12]Load OK [00:31:12]SetTLVBufToDocument [00:31:12]Processing tag 1014 (03F6) [00:31:12]Malloc new data [00:31:12]Processing tag 1015 (03F7) [00:31:12]Malloc new data [00:31:12]SetTLVBufToDocument err=0 [00:31:12]SetTLVBufToDocument err=0 [00:31:12]SetTLVBufToDocument err=0 [00:31:12]Processing tag 1130 (046A) [00:31:12]Load OK [00:31:12]SetTLVBufToDocument [00:31:12]Processing tag 1135 (046F) [00:31:12]Malloc new data [00:31:12]Processing tag 1201 (04B1) [00:31:12]Malloc new data [00:31:12]Processing tag 1136 (0470) [00:31:12]Malloc new data [00:31:12]Processing tag 1138 (0472) [00:31:12]Malloc new data [00:31:12]Processing tag 1024 (0400) [00:31:12]Load OK [00:31:12]SetTLVBufToDocument [00:31:12]Processing tag 1006 (03EE) [00:31:12]Load OK [00:31:12]SetTLVBufToDocument [00:31:12]Processing tag 1010 (03F2) [00:31:12]Malloc new data [00:31:12]Processing tag 1011 (03F3) [00:31:12]Malloc new data [00:31:12]SetTLVBufToDocument err=0 [00:31:12]Processing tag 1006 (03EE) [00:31:12]Load OK [00:31:12]SetTLVBufToDocument [00:31:12]Processing tag 1010 (03F2) [00:31:12]Malloc new data [00:31:12]Processing tag 1011 (03F3) [00:31:12]Malloc new data [00:31:12]SetTLVBufToDocument err=0 [00:31:12]Processing tag 1007 (03EF) [00:31:12]Load OK [00:31:12]SetTLVBufToDocument [00:31:12]Processing tag 1014 (03F6) [00:31:12]Malloc new data [00:31:12]Processing tag 1015 (03F7) [00:31:12]Malloc new data [00:31:12]SetTLVBufToDocument err=0 [00:31:12]Processing tag 1007 (03EF) [00:31:12]Load OK [00:31:12]SetTLVBufToDocument [00:31:12]Processing tag 1014 (03F6) [00:31:12]Malloc new data [00:31:12]Processing tag 1015 (03F7) [00:31:12]Malloc new data [00:31:12]SetTLVBufToDocument err=0 [00:31:12]Processing tag 1007 (03EF) [00:31:12]Load OK [00:31:12]SetTLVBufToDocument [00:31:12]Processing tag 1014 (03F6) [00:31:12]Malloc new data [00:31:12]Processing tag 1015 (03F7) [00:31:12]Malloc new data [00:31:12]SetTLVBufToDocument err=0 [00:31:12]Processing tag 1007 (03EF) [00:31:12]Load OK [00:31:12]SetTLVBufToDocument [00:31:12]Processing tag 1014 (03F6) [00:31:12]Malloc new data [00:31:12]Processing tag 1015 (03F7) [00:31:12]Malloc new data [00:31:12]SetTLVBufToDocument err=0 [00:31:12]Processing tag 1007 (03EF) [00:31:12]Load OK [00:31:12]SetTLVBufToDocument [00:31:12]Processing tag 1014 (03F6) [00:31:12]Malloc new data [00:31:12]Processing tag 1015 (03F7) [00:31:12]Malloc new data [00:31:12]SetTLVBufToDocument err=0 [00:31:12]Processing tag 1007 (03EF) [00:31:12]Load OK [00:31:12]SetTLVBufToDocument [00:31:12]Processing tag 1014 (03F6) [00:31:12]Malloc new data [00:31:12]Processing tag 1015 (03F7) [00:31:12]Malloc new data [00:31:12]SetTLVBufToDocument err=0 [00:31:12]Processing tag 1007 (03EF) [00:31:12]Load OK [00:31:12]SetTLVBufToDocument [00:31:12]Processing tag 1014 (03F6) [00:31:12]Malloc new data [00:31:12]Processing tag 1015 (03F7) [00:31:12]Malloc new data [00:31:12]SetTLVBufToDocument err=0 [00:31:12]SetTLVBufToDocument err=0 [00:31:12]SetTLVBufToDocument err=0 [00:31:12]Processing tag 1131 (046B) [00:31:12]Load OK [00:31:12]SetTLVBufToDocument [00:31:12]Processing tag 1135 (046F) [00:31:12]Malloc new data [00:31:12]Processing tag 1201 (04B1) [00:31:12]Malloc new data [00:31:12]Processing tag 1136 (0470) [00:31:12]Malloc new data [00:31:12]Processing tag 1138 (0472) [00:31:12]Malloc new data [00:31:12]Processing tag 1024 (0400) [00:31:12]Load OK [00:31:12]SetTLVBufToDocument [00:31:12]Processing tag 1006 (03EE) [00:31:12]Load OK [00:31:12]SetTLVBufToDocument [00:31:12]Processing tag 1010 (03F2) [00:31:12]Malloc new data [00:31:12]Processing tag 1011 (03F3) [00:31:12]Malloc new data [00:31:12]SetTLVBufToDocument err=0 [00:31:12]Processing tag 1006 (03EE) [00:31:12]Load OK [00:31:12]SetTLVBufToDocument [00:31:12]Processing tag 1010 (03F2) [00:31:12]Malloc new data [00:31:12]Processing tag 1011 (03F3) [00:31:12]Malloc new data [00:31:12]SetTLVBufToDocument err=0 [00:31:12]Processing tag 1007 (03EF) [00:31:12]Load OK [00:31:12]SetTLVBufToDocument [00:31:12]Processing tag 1014 (03F6) [00:31:12]Malloc new data [00:31:12]Processing tag 1015 (03F7) [00:31:12]Malloc new data [00:31:12]SetTLVBufToDocument err=0 [00:31:12]Processing tag 1007 (03EF) [00:31:12]Load OK [00:31:12]SetTLVBufToDocument [00:31:12]Processing tag 1014 (03F6) [00:31:12]Malloc new data [00:31:12]Processing tag 1015 (03F7) [00:31:12]Malloc new data [00:31:12]SetTLVBufToDocument err=0 [00:31:12]Processing tag 1007 (03EF) [00:31:12]Load OK [00:31:12]SetTLVBufToDocument [00:31:12]Processing tag 1014 (03F6) [00:31:12]Malloc new data [00:31:12]Processing tag 1015 (03F7) [00:31:12]Malloc new data [00:31:12]SetTLVBufToDocument err=0 [00:31:12]Processing tag 1007 (03EF) [00:31:12]Load OK [00:31:12]SetTLVBufToDocument [00:31:12]Processing tag 1014 (03F6) [00:31:12]Malloc new data [00:31:12]Processing tag 1015 (03F7) [00:31:12]Malloc new data [00:31:12]SetTLVBufToDocument err=0 [00:31:12]Processing tag 1007 (03EF) [00:31:12]Load OK [00:31:12]SetTLVBufToDocument [00:31:12]Processing tag 1014 (03F6) [00:31:12]Malloc new data [00:31:12]Processing tag 1015 (03F7) [00:31:12]Malloc new data [00:31:12]SetTLVBufToDocument err=0 [00:31:12]Processing tag 1007 (03EF) [00:31:12]Load OK [00:31:12]SetTLVBufToDocument [00:31:12]Processing tag 1014 (03F6) [00:31:12]Malloc new data [00:31:12]Processing tag 1015 (03F7) [00:31:12]Malloc new data [00:31:12]SetTLVBufToDocument err=0 [00:31:12]Processing tag 1007 (03EF) [00:31:12]Load OK [00:31:12]SetTLVBufToDocument [00:31:12]Processing tag 1014 (03F6) [00:31:12]Malloc new data [00:31:12]Processing tag 1015 (03F7) [00:31:12]Malloc new data [00:31:12]SetTLVBufToDocument err=0 [00:31:12]SetTLVBufToDocument err=0 [00:31:12]SetTLVBufToDocument err=0 [00:31:12]Processing tag 1132 (046C) [00:31:12]Load OK [00:31:12]SetTLVBufToDocument [00:31:12]Processing tag 1135 (046F) [00:31:12]Malloc new data [00:31:12]Processing tag 1201 (04B1) [00:31:12]Malloc new data [00:31:12]Processing tag 1136 (0470) [00:31:12]Malloc new data [00:31:12]Processing tag 1138 (0472) [00:31:12]Malloc new data [00:31:12]Processing tag 1024 (0400) [00:31:12]Load OK [00:31:12]SetTLVBufToDocument [00:31:12]Processing tag 1006 (03EE) [00:31:12]Load OK [00:31:12]SetTLVBufToDocument [00:31:12]Processing tag 1010 (03F2) [00:31:12]Malloc new data [00:31:12]Processing tag 1011 (03F3) [00:31:12]Malloc new data [00:31:12]SetTLVBufToDocument err=0 [00:31:12]Processing tag 1006 (03EE) [00:31:12]Load OK [00:31:12]SetTLVBufToDocument [00:31:12]Processing tag 1010 (03F2) [00:31:12]Malloc new data [00:31:12]Processing tag 1011 (03F3) [00:31:12]Malloc new data [00:31:12]SetTLVBufToDocument err=0 [00:31:12]Processing tag 1007 (03EF) [00:31:12]Load OK [00:31:12]SetTLVBufToDocument [00:31:12]Processing tag 1014 (03F6) [00:31:12]Malloc new data [00:31:12]Processing tag 1015 (03F7) [00:31:12]Malloc new data [00:31:12]SetTLVBufToDocument err=0 [00:31:12]Processing tag 1007 (03EF) [00:31:12]Load OK [00:31:12]SetTLVBufToDocument [00:31:12]Processing tag 1014 (03F6) [00:31:12]Malloc new data [00:31:12]Processing tag 1015 (03F7) [00:31:12]Malloc new data [00:31:12]SetTLVBufToDocument err=0 [00:31:12]Processing tag 1007 (03EF) [00:31:12]Load OK [00:31:12]SetTLVBufToDocument [00:31:12]Processing tag 1014 (03F6) [00:31:12]Malloc new data [00:31:12]Processing tag 1015 (03F7) [00:31:12]Malloc new data [00:31:12]SetTLVBufToDocument err=0 [00:31:12]Processing tag 1007 (03EF) [00:31:12]Load OK [00:31:12]SetTLVBufToDocument [00:31:12]Processing tag 1014 (03F6) [00:31:12]Malloc new data [00:31:12]Processing tag 1015 (03F7) [00:31:12]Malloc new data [00:31:12]SetTLVBufToDocument err=0 [00:31:12]Processing tag 1007 (03EF) [00:31:12]Load OK [00:31:12]SetTLVBufToDocument [00:31:12]Processing tag 1014 (03F6) [00:31:12]Malloc new data [00:31:12]Processing tag 1015 (03F7) [00:31:12]Malloc new data [00:31:12]SetTLVBufToDocument err=0 [00:31:12]Processing tag 1007 (03EF) [00:31:12]Load OK [00:31:12]SetTLVBufToDocument [00:31:12]Processing tag 1014 (03F6) [00:31:12]Malloc new data [00:31:12]Processing tag 1015 (03F7) [00:31:12]Malloc new data [00:31:12]SetTLVBufToDocument err=0 [00:31:12]Processing tag 1007 (03EF) [00:31:12]Load OK [00:31:12]SetTLVBufToDocument [00:31:12]Processing tag 1014 (03F6) [00:31:12]Malloc new data [00:31:12]Processing tag 1015 (03F7) [00:31:12]Malloc new data [00:31:12]SetTLVBufToDocument err=0 [00:31:12]SetTLVBufToDocument err=0 [00:31:12]SetTLVBufToDocument err=0 [00:31:12]Processing tag 1133 (046D) [00:31:12]Malloc new data [00:31:12]SetTLVBufToDocument err=0 [00:31:12]SetTLVBufToDocument err=0 [00:31:12]Malloc new data [00:31:12]SAM_PROTO_GetFMData [00:31:12]wFMCommunicate request_size=4 [00:31:12]MH_SAM_APDU [00:31:12]CAPDU: 80 13 03 00 [00:31:12]Write to MH i2c: E2 08 00 2F 17 80 13 03 00 00 00 00 00 C5 [00:31:12]Write i2c OK [00:31:12]MH_I2C_Read... [00:31:13]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:31:13]Read from MH i2c: E2 [00:31:13]MH_I2C_Read... [00:31:13]Read from MH i2c: E2 FD 00 [00:31:13]MH_I2C_Read... [00:31:13]Read from MH i2c: E2 FD 00 2F 17 00 C4 04 85 04 C0 04 6E 04 04 00 F3 82 02 00 69 04 A3 00 6F 04 04 00 E5 81 02 00 B1 04 05 00 CD 52 D1 5A 02 70 04 05 00 7D EA 33 38 02 72 04 04 00 50 68 9D 22 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 AB 6E 0A 40 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 0D 03 56 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 0E 01 00 00 B1 04 04 00 6C E5 46 03 70 04 04 00 6C E5 46 03 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 23 19 59 EF 03 09 00 90 00 FF [00:31:13]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 F3 82 02 00 69 04 A3 00 6F 04 04 00 E5 81 02 00 B1 04 05 00 CD 52 D1 5A 02 70 04 05 00 7D EA 33 38 02 72 04 04 00 50 68 9D 22 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 AB 6E 0A 40 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 0D 03 56 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 0E 01 00 00 B1 04 04 00 6C E5 46 03 70 04 04 00 6C E5 46 03 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 23 19 59 EF 03 09 00 90 00 [00:31:13]wFMCommunicate OK [00:31:13]wFMCommunicate request_size=4 [00:31:13]MH_SAM_APDU [00:31:13]CAPDU: 80 17 00 00 [00:31:13]Write to MH i2c: E2 08 00 30 17 80 17 00 00 00 00 00 00 C7 [00:31:13]Write i2c OK [00:31:13]MH_I2C_Read... [00:31:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:13]Read from MH i2c: E2 [00:31:13]MH_I2C_Read... [00:31:13]Read from MH i2c: E2 FD 00 [00:31:13]MH_I2C_Read... [00:31:13]Read from MH i2c: E2 FD 00 30 17 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B1 6C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A1 [00:31:13]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B1 6C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:31:14]wFMCommunicate OK [00:31:14]wFMCommunicate request_size=4 [00:31:14]MH_SAM_APDU [00:31:14]CAPDU: 80 17 00 00 [00:31:14]Write to MH i2c: E2 08 00 31 17 80 17 00 00 00 00 00 00 C8 [00:31:14]Write i2c OK [00:31:14]MH_I2C_Read... [00:31:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:14]Read from MH i2c: E2 [00:31:14]MH_I2C_Read... [00:31:14]Read from MH i2c: E2 FD 00 [00:31:14]MH_I2C_Read... [00:31:14]Read from MH i2c: E2 FD 00 31 17 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DD [00:31:14]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:31:14]wFMCommunicate OK [00:31:14]wFMCommunicate request_size=4 [00:31:14]MH_SAM_APDU [00:31:14]CAPDU: 80 17 00 00 [00:31:14]Write to MH i2c: E2 08 00 32 17 80 17 00 00 00 00 00 00 C9 [00:31:14]Write i2c OK [00:31:14]MH_I2C_Read... [00:31:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:14]Read from MH i2c: E2 [00:31:14]MH_I2C_Read... [00:31:14]Read from MH i2c: E2 FD 00 [00:31:14]MH_I2C_Read... [00:31:14]Read from MH i2c: E2 FD 00 32 17 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 41 [00:31:15]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:31:15]wFMCommunicate OK [00:31:15]wFMCommunicate request_size=4 [00:31:15]MH_SAM_APDU [00:31:15]CAPDU: 80 17 00 00 [00:31:15]Write to MH i2c: E2 08 00 33 17 80 17 00 00 00 00 00 00 CA [00:31:15]Write i2c OK [00:31:15]MH_I2C_Read... [00:31:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:31:15]Read from MH i2c: E2 [00:31:15]MH_I2C_Read... [00:31:15]Read from MH i2c: E2 E1 00 [00:31:15]MH_I2C_Read... [00:31:15]Read from MH i2c: E2 E1 00 33 17 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B8 [00:31:15]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:31:15]wFMCommunicate OK [00:31:15]SAM_PROTO_GetFMData done [00:31:15]FM_GetFMData:85 04 C0 04 6E 04 04 00 F3 82 02 00 69 04 A3 00 6F 04 04 00 E5 81 02 00 B1 04 05 00 CD 52 D1 5A 02 70 04 05 00 7D EA 33 38 02 72 04 04 00 50 68 9D 22 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 AB 6E 0A 40 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 0D 03 56 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 0E 01 00 00 B1 04 04 00 6C E5 46 03 70 04 04 00 6C E5 46 03 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 23 19 59 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 B1 6C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:31:16]oper:6F 04 04 00 E5 81 02 00 B1 04 05 00 CD 52 D1 5A 02 70 04 05 00 7D EA 33 38 02 72 04 04 00 50 68 9D 22 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 AB 6E 0A 40 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 0D 03 56 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:31:16]total:CD 52 D1 5A 02 [00:31:16]Malloc new data [00:31:16]oper:6F 04 04 00 0E 01 00 00 B1 04 04 00 6C E5 46 03 70 04 04 00 6C E5 46 03 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 23 19 59 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 B1 6C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:31:16]total:6C E5 46 03 [00:31:16]Malloc new data [00:31:16]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:31:16]total: [00:31:16]Malloc new data [00:31:16]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:31:16]total: [00:31:16]Malloc new data [00:31:16]KKMPrepareXReportFMData err=0 [00:31:16]Х отчет ИНН: 02508201610067 Кассир: Садыков Н. 16.07.2024 00:31 Смена: 266 РНМ: 0000000000090829 ЗНМ: 0300000160 СНО: Общий режим Всего чеков: 367 ИТОГИ ПРИХОД Чеков: 367 Общий итог: 251692.24 Итого наличными: 201800.00 Итого безнал.: 49892.24 НДС 0% : 0.00 НДС 12% : 26734.42 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2227.35 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 201800.00 НС Приход: 101136022.53 НС Возвр.Прихода: 549779.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000874718 [00:31:16]StoreToDocumentArchive [00:31:16]MH_GetDate [00:31:16]Write to MH i2c: F0 00 00 34 17 3A [00:31:16]Write i2c OK [00:31:16]MH_I2C_Read... [00:31:16]Read from MH i2c: F0 [00:31:16]MH_I2C_Read... [00:31:16]Read from MH i2c: F0 09 00 [00:31:16]MH_I2C_Read... [00:31:16]Read from MH i2c: F0 09 00 34 17 00 56 BF 95 66 C9 DC B2 64 0E [00:31:16]shift 266 fd 1721089878 [00:31:16]Create dir for shift 0266 [00:31:16]save to /storage/0266/doc_1721089878 [00:31:16]save last doc name /storage/0266/doc_1721089878 to /storage/kkm_last_doc_name [00:31:16]save OK [00:31:16]Clear old archive folders... [00:31:16]NVStorageSaveData kkm_last_timestamp [00:31:16]File name is /storage/kkm_last_timestamp [00:31:16]Write 4 bytes [00:31:16]NVStorageSaveData done [00:31:16]ExternCall_PrintAddStr [00:31:16]wPrintStart [00:31:16]Write to MH i2c: 01 00 00 35 17 4C [00:31:16]Write i2c OK [00:31:16]MH_I2C_Read... [00:31:16]Read from MH i2c: 01 [00:31:16]MH_I2C_Read... [00:31:16]Read from MH i2c: 01 07 00 [00:31:16]MH_I2C_Read... [00:31:16]Read from MH i2c: 01 07 00 35 17 00 00 00 00 00 FF 0F 61 [00:31:16]RasterBufferAndPrint [00:31:16]line Х отчет [00:31:16]line ИНН: 02508201610067 [00:31:16]line Кассир: Садыков Н. [00:31:16]line 16.07.2024 00:31 [00:31:16]line Смена: 266 [00:31:16]line РНМ: 0000000000090829 [00:31:16]line ЗНМ: 0300000160 [00:31:16]line СНО: Общий режим [00:31:16]line Всего чеков: 367 [00:31:16]line ИТОГИ ПРИХОД [00:31:16]line Чеков: 367 [00:31:16]line Общий итог: 251692.24 [00:31:16]line Итого наличными: 201800.00 [00:31:16]line Итого безнал.: 49892.24 [00:31:16]line НДС 0% : 0.00 [00:31:16]line НДС 12% : 26734.42 [00:31:16]line НСП 0% : 0.00 [00:31:16]line НСП 1,50% : 0.00 [00:31:16]line НСП 0,50% : 0.00 [00:31:16]line НСП 5% : 0.00 [00:31:16]line НСП 3% : 0.00 [00:31:16]line НСП 2% : 0.00 [00:31:16]line НСП 1% : 2227.35 [00:31:16]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:31:16]line Чеков: 0 [00:31:16]line Общий итог: 0.00 [00:31:16]line Итого наличными: 0.00 [00:31:16]line Итого безнал.: 0.00 [00:31:16]line НДС 0% : 0.00 [00:31:16]line НДС 12% : 0.00 [00:31:16]line НСП 0% : 0.00 [00:31:16]line НСП 1,50% : 0.00 [00:31:16]line НСП 0,50% : 0.00 [00:31:16]OFD Sender: No OFD packet to send [00:31:16]line НСП 5% : 0.00 [00:31:16]line НСП 3% : 0.00 [00:31:16]line НСП 2% : 0.00 [00:31:16]line НСП 1% : 0.00 [00:31:16]line ИТОГИ РАСХОД [00:31:16]line Чеков: 0 [00:31:16]line Общий итог: 0.00 [00:31:16]line Итого наличными: 0.00 [00:31:16]line Итого безнал.: 0.00 [00:31:16]line НДС 0% : 0.00 [00:31:16]line НДС 12% : 0.00 [00:31:16]line НСП 0% : 0.00 [00:31:16]line НСП 1,50% : 0.00 [00:31:16]line НСП 0,50% : 0.00 [00:31:16]line НСП 5% : 0.00 [00:31:16]line НСП 3% : 0.00 [00:31:16]line НСП 2% : 0.00 [00:31:16]line НСП 1% : 0.00 [00:31:16]line ИТОГИ ВОЗВРАТ РАСХОДА [00:31:16]line Чеков: 0 [00:31:16]line Общий итог: 0.00 [00:31:16]line Итого наличными: 0.00 [00:31:16]line Итого безнал.: 0.00 [00:31:16]line НДС 0% : 0.00 [00:31:16]line НДС 12% : 0.00 [00:31:16]line НСП 0% : 0.00 [00:31:16]line НСП 1,50% : 0.00 [00:31:16]line НСП 0,50% : 0.00 [00:31:16]line НСП 5% : 0.00 [00:31:16]line НСП 3% : 0.00 [00:31:16]line НСП 2% : 0.00 [00:31:16]line НСП 1% : 0.00 [00:31:16]line Сумма внесений: 0.00 [00:31:16]line Сумма выплат: 0.00 [00:31:16]line Нал. в кассе: 201800.00 [00:31:16]line НС Приход: 101136022.53 [00:31:16]line НС Возвр.Прихода: 549779.00 [00:31:16]line НС Расход: 0.00 [00:31:16]line НС Возвр.Расхода: 0.00 [00:31:16]line ФМ: 0000000000874718 [00:31:16]written 0, free lines is 4095 [00:31:17]Write to MH i2c: 01 00 00 80 17 97 [00:31:17]Write i2c OK [00:31:17]MH_I2C_Read... [00:31:17]Read from MH i2c: 01 [00:31:17]MH_I2C_Read... [00:31:17]Read from MH i2c: 01 07 00 [00:31:17]MH_I2C_Read... [00:31:17]Read from MH i2c: 01 07 00 80 17 00 00 00 00 00 1C 0B C5 [00:31:17]RasterBufferAndPrint [00:31:17]line [00:31:17]line [00:31:17]line [00:31:17]line [00:31:17]line [00:31:17]written 0, free lines is 2880 [00:31:17]MH_Cut [00:31:17]Write to MH i2c: D1 01 00 87 17 01 70 [00:31:17]Write i2c OK [00:31:17]MH_I2C_Read... [00:31:17]Read from MH i2c: D1 [00:31:17]MH_I2C_Read... [00:31:17]Read from MH i2c: D1 01 00 [00:31:17]MH_I2C_Read... [00:31:17]Read from MH i2c: D1 01 00 87 17 00 6F [00:31:17]Write to MH i2c: 01 00 00 88 17 9F [00:31:17]Write i2c OK [00:31:17]MH_I2C_Read... [00:31:18]*** Cut start [00:31:18]*** Partial cut [00:31:18]*** CUTSNS_PIN = 1 [00:31:18]*** CUTSNS_PIN = 0 [00:31:18]*** Brake cut motor [00:31:19]Read from MH i2c: 01 [00:31:19]MH_I2C_Read... [00:31:19]*** Stop cut motor [00:31:19]*** Cut end [00:31:19]Read from MH i2c: 01 07 00 [00:31:19]MH_I2C_Read... [00:31:19]Read from MH i2c: 01 07 00 88 17 00 00 00 00 00 FF 0F B4 [00:31:19]process_action x_report done [00:31:19]requested_data is exist [00:31:19]produce_requested_data [00:31:19]requested_item fd.num is exist - process it [00:31:19]SAM_PROTO_GetFieldsCounters [00:31:19]wFMCommunicate request_size=4 [00:31:19]MH_SAM_APDU [00:31:19]CAPDU: 80 13 00 00 [00:31:19]Write to MH i2c: E2 08 00 89 17 80 13 00 00 00 00 00 00 1C [00:31:19]Write i2c OK [00:31:19]MH_I2C_Read... [00:31:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:31:19]Read from MH i2c: E2 [00:31:19]MH_I2C_Read... [00:31:19]Read from MH i2c: E2 62 00 [00:31:19]MH_I2C_Read... [00:31:19]Read from MH i2c: E2 62 00 89 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 76 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 6F 01 00 00 5E 04 04 00 6F 01 00 00 57 04 04 00 70 01 00 00 19 04 04 00 00 00 00 00 90 00 52 [00:31:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 76 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 6F 01 00 00 5E 04 04 00 6F 01 00 00 57 04 04 00 70 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:31:19]wFMCommunicate OK [00:31:19]SAM_PROTO_GetFieldsCounters done [00:31:19]requested_item shift.num is exist - process it [00:31:19]requested_item shift.opened is exist - process it [00:31:19]req_shift_opened [00:31:19]FM_GetShiftState [00:31:19]SAM_PROTO_GetShiftState [00:31:19]wFMCommunicate request_size=4 [00:31:19]MH_SAM_APDU [00:31:19]CAPDU: 80 13 01 00 [00:31:19]Write to MH i2c: E2 08 00 8A 17 80 13 01 00 00 00 00 00 1E [00:31:19]Write i2c OK [00:31:19]MH_I2C_Read... [00:31:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:31:19]Read from MH i2c: E2 [00:31:19]MH_I2C_Read... [00:31:19]Read from MH i2c: E2 0E 00 [00:31:19]MH_I2C_Read... [00:31:19]Read from MH i2c: E2 0E 00 8A 17 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 F7 [00:31:19]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [00:31:19]wFMCommunicate OK [00:31:19]SAM_PROTO_GetShiftState done [00:31:19]FM_GetShiftState done [00:31:19]req_shift_opened done [00:31:19]requested_item shift.open_date is exist - process it [00:31:19]req_shift_open_date [00:31:19]req_shift_open_date done [00:31:19]produce_requested_data done [00:31:19]produce_requested_data return {"fd.num":165494,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [00:31:19]process_action_free x_report [00:31:19]json_value_free [00:31:19]json_value_free done [00:31:19]process_json_proto returns [00:31:19]Send response to host [00:31:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":165494,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [00:31:19]free response buf [00:31:19]execute_script done [00:31:19]execute_script returns [00:31:19]free content buf [00:31:19]Sock 7.Close socket [00:31:19]Sock 7.Thread stoped [00:31:21]OFD Sender: No OFD packet to send [00:31:24]accept exits with 9 [00:31:24]New connection [00:31:24]New thread 3067333988 created [00:31:24]Thread 3067190628 joined [00:31:24]Waiting for new connection... [00:31:24] Sock 9.Parse request [00:31:24]Sock 9.Check first char [00:31:24]Sock 9.First char is OK [00:31:24]request: POST /json_proto HTTP/1.0 [00:31:24]Method: POST [00:31:24]URL: /json_proto [00:31:24]Method is POST - this is cgi request [00:31:24]url: /json_proto [00:31:24]query_string will be loaded in cgi processing [00:31:24]execute_cgi json_proto POST (null) [00:31:24]execute_cgi path=json_proto method=POST [00:31:24]POST find Content-Length [00:31:24]Host: 172.17.56.4:8080 [00:31:24]Content-Length: 215 [00:31:24]Content-Type: application/json [00:31:24] [00:31:24]POST finish read [00:31:24]Found Content-Length = 215 [00:31:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:31:24]execute_script... [00:31:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:31:24]POST & json_proto [00:31:24]process_json_proto [00:31:24]json parsed OK: [00:31:24]protocol is kg_v1.0 [00:31:24]action value=get_value [00:31:24]process_action get_value [00:31:24]cmd_get_value [00:31:24]process_action get_value done [00:31:24]requested_data is exist [00:31:24]produce_requested_data [00:31:24]requested_item kkm.sn is exist - process it [00:31:24]requested_item kkm.ver is exist - process it [00:31:24]requested_item fm.sn is exist - process it [00:31:24]wFMCommunicate request_size=4 [00:31:24]MH_SAM_APDU [00:31:24]CAPDU: 80 11 00 00 [00:31:24]Write to MH i2c: E2 08 00 8B 17 80 11 00 00 00 00 00 00 1C [00:31:24]Write i2c OK [00:31:24]MH_I2C_Read... [00:31:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:31:24]Read from MH i2c: E2 [00:31:24]MH_I2C_Read... [00:31:24]Read from MH i2c: E2 17 00 [00:31:24]MH_I2C_Read... [00:31:24]Read from MH i2c: E2 17 00 8B 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 72 [00:31:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [00:31:24]wFMCommunicate OK [00:31:24]requested_item fd.num is exist - process it [00:31:24]SAM_PROTO_GetFieldsCounters [00:31:24]wFMCommunicate request_size=4 [00:31:24]MH_SAM_APDU [00:31:24]CAPDU: 80 13 00 00 [00:31:24]Write to MH i2c: E2 08 00 8C 17 80 13 00 00 00 00 00 00 1F [00:31:24]Write i2c OK [00:31:24]MH_I2C_Read... [00:31:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:31:24]Read from MH i2c: E2 [00:31:24]MH_I2C_Read... [00:31:24]Read from MH i2c: E2 62 00 [00:31:24]MH_I2C_Read... [00:31:24]Read from MH i2c: E2 62 00 8C 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 76 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 6F 01 00 00 5E 04 04 00 6F 01 00 00 57 04 04 00 70 01 00 00 19 04 04 00 00 00 00 00 90 00 55 [00:31: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 76 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 6F 01 00 00 5E 04 04 00 6F 01 00 00 57 04 04 00 70 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:31:24]wFMCommunicate OK [00:31:24]SAM_PROTO_GetFieldsCounters done [00:31:24]requested_item shift.num is exist - process it [00:31:24]requested_item shift.opened is exist - process it [00:31:24]req_shift_opened [00:31:24]FM_GetShiftState [00:31:24]SAM_PROTO_GetShiftState [00:31:24]wFMCommunicate request_size=4 [00:31:24]MH_SAM_APDU [00:31:24]CAPDU: 80 13 01 00 [00:31:24]Write to MH i2c: E2 08 00 8D 17 80 13 01 00 00 00 00 00 21 [00:31:24]Write i2c OK [00:31:24]MH_I2C_Read... [00:31:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:31:24]Read from MH i2c: E2 [00:31:24]MH_I2C_Read... [00:31:24]Read from MH i2c: E2 0E 00 [00:31:24]MH_I2C_Read... [00:31:24]Read from MH i2c: E2 0E 00 8D 17 00 09 00 01 64 6F 94 66 00 00 00 00 90 00 FA [00:31:24]RAPDU: 09 00 01 64 6F 94 66 00 00 00 00 90 00 [00:31:24]wFMCommunicate OK [00:31:24]SAM_PROTO_GetShiftState done [00:31:24]FM_GetShiftState done [00:31:24]req_shift_opened done [00:31:24]requested_item shift.open_date is exist - process it [00:31:24]req_shift_open_date [00:31:24]req_shift_open_date done [00:31:24]produce_requested_data done [00:31:24]produce_requested_data return {"kkm.sn":"0300000160","kkm.ver":"001","fm.sn":"0000000000874718","fd.num":165494,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876} [00:31:24]process_action_free get_value [00:31:24]json_value_free [00:31:24]json_value_free done [00:31:24]process_json_proto returns [00:31:24]Send response to host [00:31:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000160","kkm.ver":"001","fm.sn":"0000000000874718","fd.num":165494,"shift.num":448,"shift.opened":1,"shift.open_date":1721003876}}} [00:31:24]free response buf [00:31:24]execute_script done [00:31:24]execute_script returns [00:31:24]free content buf [00:31:24]Sock 9.Close socket [00:31:24]Sock 9.Thread stoped [00:31:24]accept exits with 7 [00:31:24]New connection [00:31:24]New thread 3067190628 created [00:31:24]Thread 3067333988 joined [00:31:24]Waiting for new connection... [00:31:24] Sock 7.Parse request [00:31:24]Sock 7.Check first char [00:31:24]Sock 7.First char is OK [00:31:24]request: POST /json_proto HTTP/1.0 [00:31:24]Method: POST [00:31:24]URL: /json_proto [00:31:24]Method is POST - this is cgi request [00:31:24]url: /json_proto [00:31:24]query_string will be loaded in cgi processing [00:31:24]execute_cgi json_proto POST (null) [00:31:24]execute_cgi path=json_proto method=POST [00:31:24]POST find Content-Length [00:31:24]Host: 172.17.56.4:8080 [00:31:24]Content-Length: 331 [00:31:24]Content-Type: application/json [00:31:24] [00:31:24]POST finish read [00:31:24]Found Content-Length = 331 [00:31:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:31:24]execute_script... [00:31:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:31:24]POST & json_proto [00:00:11] *** EcrCore started. Build 196 *** [00:00:11]/dev/ttyS4 opened [00:00:11]MH_InterfaceInit /dev/i2c-1 [00:00:11]Malloc ok [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 01 00 00 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 CB FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 70 [00:00:11]Are we in boot? [00:00:11]We are in boot - try to switch [00:00:11]Write to MH i2c: A0 00 00 02 00 A1 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:11]*** [00:00:11]Read from MH i2c: A0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:11]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:11]*** Waiting for read because exit forced [00:00:11]*** 10 ms more... [00:00:11]*** MH1903S init start (LINUX_LIGHT) [00:00:11]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:11]*** Serial: 3139303353513838 54000000005725CB (1903SQ88T) [00:00:11]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:11]*** step 0: 5000 (2650, 2350 REF) [00:00:11]*** step 1: 4835 (2500, 2335 REF) [00:00:11]*** step 2: 4676 (2440, 2236 REF) [00:00:11]*** step 3: 4523 (2280, 2243 REF) [00:00:11]*** step 4: 4376 (2160, 2216 REF) [00:00:11]*** step 5: 4235 (2050, 2185 REF) [00:00:11]*** step 6: 4098 (1950, 2148 REF) [00:00:11]*** step 7: 3967 (1870, 2097 REF) [00:00:11]*** step 8: 3840 (1828, 2012 REF) [00:00:11]*** step 9: 3719 (1728, 1991 REF) [00:00:11]*** step 10: 3601 (1675, 1926 REF) [00:00:11]*** step 11: 3488 (1635, 1853 REF) [00:00:11]*** step 12: 3379 (1595, 1784 REF) [00:00:11]*** step 13: 3275 (1565, 1710 REF) [00:00:11]*** step 14: 3174 (1543, 1631 REF) [00:00:11]*** step 15: 3077 (1523, 1554 REF) [00:00:11]*** step 16: 2983 (1503, 1480 REF) [00:00:11]*** step 17: 2893 (1486, 1407 REF) [00:00:11]*** step 18: 2806 (1466, 1340 REF) [00:00:11]*** step 19: 2723 (1426, 1297 REF) [00:00:11]*** step 20: 2642 (1406, 1236 REF) [00:00:11]*** step 21: 2565 (1384, 1181 REF) [00:00:11]*** step 22: 2490 (1364, 1126 REF) [00:00:11]*** step 23: 2418 (1344, 1074 REF) [00:00:11]*** step 24: 2349 (1322, 1027 REF) [00:00:11]*** step 25: 2283 (1302, 981 REF) [00:00:11]*** step 26: 2218 (1282, 936 REF) [00:00:11]*** step 27: 2157 (1262, 895 REF) [00:00:11]*** step 28: 2097 (1242, 855 REF) [00:00:11]*** step 29: 2040 (1222, 818 REF) [00:00:11]*** step 30: 1985 (1202, 783 REF) [00:00:11]*** step 31: 1932 (1191, 741 REF) [00:00:11]*** step 32: 1880 (1181, 699 REF) [00:00:11]*** step 33: 1831 (1171, 660 REF) [00:00:11]*** step 34: 1784 (1161, 623 REF) [00:00:11]*** step 35: 1738 (1151, 587 REF) [00:00:11]*** step 36: 1694 (1141, 553 REF) [00:00:11]*** step 37: 1652 (1131, 521 REF) [00:00:11]*** step 38: 1611 (1121, 490 REF) [00:00:11]*** step 39: 1572 (1111, 461 REF) [00:00:11]*** step 40: 1534 (1103, 431 REF) [00:00:11]*** step 41: 1497 (1093, 404 REF) [00:00:11]*** step 42: 1462 (1083, 379 REF) [00:00:11]*** step 43: 1428 (1073, 355 REF) [00:00:11]*** step 44: 1396 (1063, 333 REF) [00:00:11]*** step 45: 1365 (1053, 312 REF) [00:00:11]*** step 46: 1334 (1043, 291 REF) [00:00:11]*** step 47: 1305 (1033, 272 REF) [00:00:11]*** step 48: 1277 (1023, 254 REF) [00:00:11]*** step 49: 1250 (1013, 237 REF) [00:00:11]*** step 50: 1224 (990, 234 REF) [00:00:11]*** step 51: 1199 (980, 219 REF) [00:00:11]*** step 52: 1175 (970, 205 REF) [00:00:11]*** step 53: 1152 (960, 192 REF) [00:00:11]*** step 54: 1130 (950, 180 REF) [00:00:11]*** step 55: 1108 (940, 168 REF) [00:00:11]*** step 56: 1088 (930, 158 REF) [00:00:11]*** step 57: 1068 (920, 148 REF) [00:00:11]*** step 58: 1049 (910, 139 REF) [00:00:11]*** step 59: 1030 (900, 130 REF) [00:00:11]*** step 60: 1012 (890, 122 REF) [00:00:11]*** step 61: 995 (880, 115 REF) [00:00:11]*** step 62: 979 (870, 109 REF) [00:00:11]*** step 63: 963 (860, 103 REF) [00:00:11]*** step 64: 948 (850, 98 REF) [00:00:11]*** step 65: 933 (840, 93 REF) [00:00:11]*** step 66: 919 (830, 89 REF) [00:00:11]*** step 67: 905 (820, 85 REF) [00:00:11]*** step 68: 892 (810, 82 REF) [00:00:11]*** step 69: 879 (800, 79 REF) [00:00:11]*** step 70: 867 (790, 77 REF) [00:00:11]*** step 71: 855 (780, 75 REF) [00:00:11]*** step 72: 844 (770, 74 REF) [00:00:11]*** step 73: 833 (760, 73 REF) [00:00:11]*** step 74: 822 (750, 72 REF) [00:00:11]*** step 75: 812 (740, 72 REF) [00:00:11]*** step 76: 803 (730, 73 REF) [00:00:11]*** step 77: 793 (720, 73 REF) [00:00:11]*** step 78: 784 (710, 74 REF) [00:00:11]*** step 79: 776 (700, 76 REF) [00:00:11]*** step 80: 767 (690, 77 REF) [00:00:11]*** step 81: 759 (680, 79 REF) [00:00:11]*** step 82: 751 (670, 81 REF) [00:00:11]*** step 83: 744 (660, 84 REF) [00:00:11]*** step 84: 737 (650, 87 REF) [00:00:11]*** step 85: 730 (640, 90 REF) [00:00:11]*** step 86: 723 (630, 93 REF) [00:00:11]*** step 87: 717 (620, 97 REF) [00:00:11]*** step 88: 710 (610, 100 REF) [00:00:11]*** step 89: 705 (600, 105 REF) [00:00:11]*** step 90: 699 [00:00:11]*** step 91: 693 [00:00:11]*** step 92: 688 [00:00:11]*** step 93: 683 [00:00:11]*** step 94: 678 [00:00:11]*** step 95: 673 [00:00:11]*** step 96: 669 [00:00:11]*** step 97: 664 [00:00:11]*** step 98: 660 [00:00:11]*** step 99: 656 [00:00:11]*** step 100: 652 [00:00:11]*** step 101: 648 [00:00:11]*** step 102: 644 [00:00:11]*** step 103: 641 [00:00:11]*** step 104: 638 [00:00:11]*** step 105: 634 [00:00:11]*** step 106: 631 [00:00:11]*** step 107: 628 [00:00:11]*** step 108: 625 [00:00:11]*** step 109: 622 [00:00:11]*** step 110: 620 [00:00:11]*** step 111: 617 [00:00:11]*** step 112: 615 [00:00:11]*** step 113: 612 [00:00:11]*** step 114: 610 [00:00:11]*** step 115: 608 [00:00:11]*** step 116: 605 [00:00:11]*** step 117: 603 [00:00:11]*** step 118: 601 [00:00:11]*** step 119: 599 [00:00:11]*** printer: Printer HW initialized [00:00:11]*** initSamCard finished [00:00:11]*** RTC: 31646580+1689443529=1721090109 [00:00:11]*** BPK Status Register BPK_RDY = 0x0 [00:00:11]*** SEN State Register SEN_STATE = 0x20ff [00:00:11]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:11]*** Analog Control Register 0 SEN_ANA0 = 0x33520623 [00:00:11]*** Is cutter blocked? [00:00:12]MH_GetMetrics [00:00:12]Write to MH i2c: 00 00 00 03 00 02 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 CB FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 71 [00:00:12]Are we in boot? [00:00:12]We are not in boot now [00:00:12]Write to MH i2c: 01 00 00 04 00 04 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:12]Model is 3 [00:00:12]MH firmware is 30620 [00:00:12]MH boot firmware is 3 [00:00:12]MH_SetPrinterDots 448 [00:00:12]HeadWidthInBytes 56 [00:00:12]maxmasksize 7 [00:00:12]Write to MH i2c: D6 06 00 05 00 41 00 60 00 FF FF 7F [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:12]Write to MH i2c: D5 00 00 06 00 DA [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]ExternCall_SetCallbacks [00:00:12]NVStorageInit [00:00:12]MH_GetDate [00:00:12]Write to MH i2c: F0 00 00 07 00 F6 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 07 00 00 3E C0 95 66 C9 DC B2 64 B3 [00:35:10]Current date/time: 16.07.2024 00:35 [00:35:10]FM_Init [00:35:10]wFMConnect [00:35:10]MH_SAM_On [00:35:10]Write to MH i2c: E0 00 00 08 00 E7 [00:35:10]Write i2c OK [00:35:10]MH_I2C_Read... [00:35:10]*** iso7816_init finished! [00:35:10]*** atr: [00:35:10]*** 0F 3B D5 18 FF 81 91 FE [00:35:10]*** 1F C3 80 73 C8 21 10 0A [00:35:10]*** 00 00 00 00 00 00 00 00 [00:35:10]*** 00 00 00 00 00 00 00 00 [00:35:10]*** 00 00 00 00 00 00 00 00 [00:35:10]*** 00 00 00 00 00 00 00 00 [00:35:10]*** 00 00 00 00 00 00 00 00 [00:35:10]*** 00 00 00 00 00 00 00 00 [00:35:10]Read from MH i2c: E0 [00:35:10]MH_I2C_Read... [00:35:10]Read from MH i2c: E0 10 00 [00:35:10]MH_I2C_Read... [00:35:10]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [00:35:10]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [00:35:10]wFMCommunicate request_size=10 [00:35:10]MH_SAM_APDU [00:35:10]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [00:35:10]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [00:35:10]Write i2c OK [00:35:10]MH_I2C_Read... [00:35:10]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [00:35:10]Read from MH i2c: E2 [00:35:10]MH_I2C_Read... [00:35:10]Read from MH i2c: E2 03 00 [00:35:10]MH_I2C_Read... [00:35:10]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [00:35:10]RAPDU: 90 00 [00:35:10]wFMCommunicate OK [00:35:10]wFMCommunicate request_size=4 [00:35:10]MH_SAM_APDU [00:35:10]CAPDU: 80 11 00 00 [00:35:10]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [00:35:10]Write i2c OK [00:35:10]MH_I2C_Read... [00:35:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:35:10]Read from MH i2c: E2 [00:35:10]MH_I2C_Read... [00:35:10]Read from MH i2c: E2 17 00 [00:35:10]MH_I2C_Read... [00:35:10]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DA [00:35:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [00:35:10]wFMCommunicate OK [00:35:10]Detected FM SN is 0000000000874718 [00:35:10]Stored FM SN is 0000000000874718 [00:35:10]wFMCommunicate request_size=9 [00:35:10]MH_SAM_APDU [00:35:10]CAPDU: 80 16 00 00 04 29 B3 00 00 [00:35:10]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 29 B3 00 00 00 00 6E [00:35:10]Write i2c OK [00:35:10]MH_I2C_Read... [00:35:10]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [00:35:10]Read from MH i2c: E2 [00:35:10]MH_I2C_Read... [00:35:10]Read from MH i2c: E2 03 00 [00:35:10]MH_I2C_Read... [00:35:10]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [00:35:10]RAPDU: 90 00 [00:35:10]wFMCommunicate OK [00:35:10]FM PIN OK [00:35:10]wFMCommunicate request_size=8 [00:35:10]MH_SAM_APDU [00:35:10]CAPDU: 80 14 04 00 03 02 00 01 [00:35:10]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [00:35:10]Write i2c OK [00:35:10]MH_I2C_Read... [00:35:10]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [00:35:10]Read from MH i2c: E2 [00:35:10]MH_I2C_Read... [00:35:10]Read from MH i2c: E2 03 00 [00:35:10]MH_I2C_Read... [00:35:10]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [00:35:10]RAPDU: 90 00 [00:35:10]wFMCommunicate OK [00:35:10]wFMCommunicate request_size=13 [00:35:10]MH_SAM_APDU [00:35:10]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [00:35:10]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [00:35:10]Write i2c OK [00:35:10]MH_I2C_Read... [00:35:10]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [00:35:10]Read from MH i2c: E2 [00:35:10]MH_I2C_Read... [00:35:10]Read from MH i2c: E2 03 00 [00:35:10]MH_I2C_Read... [00:35:10]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [00:35:10]RAPDU: 90 00 [00:35:10]wFMCommunicate OK [00:35:10]wFMCommunicate request_size=4 [00:35:10]MH_SAM_APDU [00:35:10]CAPDU: 80 11 00 00 [00:35:10]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [00:35:10]Write i2c OK [00:35:10]MH_I2C_Read... [00:35:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:35:10]Read from MH i2c: E2 [00:35:10]MH_I2C_Read... [00:35:10]Read from MH i2c: E2 17 00 [00:35:10]MH_I2C_Read... [00:35:10]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DE [00:35:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [00:35:10]wFMCommunicate OK [00:35:10]DocumentArchiveInit [00:35:10]Start Httpd... [00:35:10]Httpd thread 3067174244 created [00:35:10]Write to MH i2c: 01 00 00 0F 00 0F [00:35:10]Write i2c OK [00:35:10]MH_I2C_Read... [00:35:10]Read from MH i2c: 01 [00:35:10]MH_I2C_Read... [00:35:10]Read from MH i2c: 01 07 00 [00:35:10]MH_I2C_Read... [00:35:10]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [00:35:10]MH Int Process started [00:35:10]Allocated Socket 8 [00:35:10]Bind OK [00:35:10]Listen OK [00:35:10]httpd running on port 8080 [00:35:10]Waiting for new connection... [00:35:10]OFD Sender: No OFD packet to send [00:35:15]OFD Sender: No OFD packet to send [00:35:17]accept exits with 9 [00:35:17]New connection [00:35:17]New thread 3066887524 created [00:35:17]Waiting for new connection... [00:35:17] Sock 9.Parse request [00:35:17]Sock 9.Check first char [00:35:17]Sock 9.First char is OK [00:35:17]request: POST /json_proto HTTP/1.0 [00:35:17]Method: POST [00:35:17]URL: /json_proto [00:35:17]Method is POST - this is cgi request [00:35:17]url: /json_proto [00:35:17]query_string will be loaded in cgi processing [00:35:17]execute_cgi json_proto POST (null) [00:35:17]execute_cgi path=json_proto method=POST [00:35:17]POST find Content-Length [00:35:17]Host: 172.17.56.4:8080 [00:35:17]Content-Length: 215 [00:35:17]Content-Type: application/json [00:35:17] [00:35:17]POST finish read [00:35:17]Found Content-Length = 215 [00:35: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" ] } } [00:35:17]execute_script... [00:35: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" ] } } [00:35:17]POST & json_proto [00:35:17]process_json_proto [00:35:17]json parsed OK: [00:35:17]protocol is kg_v1.0 [00:35:17]action value=get_value [00:35:17]process_action get_value [00:35:17]cmd_get_value [00:35:17]process_action get_value done [00:35:17]requested_data is exist [00:35:17]produce_requested_data [00:35:17]requested_item kkm.sn is exist - process it [00:35:17]requested_item kkm.ver is exist - process it [00:35:17]requested_item fm.sn is exist - process it [00:35:17]wFMCommunicate request_size=4 [00:35:17]MH_SAM_APDU [00:35:17]CAPDU: 80 11 00 00 [00:35:17]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [00:35:17]Write i2c OK [00:35:17]MH_I2C_Read... [00:35:17]Read from MH i2c: E2 [00:35:17]MH_I2C_Read... [00:35:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:35:17]Read from MH i2c: E2 17 00 [00:35:17]MH_I2C_Read... [00:35:17]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E0 [00:35:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [00:35:17]wFMCommunicate OK [00:35:17]requested_item fd.num is exist - process it [00:35:17]SAM_PROTO_GetFieldsCounters [00:35:17]wFMCommunicate request_size=4 [00:35:17]MH_SAM_APDU [00:35:17]CAPDU: 80 13 00 00 [00:35:17]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [00:35:17]Write i2c OK [00:35:17]MH_I2C_Read... [00:35:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:35:17]Read from MH i2c: E2 [00:35:17]MH_I2C_Read... [00:35:17]Read from MH i2c: E2 62 00 [00:35:17]MH_I2C_Read... [00:35:17]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 77 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 6F 01 00 00 5E 04 04 00 6F 01 00 00 57 04 04 00 71 01 00 00 19 04 04 00 00 00 00 00 90 00 C5 [00:35:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 77 86 02 00 0E 04 04 00 C0 01 00 00 12 04 04 00 6F 01 00 00 5E 04 04 00 6F 01 00 00 57 04 04 00 71 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:35:17]wFMCommunicate OK [00:35:17]SAM_PROTO_GetFieldsCounters done [00:35:17]requested_item shift.num is exist - process it [00:35:17]requested_item shift.opened is exist - process it [00:35:17]req_shift_opened [00:35:17]FM_GetShiftState [00:35:17]SAM_PROTO_GetShiftState [00:35:17]wFMCommunicate request_size=4 [00:35:17]MH_SAM_APDU [00:35:17]CAPDU: 80 13 01 00 [00:35:17]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [00:35:17]Write i2c OK [00:35:17]MH_I2C_Read... [00:35:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:35:17]Read from MH i2c: E2 [00:35:17]MH_I2C_Read... [00:35:17]Read from MH i2c: E2 0E 00 [00:35:17]MH_I2C_Read... [00:35:17]Read from MH i2c: E2 0E 00 12 00 00 09 00 00 00 00 00 00 00 00 00 00 90 00 9A [00:35:17]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:35:17]wFMCommunicate OK [00:35:17]SAM_PROTO_GetShiftState done [00:35:17]FM_GetShiftState done [00:35:17]req_shift_opened done [00:35:17]requested_item shift.open_date is exist - process it [00:35:17]req_shift_open_date [00:35:17]FM_GetShiftState [00:35:17]SAM_PROTO_GetShiftState [00:35:17]wFMCommunicate request_size=4 [00:35:17]MH_SAM_APDU [00:35:17]CAPDU: 80 13 01 00 [00:35:17]Write to MH i2c: E2 08 00 13 00 80 13 01 00 00 00 00 00 90 [00:35:17]Write i2c OK [00:35:17]MH_I2C_Read... [00:35:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:35:17]Read from MH i2c: E2 [00:35:17]MH_I2C_Read... [00:35:17]Read from MH i2c: E2 0E 00 [00:35:17]MH_I2C_Read... [00:35:17]Read from MH i2c: E2 0E 00 13 00 00 09 00 00 00 00 00 00 00 00 00 00 90 00 9B [00:35:17]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:35:17]wFMCommunicate OK [00:35:17]SAM_PROTO_GetShiftState done [00:35:17]FM_GetShiftState done [00:35:17]req_shift_open_date done [00:35:17]produce_requested_data done [00:35:17]produce_requested_data return {"kkm.sn":"0300000160","kkm.ver":"001","fm.sn":"0000000000874718","fd.num":165495,"shift.num":448,"shift.opened":0,"shift.open_date":0} [00:35:17]process_action_free get_value [00:35:17]json_value_free [00:35:17]json_value_free done [00:35:17]process_json_proto returns [00:35:17]Send response to host [00:35:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000160","kkm.ver":"001","fm.sn":"0000000000874718","fd.num":165495,"shift.num":448,"shift.opened":0,"shift.open_date":0}}} [00:35:17]free response buf [00:35:17]execute_script done [00:35:17]execute_script returns [00:35:17]free content buf [00:35:17]Sock 9.Close socket [00:35:17]Sock 9.Thread stoped [00:35:17]accept exits with 7 [00:35:17]New connection [00:35:17]New thread 3066744164 created [00:35:17]Thread 3066887524 joined [00:35:17]Waiting for new connection... [00:35:17] Sock 7.Parse request [00:35:17]Sock 7.Check first char [00:35:17]Sock 7.First char is OK [00:35:17]request: POST /json_proto HTTP/1.0 [00:35:17]Method: POST [00:35:17]URL: /json_proto [00:35:17]Method is POST - this is cgi request [00:35:17]url: /json_proto [00:35:17]query_string will be loaded in cgi processing [00:35:17]execute_cgi json_proto POST (null) [00:35:17]execute_cgi path=json_proto method=POST [00:35:17]POST find Content-Length [00:35:17]Host: 172.17.56.4:8080 [00:35:17]Content-Length: 331 [00:35:17]Content-Type: application/json [00:35:17] [00:35:17]POST finish read [00:35:17]Found Content-Length = 331 [00:35:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:35:17]execute_script... [00:35:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:35:17]POST & json_proto [00:35:17]process_json_proto [00:35:17]json parsed OK: [00:35:17]protocol is kg_v1.0 [00:35:17]action value=get_value [00:35:17]process_action get_value [00:35:17]cmd_get_value [00:35:17]process_action get_value done [00:35:17]requested_data is exist [00:35:17]produce_requested_data [00:35:17]requested_item fm.sale.total is exist - process it [00:35:17]SAM_PROTO_GetFMData [00:35:17]wFMCommunicate request_size=4 [00:35:17]MH_SAM_APDU [00:35:17]CAPDU: 80 13 03 00 [00:35:17]Write to MH i2c: E2 08 00 14 00 80 13 03 00 00 00 00 00 93 [00:35:17]Write i2c OK [00:35:17]MH_I2C_Read... [00:35:18]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:35:18]Read from MH i2c: E2 [00:35:18]MH_I2C_Read... [00:35:18]Read from MH i2c: E2 FD 00 [00:35:18]MH_I2C_Read... [00:35:18]Read from MH i2c: E2 FD 00 14 00 00 C4 04 85 04 C0 04 6E 04 04 00 F3 82 02 00 69 04 A3 00 6F 04 04 00 E5 81 02 00 B1 04 05 00 CD 52 D1 5A 02 70 04 05 00 7D EA 33 38 02 72 04 04 00 50 68 9D 22 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 AB 6E 0A 40 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 0D 03 56 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 0E 01 00 00 B1 04 04 00 6C E5 46 03 70 04 04 00 6C E5 46 03 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 23 19 59 EF 03 09 00 90 00 CD [00:35:18]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 F3 82 02 00 69 04 A3 00 6F 04 04 00 E5 81 02 00 B1 04 05 00 CD 52 D1 5A 02 70 04 05 00 7D EA 33 38 02 72 04 04 00 50 68 9D 22 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 AB 6E 0A 40 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 0D 03 56 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 0E 01 00 00 B1 04 04 00 6C E5 46 03 70 04 04 00 6C E5 46 03 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 23 19 59 EF 03 09 00 90 00 [00:35:18]wFMCommunicate OK [00:35:18]wFMCommunicate request_size=4 [00:35:18]MH_SAM_APDU [00:35:18]CAPDU: 80 17 00 00 [00:35:18]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [00:35:18]Write i2c OK [00:35:18]MH_I2C_Read... [00:35:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:18]Read from MH i2c: E2 [00:35:18]MH_I2C_Read... [00:35:18]Read from MH i2c: E2 FD 00 [00:35:18]MH_I2C_Read... [00:35:18]Read from MH i2c: E2 FD 00 15 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B1 6C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6F [00:35:18]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B1 6C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:35:18]wFMCommunicate OK [00:35:18]wFMCommunicate request_size=4 [00:35:18]MH_SAM_APDU [00:35:18]CAPDU: 80 17 00 00 [00:35:18]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [00:35:18]Write i2c OK [00:35:18]MH_I2C_Read... [00:35:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:18]Read from MH i2c: E2 [00:35:18]MH_I2C_Read... [00:35:18]Read from MH i2c: E2 FD 00 [00:35:18]MH_I2C_Read... [00:35:18]Read from MH i2c: E2 FD 00 16 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AB [00:35:18]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:35:18]wFMCommunicate OK [00:35:18]wFMCommunicate request_size=4 [00:35:18]MH_SAM_APDU [00:35:18]CAPDU: 80 17 00 00 [00:35:18]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [00:35:18]Write i2c OK [00:35:18]MH_I2C_Read... [00:35:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:19]Read from MH i2c: E2 [00:35:19]MH_I2C_Read... [00:35:19]Read from MH i2c: E2 FD 00 [00:35:19]MH_I2C_Read... [00:35:19]Read from MH i2c: E2 FD 00 17 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 0F [00:35:19]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:35:19]wFMCommunicate OK [00:35:19]wFMCommunicate request_size=4 [00:35:19]MH_SAM_APDU [00:35:19]CAPDU: 80 17 00 00 [00:35:19]Write to MH i2c: E2 08 00 18 00 80 17 00 00 00 00 00 00 98 [00:35:19]Write i2c OK [00:35:19]MH_I2C_Read... [00:35:19]Read from MH i2c: E2 [00:35:19]MH_I2C_Read... [00:35:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:35:19]Read from MH i2c: E2 E1 00 [00:35:19]MH_I2C_Read... [00:35:19]Read from MH i2c: E2 E1 00 18 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 86 [00:35:19]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:35:19]wFMCommunicate OK [00:35:19]SAM_PROTO_GetFMData done [00:35:19]requested_item fm.sale_refund.total is exist - process it [00:35:19]requested_item fm.buy.total is exist - process it [00:35:19]requested_item shift.sale.total is exist - process it [00:35:19]SAM_PROTO_GetShiftData [00:35:19]wFMCommunicate request_size=4 [00:35:19]MH_SAM_APDU [00:35:19]CAPDU: 80 13 02 00 [00:35:19]Write to MH i2c: E2 08 00 19 00 80 13 02 00 00 00 00 00 97 [00:35:19]Write i2c OK [00:35:19]MH_I2C_Read... [00:35:19]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:35:19]Read from MH i2c: E2 [00:35:19]MH_I2C_Read... [00:35:19]Read from MH i2c: E2 FD 00 [00:35:19]MH_I2C_Read... [00:35:19]Read from MH i2c: E2 FD 00 19 00 00 B1 04 AA 04 AD 04 6E 04 04 00 6F 01 00 00 69 04 9E 00 6F 04 04 00 6F 01 00 00 B1 04 04 00 48 0D 80 01 70 04 04 00 20 EC 33 01 72 04 03 00 28 21 4C 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 22 CB 28 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 0F 66 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 86 [00:35:19]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 6F 01 00 00 69 04 9E 00 6F 04 04 00 6F 01 00 00 B1 04 04 00 48 0D 80 01 70 04 04 00 20 EC 33 01 72 04 03 00 28 21 4C 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 22 CB 28 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 0F 66 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:35:19]wFMCommunicate OK [00:35:19]wFMCommunicate request_size=4 [00:35:19]MH_SAM_APDU [00:35:19]CAPDU: 80 17 00 00 [00:35:19]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [00:35:19]Write i2c OK [00:35:19]MH_I2C_Read... [00:35:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:20]Read from MH i2c: E2 [00:35:20]MH_I2C_Read... [00:35:20]Read from MH i2c: E2 FD 00 [00:35:20]MH_I2C_Read... [00:35:20]Read from MH i2c: E2 FD 00 1A 00 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B3 [00:35:20]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:35:20]wFMCommunicate OK [00:35:20]wFMCommunicate request_size=4 [00:35:20]MH_SAM_APDU [00:35:20]CAPDU: 80 17 00 00 [00:35:20]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [00:35:20]Write i2c OK [00:35:20]MH_I2C_Read... [00:35:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:20]Read from MH i2c: E2 [00:35:20]MH_I2C_Read... [00:35:20]Read from MH i2c: E2 FD 00 [00:35:20]MH_I2C_Read... [00:35:20]Read from MH i2c: E2 FD 00 1B 00 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 54 [00:35:20]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:35:20]wFMCommunicate OK [00:35:20]wFMCommunicate request_size=4 [00:35:20]MH_SAM_APDU [00:35:20]CAPDU: 80 17 00 00 [00:35:20]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [00:35:20]Write i2c OK [00:35:20]MH_I2C_Read... [00:35:20]OFD Sender: No OFD packet to send [00:35:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:20]Read from MH i2c: E2 [00:35:20]MH_I2C_Read... [00:35:20]Read from MH i2c: E2 FD 00 [00:35:20]MH_I2C_Read... [00:35:20]Read from MH i2c: E2 FD 00 1C 00 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 90 00 14 [00:35:20]RAPDU: 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 90 00 [00:35:20]wFMCommunicate OK [00:35:20]wFMCommunicate request_size=4 [00:35:20]MH_SAM_APDU [00:35:20]CAPDU: 80 17 00 00 [00:35:20]Write to MH i2c: E2 08 00 1D 00 80 17 00 00 00 00 00 00 9D [00:35:20]Write i2c OK [00:35:20]MH_I2C_Read... [00:35:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:35:20]Read from MH i2c: E2 [00:35:20]MH_I2C_Read... [00:35:20]Read from MH i2c: E2 CE 00 [00:35:20]MH_I2C_Read... [00:35:20]Read from MH i2c: E2 CE 00 1D 00 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 82 [00:35:21]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:35:21]wFMCommunicate OK [00:35:21]SAM_PROTO_GetShiftData done [00:35:21]requested_item shift.sale.total_cash is exist - process it [00:35:21]requested_item shift.sale_refund.total is exist - process it [00:35:21]requested_item shift.sale_refund.total_cash is exist - process it [00:35:21]requested_item shift.buy.total is exist - process it [00:35:21]requested_item shift.buy.total_cash is exist - process it [00:35:21]produce_requested_data done [00:35:21]produce_requested_data return {"fm.sale.total":101136022.53,"fm.sale_refund.total":549779.00,"fm.buy.total":0.00,"shift.sale.total":251692.24,"shift.sale.total_cash":201800.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:35:21]process_action_free get_value [00:35:21]json_value_free [00:35:21]json_value_free done [00:35:21]process_json_proto returns [00:35:21]Send response to host [00:35:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":101136022.53,"fm.sale_refund.total":549779.00,"fm.buy.total":0.00,"shift.sale.total":251692.24,"shift.sale.total_cash":201800.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:35:21]free response buf [00:35:21]execute_script done [00:35:21]execute_script returns [00:35:21]free content buf [00:35:21]Sock 7.Close socket [00:35:21]Sock 7.Thread stoped [00:35:21]accept exits with 9 [00:35:21]New connection [00:35:21]New thread 3066887524 created [00:35:21]Thread 3066744164 joined [00:35:21]Waiting for new connection... [00:35:21] Sock 9.Parse request [00:35:21]Sock 9.Check first char [00:35:21]Sock 9.First char is OK [00:35:21]request: POST /json_proto HTTP/1.0 [00:35:21]Method: POST [00:35:21]URL: /json_proto [00:35:21]Method is POST - this is cgi request [00:35:21]url: /json_proto [00:35:21]query_string will be loaded in cgi processing [00:35:21]execute_cgi json_proto POST (null) [00:35:21]execute_cgi path=json_proto method=POST [00:35:21]POST find Content-Length [00:35:21]Host: 172.17.56.4:8080 [00:35:21]Content-Length: 271 [00:35:21]Content-Type: application/json [00:35:21] [00:35:21]POST finish read [00:35:21]Found Content-Length = 271 [00:35:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0416\u0435\u043D\u0438\u0448\u0431\u0435\u043A\u043E\u0432 \u0422. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:35:21]execute_script... [00:35:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0416\u0435\u043D\u0438\u0448\u0431\u0435\u043A\u043E\u0432 \u0422. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:35:21]POST & json_proto [00:35:21]process_json_proto [00:35:21]json parsed OK: [00:35:21]protocol is kg_v1.0 [00:35:21]action value=open_shift [00:35:21]process_action open_shift [00:35:21]cmd_open_shift [00:35:21]MH_GetDate [00:35:21]Write to MH i2c: F0 00 00 1E 00 0D [00:35:21]Write i2c OK [00:35:21]MH_I2C_Read... [00:35:21]Read from MH i2c: F0 [00:35:21]MH_I2C_Read... [00:35:21]Read from MH i2c: F0 09 00 [00:35:21]MH_I2C_Read... [00:35:21]Read from MH i2c: F0 09 00 1E 00 00 49 C0 95 66 C9 DC B2 64 D5 [00:35:21]GetLastDocTimeStamp 112 [00:35:21]current date 1721090121 [00:35:21]FM_GetShiftState [00:35:21]SAM_PROTO_GetShiftState [00:35:21]wFMCommunicate request_size=4 [00:35:21]MH_SAM_APDU [00:35:21]CAPDU: 80 13 01 00 [00:35:21]Write to MH i2c: E2 08 00 1F 00 80 13 01 00 00 00 00 00 9C [00:35:21]Write i2c OK [00:35:21]MH_I2C_Read... [00:35:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:35:21]Read from MH i2c: E2 [00:35:21]MH_I2C_Read... [00:35:21]Read from MH i2c: E2 0E 00 [00:35:21]MH_I2C_Read... [00:35:21]Read from MH i2c: E2 0E 00 1F 00 00 09 00 00 00 00 00 00 00 00 00 00 90 00 A7 [00:35:21]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:35:21]wFMCommunicate OK [00:35:21]SAM_PROTO_GetShiftState done [00:35:21]FM_GetShiftState done [00:35:21]KKMCreateOpenShiftDocument [00:35:21]Load OK [00:35:21]Malloc new data [00:35:21]MH_GetDate [00:35:21]Write to MH i2c: F0 00 00 20 00 0F [00:35:21]Write i2c OK [00:35:21]MH_I2C_Read... [00:35:21]Read from MH i2c: F0 [00:35:21]MH_I2C_Read... [00:35:21]Read from MH i2c: F0 09 00 [00:35:21]MH_I2C_Read... [00:35:21]Read from MH i2c: F0 09 00 20 00 00 49 C0 95 66 C9 DC B2 64 D7 [00:35:21]Malloc new data [00:35:21]KKMCreateOpenShiftDocument OK [00:35:21]KKMSetOpenShiftData OK [00:35:21]ProcessDocumentItem done err = 0, tmpTLVsize=175 [00:35:21]tlvbuf is 011A1730 [00:35:21]KKMLoadAndSignOpenShiftData [00:35:21]SAM_PROTO_ProcessDocument [00:35:21]wFMCommunicate request_size=9 [00:35:21]MH_SAM_APDU [00:35:21]CAPDU: 80 15 01 00 04 02 00 AF 00 [00:35:21]Write to MH i2c: E2 0C 00 21 00 80 15 01 00 04 00 02 00 AF 00 00 00 59 [00:35:21]Write i2c OK [00:35:21]MH_I2C_Read... [00:35:21]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:35:21]Read from MH i2c: E2 [00:35:21]MH_I2C_Read... [00:35:21]Read from MH i2c: E2 03 00 [00:35:21]MH_I2C_Read... [00:35:21]Read from MH i2c: E2 03 00 21 00 00 90 00 95 [00:35:21]RAPDU: 90 00 [00:35:21]wFMCommunicate OK [00:35:21]wFMCommunicate request_size=23 [00:35:21]MH_SAM_APDU [00:35:21]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:35:21]Write to MH i2c: E2 1A 00 22 00 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 97 [00:35:21]Write i2c OK [00:35:21]MH_I2C_Read... [00:35:21]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:35:21]Read from MH i2c: E2 [00:35:21]MH_I2C_Read... [00:35:21]Read from MH i2c: E2 03 00 [00:35:21]MH_I2C_Read... [00:35:21]Read from MH i2c: E2 03 00 22 00 00 90 00 96 [00:35:21]RAPDU: 90 00 [00:35:21]wFMCommunicate OK [00:35:21]wFMCommunicate request_size=34 [00:35:21]MH_SAM_APDU [00:35:21]CAPDU: 80 15 02 00 1D FD 03 19 00 D0 96 D0 B5 D0 BD D0 B8 D1 88 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 A2 2E 20 [00:35:21]Write to MH i2c: E2 25 00 23 00 80 15 02 00 1D 00 FD 03 19 00 D0 96 D0 B5 D0 BD D0 B8 D1 88 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 A2 2E 20 00 00 CF [00:35:21]Write i2c OK [00:35:21]MH_I2C_Read... [00:35:21]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:35:21]Read from MH i2c: E2 [00:35:21]MH_I2C_Read... [00:35:21]Read from MH i2c: E2 03 00 [00:35:21]MH_I2C_Read... [00:35:21]Read from MH i2c: E2 03 00 23 00 00 90 00 97 [00:35:21]RAPDU: 90 00 [00:35:21]wFMCommunicate OK [00:35:21]wFMCommunicate request_size=60 [00:35:21]MH_SAM_APDU [00:35:21]CAPDU: 80 15 02 00 37 F1 03 33 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 91 D0 B0 D0 BA D0 B0 D0 B9 20 D0 90 D1 82 D0 B0 2C 20 34 32 2E 34 38 36 37 37 38 2C 20 37 31 2E 39 33 34 30 30 34 [00:35:21]Write to MH i2c: E2 3F 00 24 00 80 15 02 00 37 00 F1 03 33 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 91 D0 B0 D0 BA D0 B0 D0 B9 20 D0 90 D1 82 D0 B0 2C 20 34 32 2E 34 38 36 37 37 38 2C 20 37 31 2E 39 33 34 30 30 34 00 00 54 [00:35:21]Write i2c OK [00:35:21]MH_I2C_Read... [00:35:21]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:35:21]Read from MH i2c: E2 [00:35:21]MH_I2C_Read... [00:35:21]Read from MH i2c: E2 03 00 [00:35:21]MH_I2C_Read... [00:35:21]Read from MH i2c: E2 03 00 24 00 00 90 00 98 [00:35:21]RAPDU: 90 00 [00:35:21]wFMCommunicate OK [00:35:21]wFMCommunicate request_size=50 [00:35:21]MH_SAM_APDU [00:35:21]CAPDU: 80 15 02 00 2D A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 37 32 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 [00:35:21]Write to MH i2c: E2 35 00 25 00 80 15 02 00 2D 00 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 37 32 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 00 00 1D [00:35:21]Write i2c OK [00:35:21]MH_I2C_Read... [00:35:21]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:35:21]Read from MH i2c: E2 [00:35:21]MH_I2C_Read... [00:35:21]Read from MH i2c: E2 03 00 [00:35:21]MH_I2C_Read... [00:35:21]Read from MH i2c: E2 03 00 25 00 00 90 00 99 [00:35:21]RAPDU: 90 00 [00:35:21]wFMCommunicate OK [00:35:21]wFMCommunicate request_size=13 [00:35:21]MH_SAM_APDU [00:35:21]CAPDU: 80 15 02 00 08 F4 03 04 00 49 C0 95 66 [00:35:21]Write to MH i2c: E2 10 00 26 00 80 15 02 00 08 00 F4 03 04 00 49 C0 95 66 00 00 B5 [00:35:21]Write i2c OK [00:35:21]MH_I2C_Read... [00:35:21]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:35:21]Read from MH i2c: E2 [00:35:21]MH_I2C_Read... [00:35:21]Read from MH i2c: E2 03 00 [00:35:21]MH_I2C_Read... [00:35:21]Read from MH i2c: E2 03 00 26 00 00 90 00 9A [00:35:21]RAPDU: 90 00 [00:35:21]wFMCommunicate OK [00:35:21]wFMCommunicate request_size=25 [00:35:21]MH_SAM_APDU [00:35:21]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 [00:35:21]Write to MH i2c: E2 1C 00 27 00 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 00 00 0C [00:35:21]Write i2c OK [00:35:21]MH_I2C_Read... [00:35:21]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:35:21]Read from MH i2c: E2 [00:35:21]MH_I2C_Read... [00:35:21]Read from MH i2c: E2 03 00 [00:35:21]MH_I2C_Read... [00:35:21]Read from MH i2c: E2 03 00 27 00 00 90 00 9B [00:35:21]RAPDU: 90 00 [00:35:21]wFMCommunicate OK [00:35:21]wFMCommunicate request_size=4 [00:35:21]MH_SAM_APDU [00:35:21]CAPDU: 80 15 03 00 [00:35:21]Write to MH i2c: E2 08 00 28 00 80 15 03 00 00 00 00 00 A9 [00:35:21]Write i2c OK [00:35:21]MH_I2C_Read... [00:35:22]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:35:22]Read from MH i2c: E2 [00:35:22]MH_I2C_Read... [00:35:22]Read from MH i2c: E2 38 00 [00:35:22]MH_I2C_Read... [00:35:22]Read from MH i2c: E2 38 00 28 00 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 78 86 02 00 0E 04 04 00 C1 01 00 00 35 04 06 00 4A 55 5E E9 C7 E0 90 00 C7 [00:35:22]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 78 86 02 00 0E 04 04 00 C1 01 00 00 35 04 06 00 4A 55 5E E9 C7 E0 90 00 [00:35:22]wFMCommunicate OK [00:35:22]SAM_PROTO_ProcessDocument answer len = 51 [00:35:22]SAM_PROTO_ProcessDocument done [00:35:22]SetTLVBufToDocument [00:35:22]Processing tag 1209 (04B9) [00:35:22]Malloc new data [00:35:22]Processing tag 1041 (0411) [00:35:22]Processing tag 1040 (0410) [00:35:22]Malloc new data [00:35:22]Processing tag 1038 (040E) [00:35:22]Malloc new data [00:35:22]Processing tag 1077 (0435) [00:35:22]Malloc new data [00:35:22]SetTLVBufToDocument err=0 [00:35:22]KKMLoadAndSignOpenShiftData store KKM data [00:35:22]KKMLoadAndSignOpenShiftData err=0 [00:35:22]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Женишбеков Т. Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 Место: АЗС № 72 "Партнер Нефть" 16.07.2024 00:35 Смена: 449 РНМ: 0000000000090829 ЗНМ: 0300000160 ФД: 165496 ФМ: 0000000000874718 ФПД: 81730525054944 [00:35:22]StoreToDocumentArchive [00:35:22]shift 449 fd 165496 [00:35:22]Create dir for shift 0449 [00:35:22]save to /storage/0449/doc_00165496 [00:35:22]save last doc name /storage/0449/doc_00165496 to /storage/kkm_last_doc_name [00:35:22]save OK [00:35:22]Clear old archive folders... [00:35:22]Remove dir /storage/0448 [00:35:22]opendir ok [00:35:22]file . [00:35:22]file .. [00:35:22]file doc_00165127 [00:35:22]remove file /storage/0448/doc_00165127 [00:35:22]file doc_00165128 [00:35:22]remove file /storage/0448/doc_00165128 [00:35:22]file doc_00165129 [00:35:22]remove file /storage/0448/doc_00165129 [00:35:22]file doc_00165130 [00:35:22]remove file /storage/0448/doc_00165130 [00:35:22]file doc_00165131 [00:35:22]remove file /storage/0448/doc_00165131 [00:35:22]file doc_00165132 [00:35:22]remove file /storage/0448/doc_00165132 [00:35:22]file doc_00165133 [00:35:22]remove file /storage/0448/doc_00165133 [00:35:22]file doc_00165134 [00:35:22]remove file /storage/0448/doc_00165134 [00:35:22]file doc_00165135 [00:35:22]remove file /storage/0448/doc_00165135 [00:35:22]file doc_00165136 [00:35:22]remove file /storage/0448/doc_00165136 [00:35:22]file doc_00165137 [00:35:22]remove file /storage/0448/doc_00165137 [00:35:22]file doc_00165138 [00:35:22]remove file /storage/0448/doc_00165138 [00:35:22]file doc_00165139 [00:35:22]remove file /storage/0448/doc_00165139 [00:35:22]file doc_00165140 [00:35:22]remove file /storage/0448/doc_00165140 [00:35:22]file doc_00165141 [00:35:22]remove file /storage/0448/doc_00165141 [00:35:22]file doc_00165142 [00:35:22]remove file /storage/0448/doc_00165142 [00:35:22]file doc_00165143 [00:35:22]remove file /storage/0448/doc_00165143 [00:35:22]file doc_00165144 [00:35:22]remove file /storage/0448/doc_00165144 [00:35:22]file doc_00165145 [00:35:22]remove file /storage/0448/doc_00165145 [00:35:22]file doc_00165146 [00:35:22]remove file /storage/0448/doc_00165146 [00:35:22]file doc_00165147 [00:35:22]remove file /storage/0448/doc_00165147 [00:35:22]file doc_00165148 [00:35:22]remove file /storage/0448/doc_00165148 [00:35:22]file doc_00165149 [00:35:22]remove file /storage/0448/doc_00165149 [00:35:22]file doc_00165150 [00:35:22]remove file /storage/0448/doc_00165150 [00:35:22]file doc_00165151 [00:35:22]remove file /storage/0448/doc_00165151 [00:35:22]file doc_00165152 [00:35:22]remove file /storage/0448/doc_00165152 [00:35:22]file doc_00165153 [00:35:22]remove file /storage/0448/doc_00165153 [00:35:22]file doc_00165154 [00:35:22]remove file /storage/0448/doc_00165154 [00:35:22]file doc_00165155 [00:35:22]remove file /storage/0448/doc_00165155 [00:35:22]file doc_00165156 [00:35:22]remove file /storage/0448/doc_00165156 [00:35:22]file doc_00165157 [00:35:22]remove file /storage/0448/doc_00165157 [00:35:22]file doc_00165158 [00:35:22]remove file /storage/0448/doc_00165158 [00:35:22]file doc_00165159 [00:35:22]remove file /storage/0448/doc_00165159 [00:35:22]file doc_00165160 [00:35:22]remove file /storage/0448/doc_00165160 [00:35:22]file doc_00165161 [00:35:22]remove file /storage/0448/doc_00165161 [00:35:22]file doc_00165162 [00:35:22]remove file /storage/0448/doc_00165162 [00:35:22]file doc_00165163 [00:35:22]remove file /storage/0448/doc_00165163 [00:35:22]file doc_00165164 [00:35:22]remove file /storage/0448/doc_00165164 [00:35:22]file doc_00165165 [00:35:22]remove file /storage/0448/doc_00165165 [00:35:22]file doc_00165166 [00:35:22]remove file /storage/0448/doc_00165166 [00:35:22]file doc_00165167 [00:35:22]remove file /storage/0448/doc_00165167 [00:35:22]file doc_00165168 [00:35:22]remove file /storage/0448/doc_00165168 [00:35:22]file doc_00165169 [00:35:22]remove file /storage/0448/doc_00165169 [00:35:22]file doc_00165170 [00:35:22]remove file /storage/0448/doc_00165170 [00:35:22]file doc_00165171 [00:35:22]remove file /storage/0448/doc_00165171 [00:35:22]file doc_00165172 [00:35:22]remove file /storage/0448/doc_00165172 [00:35:22]file doc_00165173 [00:35:22]remove file /storage/0448/doc_00165173 [00:35:22]file doc_00165174 [00:35:22]remove file /storage/0448/doc_00165174 [00:35:22]file doc_00165175 [00:35:22]remove file /storage/0448/doc_00165175 [00:35:22]file doc_00165176 [00:35:22]remove file /storage/0448/doc_00165176 [00:35:22]file doc_00165177 [00:35:22]remove file /storage/0448/doc_00165177 [00:35:22]file doc_00165178 [00:35:22]remove file /storage/0448/doc_00165178 [00:35:22]file doc_00165179 [00:35:22]remove file /storage/0448/doc_00165179 [00:35:22]file doc_00165180 [00:35:22]remove file /storage/0448/doc_00165180 [00:35:22]file doc_00165181 [00:35:22]remove file /storage/0448/doc_00165181 [00:35:22]file doc_00165182 [00:35:22]remove file /storage/0448/doc_00165182 [00:35:22]file doc_00165183 [00:35:22]remove file /storage/0448/doc_00165183 [00:35:22]file doc_00165184 [00:35:22]remove file /storage/0448/doc_00165184 [00:35:22]file doc_00165185 [00:35:22]remove file /storage/0448/doc_00165185 [00:35:22]file doc_00165186 [00:35:22]remove file /storage/0448/doc_00165186 [00:35:22]file doc_00165187 [00:35:22]remove file /storage/0448/doc_00165187 [00:35:22]file doc_00165188 [00:35:22]remove file /storage/0448/doc_00165188 [00:35:22]file doc_00165189 [00:35:22]remove file /storage/0448/doc_00165189 [00:35:22]file doc_00165190 [00:35:22]remove file /storage/0448/doc_00165190 [00:35:22]file doc_00165191 [00:35:22]remove file /storage/0448/doc_00165191 [00:35:22]file doc_00165192 [00:35:22]remove file /storage/0448/doc_00165192 [00:35:22]file doc_00165193 [00:35:22]remove file /storage/0448/doc_00165193 [00:35:22]file doc_00165194 [00:35:22]remove file /storage/0448/doc_00165194 [00:35:22]file doc_00165195 [00:35:22]remove file /storage/0448/doc_00165195 [00:35:22]file doc_00165196 [00:35:22]remove file /storage/0448/doc_00165196 [00:35:22]file doc_00165197 [00:35:22]remove file /storage/0448/doc_00165197 [00:35:22]file doc_00165198 [00:35:22]remove file /storage/0448/doc_00165198 [00:35:22]file doc_00165199 [00:35:22]remove file /storage/0448/doc_00165199 [00:35:22]file doc_00165200 [00:35:22]remove file /storage/0448/doc_00165200 [00:35:22]file doc_00165201 [00:35:22]remove file /storage/0448/doc_00165201 [00:35:22]file doc_00165202 [00:35:22]remove file /storage/0448/doc_00165202 [00:35:22]file doc_00165203 [00:35:22]remove file /storage/0448/doc_00165203 [00:35:22]file doc_00165204 [00:35:22]remove file /storage/0448/doc_00165204 [00:35:22]file doc_00165205 [00:35:22]remove file /storage/0448/doc_00165205 [00:35:22]file doc_00165206 [00:35:22]remove file /storage/0448/doc_00165206 [00:35:22]file doc_00165207 [00:35:22]remove file /storage/0448/doc_00165207 [00:35:22]file doc_00165208 [00:35:22]remove file /storage/0448/doc_00165208 [00:35:22]file doc_00165209 [00:35:22]remove file /storage/0448/doc_00165209 [00:35:22]file doc_00165210 [00:35:22]remove file /storage/0448/doc_00165210 [00:35:22]file doc_00165211 [00:35:22]remove file /storage/0448/doc_00165211 [00:35:22]file doc_00165212 [00:35:22]remove file /storage/0448/doc_00165212 [00:35:22]file doc_00165213 [00:35:22]remove file /storage/0448/doc_00165213 [00:35:22]file doc_00165214 [00:35:22]remove file /storage/0448/doc_00165214 [00:35:22]file doc_00165215 [00:35:22]remove file /storage/0448/doc_00165215 [00:35:22]file doc_00165216 [00:35:22]remove file /storage/0448/doc_00165216 [00:35:22]file doc_00165217 [00:35:22]remove file /storage/0448/doc_00165217 [00:35:22]file doc_00165218 [00:35:22]remove file /storage/0448/doc_00165218 [00:35:22]file doc_00165219 [00:35:22]remove file /storage/0448/doc_00165219 [00:35:22]file doc_00165220 [00:35:22]remove file /storage/0448/doc_00165220 [00:35:22]file doc_00165221 [00:35:22]remove file /storage/0448/doc_00165221 [00:35:22]file doc_00165222 [00:35:22]remove file /storage/0448/doc_00165222 [00:35:22]file doc_00165223 [00:35:22]remove file /storage/0448/doc_00165223 [00:35:22]file doc_00165224 [00:35:22]remove file /storage/0448/doc_00165224 [00:35:22]file doc_00165225 [00:35:22]remove file /storage/0448/doc_00165225 [00:35:22]file doc_00165226 [00:35:22]remove file /storage/0448/doc_00165226 [00:35:22]file doc_00165227 [00:35:22]remove file /storage/0448/doc_00165227 [00:35:22]file doc_00165228 [00:35:22]remove file /storage/0448/doc_00165228 [00:35:22]file doc_00165229 [00:35:22]remove file /storage/0448/doc_00165229 [00:35:22]file doc_00165230 [00:35:22]remove file /storage/0448/doc_00165230 [00:35:22]file doc_00165231 [00:35:22]remove file /storage/0448/doc_00165231 [00:35:22]file doc_00165232 [00:35:22]remove file /storage/0448/doc_00165232 [00:35:22]file doc_00165233 [00:35:22]remove file /storage/0448/doc_00165233 [00:35:22]file doc_00165234 [00:35:22]remove file /storage/0448/doc_00165234 [00:35:22]file doc_00165235 [00:35:22]remove file /storage/0448/doc_00165235 [00:35:22]file doc_00165236 [00:35:22]remove file /storage/0448/doc_00165236 [00:35:22]file doc_00165237 [00:35:22]remove file /storage/0448/doc_00165237 [00:35:22]file doc_00165238 [00:35:22]remove file /storage/0448/doc_00165238 [00:35:22]file doc_00165239 [00:35:22]remove file /storage/0448/doc_00165239 [00:35:22]file doc_00165240 [00:35:22]remove file /storage/0448/doc_00165240 [00:35:22]file doc_00165241 [00:35:22]remove file /storage/0448/doc_00165241 [00:35:22]file doc_00165242 [00:35:22]remove file /storage/0448/doc_00165242 [00:35:22]file doc_00165243 [00:35:22]remove file /storage/0448/doc_00165243 [00:35:22]file doc_00165244 [00:35:22]remove file /storage/0448/doc_00165244 [00:35:22]file doc_00165245 [00:35:22]remove file /storage/0448/doc_00165245 [00:35:22]file doc_00165246 [00:35:22]remove file /storage/0448/doc_00165246 [00:35:22]file doc_00165247 [00:35:22]remove file /storage/0448/doc_00165247 [00:35:22]file doc_00165248 [00:35:22]remove file /storage/0448/doc_00165248 [00:35:22]file doc_00165249 [00:35:22]remove file /storage/0448/doc_00165249 [00:35:22]file doc_00165250 [00:35:22]remove file /storage/0448/doc_00165250 [00:35:22]file doc_00165251 [00:35:22]remove file /storage/0448/doc_00165251 [00:35:22]file doc_00165252 [00:35:22]remove file /storage/0448/doc_00165252 [00:35:22]file doc_00165253 [00:35:22]remove file /storage/0448/doc_00165253 [00:35:22]file doc_00165254 [00:35:22]remove file /storage/0448/doc_00165254 [00:35:22]file doc_00165255 [00:35:22]remove file /storage/0448/doc_00165255 [00:35:22]file doc_00165256 [00:35:22]remove file /storage/0448/doc_00165256 [00:35:22]file doc_00165257 [00:35:22]remove file /storage/0448/doc_00165257 [00:35:22]file doc_00165258 [00:35:22]remove file /storage/0448/doc_00165258 [00:35:22]file doc_00165259 [00:35:22]remove file /storage/0448/doc_00165259 [00:35:22]file doc_00165260 [00:35:22]remove file /storage/0448/doc_00165260 [00:35:22]file doc_00165261 [00:35:22]remove file /storage/0448/doc_00165261 [00:35:22]file doc_00165262 [00:35:22]remove file /storage/0448/doc_00165262 [00:35:22]file doc_00165263 [00:35:22]remove file /storage/0448/doc_00165263 [00:35:22]file doc_00165264 [00:35:22]remove file /storage/0448/doc_00165264 [00:35:22]file doc_00165265 [00:35:22]remove file /storage/0448/doc_00165265 [00:35:22]file doc_00165266 [00:35:22]remove file /storage/0448/doc_00165266 [00:35:22]file doc_00165267 [00:35:22]remove file /storage/0448/doc_00165267 [00:35:22]file doc_00165268 [00:35:22]remove file /storage/0448/doc_00165268 [00:35:22]file doc_00165269 [00:35:22]remove file /storage/0448/doc_00165269 [00:35:22]file doc_00165270 [00:35:22]remove file /storage/0448/doc_00165270 [00:35:22]file doc_00165271 [00:35:22]remove file /storage/0448/doc_00165271 [00:35:22]file doc_00165272 [00:35:22]remove file /storage/0448/doc_00165272 [00:35:22]file doc_00165273 [00:35:22]remove file /storage/0448/doc_00165273 [00:35:22]file doc_00165274 [00:35:22]remove file /storage/0448/doc_00165274 [00:35:22]file doc_00165275 [00:35:22]remove file /storage/0448/doc_00165275 [00:35:22]file doc_00165276 [00:35:22]remove file /storage/0448/doc_00165276 [00:35:22]file doc_00165277 [00:35:22]remove file /storage/0448/doc_00165277 [00:35:22]file doc_00165278 [00:35:22]remove file /storage/0448/doc_00165278 [00:35:22]file doc_00165279 [00:35:22]remove file /storage/0448/doc_00165279 [00:35:22]file doc_00165280 [00:35:22]remove file /storage/0448/doc_00165280 [00:35:22]file doc_00165281 [00:35:22]remove file /storage/0448/doc_00165281 [00:35:22]file doc_00165282 [00:35:22]remove file /storage/0448/doc_00165282 [00:35:22]file doc_00165283 [00:35:22]remove file /storage/0448/doc_00165283 [00:35:22]file doc_00165284 [00:35:22]remove file /storage/0448/doc_00165284 [00:35:22]file doc_00165285 [00:35:22]remove file /storage/0448/doc_00165285 [00:35:22]file doc_00165286 [00:35:22]remove file /storage/0448/doc_00165286 [00:35:22]file doc_00165287 [00:35:22]remove file /storage/0448/doc_00165287 [00:35:22]file doc_00165288 [00:35:22]remove file /storage/0448/doc_00165288 [00:35:22]file doc_00165289 [00:35:22]remove file /storage/0448/doc_00165289 [00:35:22]file doc_00165290 [00:35:22]remove file /storage/0448/doc_00165290 [00:35:22]file doc_00165291 [00:35:22]remove file /storage/0448/doc_00165291 [00:35:22]file doc_00165292 [00:35:22]remove file /storage/0448/doc_00165292 [00:35:22]file doc_00165293 [00:35:23]remove file /storage/0448/doc_00165293 [00:35:23]file doc_00165294 [00:35:23]remove file /storage/0448/doc_00165294 [00:35:23]file doc_00165295 [00:35:23]remove file /storage/0448/doc_00165295 [00:35:23]file doc_00165296 [00:35:23]remove file /storage/0448/doc_00165296 [00:35:23]file doc_00165297 [00:35:23]remove file /storage/0448/doc_00165297 [00:35:23]file doc_00165298 [00:35:23]remove file /storage/0448/doc_00165298 [00:35:23]file doc_00165299 [00:35:23]remove file /storage/0448/doc_00165299 [00:35:23]file doc_00165300 [00:35:23]remove file /storage/0448/doc_00165300 [00:35:23]file doc_00165301 [00:35:23]remove file /storage/0448/doc_00165301 [00:35:23]file doc_00165302 [00:35:23]remove file /storage/0448/doc_00165302 [00:35:23]file doc_00165303 [00:35:23]remove file /storage/0448/doc_00165303 [00:35:23]file doc_00165304 [00:35:23]remove file /storage/0448/doc_00165304 [00:35:23]file doc_00165305 [00:35:23]remove file /storage/0448/doc_00165305 [00:35:23]file doc_00165306 [00:35:23]remove file /storage/0448/doc_00165306 [00:35:23]file doc_00165307 [00:35:23]remove file /storage/0448/doc_00165307 [00:35:23]file doc_00165308 [00:35:23]remove file /storage/0448/doc_00165308 [00:35:23]file doc_00165309 [00:35:23]remove file /storage/0448/doc_00165309 [00:35:23]file doc_00165310 [00:35:23]remove file /storage/0448/doc_00165310 [00:35:23]file doc_00165311 [00:35:23]remove file /storage/0448/doc_00165311 [00:35:23]file doc_00165312 [00:35:23]remove file /storage/0448/doc_00165312 [00:35:23]file doc_00165313 [00:35:23]remove file /storage/0448/doc_00165313 [00:35:23]file doc_00165314 [00:35:23]remove file /storage/0448/doc_00165314 [00:35:23]file doc_00165315 [00:35:23]remove file /storage/0448/doc_00165315 [00:35:23]file doc_00165316 [00:35:23]remove file /storage/0448/doc_00165316 [00:35:23]file doc_00165317 [00:35:23]remove file /storage/0448/doc_00165317 [00:35:23]file doc_00165318 [00:35:23]remove file /storage/0448/doc_00165318 [00:35:23]file doc_00165319 [00:35:23]remove file /storage/0448/doc_00165319 [00:35:23]file doc_00165320 [00:35:23]remove file /storage/0448/doc_00165320 [00:35:23]file doc_00165321 [00:35:23]remove file /storage/0448/doc_00165321 [00:35:23]file doc_00165322 [00:35:23]remove file /storage/0448/doc_00165322 [00:35:23]file doc_00165323 [00:35:23]remove file /storage/0448/doc_00165323 [00:35:23]file doc_00165324 [00:35:23]remove file /storage/0448/doc_00165324 [00:35:23]file doc_00165325 [00:35:23]remove file /storage/0448/doc_00165325 [00:35:23]file doc_00165326 [00:35:23]remove file /storage/0448/doc_00165326 [00:35:23]file doc_00165327 [00:35:23]remove file /storage/0448/doc_00165327 [00:35:23]file doc_00165328 [00:35:23]remove file /storage/0448/doc_00165328 [00:35:23]file doc_00165329 [00:35:23]remove file /storage/0448/doc_00165329 [00:35:23]file doc_00165330 [00:35:23]remove file /storage/0448/doc_00165330 [00:35:23]file doc_00165331 [00:35:23]remove file /storage/0448/doc_00165331 [00:35:23]file doc_00165332 [00:35:23]remove file /storage/0448/doc_00165332 [00:35:23]file doc_00165333 [00:35:23]remove file /storage/0448/doc_00165333 [00:35:23]file doc_00165334 [00:35:23]remove file /storage/0448/doc_00165334 [00:35:23]file doc_00165335 [00:35:23]remove file /storage/0448/doc_00165335 [00:35:23]file doc_00165336 [00:35:23]remove file /storage/0448/doc_00165336 [00:35:23]file doc_00165337 [00:35:23]remove file /storage/0448/doc_00165337 [00:35:23]file doc_00165338 [00:35:23]remove file /storage/0448/doc_00165338 [00:35:23]file doc_00165339 [00:35:23]remove file /storage/0448/doc_00165339 [00:35:23]file doc_00165340 [00:35:23]remove file /storage/0448/doc_00165340 [00:35:23]file doc_00165341 [00:35:23]remove file /storage/0448/doc_00165341 [00:35:23]file doc_00165342 [00:35:23]remove file /storage/0448/doc_00165342 [00:35:23]file doc_00165343 [00:35:23]remove file /storage/0448/doc_00165343 [00:35:23]file doc_00165344 [00:35:23]remove file /storage/0448/doc_00165344 [00:35:23]file doc_00165345 [00:35:23]remove file /storage/0448/doc_00165345 [00:35:23]file doc_00165346 [00:35:23]remove file /storage/0448/doc_00165346 [00:35:23]file doc_00165347 [00:35:23]remove file /storage/0448/doc_00165347 [00:35:23]file doc_00165348 [00:35:23]remove file /storage/0448/doc_00165348 [00:35:23]file doc_00165349 [00:35:23]remove file /storage/0448/doc_00165349 [00:35:23]file doc_00165350 [00:35:23]remove file /storage/0448/doc_00165350 [00:35:23]file doc_00165351 [00:35:23]remove file /storage/0448/doc_00165351 [00:35:23]file doc_00165352 [00:35:23]remove file /storage/0448/doc_00165352 [00:35:23]file doc_00165353 [00:35:23]remove file /storage/0448/doc_00165353 [00:35:23]file doc_00165354 [00:35:23]remove file /storage/0448/doc_00165354 [00:35:23]file doc_00165355 [00:35:23]remove file /storage/0448/doc_00165355 [00:35:23]file doc_00165356 [00:35:23]remove file /storage/0448/doc_00165356 [00:35:23]file doc_00165357 [00:35:23]remove file /storage/0448/doc_00165357 [00:35:23]file doc_00165358 [00:35:23]remove file /storage/0448/doc_00165358 [00:35:23]file doc_00165359 [00:35:23]remove file /storage/0448/doc_00165359 [00:35:23]file doc_00165360 [00:35:23]remove file /storage/0448/doc_00165360 [00:35:23]file doc_00165361 [00:35:23]remove file /storage/0448/doc_00165361 [00:35:23]file doc_00165362 [00:35:23]remove file /storage/0448/doc_00165362 [00:35:23]file doc_00165363 [00:35:23]remove file /storage/0448/doc_00165363 [00:35:23]file doc_00165364 [00:35:23]remove file /storage/0448/doc_00165364 [00:35:23]file doc_00165365 [00:35:23]remove file /storage/0448/doc_00165365 [00:35:23]file doc_00165366 [00:35:23]remove file /storage/0448/doc_00165366 [00:35:23]file doc_00165367 [00:35:23]remove file /storage/0448/doc_00165367 [00:35:23]file doc_00165368 [00:35:23]remove file /storage/0448/doc_00165368 [00:35:23]file doc_00165369 [00:35:23]remove file /storage/0448/doc_00165369 [00:35:23]file doc_00165370 [00:35:23]remove file /storage/0448/doc_00165370 [00:35:23]file doc_00165371 [00:35:23]remove file /storage/0448/doc_00165371 [00:35:23]file doc_00165372 [00:35:23]remove file /storage/0448/doc_00165372 [00:35:23]file doc_00165373 [00:35:23]remove file /storage/0448/doc_00165373 [00:35:23]file doc_00165374 [00:35:23]remove file /storage/0448/doc_00165374 [00:35:23]file doc_00165375 [00:35:23]remove file /storage/0448/doc_00165375 [00:35:23]file doc_00165376 [00:35:23]remove file /storage/0448/doc_00165376 [00:35:23]file doc_00165377 [00:35:23]remove file /storage/0448/doc_00165377 [00:35:23]file doc_00165378 [00:35:23]remove file /storage/0448/doc_00165378 [00:35:23]file doc_00165379 [00:35:23]remove file /storage/0448/doc_00165379 [00:35:23]file doc_00165380 [00:35:23]remove file /storage/0448/doc_00165380 [00:35:23]file doc_00165381 [00:35:23]remove file /storage/0448/doc_00165381 [00:35:23]file doc_00165382 [00:35:23]remove file /storage/0448/doc_00165382 [00:35:23]file doc_00165383 [00:35:23]remove file /storage/0448/doc_00165383 [00:35:23]file doc_00165384 [00:35:23]remove file /storage/0448/doc_00165384 [00:35:23]file doc_00165385 [00:35:23]remove file /storage/0448/doc_00165385 [00:35:23]file doc_00165386 [00:35:23]remove file /storage/0448/doc_00165386 [00:35:23]file doc_00165387 [00:35:23]remove file /storage/0448/doc_00165387 [00:35:23]file doc_00165388 [00:35:23]remove file /storage/0448/doc_00165388 [00:35:23]file doc_00165389 [00:35:23]remove file /storage/0448/doc_00165389 [00:35:23]file doc_00165390 [00:35:23]remove file /storage/0448/doc_00165390 [00:35:23]file doc_00165391 [00:35:23]remove file /storage/0448/doc_00165391 [00:35:23]file doc_00165392 [00:35:23]remove file /storage/0448/doc_00165392 [00:35:23]file doc_00165393 [00:35:23]remove file /storage/0448/doc_00165393 [00:35:23]file doc_00165394 [00:35:23]remove file /storage/0448/doc_00165394 [00:35:23]file doc_00165395 [00:35:23]remove file /storage/0448/doc_00165395 [00:35:23]file doc_00165396 [00:35:23]remove file /storage/0448/doc_00165396 [00:35:23]file doc_00165397 [00:35:23]remove file /storage/0448/doc_00165397 [00:35:23]file doc_00165398 [00:35:23]remove file /storage/0448/doc_00165398 [00:35:23]file doc_00165399 [00:35:23]remove file /storage/0448/doc_00165399 [00:35:23]file doc_00165400 [00:35:23]remove file /storage/0448/doc_00165400 [00:35:23]file doc_00165401 [00:35:23]remove file /storage/0448/doc_00165401 [00:35:23]file doc_00165402 [00:35:23]remove file /storage/0448/doc_00165402 [00:35:23]file doc_00165403 [00:35:23]remove file /storage/0448/doc_00165403 [00:35:23]file doc_00165404 [00:35:23]remove file /storage/0448/doc_00165404 [00:35:23]file doc_00165405 [00:35:23]remove file /storage/0448/doc_00165405 [00:35:23]file doc_00165406 [00:35:23]remove file /storage/0448/doc_00165406 [00:35:23]file doc_00165407 [00:35:23]remove file /storage/0448/doc_00165407 [00:35:23]file doc_00165408 [00:35:23]remove file /storage/0448/doc_00165408 [00:35:23]file doc_00165409 [00:35:23]remove file /storage/0448/doc_00165409 [00:35:23]file doc_00165410 [00:35:23]remove file /storage/0448/doc_00165410 [00:35:23]file doc_00165411 [00:35:23]remove file /storage/0448/doc_00165411 [00:35:23]file doc_00165412 [00:35:23]remove file /storage/0448/doc_00165412 [00:35:23]file doc_00165413 [00:35:23]remove file /storage/0448/doc_00165413 [00:35:23]file doc_00165414 [00:35:23]remove file /storage/0448/doc_00165414 [00:35:23]file doc_00165415 [00:35:23]remove file /storage/0448/doc_00165415 [00:35:23]file doc_00165416 [00:35:23]remove file /storage/0448/doc_00165416 [00:35:23]file doc_00165417 [00:35:23]remove file /storage/0448/doc_00165417 [00:35:23]file doc_00165418 [00:35:23]remove file /storage/0448/doc_00165418 [00:35:23]file doc_00165419 [00:35:23]remove file /storage/0448/doc_00165419 [00:35:23]file doc_00165420 [00:35:23]remove file /storage/0448/doc_00165420 [00:35:23]file doc_00165421 [00:35:23]remove file /storage/0448/doc_00165421 [00:35:23]file doc_00165422 [00:35:23]remove file /storage/0448/doc_00165422 [00:35:23]file doc_00165423 [00:35:23]remove file /storage/0448/doc_00165423 [00:35:23]file doc_00165424 [00:35:23]remove file /storage/0448/doc_00165424 [00:35:23]file doc_00165425 [00:35:23]remove file /storage/0448/doc_00165425 [00:35:23]file doc_00165426 [00:35:23]remove file /storage/0448/doc_00165426 [00:35:23]file doc_00165427 [00:35:23]remove file /storage/0448/doc_00165427 [00:35:23]file doc_00165428 [00:35:23]remove file /storage/0448/doc_00165428 [00:35:23]file doc_00165429 [00:35:23]remove file /storage/0448/doc_00165429 [00:35:23]file doc_00165430 [00:35:23]remove file /storage/0448/doc_00165430 [00:35:23]file doc_00165431 [00:35:23]remove file /storage/0448/doc_00165431 [00:35:23]file doc_00165432 [00:35:23]remove file /storage/0448/doc_00165432 [00:35:23]file doc_00165433 [00:35:23]remove file /storage/0448/doc_00165433 [00:35:23]file doc_00165434 [00:35:23]remove file /storage/0448/doc_00165434 [00:35:23]file doc_00165435 [00:35:23]remove file /storage/0448/doc_00165435 [00:35:23]file doc_00165436 [00:35:23]remove file /storage/0448/doc_00165436 [00:35:23]file doc_00165437 [00:35:23]remove file /storage/0448/doc_00165437 [00:35:23]file doc_00165438 [00:35:23]remove file /storage/0448/doc_00165438 [00:35:23]file doc_00165439 [00:35:23]remove file /storage/0448/doc_00165439 [00:35:23]file doc_00165440 [00:35:23]remove file /storage/0448/doc_00165440 [00:35:23]file doc_00165441 [00:35:23]remove file /storage/0448/doc_00165441 [00:35:23]file doc_00165442 [00:35:23]remove file /storage/0448/doc_00165442 [00:35:23]file doc_00165443 [00:35:23]remove file /storage/0448/doc_00165443 [00:35:23]file doc_00165444 [00:35:23]remove file /storage/0448/doc_00165444 [00:35:23]file doc_00165445 [00:35:23]remove file /storage/0448/doc_00165445 [00:35:23]file doc_00165446 [00:35:23]remove file /storage/0448/doc_00165446 [00:35:23]file doc_00165447 [00:35:23]remove file /storage/0448/doc_00165447 [00:35:23]file doc_00165448 [00:35:23]remove file /storage/0448/doc_00165448 [00:35:23]file doc_00165449 [00:35:23]remove file /storage/0448/doc_00165449 [00:35:23]file doc_00165450 [00:35:23]remove file /storage/0448/doc_00165450 [00:35:23]file doc_00165451 [00:35:23]remove file /storage/0448/doc_00165451 [00:35:23]file doc_00165452 [00:35:23]remove file /storage/0448/doc_00165452 [00:35:23]file doc_00165453 [00:35:23]remove file /storage/0448/doc_00165453 [00:35:23]file doc_00165454 [00:35:23]remove file /storage/0448/doc_00165454 [00:35:23]file doc_00165455 [00:35:23]remove file /storage/0448/doc_00165455 [00:35:23]file doc_00165456 [00:35:23]remove file /storage/0448/doc_00165456 [00:35:23]file doc_00165457 [00:35:23]remove file /storage/0448/doc_00165457 [00:35:23]file doc_00165458 [00:35:23]remove file /storage/0448/doc_00165458 [00:35:23]file doc_00165459 [00:35:23]remove file /storage/0448/doc_00165459 [00:35:23]file doc_00165460 [00:35:23]remove file /storage/0448/doc_00165460 [00:35:23]file doc_00165461 [00:35:23]remove file /storage/0448/doc_00165461 [00:35:23]file doc_00165462 [00:35:23]remove file /storage/0448/doc_00165462 [00:35:23]file doc_00165463 [00:35:23]remove file /storage/0448/doc_00165463 [00:35:23]file doc_00165464 [00:35:23]remove file /storage/0448/doc_00165464 [00:35:23]file doc_00165465 [00:35:23]remove file /storage/0448/doc_00165465 [00:35:23]file doc_00165466 [00:35:23]remove file /storage/0448/doc_00165466 [00:35:23]file doc_00165467 [00:35:23]remove file /storage/0448/doc_00165467 [00:35:23]file doc_00165468 [00:35:23]remove file /storage/0448/doc_00165468 [00:35:23]file doc_00165469 [00:35:23]remove file /storage/0448/doc_00165469 [00:35:23]file doc_00165470 [00:35:23]remove file /storage/0448/doc_00165470 [00:35:23]file doc_00165471 [00:35:23]remove file /storage/0448/doc_00165471 [00:35:23]file doc_00165472 [00:35:23]remove file /storage/0448/doc_00165472 [00:35:23]file doc_00165473 [00:35:23]remove file /storage/0448/doc_00165473 [00:35:23]file doc_00165474 [00:35:23]remove file /storage/0448/doc_00165474 [00:35:23]file doc_00165475 [00:35:23]remove file /storage/0448/doc_00165475 [00:35:23]file doc_00165476 [00:35:23]remove file /storage/0448/doc_00165476 [00:35:23]file doc_00165477 [00:35:23]remove file /storage/0448/doc_00165477 [00:35:23]file doc_00165478 [00:35:23]remove file /storage/0448/doc_00165478 [00:35:23]file doc_00165479 [00:35:23]remove file /storage/0448/doc_00165479 [00:35:23]file doc_00165480 [00:35:23]remove file /storage/0448/doc_00165480 [00:35:23]file doc_00165481 [00:35:23]remove file /storage/0448/doc_00165481 [00:35:23]file doc_00165482 [00:35:23]remove file /storage/0448/doc_00165482 [00:35:23]file doc_00165483 [00:35:23]remove file /storage/0448/doc_00165483 [00:35:23]file doc_00165484 [00:35:23]remove file /storage/0448/doc_00165484 [00:35:23]file doc_00165485 [00:35:23]remove file /storage/0448/doc_00165485 [00:35:23]file doc_00165486 [00:35:24]remove file /storage/0448/doc_00165486 [00:35:24]file doc_00165487 [00:35:24]remove file /storage/0448/doc_00165487 [00:35:24]file doc_00165488 [00:35:24]remove file /storage/0448/doc_00165488 [00:35:24]file doc_00165489 [00:35:24]remove file /storage/0448/doc_00165489 [00:35:24]file doc_00165490 [00:35:24]remove file /storage/0448/doc_00165490 [00:35:24]file doc_00165491 [00:35:24]remove file /storage/0448/doc_00165491 [00:35:24]file doc_00165492 [00:35:24]remove file /storage/0448/doc_00165492 [00:35:24]file doc_00165493 [00:35:24]remove file /storage/0448/doc_00165493 [00:35:24]file doc_00165494 [00:35:24]remove file /storage/0448/doc_00165494 [00:35:24]file doc_00165495 [00:35:24]remove file /storage/0448/doc_00165495 [00:35:24]remove dir /storage/0448 [00:35:24]ProcessDocumentItem done err = 0, tmpTLVsize=226 [00:35:24]tlvbuf is 011B1E50 [00:35:24]SAM_PROTO_ClearQueue [00:35:24]wFMCommunicate request_size=4 [00:35:24]MH_SAM_APDU [00:35:24]CAPDU: 80 09 00 00 [00:35:24]Write to MH i2c: E2 08 00 29 00 80 09 00 00 00 00 00 00 9B [00:35:24]Write i2c OK [00:35:24]MH_I2C_Read... [00:35:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:35:24]Read from MH i2c: E2 [00:35:24]MH_I2C_Read... [00:35:24]Read from MH i2c: E2 03 00 [00:35:24]MH_I2C_Read... [00:35:24]Read from MH i2c: E2 03 00 29 00 00 90 00 9D [00:35:24]RAPDU: 90 00 [00:35:24]wFMCommunicate OK [00:35:24]SAM_PROTO_ClearQueue done [00:35:24]KKMCreateOFDPacket [00:35:24]OFDProtocolAddRootSTLVToBuf [00:35:24]FM_MakeSignedData [00:35:24]FM_MakeSignedData [00:35:24]SAM_PROTO_SignData [00:35:24]wFMCommunicate request_size=4 [00:35:24]MH_SAM_APDU [00:35:24]CAPDU: 80 0D 01 02 [00:35:24]Write to MH i2c: E2 08 00 2A 00 80 0D 01 02 00 00 00 00 A3 [00:35:24]Write i2c OK [00:35:24]MH_I2C_Read... [00:35:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:35:24]Read from MH i2c: E2 [00:35:24]MH_I2C_Read... [00:35:24]Read from MH i2c: E2 03 00 [00:35:24]MH_I2C_Read... [00:35:24]Read from MH i2c: E2 03 00 2A 00 00 90 00 9E [00:35:24]RAPDU: 90 00 [00:35:24]wFMCommunicate OK [00:35:24]wFMCommunicate request_size=235 [00:35:24]MH_SAM_APDU [00:35:24]CAPDU: 80 0D 02 02 E6 02 00 E2 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 96 D0 B5 D0 BD D0 B8 D1 88 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 A2 2E 20 F1 03 33 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 91 D0 B0 D0 BA D0 B0 D0 B9 20 D0 90 D1 82 D0 B0 2C 20 34 32 2E 34 38 36 37 37 38 2C 20 37 31 2E 39 33 34 30 30 34 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 37 32 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 49 C0 95 66 0E 04 04 00 C1 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 78 86 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 35 04 06 00 4A 55 5E E9 C7 E0 [00:35:24]Write to MH i2c: E2 EE 00 2B 00 80 0D 02 02 E6 00 02 00 E2 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 96 D0 B5 D0 BD D0 B8 D1 88 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 A2 2E 20 F1 03 33 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 91 D0 B0 D0 BA D0 B0 D0 B9 20 D0 90 D1 82 D0 B0 2C 20 34 32 2E 34 38 36 37 37 38 2C 20 37 31 2E 39 33 34 30 30 34 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 37 32 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 49 C0 95 66 0E 04 04 00 C1 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 78 86 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 35 04 06 00 4A 55 5E E9 C7 E0 00 00 77 [00:35:24]Write i2c OK [00:35:24]MH_I2C_Read... [00:35:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:35:24]Read from MH i2c: E2 [00:35:24]MH_I2C_Read... [00:35:24]Read from MH i2c: E2 03 00 [00:35:24]MH_I2C_Read... [00:35:24]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [00:35:24]RAPDU: 90 00 [00:35:24]wFMCommunicate OK [00:35:24]wFMCommunicate request_size=4 [00:35:24]MH_SAM_APDU [00:35:24]CAPDU: 80 0D 03 02 [00:35:24]Write to MH i2c: E2 08 00 2C 00 80 0D 03 02 00 00 00 00 A7 [00:35:24]Write i2c OK [00:35:24]MH_I2C_Read... [00:35:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:35:24]Read from MH i2c: E2 [00:35:24]MH_I2C_Read... [00:35:24]Read from MH i2c: E2 0B 00 [00:35:24]MH_I2C_Read... [00:35:24]Read from MH i2c: E2 0B 00 2C 00 00 BD DE D2 75 D0 58 2A 6D 90 00 49 [00:35:24]RAPDU: BD DE D2 75 D0 58 2A 6D 90 00 [00:35:24]wFMCommunicate OK [00:35:24]SAM_PROTO_SignData done [00:35:24]FM_MakeSignedData done [00:35:24]CreateOFDProtocolMessage [00:35:24]wFMCommunicate request_size=4 [00:35:24]MH_SAM_APDU [00:35:24]CAPDU: 80 11 00 00 [00:35:24]Write to MH i2c: E2 08 00 2D 00 80 11 00 00 00 00 00 00 A7 [00:35:24]Write i2c OK [00:35:24]MH_I2C_Read... [00:35:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:35:24]Read from MH i2c: E2 [00:35:24]MH_I2C_Read... [00:35:24]Read from MH i2c: E2 17 00 [00:35:24]MH_I2C_Read... [00:35:24]Read from MH i2c: E2 17 00 2D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 FD [00:35:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [00:35:24]wFMCommunicate OK [00:35:24]CreateOFDProtocolMessage done [00:35:24]OFDSenderStorePacket 165496 [00:35:24]StoreOFDPacket docnum=165496 [00:35:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 F6 00 00 00 59 D0 EE 00 45 B2 5A 02 01 00 02 00 E2 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 96 D0 B5 D0 BD D0 B8 D1 88 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 A2 2E 20 F1 03 33 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 91 D0 B0 D0 BA D0 B0 D0 B9 20 D0 90 D1 82 D0 B0 2C 20 34 32 2E 34 38 36 37 37 38 2C 20 37 31 2E 39 33 34 30 30 34 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 37 32 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 49 C0 95 66 0E 04 04 00 C1 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 78 86 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 35 04 06 00 4A 55 5E E9 C7 E0 BD DE D2 75 D0 58 2A 6D [00:35:24]CheckFolder [00:35:24]dirname=/storage/ofd_packets [00:35:24]CheckFolder done [00:35:24]ProducePacketName [00:35:24]name=ofd_packets/00165496 [00:35:24]NVStorageSaveData ofd_packets/00165496 [00:35:24]File name is /storage/ofd_packets/00165496 [00:35:24]Write 276 bytes [00:35:24]NVStorageSaveData done [00:35:24]OFDSenderStorePacket done [00:35:24]KKMCreateOFDPacket done [00:35:24]NVStorageSaveData kkm_last_timestamp [00:35:24]File name is /storage/kkm_last_timestamp [00:35:24]Write 4 bytes [00:35:24]NVStorageSaveData done [00:35:24]ExternCall_PrintAddStr [00:35:24]wPrintStart [00:35:24]Write to MH i2c: 01 00 00 2E 00 2E [00:35:24]Write i2c OK [00:35:24]MH_I2C_Read... [00:35:24]Read from MH i2c: 01 [00:35:24]MH_I2C_Read... [00:35:24]Read from MH i2c: 01 07 00 [00:35:24]MH_I2C_Read... [00:35:24]Read from MH i2c: 01 07 00 2E 00 00 00 00 00 00 FF 0F 43 [00:35:24]RasterBufferAndPrint [00:35:24]line Отчет об открытии смены [00:35:24]line ФФД: 1.0 [00:35:24]line ИНН: 02508201610067 [00:35:24]line Кассир: Женишбеков Т. [00:35:24]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [00:35:24]line Место: АЗС № 72 "Партнер Нефть" [00:35:24]line 16.07.2024 00:35 [00:35:24]line Смена: 449 [00:35:24]line РНМ: 0000000000090829 [00:35:24]line ЗНМ: 0300000160 [00:35:24]line ФД: 165496 [00:35:24]line ФМ: 0000000000874718 [00:35:24]line ФПД: 81730525054944 [00:35:24]written 0, free lines is 4095 [00:35:24]OFD Sender: Processing packet 165496 [packets to send 106, broken 105] [00:35:24]ProducePacketName [00:35:24]name=ofd_packets/00165496 [00:35:24]OFD Sender: To server: pG, [00:35:24]CommunicateWithHost lk.salyk.kg:30040 [00:35:24]ConnectInit lk.salyk.kg [00:35:24]Connected sock=10 [00:35:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 F6 00 00 00 59 D0 EE 00 45 B2 5A 02 01 00 02 00 E2 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 96 D0 B5 D0 BD D0 B8 D1 88 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 A2 2E 20 F1 03 33 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 91 D0 B0 D0 BA D0 B0 D0 B9 20 D0 90 D1 82 D0 B0 2C 20 34 32 2E 34 38 36 37 37 38 2C 20 37 31 2E 39 33 34 30 30 34 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 37 32 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 49 C0 95 66 0E 04 04 00 C1 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 78 86 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 35 04 06 00 4A 55 5E E9 C7 E0 BD DE D2 75 D0 58 2A 6D [00:35:25]Write to MH i2c: 01 00 00 3F 00 3F [00:35:25]Write i2c OK [00:35:25]MH_I2C_Read... [00:35:25]Read from MH i2c: 01 [00:35:25]MH_I2C_Read... [00:35:25]Read from MH i2c: 01 07 00 [00:35:25]MH_I2C_Read... [00:35:25]Read from MH i2c: 01 07 00 3F 00 00 00 00 00 00 30 0F 85 [00:35:25]RasterBufferAndPrint [00:35:25]line [00:35:25]line [00:35:25]line [00:35:25]line [00:35:25]line [00:35:25]written 0, free lines is 3911 [00:35:25]MH_Cut [00:35:25]Write to MH i2c: D1 01 00 46 00 01 18 [00:35:25]Write i2c OK [00:35:25]MH_I2C_Read... [00:35:25]Read from MH i2c: D1 [00:35:25]MH_I2C_Read... [00:35:25]Read from MH i2c: D1 01 00 [00:35:25]MH_I2C_Read... [00:35:25]Read from MH i2c: D1 01 00 46 00 00 17 [00:35:25]Write to MH i2c: 01 00 00 47 00 47 [00:35:25]Write i2c OK [00:35:25]MH_I2C_Read... [00:35:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 E8 93 47 00 3A 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 37 31 38 10 04 04 00 78 86 02 00 F4 03 04 00 D3 66 95 66 B6 04 01 00 00 0E 57 26 D5 63 36 DB F9 [00:35:25]CommunicateWithHost err = 0 [00:35:25]CheckOFDResponse [00:35:25]1017 (14) - 77093643461234 [00:35:25]1041 (16) - 0000000000874718 [00:35:25]1040 (4) - 165496 [00:35:25]1012 (4) - 15.07.2024 18:13 [00:35:25]1206 (1) - 0 [00:35:25]OFD Sender: Remove packet 165496 [00:35:25]ProducePacketName [00:35:25]name=ofd_packets/00165496 [00:35:25]NVStorageDeleteData [00:35:25]*** Cut start [00:35:25]*** Partial cut [00:35:25]*** CUTSNS_PIN = 1 [00:35:25]*** CUTSNS_PIN = 0 [00:35:25]*** Brake cut motor [00:35:25]OFD Sender: No OFD packet to send [00:35:25]Read from MH i2c: 01 [00:35:25]MH_I2C_Read... [00:35:25]*** Stop cut motor [00:35:25]*** Cut end [00:35:25]Read from MH i2c: 01 07 00 [00:35:25]MH_I2C_Read... [00:35:25]Read from MH i2c: 01 07 00 47 00 00 00 00 00 00 FF 0F 5C [00:35:25]process_action open_shift done [00:35:25]requested_data is exist [00:35:25]produce_requested_data [00:35:25]requested_item fd.num is exist - process it [00:35:25]SAM_PROTO_GetFieldsCounters [00:35:25]wFMCommunicate request_size=4 [00:35:25]MH_SAM_APDU [00:35:25]CAPDU: 80 13 00 00 [00:35:25]Write to MH i2c: E2 08 00 48 00 80 13 00 00 00 00 00 00 C4 [00:35:25]Write i2c OK [00:35:25]MH_I2C_Read... [00:35:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:35:26]Read from MH i2c: E2 [00:35:26]MH_I2C_Read... [00:35:26]Read from MH i2c: E2 62 00 [00:35:26]MH_I2C_Read... [00:35:26]Read from MH i2c: E2 62 00 48 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 78 86 02 00 0E 04 04 00 C1 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 AD [00:35:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 78 86 02 00 0E 04 04 00 C1 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:35:26]wFMCommunicate OK [00:35:26]SAM_PROTO_GetFieldsCounters done [00:35:26]requested_item shift.num is exist - process it [00:35:26]requested_item shift.opened is exist - process it [00:35:26]req_shift_opened [00:35:26]FM_GetShiftState [00:35:26]SAM_PROTO_GetShiftState [00:35:26]wFMCommunicate request_size=4 [00:35:26]MH_SAM_APDU [00:35:26]CAPDU: 80 13 01 00 [00:35:26]Write to MH i2c: E2 08 00 49 00 80 13 01 00 00 00 00 00 C6 [00:35:26]Write i2c OK [00:35:26]MH_I2C_Read... [00:35:26]Read from MH i2c: E2 [00:35:26]MH_I2C_Read... [00:35:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:35:26]Read from MH i2c: E2 0E 00 [00:35:26]MH_I2C_Read... [00:35:26]Read from MH i2c: E2 0E 00 49 00 00 09 00 01 49 C0 95 66 00 00 00 00 90 00 D6 [00:35:26]RAPDU: 09 00 01 49 C0 95 66 00 00 00 00 90 00 [00:35:26]wFMCommunicate OK [00:35:26]SAM_PROTO_GetShiftState done [00:35:26]FM_GetShiftState done [00:35:26]req_shift_opened done [00:35:26]requested_item shift.open_date is exist - process it [00:35:26]req_shift_open_date [00:35:26]req_shift_open_date done [00:35:26]produce_requested_data done [00:35:26]produce_requested_data return {"fd.num":165496,"shift.num":449,"shift.opened":1,"shift.open_date":1721090121} [00:35:26]process_action_free open_shift [00:35:26]json_value_free [00:35:26]json_value_free done [00:35:26]process_json_proto returns [00:35:26]Send response to host [00:35:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":165496,"shift.num":449,"shift.opened":1,"shift.open_date":1721090121}}} [00:35:26]free response buf [00:35:26]execute_script done [00:35:26]execute_script returns [00:35:26]free content buf [00:35:26]Sock 9.Close socket [00:35:26]Sock 9.Thread stoped [00:35:26]accept exits with 7 [00:35:26]New connection [00:35:26]New thread 3066744164 created [00:35:26]Thread 3066887524 joined [00:35:26]Waiting for new connection... [00:35:26] Sock 7.Parse request [00:35:26]Sock 7.Check first char [00:35:26]Sock 7.First char is OK [00:35:26]request: POST /json_proto HTTP/1.0 [00:35:26]Method: POST [00:35:26]URL: /json_proto [00:35:26]Method is POST - this is cgi request [00:35:26]url: /json_proto [00:35:26]query_string will be loaded in cgi processing [00:35:26]execute_cgi json_proto POST (null) [00:35:26]execute_cgi path=json_proto method=POST [00:35:26]POST find Content-Length [00:35:26]Host: 172.17.56.4:8080 [00:35:26]Content-Length: 331 [00:35:26]Content-Type: application/json [00:35:26] [00:35:26]POST finish read [00:35:26]Found Content-Length = 331 [00:35: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" ] } } [00:35:26]execute_script... [00:35: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" ] } } [00:35:26]POST & json_proto [00:35:26]process_json_proto [00:35:26]json parsed OK: [00:35:26]protocol is kg_v1.0 [00:35:26]action value=get_value [00:35:26]process_action get_value [00:35:26]cmd_get_value [00:35:26]process_action get_value done [00:35:26]requested_data is exist [00:35:26]produce_requested_data [00:35:26]requested_item fm.sale.total is exist - process it [00:35:26]SAM_PROTO_GetFMData [00:35:26]wFMCommunicate request_size=4 [00:35:26]MH_SAM_APDU [00:35:26]CAPDU: 80 13 03 00 [00:35:26]Write to MH i2c: E2 08 00 4A 00 80 13 03 00 00 00 00 00 C9 [00:35:26]Write i2c OK [00:35:26]MH_I2C_Read... [00:35:26]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:35:26]Read from MH i2c: E2 [00:35:26]MH_I2C_Read... [00:35:26]Read from MH i2c: E2 FD 00 [00:35:26]MH_I2C_Read... [00:35:26]Read from MH i2c: E2 FD 00 4A 00 00 C4 04 85 04 C0 04 6E 04 04 00 F3 82 02 00 69 04 A3 00 6F 04 04 00 E5 81 02 00 B1 04 05 00 CD 52 D1 5A 02 70 04 05 00 7D EA 33 38 02 72 04 04 00 50 68 9D 22 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 AB 6E 0A 40 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 0D 03 56 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 0E 01 00 00 B1 04 04 00 6C E5 46 03 70 04 04 00 6C E5 46 03 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 23 19 59 EF 03 09 00 90 00 03 [00:35:26]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 F3 82 02 00 69 04 A3 00 6F 04 04 00 E5 81 02 00 B1 04 05 00 CD 52 D1 5A 02 70 04 05 00 7D EA 33 38 02 72 04 04 00 50 68 9D 22 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 AB 6E 0A 40 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 0D 03 56 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 0E 01 00 00 B1 04 04 00 6C E5 46 03 70 04 04 00 6C E5 46 03 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 23 19 59 EF 03 09 00 90 00 [00:35:26]wFMCommunicate OK [00:35:26]wFMCommunicate request_size=4 [00:35:26]MH_SAM_APDU [00:35:26]CAPDU: 80 17 00 00 [00:35:26]Write to MH i2c: E2 08 00 4B 00 80 17 00 00 00 00 00 00 CB [00:35:26]Write i2c OK [00:35:26]MH_I2C_Read... [00:35:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:27]Read from MH i2c: E2 [00:35:27]MH_I2C_Read... [00:35:27]Read from MH i2c: E2 FD 00 [00:35:27]MH_I2C_Read... [00:35:27]Read from MH i2c: E2 FD 00 4B 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B1 6C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A5 [00:35:27]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B1 6C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:35:27]wFMCommunicate OK [00:35:27]wFMCommunicate request_size=4 [00:35:27]MH_SAM_APDU [00:35:27]CAPDU: 80 17 00 00 [00:35:27]Write to MH i2c: E2 08 00 4C 00 80 17 00 00 00 00 00 00 CC [00:35:27]Write i2c OK [00:35:27]MH_I2C_Read... [00:35:27]Read from MH i2c: E2 [00:35:27]MH_I2C_Read... [00:35:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:27]Read from MH i2c: E2 FD 00 [00:35:27]MH_I2C_Read... [00:35:27]Read from MH i2c: E2 FD 00 4C 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E1 [00:35:27]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:35:27]wFMCommunicate OK [00:35:27]wFMCommunicate request_size=4 [00:35:27]MH_SAM_APDU [00:35:27]CAPDU: 80 17 00 00 [00:35:27]Write to MH i2c: E2 08 00 4D 00 80 17 00 00 00 00 00 00 CD [00:35:27]Write i2c OK [00:35:27]MH_I2C_Read... [00:35:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:27]Read from MH i2c: E2 [00:35:27]MH_I2C_Read... [00:35:27]Read from MH i2c: E2 FD 00 [00:35:27]MH_I2C_Read... [00:35:27]Read from MH i2c: E2 FD 00 4D 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 45 [00:35:28]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:35:28]wFMCommunicate OK [00:35:28]wFMCommunicate request_size=4 [00:35:28]MH_SAM_APDU [00:35:28]CAPDU: 80 17 00 00 [00:35:28]Write to MH i2c: E2 08 00 4E 00 80 17 00 00 00 00 00 00 CE [00:35:28]Write i2c OK [00:35:28]MH_I2C_Read... [00:35:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:35:28]Read from MH i2c: E2 [00:35:28]MH_I2C_Read... [00:35:28]Read from MH i2c: E2 E1 00 [00:35:28]MH_I2C_Read... [00:35:28]Read from MH i2c: E2 E1 00 4E 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 BC [00:35:28]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:35:28]wFMCommunicate OK [00:35:28]SAM_PROTO_GetFMData done [00:35:28]requested_item fm.sale_refund.total is exist - process it [00:35:28]requested_item fm.buy.total is exist - process it [00:35:28]requested_item shift.sale.total is exist - process it [00:35:28]SAM_PROTO_GetShiftData [00:35:28]wFMCommunicate request_size=4 [00:35:28]MH_SAM_APDU [00:35:28]CAPDU: 80 13 02 00 [00:35:28]Write to MH i2c: E2 08 00 4F 00 80 13 02 00 00 00 00 00 CD [00:35:28]Write i2c OK [00:35:28]MH_I2C_Read... [00:35:29]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:35:29]Read from MH i2c: E2 [00:35:29]MH_I2C_Read... [00:35:29]Read from MH i2c: E2 FD 00 [00:35:29]MH_I2C_Read... [00:35:29]Read from MH i2c: E2 FD 00 4F 00 00 A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 40 [00:35:29]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:35:29]wFMCommunicate OK [00:35:29]wFMCommunicate request_size=4 [00:35:29]MH_SAM_APDU [00:35:29]CAPDU: 80 17 00 00 [00:35:29]Write to MH i2c: E2 08 00 50 00 80 17 00 00 00 00 00 00 D0 [00:35:29]Write i2c OK [00:35:29]MH_I2C_Read... [00:35:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:29]Read from MH i2c: E2 [00:35:29]MH_I2C_Read... [00:35:29]Read from MH i2c: E2 FD 00 [00:35:29]MH_I2C_Read... [00:35:29]Read from MH i2c: E2 FD 00 50 00 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 D8 [00:35:29]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:35:29]wFMCommunicate OK [00:35:29]wFMCommunicate request_size=4 [00:35:29]MH_SAM_APDU [00:35:29]CAPDU: 80 17 00 00 [00:35:29]Write to MH i2c: E2 08 00 51 00 80 17 00 00 00 00 00 00 D1 [00:35:29]Write i2c OK [00:35:29]MH_I2C_Read... [00:35:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:29]Read from MH i2c: E2 [00:35:29]MH_I2C_Read... [00:35:29]Read from MH i2c: E2 FD 00 [00:35:29]MH_I2C_Read... [00:35:30]Read from MH i2c: E2 FD 00 51 00 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 A3 [00:35:30]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:35:30]wFMCommunicate OK [00:35:30]wFMCommunicate request_size=4 [00:35:30]MH_SAM_APDU [00:35:30]CAPDU: 80 17 00 00 [00:35:30]Write to MH i2c: E2 08 00 52 00 80 17 00 00 00 00 00 00 D2 [00:35:30]Write i2c OK [00:35:30]MH_I2C_Read... [00:35:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:30]Read from MH i2c: E2 [00:35:30]MH_I2C_Read... [00:35:30]Read from MH i2c: E2 FD 00 [00:35:30]MH_I2C_Read... [00:35:30]Read from MH i2c: E2 FD 00 52 00 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 44 [00:35:30]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:35:30]wFMCommunicate OK [00:35:30]wFMCommunicate request_size=4 [00:35:30]MH_SAM_APDU [00:35:30]CAPDU: 80 17 00 00 [00:35:30]Write to MH i2c: E2 08 00 53 00 80 17 00 00 00 00 00 00 D3 [00:35:30]Write i2c OK [00:35:30]MH_I2C_Read... [00:35:30]OFD Sender: No OFD packet to send [00:35:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:35:30]Read from MH i2c: E2 [00:35:30]MH_I2C_Read... [00:35:30]Read from MH i2c: E2 BD 00 [00:35:30]MH_I2C_Read... [00:35:30]Read from MH i2c: E2 BD 00 53 00 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 B9 [00:35:30]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:35:31]wFMCommunicate OK [00:35:31]SAM_PROTO_GetShiftData done [00:35:31]requested_item shift.sale.total_cash is exist - process it [00:35:31]requested_item shift.sale_refund.total is exist - process it [00:35:31]requested_item shift.sale_refund.total_cash is exist - process it [00:35:31]requested_item shift.buy.total is exist - process it [00:35:31]requested_item shift.buy.total_cash is exist - process it [00:35:31]produce_requested_data done [00:35:31]produce_requested_data return {"fm.sale.total":101136022.53,"fm.sale_refund.total":549779.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:35:31]process_action_free get_value [00:35:31]json_value_free [00:35:31]json_value_free done [00:35:31]process_json_proto returns [00:35:31]Send response to host [00:35:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":101136022.53,"fm.sale_refund.total":549779.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:35:31]free response buf [00:35:31]execute_script done [00:35:31]execute_script returns [00:35:31]free content buf [00:35:31]Sock 7.Close socket [00:35:31]Sock 7.Thread stoped [00:35:35]OFD Sender: No OFD packet to send [00:35:40]OFD Sender: No OFD packet to send [00:35:45]OFD Sender: No OFD packet to send [00:35:50]OFD Sender: No OFD packet to send [00:35:55]OFD Sender: No OFD packet to send [00:36:00]OFD Sender: No OFD packet to send [00:36:05]OFD Sender: No OFD packet to send [00:36:10]OFD Sender: No OFD packet to send [00:36:15]OFD Sender: No OFD packet to send [00:36:20]OFD Sender: No OFD packet to send [00:36:25]OFD Sender: No OFD packet to send [00:36:30]OFD Sender: No OFD packet to send [00:36:35]OFD Sender: No OFD packet to send [00:36:40]OFD Sender: No OFD packet to send [00:36:45]OFD Sender: No OFD packet to send [00:36:50]OFD Sender: No OFD packet to send [00:36:55]OFD Sender: No OFD packet to send [00:37:00]OFD Sender: No OFD packet to send [00:37:05]OFD Sender: No OFD packet to send [00:37:10]OFD Sender: No OFD packet to send [00:37:15]OFD Sender: No OFD packet to send [00:37:20]OFD Sender: No OFD packet to send [00:37:25]OFD Sender: No OFD packet to send [00:37:30]OFD Sender: No OFD packet to send [00:37:35]OFD Sender: No OFD packet to send [00:37:40]OFD Sender: No OFD packet to send [00:37:45]OFD Sender: No OFD packet to send [00:37:51]OFD Sender: No OFD packet to send [00:37:56]OFD Sender: No OFD packet to send [00:38:01]OFD Sender: No OFD packet to send [00:38:06]OFD Sender: No OFD packet to send [00:38:11]OFD Sender: No OFD packet to send [00:38:16]OFD Sender: No OFD packet to send [00:38:21]OFD Sender: No OFD packet to send [00:38:26]OFD Sender: No OFD packet to send [00:38:31]OFD Sender: No OFD packet to send [00:38:36]OFD Sender: No OFD packet to send [00:38:41]OFD Sender: No OFD packet to send [00:38:46]OFD Sender: No OFD packet to send [00:38:51]OFD Sender: No OFD packet to send [00:38:56]OFD Sender: No OFD packet to send [00:39:01]OFD Sender: No OFD packet to send [00:39:06]OFD Sender: No OFD packet to send [00:39:11]OFD Sender: No OFD packet to send [00:39:16]OFD Sender: No OFD packet to send [00:39:21]OFD Sender: No OFD packet to send [00:39:26]OFD Sender: No OFD packet to send [00:39:31]OFD Sender: No OFD packet to send [00:39:36]OFD Sender: No OFD packet to send [00:39:41]OFD Sender: No OFD packet to send [00:39:46]OFD Sender: No OFD packet to send [00:39:51]OFD Sender: No OFD packet to send [00:39:56]OFD Sender: No OFD packet to send [00:40:01]OFD Sender: No OFD packet to send [00:40:06]OFD Sender: No OFD packet to send [00:40:11]OFD Sender: No OFD packet to send [00:40:16]OFD Sender: No OFD packet to send [00:40:21]OFD Sender: No OFD packet to send [00:40:26]OFD Sender: No OFD packet to send [00:40:31]OFD Sender: No OFD packet to send [00:40:36]OFD Sender: No OFD packet to send [00:40:41]OFD Sender: No OFD packet to send [00:40:46]OFD Sender: No OFD packet to send [00:40:51]OFD Sender: No OFD packet to send [00:40:56]OFD Sender: No OFD packet to send [00:41:01]OFD Sender: No OFD packet to send [00:41:06]OFD Sender: No OFD packet to send [00:41:11]OFD Sender: No OFD packet to send [00:41:16]OFD Sender: No OFD packet to send [00:41:21]OFD Sender: No OFD packet to send [00:41:26]OFD Sender: No OFD packet to send [00:41:31]OFD Sender: No OFD packet to send [00:41:36]OFD Sender: No OFD packet to send [00:41:41]OFD Sender: No OFD packet to send [00:41:46]OFD Sender: No OFD packet to send [00:41:51]OFD Sender: No OFD packet to send [00:41:56]OFD Sender: No OFD packet to send [00:42:01]OFD Sender: No OFD packet to send [00:42:06]OFD Sender: No OFD packet to send [00:42:11]OFD Sender: No OFD packet to send [00:42:16]OFD Sender: No OFD packet to send [00:42:21]OFD Sender: No OFD packet to send [00:42:26]OFD Sender: No OFD packet to send [00:42:31]OFD Sender: No OFD packet to send [00:42:36]OFD Sender: No OFD packet to send [00:42:41]OFD Sender: No OFD packet to send [00:42:46]OFD Sender: No OFD packet to send [00:42:51]OFD Sender: No OFD packet to send [00:42:56]OFD Sender: No OFD packet to send [00:43:01]OFD Sender: No OFD packet to send [00:43:06]OFD Sender: No OFD packet to send [00:43:11]OFD Sender: No OFD packet to send [00:43:16]OFD Sender: No OFD packet to send [00:43:21]OFD Sender: No OFD packet to send [00:43:26]OFD Sender: No OFD packet to send [00:43:31]OFD Sender: No OFD packet to send [00:43:36]OFD Sender: No OFD packet to send [00:43:41]OFD Sender: No OFD packet to send [00:43:46]OFD Sender: No OFD packet to send [00:43:51]OFD Sender: No OFD packet to send [00:43:56]OFD Sender: No OFD packet to send [00:44:01]OFD Sender: No OFD packet to send [00:44:06]OFD Sender: No OFD packet to send [00:44:11]OFD Sender: No OFD packet to send [00:44:16]OFD Sender: No OFD packet to send [00:44:21]OFD Sender: No OFD packet to send [00:44:26]OFD Sender: No OFD packet to send [00:44:31]OFD Sender: No OFD packet to send [00:44:36]OFD Sender: No OFD packet to send [00:44:41]OFD Sender: No OFD packet to send [00:44:46]OFD Sender: No OFD packet to send [00:44:51]OFD Sender: No OFD packet to send [00:44:56]OFD Sender: No OFD packet to send [00:45:01]OFD Sender: No OFD packet to send [00:45:06]OFD Sender: No OFD packet to send [00:45:11]OFD Sender: No OFD packet to send [00:45:16]OFD Sender: No OFD packet to send [00:45:21]OFD Sender: No OFD packet to send [00:45:26]OFD Sender: No OFD packet to send [00:45:31]OFD Sender: No OFD packet to send [00:45:36]OFD Sender: No OFD packet to send [00:45:41]OFD Sender: No OFD packet to send [00:45:46]OFD Sender: No OFD packet to send [00:45:51]OFD Sender: No OFD packet to send [00:45:56]OFD Sender: No OFD packet to send [00:46:01]OFD Sender: No OFD packet to send [00:46:06]OFD Sender: No OFD packet to send [00:46:11]OFD Sender: No OFD packet to send [00:46:16]OFD Sender: No OFD packet to send [00:46:21]OFD Sender: No OFD packet to send [00:46:26]OFD Sender: No OFD packet to send [00:46:28]accept exits with 9 [00:46:28]New connection [00:46:28]New thread 3066887524 created [00:46:28]Thread 3066744164 joined [00:46:28]Waiting for new connection... [00:46:28] Sock 9.Parse request [00:46:28]Sock 9.Check first char [00:46:28]Sock 9.First char is OK [00:46:28]request: POST /json_proto HTTP/1.0 [00:46:28]Method: POST [00:46:28]URL: /json_proto [00:46:28]Method is POST - this is cgi request [00:46:28]url: /json_proto [00:46:28]query_string will be loaded in cgi processing [00:46:28]execute_cgi json_proto POST (null) [00:46:28]execute_cgi path=json_proto method=POST [00:46:28]POST find Content-Length [00:46:28]Host: 172.17.56.4:8080 [00:46:28]Content-Length: 678 [00:46:28]Content-Type: application/json [00:46:28] [00:46:28]POST finish read [00:46:28]Found Content-Length = 678 [00:46:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459611", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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" ] } } [00:46:28]execute_script... [00:46:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459611", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 10.640, "sum" : 700.11, "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" ] } } [00:46:28]POST & json_proto [00:46:28]process_json_proto [00:46:28]json parsed OK: [00:46:28]protocol is kg_v1.0 [00:46:28]action value=close_receipt [00:46:28]process_action close_receipt [00:46:28]cmd_close_receipt [00:46:28]MH_GetDate [00:46:28]Write to MH i2c: F0 00 00 54 00 43 [00:46:28]Write i2c OK [00:46:28]MH_I2C_Read... [00:46:28]Read from MH i2c: F0 [00:46:28]MH_I2C_Read... [00:46:28]Read from MH i2c: F0 09 00 [00:46:28]MH_I2C_Read... [00:46:28]Read from MH i2c: F0 09 00 54 00 00 E4 C2 95 66 C9 DC B2 64 A8 [00:46:28]GetLastDocTimeStamp 1721090121 [00:46:28]current date 1721090788 [00:46:28]FM_GetShiftState [00:46:28]SAM_PROTO_GetShiftState [00:46:28]wFMCommunicate request_size=4 [00:46:28]MH_SAM_APDU [00:46:28]CAPDU: 80 13 01 00 [00:46:28]Write to MH i2c: E2 08 00 55 00 80 13 01 00 00 00 00 00 D2 [00:46:28]Write i2c OK [00:46:28]MH_I2C_Read... [00:46:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:46:28]Read from MH i2c: E2 [00:46:28]MH_I2C_Read... [00:46:28]Read from MH i2c: E2 0E 00 [00:46:28]MH_I2C_Read... [00:46:28]Read from MH i2c: E2 0E 00 55 00 00 09 00 01 49 C0 95 66 00 00 00 00 90 00 E2 [00:46:28]RAPDU: 09 00 01 49 C0 95 66 00 00 00 00 90 00 [00:46:28]wFMCommunicate OK [00:46:28]SAM_PROTO_GetShiftState done [00:46:28]FM_GetShiftState done [00:46:28]opened in 1721090121 [00:46:28]opened+sec_in_day 1721176521 [00:46:28]quantity*price = 70011 [00:46:28]sum+1 = 70012 [00:46:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 1 16.07.2024 00:46 Смена: 449 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165497 ФПД: 183644818450339 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T004628&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165497&fm=183644818450339&tin=02508201610067®Number=0000000000090829&sum=70000 [00:46:29]StoreToDocumentArchive [00:46:29]shift 449 fd 165497 [00:46:29]save to /storage/0449/doc_00165497 [00:46:29]save last doc name /storage/0449/doc_00165497 to /storage/kkm_last_doc_name [00:46:29]save OK [00:46:29]Clear old archive folders... [00:46:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:46:29]tlvbuf is 0115E010 [00:46:29]SAM_PROTO_ClearQueue [00:46:29]wFMCommunicate request_size=4 [00:46:29]MH_SAM_APDU [00:46:29]CAPDU: 80 09 00 00 [00:46:29]Write to MH i2c: E2 08 00 62 00 80 09 00 00 00 00 00 00 D4 [00:46:29]Write i2c OK [00:46:29]MH_I2C_Read... [00:46:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:46:29]Read from MH i2c: E2 [00:46:29]MH_I2C_Read... [00:46:29]Read from MH i2c: E2 03 00 [00:46:29]MH_I2C_Read... [00:46:29]Read from MH i2c: E2 03 00 62 00 00 90 00 D6 [00:46:29]RAPDU: 90 00 [00:46:29]wFMCommunicate OK [00:46:29]SAM_PROTO_ClearQueue done [00:46:29]KKMCreateOFDPacket [00:46:29]OFDProtocolAddRootSTLVToBuf [00:46:29]FM_MakeSignedData [00:46:29]FM_MakeSignedData [00:46:29]SAM_PROTO_SignData [00:46:29]wFMCommunicate request_size=4 [00:46:29]MH_SAM_APDU [00:46:29]CAPDU: 80 0D 01 02 [00:46:29]Write to MH i2c: E2 08 00 63 00 80 0D 01 02 00 00 00 00 DC [00:46:29]Write i2c OK [00:46:29]MH_I2C_Read... [00:46:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:46:29]Read from MH i2c: E2 [00:46:29]MH_I2C_Read... [00:46:29]Read from MH i2c: E2 03 00 [00:46:29]MH_I2C_Read... [00:46:29]Read from MH i2c: E2 03 00 63 00 00 90 00 D7 [00:46:29]RAPDU: 90 00 [00:46:29]wFMCommunicate OK [00:46:29]wFMCommunicate request_size=255 [00:46:29]MH_SAM_APDU [00:46:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 01 00 00 00 F4 03 04 00 E4 C2 95 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 79 86 02 00 35 04 06 00 A7 [00:46:29]Write to MH i2c: E2 02 01 64 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 01 00 00 00 F4 03 04 00 E4 C2 95 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 79 86 02 00 35 04 06 00 A7 00 00 A5 [00:46:29]Write i2c OK [00:46:29]MH_I2C_Read... [00:46:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:46:30]Read from MH i2c: E2 [00:46:30]MH_I2C_Read... [00:46:30]Read from MH i2c: E2 03 00 [00:46:30]MH_I2C_Read... [00:46:30]Read from MH i2c: E2 03 00 64 00 00 90 00 D8 [00:46:30]RAPDU: 90 00 [00:46:30]wFMCommunicate OK [00:46:30]wFMCommunicate request_size=10 [00:46:30]MH_SAM_APDU [00:46:30]CAPDU: 80 0D 02 02 05 06 24 2B 27 A3 [00:46:30]Write to MH i2c: E2 0D 00 65 00 80 0D 02 02 05 00 06 24 2B 27 A3 00 00 08 [00:46:30]Write i2c OK [00:46:30]MH_I2C_Read... [00:46:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:46:30]Read from MH i2c: E2 [00:46:30]MH_I2C_Read... [00:46:30]Read from MH i2c: E2 03 00 [00:46:30]MH_I2C_Read... [00:46:30]Read from MH i2c: E2 03 00 65 00 00 90 00 D9 [00:46:30]RAPDU: 90 00 [00:46:30]wFMCommunicate OK [00:46:30]wFMCommunicate request_size=4 [00:46:30]MH_SAM_APDU [00:46:30]CAPDU: 80 0D 03 02 [00:46:30]Write to MH i2c: E2 08 00 66 00 80 0D 03 02 00 00 00 00 E1 [00:46:30]Write i2c OK [00:46:30]MH_I2C_Read... [00:46:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:46:30]Read from MH i2c: E2 [00:46:30]MH_I2C_Read... [00:46:30]Read from MH i2c: E2 0B 00 [00:46:30]MH_I2C_Read... [00:46:30]Read from MH i2c: E2 0B 00 66 00 00 31 AC 71 FD 4C 22 F3 77 90 00 05 [00:46:30]RAPDU: 31 AC 71 FD 4C 22 F3 77 90 00 [00:46:30]wFMCommunicate OK [00:46:30]SAM_PROTO_SignData done [00:46:30]FM_MakeSignedData done [00:46:30]CreateOFDProtocolMessage [00:46:30]wFMCommunicate request_size=4 [00:46:30]MH_SAM_APDU [00:46:30]CAPDU: 80 11 00 00 [00:46:30]Write to MH i2c: E2 08 00 67 00 80 11 00 00 00 00 00 00 E1 [00:46:30]Write i2c OK [00:46:30]MH_I2C_Read... [00:46:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:46:30]Read from MH i2c: E2 [00:46:30]MH_I2C_Read... [00:46:30]Read from MH i2c: E2 17 00 [00:46:30]MH_I2C_Read... [00:46:30]Read from MH i2c: E2 17 00 67 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 37 [00:46:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [00:46:30]wFMCommunicate OK [00:46:30]CreateOFDProtocolMessage done [00:46:30]OFDSenderStorePacket 165497 [00:46:30]StoreOFDPacket docnum=165497 [00:46:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 25 51 07 01 7D 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 01 00 00 00 F4 03 04 00 E4 C2 95 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 79 86 02 00 35 04 06 00 A7 06 24 2B 27 A3 31 AC 71 FD 4C 22 F3 77 [00:46:30]CheckFolder [00:46:30]dirname=/storage/ofd_packets [00:46:30]CheckFolder done [00:46:30]ProducePacketName [00:46:30]name=ofd_packets/00165497 [00:46:30]NVStorageSaveData ofd_packets/00165497 [00:46:30]File name is /storage/ofd_packets/00165497 [00:46:30]Write 301 bytes [00:46:30]NVStorageSaveData done [00:46:30]OFDSenderStorePacket done [00:46:30]KKMCreateOFDPacket done [00:46:30]NVStorageSaveData kkm_last_timestamp [00:46:30]File name is /storage/kkm_last_timestamp [00:46:30]Write 4 bytes [00:46:30]NVStorageSaveData done [00:46:30]ExternCall_PrintAddStr [00:46:30]wPrintStart [00:46:30]Write to MH i2c: 01 00 00 68 00 68 [00:46:30]Write i2c OK [00:46:30]MH_I2C_Read... [00:46:30]Read from MH i2c: 01 [00:46:30]MH_I2C_Read... [00:46:30]Read from MH i2c: 01 07 00 [00:46:30]MH_I2C_Read... [00:46:30]Read from MH i2c: 01 07 00 68 00 00 00 00 00 00 FF 0F 7D [00:46:30]RasterBufferAndPrint [00:46:30]line Счет N : (1)459611 [00:46:30]line ИНН: 02508201610067 [00:46:30]line Контрольно-Кассовый Чек [00:46:30]line ПРОДАЖА [00:46:30]line ТРК (МРК, ГНК) : 12 [00:46:30]line Товар: 2710124130 [00:46:30]line Аи-92-К-5 [00:46:30]line 10.640 * 65.80 [00:46:30]line = 700.11 [00:46:30]line НДС 12% НСП 1% [00:46:30]line > о реализуемом товаре [00:46:30]line ОКРУГЛЕНИЕ: -0.11 [00:46:30]line ИТОГО: 700.00 [00:46:30]line Внесено: 700.00 [00:46:30]line СДАЧА: 0.00 [00:46:30]line НСП 1% : 6.20 [00:46:30]line НДС 12% : 74.35 [00:46:30]line Наличными: 700.00 [00:46:30]line Безнал.: 0.00 [00:46:30]line Место: АЗС № 72 "Партнер Нефть" [00:46:30]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [00:46:30]line СНО: Общий режим [00:46:30]line Чек 1 16.07.2024 00:46 [00:46:30]line Смена: 449 ФФД: 1.0 [00:46:30]line ЗНМ: 0300000160 [00:46:30]line РНМ: 0000000000090829 [00:46:30]line Версия ККМ: 001 [00:46:30]line ФМ: 0000000000874718 [00:46:30]line ФД: 165497 [00:46:30]line ФПД: 183644818450339 [00:46:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T004628&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165497&fm=183644818450339&tin=02508201610067®Number=0000000000090829&sum=70000 [00:46:30]OFD Sender: Processing packet 165497 [packets to send 106, broken 105] [00:46:30]ProducePacketName [00:46:30]name=ofd_packets/00165497 [00:46:30]OFD Sender: To server: pG, [00:46:30]CommunicateWithHost lk.salyk.kg:30040 [00:46:30]ConnectInit lk.salyk.kg [00:46:30]written 0, free lines is 4095 [00:46:30]Connected sock=10 [00:46:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 25 51 07 01 7D 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 90 29 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 7B 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 0B 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 01 00 00 00 F4 03 04 00 E4 C2 95 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 79 86 02 00 35 04 06 00 A7 06 24 2B 27 A3 31 AC 71 FD 4C 22 F3 77 [00:46:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 62 4C 47 00 D4 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 79 86 02 00 F4 03 04 00 6D 69 95 66 B6 04 01 00 00 37 8E F5 16 EC 29 21 24 [00:46:30]CommunicateWithHost err = 0 [00:46:30]CheckOFDResponse [00:46:30]1017 (14) - 77093643461234 [00:46:30]1041 (16) - 0000000000874718 [00:46:30]1040 (4) - 165497 [00:46:30]1012 (4) - 15.07.2024 18:24 [00:46:30]1206 (1) - 0 [00:46:30]OFD Sender: Remove packet 165497 [00:46:30]ProducePacketName [00:46:30]name=ofd_packets/00165497 [00:46:30]NVStorageDeleteData [00:46:30]Write to MH i2c: 01 00 00 92 00 92 [00:46:30]Write i2c OK [00:46:30]MH_I2C_Read... [00:46:30]Read from MH i2c: 01 [00:46:30]MH_I2C_Read... [00:46:30]Read from MH i2c: 01 07 00 [00:46:30]MH_I2C_Read... [00:46:30]Read from MH i2c: 01 07 00 92 00 00 00 00 00 00 FB 0C A0 [00:46:30]RasterBufferAndPrint [00:46:30]line [00:46:30]line [00:46:30]line [00:46:30]line [00:46:30]line [00:46:30]written 0, free lines is 3330 [00:46:30]MH_Cut [00:46:30]Write to MH i2c: D1 01 00 99 00 01 6B [00:46:30]Write i2c OK [00:46:30]MH_I2C_Read... [00:46:30]Read from MH i2c: D1 [00:46:30]MH_I2C_Read... [00:46:30]Read from MH i2c: D1 01 00 [00:46:30]MH_I2C_Read... [00:46:30]Read from MH i2c: D1 01 00 99 00 00 6A [00:46:30]Write to MH i2c: 01 00 00 9A 00 9A [00:46:30]Write i2c OK [00:46:30]MH_I2C_Read... [00:46:31]OFD Sender: No OFD packet to send [00:46:31]*** Cut start [00:46:31]*** Partial cut [00:46:31]*** CUTSNS_PIN = 1 [00:46:31]*** CUTSNS_PIN = 0 [00:46:31]*** Brake cut motor [00:46:32]Read from MH i2c: 01 [00:46:32]MH_I2C_Read... [00:46:32]*** Stop cut motor [00:46:32]*** Cut end [00:46:32]Read from MH i2c: 01 07 00 [00:46:32]MH_I2C_Read... [00:46:32]Read from MH i2c: 01 07 00 9A 00 00 00 00 00 00 FF 0F AF [00:46:32]process_action close_receipt done [00:46:32]requested_data is exist [00:46:32]produce_requested_data [00:46:32]requested_item fm.sn is exist - process it [00:46:32]wFMCommunicate request_size=4 [00:46:32]MH_SAM_APDU [00:46:32]CAPDU: 80 11 00 00 [00:46:32]Write to MH i2c: E2 08 00 9B 00 80 11 00 00 00 00 00 00 15 [00:46:32]Write i2c OK [00:46:32]MH_I2C_Read... [00:46:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:46:32]Read from MH i2c: E2 [00:46:32]MH_I2C_Read... [00:46:32]Read from MH i2c: E2 17 00 [00:46:32]MH_I2C_Read... [00:46:32]Read from MH i2c: E2 17 00 9B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 6B [00:46:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [00:46:32]wFMCommunicate OK [00:46:32]requested_item fd.num is exist - process it [00:46:32]SAM_PROTO_GetFieldsCounters [00:46:32]wFMCommunicate request_size=4 [00:46:32]MH_SAM_APDU [00:46:32]CAPDU: 80 13 00 00 [00:46:32]Write to MH i2c: E2 08 00 9C 00 80 13 00 00 00 00 00 00 18 [00:46:32]Write i2c OK [00:46:32]MH_I2C_Read... [00:46:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:46:32]Read from MH i2c: E2 [00:46:32]MH_I2C_Read... [00:46:32]Read from MH i2c: E2 62 00 [00:46:32]MH_I2C_Read... [00:46:32]Read from MH i2c: E2 62 00 9C 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 79 86 02 00 0E 04 04 00 C1 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [00:46:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 79 86 02 00 0E 04 04 00 C1 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:46:32]wFMCommunicate OK [00:46:32]SAM_PROTO_GetFieldsCounters done [00:46:32]requested_item shift.num is exist - process it [00:46:32]requested_item shift.opened is exist - process it [00:46:32]req_shift_opened [00:46:32]FM_GetShiftState [00:46:32]SAM_PROTO_GetShiftState [00:46:32]wFMCommunicate request_size=4 [00:46:32]MH_SAM_APDU [00:46:32]CAPDU: 80 13 01 00 [00:46:32]Write to MH i2c: E2 08 00 9D 00 80 13 01 00 00 00 00 00 1A [00:46:32]Write i2c OK [00:46:32]MH_I2C_Read... [00:46:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:46:32]Read from MH i2c: E2 [00:46:32]MH_I2C_Read... [00:46:32]Read from MH i2c: E2 0E 00 [00:46:32]MH_I2C_Read... [00:46:32]Read from MH i2c: E2 0E 00 9D 00 00 09 00 01 49 C0 95 66 00 00 00 00 90 00 2A [00:46:32]RAPDU: 09 00 01 49 C0 95 66 00 00 00 00 90 00 [00:46:32]wFMCommunicate OK [00:46:32]SAM_PROTO_GetShiftState done [00:46:32]FM_GetShiftState done [00:46:32]req_shift_opened done [00:46:32]requested_item shift.open_date is exist - process it [00:46:32]req_shift_open_date [00:46:32]req_shift_open_date done [00:46:32]produce_requested_data done [00:46:32]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165497,"shift.num":449,"shift.opened":1,"shift.open_date":1721090121} [00:46:32]process_action_free close_receipt [00:46:32]json_value_free [00:46:32]json_value_free done [00:46:32]process_json_proto returns [00:46:32]Send response to host [00:46:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165497,"shift.num":449,"shift.opened":1,"shift.open_date":1721090121}}} [00:46:32]free response buf [00:46:32]execute_script done [00:46:32]execute_script returns [00:46:32]free content buf [00:46:32]Sock 9.Close socket [00:46:32]Sock 9.Thread stoped [00:46:36]OFD Sender: No OFD packet to send [00:46:41]OFD Sender: No OFD packet to send [00:46:46]OFD Sender: No OFD packet to send [00:46:51]OFD Sender: No OFD packet to send [00:46:56]OFD Sender: No OFD packet to send [00:47:01]OFD Sender: No OFD packet to send [00:47:06]OFD Sender: No OFD packet to send [00:47:11]OFD Sender: No OFD packet to send [00:47:16]OFD Sender: No OFD packet to send [00:47:21]OFD Sender: No OFD packet to send [00:47:26]OFD Sender: No OFD packet to send [00:47:31]OFD Sender: No OFD packet to send [00:47:36]OFD Sender: No OFD packet to send [00:47:41]OFD Sender: No OFD packet to send [00:47:46]OFD Sender: No OFD packet to send [00:47:51]OFD Sender: No OFD packet to send [00:47:56]OFD Sender: No OFD packet to send [00:48:01]OFD Sender: No OFD packet to send [00:48:06]OFD Sender: No OFD packet to send [00:48:11]OFD Sender: No OFD packet to send [00:48:16]OFD Sender: No OFD packet to send [00:48:21]OFD Sender: No OFD packet to send [00:48:26]OFD Sender: No OFD packet to send [00:48:31]OFD Sender: No OFD packet to send [00:48:36]OFD Sender: No OFD packet to send [00:48:41]OFD Sender: No OFD packet to send [00:48:46]OFD Sender: No OFD packet to send [00:48:51]OFD Sender: No OFD packet to send [00:48:56]OFD Sender: No OFD packet to send [00:49:01]OFD Sender: No OFD packet to send [00:49:06]OFD Sender: No OFD packet to send [00:49:11]OFD Sender: No OFD packet to send [00:49:16]OFD Sender: No OFD packet to send [00:49:21]OFD Sender: No OFD packet to send [00:49:26]OFD Sender: No OFD packet to send [00:49:31]OFD Sender: No OFD packet to send [00:49:36]OFD Sender: No OFD packet to send [00:49:41]OFD Sender: No OFD packet to send [00:49:41]accept exits with 7 [00:49:41]New connection [00:49:41]New thread 3066744164 created [00:49:41]Thread 3066887524 joined [00:49:41]Waiting for new connection... [00:49:41] Sock 7.Parse request [00:49:41]Sock 7.Check first char [00:49:41]Sock 7.First char is OK [00:49:41]request: POST /json_proto HTTP/1.0 [00:49:41]Method: POST [00:49:41]URL: /json_proto [00:49:41]Method is POST - this is cgi request [00:49:41]url: /json_proto [00:49:41]query_string will be loaded in cgi processing [00:49:41]execute_cgi json_proto POST (null) [00:49:41]execute_cgi path=json_proto method=POST [00:49:41]POST find Content-Length [00:49:41]Host: 172.17.56.4:8080 [00:49:41]Content-Length: 677 [00:49:41]Content-Type: application/json [00:49:41] [00:49:41]POST finish read [00:49:41]Found Content-Length = 677 [00:49:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459612", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:49:41]execute_script... [00:49: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)459612", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:49:41]POST & json_proto [00:49:41]process_json_proto [00:49:41]json parsed OK: [00:49:41]protocol is kg_v1.0 [00:49:41]action value=close_receipt [00:49:41]process_action close_receipt [00:49:41]cmd_close_receipt [00:49:41]MH_GetDate [00:49:41]Write to MH i2c: F0 00 00 9E 00 8D [00:49:41]Write i2c OK [00:49:41]MH_I2C_Read... [00:49:41]Read from MH i2c: F0 [00:49:41]MH_I2C_Read... [00:49:41]Read from MH i2c: F0 09 00 [00:49:41]MH_I2C_Read... [00:49:41]Read from MH i2c: F0 09 00 9E 00 00 A6 C3 95 66 C9 DC B2 64 B5 [00:49:41]GetLastDocTimeStamp 1721090788 [00:49:41]current date 1721090982 [00:49:41]FM_GetShiftState [00:49:41]SAM_PROTO_GetShiftState [00:49:41]wFMCommunicate request_size=4 [00:49:41]MH_SAM_APDU [00:49:41]CAPDU: 80 13 01 00 [00:49:41]Write to MH i2c: E2 08 00 9F 00 80 13 01 00 00 00 00 00 1C [00:49:41]Write i2c OK [00:49:41]MH_I2C_Read... [00:49:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:49:41]Read from MH i2c: E2 [00:49:41]MH_I2C_Read... [00:49:41]Read from MH i2c: E2 0E 00 [00:49:41]MH_I2C_Read... [00:49:41]Read from MH i2c: E2 0E 00 9F 00 00 09 00 01 49 C0 95 66 00 00 00 00 90 00 2C [00:49:41]RAPDU: 09 00 01 49 C0 95 66 00 00 00 00 90 00 [00:49:41]wFMCommunicate OK [00:49:41]SAM_PROTO_GetShiftState done [00:49:41]FM_GetShiftState done [00:49:41]opened in 1721090121 [00:49:41]opened+sec_in_day 1721176521 [00:49:41]quantity*price = 30004 [00:49:41]sum+1 = 30006 [00:49:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 2 16.07.2024 00:49 Смена: 449 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165498 ФПД: 159100551062128 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T004942&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165498&fm=159100551062128&tin=02508201610067®Number=0000000000090829&sum=30000 [00:49:43]StoreToDocumentArchive [00:49:43]shift 449 fd 165498 [00:49:43]save to /storage/0449/doc_00165498 [00:49:43]save last doc name /storage/0449/doc_00165498 to /storage/kkm_last_doc_name [00:49:43]save OK [00:49:43]Clear old archive folders... [00:49:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:49:43]tlvbuf is 0115DEE0 [00:49:43]SAM_PROTO_ClearQueue [00:49:43]wFMCommunicate request_size=4 [00:49:43]MH_SAM_APDU [00:49:43]CAPDU: 80 09 00 00 [00:49:43]Write to MH i2c: E2 08 00 AC 00 80 09 00 00 00 00 00 00 1E [00:49:43]Write i2c OK [00:49:43]MH_I2C_Read... [00:49:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:49:43]Read from MH i2c: E2 [00:49:43]MH_I2C_Read... [00:49:43]Read from MH i2c: E2 03 00 [00:49:43]MH_I2C_Read... [00:49:43]Read from MH i2c: E2 03 00 AC 00 00 90 00 20 [00:49:43]RAPDU: 90 00 [00:49:43]wFMCommunicate OK [00:49:43]SAM_PROTO_ClearQueue done [00:49:43]KKMCreateOFDPacket [00:49:43]OFDProtocolAddRootSTLVToBuf [00:49:43]FM_MakeSignedData [00:49:43]FM_MakeSignedData [00:49:43]SAM_PROTO_SignData [00:49:43]wFMCommunicate request_size=4 [00:49:43]MH_SAM_APDU [00:49:43]CAPDU: 80 0D 01 02 [00:49:43]Write to MH i2c: E2 08 00 AD 00 80 0D 01 02 00 00 00 00 26 [00:49:43]Write i2c OK [00:49:43]MH_I2C_Read... [00:49:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:49:43]Read from MH i2c: E2 [00:49:43]MH_I2C_Read... [00:49:43]Read from MH i2c: E2 03 00 [00:49:43]MH_I2C_Read... [00:49:43]Read from MH i2c: E2 03 00 AD 00 00 90 00 21 [00:49:43]RAPDU: 90 00 [00:49:43]wFMCommunicate OK [00:49:43]wFMCommunicate request_size=255 [00:49:43]MH_SAM_APDU [00:49: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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 A6 C3 95 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7A 86 02 00 35 04 06 00 90 [00:49:43]Write to MH i2c: E2 02 01 AE 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 A6 C3 95 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7A 86 02 00 35 04 06 00 90 00 00 1A [00:49:43]Write i2c OK [00:49:43]MH_I2C_Read... [00:49:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:49:43]Read from MH i2c: E2 [00:49:43]MH_I2C_Read... [00:49:43]Read from MH i2c: E2 03 00 [00:49:43]MH_I2C_Read... [00:49:43]Read from MH i2c: E2 03 00 AE 00 00 90 00 22 [00:49:43]RAPDU: 90 00 [00:49:43]wFMCommunicate OK [00:49:43]wFMCommunicate request_size=10 [00:49:43]MH_SAM_APDU [00:49:43]CAPDU: 80 0D 02 02 05 B3 7B D4 62 70 [00:49:43]Write to MH i2c: E2 0D 00 AF 00 80 0D 02 02 05 00 B3 7B D4 62 70 00 00 07 [00:49:43]Write i2c OK [00:49:43]MH_I2C_Read... [00:49:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:49:43]Read from MH i2c: E2 [00:49:43]MH_I2C_Read... [00:49:43]Read from MH i2c: E2 03 00 [00:49:43]MH_I2C_Read... [00:49:43]Read from MH i2c: E2 03 00 AF 00 00 90 00 23 [00:49:43]RAPDU: 90 00 [00:49:43]wFMCommunicate OK [00:49:43]wFMCommunicate request_size=4 [00:49:43]MH_SAM_APDU [00:49:43]CAPDU: 80 0D 03 02 [00:49:43]Write to MH i2c: E2 08 00 B0 00 80 0D 03 02 00 00 00 00 2B [00:49:43]Write i2c OK [00:49:43]MH_I2C_Read... [00:49:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:49:43]Read from MH i2c: E2 [00:49:43]MH_I2C_Read... [00:49:43]Read from MH i2c: E2 0B 00 [00:49:43]MH_I2C_Read... [00:49:43]Read from MH i2c: E2 0B 00 B0 00 00 32 FD DF 9B 18 22 0B C4 90 00 DE [00:49:43]RAPDU: 32 FD DF 9B 18 22 0B C4 90 00 [00:49:43]wFMCommunicate OK [00:49:43]SAM_PROTO_SignData done [00:49:43]FM_MakeSignedData done [00:49:43]CreateOFDProtocolMessage [00:49:43]wFMCommunicate request_size=4 [00:49:43]MH_SAM_APDU [00:49:43]CAPDU: 80 11 00 00 [00:49:43]Write to MH i2c: E2 08 00 B1 00 80 11 00 00 00 00 00 00 2B [00:49:43]Write i2c OK [00:49:43]MH_I2C_Read... [00:49:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:49:43]Read from MH i2c: E2 [00:49:43]MH_I2C_Read... [00:49:43]Read from MH i2c: E2 17 00 [00:49:43]MH_I2C_Read... [00:49:43]Read from MH i2c: E2 17 00 B1 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 81 [00:49:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [00:49:43]wFMCommunicate OK [00:49:43]CreateOFDProtocolMessage done [00:49:43]OFDSenderStorePacket 165498 [00:49:43]StoreOFDPacket docnum=165498 [00:49:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 53 55 07 01 BB EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 A6 C3 95 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7A 86 02 00 35 04 06 00 90 B3 7B D4 62 70 32 FD DF 9B 18 22 0B C4 [00:49:43]CheckFolder [00:49:43]dirname=/storage/ofd_packets [00:49:43]CheckFolder done [00:49:43]ProducePacketName [00:49:43]name=ofd_packets/00165498 [00:49:43]NVStorageSaveData ofd_packets/00165498 [00:49:43]File name is /storage/ofd_packets/00165498 [00:49:43]Write 301 bytes [00:49:43]NVStorageSaveData done [00:49:43]OFDSenderStorePacket done [00:49:43]KKMCreateOFDPacket done [00:49:43]NVStorageSaveData kkm_last_timestamp [00:49:43]File name is /storage/kkm_last_timestamp [00:49:43]Write 4 bytes [00:49:43]NVStorageSaveData done [00:49:43]ExternCall_PrintAddStr [00:49:43]wPrintStart [00:49:43]Write to MH i2c: 01 00 00 B2 00 B2 [00:49:43]Write i2c OK [00:49:43]MH_I2C_Read... [00:49:43]Read from MH i2c: 01 [00:49:43]MH_I2C_Read... [00:49:43]Read from MH i2c: 01 07 00 [00:49:43]MH_I2C_Read... [00:49:43]Read from MH i2c: 01 07 00 B2 00 00 00 00 00 00 FF 0F C7 [00:49:43]RasterBufferAndPrint [00:49:43]line Счет N : (1)459612 [00:49:43]line ИНН: 02508201610067 [00:49:43]line Контрольно-Кассовый Чек [00:49:43]line ПРОДАЖА [00:49:43]line ТРК (МРК, ГНК) : 22 [00:49:43]line Товар: 2710124130 [00:49:43]line Аи-92-К-5 [00:49:43]line 4.560 * 65.80 [00:49:43]line = 300.05 [00:49:43]line НДС 12% НСП 1% [00:49:43]line > о реализуемом товаре [00:49:43]line ОКРУГЛЕНИЕ: -0.05 [00:49:43]line ИТОГО: 300.00 [00:49:43]line Внесено: 300.00 [00:49:43]line СДАЧА: 0.00 [00:49:43]line НСП 1% : 2.65 [00:49:43]line НДС 12% : 31.86 [00:49:43]line Наличными: 300.00 [00:49:43]line Безнал.: 0.00 [00:49:43]line Место: АЗС № 72 "Партнер Нефть" [00:49:43]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [00:49:43]line СНО: Общий режим [00:49:43]line Чек 2 16.07.2024 00:49 [00:49:43]line Смена: 449 ФФД: 1.0 [00:49:43]line ЗНМ: 0300000160 [00:49:43]line РНМ: 0000000000090829 [00:49:43]line Версия ККМ: 001 [00:49:43]line ФМ: 0000000000874718 [00:49:43]line ФД: 165498 [00:49:43]line ФПД: 159100551062128 [00:49:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T004942&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165498&fm=159100551062128&tin=02508201610067®Number=0000000000090829&sum=30000 [00:49:43]written 0, free lines is 4095 [00:49:43]OFD Sender: Processing packet 165498 [packets to send 106, broken 105] [00:49:43]ProducePacketName [00:49:43]name=ofd_packets/00165498 [00:49:43]OFD Sender: To server: pG, [00:49:43]CommunicateWithHost lk.salyk.kg:30040 [00:49:43]ConnectInit lk.salyk.kg [00:49:44]Connected sock=10 [00:49: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 37 31 38 0F 01 00 00 53 55 07 01 BB EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 A6 C3 95 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7A 86 02 00 35 04 06 00 90 B3 7B D4 62 70 32 FD DF 9B 18 22 0B C4 [00:49:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 A9 87 47 00 26 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7A 86 02 00 F4 03 04 00 2E 6A 95 66 B6 04 01 00 00 E4 ED 5E 5C 8E 1B 42 41 [00:49:44]CommunicateWithHost err = 0 [00:49:44]CheckOFDResponse [00:49:44]1017 (14) - 77093643461234 [00:49:44]1041 (16) - 0000000000874718 [00:49:44]1040 (4) - 165498 [00:49:44]1012 (4) - 15.07.2024 18:27 [00:49:44]1206 (1) - 0 [00:49:44]OFD Sender: Remove packet 165498 [00:49:44]ProducePacketName [00:49:44]name=ofd_packets/00165498 [00:49:44]NVStorageDeleteData [00:49:44]Write to MH i2c: 01 00 00 DC 00 DC [00:49:44]Write i2c OK [00:49:44]MH_I2C_Read... [00:49:44]Read from MH i2c: 01 [00:49:44]MH_I2C_Read... [00:49:44]Read from MH i2c: 01 07 00 [00:49:44]MH_I2C_Read... [00:49:44]Read from MH i2c: 01 07 00 DC 00 00 00 00 00 00 07 0D F7 [00:49:44]RasterBufferAndPrint [00:49:44]line [00:49:44]line [00:49:44]line [00:49:44]line [00:49:44]line [00:49:44]written 0, free lines is 3341 [00:49:44]MH_Cut [00:49:44]Write to MH i2c: D1 01 00 E3 00 01 B5 [00:49:44]Write i2c OK [00:49:44]MH_I2C_Read... [00:49:44]Read from MH i2c: D1 [00:49:44]MH_I2C_Read... [00:49:44]Read from MH i2c: D1 01 00 [00:49:44]MH_I2C_Read... [00:49:44]Read from MH i2c: D1 01 00 E3 00 00 B4 [00:49:44]Write to MH i2c: 01 00 00 E4 00 E4 [00:49:44]Write i2c OK [00:49:44]MH_I2C_Read... [00:49:44]OFD Sender: No OFD packet to send [00:49:45]*** Cut start [00:49:45]*** Partial cut [00:49:45]*** CUTSNS_PIN = 1 [00:49:45]*** CUTSNS_PIN = 0 [00:49:45]*** Brake cut motor [00:49:45]Read from MH i2c: 01 [00:49:45]MH_I2C_Read... [00:49:45]*** Stop cut motor [00:49:45]*** Cut end [00:49:45]Read from MH i2c: 01 07 00 [00:49:45]MH_I2C_Read... [00:49:45]Read from MH i2c: 01 07 00 E4 00 00 00 00 00 00 FF 0F F9 [00:49:45]process_action close_receipt done [00:49:45]requested_data is exist [00:49:45]produce_requested_data [00:49:45]requested_item fm.sn is exist - process it [00:49:45]wFMCommunicate request_size=4 [00:49:45]MH_SAM_APDU [00:49:45]CAPDU: 80 11 00 00 [00:49:45]Write to MH i2c: E2 08 00 E5 00 80 11 00 00 00 00 00 00 5F [00:49:45]Write i2c OK [00:49:45]MH_I2C_Read... [00:49:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:49:45]Read from MH i2c: E2 [00:49:45]MH_I2C_Read... [00:49:45]Read from MH i2c: E2 17 00 [00:49:45]MH_I2C_Read... [00:49:45]Read from MH i2c: E2 17 00 E5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 B5 [00:49:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [00:49:45]wFMCommunicate OK [00:49:45]requested_item fd.num is exist - process it [00:49:45]SAM_PROTO_GetFieldsCounters [00:49:45]wFMCommunicate request_size=4 [00:49:45]MH_SAM_APDU [00:49:45]CAPDU: 80 13 00 00 [00:49:45]Write to MH i2c: E2 08 00 E6 00 80 13 00 00 00 00 00 00 62 [00:49:45]Write i2c OK [00:49:45]MH_I2C_Read... [00:49:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:49:45]Read from MH i2c: E2 [00:49:45]MH_I2C_Read... [00:49:45]Read from MH i2c: E2 62 00 [00:49:45]MH_I2C_Read... [00:49:45]Read from MH i2c: E2 62 00 E6 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7A 86 02 00 0E 04 04 00 C1 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [00:49: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7A 86 02 00 0E 04 04 00 C1 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:49:45]wFMCommunicate OK [00:49:45]SAM_PROTO_GetFieldsCounters done [00:49:45]requested_item shift.num is exist - process it [00:49:45]requested_item shift.opened is exist - process it [00:49:45]req_shift_opened [00:49:45]FM_GetShiftState [00:49:45]SAM_PROTO_GetShiftState [00:49:45]wFMCommunicate request_size=4 [00:49:45]MH_SAM_APDU [00:49:45]CAPDU: 80 13 01 00 [00:49:45]Write to MH i2c: E2 08 00 E7 00 80 13 01 00 00 00 00 00 64 [00:49:45]Write i2c OK [00:49:45]MH_I2C_Read... [00:49:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:49:45]Read from MH i2c: E2 [00:49:45]MH_I2C_Read... [00:49:45]Read from MH i2c: E2 0E 00 [00:49:45]MH_I2C_Read... [00:49:45]Read from MH i2c: E2 0E 00 E7 00 00 09 00 01 49 C0 95 66 00 00 00 00 90 00 74 [00:49:45]RAPDU: 09 00 01 49 C0 95 66 00 00 00 00 90 00 [00:49:45]wFMCommunicate OK [00:49:45]SAM_PROTO_GetShiftState done [00:49:45]FM_GetShiftState done [00:49:45]req_shift_opened done [00:49:45]requested_item shift.open_date is exist - process it [00:49:45]req_shift_open_date [00:49:45]req_shift_open_date done [00:49:45]produce_requested_data done [00:49:45]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165498,"shift.num":449,"shift.opened":1,"shift.open_date":1721090121} [00:49:45]process_action_free close_receipt [00:49:45]json_value_free [00:49:45]json_value_free done [00:49:45]process_json_proto returns [00:49:45]Send response to host [00:49:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165498,"shift.num":449,"shift.opened":1,"shift.open_date":1721090121}}} [00:49:45]free response buf [00:49:45]execute_script done [00:49:45]execute_script returns [00:49:45]free content buf [00:49:45]Sock 7.Close socket [00:49:45]Sock 7.Thread stoped [00:49:49]OFD Sender: No OFD packet to send [00:49:54]OFD Sender: No OFD packet to send [00:49:59]OFD Sender: No OFD packet to send [00:50:04]OFD Sender: No OFD packet to send [00:50:09]OFD Sender: No OFD packet to send [00:50:14]OFD Sender: No OFD packet to send [00:50:19]OFD Sender: No OFD packet to send [00:50:24]OFD Sender: No OFD packet to send [00:50:29]OFD Sender: No OFD packet to send [00:50:34]OFD Sender: No OFD packet to send [00:50:39]OFD Sender: No OFD packet to send [00:50:44]OFD Sender: No OFD packet to send [00:50:49]OFD Sender: No OFD packet to send [00:50:54]OFD Sender: No OFD packet to send [00:50:59]OFD Sender: No OFD packet to send [00:51:04]OFD Sender: No OFD packet to send [00:51:09]OFD Sender: No OFD packet to send [00:51:14]OFD Sender: No OFD packet to send [00:51:19]OFD Sender: No OFD packet to send [00:51:24]OFD Sender: No OFD packet to send [00:51:29]OFD Sender: No OFD packet to send [00:51:34]OFD Sender: No OFD packet to send [00:51:39]OFD Sender: No OFD packet to send [00:51:44]OFD Sender: No OFD packet to send [00:51:49]OFD Sender: No OFD packet to send [00:51:54]OFD Sender: No OFD packet to send [00:51:59]OFD Sender: No OFD packet to send [00:52:04]OFD Sender: No OFD packet to send [00:52:09]OFD Sender: No OFD packet to send [00:52:14]OFD Sender: No OFD packet to send [00:52:19]OFD Sender: No OFD packet to send [00:52:24]OFD Sender: No OFD packet to send [00:52:29]OFD Sender: No OFD packet to send [00:52:34]OFD Sender: No OFD packet to send [00:52:39]OFD Sender: No OFD packet to send [00:52:45]OFD Sender: No OFD packet to send [00:52:50]OFD Sender: No OFD packet to send [00:52:55]OFD Sender: No OFD packet to send [00:53:00]OFD Sender: No OFD packet to send [00:53:05]OFD Sender: No OFD packet to send [00:53:10]OFD Sender: No OFD packet to send [00:53:15]OFD Sender: No OFD packet to send [00:53:20]OFD Sender: No OFD packet to send [00:53:25]OFD Sender: No OFD packet to send [00:53:30]OFD Sender: No OFD packet to send [00:53:35]OFD Sender: No OFD packet to send [00:53:40]OFD Sender: No OFD packet to send [00:53:45]OFD Sender: No OFD packet to send [00:53:50]OFD Sender: No OFD packet to send [00:53:55]OFD Sender: No OFD packet to send [00:54:00]OFD Sender: No OFD packet to send [00:54:05]OFD Sender: No OFD packet to send [00:54:10]OFD Sender: No OFD packet to send [00:54:15]OFD Sender: No OFD packet to send [00:54:20]OFD Sender: No OFD packet to send [00:54:25]OFD Sender: No OFD packet to send [00:54:30]OFD Sender: No OFD packet to send [00:54:35]OFD Sender: No OFD packet to send [00:54:40]OFD Sender: No OFD packet to send [00:54:45]OFD Sender: No OFD packet to send [00:54:50]OFD Sender: No OFD packet to send [00:54:55]OFD Sender: No OFD packet to send [00:55:00]OFD Sender: No OFD packet to send [00:55:05]OFD Sender: No OFD packet to send [00:55:06]accept exits with 9 [00:55:06]New connection [00:55:06]New thread 3066887524 created [00:55:06]Thread 3066744164 joined [00:55:06]Waiting for new connection... [00:55:06] Sock 9.Parse request [00:55:06]Sock 9.Check first char [00:55:06]Sock 9.First char is OK [00:55:06]request: POST /json_proto HTTP/1.0 [00:55:06]Method: POST [00:55:06]URL: /json_proto [00:55:06]Method is POST - this is cgi request [00:55:06]url: /json_proto [00:55:06]query_string will be loaded in cgi processing [00:55:06]execute_cgi json_proto POST (null) [00:55:06]execute_cgi path=json_proto method=POST [00:55:06]POST find Content-Length [00:55:06]Host: 172.17.56.4:8080 [00:55:06]Content-Length: 677 [00:55:06]Content-Type: application/json [00:55:06] [00:55:06]POST finish read [00:55:06]Found Content-Length = 677 [00:55:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459613", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:55:06]execute_script... [00:55:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459613", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 3.040, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:55:06]POST & json_proto [00:55:06]process_json_proto [00:55:06]json parsed OK: [00:55:06]protocol is kg_v1.0 [00:55:06]action value=close_receipt [00:55:06]process_action close_receipt [00:55:06]cmd_close_receipt [00:55:06]MH_GetDate [00:55:06]Write to MH i2c: F0 00 00 E8 00 D7 [00:55:06]Write i2c OK [00:55:06]MH_I2C_Read... [00:55:06]Read from MH i2c: F0 [00:55:06]MH_I2C_Read... [00:55:06]Read from MH i2c: F0 09 00 [00:55:06]MH_I2C_Read... [00:55:06]Read from MH i2c: F0 09 00 E8 00 00 EB C4 95 66 C9 DC B2 64 45 [00:55:06]GetLastDocTimeStamp 1721090982 [00:55:06]current date 1721091307 [00:55:06]FM_GetShiftState [00:55:06]SAM_PROTO_GetShiftState [00:55:06]wFMCommunicate request_size=4 [00:55:06]MH_SAM_APDU [00:55:06]CAPDU: 80 13 01 00 [00:55:06]Write to MH i2c: E2 08 00 E9 00 80 13 01 00 00 00 00 00 66 [00:55:06]Write i2c OK [00:55:06]MH_I2C_Read... [00:55:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:55:06]Read from MH i2c: E2 [00:55:06]MH_I2C_Read... [00:55:06]Read from MH i2c: E2 0E 00 [00:55:06]MH_I2C_Read... [00:55:06]Read from MH i2c: E2 0E 00 E9 00 00 09 00 01 49 C0 95 66 00 00 00 00 90 00 76 [00:55:06]RAPDU: 09 00 01 49 C0 95 66 00 00 00 00 90 00 [00:55:06]wFMCommunicate OK [00:55:06]SAM_PROTO_GetShiftState done [00:55:06]FM_GetShiftState done [00:55:06]opened in 1721090121 [00:55:06]opened+sec_in_day 1721176521 [00:55:06]quantity*price = 20003 [00:55:06]sum+1 = 20004 [00:55:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 3 16.07.2024 00:55 Смена: 449 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165499 ФПД: 136232767061451 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T005507&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165499&fm=136232767061451&tin=02508201610067®Number=0000000000090829&sum=20000 [00:55:07]StoreToDocumentArchive [00:55:07]shift 449 fd 165499 [00:55:07]save to /storage/0449/doc_00165499 [00:55:07]save last doc name /storage/0449/doc_00165499 to /storage/kkm_last_doc_name [00:55:07]save OK [00:55:07]Clear old archive folders... [00:55:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:55:07]tlvbuf is 0117E150 [00:55:07]SAM_PROTO_ClearQueue [00:55:07]wFMCommunicate request_size=4 [00:55:07]MH_SAM_APDU [00:55:07]CAPDU: 80 09 00 00 [00:55:07]Write to MH i2c: E2 08 00 F6 00 80 09 00 00 00 00 00 00 68 [00:55:07]Write i2c OK [00:55:07]MH_I2C_Read... [00:55:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:55:07]Read from MH i2c: E2 [00:55:07]MH_I2C_Read... [00:55:07]Read from MH i2c: E2 03 00 [00:55:07]MH_I2C_Read... [00:55:07]Read from MH i2c: E2 03 00 F6 00 00 90 00 6A [00:55:07]RAPDU: 90 00 [00:55:07]wFMCommunicate OK [00:55:07]SAM_PROTO_ClearQueue done [00:55:07]KKMCreateOFDPacket [00:55:07]OFDProtocolAddRootSTLVToBuf [00:55:07]FM_MakeSignedData [00:55:07]FM_MakeSignedData [00:55:07]SAM_PROTO_SignData [00:55:07]wFMCommunicate request_size=4 [00:55:07]MH_SAM_APDU [00:55:07]CAPDU: 80 0D 01 02 [00:55:07]Write to MH i2c: E2 08 00 F7 00 80 0D 01 02 00 00 00 00 70 [00:55:07]Write i2c OK [00:55:07]MH_I2C_Read... [00:55:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:55:07]Read from MH i2c: E2 [00:55:07]MH_I2C_Read... [00:55:07]Read from MH i2c: E2 03 00 [00:55:07]MH_I2C_Read... [00:55:07]Read from MH i2c: E2 03 00 F7 00 00 90 00 6B [00:55:07]RAPDU: 90 00 [00:55:07]wFMCommunicate OK [00:55:07]wFMCommunicate request_size=255 [00:55:07]MH_SAM_APDU [00:55: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 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 EB C4 95 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7B 86 02 00 35 04 06 00 7B [00:55:07]Write to MH i2c: E2 02 01 F8 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 EB C4 95 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7B 86 02 00 35 04 06 00 7B 00 00 77 [00:55:08]Write i2c OK [00:55:08]MH_I2C_Read... [00:55:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:55:08]Read from MH i2c: E2 [00:55:08]MH_I2C_Read... [00:55:08]Read from MH i2c: E2 03 00 [00:55:08]MH_I2C_Read... [00:55:08]Read from MH i2c: E2 03 00 F8 00 00 90 00 6C [00:55:08]RAPDU: 90 00 [00:55:08]wFMCommunicate OK [00:55:08]wFMCommunicate request_size=10 [00:55:08]MH_SAM_APDU [00:55:08]CAPDU: 80 0D 02 02 05 E7 29 AF FD CB [00:55:08]Write to MH i2c: E2 0D 00 F9 00 80 0D 02 02 05 00 E7 29 AF FD CB 00 00 04 [00:55:08]Write i2c OK [00:55:08]MH_I2C_Read... [00:55:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:55:08]Read from MH i2c: E2 [00:55:08]MH_I2C_Read... [00:55:08]Read from MH i2c: E2 03 00 [00:55:08]MH_I2C_Read... [00:55:08]Read from MH i2c: E2 03 00 F9 00 00 90 00 6D [00:55:08]RAPDU: 90 00 [00:55:08]wFMCommunicate OK [00:55:08]wFMCommunicate request_size=4 [00:55:08]MH_SAM_APDU [00:55:08]CAPDU: 80 0D 03 02 [00:55:08]Write to MH i2c: E2 08 00 FA 00 80 0D 03 02 00 00 00 00 75 [00:55:08]Write i2c OK [00:55:08]MH_I2C_Read... [00:55:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:55:08]Read from MH i2c: E2 [00:55:08]MH_I2C_Read... [00:55:08]Read from MH i2c: E2 0B 00 [00:55:08]MH_I2C_Read... [00:55:08]Read from MH i2c: E2 0B 00 FA 00 00 24 F2 77 AC 7A 0F 21 56 90 00 AF [00:55:08]RAPDU: 24 F2 77 AC 7A 0F 21 56 90 00 [00:55:08]wFMCommunicate OK [00:55:08]SAM_PROTO_SignData done [00:55:08]FM_MakeSignedData done [00:55:08]CreateOFDProtocolMessage [00:55:08]wFMCommunicate request_size=4 [00:55:08]MH_SAM_APDU [00:55:08]CAPDU: 80 11 00 00 [00:55:08]Write to MH i2c: E2 08 00 FB 00 80 11 00 00 00 00 00 00 75 [00:55:08]Write i2c OK [00:55:08]MH_I2C_Read... [00:55:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:55:08]Read from MH i2c: E2 [00:55:08]MH_I2C_Read... [00:55:08]Read from MH i2c: E2 17 00 [00:55:08]MH_I2C_Read... [00:55:08]Read from MH i2c: E2 17 00 FB 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 CB [00:55:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [00:55:08]wFMCommunicate OK [00:55:08]CreateOFDProtocolMessage done [00:55:08]OFDSenderStorePacket 165499 [00:55:08]StoreOFDPacket docnum=165499 [00:55:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E0 D6 07 01 41 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 EB C4 95 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7B 86 02 00 35 04 06 00 7B E7 29 AF FD CB 24 F2 77 AC 7A 0F 21 56 [00:55:08]CheckFolder [00:55:08]dirname=/storage/ofd_packets [00:55:08]CheckFolder done [00:55:08]ProducePacketName [00:55:08]name=ofd_packets/00165499 [00:55:08]NVStorageSaveData ofd_packets/00165499 [00:55:08]File name is /storage/ofd_packets/00165499 [00:55:08]Write 301 bytes [00:55:08]NVStorageSaveData done [00:55:08]OFDSenderStorePacket done [00:55:08]KKMCreateOFDPacket done [00:55:08]NVStorageSaveData kkm_last_timestamp [00:55:08]File name is /storage/kkm_last_timestamp [00:55:08]Write 4 bytes [00:55:08]NVStorageSaveData done [00:55:08]ExternCall_PrintAddStr [00:55:08]wPrintStart [00:55:08]Write to MH i2c: 01 00 00 FC 00 FC [00:55:08]Write i2c OK [00:55:08]MH_I2C_Read... [00:55:08]Read from MH i2c: 01 [00:55:08]MH_I2C_Read... [00:55:08]Read from MH i2c: 01 07 00 [00:55:08]MH_I2C_Read... [00:55:08]Read from MH i2c: 01 07 00 FC 00 00 00 00 00 00 FF 0F 11 [00:55:08]RasterBufferAndPrint [00:55:08]line Счет N : (1)459613 [00:55:08]line ИНН: 02508201610067 [00:55:08]line Контрольно-Кассовый Чек [00:55:08]line ПРОДАЖА [00:55:08]line ТРК (МРК, ГНК) : 22 [00:55:08]line Товар: 2710124130 [00:55:08]line Аи-92-К-5 [00:55:08]line 3.040 * 65.80 [00:55:08]line = 200.03 [00:55:08]line НДС 12% НСП 1% [00:55:08]line > о реализуемом товаре [00:55:08]line ОКРУГЛЕНИЕ: -0.03 [00:55:08]line ИТОГО: 200.00 [00:55:08]line Внесено: 200.00 [00:55:08]line СДАЧА: 0.00 [00:55:08]line НСП 1% : 1.77 [00:55:08]line НДС 12% : 21.24 [00:55:08]line Наличными: 200.00 [00:55:08]line Безнал.: 0.00 [00:55:08]line Место: АЗС № 72 "Партнер Нефть" [00:55:08]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [00:55:08]line СНО: Общий режим [00:55:08]line Чек 3 16.07.2024 00:55 [00:55:08]line Смена: 449 ФФД: 1.0 [00:55:08]line ЗНМ: 0300000160 [00:55:08]line РНМ: 0000000000090829 [00:55:08]line Версия ККМ: 001 [00:55:08]line ФМ: 0000000000874718 [00:55:08]line ФД: 165499 [00:55:08]line ФПД: 136232767061451 [00:55:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T005507&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165499&fm=136232767061451&tin=02508201610067®Number=0000000000090829&sum=20000 [00:55:08]OFD Sender: Processing packet 165499 [packets to send 106, broken 105] [00:55:08]ProducePacketName [00:55:08]name=ofd_packets/00165499 [00:55:08]OFD Sender: To server: pG, [00:55:08]CommunicateWithHost lk.salyk.kg:30040 [00:55:08]ConnectInit lk.salyk.kg [00:55:08]written 0, free lines is 4095 [00:55:08]Connected sock=10 [00:55: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 37 31 38 0F 01 00 00 E0 D6 07 01 41 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 0B 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 EB C4 95 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7B 86 02 00 35 04 06 00 7B E7 29 AF FD CB 24 F2 77 AC 7A 0F 21 56 [00:55:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 E6 C8 47 00 3E 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 37 31 38 10 04 04 00 7B 86 02 00 F4 03 04 00 73 6B 95 66 B6 04 01 00 00 00 6D AF 12 92 3F 97 64 [00:55:08]CommunicateWithHost err = 0 [00:55:08]CheckOFDResponse [00:55:08]1017 (14) - 77093643461234 [00:55:08]1041 (16) - 0000000000874718 [00:55:08]1040 (4) - 165499 [00:55:08]1012 (4) - 15.07.2024 18:33 [00:55:08]1206 (1) - 0 [00:55:08]OFD Sender: Remove packet 165499 [00:55:08]ProducePacketName [00:55:08]name=ofd_packets/00165499 [00:55:08]NVStorageDeleteData [00:55:09]Write to MH i2c: 01 00 00 26 01 27 [00:55:09]Write i2c OK [00:55:09]MH_I2C_Read... [00:55:09]Read from MH i2c: 01 [00:55:09]MH_I2C_Read... [00:55:09]Read from MH i2c: 01 07 00 [00:55:09]MH_I2C_Read... [00:55:09]Read from MH i2c: 01 07 00 26 01 00 00 00 00 00 02 0D 3D [00:55:09]RasterBufferAndPrint [00:55:09]line [00:55:09]line [00:55:09]line [00:55:09]line [00:55:09]line [00:55:09]written 0, free lines is 3336 [00:55:09]MH_Cut [00:55:09]Write to MH i2c: D1 01 00 2D 01 01 00 [00:55:09]Write i2c OK [00:55:09]MH_I2C_Read... [00:55:09]Read from MH i2c: D1 [00:55:09]MH_I2C_Read... [00:55:09]Read from MH i2c: D1 01 00 [00:55:09]MH_I2C_Read... [00:55:09]Read from MH i2c: D1 01 00 2D 01 00 FF [00:55:09]Write to MH i2c: 01 00 00 2E 01 2F [00:55:09]Write i2c OK [00:55:09]MH_I2C_Read... [00:55:09]OFD Sender: No OFD packet to send [00:55:09]*** Cut start [00:55:09]*** Partial cut [00:55:09]*** CUTSNS_PIN = 1 [00:55:09]*** CUTSNS_PIN = 0 [00:55:10]*** Brake cut motor [00:55:10]Read from MH i2c: 01 [00:55:10]MH_I2C_Read... [00:55:10]*** Stop cut motor [00:55:10]*** Cut end [00:55:10]Read from MH i2c: 01 07 00 [00:55:10]MH_I2C_Read... [00:55:10]Read from MH i2c: 01 07 00 2E 01 00 00 00 00 00 FF 0F 44 [00:55:10]process_action close_receipt done [00:55:10]requested_data is exist [00:55:10]produce_requested_data [00:55:10]requested_item fm.sn is exist - process it [00:55:10]wFMCommunicate request_size=4 [00:55:10]MH_SAM_APDU [00:55:10]CAPDU: 80 11 00 00 [00:55:10]Write to MH i2c: E2 08 00 2F 01 80 11 00 00 00 00 00 00 AA [00:55:10]Write i2c OK [00:55:10]MH_I2C_Read... [00:55:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:55:10]Read from MH i2c: E2 [00:55:10]MH_I2C_Read... [00:55:10]Read from MH i2c: E2 17 00 [00:55:10]MH_I2C_Read... [00:55:10]Read from MH i2c: E2 17 00 2F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 00 [00:55:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [00:55:10]wFMCommunicate OK [00:55:10]requested_item fd.num is exist - process it [00:55:10]SAM_PROTO_GetFieldsCounters [00:55:10]wFMCommunicate request_size=4 [00:55:10]MH_SAM_APDU [00:55:10]CAPDU: 80 13 00 00 [00:55:10]Write to MH i2c: E2 08 00 30 01 80 13 00 00 00 00 00 00 AD [00:55:10]Write i2c OK [00:55:10]MH_I2C_Read... [00:55:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:55:10]Read from MH i2c: E2 [00:55:10]MH_I2C_Read... [00:55:10]Read from MH i2c: E2 62 00 [00:55:10]MH_I2C_Read... [00:55:10]Read from MH i2c: E2 62 00 30 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7B 86 02 00 0E 04 04 00 C1 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [00:55: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7B 86 02 00 0E 04 04 00 C1 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:55:10]wFMCommunicate OK [00:55:10]SAM_PROTO_GetFieldsCounters done [00:55:10]requested_item shift.num is exist - process it [00:55:10]requested_item shift.opened is exist - process it [00:55:10]req_shift_opened [00:55:10]FM_GetShiftState [00:55:10]SAM_PROTO_GetShiftState [00:55:10]wFMCommunicate request_size=4 [00:55:10]MH_SAM_APDU [00:55:10]CAPDU: 80 13 01 00 [00:55:10]Write to MH i2c: E2 08 00 31 01 80 13 01 00 00 00 00 00 AF [00:55:10]Write i2c OK [00:55:10]MH_I2C_Read... [00:55:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:55:10]Read from MH i2c: E2 [00:55:10]MH_I2C_Read... [00:55:10]Read from MH i2c: E2 0E 00 [00:55:10]MH_I2C_Read... [00:55:10]Read from MH i2c: E2 0E 00 31 01 00 09 00 01 49 C0 95 66 00 00 00 00 90 00 BF [00:55:10]RAPDU: 09 00 01 49 C0 95 66 00 00 00 00 90 00 [00:55:10]wFMCommunicate OK [00:55:10]SAM_PROTO_GetShiftState done [00:55:10]FM_GetShiftState done [00:55:10]req_shift_opened done [00:55:10]requested_item shift.open_date is exist - process it [00:55:10]req_shift_open_date [00:55:10]req_shift_open_date done [00:55:10]produce_requested_data done [00:55:10]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165499,"shift.num":449,"shift.opened":1,"shift.open_date":1721090121} [00:55:10]process_action_free close_receipt [00:55:10]json_value_free [00:55:10]json_value_free done [00:55:10]process_json_proto returns [00:55:10]Send response to host [00:55:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165499,"shift.num":449,"shift.opened":1,"shift.open_date":1721090121}}} [00:55:10]free response buf [00:55:10]execute_script done [00:55:10]execute_script returns [00:55:10]free content buf [00:55:10]Sock 9.Close socket [00:55:10]Sock 9.Thread stoped [00:55:14]OFD Sender: No OFD packet to send [00:55:19]OFD Sender: No OFD packet to send [00:55:24]OFD Sender: No OFD packet to send [00:55:29]OFD Sender: No OFD packet to send [00:55:34]OFD Sender: No OFD packet to send [00:55:39]OFD Sender: No OFD packet to send [00:55:44]OFD Sender: No OFD packet to send [00:55:49]OFD Sender: No OFD packet to send [00:55:54]OFD Sender: No OFD packet to send [00:55:59]OFD Sender: No OFD packet to send [00:56:04]OFD Sender: No OFD packet to send [00:56:09]OFD Sender: No OFD packet to send [00:56:14]OFD Sender: No OFD packet to send [00:56:19]OFD Sender: No OFD packet to send [00:56:24]OFD Sender: No OFD packet to send [00:56:29]OFD Sender: No OFD packet to send [00:56:34]OFD Sender: No OFD packet to send [00:56:39]OFD Sender: No OFD packet to send [00:56:44]OFD Sender: No OFD packet to send [00:56:49]OFD Sender: No OFD packet to send [00:56:54]OFD Sender: No OFD packet to send [00:56:59]OFD Sender: No OFD packet to send [00:57:04]OFD Sender: No OFD packet to send [00:57:09]OFD Sender: No OFD packet to send [00:57:14]OFD Sender: No OFD packet to send [00:57:19]OFD Sender: No OFD packet to send [00:57:24]OFD Sender: No OFD packet to send [00:57:29]OFD Sender: No OFD packet to send [00:57:34]OFD Sender: No OFD packet to send [00:57:39]OFD Sender: No OFD packet to send [00:57:44]OFD Sender: No OFD packet to send [00:57:49]OFD Sender: No OFD packet to send [00:57:54]OFD Sender: No OFD packet to send [00:57:59]OFD Sender: No OFD packet to send [00:58:04]OFD Sender: No OFD packet to send [00:58:09]OFD Sender: No OFD packet to send [00:58:14]OFD Sender: No OFD packet to send [00:58:19]OFD Sender: No OFD packet to send [00:58:24]OFD Sender: No OFD packet to send [00:58:29]OFD Sender: No OFD packet to send [00:58:34]OFD Sender: No OFD packet to send [00:58:39]OFD Sender: No OFD packet to send [00:58:44]OFD Sender: No OFD packet to send [00:58:49]OFD Sender: No OFD packet to send [00:58:54]OFD Sender: No OFD packet to send [00:58:59]OFD Sender: No OFD packet to send [00:59:04]OFD Sender: No OFD packet to send [00:59:09]OFD Sender: No OFD packet to send [00:59:14]OFD Sender: No OFD packet to send [00:59:19]OFD Sender: No OFD packet to send [00:59:24]OFD Sender: No OFD packet to send [00:59:29]OFD Sender: No OFD packet to send [00:59:34]OFD Sender: No OFD packet to send [00:59:39]OFD Sender: No OFD packet to send [00:59:44]OFD Sender: No OFD packet to send [00:59:49]OFD Sender: No OFD packet to send [00:59:54]OFD Sender: No OFD packet to send [00:59:59]OFD Sender: No OFD packet to send [01:00:04]OFD Sender: No OFD packet to send [01:00:09]OFD Sender: No OFD packet to send [01:00:14]OFD Sender: No OFD packet to send [01:00:19]OFD Sender: No OFD packet to send [01:00:24]OFD Sender: No OFD packet to send [01:00:29]OFD Sender: No OFD packet to send [01:00:34]OFD Sender: No OFD packet to send [01:00:39]OFD Sender: No OFD packet to send [01:00:44]OFD Sender: No OFD packet to send [01:00:49]OFD Sender: No OFD packet to send [01:00:54]OFD Sender: No OFD packet to send [01:00:59]OFD Sender: No OFD packet to send [01:01:04]OFD Sender: No OFD packet to send [01:01:09]OFD Sender: No OFD packet to send [01:01:14]OFD Sender: No OFD packet to send [01:01:19]OFD Sender: No OFD packet to send [01:01:24]OFD Sender: No OFD packet to send [01:01:29]OFD Sender: No OFD packet to send [01:01:34]OFD Sender: No OFD packet to send [01:01:39]OFD Sender: No OFD packet to send [01:01:44]OFD Sender: No OFD packet to send [01:01:49]OFD Sender: No OFD packet to send [01:01:54]OFD Sender: No OFD packet to send [01:01:59]OFD Sender: No OFD packet to send [01:02:04]OFD Sender: No OFD packet to send [01:02:09]OFD Sender: No OFD packet to send [01:02:14]OFD Sender: No OFD packet to send [01:02:19]OFD Sender: No OFD packet to send [01:02:24]OFD Sender: No OFD packet to send [01:02:29]OFD Sender: No OFD packet to send [01:02:35]OFD Sender: No OFD packet to send [01:02:40]OFD Sender: No OFD packet to send [01:02:45]OFD Sender: No OFD packet to send [01:02:50]OFD Sender: No OFD packet to send [01:02:55]OFD Sender: No OFD packet to send [01:03:00]OFD Sender: No OFD packet to send [01:03:05]OFD Sender: No OFD packet to send [01:03:10]OFD Sender: No OFD packet to send [01:03:15]OFD Sender: No OFD packet to send [01:03:20]OFD Sender: No OFD packet to send [01:03:25]OFD Sender: No OFD packet to send [01:03:30]OFD Sender: No OFD packet to send [01:03:35]OFD Sender: No OFD packet to send [01:03:40]OFD Sender: No OFD packet to send [01:03:45]OFD Sender: No OFD packet to send [01:03:50]OFD Sender: No OFD packet to send [01:03:55]OFD Sender: No OFD packet to send [01:04:00]OFD Sender: No OFD packet to send [01:04:05]OFD Sender: No OFD packet to send [01:04:10]OFD Sender: No OFD packet to send [01:04:15]OFD Sender: No OFD packet to send [01:04:20]OFD Sender: No OFD packet to send [01:04:25]OFD Sender: No OFD packet to send [01:04:30]OFD Sender: No OFD packet to send [01:04:35]OFD Sender: No OFD packet to send [01:04:40]OFD Sender: No OFD packet to send [01:04:45]OFD Sender: No OFD packet to send [01:04:50]OFD Sender: No OFD packet to send [01:04:55]OFD Sender: No OFD packet to send [01:05:00]OFD Sender: No OFD packet to send [01:05:05]OFD Sender: No OFD packet to send [01:05:10]OFD Sender: No OFD packet to send [01:05:15]OFD Sender: No OFD packet to send [01:05:20]OFD Sender: No OFD packet to send [01:05:25]OFD Sender: No OFD packet to send [01:05:30]OFD Sender: No OFD packet to send [01:05:35]OFD Sender: No OFD packet to send [01:05:40]OFD Sender: No OFD packet to send [01:05:45]OFD Sender: No OFD packet to send [01:05:50]OFD Sender: No OFD packet to send [01:05:55]OFD Sender: No OFD packet to send [01:06:00]OFD Sender: No OFD packet to send [01:06:05]OFD Sender: No OFD packet to send [01:06:10]OFD Sender: No OFD packet to send [01:06:15]OFD Sender: No OFD packet to send [01:06:20]OFD Sender: No OFD packet to send [01:06:25]OFD Sender: No OFD packet to send [01:06:30]OFD Sender: No OFD packet to send [01:06:35]OFD Sender: No OFD packet to send [01:06:40]OFD Sender: No OFD packet to send [01:06:45]OFD Sender: No OFD packet to send [01:06:50]OFD Sender: No OFD packet to send [01:06:55]OFD Sender: No OFD packet to send [01:07:00]OFD Sender: No OFD packet to send [01:07:05]OFD Sender: No OFD packet to send [01:07:10]OFD Sender: No OFD packet to send [01:07:15]OFD Sender: No OFD packet to send [01:07:20]OFD Sender: No OFD packet to send [01:07:25]OFD Sender: No OFD packet to send [01:07:30]OFD Sender: No OFD packet to send [01:07:35]OFD Sender: No OFD packet to send [01:07:40]OFD Sender: No OFD packet to send [01:07:45]OFD Sender: No OFD packet to send [01:07:50]OFD Sender: No OFD packet to send [01:07:55]OFD Sender: No OFD packet to send [01:08:00]OFD Sender: No OFD packet to send [01:08:05]OFD Sender: No OFD packet to send [01:08:10]OFD Sender: No OFD packet to send [01:08:15]OFD Sender: No OFD packet to send [01:08:20]OFD Sender: No OFD packet to send [01:08:25]OFD Sender: No OFD packet to send [01:08:30]OFD Sender: No OFD packet to send [01:08:32]accept exits with 7 [01:08:32]New connection [01:08:32]New thread 3066744164 created [01:08:32]Thread 3066887524 joined [01:08:32]Waiting for new connection... [01:08:32] Sock 7.Parse request [01:08:32]Sock 7.Check first char [01:08:32]Sock 7.First char is OK [01:08:32]request: POST /json_proto HTTP/1.0 [01:08:32]Method: POST [01:08:32]URL: /json_proto [01:08:32]Method is POST - this is cgi request [01:08:32]url: /json_proto [01:08:32]query_string will be loaded in cgi processing [01:08:32]execute_cgi json_proto POST (null) [01:08:32]execute_cgi path=json_proto method=POST [01:08:32]POST find Content-Length [01:08:32]Host: 172.17.56.4:8080 [01:08:32]Content-Length: 677 [01:08:32]Content-Type: application/json [01:08:32] [01:08:32]POST finish read [01:08:32]Found Content-Length = 677 [01:08:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459614", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:08:32]execute_script... [01:08:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459614", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:08:32]POST & json_proto [01:08:32]process_json_proto [01:08:32]json parsed OK: [01:08:32]protocol is kg_v1.0 [01:08:32]action value=close_receipt [01:08:32]process_action close_receipt [01:08:32]cmd_close_receipt [01:08:32]MH_GetDate [01:08:32]Write to MH i2c: F0 00 00 32 01 22 [01:08:32]Write i2c OK [01:08:32]MH_I2C_Read... [01:08:32]Read from MH i2c: F0 [01:08:32]MH_I2C_Read... [01:08:32]Read from MH i2c: F0 09 00 [01:08:32]MH_I2C_Read... [01:08:32]Read from MH i2c: F0 09 00 32 01 00 11 C8 95 66 C9 DC B2 64 BA [01:08:32]GetLastDocTimeStamp 1721091307 [01:08:32]current date 1721092113 [01:08:32]FM_GetShiftState [01:08:32]SAM_PROTO_GetShiftState [01:08:32]wFMCommunicate request_size=4 [01:08:32]MH_SAM_APDU [01:08:32]CAPDU: 80 13 01 00 [01:08:32]Write to MH i2c: E2 08 00 33 01 80 13 01 00 00 00 00 00 B1 [01:08:32]Write i2c OK [01:08:32]MH_I2C_Read... [01:08:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:08:32]Read from MH i2c: E2 [01:08:32]MH_I2C_Read... [01:08:32]Read from MH i2c: E2 0E 00 [01:08:32]MH_I2C_Read... [01:08:32]Read from MH i2c: E2 0E 00 33 01 00 09 00 01 49 C0 95 66 00 00 00 00 90 00 C1 [01:08:32]RAPDU: 09 00 01 49 C0 95 66 00 00 00 00 90 00 [01:08:32]wFMCommunicate OK [01:08:32]SAM_PROTO_GetShiftState done [01:08:32]FM_GetShiftState done [01:08:32]opened in 1721090121 [01:08:32]opened+sec_in_day 1721176521 [01:08:32]quantity*price = 30004 [01:08:32]sum+1 = 30006 [01:08:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 4 16.07.2024 01:08 Смена: 449 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165500 ФПД: 219546007641680 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T010833&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165500&fm=219546007641680&tin=02508201610067®Number=0000000000090829&sum=30000 [01:08:33]StoreToDocumentArchive [01:08:33]shift 449 fd 165500 [01:08:33]save to /storage/0449/doc_00165500 [01:08:33]save last doc name /storage/0449/doc_00165500 to /storage/kkm_last_doc_name [01:08:33]save OK [01:08:33]Clear old archive folders... [01:08:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:08:33]tlvbuf is 0117FA60 [01:08:33]SAM_PROTO_ClearQueue [01:08:33]wFMCommunicate request_size=4 [01:08:33]MH_SAM_APDU [01:08:33]CAPDU: 80 09 00 00 [01:08:33]Write to MH i2c: E2 08 00 40 01 80 09 00 00 00 00 00 00 B3 [01:08:33]Write i2c OK [01:08:33]MH_I2C_Read... [01:08:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:08:33]Read from MH i2c: E2 [01:08:33]MH_I2C_Read... [01:08:33]Read from MH i2c: E2 03 00 [01:08:33]MH_I2C_Read... [01:08:33]Read from MH i2c: E2 03 00 40 01 00 90 00 B5 [01:08:33]RAPDU: 90 00 [01:08:33]wFMCommunicate OK [01:08:33]SAM_PROTO_ClearQueue done [01:08:33]KKMCreateOFDPacket [01:08:33]OFDProtocolAddRootSTLVToBuf [01:08:33]FM_MakeSignedData [01:08:33]FM_MakeSignedData [01:08:33]SAM_PROTO_SignData [01:08:33]wFMCommunicate request_size=4 [01:08:33]MH_SAM_APDU [01:08:33]CAPDU: 80 0D 01 02 [01:08:33]Write to MH i2c: E2 08 00 41 01 80 0D 01 02 00 00 00 00 BB [01:08:33]Write i2c OK [01:08:33]MH_I2C_Read... [01:08:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:08:33]Read from MH i2c: E2 [01:08:33]MH_I2C_Read... [01:08:33]Read from MH i2c: E2 03 00 [01:08:33]MH_I2C_Read... [01:08:33]Read from MH i2c: E2 03 00 41 01 00 90 00 B6 [01:08:33]RAPDU: 90 00 [01:08:33]wFMCommunicate OK [01:08:33]wFMCommunicate request_size=255 [01:08:33]MH_SAM_APDU [01:08:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 11 C8 95 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7C 86 02 00 35 04 06 00 C7 [01:08:33]Write to MH i2c: E2 02 01 42 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 11 C8 95 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7C 86 02 00 35 04 06 00 C7 00 00 5A [01:08:33]Write i2c OK [01:08:33]MH_I2C_Read... [01:08:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:08:34]Read from MH i2c: E2 [01:08:34]MH_I2C_Read... [01:08:34]Read from MH i2c: E2 03 00 [01:08:34]MH_I2C_Read... [01:08:34]Read from MH i2c: E2 03 00 42 01 00 90 00 B7 [01:08:34]RAPDU: 90 00 [01:08:34]wFMCommunicate OK [01:08:34]wFMCommunicate request_size=10 [01:08:34]MH_SAM_APDU [01:08:34]CAPDU: 80 0D 02 02 05 AD 09 CC 1E 50 [01:08:34]Write to MH i2c: E2 0D 00 43 01 80 0D 02 02 05 00 AD 09 CC 1E 50 00 00 B8 [01:08:34]Write i2c OK [01:08:34]MH_I2C_Read... [01:08:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:08:34]Read from MH i2c: E2 [01:08:34]MH_I2C_Read... [01:08:34]Read from MH i2c: E2 03 00 [01:08:34]MH_I2C_Read... [01:08:34]Read from MH i2c: E2 03 00 43 01 00 90 00 B8 [01:08:34]RAPDU: 90 00 [01:08:34]wFMCommunicate OK [01:08:34]wFMCommunicate request_size=4 [01:08:34]MH_SAM_APDU [01:08:34]CAPDU: 80 0D 03 02 [01:08:34]Write to MH i2c: E2 08 00 44 01 80 0D 03 02 00 00 00 00 C0 [01:08:34]Write i2c OK [01:08:34]MH_I2C_Read... [01:08:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:08:34]Read from MH i2c: E2 [01:08:34]MH_I2C_Read... [01:08:34]Read from MH i2c: E2 0B 00 [01:08:34]MH_I2C_Read... [01:08:34]Read from MH i2c: E2 0B 00 44 01 00 39 F6 AC 6F 07 CF 27 C2 90 00 CA [01:08:34]RAPDU: 39 F6 AC 6F 07 CF 27 C2 90 00 [01:08:34]wFMCommunicate OK [01:08:34]SAM_PROTO_SignData done [01:08:34]FM_MakeSignedData done [01:08:34]CreateOFDProtocolMessage [01:08:34]wFMCommunicate request_size=4 [01:08:34]MH_SAM_APDU [01:08:34]CAPDU: 80 11 00 00 [01:08:34]Write to MH i2c: E2 08 00 45 01 80 11 00 00 00 00 00 00 C0 [01:08:34]Write i2c OK [01:08:34]MH_I2C_Read... [01:08:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:08:34]Read from MH i2c: E2 [01:08:34]MH_I2C_Read... [01:08:34]Read from MH i2c: E2 17 00 [01:08:34]MH_I2C_Read... [01:08:34]Read from MH i2c: E2 17 00 45 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 16 [01:08:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [01:08:34]wFMCommunicate OK [01:08:34]CreateOFDProtocolMessage done [01:08:34]OFDSenderStorePacket 165500 [01:08:34]StoreOFDPacket docnum=165500 [01:08:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 6E 83 07 01 E9 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 11 C8 95 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7C 86 02 00 35 04 06 00 C7 AD 09 CC 1E 50 39 F6 AC 6F 07 CF 27 C2 [01:08:34]CheckFolder [01:08:34]dirname=/storage/ofd_packets [01:08:34]CheckFolder done [01:08:34]ProducePacketName [01:08:34]name=ofd_packets/00165500 [01:08:34]NVStorageSaveData ofd_packets/00165500 [01:08:34]File name is /storage/ofd_packets/00165500 [01:08:34]Write 301 bytes [01:08:34]NVStorageSaveData done [01:08:34]OFDSenderStorePacket done [01:08:34]KKMCreateOFDPacket done [01:08:34]NVStorageSaveData kkm_last_timestamp [01:08:34]File name is /storage/kkm_last_timestamp [01:08:34]Write 4 bytes [01:08:34]NVStorageSaveData done [01:08:34]ExternCall_PrintAddStr [01:08:34]wPrintStart [01:08:34]Write to MH i2c: 01 00 00 46 01 47 [01:08:34]Write i2c OK [01:08:34]MH_I2C_Read... [01:08:34]Read from MH i2c: 01 [01:08:34]MH_I2C_Read... [01:08:34]Read from MH i2c: 01 07 00 [01:08:34]MH_I2C_Read... [01:08:34]Read from MH i2c: 01 07 00 46 01 00 00 00 00 00 FF 0F 5C [01:08:34]RasterBufferAndPrint [01:08:34]line Счет N : (1)459614 [01:08:34]line ИНН: 02508201610067 [01:08:34]line Контрольно-Кассовый Чек [01:08:34]line ПРОДАЖА [01:08:34]line ТРК (МРК, ГНК) : 12 [01:08:34]line Товар: 2710124130 [01:08:34]line Аи-92-К-5 [01:08:34]line 4.560 * 65.80 [01:08:34]line = 300.05 [01:08:34]line НДС 12% НСП 1% [01:08:34]line > о реализуемом товаре [01:08:34]line ОКРУГЛЕНИЕ: -0.05 [01:08:34]line ИТОГО: 300.00 [01:08:34]line Внесено: 300.00 [01:08:34]line СДАЧА: 0.00 [01:08:34]line НСП 1% : 2.65 [01:08:34]line НДС 12% : 31.86 [01:08:34]line Наличными: 300.00 [01:08:34]line Безнал.: 0.00 [01:08:34]line Место: АЗС № 72 "Партнер Нефть" [01:08:34]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [01:08:34]line СНО: Общий режим [01:08:34]line Чек 4 16.07.2024 01:08 [01:08:34]line Смена: 449 ФФД: 1.0 [01:08:34]line ЗНМ: 0300000160 [01:08:34]line РНМ: 0000000000090829 [01:08:34]line Версия ККМ: 001 [01:08:34]line ФМ: 0000000000874718 [01:08:34]line ФД: 165500 [01:08:34]line ФПД: 219546007641680 [01:08:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T010833&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165500&fm=219546007641680&tin=02508201610067®Number=0000000000090829&sum=30000 [01:08:34]written 0, free lines is 4095 [01:08:34]OFD Sender: Processing packet 165500 [packets to send 106, broken 105] [01:08:34]ProducePacketName [01:08:34]name=ofd_packets/00165500 [01:08:34]OFD Sender: To server: pG, [01:08:34]CommunicateWithHost lk.salyk.kg:30040 [01:08:34]ConnectInit lk.salyk.kg [01:08:34]Connected sock=9 [01:08:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 6E 83 07 01 E9 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 11 C8 95 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7C 86 02 00 35 04 06 00 C7 AD 09 CC 1E 50 39 F6 AC 6F 07 CF 27 C2 [01:08:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 09 18 47 00 6E 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7C 86 02 00 F4 03 04 00 99 6E 95 66 B6 04 01 00 00 64 1E 02 7C FA 49 47 40 [01:08:34]CommunicateWithHost err = 0 [01:08:34]CheckOFDResponse [01:08:34]1017 (14) - 77093643461234 [01:08:34]1041 (16) - 0000000000874718 [01:08:34]1040 (4) - 165500 [01:08:34]1012 (4) - 15.07.2024 18:46 [01:08:34]1206 (1) - 0 [01:08:34]OFD Sender: Remove packet 165500 [01:08:34]ProducePacketName [01:08:34]name=ofd_packets/00165500 [01:08:34]NVStorageDeleteData [01:08:35]Write to MH i2c: 01 00 00 70 01 71 [01:08:35]Write i2c OK [01:08:35]MH_I2C_Read... [01:08:35]Read from MH i2c: 01 [01:08:35]MH_I2C_Read... [01:08:35]Read from MH i2c: 01 07 00 [01:08:35]MH_I2C_Read... [01:08:35]Read from MH i2c: 01 07 00 70 01 00 00 00 00 00 F6 0C 7A [01:08:35]RasterBufferAndPrint [01:08:35]line [01:08:35]line [01:08:35]line [01:08:35]line [01:08:35]line [01:08:35]written 0, free lines is 3324 [01:08:35]MH_Cut [01:08:35]Write to MH i2c: D1 01 00 77 01 01 4A [01:08:35]Write i2c OK [01:08:35]MH_I2C_Read... [01:08:35]Read from MH i2c: D1 [01:08:35]MH_I2C_Read... [01:08:35]Read from MH i2c: D1 01 00 [01:08:35]MH_I2C_Read... [01:08:35]Read from MH i2c: D1 01 00 77 01 00 49 [01:08:35]Write to MH i2c: 01 00 00 78 01 79 [01:08:35]Write i2c OK [01:08:35]MH_I2C_Read... [01:08:35]OFD Sender: No OFD packet to send [01:08:35]*** Cut start [01:08:35]*** Partial cut [01:08:35]*** CUTSNS_PIN = 1 [01:08:35]*** CUTSNS_PIN = 0 [01:08:36]*** Brake cut motor [01:08:36]Read from MH i2c: 01 [01:08:36]MH_I2C_Read... [01:08:36]*** Stop cut motor [01:08:36]*** Cut end [01:08:36]Read from MH i2c: 01 07 00 [01:08:36]MH_I2C_Read... [01:08:36]Read from MH i2c: 01 07 00 78 01 00 00 00 00 00 FF 0F 8E [01:08:36]process_action close_receipt done [01:08:36]requested_data is exist [01:08:36]produce_requested_data [01:08:36]requested_item fm.sn is exist - process it [01:08:36]wFMCommunicate request_size=4 [01:08:36]MH_SAM_APDU [01:08:36]CAPDU: 80 11 00 00 [01:08:36]Write to MH i2c: E2 08 00 79 01 80 11 00 00 00 00 00 00 F4 [01:08:36]Write i2c OK [01:08:36]MH_I2C_Read... [01:08:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:08:36]Read from MH i2c: E2 [01:08:36]MH_I2C_Read... [01:08:36]Read from MH i2c: E2 17 00 [01:08:36]MH_I2C_Read... [01:08:36]Read from MH i2c: E2 17 00 79 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 4A [01:08:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [01:08:36]wFMCommunicate OK [01:08:36]requested_item fd.num is exist - process it [01:08:36]SAM_PROTO_GetFieldsCounters [01:08:36]wFMCommunicate request_size=4 [01:08:36]MH_SAM_APDU [01:08:36]CAPDU: 80 13 00 00 [01:08:36]Write to MH i2c: E2 08 00 7A 01 80 13 00 00 00 00 00 00 F7 [01:08:36]Write i2c OK [01:08:36]MH_I2C_Read... [01:08:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:08:36]Read from MH i2c: E2 [01:08:36]MH_I2C_Read... [01:08:36]Read from MH i2c: E2 62 00 [01:08:36]MH_I2C_Read... [01:08:36]Read from MH i2c: E2 62 00 7A 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7C 86 02 00 0E 04 04 00 C1 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 F0 [01:08: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7C 86 02 00 0E 04 04 00 C1 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:08:36]wFMCommunicate OK [01:08:36]SAM_PROTO_GetFieldsCounters done [01:08:36]requested_item shift.num is exist - process it [01:08:36]requested_item shift.opened is exist - process it [01:08:36]req_shift_opened [01:08:36]FM_GetShiftState [01:08:36]SAM_PROTO_GetShiftState [01:08:36]wFMCommunicate request_size=4 [01:08:36]MH_SAM_APDU [01:08:36]CAPDU: 80 13 01 00 [01:08:36]Write to MH i2c: E2 08 00 7B 01 80 13 01 00 00 00 00 00 F9 [01:08:36]Write i2c OK [01:08:36]MH_I2C_Read... [01:08:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:08:36]Read from MH i2c: E2 [01:08:36]MH_I2C_Read... [01:08:36]Read from MH i2c: E2 0E 00 [01:08:36]MH_I2C_Read... [01:08:36]Read from MH i2c: E2 0E 00 7B 01 00 09 00 01 49 C0 95 66 00 00 00 00 90 00 09 [01:08:36]RAPDU: 09 00 01 49 C0 95 66 00 00 00 00 90 00 [01:08:36]wFMCommunicate OK [01:08:36]SAM_PROTO_GetShiftState done [01:08:36]FM_GetShiftState done [01:08:36]req_shift_opened done [01:08:36]requested_item shift.open_date is exist - process it [01:08:36]req_shift_open_date [01:08:36]req_shift_open_date done [01:08:36]produce_requested_data done [01:08:36]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165500,"shift.num":449,"shift.opened":1,"shift.open_date":1721090121} [01:08:36]process_action_free close_receipt [01:08:36]json_value_free [01:08:36]json_value_free done [01:08:36]process_json_proto returns [01:08:36]Send response to host [01:08:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165500,"shift.num":449,"shift.opened":1,"shift.open_date":1721090121}}} [01:08:36]free response buf [01:08:36]execute_script done [01:08:36]execute_script returns [01:08:36]free content buf [01:08:36]Sock 7.Close socket [01:08:36]Sock 7.Thread stoped [01:08:40]OFD Sender: No OFD packet to send [01:08:45]OFD Sender: No OFD packet to send [01:08:50]OFD Sender: No OFD packet to send [01:08:55]OFD Sender: No OFD packet to send [01:09:00]OFD Sender: No OFD packet to send [01:09:05]OFD Sender: No OFD packet to send [01:09:10]OFD Sender: No OFD packet to send [01:09:15]OFD Sender: No OFD packet to send [01:09:20]OFD Sender: No OFD packet to send [01:09:25]OFD Sender: No OFD packet to send [01:09:30]OFD Sender: No OFD packet to send [01:09:35]OFD Sender: No OFD packet to send [01:09:40]OFD Sender: No OFD packet to send [01:09:45]OFD Sender: No OFD packet to send [01:09:50]OFD Sender: No OFD packet to send [01:09:55]OFD Sender: No OFD packet to send [01:10:00]OFD Sender: No OFD packet to send [01:10:05]OFD Sender: No OFD packet to send [01:10:10]OFD Sender: No OFD packet to send [01:10:15]OFD Sender: No OFD packet to send [01:10:20]OFD Sender: No OFD packet to send [01:10:25]OFD Sender: No OFD packet to send [01:10:30]OFD Sender: No OFD packet to send [01:10:35]OFD Sender: No OFD packet to send [01:10:40]OFD Sender: No OFD packet to send [01:10:45]OFD Sender: No OFD packet to send [01:10:50]OFD Sender: No OFD packet to send [01:10:55]OFD Sender: No OFD packet to send [01:11:00]OFD Sender: No OFD packet to send [01:11:05]OFD Sender: No OFD packet to send [01:11:10]OFD Sender: No OFD packet to send [01:11:15]OFD Sender: No OFD packet to send [01:11:20]OFD Sender: No OFD packet to send [01:11:25]OFD Sender: No OFD packet to send [01:11:30]OFD Sender: No OFD packet to send [01:11:35]OFD Sender: No OFD packet to send [01:11:40]OFD Sender: No OFD packet to send [01:11:45]OFD Sender: No OFD packet to send [01:11:50]OFD Sender: No OFD packet to send [01:11:55]OFD Sender: No OFD packet to send [01:12:00]OFD Sender: No OFD packet to send [01:12:05]OFD Sender: No OFD packet to send [01:12:10]OFD Sender: No OFD packet to send [01:12:15]OFD Sender: No OFD packet to send [01:12:20]OFD Sender: No OFD packet to send [01:12:25]OFD Sender: No OFD packet to send [01:12:30]OFD Sender: No OFD packet to send [01:12:35]OFD Sender: No OFD packet to send [01:12:40]OFD Sender: No OFD packet to send [01:12:45]OFD Sender: No OFD packet to send [01:12:50]OFD Sender: No OFD packet to send [01:12:55]OFD Sender: No OFD packet to send [01:13:00]OFD Sender: No OFD packet to send [01:13:05]OFD Sender: No OFD packet to send [01:13:10]OFD Sender: No OFD packet to send [01:13:15]OFD Sender: No OFD packet to send [01:13:20]OFD Sender: No OFD packet to send [01:13:25]OFD Sender: No OFD packet to send [01:13:30]OFD Sender: No OFD packet to send [01:13:35]OFD Sender: No OFD packet to send [01:13:40]OFD Sender: No OFD packet to send [01:13:45]OFD Sender: No OFD packet to send [01:13:50]OFD Sender: No OFD packet to send [01:13:55]OFD Sender: No OFD packet to send [01:14:00]OFD Sender: No OFD packet to send [01:14:05]OFD Sender: No OFD packet to send [01:14:10]OFD Sender: No OFD packet to send [01:14:15]OFD Sender: No OFD packet to send [01:14:20]OFD Sender: No OFD packet to send [01:14:25]OFD Sender: No OFD packet to send [01:14:30]OFD Sender: No OFD packet to send [01:14:35]OFD Sender: No OFD packet to send [01:14:40]OFD Sender: No OFD packet to send [01:14:45]OFD Sender: No OFD packet to send [01:14:50]OFD Sender: No OFD packet to send [01:14:55]OFD Sender: No OFD packet to send [01:15:00]OFD Sender: No OFD packet to send [01:15:05]OFD Sender: No OFD packet to send [01:15:10]OFD Sender: No OFD packet to send [01:15:15]OFD Sender: No OFD packet to send [01:15:20]OFD Sender: No OFD packet to send [01:15:25]OFD Sender: No OFD packet to send [01:15:30]OFD Sender: No OFD packet to send [01:15:35]OFD Sender: No OFD packet to send [01:15:40]OFD Sender: No OFD packet to send [01:15:45]OFD Sender: No OFD packet to send [01:15:50]OFD Sender: No OFD packet to send [01:15:55]OFD Sender: No OFD packet to send [01:16:00]OFD Sender: No OFD packet to send [01:16:05]OFD Sender: No OFD packet to send [01:16:10]OFD Sender: No OFD packet to send [01:16:15]OFD Sender: No OFD packet to send [01:16:20]OFD Sender: No OFD packet to send [01:16:26]OFD Sender: No OFD packet to send [01:16:31]OFD Sender: No OFD packet to send [01:16:36]OFD Sender: No OFD packet to send [01:16:41]OFD Sender: No OFD packet to send [01:16:46]OFD Sender: No OFD packet to send [01:16:51]OFD Sender: No OFD packet to send [01:16:56]OFD Sender: No OFD packet to send [01:17:01]OFD Sender: No OFD packet to send [01:17:06]OFD Sender: No OFD packet to send [01:17:11]OFD Sender: No OFD packet to send [01:17:16]OFD Sender: No OFD packet to send [01:17:21]OFD Sender: No OFD packet to send [01:17:26]OFD Sender: No OFD packet to send [01:17:31]OFD Sender: No OFD packet to send [01:17:36]OFD Sender: No OFD packet to send [01:17:41]OFD Sender: No OFD packet to send [01:17:46]OFD Sender: No OFD packet to send [01:17:51]OFD Sender: No OFD packet to send [01:17:56]OFD Sender: No OFD packet to send [01:18:01]OFD Sender: No OFD packet to send [01:18:06]OFD Sender: No OFD packet to send [01:18:11]OFD Sender: No OFD packet to send [01:18:16]OFD Sender: No OFD packet to send [01:18:21]OFD Sender: No OFD packet to send [01:18:26]OFD Sender: No OFD packet to send [01:18:31]OFD Sender: No OFD packet to send [01:18:36]OFD Sender: No OFD packet to send [01:18:41]OFD Sender: No OFD packet to send [01:18:46]OFD Sender: No OFD packet to send [01:18:51]OFD Sender: No OFD packet to send [01:18:56]OFD Sender: No OFD packet to send [01:19:01]OFD Sender: No OFD packet to send [01:19:06]OFD Sender: No OFD packet to send [01:19:11]OFD Sender: No OFD packet to send [01:19:16]OFD Sender: No OFD packet to send [01:19:21]OFD Sender: No OFD packet to send [01:19:26]OFD Sender: No OFD packet to send [01:19:31]OFD Sender: No OFD packet to send [01:19:36]OFD Sender: No OFD packet to send [01:19:41]OFD Sender: No OFD packet to send [01:19:46]OFD Sender: No OFD packet to send [01:19:51]OFD Sender: No OFD packet to send [01:19:56]OFD Sender: No OFD packet to send [01:20:01]OFD Sender: No OFD packet to send [01:20:06]OFD Sender: No OFD packet to send [01:20:11]OFD Sender: No OFD packet to send [01:20:16]OFD Sender: No OFD packet to send [01:20:21]OFD Sender: No OFD packet to send [01:20:26]OFD Sender: No OFD packet to send [01:20:31]OFD Sender: No OFD packet to send [01:20:36]OFD Sender: No OFD packet to send [01:20:41]OFD Sender: No OFD packet to send [01:20:46]OFD Sender: No OFD packet to send [01:20:51]OFD Sender: No OFD packet to send [01:20:56]OFD Sender: No OFD packet to send [01:21:01]OFD Sender: No OFD packet to send [01:21:06]OFD Sender: No OFD packet to send [01:21:11]OFD Sender: No OFD packet to send [01:21:16]OFD Sender: No OFD packet to send [01:21:21]OFD Sender: No OFD packet to send [01:21:26]OFD Sender: No OFD packet to send [01:21:31]OFD Sender: No OFD packet to send [01:21:36]OFD Sender: No OFD packet to send [01:21:41]OFD Sender: No OFD packet to send [01:21:46]OFD Sender: No OFD packet to send [01:21:51]OFD Sender: No OFD packet to send [01:21:56]OFD Sender: No OFD packet to send [01:22:01]OFD Sender: No OFD packet to send [01:22:06]OFD Sender: No OFD packet to send [01:22:11]OFD Sender: No OFD packet to send [01:22:16]OFD Sender: No OFD packet to send [01:22:21]OFD Sender: No OFD packet to send [01:22:26]OFD Sender: No OFD packet to send [01:22:31]OFD Sender: No OFD packet to send [01:22:36]OFD Sender: No OFD packet to send [01:22:41]OFD Sender: No OFD packet to send [01:22:46]OFD Sender: No OFD packet to send [01:22:51]OFD Sender: No OFD packet to send [01:22:56]OFD Sender: No OFD packet to send [01:23:01]OFD Sender: No OFD packet to send [01:23:06]OFD Sender: No OFD packet to send [01:23:11]OFD Sender: No OFD packet to send [01:23:16]OFD Sender: No OFD packet to send [01:23:21]OFD Sender: No OFD packet to send [01:23:26]OFD Sender: No OFD packet to send [01:23:31]OFD Sender: No OFD packet to send [01:23:36]OFD Sender: No OFD packet to send [01:23:41]OFD Sender: No OFD packet to send [01:23:46]OFD Sender: No OFD packet to send [01:23:51]OFD Sender: No OFD packet to send [01:23:56]OFD Sender: No OFD packet to send [01:24:01]OFD Sender: No OFD packet to send [01:24:06]OFD Sender: No OFD packet to send [01:24:11]OFD Sender: No OFD packet to send [01:24:16]OFD Sender: No OFD packet to send [01:24:21]OFD Sender: No OFD packet to send [01:24:26]OFD Sender: No OFD packet to send [01:24:31]OFD Sender: No OFD packet to send [01:24:36]OFD Sender: No OFD packet to send [01:24:41]OFD Sender: No OFD packet to send [01:24:46]OFD Sender: No OFD packet to send [01:24:51]OFD Sender: No OFD packet to send [01:24:56]OFD Sender: No OFD packet to send [01:25:01]OFD Sender: No OFD packet to send [01:25:06]OFD Sender: No OFD packet to send [01:25:11]OFD Sender: No OFD packet to send [01:25:16]OFD Sender: No OFD packet to send [01:25:21]OFD Sender: No OFD packet to send [01:25:26]OFD Sender: No OFD packet to send [01:25:31]OFD Sender: No OFD packet to send [01:25:36]OFD Sender: No OFD packet to send [01:25:41]OFD Sender: No OFD packet to send [01:25:46]OFD Sender: No OFD packet to send [01:25:51]OFD Sender: No OFD packet to send [01:25:56]OFD Sender: No OFD packet to send [01:28:48]ConnectInit Can't connect to host [01:28:53]OFD Sender: No OFD packet to send [01:28:58]OFD Sender: No OFD packet to send [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 CB FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 70 [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005725CB (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:11]*** step 7: 3967 (1870, 2097 REF) [00:00:11]*** step 8: 3840 (1828, 2012 REF) [00:00:11]*** step 9: 3719 (1728, 1991 REF) [00:00:11]*** step 10: 3601 (1675, 1926 REF) [00:00:11]*** step 11: 3488 (1635, 1853 REF) [00:00:11]*** step 12: 3379 (1595, 1784 REF) [00:00:11]*** step 13: 3275 (1565, 1710 REF) [00:00:11]*** step 14: 3174 (1543, 1631 REF) [00:00:11]*** step 15: 3077 (1523, 1554 REF) [00:00:11]*** step 16: 2983 (1503, 1480 REF) [00:00:11]*** step 17: 2893 (1486, 1407 REF) [00:00:11]*** step 18: 2806 (1466, 1340 REF) [00:00:11]*** step 19: 2723 (1426, 1297 REF) [00:00:11]*** step 20: 2642 (1406, 1236 REF) [00:00:11]*** step 21: 2565 (1384, 1181 REF) [00:00:11]*** step 22: 2490 (1364, 1126 REF) [00:00:11]*** step 23: 2418 (1344, 1074 REF) [00:00:11]*** step 24: 2349 (1322, 1027 REF) [00:00:11]*** step 25: 2283 (1302, 981 REF) [00:00:11]*** step 26: 2218 (1282, 936 REF) [00:00:11]*** step 27: 2157 (1262, 895 REF) [00:00:11]*** step 28: 2097 (1242, 855 REF) [00:00:11]*** step 29: 2040 (1222, 818 REF) [00:00:11]*** step 30: 1985 (1202, 783 REF) [00:00:11]*** step 31: 1932 (1191, 741 REF) [00:00:11]*** step 32: 1880 (1181, 699 REF) [00:00:11]*** step 33: 1831 (1171, 660 REF) [00:00:11]*** step 34: 1784 (1161, 623 REF) [00:00:11]*** step 35: 1738 (1151, 587 REF) [00:00:11]*** step 36: 1694 (1141, 553 REF) [00:00:11]*** step 37: 1652 (1131, 521 REF) [00:00:11]*** step 38: 1611 (1121, 490 REF) [00:00:11]*** step 39: 1572 (1111, 461 REF) [00:00:11]*** step 40: 1534 (1103, 431 REF) [00:00:11]*** step 41: 1497 (1093, 404 REF) [00:00:11]*** step 42: 1462 (1083, 379 REF) [00:00:11]*** step 43: 1428 (1073, 355 REF) [00:00:11]*** step 44: 1396 (1063, 333 REF) [00:00:11]*** step 45: 1365 (1053, 312 REF) [00:00:11]*** step 46: 1334 (1043, 291 REF) [00:00:11]*** step 47: 1305 (1033, 272 REF) [00:00:11]*** step 48: 1277 (1023, 254 REF) [00:00:11]*** step 49: 1250 (1013, 237 REF) [00:00:11]*** step 50: 1224 (990, 234 REF) [00:00:11]*** step 51: 1199 (980, 219 REF) [00:00:11]*** step 52: 1175 (970, 205 REF) [00:00:11]*** step 53: 1152 (960, 192 REF) [00:00:11]*** step 54: 1130 (950, 180 REF) [00:00:11]*** step 55: 1108 (940, 168 REF) [00:00:11]*** step 56: 1088 (930, 158 REF) [00:00:11]*** step 57: 1068 (920, 148 REF) [00:00:11]*** step 58: 1049 (910, 139 REF) [00:00:11]*** step 59: 1030 (900, 130 REF) [00:00:11]*** step 60: 1012 (890, 122 REF) [00:00:11]*** step 61: 995 (880, 115 REF) [00:00:11]*** step 62: 979 (870, 109 REF) [00:00:11]*** step 63: 963 (860, 103 REF) [00:00:11]*** step 64: 948 (850, 98 REF) [00:00:11]*** step 65: 933 (840, 93 REF) [00:00:11]*** step 66: 919 (830, 89 REF) [00:00:11]*** step 67: 905 (820, 85 REF) [00:00:11]*** step 68: 892 (810, 82 REF) [00:00:11]*** step 69: 879 (800, 79 REF) [00:00:11]*** step 70: 867 (790, 77 REF) [00:00:11]*** step 71: 855 (780, 75 REF) [00:00:11]*** step 72: 844 (770, 74 REF) [00:00:11]*** step 73: 833 (760, 73 REF) [00:00:11]*** step 74: 822 (750, 72 REF) [00:00:11]*** step 75: 812 (740, 72 REF) [00:00:11]*** step 76: 803 (730, 73 REF) [00:00:11]*** step 77: 793 (720, 73 REF) [00:00:11]*** step 78: 784 (710, 74 REF) [00:00:11]*** step 79: 776 (700, 76 REF) [00:00:11]*** step 80: 767 (690, 77 REF) [00:00:11]*** step 81: 759 (680, 79 REF) [00:00:11]*** step 82: 751 (670, 81 REF) [00:00:11]*** step 83: 744 (660, 84 REF) [00:00:11]*** step 84: 737 (650, 87 REF) [00:00:11]*** step 85: 730 (640, 90 REF) [00:00:11]*** step 86: 723 (630, 93 REF) [00:00:11]*** step 87: 717 (620, 97 REF) [00:00:11]*** step 88: 710 (610, 100 REF) [00:00:11]*** step 89: 705 (600, 105 REF) [00:00:11]*** step 90: 699 [00:00:11]*** step 91: 693 [00:00:11]*** step 92: 688 [00:00:11]*** step 93: 683 [00:00:11]*** step 94: 678 [00:00:11]*** step 95: 673 [00:00:11]*** step 96: 669 [00:00:11]*** step 97: 664 [00:00:11]*** step 98: 660 [00:00:11]*** step 99: 656 [00:00:11]*** step 100: 652 [00:00:11]*** step 101: 648 [00:00:11]*** step 102: 644 [00:00:11]*** step 103: 641 [00:00:11]*** step 104: 638 [00:00:11]*** step 105: 634 [00:00:11]*** step 106: 631 [00:00:11]*** step 107: 628 [00:00:11]*** step 108: 625 [00:00:11]*** step 109: 622 [00:00:11]*** step 110: 620 [00:00:11]*** step 111: 617 [00:00:11]*** step 112: 615 [00:00:11]*** step 113: 612 [00:00:11]*** step 114: 610 [00:00:11]*** step 115: 608 [00:00:11]*** step 116: 605 [00:00:11]*** step 117: 603 [00:00:11]*** step 118: 601 [00:00:11]*** step 119: 599 [00:00:11]*** printer: Printer HW initialized [00:00:11]*** initSamCard finished [00:00:11]*** RTC: 31649970+1689443529=1721093499 [00:00:11]*** BPK Status Register BPK_RDY = 0x0 [00:00:11]*** SEN State Register SEN_STATE = 0x20ff [00:00:11]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:11]*** Analog Control Register 0 SEN_ANA0 = 0x33520623 [00:00:11]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 CB FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 71 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 60 00 FF FF 7F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 7B CD 95 66 C9 DC B2 64 FD [01:31:39]Current date/time: 16.07.2024 01:31 [01:31:39]FM_Init [01:31:39]wFMConnect [01:31:39]MH_SAM_On [01:31:39]Write to MH i2c: E0 00 00 08 00 E7 [01:31:39]Write i2c OK [01:31:39]MH_I2C_Read... [01:31:39]*** iso7816_init finished! [01:31:39]*** atr: [01:31:39]*** 0F 3B D5 18 FF 81 91 FE [01:31:39]*** 1F C3 80 73 C8 21 10 0A [01:31:39]*** 00 00 00 00 00 00 00 00 [01:31:39]*** 00 00 00 00 00 00 00 00 [01:31:39]*** 00 00 00 00 00 00 00 00 [01:31:39]*** 00 00 00 00 00 00 00 00 [01:31:39]*** 00 00 00 00 00 00 00 00 [01:31:39]*** 00 00 00 00 00 00 00 00 [01:31:39]Read from MH i2c: E0 [01:31:39]MH_I2C_Read... [01:31:39]Read from MH i2c: E0 10 00 [01:31:39]MH_I2C_Read... [01:31:39]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [01:31:39]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [01:31:39]wFMCommunicate request_size=10 [01:31:39]MH_SAM_APDU [01:31:39]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [01:31:39]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [01:31:39]Write i2c OK [01:31:39]MH_I2C_Read... [01:31:39]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [01:31:39]Read from MH i2c: E2 [01:31:39]MH_I2C_Read... [01:31:39]Read from MH i2c: E2 03 00 [01:31:39]MH_I2C_Read... [01:31:39]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [01:31:39]RAPDU: 90 00 [01:31:39]wFMCommunicate OK [01:31:39]wFMCommunicate request_size=4 [01:31:39]MH_SAM_APDU [01:31:39]CAPDU: 80 11 00 00 [01:31:39]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [01:31:39]Write i2c OK [01:31:39]MH_I2C_Read... [01:31:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:31:39]Read from MH i2c: E2 [01:31:39]MH_I2C_Read... [01:31:39]Read from MH i2c: E2 17 00 [01:31:39]MH_I2C_Read... [01:31:39]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DA [01:31:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [01:31:39]wFMCommunicate OK [01:31:39]Detected FM SN is 0000000000874718 [01:31:39]Stored FM SN is 0000000000874718 [01:31:39]wFMCommunicate request_size=9 [01:31:39]MH_SAM_APDU [01:31:39]CAPDU: 80 16 00 00 04 29 B3 00 00 [01:31:39]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 29 B3 00 00 00 00 6E [01:31:39]Write i2c OK [01:31:39]MH_I2C_Read... [01:31:39]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [01:31:39]Read from MH i2c: E2 [01:31:39]MH_I2C_Read... [01:31:39]Read from MH i2c: E2 03 00 [01:31:39]MH_I2C_Read... [01:31:39]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [01:31:39]RAPDU: 90 00 [01:31:39]wFMCommunicate OK [01:31:39]FM PIN OK [01:31:39]wFMCommunicate request_size=8 [01:31:39]MH_SAM_APDU [01:31:39]CAPDU: 80 14 04 00 03 02 00 01 [01:31:39]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [01:31:39]Write i2c OK [01:31:39]MH_I2C_Read... [01:31:39]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [01:31:39]Read from MH i2c: E2 [01:31:39]MH_I2C_Read... [01:31:39]Read from MH i2c: E2 03 00 [01:31:39]MH_I2C_Read... [01:31:39]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [01:31:39]RAPDU: 90 00 [01:31:39]wFMCommunicate OK [01:31:39]wFMCommunicate request_size=13 [01:31:39]MH_SAM_APDU [01:31:39]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [01:31:39]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [01:31:39]Write i2c OK [01:31:39]MH_I2C_Read... [01:31:39]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [01:31:39]Read from MH i2c: E2 [01:31:39]MH_I2C_Read... [01:31:39]Read from MH i2c: E2 03 00 [01:31:39]MH_I2C_Read... [01:31:39]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [01:31:39]RAPDU: 90 00 [01:31:39]wFMCommunicate OK [01:31:39]wFMCommunicate request_size=4 [01:31:39]MH_SAM_APDU [01:31:39]CAPDU: 80 11 00 00 [01:31:39]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [01:31:39]Write i2c OK [01:31:39]MH_I2C_Read... [01:31:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:31:39]Read from MH i2c: E2 [01:31:39]MH_I2C_Read... [01:31:39]Read from MH i2c: E2 17 00 [01:31:39]MH_I2C_Read... [01:31:39]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DE [01:31:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [01:31:39]wFMCommunicate OK [01:31:39]DocumentArchiveInit [01:31:39]Start Httpd... [01:31:39]Httpd thread 3066977636 created [01:31:39]Write to MH i2c: 01 00 00 0F 00 0F [01:31:39]Write i2c OK [01:31:39]MH_I2C_Read... [01:31:39]Read from MH i2c: 01 [01:31:39]MH_I2C_Read... [01:31:39]Read from MH i2c: 01 07 00 [01:31:39]MH_I2C_Read... [01:31:39]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [01:31:39]MH Int Process started [01:31:39]Allocated Socket 6 [01:31:39]Bind OK [01:31:39]Listen OK [01:31:39]httpd running on port 8080 [01:31:39]Waiting for new connection... [01:31:39]OFD Sender: No OFD packet to send [01:31:44]OFD Sender: No OFD packet to send [01:31:49]OFD Sender: No OFD packet to send [01:31:54]OFD Sender: No OFD packet to send [01:31:59]OFD Sender: No OFD packet to send [01:32:04]OFD Sender: No OFD packet to send [01:32:09]OFD Sender: No OFD packet to send [01:32:14]OFD Sender: No OFD packet to send [01:32:19]OFD Sender: No OFD packet to send [01:32:24]OFD Sender: No OFD packet to send [01:32:29]OFD Sender: No OFD packet to send [01:32:31]accept exits with 7 [01:32:31]New connection [01:32:31]New thread 3066690916 created [01:32:31]Waiting for new connection... [01:32:31] Sock 7.Parse request [01:32:31]Sock 7.Check first char [01:32:31]Sock 7.First char is OK [01:32:31]request: POST /json_proto HTTP/1.0 [01:32:31]Method: POST [01:32:31]URL: /json_proto [01:32:31]Method is POST - this is cgi request [01:32:31]url: /json_proto [01:32:31]query_string will be loaded in cgi processing [01:32:31]execute_cgi json_proto POST (null) [01:32:31]execute_cgi path=json_proto method=POST [01:32:31]POST find Content-Length [01:32:31]Host: 172.17.56.4:8080 [01:32:31]Content-Length: 215 [01:32:31]Content-Type: application/json [01:32:31] [01:32:31]POST finish read [01:32:31]Found Content-Length = 215 [01:32:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:32:31]execute_script... [01:32:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:32:31]POST & json_proto [01:32:31]process_json_proto [01:32:31]json parsed OK: [01:32:31]protocol is kg_v1.0 [01:32:31]action value=get_value [01:32:31]process_action get_value [01:32:31]cmd_get_value [01:32:31]process_action get_value done [01:32:31]requested_data is exist [01:32:31]produce_requested_data [01:32:31]requested_item kkm.sn is exist - process it [01:32:31]requested_item kkm.ver is exist - process it [01:32:31]requested_item fm.sn is exist - process it [01:32:31]wFMCommunicate request_size=4 [01:32:31]MH_SAM_APDU [01:32:31]CAPDU: 80 11 00 00 [01:32:31]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [01:32:31]Write i2c OK [01:32:31]MH_I2C_Read... [01:32:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:32:31]Read from MH i2c: E2 [01:32:31]MH_I2C_Read... [01:32:31]Read from MH i2c: E2 17 00 [01:32:31]MH_I2C_Read... [01:32:31]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 E0 [01:32:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [01:32:31]wFMCommunicate OK [01:32:31]requested_item fd.num is exist - process it [01:32:31]SAM_PROTO_GetFieldsCounters [01:32:31]wFMCommunicate request_size=4 [01:32:31]MH_SAM_APDU [01:32:31]CAPDU: 80 13 00 00 [01:32:31]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [01:32:31]Write i2c OK [01:32:31]MH_I2C_Read... [01:32:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:32:31]Read from MH i2c: E2 [01:32:31]MH_I2C_Read... [01:32:31]Read from MH i2c: E2 62 00 [01:32:31]MH_I2C_Read... [01:32:31]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7C 86 02 00 0E 04 04 00 C1 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [01:32: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7C 86 02 00 0E 04 04 00 C1 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:32:31]wFMCommunicate OK [01:32:31]SAM_PROTO_GetFieldsCounters done [01:32:31]requested_item shift.num is exist - process it [01:32:31]requested_item shift.opened is exist - process it [01:32:31]req_shift_opened [01:32:31]FM_GetShiftState [01:32:31]SAM_PROTO_GetShiftState [01:32:31]wFMCommunicate request_size=4 [01:32:31]MH_SAM_APDU [01:32:31]CAPDU: 80 13 01 00 [01:32:31]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [01:32:31]Write i2c OK [01:32:31]MH_I2C_Read... [01:32:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:32:31]Read from MH i2c: E2 [01:32:31]MH_I2C_Read... [01:32:31]Read from MH i2c: E2 0E 00 [01:32:31]MH_I2C_Read... [01:32:31]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 49 C0 95 66 00 00 00 00 90 00 9F [01:32:31]RAPDU: 09 00 01 49 C0 95 66 00 00 00 00 90 00 [01:32:31]wFMCommunicate OK [01:32:31]SAM_PROTO_GetShiftState done [01:32:31]FM_GetShiftState done [01:32:31]req_shift_opened done [01:32:31]requested_item shift.open_date is exist - process it [01:32:31]req_shift_open_date [01:32:31]req_shift_open_date done [01:32:31]produce_requested_data done [01:32:31]produce_requested_data return {"kkm.sn":"0300000160","kkm.ver":"001","fm.sn":"0000000000874718","fd.num":165500,"shift.num":449,"shift.opened":1,"shift.open_date":1721090121} [01:32:31]process_action_free get_value [01:32:31]json_value_free [01:32:31]json_value_free done [01:32:31]process_json_proto returns [01:32:31]Send response to host [01:32:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000160","kkm.ver":"001","fm.sn":"0000000000874718","fd.num":165500,"shift.num":449,"shift.opened":1,"shift.open_date":1721090121}}} [01:32:31]free response buf [01:32:31]execute_script done [01:32:31]execute_script returns [01:32:31]free content buf [01:32:31]Sock 7.Close socket [01:32:31]Sock 7.Thread stoped [01:32:31]accept exits with 9 [01:32:31]New connection [01:32:31]New thread 3066547556 created [01:32:31]Thread 3066690916 joined [01:32:31]Waiting for new connection... [01:32:31] Sock 9.Parse request [01:32:31]Sock 9.Check first char [01:32:31]Sock 9.First char is OK [01:32:31]request: POST /json_proto HTTP/1.0 [01:32:31]Method: POST [01:32:31]URL: /json_proto [01:32:31]Method is POST - this is cgi request [01:32:31]url: /json_proto [01:32:31]query_string will be loaded in cgi processing [01:32:31]execute_cgi json_proto POST (null) [01:32:31]execute_cgi path=json_proto method=POST [01:32:31]POST find Content-Length [01:32:31]Host: 172.17.56.4:8080 [01:32:31]Content-Length: 331 [01:32:31]Content-Type: application/json [01:32:31] [01:32:31]POST finish read [01:32:31]Found Content-Length = 331 [01:32:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [01:32:31]execute_script... [01:32:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [01:32:32]POST & json_proto [01:32:32]process_json_proto [01:32:32]json parsed OK: [01:32:32]protocol is kg_v1.0 [01:32:32]action value=get_value [01:32:32]process_action get_value [01:32:32]cmd_get_value [01:32:32]process_action get_value done [01:32:32]requested_data is exist [01:32:32]produce_requested_data [01:32:32]requested_item fm.sale.total is exist - process it [01:32:32]SAM_PROTO_GetFMData [01:32:32]wFMCommunicate request_size=4 [01:32:32]MH_SAM_APDU [01:32:32]CAPDU: 80 13 03 00 [01:32:32]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [01:32:32]Write i2c OK [01:32:32]MH_I2C_Read... [01:32:32]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [01:32:32]Read from MH i2c: E2 [01:32:32]MH_I2C_Read... [01:32:32]Read from MH i2c: E2 FD 00 [01:32:32]MH_I2C_Read... [01:32:32]Read from MH i2c: E2 FD 00 13 00 00 C4 04 85 04 C0 04 6E 04 04 00 F7 82 02 00 69 04 A3 00 6F 04 04 00 E9 81 02 00 B1 04 05 00 BD 9C D3 5A 02 70 04 05 00 6D 34 36 38 02 72 04 04 00 50 68 9D 22 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 E6 AC 0A 40 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 3C 08 56 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 0E 01 00 00 B1 04 04 00 6C E5 46 03 70 04 04 00 6C E5 46 03 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 23 19 59 EF 03 09 00 90 00 FA [01:32:32]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 F7 82 02 00 69 04 A3 00 6F 04 04 00 E9 81 02 00 B1 04 05 00 BD 9C D3 5A 02 70 04 05 00 6D 34 36 38 02 72 04 04 00 50 68 9D 22 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 E6 AC 0A 40 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 3C 08 56 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 0E 01 00 00 B1 04 04 00 6C E5 46 03 70 04 04 00 6C E5 46 03 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 23 19 59 EF 03 09 00 90 00 [01:32:32]wFMCommunicate OK [01:32:32]wFMCommunicate request_size=4 [01:32:32]MH_SAM_APDU [01:32:32]CAPDU: 80 17 00 00 [01:32:32]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [01:32:32]Write i2c OK [01:32:32]MH_I2C_Read... [01:32:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:32:32]Read from MH i2c: E2 [01:32:32]MH_I2C_Read... [01:32:32]Read from MH i2c: E2 FD 00 [01:32:32]MH_I2C_Read... [01:32:32]Read from MH i2c: E2 FD 00 14 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B1 6C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6E [01:32:32]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B1 6C 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:32:32]wFMCommunicate OK [01:32:32]wFMCommunicate request_size=4 [01:32:32]MH_SAM_APDU [01:32:32]CAPDU: 80 17 00 00 [01:32:32]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [01:32:32]Write i2c OK [01:32:32]MH_I2C_Read... [01:32:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:32:32]Read from MH i2c: E2 [01:32:32]MH_I2C_Read... [01:32:32]Read from MH i2c: E2 FD 00 [01:32:32]MH_I2C_Read... [01:32:32]Read from MH i2c: E2 FD 00 15 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AA [01:32:32]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:32:32]wFMCommunicate OK [01:32:32]wFMCommunicate request_size=4 [01:32:32]MH_SAM_APDU [01:32:32]CAPDU: 80 17 00 00 [01:32:32]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [01:32:32]Write i2c OK [01:32:32]MH_I2C_Read... [01:32:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:32:33]Read from MH i2c: E2 [01:32:33]MH_I2C_Read... [01:32:33]Read from MH i2c: E2 FD 00 [01:32:33]MH_I2C_Read... [01:32:33]Read from MH i2c: E2 FD 00 16 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 0E [01:32:33]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:32:33]wFMCommunicate OK [01:32:33]wFMCommunicate request_size=4 [01:32:33]MH_SAM_APDU [01:32:33]CAPDU: 80 17 00 00 [01:32:33]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [01:32:33]Write i2c OK [01:32:33]MH_I2C_Read... [01:32:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [01:32:33]Read from MH i2c: E2 [01:32:33]MH_I2C_Read... [01:32:33]Read from MH i2c: E2 E1 00 [01:32:33]MH_I2C_Read... [01:32:33]Read from MH i2c: E2 E1 00 17 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [01:32:33]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [01:32:33]wFMCommunicate OK [01:32:33]SAM_PROTO_GetFMData done [01:32:33]requested_item fm.sale_refund.total is exist - process it [01:32:33]requested_item fm.buy.total is exist - process it [01:32:33]requested_item shift.sale.total is exist - process it [01:32:33]SAM_PROTO_GetShiftData [01:32:33]wFMCommunicate request_size=4 [01:32:33]MH_SAM_APDU [01:32:33]CAPDU: 80 13 02 00 [01:32:33]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [01:32:33]Write i2c OK [01:32:33]MH_I2C_Read... [01:32:33]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [01:32:33]Read from MH i2c: E2 [01:32:33]MH_I2C_Read... [01:32:33]Read from MH i2c: E2 FD 00 [01:32:33]MH_I2C_Read... [01:32:33]Read from MH i2c: E2 FD 00 18 00 00 AA 04 AA 04 A6 04 6E 04 04 00 04 00 00 00 69 04 97 00 6F 04 04 00 04 00 00 00 B1 04 03 00 F0 49 02 70 04 03 00 F0 49 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 3B 3E 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 2F 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 62 [01:32:33]RAPDU: AA 04 AA 04 A6 04 6E 04 04 00 04 00 00 00 69 04 97 00 6F 04 04 00 04 00 00 00 B1 04 03 00 F0 49 02 70 04 03 00 F0 49 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 3B 3E 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 2F 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 [01:32:33]wFMCommunicate OK [01:32:33]wFMCommunicate request_size=4 [01:32:33]MH_SAM_APDU [01:32:33]CAPDU: 80 17 00 00 [01:32:33]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [01:32:33]Write i2c OK [01:32:33]MH_I2C_Read... [01:32:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:32:34]Read from MH i2c: E2 [01:32:34]MH_I2C_Read... [01:32:34]Read from MH i2c: E2 FD 00 [01:32:34]MH_I2C_Read... [01:32:34]Read from MH i2c: E2 FD 00 19 00 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 90 00 BF [01:32:34]RAPDU: 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 90 00 [01:32:34]wFMCommunicate OK [01:32:34]wFMCommunicate request_size=4 [01:32:34]MH_SAM_APDU [01:32:34]CAPDU: 80 17 00 00 [01:32:34]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [01:32:34]Write i2c OK [01:32:34]MH_I2C_Read... [01:32:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:32:34]Read from MH i2c: E2 [01:32:34]MH_I2C_Read... [01:32:34]Read from MH i2c: E2 FD 00 [01:32:34]MH_I2C_Read... [01:32:34]Read from MH i2c: E2 FD 00 1A 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 90 00 4D [01:32:34]RAPDU: EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 90 00 [01:32:34]wFMCommunicate OK [01:32:34]wFMCommunicate request_size=4 [01:32:34]MH_SAM_APDU [01:32:34]CAPDU: 80 17 00 00 [01:32:34]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [01:32:34]Write i2c OK [01:32:34]MH_I2C_Read... [01:32:34]OFD Sender: No OFD packet to send [01:32:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:32:34]Read from MH i2c: E2 [01:32:34]MH_I2C_Read... [01:32:34]Read from MH i2c: E2 FD 00 [01:32:34]MH_I2C_Read... [01:32:34]Read from MH i2c: E2 FD 00 1B 00 00 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 90 00 0D [01:32:34]RAPDU: 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 90 00 [01:32:34]wFMCommunicate OK [01:32:34]wFMCommunicate request_size=4 [01:32:34]MH_SAM_APDU [01:32:34]CAPDU: 80 17 00 00 [01:32:34]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [01:32:34]Write i2c OK [01:32:34]MH_I2C_Read... [01:32:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 196! [01:32:35]Read from MH i2c: E2 [01:32:35]MH_I2C_Read... [01:32:35]Read from MH i2c: E2 C7 00 [01:32:35]MH_I2C_Read... [01:32:35]Read from MH i2c: E2 C7 00 1C 00 00 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 8F [01:32:35]RAPDU: 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [01:32:35]wFMCommunicate OK [01:32:35]SAM_PROTO_GetShiftData done [01:32:35]requested_item shift.sale.total_cash is exist - process it [01:32:35]requested_item shift.sale_refund.total is exist - process it [01:32:35]requested_item shift.sale_refund.total_cash is exist - process it [01:32:35]requested_item shift.buy.total is exist - process it [01:32:35]requested_item shift.buy.total_cash is exist - process it [01:32:35]produce_requested_data done [01:32:35]produce_requested_data return {"fm.sale.total":101137522.53,"fm.sale_refund.total":549779.00,"fm.buy.total":0.00,"shift.sale.total":1500.00,"shift.sale.total_cash":1500.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} [01:32:35]process_action_free get_value [01:32:35]json_value_free [01:32:35]json_value_free done [01:32:35]process_json_proto returns [01:32:35]Send response to host [01:32:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":101137522.53,"fm.sale_refund.total":549779.00,"fm.buy.total":0.00,"shift.sale.total":1500.00,"shift.sale.total_cash":1500.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}}} [01:32:35]free response buf [01:32:35]execute_script done [01:32:35]execute_script returns [01:32:35]free content buf [01:32:35]Sock 9.Close socket [01:32:35]Sock 9.Thread stoped [01:32:39]OFD Sender: No OFD packet to send [01:32:44]OFD Sender: No OFD packet to send [01:32:49]OFD Sender: No OFD packet to send [01:32:54]OFD Sender: No OFD packet to send [01:32:59]OFD Sender: No OFD packet to send [01:33:04]OFD Sender: No OFD packet to send [01:33:09]OFD Sender: No OFD packet to send [01:33:14]OFD Sender: No OFD packet to send [01:33:19]OFD Sender: No OFD packet to send [01:33:24]OFD Sender: No OFD packet to send [01:33:29]OFD Sender: No OFD packet to send [01:33:34]OFD Sender: No OFD packet to send [01:33:39]OFD Sender: No OFD packet to send [01:33:44]OFD Sender: No OFD packet to send [01:33:49]OFD Sender: No OFD packet to send [01:33:54]OFD Sender: No OFD packet to send [01:33:59]OFD Sender: No OFD packet to send [01:34:04]OFD Sender: No OFD packet to send [01:34:09]OFD Sender: No OFD packet to send [01:34:14]OFD Sender: No OFD packet to send [01:34:19]OFD Sender: No OFD packet to send [01:34:24]OFD Sender: No OFD packet to send [01:34:26]accept exits with 7 [01:34:26]New connection [01:34:26]New thread 3066690916 created [01:34:26]Thread 3066547556 joined [01:34:26]Waiting for new connection... [01:34:26] Sock 7.Parse request [01:34:26]Sock 7.Check first char [01:34:26]Sock 7.First char is OK [01:34:26]request: POST /json_proto HTTP/1.0 [01:34:26]Method: POST [01:34:26]URL: /json_proto [01:34:26]Method is POST - this is cgi request [01:34:26]url: /json_proto [01:34:26]query_string will be loaded in cgi processing [01:34:26]execute_cgi json_proto POST (null) [01:34:26]execute_cgi path=json_proto method=POST [01:34:26]POST find Content-Length [01:34:26]Host: 172.17.56.4:8080 [01:34:26]Content-Length: 790 [01:34:26]Content-Type: application/json [01:34:26] [01:34:26]POST finish read [01:34:26]Found Content-Length = 790 [01:34:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459615", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 4.680, "sum" : 305.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 305.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:34:26]execute_script... [01:34:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459615", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 4.680, "sum" : 305.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 305.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:34:26]POST & json_proto [01:34:26]process_json_proto [01:34:26]json parsed OK: [01:34:26]protocol is kg_v1.0 [01:34:26]action value=close_receipt [01:34:26]process_action close_receipt [01:34:26]cmd_close_receipt [01:34:26]MH_GetDate [01:34:26]Write to MH i2c: F0 00 00 1D 00 0C [01:34:26]Write i2c OK [01:34:26]MH_I2C_Read... [01:34:26]Read from MH i2c: F0 [01:34:26]MH_I2C_Read... [01:34:26]Read from MH i2c: F0 09 00 [01:34:26]MH_I2C_Read... [01:34:26]Read from MH i2c: F0 09 00 1D 00 00 22 CE 95 66 C9 DC B2 64 BB [01:34:26]GetLastDocTimeStamp 1721092113 [01:34:26]current date 1721093666 [01:34:26]FM_GetShiftState [01:34:26]SAM_PROTO_GetShiftState [01:34:26]wFMCommunicate request_size=4 [01:34:26]MH_SAM_APDU [01:34:26]CAPDU: 80 13 01 00 [01:34:26]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [01:34:26]Write i2c OK [01:34:26]MH_I2C_Read... [01:34:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:34:26]Read from MH i2c: E2 [01:34:26]MH_I2C_Read... [01:34:26]Read from MH i2c: E2 0E 00 [01:34:26]MH_I2C_Read... [01:34:26]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 49 C0 95 66 00 00 00 00 90 00 AB [01:34:26]RAPDU: 09 00 01 49 C0 95 66 00 00 00 00 90 00 [01:34:26]wFMCommunicate OK [01:34:26]SAM_PROTO_GetShiftState done [01:34:26]FM_GetShiftState done [01:34:26]opened in 1721090121 [01:34:26]opened+sec_in_day 1721176521 [01:34:26]quantity*price = 30522 [01:34:26]sum+1 = 30524 [01:34:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 305.23 НСП 1% : 2.70 НДС 12% : 32.41 Наличными: 0.00 Безнал.: 305.23 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 5 16.07.2024 01:34 Смена: 449 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 165501 ФПД: 213295214292028 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T013427&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165501&fm=213295214292028&tin=02508201610067®Number=0000000000090829&sum=30523 [01:34:27]StoreToDocumentArchive [01:34:27]shift 449 fd 165501 [01:34:27]save to /storage/0449/doc_00165501 [01:34:27]save last doc name /storage/0449/doc_00165501 to /storage/kkm_last_doc_name [01:34:27]save OK [01:34:27]Clear old archive folders... [01:34:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:34:27]tlvbuf is B6F154F0 [01:34:27]SAM_PROTO_ClearQueue [01:34:27]wFMCommunicate request_size=4 [01:34:27]MH_SAM_APDU [01:34:27]CAPDU: 80 09 00 00 [01:34:27]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [01:34:27]Write i2c OK [01:34:27]MH_I2C_Read... [01:34:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:34:27]Read from MH i2c: E2 [01:34:27]MH_I2C_Read... [01:34:27]Read from MH i2c: E2 03 00 [01:34:27]MH_I2C_Read... [01:34:27]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [01:34:27]RAPDU: 90 00 [01:34:27]wFMCommunicate OK [01:34:27]SAM_PROTO_ClearQueue done [01:34:27]KKMCreateOFDPacket [01:34:27]OFDProtocolAddRootSTLVToBuf [01:34:27]FM_MakeSignedData [01:34:27]FM_MakeSignedData [01:34:27]SAM_PROTO_SignData [01:34:27]wFMCommunicate request_size=4 [01:34:27]MH_SAM_APDU [01:34:27]CAPDU: 80 0D 01 02 [01:34:27]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [01:34:27]Write i2c OK [01:34:27]MH_I2C_Read... [01:34:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:34:27]Read from MH i2c: E2 [01:34:27]MH_I2C_Read... [01:34:27]Read from MH i2c: E2 03 00 [01:34:27]MH_I2C_Read... [01:34:27]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [01:34:27]RAPDU: 90 00 [01:34:27]wFMCommunicate OK [01:34:27]wFMCommunicate request_size=255 [01:34:27]MH_SAM_APDU [01:34: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 48 12 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 3B 77 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3B 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3B 77 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 23 CE 95 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7D 86 02 00 35 04 06 00 C1 [01:34:27]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 3B 77 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3B 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3B 77 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 23 CE 95 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7D 86 02 00 35 04 06 00 C1 00 00 F5 [01:34:27]Write i2c OK [01:34:27]MH_I2C_Read... [01:34:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:34:27]Read from MH i2c: E2 [01:34:27]MH_I2C_Read... [01:34:27]Read from MH i2c: E2 03 00 [01:34:27]MH_I2C_Read... [01:34:27]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [01:34:27]RAPDU: 90 00 [01:34:27]wFMCommunicate OK [01:34:27]wFMCommunicate request_size=10 [01:34:27]MH_SAM_APDU [01:34:27]CAPDU: 80 0D 02 02 05 FD A9 7A EC 3C [01:34:27]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 FD A9 7A EC 3C 00 00 FA [01:34:27]Write i2c OK [01:34:27]MH_I2C_Read... [01:34:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:34:27]Read from MH i2c: E2 [01:34:27]MH_I2C_Read... [01:34:27]Read from MH i2c: E2 03 00 [01:34:27]MH_I2C_Read... [01:34:27]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [01:34:27]RAPDU: 90 00 [01:34:27]wFMCommunicate OK [01:34:27]wFMCommunicate request_size=4 [01:34:27]MH_SAM_APDU [01:34:27]CAPDU: 80 0D 03 02 [01:34:27]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [01:34:27]Write i2c OK [01:34:27]MH_I2C_Read... [01:34:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:34:27]Read from MH i2c: E2 [01:34:27]MH_I2C_Read... [01:34:27]Read from MH i2c: E2 0B 00 [01:34:27]MH_I2C_Read... [01:34:27]Read from MH i2c: E2 0B 00 2F 00 00 D4 39 FB BE 97 85 40 5F 90 00 2C [01:34:27]RAPDU: D4 39 FB BE 97 85 40 5F 90 00 [01:34:27]wFMCommunicate OK [01:34:27]SAM_PROTO_SignData done [01:34:27]FM_MakeSignedData done [01:34:27]CreateOFDProtocolMessage [01:34:27]wFMCommunicate request_size=4 [01:34:27]MH_SAM_APDU [01:34:27]CAPDU: 80 11 00 00 [01:34:27]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [01:34:27]Write i2c OK [01:34:27]MH_I2C_Read... [01:34:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:34:27]Read from MH i2c: E2 [01:34:27]MH_I2C_Read... [01:34:27]Read from MH i2c: E2 17 00 [01:34:27]MH_I2C_Read... [01:34:27]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 00 [01:34:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [01:34:27]wFMCommunicate OK [01:34:27]CreateOFDProtocolMessage done [01:34:27]OFDSenderStorePacket 165501 [01:34:27]StoreOFDPacket docnum=165501 [01:34:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 DF 89 07 01 F5 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 48 12 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 3B 77 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3B 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3B 77 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 23 CE 95 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7D 86 02 00 35 04 06 00 C1 FD A9 7A EC 3C D4 39 FB BE 97 85 40 5F [01:34:27]CheckFolder [01:34:27]dirname=/storage/ofd_packets [01:34:27]CheckFolder done [01:34:27]ProducePacketName [01:34:27]name=ofd_packets/00165501 [01:34:27]NVStorageSaveData ofd_packets/00165501 [01:34:27]File name is /storage/ofd_packets/00165501 [01:34:27]Write 301 bytes [01:34:27]NVStorageSaveData done [01:34:27]OFDSenderStorePacket done [01:34:27]KKMCreateOFDPacket done [01:34:27]NVStorageSaveData kkm_last_timestamp [01:34:27]File name is /storage/kkm_last_timestamp [01:34:27]Write 4 bytes [01:34:27]NVStorageSaveData done [01:34:27]ExternCall_PrintAddStr [01:34:27]wPrintStart [01:34:27]Write to MH i2c: 01 00 00 31 00 31 [01:34:27]Write i2c OK [01:34:27]MH_I2C_Read... [01:34:27]Read from MH i2c: 01 [01:34:27]MH_I2C_Read... [01:34:27]Read from MH i2c: 01 07 00 [01:34:27]MH_I2C_Read... [01:34:27]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [01:34:27]RasterBufferAndPrint [01:34:27]line Счет N : (1)459615 [01:34:27]line ИНН: 02508201610067 [01:34:27]line Контрольно-Кассовый Чек [01:34:27]line ПРОДАЖА [01:34:27]line ТРК (МРК, ГНК) : 22 [01:34:27]line Товар: 2710124130 [01:34:27]line Аи-92-К-5 [01:34:27]line 4.680 * 65.22 [01:34:27]line = 305.23 [01:34:27]line НДС 12% НСП 1% [01:34:27]line > о реализуемом товаре [01:34:27]line ИТОГО: 305.23 [01:34:27]line НСП 1% : 2.70 [01:34:27]line НДС 12% : 32.41 [01:34:27]line Наличными: 0.00 [01:34:27]line Безнал.: 305.23 [01:34:27]line Место: АЗС № 72 "Партнер Нефть" [01:34:27]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [01:34:27]line СНО: Общий режим [01:34:27]line Чек 5 16.07.2024 01:34 [01:34:27]line Смена: 449 ФФД: 1.0 [01:34:27]line ЗНМ: 0300000160 [01:34:27]line РНМ: 0000000000090829 [01:34:27]line Версия ККМ: 001 [01:34:27]line Платежная система: KICB Банк [01:34:27]line ФМ: 0000000000874718 [01:34:27]line ФД: 165501 [01:34:27]line ФПД: 213295214292028 [01:34:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T013427&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165501&fm=213295214292028&tin=02508201610067®Number=0000000000090829&sum=30523 [01:34:27]written 0, free lines is 4095 [01:34:27]OFD Sender: Processing packet 165501 [packets to send 106, broken 105] [01:34:27]ProducePacketName [01:34:27]name=ofd_packets/00165501 [01:34:27]OFD Sender: To server: pG, [01:34:27]CommunicateWithHost lk.salyk.kg:30040 [01:34:27]ConnectInit lk.salyk.kg [01:34:28]Connected sock=10 [01:34:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 DF 89 07 01 F5 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 48 12 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 3B 77 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3B 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3B 77 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 23 CE 95 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7D 86 02 00 35 04 06 00 C1 FD A9 7A EC 3C D4 39 FB BE 97 85 40 5F [01:34:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 9D 08 47 00 5D 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7D 86 02 00 F4 03 04 00 AB 74 95 66 B6 04 01 00 00 7B CD 6F B5 0B FE 71 8A [01:34:28]CommunicateWithHost err = 0 [01:34:28]CheckOFDResponse [01:34:28]1017 (14) - 77093643461234 [01:34:28]1041 (16) - 0000000000874718 [01:34:28]1040 (4) - 165501 [01:34:28]1012 (4) - 15.07.2024 19:12 [01:34:28]1206 (1) - 0 [01:34:28]OFD Sender: Remove packet 165501 [01:34:28]ProducePacketName [01:34:28]name=ofd_packets/00165501 [01:34:28]NVStorageDeleteData [01:34:28]Write to MH i2c: 01 00 00 5A 00 5A [01:34:28]Write i2c OK [01:34:28]MH_I2C_Read... [01:34:28]Read from MH i2c: 01 [01:34:28]MH_I2C_Read... [01:34:28]Read from MH i2c: 01 07 00 [01:34:28]MH_I2C_Read... [01:34:28]Read from MH i2c: 01 07 00 5A 00 00 00 00 00 00 18 0D 86 [01:34:28]RasterBufferAndPrint [01:34:28]line [01:34:28]line [01:34:28]line [01:34:28]line [01:34:28]line [01:34:28]written 0, free lines is 3358 [01:34:28]MH_Cut [01:34:28]Write to MH i2c: D1 01 00 61 00 01 33 [01:34:28]Write i2c OK [01:34:28]MH_I2C_Read... [01:34:28]Read from MH i2c: D1 [01:34:28]MH_I2C_Read... [01:34:28]Read from MH i2c: D1 01 00 [01:34:28]MH_I2C_Read... [01:34:28]Read from MH i2c: D1 01 00 61 00 00 32 [01:34:28]Write to MH i2c: 01 00 00 62 00 62 [01:34:28]Write i2c OK [01:34:28]MH_I2C_Read... [01:34:28]OFD Sender: No OFD packet to send [01:34:28]*** Cut start [01:34:28]*** Partial cut [01:34:28]*** CUTSNS_PIN = 1 [01:34:29]*** CUTSNS_PIN = 0 [01:34:29]*** Brake cut motor [01:34:29]Read from MH i2c: 01 [01:34:29]MH_I2C_Read... [01:34:29]*** Stop cut motor [01:34:29]*** Cut end [01:34:29]Read from MH i2c: 01 07 00 [01:34:29]MH_I2C_Read... [01:34:29]Read from MH i2c: 01 07 00 62 00 00 00 00 00 00 FF 0F 77 [01:34:29]process_action close_receipt done [01:34:29]requested_data is exist [01:34:29]produce_requested_data [01:34:29]requested_item fm.sn is exist - process it [01:34:29]wFMCommunicate request_size=4 [01:34:29]MH_SAM_APDU [01:34:29]CAPDU: 80 11 00 00 [01:34:29]Write to MH i2c: E2 08 00 63 00 80 11 00 00 00 00 00 00 DD [01:34:29]Write i2c OK [01:34:29]MH_I2C_Read... [01:34:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:34:29]Read from MH i2c: E2 [01:34:29]MH_I2C_Read... [01:34:29]Read from MH i2c: E2 17 00 [01:34:29]MH_I2C_Read... [01:34:29]Read from MH i2c: E2 17 00 63 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 33 [01:34:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [01:34:29]wFMCommunicate OK [01:34:29]requested_item fd.num is exist - process it [01:34:29]SAM_PROTO_GetFieldsCounters [01:34:29]wFMCommunicate request_size=4 [01:34:29]MH_SAM_APDU [01:34:29]CAPDU: 80 13 00 00 [01:34:29]Write to MH i2c: E2 08 00 64 00 80 13 00 00 00 00 00 00 E0 [01:34:29]Write i2c OK [01:34:29]MH_I2C_Read... [01:34:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:34:29]Read from MH i2c: E2 [01:34:29]MH_I2C_Read... [01:34:29]Read from MH i2c: E2 62 00 [01:34:29]MH_I2C_Read... [01:34:29]Read from MH i2c: E2 62 00 64 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7D 86 02 00 0E 04 04 00 C1 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [01:34: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7D 86 02 00 0E 04 04 00 C1 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:34:29]wFMCommunicate OK [01:34:29]SAM_PROTO_GetFieldsCounters done [01:34:29]requested_item shift.num is exist - process it [01:34:29]requested_item shift.opened is exist - process it [01:34:29]req_shift_opened [01:34:29]FM_GetShiftState [01:34:29]SAM_PROTO_GetShiftState [01:34:29]wFMCommunicate request_size=4 [01:34:29]MH_SAM_APDU [01:34:29]CAPDU: 80 13 01 00 [01:34:29]Write to MH i2c: E2 08 00 65 00 80 13 01 00 00 00 00 00 E2 [01:34:29]Write i2c OK [01:34:29]MH_I2C_Read... [01:34:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:34:29]Read from MH i2c: E2 [01:34:29]MH_I2C_Read... [01:34:29]Read from MH i2c: E2 0E 00 [01:34:29]MH_I2C_Read... [01:34:29]Read from MH i2c: E2 0E 00 65 00 00 09 00 01 49 C0 95 66 00 00 00 00 90 00 F2 [01:34:29]RAPDU: 09 00 01 49 C0 95 66 00 00 00 00 90 00 [01:34:29]wFMCommunicate OK [01:34:29]SAM_PROTO_GetShiftState done [01:34:29]FM_GetShiftState done [01:34:29]req_shift_opened done [01:34:29]requested_item shift.open_date is exist - process it [01:34:29]req_shift_open_date [01:34:29]req_shift_open_date done [01:34:29]produce_requested_data done [01:34:29]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165501,"shift.num":449,"shift.opened":1,"shift.open_date":1721090121} [01:34:29]process_action_free close_receipt [01:34:29]json_value_free [01:34:29]json_value_free done [01:34:29]process_json_proto returns [01:34:29]Send response to host [01:34:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165501,"shift.num":449,"shift.opened":1,"shift.open_date":1721090121}}} [01:34:29]free response buf [01:34:29]execute_script done [01:34:29]execute_script returns [01:34:29]free content buf [01:34:29]Sock 7.Close socket [01:34:29]Sock 7.Thread stoped [01:34:33]OFD Sender: No OFD packet to send [01:34:38]OFD Sender: No OFD packet to send [01:34:43]OFD Sender: No OFD packet to send [01:34:48]OFD Sender: No OFD packet to send [01:34:53]OFD Sender: No OFD packet to send [01:34:58]OFD Sender: No OFD packet to send [01:35:03]OFD Sender: No OFD packet to send [01:35:08]OFD Sender: No OFD packet to send [01:35:13]OFD Sender: No OFD packet to send [01:35:18]OFD Sender: No OFD packet to send [01:35:23]OFD Sender: No OFD packet to send [01:35:28]OFD Sender: No OFD packet to send [01:35:33]OFD Sender: No OFD packet to send [01:35:38]OFD Sender: No OFD packet to send [01:35:43]OFD Sender: No OFD packet to send [01:35:48]OFD Sender: No OFD packet to send [01:35:53]OFD Sender: No OFD packet to send [01:35:58]OFD Sender: No OFD packet to send [01:36:03]OFD Sender: No OFD packet to send [01:36:08]OFD Sender: No OFD packet to send [01:36:13]OFD Sender: No OFD packet to send [01:36:18]OFD Sender: No OFD packet to send [01:36:23]OFD Sender: No OFD packet to send [01:36:28]OFD Sender: No OFD packet to send [01:36:33]OFD Sender: No OFD packet to send [01:36:37]accept exits with 9 [01:36:37]New connection [01:36:37]New thread 3066547556 created [01:36:37]Thread 3066690916 joined [01:36:37]Waiting for new connection... [01:36:37] Sock 9.Parse request [01:36:37]Sock 9.Check first char [01:36:37]Sock 9.First char is OK [01:36:37]request: POST /json_proto HTTP/1.0 [01:36:37]Method: POST [01:36:37]URL: /json_proto [01:36:37]Method is POST - this is cgi request [01:36:37]url: /json_proto [01:36:37]query_string will be loaded in cgi processing [01:36:37]execute_cgi json_proto POST (null) [01:36:37]execute_cgi path=json_proto method=POST [01:36:37]POST find Content-Length [01:36:37]Host: 172.17.56.4:8080 [01:36:37]Content-Length: 677 [01:36:37]Content-Type: application/json [01:36:37] [01:36:37]POST finish read [01:36:37]Found Content-Length = 677 [01:36:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459616", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.520, "sum" : 100.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:36:37]execute_script... [01:36:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459616", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 1.520, "sum" : 100.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:36:37]POST & json_proto [01:36:37]process_json_proto [01:36:37]json parsed OK: [01:36:37]protocol is kg_v1.0 [01:36:37]action value=close_receipt [01:36:37]process_action close_receipt [01:36:37]cmd_close_receipt [01:36:37]MH_GetDate [01:36:37]Write to MH i2c: F0 00 00 66 00 55 [01:36:37]Write i2c OK [01:36:37]MH_I2C_Read... [01:36:37]Read from MH i2c: F0 [01:36:37]MH_I2C_Read... [01:36:37]Read from MH i2c: F0 09 00 [01:36:37]MH_I2C_Read... [01:36:37]Read from MH i2c: F0 09 00 66 00 00 A6 CE 95 66 C9 DC B2 64 88 [01:36:37]GetLastDocTimeStamp 1721093667 [01:36:37]current date 1721093798 [01:36:37]FM_GetShiftState [01:36:37]SAM_PROTO_GetShiftState [01:36:37]wFMCommunicate request_size=4 [01:36:37]MH_SAM_APDU [01:36:37]CAPDU: 80 13 01 00 [01:36:37]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [01:36:37]Write i2c OK [01:36:37]MH_I2C_Read... [01:36:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:36:37]Read from MH i2c: E2 [01:36:37]MH_I2C_Read... [01:36:37]Read from MH i2c: E2 0E 00 [01:36:37]MH_I2C_Read... [01:36:37]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 49 C0 95 66 00 00 00 00 90 00 F4 [01:36:37]RAPDU: 09 00 01 49 C0 95 66 00 00 00 00 90 00 [01:36:37]wFMCommunicate OK [01:36:37]SAM_PROTO_GetShiftState done [01:36:37]FM_GetShiftState done [01:36:37]opened in 1721090121 [01:36:37]opened+sec_in_day 1721176521 [01:36:37]quantity*price = 10001 [01:36:37]sum+1 = 10003 [01:36:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 6 16.07.2024 01:36 Смена: 449 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165502 ФПД: 196902675783337 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T013638&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165502&fm=196902675783337&tin=02508201610067®Number=0000000000090829&sum=10000 [01:36:38]StoreToDocumentArchive [01:36:38]shift 449 fd 165502 [01:36:38]save to /storage/0449/doc_00165502 [01:36:38]save last doc name /storage/0449/doc_00165502 to /storage/kkm_last_doc_name [01:36:38]save OK [01:36:38]Clear old archive folders... [01:36:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:36:39]tlvbuf is 005F19C0 [01:36:39]SAM_PROTO_ClearQueue [01:36:39]wFMCommunicate request_size=4 [01:36:39]MH_SAM_APDU [01:36:39]CAPDU: 80 09 00 00 [01:36:39]Write to MH i2c: E2 08 00 74 00 80 09 00 00 00 00 00 00 E6 [01:36:39]Write i2c OK [01:36:39]MH_I2C_Read... [01:36:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:36:39]Read from MH i2c: E2 [01:36:39]MH_I2C_Read... [01:36:39]Read from MH i2c: E2 03 00 [01:36:39]MH_I2C_Read... [01:36:39]Read from MH i2c: E2 03 00 74 00 00 90 00 E8 [01:36:39]RAPDU: 90 00 [01:36:39]wFMCommunicate OK [01:36:39]SAM_PROTO_ClearQueue done [01:36:39]KKMCreateOFDPacket [01:36:39]OFDProtocolAddRootSTLVToBuf [01:36:39]FM_MakeSignedData [01:36:39]FM_MakeSignedData [01:36:39]SAM_PROTO_SignData [01:36:39]wFMCommunicate request_size=4 [01:36:39]MH_SAM_APDU [01:36:39]CAPDU: 80 0D 01 02 [01:36:39]Write to MH i2c: E2 08 00 75 00 80 0D 01 02 00 00 00 00 EE [01:36:39]Write i2c OK [01:36:39]MH_I2C_Read... [01:36:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:36:39]Read from MH i2c: E2 [01:36:39]MH_I2C_Read... [01:36:39]Read from MH i2c: E2 03 00 [01:36:39]MH_I2C_Read... [01:36:39]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [01:36:39]RAPDU: 90 00 [01:36:39]wFMCommunicate OK [01:36:39]wFMCommunicate request_size=255 [01:36:39]MH_SAM_APDU [01:36:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 05 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 12 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 A6 CE 95 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7E 86 02 00 35 04 06 00 B3 [01:36:39]Write to MH i2c: E2 02 01 76 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 05 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 12 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 A6 CE 95 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7E 86 02 00 35 04 06 00 B3 00 00 D9 [01:36:39]Write i2c OK [01:36:39]MH_I2C_Read... [01:36:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:36:39]Read from MH i2c: E2 [01:36:39]MH_I2C_Read... [01:36:39]Read from MH i2c: E2 03 00 [01:36:39]MH_I2C_Read... [01:36:39]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [01:36:39]RAPDU: 90 00 [01:36:39]wFMCommunicate OK [01:36:39]wFMCommunicate request_size=10 [01:36:39]MH_SAM_APDU [01:36:39]CAPDU: 80 0D 02 02 05 14 FA 0B 9E A9 [01:36:39]Write to MH i2c: E2 0D 00 77 00 80 0D 02 02 05 00 14 FA 0B 9E A9 00 00 5B [01:36:39]Write i2c OK [01:36:39]MH_I2C_Read... [01:36:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:36:39]Read from MH i2c: E2 [01:36:39]MH_I2C_Read... [01:36:39]Read from MH i2c: E2 03 00 [01:36:39]MH_I2C_Read... [01:36:39]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [01:36:39]RAPDU: 90 00 [01:36:39]wFMCommunicate OK [01:36:39]wFMCommunicate request_size=4 [01:36:39]MH_SAM_APDU [01:36:39]CAPDU: 80 0D 03 02 [01:36:39]Write to MH i2c: E2 08 00 78 00 80 0D 03 02 00 00 00 00 F3 [01:36:39]Write i2c OK [01:36:39]MH_I2C_Read... [01:36:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:36:39]Read from MH i2c: E2 [01:36:39]MH_I2C_Read... [01:36:39]Read from MH i2c: E2 0B 00 [01:36:39]MH_I2C_Read... [01:36:39]Read from MH i2c: E2 0B 00 78 00 00 8F 6C 2D 7B D1 9F D7 2C 90 00 0A [01:36:39]RAPDU: 8F 6C 2D 7B D1 9F D7 2C 90 00 [01:36:39]wFMCommunicate OK [01:36:39]SAM_PROTO_SignData done [01:36:39]FM_MakeSignedData done [01:36:39]CreateOFDProtocolMessage [01:36:39]wFMCommunicate request_size=4 [01:36:39]MH_SAM_APDU [01:36:39]CAPDU: 80 11 00 00 [01:36:39]Write to MH i2c: E2 08 00 79 00 80 11 00 00 00 00 00 00 F3 [01:36:39]Write i2c OK [01:36:39]MH_I2C_Read... [01:36:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:36:39]Read from MH i2c: E2 [01:36:39]MH_I2C_Read... [01:36:39]Read from MH i2c: E2 17 00 [01:36:39]MH_I2C_Read... [01:36:39]Read from MH i2c: E2 17 00 79 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 49 [01:36:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [01:36:39]wFMCommunicate OK [01:36:39]CreateOFDProtocolMessage done [01:36:39]OFDSenderStorePacket 165502 [01:36:39]StoreOFDPacket docnum=165502 [01:36:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B8 C5 07 01 A9 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 F0 05 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 12 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 A6 CE 95 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7E 86 02 00 35 04 06 00 B3 14 FA 0B 9E A9 8F 6C 2D 7B D1 9F D7 2C [01:36:39]CheckFolder [01:36:39]dirname=/storage/ofd_packets [01:36:39]CheckFolder done [01:36:39]ProducePacketName [01:36:39]name=ofd_packets/00165502 [01:36:39]NVStorageSaveData ofd_packets/00165502 [01:36:39]File name is /storage/ofd_packets/00165502 [01:36:39]Write 301 bytes [01:36:39]NVStorageSaveData done [01:36:39]OFDSenderStorePacket done [01:36:39]KKMCreateOFDPacket done [01:36:39]NVStorageSaveData kkm_last_timestamp [01:36:39]File name is /storage/kkm_last_timestamp [01:36:39]Write 4 bytes [01:36:39]NVStorageSaveData done [01:36:39]OFD Sender: Processing packet 165502 [packets to send 106, broken 105] [01:36:39]ProducePacketName [01:36:39]name=ofd_packets/00165502 [01:36:39]OFD Sender: To server: pG, [01:36:39]CommunicateWithHost lk.salyk.kg:30040 [01:36:39]ConnectInit lk.salyk.kg [01:36:39]ExternCall_PrintAddStr [01:36:39]wPrintStart [01:36:39]Write to MH i2c: 01 00 00 7A 00 7A [01:36:39]Write i2c OK [01:36:39]MH_I2C_Read... [01:36:39]Read from MH i2c: 01 [01:36:39]MH_I2C_Read... [01:36:39]Read from MH i2c: 01 07 00 [01:36:39]MH_I2C_Read... [01:36:39]Read from MH i2c: 01 07 00 7A 00 00 00 00 00 00 FF 0F 8F [01:36:39]RasterBufferAndPrint [01:36:39]line Счет N : (1)459616 [01:36:39]line ИНН: 02508201610067 [01:36:39]line Контрольно-Кассовый Чек [01:36:39]line ПРОДАЖА [01:36:39]line ТРК (МРК, ГНК) : 12 [01:36:39]line Товар: 2710124130 [01:36:39]line Аи-92-К-5 [01:36:39]line 1.520 * 65.80 [01:36:39]line = 100.02 [01:36:39]line НДС 12% НСП 1% [01:36:39]line > о реализуемом товаре [01:36:39]line ОКРУГЛЕНИЕ: -0.02 [01:36:39]line ИТОГО: 100.00 [01:36:39]line Внесено: 100.00 [01:36:39]line СДАЧА: 0.00 [01:36:39]line НСП 1% : 0.88 [01:36:39]line НДС 12% : 10.62 [01:36:39]line Наличными: 100.00 [01:36:39]line Безнал.: 0.00 [01:36:39]line Место: АЗС № 72 "Партнер Нефть" [01:36:39]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [01:36:39]line СНО: Общий режим [01:36:39]line Чек 6 16.07.2024 01:36 [01:36:39]line Смена: 449 ФФД: 1.0 [01:36:39]line ЗНМ: 0300000160 [01:36:39]line РНМ: 0000000000090829 [01:36:39]line Версия ККМ: 001 [01:36:39]line ФМ: 0000000000874718 [01:36:39]line ФД: 165502 [01:36:39]line ФПД: 196902675783337 [01:36:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T013638&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165502&fm=196902675783337&tin=02508201610067®Number=0000000000090829&sum=10000 [01:36:39]Connected sock=11 [01:36:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 B8 C5 07 01 A9 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 F0 05 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 12 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 A6 CE 95 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7E 86 02 00 35 04 06 00 B3 14 FA 0B 9E A9 8F 6C 2D 7B D1 9F D7 2C [01:36:39]written 0, free lines is 4095 [01:36:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 AE 02 47 00 54 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 7E 86 02 00 F4 03 04 00 2F 75 95 66 B6 04 01 00 00 ED C4 91 6F 87 79 81 B8 [01:36:40]CommunicateWithHost err = 0 [01:36:40]CheckOFDResponse [01:36:40]1017 (14) - 77093643461234 [01:36:40]1041 (16) - 0000000000874718 [01:36:40]1040 (4) - 165502 [01:36:40]1012 (4) - 15.07.2024 19:14 [01:36:40]1206 (1) - 0 [01:36:40]OFD Sender: Remove packet 165502 [01:36:40]ProducePacketName [01:36:40]name=ofd_packets/00165502 [01:36:40]NVStorageDeleteData [01:36:40]Write to MH i2c: 01 00 00 A4 00 A4 [01:36:40]Write i2c OK [01:36:40]MH_I2C_Read... [01:36:40]Read from MH i2c: 01 [01:36:40]MH_I2C_Read... [01:36:40]Read from MH i2c: 01 07 00 [01:36:40]MH_I2C_Read... [01:36:40]Read from MH i2c: 01 07 00 A4 00 00 00 00 00 00 02 0D BA [01:36:40]RasterBufferAndPrint [01:36:40]line [01:36:40]line [01:36:40]line [01:36:40]line [01:36:40]line [01:36:40]written 0, free lines is 3336 [01:36:40]MH_Cut [01:36:40]Write to MH i2c: D1 01 00 AB 00 01 7D [01:36:40]Write i2c OK [01:36:40]MH_I2C_Read... [01:36:40]Read from MH i2c: D1 [01:36:40]MH_I2C_Read... [01:36:40]Read from MH i2c: D1 01 00 [01:36:40]MH_I2C_Read... [01:36:40]Read from MH i2c: D1 01 00 AB 00 00 7C [01:36:40]Write to MH i2c: 01 00 00 AC 00 AC [01:36:40]Write i2c OK [01:36:40]MH_I2C_Read... [01:36:40]OFD Sender: No OFD packet to send [01:36:41]*** Cut start [01:36:41]*** Partial cut [01:36:41]*** CUTSNS_PIN = 1 [01:36:41]*** CUTSNS_PIN = 0 [01:36:41]*** Brake cut motor [01:36:41]Read from MH i2c: 01 [01:36:41]MH_I2C_Read... [01:36:41]*** Stop cut motor [01:36:41]*** Cut end [01:36:41]Read from MH i2c: 01 07 00 [01:36:41]MH_I2C_Read... [01:36:41]Read from MH i2c: 01 07 00 AC 00 00 00 00 00 00 FF 0F C1 [01:36:41]process_action close_receipt done [01:36:41]requested_data is exist [01:36:41]produce_requested_data [01:36:41]requested_item fm.sn is exist - process it [01:36:41]wFMCommunicate request_size=4 [01:36:41]MH_SAM_APDU [01:36:41]CAPDU: 80 11 00 00 [01:36:41]Write to MH i2c: E2 08 00 AD 00 80 11 00 00 00 00 00 00 27 [01:36:41]Write i2c OK [01:36:41]MH_I2C_Read... [01:36:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:36:41]Read from MH i2c: E2 [01:36:41]MH_I2C_Read... [01:36:41]Read from MH i2c: E2 17 00 [01:36:41]MH_I2C_Read... [01:36:41]Read from MH i2c: E2 17 00 AD 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 7D [01:36:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [01:36:41]wFMCommunicate OK [01:36:41]requested_item fd.num is exist - process it [01:36:41]SAM_PROTO_GetFieldsCounters [01:36:41]wFMCommunicate request_size=4 [01:36:41]MH_SAM_APDU [01:36:41]CAPDU: 80 13 00 00 [01:36:41]Write to MH i2c: E2 08 00 AE 00 80 13 00 00 00 00 00 00 2A [01:36:41]Write i2c OK [01:36:41]MH_I2C_Read... [01:36:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:36:41]Read from MH i2c: E2 [01:36:41]MH_I2C_Read... [01:36:41]Read from MH i2c: E2 62 00 [01:36:41]MH_I2C_Read... [01:36:41]Read from MH i2c: E2 62 00 AE 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7E 86 02 00 0E 04 04 00 C1 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [01:36: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7E 86 02 00 0E 04 04 00 C1 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:36:41]wFMCommunicate OK [01:36:41]SAM_PROTO_GetFieldsCounters done [01:36:41]requested_item shift.num is exist - process it [01:36:41]requested_item shift.opened is exist - process it [01:36:41]req_shift_opened [01:36:41]FM_GetShiftState [01:36:41]SAM_PROTO_GetShiftState [01:36:41]wFMCommunicate request_size=4 [01:36:41]MH_SAM_APDU [01:36:41]CAPDU: 80 13 01 00 [01:36:41]Write to MH i2c: E2 08 00 AF 00 80 13 01 00 00 00 00 00 2C [01:36:41]Write i2c OK [01:36:41]MH_I2C_Read... [01:36:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:36:41]Read from MH i2c: E2 [01:36:41]MH_I2C_Read... [01:36:41]Read from MH i2c: E2 0E 00 [01:36:41]MH_I2C_Read... [01:36:41]Read from MH i2c: E2 0E 00 AF 00 00 09 00 01 49 C0 95 66 00 00 00 00 90 00 3C [01:36:41]RAPDU: 09 00 01 49 C0 95 66 00 00 00 00 90 00 [01:36:41]wFMCommunicate OK [01:36:41]SAM_PROTO_GetShiftState done [01:36:41]FM_GetShiftState done [01:36:41]req_shift_opened done [01:36:41]requested_item shift.open_date is exist - process it [01:36:41]req_shift_open_date [01:36:41]req_shift_open_date done [01:36:41]produce_requested_data done [01:36:41]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165502,"shift.num":449,"shift.opened":1,"shift.open_date":1721090121} [01:36:41]process_action_free close_receipt [01:36:41]json_value_free [01:36:41]json_value_free done [01:36:41]process_json_proto returns [01:36:41]Send response to host [01:36:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165502,"shift.num":449,"shift.opened":1,"shift.open_date":1721090121}}} [01:36:41]free response buf [01:36:41]execute_script done [01:36:41]execute_script returns [01:36:41]free content buf [01:36:41]Sock 9.Close socket [01:36:41]Sock 9.Thread stoped [01:36:45]OFD Sender: No OFD packet to send [01:36:50]OFD Sender: No OFD packet to send [01:36:55]OFD Sender: No OFD packet to send [01:37:00]OFD Sender: No OFD packet to send [01:37:05]OFD Sender: No OFD packet to send [01:37:10]OFD Sender: No OFD packet to send [01:37:15]OFD Sender: No OFD packet to send [01:37:20]OFD Sender: No OFD packet to send [01:37:25]OFD Sender: No OFD packet to send [01:37:30]OFD Sender: No OFD packet to send [01:37:35]OFD Sender: No OFD packet to send [01:37:40]OFD Sender: No OFD packet to send [01:37:45]OFD Sender: No OFD packet to send [01:37:50]OFD Sender: No OFD packet to send [01:37:54]accept exits with 8 [01:37:54]New connection [01:37:54]New thread 3066690916 created [01:37:54]Thread 3066547556 joined [01:37:54]Waiting for new connection... [01:37:54] Sock 8.Parse request [01:37:54]Sock 8.Check first char [01:37:54]Sock 8.First char is OK [01:37:54]request: POST /json_proto HTTP/1.0 [01:37:54]Method: POST [01:37:54]URL: /json_proto [01:37:54]Method is POST - this is cgi request [01:37:54]url: /json_proto [01:37:54]query_string will be loaded in cgi processing [01:37:54]execute_cgi json_proto POST (null) [01:37:54]execute_cgi path=json_proto method=POST [01:37:54]POST find Content-Length [01:37:54]Host: 172.17.56.4:8080 [01:37:54]Content-Length: 790 [01:37:54]Content-Type: application/json [01:37:54] [01:37:54]POST finish read [01:37:54]Found Content-Length = 790 [01:37:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459617", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 2.300, "sum" : 150.01, "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 150.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:37:54]execute_script... [01:37: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)459617", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 2.300, "sum" : 150.01, "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 150.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:37:54]POST & json_proto [01:37:54]process_json_proto [01:37:54]json parsed OK: [01:37:54]protocol is kg_v1.0 [01:37:54]action value=close_receipt [01:37:54]process_action close_receipt [01:37:54]cmd_close_receipt [01:37:54]MH_GetDate [01:37:54]Write to MH i2c: F0 00 00 B0 00 9F [01:37:54]Write i2c OK [01:37:54]MH_I2C_Read... [01:37:54]Read from MH i2c: F0 [01:37:54]MH_I2C_Read... [01:37:54]Read from MH i2c: F0 09 00 [01:37:54]MH_I2C_Read... [01:37:54]Read from MH i2c: F0 09 00 B0 00 00 F3 CE 95 66 C9 DC B2 64 1F [01:37:54]GetLastDocTimeStamp 1721093798 [01:37:54]current date 1721093875 [01:37:54]FM_GetShiftState [01:37:54]SAM_PROTO_GetShiftState [01:37:54]wFMCommunicate request_size=4 [01:37:54]MH_SAM_APDU [01:37:54]CAPDU: 80 13 01 00 [01:37:54]Write to MH i2c: E2 08 00 B1 00 80 13 01 00 00 00 00 00 2E [01:37:54]Write i2c OK [01:37:54]MH_I2C_Read... [01:37:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:37:54]Read from MH i2c: E2 [01:37:54]MH_I2C_Read... [01:37:54]Read from MH i2c: E2 0E 00 [01:37:54]MH_I2C_Read... [01:37:54]Read from MH i2c: E2 0E 00 B1 00 00 09 00 01 49 C0 95 66 00 00 00 00 90 00 3E [01:37:54]RAPDU: 09 00 01 49 C0 95 66 00 00 00 00 90 00 [01:37:54]wFMCommunicate OK [01:37:54]SAM_PROTO_GetShiftState done [01:37:54]FM_GetShiftState done [01:37:54]opened in 1721090121 [01:37:54]opened+sec_in_day 1721176521 [01:37:54]quantity*price = 15000 [01:37:54]sum+1 = 15002 [01:37:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.01 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 0.00 Безнал.: 150.01 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 7 16.07.2024 01:37 Смена: 449 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 165503 ФПД: 7209735326980 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T013755&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165503&fm=7209735326980&tin=02508201610067®Number=0000000000090829&sum=15001 [01:37:55]StoreToDocumentArchive [01:37:55]shift 449 fd 165503 [01:37:55]save to /storage/0449/doc_00165503 [01:37:55]save last doc name /storage/0449/doc_00165503 to /storage/kkm_last_doc_name [01:37:55]save OK [01:37:55]Clear old archive folders... [01:37:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:37:55]tlvbuf is 005EA740 [01:37:55]SAM_PROTO_ClearQueue [01:37:55]wFMCommunicate request_size=4 [01:37:55]MH_SAM_APDU [01:37:55]CAPDU: 80 09 00 00 [01:37:55]Write to MH i2c: E2 08 00 BE 00 80 09 00 00 00 00 00 00 30 [01:37:55]Write i2c OK [01:37:55]MH_I2C_Read... [01:37:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:37:55]Read from MH i2c: E2 [01:37:55]MH_I2C_Read... [01:37:55]Read from MH i2c: E2 03 00 [01:37:55]MH_I2C_Read... [01:37:55]Read from MH i2c: E2 03 00 BE 00 00 90 00 32 [01:37:55]RAPDU: 90 00 [01:37:55]wFMCommunicate OK [01:37:55]SAM_PROTO_ClearQueue done [01:37:55]KKMCreateOFDPacket [01:37:55]OFDProtocolAddRootSTLVToBuf [01:37:55]FM_MakeSignedData [01:37:55]FM_MakeSignedData [01:37:55]SAM_PROTO_SignData [01:37:55]wFMCommunicate request_size=4 [01:37:55]MH_SAM_APDU [01:37:55]CAPDU: 80 0D 01 02 [01:37:55]Write to MH i2c: E2 08 00 BF 00 80 0D 01 02 00 00 00 00 38 [01:37:55]Write i2c OK [01:37:55]MH_I2C_Read... [01:37:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:37:55]Read from MH i2c: E2 [01:37:55]MH_I2C_Read... [01:37:55]Read from MH i2c: E2 03 00 [01:37:55]MH_I2C_Read... [01:37:55]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [01:37:55]RAPDU: 90 00 [01:37:55]wFMCommunicate OK [01:37:55]wFMCommunicate request_size=255 [01:37:55]MH_SAM_APDU [01:37: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 FC 08 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 99 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 99 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 99 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 F3 CE 95 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7F 86 02 00 35 04 06 00 06 [01:37:55]Write to MH i2c: E2 02 01 C0 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 08 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 99 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 99 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 99 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 F3 CE 95 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7F 86 02 00 35 04 06 00 06 00 00 AE [01:37:56]Write i2c OK [01:37:56]MH_I2C_Read... [01:37:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:37:56]Read from MH i2c: E2 [01:37:56]MH_I2C_Read... [01:37:56]Read from MH i2c: E2 03 00 [01:37:56]MH_I2C_Read... [01:37:56]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [01:37:56]RAPDU: 90 00 [01:37:56]wFMCommunicate OK [01:37:56]wFMCommunicate request_size=10 [01:37:56]MH_SAM_APDU [01:37:56]CAPDU: 80 0D 02 02 05 8E A5 B6 8D 04 [01:37:56]Write to MH i2c: E2 0D 00 C1 00 80 0D 02 02 05 00 8E A5 B6 8D 04 00 00 BF [01:37:56]Write i2c OK [01:37:56]MH_I2C_Read... [01:37:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:37:56]Read from MH i2c: E2 [01:37:56]MH_I2C_Read... [01:37:56]Read from MH i2c: E2 03 00 [01:37:56]MH_I2C_Read... [01:37:56]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [01:37:56]RAPDU: 90 00 [01:37:56]wFMCommunicate OK [01:37:56]wFMCommunicate request_size=4 [01:37:56]MH_SAM_APDU [01:37:56]CAPDU: 80 0D 03 02 [01:37:56]Write to MH i2c: E2 08 00 C2 00 80 0D 03 02 00 00 00 00 3D [01:37:56]Write i2c OK [01:37:56]MH_I2C_Read... [01:37:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:37:56]Read from MH i2c: E2 [01:37:56]MH_I2C_Read... [01:37:56]Read from MH i2c: E2 0B 00 [01:37:56]MH_I2C_Read... [01:37:56]Read from MH i2c: E2 0B 00 C2 00 00 90 46 EB EB 4F FA F2 0C 90 00 31 [01:37:56]RAPDU: 90 46 EB EB 4F FA F2 0C 90 00 [01:37:56]wFMCommunicate OK [01:37:56]SAM_PROTO_SignData done [01:37:56]FM_MakeSignedData done [01:37:56]CreateOFDProtocolMessage [01:37:56]wFMCommunicate request_size=4 [01:37:56]MH_SAM_APDU [01:37:56]CAPDU: 80 11 00 00 [01:37:56]Write to MH i2c: E2 08 00 C3 00 80 11 00 00 00 00 00 00 3D [01:37:56]Write i2c OK [01:37:56]MH_I2C_Read... [01:37:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:37:56]Read from MH i2c: E2 [01:37:56]MH_I2C_Read... [01:37:56]Read from MH i2c: E2 17 00 [01:37:56]MH_I2C_Read... [01:37:56]Read from MH i2c: E2 17 00 C3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 93 [01:37:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [01:37:56]wFMCommunicate OK [01:37:56]CreateOFDProtocolMessage done [01:37:56]OFDSenderStorePacket 165503 [01:37:56]StoreOFDPacket docnum=165503 [01:37:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 22 48 07 01 17 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 FC 08 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 99 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 99 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 99 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 F3 CE 95 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7F 86 02 00 35 04 06 00 06 8E A5 B6 8D 04 90 46 EB EB 4F FA F2 0C [01:37:56]CheckFolder [01:37:56]dirname=/storage/ofd_packets [01:37:56]CheckFolder done [01:37:56]ProducePacketName [01:37:56]name=ofd_packets/00165503 [01:37:56]NVStorageSaveData ofd_packets/00165503 [01:37:56]File name is /storage/ofd_packets/00165503 [01:37:56]Write 301 bytes [01:37:56]NVStorageSaveData done [01:37:56]OFDSenderStorePacket done [01:37:56]KKMCreateOFDPacket done [01:37:56]NVStorageSaveData kkm_last_timestamp [01:37:56]File name is /storage/kkm_last_timestamp [01:37:56]Write 4 bytes [01:37:56]NVStorageSaveData done [01:37:56]ExternCall_PrintAddStr [01:37:56]wPrintStart [01:37:56]Write to MH i2c: 01 00 00 C4 00 C4 [01:37:56]Write i2c OK [01:37:56]MH_I2C_Read... [01:37:56]Read from MH i2c: 01 [01:37:56]MH_I2C_Read... [01:37:56]Read from MH i2c: 01 07 00 [01:37:56]MH_I2C_Read... [01:37:56]Read from MH i2c: 01 07 00 C4 00 00 00 00 00 00 FF 0F D9 [01:37:56]RasterBufferAndPrint [01:37:56]line Счет N : (1)459617 [01:37:56]line ИНН: 02508201610067 [01:37:56]line Контрольно-Кассовый Чек [01:37:56]line ПРОДАЖА [01:37:56]line ТРК (МРК, ГНК) : 12 [01:37:56]line Товар: 2710124130 [01:37:56]line Аи-92-К-5 [01:37:56]line 2.300 * 65.22 [01:37:56]line = 150.01 [01:37:56]line НДС 12% НСП 1% [01:37:56]line > о реализуемом товаре [01:37:56]line ИТОГО: 150.01 [01:37:56]line НСП 1% : 1.33 [01:37:56]line НДС 12% : 15.93 [01:37:56]line Наличными: 0.00 [01:37:56]line Безнал.: 150.01 [01:37:56]line Место: АЗС № 72 "Партнер Нефть" [01:37:56]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [01:37:56]line СНО: Общий режим [01:37:56]line Чек 7 16.07.2024 01:37 [01:37:56]line Смена: 449 ФФД: 1.0 [01:37:56]line ЗНМ: 0300000160 [01:37:56]line РНМ: 0000000000090829 [01:37:56]line Версия ККМ: 001 [01:37:56]line Платежная система: KICB Банк [01:37:56]line ФМ: 0000000000874718 [01:37:56]line ФД: 165503 [01:37:56]line ФПД: 7209735326980 [01:37:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T013755&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165503&fm=7209735326980&tin=02508201610067®Number=0000000000090829&sum=15001 [01:37:56]written 0, free lines is 4095 [01:37:56]OFD Sender: Processing packet 165503 [packets to send 106, broken 105] [01:37:56]ProducePacketName [01:37:56]name=ofd_packets/00165503 [01:37:56]OFD Sender: To server: pG, [01:37:56]CommunicateWithHost lk.salyk.kg:30040 [01:37:56]ConnectInit lk.salyk.kg [01:37:56]Connected sock=10 [01:37: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 37 31 38 0F 01 00 00 22 48 07 01 17 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 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 FC 08 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 99 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 99 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 99 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 F3 CE 95 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7F 86 02 00 35 04 06 00 06 8E A5 B6 8D 04 90 46 EB EB 4F FA F2 0C [01:37:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 2D E1 47 00 D5 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 7F 86 02 00 F4 03 04 00 7B 75 95 66 B6 04 01 00 00 22 A1 16 4F 2B 2A EF 87 [01:37:56]CommunicateWithHost err = 0 [01:37:56]CheckOFDResponse [01:37:56]1017 (14) - 77093643461234 [01:37:56]1041 (16) - 0000000000874718 [01:37:56]1040 (4) - 165503 [01:37:56]1012 (4) - 15.07.2024 19:16 [01:37:56]1206 (1) - 0 [01:37:56]OFD Sender: Remove packet 165503 [01:37:56]ProducePacketName [01:37:56]name=ofd_packets/00165503 [01:37:56]NVStorageDeleteData [01:37:56]Write to MH i2c: 01 00 00 ED 00 ED [01:37:56]Write i2c OK [01:37:56]MH_I2C_Read... [01:37:56]Read from MH i2c: 01 [01:37:56]MH_I2C_Read... [01:37:56]Read from MH i2c: 01 07 00 [01:37:56]MH_I2C_Read... [01:37:56]Read from MH i2c: 01 07 00 ED 00 00 00 00 00 00 1F 0D 20 [01:37:56]RasterBufferAndPrint [01:37:56]line [01:37:56]line [01:37:56]line [01:37:56]line [01:37:56]line [01:37:56]written 0, free lines is 3365 [01:37:56]MH_Cut [01:37:56]Write to MH i2c: D1 01 00 F4 00 01 C6 [01:37:56]Write i2c OK [01:37:56]MH_I2C_Read... [01:37:56]Read from MH i2c: D1 [01:37:56]MH_I2C_Read... [01:37:56]Read from MH i2c: D1 01 00 [01:37:56]MH_I2C_Read... [01:37:56]Read from MH i2c: D1 01 00 F4 00 00 C5 [01:37:56]Write to MH i2c: 01 00 00 F5 00 F5 [01:37:56]Write i2c OK [01:37:56]MH_I2C_Read... [01:37:57]OFD Sender: No OFD packet to send [01:37:57]*** Cut start [01:37:57]*** Partial cut [01:37:57]*** CUTSNS_PIN = 1 [01:37:57]*** CUTSNS_PIN = 0 [01:37:57]*** Brake cut motor [01:37:58]Read from MH i2c: 01 [01:37:58]MH_I2C_Read... [01:37:58]*** Stop cut motor [01:37:58]*** Cut end [01:37:58]Read from MH i2c: 01 07 00 [01:37:58]MH_I2C_Read... [01:37:58]Read from MH i2c: 01 07 00 F5 00 00 00 00 00 00 FF 0F 0A [01:37:58]process_action close_receipt done [01:37:58]requested_data is exist [01:37:58]produce_requested_data [01:37:58]requested_item fm.sn is exist - process it [01:37:58]wFMCommunicate request_size=4 [01:37:58]MH_SAM_APDU [01:37:58]CAPDU: 80 11 00 00 [01:37:58]Write to MH i2c: E2 08 00 F6 00 80 11 00 00 00 00 00 00 70 [01:37:58]Write i2c OK [01:37:58]MH_I2C_Read... [01:37:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:37:58]Read from MH i2c: E2 [01:37:58]MH_I2C_Read... [01:37:58]Read from MH i2c: E2 17 00 [01:37:58]MH_I2C_Read... [01:37:58]Read from MH i2c: E2 17 00 F6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 C6 [01:37:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [01:37:58]wFMCommunicate OK [01:37:58]requested_item fd.num is exist - process it [01:37:58]SAM_PROTO_GetFieldsCounters [01:37:58]wFMCommunicate request_size=4 [01:37:58]MH_SAM_APDU [01:37:58]CAPDU: 80 13 00 00 [01:37:58]Write to MH i2c: E2 08 00 F7 00 80 13 00 00 00 00 00 00 73 [01:37:58]Write i2c OK [01:37:58]MH_I2C_Read... [01:37:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:37:58]Read from MH i2c: E2 [01:37:58]MH_I2C_Read... [01:37:58]Read from MH i2c: E2 62 00 [01:37:58]MH_I2C_Read... [01:37:58]Read from MH i2c: E2 62 00 F7 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7F 86 02 00 0E 04 04 00 C1 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [01:37: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 7F 86 02 00 0E 04 04 00 C1 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:37:58]wFMCommunicate OK [01:37:58]SAM_PROTO_GetFieldsCounters done [01:37:58]requested_item shift.num is exist - process it [01:37:58]requested_item shift.opened is exist - process it [01:37:58]req_shift_opened [01:37:58]FM_GetShiftState [01:37:58]SAM_PROTO_GetShiftState [01:37:58]wFMCommunicate request_size=4 [01:37:58]MH_SAM_APDU [01:37:58]CAPDU: 80 13 01 00 [01:37:58]Write to MH i2c: E2 08 00 F8 00 80 13 01 00 00 00 00 00 75 [01:37:58]Write i2c OK [01:37:58]MH_I2C_Read... [01:37:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:37:58]Read from MH i2c: E2 [01:37:58]MH_I2C_Read... [01:37:58]Read from MH i2c: E2 0E 00 [01:37:58]MH_I2C_Read... [01:37:58]Read from MH i2c: E2 0E 00 F8 00 00 09 00 01 49 C0 95 66 00 00 00 00 90 00 85 [01:37:58]RAPDU: 09 00 01 49 C0 95 66 00 00 00 00 90 00 [01:37:58]wFMCommunicate OK [01:37:58]SAM_PROTO_GetShiftState done [01:37:58]FM_GetShiftState done [01:37:58]req_shift_opened done [01:37:58]requested_item shift.open_date is exist - process it [01:37:58]req_shift_open_date [01:37:58]req_shift_open_date done [01:37:58]produce_requested_data done [01:37:58]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165503,"shift.num":449,"shift.opened":1,"shift.open_date":1721090121} [01:37:58]process_action_free close_receipt [01:37:58]json_value_free [01:37:58]json_value_free done [01:37:58]process_json_proto returns [01:37:58]Send response to host [01:37:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165503,"shift.num":449,"shift.opened":1,"shift.open_date":1721090121}}} [01:37:58]free response buf [01:37:58]execute_script done [01:37:58]execute_script returns [01:37:58]free content buf [01:37:58]Sock 8.Close socket [01:37:58]Sock 8.Thread stoped [01:38:02]OFD Sender: No OFD packet to send [01:38:07]OFD Sender: No OFD packet to send [01:38:12]OFD Sender: No OFD packet to send [01:38:17]OFD Sender: No OFD packet to send [01:38:22]OFD Sender: No OFD packet to send [01:38:27]OFD Sender: No OFD packet to send [01:38:32]OFD Sender: No OFD packet to send [01:38:37]OFD Sender: No OFD packet to send [01:38:42]OFD Sender: No OFD packet to send [01:38:47]OFD Sender: No OFD packet to send [01:38:52]OFD Sender: No OFD packet to send [01:38:57]OFD Sender: No OFD packet to send [01:39:02]OFD Sender: No OFD packet to send [01:39:07]OFD Sender: No OFD packet to send [01:39:12]OFD Sender: No OFD packet to send [01:39:17]OFD Sender: No OFD packet to send [01:39:22]OFD Sender: No OFD packet to send [01:39:27]OFD Sender: No OFD packet to send [01:39:32]OFD Sender: No OFD packet to send [01:39:37]OFD Sender: No OFD packet to send [01:39:42]OFD Sender: No OFD packet to send [01:39:47]OFD Sender: No OFD packet to send [01:39:52]OFD Sender: No OFD packet to send [01:39:57]OFD Sender: No OFD packet to send [01:40:02]OFD Sender: No OFD packet to send [01:40:07]OFD Sender: No OFD packet to send [01:40:12]OFD Sender: No OFD packet to send [01:40:17]OFD Sender: No OFD packet to send [01:40:22]OFD Sender: No OFD packet to send [01:40:27]OFD Sender: No OFD packet to send [01:40:32]OFD Sender: No OFD packet to send [01:40:37]OFD Sender: No OFD packet to send [01:40:42]OFD Sender: No OFD packet to send [01:40:47]OFD Sender: No OFD packet to send [01:40:52]OFD Sender: No OFD packet to send [01:40:57]OFD Sender: No OFD packet to send [01:41:02]OFD Sender: No OFD packet to send [01:41:07]OFD Sender: No OFD packet to send [01:41:12]OFD Sender: No OFD packet to send [01:41:17]OFD Sender: No OFD packet to send [01:41:22]OFD Sender: No OFD packet to send [01:41:27]OFD Sender: No OFD packet to send [01:41:32]OFD Sender: No OFD packet to send [01:41:37]OFD Sender: No OFD packet to send [01:41:42]OFD Sender: No OFD packet to send [01:41:47]OFD Sender: No OFD packet to send [01:41:52]OFD Sender: No OFD packet to send [01:41:57]OFD Sender: No OFD packet to send [01:42:02]OFD Sender: No OFD packet to send [01:42:07]OFD Sender: No OFD packet to send [01:42:12]OFD Sender: No OFD packet to send [01:42:17]OFD Sender: No OFD packet to send [01:42:22]OFD Sender: No OFD packet to send [01:42:27]OFD Sender: No OFD packet to send [01:42:32]OFD Sender: No OFD packet to send [01:42:37]OFD Sender: No OFD packet to send [01:42:42]OFD Sender: No OFD packet to send [01:42:47]OFD Sender: No OFD packet to send [01:42:52]OFD Sender: No OFD packet to send [01:42:57]OFD Sender: No OFD packet to send [01:43:02]OFD Sender: No OFD packet to send [01:43:07]OFD Sender: No OFD packet to send [01:43:12]OFD Sender: No OFD packet to send [01:43:17]OFD Sender: No OFD packet to send [01:43:22]OFD Sender: No OFD packet to send [01:43:27]OFD Sender: No OFD packet to send [01:43:32]OFD Sender: No OFD packet to send [01:43:37]OFD Sender: No OFD packet to send [01:43:42]OFD Sender: No OFD packet to send [01:43:47]OFD Sender: No OFD packet to send [01:43:52]OFD Sender: No OFD packet to send [01:43:57]OFD Sender: No OFD packet to send [01:44:02]OFD Sender: No OFD packet to send [01:44:07]OFD Sender: No OFD packet to send [01:44:12]OFD Sender: No OFD packet to send [01:44:17]OFD Sender: No OFD packet to send [01:44:22]OFD Sender: No OFD packet to send [01:44:27]OFD Sender: No OFD packet to send [01:44:32]OFD Sender: No OFD packet to send [01:44:37]OFD Sender: No OFD packet to send [01:44:42]OFD Sender: No OFD packet to send [01:44:47]OFD Sender: No OFD packet to send [01:44:52]OFD Sender: No OFD packet to send [01:44:57]OFD Sender: No OFD packet to send [01:45:02]OFD Sender: No OFD packet to send [01:45:07]OFD Sender: No OFD packet to send [01:45:12]OFD Sender: No OFD packet to send [01:45:17]OFD Sender: No OFD packet to send [01:45:22]OFD Sender: No OFD packet to send [01:45:27]OFD Sender: No OFD packet to send [01:45:32]OFD Sender: No OFD packet to send [01:45:37]OFD Sender: No OFD packet to send [01:45:42]OFD Sender: No OFD packet to send [01:45:47]OFD Sender: No OFD packet to send [01:45:52]OFD Sender: No OFD packet to send [01:45:57]OFD Sender: No OFD packet to send [01:46:02]OFD Sender: No OFD packet to send [01:46:07]OFD Sender: No OFD packet to send [01:46:12]OFD Sender: No OFD packet to send [01:46:17]OFD Sender: No OFD packet to send [01:46:22]OFD Sender: No OFD packet to send [01:46:27]OFD Sender: No OFD packet to send [01:46:32]OFD Sender: No OFD packet to send [01:46:37]OFD Sender: No OFD packet to send [01:46:42]OFD Sender: No OFD packet to send [01:46:47]OFD Sender: No OFD packet to send [01:46:52]OFD Sender: No OFD packet to send [01:46:57]OFD Sender: No OFD packet to send [01:47:02]OFD Sender: No OFD packet to send [01:47:07]OFD Sender: No OFD packet to send [01:47:12]OFD Sender: No OFD packet to send [01:47:17]OFD Sender: No OFD packet to send [01:47:22]OFD Sender: No OFD packet to send [01:47:27]OFD Sender: No OFD packet to send [01:47:32]OFD Sender: No OFD packet to send [01:47:37]OFD Sender: No OFD packet to send [01:47:42]OFD Sender: No OFD packet to send [01:47:47]OFD Sender: No OFD packet to send [01:47:52]OFD Sender: No OFD packet to send [01:47:57]OFD Sender: No OFD packet to send [01:48:02]OFD Sender: No OFD packet to send [01:48:07]OFD Sender: No OFD packet to send [01:48:12]OFD Sender: No OFD packet to send [01:48:17]OFD Sender: No OFD packet to send [01:48:23]OFD Sender: No OFD packet to send [01:48:28]OFD Sender: No OFD packet to send [01:48:33]OFD Sender: No OFD packet to send [01:48:38]OFD Sender: No OFD packet to send [01:48:43]OFD Sender: No OFD packet to send [01:48:48]OFD Sender: No OFD packet to send [01:48:53]OFD Sender: No OFD packet to send [01:48:58]OFD Sender: No OFD packet to send [01:49:03]OFD Sender: No OFD packet to send [01:49:08]OFD Sender: No OFD packet to send [01:49:13]OFD Sender: No OFD packet to send [01:49:18]OFD Sender: No OFD packet to send [01:49:23]OFD Sender: No OFD packet to send [01:49:28]OFD Sender: No OFD packet to send [01:49:33]OFD Sender: No OFD packet to send [01:49:38]OFD Sender: No OFD packet to send [01:49:43]OFD Sender: No OFD packet to send [01:49:48]OFD Sender: No OFD packet to send [01:49:53]OFD Sender: No OFD packet to send [01:49:58]OFD Sender: No OFD packet to send [01:50:03]OFD Sender: No OFD packet to send [01:50:08]OFD Sender: No OFD packet to send [01:50:13]OFD Sender: No OFD packet to send [01:50:18]OFD Sender: No OFD packet to send [01:50:23]OFD Sender: No OFD packet to send [01:50:28]OFD Sender: No OFD packet to send [01:50:33]OFD Sender: No OFD packet to send [01:50:38]OFD Sender: No OFD packet to send [01:50:43]OFD Sender: No OFD packet to send [01:50:48]OFD Sender: No OFD packet to send [01:50:53]OFD Sender: No OFD packet to send [01:50:58]OFD Sender: No OFD packet to send [01:51:03]OFD Sender: No OFD packet to send [01:51:08]OFD Sender: No OFD packet to send [01:51:13]OFD Sender: No OFD packet to send [01:51:18]OFD Sender: No OFD packet to send [01:51:23]OFD Sender: No OFD packet to send [01:51:28]OFD Sender: No OFD packet to send [01:51:33]OFD Sender: No OFD packet to send [01:51:38]OFD Sender: No OFD packet to send [01:51:43]OFD Sender: No OFD packet to send [01:51:48]OFD Sender: No OFD packet to send [01:51:53]OFD Sender: No OFD packet to send [01:51:58]OFD Sender: No OFD packet to send [01:52:03]OFD Sender: No OFD packet to send [01:52:08]OFD Sender: No OFD packet to send [01:52:13]OFD Sender: No OFD packet to send [01:52:18]OFD Sender: No OFD packet to send [01:52:23]OFD Sender: No OFD packet to send [01:52:28]OFD Sender: No OFD packet to send [01:52:33]OFD Sender: No OFD packet to send [01:52:38]OFD Sender: No OFD packet to send [01:52:43]OFD Sender: No OFD packet to send [01:52:48]OFD Sender: No OFD packet to send [01:52:53]OFD Sender: No OFD packet to send [01:52:58]OFD Sender: No OFD packet to send [01:53:03]OFD Sender: No OFD packet to send [01:53:08]OFD Sender: No OFD packet to send [01:53:13]OFD Sender: No OFD packet to send [01:53:18]OFD Sender: No OFD packet to send [01:53:23]OFD Sender: No OFD packet to send [01:53:28]OFD Sender: No OFD packet to send [01:53:33]OFD Sender: No OFD packet to send [01:53:38]OFD Sender: No OFD packet to send [01:53:43]OFD Sender: No OFD packet to send [01:53:48]OFD Sender: No OFD packet to send [01:53:53]OFD Sender: No OFD packet to send [01:53:58]OFD Sender: No OFD packet to send [01:54:03]OFD Sender: No OFD packet to send [01:54:08]OFD Sender: No OFD packet to send [01:54:13]OFD Sender: No OFD packet to send [01:54:18]OFD Sender: No OFD packet to send [01:54:23]OFD Sender: No OFD packet to send [01:54:28]OFD Sender: No OFD packet to send [01:54:33]OFD Sender: No OFD packet to send [01:54:38]OFD Sender: No OFD packet to send [01:54:43]OFD Sender: No OFD packet to send [01:54:48]OFD Sender: No OFD packet to send [01:54:53]OFD Sender: No OFD packet to send [01:54:58]OFD Sender: No OFD packet to send [01:55:03]OFD Sender: No OFD packet to send [01:55:08]OFD Sender: No OFD packet to send [01:55:13]OFD Sender: No OFD packet to send [01:55:18]OFD Sender: No OFD packet to send [01:55:23]OFD Sender: No OFD packet to send [01:55:28]OFD Sender: No OFD packet to send [01:55:33]OFD Sender: No OFD packet to send [01:55:38]OFD Sender: No OFD packet to send [01:55:43]OFD Sender: No OFD packet to send [01:55:48]OFD Sender: No OFD packet to send [01:55:53]OFD Sender: No OFD packet to send [01:55:58]OFD Sender: No OFD packet to send [01:56:03]OFD Sender: No OFD packet to send [01:56:08]OFD Sender: No OFD packet to send [01:56:13]OFD Sender: No OFD packet to send [01:56:18]OFD Sender: No OFD packet to send [01:56:23]OFD Sender: No OFD packet to send [01:56:28]OFD Sender: No OFD packet to send [01:56:33]OFD Sender: No OFD packet to send [01:56:38]OFD Sender: No OFD packet to send [01:56:43]OFD Sender: No OFD packet to send [01:56:48]OFD Sender: No OFD packet to send [01:56:53]OFD Sender: No OFD packet to send [01:56:58]OFD Sender: No OFD packet to send [01:57:03]OFD Sender: No OFD packet to send [01:57:08]OFD Sender: No OFD packet to send [01:57:13]OFD Sender: No OFD packet to send [01:57:18]OFD Sender: No OFD packet to send [01:57:23]OFD Sender: No OFD packet to send [01:57:28]OFD Sender: No OFD packet to send [01:57:33]OFD Sender: No OFD packet to send [01:57:38]OFD Sender: No OFD packet to send [01:57:43]OFD Sender: No OFD packet to send [01:57:48]OFD Sender: No OFD packet to send [01:57:53]OFD Sender: No OFD packet to send [01:57:58]OFD Sender: No OFD packet to send [01:58:03]OFD Sender: No OFD packet to send [01:58:08]OFD Sender: No OFD packet to send [01:58:13]OFD Sender: No OFD packet to send [01:58:18]OFD Sender: No OFD packet to send [01:58:23]OFD Sender: No OFD packet to send [01:58:28]OFD Sender: No OFD packet to send [01:58:33]OFD Sender: No OFD packet to send [01:58:38]OFD Sender: No OFD packet to send [01:58:43]OFD Sender: No OFD packet to send [01:58:48]OFD Sender: No OFD packet to send [01:58:53]OFD Sender: No OFD packet to send [01:58:58]OFD Sender: No OFD packet to send [01:59:03]OFD Sender: No OFD packet to send [01:59:08]OFD Sender: No OFD packet to send [01:59:13]OFD Sender: No OFD packet to send [01:59:18]OFD Sender: No OFD packet to send [01:59:23]OFD Sender: No OFD packet to send [01:59:28]OFD Sender: No OFD packet to send [01:59:33]OFD Sender: No OFD packet to send [01:59:38]OFD Sender: No OFD packet to send [01:59:43]OFD Sender: No OFD packet to send [01:59:48]OFD Sender: No OFD packet to send [01:59:53]OFD Sender: No OFD packet to send [01:59:58]OFD Sender: No OFD packet to send [02:00:03]OFD Sender: No OFD packet to send [02:00:08]OFD Sender: No OFD packet to send [02:00:13]OFD Sender: No OFD packet to send [02:00:18]OFD Sender: No OFD packet to send [02:00:23]OFD Sender: No OFD packet to send [02:00:28]OFD Sender: No OFD packet to send [02:00:33]OFD Sender: No OFD packet to send [02:00:38]OFD Sender: No OFD packet to send [02:00:43]OFD Sender: No OFD packet to send [02:00:48]OFD Sender: No OFD packet to send [02:00:53]OFD Sender: No OFD packet to send [02:00:58]OFD Sender: No OFD packet to send [02:01:03]OFD Sender: No OFD packet to send [02:01:08]OFD Sender: No OFD packet to send [02:01:13]OFD Sender: No OFD packet to send [02:01:18]OFD Sender: No OFD packet to send [02:01:23]OFD Sender: No OFD packet to send [02:01:28]OFD Sender: No OFD packet to send [02:01:33]OFD Sender: No OFD packet to send [02:01:38]OFD Sender: No OFD packet to send [02:01:43]OFD Sender: No OFD packet to send [02:01:48]OFD Sender: No OFD packet to send [02:01:53]OFD Sender: No OFD packet to send [02:01:58]OFD Sender: No OFD packet to send [02:02:03]OFD Sender: No OFD packet to send [02:02:08]OFD Sender: No OFD packet to send [02:02:13]OFD Sender: No OFD packet to send [02:02:18]OFD Sender: No OFD packet to send [02:02:23]OFD Sender: No OFD packet to send [02:02:28]OFD Sender: No OFD packet to send [02:02:33]OFD Sender: No OFD packet to send [02:02:38]OFD Sender: No OFD packet to send [02:02:43]OFD Sender: No OFD packet to send [02:02:48]OFD Sender: No OFD packet to send [02:02:53]OFD Sender: No OFD packet to send [02:02:58]OFD Sender: No OFD packet to send [02:03:03]OFD Sender: No OFD packet to send [02:03:08]OFD Sender: No OFD packet to send [02:03:14]OFD Sender: No OFD packet to send [02:03:19]OFD Sender: No OFD packet to send [02:03:24]OFD Sender: No OFD packet to send [02:03:29]OFD Sender: No OFD packet to send [02:03:34]OFD Sender: No OFD packet to send [02:03:39]OFD Sender: No OFD packet to send [02:03:44]OFD Sender: No OFD packet to send [02:03:49]OFD Sender: No OFD packet to send [02:03:54]OFD Sender: No OFD packet to send [02:03:59]OFD Sender: No OFD packet to send [02:04:04]OFD Sender: No OFD packet to send [02:04:09]OFD Sender: No OFD packet to send [02:04:14]OFD Sender: No OFD packet to send [02:04:19]OFD Sender: No OFD packet to send [02:04:24]OFD Sender: No OFD packet to send [02:04:29]OFD Sender: No OFD packet to send [02:04:34]OFD Sender: No OFD packet to send [02:04:39]OFD Sender: No OFD packet to send [02:04:44]OFD Sender: No OFD packet to send [02:04:49]OFD Sender: No OFD packet to send [02:04:54]OFD Sender: No OFD packet to send [02:04:59]OFD Sender: No OFD packet to send [02:05:04]OFD Sender: No OFD packet to send [02:05:09]OFD Sender: No OFD packet to send [02:05:14]OFD Sender: No OFD packet to send [02:05:19]OFD Sender: No OFD packet to send [02:05:24]OFD Sender: No OFD packet to send [02:05:29]OFD Sender: No OFD packet to send [02:05:34]OFD Sender: No OFD packet to send [02:05:39]OFD Sender: No OFD packet to send [02:05:44]OFD Sender: No OFD packet to send [02:05:49]OFD Sender: No OFD packet to send [02:05:54]OFD Sender: No OFD packet to send [02:05:59]OFD Sender: No OFD packet to send [02:06:04]OFD Sender: No OFD packet to send [02:06:09]OFD Sender: No OFD packet to send [02:06:14]OFD Sender: No OFD packet to send [02:06:19]OFD Sender: No OFD packet to send [02:06:24]OFD Sender: No OFD packet to send [02:06:29]OFD Sender: No OFD packet to send [02:06:34]OFD Sender: No OFD packet to send [02:06:39]OFD Sender: No OFD packet to send [02:06:44]OFD Sender: No OFD packet to send [02:06:49]OFD Sender: No OFD packet to send [02:06:54]OFD Sender: No OFD packet to send [02:06:59]OFD Sender: No OFD packet to send [02:07:04]OFD Sender: No OFD packet to send [02:07:09]OFD Sender: No OFD packet to send [02:07:14]OFD Sender: No OFD packet to send [02:07:19]OFD Sender: No OFD packet to send [02:07:24]OFD Sender: No OFD packet to send [02:07:29]OFD Sender: No OFD packet to send [02:07:34]OFD Sender: No OFD packet to send [02:07:39]OFD Sender: No OFD packet to send [02:07:44]OFD Sender: No OFD packet to send [02:07:49]OFD Sender: No OFD packet to send [02:07:54]OFD Sender: No OFD packet to send [02:07:59]OFD Sender: No OFD packet to send [02:08:04]OFD Sender: No OFD packet to send [02:08:09]OFD Sender: No OFD packet to send [02:08:14]OFD Sender: No OFD packet to send [02:08:19]OFD Sender: No OFD packet to send [02:08:24]OFD Sender: No OFD packet to send [02:08:29]OFD Sender: No OFD packet to send [02:08:34]OFD Sender: No OFD packet to send [02:08:39]OFD Sender: No OFD packet to send [02:08:44]OFD Sender: No OFD packet to send [02:08:49]OFD Sender: No OFD packet to send [02:08:54]OFD Sender: No OFD packet to send [02:08:59]OFD Sender: No OFD packet to send [02:09:04]OFD Sender: No OFD packet to send [02:09:09]OFD Sender: No OFD packet to send [02:09:14]OFD Sender: No OFD packet to send [02:09:19]OFD Sender: No OFD packet to send [02:09:24]OFD Sender: No OFD packet to send [02:09:29]OFD Sender: No OFD packet to send [02:09:34]OFD Sender: No OFD packet to send [02:09:39]OFD Sender: No OFD packet to send [02:09:44]OFD Sender: No OFD packet to send [02:09:49]OFD Sender: No OFD packet to send [02:09:54]OFD Sender: No OFD packet to send [02:09:59]OFD Sender: No OFD packet to send [02:10:04]OFD Sender: No OFD packet to send [02:10:09]OFD Sender: No OFD packet to send [02:10:14]OFD Sender: No OFD packet to send [02:10:19]OFD Sender: No OFD packet to send [02:10:24]OFD Sender: No OFD packet to send [02:10:29]OFD Sender: No OFD packet to send [02:10:34]OFD Sender: No OFD packet to send [02:10:39]OFD Sender: No OFD packet to send [02:10:44]OFD Sender: No OFD packet to send [02:10:49]OFD Sender: No OFD packet to send [02:10:54]OFD Sender: No OFD packet to send [02:10:59]OFD Sender: No OFD packet to send [02:11:04]OFD Sender: No OFD packet to send [02:11:09]OFD Sender: No OFD packet to send [02:11:14]OFD Sender: No OFD packet to send [02:11:19]OFD Sender: No OFD packet to send [02:11:24]OFD Sender: No OFD packet to send [02:11:29]OFD Sender: No OFD packet to send [02:11:34]OFD Sender: No OFD packet to send [02:11:39]OFD Sender: No OFD packet to send [02:11:44]OFD Sender: No OFD packet to send [02:11:49]OFD Sender: No OFD packet to send [02:11:54]OFD Sender: No OFD packet to send [02:11:59]OFD Sender: No OFD packet to send [02:12:04]OFD Sender: No OFD packet to send [02:12:09]OFD Sender: No OFD packet to send [02:12:14]OFD Sender: No OFD packet to send [02:12:19]OFD Sender: No OFD packet to send [02:12:24]OFD Sender: No OFD packet to send [02:12:29]OFD Sender: No OFD packet to send [02:12:34]OFD Sender: No OFD packet to send [02:12:39]OFD Sender: No OFD packet to send [02:12:44]OFD Sender: No OFD packet to send [02:12:49]OFD Sender: No OFD packet to send [02:12:54]OFD Sender: No OFD packet to send [02:12:59]OFD Sender: No OFD packet to send [02:13:04]OFD Sender: No OFD packet to send [02:13:09]OFD Sender: No OFD packet to send [02:13:14]OFD Sender: No OFD packet to send [02:13:19]OFD Sender: No OFD packet to send [02:13:24]OFD Sender: No OFD packet to send [02:13:29]OFD Sender: No OFD packet to send [02:13:34]OFD Sender: No OFD packet to send [02:13:39]OFD Sender: No OFD packet to send [02:13:44]OFD Sender: No OFD packet to send [02:13:49]OFD Sender: No OFD packet to send [02:13:54]OFD Sender: No OFD packet to send [02:13:59]OFD Sender: No OFD packet to send [02:14:04]OFD Sender: No OFD packet to send [02:14:09]OFD Sender: No OFD packet to send [02:14:14]OFD Sender: No OFD packet to send [02:14:19]OFD Sender: No OFD packet to send [02:14:24]OFD Sender: No OFD packet to send [02:14:29]OFD Sender: No OFD packet to send [02:14:34]OFD Sender: No OFD packet to send [02:14:39]OFD Sender: No OFD packet to send [02:14:44]OFD Sender: No OFD packet to send [02:14:49]OFD Sender: No OFD packet to send [02:14:54]OFD Sender: No OFD packet to send [02:14:59]OFD Sender: No OFD packet to send [02:15:04]OFD Sender: No OFD packet to send [02:15:09]OFD Sender: No OFD packet to send [02:15:14]OFD Sender: No OFD packet to send [02:15:19]OFD Sender: No OFD packet to send [02:15:24]OFD Sender: No OFD packet to send [02:15:29]OFD Sender: No OFD packet to send [02:15:34]OFD Sender: No OFD packet to send [02:15:39]OFD Sender: No OFD packet to send [02:15:44]OFD Sender: No OFD packet to send [02:15:49]OFD Sender: No OFD packet to send [02:15:54]OFD Sender: No OFD packet to send [02:15:59]OFD Sender: No OFD packet to send [02:16:04]OFD Sender: No OFD packet to send [02:16:09]OFD Sender: No OFD packet to send [02:16:14]OFD Sender: No OFD packet to send [02:16:19]OFD Sender: No OFD packet to send [02:16:24]OFD Sender: No OFD packet to send [02:16:29]OFD Sender: No OFD packet to send [02:16:34]OFD Sender: No OFD packet to send [02:16:39]OFD Sender: No OFD packet to send [02:16:44]OFD Sender: No OFD packet to send [02:16:49]OFD Sender: No OFD packet to send [02:16:54]OFD Sender: No OFD packet to send [02:16:59]OFD Sender: No OFD packet to send [02:17:04]OFD Sender: No OFD packet to send [02:17:09]OFD Sender: No OFD packet to send [02:17:14]OFD Sender: No OFD packet to send [02:17:19]OFD Sender: No OFD packet to send [02:17:24]OFD Sender: No OFD packet to send [02:17:29]OFD Sender: No OFD packet to send [02:17:34]OFD Sender: No OFD packet to send [02:17:39]OFD Sender: No OFD packet to send [02:17:44]OFD Sender: No OFD packet to send [02:17:49]OFD Sender: No OFD packet to send [02:17:54]OFD Sender: No OFD packet to send [02:17:59]OFD Sender: No OFD packet to send [02:18:04]OFD Sender: No OFD packet to send [02:18:10]OFD Sender: No OFD packet to send [02:18:15]OFD Sender: No OFD packet to send [02:18:20]OFD Sender: No OFD packet to send [02:18:25]OFD Sender: No OFD packet to send [02:18:30]OFD Sender: No OFD packet to send [02:18:35]OFD Sender: No OFD packet to send [02:18:40]OFD Sender: No OFD packet to send [02:18:45]OFD Sender: No OFD packet to send [02:18:50]OFD Sender: No OFD packet to send [02:18:55]OFD Sender: No OFD packet to send [02:19:00]OFD Sender: No OFD packet to send [02:19:05]OFD Sender: No OFD packet to send [02:19:10]OFD Sender: No OFD packet to send [02:19:15]OFD Sender: No OFD packet to send [02:19:20]OFD Sender: No OFD packet to send [02:19:25]OFD Sender: No OFD packet to send [02:19:30]OFD Sender: No OFD packet to send [02:19:35]OFD Sender: No OFD packet to send [02:19:40]OFD Sender: No OFD packet to send [02:19:45]OFD Sender: No OFD packet to send [02:19:50]OFD Sender: No OFD packet to send [02:19:55]OFD Sender: No OFD packet to send [02:20:00]OFD Sender: No OFD packet to send [02:20:05]OFD Sender: No OFD packet to send [02:20:10]OFD Sender: No OFD packet to send [02:20:15]OFD Sender: No OFD packet to send [02:20:20]OFD Sender: No OFD packet to send [02:20:25]OFD Sender: No OFD packet to send [02:20:30]OFD Sender: No OFD packet to send [02:20:35]OFD Sender: No OFD packet to send [02:20:40]OFD Sender: No OFD packet to send [02:20:45]OFD Sender: No OFD packet to send [02:20:50]OFD Sender: No OFD packet to send [02:20:55]OFD Sender: No OFD packet to send [02:21:00]OFD Sender: No OFD packet to send [02:21:05]OFD Sender: No OFD packet to send [02:21:10]OFD Sender: No OFD packet to send [02:21:15]OFD Sender: No OFD packet to send [02:21:20]OFD Sender: No OFD packet to send [02:21:25]OFD Sender: No OFD packet to send [02:21:30]OFD Sender: No OFD packet to send [02:21:35]OFD Sender: No OFD packet to send [02:21:40]OFD Sender: No OFD packet to send [02:21:45]OFD Sender: No OFD packet to send [02:21:50]OFD Sender: No OFD packet to send [02:21:55]OFD Sender: No OFD packet to send [02:22:00]OFD Sender: No OFD packet to send [02:22:05]OFD Sender: No OFD packet to send [02:22:10]OFD Sender: No OFD packet to send [02:22:15]OFD Sender: No OFD packet to send [02:22:20]OFD Sender: No OFD packet to send [02:22:25]OFD Sender: No OFD packet to send [02:22:30]OFD Sender: No OFD packet to send [02:22:35]OFD Sender: No OFD packet to send [02:22:40]OFD Sender: No OFD packet to send [02:22:45]OFD Sender: No OFD packet to send [02:22:50]OFD Sender: No OFD packet to send [02:22:55]OFD Sender: No OFD packet to send [02:23:00]OFD Sender: No OFD packet to send [02:23:05]OFD Sender: No OFD packet to send [02:23:10]OFD Sender: No OFD packet to send [02:23:15]OFD Sender: No OFD packet to send [02:23:20]OFD Sender: No OFD packet to send [02:23:25]OFD Sender: No OFD packet to send [02:23:30]OFD Sender: No OFD packet to send [02:23:35]OFD Sender: No OFD packet to send [02:23:40]OFD Sender: No OFD packet to send [02:23:45]OFD Sender: No OFD packet to send [02:23:50]OFD Sender: No OFD packet to send [02:23:55]OFD Sender: No OFD packet to send [02:24:00]OFD Sender: No OFD packet to send [02:24:05]OFD Sender: No OFD packet to send [02:24:10]OFD Sender: No OFD packet to send [02:24:15]OFD Sender: No OFD packet to send [02:24:20]OFD Sender: No OFD packet to send [02:24:25]OFD Sender: No OFD packet to send [02:24:30]OFD Sender: No OFD packet to send [02:24:35]OFD Sender: No OFD packet to send [02:24:40]OFD Sender: No OFD packet to send [02:24:45]OFD Sender: No OFD packet to send [02:24:50]OFD Sender: No OFD packet to send [02:24:55]OFD Sender: No OFD packet to send [02:25:00]OFD Sender: No OFD packet to send [02:25:05]OFD Sender: No OFD packet to send [02:25:10]OFD Sender: No OFD packet to send [02:25:15]OFD Sender: No OFD packet to send [02:25:20]OFD Sender: No OFD packet to send [02:25:25]OFD Sender: No OFD packet to send [02:25:30]OFD Sender: No OFD packet to send [02:25:35]OFD Sender: No OFD packet to send [02:25:40]OFD Sender: No OFD packet to send [02:25:45]OFD Sender: No OFD packet to send [02:25:50]OFD Sender: No OFD packet to send [02:25:55]OFD Sender: No OFD packet to send [02:26:00]OFD Sender: No OFD packet to send [02:26:05]OFD Sender: No OFD packet to send [02:26:10]OFD Sender: No OFD packet to send [02:26:15]OFD Sender: No OFD packet to send [02:26:20]OFD Sender: No OFD packet to send [02:26:25]OFD Sender: No OFD packet to send [02:26:30]OFD Sender: No OFD packet to send [02:26:35]OFD Sender: No OFD packet to send [02:26:40]OFD Sender: No OFD packet to send [02:26:45]OFD Sender: No OFD packet to send [02:26:50]OFD Sender: No OFD packet to send [02:26:55]OFD Sender: No OFD packet to send [02:27:00]OFD Sender: No OFD packet to send [02:27:05]OFD Sender: No OFD packet to send [02:27:10]OFD Sender: No OFD packet to send [02:27:15]OFD Sender: No OFD packet to send [02:27:20]OFD Sender: No OFD packet to send [02:27:25]OFD Sender: No OFD packet to send [02:27:30]OFD Sender: No OFD packet to send [02:27:35]OFD Sender: No OFD packet to send [02:27:40]OFD Sender: No OFD packet to send [02:27:45]OFD Sender: No OFD packet to send [02:27:50]OFD Sender: No OFD packet to send [02:27:55]OFD Sender: No OFD packet to send [02:28:00]OFD Sender: No OFD packet to send [02:28:05]OFD Sender: No OFD packet to send [02:28:10]OFD Sender: No OFD packet to send [02:28:15]OFD Sender: No OFD packet to send [02:28:20]OFD Sender: No OFD packet to send [02:28:25]OFD Sender: No OFD packet to send [02:28:30]OFD Sender: No OFD packet to send [02:28:35]OFD Sender: No OFD packet to send [02:28:40]OFD Sender: No OFD packet to send [02:28:45]OFD Sender: No OFD packet to send [02:28:50]OFD Sender: No OFD packet to send [02:28:55]OFD Sender: No OFD packet to send [02:29:00]OFD Sender: No OFD packet to send [02:29:05]OFD Sender: No OFD packet to send [02:29:10]OFD Sender: No OFD packet to send [02:29:15]OFD Sender: No OFD packet to send [02:29:20]OFD Sender: No OFD packet to send [02:29:25]OFD Sender: No OFD packet to send [02:29:30]OFD Sender: No OFD packet to send [02:29:35]OFD Sender: No OFD packet to send [02:29:40]OFD Sender: No OFD packet to send [02:29:45]OFD Sender: No OFD packet to send [02:29:50]OFD Sender: No OFD packet to send [02:29:55]OFD Sender: No OFD packet to send [02:30:00]OFD Sender: No OFD packet to send [02:30:05]OFD Sender: No OFD packet to send [02:30:10]OFD Sender: No OFD packet to send [02:30:15]OFD Sender: No OFD packet to send [02:30:20]OFD Sender: No OFD packet to send [02:30:25]OFD Sender: No OFD packet to send [02:30:30]OFD Sender: No OFD packet to send [02:30:35]OFD Sender: No OFD packet to send [02:30:40]OFD Sender: No OFD packet to send [02:30:45]OFD Sender: No OFD packet to send [02:30:50]OFD Sender: No OFD packet to send [02:30:55]OFD Sender: No OFD packet to send [02:31:00]OFD Sender: No OFD packet to send [02:31:05]OFD Sender: No OFD packet to send [02:31:10]OFD Sender: No OFD packet to send [02:31:15]OFD Sender: No OFD packet to send [02:31:20]OFD Sender: No OFD packet to send [02:31:25]OFD Sender: No OFD packet to send [02:31:30]OFD Sender: No OFD packet to send [02:31:35]OFD Sender: No OFD packet to send [02:31:40]OFD Sender: No OFD packet to send [02:31:45]OFD Sender: No OFD packet to send [02:31:50]OFD Sender: No OFD packet to send [02:31:55]OFD Sender: No OFD packet to send [02:32:00]OFD Sender: No OFD packet to send [02:32:05]OFD Sender: No OFD packet to send [02:32:10]OFD Sender: No OFD packet to send [02:32:15]OFD Sender: No OFD packet to send [02:32:20]OFD Sender: No OFD packet to send [02:32:25]OFD Sender: No OFD packet to send [02:32:30]OFD Sender: No OFD packet to send [02:32:35]OFD Sender: No OFD packet to send [02:32:40]OFD Sender: No OFD packet to send [02:32:45]OFD Sender: No OFD packet to send [02:32:50]OFD Sender: No OFD packet to send [02:32:55]OFD Sender: No OFD packet to send [02:33:00]OFD Sender: No OFD packet to send [02:33:06]OFD Sender: No OFD packet to send [02:33:11]OFD Sender: No OFD packet to send [02:33:16]OFD Sender: No OFD packet to send [02:33:21]OFD Sender: No OFD packet to send [02:33:26]OFD Sender: No OFD packet to send [02:33:31]OFD Sender: No OFD packet to send [02:33:33]accept exits with 9 [02:33:33]New connection [02:33:33]New thread 3066547556 created [02:33:33]Thread 3066690916 joined [02:33:33]Waiting for new connection... [02:33:33] Sock 9.Parse request [02:33:33]Sock 9.Check first char [02:33:33]Sock 9.First char is OK [02:33:33]request: POST /json_proto HTTP/1.0 [02:33:33]Method: POST [02:33:33]URL: /json_proto [02:33:33]Method is POST - this is cgi request [02:33:33]url: /json_proto [02:33:33]query_string will be loaded in cgi processing [02:33:33]execute_cgi json_proto POST (null) [02:33:33]execute_cgi path=json_proto method=POST [02:33:33]POST find Content-Length [02:33:33]Host: 172.17.56.4:8080 [02:33:33]Content-Length: 790 [02:33:33]Content-Type: application/json [02:33:33] [02:33:33]POST finish read [02:33:33]Found Content-Length = 790 [02:33:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459618", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 4.300, "sum" : 280.45, "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 280.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:33:33]execute_script... [02:33: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)459618", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.22, "quantity" : 4.300, "sum" : 280.45, "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 280.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:33:33]POST & json_proto [02:33:33]process_json_proto [02:33:33]json parsed OK: [02:33:33]protocol is kg_v1.0 [02:33:33]action value=close_receipt [02:33:33]process_action close_receipt [02:33:33]cmd_close_receipt [02:33:33]MH_GetDate [02:33:33]Write to MH i2c: F0 00 00 F9 00 E8 [02:33:33]Write i2c OK [02:33:33]MH_I2C_Read... [02:33:33]Read from MH i2c: F0 [02:33:33]MH_I2C_Read... [02:33:33]Read from MH i2c: F0 09 00 [02:33:33]MH_I2C_Read... [02:33:33]Read from MH i2c: F0 09 00 F9 00 00 FE DB 95 66 C9 DC B2 64 80 [02:33:33]GetLastDocTimeStamp 1721093875 [02:33:33]current date 1721097214 [02:33:33]FM_GetShiftState [02:33:33]SAM_PROTO_GetShiftState [02:33:33]wFMCommunicate request_size=4 [02:33:33]MH_SAM_APDU [02:33:33]CAPDU: 80 13 01 00 [02:33:33]Write to MH i2c: E2 08 00 FA 00 80 13 01 00 00 00 00 00 77 [02:33:33]Write i2c OK [02:33:33]MH_I2C_Read... [02:33:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:33:33]Read from MH i2c: E2 [02:33:33]MH_I2C_Read... [02:33:33]Read from MH i2c: E2 0E 00 [02:33:33]MH_I2C_Read... [02:33:33]Read from MH i2c: E2 0E 00 FA 00 00 09 00 01 49 C0 95 66 00 00 00 00 90 00 87 [02:33:33]RAPDU: 09 00 01 49 C0 95 66 00 00 00 00 90 00 [02:33:33]wFMCommunicate OK [02:33:33]SAM_PROTO_GetShiftState done [02:33:33]FM_GetShiftState done [02:33:33]opened in 1721090121 [02:33:33]opened+sec_in_day 1721176521 [02:33:33]quantity*price = 28044 [02:33:33]sum+1 = 28046 [02:33:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 280.45 НСП 1% : 2.48 НДС 12% : 29.78 Наличными: 0.00 Безнал.: 280.45 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 8 16.07.2024 02:33 Смена: 449 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000874718 ФД: 165504 ФПД: 257602498249162 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T023334&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165504&fm=257602498249162&tin=02508201610067®Number=0000000000090829&sum=28045 [02:33:34]StoreToDocumentArchive [02:33:34]shift 449 fd 165504 [02:33:34]save to /storage/0449/doc_00165504 [02:33:34]save last doc name /storage/0449/doc_00165504 to /storage/kkm_last_doc_name [02:33:34]save OK [02:33:34]Clear old archive folders... [02:33:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:33:34]tlvbuf is 005EA630 [02:33:34]SAM_PROTO_ClearQueue [02:33:34]wFMCommunicate request_size=4 [02:33:34]MH_SAM_APDU [02:33:34]CAPDU: 80 09 00 00 [02:33:34]Write to MH i2c: E2 08 00 07 01 80 09 00 00 00 00 00 00 7A [02:33:34]Write i2c OK [02:33:34]MH_I2C_Read... [02:33:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:33:35]Read from MH i2c: E2 [02:33:35]MH_I2C_Read... [02:33:35]Read from MH i2c: E2 03 00 [02:33:35]MH_I2C_Read... [02:33:35]Read from MH i2c: E2 03 00 07 01 00 90 00 7C [02:33:35]RAPDU: 90 00 [02:33:35]wFMCommunicate OK [02:33:35]SAM_PROTO_ClearQueue done [02:33:35]KKMCreateOFDPacket [02:33:35]OFDProtocolAddRootSTLVToBuf [02:33:35]FM_MakeSignedData [02:33:35]FM_MakeSignedData [02:33:35]SAM_PROTO_SignData [02:33:35]wFMCommunicate request_size=4 [02:33:35]MH_SAM_APDU [02:33:35]CAPDU: 80 0D 01 02 [02:33:35]Write to MH i2c: E2 08 00 08 01 80 0D 01 02 00 00 00 00 82 [02:33:35]Write i2c OK [02:33:35]MH_I2C_Read... [02:33:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:33:35]Read from MH i2c: E2 [02:33:35]MH_I2C_Read... [02:33:35]Read from MH i2c: E2 03 00 [02:33:35]MH_I2C_Read... [02:33:35]Read from MH i2c: E2 03 00 08 01 00 90 00 7D [02:33:35]RAPDU: 90 00 [02:33:35]wFMCommunicate OK [02:33:35]wFMCommunicate request_size=255 [02:33:35]MH_SAM_APDU [02:33: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 CC 10 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 8D 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8D 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8D 6D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 FE DB 95 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 80 86 02 00 35 04 06 00 EA [02:33:35]Write to MH i2c: E2 02 01 09 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 10 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 8D 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8D 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8D 6D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 FE DB 95 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 80 86 02 00 35 04 06 00 EA 00 00 24 [02:33:35]Write i2c OK [02:33:35]MH_I2C_Read... [02:33:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:33:35]Read from MH i2c: E2 [02:33:35]MH_I2C_Read... [02:33:35]Read from MH i2c: E2 03 00 [02:33:35]MH_I2C_Read... [02:33:35]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [02:33:35]RAPDU: 90 00 [02:33:35]wFMCommunicate OK [02:33:35]wFMCommunicate request_size=10 [02:33:35]MH_SAM_APDU [02:33:35]CAPDU: 80 0D 02 02 05 49 C1 66 C1 CA [02:33:35]Write to MH i2c: E2 0D 00 0A 01 80 0D 02 02 05 00 49 C1 66 C1 CA 00 00 8A [02:33:35]Write i2c OK [02:33:35]MH_I2C_Read... [02:33:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:33:35]Read from MH i2c: E2 [02:33:35]MH_I2C_Read... [02:33:35]Read from MH i2c: E2 03 00 [02:33:35]MH_I2C_Read... [02:33:35]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [02:33:35]RAPDU: 90 00 [02:33:35]wFMCommunicate OK [02:33:35]wFMCommunicate request_size=4 [02:33:35]MH_SAM_APDU [02:33:35]CAPDU: 80 0D 03 02 [02:33:35]Write to MH i2c: E2 08 00 0B 01 80 0D 03 02 00 00 00 00 87 [02:33:35]Write i2c OK [02:33:35]MH_I2C_Read... [02:33:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:33:35]Read from MH i2c: E2 [02:33:35]MH_I2C_Read... [02:33:35]Read from MH i2c: E2 0B 00 [02:33:35]MH_I2C_Read... [02:33:35]Read from MH i2c: E2 0B 00 0B 01 00 90 D0 5C EA 39 44 AA 76 90 00 CB [02:33:35]RAPDU: 90 D0 5C EA 39 44 AA 76 90 00 [02:33:35]wFMCommunicate OK [02:33:35]SAM_PROTO_SignData done [02:33:35]FM_MakeSignedData done [02:33:35]CreateOFDProtocolMessage [02:33:35]wFMCommunicate request_size=4 [02:33:35]MH_SAM_APDU [02:33:35]CAPDU: 80 11 00 00 [02:33:35]Write to MH i2c: E2 08 00 0C 01 80 11 00 00 00 00 00 00 87 [02:33:35]Write i2c OK [02:33:35]MH_I2C_Read... [02:33:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:33:35]Read from MH i2c: E2 [02:33:35]MH_I2C_Read... [02:33:35]Read from MH i2c: E2 17 00 [02:33:35]MH_I2C_Read... [02:33:35]Read from MH i2c: E2 17 00 0C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 DD [02:33:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [02:33:35]wFMCommunicate OK [02:33:35]CreateOFDProtocolMessage done [02:33:35]OFDSenderStorePacket 165504 [02:33:35]StoreOFDPacket docnum=165504 [02:33:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 8D 44 07 01 3D 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 CC 10 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 8D 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8D 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8D 6D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 FE DB 95 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 80 86 02 00 35 04 06 00 EA 49 C1 66 C1 CA 90 D0 5C EA 39 44 AA 76 [02:33:35]CheckFolder [02:33:35]dirname=/storage/ofd_packets [02:33:35]CheckFolder done [02:33:35]ProducePacketName [02:33:35]name=ofd_packets/00165504 [02:33:35]NVStorageSaveData ofd_packets/00165504 [02:33:35]File name is /storage/ofd_packets/00165504 [02:33:35]Write 301 bytes [02:33:35]NVStorageSaveData done [02:33:35]OFDSenderStorePacket done [02:33:35]KKMCreateOFDPacket done [02:33:35]NVStorageSaveData kkm_last_timestamp [02:33:35]File name is /storage/kkm_last_timestamp [02:33:35]Write 4 bytes [02:33:35]NVStorageSaveData done [02:33:35]ExternCall_PrintAddStr [02:33:35]wPrintStart [02:33:35]Write to MH i2c: 01 00 00 0D 01 0E [02:33:35]Write i2c OK [02:33:35]MH_I2C_Read... [02:33:35]Read from MH i2c: 01 [02:33:35]MH_I2C_Read... [02:33:35]Read from MH i2c: 01 07 00 [02:33:35]MH_I2C_Read... [02:33:35]Read from MH i2c: 01 07 00 0D 01 00 00 00 00 00 FF 0F 23 [02:33:35]RasterBufferAndPrint [02:33:35]line Счет N : (1)459618 [02:33:35]line ИНН: 02508201610067 [02:33:35]line Контрольно-Кассовый Чек [02:33:35]line ПРОДАЖА [02:33:35]line ТРК (МРК, ГНК) : 22 [02:33:35]line Товар: 2710124130 [02:33:35]line Аи-92-К-5 [02:33:35]line 4.300 * 65.22 [02:33:35]line = 280.45 [02:33:35]line НДС 12% НСП 1% [02:33:35]line > о реализуемом товаре [02:33:35]line ИТОГО: 280.45 [02:33:35]line НСП 1% : 2.48 [02:33:35]line НДС 12% : 29.78 [02:33:35]line Наличными: 0.00 [02:33:35]line Безнал.: 280.45 [02:33:35]line Место: АЗС № 72 "Партнер Нефть" [02:33:35]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [02:33:35]line СНО: Общий режим [02:33:35]line Чек 8 16.07.2024 02:33 [02:33:35]line Смена: 449 ФФД: 1.0 [02:33:35]line ЗНМ: 0300000160 [02:33:35]line РНМ: 0000000000090829 [02:33:35]line Версия ККМ: 001 [02:33:35]line Платежная система: KICB Банк [02:33:35]line ФМ: 0000000000874718 [02:33:35]line ФД: 165504 [02:33:35]line ФПД: 257602498249162 [02:33:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T023334&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165504&fm=257602498249162&tin=02508201610067®Number=0000000000090829&sum=28045 [02:33:35]written 0, free lines is 4095 [02:33:35]OFD Sender: Processing packet 165504 [packets to send 106, broken 105] [02:33:35]ProducePacketName [02:33:35]name=ofd_packets/00165504 [02:33:35]OFD Sender: To server: pG, [02:33:35]CommunicateWithHost lk.salyk.kg:30040 [02:33:35]ConnectInit lk.salyk.kg [02:33:35]Connected sock=10 [02:33: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 37 31 38 0F 01 00 00 8D 44 07 01 3D 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 CC 10 00 00 00 00 00 37 04 06 00 7A 19 00 00 00 00 13 04 06 00 8D 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8D 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8D 6D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 FE DB 95 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 80 86 02 00 35 04 06 00 EA 49 C1 66 C1 CA 90 D0 5C EA 39 44 AA 76 [02:33:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 F0 2D 47 00 23 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 80 86 02 00 F4 03 04 00 87 82 95 66 B6 04 01 00 00 DF 64 6E 0A 88 25 B9 F2 [02:33:35]CommunicateWithHost err = 0 [02:33:35]CheckOFDResponse [02:33:35]1017 (14) - 77093643461234 [02:33:35]1041 (16) - 0000000000874718 [02:33:35]1040 (4) - 165504 [02:33:35]1012 (4) - 15.07.2024 20:11 [02:33:35]1206 (1) - 0 [02:33:35]OFD Sender: Remove packet 165504 [02:33:35]ProducePacketName [02:33:35]name=ofd_packets/00165504 [02:33:35]NVStorageDeleteData [02:33:35]Write to MH i2c: 01 00 00 36 01 37 [02:33:35]Write i2c OK [02:33:35]MH_I2C_Read... [02:33:35]Read from MH i2c: 01 [02:33:35]MH_I2C_Read... [02:33:35]Read from MH i2c: 01 07 00 [02:33:35]MH_I2C_Read... [02:33:35]Read from MH i2c: 01 07 00 36 01 00 00 00 00 00 13 0D 5E [02:33:35]RasterBufferAndPrint [02:33:35]line [02:33:35]line [02:33:35]line [02:33:35]line [02:33:35]line [02:33:35]written 0, free lines is 3354 [02:33:35]MH_Cut [02:33:35]Write to MH i2c: D1 01 00 3D 01 01 10 [02:33:35]Write i2c OK [02:33:35]MH_I2C_Read... [02:33:35]Read from MH i2c: D1 [02:33:35]MH_I2C_Read... [02:33:35]Read from MH i2c: D1 01 00 [02:33:35]MH_I2C_Read... [02:33:35]Read from MH i2c: D1 01 00 3D 01 00 0F [02:33:35]Write to MH i2c: 01 00 00 3E 01 3F [02:33:35]Write i2c OK [02:33:35]MH_I2C_Read... [02:33:36]OFD Sender: No OFD packet to send [02:33:36]*** Cut start [02:33:36]*** Partial cut [02:33:36]*** CUTSNS_PIN = 1 [02:33:36]*** CUTSNS_PIN = 0 [02:33:36]*** Brake cut motor [02:33:37]Read from MH i2c: 01 [02:33:37]MH_I2C_Read... [02:33:37]*** Stop cut motor [02:33:37]*** Cut end [02:33:37]Read from MH i2c: 01 07 00 [02:33:37]MH_I2C_Read... [02:33:37]Read from MH i2c: 01 07 00 3E 01 00 00 00 00 00 FF 0F 54 [02:33:37]process_action close_receipt done [02:33:37]requested_data is exist [02:33:37]produce_requested_data [02:33:37]requested_item fm.sn is exist - process it [02:33:37]wFMCommunicate request_size=4 [02:33:37]MH_SAM_APDU [02:33:37]CAPDU: 80 11 00 00 [02:33:37]Write to MH i2c: E2 08 00 3F 01 80 11 00 00 00 00 00 00 BA [02:33:37]Write i2c OK [02:33:37]MH_I2C_Read... [02:33:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:33:37]Read from MH i2c: E2 [02:33:37]MH_I2C_Read... [02:33:37]Read from MH i2c: E2 17 00 [02:33:37]MH_I2C_Read... [02:33:37]Read from MH i2c: E2 17 00 3F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 10 [02:33:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [02:33:37]wFMCommunicate OK [02:33:37]requested_item fd.num is exist - process it [02:33:37]SAM_PROTO_GetFieldsCounters [02:33:37]wFMCommunicate request_size=4 [02:33:37]MH_SAM_APDU [02:33:37]CAPDU: 80 13 00 00 [02:33:37]Write to MH i2c: E2 08 00 40 01 80 13 00 00 00 00 00 00 BD [02:33:37]Write i2c OK [02:33:37]MH_I2C_Read... [02:33:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:33:37]Read from MH i2c: E2 [02:33:37]MH_I2C_Read... [02:33:37]Read from MH i2c: E2 62 00 [02:33:37]MH_I2C_Read... [02:33:37]Read from MH i2c: E2 62 00 40 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 80 86 02 00 0E 04 04 00 C1 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 C6 [02:33:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 80 86 02 00 0E 04 04 00 C1 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 [02:33:37]wFMCommunicate OK [02:33:37]SAM_PROTO_GetFieldsCounters done [02:33:37]requested_item shift.num is exist - process it [02:33:37]requested_item shift.opened is exist - process it [02:33:37]req_shift_opened [02:33:37]FM_GetShiftState [02:33:37]SAM_PROTO_GetShiftState [02:33:37]wFMCommunicate request_size=4 [02:33:37]MH_SAM_APDU [02:33:37]CAPDU: 80 13 01 00 [02:33:37]Write to MH i2c: E2 08 00 41 01 80 13 01 00 00 00 00 00 BF [02:33:37]Write i2c OK [02:33:37]MH_I2C_Read... [02:33:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:33:37]Read from MH i2c: E2 [02:33:37]MH_I2C_Read... [02:33:37]Read from MH i2c: E2 0E 00 [02:33:37]MH_I2C_Read... [02:33:37]Read from MH i2c: E2 0E 00 41 01 00 09 00 01 49 C0 95 66 00 00 00 00 90 00 CF [02:33:37]RAPDU: 09 00 01 49 C0 95 66 00 00 00 00 90 00 [02:33:37]wFMCommunicate OK [02:33:37]SAM_PROTO_GetShiftState done [02:33:37]FM_GetShiftState done [02:33:37]req_shift_opened done [02:33:37]requested_item shift.open_date is exist - process it [02:33:37]req_shift_open_date [02:33:37]req_shift_open_date done [02:33:37]produce_requested_data done [02:33:37]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165504,"shift.num":449,"shift.opened":1,"shift.open_date":1721090121} [02:33:37]process_action_free close_receipt [02:33:37]json_value_free [02:33:37]json_value_free done [02:33:37]process_json_proto returns [02:33:37]Send response to host [02:33:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165504,"shift.num":449,"shift.opened":1,"shift.open_date":1721090121}}} [02:33:37]free response buf [02:33:37]execute_script done [02:33:37]execute_script returns [02:33:37]free content buf [02:33:37]Sock 9.Close socket [02:33:37]Sock 9.Thread stoped [02:33:41]OFD Sender: No OFD packet to send [02:33:46]OFD Sender: No OFD packet to send [02:33:51]OFD Sender: No OFD packet to send [02:33:56]OFD Sender: No OFD packet to send [02:34:01]OFD Sender: No OFD packet to send [02:34:06]OFD Sender: No OFD packet to send [02:34:11]OFD Sender: No OFD packet to send [02:34:16]OFD Sender: No OFD packet to send [02:34:21]OFD Sender: No OFD packet to send [02:34:26]OFD Sender: No OFD packet to send [02:34:31]OFD Sender: No OFD packet to send [02:34:36]OFD Sender: No OFD packet to send [02:34:41]OFD Sender: No OFD packet to send [02:34:46]OFD Sender: No OFD packet to send [02:34:51]OFD Sender: No OFD packet to send [02:34:56]OFD Sender: No OFD packet to send [02:35:01]OFD Sender: No OFD packet to send [02:35:06]OFD Sender: No OFD packet to send [02:35:11]OFD Sender: No OFD packet to send [02:35:16]OFD Sender: No OFD packet to send [02:35:21]OFD Sender: No OFD packet to send [02:35:26]OFD Sender: No OFD packet to send [02:35:31]OFD Sender: No OFD packet to send [02:35:36]OFD Sender: No OFD packet to send [02:35:41]OFD Sender: No OFD packet to send [02:35:46]OFD Sender: No OFD packet to send [02:35:51]OFD Sender: No OFD packet to send [02:35:56]OFD Sender: No OFD packet to send [02:36:01]OFD Sender: No OFD packet to send [02:36:06]OFD Sender: No OFD packet to send [02:36:11]OFD Sender: No OFD packet to send [02:36:16]OFD Sender: No OFD packet to send [02:36:21]OFD Sender: No OFD packet to send [02:36:26]OFD Sender: No OFD packet to send [02:36:31]OFD Sender: No OFD packet to send [02:36:36]OFD Sender: No OFD packet to send [02:36:41]OFD Sender: No OFD packet to send [02:36:46]OFD Sender: No OFD packet to send [02:36:51]OFD Sender: No OFD packet to send [02:36:56]OFD Sender: No OFD packet to send [02:37:01]OFD Sender: No OFD packet to send [02:37:06]OFD Sender: No OFD packet to send [02:37:11]OFD Sender: No OFD packet to send [02:37:16]OFD Sender: No OFD packet to send [02:37:21]OFD Sender: No OFD packet to send [02:37:26]OFD Sender: No OFD packet to send [02:37:31]OFD Sender: No OFD packet to send [02:37:36]OFD Sender: No OFD packet to send [02:37:41]OFD Sender: No OFD packet to send [02:37:46]OFD Sender: No OFD packet to send [02:37:51]OFD Sender: No OFD packet to send [02:37:56]OFD Sender: No OFD packet to send [02:38:01]OFD Sender: No OFD packet to send [02:38:06]OFD Sender: No OFD packet to send [02:38:11]OFD Sender: No OFD packet to send [02:38:16]OFD Sender: No OFD packet to send [02:38:21]OFD Sender: No OFD packet to send [02:38:26]OFD Sender: No OFD packet to send [02:38:31]OFD Sender: No OFD packet to send [02:38:36]OFD Sender: No OFD packet to send [02:38:41]OFD Sender: No OFD packet to send [02:38:46]OFD Sender: No OFD packet to send [02:38:51]OFD Sender: No OFD packet to send [02:38:56]OFD Sender: No OFD packet to send [02:39:01]OFD Sender: No OFD packet to send [02:39:06]OFD Sender: No OFD packet to send [02:39:11]OFD Sender: No OFD packet to send [02:39:16]OFD Sender: No OFD packet to send [02:39:21]OFD Sender: No OFD packet to send [02:39:26]OFD Sender: No OFD packet to send [02:39:31]OFD Sender: No OFD packet to send [02:39:36]OFD Sender: No OFD packet to send [02:39:41]OFD Sender: No OFD packet to send [02:39:46]OFD Sender: No OFD packet to send [02:39:51]OFD Sender: No OFD packet to send [02:39:56]OFD Sender: No OFD packet to send [02:40:01]OFD Sender: No OFD packet to send [02:40:06]OFD Sender: No OFD packet to send [02:40:11]OFD Sender: No OFD packet to send [02:40:16]OFD Sender: No OFD packet to send [02:40:21]OFD Sender: No OFD packet to send [02:40:26]OFD Sender: No OFD packet to send [02:40:31]OFD Sender: No OFD packet to send [02:40:36]OFD Sender: No OFD packet to send [02:40:41]OFD Sender: No OFD packet to send [02:40:46]OFD Sender: No OFD packet to send [02:40:51]OFD Sender: No OFD packet to send [02:40:56]OFD Sender: No OFD packet to send [02:41:01]OFD Sender: No OFD packet to send [02:41:06]OFD Sender: No OFD packet to send [02:41:11]OFD Sender: No OFD packet to send [02:41:16]OFD Sender: No OFD packet to send [02:41:21]OFD Sender: No OFD packet to send [02:41:26]OFD Sender: No OFD packet to send [02:41:31]OFD Sender: No OFD packet to send [02:41:36]OFD Sender: No OFD packet to send [02:41:41]OFD Sender: No OFD packet to send [02:41:46]OFD Sender: No OFD packet to send [02:41:51]OFD Sender: No OFD packet to send [02:41:56]OFD Sender: No OFD packet to send [02:42:01]OFD Sender: No OFD packet to send [02:42:06]OFD Sender: No OFD packet to send [02:42:11]OFD Sender: No OFD packet to send [02:42:16]OFD Sender: No OFD packet to send [02:42:21]OFD Sender: No OFD packet to send [02:42:26]OFD Sender: No OFD packet to send [02:42:31]OFD Sender: No OFD packet to send [02:42:36]OFD Sender: No OFD packet to send [02:42:41]OFD Sender: No OFD packet to send [02:42:46]OFD Sender: No OFD packet to send [02:42:51]OFD Sender: No OFD packet to send [02:42:57]OFD Sender: No OFD packet to send [02:43:02]OFD Sender: No OFD packet to send [02:43:07]OFD Sender: No OFD packet to send [02:43:12]OFD Sender: No OFD packet to send [02:43:17]OFD Sender: No OFD packet to send [02:43:22]OFD Sender: No OFD packet to send [02:43:27]OFD Sender: No OFD packet to send [02:43:32]OFD Sender: No OFD packet to send [02:43:37]OFD Sender: No OFD packet to send [02:43:42]OFD Sender: No OFD packet to send [02:43:47]OFD Sender: No OFD packet to send [02:43:52]OFD Sender: No OFD packet to send [02:43:57]OFD Sender: No OFD packet to send [02:44:02]OFD Sender: No OFD packet to send [02:44:07]OFD Sender: No OFD packet to send [02:44:12]OFD Sender: No OFD packet to send [02:44:17]OFD Sender: No OFD packet to send [02:44:22]OFD Sender: No OFD packet to send [02:44:27]OFD Sender: No OFD packet to send [02:44:32]OFD Sender: No OFD packet to send [02:44:37]OFD Sender: No OFD packet to send [02:44:42]OFD Sender: No OFD packet to send [02:44:47]OFD Sender: No OFD packet to send [02:44:52]OFD Sender: No OFD packet to send [02:44:57]OFD Sender: No OFD packet to send [02:45:02]OFD Sender: No OFD packet to send [02:45:07]OFD Sender: No OFD packet to send [02:45:12]OFD Sender: No OFD packet to send [02:45:17]OFD Sender: No OFD packet to send [02:45:22]OFD Sender: No OFD packet to send [02:45:27]OFD Sender: No OFD packet to send [02:45:32]OFD Sender: No OFD packet to send [02:45:37]OFD Sender: No OFD packet to send [02:45:42]OFD Sender: No OFD packet to send [02:45:47]OFD Sender: No OFD packet to send [02:45:52]OFD Sender: No OFD packet to send [02:45:57]OFD Sender: No OFD packet to send [02:46:02]OFD Sender: No OFD packet to send [02:46:07]OFD Sender: No OFD packet to send [02:46:12]OFD Sender: No OFD packet to send [02:46:17]OFD Sender: No OFD packet to send [02:46:22]OFD Sender: No OFD packet to send [02:46:27]OFD Sender: No OFD packet to send [02:46:32]OFD Sender: No OFD packet to send [02:46:37]OFD Sender: No OFD packet to send [02:46:42]OFD Sender: No OFD packet to send [02:46:47]OFD Sender: No OFD packet to send [02:46:52]OFD Sender: No OFD packet to send [02:46:57]OFD Sender: No OFD packet to send [02:47:02]OFD Sender: No OFD packet to send [02:47:07]OFD Sender: No OFD packet to send [02:47:12]OFD Sender: No OFD packet to send [02:47:17]OFD Sender: No OFD packet to send [02:47:22]OFD Sender: No OFD packet to send [02:47:27]OFD Sender: No OFD packet to send [02:47:32]OFD Sender: No OFD packet to send [02:47:37]OFD Sender: No OFD packet to send [02:47:42]OFD Sender: No OFD packet to send [02:47:47]OFD Sender: No OFD packet to send [02:47:52]OFD Sender: No OFD packet to send [02:47:57]OFD Sender: No OFD packet to send [02:48:02]OFD Sender: No OFD packet to send [02:48:07]OFD Sender: No OFD packet to send [02:48:12]OFD Sender: No OFD packet to send [02:48:17]OFD Sender: No OFD packet to send [02:48:22]OFD Sender: No OFD packet to send [02:48:27]OFD Sender: No OFD packet to send [02:48:32]OFD Sender: No OFD packet to send [02:48:37]OFD Sender: No OFD packet to send [02:48:42]OFD Sender: No OFD packet to send [02:48:47]OFD Sender: No OFD packet to send [02:48:52]OFD Sender: No OFD packet to send [02:48:57]OFD Sender: No OFD packet to send [02:49:02]OFD Sender: No OFD packet to send [02:49:07]OFD Sender: No OFD packet to send [02:49:12]OFD Sender: No OFD packet to send [02:49:17]OFD Sender: No OFD packet to send [02:49:22]OFD Sender: No OFD packet to send [02:49:27]OFD Sender: No OFD packet to send [02:49:32]OFD Sender: No OFD packet to send [02:49:37]OFD Sender: No OFD packet to send [02:49:42]OFD Sender: No OFD packet to send [02:49:47]OFD Sender: No OFD packet to send [02:49:52]OFD Sender: No OFD packet to send [02:49:57]OFD Sender: No OFD packet to send [02:50:02]OFD Sender: No OFD packet to send [02:50:07]OFD Sender: No OFD packet to send [02:50:12]OFD Sender: No OFD packet to send [02:50:17]OFD Sender: No OFD packet to send [02:50:22]OFD Sender: No OFD packet to send [02:50:27]OFD Sender: No OFD packet to send [02:50:32]OFD Sender: No OFD packet to send [02:50:37]OFD Sender: No OFD packet to send [02:50:42]OFD Sender: No OFD packet to send [02:50:47]OFD Sender: No OFD packet to send [02:50:52]OFD Sender: No OFD packet to send [02:50:57]OFD Sender: No OFD packet to send [02:51:02]OFD Sender: No OFD packet to send [02:51:07]OFD Sender: No OFD packet to send [02:51:12]OFD Sender: No OFD packet to send [02:51:17]OFD Sender: No OFD packet to send [02:51:22]OFD Sender: No OFD packet to send [02:51:27]OFD Sender: No OFD packet to send [02:51:32]OFD Sender: No OFD packet to send [02:51:37]OFD Sender: No OFD packet to send [02:51:42]OFD Sender: No OFD packet to send [02:51:47]OFD Sender: No OFD packet to send [02:51:52]OFD Sender: No OFD packet to send [02:51:57]OFD Sender: No OFD packet to send [02:52:02]OFD Sender: No OFD packet to send [02:52:07]OFD Sender: No OFD packet to send [02:52:12]OFD Sender: No OFD packet to send [02:52:17]OFD Sender: No OFD packet to send [02:52:22]OFD Sender: No OFD packet to send [02:52:27]OFD Sender: No OFD packet to send [02:52:32]OFD Sender: No OFD packet to send [02:52:37]OFD Sender: No OFD packet to send [02:52:42]OFD Sender: No OFD packet to send [02:52:47]OFD Sender: No OFD packet to send [02:52:52]OFD Sender: No OFD packet to send [02:52:57]OFD Sender: No OFD packet to send [02:53:02]OFD Sender: No OFD packet to send [02:53:07]OFD Sender: No OFD packet to send [02:53:12]OFD Sender: No OFD packet to send [02:53:17]OFD Sender: No OFD packet to send [02:53:22]OFD Sender: No OFD packet to send [02:53:27]OFD Sender: No OFD packet to send [02:53:32]OFD Sender: No OFD packet to send [02:53:37]OFD Sender: No OFD packet to send [02:53:42]OFD Sender: No OFD packet to send [02:53:47]OFD Sender: No OFD packet to send [02:53:52]OFD Sender: No OFD packet to send [02:53:57]OFD Sender: No OFD packet to send [02:54:02]OFD Sender: No OFD packet to send [02:54:07]OFD Sender: No OFD packet to send [02:54:12]OFD Sender: No OFD packet to send [02:54:17]OFD Sender: No OFD packet to send [02:54:22]OFD Sender: No OFD packet to send [02:54:27]OFD Sender: No OFD packet to send [02:54:32]OFD Sender: No OFD packet to send [02:54:37]OFD Sender: No OFD packet to send [02:54:42]OFD Sender: No OFD packet to send [02:54:47]OFD Sender: No OFD packet to send [02:54:52]OFD Sender: No OFD packet to send [02:54:57]OFD Sender: No OFD packet to send [02:55:02]OFD Sender: No OFD packet to send [02:55:07]OFD Sender: No OFD packet to send [02:55:12]OFD Sender: No OFD packet to send [02:55:17]OFD Sender: No OFD packet to send [02:55:22]OFD Sender: No OFD packet to send [02:55:27]OFD Sender: No OFD packet to send [02:55:32]OFD Sender: No OFD packet to send [02:55:37]OFD Sender: No OFD packet to send [02:55:42]OFD Sender: No OFD packet to send [02:55:47]OFD Sender: No OFD packet to send [02:55:52]OFD Sender: No OFD packet to send [02:55:57]OFD Sender: No OFD packet to send [02:56:02]OFD Sender: No OFD packet to send [02:56:07]OFD Sender: No OFD packet to send [02:56:12]OFD Sender: No OFD packet to send [02:56:17]OFD Sender: No OFD packet to send [02:56:22]OFD Sender: No OFD packet to send [02:56:27]OFD Sender: No OFD packet to send [02:56:32]OFD Sender: No OFD packet to send [02:56:37]OFD Sender: No OFD packet to send [02:56:42]OFD Sender: No OFD packet to send [02:56:47]OFD Sender: No OFD packet to send [02:56:52]OFD Sender: No OFD packet to send [02:56:57]OFD Sender: No OFD packet to send [02:57:02]OFD Sender: No OFD packet to send [02:57:07]OFD Sender: No OFD packet to send [02:57:12]OFD Sender: No OFD packet to send [02:57:17]OFD Sender: No OFD packet to send [02:57:22]OFD Sender: No OFD packet to send [02:57:27]OFD Sender: No OFD packet to send [02:57:32]OFD Sender: No OFD packet to send [02:57:37]OFD Sender: No OFD packet to send [02:57:42]OFD Sender: No OFD packet to send [02:57:47]OFD Sender: No OFD packet to send [02:57:52]OFD Sender: No OFD packet to send [02:57:58]OFD Sender: No OFD packet to send [02:58:03]OFD Sender: No OFD packet to send [02:58:08]OFD Sender: No OFD packet to send [02:58:13]OFD Sender: No OFD packet to send [02:58:18]OFD Sender: No OFD packet to send [02:58:23]OFD Sender: No OFD packet to send [02:58:28]OFD Sender: No OFD packet to send [02:58:33]OFD Sender: No OFD packet to send [02:58:38]OFD Sender: No OFD packet to send [02:58:43]OFD Sender: No OFD packet to send [02:58:48]OFD Sender: No OFD packet to send [02:58:53]OFD Sender: No OFD packet to send [02:58:58]OFD Sender: No OFD packet to send [02:59:03]OFD Sender: No OFD packet to send [02:59:08]OFD Sender: No OFD packet to send [02:59:13]OFD Sender: No OFD packet to send [02:59:18]OFD Sender: No OFD packet to send [02:59:23]OFD Sender: No OFD packet to send [02:59:28]OFD Sender: No OFD packet to send [02:59:33]OFD Sender: No OFD packet to send [02:59:38]OFD Sender: No OFD packet to send [02:59:43]OFD Sender: No OFD packet to send [02:59:48]OFD Sender: No OFD packet to send [02:59:53]OFD Sender: No OFD packet to send [02:59:58]OFD Sender: No OFD packet to send [03:00:03]OFD Sender: No OFD packet to send [03:00:08]OFD Sender: No OFD packet to send [03:00:13]OFD Sender: No OFD packet to send [03:00:18]OFD Sender: No OFD packet to send [03:00:23]OFD Sender: No OFD packet to send [03:00:28]OFD Sender: No OFD packet to send [03:00:33]OFD Sender: No OFD packet to send [03:00:38]OFD Sender: No OFD packet to send [03:00:43]OFD Sender: No OFD packet to send [03:00:48]OFD Sender: No OFD packet to send [03:00:53]OFD Sender: No OFD packet to send [03:00:58]OFD Sender: No OFD packet to send [03:01:03]OFD Sender: No OFD packet to send [03:01:08]OFD Sender: No OFD packet to send [03:01:13]OFD Sender: No OFD packet to send [03:01:18]OFD Sender: No OFD packet to send [03:01:23]OFD Sender: No OFD packet to send [03:01:28]OFD Sender: No OFD packet to send [03:01:33]OFD Sender: No OFD packet to send [03:01:38]OFD Sender: No OFD packet to send [03:01:43]OFD Sender: No OFD packet to send [03:01:48]OFD Sender: No OFD packet to send [03:01:53]OFD Sender: No OFD packet to send [03:01:58]OFD Sender: No OFD packet to send [03:02:03]OFD Sender: No OFD packet to send [03:02:08]OFD Sender: No OFD packet to send [03:02:13]OFD Sender: No OFD packet to send [03:02:18]OFD Sender: No OFD packet to send [03:02:23]OFD Sender: No OFD packet to send [03:02:28]OFD Sender: No OFD packet to send [03:02:33]OFD Sender: No OFD packet to send [03:02:38]OFD Sender: No OFD packet to send [03:02:43]OFD Sender: No OFD packet to send [03:02:48]OFD Sender: No OFD packet to send [03:02:53]OFD Sender: No OFD packet to send [03:02:58]OFD Sender: No OFD packet to send [03:03:03]OFD Sender: No OFD packet to send [03:03:08]OFD Sender: No OFD packet to send [03:03:13]OFD Sender: No OFD packet to send [03:03:18]OFD Sender: No OFD packet to send [03:03:23]OFD Sender: No OFD packet to send [03:03:28]OFD Sender: No OFD packet to send [03:03:33]OFD Sender: No OFD packet to send [03:03:38]OFD Sender: No OFD packet to send [03:03:43]OFD Sender: No OFD packet to send [03:03:48]OFD Sender: No OFD packet to send [03:03:53]OFD Sender: No OFD packet to send [03:03:58]OFD Sender: No OFD packet to send [03:04:03]OFD Sender: No OFD packet to send [03:04:08]OFD Sender: No OFD packet to send [03:04:13]OFD Sender: No OFD packet to send [03:04:18]OFD Sender: No OFD packet to send [03:04:23]OFD Sender: No OFD packet to send [03:04:28]OFD Sender: No OFD packet to send [03:04:33]OFD Sender: No OFD packet to send [03:04:38]OFD Sender: No OFD packet to send [03:04:43]OFD Sender: No OFD packet to send [03:04:48]OFD Sender: No OFD packet to send [03:04:53]OFD Sender: No OFD packet to send [03:04:58]OFD Sender: No OFD packet to send [03:05:03]OFD Sender: No OFD packet to send [03:05:08]OFD Sender: No OFD packet to send [03:05:13]OFD Sender: No OFD packet to send [03:05:18]OFD Sender: No OFD packet to send [03:05:23]OFD Sender: No OFD packet to send [03:05:28]OFD Sender: No OFD packet to send [03:05:33]OFD Sender: No OFD packet to send [03:05:38]OFD Sender: No OFD packet to send [03:05:43]OFD Sender: No OFD packet to send [03:05:48]OFD Sender: No OFD packet to send [03:05:53]OFD Sender: No OFD packet to send [03:05:58]OFD Sender: No OFD packet to send [03:06:03]OFD Sender: No OFD packet to send [03:06:08]OFD Sender: No OFD packet to send [03:06:13]OFD Sender: No OFD packet to send [03:06:18]OFD Sender: No OFD packet to send [03:06:23]OFD Sender: No OFD packet to send [03:06:27]accept exits with 8 [03:06:27]New connection [03:06:27]New thread 3066690916 created [03:06:27]Thread 3066547556 joined [03:06:27]Waiting for new connection... [03:06:27] Sock 8.Parse request [03:06:27]Sock 8.Check first char [03:06:27]Sock 8.First char is OK [03:06:27]request: POST /json_proto HTTP/1.0 [03:06:27]Method: POST [03:06:27]URL: /json_proto [03:06:27]Method is POST - this is cgi request [03:06:27]url: /json_proto [03:06:27]query_string will be loaded in cgi processing [03:06:27]execute_cgi json_proto POST (null) [03:06:27]execute_cgi path=json_proto method=POST [03:06:27]POST find Content-Length [03:06:27]Host: 172.17.56.4:8080 [03:06:27]Content-Length: 677 [03:06:27]Content-Type: application/json [03:06:27] [03:06:27]POST finish read [03:06:27]Found Content-Length = 677 [03:06:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459619", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:06:27]execute_script... [03:06:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459619", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.80, "quantity" : 4.560, "sum" : 300.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:06:27]POST & json_proto [03:06:27]process_json_proto [03:06:27]json parsed OK: [03:06:27]protocol is kg_v1.0 [03:06:27]action value=close_receipt [03:06:27]process_action close_receipt [03:06:27]cmd_close_receipt [03:06:27]MH_GetDate [03:06:27]Write to MH i2c: F0 00 00 42 01 32 [03:06:27]Write i2c OK [03:06:27]MH_I2C_Read... [03:06:27]Read from MH i2c: F0 [03:06:27]MH_I2C_Read... [03:06:27]Read from MH i2c: F0 09 00 [03:06:27]MH_I2C_Read... [03:06:27]Read from MH i2c: F0 09 00 42 01 00 B4 E3 95 66 C9 DC B2 64 88 [03:06:27]GetLastDocTimeStamp 1721097214 [03:06:27]current date 1721099188 [03:06:27]FM_GetShiftState [03:06:27]SAM_PROTO_GetShiftState [03:06:27]wFMCommunicate request_size=4 [03:06:27]MH_SAM_APDU [03:06:27]CAPDU: 80 13 01 00 [03:06:27]Write to MH i2c: E2 08 00 43 01 80 13 01 00 00 00 00 00 C1 [03:06:27]Write i2c OK [03:06:27]MH_I2C_Read... [03:06:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:06:27]Read from MH i2c: E2 [03:06:27]MH_I2C_Read... [03:06:27]Read from MH i2c: E2 0E 00 [03:06:27]MH_I2C_Read... [03:06:27]Read from MH i2c: E2 0E 00 43 01 00 09 00 01 49 C0 95 66 00 00 00 00 90 00 D1 [03:06:27]RAPDU: 09 00 01 49 C0 95 66 00 00 00 00 90 00 [03:06:27]wFMCommunicate OK [03:06:27]SAM_PROTO_GetShiftState done [03:06:27]FM_GetShiftState done [03:06:27]opened in 1721090121 [03:06:27]opened+sec_in_day 1721176521 [03:06:27]quantity*price = 30004 [03:06:27]sum+1 = 30006 [03:06:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 9 16.07.2024 03:06 Смена: 449 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165505 ФПД: 107315694105517 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T030628&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165505&fm=107315694105517&tin=02508201610067®Number=0000000000090829&sum=30000 [03:06:28]StoreToDocumentArchive [03:06:28]shift 449 fd 165505 [03:06:28]save to /storage/0449/doc_00165505 [03:06:28]save last doc name /storage/0449/doc_00165505 to /storage/kkm_last_doc_name [03:06:28]save OK [03:06:28]Clear old archive folders... [03:06:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:06:28]tlvbuf is 00619A20 [03:06:28]SAM_PROTO_ClearQueue [03:06:28]wFMCommunicate request_size=4 [03:06:28]MH_SAM_APDU [03:06:28]CAPDU: 80 09 00 00 [03:06:28]Write to MH i2c: E2 08 00 50 01 80 09 00 00 00 00 00 00 C3 [03:06:28]Write i2c OK [03:06:28]MH_I2C_Read... [03:06:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:06:28]Read from MH i2c: E2 [03:06:28]MH_I2C_Read... [03:06:28]Read from MH i2c: E2 03 00 [03:06:28]MH_I2C_Read... [03:06:28]Read from MH i2c: E2 03 00 50 01 00 90 00 C5 [03:06:28]RAPDU: 90 00 [03:06:28]wFMCommunicate OK [03:06:28]SAM_PROTO_ClearQueue done [03:06:28]KKMCreateOFDPacket [03:06:28]OFDProtocolAddRootSTLVToBuf [03:06:28]FM_MakeSignedData [03:06:28]FM_MakeSignedData [03:06:28]SAM_PROTO_SignData [03:06:28]wFMCommunicate request_size=4 [03:06:28]MH_SAM_APDU [03:06:28]CAPDU: 80 0D 01 02 [03:06:28]Write to MH i2c: E2 08 00 51 01 80 0D 01 02 00 00 00 00 CB [03:06:28]Write i2c OK [03:06:28]MH_I2C_Read... [03:06:28]OFD Sender: No OFD packet to send [03:06:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:06:28]Read from MH i2c: E2 [03:06:28]MH_I2C_Read... [03:06:28]Read from MH i2c: E2 03 00 [03:06:28]MH_I2C_Read... [03:06:28]Read from MH i2c: E2 03 00 51 01 00 90 00 C6 [03:06:28]RAPDU: 90 00 [03:06:28]wFMCommunicate OK [03:06:28]wFMCommunicate request_size=255 [03:06:28]MH_SAM_APDU [03:06:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 B4 E3 95 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 81 86 02 00 35 04 06 00 61 [03:06:28]Write to MH i2c: E2 02 01 52 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 B4 E3 95 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 81 86 02 00 35 04 06 00 61 00 00 CC [03:06:28]Write i2c OK [03:06:28]MH_I2C_Read... [03:06:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:06:28]Read from MH i2c: E2 [03:06:28]MH_I2C_Read... [03:06:28]Read from MH i2c: E2 03 00 [03:06:28]MH_I2C_Read... [03:06:28]Read from MH i2c: E2 03 00 52 01 00 90 00 C7 [03:06:28]RAPDU: 90 00 [03:06:28]wFMCommunicate OK [03:06:28]wFMCommunicate request_size=10 [03:06:28]MH_SAM_APDU [03:06:28]CAPDU: 80 0D 02 02 05 9A 61 D3 73 AD [03:06:28]Write to MH i2c: E2 0D 00 53 01 80 0D 02 02 05 00 9A 61 D3 73 AD 00 00 C6 [03:06:28]Write i2c OK [03:06:28]MH_I2C_Read... [03:06:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:06:28]Read from MH i2c: E2 [03:06:28]MH_I2C_Read... [03:06:28]Read from MH i2c: E2 03 00 [03:06:28]MH_I2C_Read... [03:06:28]Read from MH i2c: E2 03 00 53 01 00 90 00 C8 [03:06:28]RAPDU: 90 00 [03:06:28]wFMCommunicate OK [03:06:28]wFMCommunicate request_size=4 [03:06:28]MH_SAM_APDU [03:06:28]CAPDU: 80 0D 03 02 [03:06:28]Write to MH i2c: E2 08 00 54 01 80 0D 03 02 00 00 00 00 D0 [03:06:28]Write i2c OK [03:06:28]MH_I2C_Read... [03:06:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:06:28]Read from MH i2c: E2 [03:06:28]MH_I2C_Read... [03:06:28]Read from MH i2c: E2 0B 00 [03:06:28]MH_I2C_Read... [03:06:28]Read from MH i2c: E2 0B 00 54 01 00 65 C4 B3 77 5A 46 50 0F 90 00 23 [03:06:28]RAPDU: 65 C4 B3 77 5A 46 50 0F 90 00 [03:06:28]wFMCommunicate OK [03:06:28]SAM_PROTO_SignData done [03:06:28]FM_MakeSignedData done [03:06:28]CreateOFDProtocolMessage [03:06:28]wFMCommunicate request_size=4 [03:06:28]MH_SAM_APDU [03:06:28]CAPDU: 80 11 00 00 [03:06:28]Write to MH i2c: E2 08 00 55 01 80 11 00 00 00 00 00 00 D0 [03:06:28]Write i2c OK [03:06:28]MH_I2C_Read... [03:06:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:06:29]Read from MH i2c: E2 [03:06:29]MH_I2C_Read... [03:06:29]Read from MH i2c: E2 17 00 [03:06:29]MH_I2C_Read... [03:06:29]Read from MH i2c: E2 17 00 55 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 26 [03:06:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [03:06:29]wFMCommunicate OK [03:06:29]CreateOFDProtocolMessage done [03:06:29]OFDSenderStorePacket 165505 [03:06:29]StoreOFDPacket docnum=165505 [03:06:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E9 45 07 01 AA 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 B4 E3 95 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 81 86 02 00 35 04 06 00 61 9A 61 D3 73 AD 65 C4 B3 77 5A 46 50 0F [03:06:29]CheckFolder [03:06:29]dirname=/storage/ofd_packets [03:06:29]CheckFolder done [03:06:29]ProducePacketName [03:06:29]name=ofd_packets/00165505 [03:06:29]NVStorageSaveData ofd_packets/00165505 [03:06:29]File name is /storage/ofd_packets/00165505 [03:06:29]Write 301 bytes [03:06:29]NVStorageSaveData done [03:06:29]OFDSenderStorePacket done [03:06:29]KKMCreateOFDPacket done [03:06:29]NVStorageSaveData kkm_last_timestamp [03:06:29]File name is /storage/kkm_last_timestamp [03:06:29]Write 4 bytes [03:06:29]NVStorageSaveData done [03:06:29]ExternCall_PrintAddStr [03:06:29]wPrintStart [03:06:29]Write to MH i2c: 01 00 00 56 01 57 [03:06:29]Write i2c OK [03:06:29]MH_I2C_Read... [03:06:29]Read from MH i2c: 01 [03:06:29]MH_I2C_Read... [03:06:29]Read from MH i2c: 01 07 00 [03:06:29]MH_I2C_Read... [03:06:29]Read from MH i2c: 01 07 00 56 01 00 00 00 00 00 FF 0F 6C [03:06:29]RasterBufferAndPrint [03:06:29]line Счет N : (1)459619 [03:06:29]line ИНН: 02508201610067 [03:06:29]line Контрольно-Кассовый Чек [03:06:29]line ПРОДАЖА [03:06:29]line ТРК (МРК, ГНК) : 12 [03:06:29]line Товар: 2710124130 [03:06:29]line Аи-92-К-5 [03:06:29]line 4.560 * 65.80 [03:06:29]line = 300.05 [03:06:29]line НДС 12% НСП 1% [03:06:29]line > о реализуемом товаре [03:06:29]line ОКРУГЛЕНИЕ: -0.05 [03:06:29]line ИТОГО: 300.00 [03:06:29]line Внесено: 300.00 [03:06:29]line СДАЧА: 0.00 [03:06:29]line НСП 1% : 2.65 [03:06:29]line НДС 12% : 31.86 [03:06:29]line Наличными: 300.00 [03:06:29]line Безнал.: 0.00 [03:06:29]line Место: АЗС № 72 "Партнер Нефть" [03:06:29]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [03:06:29]line СНО: Общий режим [03:06:29]line Чек 9 16.07.2024 03:06 [03:06:29]line Смена: 449 ФФД: 1.0 [03:06:29]line ЗНМ: 0300000160 [03:06:29]line РНМ: 0000000000090829 [03:06:29]line Версия ККМ: 001 [03:06:29]line ФМ: 0000000000874718 [03:06:29]line ФД: 165505 [03:06:29]line ФПД: 107315694105517 [03:06:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T030628&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165505&fm=107315694105517&tin=02508201610067®Number=0000000000090829&sum=30000 [03:06:29]OFD Sender: Processing packet 165505 [packets to send 106, broken 105] [03:06:29]ProducePacketName [03:06:29]name=ofd_packets/00165505 [03:06:29]OFD Sender: To server: pG, [03:06:29]CommunicateWithHost lk.salyk.kg:30040 [03:06:29]ConnectInit lk.salyk.kg [03:06:29]written 0, free lines is 4095 [03:06:29]Connected sock=10 [03:06:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0F 01 00 00 E9 45 07 01 AA 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 D0 11 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 35 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 B4 E3 95 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 81 86 02 00 35 04 06 00 61 9A 61 D3 73 AD 65 C4 B3 77 5A 46 50 0F [03:06:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 D1 DD 47 00 73 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 37 31 38 10 04 04 00 81 86 02 00 F4 03 04 00 3C 8A 95 66 B6 04 01 00 00 CB AA 4A 5A 79 27 B8 BD [03:06:29]CommunicateWithHost err = 0 [03:06:29]CheckOFDResponse [03:06:29]1017 (14) - 77093643461234 [03:06:29]1041 (16) - 0000000000874718 [03:06:29]1040 (4) - 165505 [03:06:29]1012 (4) - 15.07.2024 20:44 [03:06:29]1206 (1) - 0 [03:06:29]OFD Sender: Remove packet 165505 [03:06:29]ProducePacketName [03:06:29]name=ofd_packets/00165505 [03:06:29]NVStorageDeleteData [03:06:29]Write to MH i2c: 01 00 00 80 01 81 [03:06:29]Write i2c OK [03:06:29]MH_I2C_Read... [03:06:29]Read from MH i2c: 01 [03:06:29]MH_I2C_Read... [03:06:29]Read from MH i2c: 01 07 00 [03:06:29]MH_I2C_Read... [03:06:29]Read from MH i2c: 01 07 00 80 01 00 00 00 00 00 EB 0C 7F [03:06:29]RasterBufferAndPrint [03:06:29]line [03:06:29]line [03:06:29]line [03:06:29]line [03:06:29]line [03:06:29]written 0, free lines is 3314 [03:06:29]MH_Cut [03:06:29]Write to MH i2c: D1 01 00 87 01 01 5A [03:06:29]Write i2c OK [03:06:29]MH_I2C_Read... [03:06:29]Read from MH i2c: D1 [03:06:29]MH_I2C_Read... [03:06:29]Read from MH i2c: D1 01 00 [03:06:29]MH_I2C_Read... [03:06:29]Read from MH i2c: D1 01 00 87 01 00 59 [03:06:29]Write to MH i2c: 01 00 00 88 01 89 [03:06:29]Write i2c OK [03:06:29]MH_I2C_Read... [03:06:30]OFD Sender: No OFD packet to send [03:06:30]*** Cut start [03:06:30]*** Partial cut [03:06:30]*** CUTSNS_PIN = 1 [03:06:30]*** CUTSNS_PIN = 0 [03:06:30]*** Brake cut motor [03:06:31]Read from MH i2c: 01 [03:06:31]MH_I2C_Read... [03:06:31]*** Stop cut motor [03:06:31]*** Cut end [03:06:31]Read from MH i2c: 01 07 00 [03:06:31]MH_I2C_Read... [03:06:31]Read from MH i2c: 01 07 00 88 01 00 00 00 00 00 FF 0F 9E [03:06:31]process_action close_receipt done [03:06:31]requested_data is exist [03:06:31]produce_requested_data [03:06:31]requested_item fm.sn is exist - process it [03:06:31]wFMCommunicate request_size=4 [03:06:31]MH_SAM_APDU [03:06:31]CAPDU: 80 11 00 00 [03:06:31]Write to MH i2c: E2 08 00 89 01 80 11 00 00 00 00 00 00 04 [03:06:31]Write i2c OK [03:06:31]MH_I2C_Read... [03:06:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:06:31]Read from MH i2c: E2 [03:06:31]MH_I2C_Read... [03:06:31]Read from MH i2c: E2 17 00 [03:06:31]MH_I2C_Read... [03:06:31]Read from MH i2c: E2 17 00 89 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 5A [03:06:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [03:06:31]wFMCommunicate OK [03:06:31]requested_item fd.num is exist - process it [03:06:31]SAM_PROTO_GetFieldsCounters [03:06:31]wFMCommunicate request_size=4 [03:06:31]MH_SAM_APDU [03:06:31]CAPDU: 80 13 00 00 [03:06:31]Write to MH i2c: E2 08 00 8A 01 80 13 00 00 00 00 00 00 07 [03:06:31]Write i2c OK [03:06:31]MH_I2C_Read... [03:06:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:06:31]Read from MH i2c: E2 [03:06:31]MH_I2C_Read... [03:06:31]Read from MH i2c: E2 62 00 [03:06:31]MH_I2C_Read... [03:06:31]Read from MH i2c: E2 62 00 8A 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 81 86 02 00 0E 04 04 00 C1 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 14 [03:06: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 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 81 86 02 00 0E 04 04 00 C1 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 [03:06:31]wFMCommunicate OK [03:06:31]SAM_PROTO_GetFieldsCounters done [03:06:31]requested_item shift.num is exist - process it [03:06:31]requested_item shift.opened is exist - process it [03:06:31]req_shift_opened [03:06:31]FM_GetShiftState [03:06:31]SAM_PROTO_GetShiftState [03:06:31]wFMCommunicate request_size=4 [03:06:31]MH_SAM_APDU [03:06:31]CAPDU: 80 13 01 00 [03:06:31]Write to MH i2c: E2 08 00 8B 01 80 13 01 00 00 00 00 00 09 [03:06:31]Write i2c OK [03:06:31]MH_I2C_Read... [03:06:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:06:31]Read from MH i2c: E2 [03:06:31]MH_I2C_Read... [03:06:31]Read from MH i2c: E2 0E 00 [03:06:31]MH_I2C_Read... [03:06:31]Read from MH i2c: E2 0E 00 8B 01 00 09 00 01 49 C0 95 66 00 00 00 00 90 00 19 [03:06:31]RAPDU: 09 00 01 49 C0 95 66 00 00 00 00 90 00 [03:06:31]wFMCommunicate OK [03:06:31]SAM_PROTO_GetShiftState done [03:06:31]FM_GetShiftState done [03:06:31]req_shift_opened done [03:06:31]requested_item shift.open_date is exist - process it [03:06:31]req_shift_open_date [03:06:31]req_shift_open_date done [03:06:31]produce_requested_data done [03:06:31]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165505,"shift.num":449,"shift.opened":1,"shift.open_date":1721090121} [03:06:31]process_action_free close_receipt [03:06:31]json_value_free [03:06:31]json_value_free done [03:06:31]process_json_proto returns [03:06:31]Send response to host [03:06:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165505,"shift.num":449,"shift.opened":1,"shift.open_date":1721090121}}} [03:06:31]free response buf [03:06:31]execute_script done [03:06:31]execute_script returns [03:06:31]free content buf [03:06:31]Sock 8.Close socket [03:06:31]Sock 8.Thread stoped [03:06:35]OFD Sender: No OFD packet to send [03:06:40]OFD Sender: No OFD packet to send [03:06:45]OFD Sender: No OFD packet to send [03:06:50]OFD Sender: No OFD packet to send [03:06:55]OFD Sender: No OFD packet to send [03:07:00]OFD Sender: No OFD packet to send [03:07:05]OFD Sender: No OFD packet to send [03:07:10]OFD Sender: No OFD packet to send [03:07:15]OFD Sender: No OFD packet to send [03:07:20]OFD Sender: No OFD packet to send [03:07:25]OFD Sender: No OFD packet to send [03:07:30]OFD Sender: No OFD packet to send [03:07:35]OFD Sender: No OFD packet to send [03:07:40]OFD Sender: No OFD packet to send [03:07:45]OFD Sender: No OFD packet to send [03:07:50]OFD Sender: No OFD packet to send [03:07:55]OFD Sender: No OFD packet to send [03:08:00]OFD Sender: No OFD packet to send [03:08:05]OFD Sender: No OFD packet to send [03:08:10]OFD Sender: No OFD packet to send [03:08:15]OFD Sender: No OFD packet to send [03:08:20]OFD Sender: No OFD packet to send [03:08:25]OFD Sender: No OFD packet to send [03:08:30]OFD Sender: No OFD packet to send [03:08:35]OFD Sender: No OFD packet to send [03:08:40]OFD Sender: No OFD packet to send [03:08:45]OFD Sender: No OFD packet to send [03:08:50]OFD Sender: No OFD packet to send [03:08:55]OFD Sender: No OFD packet to send [03:09:00]OFD Sender: No OFD packet to send [03:09:05]OFD Sender: No OFD packet to send [03:09:10]OFD Sender: No OFD packet to send [03:09:15]OFD Sender: No OFD packet to send [03:09:20]OFD Sender: No OFD packet to send [03:09:25]OFD Sender: No OFD packet to send [03:09:30]OFD Sender: No OFD packet to send [03:09:35]OFD Sender: No OFD packet to send [03:09:40]OFD Sender: No OFD packet to send [03:09:45]OFD Sender: No OFD packet to send [03:09:50]OFD Sender: No OFD packet to send [03:09:55]OFD Sender: No OFD packet to send [03:10:00]OFD Sender: No OFD packet to send [03:10:05]OFD Sender: No OFD packet to send [03:10:10]OFD Sender: No OFD packet to send [03:10:15]OFD Sender: No OFD packet to send [03:10:20]OFD Sender: No OFD packet to send [03:10:25]OFD Sender: No OFD packet to send [03:10:30]OFD Sender: No OFD packet to send [03:10:35]OFD Sender: No OFD packet to send [03:10:40]OFD Sender: No OFD packet to send [03:10:45]OFD Sender: No OFD packet to send [03:10:50]OFD Sender: No OFD packet to send [03:10:55]OFD Sender: No OFD packet to send [03:11:00]OFD Sender: No OFD packet to send [03:11:05]OFD Sender: No OFD packet to send [03:11:10]OFD Sender: No OFD packet to send [03:11:15]OFD Sender: No OFD packet to send [03:11:20]OFD Sender: No OFD packet to send [03:11:25]OFD Sender: No OFD packet to send [03:11:30]OFD Sender: No OFD packet to send [03:11:35]OFD Sender: No OFD packet to send [03:11:40]OFD Sender: No OFD packet to send [03:11:45]OFD Sender: No OFD packet to send [03:11:50]OFD Sender: No OFD packet to send [03:11:55]OFD Sender: No OFD packet to send [03:12:00]OFD Sender: No OFD packet to send [03:12:05]OFD Sender: No OFD packet to send [03:12:10]OFD Sender: No OFD packet to send [03:12:15]OFD Sender: No OFD packet to send [03:12:20]OFD Sender: No OFD packet to send [03:12:25]OFD Sender: No OFD packet to send [03:12:30]OFD Sender: No OFD packet to send [03:12:35]OFD Sender: No OFD packet to send [03:12:40]OFD Sender: No OFD packet to send [03:12:45]OFD Sender: No OFD packet to send [03:12:50]OFD Sender: No OFD packet to send [03:12:55]OFD Sender: No OFD packet to send [03:13:00]OFD Sender: No OFD packet to send [03:13:05]OFD Sender: No OFD packet to send [03:13:10]OFD Sender: No OFD packet to send [03:13:15]OFD Sender: No OFD packet to send [03:13:20]OFD Sender: No OFD packet to send [03:13:25]OFD Sender: No OFD packet to send [03:13:30]OFD Sender: No OFD packet to send [03:13:35]OFD Sender: No OFD packet to send [03:13:40]OFD Sender: No OFD packet to send [03:13:45]OFD Sender: No OFD packet to send [03:13:50]OFD Sender: No OFD packet to send [03:13:55]OFD Sender: No OFD packet to send [03:14:00]OFD Sender: No OFD packet to send [03:14:05]OFD Sender: No OFD packet to send [03:14:10]OFD Sender: No OFD packet to send [03:14:15]OFD Sender: No OFD packet to send [03:14:20]OFD Sender: No OFD packet to send [03:14:25]OFD Sender: No OFD packet to send [03:14:30]OFD Sender: No OFD packet to send [03:14:35]OFD Sender: No OFD packet to send [03:14:40]OFD Sender: No OFD packet to send [03:14:45]OFD Sender: No OFD packet to send [03:14:50]OFD Sender: No OFD packet to send [03:14:55]OFD Sender: No OFD packet to send [03:15:00]OFD Sender: No OFD packet to send [03:15:05]OFD Sender: No OFD packet to send [03:15:10]OFD Sender: No OFD packet to send [03:15:15]OFD Sender: No OFD packet to send [03:15:20]OFD Sender: No OFD packet to send [03:15:21]accept exits with 9 [03:15:21]New connection [03:15:21]New thread 3066547556 created [03:15:21]Thread 3066690916 joined [03:15:21]Waiting for new connection... [03:15:21] Sock 9.Parse request [03:15:21]Sock 9.Check first char [03:15:21]Sock 9.First char is OK [03:15:21]request: POST /json_proto HTTP/1.0 [03:15:21]Method: POST [03:15:21]URL: /json_proto [03:15:21]Method is POST - this is cgi request [03:15:21]url: /json_proto [03:15:21]query_string will be loaded in cgi processing [03:15:21]execute_cgi json_proto POST (null) [03:15:21]execute_cgi path=json_proto method=POST [03:15:21]POST find Content-Length [03:15:21]Host: 172.17.56.4:8080 [03:15:21]Content-Length: 679 [03:15:21]Content-Type: application/json [03:15:21] [03:15:21]POST finish read [03:15:21]Found Content-Length = 679 [03:15:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459620", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\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" ] } } [03:15:21]execute_script... [03:15:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)459620", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\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" ] } } [03:15:21]POST & json_proto [03:15:21]process_json_proto [03:15:21]json parsed OK: [03:15:21]protocol is kg_v1.0 [03:15:21]action value=close_receipt [03:15:21]process_action close_receipt [03:15:21]cmd_close_receipt [03:15:21]MH_GetDate [03:15:21]Write to MH i2c: F0 00 00 8C 01 7C [03:15:21]Write i2c OK [03:15:21]MH_I2C_Read... [03:15:21]Read from MH i2c: F0 [03:15:21]MH_I2C_Read... [03:15:21]Read from MH i2c: F0 09 00 [03:15:21]MH_I2C_Read... [03:15:21]Read from MH i2c: F0 09 00 8C 01 00 CB E5 95 66 C9 DC B2 64 EB [03:15:21]GetLastDocTimeStamp 1721099188 [03:15:21]current date 1721099723 [03:15:21]FM_GetShiftState [03:15:21]SAM_PROTO_GetShiftState [03:15:21]wFMCommunicate request_size=4 [03:15:21]MH_SAM_APDU [03:15:21]CAPDU: 80 13 01 00 [03:15:21]Write to MH i2c: E2 08 00 8D 01 80 13 01 00 00 00 00 00 0B [03:15:21]Write i2c OK [03:15:21]MH_I2C_Read... [03:15:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:15:22]Read from MH i2c: E2 [03:15:22]MH_I2C_Read... [03:15:22]Read from MH i2c: E2 0E 00 [03:15:22]MH_I2C_Read... [03:15:22]Read from MH i2c: E2 0E 00 8D 01 00 09 00 01 49 C0 95 66 00 00 00 00 90 00 1B [03:15:22]RAPDU: 09 00 01 49 C0 95 66 00 00 00 00 90 00 [03:15:22]wFMCommunicate OK [03:15:22]SAM_PROTO_GetShiftState done [03:15:22]FM_GetShiftState done [03:15:22]opened in 1721090121 [03:15:22]opened+sec_in_day 1721176521 [03:15:22]quantity*price = 100012 [03:15:22]sum+1 = 100014 [03:15:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 72 "Партнер Нефть" Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 СНО: Общий режим Чек 10 16.07.2024 03:15 Смена: 449 ФФД: 1.0 ЗНМ: 0300000160 РНМ: 0000000000090829 Версия ККМ: 001 ФМ: 0000000000874718 ФД: 165506 ФПД: 203969494694124 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T031523&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165506&fm=203969494694124&tin=02508201610067®Number=0000000000090829&sum=100000 [03:15:23]StoreToDocumentArchive [03:15:23]shift 449 fd 165506 [03:15:23]save to /storage/0449/doc_00165506 [03:15:23]save last doc name /storage/0449/doc_00165506 to /storage/kkm_last_doc_name [03:15:23]save OK [03:15:23]Clear old archive folders... [03:15:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [03:15:23]tlvbuf is 005E87B0 [03:15:23]SAM_PROTO_ClearQueue [03:15:23]wFMCommunicate request_size=4 [03:15:23]MH_SAM_APDU [03:15:23]CAPDU: 80 09 00 00 [03:15:23]Write to MH i2c: E2 08 00 9A 01 80 09 00 00 00 00 00 00 0D [03:15:23]Write i2c OK [03:15:23]MH_I2C_Read... [03:15:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:15:23]Read from MH i2c: E2 [03:15:23]MH_I2C_Read... [03:15:23]Read from MH i2c: E2 03 00 [03:15:23]MH_I2C_Read... [03:15:23]Read from MH i2c: E2 03 00 9A 01 00 90 00 0F [03:15:23]RAPDU: 90 00 [03:15:23]wFMCommunicate OK [03:15:23]SAM_PROTO_ClearQueue done [03:15:23]KKMCreateOFDPacket [03:15:23]OFDProtocolAddRootSTLVToBuf [03:15:23]FM_MakeSignedData [03:15:23]FM_MakeSignedData [03:15:23]SAM_PROTO_SignData [03:15:23]wFMCommunicate request_size=4 [03:15:23]MH_SAM_APDU [03:15:23]CAPDU: 80 0D 01 02 [03:15:23]Write to MH i2c: E2 08 00 9B 01 80 0D 01 02 00 00 00 00 15 [03:15:23]Write i2c OK [03:15:23]MH_I2C_Read... [03:15:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:15:23]Read from MH i2c: E2 [03:15:23]MH_I2C_Read... [03:15:23]Read from MH i2c: E2 03 00 [03:15:23]MH_I2C_Read... [03:15:23]Read from MH i2c: E2 03 00 9B 01 00 90 00 10 [03:15:23]RAPDU: 90 00 [03:15:23]wFMCommunicate OK [03:15:23]wFMCommunicate request_size=255 [03:15:23]MH_SAM_APDU [03:15:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 0A 00 00 00 F4 03 04 00 CB E5 95 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 82 86 02 00 35 04 06 00 B9 82 59 46 [03:15:23]Write to MH i2c: E2 02 01 9C 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 0A 00 00 00 F4 03 04 00 CB E5 95 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 82 86 02 00 35 04 06 00 B9 82 59 46 00 00 31 [03:15:23]Write i2c OK [03:15:23]MH_I2C_Read... [03:15:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:15:23]Read from MH i2c: E2 [03:15:23]MH_I2C_Read... [03:15:23]Read from MH i2c: E2 03 00 [03:15:23]MH_I2C_Read... [03:15:23]Read from MH i2c: E2 03 00 9C 01 00 90 00 11 [03:15:23]RAPDU: 90 00 [03:15:23]wFMCommunicate OK [03:15:23]wFMCommunicate request_size=7 [03:15:23]MH_SAM_APDU [03:15:23]CAPDU: 80 0D 02 02 02 B8 EC [03:15:23]Write to MH i2c: E2 0A 00 9D 01 80 0D 02 02 02 00 B8 EC 00 00 C0 [03:15:23]Write i2c OK [03:15:23]MH_I2C_Read... [03:15:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:15:23]Read from MH i2c: E2 [03:15:23]MH_I2C_Read... [03:15:23]Read from MH i2c: E2 03 00 [03:15:23]MH_I2C_Read... [03:15:23]Read from MH i2c: E2 03 00 9D 01 00 90 00 12 [03:15:23]RAPDU: 90 00 [03:15:23]wFMCommunicate OK [03:15:23]wFMCommunicate request_size=4 [03:15:23]MH_SAM_APDU [03:15:23]CAPDU: 80 0D 03 02 [03:15:23]Write to MH i2c: E2 08 00 9E 01 80 0D 03 02 00 00 00 00 1A [03:15:23]Write i2c OK [03:15:23]MH_I2C_Read... [03:15:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:15:23]Read from MH i2c: E2 [03:15:23]MH_I2C_Read... [03:15:23]Read from MH i2c: E2 0B 00 [03:15:23]MH_I2C_Read... [03:15:23]Read from MH i2c: E2 0B 00 9E 01 00 CB E4 62 BF BC 31 70 09 90 00 51 [03:15:23]RAPDU: CB E4 62 BF BC 31 70 09 90 00 [03:15:23]wFMCommunicate OK [03:15:23]SAM_PROTO_SignData done [03:15:23]FM_MakeSignedData done [03:15:23]CreateOFDProtocolMessage [03:15:23]wFMCommunicate request_size=4 [03:15:23]MH_SAM_APDU [03:15:23]CAPDU: 80 11 00 00 [03:15:23]Write to MH i2c: E2 08 00 9F 01 80 11 00 00 00 00 00 00 1A [03:15:23]Write i2c OK [03:15:23]MH_I2C_Read... [03:15:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:15:23]Read from MH i2c: E2 [03:15:23]MH_I2C_Read... [03:15:23]Read from MH i2c: E2 17 00 [03:15:23]MH_I2C_Read... [03:15:23]Read from MH i2c: E2 17 00 9F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 70 [03:15:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [03:15:23]wFMCommunicate OK [03:15:23]CreateOFDProtocolMessage done [03:15:23]OFDSenderStorePacket 165506 [03:15:23]StoreOFDPacket docnum=165506 [03:15:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 B6 E9 04 01 5C 1D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 0A 00 00 00 F4 03 04 00 CB E5 95 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 82 86 02 00 35 04 06 00 B9 82 59 46 B8 EC CB E4 62 BF BC 31 70 09 [03:15:23]CheckFolder [03:15:23]dirname=/storage/ofd_packets [03:15:23]CheckFolder done [03:15:23]ProducePacketName [03:15:23]name=ofd_packets/00165506 [03:15:23]NVStorageSaveData ofd_packets/00165506 [03:15:23]File name is /storage/ofd_packets/00165506 [03:15:23]Write 298 bytes [03:15:23]NVStorageSaveData done [03:15:23]OFDSenderStorePacket done [03:15:23]KKMCreateOFDPacket done [03:15:23]NVStorageSaveData kkm_last_timestamp [03:15:23]File name is /storage/kkm_last_timestamp [03:15:23]Write 4 bytes [03:15:23]NVStorageSaveData done [03:15:23]ExternCall_PrintAddStr [03:15:23]wPrintStart [03:15:23]Write to MH i2c: 01 00 00 A0 01 A1 [03:15:23]Write i2c OK [03:15:23]MH_I2C_Read... [03:15:23]Read from MH i2c: 01 [03:15:23]MH_I2C_Read... [03:15:23]Read from MH i2c: 01 07 00 [03:15:23]MH_I2C_Read... [03:15:23]Read from MH i2c: 01 07 00 A0 01 00 00 00 00 00 FF 0F B6 [03:15:23]RasterBufferAndPrint [03:15:23]line Счет N : (1)459620 [03:15:23]line ИНН: 02508201610067 [03:15:23]line Контрольно-Кассовый Чек [03:15:23]line ПРОДАЖА [03:15:23]line ТРК (МРК, ГНК) : 21 [03:15:23]line Товар: 2710194210 [03:15:23]line ДТ-К-5 [03:15:23]line 13.910 * 71.90 [03:15:23]line = 1000.13 [03:15:23]line НДС 12% НСП 1% [03:15:23]line > о реализуемом товаре [03:15:23]line ОКРУГЛЕНИЕ: -0.13 [03:15:23]line ИТОГО: 1000.00 [03:15:23]line Внесено: 1000.00 [03:15:23]line СДАЧА: 0.00 [03:15:23]line НСП 1% : 8.85 [03:15:23]line НДС 12% : 106.21 [03:15:23]line Наличными: 1000.00 [03:15:23]line Безнал.: 0.00 [03:15:23]line Место: АЗС № 72 "Партнер Нефть" [03:15:23]line Адрес: 720001, с. Бакай Ата, 42.486778, 71.934004 [03:15:23]line СНО: Общий режим [03:15:23]line Чек 10 16.07.2024 03:15 [03:15:23]line Смена: 449 ФФД: 1.0 [03:15:23]line ЗНМ: 0300000160 [03:15:23]line РНМ: 0000000000090829 [03:15:23]line Версия ККМ: 001 [03:15:23]line ФМ: 0000000000874718 [03:15:23]line ФД: 165506 [03:15:23]line ФПД: 203969494694124 [03:15:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T031523&type=1&operation_type=1&fn_number=0000000000874718&fd_number=165506&fm=203969494694124&tin=02508201610067®Number=0000000000090829&sum=100000 [03:15:24]OFD Sender: Processing packet 165506 [packets to send 106, broken 105] [03:15:24]ProducePacketName [03:15:24]name=ofd_packets/00165506 [03:15:24]OFD Sender: To server: pG, [03:15:24]CommunicateWithHost lk.salyk.kg:30040 [03:15:24]ConnectInit lk.salyk.kg [03:15:24]written 0, free lines is 4095 [03:15:24]Connected sock=10 [03:15:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0C 01 00 00 B6 E9 04 01 5C 1D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 0A 00 00 00 F4 03 04 00 CB E5 95 66 0E 04 04 00 C1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 82 86 02 00 35 04 06 00 B9 82 59 46 B8 EC CB E4 62 BF BC 31 70 09 [03:15:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 4F 00 00 00 7B 2E 47 00 67 CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 10 04 04 00 82 86 02 00 F4 03 04 00 53 8C 95 66 B6 04 01 00 00 8A 23 0C BD 8B 39 E1 8A [03:15:24]CommunicateWithHost err = 0 [03:15:24]CheckOFDResponse [03:15:24]1017 (14) - 77093643461234 [03:15:24]1041 (16) - 0000000000874718 [03:15:24]1040 (4) - 165506 [03:15:24]1012 (4) - 15.07.2024 20:53 [03:15:24]1206 (1) - 0 [03:15:24]OFD Sender: Remove packet 165506 [03:15:24]ProducePacketName [03:15:24]name=ofd_packets/00165506 [03:15:24]NVStorageDeleteData [03:15:24]Write to MH i2c: 01 00 00 CA 01 CB [03:15:24]Write i2c OK [03:15:24]MH_I2C_Read... [03:15:24]Read from MH i2c: 01 [03:15:24]MH_I2C_Read... [03:15:24]Read from MH i2c: 01 07 00 [03:15:24]MH_I2C_Read... [03:15:24]Read from MH i2c: 01 07 00 CA 01 00 00 00 00 00 04 0D E3 [03:15:24]RasterBufferAndPrint [03:15:24]line [03:15:24]line [03:15:24]line [03:15:24]line [03:15:24]line [03:15:24]written 0, free lines is 3338 [03:15:24]MH_Cut [03:15:24]Write to MH i2c: D1 01 00 D1 01 01 A4 [03:15:24]Write i2c OK [03:15:24]MH_I2C_Read... [03:15:24]Read from MH i2c: D1 [03:15:24]MH_I2C_Read... [03:15:24]Read from MH i2c: D1 01 00 [03:15:24]MH_I2C_Read... [03:15:24]Read from MH i2c: D1 01 00 D1 01 00 A3 [03:15:24]Write to MH i2c: 01 00 00 D2 01 D3 [03:15:24]Write i2c OK [03:15:24]MH_I2C_Read... [03:15:24]OFD Sender: No OFD packet to send [03:15:25]*** Cut start [03:15:25]*** Partial cut [03:15:25]*** CUTSNS_PIN = 1 [03:15:25]*** CUTSNS_PIN = 0 [03:15:25]*** Brake cut motor [03:15:25]Read from MH i2c: 01 [03:15:25]MH_I2C_Read... [03:15:25]*** Stop cut motor [03:15:25]*** Cut end [03:15:25]Read from MH i2c: 01 07 00 [03:15:25]MH_I2C_Read... [03:15:25]Read from MH i2c: 01 07 00 D2 01 00 00 00 00 00 FF 0F E8 [03:15:25]process_action close_receipt done [03:15:25]requested_data is exist [03:15:25]produce_requested_data [03:15:25]requested_item fm.sn is exist - process it [03:15:25]wFMCommunicate request_size=4 [03:15:25]MH_SAM_APDU [03:15:25]CAPDU: 80 11 00 00 [03:15:25]Write to MH i2c: E2 08 00 D3 01 80 11 00 00 00 00 00 00 4E [03:15:25]Write i2c OK [03:15:25]MH_I2C_Read... [03:15:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:15:25]Read from MH i2c: E2 [03:15:25]MH_I2C_Read... [03:15:25]Read from MH i2c: E2 17 00 [03:15:25]MH_I2C_Read... [03:15:25]Read from MH i2c: E2 17 00 D3 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 A4 [03:15:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 90 00 [03:15:25]wFMCommunicate OK [03:15:25]requested_item fd.num is exist - process it [03:15:25]SAM_PROTO_GetFieldsCounters [03:15:25]wFMCommunicate request_size=4 [03:15:25]MH_SAM_APDU [03:15:25]CAPDU: 80 13 00 00 [03:15:25]Write to MH i2c: E2 08 00 D4 01 80 13 00 00 00 00 00 00 51 [03:15:25]Write i2c OK [03:15:25]MH_I2C_Read... [03:15:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:15:25]Read from MH i2c: E2 [03:15:25]MH_I2C_Read... [03:15:25]Read from MH i2c: E2 62 00 [03:15:25]MH_I2C_Read... [03:15:25]Read from MH i2c: E2 62 00 D4 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 82 86 02 00 0E 04 04 00 C1 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [03:15:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 37 31 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 32 39 10 04 04 00 82 86 02 00 0E 04 04 00 C1 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 [03:15:25]wFMCommunicate OK [03:15:25]SAM_PROTO_GetFieldsCounters done [03:15:25]requested_item shift.num is exist - process it [03:15:25]requested_item shift.opened is exist - process it [03:15:25]req_shift_opened [03:15:25]FM_GetShiftState [03:15:25]SAM_PROTO_GetShiftState [03:15:25]wFMCommunicate request_size=4 [03:15:25]MH_SAM_APDU [03:15:25]CAPDU: 80 13 01 00 [03:15:25]Write to MH i2c: E2 08 00 D5 01 80 13 01 00 00 00 00 00 53 [03:15:25]Write i2c OK [03:15:25]MH_I2C_Read... [03:15:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:15:25]Read from MH i2c: E2 [03:15:25]MH_I2C_Read... [03:15:25]Read from MH i2c: E2 0E 00 [03:15:25]MH_I2C_Read... [03:15:25]Read from MH i2c: E2 0E 00 D5 01 00 09 00 01 49 C0 95 66 00 00 00 00 90 00 63 [03:15:25]RAPDU: 09 00 01 49 C0 95 66 00 00 00 00 90 00 [03:15:25]wFMCommunicate OK [03:15:25]SAM_PROTO_GetShiftState done [03:15:25]FM_GetShiftState done [03:15:25]req_shift_opened done [03:15:25]requested_item shift.open_date is exist - process it [03:15:25]req_shift_open_date [03:15:25]req_shift_open_date done [03:15:25]produce_requested_data done [03:15:25]produce_requested_data return {"fm.sn":"0000000000874718","fd.num":165506,"shift.num":449,"shift.opened":1,"shift.open_date":1721090121} [03:15:25]process_action_free close_receipt [03:15:25]json_value_free [03:15:25]json_value_free done [03:15:25]process_json_proto returns [03:15:25]Send response to host [03:15:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874718","fd.num":165506,"shift.num":449,"shift.opened":1,"shift.open_date":1721090121}}} [03:15:25]free response buf [03:15:25]execute_script done [03:15:25]execute_script returns [03:15:25]free content buf [03:15:25]Sock 9.Close socket [03:15:25]Sock 9.Thread stoped [03:15:29]OFD Sender: No OFD packet to send [03:15:34]OFD Sender: No OFD packet to send [03:15:39]OFD Sender: No OFD packet to send [03:15:44]OFD Sender: No OFD packet to send [03:15:49]OFD Sender: No OFD packet to send [03:15:54]OFD Sender: No OFD packet to send [03:15:59]OFD Sender: No OFD packet to send [03:16:04]OFD Sender: No OFD packet to send [03:16:09]OFD Sender: No OFD packet to send [03:16:14]OFD Sender: No OFD packet to send [03:16:19]OFD Sender: No OFD packet to send [03:16:24]OFD Sender: No OFD packet to send [03:16:29]OFD Sender: No OFD packet to send [03:16:34]OFD Sender: No OFD packet to send [03:16:39]OFD Sender: No OFD packet to send [03:16:44]OFD Sender: No OFD packet to send [03:16:49]OFD Sender: No OFD packet to send [03:16:54]OFD Sender: No OFD packet to send [03:16:59]OFD Sender: No OFD packet to send [03:17:04]OFD Sender: No OFD packet to send [03:17:09]OFD Sender: No OFD packet to send [03:17:14]OFD Sender: No OFD packet to send [03:17:19]OFD Sender: No OFD packet to send [03:17:24]OFD Sender: No OFD packet to send [03:17:29]OFD Sender: No OFD packet to send [03:17:34]OFD Sender: No OFD packet to send [03:17:39]OFD Sender: No OFD packet to send [03:17:45]OFD Sender: No OFD packet to send [03:17:50]OFD Sender: No OFD packet to send [03:17:55]OFD Sender: No OFD packet to send [03:18:00]OFD Sender: No OFD packet to send [03:18:05]OFD Sender: No OFD packet to send [03:18:10]OFD Sender: No OFD packet to send [03:18:15]OFD Sender: No OFD packet to send [03:18:20]OFD Sender: No OFD packet to send [03:18:25]OFD Sender: No OFD packet to send [03:18:30]OFD Sender: No OFD packet to send [03:18:35]OFD Sender: No OFD packet to send [03:18:40]OFD Sender: No OFD packet to send [03:18:45]OFD Sender: No OFD packet to send [03:18:50]OFD Sender: No OFD packet to send [03:18:55]OFD Sender: No OFD packet to send [03:19:00]OFD Sender: No OFD packet to send [03:19:05]OFD Sender: No OFD packet to send [03:19:10]OFD Sender: No OFD packet to send [03:19:15]OFD Sender: No OFD packet to send [03:19:20]OFD Sender: No OFD packet to send [03:19:25]OFD Sender: No OFD packet to send [03:19:30]OFD Sender: No OFD packet to send [03:19:35]OFD Sender: No OFD packet to send [03:19:40]OFD Sender: No OFD packet to send [03:19:45]OFD Sender: No OFD packet to send [03:19:50]OFD Sender: No OFD packet to send [03:19:55]OFD Sender: No OFD packet to send [03:20:00]OFD Sender: No OFD packet to send [03:20:05]OFD Sender: No OFD packet to send [03:20:10]OFD Sender: No OFD packet to send [03:20:15]OFD Sender: No OFD packet to send [03:20:20]OFD Sender: No OFD packet to send [03:20:25]OFD Sender: No OFD packet to send [03:20:30]OFD Sender: No OFD packet to send [03:20:35]OFD Sender: No OFD packet to send [03:20:40]OFD Sender: No OFD packet to send [03:20:45]OFD Sender: No OFD packet to send [03:20:50]OFD Sender: No OFD packet to send [03:20:55]OFD Sender: No OFD packet to send [03:21:00]OFD Sender: No OFD packet to send [03:21:05]OFD Sender: No OFD packet to send [03:21:10]OFD Sender: No OFD packet to send [03:21:15]OFD Sender: No OFD packet to send [03:21:20]OFD Sender: No OFD packet to send [03:21:25]OFD Sender: No OFD packet to send [03:21:30]OFD Sender: No OFD packet to send [03:21:35]OFD Sender: No OFD packet to send